Do you remember the exact date or time when you installed windows operating system on the computer ? Here’s a simple DOS command to help you out:
systeminfo | find /i “install date”
This will show the time and date when you have installed windows on your the computer.
Apna Tip: Run systeminfo | find /i “boot time” to know the time when you last rebooted the computer.
Thursday, March 27, 2008
When did you installed Windows on the Computer? Know The Exact Time and Date
Posted by Neil at 12:18 PM 0 comments
Labels: Install date, Windows
Wednesday, March 26, 2008
Malaysian Township
Posted by Neil at 1:38 PM 0 comments
Saturday, March 15, 2008
Appriasal Letter
Johnson, my assistant programmer, can always be found
hard at work in his cubicle. Johnson works independently, without
wasting company time talking to colleagues. Johnson never
thinks twice about assisting fellow employees, and he always
finishes given assignments on time. Often Johnson takes extended
measures to complete his work, sometimes skipping coffee
breaks. Johnson is a dedicated individual who has absolutely no
vanity in spite of his high accomplishments and profound
knowledge in his field. I firmly believe that Johnson can be
classed as a high-caliber employee, the type which cannot be
dispensed with. Consequently, I duly recommend that Johnson be
promoted to executive management, and a proposal will be
sent away as soon as possible.
Signed - Project Leader…
NB: That stupid idiot was reading over my shoulder when I wrote the report sent to you earlier today. Kindly read only the odd lines (1, 3, 5, 7, 9, 11, 13) for my true assessment of him.
Posted by Neil at 12:11 PM 1 comments
Google Gears
Google Gears is an open source browser extension that lets developers create web applications that can run offline. Gears provides three key features:
* A local server, to cache and serve application resources (HTML, JavaScript, images, etc.) without needing to contact a server
* A database, to store and access data from within the browser
* A worker thread pool, to make web applications more responsive by performing expensive operations in the background
Google Gears is currently an early-access developers' release. It is not yet intended for use by real users in production applications at this time.
To take advantage of the offline features provided by Google Gears, you'll need to add or change code in your web application.
There are three core modules provided by Gears: a LocalServer for storing and accessing application pages offline, a Database for storing and accessing application data on the user's computer, and a WorkerPool for performing long-running tasks (such as the code that synchronizes data between your server and users' computers).
Posted by Neil at 12:06 PM 0 comments
Labels: Database, Google, Google Gears, Local Server, Offline
Friday, February 29, 2008
The Evolution of a Programmer
Would you like to know how different people write "Hello World" Program...Here are different programs to display "Hello World". I am in high school category.....Uh, yes....am to lazy........decide in which you are in....
High School/Jr.High
10 PRINT "HELLO WORLD"
20 END
First year in College
program Hello(input, output)
begin
writeln('Hello World')
end.
Senior year in College
(defun hello
(print
(cons 'Hello (list 'World))))
New professional
#include
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i <>
printf("%s", message[i]);
printf("\n");
}
Seasoned professional
#include
class string
{
private:
int size;
char *ptr;
string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream <<>
}
string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout <<>
return(0);
}
Master Programmer
[
uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820)
]
library LHello
{
// bring in the master library
importlib("actimp.tlb");
importlib("actexp.tlb");
// bring in my interfaces
#include "pshlo.idl"
[
uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820)
]
cotype THello
{
interface IHello;
interface IPersistFile;
};
};
[
exe,
uuid(2573F890-CFEE-101A-9A9F-00AA00342820)
]
module CHelloLib
{
// some code related header files
importheader(
importheader("shlo.hxx");
importheader("mycls.hxx");
// needed typelibs
importlib("actimp.tlb");
importlib("actexp.tlb");
importlib("thlo.tlb");
[
uuid(2573F891-CFEE-101A-9A9F-00AA00342820),
aggregatable
]
coclass CHello
{
cotype THello;
};
};
#include "ipfix.hxx"
extern HANDLE hEvent;
class CHello : public CHelloBase
{
public:
IPFIX(CLSID_CHello);
CHello(IUnknown *pUnk);
~CHello();
HRESULT __stdcall PrintSz(LPWSTR pwszString);
private:
static int cObjRef;
};
#include
#include "pshlo.h"
#include "shlo.hxx"
#include "mycls.hxx"
int CHello::cObjRef = 0;
CHello::CHello(IUnknown *pUnk) : CHelloBase(pUnk)
{
cObjRef++;
return;
}
HRESULT __stdcall CHello::PrintSz(LPWSTR pwszString)
{
printf("%ws
", pwszString);
return(ResultFromScode(S_OK));
}
CHello::~CHello(void)
{
// when the object count goes to zero, stop the server
cObjRef--;
if( cObjRef == 0 )
PulseEvent(hEvent);
return;
}
#include
#include "shlo.hxx"
#include "mycls.hxx"
HANDLE hEvent;
int _cdecl main(
int argc,
char * argv[]
) {
ULONG ulRef;
DWORD dwRegistration;
CHelloCF *pCF = new CHelloCF();
hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
// Initialize the OLE libraries
CoInitializeEx(NULL, COINIT_MULTITHREADED);
CoRegisterClassObject(CLSID_CHello, pCF, CLSCTX_LOCAL_SERVER,
REGCLS_MULTIPLEUSE, &dwRegistration);
// wait on an event to stop
WaitForSingleObject(hEvent, INFINITE);
// revoke and release the class object
CoRevokeClassObject(dwRegistration);
ulRef = pCF->Release();
// Tell OLE we are going away.
CoUninitialize();
return(0); }
extern CLSID CLSID_CHello;
extern UUID LIBID_CHelloLib;
CLSID CLSID_CHello = { /* 2573F891-CFEE-101A-9A9F-00AA00342820 */
0x2573F891,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};
UUID LIBID_CHelloLib = { /* 2573F890-CFEE-101A-9A9F-00AA00342820 */
0x2573F890,
0xCFEE,
0x101A,
{ 0x9A, 0x9F, 0x00, 0xAA, 0x00, 0x34, 0x28, 0x20 }
};
#include
#include "shlo.hxx"
#include "clsid.h"
int _cdecl main(
int argc,
char * argv[]
) {
HRESULT hRslt;
IHello *pHello;
ULONG ulCnt;
IMoniker * pmk;
WCHAR wcsT[_MAX_PATH];
WCHAR wcsPath[2 * _MAX_PATH];
// get object path
wcsPath[0] = '\0';
wcsT[0] = '\0';
if( argc > 1) {
mbstowcs(wcsPath, argv[1], strlen(argv[1]) + 1);
wcsupr(wcsPath);
}
else {
fprintf(stderr, "Object path must be specified\n");
return(1);
}
// get print string
if(argc > 2)
mbstowcs(wcsT, argv[2], strlen(argv[2]) + 1);
else
wcscpy(wcsT, L"Hello World");
printf("Linking to object %ws\n", wcsPath);
printf("Text String %ws\n", wcsT);
// Initialize the OLE libraries
hRslt = CoInitializeEx(NULL, COINIT_MULTITHREADED);
if(SUCCEEDED(hRslt)) {
hRslt = CreateFileMoniker(wcsPath, &pmk);
if(SUCCEEDED(hRslt))
hRslt = BindMoniker(pmk, 0, IID_IHello, (void **)&pHello);
if(SUCCEEDED(hRslt)) {
// print a string out
pHello->PrintSz(wcsT);
Sleep(2000);
ulCnt = pHello->Release();
}
else
printf("Failure to connect, status: %lx", hRslt);
// Tell OLE we are going away.
CoUninitialize();
}
return(0);
}
Apprentice Hacker
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV >= 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, ">" . $outfilename) || die "Can't write $arg: $!\n";
print (FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
1;
Experienced Hacker
#include
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
Seasoned Hacker
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Guru Hacker
% echo "Hello, world."
New Manager
10 PRINT "HELLO WORLD"
20 END
Middle Manager
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D
Senior Manager
% zmail jim
I need a "Hello, world." program by this afternoon.
Chief Executive
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
Posted by Neil at 12:02 PM 0 comments
Labels: Evolution, Programmer
Thursday, February 28, 2008
Microsoft Surface Computer
Looks like you might have to check into a swanky hotel or think about switching your wireless service if you want to play with a Microsoft Surface computer…the company apparently considers the consumer market as merely “an option". Initial customers will be in the hospitality businesses, such as restaurants, hotels, retail, public entertainment venues and the military for tactical overviews.
The technology behind Surface is called Multi-touch. It has at least a 25-year history,beginning in 1982, with pioneering work being done at the University of Toronto (multi-touch tablets) and Bell Labs (multi-touch screens). The product idea for Surface was initially conceptualized in 2001 by Steven Bathiche of Microsoft Hardware and Andy Wilson of Microsoft Research. In October 2001, a virtual team was formed with Bathiche and Wilson as key members, to bring the idea to the next stage of development.
Surface is a 30-inch (76 cm) display in a table-like form factor, 22 inches (56 cm) high, 21 inches (53 cm) deep, and 42 inches (107 cm) wide. The Surface tabletop is acrylic, and its interior frame is powder-coated steel. The software platform runs on Windows Vista and has wired Ethernet 10/100, wireless 802.11 b/g, and Bluetooth 2.0 connectivity.
You can watch the Surface presentation below
Here is another video for you guys. In this video, Bill Gates is checking the Surface Computer. With Surface Computer you can play with photos, wireless pulling photos off a camera, and ordering and paying for food using credit cards.
Posted by Neil at 3:45 PM 0 comments
Labels: Bill Gates, Microsoft, Surface Computing
Wednesday, February 20, 2008
Acquistions by Yahoo, Google, Microsoft,...................
Now a days acquiring one company by another company is quite common and it is difficult to remember list. So I have decided to put a list of acquisitions on my blog. You can see below for complete acquisition history of Yahoo, Google, Microsoft and other major giants.
Google also acquired Tusli(Google Blogger API Engineering Team), Zingku (Mobile social network and communication platform) in September, 2007 and Jaiku(An activity stream and presence sharing service that works from the Web and mobile phones (Helsinki)) in October, 2007.
Download MS excel sheet for detailed Google Acquisitions list. Click here to download Excel sheet.
http://freshblogspot.googlepages.com/GoogleAcquisitions.xls
Above JPEG's has been downloaded from Internet and I would like to say thanks to original list creator for the awesome job he/she has done. Please post your comments
Posted by Neil at 3:34 PM 0 comments
Thursday, February 7, 2008
Use Single mouse and keyboard with mutiple PC's at a time
Synergy is an open source software lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware.
It’s intended for users with multiple computers on their desk. If have a similar setup and struggling while switching between the desktop PC and the notebook. You could remote desktop to one of the computers, however you would loose out on using both the display units.
Here is easiest way to configure Synergy between 2 computers running Windows.
- Install the software on all the computers that will share the keyboard and mouse. In this case I (actually not me, I got this article from the internet) installed the windows version of Synergy on both the desktop and notebook.
- Configure the synergy server on the PC to which the keyboard and the mouse is connected.
- Start Synergy and select “Share this computers keyboard and mouse(server)” option
- Open the configuration dialog by clicking on “Configure"
- Configure the “Screens” and the “Links“. For my above setup, I configured 2 screen and 2 links as shown below.
Note that synergy recommends to input the computer name as the screen name. If you don’t have DNS configured, you can also input the IP addresses in the “Alias” box while configuring the screens.
The links section tell synergy about the position of the configured screens. As you can see from the above image, its not enough to indicate that the laptop is on the left of the desktop. I also need to configure a link saying that the desktop is on the right of the laptop.
-
Click on “Start” to start the synergy server.
-
On the client side (i.e. on my laptop), I just need to instruct synergy to use another computer’s keyboard and mouse.
Once the client successfully connects to the Synergy server, you can easily switch between the 2 computers. When the mouse is moved to the leftmost part of the desktop screen, it automatically switches onto the laptop screen. All further keyboard strokes are also directed towards the laptop.
If you are a keyboard junkie like me, you might also want to configure the “Hotkeys” on the server as shown below
I have one key configured to bring the laptop to focus and another to bring the desktop into focus. You can also configure synergy as a service so that its started automatically when you log in.
*In this post I and my refers to actual author. Many thanks to original author.
Posted by Neil at 5:03 PM 0 comments
PDF to TEXT file, HTML file
Send a PDF document to pdf2txt@adobe.com as an attachment and it will come back as a plain text file. Handy when your don’t have a PDF viewer to open the PDF document. Alternatively, you can send the PDF file to pdf2html@adobe.com for conversion to HTML format.
Here is the another good option to convert PDF files
pdf@koolwire.com - You have an Office document or a picture on your computer or mobile phone that you wish to convert into a PDF file. Just email that file an email attachment to the above address and it will soon return to your Inbox as a PDF file.
Posted by Neil at 4:56 PM 0 comments
Labels: HTML files, PDF, Text files