Subscribe for email updates

Get all updates to your inbox to stay tune.

Curve tracing programs - Draw sin(x) curve using Graphics programming in C

Learn how to draw curve tracing graphics programs in c language

Graphics programming in C

Learn how to write basic and advanced graphics programming in c language

Curve tracing programs - Draw Cos(x) curve using Graphics programming in C

Learn how to draw curve tracing graphics programs in c language

Make file tutorial

A step by step guide to learn how to write make file in Linux with examples

Wednesday, November 30, 2011

power of proc4: process IDs

proc file system list all process IDs as  directories along with other entries.
Each process ID shows as a directory and in that all information about process like open fds,environment when process started, stack.. etc will be shown as files. You can just cat the file to see the process information.


# ls /proc
1     13762  1435  19     22421  27815  304  38   42   50    56  65  786  940        dma          kallsyms    meminfo       schedstat      timer_list
10    1383   1437  2      22425  28     31   389  43   5024  57  66  79   acpi       driver       kcore       misc          scsi           timer_stats
1042  1391   1439  20     22472  289    32   39   44   5028  58  67  8    buddyinfo  execdomains  keys        modules       self           tty
11    1398   1441  21     22482  29     33   390  45   51    59  68  80   bus        fb           key-users   mounts        slabinfo       uptime
110   14     1449  22     23     290    34   391  46   5170  6   7   9    cgroups    filesystems  kmsg        mtd           softirqs       version
12    1404   1450  22150  24     29665  35   392  47   5174  60  73  900  cmdline    fs           kpagecount  mtrr          stat           vmallocinfo
1207  1415   15    22152  25     29990  36   393  476  52    61  74  901  cpuinfo    interrupts   kpageflags  net           swaps          vmstat
1260  1417   16    22154  26     3      368  4    48   53    62  75  902  crypto     iomem        loadavg     pagetypeinfo  sys            zoneinfo
13    1431   17    22369  27     30     37   40   49   54    63  76  903  devices    ioports      locks       partitions    sysrq-trigger
1307  1433   18    22373  27810  303    370  41   5    55    64  77  904  diskstats  irq          mdstat      sched_debug   sysvipc

Monday, November 28, 2011

power of proc-3: Meminfo

Run the following command to get the memory information about your system. It also shows much more info , I have just truncated the output :-)


# cat /proc/meminfo
MemTotal: 3924928 kB
MemFree: 537432 kB
Buffers: 674604 kB
Cached: 2303392 kB
SwapCached: 2248 kB
Active: 2034388 kB
Inactive: 963744 kB

Power of proc-2: cpu info

Run the following command to get the cpu info on your system.
It shows how many processor ,speed, model.. etc.

#cat /proc/cpuinfo

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Xeon(R) CPU X5690 @ 3.47GHz
stepping : 1
cpu MHz : 3458.000
cache size : 12288 KB
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat dts
bogomips : 6916.00
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:

Sunday, November 13, 2011

jobs @ redbus

checkout. may be suits for your profile.
http://www.redbus.in/jobs.aspx

amazing Linux stuff

Hello friends
I could see  that this site has got lot of info about linux and especially GDB.

 I was looking for such info since long time probably my search word tick correct today. If you really interested in how GDB works and to know internals of booting, why not printf for debug.. etc. I  strongly recommend to visit this site.

I started reading today. I will post more about this site and about its content. So that you will get benefit out of it.

Here we go >>>  http://www.dirac.org/linux/

Thanks and Hats up to  Mr Peter.

chance to win $5k for your idea.

An idea can win $5K.
You have an idea, then check it out.

Click here to see your idea can win $5k

Saturday, November 12, 2011

Power of Proc-1: Linux Version

Lets start something interesting about proc pseudo file system.
To know which version of Linux you are using. Cat this file


# cat /proc/version
Linux version 2.6.32-35-generic (buildd@allspice) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #78-Ubuntu SMP Tue Oct 11 16:11:24 UTC 2011

There may be many ways to get this info, but lets limit this discussion to proc file system.

Friday, November 11, 2011

Display message (banner) during Login into Linux machine

There may be cases where you have shared your linux machine password with your colleagues and friends. some times it may require that you want to inform them something about that machine during login. Or you want to welcome them immediately after login into the machine.
 This can be done using a file /etc/motd in linux.
 Open this file, edit it. Add whatever message you want to display during login. 

For example
------------------------------------
NOTE: This machine is used for final
test please do not alter configuration.
 If any queries, please write to
adminuserxyz@blaablaa.com
------------------------------------
 have fun!!

Friday, November 4, 2011

EPF balance online

Here's some useful information.

Here's a link where you can check your EPF balance online. This helpful for getting the PF from your previous employer transfered to your current emploter PF account.
Click here

Celebrate !! :-)

Thursday, November 3, 2011

Check Aadhar card/UID enrollment status online

It is very useful link as everyone eager to see Aadharcard.

You can get status here.
Check Aadhar card enrollment status online