Category Archives: Vimmaniac

PIL “decoder jpeg not available” Ubuntu 12.10

This post has been moved to the following URL:


http://ahsan.vimmaniac.com/blog/pil-decoder-jpeg-not-available-ubuntu-1210/

Sorry for your inconvenience.

Leave a comment

Filed under Vimmaniac

Django + Gunicorn + Nginx configuration on Ubuntu 12.10

This post has been moved to the following URL:


http://ahsan.vimmaniac.com/blog/django-gunicorn-nginx-configuration-on-ubuntu-1210/

Sorry for your inconvenience.

Leave a comment

Filed under Vimmaniac

Django + Apache Configuration on Ubuntu 12.04

This post has been moved to the following URL:


http://ahsan.vimmaniac.com/blog/django-apache-configuration-on-ubuntu-1204/

Sorry for your inconvenience.

1 Comment

Filed under Vimmaniac

Server Type of Domain

Know the actual server running your website:
There are various http server like Apache, Nginx, Microsoft-IIS/7.5 etc. Know which server is running your website.Go to the link below-

Server Type

Server Type Tool provides various information about the server running your website.These information mainly consist –

Server Software – The actual server software running your website.
IP Address – IP Address of the server.
Location – Physical location of the server.

Also a details information about the server.

Leave a comment

Filed under Vimmaniac

Adding Subdomain to localhost in Ubuntu-12.04 : Apache

This post has been moved to the following URL:


http://ahsan.vimmaniac.com/blog/django-apache-configuration-on-ubuntu-1204/

Sorry for your inconvenience.

2 Comments

Filed under Vimmaniac

Bubble sort to PHP associative array

For ascending order :
bubblesortarray( $array_name );

For descending order :
bubblesortarray( $array_name, false );

Download Here:
Download

Leave a comment

Filed under Vimmaniac

IPv6 Internet Protocol v6

IPv6 or IP version 6 is the next generation Internet protocol which will eventually replace the current protocol IPv4. IPv6 has a number of improvements and simplifications when compared to IPv4. The primary difference is that IPv6 uses 128 bit addresses as compared to the 32 bit addresses used with IPv4. This means that there are more available IP addresses using IPv6 than are available with IPv4 alone. For a very clear comparison, in IPv4 there is a total of 4,294,967,296 IP addresses. With IPv6, there is a total of 18,446,744,073,709,551,616 IP addresses in a single /64 allocation.

 
IPv6 Certification Badge for styloact

Leave a comment

Filed under Vimmaniac

Accessing Local Mailbox using PHP

Install Pear Package Mail_Mbox

Type in the terminal-

pear install Mail_Mbox

Mailbox Accessing Code:

<?php

require_once( 'Mail/Mbox.php' );

$file = "file_path_to/filename";

$mailbox = new Mail_Mbox( $file );
$mailbox->open();

for( $mail = 0;$mail < $mailbox->size();$mail++ )
{
echo $mailbox->get($mail);}
?>

Leave a comment

Filed under Vimmaniac

Local Backup of Gmail using Getmail

Install Getmail :
Download Getmail, open terminal and type

tar xzvf getmail*.tar.gz
cd [unpacked directory]
sudo python setup.py install

Configure Getmail :
Create a file at ~/.getmail/getmailrc and put the following text in it

[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
username = example@gmail.com
password = password

[destination]
type = Mboxrd
path = ~/gmail-backup/gmail.mbox

[options]
verbose = 2
message_log = ~/.getmail/gmail.log

Create the mbox file ~/gmail-backup/gmail.mbox

Run getmail :
getmail

Ahsan Habib

Leave a comment

Filed under Vimmaniac