Saturday, July 29, 2006

xmodmap revisited (Winkey, Intellimouse)

Wheel scrolling
xmodmap -e "pointer = 1 2 3 6 7 4 5"

xmodmaprc:

keycode 115 = Super_L
add mod4 = Super_L
keycode 116 = Super_R
add mod4 = Super_R

Thursday, June 22, 2006

Firefox+Keyconfig: Focus tab/window content

Focus Content Activate the selected content, as if you clicked on it. You need this, for example, if you want to scroll with the cursor keys and nothing happens (yeah, it happens a lot ;) ). user_pref("keyconfig.main.xxx_key__Focus Content", "!][][][_content.focus();");

Friday, May 26, 2006

Printable Forms with Javascript

<html> <head> <style type="text/css" media="print"> textarea {border:0;} </style> <script> function countLines(obj){ //count number of lines entered return obj.value.match(new RegExp("(\\n)","g")).length; } function doPrint(){ txta = document.getElementById("ta"); //expand textarea according to entered text txta.rows=countLines(txta); window.print(); } </script> </head> <body> <input type="button" text="Print" onclick="doPrint()"> <form> <textarea id="ta" cols="80" rows="2">Some text with line breaks some more texts</textarea> </form> </body> </html>

Friday, May 19, 2006

How to Deploy ASP.NET 2.0 Web Site Administration Tool (WAT) on Production Servers

Create a virtual directory ASP.NETWebAdminFiles in IIS that point to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles Open properties windows of the new virtual directory, make sure that it is configured to run with ASP.NET 2.0, and in Security tab, uncheck Anonymous Access, check Integrated Windows Authentication. After that, you will be able to connect to WebAdminTools using the following syntax http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=XXX&applicationUrl=/YYY in my case, it is: http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=D:\Tasks\Libranyon\Photonyon\&applicationUrl=/Photonyon Although I don't recommend to do it, if you want to access WebAdminTool from other computer, open WebAdminPage.cs from (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code) and comment the following code block
if (!application.Context.Request.IsLocal) { SecurityException securityException = new SecurityException( (string)HttpContext.GetGlobalResourceObject('GlobalResources', 'WebAdmin_ConfigurationIsLocalOnly')); WebAdminPage.SetCurrentException(application.Context, securityException); application.Server.Transfer('~/error.aspx'); }

Wednesday, May 17, 2006

Introduction to Ajax with ASP.NET 2.0

Some simple examples of ASP.NET 2.0 client-script callbacks, includes ATLAS.

15 Seconds : The ASP.NET Page Life Cycle

Extremely helpful for developers who have worked with PHP and ASP(pre-.Net) and now want to get productive by mixing new techniques with old tricks.

Saturday, March 18, 2006

In What Language do Deaf People Think?

An interesting column on how the prelingually deaf think since they've never been exposed to spoken language.

read more | digg story

Thursday, February 23, 2006

Linux console and xterm keymapping

Absolute for anyone who is irritated with erratic behavior of different *nix consoles and terminal emulators.

Thursday, February 16, 2006

Thursday, February 09, 2006

Firefox extension packaging script

Pre-requisite:
  1. 7zip or any other compression utility.
  2. This script must be run from top most, build directory (i.e. where install.rdf and chrome directory resides).
  3. The directory must have the exact same name as the chrome/jar name in install.rdf. It is case SENSITIVE.
#!/bin/bash
x=`basename \`pwd\``
mkdir build/
mkdir build/chrome
cd chrome
7z a -tzip "$x.jar" * -r -mx=0
mv "$x.jar" ../build/chrome
cd ..
cp install.* build
cd build
7z a -tzip "$x.xpi" * -r -mx=9
mv "$x.xpi" ../
cd ..
rm -rf build

Saturday, February 04, 2006

Presentation slides with LaTeX

  • TeXPower is a bundle of style and class files for creating dynamic online presentations with LaTeX written by Stephan Lehmke.

  • Ppower4 - A program written in Java that post processes (La)TeX files formatted with pdf(la)tex to be able to build pages step by step during a presentation. [Free]

  • Beamer - An excellent LaTeX class that supports dynamic effects (for both ps- and pdf-documents). [Free]
  • Prosper - A LaTeX class that supports dynamic effects (for both ps- and pdf-documents). [Free]
  • Utopia PDF Presentations Bundle - provides accessories which facilitate the production of PowerPoint-like presentations from (La)TeX source. [Commercial]

Saturday, January 28, 2006

25 words that hurt your resume

  • Aggressive
  • Ambitious
  • Competent
  • Creative
  • Detail-oriented
  • Determined
  • Efficient
  • Experienced
  • Flexible
  • Goal-oriented
  • Hard-working
  • Independent
  • Innovative
  • Knowledgeable
  • Logical
  • Motivated
  • Meticulous
  • People person
  • Professional
  • Reliable
  • Resourceful
  • Self-motivated
  • Successful
  • Team player
  • Well-organized

  • Monday, January 16, 2006

    Vim LaTex-Suite tutorial

    Latex-Suite is a comprehensive set of scripts to aid in editing, compiling and viewing LaTeX documents. This guide provides a quick 30-45 minute running start to some of the more commonly used functionalities of Latex-Suite.

    Saturday, December 31, 2005

    Diff, Patch, and Friends

    A quick tutorial on Diff and Patch. Another good HOWTO with more patching examples is here.

    Sunday, December 11, 2005

    Sed - An Introduction and Tutorial

    Sed tutorial with and loads of examples.

    Thursday, October 27, 2005

    Arch for CVS Users | Linux Journal

    Arch for CVS Users | Linux Journal
    • tla register-archive http://www.lnx-bbc.org/arch
    • tla get lnx-bbc-devel@zork.net--gar/lnx-bbc--stable
    • tla update
    • tla what-changed --diffs
    • tla changes -o ,,my-illustrious-changes

    Saturday, October 22, 2005

    The HELL that find is!

    Short tutorial on Linux find command.
    • To remove all files named 'a.out' or '*.o' that have not been accessed for a week:
      • find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} \;
    • The rm command is executed once for each file.
      • find / \( -name a.out -o -name '*.o' \) -atime +7 -exec rm {} +
    • To find all files below the directory 'documents' that contain the regular expression 'string':
      • find documents -type f -exec grep string {} +
    • To find all files in the directory 'home', not descending into its subdirectories:
      • find home ! -name home -prune
    • To check whether the file 'diary' has been updated within the last two days; the name of the file is printed if true, and is not printed otherwise:
      • find diary -prune -mtime -2