Posts

Showing posts from June 13, 2010

emacs's cua-mode naming problems

Perm url with updates: http://xahlee.org/emacs/modernization_cua-mode.htmlEmacs cua-mode ProblemsXah Lee, 2010-06-19This page discuss some issues about emacs cua-mode. In particular, problems in naming.On 2010-06-18 const451 <const...@gmail.com> wrote:Is there a plugin that uses standard key shortcuts for text manipulation such as Ctrl-C, Ctrl-V, Ctrl-Z, etc.? I think they are faster to use than the default shortcuts in emacs.I run Ubuntu Lucid (newbie).You can turn on cua-mode by Alt+x cua-mode.Or you can install the ErgoEmacs Keybinding, then it'll also support standard Open, Close, Save, Save As, New... about 7 of them. The Naming of cua-ModeEmacs's cua-mode, is named after the IBM's Common User Accesss standard. However, according to Wikipedia IBM Common User Access the IBM CUA standard does not say cut/copy/paste are X C V keys. Quote:The Cut command is ⇧ Shift+Del; Copy is Ctrl+Ins; Paste is ⇧ Shift+Ins;The Z X C V keys for undo/cut/copy/paste is popularized b…

Hunspell Tutorial

Perm url with updates: http://xahlee.org/comp/hunspell_spell_checking.htmlHunspell TutorialXah Lee, 2010-06-16This page shows you the basics of using hunspell.Hunspell is a mature and modern spell checker, better than aspell. It is used by Apple, Google, Opera, Firefox, OpenOffice.org.The info on this page is tested with hunspell version 1.2.8.Hunspell home page is at hunspell.sourceforge.net. Basic history at Wikipedia Hunspell.# short usage summary hunspell -h How to check words interactively?“cd” to the hunspell dir, then do: hunspell -d en_US that will start the program in a interactive shell. Type word and press enter to spell check it. To exit, press “Ctrl+c”. Setting Environment Variables PathIf you have problem starting hunspell, you might need to set up some Environment Variables. Here's some example on Windows using cmd.exe:Windows with cmd.exeHere's a example for adding hunspell executable to environment variable PATH in Windows Vista using cmd.exe: setx PATH"C:…

arrows in unicode

Perm url with updates: http://xahlee.org/comp/unicode_arrows.htmlArrows in UnicodeXah Lee, 2010-06-19, 2010-06-22This page collects arrow characters in Unicode.← → ↑ ↓ ↔ ↕ ↖ ↗ ↘ ↙ ↮⇦ ⇨ ⇧ ⇩ ⬄ ⇳ ⬀ ⬁ ⬂ ⬃⬅ ⬆ ⬇ ⬈ ⬉ ⬊ ⬋ ⬌ ⬍⇐ ⇒ ⇑ ⇓ ⇔ ⇕ ⇖ ⇗ ⇘ ⇙ ⇍ ⇏ ⇎ ⟸ ⟹ ⟺↤ ↦ ↥ ↧ ⇤ ⇥ ⤒ ⤓ ↨⇆ ⇄ ⇅ ⇵ ⇈ ⇊ ⇇ ⇉⇠ ⇢ ⇡ ⇣⇚ ⇛ ⤊ ⤋ ⭅ ⭆ ⟰ ⟱↩ ↪ ↫ ↬↞ ↟ ↠ ↡ ↚ ↛↜ ↝ ↢ ↣↰ ↱ ↲ ↳ ⬐ ⬎ ⬑ ⬏ ↴ ↵ ↺ ↻ ⥀ ⥁ ⟲⟳↶ ↷ ⤾ ⤿ ⤸ ⤹ ⤺ ⤻↼ ⇀ ↿ ↾ ↽ ⇁ ⇂ ⇃ ⇋ ⇌⇜ ⇝ ⬳ ⟿ ⬱ ⇶ ⇽ ⇾ ⇿ ⟵ ⟶ ⟷ ⟻ ⟼⥊ ⥋ ⥌ ⥍ ⥎ ⥏ ⥐ ⥑ ⥒ ⥓ ⥔ ⥕ ⥖ ⥗ ⥘ ⥙⥚ ⥛ ⥜ ⥝ ⥞ ⥟ ⥠ ⥡ ⥢ ⥣ ⥤ ⥥ ⥦ ⥨ ⥧ ⥩ ⥮⥯ ⥪ ⥫ ⥬ ⥭⇷ ⇸ ⤉ ⤈ ⇹⇺ ⇻ ⇞ ⇟ ⇼⬴ ⤀ ⬵ ⤁⬹ ⤔⬺ ⤕ ⤂ ⤃ ⤄ ⬶ ⤅ ⬻ ⤖ ⬼ ⤗ ⬽ ⤘⤆ ⤇ ⤌ ⤍ ⤎ ⤏ ⤙ ⤚ ⤛ ⤜ ⤝ ⤞ ⤟ ⤠⤡ ⤢ ⤣ ⤤ ⤥ ⤦ ⤪ ⤨ ⤧ ⤩ ⤭ ⤮ ⤯ ⤰ ⤱ ⤲ ⤫ ⤬⥼ ⥽ ⥾ ⥿⤶ ⤷ ⤴ ⤵ ⤼ ⤽⥂ ⥃ ⥄ ⭀⥱ ⥶⥸ ⭂ ⭈ ⭊ ⥵ ⭁ ⭇ ⭉ ⥲ ⭋ ⭌ ⥳ ⥴ ⥆ ⥅⬷ ⤐ ⬸ ⤑ ⬿ ⤳ ⥹ ⥻⬰⇴ ⥈ ⬾ ⥇ ⬲ ⟴⥷ ⭃ ⥺ ⭄⇱ ⇲↸ ↹ ↯ ↭ ➾ ⥉ ⥰⇪ ⇫ ⇬ ⇭ ⇮ ⇯ ⇰ ☚ ☛ ☜ ☝ ☞ ☟ ➔ ➘ ➙ ➚ ➛ ➜ ➝ ➞ ➟ ➠ ➡ ➢ ➣ ➤ ➥ ➦ ➧ ➨ ➩ ➪ ➫ ➬ ➭ ➮ ➯ ➱ ➲ ➳ ➴ ➵ ➶ ➷ ➸ ➹ ➺ ➻ ➼ ➽There are about ~340 of them. These are from several different blocks of Unicode, including:Miscellaneous SymbolsDingbatsMiscellaneous Mathematical Symbols-ASupplemental Arrows-ASupplem…

Hunspell Path Pain

Perm url with updates: http://xahlee.org/comp/hunspell_spell_path_pain.htmlHunspell Path PainXah Lee, 2010-06-18Am slightly frustrated with hunspell. Spend about 5 hours yesterday and today on it. Am trying to get it to work with emacs's speck-mode, on Windows.Being a kinda thorough person, i started to work on this problem from the ground up, by first trying to read the doc, become familiar with its basic usages, syntax, and get it to run on the command line only. Once i am familar with it on command line, then i can move on to understand the integration and config issues with emacs and speck-mode, by getting it to work in my personal emacs setup. Then, i can move on to the next step, of working ErgoEmac's installation elisp config files. Great and careful master plan. (actually, i went one step more thorough than this, by first understanding aspell, of which, i did yesterday, the result is here: aspell Tutorial.)So, first job is to get it to run on the command line.The path …

Text Editor's Cursor Movement Behavior (emacs, vi, Notepad++)

Perm url with updates: http://xahlee.org/emacs/text_editor_cursor_behavior.htmlText Editor's Cursor Movement Behavior (emacs, vi, Notepad++)Xah Lee, 2010-06-17This article discusses some differences of cursor movement behavior among editors. That is, when you press “Ctrl+→”, on a line of programing language code with lots of different sequence of symbols, where exactly does the cursor stop at?Always End at Beginning of Word?Type the following in your favorite text editor. something in the water does not compute Now, you can try the word movement in different editors.I tested this on Notepad, Notepad++, vim, emacs, Mac's TextEdit.In Notepad, Notepad++, vim, the cursor always ends at the beginning of each word.In emacs and TextEdit, they end in the beginning of the word if you are moving backward, but ends at the end of the word if you are moving forward.That's the first major difference.Does Movement Depends on the Language Mode?Now, try this line: something !! in @@ the ##…

Mac OS X 10.6 no longer supports PowerPC Macs

Perm url with updates: http://xahlee.org/comp/blog.htmlAs you may know, Mac OS X 10.6, released in 2009, no longer supports Macs based on PowerPC chip. My Mac is the last PPC chip Mac bought in late 2005.Note from Wikipedia Mac OS X Snow Leopard, quote:Some ways of running 10.6 Snow Leopard on certain unsupported hardware have been discovered. Users who have access to supported hardware have installed Snow Leopard on the supported machine then simply moved the hard drive to the unsupported machine. Alternatively, the Snow Leopard Installation DVD can be booted on a supported Mac, then installed on an unsupported Mac via the Firewire Target Disk Mode.So, the decision of this must went something like this: Let's get some engineers to put in code so that old mac owner's can't upgrade. It's time for them to buy a new Mac!See also: Switching from Mac/Unix To PC/Windows.

the Borderline, by Sharon Apple

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/sanga_pemci/borderline_sharon_apple.htmlthe Borderline, by Sharon AppleXah Lee, 2010-06-16“the Borderline”, a song sung by Akino Arai (b1959). This song is dazed, dreamy, demented, psychedelic, and exceedingly sultry. Title: the Borderline Singer: Akino Arai Lyrics: Yoko Kanno Music: Yoko Kanno? The Borderline Red and Roses Lips and Breath Hair and Dolls They're look a-like Smoke and Mist Night and Midnight The deep and Hell They really get me Flip and Fly Heal and Feel Flower and Poison are on the brink The Borderline The Borderline Belly and jell-o Crack and Jazz Arch and Bridge They're look a-like Meet me and Hit me Tiny and Sticky Candy Kiss and Eating are just same things Free and Fall and Love and Low Evil make you feel good can't help doing that The Borderline The Borderline The borderline by Sharon Apple, Macross Plus Sharon Apple In Macross plus, Sharon Apple is a artificial idol. She exists as a …

aspell Tutorial

Perm url with updates: http://xahlee.org/comp/aspell_spell_checking.htmlaspell TutorialXah Lee, This page shows you the basics of using aspell.aspellAspell home page is at: aspell.net.Short intro by Wikipedia GNU Aspell.Full manual is at the home page. You can also read it from the command line. Type:# short usage summary aspell usage # short doc. man aspell # long list of all options aspell help # full manual info aspell Simple UsageHow to spell check a file interactively? aspell check filename.txt It launches into a interactive prompt. How to spell check a file in batch? cat myFile.txt | aspell pipe --encoding utf-8 The output is long list with annoying “*” for each line. To avoid that, use the following. cat myFile.txt | aspell pipe --encoding utf-8 | grep -v \* | uniq To list only the misspelled words, do: cat myFile.txt | aspell list --encoding utf-8 How to use aspell to check a single word? echo badword | aspell pipe echo somee words ar good some badd | aspell pipe Where is …

Cursum Perficio, by Enya

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/sanga_pemci/Cursum_Perficio_Enya.htmlCursum Perficio, by EnyaXah Lee, 2010-06-16“Cursum Perficio” (1988), sung by Enya (Eithne Ní Bhraonáin, b1961) The lyrics is in Latin, and is written by Roma Ryan.Here's the lyrics, in Latin, with English translation, from the official site enya.com. Cursum perficio Verbum (sat) sapienti eo plus cupiunt Quo plus habent, eo plus cupiunt Post nubila, Phoebus (in) aeternum ...my journey ends here... ...a word is enough for the wise; the more one has, the more he desires... ...after the clouds, the light... ...forever... Cursum Perficio, Enya The text shown on the screen is someone's try in putting the sound in English. It's not accurate, but quite funny. I especially like the way where the words “eterna” gets larger and larger. Love this song. It also reminds me of Elfen Lied (Elven Song).Cover of the album “Watermark”. Her official youtube site with many videos is at: youtu…

Keyboard Hardware's Influence on Keyboard Shortcut Design

Image
Perm url with updates: http://xahlee.org/emacs/keyboard_hardware_and_key_choices.htmlKeyboard Hardware's Influence on Keyboard Shortcut Design (How Emacs and vi keys came to be)Xah Lee, 2010-06-16, 2011-01-14In my study of keyboarding in the past 20 years, i've noticed that the choices of many shortcuts in many apps are adopted to the many aspects of the keyboard hardware of the time in use by the community. Emacs's keybindings are not simply based on the first letter of commands, but the qwerty layout's key positions have significant influence on it. This also applies to the letter choice of unix's shell commands. Much of this influences of design are unconscious.Emacs's Meta and ControlAs a example, emacs's Meta key, and heavy use of Control as primary modifier, and avoiding any 【Ctrl+Shift+‹letter›】 in its keyboard shortcuts, are caused by the lisp keyboard hardware and dumb terminals of 1980s.Symbolics's lisp machine keyboard PN 365407 Rev C. full …

keyboard key ghosting

Perm url with updates: http://xahlee.org/comp/keyboard_key_ghosting.htmlKeyboard Ghosting; How Many Keys Your Keyboard Can Take?Xah Lee, 2010-06-14How many simultaneous key presses can your keyboard handle?Here's a test you can do.Hold down both Shift keys, then press x. See if the letter shows up on your screen.Yes? Now, try other keys, while keep both the Shift keys depressed. Go through the whole alphabet. Best is to ask your friend to hold both the Shift down, then you press each and every key on your keyboard, and see if they appear on the screen.On my Microsoft Comfort Curve Keyboard 2000 and Natural Ergonomic Keyboard 4000, when both Shift are held down, the key “x” and “/” and “3” does not work!Key Ghosting and Keyboard Switch Circuit DesignApparently, this is a known problem, and is a problem for vast majority of keyboards. This problem is called key ghosting. It has something to do with the design of the circuits. Basically, the electronics of the keys are laid out on a…

the Kinesis Contoured Keyboard review

Image
Perm url with updates: http://xahlee.org/emacs/keyboard_Kinesis.htmlKinesis Contoured Keyboard Review and RSIXah Lee, 2006-06, 2010-06-12A excellent, ergonomically designed keyboard is the Kinesis's Contoured Keyboard.The Kinesis contoured keyboard. Source Design AdvantagesThere are several quality designs that went into this keyboard. I explain each item below.Palm Higher Than Finger TipsNote the bowl shaped surface. When your hands rest on the keyboard, your wrists don't bend up. Your fingers naturally dip in and rest on the keys.The Microsoft Natural Ergonomic Keyboard 4000, introduced in 2005, used the same ergonomic prinpiple, by tilting the palm side of the keyboard higher.Key Columns Not JaggedNote that key columns (e.g. 1QAZ, 2WSX, 3EDC...) are layed out straight, so that your fingers moves in a straight line, not slanted as in conventional keyboards.The reason traditional keyboards have jagged columns, probably because the design are inherited from mechanical typewrit…

Alfred Lawson; the University of Lawsonomy

Perm url with updates: http://xahlee.org/Periodic_dosage_dir/lawsonomy.htmlAlfred Lawson; the University of LawsonomyXah Lee, 2010-06-14Alfred Lawson (1869-1954), another cult, theory of everything guy. Quote:In the 1920s, he promoted health practices including vegetarianism and claimed to have found the secret of living to 200. He also developed his own highly unusual theories of physics, according to which such concepts as "penetrability", "suction and pressure" and "zig-zag-and-swirl" were discoveries on par with Einstein's Theory of Relativity.[3] He published numerous books on these concepts, all set in a distinctive typography. Lawson repeatedly predicted the worldwide adoption of Lawsonian principles by the year 2000.He later propounded his own philosophy—Lawsonomy—and the Lawsonian religion. He also developed, during the Great Depression, the populist economic theory of "Direct Credits", according to which banks are the cause of al…

is Skype chat encrypted?

Perm url with updates: http://xahlee.org/comp/skype.htmlSkype Chat Encryption and Screen SharingXah Lee, 2010-06-13Was wondering if Skype text chat or voice chat are encrypted. After few minutes of web search, quickly the answer is found without a doubt.You Can Talk About Your Secrets Over SkypeAccording to support.skype.com. Quote:Skype uses AES (Advanced Encryption Standard), also known as Rijndael, which is used by the US Government organizations to protect sensitive, information. Skype uses 256-bit encryption, which has a total of 1.1 x 1077 possible keys, in order to actively encrypt the data in each Skype call or instant message. Skype uses 1024 bit RSA to negotiate symmetric AES keys. User public keys are certified by the Skype server at login using 1536 or 2048-bit RSA certificates.Of course i confirmed this to not be a commercial company's false claim. In short, for average citizens, you can pass passwords using Skype, or talk about your affairs, without worrying about ea…

my java tutorial accolade

Perm url with updates: http://xahlee.org/comp/blog.html2010-06-13 Got this accolade today for my Java Tutorial:Thanks much for your informative Java programming aid online. I'm an old crow who cut his teeth on assembly language - and left programming for my career in SatCom. But all roads seem to circle around some programming application and your website has been very helpful with my current interest. Thanks much for the time and effort your spent to create it!!MS Engineering control theory UC-Berkeley '72Wee!