php difference in date - month
$d1=date('2011-1-1');
$d2=date('2011-5-2');
echo "the date d1 = ".$d1."<br>";
echo "the date d2 = ".$d2."<br>";
$date_diff=strtotime($d2)-strtotime($d1);
echo "date difference in months => ".floor(($date_diff)/2628000)." months <br>";
?>
blogger template editor
just to let everyone know to try out new free WYSIWYG editor for
Blogger template (YouCMSAndBlog) . It lets you edit your template on
one window, while interactive result view on another window (view) and
can easily switch full editing / viewing screen easily. Inserting
Blogger tag template easily by selecting from Left listbox and you
can extend it to support any other Blog tags list tempate you want to
do so.
With this small size software, you can even let your user download
your template and they can try out on their own local machine how the
final template result will looks like.
Features for this early release (Version 1.0):
* Interactive View through True View and Quick View mode while you
edit your template. For Blogger template, you can use Quick View to
design your own mock data (dummy data) in HTML code to be rendered
with your template in local machine. (Note: for this release, this
View only support Old Blogger).
* Easily switch to Full Editor mode (like UltraEdit IDE), Full
View mode or Hybrid mode (Default mode)
* Code Syntax Highlighting (Coloring), which you can configure
from your main configuration file using Regular Expression
* Find words with color highlighting
* With Quick View, users will not need to install CMS or Blog
Engine on their local machine, i.e: Blogger Template, user can
download the template and open it using this IDE to get a dummy view
easily.
* With True View, user will get instant true view from your
running CMS or Blog engine hosted locally.
* Automatic back-up for all files you are editing but can be
turned off.
For video demo, you can click on this link : http://youtube.com/watch?v=wBWTg9rc3oc
How To Add Music or MP3 Songs in Your website
If you want to embed any music file or mp3 in to your website, so that your listeners can enjoy it, then here's a simple way to do it !
First of all you need a DIRECT link of the song/ mp3 file.
So upload it to:
OpenDrive (Recommended), or
Now you will be having a link to your music file like this:
http://www.opendrive.com/files/7285877_812bb/airtel_1.mp3
Now use the code, displayed below:
<embed type="application/x-shockwave-flash" wmode="transparent" src="http://www.google.com/reader/ui/3523697345-audio-player.swf?audioUrl=YOUR_MP3_FILE_ADDRESS" height="27" width="320"></embed>Replace the text in RED, with the DIRECT LINK of the MP3 file (from your OpenDrive account).
This plays the song like this:
Reverse Engineering Tools in Linux – strings, nm, ltrace, strace, LD_PRELOAD
|
Reverse Engineering Tools in Linux – strings, nm, ltrace, strace, LD_PRELOAD Posted: 06 Mar 2012 10:02 PM PST This article explains about the tools and commands that can be used to reverse engineer an executable in a Linux environment. Reverse engineering is the act of figuring out what a software does, to which there is no source code available. Reverse engineering may not give you the exact details of the software. But you [...] Read More: Reverse Engineering Tools in Linux – strings, nm, ltrace, strace, LD_PRELOAD |
Perl training
2. regular expressions
3. references and complex data structures
4. modules and packages
5. file handling, OS interface and ftp
6. perl debuggining
7. OO Perl, Moose
8. SQL::Abstract
9. Catalyst Web framework
10 DBIx::Class
11.Closures/Type globs
some of my best articles
http://www.victoriousliving.in/2008/02/goal-setting-for-every-christian.html
http://www.victoriousliving.in/2007/12/if-youre-not-choosing-to-spend-regular.html
http://www.victoriousliving.in/2007/12/joy-comes-by-putting-jesus-first-others.html
http://www.victoriousliving.in/2012/01/tips-to-stay-focused.html
http://www.victoriousliving.in/2012/01/productive-christian-life.html
http://www.victoriousliving.in/2011/08/disciplined-life-richard-s-taylor.html
http://www.victoriousliving.in/2011/08/your-thoughts-root-of-your-goal.html
http://www.victoriousliving.in/2011/07/grow-as-faithful-disciples-of-christ.html
http://www.victoriousliving.in/2011/07/grow-as-faithful-disciples-of-christ.html
http://www.victoriousliving.in/2011/06/points-on-how-to-improve-your-life.html
http://www.victoriousliving.in/2011/06/points-on-how-to-improve-your-life.html
http://www.victoriousliving.in/2010/08/30-days-to-success-by-steve-pavlina.html
http://www.victoriousliving.in/2010/08/power-of-clarity-by-steve-pavlina.html
http://www.victoriousliving.in/2010/06/how-to-be-fruitful.html
http://www.victoriousliving.in/2010/05/ways-to-stay-focused-at-work.html
http://www.victoriousliving.in/2010/05/rediscovering-your-passion.html
http://www.victoriousliving.in/2010/04/be-excellent-your-christian-witness.html
http://www.victoriousliving.in/2010/04/be-excellent-your-christian-witness.html
http://www.victoriousliving.in/2010/03/are-you-putting-things-off.html
http://www.victoriousliving.in/2009/06/succeeding-at-home.html
http://www.victoriousliving.in/2009/04/fruit-of-spirit-ought-to-be-trademark.html
http://www.victoriousliving.in/2009/04/staying-focused.html
http://www.victoriousliving.in/2008/12/eliminate-everything-unnecessary-in.html
http://www.victoriousliving.in/2008/09/i-die-every-day-by-bro-milton.html
show open database connections
mysql> show status like '%onn%';
+--------------------------+-------+
| Variable_name | Value |
+--------------------------+-------+
| Aborted_connects | 0 |
| Connections | 8 |
| Max_used_connections | 4 |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_finished_connects | 0 |
| Threads_connected | 4 |
+--------------------------+-------+
mysql> show processlist;
+----+------+-----------------+--------+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+----+------+-----------------+--------+---------+------+-------+------------------+
| 3 | root | localhost | webapp | Query | 0 | NULL | show processlist |
| 5 | root | localhost:61704 | webapp | Sleep | 208 | | NULL |
| 6 | root | localhost:61705 | webapp | Sleep | 208 | | NULL |
| 7 | root | localhost:61706 | webapp | Sleep | 208 | | NULL |
+----+------+-----------------+--------+---------+------+-------+------------------+
$ mysqladmin status
Uptime: 4661 Threads: 1 Questions: 200 Slow queries: 0 Opens: 16 Flush
tables: 1 Open tables: 6 Queries per second avg: 0.043