Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Xbox One Set To Launch On November 22

Jarlsberg Discriminatory (184 comments)

Man, that's really discriminatory against the outlier territories. Just saying... I'm not that keen on buying a new console on launch day anyway. They usually crap out long before they should. The only launch day console I ever bought that has never had an issue is my PS3.

1 year,15 days
top

Google Releases a Web-App Case Study For Hackers

Jarlsberg Re:Jarlsberg (95 comments)

Everybody loves Jarlsberg. Especially me.

more than 4 years ago
top

Why Doesn't Exercise Lead To Weight Loss?

Jarlsberg Re:Do or do not: There is no moderation. (978 comments)

I also find juicing to be a fantastic way of consuming a lot of healthy vitamins and minerals. I make a veggie/fruit-juice every day consisting of ginger, carrot, spinach, broccoli, beet root together with apple, lemon, grape fruit and blueberries. Fantastic stuff.

more than 4 years ago
top

Why Doesn't Exercise Lead To Weight Loss?

Jarlsberg Re:Hackers Diet FTW. (978 comments)

You should reduce meal sizes rather than skipping them. Skipping meals is a bad plan for loosing weight.

more than 4 years ago
top

UK's Channel 4 To Broadcast In 3D

Jarlsberg Producing free 3D glasses (126 comments)

Sure, I'd like to see that.

Why don't just everybody produce thing for free?

more than 4 years ago
top

Xbox 360 Failure Rate Is 54.2%

Jarlsberg Re:Missing Details (607 comments)

You're using statistics wrong. Unless 96.2% have specified that they'll buy another, you cannot infer that from the number of people who refuse to buy another.

more than 5 years ago
top

Xbox 360 Failure Rate Is 54.2%

Jarlsberg Statistics I can believe (607 comments)

I've had three boxes, of which two have failed. One failed within months, the second just after the warranty expired. The third is still running, but for how long...?

more than 5 years ago
top

A Mathematical Model For a Spreading Zombie Infestation

Jarlsberg Re:Or just wait until winter... (121 comments)

The new norwegian zombie movies takes place in the winter, with nazi zombies crawling out of the snow.

more than 5 years ago
top

LucasArts To Re-Release Old Games Through Steam

Jarlsberg Extremely cool (147 comments)

Too bad the talent has withered away since they closed down their adventure division. Still got my Amiga and PC originals, but if they release all games in one box eventually, like the Orange Box, I'll get these enhanced versions.

more than 5 years ago
top

Sony Files Patent On "Any-Object" Motion Control

Jarlsberg Re:Patent number? (69 comments)

Yeah, it does. I read the write-up thinking that that it had already been approved, so now wonder I didn't find it. Thanks.

more than 5 years ago
top

Sony Files Patent On "Any-Object" Motion Control

Jarlsberg Re:Patent number? (69 comments)

Ah, didn't think of that. Thanks a lot for the link :)

more than 5 years ago
top

Sony Files Patent On "Any-Object" Motion Control

Jarlsberg Patent number? (69 comments)

Tried to find it here http://patft.uspto.gov/, but couldn't locate it. Anyone got the patent number?

more than 5 years ago
top

Open Source Search Engine Benchmarks

Jarlsberg Re:k (62 comments)

It was a foregone conclusion that lucene would trounce the others, if you ask me. And comparing sqlite vs lucene is slightly absurd, since most people with a clue already uses lucene on top of sqlite (and mysql as well) to get good search results.

more than 5 years ago
top

Enthusiasts Convene To Say No To SQL, Hash Out New DB Breed

Jarlsberg Re:Quit Whining (423 comments)

Yes, that's why I said you can use SQL syntax, but it's not a proper SQL database -- far from it. It's the simplest things that give it away, like the fact that you can define a CHAR field with 10 chars, and SQLite will happily store 255 chars in the field anyway ;)

But it is fast. Very fast. I've measured it, and compared it to proper databases. For my main web site http://www.magicode.org/, I use SQLite 3 with prepared statements. It's lightning. (Comments are stored in mysql5 though, as I access it through my admin, which is on another host, and I would have to ftp download and ftp upload the sqlite-base if I wanted to admin it remotely).

It's an alternative, and a pretty good one, I think.

more than 5 years ago
top

Enthusiasts Convene To Say No To SQL, Hash Out New DB Breed

Jarlsberg Re:Quit Whining (423 comments)

Well, that's why I am so in favor of SQLite. While it does use SQL syntax, in reality you're simply rummaging through a flat file with superspeed. I use SQLite on all my simpler web projects that doesn't need the advanced functions that you get with a fully fledged relational database.

more than 5 years ago
top

Universal Lands Rights To Asteroids Movie

Jarlsberg Re:Old news! (194 comments)

You loved Armageddon? Sheeeeesh

more than 4 years ago
top

Man Attacked In Ohio For Providing Iran Proxies

Jarlsberg Re:Waiting for it... (467 comments)

01110111 01100101 00100111 01110010 01100101 00100000 01100001 01101100 01101100 00100000 01100111 01100101 01100101 01101011 01110011

more than 5 years ago
top

New Super Mario Bros. Wii To Include Official "Cheat"

Jarlsberg Re:Is the really that new? (275 comments)

Yeah, but the no dying part made it more repetitive than it could have been, because you'd constantly try the same thing over and over until you succeeded. I say meh, the previous three were excellent, and I was really looking forward to the new one. A shame.

more than 5 years ago
top

New Super Mario Bros. Wii To Include Official "Cheat"

Jarlsberg Re:Is the really that new? (275 comments)

You can take it too far as well. The new Prince of Persia is going too far, in that you really can't ever die, and that gets boring real fast. Pity, because the previous Prince of Persia games were rather good.

more than 5 years ago
top

Opera Unite Web Server Benchmarked

Jarlsberg Re:Interesting benchmark (227 comments)

Haha, yeah, but it's still scheduled for release next week. And it's open source and free, so I'm not sweating about budgets or marketing.

more than 5 years ago

Submissions

top

Encrypt your text like Robert Patterson

Jarlsberg Jarlsberg writes  |  more than 5 years ago

Jarlsberg writes "Inspired by the recent news that the 200 year old cipher made by Robert Patterson for President Thomas Jefferson was cracked, Magicode.org has made a generator so you can create your very own ciphered text based on Patterson's original idea."
Link to Original Source

Journals

top

PHP Tutorial - Variables

Jarlsberg Jarlsberg writes  |  more than 5 years ago A variable is a means of storing a value, such as a text string or a number. In PHP you do not have to declare your variable, as it's automatically declared when you set it. Since you do not need to declare the variable, you do not have to specify what kind of data it contains either.

top

How to write a RSS feed with PHP

Jarlsberg Jarlsberg writes  |  more than 5 years ago If you have a web site or blog, it's important to spread the word, and what's better than a properly designed and updated RSS feed? Here's how to write a PHP script that fetches the last 10 items from a database source and writes it to a RSS-file.

top

Jarlsberg Jarlsberg writes  |  more than 5 years ago

Worth your while if you're interested in PHP development. First part in the novice series:

If you want to learn the basics of PHP, then you've come to the right place. The goal of this series is to teach you everything you need to know about PHP so that you can:

  • Create and design your own PHP project
  • Understand and customize PHP scripts found on the net
  • Become the ultimate PHP guru

top

Everything you wanted to know about Google Wave

Jarlsberg Jarlsberg writes  |  more than 5 years ago Is Google Wave the future of the internet? Google is working on a project that promises to revolutionize the internet and change the way we communicate. Here's a look at what they're planning.

top

Rewriting with Apache

Jarlsberg Jarlsberg writes  |  more than 5 years ago

At Magicode.org I've written short how to for configuring Apache with wildcard domains.

Setting up wildcard domains with Apache is easy peasy. Step one is configuring the A Record for your domain. Step two is configuring httpd.conf to accept wildcard via ServerAlias. Step three, and this is the tricky part, is setting up Apache's RewriteEngine syntax. At Magicode.org, you get the whole working setup.

top

A note on modulus

Jarlsberg Jarlsberg writes  |  more than 5 years ago

Using bitwise operators are faster than modulus operators, right? Apparently this is not the case with PHP.

At Magicode.org, I've taken a hard look at whether using a ternary operator is faster than using modulus. I entered into this thinking the answer was obvious, the bitwise operator would win, hands down. Turns out, it ain't so.

Running several loops in varying steps, the most intensive being a consecutive loop from 0 to 1000000 (million) showed that $i%2 was significantly faster than $i&1==0, being about 9% faster in most tests. The results and the script used to verify the results are available at magicode.org.

So, there you go folks, modulus wins.

Slashdot Login

Need an Account?

Forgot your password?