« first day (1715 days earlier)      last day (3220 days later) » 

12:03 AM
I have an Arraylist of StringBuilder objects that have been created to contain 4 characters. The ArrayList has a length of say 10000.
I'm trying to create a for-loop structure that will go into the ArrayList at each index, call-up the StringBuilder there, and place the four characters into the StringBuilder object
how do I do this?
ArrayListName.get(int index) wouldnt work would it? and set(int index, Element e) just creates a new object and I dont want that
I wanted something like bob[0].append("java"); but with arraylists.
1) Is this possible, if so, how? 2) Should I just use an array instead of StringBuilders instead?
 
12:50 AM
code example? i'm more of a visual person
 
1:19 AM
hastebin.com/wahojobaqi.coffee @UnknownOctopus where comboList is an ArrayList of StringBuilder objects.
it should not work
 
@JohnnyCoder You said each index will only contain 4 characters?
 
octo, these were just examples of what i wanted. pretend the appended bit is "java" if that helps.
 
blue tigers are sky-fish hybrids is just me messing around and trying to have fun while realizing that im being very stupid
 
Its funny tho xD not stupid
 
1:49 AM
no no, i mean with the program im trying to write
i have no idea why im writing it, im writing it very badly, and i feel stupid overall
@octo
@UnknownOctopus
 
What did I just stumble into
 
@Dustiny I stumbled into a wall once if that counts
 
Maybe the wall stumbled into you
waves hands in a spooky fashion
 
Nah, the wall got pretty pissed and DOXed me
 
lols
This song is messin with me mentally right now, it's just so good
 
1:51 AM
What song?
 
Linked if you can see it
 
@dustiny what are you talking about stumbling into? the blue tigers that are sky-fish hybrids?
 
Yeah im listening to it
 
hahah yeah and the purpose behind that code
 
it has none really
im trying to create a combination generator, and im doing it really retarded like
 
1:53 AM
also capitalism is sub par at best lol
 
@JohnnyCoder btw i didn't forget about your question im just working on another project
 
@JohnnyCoder haha touche
 
i just want to pull an element from an arraylist and append a 4 digit number, but i cant figure out how to do that @dustiny aight @UnknownOctopus, whatever youre working on is DEFINITELY (no sarcasm) more important than this ****show of a program im writing
like ive gone full retard on this
 
A random element?
A string?
 
1:55 AM
An int?
a double?
 
the arraylist contains StringBuilders
 
a long?
 
yes, they are ints
 
But pull it out randomly, or just .. pull it out
(skeet skeet)
 
I know im doing this wrong, i know i dont need StringBuilders, but im playing with them
lol
haha
 
1:56 AM
so pull out an int, append a 4 digit number.. but actually, randomly or just doesnt matter
 
what i mean dustiny is like bob[a].append("dustiny does not capitalism, therefore dustiny is inferior");
not random
 
lol!
 
Not random? Didn't u just say u were making a random generator? XD
 
i want that bob[a] function with the arraylist, is there a way to do that?
 
bob.get(a)
 
1:58 AM
yes, but I want to change the element at a
and retain the change
does get still do that?
 
Hmm no it wouldn't
 
Octo, the program generates combinations based on how many digits the lock requires
 
I don't have an IDE on this computer either lol lemme think for a sec
 
1:58 AM
theres no randomness, otherwise digits may repeat
 
Post the whole code and let me fiddle with it, im annoyed with my project anyways
 
could it be like
for (etc)
int temp = bob.get(a).append(x);
bob.insert(temp);
oh wait
lemme pull an array list doc infront of me so I'm not stumbling over naming here
 
insert requires some int offset. what does offset do?
aight
okay octo, but your brain will melt
 
A little late for that.
 
This is probably worse code than i wrote when I was born when i couldnt type, didnt know logic, and had minimal control over my limbs
 
2:01 AM
for(a....)
int temp = bob.get(a).append(x);
bob.add(a,temp);
 
can you explain that bit real quick?
 
will that work with stringbuilders?
huh
didn't think of that
 
you are saving a stringbuilder that has x appended to it an int
 
hmm your right with stringbuilders kind of forgot of that..
 
how does that work?
 
2:03 AM
yeah..
 
sorry been having some casual beers here I forgot about stringbuilders lol
 
octo, when you see the code, you will have many questions, feel free to ask and criticize, i need some constructive critisicism
dustiny, for the time being i went with this, just for the hell of it, but i dont like it: comboList.add(new StringBuilder(a + "" + b + "" + c + "" + d));
 
@Dustiny 's version of casual
 
Sometimes my work arounds are really fuckin retarded but I think you could do this
for(a)
{Integer temp = Integer.parseInt(bob.get(a).append(x).toString());
Stringbuilder temp2 = new Stringbuilder(temp);
bob.add(temp2,a);
}
lmao
 
2:06 AM
big lmao
i see
interesting
 
when your computer tells you your ide is using high amounts of memory
facepalm
 
I'm just unsure, because if you add into the arraylist at that index...it kind of acts like.. you know a list
so it might just push the old one back, so you might need to add there, then bob.remove(a+1)
 
i was thinking of just switching to an array
 
Could u not just use an array or arraylist?
 
i could use set
 
2:07 AM
instead of stringbuilder
 
the arraylist contains stringbuilders
real quick
i just want to prove my stupidity
 
@JohnnyCoder Just saw that now, yeah that works lmao
I warned you, my work arounds are real retarded. My professors in school liked to use the phrase"pull the rabbit out of the hat" a lot around me
 
so the constructor in the ComboCreator class (second link to hastebin) has variable to pass called numsToUse, this is the length of the combination on a lock
lol dustiny
so the possible number of combinations is found using a permutation equation
the output of the equation is dependent on the length of the combination
 
@Dustiny You went to school for this? lol im just sittin here in the basement like... i read about going to college xD'
 
I actually took "Engineering Physics" in school lol
with a minor in computer engineering
 
2:11 AM
my initial case was 4 digits, so when i wrote the possibleCombo() method i created 4 nested for-loops which would output 10000 combinations, just realized that if you enter a lock length of anything other than 4 you still get 10000 combinations
octo, i plan to double in computer science and chemical engineering
i cant teach myself anything
 
Ugh I hope you don't plan to combine them
 
i would waste all my times playing COD or empire total war
 
Molecular dynamics simulations are THE WOrST
 
is the capitalization of WOrST supposed to mean something?
 
it's supposed to be an emphasis of how bad MD simulations are
 
2:13 AM
why shouldnt i combine them? I dont think those fields will ever intersect
but they are both my strongest interests
so if i cant get a job in chem engineering, i have the comp sci major to fall back on and vice verse
 
In that case, do it. I'm just saying molecular dynamics simulations are brutal to program lol
 
Individually they are awesome
 
i have no idea how to even go about that
i dont even know what jobs would invovle an intersection between chemistry and computer science
 
I was decently lucky the school I went to, Queen's University, in the first year is general engineering, so you learn a bit of everything
 
2:15 AM
i mean, i know computers use chemistry, but i dont know what jobs do combine the two, or if doubling in those is a good idea
 
which weeds out your real interests
 
wheres that?
 
@JohnnyCoder Problem solved. Work as a programmer for a chemical company
 
Computers don't really use chemistry
 
octo i love you
 
2:16 AM
Maybe thermodynamics
 
im talking about conductivity
 
sort of
 
That's more electrical engineering though
 
see, more proof of el stupido
 
2:16 AM
I guess if you boil it down to materials
chemical would be in there somewhere, but thats kind of mechanical/chemical combined
 
I hear the meth industry uses quite a bit of chemistry
2
 
sometimes i worry about my future
hahahahhahahhah octo
i found my true calling
 
@JohnnyCoder Kingston, Ontario, Canada
 
work as a hacker/meth maker for a cartel
OH CANADAA!!!
 
Living it up in onionland
 
2:17 AM
lmao onion land
never ever heard that before
 
if the US tried to invade Canada, would Canadians really be like "Oh, hello. Welcome."
 
Good
@JohnnyCoder Yes.
 
I'm not sure, possibly
or we would just burn ur whitehouse down again
It's really either or
 
Canada gets involved in nothing. They sit back and watch everyone else destroy eachothoer.
 
@UnknownOctopus Yes which is why I was pissed we went to afganistan. But I guess we're also known as "peace keepers"
 
2:19 AM
well, WWII canadians kicked some ass on one of the beaches
 
Normandy motha fucka!
 
Hey, we need gas, they have it, they didnt want to share it, we took it
 
Haha yeah but Canada didn't reaaally need to get involved, but ah well
!!urban onionland
 
@Dustiny No definition found for onionland
 
damn
 
2:20 AM
@CapricaSix Deep web
 
Is the reference TOR related
 
Of course it is
 
I remember using silk road 4 years ago
2
... when bit coins were a dollar.... now look at them
who would have guessed..
 
T_T
 
2:23 AM
It takes at least 1th/s to even try to make a profit on bitcoins
 
Ohhh okay onionland was in reference to the meth/hacker not Canada okay, I was so confused
 
Yeah.. xD
 
haha yeah now a days.. I could have just laid down 1 grand canadian, waited until they were at 1k each and sold... boom million dollars
Biggest ROI ever
But noooo I had to buy "merchandise"
 
Probably should keep those deets to a minimum
 
slowly backs away
 
2:24 AM
this is logged
 
Just realized that lol
 
peeks out window
 
hears sirens
 
calls FBI, Interpol, Canadian Royal Mounted Police
 
Ew. Interpol
@JohnnyCoder you forgot NSA
 
2:26 AM
ew?
lollll
i dont need to call them
 
lol NSA I applied to the Canadian version of NSA
CSIS
 
they probably reading this right now
Smile and wave at the NSA and CSIS boys, smile and wave
 
@JohnnyCoder your right, you don't need to call them. They'll call you
 
In America, you dont call NSA, NSA calls you
 
Realized I didn't want to handle the responsibility of highest clearance security credentials in canada lol
 
2:27 AM
:o
 
"If you tell your spouse where you work, you'll go to jail for 12 years for treason"
"Oh and you drink to much"
looks around shifty eyed
 
because you knew one day you would be in the java chat rooms discussing your use of the **** ****
 
lmao
 
which one is lmao?
 
2:28 AM
to that edit
 
te he
gotta watch out for that lobster of yours
wouldnt want him to be orphaned
 
I got bit by a lobster once
It's dead now.
 
i bit a lobster once
 
I am a lobster, I don't know what your talking about
 
haha
I heard the lobster prisons in Canada are full seasonings and hot water
 
2:29 AM
I'll brb I realized I just put a cigarette behind my ear on top of another cigarette, so I think that means I should probably smoke before I put a third one on there
 
and then you get dropped in hot water filled with seasonings
 
@UnknownOctopus OMG LMAO
 
I'm sending that to my work email
 
2:30 AM
Edit that copyright bullshit off it first
 
Yeah I'll just replace it with Dustiny
keep the D and microsoft paint the rest
 
ah yes the D, something lobsters dont have..... wonders if that was an appropriate burn......
 
HAHAHHAAHHAAH
 
lmao
your is so much better
I just went ahead and stole yours
 
2:36 AM
sues
 
I can't believe if you just google "lobster typing" that picture shows up
why did anyone ever take that picture l mfao
 
Haha.. yeah..i wonder who would do that... slowly backs up
 
lmfao that's like a 1990s keyboard too
so think about that
please
 
Oh god someone starred the silk road, lmao you bastards
 
2:39 AM
As long as it has an internet connection and all traces of I.E deleted from it then its a good pc
 
can some explain this? fge gave it to me and I took it and ran because I didnt want to admit my incompetence
2 people starred it
Mounties are coming for you
 
nononononono
hahahaha
 
;D
Tried to learn PHP
 
Everyone on here already thinks Im a degenerate because I talk about girls all the time
You should just go ahead and unstar the silky..silk
@UnknownOctopus I make that same face after coitus
tears included
 
Anyone has problem loading stackoverflow.com/questions/tagged/regex
 
2:50 AM
nope
 
jinx
 
@Dustiny Soda machine's out of order, kiss my ass and ill give you a quarter
 
lol! never heard that one
I dunno if that's worth a quarter though
 
I mean.. AHEM
 
2:53 AM
Look at you, top 2% this week
in your first week
 
Get a real avatar, you deadbeat
 
Do copyrights apply on here?
 
like this one
Good point, I never checked lol
 
I find the whole site rather buggy
 
2:58 AM
If a copyright issue occurs, normally the real copyright holder will send a DMCA takedown notice (an e-mail) to Stack Exchange and they presumably will remove your avatar. You are the one who originally pirated the image so you are still personally responsible and can be held accountable for the violation.
Stack Exchange is probably also responsible, but only so far as neglect goes (which is not that far if they act upon all requests from rights holders), but they can then in turn hold you as a member responsible for paying their fees arising from your copyright violation.
 
I'd rather my account not get deleted
 
Just google with advanced search "free to use or share" and you'll be good
apparently I need to change my avatar.. I doubt it would ever cause an issue but I guess you never know
 
Copyright's a bitch
 
Yeah I'd be pretty cheesed if I ever got sued over this lol, i'm sure being as low-key user as I am it wouldn't come up
 
just edit a mustache on your pic
 
3:02 AM
Seems legit
 
hahahahah stop beating me to it
a mesh of two copywritten images = non copywritten image right
I like yours way better though -_-
 
What photoediting software ?
 
Wanna do that on this image so the resolution isn't piss poor? I'll be ur friend
paint of course
 
eh im trying to answer a question x.x
 
3:08 AM
Fine mr Rep
This is my favourite paint picture I've done so far, I did it on a night not unlike tonight.. casually drinking
 
You da man
 
How old are you?
This isn't just random btw
 
1337
and a half
 
3:11 AM
I would have guessed 69
I was going to say A/s/l then I was like wait.. I'm not sure if he'd understand. so yeah.
Don't answer that either lol
 
It was more self indulged nostalgia then anything, get over it
slowly backs away
 
Brings back up the silky thing
 
3:26 AM
lmao alright I'm thinking these casual beers aren't helping this situation right now
Time to clean up ye olde apartment before the gf shows up, so have a good night octo
 
Night'
@JohnnyCoder You alive?
 
Question, how do I know if data is available in a socket?
 
3:42 AM
@SuperstarGamer-Trent I'm horrible with sockets but maybe this will help you
 
4:11 AM
indeed octo
i was eating watermelon and watching Dark matter
 
Seems legit
meanwhile i just got humiliated on meta
Happy 4th Guys!
(American)
 
indeed
 
@Dustiny you suck at paint :P
@Michael I see, I gave you another bug :P
 
4:47 AM
apparently this is a thing > bitlisten.com
 
 
2 hours later…
6:48 AM
mornin
 
morning
 
sup
its afternoon 4 me but i just woke up
 
7:14 AM
k
 
 
1 hour later…
8:17 AM
Yo
 
I should have learnt this by now, don't try to learn 4 new things at the same time. When it all goes wrong, you have no idea what has gone wrong, and tutorials and examples can't help you.
 
8:32 AM
lol
 
I think... that my Wildfly server isn't being redeployed to.
Because I commented out the entire class it had an error with, and it still has a problem with it
 
at least you commented it out and didn't delete it all like an idiot :D
 
:-)
I did hit the delete key, then reconsidered at the confirmation.
 
....
 
Delete, run, undo delete was my initial though
 
8:41 AM
o/
 
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011047: Component class com.model.UserTypeHome for component UserTypeHome has errors:
JBAS011440: Can't find a persistence unit named null in subdeployment
That class is all commented out, stop this!
Morning @ItachiUchiha
 
Morning!
 
Okay. so my classes are not being regenerated by the jproject
 
Morning @ItachiUchiha
 
morning
 
9:04 AM
Maven. It was Maven.
 
 
1 hour later…
fge
10:17 AM
Hmm, another anime I found out worth its while: Jormungand
 
 
1 hour later…
11:22 AM
Im looking for Java room!
@Dustiny is this an invasion :P ?
 
11:34 AM
Anime? Am I at the right SE site? :P
 
fge
@deadlydragon00 not here -- pass your way :p
 
fge
11:46 AM
<-- watching Baccano! again; it's been a long time
 
woot!
finally unwrapped the package - the SE tee shirt is awesome :D
 
user1648409
Hey. I am programming a GUI with swing and need to update a list whenever my program changed something in the model. I found this post: stackoverflow.com/questions/13141732/…. Is this the standard way or is there any other better way?
 

« first day (1715 days earlier)      last day (3220 days later) »