Posts

Showing posts from July 4, 2010

What Characters Are Not Allowed in File Names?

Perm url with updates: http://xahlee.org/mswin/allowed_chars_in_file_names.htmlWhat Characters Are Not Allowed in File Names?Xah Lee, 2009-06-03, 2010-07-10This page tells you which characters are not allowed in Windows or Mac.Mac OS X uses HFS+ file system, Windows use NTFS. Both encode file names using UTF-16, although the encoding scheme is a bit different. Both also allow a max of 255 unicode chars in file name.Chars Not Allowed On WindowsWindows's NTFS does not allow the following chars: / \ : * ? " < > | Chars Not Allowed On MacIn Mac OS X, you cannot use the colon “:”.In practice, this means, when you have files with a lot of these chars, you'll have problems transfer it from Mac to Windows. Depending on what tool you use to transfer the file, the tool may stop dead, or change the file name in different ways.You may think that these weird chars doesn't happen in practice. Actually, they do.For examples, Adium chat client, save its chat log's filena…

Safari “.webloc” File

Perm url with updates: http://xahlee.org/comp/safari_webloc.htmlSafari “.webloc” FileXah Lee, 2010-07-09Discovered that Mac still uses resource fork in a major way.Open Safari, go to a website, then drag the url to your desktop. You'll get a file named like this: “site title.webloc”. Double click the file will open the website in a default browser.Dragging the file to Safari or Firefox will also open the url.The “webloc” file is a binary file. The file also contain resource fork.Deleting the Resource ForkIf you delete the resource fork, the file won't work properly.In OS X 10.6.x, double clicking the file still works, but dragging the file to Safari or Firefox won't open the page.In OS X 10.4, double click does not work anymore, nor dragging the file to a browser.For how to delete resource fork and other tips, see: Mac OS X Resource Fork and Command Line Tips.What's “.dmg” File? (Mac OS X tutorial)OS X Extended Attributes and xattrHow To Create Keybinding In Mac OS XM…

Whatever You Like (Gossip Girl)

Perm url with updates: http://xahlee.org/Periodic_dosage_dir/sanga_pemci/whatever_you_like.htmlWhatever You Like (Gossip Girl)“Whatever You Like”.「• Patrone = Patrón is a luxury brand of tequila produced in Mexico and sold in hand-blown, individually numbered bottles. Patrone 」 Stacks on deck Patrone on ice And we can pop bottles all night Baby you can have whatever you like I said you can have whatever you like Yeah Late night sex so wet so tight I'll gas up the jet for you tonight Baby you can go where ever you like Yeah you can go where ever you like 「• Bentley = A brand name car. Bentley」 Anytime you want to pick up the telephone You know it ain't nothin to drop a couple stacks on you Wanted you could get it my dear Five million dollar home, drive Bentley I swear Yeah I want your body, I need your body Long as you got me you won't need nobody You want it I got it, go get it I buy it Tell them other broke brothers be quiet 「• Shawty = ?」 Shawty you the hottest, love th…

Intro to Video Streaming and Video Audio Codecs

Perm url with updates: http://xahlee.org/comp/streaming_video_notes.htmlIntro to Video Streaming and Video Audio CodecsXah Lee, 2010-07-04This page provides a survey of the current video/audio codecs, file formats, streaming tech, for streaming multimedia.I need to setup embedded videos on my site as well sites i work for. So, today, i started a comprehensive study on video streaming. Here's some learning notes. (The last time i worked with video is in 1995-1997. At the time video streaming is still pretty much science fiction) The technology involved for playing a video from a browser from a site, such as youtube, involves several separate technologies. Here's a summary of the basics:video codec. The video file must be encoded into a standard format (i.e. sequence of bits). Usually this means using a praticular compression scheme. The encoding and decoding algorithm and format is called a codec. (examples are: H.264, MPEG-4, WMV, QuickTime, DVD-Video, ...)audio codec. The aud…

emacs camelCase movement

Perm url with updates: http://xahlee.org/emacs/blog.htmlWant the cursor movement to stop between camelCaseLetters? Use “global-subword-mode” or “subword-mode”. (Thanks to Deniz Dogan for the tip.)This tip is added to: Emacs Advanced Tips.