Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming

Journal Journal: Stupid comments in code! 1

So you have a method, say "getMessage()". Do you really think that writing a comment that says "gets message." adds any information?

Especially in languages like PHP where the parameters and return values can be fucking anything you decided to shit out of your fingers?

Portables (Games)

Journal Journal: Aww, crap. (GTA: Liberty City Stories)

First of all: The game looks promising. I've played maybe 2 or 3 hours, and so far the game looks very GTA3-ish. This is a good thing if you liked GTA 3 and are not bored by the whole GTA game concept by now.

The game has at least one new side job: The car salesman. You have to take customers out for a spin in one of the four cars they have chosen. Then you have to impress the customer. So far I've seen four types of customers: "go really fast", "go really slow", "drive over pedestrians" and "make the car roll (but make sure you land on your tires)." Another "new" job is "noodle boy", which is just the same as pizza boy in Vice City.

Oh yeah, and the cops don't forget your wanted level if you go to your safe house to save. That's definitely a plus for me.

The "Aww, crap" -part of the game is that it only supports ad hoc mode for multiplayer. I only know two people who own a PSP. And neither of them can play the game. One needs the older firmware to code for the PSP and the other needs it to run warez. And by warez I of course mean homebrew games.

User Journal

Journal Journal: Castlevania: Dawn of Sorrow

It fucking rocks.

Finally a game worth buying for Nintendo DS. Yes, it has some touch screen gimmicks, like you can select stuff from menus using a stylus (where the choices are maybe 8 pixels high), drawing magical seals to finish off bosses and destroying some blocks after you get the appropriate skill, but the main gameplay is old-school.

User Journal

Journal Journal: Delete temporary files in Windows using this script

I've made this handy script to delete the all kinds of unnecessary files from under each user's personal directory in Windows: http://koti.mbnet.fi/wheany/deltemp.cmd.

It deletes the caches of IE, Opera and Firefox, user-specific temp-folder, Windows's temp-folder and prefetch-folder and empties the recycling bins on the first four drives.

The script has been hardcoded to use C: as the system drive, so if your Documents and Settings -folder is on another drive, change the script. And you have to be some kind of super user to be able to access other users' personal folders.

Slashdot.org

Journal Journal: I'm a big boy now

Now I'm a true "grown up" slashdotter. I got modbombed yesterday! Apparently someone didn't like the devoid-of-content posts I've been making lately.

Movies

Journal Journal: The infinite joys of DVD region codes and "copy protection"

I have a DVD drive on my computer and on my PS2. I watch region 2 DVDs using the (unmodded) PS2. Any other region I watch on my PC.

I bought Walt Disney: One the Front Lines, a region 1 DVD, from Amazon. If I had watched it alone, I would have wathced it on my computer monitor. But since I wanted my friends to see it as well, I hooked my PC to the TV. This is where the problems started.

I tried to use PowerDVD to watch to movie, like I normally do, but it wouldn't play the movie, because my TV-out doesn't support Macrovision. Then I tried using Media Player Classic, but it said that the DVD had the wrong region.

About half an hour of googling later, I found a solution that worked: VideoLAN. We wee finally able to watch the DVD that I paid money for.

All these problems were caused by me paying for a movie. If I had just downloaded an Xvid DVD-rip, or a DVD image from the internet, or even ripped the DVD to an image on my hard disk, I would have had no problem playing it on my TV.

That is the reason I don't like copy protection schemes. They always screw the paying customer but do very little to stop actual copying and distribution.

Slashdot.org

Journal Journal: One solution to Slashdot splitting urls 2

It's pretty annoying when Slashdot adds those spaces into long urls that people have written in their posts. Makes copy-pasting the url a pain. I have one solution to the problem: A privoxy filter.

The version that I use has been tested with urls that have one space in them, but should also work with very long urls that have two spaces inserted in them. This should take care of a large majority of cases. There may be a way to make it work with any number of spaces > 1, but I really don't have the energy to optimize the regular expression.

The filter consists of these two lines (the page-widening filter screwed with the "pure" code)

s|http://(.{42})<nobr>(.)<wbr></nobr> (.{49})<nobr>(.)<wbr></nobr> ([^\s]+)|$1$2$3|sig

s|http://(.{42})<nobr>(.)<wbr></nobr> ([^\s]+)|$1$2$3$4$5|sig

The remaining spaces are supposed to be there, but if you want, you can replace them with \s.

Christmas Cheer

Journal Journal: Three-year-olds are happy with any christmas present 1

My 3-year-old twin nieces were visiting me today with my sister. They borrowed some cartoon DVDs, like "We love Mickey Mouse." I showed my sister how to play it on a PS2, because she was not sure if could use it.

Since Christmas is nearing, I asked the nieces what they had asked Santa to bring them. The first answer was "presents." When I asked if there was anything specific they wanted, the answer was "Mickey Mouse."

That's when I decided just to ask their parents what toys are absolutely forbidden (Nooo, not another plushie!) and buy something based on that.

Politics

Journal Journal: Voting in Finland

After reading about the problems with the election in the USA again, I wanted to tell you how voting works in Finland and what the ballots look like.

There are some images of the ballot, and the voting procedure here, but the text is in Finnish. Also, I found one photo here

Basicly, the procedure is this: 1) You prove your identity, get the ballot and get marked as having voted. 2) You go to the polling booth, write the number of your candidate (and nothing else!) inside the circle on the ballot and re-fold the ballot. 3) Go get your ballot stamped and drop it inside the ballot box.

If you are unable to cast your vote yourself, you can get a helper in the booth with you. You can either have your own helper, or you can use the official election helper present at the location. The helper you choose must not be a candidate in the election.

The numbers of all the candidates are on a poster in the polling booth. No canditate has the number "1", the first number is "2."

Well, now that I have already written that text, I noticed that there are English instructions on the site as well. Follow the links on that page for more info, if you're interested.

I'm still not going to delete the text now that I have written it, damn it.

Science

Journal Journal: Best research ever

Finnish Meteorological Institute finished a research recently that concluded that to have as many beautiful summer days during your vacation, you should have it between the beginning of June and the middle of August.

So basicly, if you want to have beautiful summer days during your vacation, you should have it in the summer.

Slashdot Top Deals

New York... when civilization falls apart, remember, we were way ahead of you. - David Letterman

Working...