Posts

Showing posts from 2010

Wikileaks Rape: Julian Assange Raped Women?

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/wikileaks_rape.htmlWikileaks Rape: Julian Assange Raped Women?Xah Lee, 2010-12, 2010-12-29If you are not familiar with the event of wikileaks, see a intro here: Wikileak: US Diplomatic Cables Leak.Julian Assange Raped Women?The Wikileaks sex files: How two one-night stands sparked a worldwide hunt for Julian Assange (2010-12-07) By Richard Pendlebury. Source www.dailymail.co.uk.Summary of the article: When Julian was visiting Stockholm, Sweden, two women admirers, Anna and Sofia, sought him out. Anna offered her apartment for him to stay. Sofia bought the train ticket for Julian to visit her at home. Both had sex with him. Anna created a party at her house the next morning for him. Sofia had a second sex the morning after. Few days later, the two women met, found out that each slept with him, then they started to visit police. The central issue seems to involve a broken condom. Apparently, under Swedish law, sex without wom…

Mike Tyson vs James Douglas

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/tyson_vs_douglas.htmlMike Tyson vs James DouglasXah Lee, 2010-12-27This is Tyson vs. Douglas in 1990. One of the historic boxing match.“Mike Tyson vs James Douglas”, round 1 to 4. “Mike Tyson vs James Douglas”, round 5 to 7. “Mike Tyson vs James Douglas”, round 8 to 10. Kung Fu and Martial Arts Video Game Was this page useful? If so, please do donate $3, thank you donors!

The story behind a formula for Pi

Image
Perm url with updates: http://xahlee.org/math/Simon_Plouffe_pi_formula.htmlMath Politics: Simon Plouffe and The nth Digit Formula of πXah Lee, 2010-12-27Discovered a notable math politics.There's a fomula, that can compute the nth digit of pi directly. The formula is named Bailey–Borwein–Plouffe formula. Presumably, it is discovered by 3 persons David H Bailey, Peter Borwein, and Simon Plouffe, but actually might be just a single person Simon Plouffe. This is a typical politics in math or other science community. Here's what Simon has to say about it.The story behind a formula for Pi From: plou...@math.uqam.ca (Simon Plouffe) Date: Jun 23 2003, 10:14 pm Subject: The story behind a formula for Pi To: sci.math, sci.math.symbolic This note explains the story of the so-called Bailey-Borwein-Plouffe algorithm and formula.  The story began many years ago in 1974 when I wanted to find a formula for the n'th digit of Pi. I was studying rational and irrational numbers. With my calc…

Emacs Lisp Tutorial: Replacing Title Brackets to HTML Tags

Image
Perm url with updates: http://xahlee.org/emacs/elisp_replace_title_tags.htmlEmacs Lisp Tutorial: Replacing Title Brackets to HTML TagsXah Lee, 2010-12-26ProblemIn my blogs, i use angle brackets for book titles and article titles. For example: • 〈The Rise of “Worse is Better”〉 (1991) ... • 《The Unix-Hater's Handbook》 (1994) ... When a page is a book list, i'd prefer the book names to be colored so it is more readable. So, i want a html tag like this: • <spanclass="atlt">The Rise of “Worse is Better”</span> (1991) ... • <spanclass="bktl">The Unix-Hater's Handbook</span> (1994) ... With proper CSS, the titles will be colored, and the brackets also added.. Here's what it looks like:The Rise of “Worse is Better” (1991) ...The Unix-Hater's Handbook (1994) ...The CSS would look like this:span.bktl, span.atlt {color:#006400} span.bktl:before{content:"《";color:black} span.bktl:after{content:"》";color:black} spa…

Restore Last Session in Safari, Firefox, Chrome

Image
Perm url with updates: http://xahlee.org/mswin/browser_restore_session.htmlRestore Last Session in Safari, Firefox, ChromeXah Lee, 2010-12-26This page tells you how to restore your last session (all opened pages (tabs/windows)) in all major browsers.In my daily work, i usually have 10 to 20 tabs open in each of Firefox, Google Chrome, Opera, and sometimes Safari, Internet Explorer too. (yes, i use all of them at the same time.) It is critical for me that when a browser crashed, i must have all the my pages re-open. Because, the tabs i have open usually means to-read or otherwise to-do item.SafariRecently, Safari (5.0.3) on Windows added a new feature. Now you can open all tabs in your last session. It's under the menu “History▸Reopen All Windows From Last Session”. Finally. Safari is the last browser to have this feature.FirefoxFirefox, starting about version 3.x, will automatically open all tabs in your last session if it crashed. (See: https://wiki.mozilla.org/Session_Restore) G…

Hollywood+Disney: A Rape of Culture

Image
Perm url with updates: http://xahlee.org/Periodic_dosage_dir/hollywood_disney_rape_of_culture.htmlHollywood and Disney's Rape of CultureXah Lee, 2010-12-26Watched 〈Clash of the Titans〉 (2010) amazon recently. I enjoyed the monsters. In particular, i really enjoyed the Medusa scene. But overall, it's a very lousy film. Idiotic actors with clownish costumes, bland acting with very stupid script, a American paintjob of Greek tale.Whenever the hero Perseus appears i just see a US Marine (played by Sam Worthington, of Avatar). When Zeus is on the screen, i can't help but see the jedi Qui-Gon of Star Wars (played by Liam Neeson) behaving as a comical jedi Zeus. Another major supporting actor, one that helped in the Medusa kill, is the villain Le Chiffre of James Bond's Casino Royale (Mads Mikkelsen as Draco).Seems most of the major actors have blue eyes, and speak in various english accents (Scottish, Australian). LOL.Also, out of the blue they brought the Arabic myth Jinn

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…