Why I am so unhappy ?

January 4th, 2010

Hi
Before i used to work at night , day and night and sometime day night day night …. almost 10 to 20hr …

Now i am working for a dating website . My job is maintaining the site . I work for this site maximum 1hr a day , but i am getting paid well (income is same as before ) .

But i was feeling not good , Reason , never could realize whats wrong. Why i am so unhappy ?? while i am getting paid well but less work .

After reading a article i realize i used to enjoy my work .

I have decided to increase my work hour again .

I have heavy income target for this year. I am sure i could reach this target , as well as bring back my happy work hour.

How do I load pictures onto a thumb drive?

October 31st, 2009

Its Simple ,

Goto  ‘My Pictures”  Select the files and copy .
Then Goto “My Computer” Select the Thumbdrive and paste the
files ..

isn’t so easy ??

What does java script , VB script , PHP , Python?

October 31st, 2009

JavaScript , VBScript Run from User end. PHP works from Server

I am explaining bit more details .

When we browse some pages say .. http://example.com/sample.php
Its request to the domain for sample.php file , php execute from server and return html to the browser , and the html display the pages .

Javascript is run-time language it excute after browsing the page or event base … need more help feel free ask me

Cocoa : Write a Flat File

August 9th, 2009

Code:

NSError *error;

//write to file
NSString *FileContent ;
FileContent = [txtname stringValue] ;

[FileContent writeToFile:FileName atomically:YES encoding:NSUnicodeStringEncoding error:&error];

Cocoa : Add Two string into one

August 9th, 2009

Code

NsString *str1= @”My Frist String ” ;

NsString *str2= @”My Second String ” ;

str1 = [[str1 stringByAppendingString:str1] retain];

// return str1 My Frist String My Second String

Cocoa : Get Mac Serial Number Using AppleSript

August 9th, 2009

  //Cocoa : Get Mac Serial Number Using AppleSript OR Run A AppleScript in Cocoa

NSDictionary* errorDict;
NSAppleEventDescriptor* returnDescriptor = NULL;

NSAppleScript* scriptObject = [[NSAppleScript alloc] initWithSource:
@”\
set SerialNumber to word -1 of (do shell script \”ioreg -l | grep IOPlatformSerialNumber\”) \n\
–display dialog (SerialNumber) \n\
return SerialNumber”

];
returnDescriptor = [[scriptObject executeAndReturnError: &errorDict]stringValue];

Cocoa : Change Sreen Size Run Time

August 9th, 2009

    int newWinHeight = 624; // New Vertical height
int newWinWidth = 802; // New Horizontal width
NSRect r;

r = NSMakeRect([window1 frame].origin.x - (newWinWidth - (int)(NSWidth([window1 frame]))), [window1 frame].origin.y - (newWinHeight - (int)(NSHeight([window1 frame]))), newWinWidth, newWinHeight);
[window1 setFrame:r display:YES animate:YES];

Cocoa : String Replace

August 9th, 2009

Code :

In Cocoa stringByReplacingOccurrencesOfString is Same Like php str_replace

NsString *aString = @” My Name Is Prosenjit Sarkar” ;
NsString *SearchWord = @”Prosenjit Sarkar” ;
NsString *ReplaceValue = @”Your Name”
aString = [aString stringByReplacingOccurrencesOfString:SearchWord withString:ReplaceValue];

// Return  My Name Is Your Name

Cocoa : Hide UnHide a Control

August 9th, 2009

  //Make Invisible

[myControl  setHidden:YES] ;
//Make Visible

[myControl  setHidden:NO] ;

Cocoa : Get Current Path Of Application

August 9th, 2009

  Code :

NSString *resourcesPath = [[NSBundle mainBundle] resourcePath];