I've always hated using IDE's, QtCreator being an exception, but I know that I might eventually have to end up using one. For simple Java Codes however, Vim - my preferred text editor, I'm yet to master it btw - should be more than enough. And fair enough, it does do it's job perfectly. The … Continue reading Connecting your Java Code to Postgresql installation via terminal in Linux
Tag: Linux
And that’s how I got the images of all my batchmates. Two PDF files, plenty of photos, even more memories !
PDF (Portable Document Format) documents are a handy way to present text and images to others knowing they’ll look the same no matter what word processor or operating system they use. Basically, they’re a snapshot of a document, so saving images from them can be a hassle, even if your viewer lets you right-click them and save them as files. There are a few programs around that can do this for you, but it’s actually much easier and faster doing this from the command-line.
The pdfimages command is part of poppler-utils, which should already be installed on your system (sudo apt-get install poppler-utils in the terminal if it isn’t). To extract the images from a PDF, just open a terminal in the folder with the document, and run a command like the following:
pdfimages -j Cool-Pix-of-2011.pdf cool2011
Note that when extracting from files with spaces in…
View original post 432 more words
Pretty cool stuff indeed 😉
Wanna reduce the stack of CD’s?
Here is a solution to directly install a distro by directly booting the image files from the harddisk of a GNU/Linux operating system. The steps to be followed are prescribed below(Eg. Fedora 10 from Ubuntu 8.10)
1.Mount the iso image of the distro to a mount point
$ mkdir /media/fedora10
$sudo mount -o loop /home/varrun/Fedora10.iso /media/fedora10
2. Copy the contents of the iso responsible for booting the distro to a folder in the root directory
- The kernel -> is present in the isolinux/vmlinuz folder
- initrd image -> responsible for loading the initial root file system in the RAM
3. Make a directory “Fedora” in root directory ” / “
$ sudo mkdir /fedora
4. Copy the isolinux and images folder in the iso to /fedora directory
$…
View original post 86 more words
If you're wondering what Simon is all about, I'd blogged about the same just a few days back. You might as well want to read that post, before going through this one. Click here to read it. So, I was reading the Simon handbook and chapter-4 covers this topic in great detail. You can access … Continue reading Creating new Scenarios with Simon (Part-I)
I saw Tony running this test and didn’t really understand what was going on. Well, this explains it,or at least tries to 😛
You need to replace the
$address =”the_test_address.com”;
$port = ‘port_number’;
/*Code starts*/
/*port test*/
<?php
$address=”smtp.gmail.com”;
$port = ‘456’;
if (isset($port) and
($socket=socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) and
(socket_connect($socket, $address, $port))) {
$text=”Connection successful on IP $address, port $port”;
socket_close($socket);
}
else {
$text=”Unable connect<pre>”.socket_strerror(socket_last_error()).”</pre>”;
}
echo “<html><head></head><body>”.
$text.
“</body></html>”;
?>
/*code ends*/
code courtesy: http://php.net/socket_connect
How to test :- Copy this code to a file say, porttest.php, change the $address , $port to the required and put it somewhere accessible by your server , like /var/www/ in linux. And run the same by opening localhost/porttest.php