« first day (1618 days earlier)      last day (3308 days later) » 
03:00 - 14:0014:00 - 00:00

3:05 AM
private class Boyfriend implements Adorable {}
 
posted on March 29, 2015 by Artist

private class SignificantOther implements Adorable {         private void adorable(IceCream nom){             nomNom(nom);         }  } private class Me implements Weak{         public IceCream give(){             IceCream nom = Cupboard.g

 
3:22 AM
Hey all, does anyone know why a do-while loop would prevent my Swing-based application running?

I need to get input from a JTextField and JPasswordField, and for whatever reason, I cannot get my application to work with null checks in place. Can anyone help? (I can't ask questions in SO atm)
 
 
1 hour later…
4:22 AM
Hey i have a moderately dumb question: I'm working on the old 'university management system' problem, and in this implementation each Unit object contains an array of Student objects to track the students in the unit. If I added a property to Student which was an array of Unit objects, would that cause some kind of memory explosion? E.g. would each Student contain an array of Units, each of which in turn contains an array of Students, which would contain........
 
5:03 AM
@Toadfish ..seems to be a bad design implementation ..
 
5:25 AM
@ManMohanVyas The thought had occurred to me. The thing is, this subject isn't actually programming oriented, it's 'design oriented', which apparently means we are discouraged from making any major alterations to the existing code - we're just meant to fix some intentional bugs and add functionality. Obviously in real life you'd never use java objects in memory to store a student database, you'd be plugging in to a proper relational database.... but that's not what this unit is about, sadly
 
 
2 hours later…
7:18 AM
@Toadfish You know, "memory explosion" isn't a thing.
 
@Unihedro ssup?
 
=javadoc List#remove
 
Which one do you mean? (type the number)
1. java.util.List#remove(Object)
2. java.util.List#remove(int)
3. java.awt.List#remove(String)
4. java.awt.List#remove(int)
5. java.awt.List#remove(MenuComponent)
 
1
 
@Unihedro boolean remove(Object o): Removes the first occurrence of the specified element from this list, if it is present (optional operation). If this list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that (o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns true if this list contained the ...
specified element (or equivalently, if this list changed as a result of the call).
 
7:30 AM
The if (current >= 20) check is abundant because the only possible fall through from if (current < 20) else already matches the condition. The code is also suboptimal because a new List is constructed to handle a second loop to remove from the original List, where as removeAll would had done just fine — Though the optimal way is to just use an Iterator and use else iterator.remove(), which saves from the object construction and is easily more maintainable. — Unihedro 1 min ago
@Sword Morning!
 
8:03 AM
0
Q: Converting window.open(Hyperlink) Javascript code to pure absolute url with JAVA

JavaFanI work on a website with JAVA Jsoup Library to extract some hyperlinks Document doc = Jsoup.connect("http://www.saudisale.com/SS_a_mpg.aspx").get(); Elements script = doc.select("script") ; for(Element elementary :doc.select("table")) { System.out.println(""+elementary.select("tbody").select...

 
fge
8:24 AM
Moo
 
Morning
@fge do you have age limits on buying energy drinks like red bull in your country?
 
limits on buying energy drinks?
thats weird..
 
It's because they're dangerous for children
teens too
 
fge
@Gemtastic no idea at all
 
8:30 AM
btw.. I have never tried RED BULL
 
It's not regulated by law, but the stores have decided upon it
some have 15 as their age limit. Some have 18
 
I see
 
I just got ID:ed buying it. While using the self-checkout service you need to be 18 to register for. :')
I'm 26
 
I think the woman IDing me is younger than me :')
 
8:33 AM
lolz
 
and she had to confirm my date of birth on the driver's license I used to ID myself (you have to be 18 to get it here).
 
9:22 AM
busy on sunday
 
hmm?
 
no interaction in room
 
Oh you meant like that
well, I tried :P
 
hehe
yeah
 
@ItachiUchiha Yep.
 
9:32 AM
JCE?
 
If you do nothing, then everyone else around you does nothing. Activity (noun) creates activity (verb). Duh.
@ItachiUchiha Chess, JCE, and Indie Dance / Drum & Bass music (?!)
 
I am all over with DBZ and class loaders
 
Classloaders are fun!
 
DBZ loaders
 
@Unihedro Do you know all about them?
I have watched 146 episodes in one week
 
9:37 AM
@ItachiUchiha I know nothing.
I don't watch anime.
 
Not to mention I have to attend 9 hours of ofc..
 
fge
@Unihedro did you see my mail back btw?
 
@uni I was talking about class loaders
 
@fge Eh, no, one sec...
@ItachiUchiha Still applies. I know nothing. :P
 
@Unihedro >_> .......... <_<
 
10:02 AM
1
Q: Converting window.open(Hyperlink) Javascript code to pure absolute url with JAVA

JavaFanI work on a website with JAVA Jsoup Library to extract some hyperlinks Document doc = Jsoup.connect("http://www.saudisale.com/SS_a_mpg.aspx").get(); Elements script = doc.select("script") ; for(Element elementary :doc.select("table")) { System.out.println(""+elementary.select("tbody").select...

 
lolz
 
XD
 
fge
10:31 AM
yawn
 
10:53 AM
So... Why is Serializeable bad again?
 
fge
Clunky API, security concerns, and performance bottleneck if you use lambdas
 
"Security concerns" -> ?
I was trying to convince someone else that Serializeable sucks, but failed to, so.
 
fge
Sorry, I can't recall, I have abandoned it long ago enough that it's a distant, forgettable memory
 
Serializeable is faster than Externalizeable in both best cases and worst cases though.
Screw it, what could possibly go wrong? :D
(inb4 velociraptor leap)
 
11:16 AM
@fge Can Jackson access private parameters as well?
 
Engagement posts, engagement posts everywhere...
 
fge
@SecondRikudo I believe so
 
11:36 AM
who is getting engaged?
 
@ItachiUchiha everyone
on facebook
 
hi all
how i can chat in android room ?
 
fge
<-- still at work
 
hi
 
fge
No, I know nothing about SAX
 
11:49 AM
@user3141844 Ask for an invitation, hope they let you in.
 
dammit
 
@fge s/A/E/
 
TNX @}-
 
@SecondRikudo ಠ_ಠ
 
fge
@Unihedro seen the mail yet?
 
11:58 AM
affirmative
 
fge
Recall that I'm dead serious so you had better be as well ;)
6
Q: Why does toString fail to produce the correct value on an immutable BigDecimal?

MikeMimport java.math.BigDecimal; import java.math.RoundingMode; public class BigDecimalTest { public static void main (String[] args) { // 4.88...e+888 (1817 digits) BigDecimal x = new BigDecimal("4.88324205631301717347338558524543305030238119199194972725208752347485566678946786225764817...

^^^ "interesting"
 
I CAN'T BREATHE
 
@fge But my resume is 4 times longer than that letter and most of it is totally irrelevant to what I'm applying for, which is why I put together a letter with 1. relevant experience 2. about me and 3. what I can contribute.
@SecondRikudo Haha, firefox? xD
 
@Unihedro Guy completely loses it over the deprecation of a pre-doomed feature
 
XD
 
12:07 PM
Starts quoting the bible and stuff, it's hilarious
 
hi again, I know I keep asking about SAX on here, but I'm thinking of scrapping that idea and going with an easier to use API, my goal is to marshal the xml doc into a graph, any input as to what API I could use for this? Open to using JSON if that's a better approach
 
ditch xml altogether
 
@Unihedro Depends, there are things XML does that JSON cannot sanely
 
I was thinking that much, I can convert my XML to JSON easily
 
@BrianJ what are you describing in your XML document?
 
12:08 PM
I'll post a link to it
 
@SecondRikudo ... which wouldn't happen to a learning programmer, as implied by the question itself
 
@Unihedro ... Attributes?
 
@Unihedro @SecondRikudo hastebin.com/axiqayucid.xml
 
fge
@Unihedro or of the art of summarizing ;) Prior to my new resume wich I wrote, I expanded on my systems engineer work, in the new one it's only a short summary
@Unihedro if you need help you can just send me some resume you have and I'll tell you what to do with it
But it is always better to have several short lumps of text, focused, than a big one where you try to cram it all
It's the same with software
 
falls asleep from fge's long speech
 
12:11 PM
I've finally decided to ditch SAX as I'm getting no where with it, the location name and id will identify the location in the attribute, and the elements will contain the location's description and exits etc
a sample location:
<location id="1" name="Tiberius">
		<description>
		You are in the city of Tiberius. You see a long street with high buildings and a castle.You see an         exit to the south.
		</description>
	    <exit title="Desert" direction="S"/>
	</location>
 
@BrianJ If your IDs are sequential, which they certainly seem to be
 
yeah there sequential
 
{"locations":[{"name":"Tiberius","description":"foo bar baz","exit":{"title": "Desert", "direction": "S"}}, {"name": ... }, ... ]}
 
@SecondRikudo what is the above exactly? JSON
?
 
Yeah, a shortened JSON
 
12:16 PM
JSON object
 
okay what about ID
should I have that in there also?
 
I removed the ID in favor of using an ordered array.
What significance does the ID play here?
 
well I was going to use a map to map the ID to location name
but I'm open to new ideas
 
@BrianJ can you expand on the problem domain a bit more?
You're obviously building some sort of game, can you describe it?
 
@SecondRikudo so basically its a text based game, the player will navigate from the start location "Tiberius" to "Cyprus" by inputting a command, eg move South, will bring them to the next location, "Desert"
what I need to do first is parse in that file, build a graph from it, then hook up the commands
if the exit direction doesn't exist for that location, then they will get a message such as "no exit exists here"
 
12:22 PM
Okay, so again, why do you need an ID? :)
You want to actually link the locations in some way, right?
 
yeah
 
Someone walks south from Tiberius they get to the Desert
 
correct
 
Assuming your naming is unique, those names can be used as your identifiers.
No need for a numeric ID
 
yeah I guess that could be done instead of a numeric ID
the location name will be unique yes
 
12:24 PM
Now, seeing as there can probably be multiple exits
"exits" should also be an array:
{"name":"Tiberius","description":"foo bar baz","exits":[{"title":"Desert","direction":"S"},{"title":"Jerusalem","direction":"E"}]}
 
okay I see what your getting at
what API should I use to parse the JSON into a graph?
 
That's @fge's territory.
 
fge
Not anymore :p But Jackson can certainly do it
 
@SecondRikudo okay thanks for the advice, I'm going to start with converting my XML to JSON
@fge I'll take a look at Jackson then
 
@fge With node to map a JSON file into an object, you do var obj = require('./jsonFile.json'); and you're done :D
 
fge
12:31 PM
With the limitations inherent to JS ;)
 
just downloading Jackson now..
 
@fge I just know I'm going to regret this, but...
What limitations? :P
 
@SecondRikudo so this is the converted xml to JSON, thoughts? hastebin.com/vazamopifi.dos
 
@BrianJ What's with the dashes?
Also, no line breaks in strings in JSON
 
@SecondRikudo I just loaded that into a "XML to JSON" converter
and it spat out that
 
12:35 PM
Can you name this software so I can add it into my blacklists?
 
Oh hi utilities-online, we meet again
 
@Unihedro found a better one I think: codebeautify.org/xmltojson
btw, I added the JSON file to my Eclipse project, but it's using Visual Studio to open it for some reason
 
1:09 PM
Morning, Java!
 
Mrng
 
!!>(anything => 5)()
 
fge
OK, enough with the plugin for now
Objective --> grappa 1.1, sonar-sslr-grappa 0.2.0
 
@fge ^^ have some beer
 
@ItachiUchiha I expected the united states to have water.
 
1:17 PM
Isn't that what Bud Light is? Beer-flavored water?
 
@ItachiUchiha lol It's Oettinger..
 
^^ @sec
 
well that's mostly because that is the cheapest
 
@fge found the following Jackson tutorial, gonna start with that: journaldev.com/2324/…
 
I forgot to bring the latest version of the project I am working on with me to the coffee shop. :(
Now I can't work on it. :(
 
1:23 PM
@Michael Y U NO USE GIT?
 
@Michael You work on code even while sitting at a coffee shop o_O
 
@SecondRikudo I do. It's not hosted anywhere.
 
@Michael Y U NO HOST ANYWHERE?
 
@ItachiUchiha had I a useful laptop that doesn't permanently need to be plugged in, I'd probably do, too.
 
@Vogel612 Had I had*
 
1:24 PM
Because it's for my job. Although, I doubt they'd mind if I put it on github.
 
Use a private repository.
 
@ItachiUchiha All the time.
 
@SecondRikudo no? maybe "If I had*"
 
can someone help with my question please
0
Q: Linked Arrays Java - Displaying int and String?

rubin.kazanThe task was to organise and display user input corresponding to the marks. For example, Name: Oscar Mark: 25, Name: Rubin Mark:45, Name: Jake Mark:13 So it should display: Rubin 45 Oscar 25 Jake 13 But it only displays the names and marks but not in an arranged order. I suspect it may have to ...

 
@Unihedro Which costs money... :(
 
1:25 PM
@Michael Nope.
bitbucket
 
... Buy a cloud. Install gitlabs.
 
@Vogel612 James while john had had had had had had had had had had had had a better effect on the teacher.
 
hi could anyone help me with a java programming question
0
Q: Linked Arrays Java - Displaying int and String?

rubin.kazanThe task was to organise and display user input corresponding to the marks. For example, Name: Oscar Mark: 25, Name: Rubin Mark:45, Name: Jake Mark:13 So it should display: Rubin 45 Oscar 25 Jake 13 But it only displays the names and marks but not in an arranged order. I suspect it may have to ...

 
@rubin.kazan I have no idea what you're asking in that question.
 
@Michael USe bitbucket
 
1:28 PM
Looks like I'm falling in love with Python again..
 
@Second @Itachi Cool! Didn't know about that. Thanks. ^^
 
@Michael also, FYI, git remotes don't have to actually be remote URLs
 
@Sword Python sucks so bad.
 
They can be network relative URLs, local files URLs, etc.
You can mount a flash drive, and set that up as a remote
 
@rubin.kazan Please don't ask homework questions...
 
1:30 PM
Then use that to sync (if you don't have internet connection/don't trust hosting services)
 
@rubin.kazan We won't do your homework for you
 
They were given to you so that you may learn
 
OffTopic/13 or Unclear
 
1:30 PM
When you get someone else to do your homework for you, it's called cheating. :P
 
@SecondRikudo is this better in terms of formatting? hastebin.com/ocirevuyil.pl
 
Doesn't work in Western universities.
 
@BrianJ No need for the @
And remember, exits should be an array.
Don't rely solely on automated tools
 
okay but its better than the previous?
 
@SecondRikudo lol
@SecondRikudo so ignorant
 
1:32 PM
@rubin.kazan TBF I haven't even read the question yet
I'm merely completing what @Michael said
 
yeah I gotta add the array for exits, will the @ symbol hurt anything if I leave it in? @SecondRikudo
 
Homework questions are usually frowned upon on Stack Overflow
 
@SecondRikudo Just dv/cv and move on. xD
 
@Unihedro To be fair, why? Doesn't look like that bad a question
Sure it's homework, but he has tried...
 
@rubin.kazan Also, your code is formatted horribly. It's no wonder you're having trouble.
 
1:33 PM
"13 Debugging help without including desired behaviour, a specific problem or error and MCVE."
 
@Unihedro he has a specific problem
read through the question
just his approach isn't very good
 
@Unihedro He has all of those
 
@Michael you seem to be very good at identifying my flaws
@Michael but are unable to support me
 
@SecondRikudo ... No he doesn't
 
@rubin.kazan In what editor are you writing your code here?
 
1:35 PM
@Unihedro thank you
 
"it only displays the names and marks but not in an arranged order" isn't a "specific problem or error".
 
This:
private void btnEnterActionPerformed(java.awt.event.ActionEvent evt) {
for(int i = 0; i < 5; i++)
    { ArrNames[i] = JOptionPane.showInputDialog("Enter a Name:");
ArrMarks[i] = Integer.parseInt(JOptionPane.showInputDialog("Enter a    mark:"));
}
}
Should be formatted like this:
 
@Unihedro thank u for helping out making it clearer
 
:22369227 fail :D
 
fge
@Unihedro mail
 
1:36 PM
lool
 
private void btnEnterActionPerformed(java.awt.event.ActionEvent evt) {
  for(int i = 0; i < 5; i++) {
    ArrNames[i] = JOptionPane.showInputDialog("Enter a Name:");
    ArrMarks[i] = Integer.parseInt(JOptionPane.showInputDialog("Enter a mark:"));
  }
}
 
@fge Mailbox is clear.
 
@rubin.kazan Otherwise, it's unreadable.
 
Well can anyone help with it?
 
@rubin.kazan Why are you sorting the names? Why does your if() has a ; ?
 
1:38 PM
@ItachiUchiha Dammit! I was editing it!
 
essentially my question is just displaying a linked array in descending order
 
Now I gotta start over.
 
@Unihedro On you face :P
 
@rubin.kazan You should thank @Itachi and @Unihedro for cleaning up your post.
 
@Michael Read it now :P
 
1:39 PM
I already have
but thank u again
 
Good.
 
@ItachiUchiha Fine, that I understand; But next time I stab you in the face, you better understand.
 
@fge so I have my JSON file added as a resource, added the Jackson jar, I'm assuming my next step is to cretae the POJO's for it?
 
:|
:P
 
@Unihedro You won't get a chance :P
 
fge
1:40 PM
@BrianJ sorry but I really don't have the time; I'm working on some other stuff
 
Let's build a code prettifier!
 
So none of u guys can actually solve it xD
But thank u again for making it easier for others tor ead
 
fge
And I'd ask @Unihedro not to get sidetracked, if you want to work with me that's not an option :p
 
@fge no problem, I found some tuts here anyways
 
@rubin.kazan that was kind of challenging
 
1:40 PM
@fge ... ???
I told you in chat earlier that I still prefer the letter over attaching my massive irrelevant resume. :p
 
@Unihedro That edit is lame :P
 
@ItachiUchiha By the way, I stole your face.
 
@rubin.kazan Tell me: What does the "btnSortActionPerformed" method do?
@rubin.kazan Oh, and I doubt that's you in your profile picture.
 
@rubin.kazan If you want to order by mark, why are you comparing names?
 
Thank you all for the help
it has been solved :)
 
1:44 PM
@rubin.kazan Bye bye pretty girl. I hope your dreams come true.
 
Got my face back!
@Michael Stop hitting on girls!
 
@ShrikantHavale thats it! works, perfect! Only thing is I used the < sign rather than the > . Otherwise it works, problem solved — rubin.kazan 56 secs ago
 
@Michael A chimp like you has no chance with her anyway.
 
@SecondRikudo Community wiki... rofl
 
@ItachiUchiha vOv
 
1:45 PM
It's community wiki! Quick! Downvote it!!!
Downvote ALL the CW stuff
 
How do i mark my question as answered?
 
Answer it. And then place the checkmark.
 
@SecondRikudo Hey, a chimp's gotta try.
 
@rubin.kazan Why did you edit your question?
You need to answer it with the correct one
You stole my face :(
 
@rubin.kazan You click the tick mark next to the answer that solved your problem.
Right now, there's only my answer, if you want to post a more complete answer, you can answer your own question, and then accept it.
 
1:47 PM
Ladies and gentlemen, this is why we can't have quality posts on Stack Overflow:
0
A: Linked Arrays Java - Displaying int and String?

rubin.kazanif(ArrMarks[i] < ArrMarks[j]) Instead of using .compareTo()

 
what do i declare to make package private method?
 
they commented on it
No on answered it
 
Alright, can we stop bashing OP please?
 
@somefolk return-type method-name(parameters)
 
@Unihedro if you don't feel comfortable with it, answer
 
1:48 PM
@Unihedro basically not declaring anything?
 
Or edit OP's answer
 
8
A: "Why shouldn't I answer off-topic questions?" FAQ

UnihedroAnswered off-topic questions make them seem OK and therefore fade into the depths before attention is attracted to remedy the situation. Questions are only closed because sufficient users see them to cast their close votes. While it's true that users may subscribe to tags and therefore sift thro...

 
@Unihedro The question is perfectly on-topic.
Simple questions != off-topic.
 
fge
@Unihedro and I explained you how to overcome it
 
1:50 PM
@SecondRikudo 11 / 12 / 13
11 Unreproducible problem or simple typographical errors, resolved in manners unlikely to help future readers.
*12 Lacks sufficient information or even minimal examples.
13 Debugging help without including desired behaviour, a specific problem or error and MCVE.
 
fge
<-- expects commitment
 
@somefolk Don't put an access modifier on the method.
 
@Unihedro It wasn't a simple typo. It was a logic error.
 
guys how do i answer the question ?
 
The information is pretty clear
@rubin.kazan You already have
 
1:50 PM
it says i cannot accept my own answer?
 
@rubin.kazan Right, there's a delay
 
@Unihedro @Michael appriciated
 
@rubin.kazan You can't mark your own post as an answer for 3 days or so.
 
@Michael 2 days, I think
 
yeah
 
1:51 PM
low :)
 
@rubin.kazan You already did. The answer is incomplete because you did not mention why it's "the solution" and how it solves anything. It's not helpful for future readers. I've downvoted it.
 
@rubin.kazan Why don't you mark the other post as the answer?
 
@deadlydragon00 Morning!
 
My face is all over that page
 
Hi @Unihedro :)
 
1:51 PM
(Y)
@deadlydragon00 heya
 
Hi @ItachiUchiha Madara
 
@deadlydragon00 madara is @SecondRikudo
 
@deadlydragon00 o/
 
@Unihedro why would u down vote it?
 
Hi @SecondRikudo :)
 
1:52 PM
@rubin.kazan ... I already told you why.
 
@rubin.kazan Well, it looks a lot better now. Thanks to @Itachi's modifications.
 
@rubin.kazan You stole my face again :(
 
sowwy
 
If you check something to Uni make sure it is perfect or ELSE ........
 
@Unihedro is my answer better now?
 
1:53 PM
Better to die once by getting stabbed by @uni
 
@rubin.kazan It is
 
Up-Votes says it all @rubin
 
MUAHAHAHAHA
The final edit on the answer
is MINE
 
Nooooooooooooooooooooooooooooooo
 
Sounds Deadly
 
1:54 PM
Thank You all for your help!
 
@ItachiUchiha ಠ_ಠ
 
@Unihedro No more :P
Take that
 
as you can see i didn't ask u guys to do my homework just to help me out/tweak it
 
@rubin.kazan That one is for you @sec :P
 
I might hang out here for a while actually :p
 
1:56 PM
ARGH
OMG
brb
 
hahaha Uchiha got the last Edit.
 
Deja vu:
 
@deadlydragon00 He was talking about the answer
none of us are there. the OP has the last edit
 
in Whining Room on Meta Stack Exchange Chat, 20 hours ago, by Unihedro
AAAAAAAHHRGRWGSNHFGADF (bam) RHGJURHGGJHHHHHHHH (crash) QUHWOUGHJGKJJ
 
Hangout reminds me that its been a long time we actually had a hangout session :/
 
1:57 PM
Yeah, let's have a totally pointless one right now! I'm writing a SE chatbot in JS.
The background playlist is going to be a problem shortly though. xD
 
as a noob programmer Ive learned so far that organising my code will help me discover my problems
 
^^ true that
 
are there any other underrated pieces of advice y'all can give me
 
Read code by others.
 
@rubin.kazan Use a good editor.
 
1:58 PM
School reacquires us to use NetBeans
 
Always let IDE format the code for you. then copy and paste it ;)
 
@rubin.kazan You can use a proper IDE at home and Netbeans at school.
 
@rubin.kazan NetBeans isn't bad. Learn to use it to your advantage.
 
I used to code a bit of C back in the day and i just did that in notepad, much preferred it
 
Also, advice: Don't rely on the obsolete technologies that your school delivers.
 
1:59 PM
@rubin.kazan Give your variables good names.
 
for example: JSP
 
JSP?
 
@rubin.kazan And don't start your variable names with an upper-case letter.
 
fge
Java Server Pages
 
Why do all schools pressurize on NetBeans? It is the same with @Gem and now @rubin
 
fge
1:59 PM
Yes, I'm old enough to know what it means
 
@ItachiUchiha 'cuz it sucks
 
03:00 - 14:0014:00 - 00:00

« first day (1618 days earlier)      last day (3308 days later) »