Posts

Showing posts from August 22, 2010

Using Emacs for Twitter

Perm url with updates: http://xahlee.org/emacs/emacs_twitter.htmlUsing Emacs for TwitterXah Lee, 2010-08-28Discovered a emacs mode that lets you twitter within emacs. Quite nice. I'm not sure i support the Twitter stuff, those instant attention deficit babbling, and these days perhaps a majority of twitter traffic is online marketing (aka SEO) bullshit (there are sites that sell twitter followers. Like, $50 gets you a thousand followers.) , but that's all probably because i'm getting old.Anyway, there are quite a few twitter modes for emacs. (see: emacswiki.org Twitter) The first i tried is TwIt (Twit.el), and it worked well. On the emacswik, it was mentioned that some of them use http instead of https, so it's a security RISK! That'd be a big one! (just imagine, your gmail password got transmitted in the open; and you'll be damned if the same account is used to access tens of other sites by OpenID.) But the Twit.el package mentioned that they fixed it to use…

Shoes (Kelly song; comedy)

Perm url with updates: http://xahlee.org/funny/shoes_liam.htmlShoes (Kelly song)Shoes is a hilarious comedy song.“Shoes”. It's so funny. This character, mocks the American teen girl mannerism. But because she's not a girl, so it delineates the more — A head toss, a eye roll, a cell phone call.It's directed by and starring Liam Kyle Sullivan.“What Kelly Wants to Be” There's a whole serious on his YouTube site, or his home page: liamshow.com.Wrong Hole SongWhat's It Gonna Be? (Video)Lazy Muncie? (Video)

Apple Keyboards

Image
Perm url with updates: http://xahlee.org/emacs/keyboards_Apple.htmlApple KeyboardsXah Lee, 2006-06, 2010-06-12Keyboards (and mouses) from Apple ever since the iMac in 1998 are in general the most ergonomically painful.Hard-to-reach Right Alt KeyThe Apple keyboard from 2006. Note the ridiculous distance of the right side's modifier keys. It is not possible, to use the right thumb to press the alt key while the index finger remains on the J. It makes these keys essentially decorative in nature. (Apple did this to make the keys flush at the lower right corner; sacrificing function for esthetics.)Another utter stupidity is that the function keys are all squished together into one beatific contiguous row. Traditionally, they are separated into 4 blocks. The one-contiguous-row design makes it difficult to sense the right key position by touch.Apple's full keyboard, as of 2008. The right side of modifiers are still too far to the right. Apple's keyboard as of 2008. Image Source In …

Logitech Wave Keyboard Review

Image
Perm url with updates: http://xahlee.org/emacs/ms_keyboard/logitech_wave_keyboard.htmlLogitech Wave Keyboard ReviewXah Lee, 2010-08-27Logitech created this funky Wave keyboard sometimes in 2009.“Logitech Cordless Desktop Wave Pro Ergonomic Keyboard” “Logitech Cordless Desktop Wave Pro Ergonomic Keyboard” with Irish layout. Source Side view. Logitech's got this Wave keyboard. I never actually used it, but only tried it out in stores. Am not quite sure such wave design is ergonomic. The keys are not split. Nor are they curved much like a smile such as with Microsoft's Comfort Curve keyboard. It just dents up and down, i suppose because your index fingers are longer so it dents down there. However, Amazon seems to have good reviews. Such matters really needs to be personally tested out and used for a week to judge well.Check out the promo vid on amazon.“Logitech Cordless Desktop Wave Pro Ergonomic Keyboard” amazonA Review of The Microsoft Natural Ergonomic Keyboard 4000Kinesis Co…

most popular emacs pages

Top 10 song pages

Top 10 most popular pages of my “Human Animals and Their Songs” project. The top one is viewed 746 times in last 30 days. The 10th is viewed 203 times1. Iko Iko2. Hey Sexy Lady3. 木蘭辭 (Mulan Ballad)4. 佳人歌 (The Beauty Song)5. My Dick (Song)6. Daisy Bell7. Kiss (Prince's song)8. Hip-Hop Rap and the Quagmire of (American) Blacks9. Nights in White Satin10. P.I.M.P. (rap song) by 50 Cent

UNICODE Basics: What's Character Encoding, UTF-8, and All That?

Perm url with updates: http://xahlee.org/emacs/unicode_basics.htmlUNICODE Basics: What's Character Encoding, UTF-8, and All That?Xah Lee, 2010-06-20, 2010-08-25What's Character Encoding?Any file has to go thru encoding/decoding in order to be properly displayed or written to. Suppose your language is Chinese (or Japanese, Russian, Arabic etc.). Your computer needs a way to translate the character set of your language's writing system into a sequence of 1s and 0s. This transformation is called Character encoding.There are many encoding systems. Most popular are ASCII, UTF-8 (used in linux) and UTF-16 (used by Windows and OS X's file systems), GB 18030 (Used in China, contains all Unicode chars).What's a Character Set?A encoding system also defines a character set implicitly or explicitly. A character set is a fixed collection of symbols. A encoding system needs to define that because it needs to define what characters (symbols) it is designed to handle. For example…

Emacs Lisp Function Frequency

Perm url with updates: http://xahlee.org/emacs/function-frequency.htmlEmacs Lisp Function FrequencyXah Lee, 2006-10, 2010-08-25This page shows a table of emacs lisp functions in order of their usage frequency.Ever wonder what are the top 30 most frequently used emacs lisp functions? If you are just beginner elisp programer, you probably want to know these well.Also, this list provides raw data for many uses. For example, when you are designing a abbreviation list for Yasnippet Templates for coding emacs lisp. Suppose you want “ff” to be the abbrev for “find-file”. But some other two-words function might be “ff” as well, such as find-if, face-font, fill-flowed, focus-frame. But if you look at the frequency list and realized that all the other are not really used much, then it'd be a good decision to make ff as the abbrev for find-file only. Similarly, you need frequency info when you want to choose single letter abbrevs.Also, for emacs lisp language developers, when adding a new f…

disable Win popup startup menu but not Win+key shortcuts

Want to disable the Win key from popping up the Start menu but still want Win+‹key› to work? New tip added to AutoHotkey Example Scripts.if you need some custome key set up, i can do it for you. Please do donate $10 though. (click button on upper right of this window)

Emacs Lisp Yasnippet Templates

Image
Perm url with updates: http://xahlee.org/emacs/elisp_idiom_templates.htmlYasnippet Templates for Emacs Lisp ModeXah Lee, 2009-02-24, ..., 2011-01-11This pages is a set of abbrev and YASnippet templates for emacs lisp coders.emacs-lisp-mode AbbrevsThe abbrev list contains ~78 most frequently used elisp functions. For example:“add-hook” has abbrev “ah”.“search-forward” has abbrev “sf”.“thing-at-point” has abbrev “tap”.“defun” has abbrev “d”.Each abbrev is based on first letters of the words in function names.If you are not familiar with emacs's abbrev feature, see: Using Emacs's Abbrev Mode for Abbreviation.YASnippets Templates for emacs-lisp-modeThe YASnippet are for expanding function names to its full syntax and parameters. It contains ~145 of most frequently used elisp functions.For example, type buffer-substring-no-properties , press Tab, then it becomes (buffer-substring-no-properties START▮ END). Here's a picture of more examples, when used together with abbrev: bsn…

Elegance & Respectability of Juggling

Perm url with updates: http://xahlee.org/vofli_bolci/juggling_resp.htmlElegance & Respectability of JugglingXah Lee, 2005-10Juggling being a act of respectless younsters as perceived by the populace, as opposed to, say, ballet, figure skating, gymnastics, diving, or other Olympic performance sports, is precisely because jugglers lack class. Almost always, jugglers act like some kind of slackers clowning with their props. I don't mean just the geekers in their informal juggling conventions, but including professional ones, such as the world's top jugglers Anthony Gatto or Thomas Dietz, Dick Franco, etc. Yes, these jugglers can juggle. They are representative the best of the world of juggling. But if you look at their performances on stage or off stage, you see that there's lots of sweat but zero art. Even comedians get a whole lot of respect in their artistic creativity.For juggling to be developed into a respectable world-class performance sport, it must develop st…

Math Prizes and Nobel Ignobility

Perm url with updates: http://xahlee.org/math/math_prizes_and_Nobel_Ignobility.htmlMath Prizes and Nobel IgnobilityXah Lee, 2010-08-22Abel Prize. A yearly award to mathematicians. Winner gets close to 1 million USD dollars. This is said, to be the closest analog to Nobel prize.Another, is the Millennium Prize Problems. It is 7 unsolved math problems. Those who solves it, gets 1 million USD. This started in 2000, and so far 1 person solved one of them. See: Grigori Perelman and Money: Will you decline 1 million to make a statement?.The other math award for mathematicians is Fields medal. Given out every 4 years, but only to those under 40 years of age. Winner gets only 15k USD.PS i despise Nobel prize. It is questionable and politically influenced.It awards Peace Prize in 2009 to US president Barack Obama.It never awarded Mahatma GandhiIt also awarded to the 14th Dalai Lama Tenzin Gyatso. ( The term “Dalai Lama” means the head of theocracy of the Tibetan sect of Buddhism. It is similar…

System-wide ErgoEmacs Keybinding for Windows, Mac, Bash

Perm url with updates: http://xahlee.org/emacs/ergonomic_emacs_keybinding_system-wide.htmlSystem-wide ErgoEmacs Keybinding for Windows, Mac, BashXah Lee, 2010-08-22, 2010-10-17, 2011-01-10This page lists several utilities that let you use the ErgoEmacs Keybinding system-wide.WindowsFor Windows, just download the following executables.ErgoEmacs_keybinding_Windows_dvorak.exeErgoEmacs_keybinding_Windows_qwerty.exeCaps Lock for M-x (execute-extended-command)Here's some util for Windows to make Caps Lock key do emacs's “M-x”. Very convenient.emacs_capslock_for_Alt+x.exeemacs_capslock_for_Alt+a.exe (if you are using ErgoEmacs Keybinding)MacDownload one of the following file, then copy the content and put it in 〔~/Library/KeyBindings/DefaultKeyBinding.dict〕.ErgoEmacs_keybinding_os_x_dvorak.dict.txtErgoEmacs_keybinding_os_x_qwerty.dict.txtThese are based on OS X's system-wide keybinding mechanism. For detail, see: Creating Keyboard Layout in Mac OS X.BashDownload the following, th…

major drama with Modular Systems

Perm url with updates: http://xahlee.org/sl/emerald_dos_fiasco.htmlEmerald Viewer DOS FiascoGet your Xah Particle Maker today! Xah Lee, 2010-08-22Lots is going on with Emerald now. I haven't had time to digest it all, but it's going wild. Here's few links to start you off with, i'll write a better report when i've done my research.A Emerald developer “LordGreg” announced quitting, on his blog dated 2010-08-14. http://lordgreggreg.wordpress.com/2010/08/14/emerald-reassessment/He's saying there's is a a piece of code “emkdu.dll” that is not open source, and seems intentionally hidden from all other developers. (you can find this dynamic library in your Emerald dir, e.g. “c:/Program Files (x86)/Emerald Viewer/emkdu.dll”)Besides that, he's also not happy that the money made by Emerald is handled privately and not open to all developers, even he wants none of it. (presumably the money mentioned is from ads running on the modular systems site)I'll need to …