RSS
 

Archive for the ‘Computer’ Category

What is Twitter?

21 Dec

Twitter is a social networking and micro-blogging service that allows you answer the question, “What are you doing?” by sending short text messages 140 characters in length, called “tweets”, to your friends, or “followers.”

The short format of the tweet is a defining characteristic of the service, allowing informal collaboration and quick information sharing that provides relief from rising email and IM fatigue. Twittering is also a less gated method of communication: you can share information with people that you wouldn’t normally exchange email or IM messages with, opening up your circle of contacts to an ever-growing community of like-minded people.

You can send your messages using the Twitter website directly, as a single SMS alert, or via a third-party application such as Twirl, Snitter, or the Twitterfox add-on for Firefox.

 
No Comments

Posted in Computer

 

Online Scheduling Software

20 Dec

They download and categorize our balances and transactions automatically every day— making it effortless to see graphs of our spending, income, balances, and net worth. And it is Free!

 

Edge orientation

05 Dec

This is a sample code for getting the edges orientation in an image.

CvMat *filter_x=cvCreateMat(1,3,CV_32FC1); filter_x->data.fl[0]=-1;
filter_x->data.fl[1]=0; filter_x->data.fl[2]=1;
CvMat *filter_y=cvCreateMat(3,1,CV_32FC1); filter_y->data.fl[0]=-1;
filter_y->data.fl[1]=0; filter_y->data.fl[2]=1;
IplImage *img_src=cvLoadImage("name",0);
IplImage *img_diff_x=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *img_diff_y=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *img_32f=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
cvConvert(img_src,img_32f);
cvFilter2D(img_32f,filter_x,img_diff_x);
cvFilter2D(img_32f,filter_y,img_diff_y);
IplImage *magnitude=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
IplImage *orientation=cvCreateImage(cvGetSize(img_src),IPL_DEPTH_32F,1);
cvCartToPolar(img_diff_x, img_diff_y, magnitude, orientation, 1);

 
3 Comments

Posted in OpenCV

 

Online service to convert files type

05 Dec

Convert any media file format (Documents, Images, Audio, Video & Archives) without buying or installing anything on your PC

 

Remove items from deque, list or vector in a loop

28 Nov

Recently I needed to delete items from a sequence like a deque , list or vector from a for loop, I figured out that I have to do something like this:

for(iter = list.begin(); iter != list.end(); ++iter)
{
// your code
iter = list.erase(iter);
--iter;
// your code
}

It looks basic but it took me a while to figure it out so I wanted to share in case somebody need it.

 
No Comments

Posted in C++