<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="0.92" xml:base="http://www.ctunion.com">
<channel>
 <title>Computer Tech Union - Communications</title>
 <link>http://www.ctunion.com/taxonomy/term/4/0</link>
 <description>PHP Related Communications Software</description>
 <language>en</language>
<item>
 <title>The best Video Converter</title>
 <link>http://www.ctunion.com/node/727</link>
 <description>&lt;p&gt;&lt;a href="http://www.iorgsoft.com/Video-Converter/"&gt;iOrgSoft Video Converter&lt;/a&gt; is a versatile yet easy to handle video converter. Almost all popular video files, such as AVI, MP4, WMV, 3GP, MOV, VOB, MPG, ASF, RM, RMVB, FLV (Flash), etc can be converted to desired formats so that you can easily put your favorite movies on iPod, iPhone, Zune, PSP, Mobile Phone, etc. Besides, it lets you convert any videos to MP3, WAV, M4A audio formats.&lt;/p&gt;
</description>
 <pubDate>Fri, 03 Oct 2008 01:20:37 -0700</pubDate>
</item>
<item>
 <title>configuring htaccess restrictions on debian apache2 server</title>
 <link>http://www.ctunion.com/node/706</link>
 <description>&lt;p&gt;This is a quick guide on how to set up htaccess restrictions on a directory located on a server running apache2 with a debian OS.&lt;/p&gt;
&lt;p&gt;First, you will need to update the httpd.conf file, which should be located in the apache2 directory, as follows:&lt;/p&gt;
&lt;p&gt;&amp;amp;#60Directory (directory to be protected)&amp;amp;#62&lt;br /&gt;
Options Indexes Includes FollowSymLinks Multivews&lt;br /&gt;
AllowOverride AuthConfig&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Allow from all&lt;br /&gt;
&amp;amp;#60/Directory&amp;amp;#62&lt;/p&gt;
&lt;p&gt;Make sure to take out the "" they are only included so this post displays properly.&lt;/p&gt;
&lt;p&gt;Once this update is saved, restart the apache2 server with the following command, or something like it depending on your setup, as follows:&lt;/p&gt;
</description>
 <pubDate>Tue, 01 Jul 2008 15:54:00 -0700</pubDate>
</item>
<item>
 <title>search and replace in mysql</title>
 <link>http://www.ctunion.com/node/621</link>
 <description>&lt;p&gt;can also be used in phpmyadmin&lt;/p&gt;
&lt;p&gt;UPDATE tablename SET tablefield = replace(tablefield, "findstring", "replacestring");&lt;/p&gt;
&lt;p&gt;very handy for changing all entries in one field to another value&lt;/p&gt;
</description>
 <pubDate>Wed, 13 Feb 2008 11:03:14 -0800</pubDate>
</item>
<item>
 <title>converting mp3's for use as polycom ringers</title>
 <link>http://www.ctunion.com/node/620</link>
 <description>&lt;p&gt;first use mhWaveEdit and convert to 8 bit 8000hz mono&lt;/p&gt;
&lt;p&gt;then&lt;/p&gt;
&lt;p&gt;sox phonesring.wav -U -c1 phonesring1.wav&lt;/p&gt;
&lt;p&gt;to put in g711&lt;/p&gt;
&lt;p&gt;# file phonesring.wav&lt;br /&gt;
phonesring.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz&lt;/p&gt;
</description>
 <pubDate>Tue, 05 Feb 2008 15:47:13 -0800</pubDate>
</item>
<item>
 <title>how to use awk to add information to a text file</title>
 <link>http://www.ctunion.com/node/616</link>
 <description>&lt;p&gt;
&lt;code&gt;&lt;br /&gt;
awk '{if(/texttofind/) {printf("%s\nfromuser=%s\n",$0,substr($3,index($3,"&lt;")+1,index($3,"&gt;")-2))} else print $0}' "file1.txt" &gt; "file2.txt"&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;where:&lt;br /&gt;
if(/texttofind/) does A) if it is true or does B) if not true&lt;/p&gt;
&lt;p&gt;texttofind is the text you want to add a new line after &lt;/p&gt;
&lt;p&gt;printf("%s\nfromuser=%s\n",$0,substr($3,index($3,"&lt;")+1,index($3,"&gt;")-2)&lt;/p&gt;
&lt;p&gt;this statement prints the origional line in string format, then drops a new line with the /n.  Then prints: fromuser=.. then prints a substring from the above line where the start of the substring is a "&lt;" and the end of the substring is a "&gt;"&lt;/p&gt;
</description>
 <pubDate>Fri, 01 Feb 2008 00:01:57 -0800</pubDate>
</item>
<item>
 <title>fsck your root partition</title>
 <link>http://www.ctunion.com/node/613</link>
 <description>&lt;p&gt;telinit 1&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
fsck -f /dev/hd..&lt;br /&gt;
mount -o remount,rw /&lt;br /&gt;
runlevel&lt;br /&gt;
telinit 3&lt;/p&gt;
</description>
 <pubDate>Sun, 20 Jan 2008 20:25:14 -0800</pubDate>
</item>
<item>
 <title>mount iso cd image</title>
 <link>http://www.ctunion.com/node/612</link>
 <description>&lt;p&gt;mount -o loop -t iso9660 /root/Desktop/etch-custom-1013.iso  /mnt/iso&lt;/p&gt;
</description>
 <pubDate>Fri, 18 Jan 2008 16:48:50 -0800</pubDate>
</item>
<item>
 <title>move all mp3 files from 1 partition to a single folder using 1 command.</title>
 <link>http://www.ctunion.com/node/607</link>
 <description>&lt;p&gt;To make a list of all the files in a certain place...&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
locate *.mp3 | grep video &amp;gt; file.txt&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;To do a mass move of all the files&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
 mv $(cat file.txt | perl -pi -e 's/ /\ /g' | cut -d "/" -f 5 | cut -d "/" -f 2 | sort | uniq) /mnt/home/music/&lt;/p&gt;
&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;of course this is just and example, you will have to modify the cut commands and locate commands to do exactly what you want.&lt;/p&gt;
&lt;p&gt;do not just copy and paste this command into your console it will not work.&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Dec 2007 19:21:38 -0800</pubDate>
</item>
<item>
 <title>How to be sure your sangome a200 hardware echo cancellation is working</title>
 <link>http://www.ctunion.com/node/602</link>
 <description>&lt;p&gt;Is my hardware echo canceller running?&lt;/p&gt;
&lt;p&gt;How to confirm that your hardware echo canceller is running and active on your Zap calls.&lt;/p&gt;
&lt;p&gt;1. Confirm that you have a hardware echo canceller:&lt;br /&gt;
    After the Wanpipe drivers are installed, type:&lt;br /&gt;
        #&amp;gt;wanrouter hwprobe&lt;br /&gt;
    It should say:&lt;/p&gt;
&lt;p&gt;    1. AFT-AXX-SH : SLOT=X : BUS=X : IRQ=X CPU=A: PORT=X : HWEC= 32 : V=X&lt;br /&gt;
        HWEC values should be:&lt;br /&gt;
            A200d : 32&lt;br /&gt;
            A101d : 32&lt;br /&gt;
            A102d : 64&lt;br /&gt;
            A104d : 128&lt;br /&gt;
            A108d : 256&lt;br /&gt;
        If it says HWEC=0, and you ordered a "d" model card,&lt;br /&gt;
           If you purchased this card from a reseller, contact your reseller.&lt;/p&gt;
</description>
 <pubDate>Wed, 05 Dec 2007 02:17:09 -0800</pubDate>
</item>
<item>
 <title>A Simple but effective QOS script for all IAX traffic going to a certain host.</title>
 <link>http://www.ctunion.com/node/364</link>
 <description>&lt;p&gt;I have been trying to get this working off and on for a year now.  Part of the reason was my lack of linux administrator experience and QoS is a rather advanced topic.  After spending many hours researching and trying scripts that are too complicated and dont seem to work and hours of waised time dealing with customers who like to bomb out their internet connection with outlook and the like, i have created this script which i have borrowed ideas from many different places on the web as well as spending a few hours reading about the iproute and tc application tool set.  I have tested this script and it will make a huge difference on crappy DSL connections although it doesn't fix it perfectly.  On T1 connections, it does make a huge difference.  This script is meant for use with IAX server to server communication or with limited effects, a sip phone with the QoS bit set to 0x10 (minimize latency)  I hope it helps you out so we can make VOIP the dominant technology in the world.&lt;/p&gt;
</description>
 <pubDate>Fri, 02 Nov 2007 02:11:50 -0700</pubDate>
</item>
<item>
 <title>OpenVPN GUI installer fails to install the TAP32 adapter</title>
 <link>http://www.ctunion.com/node/355</link>
 <description>&lt;p&gt;Ever try to install the OpenVPN GUI from openvpn.se and have the tapinstall.exe fail?&lt;/p&gt;
&lt;p&gt;Windows 2000/XP has a bug that it cannot properly detect new hardware by&lt;br /&gt;
*.inf files, if the RunOnce registry key is missing for the following&lt;br /&gt;
location:&lt;/p&gt;
&lt;p&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion&lt;/p&gt;
&lt;p&gt;This key is often used by installers to execute post-reboot programs, but&lt;br /&gt;
sometimes they accidentally delete this key.&lt;/p&gt;
&lt;p&gt;IMPORTANT: This article contains information about modifying the registry.&lt;br /&gt;
Make sure that you understand how to backup and restore the registry, in&lt;br /&gt;
case a problem occurs. Please read the linked Microsoft Knowledge Base&lt;/p&gt;
</description>
 <pubDate>Wed, 10 Oct 2007 13:10:59 -0700</pubDate>
</item>
<item>
 <title>grep an IP for use in a script</title>
 <link>http://www.ctunion.com/node/350</link>
 <description>&lt;p&gt;nslookup any.domain.tld | grep Address | cut -d ":" -f 2 | grep -v "#" | cut -d " " -f 2&lt;/p&gt;
</description>
 <pubDate>Fri, 05 Oct 2007 18:02:46 -0700</pubDate>
</item>
<item>
 <title>passwordless SSH login</title>
 <link>http://www.ctunion.com/node/339</link>
 <description>&lt;p&gt;need to run scripts on another server but dont want to have to include your passwords in the scripts?&lt;br /&gt;
Use RSA logins instead.&lt;br /&gt;
This uses a pre-generated set of public RSA keys to authenticate sessions rather than having to enter passwords.&lt;/p&gt;
&lt;p&gt;On the machine you wish to log in from:&lt;/p&gt;
&lt;p&gt;$ ssh-keygen -t rsa&lt;/p&gt;
&lt;p&gt;make sure to leave the passphrase blank!&lt;/p&gt;
&lt;p&gt;$ ssh-copy-id -i ~/.ssh/id_rsa.pub username@server&lt;/p&gt;
&lt;p&gt;you will be prompted for the user's password to authenticate the key transfer.&lt;/p&gt;
&lt;p&gt;This message will appear when the transfer is complete:&lt;/p&gt;
&lt;p&gt;"&lt;br /&gt;
Now try logging into the machine, with "ssh 'username@server'", and check in:&lt;/p&gt;
</description>
 <pubDate>Fri, 07 Dec 2007 20:59:05 -0800</pubDate>
</item>
<item>
 <title>Reset the root mysql password</title>
 <link>http://www.ctunion.com/node/314</link>
 <description>&lt;p&gt;Here is how you can reset forgotten root password,&lt;br /&gt;
Be aware that following will reset your root password:&lt;br /&gt;
# /etc/init.d/mysql stop&lt;br /&gt;
# /usr/bin/mysqld_safe --skip-grant-tables --skip-networking &amp;amp;&lt;br /&gt;
# mysql -u root&lt;br /&gt;
mysql&amp;gt; use mysql;&lt;br /&gt;
mysql&amp;gt; UPDATE user SET Password=PASSWORD("your password here") WHERE User="root";&lt;br /&gt;
mysql&amp;gt; exit&lt;/p&gt;
&lt;p&gt;# /etc/init.d/mysql stop&lt;br /&gt;
# /etc/init.d/mysql start&lt;/p&gt;
&lt;p&gt;Pay attention that, mysql can be in different folders depending on the installation, for different linux version the way you can start or stop the mysql can very.&lt;/p&gt;
</description>
 <pubDate>Tue, 18 Sep 2007 16:09:45 -0700</pubDate>
</item>
<item>
 <title>mount usb flash drive</title>
 <link>http://www.ctunion.com/node/247</link>
 <description>&lt;p&gt;mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed,uid=1001,gid=100,umask=077,iocharset=utf8 /dev/sda1 /mnt/usb&lt;/p&gt;
</description>
 <pubDate>Fri, 10 Aug 2007 16:06:56 -0700</pubDate>
</item>
</channel>
</rss>
