Posts

Showing posts from 2011

ErgoEmacs hit Hacker News

ErgoEmacs hits Hacker News last week. See Emacs for the rest of us: ErgoEmacs @ Source news.ycombinator.comThanks to “Macro Lapse” (aka macco) for posting.Here's a review of ErgoEmacs Keybinding.Ergonomic Emacs Keybindings (2011-12-30) By Jeff Pace. @ Source jpace.wordpress.com

Macross Plus - Pulse (song)

Image
Song 〈Pulse〉 from Japanese animation Macross Plus. amazonFor lyrics and other detail, see: Macross Plus - Pulse (song).

emacs lisp: cycle hyphen underscore, lisp properties

Updated article.cycle-hyphen-underscore-space (defuncycle-hyphen-underscore-space () "Cyclically replace {underscore, space, hypen} chars current line or text selection. When called repeatedly, this command cycles the {“ ”, “_”, “-”} characters." (interactive) ;; this function sets a property 「'state」. Possible values are 0 to length of charList. (let (mainText charList p1 p2 currentState nextState changeFrom changeTo startedWithRegion-p ) (if (region-active-p) (progn (setq startedWithRegion-p t ) (setq p1 (region-beginning)) (setq p2 (region-end)) ) (progn (setq startedWithRegion-p nil ) (setq p1 (line-beginning-position)) (setq p2 (line-end-position)) ) ) (setq charList (list " ""_""-" )) (setq currentState (if (get 'cycle-hyphen-underscore-space 'state) (get 'cycle-hyphen-underscore-spac…

Steve Jobs on Apple website on 2011-10-05

Image

updated: Emacs Lisp Text Processing: find-file vs with-temp-buffer

Updated: Emacs Lisp Text Processing: find-file vs with-temp-buffer.In my previous report, the timing difference is by a factor of 45. That's because i had stuff in my init file. (i have hooks for both find-file and html-mode, and that probably caused the major slowdown.) Now, the factor is actually just about 5.You should still use with-temp-buffer instead of find-file besides speed, because find-file has quite some side effects.Big thanks to Trey Jackson.

Perl Books Survey 2002

Image

Review of Khan Academy by Xah Lee

Image
Perm URL with updates: http://xahlee.org/math/khan_academy_review.htmlSo the other day i looked at Khan Academy. Spent a hour to watch a few videos. I find it fantastic, but also disapppointing. Let me explain. (If you don't know already: Khan Academy is a online educational site, basically just thousands of videos, each about 10 minutes. Website at: khanacademy.org)The BadHere's the disappointing parts:• Basics Only. Of all their courses of various subject areas (e.g. sciences, humanities, etc.), the level offered is about first year of university course. At best 2nd year university course.For example, one of the subject they are known for and have the most number of videos is math. Vast majority of them are highschool level (e.g. fraction arithmetic, highschool algebra, etc.). The most advanced course they offer are: {calculus, linear algebra, differential equations}. This means, if you are a math fan, and you have studied first 2 years of university math, then Khan Academy …

Truly Ergonomic Keyboard has Docked!

Image
Big news. The years-in-coming “Truly Ergonomic Keyboard” has arrived. This just might prove to be the ultimate emacs keyboard.“Truly Ergonomic Keyboard”If you haven't heard about this keyboard before, see my arm-chair philosophy here: Ergonomic Keyboards Gallery. If you wonder why this keyboard is a big deal, see Keyboard Hardware Design Flaws. Otherwise, go here to see keyboard lovers's on-hand discussion about it at: geekhack.org.Thanks to @dotemacs for the tip.

Computer Keyboard Wrist RSI Problems

Image
Keyboard Angle IssuesUlnar deviation = bending the wrist outward to the sides. This is solved by split/ergonomic keyboards where the keys are separated into 2 groups. img srcForearm Pronation = rotating the forarm. This is solved by split/ergonomic keyboards that are curved/tilted. img srcand there's also wrist dorsiflexion, meaning bending up the palm. This happens when you use a thick keyboard that sits on a flat desk and your forearm rests on the desk surface. Especially bad when the keyboard's back legs are propped up. This is solved by typing while your wrist hovers above, which is actually the proper typing posture. It is also solved by putting ~5cm thick book in front of the keyboard, or a front tilt as in Microsoft 4000, or a dipped-in keys as in Kinesis Contoured Keyboard, or set your keyboard in a tray below desk surface.read more: http://xahlee.org/emacs/keyboard_problems.html

emacs keyboard: μTron keyboard

Image
updated the emacs keyboard μTron keyboard.“μTRON Keyboard” img src“μTRON Keyboard”This is a excellent design. The only design issue i found is that it doesn't have dedicated function keys. The function keys are merged with the number keys. However, the other quality design makes up for it. (For why dedicated function is important, see: Function Keys in Computer Keyboard. For why the μTron is a excellent design, see: Keyboard Hardware Design Flaws.)Video Intro & Official Website〈はじめてみようμTRONキーボード〉much more photo and info at: http://xahlee.org/kbd/uTRON_keyboard.htmlErgonomic Keyboards GalleryMore Fancy Ergonomic KeyboardsMicrosoft Natural Ergonomic Keyboard 4000Logitech Wave Keyboard ReviewKinesis Contoured Keyboard

more Wonderland Alice artwork

Image

the cat yoga (funny video)

Image
〈кошкина йога〉 (The Cat Yoga) (yourlight 2011-12-14) Yoga b-boying (Breakdance)Yoga b-boying. The song is “Sail” by AWOLNATION. amazonFor detail about the song used, see: Sail - AWOLNATION.See also: Acrobatic B-boying Dance (Breakdancing) Videos.Funny Video: Cat Teasing DogHumor: Dead Squid Walking, Eat It! (Video)

Song: Lily Allen - Fuck You Very Much

Image

American Imperialism; Killing Hope

Image
〈US Military and CIA Interventions Since World War II〉Killing Hope: US Military and CIA Interventions Since World War II (2003) amazonWikipedia info: Killing Hope. Quote:Noam Chomsky called it “Far and away the best book on the topic.”[1] Former CIA officer John Stockwell called it “The single most useful summary of CIA history.” [2]Website: www.killinghope.orgRogue State: A Guide to the World's Only Superpower (2000) amazonWikipedia info: Rogue State: A Guide to the World's Only Superpower. Quote:It was mentioned in a speech attributed to Osama bin Laden broadcast on January 19, 2006. Bin Laden stated: “If Bush carries on with his lies and oppression, it would be useful for you to read the book The Rogue State.” Sales subsequently soared.The Hawking WASP94 Photos of Iraq War ₁The Hawking WASPLeaked Video US Helicopter Killing Videothe Saving of Private LynchA People's History of American Empire by Howard ZinnI Met the Walrus (John Lennon)

Noam Chomsky on Death of Osama Bin Laden

Regarding the death of Osama Bin Laden, Chomsky stated: “We might ask ourselves how we would be reacting if Iraqi commandos landed at George W. Bush's compound, assassinated him, and dumped his body in the Atlantic. Uncontroversially, his crimes vastly exceed bin Laden's, and he is not a ‘suspect’ but uncontroversially the ‘decider’ who gave the orders to commit the ‘supreme international crime differing only from other war crimes in that it contains within itself the accumulated evil of the whole’ (quoting the Nuremberg Tribunal) for which Nazi criminals were hanged: the hundreds of thousands of deaths, millions of refugees, destruction of much of the country, [and] the bitter sectarian conflict that has now spread to the rest of the region.”[86]From Noam Chomsky.94 Photos of Iraq War ₁The Hawking WASPLeaked Video US Helicopter Killing Videothe Saving of Private LynchA People's History of American Empire by Howard ZinnI Met the Walrus (John Lennon)

dance music: Hard in Tango - This is My DJ (Jessica Alba)

Image
A great dance song.Video clip of film “Honey” with music “This is My DJ” by “Hard in Tango” amazonfor lyrics and info, see: http://xahlee.org/music/this_is_my_dj.htmlAndain - Beautiful ThingsRihanna - SOSDido - White Flag

How Did You Spent Xmas Eve?

24號晚上跟弟弟聊qq。問我平安夜怎麼過。我說沒事幹,睡覺…… 然後弟弟說:“我媽問你是一個人睡還是兩個人睡”……translation:on xmas eve, i was chatting with my little brother online. He asked how i spent the night. I said “nothing much, went to bed…” then brother replied “mom asked whether it's 1 person or 2 persons” …Source plus.google.com

Sephora logo

post removed

technology: skyscraper sized screen

Image
Nokia Lumia 800 smartphone launch event at Millbank, featuring a 118m high building as giant screen.This is done by 16 projectors across the Thames river, with the building as screen.The building is Millbank Tower, located at the City of Westminster at Millbank, the banks of the River Thames in London, UK.The building is 118m high. Each of the building's 800 windows are covered with vinyl. 16 projectors on the other side of the river beamed images onto it.Hatsune Miku: Computer Generated Virtual Doll Singing in Real LifeTechnology for Knowledge in Past 2 Decades

Alien Ass from Outer Space

Due to Google AdSense policies, please see this article at: http://xahlee.org/sex/wikipedia_vulva.html

Bedrock - For What You Dream Of (Trainspotting)

Image
“Bedrock - For What You Dream Of” amazon〈Trainspotting〉 poster. amazonlyrics, info, at Bedrock - For What You Dream Of (Trainspotting)

stop Mac OS X Finder from creating .DS_Store

Perm URL with updates: http://xahlee.org/comp/mac_os_xs_DS_Store_unix_init_svn.htmlHere's a nice article. The author modified Mac Finder to not generate 〔.DS_Store〕.Death to .DS_Store (2011-12-24) By Spencer Nielsen. @ Source www.aorensoftware.com(Cached site with images: Source cache.historious.net)Note that besides 〔.DS_Store〕, the Mac OS X also creates other junk, e.g.: .DS_Store .localized .FBCIndex .FBCLockFolder .FBCSemaphoreFile Desktop DB Desktop DF and Windows used to create 〔Thumbs.db〕 among others.Who started all this fuck? Its your beloved unix, folks. e.g. .profile .bashrc .emacs .viminfo .xinitrc .cvs .svn .htaccess … These are headaches in many ways. When you “rsync” or “unison” between machines, or zip files from OS X, or take data from USB, or grep. In essence, the problem is that these programs create side-effects for their own convenience, not user's convenience. It stem from certain unix philosophy.and unixes (linux) still do it to this day happily, as if …

Emacs Lisp: Convert Lisp Form to XML Form

Jon Snader (jcs) wrote a series of nice tutorial about how to transform text in the form of lisp expression into XML form, with a focus on making each head of lisp expression a executable function itself (as opposed to just parsing it and spit out XML form). In the last article, he proposed a little challenge for readers to solve. See:An Emacs Programming Challenge (2011-12-23) By Jon Snader. @ Source irreal.orgIf you got stuck, check out his previous articles (linked in his article), which shows you how.

sexual mores: illustrated guide to ESRB

Due to Google AdSense policies, please see this article at: http://xahlee.org/sex/illustrated_guide_to_ESRB.html

Final Fantasy VIII, Ballroom Dance Scene

Image
Final Fantasy VIII, Ballroom Dance SceneFor those with a acute eye for the ethology of human animals, notable in this video is the mannerism of male vs female in courtship.Observe, the way the girl signals the guy for a dance, and the way the guy responds for a affirmative.For the song related to this video, see: Faye Wong - Eyes on Me (Final Fantasy VIII).

raunchy women play football video game

Image

Final Fantasy song: Eyes on Me

Image

English History: the Norman Conquest

〈The History of English in 10 Minutes, Chapter 2: The Norman Conquest〉, annotated, at The History of English in 10 Minutes

〈The History of English in 10 Minutes〉 Annotated

In the following days, each day i'll annotate a chapter of a education video called The History of English in 10 Minutes. Each video is about 1 minute, but are packed with info.Do you know exactly where Anglo or Saxo were? Do you know what are the gods referred to in the names of weekday? How about the connection of martyr and scope? See the first installment: The History of English in 10 Minutes.

Emacs Lisp: find-file vs with-temp-buffer redux

This is a completely detailed report, with code that you can run.See: http://xahlee.org/emacs/elisp_find-file_vs_with-temp-buffer.html

music: 王菲 - 容易受傷的女人 (Faye Wong - Fragile Woman)

Image
this is a most tender, feminine, song. Extremely popular in Asia.Faye Wong - Fragile Woman. (Cantonese) amazonFor info, several more versions, lyrics translations, see: 王菲 - 容易受傷的女人 (Faye Wong - Fragile Woman)took me 10 hours over 2 days to write this one. Research and translation.

Learn Words from the Dancing Queen

Do you know all the following words?deference soliciting disinterest meekness colloquial rub supplication fret diffidently stratagem proffering beseechment vexation coitus deciphered asserted pitch wreck perennial immemorial fixation infatuation explicable edict exigent show stopperIf not, you failed the courtship test. Read: ABBA - Take a Chance on Me; Human Courtship Analized by Alien.

AIDS World Map

Image

Emacs Lisp Processing 5 Thousand Files: “find-file” vs “with-temp-buffer”

Using find-file to open 5565 files, with font-lock-mode off, backup off etc, takes 10 min plus 8 min garbage collection. Total wall clock time is 18 minutes.Using with-temp-buffer, 22 seconds.Moral: when doing batch text processing of thousands of files, don't use find-file, use with-temp-buffer or with-temp-file instead. (use the latter when you need to make changes to the file.)2011-12-21 Addendum: now fully detailed at http://xahlee.org/emacs/elisp_find-file_vs_with-temp-buffer.html

hot song: Anya Marina - Whatever You Like

Image
“Gossip Girl - Lesbian Kissing Scene with Hilary Duff & Jessica Szohr & Penn Badgley”. Season 3 Episode 9. amazon “Anya Marina - Whatever You Like” amazonread more at http://xahlee.org/music/whatever_you_like.html

Java Rap

Image

Sexual Equality but Please Buy Me Dinner and Diamonds

Image

Humor: How to Prepare for a Date

Image
“How To Get Ready For A Date” By JennaMarbles 2011-07-20“smells like desperation”. LOL.New word i learned today: “sweater puppies”.“How To Get Laid” By makemebad35 2010-07-03“Dick No More”. LOL.Alright. Those are jokes. For you geek boys out there, you might as well pick up some serious tips today. Here's one to start you off.What to do when you see an attractive girl?Rush out of sight quietly. Perm URL with updates: http://xahlee.org/funny/how_to_get_laid.htmlSexual Humor: Wrong Hole SongCourtship Humor: What's It Gonna Be? (Video)Sexual Harassment Prevention: Sign Here Before You Have SexSeduction Community as Social EngineeringABBA - Take a Chance on Me; Courtship from Evolution Psychology Point of View

Internet is For Porn; What do Girls do on the Internet?

Image
Starring Cute Girl“The Internet is for Porn” starring a cute girl.What Girls Do On The Internet“What Girls Do On The Internet”. JennaMarbles 2011-06-15read more at http://xahlee.org/Periodic_dosage_dir/internet_is_for_porn.html

dance music: Andain - Beautiful Things

Image
“Andain - Beautiful Things” amazonUpdated. Dance song: Andain - Beautiful Things

Who wrote the bible?

Image
A exceedingly funny video that's wildly popular.“PamelaForeman Another Question For Atheists [reposted]”TamTamPamala on “Who Wrote Bible?”for several more vids and info, see http://xahlee.org/Periodic_dosage_dir/who_wrote_bible.html

Windows: How to Remove “Win 7 Antivirus 2012”

Image
Big warning to you all. I just got hit by a virus on my Windows 7 machine. The virus is called: “Win 7 Antivirus 2012”. (it's a virus that pretends to be a antivirus software)First i describe how to remove it for those of you came here for that. Then i blog about how i got this virus and my PC experiences.What's “Win 7 Antivirus 2012”It's a virus that pretends to be a anti-virus software. It basically screws up your computer, prevents you to run any app, and kept asking with a pop-up dialogue for you pay by credit card for a bogus anti-virus software.Windows: How to Remove “Win 7 Antivirus 2012”The virus cames with several different names. e.g. {“Win 7 Antivirus 2012”, “Win 7 Security 2012 ”, “XP Antivirus 2012”, …}. To remove it, i recommend following this article at:Remove Win 7 Security 2012 (Uninstall Guide) (2011-12-06) By Grinler. @ Source www.bleepingcomputer.comThat article will ask you to download some tools. Do it. I've used their product in the past years. …

Christian and Islam Kills for Blasphemy

Sexual fantasy & Orgy — in Laura Branigan's Self Control

Image
Here's a music video that depicts a fundamental human desire, sex, and orgy. “Laura Branigan - Self Control” amazonFor lyrics, see Laura Branigan - Self Control

Xah's Blogs and Asking for help

Reminder. If you like this blog, you can subscribe to each individual topics:Xah Emacs BlogXah's Programing BlogXah's Web Dev BlogXah's Math BlogXah's Arts BlogXah's Belles-lettres BlogXah's Sex BlogPeriodic Dosage of Xah Lee (misc topics that's not one of the above)Also, a donation is much appreciated. You can also help out by purchasing items from the amazon links on my site. Any item for yourself or gifts for the holiday. Or, tweets, links, are appreciated. My entire site, of 3000+ original articles written over the past 15 years on the above topics, are also available for offline reading for $100. Just make a paypal donation of $100 to xah@xahlee.org with subject “xahlee.org site zip file”. Thank you!

Total Eclipse of the Heart, parody,

Image
“Total Eclipse of the Heart: Literal Video Version (REFRAMED)”, by David A Scott (aka dascottjr).If you have a eye for humanity, language, art, then you'll note quite a few things.The original music video is done as a arthouse film. Top quality directing and imagination. Very rare today.The song is about a woman's loneliness and fantasy of sex with boys. A taboo topic in today's USA.The video shows masculine beauty. All the pretty boys. And the swim team, karate, fencing, football, gymnasts. She is the only women in the film.Go thru and understand all the slangs, allusions, references, in the parody version. Parodies, and comics, usually captures the real world observations, pop culture, as they are, because in order to make people laugh, you have to be real. (as opposed to what academicians, politicians, activists, or grammarians, want to tell you about feminism, language, etc.)The parody version has several slangs. “effing” = fucking. Also, there's “felt me up” and “…

CoffeeScript or Dart, Javascript Replacement?

Perm URL with updates: http://xahlee.org/comp/CoffeeScript_Dart_Javascript.htmlGood article i agree on:A Case Against Using CoffeeScript (2011-12-10) By Ryan Florence. @ Source ryanflorence.comEvery point he mentioned i agree. Here's some elaborations on some syntax aspects:Don't be a fucking smartass and create a layer of lang on top of a lang and think that you improved it. It introduces complexity.The grammar of syntax should be simple, and each symbol should ideally have one and only one meaning. It should never be context dependent. Syntax should be free-flow of sequence of symbols so it can be automatically formatted.Don't fuck with whitespace like Python and Haskell. Using whitespace for code block makes the semantics of whitespace symbols extremely complicated.If you like whitespace indentation for readability, proper solution is to create a layer of format language (e.g. HTML) instead, like in Mathematica. (e.g. When in a special reader or editor, you have headers…

bubblegum dance: caramell dance

Image
Caramell Dancemore and info at Caramell - Caramel Dancing (Caramelldansen)

Male vs Female, Real World Observations

Image

bubblegum dance music: Butterfly

Image
Butterfly 09 (United Forces Airplay Edit), sung by Veronica Almqvist and Malin Kernby. (2009) amazonSmile.dk - Butterfly (Song from Dance Dance Revolution)

human furniture

post removed because it might violate Google's ad program policy. See here instead http://xahlee.org/sex/human_furniture.html

Song: all the same to me, by Anya Marina

Image
A fantastic song by Anya Marina.The word that describe this song's feel would be: lackadaisical.“Anya Marina - All The Same To Me” amazonVery nice music video, directed by Josh Forbes.Anya Marina also sung a sexy version of TI's “Whatever You Like”, made popular by the TV show Gossip Girl. See: Anya Marina - Whatever You Like (Gossip Girl).Another circus-like song is Björk's Unison. Also similar is Lily Allen's Fuck You Very Much. For lyrics, see: Anya Marina - All the Same to Me

Web Browser Tab Management: One Hundred Tabs Open in Browser?

Image
110 tabs open, not sure where the sound is coming from.for tips on tab management, see: http://xahlee.org/mswin/one_hundred_tabs_in_browsers.html

Mickey Avalon - Jane Fonda

see here instead: http://xahlee.org/music/my_dick.html

emacs article update: Emacs's Menu Problem

Updated: 〈Emacs's Menu Usability Problem〉 @ http://xahlee.org/emacs/modernization_menu.html

How to choose a keyboard with good function keys

Image
Worst example of function keys. ① Continuous row, no group-gap. ② hard-to-press cheap buttons. Good Function Keys. Quality standard key. Grouped so it's easy to hit the correct key without sight.See explanation at Computer Keyboard: What Are F1 … F12 Keys Used For? Increase Productivity Using Function Keys

Fixing Emacs's Scratch Buffer

Emacs's scratch buffer has lots of problems. This is a controversial issue, because the scratch buffer is one of those things that serves as a identity of emacs. Any criticism on it is like attacking emacs.But i tell you, dear readers, frankly and directly, this is a emacs cult problem and i've wrote about often. (See: Emacs Undo & Emacs Cult ProblemEmacs Idolization: Have You Read the Emacs Manual From Cover to Cover?)For a detailed description of scratch buffer problems, see: Emacs: Problems of the Scratch Buffer.If you are a user of ErgoEmacs Keybinding, the problem is already fixed for you. Simply press 【Ctrl+n】 and new scratch will be created for you, and when you close a modified unsaved buffer, it'll prompt you for save.In ErgoEmacs keybinding, it's implemented by 2 commands: {new-empty-buffer, close-current-buffer}. The “new-empty-buffer” simply creates a new buffer, titled “untitled”, “untitled<2>”, etc. The code for “close-current-buffer” is a bit mo…

English: animalistic cries

today's Wordy English over at http://wordy-english.blogspot.com/: animalistic cries!horses neighdonkeys braybulls snorthogs gruntgoats bleatlions roarwolves howlcats meow and purrdogs growl and barkpuppies yelpcan you think of more? and what do human animals do?See: http://xahlee.org/PageTwo_dir/Vocabulary_dir/danlu_sance.html.

Python vs Lisp: comp.lang newsgroup spittle

On 2011-12-04, Eduardo Costa asked in comp.lang.lisp:I pose the questions below out of sheer curiosity, not to cause outbursts of indignation. That said, here are my questions.… I noticed that many LISP programmers and universities are switching to Python, even to teach AI. For instance, Norvig and the people at MIT replaced Scheme with Python. My own experience with Python was dismaying. The language is much slower than SBCL. There is no tail call optimization. No macros.  Then, my first question is ... Why Python?…Xah Lee wrote:… python has more readible syntax, more modern computer language concepts, and more robust libraries. These qualities in turn made it popular.Tim Bradshaw wrote:Yet you still post here [comp.lang.lisp]: why?i don't like python, and i prefer emacs lisp. The primary reason is that python is not functional, especially with python 3. The python community is full of fanatics with their drivels. In that respect, it's not unlike Common Lisp community and Sc…

Alexandra Wallace Incident: Asians in UCLA

Image
There's this video on youtube bitching about Asians in UCLA.Alexandra Wallace bitching on AsiansParodyNow, the Parodies!Alexandra Wallace parody by AfricanoBoiShow.for more and my comment, see http://xahlee.org/funny/asians_in_ucla.html

ASUS graphics card

Image
“ASUS GTX570 DirectCU II graphics card” amazonread more at http://xahlee.org/mswin/PC_graphics_card.html

My Life is Reading Encyclopedias

newly generated: Links to Wikipedia from XahLee.org.6304 links to Wikipedia articles. About 1/4 of my wake time in my life is spent reading encyclopedias. See also:Encyclopedia, My ExperiencesThe Heart of Wikipedia: Why is Wikipedia Successful?On Wikipedia's MisinformationDeath of Encarta

Logitech Wireless Gaming Mouse G700

Image
“Logitech Wireless Gaming Mouse G700” amazonThis is top-of-the-line model. Features:Wireless! with charger.13 programable buttons!Scroll wheel can be set to notched or smooth.On-board memory. (5 profiles for storage of settings)Instant sensitivity (DPI) change.Penny sized USB plug.This one is comparable to Microsoft SideWinder X8 mouse. I consider the G700 better, because: • 6 more programable buttons. • On-board memory. • Scroll wheel can be set to notched or smooth.reviews of more Logitech gaming mouses at http://xahlee.org/kbd/logitech_gaming_mouse.html

singer in concert as hologram!

Image
Hatsune Miku painted on a car. img srcHere's her concert, in Tokyo, Japan.“Hatsune Miku - World is Mine Live in Tokyo, Japan”read more, at http://xahlee.org/arts/Hatsune_Miku.html

Emacs: Convert Image Files and Change Size in Dired

I want a command, so that i can convert all jpg files to png or any other format, for all marked files in dired. Also, same for scaling images.Solution (defunscale-image (fileList scalePercentage) "Create a scaled jpg version of images of marked files in dired. The new names have “-s” appended before the file name extension. Requires ImageMagick shell tool." (interactive (list (dired-get-marked-files) (read-from-minibuffer "scale percentage:"))) (require 'dired) (mapc (lambda (ξf) (let ( newName cmdStr ) (setq newName (concat (file-name-sans-extension ξf) "-s"".jpg") ) (while (file-exists-p newName) (setq newName (concat (file-name-sans-extension newName) "-s" (file-name-extension newName t))) ) ;; relative paths used to get around Windows/Cygwin path remapping problem (setq cmdStr (concat "convert -scale " scalePercentage "% -quality 85% " …

Art: anime girl stepping out of screen!

Image
Hatsune Miku coming out of screen. The original source might be: Source www.pixiv.net.Thanks to Gwern Branwen for help.

Microsoft Discontinued SideWinder Gaming Mouse X8

Image
Microsoft sidewinder x8 mouse. amazonIt looks like Microsoft has discontinued its SideWinder Gaming mouse X8. It's quite a pity. This mouse was just introduced in 2009, with several advanced technologies. • Charger with magnetic connector. • Wireless. • Blue laser tracking. • Tilt scroll wheel. • 4000 DPI. For review, see: Microsoft SideWinder Gaming Mouses Review.According to online rumors, Microsoft discontinued it not because of poor sale, but rather, too much competition from many companies that are dedicated to gaming devices. It appears that Microsoft has discontinued the entire SideWinder brand. (i wasn't able to confirm this 100%) Some of the models such as SideWinder X8 mouse are no longer listed on Microsoft's site, but they still sell some other models of gaming keyboard and mouse.What's Mouse DPI; Does Mouse DPI Matter in Gaming?Mouse Wheel: Smooth Scroll vs Notched ScrollBest Mouse for Programers and AutoHotkey Keyboard Macros

Visual Art: Crocodile sex codex

Image

What's the Ugly Bump at the End of Computer USB Cables

Image
In your computer mouse cable, or USB device or monitor cable, often there's one big ugly chunk of cylinder somewhere in the cable. What's that big ugly cylinder for?USB cable Bump. img srcAnswer: It's a electronic component called Ferrite bead. It's used to suppress high frequency noise in electronic circuits. This is needed because cables that are not Shielded can also act as antenna and broadcasting device, creating inteference.Why Apple's computer doesn't have such ugly bump? I guess because either Apple uses shielded cables, or the component is moved to inside the computer.Thanks to Aaron Coakley for answer.

Differences Between Crocodile and Alligator

Image
Left to right: gavial, alligator, crocodile. img srcExcerpt from Crocodilia:While alligators (and caimans) are often confused with crocodiles, they belong to two quite separate taxonomic families.The most obvious external differences are visible in the head — alligators and caimans have wider and shorter heads, and a more U-shaped than V-shaped snout. The alligator's upper jaw is wider than its lower jaw, and the teeth in the lower jaw fit into small depressions in the upper jaw. The upper and lower jaws of the crocodiles are the same width, and teeth in the lower jaw fall along the edge or outside the upper jaw when the mouth is closed. When the crocodile's mouth is closed, the large fourth tooth in the lower jaw fits into a constriction in the upper jaw. For hard-to-distinguish specimens, the protruding tooth is the most reliable feature to define a species. However, in captivity, alligators and caimans may show jaw deformities which result in lower teeth protruding.Alligat…

humor: Mac vs PC

Image

Internet Self-Portraits by Gender

Image
Internet Self-Portraits by GenderSee also: Postures of Female and Male.

art: She Cuts Thru My Heart

Image
by Joseph Wierenga. “She Cuts thru My Heart”See also:Art of Jacquelyn JilekArt of Love

Xah's Edu Corner: American History 101: Civil War, KKK, and Emancipation:

In 1861, president Lincoln declared in his inauguration speech: “We must hang together or hang individually”. This statement angered the United Federation states, especially the Ku Klux Klan corporation, who has lobbied against The Bill of Rights for years. A bloody Civil War ensued. Other great powers at the time, Germany, United Empire, Japan, took a opportunistic watch-and-see stance.In 1865, the Northern states demonstrated the power of Atomic Bomb from its Manhattan Project of New York, but the test target is strategically set in a remote location in California that's ostentatiously neither Northern or Southern territory. This action spoke louder than words. The Americans since understood Lincoln's declaration, and the civil war comes to an end. The Ku Klux Klan eventually got disbanded by Martin Lurther King.

A Disney Future

Image

On Copyright and its Duration

Image

what's the diff between england, ireland, scotland, britain??

Image
The difference between the United Kingdom, Great Britain and England.From: The difference between the United Kingdom, Great Britain and England (and a whole lot more) (2011-01-30) By C G P Grey. @ Source blog.cgpgrey.com

Attention Deficit Disorder song

Image
This is how I show my love I made it in my mind because Blame it on my A.D.D. baby This is how an angel dies Blame it on my own sick pride Blame it on my A.D.D. baby Sail Maybe I should cry for help Maybe I should kill myself Blame it on my A.D.D. baby Maybe I'm a different breed Maybe I'm not listening Blame it on my A.D.D. baby Sail Sail with me into the dark Sail Sail - AWOLNATION, parody.The song is about attention deficit disorder. Above is a video parody.For the official music video, and other detail, see: http://xahlee.org/music/sail_awolnation.htmlLana Del Rey - Video GamesPortishead - Small (song)VNV Nation - IllusionNo Reason To Be Shy (Ben & Louise)

yoga b-boying (breakdancing)

Image

chick porn at its best

Image
In The Service Of The King by Laura Kaye.from New Cover Goodness! #Vampire + Castle + Rope = Woot! (2011-12-01) By Laura Kaye. @ Source laurakayeauthor.blogspot.comHere's the blurb:Kael the Fair, one of seven reigning vampire warrior kings, loathes the Night of the Proffering — the night he must feed from a human female virgin to maintain his immortality and his humanity. By feeding directly from the veins of the Proffered as he takes her virginity, Kael could determine whether the mating bond exists between them — but war and a previous loss lead the king to refuse to take a mate. Groomed for the Proffering, twenty-year-old Shayla McKinnon risks her promising academic career to make two other dreams come true — vengeance for her sister's murder at the hands of the evil Soul Eaters and the impossible goal of capturing the Warrior King's heart. In the feeding chamber this night, a battle of wills ensues, one played out through a game of domination and submission that migh…

Anne Rice's Vampire and Sleeping Beauty

post moved to http://wordyenglish.com/lit/Anne_Rice_vampire_n_sleeping_beauty.html

Time Magazine Covers, USA vs World

Image

Google Earth Flight Simulator

Image
Google Earth Flight Simulator HUD. The left bar is speed, right bar is altitude. Top is direction. Middle is angle (pitch) and roll. (you might need to adjust your window size to see the top bar.)for detail, see: http://xahlee.org/dinju/Google_Earth_flight_simulator.html

emacs lisp exercise: latitude-longitude-decimalize

This week's emacs lisp exercise, write a function “latitude-longitude-decimalize”.It should take a string like this: 「"37°26′36.42″N 06°15′14.28″W"」. The return value should be a pair of numbers, like this: 「[37.44345 -6.25396]」.Feel free to use perl, python, ruby, etc.2014-01-21 solution collected at Programing: Decimalize Latitude Longitude

effective emacs

Solar Power: Photovoltaic vs Solar Thermal

Been spending few hours geeking about solar power.There are 2 primary types: photovoltaic and solar thermal. Photovoltaic is the solar panels we are familiar with. i.e. a flat panel that turns sun ray into electricity directly. (e.g. on your calculator or house roof)Solar thermal is using reflection to direct sun ray into a focal point, which turns into heat, and in turn generates electricity (usually by steam turbine).Being a efficiency nerd, my question is, which type is more efficient at massive scale?There are power plants using either types.Photovoltaic is rather boring looking. You just have lots of flat panels on the ground. The reflection type is more sci-fi. (e.g. death star).There are varieties of the reflection design. e.g. reflection parabolic troughs, that focus light into a line. The line is typically a thin oil pipe. This type is still boring to look at. You just have lots trough-like structures on the ground. Quite ugly too. Then there's arrays of flat mirrors on t…