Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:laymen... (Score 1) 250

Declaring something void is certainly possible, at least when that something is the return type of a function. However, declaring something NULL would imply it having the type NULL, and in C NULL is a value, not a type.

Of course, in SQL you could say that you're declaring a column NULL (capable), but there you don't have "void".

Comment Re:Adjustable desk (Score 1) 204

I use a desk from ErgoMotion at work, and a similar (though larger, custom-designed) one at home. Wouldn't want to work without it. It's quick to change from sitting coding height to standing coding height to sitting reading height. Few seem to realise what a huge difference it is to simply be able to raise your desk a couple of inches when you're reading lots and not using the keyboard. Good desks aren't cheap, but they're not terribly expensive either - and they're worth every cent for my health! :)

Comment Will my generation have such a defining moment? (Score 4, Interesting) 248

Watching and listening to the lunar landing sends shivers down my spine. For all our cool tech these days, nothing compares to that moment, and I can't help but wonder if our generation will have such a defining moment. Right now the world seems too obsessed with "safe" and "profit", and appears to have lost the vision and drive to push our boundaries.

I wish we would have some leaders who would follow in the footsteps of "we do these things not because they're easy, but because they're hard."

Comment Re:wait .. (Score 1) 341

They get installed inline with the main house circuit breaker panel. Expensive.

It all depends on what level of protection you're going for. Protecting against a direct strike on your house would be excessively expensive for most people, if at all feasible (lightning nerds feel free to explain the massive EM fields and their air-ground-wiring interactions etc).

When we renovated our place (including fresh wiring throughout) I opted for an "industrial strength" surge protector mounted on the DIN rail in the main switch board. Back when I was doing the calculations for it, it should allow for an air-to-ground strike as close as a block away, and an air-to-supply-line strike twice(?) as far away. A strike like that would blow/exhaust the SPD, but also absorb the spike enough that my UPS doesn't fry, and the UPS in turn smooth out the remaining parts of the spike.

Things not behind the UPS are largely left to fend for themselves, except a few things like the TV which is on a power-board with a built-in surge protector (heaven knows how much help that would be, I don't even know if the label can be trusted).

Anyway, as I was saying, depending on the desired level of protection, it doesn't have to cost an arm and a leg. I only spent ~$350 or so extra to have the SPD installed. The electrician thought I was mad for going to such length in a residential place though...

Comment Re:our first solid metric (Score 1) 87

one liner is more than enough for any OS....
 
>> shutdown

Win7:
        C:\> shutdown
        Usage: shutdown [/i | /l | /s | r | /g | /a | /p | /h | /e] [/f] ...50 odd lines cut
        C:\>

MacOS X:
        # shutdown
        shutdown: NOT super-user
        # sudo shutdown
        usage: shutdown [-] [-h [-u] [-n] | -r [-n] | -s | -k] time [warning-message ...]
        #

Linux:
        # shutdown
        shutdown: you must be root to do that!
        Usage: shutdown [-akrhPHfFnc] [-t sec] time [warning message] ...10+ lines cut
        #

Win98:
        C:\> shutdown
        'shutdown' is not recognized as an internal or external command,
        operable program or batch file.
        C:\>

FreeBSD:
        # shutdown /sbin/shutdown: Permission denied.
        # sudo shutdown
        usage: shutdown [-] [-h | -p | -r | -k] [-o [-n]] time [warning-message ...]
        #

Given the above, I hereby declare the parent wrong. :)
Also, don't ask about Win98. Please.

Comment Re:Debunked (Score 1) 306

So they just "invented" a CGI script that essentially does:

#!/bin/sh
FILE="/path/to/sample.jpg"
XPIRE="110130"
NOW="$(date +%y%m%d)"
[ "$NOW" -gte "$XPIRE" ] && { echo "HTTP/1.0 404 Not Found"; echo ""; exit 0 }

echo "HTTP/1.0 200 OK"
echo "Content-Type: image/jpeg"
echo ""
cat "$FILE"
exit 0

only with more junk and requiring a plugin on the client side? Genius!

Note: This was totally dry-coded off the top of my head. Bugs and standards compliance failures likely. The whole idea didn't seem to warrant a proper implementation in the first place.

Comment Re:The key word is "balance"... (Score 1) 352

Unguessable insta-death is also extremely irksome. The original Alone in the Dark suffered from it in a bad way. Hey, I'm in a scary house. I have to go around opening doors... Woops, opening that door immediately drops me to a cutscene of my dying horribly, with no possible clues by which I could have inferred that it was different than any other door.

Oh come on! You've been having weird creatures attempt to break in through the attic window, and you then go and open the front door without even checking through a window on that side of the house?! That is not particularly smart.

(Alright, I made the same mistake too, and it took me a while to realize I could push the piano across to block the attic window... awesome game though!)

Comment Burn-out. (Score 4, Interesting) 997

Simple as that. That's of course assuming you could get the people to agree to it in the first place.

You can do long hours for a short period in order to get a particular feature out the door (but will have to give everyone plenty of time to recover afterward). Doing long hours on an open-ended schedule is just a burn-out disaster in the making. Of course, if all the developers quit, the company expenditure is reduced...

Slashdot Top Deals

"Engineering without management is art." -- Jeff Johnson

Working...