Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Logged off everyone at once. (Score 2) 285

I had a job with a group managing shared minicomputers. One program I was writing was to log someone off after being inactive for some time, to free up a port for other users. So my loop to check every 5 minutes involved incrementing the time to wake up by 5 minutes on each iteration. Ie, it woke up at a specific time. So it would theoretically wake up at 12:00, 12:05, 12:10, etc.

The problem was that this operating system for some reason blocked when sending the alert message to someone's terminal. There was possibly some non-blocking way to do this with some extra effort, but it didn't seem like any additional effort was needed. However some user type Control-S on his terminal and then went off to lunch, probably typed it by accident. So a warning message went to his terminal, but blocked because of the Control-S. So the program was stuck until he came back from lunch and typed Control-Q. At which point this unblocked my program which then printed out one after the other on everyone's terminal in two buildings:
"your terminal has been idle and you will be logged off in 15 minutes",
"your terminal has been idle and you will be logged off in 10 minutes",
"your terminal has been idle and you will be logged off in 5 minutes",
"logging off due to inactivity."
This was shortly followed by a line of people coming into the office to complain, including my boss.

Comment Re:One stray ; burned a week... (Score 1) 285

If you're paying attention that is. You can edit code, save it, pop up the window and type "make", see stuff actually build, then hit your debugger and it's loading the wrong code. Happens if you're forced to use some lame IDE or debugger for the chip while using better tools to develop with (because every damn chip maker thinks they should make some proprietary half assed IDE rather than make open debugging tools).

Comment Re:One stray ; burned a week... (Score 1) 285

I stick with the ";" for loop bodies but it's always on a line by itself so that it's obvious.
Another problem along lines with this is to not trust the indentation from other people's code. So you miss the ";" at the end of the line with the "while" because the indentation is fooling you. Some people just insist on their own indentation style even if the code above and blow it use different styles. I even had a boss once who cut and pasted code without re-indenting afterwords.

Comment Re:Compiler optimizer bugs (Score 1) 285

This is tough in college when it happens. No one believes the student who says things aren't working because of a hardware problem, the other students don't even believe it. There are a lot of software people who are trained to assume hardware never has problems; some even think operating systems don't have problems.

So in my class at school we always got the new minicomputers, the ones that had never been tested on a full classroom yet. One of them had a bug in a divide instruction, and when used incorrectly it would crash the machine. But the OS never used that instruction incorrectly. The problem was that this machine was used for the compiler class, and we were generating machine code directly. We were getting crashes which kicked off 30 students at once which meant that it very quickly became an issue to try and figure out what was going wrong rather than the usual practice of waiting and hoping it goes away. Eventually one student group figured out it must be them, because it always crashed when they executed their program and it was probably their code. Even then the system admins were dubious at first, because it wasn't the sort of thing to cause crashes. They did figure out which instruction it was though and everyone avoided it after that.

Comment Re: Why not just forgo paid content? (Score 1) 128

The government support of PBS is minor. The majority of funding comes from individual donors and corporate donors. Actually some of the biggest PBS supporters in congress come from sparsely populated areas, like Alaska, because such services like PBS and NPR are much more valued, even though such areas tend to swing towards limited taxation and limited government. And those are also the areas where most of the government support to BPS/NPR goes.

Comment Re:G+ isn't a failure (Score 1) 279

I had to turn off the "what's hot" feed on Google+. After last November's election is became dominated by hard left and hard right politics with no voices of reason. It went from having some occasional interesting things to see from around the web to utter crap. I have no idea how they decide what's "hot" or not, it did not seem like it was number of responses or +1s or reposts. And no advertisements really (except for the "Windows 10 is out!" fan posts which are really astroturfed marketing).

Comment Re:Technical superiority means very little (Score 1) 279

You could just overlap the circles. Have the "kitten pictures" circle if you like. Or make one giant circle instead. Or post to the world, but then that would be just a facebook clone with slightly less stupidity. Why create a circle for those you don't care about and pretend they don't exist when you can just ignore them?

Comment Re:Technical superiority means very little (Score 1) 279

This only makes sense in the world of 20 to 30 somethings who have never experienced the concept of privacy in their lives. Having some measure of being selective and reserved should be the default state for people (or at least those not in politics). The goal of Google+ I think was not to be a Facebook replacement, but to be an alternative. Thus you don't see mindless fluff every day about what someone ate for lunch.

Slashdot Top Deals

Neutrinos have bad breadth.

Working...