Support

Forums

Contact Me

Posts Tagged 'doityourself'

DoItYourself.com

DoItYourself.com is a leading website for do it yourself information and an active online community for do it yourself enthusiasts, or "DIYers," to exchange information, tips and advice. [http://en.wikipedia.org/wiki/DoItYourself.com]

Asus SABERTOOTH X79 USB BIOS Flashback Filename

asus_sabertooth_x79_mainboard

Latest BIOS can be downloaded from ASUS Service Site (ASUSTeK Computer Inc.)

The trick for the Asus SABERTOOTH X79 is to name the file correctly! the support of Asus did not understand my question and was not able to answer under which filename you have to save the bios, hence this small post.

When you’ll download the latest bios version from ASUS Service Site (ASUSTeK Computer Inc.), you’ll end up with a file name like this one: SABERTOOTH-X79-ASUS-0906.ROM for example

Rename the file to SABERX79.ROM before copying it on the USB disk or it wont be recognized by the bios flashback function.

How did I find this? brute forcing the file name by trying something like 25 filename and having luck : ridiculous.

Other than definitely a great mainboard and quite cheap if you consider the number of features: USB3, SATA-6, UEFI Bios, PCI 3.0

Read more: Asus SABERTOOTH X79 USB BIOS Flashback Filename

Converting a Spektrum DX5e from Mode 2 to Mode 1

spektrumDX5e

Spektrum introduces another enormous change for the RC industry—The most affordable full-range 2.4GHz radio ever available. The DX5e brings together the unbeatable control of genuine DSM2 technology with the simplest, easiest-to-use design available, letting anyone, from park fliers to students to instructors and more, take advantage of Spektrum technology for less

Mode 2 is most often used in the United States, while Mode 1 is most often used in Europe, there are two other modes that are used overseas and here is a listing of the 4 modes and their actions.

  Left stick Right stick
up/down left/right up/down left/right
Mode 1 elevator rudder throttle aileron
Mode 2 throttle rudder elevator aileron
Mode 3 elevator aileron throttle rudder
Mode 4 throttle aileron elevator rudder

Read more: Converting a Spektrum DX5e from Mode 2 to Mode 1

Belt is going up and hit the fan


You can insert some thin shims between the engine and the engine mounts upper holes.(red points) This make the engine lean slightly forward and make the belt go lower down on the clutch bell.

Adding oil to you fuel

nullIf you have 15/16 percent (nitro/oil) mix fuel and want to go for 20% oil - it can made help the OS .32 to run cooler and have a little more top-end power.

a = 1.28(d - c)/(1 - d/100)

where:
a = amount of oil you need to add (in oz)
d = desired oil percentage (use 20 for 20%, for example)
c = current oil percentage (use 16 for 16%, for example)

So you if you want d = 20 (20% oil), c = 16 (actually you have 16% oil) result a = 6.4 (ie, add 6.4 oz of oil to each gallon of fuel).

Note that by adding oil, you're reducing your nitro % a little. My figures show that my nitro is now down to about 14.3%... Seems to be a good trade.

AutoMySQLBackup, do not save backup on your server...

One of the most important rule is to always backup your data with multiple tools on different medium, just in case of.

Just imagine 5 minutes that you lose everything, what you have done in the last 3 months on your homepage..ok still not crying? you loose hundred of hours of work, nightly debugging, customizations, hours of Gimp/Photoshop, lengthy and good written articles...  

With Joomla! and now with nearly all CMS, the most important thing to backup is the database. I recommend a daily backup at least!

And now my solution:  AutoMySQLBackup

A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump.

Features

  • Backup mutiple databases 
  • Single backup file or to a seperate file for each DB
  • Compress backup files
  • Backup remote servers
  • E-mail logs
  • Backup mutiple MySQL databases with one script. (Now able to backup ALL databases on a server easily. no longer need to specify each database seperately)
  • Backup all databases to a single backup file or to a seperate directory and file for each database.
  • Automatically compress the backup files to save disk space using either gzip or bzip2 compression.
  • Can backup remote MySQL servers to a central server.
  • Runs automatically using cron or can be run manually.
  • Can e-mail the backup log to any specified e-mail address instead of "root". (Great for hosted websites and databases).
  • Can email the compressed database backup files to the specified email address.
  • Can specify maximun size backup to email.
  • Can be set to run PRE and POST backup commands.
  • Choose which day of the week to run weekly backups.

Just download the file, save it somewhere, and configure automysqlbackup with your editor of choice (25 first line of file). To test if everything work,  just run the file.

Note:

automysqlbackup  require Mutt 

# yast2 -i mutt
Mutt (http://www.mutt.org) is a small but very powerful text-based mail client for Unix operating systems. It is used by the script automysqlbackup (sourceforge.net/projects/automysqlbackup/) to cut mail in part (automysqlbackup do ot use mail in that case)

automysqlbackup  send daily email with database content, so data are not on host in case of crash or on ftp. You may create 2 emails account and forward the result of the backup to 2 different free email hoster (Gmail and Hotmail for example)

Basic operations with XEN server: export, import of VM templates and guests

xenserver_logo_lg

More and more I am using XEN at work, and here is a small how to of some very common operations.

Citrix® XenServer® is a complete, managed server virtualization platform built on the powerful Xen® hypervisor. Xen technology is widely acknowledged as the fastest and most secure virtualization software in the industry. XenServer is designed for efficient management of Windows® and Linux® virtual servers and delivers cost-effective server consolidation and business continuity.

By the way if you succeed installing XEN server on a Strato.com dedicated Linux server with a minimal downtime, contact me I am interested!

Basic operations

Determine the XEN guest uuid

This uuid is required to identify XEN guest.

# xe vm-list
uuid ( RO)           : 99bb0e42-0616-6f02-ed41-be48bb338280 
     name-label ( RW): server01
    power-state ( RO): running

Determine the XEN sr-uuid of a disk storage

A sr-uuid identify a storage resources attached to a XEN server, this unique id is required for some operations as it allow you for eample to import XEN guest into it.

Run as root, in the XEN server console


# xe sr-list
uuid ( RO)                : 99f191c4-4563-8672-7d8e-4602850fbeb0
        name-label ( RW): Local storage
        name-description ( RW): 
        host ( RO): xen01
        type ( RO): lvm
        content-type ( RO): user

Identify the locale storage by looking at the name-label and copy the uuid

Export XEN Guest

  1. You need to stop the XEN guest prior to any operations
  2. You need to determine the XEN guest uuid (see basic operations)
  3. Mount a NFS / CIFS / Samba share if you want to move from one XEN server to another as the filename can be located anywhere.

Run as root, in the XEN server console

# xe vm-export vm=99bb0e42-0616-6f02-ed41-be48bb338280  filename=server01.xva

Import XEN Guest

  1. You need to determine the XEN guest sr-uuid (see basic operations) : the storage unique id
  2. Mount a NFS / CIFS / Samba share if you want to move from one XEN server to another as the filename can be located anywhere.

Run as root, in the XEN server console

# xe vm-import filename=server01.xva  sr-uuid=99bb0e42-0616-6f02-ed41-be48bb338280 

Export a XEN template to disk

  1. Log to the XEN server where this template is located, and list all templates
  2. Mount a NFS / CIFS / Samba share if you want to move from one XEN server to another as the filename can be located anywhere.

# xe template-list

If there is too much templates, you can filter with grep or by using name-label

# xe template-list  name-label="myTemplate label”
uuid ( RO) : c4962b6b-5678-a72b-85cd-e33f01b1320a
name-label ( RW): mytemplate label
name-description ( RW):

To export, run

# xe template-export uuid=c4962b6b-5678-a72b-85cd-e33f01b1320a filename=myTemplate.xva

You can see the export progression in tab “logs“ of that template in XEN-Center

Import a XEN template to a new XEN Server

  1. Log to the XEN server where you want to import the new template
  2. You need to determine the XEN guest sr-uuid (see basic operations) : the storage unique id

To import, run

# xe vm-import filename=myTemplate.xva  sr-uuid=99bb0e42-0616-6f02-ed41-be48bb338280 

TO be continued…

Automatic refresh of Joomla! demo site the easy way

joomla_logo

These are the script I use to maintains all my 3 demo Joomla! sites:

These scripts increased security and are trying to standardized how to create, update and maintain Joomla! demo site. Feel free to submit, send me ideas how to improve them or ask for help.

 

This project is hosted at http://forge.joomla.org/gf/project/demosite/ under a GPL v3.0 license and the latest documentation can be found in my WIKI

Read more: Automatic refresh of Joomla! demo site the easy way

Apple iPhone Screen Repair: iPhone 3GS

apple-iphone.3gs.repair.diy

I will show you how to repair a cracked or broken iPhone 3G, iPhone 3GS, iPhone 4, or iPod Touch screen yourself.

In brief, what you need to know

  • The 3G and 3Gs screens are different! you can not mount an iPhone 4 screen on a 3G(s)
  • There is NO 3rd party or lower quality screens, all 3rd party repair company just LIE.
  • Different kit are available:
    • LCD only for 12€ to repair a broken LCD screen only: the iPhone has an intact glass screen, however the image behind the glass screen is absent, broken or distorted.
    • Glass + digitizer for 22€ This is for an iPhone 3G device with a broken glass screen or malfunctioning touch screen with the image (LCD Screen) behind the screen still intact.
    • Glass + digitizer + LCD + button + speaker mounted for 42€ the most expensive but the easiest to replace
  • Duration: 30, 15 or 2 minutes depending on the kit

I went for the most expensive Kit on ebay.fr, which allow you to replace the broken screen by removing 2 screws, an connecting 3 cables!

By the way I would NEVER send any phone to anyone, how do you think all these private pictures land on forums? removing the sim card is not enough, there are tools to fetch data even after the have been removed!

Read more: Apple iPhone Screen Repair: iPhone 3GS

Backup Your Ubuntu/Debian Server Automatically

backup_debian_ubuntu_server

I am using ReoBack for this duty

REOBack (pronounced "ray-o-back") is a backup solution designed for Linux users and system administrators. It is designed to be simple to set up, and easy to use. It is great as a quick solution for those who procrastinate about backups. It supports automatic full/incremental backups of files you define, remote backups via NFS or FTP, as well as auto deletion of old backups.

And here is my how to install for Debian /Ubuntu distribution taken from my notes

Read more: Backup Your Ubuntu/Debian Server Automatically

Adding mod_security to better protect your webserver

ModSecurityTM is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks. from http://www.modsecurity.org/
 
Installing mod_security as DSO is easier, and the procedure is the same for both Apache branches. First unpack the distribution somewhere (anywhere will do, I copy the .c files in my home),

# cd
# wget http://www.modsecurity.org/download/mod_security-1.9.4.tar.gz
# tar -zxfv mod_security-1.9.4.tar.gz
# cd mod_security-1.9.4/apache2

and compile the module with:

apache1apache2
/usr/local/psa/admin/bin/apxs  -cia ~/mod_security.c/usr/sbin/apxs2  -cia ~/mod_security.c

Read more: Adding mod_security to better protect your webserver

Donations

Thank You for supporting my work