My/etc/apache/mime.types has "audio/x-mpegurl" for m3u-files.
The "x-" part correctly identifies it as a non-registered mime-type.
You'd probably be much better off making the script a daily (hourly?) cronjob that writes the.m3u-file, and have apache serve it like any other file. That would automatically give you the correct mime-type.
And also, a question: Why use rc for that script when/bin/sh would work just as well? (I haven't used rc.)
But the real problem in this "Ask Slashdot" is how to get the sound from the laptop over the network to the stereo which is connected to the linux-box.
We had to get into work at 6'o'clock in the morning, drink a cup of cold coffee, filthy cracked cup and all.
Then we'd write our own reference manuals, just to be able to use vi.
After that our boss would have us sit in meetings, and thrash us with demands.
But you know, we were happy in those days, though we we're overworked.
You try to tell the young people that today, and they won't believe you.
In Linux i have the functions struct passwd *getpwnam(const char * name) and struct passwd *getpwuid(uid_t uid) to get an entry from the password file, which contains the users home directory.
According to my man-page, those conform to SVID 3, POSIX, and BSD 4.3.
Adds java debugging, code completion, wizards, templates, instant javadoc in your favorite browser, and other stuff to all the other powerful features of Emacs.
Some people say emacs is hard to learn. I believe that only applies if one doesn't want to read, in which case perhaps one shouldn't be programming anyway.
Since emacs is the selfdocumenting editor, documentation for any feature is just a few key-presses away.
'C-h t' - The emacs tutorial
'C-h a' - Apropos (find the right function for what you want)
'C-h f function' - What does 'function' do?
'C-h k <key>' - What does <key> do?
'C-h w function' - Where is the key for 'function'?
'C-h ?' - What can i get help for besides this?
(C-h is Ctrl-h)
Emacs is a little unusual though. Since its default keybindings (among other things) are often unlike many other editors, it just takes a little while getting used to. (But then, any IDE takes a little while getting used to.) That is because emacs existed before many of those other editors.
Yes, well, you *could* use J++, if you don't want to use the latest and greatest java, and if it wasn't for the fact that Microsoft are hellbent on destroying java.
The user interface is probably the only thing J++ has going for it.
I had a similar experience, but i wasn't coding at the time. I was playing Magic: The Gathering with two of my friends.
You may or may not have heard about this game, but basically you just draw and play cards representing spells and creatures, which you then proceed to beat your opponent(s) with.
At the time my friends were beating me up with their horde of weak creatures, when it came to be my turn.
I drew a card from the top of my deck, and discovered it was an 'Orgg'! (6/6, trample, may not attack if any opponent has a creature with power greater than 2)
Yay! Now was the time to smack down their weenie-horde! So, i hurriedly proceeded to tap five mana to pay for the Orgg, and as i reached for my hand to retrieve the Orgg, i couldn't find it! Figuring it had slipped through my fingers in the excitement, i looked around on the table and the floor. It was nowhere to be found.
I look up at my friends, and asked them if they saw where it went. They were staring at me, wondering what the hell i was doing.
"But i just drew an Orgg, and now i can't find it!" - i said. "What? You haven't drawn a card yet! " - they said - "Why are you tapping mana before drawing?"
I picked up the top card of my deck and looked at it. It was an Orgg.
Excuse me, but i couldn't help but think of this wonderful poem by the old master.
This is merely the first four verses of it, the part i came to think about when i read your post.
--
Once upon a midnight dreary, while I pondered, weak and weary,
Over many a quaint and curious volume of forgotten lore--
While I nodded, nearly napping, suddenly there came a tapping,
As of some one gently rapping, rapping at my chamber door.
"'Tis some visitor," I muttered, "tapping at my chamber door--
Only this and nothing more."
Ah, distinctly I remember it was in the bleak December;
And each separate dying ember wrought its ghost upon the floor.
Eagerly I wished the morrow; --vainly I had sought to borrow
From my books surcease of sorrow-- sorrow for the lost Lenore--
For the rare and radiant maiden whom the angels name Lenore--
Nameless here for evermore.
And the silken, sad, uncertain rustling of each purple curtain
Thrilled me--filled me with fantastic terrors never felt before;
So that now, to still the beating of my heart, I stood repeating
"'Tis some visitor entreating entrance at my chamber door--
Some late visitor entreating entrance at my chamber door; --
This it is and nothing more."
Presently my soul grew stronger; hesitating then no longer,
"Sir," said I, "or Madam, truly your forgiveness I implore;
But the fact is I was napping, and so gently you came rapping,
And so faintly you came tapping, tapping at my chamber door,
That I scarce was sure I heard you" -- here I opened wide the door; --
Darkness there and nothing more.
I very much like the combination of elements from scary movies and literature. Influences from 'Twin Peaks', 'Twilight Zone', Stephen King's 'The Fog', "Rosemary's Baby", amongst others. Just one minor point is that all the streets in the game are named after famous horror-writers. Quotes and references can be found everywhere. Very enjoyable if you recognize them. For instance... the staircase just like the one in 'Psycho'...
I love the way they made end-of-the-game into part of the game!
(You die, or you make it to one of the endings, you 'wake up' at the start again, was it real? Was it all a dream? Everything is back the way it was... or is it?)
The world transforms from the foggy place to the dark place... which one is real? Is any of them real?
Was that really your daughter your saw, or some trick to lure you into the shadows?
And, when those small baby-like zombies come at you with their knives where you are shivering in the dark, you'll find it hard to stop swinging that hammer... Bash, bash, squirt!
Cygwin isn't really an emulator. It is an implementation of the unix api on windows, in a windows dll. It's somewhat like wine (the windows api in unix), but the other way around.
This makes it possible to compile unix c source and link against this dll, to have the programs work on windows (almost) exactly as in unix.
So, you can have _any_ 'UNIX command line' you like. Just run the shell of your choice, compiled and linked in cygwin.
Freshmeat Category Software Development :: Version Control.
#!/usr/bin/perl -w
;
;
;
use strict
use File::Copy
copy($file1, $file2)
My /etc/apache/mime.types has "audio/x-mpegurl" for m3u-files.
.m3u-file, and have apache serve it like any other file. That would automatically give you the correct mime-type.
/bin/sh would work just as well?
The "x-" part correctly identifies it as a non-registered mime-type.
You'd probably be much better off making the script a daily (hourly?) cronjob that writes the
And also, a question: Why use rc for that script when
(I haven't used rc.)
But the real problem in this "Ask Slashdot" is how to get the sound from the laptop over the network to the stereo which is connected to the linux-box.
Well, they don't really rank above or below each other, but Trekkies are indeed slightly below comic book fans on the chart.
But, your argument breaks down if we are talking about geeks who read superhero comics. Are we?
# ./NakedWife.gif.pl
./NakedWife.gif.pl: Permission denied
bash:
"Welcome... to... Rivendell..., Mr. Baggins... How do you... expect... to eat second breakfast... with no mouth?"
"Computer, identify Riker, William T. Access Code Theta Alpha 2 737 Blue."
There were two "Indiana Jones and the Fate of Atlantis"-games, one action game and one adventure game.
There weren't any levels in the adventure game, but there were three different paths to go.
The adventure game is one of my favorite games of all time. I never played the action game.
So are you saying that out_wm.dll is statically linked, and does not dynamically link in Microsoft-DLLs?
Ash post durbatulûk.
Ash post gimbatul.
Ash post thrakatulûk,
agh burzum-ishi krimpatul.
Luxury.
Of course, we had it tough.
We had to get into work at 6'o'clock in the morning, drink a cup of cold coffee, filthy cracked cup and all.
Then we'd write our own reference manuals, just to be able to use vi.
After that our boss would have us sit in meetings, and thrash us with demands.
But you know, we were happy in those days, though we we're overworked.
You try to tell the young people that today, and they won't believe you.
(With thanks to Monty Python.)
A link to shotgun debugging would be nice.
"Bork" is the favorite expression of "The 'Swedish' Chef" in "The Muppet Show".
Therefore, generations of americans believe it to be an actual swedish word.
I guess they believe in the "Swedish Bikini Team" too... where every girl is named "Inga".
The only words exported from swedish to english are "ombudsman" and "smörgåsbord".
In Linux i have the functions struct passwd *getpwnam(const char * name) and struct passwd *getpwuid(uid_t uid) to get an entry from the password file, which contains the users home directory.
According to my man-page, those conform to SVID 3, POSIX, and BSD 4.3.
That's *Tolkien*, folks.
Not "Tolkein". Not E-I.
I-E. Got that?
John Ronald Reuel Tolkien.
I can't believe the number of so-called "fans" that can't even spell his name.
See Penny-Arcade's take on this tragic event.
According to the big screen, we are using 1.3 MW.
I use Emacs + JDEE. I like it. I like it a lot.
Adds java debugging, code completion, wizards, templates, instant javadoc in your favorite browser, and other stuff to all the other powerful features of Emacs.
Some people say emacs is hard to learn. I believe that only applies if one doesn't want to read, in which case perhaps one shouldn't be programming anyway.
Since emacs is the selfdocumenting editor, documentation for any feature is just a few key-presses away.
'C-h t' - The emacs tutorial
'C-h a' - Apropos (find the right function for what you want)
'C-h f function' - What does 'function' do?
'C-h k <key>' - What does <key> do?
'C-h w function' - Where is the key for 'function'?
'C-h ?' - What can i get help for besides this?
(C-h is Ctrl-h)
Emacs is a little unusual though. Since its default keybindings (among other things) are often unlike many other editors, it just takes a little while getting used to. (But then, any IDE takes a little while getting used to.) That is because emacs existed before many of those other editors.
Yes, well, you *could* use J++, if you don't want to use the latest and greatest java, and if it wasn't for the fact that Microsoft are hellbent on destroying java.
The user interface is probably the only thing J++ has going for it.
I had a similar experience, but i wasn't coding at the time. I was playing Magic: The Gathering with two of my friends.
You may or may not have heard about this game, but basically you just draw and play cards representing spells and creatures, which you then proceed to beat your opponent(s) with.
At the time my friends were beating me up with their horde of weak creatures, when it came to be my turn.
I drew a card from the top of my deck, and discovered it was an 'Orgg'! (6/6, trample, may not attack if any opponent has a creature with power greater than 2)
Yay! Now was the time to smack down their weenie-horde! So, i hurriedly proceeded to tap five mana to pay for the Orgg, and as i reached for my hand to retrieve the Orgg, i couldn't find it! Figuring it had slipped through my fingers in the excitement, i looked around on the table and the floor. It was nowhere to be found.
I look up at my friends, and asked them if they saw where it went. They were staring at me, wondering what the hell i was doing.
"But i just drew an Orgg, and now i can't find it!" - i said. "What? You haven't drawn a card yet! " - they said - "Why are you tapping mana before drawing?"
I picked up the top card of my deck and looked at it. It was an Orgg.
--
Excuse me, but i couldn't help but think of this wonderful poem by the old master.
This is merely the first four verses of it, the part i came to think about when i read your post.
--
Once upon a midnight dreary, while I pondered, weak and weary,
Over many a quaint and curious volume of forgotten lore--
While I nodded, nearly napping, suddenly there came a tapping,
As of some one gently rapping, rapping at my chamber door.
"'Tis some visitor," I muttered, "tapping at my chamber door--
Only this and nothing more."
Ah, distinctly I remember it was in the bleak December;
And each separate dying ember wrought its ghost upon the floor.
Eagerly I wished the morrow; --vainly I had sought to borrow
From my books surcease of sorrow-- sorrow for the lost Lenore--
For the rare and radiant maiden whom the angels name Lenore--
Nameless here for evermore.
And the silken, sad, uncertain rustling of each purple curtain
Thrilled me--filled me with fantastic terrors never felt before;
So that now, to still the beating of my heart, I stood repeating
"'Tis some visitor entreating entrance at my chamber door--
Some late visitor entreating entrance at my chamber door; --
This it is and nothing more."
Presently my soul grew stronger; hesitating then no longer,
"Sir," said I, "or Madam, truly your forgiveness I implore;
But the fact is I was napping, and so gently you came rapping,
And so faintly you came tapping, tapping at my chamber door,
That I scarce was sure I heard you" -- here I opened wide the door; --
Darkness there and nothing more.
--
Me too!
Silent Hill is my favorite scary game.
I very much like the combination of elements from scary movies and literature. Influences from 'Twin Peaks', 'Twilight Zone', Stephen King's 'The Fog', "Rosemary's Baby", amongst others. Just one minor point is that all the streets in the game are named after famous horror-writers. Quotes and references can be found everywhere. Very enjoyable if you recognize them. For instance... the staircase just like the one in 'Psycho'...
I love the way they made end-of-the-game into part of the game!
(You die, or you make it to one of the endings, you 'wake up' at the start again, was it real? Was it all a dream? Everything is back the way it was... or is it?)
The world transforms from the foggy place to the dark place... which one is real? Is any of them real?
Was that really your daughter your saw, or some trick to lure you into the shadows?
And, when those small baby-like zombies come at you with their knives where you are shivering in the dark, you'll find it hard to stop swinging that hammer... Bash, bash, squirt!
Simply amazing.
Cygwin isn't really an emulator. It is an implementation of the unix api on windows, in a windows dll. It's somewhat like wine (the windows api in unix), but the other way around.
This makes it possible to compile unix c source and link against this dll, to have the programs work on windows (almost) exactly as in unix.
So, you can have _any_ 'UNIX command line' you like. Just run the shell of your choice, compiled and linked in cygwin.
System.out.println(((Lemur)x).numberofpaws) ;