A useful program, 0 bytes long
peetm.com
peetm.com
Two bugs for 0 lines of code...
Some discussion of that over here : http://forums.thedailywtf.com/forums/t/3779.aspx
Side note: Tatung makes some pretty amazing rice cookers. My family has used the same one for over 40 years now, and it still cooks as well as ever.
http://www.amazon.com/Tatung-Tac-11kn-Stainless-Steel-Cooker...
I grew up with Tatung rice cookers. They used to last forever - only get replaced when owners get tired of looking at them or they become too dirty. I replaced mine with this stainless steel rice cooker about 1.5 years ago thinking it will really last forever since it's stainless steel (the old ones were made out of aluminum). Unfortunately, it stopped working a few days ago.
I just couldn't believe it, I opened it up (I am a hand-on electrical engineer) and found the heating element to be the culprit. Tatung no longer uses solid metal heating element, instead, Tatung uses a much inferior heating element made out of a sandwich of 3 to 4 layers of thin circular heat-resistant cardboard. With metal wires (the heating element) looped around these circular cardboard. After probing a bit, I found where the metal wire broke.
Called Tatung customer support and was told that they can't sell heating element because of liability issue. It'll cost $40 for them the repair it but I will need to ship it to them.
Side note: curse Wade and Giles for making everyone mispronounce this company's name.
http://en.wikipedia.org/wiki/Great_unity
There's some lengthy (English) discussion on the term in this book:
http://www.amazon.com/The-Chinese-Revolution-Historical-Pers...
This leads to some things like perceiving less competent workers' time to be worth more than more competent ones' (because they take longer to do a task, therefore they should be paid more), etc.
They were annoyed because nothing had actually been copied. It's like paying for a product and getting an empty shipping box in the mail.
Oh dear, I can't imagine not knowing what a TSR is. Feel old.
The wikipedia page is pretty good http://en.wikipedia.org/wiki/Terminate_and_Stay_Resident
The LOL was strong with that one, but not for the reasons he thought.
I also got a kick out of the .com filename extension reference and wondered how many HN readers remember that .com used to stand for "COMMAND" instead of today's "Commercial." Judging by the amount of comments here the number is fairly small.
Thanks for the trip down memory lane!
My .emacs has
(global-unset-key "\C-z")
because I haven't figured out how to make xmonad handle iconified windows nicely / I prefer M-x ansi-term over suspending my precious, and (global-unset-key "\C-x\C-c")
because I boot my emacs ~exactly as often as I boot my workstation (and I got angry at accidentally mashing a C-c after hitting C-x) :)The default Qedit settings made columnar editing as easy as linear editing... You could copy/paste in a vertical manner, as well as the more normally seen horizontal method. This facilitates ease of copying/pasting/deleting blocks of code without picking up, or affecting, other portions of code, whereas horizontal oriented block editing does not allow multi-line editing within set columns. You get every column within a set of copied lines even though you only want a smaller block of text.
Perhaps emacs can do column based edits, or some other editor?
COM files contain a single segment of code+data. The DOS authors directly reused the format from CP/M. The loader allocates a single segment of memory, then loads the com file at address 0x100, and transfers control there. So the first byte of the file contains the first instruction.
EXE files in contrast have a header that define multiple segments worth of code + data, and some environment variables. DOS allocates memory for each segment, possibly in a different order and positions on every system, loads the segment's contents from the EXE file, and then modifies each code segment to adapt to the actual locations of the other segments (that process is called relocation).
:!echo hi
But while we're at it, my favourite way to log out of a shell in a silly way is this:
exec echo Hasta la vista!
And the Kermit protocol...
[1] manufactured by Microsoft - http://en.wikipedia.org/wiki/Z-80_SoftCard
- No download necessary
- Create a file called GO.COM
- Done!"
-can you assume that any program out there can be reduce by one line?
-can you assume that any program out there has a least one bug?
If yes, it means that, by mathematical induction, every program can be reduce to one zero byte, and it's buggy!
I hope I can offer a little advice without being too annoying: if you are going to use justified text, especially with narrow columns, you need to implement some kind of hyphenation. There are JS libraries that do this now, I think.
Mathematicians often assign definitions to things that are undefined in other contexts to make things more self-consistent. The fact there is a good case to be made that c/0 is undefined for all c doesn't mean it must always be so in every possible instance.
Or you could look at it as `limit of -x/x as x approaches 0`, which would be -1.
Or you could look at it as `limit of x/0 as x approaches 0`, which would be +/- infinity, depending on which side you approach 0 from.
Or you could look at it as `limit of 0/x as x approaches 0`, which would be 0.