Posts

Showing posts from December 19, 2010

on marketing

Started to write something on Facebook, but as usual i hit the char limit. So, here it is:if you haven't already, please subscribe to my blogs. Takes too much time to put each new post here. subscribe here Subscribe To XahLee.org Site Feed.extempore thought:i used to think that great writing or product is key to success. That is of course still the most important thing. But I've found in this year, marketing is critically important, and it really take a large percentage of your resources (say, at least 20% of your time/resource needs to be spend on such thing) Looking at movies industry, you know how they spend tens of thousand to market each film. Some great films, without marketing, are not known to the general public, and some developed so-called cult following. That's a example. Likewise, companies, have a sizable percentage budgets devoted to marketing. In short summary, in modern society, in general, in order to break beyond close circle fans, a good percentage of yo…

Emacs Keyboard Macro Example: Insert All Unicode Stars

Image
Perm url with updates: http://xahlee.org/emacs/emacs_macro_insert_all_unicode_stars.htmlEmacs Keyboard Macro Example: Insert All Unicode StarsXah Lee, 2010-12-24Here's another story about emacs's power. This page shows a real world example of emacs's power, using several of emacs's features to insert all unicode characters who's name contains “star”.ProblemI need to collect all unicode characters whose name contains “bullet”. For each one, i want the unicode name, followed by the char. For example, here's the result showing some them: BULLET
TRIANGULAR BULLET
WHITE BULLET
CIRCLED BULLET ⦿
Before reading further, try to spend 10 minutes, using your knowledge of emacs to do it. Test your skill out.If you don't know how do it, you are a emacs learner.If you did it within 10 min, you are a emacs user.If you did it within 1 min, you are a emacs expert.If you did it within 1 min without emacs, you are impossible. ☺↓ SolutionHint, use “ucs-insert” and keyboa…

HTML Entities, Ampersand, Unicode, Semantics

Image
Perm url with updates: http://xahlee.org/comp/ampersand_html_entities_unicode_semantics.htmlHTML Entities, Ampersand, Unicode, SemanticsXah Lee, 2010-12-23This article is some thoughts on semantics of symbols.Semantic Differences in Symbols of Identical AppearanceI write a lot essasy and tutorials related to computing. Often, they include instructions on pulling menus in software. For example, i would write: use the menu “File▸New▸Folder”. (e.g. Second Life Keyboard Shortcuts Cheatsheet.)I needed a consistent syntax to indicate the menu hierarchy. Notice that i've used a small right pointing triangle there. The unicode char i was using is named TRIANGULAR BULLET “‣”. I found a better symbol for it recently, the BLACK RIGHT-POINTING SMALL TRIANGLE “▸”. So, i took 5 min in emacs to do the change to 5k files on my site. (There are 353 occurances in 62 files.)Even both chars look the same, but they have semantic differences. The char i was using is a meant to be a Bullet (typography…

Art of Translation

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/bangu/art_of_translation.htmlArt of TranslationXah Lee, 2010-12-23Here are 2 translations of a lyrics from Chinese.Translation ATranslation A There's a girl, named Poem She has many secrets Cause in this world, it's hard to find a soul mate She must search and seek She thinks that, her face, leaves no trace But loneliness, is written on her face A girl by the name of Sze Yi Full of secrets in her heart A true friend is hard to get She must try hard to find one She thinks she can keep her secrets And that they won't be shown on her face But the word solitude is written on her face which one do you think is better? (please leave a comment before reading further.)✻ ✻ ✻Last year, i translated a song 詩意 (Shiyi) from chinese to english. Today, i saw on the web a clip of the movie with subtitles in english of the song. After reading it, i realized my translation is so bad.Here's the lyrics in chinese 一个女孩 名叫…

Second Life Viewer 2 Stupidities

Perm url with updates: http://xahlee.org/sl/sl_viewer2_stupidity.htmlSecond Life Viewer 2 ProblemsGet your Xah Particle Maker today! Xah Lee, 2010-12-22Many aspects of Viewer 2 are stupid.The new design is based on web browsers, so it is more familiar to people. I think in general it is a great new interface. More simple, easier to use. However, there are quite a lot stupidities that made it very inefficent while it need not be. Here's some examples i'm writing down as i find it. (i haven't been using Viewer 2. I always use Emerald and now Phoenix.) In old viewer, you can press 【Ctrl+i】 to always expect the inventory to come up. Now, not so. When you do 【Ctrl+i】 now, it simply brings up the sidebar of whatever info was there last time, such as properties of a object. You now have to use mouse to get rid of that. 【Ctrl+w】 won't work.In old viewer, press 【Ctrl+i】 and your cursor is in the search so can type what you want to find things right away. Now, you have to press …

HTML5 Canvas vs SVG

Image
Perm url with updates: http://xahlee.org/js/html5_canvas_vs_SVG.htmlHTML5 Canvas vs SVGXah Lee, 2010-12-22Spent few hours looking at HTML5 Canvas and Scalable Vector Graphics (SVG).My conclusion is: i won't touch HTML5 Canvas. Here's some highlights:Canvas is bitmap based, SVG is vector graphics tech. (this basically means, SVG graphics can be resized without getting fuzzy. Suitable for clean line drawings, such as charts and illustrations. Canvas is more for photos, bitmapped video games. (If you are not familiar with the basics of advantage and disadvantages of bitmap vs vector graphics, see: Raster graphics and Vector graphics.))SVG is XML. Each graphics element you created can be scripted with javascript for interactivity as part of XML/CSS/DOM. e.g. onclick, onmouseover.The language of Canvas is low level and procedural, while SVG is declarative and higher level. (you can think of them as imperative lang vs functional lang) In procedural way, you give commands to draw a…

Windows Quick Launch change keyboard shortcuts

Windows Vista has this Quick Launch toolbar. Basically, you can drag icons there and you can click icons there to launch apps. It also has a automatic hotkey feature. Whenever you put a icon there, a hotkey is automatically created for you. The first icon will have hotkey 【Win+1】, and second 【Win+2】, etc. The total number of hotkeys auto-created are limited to 10, from 1 to 9 and 0.Great feature, but there's one problem. Whenever you create a new icon, or remove one, all your hotkey changes. This is quite annoying.So, today, i disabled them all, and instead, use AutoHotkey to create hotkeys myself. Like this:; disable the bunch of launch app keys setup by Quick Launch. Because it change keys whenever you add or delete a icon there. #1::Return #2::Return #3::Return #4::Return #5::Return #6::Return #7::Run"launch or switch skype.ahk" #8::Return #9::Return #0::ReturnSee also:Windows Start Menu, Desktop, Quick Launch, File LocationsAutoHotkey BasicsMicrosoft Windows Keyboar…

Jinni: I WANT!

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/t1/jinni_I_want.htmlJinni: I WANT!Xah Lee, 2006-11-17Jinni, please grant me all powerful knowledge!Wait, no, i won't ask for much. All i want is, a BS degree equivalent knowledge each of:Chemistry, biology, microbiology, human physiology.And, while you are at it, please grant me 2-years study equivalent worth knowledge each of: abstract algebra, differential geometry, topology, number theory, graph theory, combinatorics, representation theory (i.e. concrete group theory), game theory, probability theory, algebraic geometry, projective geometry.Jinn, grant me!And, it is also desirable, to know perhaps a BS degree equivalent of: economics, law.Dear Jinni, in my life i've been a avid encyclopedia reader. I read Britannica and American Grolier's Encyclopedia about daily in the early 1990s. Then since early 2000 i've been spending several hours reading wikipedia daily.Jinni, but i know so little, so insignificant.…

Sleep, Dream, Inception

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/sleep.htmlSleep, Dream, InceptionXah Lee, 2010-12-19Watched Inception today. amazon. Not bad, but i wasn't thrilled.Was drawn into the movie because i was a big Lucid dreaming fan. Kept a dream journal for about 2 years when i was about 13 (~1981). Sometimes in 1980s, Omni (magazine) published a article about lucid dreaming. In the article, i recall the researcher solicit reader's participation or sending in their dream journal. (i recall, the research team at Stanford University) I responded by postal mail my dream journals to them. (was written in Chinese) This is when i was living in Montreal, Canada. I was about 17 at the time.I read rather a lot about dreams and sleep in my life. The whole science of it. REM, stages of brain waves, physiology of dreaming, and of course some about interpretation. “Some”, because literatures on interpretation of dreams are mostly superstitious garbage.The science of Sleep is als…

unicode drawing shapes

Image
Perm url with updates: http://xahlee.org/comp/unicode_drawing_shapes.htmlUnicode Drawing ShapesXah Lee, 2010-12-21This page collects characters in Unicode that are drawing shapes.Box Drawing (#x2500 #x257F) ─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏ ┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟ ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯ ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻ ┼ ┽ ┾ ┿ ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏ ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯ ╰ ╱ ╲ ╳ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾Block Elements (#x2580 #x259F) ▀ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▉ ▊ ▋ ▌ ▍ ▎ ▏ ▐ ░ ▒ ▓ ▔ ▕ ▖ ▗ ▘ ▙ ▚ ▛ ▜ ▝ ▞Geometric Shapes (#x25A0 #x25FF) ■ □ ▢ ▣ ▤ ▥ ▦ ▧ ▨ ▩ ▪ ▫ ▬ ▭ ▮ ▯ ▰ ▱ ▲ △ ▴ ▵ ▶ ▷ ▸ ▹ ► ▻ ▼ ▽ ▾ ▿ ◀ ◁ ◂ ◃ ◄ ◅ ◆ ◇ ◈ ◉ ◊ ○ ◌ ◍ ◎ ● ◐ ◑ ◒ ◓ ◔ ◕ ◖ ◗ ◘ ◙ ◚ ◛ ◜ ◝ ◞ ◟ ◠ ◡ ◢ ◣ ◤ ◥ ◦ ◧ ◨ ◩ ◪ ◫ ◬ ◭ ◮ ◯ ◰ ◱ ◲ ◳ ◴ ◵ ◶ ◷ ◸ ◹ ◺ ◻ ◼ ◽ ◾ Dingbats and Cultural Symbols in UnicodeComputing Symbols in UnicodeMath Symbols in UnicodeEmacs and Unicode TipsEmacs xmsi-mode for Math Symbols Input Was this page useful? If so, please do donate $3, thank you donors!

second life inventory links

Image
Inventory Links“Outfit Links” is quite a useful feature. For example, in sl, sometimes i play in the military combat community (first person shooter.) Sometimes i do build and scripting. (see: Build Tutorial and Scripting Tutorial.) Sometimes you might go to a dance club or beach. In different situations, you have different set of avatars, clothing items, or huds you wear. It is tedious to take off your clothing items and pick different ones in your inventory to wear. With “outfit links”, you can wear a particular set in one shot.Inventory links tutorial If you are impatient to watch the vid... see this doc at Source wiki.phoenixviewer.com.2010-12-19 There's a new version of lsl-mode for emacs. This new version added new functions and keywords AGENT_BY_LEGACY_NAME, AGENT_BY_USERNAME, llGetDisplayName, llRequestDisplayName.Get it now at Emacs xlsl-mode for Linden Scripting Language.2010-12-15 Thanks to Michael Aldred donation for Emacs xlsl-mode for Linden Scripting Language.

adding web browser keys to emacs info mode

Perm url with updates: http://xahlee.org/emacs/emacs_adding_browser_keys.htmlAdding Web Browser Keys to EmacsXah Lee, 2010-12-20Emacs has extensive documentation. The doc format is called “info”, and is a tree structure, very similar to how you browse a website.To view the complete documentation index, press 【Ctrl+hi】. Once you are in the Info doc, you can use the mouse to navigate, or using keyboard.Here's the most important navigation keys:PurposeEmacs KeyWeb Browser keyBacklBackspace or 【Alt+←】Forwardr【Shift+Backspace】 or 【Alt+→】Go Up u◇Focus on Next LinkTabTabVisit LinkEnterEnterWeb browsers use the Backspace for moving to last viewed page and 【Shift+Backspace】 for moving forward. If you have 5 button mouse, by default the 4th and 5th button also works. (【Alt+←】 and 【Alt+→】 also works.)These keys don't work in emacs. If you use emacs in a graphical window, using the mouse's 4th and 5th button are quite convenient. Here's how to add to emacs. Put the following in yo…

Dingbats and Cultural Symbols in Unicode

Image
Perm url with updates: http://xahlee.org/comp/unicode_dingbats.htmlDingbats and Cultural Symbols in UnicodeXah Lee, 2010-12-20This pages collects cultural symbols, industrial symbols, dinbats, or other weird chars of Unicode. checkmarks ✓ ✔ ✗ ✘ ☐ ☑ ☒ 𐄂 ⍻ ❍ ❏ ❐ ❑ ❒; multiplication x ✕ ✖ ╳; office ✂ ✄ ✁ ✃ ✉; bullets and deco ❦ ❗ ❡ ❢ ❣ ❤ ❥ ❧ ☙; deco matching pairs ❛ ❜ ❝ ❞ ❨ ❩ ❪ ❫ ❬ ❭ ❮ ❯ ❰ ❱ ❲ ❳ ❴ ❵; unsorted ☚ ☛ ☜ ☝ ☞ ☟; star ★ ☆ ✦ ✧ ✩ ✪ ✫ ✬ ✭ ✮ ✯ ✰ ✴ ✵ ✶ ✷ ✸ ✹ ❂; sparkle ❇ ❈ snowflake ❄ ❅ ❆; florette ✿ ❀ ❁ ✾; asterisks * ⁎ ∗ ✱ ✲ ✳ ✺ ✻ ✼ ✽ ❃ ❉ ❊ ❋ ﹡ *; 4-spoked asterisk ✢ ✣ ✤ ✥; cross ✙ ✚ ✛ ✜ ✝ ✞ ✟ ✠ ♰ ♱ ☦ ☨ ☩; cultural ☓ ✡ ☧ ☪ ☫ ☬ ☭ ⚒ ☘ ⚜ ☸ ☥; staff ⚕ ⚚ ☤ taoism ☯ ☰ ☱ ☲ ☳ ☴ ☵ ☶ ☷ ⚊ ⚋ ⚌ ⚍ ⚎ ⚏; industrial ☠ ☢ ☣ ⚛ ⚡; recycle ♲ ♳ ♴ ♵ ♶ ♷ ♸ ♹ ♺ ♻ ♼ ♽ ♾; peace ☺ ☹ ☻ ☮ ✌; sex ♀ ♂ ⚨ ⚩ ⚦ ⚲; sex relations ⚢ ⚣ ⚤ ⚥ ⚧; marriage ⚭ ⚮ ⚯; modern icons ♨ ♿ ⚠ ☡ ✈ ✆ ☎ ☏ ☕; weather ☀ ☼ ☁ ☂ ☔ ☃ ☇ ☈; chess ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟; card games ♥ ♠ ♦ ♣ ♡ ♤ ♢ ♧; dice ⚀ ⚁ ⚂ ⚃ ⚄ ⚅; other ⛀ ⛁ ⛂ ⛃ ☖ ☗; misc ⚆ ⚇…

Second Life Login Name, Display Name

Image
Perm url with updates: http://xahlee.org/sl/sl_login_name_display_name.htmlSecond Life Login Name, Display NameA video tutorial from the Phoenix Viewer team.〈Display Names on Phoenix Viewer〉 By Jessica Lyon. Here's a short summary about the display confusion.Old Login Name: First Name, Last NameIn the past, sl login name has 2 parts: first name, last name. The first name is freely choosen by user when they opened a account, while last name is from Linden Labs (a list of last names you pick from a menu).For example, my first name is “Xah”. My last name is “Toll”, which is from Linden Labs.New Login Name: Just One NameStarting sometimes this year (2010), Linden Labs made some changes. New account no longer have a “last name”. This is more compatible with most websites. More intuitive and easier to remember.How to Login in Different ViewersIf you have both first and last name, and in a viewer that has only one name field, type both of your names together, separated by space. For examp…