<?xml version="1.0" encoding="UTF-8"?>
<rss version="0.92">
<channel>
	<title>Technical Diary</title>
	<link>http://andriigrytsenko.net</link>
	<description>With Andrii Grytsenko</description>
	<lastBuildDate>Wed, 28 Jul 2010 09:02:46 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Software RAID level 1 behavior</title>
		<description>Here I will try to describe behavior of SW RAID level 1 in case of crash.


There will be two scenario:

	 Delete partition by fdisk and restart the computer.
	 Delete and create empty partition by fdisk and restart the computer.
	 Delete whole storage device from the system and restart computer.
  ...</description>
		<link>http://andriigrytsenko.net/2010/07/software-raid-level-1-behavior/</link>
			</item>
	<item>
		<title>Trick: DOC to PDF on Linux</title>
		<description>Here is little trick how to convert *.doc files into the *.pdf on Linux.



PRE-REQUIREMENTS: 

oowriter has to be already installed. It is provided by Open Office system(for Debian its openoffice.org-writer package).

Unfortunately, I can't remember the source where this macros is came from. Anyway here my script:
#!/bin/bash
# Written by Andrii Grytsenko
# ...</description>
		<link>http://andriigrytsenko.net/2010/07/trick-doc-to-pdf-on-linux/</link>
			</item>
	<item>
		<title>Perl and cookies auth</title>
		<description>I made little overview how to make http authorization through the PERL.



I'm not gonna describe how to make HTML form and  how to parse input data from html. I leave these as you your homework ;). As storage for HTTP sessions I chose database(specifically MYSQL).

Here is my table with ...</description>
		<link>http://andriigrytsenko.net/2010/06/perl-and-cookies-auth/</link>
			</item>
	<item>
		<title>MYSQL quick overview</title>
		<description>Here I systematized some of my MYSQL knowledges.


First I decide to make some test database to do everything step-by-step. This will be companies database contains information about all employers, projects and departments.
CREATE DATABASE company
Go in:
USE company
And make 4 tables.


Employers


employer_id
int primary key


name
varchar(15)


surname
varchar(25)


hire_date
date


department_id
int


fired
int




projects


project_id
int primary key


name
varchar(255)




departments


department_id
int primary key


name
varchar(255)


This table consists relation between employer ...</description>
		<link>http://andriigrytsenko.net/2010/05/mysql-quick-overview/</link>
			</item>
	<item>
		<title>UA-IX checker</title>
		<description>Based on this post I have decided make some program which able to detect weather IP is a part of some network (in this case UA-IX network) or not.


Speaking about UA-IX, from wikipedia we know: 

The Ukrainian traffic exchange network (UA-IX) (Ukrainian: Українська мережа обміну інтернет-трафіком) is an Internet exchange ...</description>
		<link>http://andriigrytsenko.net/2010/04/ua-ix-checker/</link>
			</item>
	<item>
		<title>IPCalc on Perl</title>
		<description>Today I decided to make my own IPCalc program. I had two reason for that. First to learn perl's binary operations and second one to make some IP calculation points more clear for me.


There is some listing of my script I hope this example help you to understand some fundamental ...</description>
		<link>http://andriigrytsenko.net/2010/03/ipcalc-on-perl/</link>
			</item>
	<item>
		<title>Clean up the shared memory in Solaris</title>
		<description>Here is short trick how to clean the shared memory up in Solaris OS. 



Here is short info about the host(solaris 5.9, arch sparc):
uname -a
SunOS hostname1 5.9 Generic_118558-25 sun4u sparc SUNW,Sun-Fire-V890 Solaris


To see all shared memory segment, use ipcs

user1@~>ipcs -m -a
IPC status from  as of Wed Mar 10 16:26:20 ...</description>
		<link>http://andriigrytsenko.net/2010/03/clean-up-the-shared-memory-in-solaris/</link>
			</item>
	<item>
		<title>Perl performance optimization</title>
		<description>I'd like to describe my own experience with perl optimization. There several common way to make you code works more faster. 


I used perl module Benchmark to make measurements. Rules:

1. If you can use single quotes instead of double quote, do it. In most cases it will be executed more ...</description>
		<link>http://andriigrytsenko.net/2010/03/perl-performance-optimization/</link>
			</item>
	<item>
		<title>Check if the perl module is installed</title>
		<description>Under cover you can find some trick and script to check perl module installation.


To figure out whether perl module is installed at the system. Run:
perl -M&#60;module_name&#62; -e 1
if command return an error or NOT 0(zero) then module is not installed at the moment.

Here is also perl script which help you ...</description>
		<link>http://andriigrytsenko.net/2010/02/check-if-the-perl-module-is-installed/</link>
			</item>
	<item>
		<title>Dbmail mailbox quota notification script</title>
		<description>Here is the script which check quota limits in the dbmail and in case of exceeding, script send mail to user and postmaster. 


Get script mail_quota.pl and mail_quota.conf configuration file at first.

To make script work fine two cpan modules should be installed:
cpan -i Mail::Send
and 
cpan -i DBD::Pg

This is dbmail table ...</description>
		<link>http://andriigrytsenko.net/2010/02/dbmail-mailbox-quota-notification-script/</link>
			</item>
	<item>
		<title>Network bandwidth script</title>
		<description>I spent several hours to find suitable script which help me figure out my network speed between two servers. But it was fruitlessly. So, I decided to make my own script with blackjack and hoockers. (c)



My Perl script require several things :

	Perl interpreter of course
	IO::Socket perl module
	Getopt::Long perl module

I will ...</description>
		<link>http://andriigrytsenko.net/2010/02/network-bandwidth-script/</link>
			</item>
	<item>
		<title>Get system temperature in Linux</title>
		<description>How to get online temperature status on your linux box.


There is one good package which allow you to control and check your computer temperature in online mode. To install  For debian:
apt-get install lm-sensors
for CentOS or RH:
yum install lm-sensors
Next software should discover all sensors in your PC, run sensors-detect:

agrytsenko:~# sensors-detect ...</description>
		<link>http://andriigrytsenko.net/2010/01/get-system-temperature-in-linux/</link>
			</item>
	<item>
		<title>Google maps API to show users location</title>
		<description>I will show you how to use google maps to print location of your site visitors.


First of all you need to get Google KEY, to do this you should have google account. If you have it visit google key page to generate the map key.

After you've done it -&#62; you ...</description>
		<link>http://andriigrytsenko.net/2010/01/google-maps-api/</link>
			</item>
	<item>
		<title>D-link dwa-110 on Debian Box</title>
		<description>Here some manual how to set up wireless usb stick(D-link dwa-110) on Debian Linux box step-by-step.



First you need to get Windows drivers from your drivers CD(you can find this stuff in your modem's box). Also you need to install ndiswrapper.

Put directory with drivers to /root/Drivers/ and install ndiswrapper:
apt-get install ndiswrapper-common ...</description>
		<link>http://andriigrytsenko.net/2009/12/d-link-dwa-110-on-debian-box/</link>
			</item>
	<item>
		<title>Perl debug</title>
		<description>One of the perl debug way.

Perl module  PadWalker is require. Install it over cpan util:
cpan -i PadWalker 
Let's create simple script:
$cat ./hello.pl
#!/usr/bin/perl
sub say_hello {
my $what=shift;
print "Hello $what\n";
}

my $var1="var1";
my $var2="var2";
say_hello("you");
my $var3="var3";


And try to debug it:
$ perl -dF hello.pl
Loading DB routines from perl5db.pl version 1.31
Editor support available.Enter h or `h h' ...</description>
		<link>http://andriigrytsenko.net/2009/12/perl-debug/</link>
			</item>
	<item>
		<title>Wireless connection issue</title>
		<description>Recently I have faced with the next problem-&#62; my wireless connection time-to-time became unavailable.



I was starting investigation and figure out that my problem was the same as this. There is also workaround solution was found. First, let me describe my hardware and symptom data.

I have usb wireless adapter  D-link ...</description>
		<link>http://andriigrytsenko.net/2009/12/wireless-connection-issue/</link>
			</item>
	<item>
		<title>Use perl module without root access</title>
		<description>Take this simple instruction if you need to include module (which is not installed at your system) to your perl script.


	Get module and install it to directory where you have write permission (For example: /home/user1/libs).
	Go to your script and add new library path to your INC array:
use lib '/home/user1/libs';
to check ...</description>
		<link>http://andriigrytsenko.net/2009/11/use-perl-module-without-root-access/</link>
			</item>
	<item>
		<title>Wireless internet AP based on RedHat linux</title>
		<description>I will try to describe how to make own home wireless access point based on RedHat linux machine.



This post include 2 part. In first one I'll describe step which should be taken on linux machine and in second one step for windows client.
Linux(server side)
We use this host to share internet ...</description>
		<link>http://andriigrytsenko.net/2009/11/wireless-internet-ap-based-on-linux/</link>
			</item>
	<item>
		<title>Local Cent-OS repository step-by-step</title>
		<description>There is some instruction how to make centralized repository for CentOS software.



As repository I have used my own Debian machine. Firstly, I have installed createrepo. This program generate some metadata which is necessary for RPM repository. Run
apt-get install createrepo
to install it from yum repository.  Create two directories in the ...</description>
		<link>http://andriigrytsenko.net/2009/10/local-cent-os-repository-step-by-step/</link>
			</item>
	<item>
		<title>Linux hard reboot and System Request Key</title>
		<description>Sometimes we need to reboot remote machine. But all we get an error in console. 

The most popular reason of this disk problems. To perform force rebooting turn on SRK feature in the kernel via proc VFS:
# sysctl -w kernel.sysrq=1 
and send command to kernel to reboot the system without ...</description>
		<link>http://andriigrytsenko.net/2009/10/linux-hard-reboot-and-system-request-key/</link>
			</item>
</channel>
</rss>
