Monday, 14 November 2011
Installing SWI-Prolog In Ubuntu
SWI-Prolog is a free interpreter available for logical language Prolog. In order to practice Prolog in ubuntu(or linux), you need to install SWI Prolog in your system. SWI-Prolog is available for all major linux flavours for installation from the repository.
To install SWI-Prolog in ubuntu or debian based systems, type the following command in the terminal:
To run swi-prolog, open the terminal and type swipl to get to interactive prolog interpreter. Your prolog code must be saved with the extension .pl and to run the prolog file(which is known as consulting in case of prolog), cd to the respective directory, run the swipl and run the file by typing [filename]. and be sure to include the dot(.) and make sure you don't miss those big square braces.
To exit swi-prolog, type halt and press ENTER.
If you want to read the manual of SWI Prolog, open the browser and type in the address bar the address as file:///usr/lib/swi-prolog/doc/Manual/index.html and you can read reference manual.
I hope this makes a quick guide for installing and running swi-prolog in linux or more specifically ubuntu.
Read more...
To install SWI-Prolog in ubuntu or debian based systems, type the following command in the terminal:
sudo apt-get install swi-prolog
To run swi-prolog, open the terminal and type swipl to get to interactive prolog interpreter. Your prolog code must be saved with the extension .pl and to run the prolog file(which is known as consulting in case of prolog), cd to the respective directory, run the swipl and run the file by typing [filename]. and be sure to include the dot(.) and make sure you don't miss those big square braces.
To exit swi-prolog, type halt and press ENTER.
If you want to read the manual of SWI Prolog, open the browser and type in the address bar the address as file:///usr/lib/swi-prolog/doc/Manual/index.html and you can read reference manual.
I hope this makes a quick guide for installing and running swi-prolog in linux or more specifically ubuntu.
Read more...
Installing SWI-Prolog In Ubuntu
2011-11-14T21:25:00+05:45
Cool Samar
linux|programming logic|prolog|ubuntu|
Comments
Labels:
linux,
programming logic,
prolog,
ubuntu
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Sunday, 13 November 2011
Programmersheaven.com Persistent XSS Vulnerability
A very very popular website that provides resources to the beginner, intermediate and advanced programmers, www.programmersheaven.com suffers from persistent XSS vulnerability which is very critical.
Original credits for finding the flaw goes to Learn3r aka DaNePaLI who suggested me the vulnerability and gave permission to mail it to the programmersheaven.com team.
Check the URL http://www.programmersheaven.com/download/40665/download.aspx to see the vulnerability in action.
Screenshot:
Read more...
Original credits for finding the flaw goes to Learn3r aka DaNePaLI who suggested me the vulnerability and gave permission to mail it to the programmersheaven.com team.
Check the URL http://www.programmersheaven.com/download/40665/download.aspx to see the vulnerability in action.
Screenshot:
Read more...
Programmersheaven.com Persistent XSS Vulnerability
2011-11-13T21:11:00+05:45
Cool Samar
cross site scripting|
Comments
Labels:
cross site scripting
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Amazing Reason For Using Open Source Software
Amazing Reason For Using Open Source Software
2011-11-13T20:53:00+05:45
capricious solace
Comments
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Saturday, 12 November 2011
My Blog's Header Menu HTML and CSS Source
Here I am sharing my shitty simple design of my top menu in the header I've updated recently. If you like, you can use it for your blog as well. If you want to customize some part of it, you can do easily. I recommend playing around with color combinations.
CSS Of Header Menu:
The CSS entities are kept inside the <b:skin> and ]]></b:skin> so you have to paste all these CSS inside them. If you are confused, search for ]]></b:skin> and then paste all the above CSS codes before it.
HTML Part for menu:
First edit the HTML code as per your need and then search for <b:section class='header' id='header' and you need to figure out where to post the HTML. I had a separate div where I could insert these HTML codes but your blogger template might be different so I leave this for you to figure out. Just paste in the header area and then preview to see how it looks. I can't exactly pinpoint you on what to do exactly, just keep on previewing till you get what you need. I've pasted mine one just below the </b:section>.
This way, you can simply insert the HTML and CSS based navigation menu for your blogger blog. I hope the information proves helpful.
Read more...
CSS Of Header Menu:
#menubox { width: 100%; background: #2e2e2e; height: 36px; font-weight: 14px; } ul#mynav { list-style: none; padding: 7px 5px 0px 5px; } ul#mynav li { display: inline; border: 0px; background: #333; margin-left: 0.5px; margin-right: 0.5px; padding: 8px 10px; } ul#mynav li a { text-decoration: none; color: #ccc; font-weight: bold; } ul#mynav li a:hover { text-decoration: underline; color: #eee; }
The CSS entities are kept inside the <b:skin> and ]]></b:skin> so you have to paste all these CSS inside them. If you are confused, search for ]]></b:skin> and then paste all the above CSS codes before it.
HTML Part for menu:
<div id="menubox"> <ul id="mynav"> <li><a href="#" title="">Link 1</a></li> <li><a href="#" title="">Link 2</a></li> <li><a href="#" title="">Link 3</a></li> <li><a href="#" title="">Link 4</a></li> <li><a href="#" title="">Link 5</a></li> </ul> </div>
First edit the HTML code as per your need and then search for <b:section class='header' id='header' and you need to figure out where to post the HTML. I had a separate div where I could insert these HTML codes but your blogger template might be different so I leave this for you to figure out. Just paste in the header area and then preview to see how it looks. I can't exactly pinpoint you on what to do exactly, just keep on previewing till you get what you need. I've pasted mine one just below the </b:section>.
This way, you can simply insert the HTML and CSS based navigation menu for your blogger blog. I hope the information proves helpful.
Read more...
My Blog's Header Menu HTML and CSS Source
2011-11-12T21:37:00+05:45
Cool Samar
blog|blogspot|
Comments
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Install LibreOffice In Ubuntu 10.04 or 10.10
The older 10.x versions of ubuntu, 10.04 Lucid Lynx and 10.10 Maverick Meerkat have openoffice.org and I wanted to install libreoffice for my friends in Lucid Lynx. This How To explains how to install libreoffice in ubuntu 10.04 and ubuntu 10.10 using PPA.
First, we have to remove openoffice in case it is installed. Its better to purge the openoffice.org installation with the following command.
Now lets add the Libreoffice PPA repository with the following command.
Now we need to update our package information for which you have to issue the following update command.
Now we are ready to go for installation of libreoffice. Type one of the following commands according to your desktop environment.
For Gnome Users:
This completes your job for installation of the libreoffice. Now leave for package download and you can access the tools from Applications -> Office.
About PPA(Taken from Launchpad
Using a Personal Package Archive (PPA), you can distribute software and updates directly to Ubuntu users. Create your source package, upload it and Launchpad will build binaries and then host them in your own apt repository.
That means Ubuntu users can install your packages in just the same way they install standard Ubuntu packages and they'll automatically receive updates as and when you make them.
Read more...
First, we have to remove openoffice in case it is installed. Its better to purge the openoffice.org installation with the following command.
sudo apt-get purge openoffice*.*
Now lets add the Libreoffice PPA repository with the following command.
sudo add-apt-repository ppa:libreoffice/ppa
Now we need to update our package information for which you have to issue the following update command.
sudo apt-get update
Now we are ready to go for installation of libreoffice. Type one of the following commands according to your desktop environment.
For Gnome Users:
sudo apt-get install libreoffice libreoffice-gnome
sudo apt-get install libreoffice libreoffice-kde
This completes your job for installation of the libreoffice. Now leave for package download and you can access the tools from Applications -> Office.
About PPA(Taken from Launchpad
Using a Personal Package Archive (PPA), you can distribute software and updates directly to Ubuntu users. Create your source package, upload it and Launchpad will build binaries and then host them in your own apt repository.
That means Ubuntu users can install your packages in just the same way they install standard Ubuntu packages and they'll automatically receive updates as and when you make them.
Read more...
Install LibreOffice In Ubuntu 10.04 or 10.10
2011-11-12T21:03:00+05:45
Cool Samar
libreoffice|linux|openoffice.org|ubuntu|
Comments
Labels:
libreoffice,
linux,
openoffice.org,
ubuntu
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Epub Reader Within Firefox Without Any Other Software
There is a very very useful firefox addon EPUBReader which allows you to read the .epub files from within the firefox without any need of installing other softwares. Personally I've loved this add-on very much since its simple and works really great.
About the add-on
If you click on a link to an ePub file, you are normally prompted with the Firefox save dialog.
With EPUBReader installed, you don't see the dialog. EPUBReader downloads the file, makes some processing and displays the ePub file ready to read! If you have got already downloaded ePub-files, you can read them by using the Firefox "File/File open" dialog.
Install EPUBReader For Firefox.
Read more...
About the add-on
If you click on a link to an ePub file, you are normally prompted with the Firefox save dialog.
With EPUBReader installed, you don't see the dialog. EPUBReader downloads the file, makes some processing and displays the ePub file ready to read! If you have got already downloaded ePub-files, you can read them by using the Firefox "File/File open" dialog.
Install EPUBReader For Firefox.
Read more...
Epub Reader Within Firefox Without Any Other Software
2011-11-12T00:48:00+05:45
Cool Samar
browser addons|epub reader software|mozilla firefox|
Comments
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Thursday, 10 November 2011
Emesene Password Cracker in Python
I had recently posted a small tutorial on Emesene messenger password cracking. I have coded a small python script today that automates the process of cracking the saved passwords of emesene messenger.
To run this tool, type as following in the terminal:
Download Emesene Password Revealer
Read more...
#!/usr/bin/python import os, sys, pwd, binascii def coder(): print """ Coded By Samar Dhwoj Acharya http://www.techgaun.com Checked in emesene1.0 """ def getpass(): user = pwd.getpwuid(os.getuid()).pw_name emesene_file = "/home/%s/.config/emesene1.0/users.dat" % (user) if os.path.exists(emesene_file) == True: fp = open(emesene_file, "r") for line in fp.readlines(): line_list = line.split(":") line_list[1] = binascii.unhexlify(line_list[1]) print "%s : %s" % (line_list[0], line_list[1]) fp.close() else: print "Could not locate the users.dat file." coder() getpass()
To run this tool, type as following in the terminal:
./emesene_cracker.py
Download Emesene Password Revealer
Read more...
Emesene Password Cracker in Python
2011-11-10T19:20:00+05:45
Cool Samar
emesene messenger|hack tool|python|
Comments
Labels:
emesene messenger,
hack tool,
python
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
How To Reach To The End Of File In Nano Editor
Sometimes the file you are working on is so long that you might want to know some shortcut rather than going through each and every entry to reach the end of file. Here I am sharing the shortcut to reach at the end of line which will prove useful several times while working with nano editor.
To reach the end of the file, you can use one of the two shortcuts available in nano.
The first one is Alt + / and the second one is Ctrl + w + v. You can use either of these. Personally I am used to use the first one. By the way, if you want to reach to the top of the file, you can use the shortcut Alt + \.
I hope it proves useful for you.
Read more...
To reach the end of the file, you can use one of the two shortcuts available in nano.
The first one is Alt + / and the second one is Ctrl + w + v. You can use either of these. Personally I am used to use the first one. By the way, if you want to reach to the top of the file, you can use the shortcut Alt + \.
I hope it proves useful for you.
Read more...
How To Reach To The End Of File In Nano Editor
2011-11-10T17:59:00+05:45
Cool Samar
keyboard shortcuts|nano text editor|
Comments
Labels:
keyboard shortcuts,
nano text editor
Bookmark this post:blogger tutorials
Social Bookmarking Blogger Widget |
Subscribe to:
Posts (Atom)