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.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , ,

Saturday, March 7th, 2009 Collaboration 1 Comment

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

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Sunday, February 22nd, 2009 Ebooks 1 Comment

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?)

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Saturday, January 31st, 2009 Programming 8 Comments

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).

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Friday, January 23rd, 2009 Programming 2 Comments

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.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: ,

Monday, December 15th, 2008 Programming No Comments

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.

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags:

Saturday, November 29th, 2008 Programming 1 Comment

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:

› Continue reading

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags:

Friday, November 28th, 2008 Programming No Comments

Using Macros to Print Debug Messages in C [moved]

moved to malloc.CO

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , ,

Saturday, November 22nd, 2008 Programming 5 Comments

Printing with Color to a Linux Console [moved]

moved to malloc.CO

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Tags: , ,

Thursday, August 7th, 2008 Linux 3 Comments
my email
my photo
Hi,
My name is Amir Watad. I have a BSc. in biomedical engineering from The Biomedical Engineering school , Technion , Israel, and a BSc. in electrical engineering from The Electrical Engineering school , Technion , Israel.
I'm a Verification Engineer in Mellanox Technologies Ltd.
I love Linux, the Command Line and the OpenSource Community.
I used to write Poems (Arabic) when I was able to find time for this.
June 2012
S M T W T F S
« Sep    
 12
3456789
10111213141516
17181920212223
24252627282930
SEO Powered by Platinum SEO from Techblissonline

Twitter links powered by Tweet This v1.7.4, a WordPress plugin for Twitter.