April 2012
24 posts
Run Baby Run →
Few more reasons why running is beneficial
Magnitude 8.7 earthquake: Sumatra, Indonesia....
Let’s pray for Indonasia
December 2011
2 posts
Donald Knuth on how he became good at math →
10 Technical Papers Every Programmer Should Read... →
November 2011
2 posts
EagleUp pulls your PCBs into SketchUp →
Passion →
October 2011
5 posts
Lucid Chart →
I love lucid chart. It’s not possible to carry Microsoft Visio all the time. But this swiss knife is always handy.
1 tag
1 tag
Git Init
First of all In the Project Directory
git init
git add <filename>
git commit -a
Then
Your GIT_Repository section
git clone —bare <project_directory>
This will create a GIT repository to the Project Directory which you can share and people can clone it from.
July 2011
25 posts
3 tags
C++ Stickies : snprintf() [Safe Version of...
int snprintf(char *str, size_t size, const char *format, ...);
int vsnprintf(char *str, size_t size, const char *format, va_list args);
Writes output to the string str, under control of the format string format, that specifies how subsequent arguments are converted for output. It is similar to sprintf(3), except that size specifies the maximum number of characters to produce. The...
Satisfaction lies in the effort, not in the attainment. Full effort is full...
– Mahatma Gandhi (via kari-shma)
2 tags
C++ StickyNotes : int strcasecmp(const char *s1,...
#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t n);
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
The strcasecmp()...
2 tags
Using Stat Function to Read Stats of the file
#include
<iostream>
using namespace std;
int main()
{
struct stat FileInfo;
char filename[20] = "clock.cpp";
//Attempt to get the attribute of the file
int Stat = stat(filename , &FileInfo );
if (Stat == 0){
cout << "Success\n";
cout << "File Info: \n";
cout << "Size in Bytes : " << FileInfo.st_size << endl;
cout << "File's Owner...
2 tags
10 Keys to Academic Success
Make College a High Priority
Be responsible for your own learning
Design a well balanced schedule
Attend Class Daily
Take Good Notes
Do Reading / Homework Daily
Get to know your professors
Participate in extracurricular Activities
Ask Questions
Be Open to Learning
tumblrbot asked: WHERE WOULD YOU MOST LIKE TO VISIT ON YOUR PLANET?
Things I Wish Someone Had Told Me When I Was... →
2 tags
Pithos
Pithos is a great app for Pandora. You don’t need to open your web browser to listen song. Pithos is a great app and distraction free.
Pithos features:
Play / Pause / Next Song Switching stations Remembering user name and password Cover Art Thumbs Up / Thumbs Down / Tired of this song Notification popup with song info Launching pandora.com song info page and station page Reconnecting...
2 tags
Networking Terminologies
Portmaps
sudo apt-get install -y portmap
Portmap is a part of ONC RPC (Open Network Computing Remote Procedure) collection of software for implementing remote procedure calls between Computer Programs. It is widely used by NFS (Network File System) and NIS. Portmap is a server that converts RPC program number to DARPA protocol port number. It must be used in order to make RPC calls.
Network...
Advanced Bash-Scripting Guide →
An in-depth exploration of the art of shell scripting
3 tags
Shell Scripting : Using Case Statement
Here’s an example, implementing case statement in shell scripting to build a menu.
3 tags
Computer Jargons
Code Monkey
An insulting term to describe a poor programmer, usually who does not grasp basic or common programming concepts, and sometimes whose best coding capabilities can be described as “GoogleCut&Paste”.
Magic Number
A seemingly unusual and unexplained value that is used in a program and “makes it work”.
3 tags
1 tag
Mounting an ISO in Linux
#mount -o <output_name> <source_iso.iso> /mnt/mount_destination
Eg, # mount -o loop disk1.iso /mnt/disk
After you are done, don’t forget to umount it ! And while doing the umount you have to be out of the directory to do that, otherwise it would be like getting the floppy out.. while writing on it.. Floppy sounds like a dog’s name..
4 tags
Shell Scripting : Making Shell Based WPM Counter
Shell Scripting is fun and useful. It’s like Swiss Army Knife.. very handy in needy times. Here’s a small one, like an intro.
Save the below code to speed.sh and do
chmod 771 speed.sh
and run using
./speed.sh
Code:
#/bin/sh #speed.sh: A very tiny utility to measure typing speed. prompt=”Start typing a piece of text. Press Ctrl+D twice to finish” echo $prompt...
The dictionary is the only place that success comes before work. Hard work is...
– Vince Lombardi