Search found 117 matches

by vatar
Thu Jul 08, 2010 7:12 am UTC
Forum: Coding
Topic: Object Oriented programming and relational databases
Replies: 9
Views: 2901

Re: Object Oriented programming and relational databases

Agree with Berengal, they might be using an ORM, like Hibernate, to lazily fetch data. Or not. Hard to say.
by vatar
Thu Jul 08, 2010 6:58 am UTC
Forum: Computer Science
Topic: Preparation for Theoretical CS in College
Replies: 8
Views: 2869

Re: Preparation for Theoretical CS in College

Agree. CS isn't really about programming, or even computers to an extent. It is discrete math, algorithms, graph theory, combinatorics, game theory (which ironically has little to do with games), etc.
by vatar
Sat May 15, 2010 5:43 am UTC
Forum: The Help Desk
Topic: Fun things to do with VM's?
Replies: 12
Views: 8788

Re: Fun things to do with VM's?

Set up a firewall by running IPCop in a VM and running all your network traffic through it.
by vatar
Sat May 15, 2010 5:28 am UTC
Forum: Mathematics
Topic: Show us your articles! Or what's your Erdos number?
Replies: 187
Views: 273271

Re: Show us your articles! Or what's your Erdos number?

My paper has been accepted to Congress on Evolutionary Computation 2010. That puts my Erdos number at 5.
Erdos -> Oved Shisha -> Nehad Morsi -> Etienne Kerre -> Martine De Cock -> me
by vatar
Tue Dec 08, 2009 4:09 am UTC
Forum: Computer Science
Topic: Source code for Java's Arrays.sort?
Replies: 14
Views: 11657

Re: Source code for Java's Arrays.sort?

Merge sort is stable, that might be one reason it was selected for Java. Also, quicksort has a worse Big O in the worst case, although in practice it is usually faster.
by vatar
Tue Dec 08, 2009 3:50 am UTC
Forum: The Help Desk
Topic: annoying search virus
Replies: 20
Views: 1978

Re: annoying search virus

by vatar
Thu Jul 09, 2009 3:32 am UTC
Forum: The Help Desk
Topic: Mainboard won't recognise Ethernet connection
Replies: 3
Views: 545

Re: Mainboard won't recognise Ethernet connection

Check the BIOS and make sure the onboard network card is enabled.

Also, if you are talking about internet, your speed is likely much less than 54Mbps. It would slow down intranet transfers.
by vatar
Fri Jun 26, 2009 6:23 pm UTC
Forum: The Help Desk
Topic: Scribus template
Replies: 0
Views: 563

Scribus template

I am looking for a good Scribus template for a conference poster. Does anyone have any recommendations?
by vatar
Fri Jun 19, 2009 2:45 am UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15053

Re: Artificial intelligence - Does boolean technology fail?

Artificial intelligence requires three values for boolean made decisions, rather than just true and false. For example, if a person comes to a fork in a road then they have a few questions to ask: - Do I know which way to go: true: go that way false: Do I know how to find which way to go: true: do ...
by vatar
Fri Jun 19, 2009 2:42 am UTC
Forum: Coding
Topic: Do you like documentation in code, and if so, how/when?
Replies: 44
Views: 7654

Re: Do you like documentation in code, and if so, how/when?

The problem with too much documentation is that documentation also has to be maintained. If you delete a variable, the IDE will tell you all the code it broke so you can fix it. It will not tell you all all the comments that are no longer correct. In most cases, I would rather just read the code nex...
by vatar
Tue Jun 16, 2009 8:52 pm UTC
Forum: Coding
Topic: Do you like documentation in code, and if so, how/when?
Replies: 44
Views: 7654

Re: Do you like documentation in code, and if so, how/when?

I maintain an application in Java that has been around for a decade or so. It irritates me to no end when people put comments like

//increment the variable
i++;
by vatar
Tue Jun 16, 2009 8:42 am UTC
Forum: Computer Science
Topic: Best Neural Network Books?
Replies: 7
Views: 3673

Re: Best Neural Network Books?

A Neural Network Primer, H Abdi
http://eebweb.arizona.edu/Faculty/Dornh ... tworks.pdf

An Introduction to Neural Networks, B. Kröse and P. van der Smagt, 1996
http://citeseerx.ist.psu.edu/viewdoc/do ... 1&type=pdf
by vatar
Tue Jun 16, 2009 8:08 am UTC
Forum: Coding
Topic: Do you like documentation in code, and if so, how/when?
Replies: 44
Views: 7654

Re: Do you like documentation in code, and if so, how/when?

I think Javadoc is the tool you are looking for. Look at http://developer.classpath.org/doc/java/util/LinkedList-source.html for some sample Javadocs. That type of comments can be rendered to html with the javadoc command line tool (might be a gui version too? Never used one). This makes it easy for...
by vatar
Fri May 29, 2009 11:10 pm UTC
Forum: Computer Science
Topic: Source code for Java's Arrays.sort?
Replies: 14
Views: 11657

Re: Source code for Java's Arrays.sort?

In Java, the Arrays.sort() methods use merge sort or a tuned quicksort depending on the datatypes and for implementation efficiency switch to insertion sort when fewer than seven array elements are being sorted.

http://en.wikipedia.org/wiki/Merge_sort
by vatar
Tue May 12, 2009 3:33 pm UTC
Forum: Coding
Topic: Compiling a java file from a java program.
Replies: 7
Views: 844

Re: Compiling a java file from a java program.

It can be done, but it probably shouldn't.
by vatar
Mon May 11, 2009 8:51 am UTC
Forum: Coding
Topic: Creating a Chess game in Java
Replies: 5
Views: 1524

Re: Creating a Chess game in Java

I wouldn't waste a lot of time with UI programming unless you specifically want to be a UI designer. Use xBoard/Winboard instead.
http://tim-mann.org/xboard.html
by vatar
Wed May 06, 2009 7:00 am UTC
Forum: The Help Desk
Topic: Ubuntu Headphone support
Replies: 9
Views: 1131

Re: Ubuntu Headphone support

That's odd: when you plug in headphones, it activates a switch in the sound card that redirects output from the speakers to the headphone jack. This should be completely independant of the operating system installed. Not really. Sometimes there is a Headphone Jack Sense setting. I think it depends ...
by vatar
Tue May 05, 2009 9:21 pm UTC
Forum: Coding
Topic: JDBC Help
Replies: 10
Views: 945

Re: JDBC Help

Sorry, but I have to.
http://xkcd.com/327/

I can't really read that, but I think you should be using an update instead of a select in your SQL.
by vatar
Fri May 01, 2009 11:57 pm UTC
Forum: Computer Science
Topic: Computer Science Colleges - A Mega-Merg'd Thread
Replies: 52
Views: 5799

Re: Choosing a graduate program: CMU INI MSIT, NYU MS in CS, UPe

Pick a thesis adviser, not a school. Find someone interested in what you are interested in.
by vatar
Fri Apr 24, 2009 4:14 am UTC
Forum: Coding
Topic: Question about Eclipse
Replies: 6
Views: 781

Re: Question about Eclipse

Look in eclipse\eclipse.ini -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256M -framework plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m Xms is the start heap size. Xmx is the max. Also look out for errant recursive calls, ...
by vatar
Fri Apr 24, 2009 4:09 am UTC
Forum: Coding
Topic: Question about Eclipse
Replies: 6
Views: 781

Re: Question about Eclipse

Look in eclipse\eclipse.ini -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256M -framework plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m Xms is the start heap size. Xmx is the max. Also look out for errant recursive calls, b...
by vatar
Thu Apr 23, 2009 5:21 am UTC
Forum: Coding
Topic: Fun with a course assignment
Replies: 12
Views: 1449

Re: Fun with a course assignment

Trivial, but worthwhile: write a JUnit test to verify that it does exactly what it is specified to do. Try to add duplicates, verify that it throws exception, etc.
by vatar
Tue Apr 21, 2009 8:25 pm UTC
Forum: Coding
Topic: Graduating in a year, what do I need to learn?
Replies: 18
Views: 2005

Re: Graduating in a year, what do I need to learn?

No, they don't. Version control comes in two varieties: open-source systems tend to be based around conflict detection and resolution ("checkout" means to grab a copy of the source to hack on), while closed-source systems tend to be based around locking and conflict prevention ("chec...
by vatar
Mon Apr 20, 2009 9:30 pm UTC
Forum: Coding
Topic: Graduating in a year, what do I need to learn?
Replies: 18
Views: 2005

Re: Graduating in a year, what do I need to learn?

The biggest things are being familiar with version control (Subversion/Git; businesses may use other proprietary systems, but they all have a similar API, checkin, checkout, etc.), and unit testing (jUnit, other language specific frameworks). Other frameworks that aren't generally taught in CS progr...
by vatar
Tue Apr 14, 2009 4:20 am UTC
Forum: Computer Science
Topic: Particle Swarm equivalence to Genetic Programming
Replies: 4
Views: 1296

Re: Particle Swarm equivalence to Genetic Programming

I agree with bencoder, Genetic Programming typically uses a tree structure, whereas Genetic Algorithms typically uses a string structure.
by vatar
Fri Apr 10, 2009 4:32 am UTC
Forum: The Help Desk
Topic: Ubuntu: cant find installed program? (Solved)
Replies: 5
Views: 951

Re: Ubuntu: cant find installed program? (Solved)

Other than using the package managers, which is your best bet, another method you might use to find any file, not only executables, is the locate command from the command line. You will usually want to run updatedb before locate, especially if it is a recently installed program.
by vatar
Fri Apr 03, 2009 4:09 am UTC
Forum: Coding
Topic: Python compiler?
Replies: 29
Views: 2581

Re: Python compiler?

Do you use an IDE for Java? Python is easy to addon to Eclipse with pyDev.
by vatar
Fri Apr 03, 2009 4:07 am UTC
Forum: The Help Desk
Topic: Live USB question
Replies: 5
Views: 621

Re: Live USB question

Use PendrivelLinux to create a Ubuntu thumbdrive.
http://www.pendrivelinux.com/ubuntu-810 ... m-live-cd/

I am able to access the files on it from Windows or Linux.
by vatar
Mon Mar 30, 2009 6:07 pm UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15053

Re: Artificial intelligence - Does boolean technology fail?

Artificial neural networks are pretty simple. Just a basic Turing Machine.
by vatar
Fri Mar 27, 2009 9:33 pm UTC
Forum: XKCD Meetups
Topic: Seattle area!
Replies: 149
Views: 74699

Re: Seattle area!

I'm in.
by vatar
Fri Mar 27, 2009 9:04 pm UTC
Forum: Your art and links
Topic: So I made my first website, help me make it better
Replies: 11
Views: 2339

Re: So I made my first website, help me make it better

I'm not a big fan of the "Email: suburban eng.ex (at symbol) live.com"

Either put the real email address, or use a form, imho.
by vatar
Tue Mar 24, 2009 12:48 pm UTC
Forum: The Help Desk
Topic: SSH For a First-Timer
Replies: 20
Views: 2728

Re: SSH For a First-Timer

Psuedo_Bob wrote:if I remember correctly it said "Passphrase", which I took to mean the passphrase I put in to access it from other computers.

A passphrase is associated only with that specific key. It is not tied to any account password.
by vatar
Sun Mar 15, 2009 5:26 am UTC
Forum: Coding
Topic: My teacher is teaching HORRIBLE THINGS
Replies: 78
Views: 5845

Re: My teacher is teaching HORRIBLE THINGS

SirHoundalot wrote:It's perfectly valid to put script in the body of the document. In fact, Yahoo's performance team specifically recommend it

I usually don't take performance tips from people who use PHP. :)
by vatar
Mon Feb 23, 2009 6:44 pm UTC
Forum: Mathematics
Topic: Traveling across a square
Replies: 24
Views: 6763

Re: Traveling across a square

I remember seeing this problem somewhere as a teenager. Possibly in Asimov on Numbers?
by vatar
Fri Feb 13, 2009 1:16 am UTC
Forum: Coding
Topic: Hard Coding... why?
Replies: 12
Views: 1686

Re: Hard Coding... why?

Because they work for the same major aerospace company that I do that is bringing back lines of code as a measure of productivity?
by vatar
Thu Feb 12, 2009 7:09 am UTC
Forum: Coding
Topic: C# vs C++
Replies: 20
Views: 2608

Re: C# vs C++

That's what I meant to say. I am a Java programmer by trade. I have never run into a situation where Java wasn't fast enough, but another language would have been. I know that C and Assembly may be faster, but in the business world shorter development time and the built-in safety of VM/JIT are more ...
by vatar
Thu Feb 12, 2009 4:16 am UTC
Forum: Computer Science
Topic: Help understanding assignment.... Finished already, thanks.
Replies: 24
Views: 2593

Re: Help understanding (school) assignment....

Don't use == with floats.
by vatar
Thu Feb 12, 2009 4:10 am UTC
Forum: Coding
Topic: C# vs C++
Replies: 20
Views: 2608

Re: C# vs C++

I agree. Java and C# (and a slew of latest generation languages) are designed for quicker development time, and "good enough" execution time. If you truly need performance, and difficulty of development is less of an issue, use C or even better, Assembly.
by vatar
Sun Feb 08, 2009 9:20 pm UTC
Forum: The Help Desk
Topic: Dual boot: Vista Home Basic 32-bit + Ubuntu 8.10 32-bit
Replies: 8
Views: 904

Re: Dual boot: Vista Home Basic 32-bit + Ubuntu 8.10 32-bit

160Gb is the unformatted size. There is a certain amount of overhead for the file system index, FAT, or whatever that particular system uses. Perhaps having 2 file systems doubles that? You may lose some to being impractical to make partitions certain sizes; you can't have a percentage of a block. S...

Go to advanced search