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.
11 05, 2009

sha1_file

By | 2009-05-15T23:12:59+00:00 May 11th, 2009|Categories: PHP, Ruby|Tags: , , , , , , |Comments Off on sha1_file

The sha1_file() function calculates the sha1 hash of a file.

PHP

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

echo sha1_file($my_file);

// => bef6b2b56f70eb6f2c250e00c855f4c0120832aa

Sha1 encryption can be done using the Digest::SHA1 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/sha1';

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

print Digest::SHA1.hexdigest(my_string);

# => bef6b2b56f70eb6f2c250e00c855f4c0120832aa
8 05, 2009

sha1

By | 2009-05-15T23:22:14+00:00 May 8th, 2009|Categories: PHP, Ruby|Tags: , , , , , |Comments Off on sha1

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

PHP

echo sha1('apple');
// => d0be2dc421be4fcd0172e5afceea3970e2f3d940

Sha1 encryption can be done using the Digest::SHA1 class in Ruby. To use this class, we need to require the Digest library first…

Ruby

require 'digest/sha1';

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

# => d0be2dc421be4fcd0172e5afceea3970e2f3d940