Wednesday, April 22, 2009

Microsoft DeepZoomPiz

Friday, October 17, 2008

New Layout for Google News

 

 
Posted by Picasa

Aligned_malloc and Aligned_free

// alignment.cpp : Defines the entry point for the console application.
//


#include "stdafx.h"
#include
#include
#include

using namespace std;

void * aligned_malloc(int size,size_t boundary);
void aligned_free(void *p);


int _tmain(int argc, _TCHAR* argv[])
{
char *p = (char *)aligned_malloc(123456789,6782345);
aligned_free(p);
return 0;
}






void * aligned_malloc(int size,size_t boundary)
{


char *p =(char*) malloc(size+boundary+sizeof(size_t));
char * temp;

temp = p;

printf("\nActual start add:%d",temp );
p = p+ 4;

size_t amiss = ((size_t)p % boundary);
p = p+boundary-amiss;
size_t *base_add = (size_t *)(p-4);
*base_add = (size_t )temp;

//Confirm whether Address stored is correct
printf("\nAdress to be freed: %d",*base_add);


printf("\nAlligned memory Start Address: %d",p);


printf("\n Check if aligned memory is aligned :%d",((size_t)p)%(boundary));

return p;

}


void aligned_free(void *p)
{

// Address to be freed
size_t *add;
add = (size_t*)((char *)p-4);

printf("\nfree add:%ld",*add);

free((void *)(*((size_t*)((char*)p-4))));
}

Wednesday, October 08, 2008

 
Posted by Picasa

Friday, September 05, 2008

Sahasra

 
Posted by Picasa

Friday, August 01, 2008

Bangalore to Bhubaneshwar Railway Stations


View Larger Map

Tuesday, May 27, 2008

FireStarter


FireStarter
Originally uploaded by TravelingRoths.

Saturday, October 27, 2007

Sound Scientist - Joel on Software

Sound Scientist - Joel on Software: "Sound Scientist This item ran on the Joel on Software homepage on Tuesday, October 23, 2007 The great music we've been using to launch FogBugz 6.0—in the demo movie and the world tour—is a song called Sound Scientist by a San Diego band named bill. Download the MP3."

How Hard Could It Be?: Five Easy Ways to Fail, Managing Technology Article - Inc. Article

How Hard Could It Be?: Five Easy Ways to Fail, Managing Technology Article - Inc. Article: "Mistake No. 1: Start with a mediocre team of developers. Designing software is hard, and unfortunately, a lot of the people who call themselves programmers can't really do it. But even though a bad team of developers tends to be the No. 1 cause of software project failures, you'd never know it from reading official postmortems. In all fields, from software to logistics to customer service, people are too nice to talk about their co-workers' lack of competence. You'll never hear anyone say 'the team was just not smart enough or talented enough to pull this off.' Why hurt their feelings? The simple fact is that if the people on a given project team aren't very good at what they do, they're going to come into work every day and yet--behold!--the software won't get created. And don't worry too much about HR standing in your way of hiring a bunch of duds. In most cases, I assure you they will do nothing to prevent you from hiring untalented people."