Xah Programing Blog Archive 2013-06

lisp rant on twitter this afternoon

i damn hate the lispers, in particular, old Common Lispers. Sputtering scientifically baseless shit.

programing lang communities need more science. Not lore, convention, cult dogma.

it is incredible, that lisp monotonic syntax is a problem seen by all non-lispers and expert lispers, but the lisp cult insists no problem.

then, lispers sing macros, but none ever seen Mathematica pattern matching.

lisper insists regular nested paren, data is code shit, yet when u point out it's not regular, they say it's ok.

while, lispers don't seem to see the XML, Mathematica, both have more regular nested syntax, and code is data too.

it's helpless, because year after year, the cult cultivates untruth. Thoughts are ingrained. like religion.

that concludes my Sunday spam

found a new book citing my site. See my blogger: math, symmetry, flatland, by Ian Stewart.

science major romance u no unstand
“the romance of engineers u no unstand”

Is Linux Usable?

Linux Audio Problem Pulseaudio

been working with regex daily for 15 years (since 1998). I noticed in recent years, it is one aspect of coding i spend the most time working on, debugging, puzzling, trial'n'erroring.

Encryption: What's Perfect Forward Secrecy?

Unicode Search: Find Your Symbols. Updated. Now you can enter a number like this #97 and get the Unicode char with that codepoint.

Python: Compute Exact Fractions

# -*- coding: utf-8 -*-

import fractions

print( fractions.Fraction(5,100)) # 1/20
print( fractions.Fraction(4,100)) # 1/25
print( fractions.Fraction(3,100)) # 3/100
print( fractions.Fraction(2,100)) # 1/50

Note that Mathematica had this feature, transparently, since 1990.

In Mathematica, any exact number are computed exactly. Number without a decimal dot are exact.

LISP Sans Parenthesis, 1958 to 2013, a Survey

Lisp vs Perl Syntax, the Cult Problem

Silly Unicode Name Change: CENTER → CENTRE

in Unicode, the name of the character is changed from OPEN CENTER ASTERISK to OPEN CENTRE ASTERISK. What's the technical reason they make such a silly change? Political reason?

Unicode Search Box: Find Your Symbols. Pure JavaScript implementation. No JavaScript library used.

Emacs Projects Proposal: Language Aware Modes for Emacs Lisp, HTML5, CSS

Unix tools on Windows: Cygwin vs VirtualBox (updated)

Cygwin Path and Windows Path Conversion (updated)

Cygwin Essential Install List (updated)

Installing Cygwin Tutorial (updated)

How to Install Linux on VirtualBox (updated)

Functional Programing: the Jargon “Lambda”

Internet Explorer anime girl
Internet Explorer anime girl

on vi Keybinding vs Emacs Keybinding

shuttleXpress jog wheel 2014

Why You Need a Jog-Wheel and Shuttle Control? (updated)

JavaScript Book by David Flanagan, and the Man-made Complexity in Computer Language

Linux: Sync Files Across Machines: rsync Tutorial (old article, updated)

Linux: Comparing Files and Dir: diff (old article, on its own page, updated.)

Linux: Shell Command Examples: find, xargs (old article, updated, on its own page.)

Linux: Text Processing: grep, cat, awk, uniq (old article, updated.)

Linux. ASCII man page. In terminal, type man ascii. Note that Unicode has symbols to represent ASCII chars. See: Unicode: ASCII Character Symbols ␀ ␤ ␠ ␣ ¶ ↩ �. (thx to Nick Alcock)

Linux: is Manpage Getting Obsolete?

Unix Pipe as Functional Language. Old article. A survey of unix command line syntax confuse ball. Added a section at bottom, on the command line syntax evolution of past decade.

after using mechanical keyboard for a few months, rubber dome keyboard becomes so hard to press. See: the effect of keyboard hardware on you.

JavaScript Book by David Flanagan, and the Man-made Complexity in Computer Language

updated. Linux: Job Control Tutorial

git tip: revert to last commit

when you just pulled from remote, and realized it didn't work, you can quickly revert.

# revert to commit before last

git checkout HEAD@{1}

thanks to Craig Lennox

Linux: How to Upgrade Xfce

RIP: rsync, 1996 – 2013. Killed by git

X-Key programmable key stick
Fentek's X-keys Programable Key Stick. It adds 16 programable keys. amazon

updated. Add Extra Function Keys to Your Keyboard

git tip. What's git {origin, master, object, index}? See: git Frequently Asked Questions

new page. Git: Diff Between {Working Dir, Staged Area, Last Commit}

Slim, another markup, indentation-based, HTML template. What's Slim Markup?

Scroll to the top, and you'll see Lang Design in the nav bar. That's a collection of articles on language design. There's one principle: Syntax, is the most important element of a language. And, the syntax, should be one with a simple and systematic grammar. Mathematica and lisp are examples close to that principle.

Tech Geeking: Ruby Rails Mongrel Thin Zed Shaw

Tech Jargon of the Day: shard

A database shard is a horizontal partition in a database or search engine. Each individual partition is referred to as a shard or database shard.

Horizontal partitioning is a database design principle whereby rows of a database table are held separately, rather than being split into columns (which is what normalization and vertical partitioning do, to differing extents). Each partition forms part of a shard, which may in turn be located on a separate database server or physical location.

source: Shard (database architecture)

Linux: Record a Terminal Session, Logging Shell Output

random notes. Database Tech 2012

YAML, a data format like XML and JSON. What is YAML?

started to write this tutorial. Linux: Package System {dpkg, apt-get} Tutorial Incomplete, but had to start somewhere.

Linux: Ruby Rails sqlite3 libsqlite3-dev libssl-dev Install Error

some programers, say that the best way to avoid typing injury is not to touch-type. Updated article: Bad Advice on Typing and Keyboard from Programers. What do you think?

How Many Keystrokes Programers Type a Day?

updated. Microsoft Sidewinder Gaming Keyboards

cygwin git push error: “error setting certificate verify locations”

when using Cygwin, doing git push, you get this error:

error: error setting certificate verify locations:

Solution: install “ca-certificates” in Cygwin.

updated. Linux: How to Switch to LXDE, Xfce

Linux: Setting Default App

Python: format number in human readable way


# -*- coding: utf-8 -*-
# python 3

print("{:,}".format(78515573)) # 78,515,573

This is available in both python 2.7 and 3. Detail: Python 3: Formatting String

Linux Idiocy: Eject Drive Warning

linux xfce eject usb drive screenshot 2013-06-01
Linux Xfce eject usb drive screenshot

Linux Idiocy: Eject USB Drive Warning

Dropbox tip. To sync files outside the Dropbox folder, just create a soft link. On Linux or Mac Os X, do like this:

ln -s ~/web ~/Dropbox/mywebsite

On Mac, creating a file alias should also work.

On Microsoft Windows, creating a file shortcut should work. If not, please let me know.

For Mac users, a new keyboard designed for Mac. Compact, and mechanical keys. Keyboard: Matias Mini Tactile Pro.

Linux: How to use Virtual Console ⌨

Linux: Terminal Control Sequence Keys ⌨

Linux: Ctrl+s Freeze vim ⌨

Symbols for Super, Hyper keys

Linux. Here's a proposal of a logo/symbol for the Super and Hyper key:

For Ctrl, Opt, Alt, etc, see: Unicode Keyboard Symbols ⌘ ⏎ ⇥ ⌫ ☾ ⎋