« first day (1617 days earlier)      last day (3307 days later) » 
01:00 - 20:0021:00 - 00:00

crl
1:36 AM
Jetty's httpClient seems actually better than apache's
 
1:53 AM
evening
 
Any survivors?
@Unihedro Alive?
 
Hey Joe
 
How are you?
I'm trying to help my son with his homework...
 
Doing fine ^^ What about you?
 
Tired...Frustrated
 
crl
2:03 AM
What is his homework about?
 
It's about Java. :P
  	@Test
	public void testVocabulary() {
		List<String> vocab = builder.buildVocabulary("text.txt");
		assertTrue( vocab.size() == 256);
		assertTrue( vocab.get(0).equals("a"));
		assertTrue( vocab.get(255).equals("younger"));
	}
 
crl
hehe, I wish I could have done programming at school
 
i have to get this test working for this
public class VocabularyBuilder {
	public String[] buildVocabulary( String fileName, int count) throws IOException {

		String[] vocab = new String[count];
		Scanner scanner = null;
		try{
			scanner = new Scanner(new BufferedReader(new FileReader(fileName)));
			scanner.useDelimiter("[\\.\\?!\",:;]*\\s+\"?");
			HashSet<String> wordSet = new HashSet<String>();
			while(scanner.hasNext()){
				String word = scanner.next();
				wordSet.add(word.toLowerCase());
				Arrays.sort(vocab);
			}
		}
			finally{
Back in my day programming consisted of BASIC...
Ideas?
 
@Joe'sMorgue Magic numbers :p
 
2:13 AM
can someone explain something to me
I'm on my MAC and I did the Java update in system preferences
it says I have v8 U40
yet java -version
shows 1.6
 
@Joe'sMorgue I do get that it's a test, but it's still using magic numbers.
 
What do you mean? Magic numbers? the static 256?
 
A magic number is basically a number you've pulled out of your ass. Where does it come from? What is it representing? Noone knows, it's not even a defined int.
Why is the vocab 256? What decides that?
How can you know that it will ever return true?
 
There are 256 words in the file...
 
Well, how do you know that? To anyone looking at the code, it's something you've made up.
That's the concept of magic numbers, in a test it's not as big of a deal
I think
 
2:18 AM
it is a random number set by my teacher idk why that particular number
 
Well, if you are going to make the test succeed, maybe you should make sure that that number holds true since - as I read it and I may be wrong - it will fail if the document is bigger or smaller than that
 
how would i set that
 
Well, I don't know the rules for the assignment so I can't say for sure, but you could do a word counter
 
however i get the code to pass for the test is fair game
I'm looking at this part:
  		List<String> vocab = builder.buildVocabulary("text.txt");
		assertTrue( vocab.size() == 256);
		assertTrue( vocab.get(0).equals("a"));
		assertTrue( vocab.get(255).equals("younger"));
To me, this says that the file must be 256, as in characters. Is that what the compiler is thinking here?
 
2:35 AM
No it's counting the amount of entries in the vocab list.
If the list is made up of separate syllables (chars) then it's counting that, but i understand it as it's counting words as strings
What the test you have is doing is that it first checks to see if the list is exactly 256 entries long, then it checks that the first entry (index 0) is the character "a", and lastly it checks that the very last entry is the word "younger".
 
i understand that i just dont know how to implement tht so the code would actually do that
 
Hmm
Not sure I get what you mean with implement. Because, that code to me is an implementation...
 
how in the original code would i set the list to only read 256 correctly
 
2:57 AM
It's better if you tell me more about the assignment, or else we'll have an XY problem
 
3:31 AM
@Joe'sMorgue Hey man! Long time no see..
@j0hnstew Update the JAVA_HOME
 
hey this is actually @joesmorgues son but idk if youd be able to help me with this?
 
3:49 AM
@Joe'sMorgue I kinda guessed that when it went from "I'm helping my sin with his homework" to "My teacher"
 
4:15 AM
@Joe'sMorgue heya joe's son
 
4:27 AM
@Joe'sMorgue Negative
 
Yay
One weekend ahead to code
 
4:43 AM
posted on March 28, 2015 by Artist

Well, I'd say I've been working hard lately. I've learned so much and things are becoming increasingly fun. Not to mention that I just started shallowly network for a job, and it's been way over my expectations result wise. I've been to two interviews for one company and I met one guy who wants to help me network with his contacts. And all this without showing a single line of code. We've talke

 
 
1 hour later…
looks like clickbait
 
6:28 AM
It's the hyper frequency. Doesn't work with digital devices, so the video is stupid.
Haha, they had to repost it to Youtube 6 times. xD
 
I have unusually good hearing; I can hear higher pitches than most headphones can produce :P
 
@Gemtastic Digital devices cannot produce the hyper frequencies. The description of the above video describes what hyper frequencies does, but it itself is a massive failure because it's a video without the capabilities of conveying hyper frequencies. There's the problem.
 
I wake up from mice screaming. It's noisy and loud to me but noone else hears it :P
 
:p
@Sword Ha, I've already downvoted several other videos from this channel before, by no surprise.
 
Oh, I'm just pointing my hearing out on the topic of sounds. I know what hyper frquency is
 
6:34 AM
Welp, misunderstanding there then. :p
 
It's ok ^^
My fault for blabberiung about a similar subject
 
 
1 hour later…
7:55 AM
morning
 
Morning!
 
hey uni, wazzup?
(check message history ^)
yesterday we were wondering if there's a simpler way to achieve this regex101.com/r/iA3nX1/2 but i don't believe so, correct?
 
@Worf language?
 
java regexes
 
fge
8:10 AM
Moo
 
hola
 
8:22 AM
Como estas tu
 
fge
@Unihedro did you see my last message?
 
Oh?
 
@Appu not spanish/portuguese xD
noob question. why doesn't the enum type have a static method for listing all the possible enum values?
 
As in getting values from an arbitrary enum type, instead of a known one?
 
oh, there's SomeEnum.values() but it's not in the documentation
 
8:30 AM
=javadoc Enum#values
 
@Unihedro Sorry, I can't find that method. :(
 
@kiheru no sorry, i mean getting a single enum own constants
 
=javadoc Enum
 
@Unihedro java.lang.Enum: This is the common base class of all Java language enumeration types. More information about enums, including descriptions of the implicitly declared methods synthesized by the compiler, can be found in section 8.9 of The Java™ Language Specification. (1/2)
 
@Worf np. you already found about values() anyway
 
8:31 AM
you see, not listed ^ :P
yes kiheru that seems it
 
Not in JDK code either.
 
I have wondered the difficulty of finding the documentation before too. Did not remember the function name for some reason, and had eventually to resort reading all the suggestions from the IDE instead
Probably missing because it's compiler generated, instead of coming from the base class
The documentation sucks anyway, whatever the reason
 
 
2 hours later…
fge
10:20 AM
yawn
 
10:33 AM
Morning
 
Morning..
seems DBZ is eating up most of my time
 
fge
10:53 AM
@ItachiUchiha what is DBZ?
 
Dragon Ball Z...
 
DragonBall Z
 
fge
Ah
 
Or Divided by Zero ;)
 
fge
Chuck Norris can divide by zero
 
10:54 AM
@ItachiUchiha I watch it while I code XD
 
!?
 
fge
.invokeExact() for the win
 
 
1 hour later…
12:01 PM
saying things and removing them eh?
 
It appears so.
 
trying to get the chat going?
 
I should have gone with the webb app :P
 
12:06 PM
@Gemtastic Meh.
 
I feel like I'm doing more GUI coding than anything else
 
WebGL rules
 
Anything GL rules according to you XD
 
hehe
 
GLs are Good Libraries.
Random star ftw. xD
 
12:10 PM
XD
 
fge
<--having fun with MethodHandles
@Unihedro waiting for the mail ;)
 
Working on it ;)
Totally not sidetracking :/
 
fge
Meh, if you want to work with me, sidetracking won't be an option :p
 
I know! But I also have other stuff going on, which is undesireable.
Me and reality, we don't really get along. :P
 
@Gemtastic are you doing web designing again?
 
12:26 PM
@ItachiUchiha No I am NOT doing webdesigning, I' still doing my app in FX
 
and that is taking time? I thought it was the easiest thing to do :P
 
I thought so too :P
 
fge
That reminds me, I need to learn about those bindings
 
JavaFX property bindings?
 
fge
Yes
Right now my code uses a s*load of lines to set the value of widgets etc
Since I depend on easybind I might as well just declare some Observables and bind to those
 
12:36 PM
hmm
My PR's are terrible otherwise I would have helped :P
 
fge
here for example
 
12:56 PM
Morning, Java!
 
Morning, @Michael!
 
fge
Good morning milord
YAY
MethodHandle rocks
 
Morning all
 
Mrng!
 
Morning @Itachi!
 
Good afternoon guys :)
 
@MaartenBodewes Morning!
 
@MaartenBodewes Uhh, it is most clearly morning... xD
@fge This is SO. John Skeet jokes only please.
 
Shouldn't that be Jon Sceat?
I mean, if you're going to misspell Jon's name, do it right :)
 
fge
That is Jon indeed, not John
 
1:17 PM
Anybody here working with WindowBuilder on Eclipse?
 
Please accept my humble apologies, Jon. For I am not worthy to even speak of your name.
 
@MaartenBodewes No, Jon Skeet...
 
fge
Well, however misspelled we did recognize the guy
 
Window Builder? Thats Swing. We dont do Swing here
 
@ItachiUchiha I do... >.>
 
1:18 PM
Swing rules :p
 
But I write my Swing code by hand.
 
I use swing, but not WindowBuilder
 
No it does both, it comprises of SWT designer & Swing designer
 
@Michael Ahh. You still in here. I thought you left for lunch to never come back :P
 
I was hoping to keep to Eclipse for my dev environment, but the GUI component seems still not stable.
Lunch, now there's a thought...
 
1:20 PM
@ItachiUchiha My famous last words...xD
 
I know ;)
 
GUI builders seem pretty unpopular anyway among those who know anything about GUI coding
 
Yeah, maybe I'll do it the old fashioned way. Type and try.
 
Thinking before typing reduces the need for trying
 
@kih
@kiheru I wasn't excluding that particularly :)
 
1:23 PM
:-P
 
The project I have to rewrite also uses hibernate. Strangely enough I found SQL injection possibilities straight away - doesn't hibernate protect you a bit against those?
Could be a hand written SQL query though...
 
Depends on how it's using Hibernate, I suppose.
 
@Michael yeah, I guess it's just using it for marshalling the data, not for the queries
 
Ugh. Eclipse crashed on me again. And all I did was scroll down the file list. -_-
 
GG
 
1:30 PM
@Michael in nav?
 
@MaartenBodewes Then that certainly opens up the possibility for SQL injection.
@MaartenBodewes Yeah, the "Package Explorer" view. I think it's my JVM because Eclipse works fine on my Mac.
 
Code looks good, but it wasn't written by our most bright dev :P
 
It's buggy in a lot of other ways too.
When you scroll horizontally in an editor window, it doesn't always update the view right, so you get this blurry mishmash of text.
And it crashes when you use the Refactor menu to rename a variable.
 
Hmm, I'm never experiencing that, what kinda environment is it? Sounds like a graphics issue
 
I'm running CrunchBang linux.
OpenJDK VM
Also, sometimes all keyboard shortcuts just randomly stop working.
I think my netbook is possessed.
 
1:36 PM
Didn't hear about crunchbang. Could be that the Eclipse SWT has stability issues on that platform - I cannot see why rename would crash the entire IDE otherwise
 
lolz
 
@MaartenBodewes Hmm maybe.
 
Ah, yes, possession is more likely, I agree :P
 
May be a witch has got around your notebook with some of her black magic ;)
 
Yeah...
 
1:38 PM
On my nice new SL300 Ubuntu crashes now and then. Or X anyway. It's all nice and dandy when your kernel is stable, but that doesn't mean much if all your applications with windows are taken out ...
 
Haha
 
(and since xterm is also X ... your console is also likely to crash anyway)
You should take "nice new SL300" with a grain of salt :)
 
Linux has never been known as a desktop operating system...
Its main strength is on the server-side.
 
fge
prods @Unihedro
 
@fge Hello?
 
fge
1:42 PM
@Michael I have used Linux as my DE for more than 10 years without a problem ;) Nearly 20 years in fact
@Unihedro mail :p
 
kk
 
@fge Nice
 
I'm running it on a laptop and PC now for year, although my house still doesn't have a desk for the PC, so it is mainly sitting still
for yearS, my keyboard is getting funky
I'm planning to use Windows though and run the dev environment in a VM
 
@MaartenBodewes So you have a...floor computer? xD xD
 
Yeah. Mainly to get better screens and better keyboard. When I bought it 8 GB of RAM was quite expensive for laptops too.
Assembled it really :)
 
1:51 PM
Ah, nice.
 
My SL300 is from 2008, but it runs on 4GB and Intel G2 SSD - 7 sec. startup time. My i7 at work is 16 times faster though
But it runs Eclipse well
 
My netbook boots up in about that amount of time. It has a SSD too.
SSDs are super fast. On my netbook, the CPU is more of a bottleneck than the SSD.
 
Until you install McAfee of course, as they did at work. < 1 MB/s unzipping.
When I first tried unzipping Eclipse on my laptop I was very disappointed. I was waiting and waiting for it to be finished, only to find out it did it under 1 second so I was already looking at the prompt :)
Anybody still developing without SSD is wasting time.
 
Wow.
 
New NVMe have transfer rates at 1.5GB/s (yes, that's a big B)
But I'm wasting time too, I'll take a look at one or two crypto questions and log of (I can at least beat Jon at those :P )
 
2:06 PM
Well I am a guy without SSD's :/
 
beats @Itachi with a baseball bat
 
ouch that hurts
 
xD
 
ouch
stop it
 
Have you not seen "Rejected"?
 
2:08 PM
ouch
 
"Silly Hats Only"
Now that that's done, do you have an SSD?
 
rejected?
 
Rejected is an animated short comedy film by Don Hertzfeldt that was nominated for an Academy Award for Best Animated Short Film in 2000. It received 27 awards from film festivals around the world. Rejected has a cult following and has grown into a pop culture icon that is frequently quoted or referenced. In 2009, it was the only short film named as one of the "Films of the Decade" by Salon.com In 2010, it was noted as one of the five "most innovative animated films of the past ten years" by The Huffington Post. This short is most likely the most famous animated short Hertzfeldt has made. ��2...
 
lolz
How did it won the oscar? Its so gross :S
 
No idea...haha.
 
2:36 PM
 
I'd go for the VS if somebody offered me a good job there :P
(VS = Verenigde Staten = United States)
Nah, first have to finish my house here.
"Holy cow! It's Java! Definitely our cup of tea." Come again? Cup of tea???
 
@MaartenBodewes Yes?
 
I'll send you some over :)
 
2:52 PM
@MaartenBodewes Where do you live?
 
Haarlem, NL
(Harlem NY is named after Haarlem)
 
Cool
 
Cool is currently the correct word :)
Freezin' would be another, windy and wet.
 
just focused this room tab. i don't know why but i thought you were talking of a woman
"windy" made me laugh
 
you must have confused "windy" with "cindy" ;)
 
2:57 PM
Yeah, not my native language, sometimes I still make mistakes.
 
@Worf Kaplah!
 
@MaartenBodewes your english is fine, it's just my mind. windy in uk is someone that farts a lot :D
@Michael nuqneH!
#awkward
 
Looking up the thesaurus I'll probably have to go for windswept, drafty or tempestuous :P
 
@Worf :D
 
chat.stackoverflow.com/rooms/139/conversation/watthe bookmarked for future generations. what's wrong with me? :D
 
3:04 PM
OH, no.
 
Too late, the 2 minute grace period is finished and you can't delete the messages. xD
 
@Maarten's legacy...xD
 
I've written worse things online :P
 
moving on! question about naming, what's the setter named for boolean properties? .isEmpty() .setIsEmpty(v) || .getIsEmpty() .setIsEmpty(v) || ??
 
"is" is a prefix for condition values...
 
3:09 PM
yes... so? if(x.isEmpty())
 
Am I not clear enough? "is empty" denotes a condition, "set is empty" denotes setting a condition.
 
so the first is correct?
for consistency, wouldn't you always use getIsSomething() getHasSomething() getContainsSomething()? this is my question
are there conventions for this?
 
Yeah but no one follows them so just use whatever combination that's readable.
Here's the one on Oracle, but it sucks. There's also a proper definition somewhere. oracle.com/technetwork/java/index-135089.html
 
it's something, lemme read it - even if just for inspiration - thanks ;)
 
fge
The next version of sonar-sslr-grappa is gonna rock
 
3:15 PM
I'd vote for isEmpty(), it is compatible with Beans and is most clear
(not that I like beans, but whatever)
 
and overload isEmpty(bool isempty) maybe? or would you have setIsEmpty(bool value) ?
 
I would use just empty() if it's not a bean.
 
fge
Beans or whatnot, what matters is that the method name is readable
 
I mean, what does empty(false) do? Don't you need to fill it with something specific?
 
empty() could mean also clear() so it's not clear() :P
 
3:25 PM
clear() could work.
 
If the method returns cached or neglible values, use isEmpty - if it computes whether it's empty, use getIsEmpty or checkEmpty.
18 mins ago, by Unihedro
Yeah but no one follows them so just use whatever combination that's readable.
 
To make matters more complicated: you may just want to create a new instance instead. Clearing is mostly interesting for something you want to reuse, but not everything is should be considered for reuse.
-is
 
fge
3:40 PM
You are overthinking things
Just KISS
 
^^^^
also don't abstract concrete stuff
 
fge
eyes @Unihedro
 
>_>
I'll be honest, I'm almost done crafting it together xD
 
4:36 PM
Off to lunch!
Walks off into the sunset on his horse, never to be seen again.
 
Bye!
@Michael Amusingly enough, that's what I think of would happen everytime you leave.
 
5:27 PM
o_O
 
Welp, RO only. Are you jealous? xD
 
cries and runs out of the room
T_T
 
Just to sate your curiosity:
 
\ o /
 
Neo
Hi
 
5:33 PM
Hi, program!
 
Neo
?
 
Hello
 
Heylo user!
 
I am trying out Maven for the first time, hoping I can get it to build :S
 
Uh oh.
 
5:38 PM
It works :D
 
in Tavern / TL Chess on The Stack Exchange Network Chat, 2 mins ago, by Unihedro
I really should sleep soon, it's 2am and I've been really productive today
Night!
 
fge
6:00 PM
@Unihedro OK, thanks!
(RO?)
 
Room Owner
 
Ok, so if I don't want to add external libraries to my Git repo. How does the user build my application without them using maven?
Is there some way to tell Maven, that it needs apache, log4j and junit?
 
yes
you need to add dependencies in the pom.xml
 
So just a url to the library, is that enough?
 
6:15 PM
you don't need any url if all your jars are present in the maven central
 
@loosebruce just compile it for them
 
@uni you should be sleeping
 
@loosebruce When you add a dependency to the pom.xml file, it automatically downloads it from Maven Central.
 
OMG........... @Michael is back from lunch!!!
 
It's pretty safe to expect other developers of a project to use Maven, or some build tool.
 
6:21 PM
Bites himself to check if he is dreaming
 
Is this real life?
 
anyone have much experience with virtual box?
 
The side effects of drugs :P
 
fge
7:01 PM
<-- still working
Damnit, I can't help it
 
@ita ... just don't ping me and it will happen
I'm still always watching though, even in my sleep ;P
 
fge
sigh Just go to sleep
 
check: obscure xkcd reference
 
fge
And as I said, electronic devices have an off button
 
7:04 PM
I haven't turned my phone off since I bought it.
(Yes, I did buy it myself.)
Charge frequently, little room of demand, etc.
 
Neo
7:21 PM
Hi, I'm facing an issue similar to this : stackoverflow.com/questions/… but the solution proposed doesn't work in my case
Actually I send a file through a form
the file is then read by a method in my web service and the method returns a json object (data extracted from the file)
and what I would like to do is to access this json from the page where the first form is located
so I guess I have to do a redirection after the form is submited
actually I want to come back to the page where the form is located after submitting it, then access the data and store it in a javascript array, the json data being sent at a particular URL
I'm using java in the backend with this framework : britesnow.com/snow/overview
has someone an idea ?
 
not the slightest idea, since there's no link to the question. not that I'd know anything about json anyway
 
Neo
here is the correct link : stackoverflow.com/questions/17880977/…
 
01:00 - 20:0021:00 - 00:00

« first day (1617 days earlier)      last day (3307 days later) »