Cracking the Primes – a primality-proving algorithm

Know Your Indian Prime Man !!!!!  Man behind AKS Primality Test algorithm

Dr. Manindra Agarwal’s Journey to the Primality Testing Algorithm

 

References:

http://gpwrite.wordpress.com/2012/06/01/cracking-the-primes/

http://shashank7s.blogspot.in/2012/06/know-your-indian-prime-man-dr-manindra.html

Out of memory Cent OS Linux: unicode_start hang issue: Solved

My Cent OS 5.6 RHEL based virtual machine has suddenly became very slow ..almost died :-( after few min I saw a message on console related to “Out of memory“, after doing a bit analysis and search I found that this is a known issue and also reported in redhat bug tracker (obviously got resolved in upstream versions).
Reason: Problem is that setting BASH_ENV=~/.bashrc runs /etc/profile, which sources /etc/profile.d/lang.sh. If TERM=linux, lang.sh runs /bin/unicode_start sending the whole process into an infinite loop.

I found two solutions (as of now)

1. Open vi /etc/sysconfig/i18n this file contains a reference to unicode (UTF-8). We have take out all the references to UTF-8)

Code before:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

Code after:

LANG="en_US"
SUPPORTED="en_US:en"
SYSFONT="latarcyrheb-sun16"

2. Another solution is to change the shell from “bash” to “sh” in unicode_start script
We need to open the vi /bin/unicode_start and from first line change “#!/bin/bash” to “#!/bin/sh“.

References: https://bugzilla.redhat.com/show_bug.cgi?id=622981

YAPC::EU 2013 Slides

See this link for the slides of talks given by Perl guru Jonathan Worthington in recently held YAPC Europe. Here is the brief list of talks:

All the talks are good but I personally liked the talk on Concurrency, Parallelism and Asynchrony  in which he explains about Perl 6 thread system. 

In future, I wish to attend some of these talks.

Enjoy the slides.

 

Source:

http://6guts.wordpress.com/2013/08/17/yapceu-2013-slides/

 

 

CSS based page numbering in PDF creation

I frequently use PDF engine for generating PDF of multiple web pages a kind of book. Though you can use engine specific switch to insert page number(s) but if you want beautiful CSS based numbering then below code can be used. Just paste the code in a .CSS file and link to your html pages.

/* Page number at the bottom of page */

@page {

  @bottom-center {

    content: "Page " counter(page) " of " counter(pages);

    font-style: italic;

    color: green

    }

  }

WEBDAV authentication for Office docunments on SSL enabled sites

As explained in my post related to the Webdav authentication issue using IE for Office documents on Windows 7, I found that the fix will not work for SSL enabled sites. To support HTTPS you will have to add the following lines in /etc/httpd/conf.d/ssl.conf file.

<VirtualHost>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^(OPTIONS|PROPFIND)$ [NC]
RewriteRule ^.*$ – [F,L]
</VirtualHost>
Restart httpd

To generate an SSL certificate you can use OpenSSL library