Showing posts from April 10, 2011

setting shell prompt within emacs

emacs: new version of command-frequency

David Capello created a new version of “command-frequency.el” now called “keyfreq.el”. See here for detail and download location:Emacs's Command Frequency.

Emacs vs Windows Notepad

Perm url with updates: vs Windows NotepadXah Lee, 2011-04-13On Apr 9, 11:39 am, "Captain Obvious" 〔〕 wrote:Yeah, god forbid doing things differently than Windows(r) NotePad does.One of the emacs cult phenomenon is that whenever some UI improvement is mentioned, the emacs cultist will bring up Windows Notepad. It's like this:Emacs user: we should be more loving and share resources. Emacs cultist: we don't want another communist. from that point on, no meaningful discussion can be had. It's just emacs vs Windows Notepad, the good vs the evil, the knowledgeable vs the idiots. Like:Emacs user: emacs undo is making me insane. Is it possible to have traditional undo? Emacs cultist: if you want Windows Notepad, use that. Emacs user: emacs keys are so hard to remember. Is it possible to support the conventional keys for copy, cut, open, close, etc as in gnu/linux apps? Emacs cultist: Why do…

twitter hash & unicode for functional programing

Twitter Hash and Unicode SymbolsSome unicode symbol semantic thoughts.There does not seem to be a good hash code for functional programing. If you search “#fp”, lots of tweet comes up but is not related to functional programing. If you use “#functionalprograming”, that's too long a word, takes 21 character out of tweet limit of 140, and rarely do people use that.Twitter doesn't allow hash of unicode symbols. For example, for functional programing, you might use #λ, but twitter doesn't recognize any non-ascii char as a hash tag. (seems only recognize hash of english letters) When you search for “#λ”, nothing shows up, even if you have tweeted it. However, if you just search for λ, it shows up, though, most of it is Japanese using that symbol as part of emoticon.Anyhow, it might be nice to establish a convention among functional programing communities to use λ for any tweet related to functional programing but is not specific about a language e.g. erlang, ocaml, haskell, clo…

Emacs Bug: using universal argument to insert a unicode char with key defined by “key-translation-map” creates error and disables undo

Emacs Bug: C-u & key-translation-map disables undo.This seems like a bug. Steps to reproduce:Start GNU Emacs 23.2 with “-Q”. (so it doesn't load any custome init files.)Evaluate this: (define-key key-translation-map (kbd "M--") (kbd "─")) (it lets you press 【Alt+-】 to insert a unicode char “BOX DRAWINGS LIGHT HORIZONTAL” (U+2500).)Open a new buffer.Type 【C-u 30 M--】. (insert the char 30 times.)You get this error: universal-argument-other-key: Args out of range: " ─", 0, 7Now, do Type 【C-u 30 M--】 again. This time, no problem.The worst problem is this: Now, when you try to undo, emacs says “No further undo information”.

How many people in the world understands CSS's float?

CSS's “float” is really hard to understand. How many people in the world really understand it? I'm guessing it's less than 2 thousand.Here's a test page. html css float left right test page.

Paul Graham, Arc Lisp, Lisp problems

Discovered that there's a forum for Paul Graham's language Arc Lisp, at, and there's a thread discussing my criticism of lisp, at: Source Graham's Infatuation with the Concept of HackerWhat's Philosophy and Paul Graham

Looking For a Tool for HTML/XML Validation

Looking For a Tool for HTML/XML ValidationIn Firefox, there's a Extension called “Html Validator”. It adds a little indicator icon at the bottom right corner of your window. When a page you visit isn't valid, it lights up. You can click on it to see the errors. The really important feature of this extension is that it does not make a connection to w3c's validator. The same validating SGML parser used by w3c is bundled. This means, it validate any local html files. (this is most important use for me, as i do web dev with manually coded html files. Each time i preview my html in browser, i can also know whether it has html errors.)Is there anything similar in Google Chrome, Opera, Safari, or even IE9? As far as i checked in the past years, all other validator i've seen simply send the current url to w3c's validator site.I'm looking for a *local* tool to validate html. Command line program that can do batch checking will be best. In the past years i've spent a…