Search found 32 matches

by Soljer
Tue Apr 06, 2010 9:47 pm UTC
Forum: Coding
Topic: a simple file compression
Replies: 7
Views: 1396

Re: a simple file compression

Briareos wrote:Run-length encoding? Huffman trees? Lempel-Ziv? (To be fair, I know these in an information-theory context, and cannot speak as to ease of implementation.)


L-Z and Huffman are pretty easy to code up in a few hours.
by Soljer
Mon Mar 22, 2010 3:42 pm UTC
Forum: The Help Desk
Topic: [MAC] After enabling root, sudo doesn't work
Replies: 13
Views: 4425

Re: [MAC] After enabling root, sudo doesn't work

Is it possible that an erroneously created account named 'root' could be the problem? For example, if an account named root was created with an ID of less than 500, it wouldn't show up on the account list. Perhaps 'sudo'ing uses the permissions of the created and malformed root, rather than the 'rea...
by Soljer
Fri Mar 19, 2010 4:18 pm UTC
Forum: The Help Desk
Topic: [MAC] After enabling root, sudo doesn't work
Replies: 13
Views: 4425

Re: [MAC] After enabling root, sudo doesn't work

This happened after installing logKext - I was concerned someone else might have been using my computer without my knowledge, so I wanted to log the keyboard. I enabled root as another measure in case they did something to my normal administrative account. Now, trying to sudo logKextClient tells me ...
by Soljer
Fri Mar 19, 2010 1:33 pm UTC
Forum: The Help Desk
Topic: [MAC] After enabling root, sudo doesn't work
Replies: 13
Views: 4425

Re: [MAC] After enabling root, sudo doesn't work

No - even logging in as root doesn't appear to give me actual super user access.

Using sudo whoami returns root as it should.

Using su, logging in, and trying to do anything presents the same problems as sudo - it asks for my password, accepts it, but doesn't seem to grant me elevated privileges.
by Soljer
Fri Mar 19, 2010 4:33 am UTC
Forum: The Help Desk
Topic: [MAC] After enabling root, sudo doesn't work
Replies: 13
Views: 4425

[MAC] After enabling root, sudo doesn't work

Essentially, exactly what the topic says. sudo doesn't seem to work after I enabled the root user. visudo tells me I don't have permission to access /etc/sudoers, and using sudo won't even allow me to delete files in certain directories (even though I'm logged in as an administrator). I tried disabl...
by Soljer
Fri Nov 06, 2009 1:25 am UTC
Forum: Logic Puzzles
Topic: 12 Craziest Google Interview Questions
Replies: 67
Views: 13683

Re: 12 Craziest Google Interview Questions

Here is my first attempt at a few of them: 1. Assume that we're talking about a normal school bus (not a short bus, or some sort of extra-sized one) and that a school bus is around eight feet wide. There are around twenty four seats if I can remember back to junior high. Twelve on each s...
by Soljer
Thu Nov 05, 2009 11:48 pm UTC
Forum: Logic Puzzles
Topic: 12 Craziest Google Interview Questions
Replies: 67
Views: 13683

Re: 12 Craziest Google Interview Questions

Some of them seem more like puzzles (I guess that's where some of the questions on the xkcd wiki came from), and some are more like interview questions to test the interviewee's 'personality.' Questions like "how many piano tuners are there in the world" aren't supposed to be trick questi...
by Soljer
Thu Nov 05, 2009 10:43 pm UTC
Forum: Logic Puzzles
Topic: Marble Dropping
Replies: 33
Views: 23438

Re: Marble Dropping

This is a pretty easy problem, and you can even generalize it to an arbitrary number of marbles. For 1 marble, you can't do better than a linear search. For 2 marbles, and n floors, drop the first marble at increments of root(n) - you'll make at most root(n) drops. Once the f...
by Soljer
Thu Nov 05, 2009 10:34 pm UTC
Forum: Logic Puzzles
Topic: 12 Craziest Google Interview Questions
Replies: 67
Views: 13683

12 Craziest Google Interview Questions

I'm sure many of you have seen this list before, and I know that some of these questions(or variants thereof) have even been posted on this board before, but I thought some of you might get a kick out of them, and I did a search and didn't find all of these, so here we are: Source: http://www.esarca...
by Soljer
Tue Oct 20, 2009 4:42 pm UTC
Forum: Computer Science
Topic: Data Compression Question
Replies: 22
Views: 3046

Re: Data Compression Question

On specific types of data, you can get arbitrarily close to 100% compression.
by Soljer
Tue Mar 17, 2009 3:31 pm UTC
Forum: Religious Wars
Topic: Opera, Chrome, Firefox, OR?
Replies: 544
Views: 223745

Re: Opera, Chrome, Firefox, OR?

tsevenhuysen wrote:I use Chrome because I can't stand the look of Firefox or Opera. I realize you can change the designs they use, but I still find them both incredibly ugly.


Firefox has a skin that will make it look identical to chrome, if memory serves.
by Soljer
Fri Mar 13, 2009 7:55 pm UTC
Forum: Computer Science
Topic: Computer Scientists
Replies: 51
Views: 7310

Re: Computer Scientists

Everyone knows the first words of the first Real Programmer: Let there be light! you know it occurs to me, is it blasphemous to compare God to a programmer or just a really good analogy? Don't worry -- programmers don't mind being blasphemed against. Much. You stole my reply. Word for word. :(.
by Soljer
Fri Mar 13, 2009 7:54 pm UTC
Forum: Coding
Topic: Coding Camp
Replies: 16
Views: 1935

Re: Coding Camp

I wasn't saying you should feel free to correct me, I was saying that the OP should. Obviously some people read it a little differently than I did. I didn't say that's wrong, but neither should you need to tell me to calm down for suggesting a different reading of it and asking if it wouldn't be wo...
by Soljer
Thu Mar 12, 2009 11:11 pm UTC
Forum: Coding
Topic: Coding Camp
Replies: 16
Views: 1935

Re: Coding Camp

When did this thread become about making games instead of about programming summer programs? Feel free to correct me but I don't think the OP said anything specific about wanting to make games. Plus, I'm sure he'll appreciate these pointers for how to learn these things on his own, but whether he c...
by Soljer
Thu Mar 12, 2009 10:07 pm UTC
Forum: Coding
Topic: Coding Camp
Replies: 16
Views: 1935

Re: Coding Camp

Java is a pretty good choice, it's simple, powerful, there are a bajazillion resources in the standard library. If you're interested in making a graphical game, java makes it dead simple. Also, there is Jython, which allows integration between Java and Python if you're interested in running the two ...
by Soljer
Thu Mar 12, 2009 9:58 pm UTC
Forum: Coding
Topic: So, me and my friend are working on this game still
Replies: 15
Views: 1761

Re: So, me and my friend are working on this game still

The problem with A* is that it assumes omniscience - is that really how you'd like your AI to behave?
by Soljer
Thu Mar 12, 2009 4:14 pm UTC
Forum: Computer Science
Topic: What does ^ do in java?
Replies: 19
Views: 5218

Re: What does ^ do in java?

I found one, as BigInteger.pow(int exponent ) Floating point arithmetic is both slower and less accurate than integer arithmetic. Math.pow is guaranteed to be accurate for integer inputs when the output can be represented as a double. And BigInteger is almost _certainly_ going to be much slower tha...
by Soljer
Wed Mar 11, 2009 11:37 pm UTC
Forum: Coding
Topic: help with basic java (if statements)
Replies: 33
Views: 2266

Re: help with basic java (if statements)

ash.gti wrote:Generally speaking recursion is always less efficient than iterating.


Tail recursion combines the efficiency of iteration with the simplicity of recursion.
by Soljer
Wed Mar 11, 2009 5:31 pm UTC
Forum: Religious Wars
Topic: Editors
Replies: 267
Views: 143177

Re: Editors

Windows:
Notepad++ For most code/general text editing
Eclipse for java
Microsoft Word for word processing

Linux:
Notepad++ through wine or gedit for code/general text editing if I have GUI
vim or emacs through the command line (I don't prefer one over the other)
Open Office for word processing
by Soljer
Sun Mar 08, 2009 11:39 pm UTC
Forum: Coding
Topic: C# vs C++
Replies: 40
Views: 5975

Re: C# vs C++

No offense meant, but you sound unnecessarily angry towards a language. If you don't hate the language you're working with, you don't understand it well enough ;-) Every language sucks, but each sucks for its own unique reasons. There is a far cry of difference between understanding the limitations...
by Soljer
Fri Mar 06, 2009 2:54 pm UTC
Forum: Religious Wars
Topic: Stephen Jay Gould vs Richard Dawkins: The Darwinian Wars
Replies: 93
Views: 22255

Re: Stephen Jay Gould vs Richard Dawkins: The Darwinian Wars

clueless wrote:
Rustyington wrote:He cherry-picks some of the weakest arguments for theism


Sorry for coming late to this dialogue but could you give some examples of these stronger arguments?



Seconded; I'd also like to sate my intellectual curiosity.
by Soljer
Fri Mar 06, 2009 2:38 pm UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

I mean, given the right sort of infinity, Turing machines can perform hypercomputation as well. Real numbers are just a very particular form of infinity (infinite precision). Excellent point, but I'm curious; while our brains run on pretty average hardware which is incapable of that sort of stuff. ...
by Soljer
Fri Mar 06, 2009 2:34 pm UTC
Forum: Coding
Topic: Absurd regular expressions
Replies: 37
Views: 6651

Re: Absurd regular expressions

Cheaters!

Try doing the specification using only formal regular expression operations. :twisted:
by Soljer
Fri Mar 06, 2009 2:18 pm UTC
Forum: Coding
Topic: C# vs C++
Replies: 40
Views: 5975

Re: C# vs C++

No offense meant, but you sound unnecessarily angry towards a language.

Maybe I have inferred something from your text you did not mean to imply, or maybe it's a 'religious war' thing that I just don't understand.

But, really, did C++ kill your dog?
by Soljer
Fri Mar 06, 2009 2:16 pm UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

That's the point entirely. I'm not talking about a turing machine simulating a neural network - it would be moronic for anyone to claim that a turing machine simulating a neural network were capable of hypercomputation - it'd contradict itself. I'm talking about an actual neural network - not a sof...
by Soljer
Fri Mar 06, 2009 5:49 am UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

That's the point entirely. I'm not talking about a turing machine simulating a neural network - it would be moronic for anyone to claim that a turing machine simulating a neural network were capable of hypercomputation - it'd contradict itself. I'm talking about an actual neural network - not a sof...
by Soljer
Fri Mar 06, 2009 5:43 am UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

Are you guys serious? Hava Siegelmann proved that Neural Networks are capable of hypercomputation nearly two decades ago. If it can be run on a computer, it is not capable of hypercomputation. Edit: From the wiki: Some models have been proposed, already by Siegelmann, such as neural networks with r...
by Soljer
Fri Mar 06, 2009 5:31 am UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

Are you guys serious? Hava Siegelmann proved that Neural Networks are capable of hypercomputation nearly two decades ago.
by Soljer
Fri Mar 06, 2009 5:04 am UTC
Forum: Coding
Topic: Can comments affect performance?
Replies: 19
Views: 3616

Re: Can comments affect performance?

In java, unicode escapes are converted to actual characters - even in comments. Thus, if you used the appropriate unicode escapes, you could actually end a block comment early (or get a new line for single-line comments) and execute commented-out code. I doubt that's the kind of answer you were look...
by Soljer
Fri Mar 06, 2009 3:04 am UTC
Forum: Coding
Topic: C# vs C++
Replies: 40
Views: 5975

Re: C# vs C++

Pray tell; what exactly makes C++'s OOP shit?
by Soljer
Fri Mar 06, 2009 3:02 am UTC
Forum: Computer Science
Topic: Artificial intelligence - Does boolean technology fail?
Replies: 130
Views: 15286

Re: Artificial intelligence - Does boolean technology fail?

I don't know whether it's been mention or not, but if it has, it bears repeating.

Neural networks are capable of calculating non-Turing computable functions. A neural net is actually more powerful than a Turing machine.
by Soljer
Fri Feb 27, 2009 6:33 pm UTC
Forum: Mathematics
Topic: So that's why math is awesome.
Replies: 19
Views: 2048

Re: So that's why math is awesome.


Go to advanced search