Posts

Showing posts from January 16, 2011

HTML Validation, Google, Amazon

Perm url with updates: http://xahlee.org/js/html_validation_google_amazon.htmlHTML Validation, Google, AmazonXah Lee, 2011-01-22More HTML validation Pain.Here's a amazon ad widget from Amazon Associate site: <iframesrc="http://rcm.amazon.com/e/cm?t=xyzxyz-20&o=1&p=11&l=ur1&category=textbooks&banner=17P1AE8RQ1T7ZFC62V82&f=ifr"width="120"height="600"scrolling="no"border="0"marginwidth="0"style="border:none;"frameborder="0"> </iframe> Of course it is not valid html. The ampersand needs to be &amp;. Also, there's no border="0" attribute for “iframe” tag.Well, google isn't doing much better. Here's the code given by youtube for embedding a video: <iframetitle="YouTube video player"class="youtube-player"type="text/html"width="640"height="390"src="http://www.youtube.com/embed/nnsSUqgkDwU&quo…

Emacs Online Resources and Communities 2011

Perm url with updates: http://xahlee.org/emacs/emacs_resources.htmlEmacs Online Resources and Communities 2011Xah Lee, 2011-01-21This pages gives you a summary of most useful online resources for emacs.Official Documentation and Emacs BooksIf you want a systematic approach, best are the official docs and commercial books. See: Emacs Lisp References.Note that emacs has many commands to search the bundled doc. See: Tips on Long Term Emacs ProductivityHow to Eval Emacs Lisp Code, Search a Function, and Lookup Documentation.What Does This Mode Do? is There a Mode for xyz?emacswiki.org is a emacs wiki. Most useful info there are about hundreds of modes in the wild.If you want to know what does a mode do, or if a mode exist for lang xyz, this is the best resource. For example, it would list several modes for twitter, templates..., where to download, how to install, and usually has tips about the good/bad/tips of each.The info on the site is often chaotic and not well organized, but still…

Why Humbleness Sells?

hmm... interesting. my facebook page is google ranked at 4. I guess it's good thing for me to be ranked high, though i have little idea why. I guess people google my name and clicks on my facebook page. I got a rep among online programing forums as a troll. I know people are interested in oddball personalities, as in gossip mags on celebrities. Though, i dont write much personal stuff (as in, my current mood, feelings, what i had for dinner, new relationships), partly because writing trivia isn't my style, partly because in past 7 years i don't really have good news on these to brag about. (that reminds me, i'll have to write my 2-years experience living in a Honda Civic around 2005.)Am guessing that the perception of me as a troll has waned in the past 3 years. I think partly because my emacs tutorial is getting popular, and i haven't written much essays with downright idiot-this n shit-that expressions.As a thinker, even a nameless one, or possibly crazy idiotic …

Remove Windows Media Player Context Menu

Perm url with updates: http://xahlee.org/mswin/remove_Windows_Media_Player_menu.htmlRemove Windows Media Player Context MenuXah Lee, 2011-01-20In Windows (Vista), when viewing a folder, when right clicking on a item, there's the menu “Play with Windows Media Player”. How to set it so such submenu does not show?Remove the “WMP*” items in the following the registry folders. [HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers] [HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shellex\ContextMenuHandlers] [HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shellex\ContextMenuHandlers] [HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shellex\ContextMenuHandlers] [HKEY_CLASSES_ROOT\SystemFileAssociations\video\shellex\ContextMenuHandlers] If you are not familiar with Registery, see: Microsoft Windows Registry Tutorial.Thanks to “Synetech inc” for the answer at Source superuser.com. AutoHotkey BasicsMicrosoft IntelliType HacksDisable Ctrl+Alt…

Mathematica Version 3 to Version 7 Conversion Notes

Perm url with updates: http://xahlee.org/comp/Mathematica_learning_notes.htmlMathematica Version 3 to Version 7 Conversion Notes Xah Lee, 2010-11-22, 2011-01This page is misc personal notes of learning new features of Mathematica since version 3 in 1996.In 1998, i was fairly a expert of Mathematica. I read the Mathematica Book from cover to cover systematically 3 times over different years. (See: Emacs Idolization: Have You Read the Emacs Manual From Cover to Cover?.) I've also read basically all popular Mathematica books in print of the 1990s. (See: A Survey of Mathematica Books 1997) A package i wrote Plane Tiling Mathematica Package, i consider more powerful, more flexible, more well documented, than a commercial one in a book written by one of the top Mathematica expert. I know almost all the programing constructs well, and know pretty much all the packages that exists, and have used lot of them. This is about 6 years of intensive Mathematica coding.Though, that's over 10 y…

Google Search Ranking Ingredients (SEO secrets)

Perm url with updates: http://xahlee.org/js/google_seo_ingredients.htmlGoogle Search Ranking Ingredients (SEO secrets)Xah Lee, 2011-01-19Here's some tips about what Google uses to rank a site. Tips gathered from different sources and edited with my own experiences.What and Why of SEONote: Search Engine Optimization (short SEO) is about editing your site so it shows up as top result in search engines. This activity is mostly gaming, and often with underhand tactics. Note that, if you want your site to be popular, the one most important factor is to create useful content that visitor likes. However, for certain content, there are thousands of competitors. For example, if your site sell or write about cell phone, then there are thousands of sites all in the market, and most of them all have useful content. So, SEO is not something just for the shady businesses. It is critical. Looking at it from another perspective, understanding SEO can be thought of as part of understanding market…

3D Visualization Design

Perm url with updates: http://xahlee.org/comp/design_3D_visualization.html3D Visualization DesignXah Lee, 2011-01-18Looked into Wolfram Demo Project for real today. http://demonstrations.wolfram.com/. Am rather disappointed. I checked about over 30 demos. Most are bad. They don't illustrate a point or showing some insight. Then i checked a few authored by those i know are Mathematica experts. e.g. S├índor Kabai and Michael Trott. They are better, but still not impressive.The power of animation, or interactive animation, is that the animation must bring out something that cannot be seen or felt by a series of static images. Here's some example of bad animation designs.• Just a bunch of static images. If all you do is just put static images in a slideshow with a slider, that's useless. I rather look at the array of static image instead, because that lets reader see all variations at the same time, in high quality, with clear annotation on each, instead of one at a time in lo…

Why You Need To Quit Facebook?

Ran into this mockery: “Why I Need To Quit Facebook” @ Source runt-of-the-web.com.Though, note, that fb and other social media is merely a extension of RL chat or whatever u do around friends or water coolers.So, when you are with friends in meat space, may it be in party, on phone, or at work place, do you engage in serious intellectual stuff like history, philosophy? Of course not.In a sense, the article about “why i need quit facebook” mockery is itself just another insignificant thing on the web that “wastes” your time.Its significance, is alerting us that many of us spend too much time on social media. Though, that itself isn't a problem caused by social media, rather, it is caused by modern society. The internet merely provided you a way to waste time by many means. Without, those who spend too much time on Facebook probably would over-sleep or playing solitaire endlessly (which indeed people do a lot in 1990s). You won't be reading War And Peace or dig into history, phi…

fold, reduce, in emacs lisp

Hauke Rehfeld send in this improved version of “fold”. (defunfold (f x list) "Recursively applies (F i j) to LIST starting with X. For example, (fold F X '(1 2 3)) computes (F (F (F X 1) 2) 3)." (let ((li list) (x2 x)) (while li (setq x2 (funcall f x2 (pop li))) ) x2 ) ) This one improves upon on a primitive one i've written, which has problems if element in the list eval to nil. For some info and a practical example of using “fold”, See: More Elisp Examples. Thanks Hauke.