Showing posts with label general. Show all posts
Showing posts with label general. Show all posts

Tuesday, July 13, 2010

Recommended compiler options in gcc

These are the recommended compiler options for catching most of the errors in c/c++ program.

-ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings

You can alias it with gcc/g++ in your bashrc/zshrc and your life will become a bit cooler ;)

alias g++="g++ -ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings"

alias gcc="gcc -ansi -pedantic -Wall -W -Wconversion -Wshadow -Wcast-qual -Wwrite-strings"

Ref : http://www.network-theory.co.uk/docs/gccintro/gccintro_32.html

Tuesday, March 9, 2010

Colemak layout

Ya I know that this is after a long time. I am sorry as I was busy with some mundane tasks. So here is the news : I have switched my keyboard layout to "colemak". This saves me from RSI and promises to increase my typing speed as well. The speed factor is yet to be verified by me, but the RSI is certainly true. I followed cold turkey approach and it started showing results in 3-4 days. The biggest positive point is remapping Caps key to Backspace key, which itself reduces right pinky movement a lot. In debian it is as easy as these scripts that I am using.

#### file: ~/bin/switch_keyboard_layout_colemak.sh ####
setxkbmap us -variant colemak
xset r 66

#### file: ~/bin/switch_keyboard_layout_qwerty.sh ####
setxkbmap us;
xset -r 66

Reference : http://colemak.com/

Tuesday, December 8, 2009

A new browser based on chromium.

Should check this link. I dont know how much of this is true and how much it is an intrusion in our privacy.

http://www.srware.net/en/software_srware_iron_chrome_vs_iron.php

Besides this if you want to try out a chromium based browser then can download the chromiium iron from the same page. I have not yet tested the browser myself but will certainly do that. It seems that I should read the full agreement before clicking "I Accept".

++EDIT++
A friend of mine sent this link.
http://www.google.com/support/chrome/bin/answer.py?answer=114836&hl=en
So its not a problem anymore, The only thing remains is the default ON options for such things. I thing that while installing chrome, these options should be asked for. And for the iron chromium, they should tell how to disable these options.

Monday, November 30, 2009

the great Mark

Though this is not about linux/debian or anything like that. But here is the case:

You write a book, put it in GPL and somebody prints it and sells it and makes profit out of it. How will you feel ?

Read out to know how does the writer of dive-into-python thinks. After reading you will feel that the Title of this post is justified.

http://diveintomark.org/archives/2009/10/19/the-point

Sunday, April 5, 2009

my website

So i thought of using the website creation utility of goggle and here is the address of my website
http://sites.google.com/site/alindsharma/

All your criticism and suggestions for improving website are most welcome.

Monday, November 17, 2008

lappi's specs

So here are my lappi's hardware specs
Inspiron 1525 ,Blue color
Intel Core 2 Duo T8100, 800Mhz,
3GB, DDR2, 667MHz
15.4 inch Wide Screen (1440x900)
Intel Graphics Media Accelerator X3100
160G hard disk
Integrated 10/100 Network Card
8X DVD+/-RW
Intel 3945 WLAN (802.11a/b/g) Mini Card
Integrated 2.0M Pixel Webcam
6-cell battery
Ports:
4 USB, 1 IEEE 1394a, 2 Headphone,
1 Microphone, 1 Media Card,
1 HDMI, 1 S-Video, 1 VGA,
1 RJ-45 (Ethernet), 1 RG-11 (Modem)

Tuesday, July 8, 2008

recently bought dell inspiron 1525

So here is my first entry in lieu of todays fashion of blogging. As the title suggests i have dell. a gud machine to work on. And i installed debian (lenny) on it. sound, webcam, bluetooth is working. Details of setup and specs in next entry :)