This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.
14 05, 2009

md5_file

By | 2009-05-15T23:21:33+00:00 May 14th, 2009|Categories: PHP, Ruby|Tags: , , , , , , |Comments Off on md5_file

The md5_file() function calculates the md5 hash of a file.

PHP

$my_file = '/home/ali/article.txt';

echo md5_file($my_file);

// => 745d3dfb68af1b1384aea0125aae5c3f

MD5 encryption can be done using the Digest::MD5 class in Ruby, but to generate a hash for a file, we need to read it’s contents into a variable (string) first.

Ruby

require 'digest/md5';

my_string = File.read('/home/ali/article.txt');

print Digest::MD5.hexdigest(my_string);

# => 745d3dfb68af1b1384aea0125aae5c3f
5 05, 2009

md5

By | 2009-05-15T23:22:33+00:00 May 5th, 2009|Categories: PHP, Ruby|Tags: , , , , , |Comments Off on md5

The md5() function calculates the md5 hash of a string.

PHP

echo md5('apple');
// => 1f3870be274f6c49b3e31a0c6728957f

MD5 encryption can be done using the Digest library in Ruby. To use the Digest library, just require it…

Ruby

require 'digest/md5';

print Digest::MD5.hexdigest('apple');

# => 1f3870be274f6c49b3e31a0c6728957f