Programming
Use Codepad to Save, Share and Compile Code Snippets
In a previous post, I wrote about Bonetree’s Codebox, a very nice web interface to share syntax highlighted snippets.
Codepad is a similar tool, with more features: You can compile your code and save it permanently. It also has a plugin for vim, which allows you to save/run your code in codepad right from vim.
Codepad supports a few languages, like C, C++, PHP, Python and others. There are many languages it does not support though.
4 Free and Great Programming Ebooks
These are 4 Ebooks which I had looked at recently and had a very good impression about. It’s needless to say that I’m planning to read them all (So why do I say this if it’s needless?)
These are direct links to PDFs, just click and save.
1.Linux 101 Hacks: Nice Bash and Linux tips. Small commands which make difference.
2.Python 2.1 Bible: Though they’ve been a few python releases since 2.1, still I think this book is a must for starting writing python. I just started reading, and it’s a very joyful experience.
› Continue reading
Sending Emails with Matlab
This method is (as far as I know) not found in the official Matlab’s documentation. I found it a long time ago somewhere in the internet (don’t remember where, sorry). It’s intended for sending Emails using Matlab.
In order to use it, you should have an Email account which supports SMTP (eg. Gmail). This account will be the account we’re sending the messages through.
The script assumes you’re using Gmail, but it can be easily modified to use other Email suppliers (are there any?)
How to Convert a Number into a String in C++
I found a few ways to convert a number into C++, some of them are C style (like using sprintf), and some are ugly (i.e non-standard, like using itoa), and there some nice way which uses string streams to achieve this.
Where going to define and implement a function called Stringify, which accepts an integer and returns a string (this can be extended to accept any numeric value).
The Power of Polymorphism (Video)
This video is part of “The Clean Code Talks” series, which is itself a part of the great “Google TechTalks”.
The video shows the strength of using polymorphism instead of switch statements and “if” conditionals, to get a much cleaner cleaner code, allowing it to be more readable, testable and maintainable.
One of the best videos I watched in this series.
Easily Create Code Snippets with Bonetree Box
Update: Looks like the link is not valid anymore
Anyhow, one always can use http://pastebin.com
Have you ever needed to show a code to a friend? If yes, I have no doubt that you will love Bonetree Box.
This web tool has a very simple and well-designed interface, and working with it is with no doubt a pleasant experience.
The tool has support for a set of popular programming languages, such as C, C++, Bash and more (I believe that this set will be extended over time), and allows you to create a syntax highlighted code snippets with zero effort.
How to Declare an Array of Strings in C
Ok, I know this is not a big deal, I just hate to deal with strings in C, so I’ll put the code here so I can copy-paste-modify whenever I need to do such things.
Purpose: declare an array of strings.
There are two cases here:
About Me
Tags
Categories
- Algorithms
- Bash
- BlackBerry
- Collaboration
- Command Line
- Cool Tricks
- Easter Eggs
- Ebooks
- Firefox
- Hardware
- Humor
- iPhone
- Linux
- Linux Development
- Linux Kernel
- Networks
- Open Knowledge
- Other
- Productivity
- Programming
- Regular Expressions
- Science
- Security
- Shell Scripts
- Short Posts
- Social Networks
- Thoughts
- Tools
- Vim
- Web Development
- Websites
Popular Posts
Calendar
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Sep | ||||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Archives
- September 2010 (2)
- August 2010 (2)
- July 2010 (5)
- June 2010 (1)
- May 2010 (1)
- April 2010 (3)
- March 2010 (1)
- January 2010 (1)
- December 2009 (2)
- September 2009 (13)
- July 2009 (1)
- June 2009 (6)
- May 2009 (4)
- March 2009 (18)
- February 2009 (10)
- January 2009 (10)
- December 2008 (7)
- November 2008 (8)
- October 2008 (1)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
