Typically these actually use an infrared beam rather than a true laser.
You make it sound like a natural contradiction, I just wanted to point out that there are of course infrared lasers too.
Oh my $DEITY! You just took a number, like 290 million, and multiplied it by what seems to be the number four! This is unprecedented, what do you have over there to help you, a computer?! I'm shocked. Shocked, I tell you.
A "nice article" at Tom's? What's next, military intelligence and beautiful BASIC code? Now, I'm no native English speaker, but I always manage to find minor, I don't know, "bumps" in the language and grammar in articles at Tom's. The first paragraph in this article contains the sentence "They all pale, however, compared to Maxtor's monster, which has a full 300 GB of write space" which illustrates my point. Is "write space" typical usage? It doesn't seem familiar, at least not to me. I've more or less stopped reading Tom's for this reason, and because I find their format a bit too obnoxious.
Sure, strncpy() exists, but is has truly weird semantics in my opinion, I never use it as a no-overrun string copying function. For those, I prefer snprintf() if available, or just use glib and go for its g_snprintf() call. All of these, of course, are C. Oh, and for the size argument of these calls, I always try to use sizeof on the destination buffer, if it is an ordinary C vector. If it's on the heap, there's usually a variable holding the size from the allocation call anyway, and then that is used of course. Just my two hundredths of a currency unit.
I wasn't being complete since I wanted to, er, not sound too dorky. The sizeof operator takes a single argument, that's true. If the argument is to be a type name, such as int or your struct foo, then that type name needs to be a cast expression, which as we all know is simply the type name in parens. Using a type name without parens is, as far as I know, a syntax error.
Now, I know the code in the article is only sample code, and as such need not be perfect as long as it gets its point across. I'd say it does that just fine, it was an interesting read. But I can't help feel a bit saddened by code such as this snippet:
size_t len; char buffer[1024];/* must bounds check all user values */ if (SCARG(uap, len) > (size_t)1024)
return(EINVAL);
Here, the author needlessly repeats the "1024" constant, which introduces a fine opportunity to make an error by only changing the buffer definition and not the constant, later on. In my world, cases such as these is where you really want to use the sizeof operator, and simply write that check like so:
if (SCARG(uap, len) > sizeof buffer)
return EINVAL;
Also note that this gets rid of the cast, since the sizeof creates a value of type size_t. There are no parens involved, since neither sizeof nor return are function calls. This seems to be a matter of personal style, though. Of course, sizeofis properly used in the copying call, so I guess this is just a minor point anyway. I also suspect there's an off-by-one error lurking in there, but am not familiar enough with the OpenBSD copying semantics to be sure.
Can I add something to that list? If so, I'd like:
The ability to open a new browser window, without cloning the existing window on Ctrl-N!
Thank you. Whose freaking idea was that anyway, I've never wanted to clone a window, and I do my fair share of web browsing. It takes time, wastes network bandwidth, ignores my setting to have a blank start window, and is simply a pain in the rear whenever I browse using IE. Please, all Windows experts, how do you turn this off?
Isn't writing all about making the pen change direction? Things that have inertia typically resist having their direction of movement changed, at least that's the idea I have of the concept. So, I think in theory you need to work harder to write using a heavy pen. Still, I guess it's not that much work anyway, and a more solid feel might be comfortable.
If only there would be a free OS for MIPS I'd be a happy camper
Um, does it have to be an exclusive? That sounds weird. I'm pretty sure there are free OSs that build on MIPS, such as Linux and at least a couple of the BSDs... Right?
I'm no MP3-geek, but an Ethernet port did sound interesting so I clicked the link in the parent. I got the impression the Ethernet port is not on the actual player, but on a docking station.
The line-edges of the cube form a "Y" shape. Slick.
Agreed, that is kind of neat. I didn't even notice it though, since I was too confused by Y's logo's similarity to another related project'slogotype. Weird.
Maybe that's so. But at least you could cut the cost in half by realizing that you can build 8 GB from only four 2 GB modules! Amazing, huh? *Ducks*.;^)
I have, twice (once sitting in the audience when he spoke at a Swedish university, once at a book signing). I still recognize him , but I think he is, um, starting to look a bit more, um integrated into American culture, or something. *Ducks*.;^)
According to Swedish electronics press, PrintDreams are about to go bankrupt, they are unable to find the funding required to take the product to the market. Which is a shame, IMO, since it's such a cool concept. They have some prototypes, but nothing that is ready for mainstream sales, so I guess it qualifies as (thick?) vapour.
Um, scoop.k5.org seems to be solely about the development and use of Scoop itself... I would guess that makes its audience a bit smaller than that of Kuro5hin, so I don't quite understand the recommendation.
That's horribly buggy!! In C, main() returns int. And a function taking no parameters should be defined as (void), Since main() must take either zero or two arguments, your code is incorrect there, too.
No, since the Jerry-option only changes the view of the document, not the document itself. It's a setting in the program itself, not in the data it processes. If you load the same document in someone else's Word, where the option is turned off (or, indeed, print it to paper) it will not have a blue background. Geddid?
Um, if it's really going to be compatible with "old Amiga software", it better do The Right Thing when said software pokes $DFF180 and peeks $BFE001. Which I somehow doubt, I didn't see any register-level emulation of the original Amiga hardware listed in the specs... It'd be cool, though!:)
FireWire is a twisted-pair differential signal.
Just like USB, of course.
Re:Gnumeric is ok, but not THAT hot
on
Gnumeric Turns 5
·
· Score: 1
Since it's cool to pick nits in the Famous People's code, given an opportunity, shouldn't that name pointer be declared const? It sure looks like an input parameter in the original code linked to in the article blurb. Heh.
The superior tactile click of the IBM keyboard from the PC-AT era. I don't think these are around any more, and nothing still even comes close.
Since others have already pointed out current sources for this keyboard, and I can't really comment on that since I haven't ordered anything from them, I guess it's up to me to just point you to The Article, in case you hadn't read it. Whoa, that became a very long sentence.
Um, I don't think the actual idea under discussion here was changing the brand of the CPU (IBM in the case of the GameCube, a MIPS variety in the PS2), but actually removing it from the system altogether. Mm'kay?
Typically these actually use an infrared beam rather than a true laser.
You make it sound like a natural contradiction, I just wanted to point out that there are of course infrared lasers too.
I'm sure this is Melinda Gates' least favorite nickname for Bill...
It's like the oldest joke around, but... Isn't plain old "microsoft" worse?
Oh my $DEITY! You just took a number, like 290 million, and multiplied it by what seems to be the number four! This is unprecedented, what do you have over there to help you, a computer?! I'm shocked. Shocked, I tell you.
A "nice article" at Tom's? What's next, military intelligence and beautiful BASIC code? Now, I'm no native English speaker, but I always manage to find minor, I don't know, "bumps" in the language and grammar in articles at Tom's. The first paragraph in this article contains the sentence "They all pale, however, compared to Maxtor's monster, which has a full 300 GB of write space" which illustrates my point. Is "write space" typical usage? It doesn't seem familiar, at least not to me. I've more or less stopped reading Tom's for this reason, and because I find their format a bit too obnoxious.
Sure, strncpy() exists, but is has truly weird semantics in my opinion, I never use it as a no-overrun string copying function. For those, I prefer snprintf() if available, or just use glib and go for its g_snprintf() call. All of these, of course, are C. Oh, and for the size argument of these calls, I always try to use sizeof on the destination buffer, if it is an ordinary C vector. If it's on the heap, there's usually a variable holding the size from the allocation call anyway, and then that is used of course. Just my two hundredths of a currency unit.
I wasn't being complete since I wanted to, er, not sound too dorky. The sizeof operator takes a single argument, that's true. If the argument is to be a type name, such as int or your struct foo, then that type name needs to be a cast expression, which as we all know is simply the type name in parens. Using a type name without parens is, as far as I know, a syntax error.
Also note that this gets rid of the cast, since the sizeof creates a value of type size_t. There are no parens involved, since neither sizeof nor return are function calls. This seems to be a matter of personal style, though. Of course, sizeof is properly used in the copying call, so I guess this is just a minor point anyway. I also suspect there's an off-by-one error lurking in there, but am not familiar enough with the OpenBSD copying semantics to be sure.
- The ability to open a new browser window, without cloning the existing window on Ctrl-N!
Thank you. Whose freaking idea was that anyway, I've never wanted to clone a window, and I do my fair share of web browsing. It takes time, wastes network bandwidth, ignores my setting to have a blank start window, and is simply a pain in the rear whenever I browse using IE. Please, all Windows experts, how do you turn this off?Isn't writing all about making the pen change direction? Things that have inertia typically resist having their direction of movement changed, at least that's the idea I have of the concept. So, I think in theory you need to work harder to write using a heavy pen. Still, I guess it's not that much work anyway, and a more solid feel might be comfortable.
I'm no MP3-geek, but an Ethernet port did sound interesting so I clicked the link in the parent. I got the impression the Ethernet port is not on the actual player, but on a docking station.
Maybe that's so. But at least you could cut the cost in half by realizing that you can build 8 GB from only four 2 GB modules! Amazing, huh? *Ducks*. ;^)
I have, twice (once sitting in the audience when he spoke at a Swedish university, once at a book signing). I still recognize him , but I think he is, um, starting to look a bit more, um integrated into American culture, or something. *Ducks*. ;^)
According to Swedish electronics press, PrintDreams are about to go bankrupt, they are unable to find the funding required to take the product to the market. Which is a shame, IMO, since it's such a cool concept. They have some prototypes, but nothing that is ready for mainstream sales, so I guess it qualifies as (thick?) vapour.
Um, scoop.k5.org seems to be solely about the development and use of Scoop itself... I would guess that makes its audience a bit smaller than that of Kuro5hin, so I don't quite understand the recommendation.
That's horribly buggy!! In C, main() returns int . And a function taking no parameters should be defined as (void), Since main() must take either zero or two arguments, your code is incorrect there, too.
No, since the Jerry-option only changes the view of the document, not the document itself. It's a setting in the program itself, not in the data it processes. If you load the same document in someone else's Word, where the option is turned off (or, indeed, print it to paper) it will not have a blue background. Geddid?
But, er, that is still not an actual 1:1 screenshot, but a bit minified. Annoying.
FireWire is a twisted-pair differential signal.
Just like USB, of course.
Since it's cool to pick nits in the Famous People's code, given an opportunity, shouldn't that name pointer be declared const? It sure looks like an input parameter in the original code linked to in the article blurb. Heh.
Since others have already pointed out current sources for this keyboard, and I can't really comment on that since I haven't ordered anything from them, I guess it's up to me to just point you to The Article, in case you hadn't read it. Whoa, that became a very long sentence.
Um, I don't think the actual idea under discussion here was changing the brand of the CPU (IBM in the case of the GameCube, a MIPS variety in the PS2), but actually removing it from the system altogether. Mm'kay?