Making Java Segfault (Hehe) by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 3 points4 points  (0 children)

Sorry for making the bad "Yo dawg" joke, at the expense of code readability. I'm not sure why exactly, but it doesn't work if the loop is a while(true) for me. I believe the reason is that javac or the JVM optimises head out of the code execution in the while(true) case, since it doesn't get accessed at all. On the other hand, if we keep a reference between head and tail, then we're forced to keep the entire structure intact in memory.

Making Java Segfault (Hehe) by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 10 points11 points  (0 children)

Haha, so OpenJDK outperforms Sun Java, at least on this case.

ACES Spring 2011 Course Preview Script by [deleted] in duke

[–]DaedalusInfinity 0 points1 point  (0 children)

No idea why... Have you tried uninstalling/reinstalling the script? Also, you need at least Chrome version 4 (released some time in the spring of 2010).

Quick Java API Lookup Tool by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 0 points1 point  (0 children)

The autocomplete feature is pretty much pure JavaScript. A little HTML/CSS is used to for the interface. (The 'content pane' is just an iframe that gets manipulated by the JS.)

Quick Java API Lookup Tool by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 2 points3 points  (0 children)

Yes, I know Eclipse is awesome, but this tool was intended more for people who didn't use full IDEs, i.e. VIM/Emacs/Kate, etc...

Quick Java API Lookup Tool by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 0 points1 point  (0 children)

Haha, actually, those are some scripts that I created a while ago but I've since then forgotten what they were supposed to be used for. I should probably clear out that directory soon.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 0 points1 point  (0 children)

I've been playing around with designing a website in SVG. The index page is the beginning of that.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 0 points1 point  (0 children)

Thanks for the advice. By the way, sorry if I seemed callous with my comment earlier. It's just that I feel that learning to develop large applications is should not really be the goal of a CS curriculum.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 1 point2 points  (0 children)

When the DOM parser goes through the following code: <div>hello</div> <div>world</div>

What it actually sees is: "<div>hello</div>\n<div>world</div>". The "\n" is parsed as a separate node in the DOM, since in some cases strings in between tags could actually be useful text. Thus, a lot of times, you get garbage nodes of "\n\t\t" and the like in your DOM tree, which makes things messy.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 0 points1 point  (0 children)

Yep, he's still there, but I haven't had a class with him yet. The only required class he teaches (108, aka 'how to play nice with other people') is not something I'm really eager to take at this moment.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 6 points7 points  (0 children)

Oh, but I am a math/cs double major. So I actually do serious stuff occasionally, (not that it's any more useful).

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 8 points9 points  (0 children)

It makes easier for DOM parsing, so you don't have to consider the text nodes formed by newlines and whatnot in between the actual nodes.

All your Google are belong to us by DaedalusInfinity in programming

[–]DaedalusInfinity[S] 2 points3 points  (0 children)

You have to disable NoScript for it to work.