I discovered the hard way that sometimes a call to a routine is actually larger that the code for the routine itself, at least using code warrior for the palm.
Does your compiler support the 'inline' keyword? If you are using C++ or C99, it supports 'inline'. If you are using 1990's C in a recent compiler, it probably supports 'inline' as an extension.
In fact I never create a new function/method if it's only going to be called from one statement.
Never? What about interrupt handlers, or other callback functions? Those are only going to be called from one statement, inside another function. And what if an embedded system (such as Game Boy Advance) has an area of slow memory and an area of fast memory? Sometimes, you want your main game loop to be in slow memory, with certain inner-loop functions (the audio mixer, etc.) in fast memory.
I've seen functions broken up like this where a subfunction is called within a loop, which demonstrably sucks CPU cycles (pushing and popping registers over and over again is no way to optimise).
Many architectures (x86, arm, mips) place the first four arguments in registers anyway.
Using the WINE binary compatibility layer, an x86-based GNU/Linux system running an X11 server can run many applications designed for Microsoft Windows.
So you use Mac OS X. That operating system may implement most of the Single UNIX Spec, but I don't see it listed as a UNIX system.
Either way, I don't see "go out and buy a Mac" as a cost-effective solution to the personal finance software problem. The original poster (pstreck) mentioned Wine, implying that (s)he used an x86 computer. For the price of Mac OS X (and its $799 hardware key), pstreck could just go out and buy a hard drive and a copy of Windows XP Professional and install Quicken on that.
could someone explain how a microprocessor is administered?
In a large cluster, the question is not whether a processor has failed, but how many have failed. Such clusters generally make it possible to swap out a failed processor while the program is running. Chips that last longer will reduce the dependency on expensive technicians to keep coming in and swapping in new boards.
Does that mean that we need to evolve even bigger heads with visible veins for cooling to go beyond our current capacities? I'm thinking about Uncle Scrotor from This Island Earth, as seen in the MST3K movie, of course.
No. The veins will probably not be too visible; otherwise, a blow to the head would be more likely to draw blood. The influence of maternal instincts will demand cute babies. I predict that by the year 802701, humanity will have evolved into at least a race that looks like Precious Moments people. (I'm not entirely sure whether, as H. G. Wells predicted, there will exist another parallel lemur-like race that lives underground and eats the PM people.)
Mu-tant upgrades for all! Leaves only the fresh scent of pine!
Or, after too much mutation and crossing over, pine and human genes come together and create a little woodenboy.
Your parody of the classic "BSD Is Dying" story forgets 1. that Morpheus is now part of Gnutella, and 2. that WinMX has become exceedingly popular because it's essentially the same as the old Napster, but completely decentralized.
I presume that you spell potato this way since your former VP did...
Myth. Fact is that former US VP Dan Quayle was substituting for a school teacher who had made out a spelling lesson plan with a mistake. Quayle merely followed the plan.
To summarize: British "chips" == American "french fries." American "chips" == British "crisps." Geek "chips" == semiconductors. BUT notice that Pringles® potato crisps are called "crisps" worldwide.
The fair way would be to track what people are downloading, and dole out the money proportionally based on that
The American Society of Composers, Artists, and Publishers solved this scaling problem a long time ago. ASCAP takes a 24-hour sample of each radio station's airplay. Not all radio stations are monitored at the same time.
Kazaa and Verizon could do something similar, by setting up some high-capacity super-nodes and logging all downloads started through those super-nodes. It wouldn't catch all downloads, but it would catch a significant sample from which Kazaa could compile relevant statistics and cut checks to ASCAP, SESAC, and BMI.
At least they don't put advertisement in the middle of your video-game playing... yet...
I take it you've never played any of the Ninja Turtles games. In particular, TMNT 2 for NES had "Pizza Hut" all over it. More recently, Dole (banana company) sponsored Sega's Super Monkey Ball.
Perhaps it is simple a case of the technology being too young to actually realize the 33% expected increase in performance
The sustained transfer rate of a hard disk cannot exceed the amount of data per cylinder times the rotation speed of the platter. In addition, HD designers are not easily going to overcome the fact that it takes a while to move the head from the inside to the outside of the platter.
130fps on a monitor refresing at 60Hz? Every second frame gets chucked.
Or blended. Some games can use the OpenGL accumulation buffer to render several frames and provide a motion-blur effect that tricks the eye into seeing twice the FPS.
That is very cool, i'm impressed. The output looks like something an old dot matrix would have made. Am i right in looking at it that the text is made up like that, where each 'row' is a sin wave at some frequency?
Correct. Look at the source code (in the zip file) to see how I did it. You can also use TED to edit the font if you want.
I always wondered if it would be possible to do the opposite of a spectrograph.. take an image and convert it to a sound... I guess it is!
It's actually quite easy. Do the inverse MDCT (modified discrete cosine transform, an equation similar to the discrete Fourier transform) on each column of pixels.
If you want to put textual messages in a spectrogram, you can use this app.
Christian Music will have crosses, doves, and christian fish encoded into the signal, which will probably improve the music.
You could very well be right. Simple geometric figures, such as a cross made of band-passed noise, can be used as percussion, and a line drawing of a dove can easily be hidden in a bird call (heh).
but that, when translated to mp3, will crash your computer.
Not possible unless a buggy MP3 encoder passes such a file to a buggy MP3 decoder. Well-written codecs don't crash.
I discovered the hard way that sometimes a call to a routine is actually larger that the code for the routine itself, at least using code warrior for the palm.
Does your compiler support the 'inline' keyword? If you are using C++ or C99, it supports 'inline'. If you are using 1990's C in a recent compiler, it probably supports 'inline' as an extension.
In fact I never create a new function/method if it's only going to be called from one statement.
Never? What about interrupt handlers, or other callback functions? Those are only going to be called from one statement, inside another function. And what if an embedded system (such as Game Boy Advance) has an area of slow memory and an area of fast memory? Sometimes, you want your main game loop to be in slow memory, with certain inner-loop functions (the audio mixer, etc.) in fast memory.
I've seen functions broken up like this where a subfunction is called within a loop, which demonstrably sucks CPU cycles (pushing and popping registers over and over again is no way to optimise).
Many architectures (x86, arm, mips) place the first four arguments in registers anyway.
> .org's are supposed to be "non-profit!"
Like slashdot.org?
The .org domain is not restricted to non-profit organizations. The original domain rules stated that any "organization" could buy a .org domain. Besides, even if .org were reserved for non-profits, do you see profit here?
Does Linux support Windows yet?
Using the WINE binary compatibility layer, an x86-based GNU/Linux system running an X11 server can run many applications designed for Microsoft Windows.
Does Linux support blast processing yet??
"Blast Processing" is the name of the sprite engine that Sega used in Sonic 2 and Sonic 3 for Sega Genesis. Here are some Genesis emulators for UNIX and Linux systems. DGen is pretty good.
What's next a review of Episode IV? :)
Actually, in a couple years, after Ep3 comes out, I'd like to see Slashdot review episodes 4 through 6.
I run Quicken on Unix. I use Mac OS X.
So you use Mac OS X. That operating system may implement most of the Single UNIX Spec, but I don't see it listed as a UNIX system.
Either way, I don't see "go out and buy a Mac" as a cost-effective solution to the personal finance software problem. The original poster (pstreck) mentioned Wine, implying that (s)he used an x86 computer. For the price of Mac OS X (and its $799 hardware key), pstreck could just go out and buy a hard drive and a copy of Windows XP Professional and install Quicken on that.
could someone explain how a microprocessor is administered?
In a large cluster, the question is not whether a processor has failed, but how many have failed. Such clusters generally make it possible to swap out a failed processor while the program is running. Chips that last longer will reduce the dependency on expensive technicians to keep coming in and swapping in new boards.
Does that mean that we need to evolve even bigger heads with visible veins for cooling to go beyond our current capacities? I'm thinking about Uncle Scrotor from This Island Earth, as seen in the MST3K movie, of course.
No. The veins will probably not be too visible; otherwise, a blow to the head would be more likely to draw blood. The influence of maternal instincts will demand cute babies. I predict that by the year 802701, humanity will have evolved into at least a race that looks like Precious Moments people. (I'm not entirely sure whether, as H. G. Wells predicted, there will exist another parallel lemur-like race that lives underground and eats the PM people.)
Mu-tant upgrades for all! Leaves only the fresh scent of pine!
Or, after too much mutation and crossing over, pine and human genes come together and create a little wooden boy.
Your parody of the classic "BSD Is Dying" story forgets 1. that Morpheus is now part of Gnutella, and 2. that WinMX has become exceedingly popular because it's essentially the same as the old Napster, but completely decentralized.
BMG who sell another troubled OS.
What the?
copyrighted works will expire after X years after the issuing of copyright
Yes, but if X increases at the approximate rate of one year per year (as has happened in 1976 and 1998)...
I presume that you spell potato this way since your former VP did...
Myth. Fact is that former US VP Dan Quayle was substituting for a school teacher who had made out a spelling lesson plan with a mistake. Quayle merely followed the plan.
To summarize: British "chips" == American "french fries." American "chips" == British "crisps." Geek "chips" == semiconductors. BUT notice that Pringles® potato crisps are called "crisps" worldwide.
Is that Gemdrop game anything like Magical Drop for Neo-Geo?
Both joysticks for my 2600 are pretty much dead
Joypads designed for the Sega Genesis console will work in an Atari 2600 console.
The fair way would be to track what people are downloading, and dole out the money proportionally based on that
The American Society of Composers, Artists, and Publishers solved this scaling problem a long time ago. ASCAP takes a 24-hour sample of each radio station's airplay. Not all radio stations are monitored at the same time.
Kazaa and Verizon could do something similar, by setting up some high-capacity super-nodes and logging all downloads started through those super-nodes. It wouldn't catch all downloads, but it would catch a significant sample from which Kazaa could compile relevant statistics and cut checks to ASCAP, SESAC, and BMI.
that's the kind of unnecessary complexity
Which is why you wrap string operations in a library. In C++'s case, this library is called STL.
I've addressed this issue in the Slashdot Meta-Discussion.
At least they don't put advertisement in the middle of your video-game playing... yet...
I take it you've never played any of the Ninja Turtles games. In particular, TMNT 2 for NES had "Pizza Hut" all over it. More recently, Dole (banana company) sponsored Sega's Super Monkey Ball.
Perhaps it is simple a case of the technology being too young to actually realize the 33% expected increase in performance
The sustained transfer rate of a hard disk cannot exceed the amount of data per cylinder times the rotation speed of the platter. In addition, HD designers are not easily going to overcome the fact that it takes a while to move the head from the inside to the outside of the platter.
130fps on a monitor refresing at 60Hz? Every second frame gets chucked.
Or blended. Some games can use the OpenGL accumulation buffer to render several frames and provide a motion-blur effect that tricks the eye into seeing twice the FPS.
And then I'd change my name to Robert O'Toole.
Taken by a lawyer.
That is very cool, i'm impressed. The output looks like something an old dot matrix would have made. Am i right in looking at it that the text is made up like that, where each 'row' is a sin wave at some frequency?
Correct. Look at the source code (in the zip file) to see how I did it. You can also use TED to edit the font if you want.
I always wondered if it would be possible to do the opposite of a spectrograph.. take an image and convert it to a sound... I guess it is!
It's actually quite easy. Do the inverse MDCT (modified discrete cosine transform, an equation similar to the discrete Fourier transform) on each column of pixels.
If you want to put textual messages in a spectrogram, you can use this app.
Christian Music will have crosses, doves, and christian fish encoded into the signal, which will probably improve the music.
You could very well be right. Simple geometric figures, such as a cross made of band-passed noise, can be used as percussion, and a line drawing of a dove can easily be hidden in a bird call (heh).
but that, when translated to mp3, will crash your computer.
Not possible unless a buggy MP3 encoder passes such a file to a buggy MP3 decoder. Well-written codecs don't crash.
But you left one out: Cheesy electronic music will have the printed source code for a CSS decoder.
What ripping quality would preserve the face?
Steps used in Cool Edit Pro with Fraunhofer plug-in:
Anybody have a good link to a spectrograph program that uses a logarithmic frequency axis?
--
DeCSS hidden in a song's spectrogram