Monday, September 21, 2009

How to recover a corrupted gzip file.

Sometimes we are faced with a corrupted ".gz" file, with important information and we must recover it at any cost. Fortunately there is a tool able to recover these files in an efficient manner, the gzip Recovery Toolkit.

The installation process is very easy:

$ wget http://www.urbanophile.com/arenn/coding/gzrt/gzrt-0.5.tar.gz
$ tar -xzvf gzrt-0.5.tar.gz
$ cd gzrt-0.5
$ make

And that's it.

To start using it just do:

$ ./gzrecover file_to_recover.gz

then it will create a new filename called "file_to_recover.recovered"

You must also read the "Disclaimer and Warnings"

«This program is provided AS IS with absolutely NO WARRANTY. It is not guaranteed to recover anything from your file, nor is what it does recover guaranteed to be good data. The bigger your file, the more likely that something will be extracted from it. Also keep in mind that this program gets faked out and is likely to "recover" some bad data. Everything should be manually verified. »

Thursday, June 11, 2009

Abimago - Image Bank


Abimago is a versatile Image Bank, although especially aimed at responding to detailed and specific demands from expert professionals in areas such as advertising, marketing or press.

Thursday, April 9, 2009

HOWTO : SVN over HTTPS

Create the repository

$ svnadmin create /home/svn/repo/svn

Install RPM mod_dav_svn

$ yum install mod_dav_svn

Config who can access the repository and their permissions (r or w) /home/svn/conf/users-access-file

[/]
gulden = rw
other = r
[/privaterepo]
*=

  • "gulden" user can access the the "/" repository with read and wright (rw) permissions
  • "other" can access the the "/" repository with read (r) permission
  • No one can access the "/privaterepo" repository

Create the Users password file

$ htpasswd /home/svn/conf/passwd gulden

Edit Apache configuration file: /etc/httpd/conf.d/subversion.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so


ServerName myhost.com
ServerAlias svn.myhost.com

Order allow,deny
Allow from all
DAV svn
SVNParentPath /home/svn/repo
# our access control policy
AuthzSVNAccessFile /home/svn/conf/users-access-file
# try anonymous access first, resort to real
# authentication if necessary.
Satisfy Any
Require valid-user
# how to authenticate a user
AuthType Basic
AuthName "My Subversion repository"
AuthUserFile /home/svn/conf/passwd




Checkout a project

$ svn co https://svn.myhost.com/svn/foo/trunk

Monday, March 9, 2009

HOW TO syntax highlight blogger : widget

For those who need syntax highlight in their blog, to several programming languages, can use the widget "Blogger Widget SyntaxHighlighter" and is powered by SyntaxHighlighter 1.5.1
Give it a try.

Saturday, March 7, 2009

Rails: Where to put our initialization stuff

In our applications we sometimes need to initialize global vars or rails predefined values. Whenever we want to do that, we just need to create files in the directory

config/initializers/

instead of messing with the environment.rb file.

Source: Ryan's Scraps: What's New in Edge Rails: Stop Littering In Your Environment File

Wednesday, February 18, 2009

Check out the new outstanding web site of MentesVirtuais




The new web site of mentesvirtuais it's really nice and causes a great impact.

Mentes Virtuais creates and develops solutions and products of excellence for an increasingly global and competitive market, on the areas of Telecommunications and Information Technology.