November 2, 2009 at 4:18 pm (PHP)
Tags: component, install, operating system, PHP, version
Just a quick tip to let you know that you can find the version of PHP, and the PHP components installed on the server by just creating a blank php file and writing this into it:(of course, you would need to be able to access the server via some transport protocol for this to work)
<?php phpinfo(); ?>
Read the rest of this entry »
Leave a Comment
October 30, 2009 at 3:44 pm (Others)
Tags: free, giveaway, google, invitation, invites, wave
Hi everyone,
I have 11 Google Wave invites left. You want it? Just drop a comment with your gmail username(or any other e-mail address I guess, but I haven’t tested). Use [at] instead of @ and [dot] instead of ‘.’ to be protected from spam bots though.
First come, first served..
Update: None left!
If I get more, I’ll post them here again.
22 Comments
September 10, 2009 at 7:22 pm (Useful information, Windows)
Tags: change, display, enterprise, eula, express, home, internal, language, microsoft, mode, non-working, pack, premium, rtm, search, seven, sp1, sp2, ultimate, update, Vista, Windows
So.. if you are here, you probably bought your laptop from a country different from the one you are originating from and want to change it to your local language.
Hmm.. So you google a bit and realize that you can’t do that unless you are using an Ultimate/Enterprise version of Vista. Well, there is an unofficial way to achieve your aim.
Note: This probably violates the EULA of Microsoft, so carry on at your own risk.
Read the rest of this entry »
Leave a Comment
August 1, 2009 at 5:09 pm (Personal)
Tags: accomodation, choice, decision, dream, faith, financial, icss, idealism, information and communication systems security, job offer, kista, kth, opportunity, royal institute of technology, sabancı university, scholarship, su, sweden
Last friday, I quit my current part-time job where I have been working for the last year and a month. Why did I do it?, some people ask.
Well, it certainly was a hard decision. They actually allowed me to be a full-time employee and also go on with my masters education at Sabancı University(SU). (..and, it is probably one of the best companies to work for in Turkey)
Read the rest of this entry »
2 Comments
July 19, 2009 at 11:05 am (Java, Linux)
Tags: code, command, command line, console, exec, input stream, Java, jstack, Linux, output, pid, process, runtime, sample, stack trace, thread dump
Of course; I was trying to get a thread dump using jstack here. You would need to change the command that Runtime.exec() executes to your liking.
Process threadDump=Runtime.getRuntime().exec("jstack -l "+pid);
BufferedReader br=new BufferedReader(new InputStreamReader(threadDump.getInputStream()));
while(true)
{
String line=br.readLine();
if(line==null)
break;
else {
//Do whatever you want
}
Leave a Comment
July 19, 2009 at 11:00 am (Java, Linux)
Tags: *nix, application, code, command, echo, exec, get, id, input stream, Java, Linux, pid, process, runtime, sample, shell, unix
Use the following sample code to get the pid(process id) on *nix variants, after running it as a command from Java using Runtime.exec() .
The command variable, in my case, was running another Java application.
try {
Process process=Runtime.getRuntime().exec(new String [] {"sh","-c",command+" & echo $!"} );
BufferedReader br=new BufferedReader(new InputStreamReader(process.getInputStream()));
String ps=br.readLine();
int pid=Integer.valueOf(ps);
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
}
1 Comment
July 17, 2009 at 6:54 pm (Mobile, Mobile Phones)
Tags: 95, bochs, boot-time, dosbox, emulator, iphone, jail-broken, run, Windows, x86
Leave a Comment
July 12, 2009 at 1:13 am (C#, Windows)
Tags: C#, checker, code, http, link, multiple, non-working, rapidshare, request, source, validity, working
I’ve created a simple validity checker desktop application for Rapidshare links.
I am giving out the source code and the binary, in case anyone is interested.
Read the rest of this entry »
5 Comments
July 5, 2009 at 5:07 pm (Personal)
Tags: certification, MCP, MS, professional
Hi everyone! I have been inactive in the blog lately, but since school is over, I will now be able to devote more time and attention here.
I attended a MS certification exam recently(well, last week), thanks to Microsoft’s free exam voucher for students, and I passed it
So I am now officially a MCP.
The exam that I sat for was “TS: Microsoft .NET Framework: Application Development Foundation” btw.
Anyway, just wanted to share the news. See ya!
1 Comment
July 5, 2009 at 4:55 pm (Useful information, Windows)
Tags: change, disable, enable, explorer, IE, internet, internet options, programmatically, proxy, registry, script, server, vbs
Ok. You know the drill, you need to use the company’s proxy server at work and at home you don’t need a proxy server.(or you use another one)
Well, do you really want to open up IE and go into Tools->Internet Options->Connections->LAN Settings->Proxy Server to change the address or disable/enable it?
(You can actually open Internet Options from Control Panel without opening up IE, but anyway, it still is a long process.)
As everything useful is done in Registry in Windows, we again have some registry scripts.
Read the rest of this entry »
Leave a Comment
« Older entries