Showing posts from March 25, 2012


Geek Latte Art: GNU, Beastie, Golang

GNU logo latte art. 2448×3264 (photo by Yuko Honda Source Geek Latte Art: GNU, Beastie, Golang

Add-A-Gram Programing Puzzle

John Snader posted a very interesting coding challenge problem. See: Source implement it in elisp or your fav lang.

Unicode: Egyptian Hieroglyph Characters

here's egyptian hieroglyph in unicode.�� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� �� for the full list of chars, rendered images, fonts, see: 6 EmoticonsUnicode: Dingbats, Map Signs, Weather Signs, Cultural SymbolsComputing Symbols in UnicodeArrows in UnicodeMatching Brackets in UnicodeMath Symbols in Unicode

Is Programing Art or Science

[refreshen of the blood.]Dear friends,You mentioned the title of Donald Knuth's magnum opusArt of Programming in the context of discussion that fringes on whether programing is science or art. I'm quite pissed off at work at the moment, so let me take the time to give some guide on this matter to the daily programers.At the bottom rung of programers, there's no question about whether programing is science or art. Because monkey coders could not care less. These folks ain't be reading this post, for they hardly will have heard of lisp.This leaves us with elite programers who have a smattering of interests on cogitation and philosophical conundrums. So, is programing a science or art?final say here: Is Programing Art or Science

HTML5 Page Article Tag and Page Structure Tags

w3c html validator invalid!

Loly, by W3C spec at, the value for element attribute (e.g. {id, class}) must start with a letter. Quote:ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").However, you can start with a unicode greek α and it passes W3C's validator.Here's a test page: Test: Unicode Character in HTML ID Attribute Value.much more at

Case Sensitivity in HTML/HTML5/XHTML/CSS

Perm URL with updates: Sensitivity and Allowed Characters in Attribute NamesHTML4, HTML5: tag names are NOT case sensitive. <p class="…">…</p> = <P cLAss="…">…</p>XHTML, XML: are case sensitive, and must be all lowercase.ID element, attributes values, in any HTML/XML are case sensitive. e.g. <span class="aaa"> ≠ <span class="AAA">.Javascript is case sensitive.Best is to always be case sensitive in your code.Allowed chars in “id” <div id="myID">…</div> must start with a letter (A to Z, uppper or lowercase). After that, it can be digits (0 to 9), hyphen -, colon :, period ..In practice, you can start with a unicode char in id, such as α, and the W3C validator will pass it as valid (as of 2012-03-29). (➲ Using Unicode in HTML Attributes)

Unicode Symbol Use: ➲ U+27B2

Decided to adopt a new unicode symbol usage. On my site, i have hundreds links of the form: (See: ‹link title›.). So, a article may have lots “(See: …)”, sometimes a few in a paragraph. I decided to replace the “(See: …)” with just “(➲ …)”, and get rid of the ending period.Note that the Unicode char is U+27B2, named “CIRCLED HEAVY WHITE RIGHTWARDS ARROW”. It displays fine by default in all major browsers. This is a important point to consider when you want to adopt some unicode char. (➲ Arrows in Unicode)Originally, i thought of using a eye icon. The one that i found are:�� “EYES”�� “EYEGLASSES”but these characters are probably new in unicode 6, and they do not show in browsers except Firefox on my machine. Also, they don't really fit. The eyeglasses is OK but in normal sized font it's illegible. Then, i thought of using “WHITE RIGHT POINTING INDEX”. This char shows up but again not legible without larger font. This is a important point, because it ruled out many other ico…

Emacs + Keyboard Geeking, the Nth Episode 2012-03

Perm URL with updates: spent ~4 hours and did major surgery on my keyboard system again.specifically, the change is this:Before, the 【Menu+‹key›】 combo insert various Unicode chars, and Caps Lock does emacs's “execute-extended-command” (M-x). Now, the two are switched. Now the Menu key does “execute-extended-command” (just like on Linux by default), and 【Caps Lock‹key›】 inserts Unicode chars (note it's a key sequence here, not combo.).Also, Esc now does emacs's cancel 【Ctrl+g】.The mappings are done using AutoHotkey and emacs. Here's related references and tutorials:Windows Programing: AutoHotkey Example ScriptsEmacs's Keybinding LayoutErgoEmacs KeybindingSystem-wide ErgoEmacs Keybinding for Windows, Mac, BashNote that all my {F1, …, F12} function keys are used up. All 15/17 keys on the numberpad are also used up (the exceptions are Num Lock and Enter). All 9 app launch special buttons on the keyboard are al…

Ruby is Just Fantastic

Ruby is Just Fantastic2012-03-27 Ruby is just fantastic. Spent a total maybe 4 hours in past days reading its doc/tutorial. Far better than python and feeling is exactly the same as Steve Yegge blog on Ruby. Don't like perl? there's python. Why O Why the world needs Ruby? Then, you learn a bit about Ruby and it just blow python and perl off the earth. No wonder it rose up among so many coder geeks. Plus, its doc and tutorial is beautiful. Unlike the perl cult fuck littered with inane litanies, or the python fucks with “comp-sci R Us” incomprehensible be sure, Ruby lang is not too diff from perl/python. If you are a lang aficionado, and already know one of {perl, python, php, javascript}, then there's really not much new in Ruby. You better off to pick up {OCaml, Haskell, Mathematica, erlang, …}.search Yegge on Ruby to read his blog.i'll be working on Xah Take of Ruby tutorial now. Starting with strings, perhaps today.Perm URL with updates: http://xahlee.…

Emacs Tip: Make Menu Key Do M-x

(global-set-key (kbd "<apps>") 'execute-extended-command) ; make the menu/apps key do M-x this is default on linuxes.Of you linux users, do you use M-x more often or Menu key to call command by name?

New Emacs Wiki:

A new emacs wiki by Bozhidar Batsov (who brought us emacs prelude pack.)Help contribute!(also thanks to Alex Schroeder for the huge work on since about 2005!)I'd much prefer Wikipedia style, the content as well as Wikimedia software. Emacswiki (EW) is just chaotic and often incorrect or outdated info, and there's no impetus to fix those while as a wiki it does have the power to.for example, while i was looking at yasnippet ~2007. I discovered there's quite a lot template systems already, some are bundled in emacs. Thanks to EW for that. However, aside from just a list of names, it's impossible to know much of anything. I spent a day diving among the chaotic info on EW. If it was like Wikipedia, then, in a hour i'd have read a summary of all template systems, know which exactly are bundled, when, in what emacs version, and also get a summery of their differences, their feature set, and code samples on defining a…

Keyboard Evolution: Zoom Button, Dedicated Keys


Perl Documentation: The Key to Perl

Perm URL with updates:, i wanted to know what the option perl -C does. So, here's perldoc perlrun. Excerpt: -C [*number/list*] The -C flag controls some of the Perl Unicode features. As of 5.8.1, the -C can be followed either by a number or a list of option letters. The letters, their numeric values, and effects are as follows; listing the letters is equal to summing the numbers. I 1 STDIN is assumed to be in UTF-8 O 2 STDOUT will be in UTF-8 E 4 STDERR will be in UTF-8 S 7 I + O + E i 8 UTF-8 is the default PerlIO layer for input streams o 16 UTF-8 is the default PerlIO layer for output streams D 24 i + o A 32 the @ARGV elements are expected to be strings encoded in UTF-8 L 64 normally the "IOEioA&q…

Spamlicious: Buy Twitter Followers


Movie John Carter (2012)

John Carter (film).The film is currently (unadjusted for inflation) one of the biggest box office bombs in film history, with a total net loss of $115,553,000.1lol. But the trailer is pretty cool. Especially the second one.Movie John Carter trailer.Movie John Carter full trailer.