Posts

Showing posts from July 25, 2010

Windows Keyboard Shortcuts FAQ

Perm url with updates: http://xahlee.org/mswin/windows_keyboard_shortcuts_faq.htmlWindows Keyboard Shortcuts FAQXah Lee, 2009-12-16, 2010-07-31This page is some frequently asked questions about defining, disabling keyboard shortcuts in Microsoft Windows. For the standard shortcuts, see: Microsoft Windows Keyboard Shortcuts.How to disable the Sleep key on the keyboard?Go to the Control Panel, click on Classic View, then Power Options. There's a setting you can set. How to disable the Caps Lock key, or the Windows key?There's no built-in way to do that with Windows Vista. You need a keyboard remapping software. The following are some solutions:Buy a Microsoft Keyboard. It comes with IntelliType software that lets you easily do that.Download the utility here: How To Swap Caps Lock, Alt, Control Keys On WindowsSee also: Why You Should Not Swap Caps Lock With Control. Is there a way to set a hotkey to launch a app?In the Taskbar, you can turn on the Quick Launch toolbar. (right clic…

Emacs Idolization: Have You Read the Emacs Manual From Cover to Cover?

Perm url with updates: http://xahlee.org/emacs/emacs_manual_cover_to_cover.htmlEmacs Idolization: Have You Read the Emacs Manual From Cover to Cover?Xah Lee, 2010-07-29Thien-Thi Nguyen wrote:Why does the search start with Google (and continue with other downstream, non-terminating, whirlpool-shaped, out of date, referenda)? Why not go to the source?  The Emacs Lisp manual, the Emacs Lisp code, the Emacs customization facility, the Emacs *scratch* buffer, the Emacs!Elena wrote:Surprisingly enough - or not? - it seems few users do read the manuals... I'm guilty of this too (and Emacs' manuals will be my reading on my next vacations).I always thought of doing this, but it never happened. Not the emacs manual, nor the elisp manual. Over the past 12 years of using emacs daily, i have read perhaps 1/3 of the emacs manual and 1/2 elisp manual, counted in a accumulative way. The few times i tried to read emacs manual systematically in the past years, usually didn't last for more …

CSS Margin vs Padding

Image
Perm url with updates: http://xahlee.org/js/css_margin_vs_padding.htmlCSS Margin vs PaddingXah Lee, 2010-03-15, 2010-07-30This page explains what's the difference between css's “margin” and “padding”.In css, you can draw border around a block, like this:p {border:solid thin red} Once you draw a border, the difference between margin and padding becomes clear.Padding is the area insider the border, margin is the area outside the border. The border here is the black line between yellow and red. Testing TemplateHere's a template you can play with. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"> <title>test CSS margin vs padding</title> <styletype="text/css"> div.wrapper {background-color:green} p {border:solid thin red; background-color:yellow; padding:10px; margin:90p…

emacs org mode tree manipulation keys

Perm url with updates: http://xahlee.org/emacs/blog.htmlOutline mode (org-mode) is nice, but i never took the time to learn the details. Have been using it simply by just knowing the star header syntax and Tab or Shift Tab to show/hide headings. Today, i took the time and learned the basics keyboard shortcuts for creating and moving branches. Fantastic. Added to Writing Outline with Emacs (org mode tutorial).

How to Enable HTTP Server gzip Compression

Image
Perm url with updates: http://xahlee.org/js/http_gzip_compression.htmlHow to Enable HTTP Server gzip CompressionXah Lee, 2010-07-26This page shows you how to add compression to Apache webserver, so that your site will be faster.What's Compression for Web ServerWhen a web server respond to a page, it can first compress the page content, then send that to the browser, then the browser de-compress it then renders it in its window.gzip compression typically will compress text so the new file is between 10% to 20% of the original. So, for html, css, php, js, etc files, it saves a lot bandwidth, which means faster for users especially those with slow connection.The downside is that each time the server compresses a file, it have to use some CPU resource to do it. So, although the traffic output is reduced, the cpu usage increases. However, some advanced setup will pre-compress all your files, not per request.Overall, compression is good because ultimately what matters most is for users.…

emacs glasses-mode

Perm url with updates: http://xahlee.org/emacs/blog.htmlLearned a tip today. There's glasses-mode, a minor mode, bundled in at least emacs 22.2. It will display “camelCase” words like this “camel-Case”. Note: it only display it that way, the text is actually not changed. (via gnu.emacs.help post by Tim X)This tip is added to: Emacs Advanced Tips.

Second Life Debug Settings

Perm url with updates: http://xahlee.org/sl/sl_debug_settings.htmlSecond Life Debug SettingsGet your Xah Particle Maker today! Xah Lee, 2010-07-28To turn on debug settings, first turn on Advanced Menu by “Alt+Ctrl+d”, then it's in the menu “Debug Settings...”. In Emerald, press “Alt+Ctrl+Shift+s”.Here are some of the ones i find useful: CameraMouseWheelZoom (does not seem to work) AFKTimeout AllowIdleAFK AllowMultipleViewers ShowNewInventory MiniMapRotate AutoAcceptNewInventory EmeraldIgnoreFinishAnimation RenderGlowIterations Full ListOpen the file c:/Program Files (x86)/SecondLifeViewer2/app_settings/settings.xml the settings are documented there in a xml file.Each entry looks like this:<key>AFKTimeout</key><map><key>Comment</key><string>Time before automatically setting AFK (away from keyboard) mode (seconds, 0=never). Valid values are: 0, 120, 300, 600, 1800</string><key>Persist</key><integer>1</integer><k…

List of 3D Modeling Software

Perm url with updates: http://xahlee.org/blender/3d_modelers.htmlList of 3D Modeling SoftwareXah Lee, 2010-01-06, 2010-07-27This page is a list of 3D modeling software for various purposes. I don't have experience in using most of them. For those i do have used, the comment will be more elaborate.Note: 3D modeling software are quite complex and diverse. For examples: Software designed for engineering, architecture, CAD, is almost useless for creating commercial animations that's mostly free-form shapes, and vice versa. Similarly, those from gaming community has its own purposes, features, requirements.Also, the underlying modeling approach is very different. Most popular are mesh/polygon based. (they represent a object by its surface) Then there are solid based, that represent objects with a thickness as in real life. And there are ones focused on spline/nurb free-form curve based. There are ones based on sculpting and painting directly to the surface.Even within a field, th…

Google Earth Geography 101

Image
Perm url with updates: http://xahlee.org/dinju/terdi.htmlGoogle Earth Geography 101Xah Lee, 2006-11-24, 2010-07-25If you don't have already, you should download Google Earth. It's free.Google earth is a virtual globe, that you can rotate and navigate about to any location on earth. Then, typically, for each city, there are hundreds of photos, videos, articles, statistics, that you can view.10 years ago, i have the wish that there's some web database that you can search for any city in the world and immediately see many photos of the place. It is a reality today with Google Earth and Google Map (and to lesser degree other competitors).The Tech of Google EarthOne way to judge the technology level of a civilization is to look at their maps. For us, Google Earth is a fair Representative. Also, if we can choose only one single software to represent the state of art in software, i'd say Google Earth is a good candidate. The major technologies underlies it directly or indirec…

Emacs Lisp: Writing a google-earth Function

Perm url with updates: http://xahlee.org/emacs/google-earth.htmlEmacs Lisp: Writing a google-earth FunctionXah Lee, 2006-12, …, 2011-10-21This page shows a example of writing a emacs lisp command that creates a Google Earth KML file of a given location, and creates a link to the file. If you don't know elisp, first take a look at Emacs Lisp Basics.If you don't know what Google Earth is, see: Google Earth.The ProblemSummaryWrite a command “make-google-earth”. If my cursor is on a line like this: Las Vegas,-115.1730,36.1027 After calling “make-google-earth”, the line will become: <ahref="../kml/las_vegas.kml"title="Las Vegas">⊕</a> And a Google Earth KML file 〔Las_Vegas.kml〕 will be automatically created, linked by the above.DetailI often write travelogs on my website. If i traveled to Las Vegas, then my Las Vegas travelog page will have a link to Google Earth location of Las Vegas. The raw html looks like this: <ahref="../kml/las_vegas.k…

Dancing in Second Life

Image
Perm url with updates: http://xahlee.org/sl/dansu.htmlDancing in Second LifeXah Lee, 2007, 2010-07-25Dancing to the tune of Ninja Rap by Vanilla Ice. Movie made on 2010-07-25, by me. Dancing to the tune of Bel-Air. 2010-07-25 Dancing to the tune of Robot Rock by Daft Punk. 2010-07-25 Second Life provides great value of dance education. There are thousands “gestures” (meaning, pre-made animations by players) that features all styles of dancing. From pop dance to tango to Pole Dancing.It's valuable technology because when you see dance movements by computer generated characters, you tend to get a better understand of the body movements, in the same way black and white photography gets you to focus on the form of the scene. You can view the scene in any angle in real time, and it can repeat forever.The following are old screenshots, made in 2007. The graphics and avatar shape have improved much since. Dancing at a Blues Bar. The music is hot, and the girls are wild.This bar is called Ho…

How To Avoid The Emacs Pinky Problem

Image
Perm url with updates: http://xahlee.org/emacs/emacs_pinky.htmlHow To Avoid The Emacs Pinky ProblemXah Lee, 2006, ..., 2010-07-24, 2010-08-28Emacs makes frequent use of the control key. On a conventional keyboard, the Control Key is at the lower left corner of the keyboard, usually not very large and is pressed by the pinky finger. For those who use emacs all day, this will result in repetitive strain injury. This page lists some tips on avoiding this pinky problem. I've been using computer since 1991, at least 8 hours a day on average every singe day. I was a QWERTY touch-typist with 80 wpm and worked as a secretary for about 2 years, then in ~1994 i switched to Dvorak. I started to use emacs everyday since 1998. I am a keyboard and key macro nerd, and have used tens of keyboard macro or keymap type of utilities on the Mac, unixes, and Windows, always looking for the most ergonomic and efficient way to operate the keyboard and computer. (see: All About Keyboards, Keyboard Layouts…