
Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Heh... yeah the second one (or first one) was supposed to have been INET_ATON().
-
I once wrote one in Standard ML as an extra optional assignment: http://daniel0.net/sudoku.sml And stripped off Danish comments that you probably can't read anyway + stripped sudoku generator (EDIT: well, you probably can't read the source code either, but I posted it anyway in case someone would be interested): http://daniel0.net/sudoku_no_comments.sml
-
They're in MySQL too, by the way: INET_NTOA(), INET_NTOA()
-
Then use a client that doesn't auto commit transactions so you can rollback.
-
Needed Help : Date Diffrence calculation
Daniel0 replied to inversesoft123's topic in PHP Coding Help
date_diff -
Uh... ip2long, long2ip
-
Are you serious? You believe you can write a better rendering engine than Apple's and Google's combined effort? Sorry, but that's just ridiculous.
-
Just to be clear, I'm not saying that having 4 GB memory is not a good thing. I'm just saying that it's certainly possible to get by with a lot less. Especially because memory is so cheap you might as well buy plenty of it.
-
Oh yeah, I might want to add this: daniel@daniel-laptop:~$ free -m total used free shared buffers cached Mem: 3964 1847 2116 0 490 621 -/+ buffers/cache: 735 3229 Swap: 4094 0 4094 So I'm only using about 735 MB memory for those who don't know how to read the output. And what is a decent OS, if I might ask? I'm way more productive on Linux with xmonad as my window manager than on Windows. I also know of several people who use Netbooks with only 1 GB memory, onboard graphics and Intel Atom processors. Different requirements for different people.
-
Mine only lasts about 2-2.5 hours I think. Unless you're one of those people who insist on playing games during lectures, that shouldn't be a problem. But why not let your friend's son set the requirements? He is the one who is going to use it, and if he is going to study computer science it's likely he already knows stuff about computers and has an opinion on all the Windows/OS X/Linux stuff. If it's purely for doing undergraduate CS things, you could probably get by with 1 GB of RAM, 80 GB disk space, on-board graphics card and low-end CPU. Any Linux distro would do fine with that, and if you choose a minimal window manager like xmonad you won't use a lot memory and GPU power on that. Of course if he wants to do more than just that, there is no way that computer would be adequate. Also note that computing power and battery life is often inversely proportional. Bottom line: Ask him for his requirements, not us.
-
Search all my posts in one board
Daniel0 replied to The Little Guy's topic in PHPFreaks.com Website Feedback
You can't because SMF is stupid. Try searching for *a*. That will get you past the three character requirement, and it's unlikely your post doesn't have an 'a'. -
Why do computer scientists often confuse Christmas with Halloween? Because Dec 25 = Oct 31. Two strings walk into a bar and the bartender says, "What can I get you?" The first string says, "I'll have a beerKJLASdp)8AIDnhas89d3"¤"#¤(/)a8dsd79". "Please excuse my friend," the second string says, "He isn’t null-terminated." And the obligatory one: There are 10 kinds of people in this world: those who know binary and those who don't. We also have some awesome songs in our songbook at the CS dept here, but they're all in Danish. I can't think of any more jokes right now.
-
It's because you're using output buffering. It's per definition not possible to send a header once the body in an HTTP response has been sent. Go read the RFC.
-
Can any one explain why xml is used instead of a database?
Daniel0 replied to tallberg's topic in Miscellaneous
A database is just a place where you store data. An XML file qualifies for that just fine. The word you're looking for is likely RDBMS (relational database management system). -
Computer science is not about programming. Look for some sort of software engineering program if you want to do programming. Have a look at the course listing on your local university/college and see what they offer.
-
There is a difference between just being inexperienced and saying "I don't care". Edit: Okay then, here is your help: http://en.wikipedia.org/wiki/Accessibility http://en.wikipedia.org/wiki/Unobtrusive_Javascript http://en.wikipedia.org/wiki/Progressive_enhancement http://en.wikipedia.org/wiki/Separation_of_concerns Now stop whining about the fact that I called it amateurish that you just say "I don't care" when people tell you it's bad practice.
-
I do. Blind people with screen readers do. ... and "amateur" is the word for people who don't code properly.
-
How many posts for titles
Daniel0 replied to thewooleymammoth's topic in PHPFreaks.com Website Feedback
If you want to see the post count, you can check out a users profile. It's only hidden from topic view. -
Releasing someone under the GPL license doesn't prevent you from taking money for script just either. Just saying... You can also charge for support contracts.
-
"Percent" means "per hundred", so what do you think you need to do? [math]\frac{1}{100} = 0.01 = 1\%[/math]
-
http://downloads.php.net/pierre/
-
Monit can monitor services' resource usage and send alert emails if they get too high. Munin can generate graphs over resource usage. Vnstat can generate bandwidth statistics.
-
You can try the math board on the XKCD forums. It's frequented by both amateur mathematicians and people who have a PhD.
-
Why was runescape and habbo hotel built in JAVA?
Daniel0 replied to Orionsbelter's topic in Miscellaneous
That's not true. PHP compiles your code into what they internally call "opcodes". If you use an opcode cache you can entirely skip the lexical analysis and parsing. Compiling doesn't mean turning something into a file that ends on .exe. A compiler is simply a program that turns some computer language into another computer language. Something that turns PHP into Perl would also be a compiler. The target language is entirely irrelevant.