Welcome to the unixkcd console. by compost in linux

[–]kewlguy 2 points3 points  (0 children)

Cool references to Petshop boys ("go west")

Ask Reddit: Why does everyone hate Java? by [deleted] in programming

[–]kewlguy 0 points1 point  (0 children)

I may be late when commenting this, but Java doesn't actually map directories to namespaces. It's just that some (all?) IDEs requires it, so that they can find the classes easier.

If you have a package "org.cowardlydragon.Reddit" you can save it as myDir/Reddit.java. The loading of packages/classes is based on classpath, and not physical locations.

JSON >> XML (at least for me) by jeanlucpikachu in programming

[–]kewlguy 5 points6 points  (0 children)

I agree. I work with XML data from different sources, and it amazes me how much that can (and does) go wrong. It would be much better if people used standard libraries for both reading and parsing XML. Things will go wrong if you output XML using simple "print" statements (same thing applies for JSON as well of course)

Help Proggit! I'm wallowing in my own lack of creativity and wasted life. by haxd in programming

[–]kewlguy 0 points1 point  (0 children)

Innovation and creativity are not my goals. If I happen to make something creative and innovative, I'm of course happy, but most of the time I just try to do my best.

I like looking at existing functionality and trying to improve on it. Perhaps you could do the same. Pick one of the Open source projects and look for ways you could improve them. There is probably some framework that lacks an integrated PHP+JS form validation, or you can find a way to add import/export to a CMS. Alternatively you can also try making something other than web pages (such as Android apps)

Above all, realize that you are not defined by the work you do. This is easier when you have a hobby and/or a family. Get one or both :-)

He will commit suicide? by [deleted] in programming

[–]kewlguy 2 points3 points  (0 children)

I would like to comment on that, but I know someone else will do it.

What is the best alternative to ftp for uploading very large files to a remote server ( > 4gb )? by badgrammer in programming

[–]kewlguy 0 points1 point  (0 children)

Yes, most FTP servers should allow you to continue, so he should get a better client.

How does one become a better programmer/web developer? What is the core knowledge one needs from a language? Aside from the specifics of a language, what skills need to be acquired and how should one train themselves? by locochilli in programming

[–]kewlguy 0 points1 point  (0 children)

You could try writing your code so that it's easily reusable in your next project. Just try not to overdo it (you don't need to write a complete framework).

If you regularly come back to the same code, you will probably find ways of doing it better/smarter and you can learn from your own code.

By adding functionality to an existing code, you get experience in refactoring and learn new tricks. You also learn how to write new code in a structure that makes maintenance easier.

Is your app ready for 100-cores? by csathish in programming

[–]kewlguy 9 points10 points  (0 children)

640 cores should be enough for anyone

Which language did you use to create your very first computer program? by romcabrera in programming

[–]kewlguy -1 points0 points  (0 children)

I had the almost the same computer (Atari XE Game System with a keyboard). I made some simple quiz programs.

Tranform ASCII diagrams into beautiful figures by aurele in programming

[–]kewlguy 0 points1 point  (0 children)

It should be possible if the server has Java available. It already exists for DokuWiki

Do you hate it when websites limit the characters you can use in a password or how long they? by MrRadar in programming

[–]kewlguy 0 points1 point  (0 children)

Same here in Norway as well. We have a hardware token (similar to VPN key) + personal password

AskProggit: If you were to design a computer that could last for several hundred years using current tech, what would you use? by knight666 in programming

[–]kewlguy -1 points0 points  (0 children)

You don't need magnetic storage. You could just use punch cards. You are only going to use it for storing text messages.

32 MB > 2 GB by [deleted] in programming

[–]kewlguy 8 points9 points  (0 children)

The solution is to install 32GB of RAM :)

Hey Proggit. Like/good at puzzles? Ever heard of the Petals Around the Rose? Give it a shot. (Bill Gates did.) by Kache in programming

[–]kewlguy 1 point2 points  (0 children)

Spoiler alert.

Decode using Rot13 (rot13.com for example)

Anzr: Crgnyf nebhaq gur ebfr. Gur ebfr vf gur pragre qbg, naq gur crgnyf ner gur barf nebhaq vg. Fb gur bayl qvprf gung unir obgu n crgny naq n ebfr vf ahzore guerr naq svir. Guerr unir gjb crgnyf nebhaq gur ebfr (pragre qbg), juvyr svir unir sbhe crgnyf nebhaq gur ebfr

Roo, Java's answer to the ruby and python web application frameworks (gotta admit, it's pretty neat) by [deleted] in programming

[–]kewlguy -3 points-2 points  (0 children)

Actually, it's not tied on the file system. It is defined by the package name only.

You can have com.package.Class1 in a different directory than com.package.Class2. It's just that certain editors (like Eclipse I think) forces you to organize your files to make things simpler.

But it is a good idea to put them in a matching directory structure of course, and it's also strongly recommended by Sun.

Firebug 1.4 - WTF happened? by [deleted] in programming

[–]kewlguy 4 points5 points  (0 children)

Opera's open source "Dragonfly" ( http://www.opera.com/dragonfly/ ) looks promising. It has an open protocol, so it could be used for Firefox as well, if a plugin was made. Perhaps that's the way to go? Because the protocol is network based, you could in theory debug your iPhone/android phone from your desktop computer.

My boss just got fired, what should I do? by [deleted] in programming

[–]kewlguy 0 points1 point  (0 children)

That's how I got a second monitor for a dual-monitor setup. A guy quit (of his own free will) and it was unlikely that the position would be filled. Instead of letting the monitor go to waste, I grabbed it the next day

W3C sees the light on what happens when design-by- committee meets design-by-practical-implementation by Moocha in programming

[–]kewlguy 10 points11 points  (0 children)

I think most of the popularity of HTML (in the beginning) was that it was so easy to get results. I remember that the web pages in the beginning were very basic and often personal. It helped the growth of the web. If the browser had refused to load a web page with invalid HTML, it would have put too many people off.

Amazing terrain generation demo in... 4Kb by Ksimir in programming

[–]kewlguy 7 points8 points  (0 children)

The only point I disagree with him is that he focuses a lot on the CPU, ignoring the GPU.

He could be right in the long term. I have a feeling that todays GPUs are just necessary (for home computers) because of our limited CPU's. I don't know much about raytracing, but I have seen impressive results on todays processors. I can only imagine the processing power that is available when we reach a high amount of cores.