<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Site &amp; Blog</title>
	<atom:link href="http://techsiteblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techsiteblog.com</link>
	<description></description>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<item>
		<title>Ruby Gem update system on Debian</title>
		<link>http://techsiteblog.com/ruby-gem-update-system-on-debian/</link>
		<comments>http://techsiteblog.com/ruby-gem-update-system-on-debian/#comments</comments>
		<pubDate>Mon, 17 May 10 16:16:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category><category><![CDATA[ruby]]></category><category><![CDATA[gem]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/ruby-gem-update-system-on-debian/</guid>
		<description><![CDATA[When you try to update Ruby Gem --system on Debian systems (probably also on Ubuntu) you will get the following error:

ERROR:  While executing gem ... (RuntimeError)
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-g [...]]]></description>
			<content:encoded><![CDATA[When you try to update Ruby Gem --system on Debian systems (probably also on Ubuntu) you will get the following error:<br />
<br />
<em>ERROR:  While executing gem ... (RuntimeError)<br />
    gem update --system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.</em><br />
<br />
Gem installed through Debian's aptitude is configured to only be upgraded through aptitude (apt-get) package manager. That would not be a problem if aptitude had newest packages. However, they are updated irregurally and in most cases (almost ever) you will get older version than the current one.<br />
<br />
Thankfully there is a simple solution to this problem.<br />
<br />
Type following commands (under root user):<br />
<br />
<blockquote>gem install rubygems-update<br />
cd /var/lib/gems/1.8/bin<br />
./update_rubygems</blockquote><br />
<br />
After that gem system should be succesfully updated.]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>ext2 and ext3 on Windows</title>
		<link>http://techsiteblog.com/ext2-and-ext3-on-windows/</link>
		<comments>http://techsiteblog.com/ext2-and-ext3-on-windows/#comments</comments>
		<pubDate>Thu, 11 Mar 10 18:55:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows]]></category><category><![CDATA[file system]]></category><category><![CDATA[ext2]]></category><category><![CDATA[ext3]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/ext2-and-ext3-on-windows/</guid>
		<description><![CDATA[If you are using dual boot with Windows and Linux you've probably faced with a problem of accessing ext3 partitions from Windows OS.

Most of the Linux distributions come with NTFS-3G driver, which allow reading &amp; writing to NTFS partiton. Sadly, Windows doesn't offer such filesystem driver fo [...]]]></description>
			<content:encoded><![CDATA[If you are using dual boot with Windows and Linux you've probably faced with a problem of accessing ext3 partitions from Windows OS.<br />
<br />
Most of the Linux distributions come with NTFS-3G driver, which allow reading &amp; writing to NTFS partiton. Sadly, Windows doesn't offer such filesystem driver for file systems other than FAT16/32 and NTFS.<br />
<br />
However, you can use the 3rd party driver such as Ext2 IFS, which allows OS Windows to access such partitions from any program including Windows Explorer.<br />
<br />
<strong>Ext2 IFS</strong><br />
Ext2 IFS is a freeware program that provides Windows NT4.0/2000/XP/2003/Vista/2008 with full access to ext2/ext3 partitions.<br />
<br />
Info: <a href="http://www.fs-driver.org/" target="_blank">http://www.fs-driver.org/</a><br />
Download: <a href="http://www.fs-driver.org/download.html" target="_blank">http://www.fs-driver.org/download.html</a><br />
<br />
I've no problems with accessing partitions with inode size of 128 bytes. However, this program does not support partitions with bigger inode size, which can be a problem in some cases.<br />
<br />
<br />
<strong>Ext2Fsd</strong><br />
If you have a partition with inode size of 256 bytes, you can use this file system driver, which supports Windows NT/2K/XP/VISTA, X86/AMD64.<br />
<br />
Info: <a href="http://www.ext2fsd.com/" target="_blank">http://www.ext2fsd.com/</a><br />
Download: <a href="http://sourceforge.net/projects/ext2fsd/files/" target="_blank">http://sourceforge.net/projects/ext2fsd/files/</a><br />
<br />
Just a word of caution: It is not a good idea to have multiple file system drivers (for the same file system) installed at the same time. Try one and if you have a problem with it, delete it, restart operating system and install another one.<br />
<br />
Web sites of both drivers claim that they are not supported by Windows 7. In my case everything worked well on Windows 7 32 bit and 64 bit.]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>MS SQL Add User</title>
		<link>http://techsiteblog.com/ms-sql-add-user/</link>
		<comments>http://techsiteblog.com/ms-sql-add-user/#comments</comments>
		<pubDate>Sun, 21 Feb 10 16:55:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[ms sql]]></category><category><![CDATA[microsoft]]></category><category><![CDATA[sql]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/ms-sql-add-user/</guid>
		<description><![CDATA[

1. Connect to MS SQL server using MS SQL Management Studio.

2. Click on the \&quot;New query\&quot; button in the toolbar on left.

3. Create a database
Type following query and execute it:

Example:


3. Create login

Example:


4. Create user
use DATABASE_NAME
create user USE [...]]]></description>
			<content:encoded><![CDATA[<strong>The simplest way to add user to MySQL and grant privileges for specific database.</strong><br />
<br />
1. Connect to MS SQL server using MS SQL Management Studio.<br />
<br />
2. Click on the "New query" button in the toolbar on left.<br />
<br />
3. Create a database<br />
Type following query and execute it:<br />
<blockquote>create database DATABASE_NAME</blockquote><br />
Example:<br />
<blockquote>create database MyCMS</blockquote><br />
<br />
3. Create login<br />
<blockquote>create login LOGINNAME with password='PASSWORD'</blockquote><br />
Example:<br />
<blockquote>create login MyCMSUser with password='abc123'</blockquote><br />
<br />
4. Create user<br />
<blockquote>use DATABASE_NAME<br />
create user USERNAME for login LOGINNAME</blockquote><br />
Example:<br />
<blockquote>use MyCMS<br />
create user MyCMSUser for login MyCMSUser</blockquote><br />
<br />
5. Grant control of the database to the created user<br />
<blockquote>use DATABASE_NAME<br />
grant control to USERNAME</blockquote><br />
Example:<br />
<blockquote>use MyCMS<br />
grant control to MyCMSUser</blockquote><br />
<br />
Executing example queries would create user MyCMSUser with password abcd123 with all privileges on database MyCMS.<br />
<br />
Queries have to be executed from the first to the last.<br />
<br />
If you want to find out how to create a user with MySQL read following post: <a href="http://techsiteblog.com/mysql-add-user/" target="_blank">MySQL Add User</a>]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>Hackers Clone E-Passports</title>
		<link>http://techsiteblog.com/hackers-clone-e-passports/</link>
		<comments>http://techsiteblog.com/hackers-clone-e-passports/#comments</comments>
		<pubDate>Fri, 11 Dec 09 17:06:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RFID]]></category><category><![CDATA[risks]]></category><category><![CDATA[human implants]]></category><category><![CDATA[implants]]></category><category><![CDATA[keys]]></category><category><![CDATA[cars]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/hackers-clone-e-passports/</guid>
		<description><![CDATA[Two RFID researchers created a video showing how an RFID reader attached to an improvised explosive device could theoretically identify a U.S. citizen walking past the reader and set off a bomb. They haven\'t yet tested the theory on a real U.S. passport since the documents have yet to be distribute [...]]]></description>
			<content:encoded><![CDATA[Two RFID researchers created a video showing how an RFID reader attached to an improvised explosive device could theoretically identify a U.S. citizen walking past the reader and set off a bomb. They haven't yet tested the theory on a real U.S. passport since the documents have yet to be distributed. They still here show an attack using a prototype passport with RFID chip placed in the pocket of the victim. As the chip passes the reader, the reader detonates an explosive device placed in the trash can.<br />
<p align="center">
	<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/-XXaqraF7pI&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-XXaqraF7pI&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
	<br />
	</p>]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>RFID on Mythbusters</title>
		<link>http://techsiteblog.com/rfid-on-mythbusters/</link>
		<comments>http://techsiteblog.com/rfid-on-mythbusters/#comments</comments>
		<pubDate>Fri, 11 Dec 09 17:04:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RFID]]></category><category><![CDATA[credit card]]></category><category><![CDATA[risks]]></category><category><![CDATA[mythbusters]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/rfid-on-mythbusters/</guid>
		<description><![CDATA[Adam Savage talks why they didn\'t do an episode about RFID (In)Security on Mythbusters TV show.
 [...]]]></description>
			<content:encoded><![CDATA[Adam Savage talks why they didn't do an episode about RFID (In)Security on Mythbusters TV show.<br />
<p align="center"><p align="center">
	<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/-St_ltH90Oc&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-St_ltH90Oc&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>
	<br />
	</p></p>]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>Human implants</title>
		<link>http://techsiteblog.com/human-implants/</link>
		<comments>http://techsiteblog.com/human-implants/#comments</comments>
		<pubDate>Fri, 11 Dec 09 16:59:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RFID]]></category><category><![CDATA[risks]]></category><category><![CDATA[human implants]]></category><category><![CDATA[implants]]></category><category><![CDATA[keys]]></category><category><![CDATA[cars]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/human-implants/</guid>
		<description><![CDATA[Every day people are replacing keys with RFID implants. You can do a lot things easier with RFID, than with keys. Did you ever misplace car keys? With RFID you just need to be in a range of car\'s RFID module and car\'s unlocked.

However, security experts have warned against using tags in that ma [...]]]></description>
			<content:encoded><![CDATA[Every day people are replacing keys with RFID implants. You can do a lot things easier with RFID, than with keys. Did you ever misplace car keys? With RFID you just need to be in a range of car's RFID module and car's unlocked.<br />
<br />
However, security experts have warned against using tags in that manners because it is really easy to read data from it with almost every RFID reader.<br />
<br />
Someone can approach you and scan your tag without your knowledge. Then copy content your card's content to writable tag. And he could drive your car, get in your house or/and even in your workplace.<br />
<p align="center"><img src="http://techsiteblog.com/media/rfid/human-implants.jpg" /></p>]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>What is RFID</title>
		<link>http://techsiteblog.com/what-is-rfid/</link>
		<comments>http://techsiteblog.com/what-is-rfid/#comments</comments>
		<pubDate>Fri, 11 Dec 09 15:38:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RFID]]></category><category><![CDATA[passive rfid]]></category><category><![CDATA[active rfid]]></category><category><![CDATA[risks]]></category><category><![CDATA[human implants]]></category><category><![CDATA[credit cards]]></category><category><![CDATA[passports]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/what-is-rfid/</guid>
		<description><![CDATA[RFID is the use of an object (RFID tag) applied to or incorporated into a product, animal, or a person for the purpose of identification and tracking using radio waves. [...]]]></description>
			<content:encoded><![CDATA[RFID is the use of an object (RFID tag) applied to or incorporated into a product, animal, or a person for the purpose of identification and tracking using radio waves.]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>About RFID</title>
		<link>http://techsiteblog.com/about-rfid/</link>
		<comments>http://techsiteblog.com/about-rfid/#comments</comments>
		<pubDate>Fri, 11 Dec 09 15:17:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RFID]]></category><category><![CDATA[passive RFID]]></category><category><![CDATA[rfid tags]]></category><category><![CDATA[active RFID]]></category><category><![CDATA[passports]]></category><category><![CDATA[transportation]]></category><category><![CDATA[implants]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/about-rfid/</guid>
		<description><![CDATA[ (most common): no battery, require an external power source

 contain a battery, can transmit signals autonomously and can transmit over longer distances

 - passports - race timing - transportation payments - product tracking - transportation and logistics - animal identification - inventory s [...]]]></description>
			<content:encoded><![CDATA[<strong>Passive RFID tags</strong> (most common): no battery, require an external power source<br />
<br />
<strong>Active RFID tags:</strong> contain a battery, can transmit signals autonomously and can transmit over longer distances<br />
<br />
<strong>RFID tags are used for:</strong> - passports - race timing - transportation payments - product tracking - transportation and logistics - animal identification - inventory systems - human implants - libraries<br />
<br />
<strong>Potential risks</strong><br />
RFID for authenticating people is very risky due to the way you can read RFID tag. It is possible to read content of RFID tag just by passing by the person who has it implanted.]]></content:encoded>
		<slash:comments>0</slash:comments>
	</item>
		<item>
		<title>ffmpeg and x264</title>
		<link>http://techsiteblog.com/ffmpeg-and-x264/</link>
		<comments>http://techsiteblog.com/ffmpeg-and-x264/#comments</comments>
		<pubDate>Sun, 06 Dec 09 17:39:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category><category><![CDATA[Linux]]></category><category><![CDATA[ffmpeg]]></category><category><![CDATA[x264]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/ffmpeg-and-x264/</guid>
		<description><![CDATA[How to install ffmpeg with x264 codec support on Debian Lenny (5.0)?

 By using x264 codec rather than a FLV video format you will gain on video and audio quality.

1. We need to remove any previous ffmpeg installations.

2. Add additional repository to /etc/apt/sources.list

Open file with  [...]]]></description>
			<content:encoded><![CDATA[How to install ffmpeg with x264 codec support on Debian Lenny (5.0)?<br />
<br />
<strong>Why is this useful?</strong> By using x264 codec rather than a FLV video format you will gain on video and audio quality.<br />
<br />
1. We need to remove any previous ffmpeg installations.<br />
<br />
2. Add additional repository to /etc/apt/sources.list<br />
<br />
Open file with nano editor:<br />
<blockquote>nano /etc/apt/sources.list</blockquote><br />
and add following line on the end of the file:<br />
<blockquote>deb http://www.debian-multimedia.org stable main</blockquote><br />
3. Install needed libraries:<br />
<br />
apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev libogg-dev<br />
<br />
4. Install x264<br />
<blockquote>git clone git://git.videolan.org/x264.git<br />
cd x264<br />
./configure<br />
make<br />
sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`" --backup=no --default</blockquote><br />
5. Install libtheora<br />
<blockquote>wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz<br />
tar xzvf libtheora-1.1.1.tar.gz<br />
cd libtheora-1.1.1<br />
./configure<br />
make<br />
sudo checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default</blockquote><br />
6. Install ffmpeg<br />
<blockquote>svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg<br />
cd ffmpeg<br />
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-x11grab<br />
make<br />
sudo checkinstall --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default</blockquote><br />
7. Install qt-faststart<br />
<br />
Normal mp4 file needs to be fully downloaded before it can be played by Flash Player. qt-faststart fixes this.<br />
<br />
Type following command from ffmpeg source directory:<br />
<blockquote>make tools/qt-faststart</blockquote><br />
Example:<br />
<blockquote>ffmpeg -i input.mov -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -crf 22 -threads 0 output.mp4<br />
./tools/qt-faststart output.mp4 output2.mp4</blockquote><br />
Now you can play output2.mp4 by any Flash player. LongTail's freeware <a href="http://www.longtailvideo.com/" target="_blank">JW Player</a> is quite good, has many options and can play both mp4 and flv.<br />
<br />
Now you can use ffmpeg to compress videos with x264 codec. <a href="http://techsiteblog.com/convert-video-to-flv-with-php/" target="_blank">Read more about converting video with PHP</a><br />
<br />
Warning: Latest ffmpeg version has some problems with FLV format and it's impossible to convert video to .flv with it! If you need flv support try installing older version of ffmpeg (if you install it by apt-get install ffmpeg you will be able to convert to FLV but there is no x264 support).<br />
<br />
Source: <a href="http://ubuntuforums.org/showthread.php?t=786095" target="_blank">http://ubuntuforums.org/showthread.php?t=786095</a>]]></content:encoded>
		<slash:comments>4</slash:comments>
	</item>
		<item>
		<title>Use MySQL database in your C++ projects</title>
		<link>http://techsiteblog.com/use-mysql-database-in-your-c-projects/</link>
		<comments>http://techsiteblog.com/use-mysql-database-in-your-c-projects/#comments</comments>
		<pubDate>Sat, 28 Nov 09 21:01:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux]]></category><category><![CDATA[MySQL]]></category><category><![CDATA[C++]]></category>
		<guid isPermaLink="true">http://techsiteblog.com/use-mysql-database-in-your-c-projects/</guid>
		<description><![CDATA[How to use MySQL DB in your C++ projects. This tutorial is written for Debian Lenny/Ubuntu 9.10. With a few minor changes, it should work on other distributions also.

What will you need?

- gcc &lt;-- c++ compiler

- MySQL server 5.0 installed

- MySQL C API

To install above programs run [...]]]></description>
			<content:encoded><![CDATA[How to use MySQL DB in your C++ projects. This tutorial is written for Debian Lenny/Ubuntu 9.10. With a few minor changes, it should work on other distributions also.<br />
<br />
What will you need?<br />
<br />
- gcc &lt;-- c++ compiler<br />
<br />
- MySQL server 5.0 installed<br />
<br />
- MySQL C API<br />
<br />
To install above programs run this command as root:<br />
<blockquote>apt-get install build-essential mysql-server mysql-client libsoci-mysql-gcc</blockquote><br />
When you have everything installed you need to create database and add user (<a href="http://techsiteblog.com/mysql-add-user/" target="_blank">MySQL Add User</a>).<br />
<br />
Now you will need to add a new table. The easiest approach is to use <a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a>.<br />
<br />
Simple program to test MySQL C API (copy it and save as filename.cpp):<br />
<blockquote>#include &lt;iostream&gt;<br />
#include &lt;mysql.h&gt;<br />
<br />
using namespace std;<br />
<br />
//MySQL variables<br />
MYSQL *connection, mysql;<br />
MYSQL_RES *result;<br />
MYSQL_ROW row;<br />
int query_state;<br />
<br />
int main() {<br />
//Connects to MySQL DB<br />
mysql_init(&amp;mysql);<br />
<br />
connection = mysql_real_connect(&amp;mysql, "localhost", "username", "password", "database", 0, 0, 0);<br />
<br />
//Checks if there was a problem with connection<br />
if(connection == NULL) {<br />
cout &lt;&lt;mysql_error(&amp;mysql);<br />
return 1;<br />
}<br />
<br />
//Execute query<br />
query_state = mysql_query(connection, "SELECT * FROM table");<br />
<br />
if(query_state != 0) {<br />
cout &lt;&lt; mysql_error(connection);<br />
}<br />
<br />
//Loads query data<br />
result = mysql_use_result(connection);<br />
<br />
//Writes data to stdio from first column on all rows in table<br />
while((row = mysql_fetch_row(result)) != NULL) {<br />
cout &lt;&lt; row[0] &lt;&lt; endl;<br />
}<br />
<br />
mysql_free_result(result);<br />
mysql_close(connection);<br />
}</blockquote><br />
You can compile it with following command:<br />
<blockquote>g++ filename.cpp -L/usr/include/mysql -lmysqlclient -I/usr/include/mysql</blockquote><br />
If there was no error displayed then your program compiled successfully. You can run by typing:<br />
<blockquote>./a.out</blockquote><br />
And now you made your first C++ program that gets data from MySQL DB. You can do a lot more than just that.<br />
<br />
You will probably need to read <a href="http://dev.mysql.com/doc/refman/5.0/en/c.html" target="_blank">MySQL C API Manual</a> to learn others commands.<br />
<br />
Next time I will write about preparing Apple Xcode and Microsoft Visual Studio for using MySQL C API.]]></content:encoded>
		<slash:comments>1</slash:comments>
	</item>
		</channel>
</rss>
