Mostly work related stuff which I would've entered into my "Log book". Instead of hosting it on an intranet site, outsourcing the hosting to blogger!
Wednesday, October 10, 2007
dns corrections
Found that the local Cyberoam dns server was repeatedly failing for radiosai.org domain. Checking out the Domain report at dnsstuff.com, found that it had a problem of having a stealth nameserver. Logged into Plesk and changed the ns dns records to w5 and w6, that seems to have fixed the problem. Also added SPF TXT record using the wizard at openspf.org.
phppgadmin issue - blank fields
An issue with phppgadmin cropped up during the db work. If any field which is marked as a key of any type (even unique key) is NULL, clicking Edit next to a record opens the Edit form with all the fields blank - not filled in like in other cases. Does not happen for NULL fields when the fields are not marked as keys. It relates to the way the query is made in phppgadmin....
sql queries for find-replace
Running some sql queries on our pgsql db like
UPDATE "file_id" SET "download_filename" = '-'and so on. It took two mornings to finish.
WHERE "filename" ~~ 'SV_MS%'
AND "filename" not like '%MSANTAN%'
UPDATE "file_id" SET "download_filename" =
REPLACE(download_filename,'_RAVI_', '_')
WHERE "filename" ~~ 'MBV%RAVI%'
and filename not like '%ARAVIND%'
and filename not like '%KULA%'
Saturday, October 06, 2007
extra-curricular activities
Aiming to use Dataone for "Loka Samasta Sukhino Bhavantu", doing a bit of cleanup for some other sites on a purely voluntary basis, avoiding the limelight....
Tuesday, October 02, 2007
R's iptables config for ssh natting
Struggled a bit with R to configure his machine to nat ssh - here's a working /etc/sysconfig/iptables for Fedora -
We took more than an hour, because default routes were not set to use this machine as a gateway, and also the machine blocks pings. Once the gateway was set correctly on his double-homed Win2k3 box, it worked. But we also struggled a bit because of forgetting the two COMMITs, one after each *table. Also, the
# Generated by iptables-save v1.2.11 on Sat Mar 11 13:08:36 2006By changing the ports to REJECT in the format --dport 8081:65535 he can block access to any other service.
*filter
:INPUT DROP [1339:140723]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [137:35130]
# allow local loopback connections
-A INPUT -i lo -j ACCEPT
# drop INVALID connections
-A INPUT -m state --state INVALID -j DROP
-A OUTPUT -m state --state INVALID -j DROP
-A FORWARD -m state --state INVALID -j DROP
# accept requests from internal machines on port 8080
-A INPUT -s 192.168.0.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT
-A FORWARD -s 192.168.0.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 80 -j REJECT
-A FORWARD -s 192.168.0.0/255.255.255.0 -i eth0 -p tcp -m tcp --dport 443 -j REJECT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -d 202.141.1.132 -o eth0 -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT
-A OUTPUT -d 202.41.99.9 -o eth0 -p udp -m state --state NEW -m udp --dport 53 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A OUTPUT -o eth0 -p tcp -m state --state NEW -m tcp --dport 110 -j ACCEPT
COMMIT
# Completed on Sat Mar 11 13:08:36 2006
# Generated by iptables-save v1.2.11 on Sat Mar 11 13:08:36 2006
*nat
:PREROUTING ACCEPT [128:15724]
:POSTROUTING ACCEPT [35:2100]
:OUTPUT ACCEPT [35:2100]
-A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth1 -j MASQUERADE
COMMIT
# Completed on Sat Mar 11 13:08:36 2006
We took more than an hour, because default routes were not set to use this machine as a gateway, and also the machine blocks pings. Once the gateway was set correctly on his double-homed Win2k3 box, it worked. But we also struggled a bit because of forgetting the two COMMITs, one after each *table. Also, the
echo "1" > /proc/sys/net/ipv4/ip_forwardwas getting overwritten on service network restart, he had to add it to the startup scripts.
Sunday, September 30, 2007
Educational sw and toys
A asked about Educational sw for Ap - so I googled for Educational software 8-10 years and came up with http://www.thekidstoystore.com/sciencekits8.html There's also Google Earth and Geekdad.
Searching Ask Slashdot gave pointers to edubuntu and Tuxpaint - that was for pre-schoolers.(Edit: Edubuntu is hardly for kids!)
And wikipedia has a good listing. 'Where in the World is Carmen Sandiego' can be downloaded from here. And there seem to be quite a few more educational game downloads there too!
And wikipedia has a good listing. 'Where in the World is Carmen Sandiego' can be downloaded from here. And there seem to be quite a few more educational game downloads there too!
bat file for print job
Printing files using
Another option is the SLEEP or WAIT given at http://www.robvanderwoude.com/wait.html Something similar is at http://malektips.com/dos0017.html
Edit:
copy filename.bin lpt1written multiple times in a bat file doesn't work - the printer queue needs some time. One option was to use a Reply statement using the Reply.com given by MS
Another option is the SLEEP or WAIT given at http://www.robvanderwoude.com/wait.html Something similar is at http://malektips.com/dos0017.html
Edit:
type filename.bin > lpt1works fine even if written multiple times.
youtube and others
Checked out the video quality and other issues like copyright etc for uploading on youtube, google videos and archive.org. Archive.org needs a Creative Commons license or something similar. Youtube reduces resolution to 240x180 and restricts to 10 minutes per clip. Google Videos seems to be the best bet - 640x480 res, unlimited length, uploader owns copyright.
Wednesday, September 26, 2007
samba issues
There were some issues with Samba and Windows using "Allow Everyone" shares. R's problem was that his Fedora box had a samba share which he wanted to "Allow Everyone" - configured with the gui, didn't work, with Windows clients getting a forbidden message. Googling with
samba share fedora all everyonefound http://www.linuxquestions.org/questions/showthread.php?t=469209 and passed it on to R. R just added a samba user with the gui and it started working. Apparently his box just had root and no other users, and samba root login was banned.
Tuesday, September 25, 2007
quick phplist faq
> 1) Why does a user get blacklisted.
When a user unsubscribes, he is blacklisted. Which means that no mails, not
even system mails, are sent to him.
> 2) What about the users who have not confirmed. Is there a way to
> resend a request for confirmation mail to them.
Yes, there is such a feature.
Manage Users -> Reconcile Users has many useful links - scroll till the bottom
of the page to see all of them.
> 3) I have sent a mail to AOL users and asked them to subscribe from a
> different domain and deleted them from the list. Are there any other
> domains which give a similar problem?
You can check using "view bounces". Read the reason given by the mailer daemon
for the bounce.
> 4)Is there anything else which I need to know or manage?
Very good documentation at http://docs.phplist.com/Documentation
When a user unsubscribes, he is blacklisted. Which means that no mails, not
even system mails, are sent to him.
> 2) What about the users who have not confirmed. Is there a way to
> resend a request for confirmation mail to them.
Yes, there is such a feature.
Manage Users -> Reconcile Users has many useful links - scroll till the bottom
of the page to see all of them.
> 3) I have sent a mail to AOL users and asked them to subscribe from a
> different domain and deleted them from the list. Are there any other
> domains which give a similar problem?
You can check using "view bounces". Read the reason given by the mailer daemon
for the bounce.
> 4)Is there anything else which I need to know or manage?
Very good documentation at http://docs.phplist.com/Documentation
Sunday, September 23, 2007
logs on media
Logs on media server were filling up system drive once again. Changed log location to Data drive which has more space. Also using 7zip to archive and download older log files. Commandline is
7z a -tzip archive.zip filename*.*
Saturday, September 22, 2007
using autogk to convert mpeg2 to avi
In order to use my workflow for saicast which uses virtualdub, needed avi or mpeg1 input - so, used autogk to convert mpeg2 files to avi. 3.5 hours to convert a 1.1 hr 3.3GB mpeg2 to 2 GB divx avi.
file transfer, samba and sftp
Taking video from video studio via smb on studio's gateway, found that 3.3 GB file was not getting directly sftp'd from the smb-mounted drive - crashing at 2 GB. But copying to local drive over the same smb mount was working! And then sftp worked too. Strange!
flv encoders
Video to flash encoders, freeware from snapfiles.com which has a nice search feature, "look for freeware only". DVDVideoSoft's Free Video to Flash Converter makes a basic html page with a basic player embedded too. But the more full featured converter is Riva FLV Encoder. And took only 10-15 minutes for a 50 minute vcd file to be converted to 200 kbps flv file.
PsPad - nice free text editor with nifty features
Looking for a nice text editor, from googled reviews, found pspad freeware editor. Download link for pspad was from snapfiles.com, and that led to some more finds, video to flash convertors...
Friday, September 21, 2007
find files with GNU find
Syntax to remember -
find /path/where/to/look -name *.mpgwill search for *.mpg in all sub-directories of /path/where/to/look too.
Tuesday, September 18, 2007
Tight VNC tunneled over ssh
As written in my previous post, tightvnc was using far less bandwidth - only 100 kbps instead of 500 kbps for X over ssh. To sum up the setup, run on remote machine
vncserver :63 -geometry 1024x768 -localhost -depth 8For linux client machine, add to ~/.bash_profile
VNC_VIA_CMD='/usr/bin/ssh -2 -c aes128-cbc -x -f -L %L:%H:%R %G sleep 20'Run client as
export VNC_VIA_CMD
vncviewer -encodings Tight -depth 8 -quality 1 -via ip.address.of.remote localhost:63where you should change ip.address.of.remote to the appropriate address, of course. And for Windows clients, Putty should have the tunneling set up as
L5963 localhost:5963
using netstat on Windows
Netstat is always useful for finding open ports, whether a service is running as expected and so on. As listed at http://www.petri.co.il/quickly_find_local_open_ports.htm
netstat -ao |find /i "listening"to find process id and open ports. Process id can be mapped to process name with Windows Task Manager, choose to view PID from View -> Select Columns.
open links in firefox
Links in emails were not opening in firefox directly, but were loading from kde cache, like
file:///var/tmp/kdecache...The solution is to use a %u as given in KDE-Forum. In KDE Control Centre, Components -> File Associations -> Text -> html , make the Command line read as
'/path/to/firefox' %u
Monday, September 17, 2007
optimizing X over WAN
Many different ways of optimization, like using ssh -C to enable compression, using tightvnc which uses tight encoding instead of gzip encoding of the ssh -C option, using servers like NX server
Thought I'd try tightvnc, since there's a simple but elegant step-by-step guide available with bandwidth comparisons - big difference noted between hextile and tight encodings.
Thought I'd try tightvnc, since there's a simple but elegant step-by-step guide available with bandwidth comparisons - big difference noted between hextile and tight encodings.
Friday, September 14, 2007
tracing routes
Doing traceroutes to digistu and to Calicut, found Calicut in 5 hops (same dataone network) while digistu was 14 hops away from my room in the next building!
Tracing route to 59.93.39.123 over a maximum of 30 hops
1 28 ms 29 ms 29 ms 59.93.60.129
2 51 ms 51 ms 51 ms 218.248.249.21
3 * * * Request timed out.
4 62 ms 60 ms 63 ms 218.248.253.110
5 85 ms 65 ms 69 ms 59.93.39.123
Tracing route to [(digistu dest)]
over a maximum of 30 hops:
1 28 ms 28 ms 30 ms 59.93.64.1
2 64 ms 63 ms 64 ms 218.248.249.21
3 64 ms 64 ms 64 ms 218.248.249.10
4 59 ms 61 ms 60 ms 218.248.255.61
5 61 ms 61 ms 60 ms 218.248.255.14
6 78 ms 79 ms 79 ms 203.197.20.98.static.vsnl.net.in [203.197.20.98]
7 78 ms 79 ms 78 ms lvsb-vsb-stm4.Bbone.vsnl.net.in [202.54.2.189]
8 106 ms 106 ms 107 ms 59.163.16.41.static.vsnl.net.in [59.163.16.41]
9 106 ms 107 ms 106 ms 59.163.16.41.static.vsnl.net.in [59.163.16.41]
10 107 ms 107 ms 107 ms 202.54.84.85 [202.54.84.85]
11 101 ms 101 ms 100 ms 203.197.162.53.ill-bgl.static.vsnl.net.in [203.197.162.53]
12 * 102 ms 101 ms 203.197.165.238.ill-bgl.static.vsnl.net.in [203.197.165.238]
13 108 ms 108 ms 107 ms one hop away
14 115 ms 115 ms 115 ms dest
Thursday, September 13, 2007
download issues on saicast
The Hariharan video on saicast attracted a large number of downloads, mostly from India, so the inefficiencies of the code were exposed. Server ran out of memory pretty quickly. Changed the ADODB.Stream object's buffering to be more sane - from code snippet at http://www.webservertalk.com/archive120-2004-8-342917.html
found by googling ADODB.Stream large file
found by googling ADODB.Stream large file
for i = 0 to objStream.sizeMy earlier trials along same lines did not work when I tried the Binarywrite and the Read calls in different lines, probably since I didn't save the Read's return value in a variable or something. When it had not worked, briefly tried a javasript-based solution:
i = i + 128000
Response.BinaryWrite(objStream.Read(128000))
Response.Flush
next
<script language="JavaScript" type="text/JavaScript">The experts exchange link had some small syntax problems like SaveAs not within quotes, script tag not having the language=Javascript etc. Abandoned this as unsuitable because IE6 on WinXP was playing the file in Windows Media Player instead of showing the download box. Firefox, Konqueror, IE7 etc worked, Safari also did not work.
function forcedown(x){
myTempWindow = window.open(x,"SSS");
myTempWindow.document.execCommand("SaveAs",null,x);
myTempWindow.close();
}
</script>
....
<a href="javascript://" onclick="forcedown('http://downloads.radiosai.org/filename.wmv');">dwnld</a>
bandwidth usage
Checked out various apps bandwidth usage for the Dataone connection, using Ethereal.
Skype without video:
9 kbytes per second = approx 75 kbps = 36 MBytes per hour
ssh usage without X = 1 kbyte per second (heavy usage) = 4 MBytes/ hr
X over ssh usage = 63 kbytes per sec = approx 500 kbps = 230 MBytes per hour
Web based admin - phplist:
3 kbytes per second = approx 25 kbps = 12 MBytes per hour
Checking gmail with full interface:
5 kbytes per second = approx 45 kbps = 18 MBytes per hour
Remote Desktop on Windows:
3 kbytes per second = approx 25 kbps = 12 MBytes per hour
So, we've decided to go for an uncapped connection!
Skype without video:
9 kbytes per second = approx 75 kbps = 36 MBytes per hour
ssh usage without X = 1 kbyte per second (heavy usage) = 4 MBytes/ hr
X over ssh usage = 63 kbytes per sec = approx 500 kbps = 230 MBytes per hour
Web based admin - phplist:
3 kbytes per second = approx 25 kbps = 12 MBytes per hour
Checking gmail with full interface:
5 kbytes per second = approx 45 kbps = 18 MBytes per hour
Remote Desktop on Windows:
3 kbytes per second = approx 25 kbps = 12 MBytes per hour
So, we've decided to go for an uncapped connection!
Tuesday, September 11, 2007
bug litany
saispace2 has lots of problems under Windows. And in spite of running squeaky-clean licensed sw! There's the inserting-DVD-crashing-system problem I've already mentioned, and also Windows Media Encoder randomly crashing during the second pass. Not so random, either. Opening another app or Firefox tab has triggered it on occasion, so nowadays I leave it for encoding turning off all other apps including IM clients. Probably something to do with HDD not being able to keep up, since it happens more often when audio and video are separate files. Fortunately the partial output file can be joined to another partial file, and some time can be saved. Similar problem seen with Virtualdub trying to import an mpg file from a Que Firewire HDD. Lots o' errors. Copy the file to internal SATA drive and then import, no probs at all. The Que drive also has other problems with writes, for eg. MusicMatch jukebox mp3 encoding sometimes fails when that drive is the target. Workarounds, workarounds.... Maybe I should look for motherboard driver update for the Intel 865 GBF.
Monday, September 10, 2007
currently busy with
Stuff I'm doing nowadays:
1. Processing a clutch of videos for saicast
2. Trying to follow up on the new php code for radiosai schedule page
3. Processing a little audio on the side, at least a little
4. Mandir recordings and playlist making as ususal
1. Processing a clutch of videos for saicast
2. Trying to follow up on the new php code for radiosai schedule page
3. Processing a little audio on the side, at least a little
4. Mandir recordings and playlist making as ususal
Sunday, September 09, 2007
reverted to PPPoE from laptop
After my last post, found that there seemed to be no way to do port forwarding in the UT300R2U ADSL router's web interface, so reverted to bridge mode using PPPoE from the computer by resetting to factory settings pressing the recessed button provided.
Saturday, September 08, 2007
BSNL Dataone broadband and UT300R2U ADSL router
Took more than an hour to configure the UT300R2U ADSL router to do PPPoE dialout for BSNL Dataone - even my previous experience was not enough to clear all the hurdles. This particular model number has been used for a large number of different routers, or at least very different firmware. And adding to the confusion was the different instructions for bridge mode (which is not what we want) which were the google matches. Anyway: First mistake was to keep the existing "WAN interfaces" enabled: they have to be disabled, or more easily, just deleted. Then, some of the settings in the wizard needed to be changed from the default for the connection to work. Here's the step-by-step procedure.
0. Reset the router to factory settings in case it's been altered significantly.
1. Set up your ethernet interface to have a static ip of 192.168.1.2. Make 192.168.1.1 the default gateway as well as DNS server. Connect ethernet cable to router.
2. Go to the router's config interface at http://192.168.1.1 - by default
username = admin
password = admin.
3. Go to Advanced Setup -> WAN on the left side menu and delete all other interfaces except the one with PPPoE (or delete all and start from scratch)

4. Using Edit if you're not making a new interface with Add, you get the next screen, where you make sure the VPI/VCI are 0 and 35.

5. In the next screen, make sure PPPoE is chosen as connection type, and encapsulation mode is LLC.

6. In the next screen, give your username and password, call the service name dataone, and most importantly, uncheck all the checkboxes, especially the one saying "Bridge PPoE Frames".

7. In the next screen, make sure "Enable WAN service" is checked. Multicast is optional.

8. In the next screen click "Save"

9. Finally click "Save/Reboot"

After the Router power cycles and the DSL light comes back on, you should find PPPoE UP in the WAN Status.
0. Reset the router to factory settings in case it's been altered significantly.
1. Set up your ethernet interface to have a static ip of 192.168.1.2. Make 192.168.1.1 the default gateway as well as DNS server. Connect ethernet cable to router.
2. Go to the router's config interface at http://192.168.1.1 - by default
username = admin
password = admin.
3. Go to Advanced Setup -> WAN on the left side menu and delete all other interfaces except the one with PPPoE (or delete all and start from scratch)
4. Using Edit if you're not making a new interface with Add, you get the next screen, where you make sure the VPI/VCI are 0 and 35.
5. In the next screen, make sure PPPoE is chosen as connection type, and encapsulation mode is LLC.
6. In the next screen, give your username and password, call the service name dataone, and most importantly, uncheck all the checkboxes, especially the one saying "Bridge PPoE Frames".

7. In the next screen, make sure "Enable WAN service" is checked. Multicast is optional.
8. In the next screen click "Save"
9. Finally click "Save/Reboot"
After the Router power cycles and the DSL light comes back on, you should find PPPoE UP in the WAN Status.
Saturday, September 01, 2007
miscellany
Over the last few days:
1. P's Powerbook G4 65 watt power adapter - seems to be faulty, tho simple multimeter voltage readings show nothing even for the iBook's working 45 watt adapter. The 65 w adapter has a light at the end of the plug which used to light up when they touch the plug tip, it no longer lights up. And no charge indication on the Powerbook either. Apple Bangalore asked for Rs. 2,500 for just testing! Cheaper to buy a new adapter!
2. Some progress on the RadioSai schedule page being written for us by B in php, the schedule not being shown by default was my crib, it turns out it just needed the DefaultStreamId to be set properly in the Constants section. Now maybe we can stuff it with data and do performance tests.
3. Saicast download: not the bandwidth hog we had feared - maybe people are just coming to know about this feature slowly.
4. Nessus audits for our machines, ITC. Also told R about it. Planning on Snort/Tripwire also.
5. Phplist - exporting users and importing - need to first delete blacklisted (meaning unsubscribed) users and also unconfirmed users, since importing auto-confirms. P also reports crashes for importing all 20k+ users, so he's exporting 5k at a time or something like that.
6. R on security implications of ERP software running on JBoss without SSL, ettercap and such. Various ways of making it SSL, like http://freebsdhowtos.com/117.html and also worst case fix of using a remote login with SSH!
7. Lots of Mandir recordings.
8. Video studio recording floor D contemplating
Mackie TT24 and Marian Marc X 24.
9. The Yamaha AW4416 in Mandir is having hard disk problems, I think. Sometimes (when it is hot) doesn't shut down normally, with the hdd light continuously lit, stuck at 'change mode to Song' or 'Save Song'. Maybe formatting the hdd will help?
10. Many cards blown on the Annual Motion slot: Is it due to overheating or is there a short or is there a defect in the cards which came back after repair? Also, down to last spare lamp for Star projector.
1. P's Powerbook G4 65 watt power adapter - seems to be faulty, tho simple multimeter voltage readings show nothing even for the iBook's working 45 watt adapter. The 65 w adapter has a light at the end of the plug which used to light up when they touch the plug tip, it no longer lights up. And no charge indication on the Powerbook either. Apple Bangalore asked for Rs. 2,500 for just testing! Cheaper to buy a new adapter!
2. Some progress on the RadioSai schedule page being written for us by B in php, the schedule not being shown by default was my crib, it turns out it just needed the DefaultStreamId to be set properly in the Constants section. Now maybe we can stuff it with data and do performance tests.
3. Saicast download: not the bandwidth hog we had feared - maybe people are just coming to know about this feature slowly.
4. Nessus audits for our machines, ITC. Also told R about it. Planning on Snort/Tripwire also.
5. Phplist - exporting users and importing - need to first delete blacklisted (meaning unsubscribed) users and also unconfirmed users, since importing auto-confirms. P also reports crashes for importing all 20k+ users, so he's exporting 5k at a time or something like that.
6. R on security implications of ERP software running on JBoss without SSL, ettercap and such. Various ways of making it SSL, like http://freebsdhowtos.com/117.html and also worst case fix of using a remote login with SSH!
7. Lots of Mandir recordings.
8. Video studio recording floor D contemplating
Mackie TT24 and Marian Marc X 24.
9. The Yamaha AW4416 in Mandir is having hard disk problems, I think. Sometimes (when it is hot) doesn't shut down normally, with the hdd light continuously lit, stuck at 'change mode to Song' or 'Save Song'. Maybe formatting the hdd will help?
10. Many cards blown on the Annual Motion slot: Is it due to overheating or is there a short or is there a defect in the cards which came back after repair? Also, down to last spare lamp for Star projector.
posting for posting's sake
Lots of stuff to be put in here, but I need a breather in which to do it. Lots o' audio to be processed, fires which need to be put out, etc etc...
Sunday, August 19, 2007
fiber cut
Our internal fiber was cut at PS by some earthmoving equipment, so I've to use a USB key and sneakernet , walking to the Studio to finish work and access the Net.
Monday, August 13, 2007
Krishna reinstall
Had to reinstall krishna - forced into it by a compromise - so mail and search services were down for a day. Luckily Mandriva 2006 and 2007.1 are not too different, so many apps worked as before with just a copy-paste of the config files. Including the databases.
wordpad corrupts IIS Metabase.xml file
Once again, after my earlier post, had this bad experience. This time even after stopping IIS and then opening the metabase. So, it is definitely wordpad's fault, notepad doesn't corrupt, so use notepad alone for editing metabase.xml. ( %SystemRoot%\System32\Inetsrv\MetaBase.xml )
Saturday, August 04, 2007
copying text from a locked pdf file
1. Used PDF Edit tools from http://www.filehunter.com/ to remove the lock
2. This is shareware, adds watermark text which says
3. Used pdftohtml - http://pdftohtml.sourceforge.net/ - to convert to html
4. Used find and replace in a text editor like kwrite to remove the watermark text after text conversion.
2. This is shareware, adds watermark text which says
THIS IS A DEMONSTRATION
PAGE PRODUCED BY
PDFEditTools
You can order the program at
www.filehunter.com
3. Used pdftohtml - http://pdftohtml.sourceforge.net/ - to convert to html
4. Used find and replace in a text editor like kwrite to remove the watermark text after text conversion.
Sunday, July 29, 2007
text formatting with vim and vi
Vim helped me out twice over the last few days.
A virus spam complaint about our postfix server - could use the "find" command to easily locate the surrounding lines in /var/log/mail/info to show that it was just bouncing a virus mail.
Find (forward) in vi = /characters_to_find
Find backwards = ?characters_to_find
Find next = n
Find next in the opposite direction = N
The next tip was from a thread in the comments section of an article on freshmeat on how to make emails palatable to the Linux community.
But gq} works when there are paragraph breaks - two newlines.
A virus spam complaint about our postfix server - could use the "find" command to easily locate the surrounding lines in /var/log/mail/info to show that it was just bouncing a virus mail.
Find (forward) in vi = /characters_to_find
Find backwards = ?characters_to_find
Find next = n
Find next in the opposite direction = N
The next tip was from a thread in the comments section of an article on freshmeat on how to make emails palatable to the Linux community.
we vim users have an extra-nifty trick available.The second part is not working for me - it complains about no match for ^--
gq} will reformat the current paragraph, while magically preserving > > -style quoting!
gq/^--/-1 will do it from the cursor until your signature, which is even better.
But gq} works when there are paragraph breaks - two newlines.
Thursday, July 19, 2007
iBook + iCab, but no ethernet
iCab installed on the iBook, browsing is now up to par, but the ethernet port seems to be broken - switch light flashes green instead of steady green.
Getting DivX to work with TT's tutorial, updating software using the list at pure-mac.com - OldVersion.com is useful only for Windows software.
Update: Upgrading to Quicktime 6 broke DivX playback. Downgrading to QT 5 involved first removing QT6 and then installing QT5. Removing software on the mac = dragging all associated files to the Trash. Used Sherlock to find files with 'Quicktime' in their name. DivX works with QT5 and the 3ivX codec using DivX Doctor, but files with resolution 720x480, for example, play at some 10 fps, probably because the processor can't keep up.
Getting DivX to work with TT's tutorial, updating software using the list at pure-mac.com - OldVersion.com is useful only for Windows software.
Update: Upgrading to Quicktime 6 broke DivX playback. Downgrading to QT 5 involved first removing QT6 and then installing QT5. Removing software on the mac = dragging all associated files to the Trash. Used Sherlock to find files with 'Quicktime' in their name. DivX works with QT5 and the 3ivX codec using DivX Doctor, but files with resolution 720x480, for example, play at some 10 fps, probably because the processor can't keep up.
Wednesday, July 18, 2007
GMail and Blogger not usable on the iBook with IE
Since the iBook had IE 5.1 for Mac, it doesn't recognize the xhtml mime type: this is discussed in the Wikipedia and elsewhere but Gmail and Blogger seem to have issues with it still. User-agent code needs a brushing up, probably. Finally got the previous post's text uploaded thru Yahoo Mail, since the USB port was recessed and the mem-key was not able to go in without an extension cable.
Short guide to the Mac for PC users
After "rescuing" the Tangerine iBook from M, I'm "trying to find it a good home". Since almost no one has used Macs here, I have this small guide to get them started.
Intro to an iBook for a Windows PC user:
1. In MacOS 9 and below, there is no Start Menu: you have to navigate to the app's location and double-click on it to start any application.
2. Menus remain at the top, closing the window doesn't shut down the app.
3. Just like Alt-F4 in Windows, use Apple-Q in MacOS to quit an app - or choose File -> Quit from the menu.
4. List of all open apps, something like the taskbar, is available on the rhs of the menu on clicking the button there.
5. The equivalent of Windows Explorer is called Finder.
6. Drag and drop the CD-ROM / removable disk icon to trash in order to eject a CD / removable disk.
7. The online Help system is quite good.
Intro to an iBook for a Windows PC user:
1. In MacOS 9 and below, there is no Start Menu: you have to navigate to the app's location and double-click on it to start any application.
2. Menus remain at the top, closing the window doesn't shut down the app.
3. Just like Alt-F4 in Windows, use Apple-Q in MacOS to quit an app - or choose File -> Quit from the menu.
4. List of all open apps, something like the taskbar, is available on the rhs of the menu on clicking the button there.
5. The equivalent of Windows Explorer is called Finder.
6. Drag and drop the CD-ROM / removable disk icon to trash in order to eject a CD / removable disk.
7. The online Help system is quite good.
Saturday, July 14, 2007
extracting audio from DVD
To get an audio-only file: guide at http://www.dvd-guides.com/content/view/136/59/
found via videohelp.com - the guide uses DVD Decrypter and Goldwave, I used WinAmp with Disk-Writer plugin instead of Goldwave for the .wav conversion. Initially, the WinAmp playback of the mp2 file and saving to file was buggy - clicks at every second or so. Found that it was playing back fine in Windows Media Player. Found some info at this page - http://www.free-codecs.com/download/MP4_Input_Plugin_for_Winamp.htm leading me to remove the mp2 extension in the list of the Nullsoft MP1-MP2 plugin and add it to the Directshow plugin instead. Then it works fine.
Ctrl-P in WinAmp -> Plug-ins -> Input -> Choose relevant plugin, hit the configure button, add / remove extensions in the File Association Extension list.
found via videohelp.com - the guide uses DVD Decrypter and Goldwave, I used WinAmp with Disk-Writer plugin instead of Goldwave for the .wav conversion. Initially, the WinAmp playback of the mp2 file and saving to file was buggy - clicks at every second or so. Found that it was playing back fine in Windows Media Player. Found some info at this page - http://www.free-codecs.com/download/MP4_Input_Plugin_for_Winamp.htm leading me to remove the mp2 extension in the list of the Nullsoft MP1-MP2 plugin and add it to the Directshow plugin instead. Then it works fine.
Ctrl-P in WinAmp -> Plug-ins -> Input -> Choose relevant plugin, hit the configure button, add / remove extensions in the File Association Extension list.
Tuesday, July 10, 2007
firefox download manager
Wanted a download manager with the option to queue downloads, so that our net connection wouldn't get overloaded with too many simultaneous downloads. DownThemAll seems to be a good solution. It has options for using as a download accelerator, too.
Sunday, July 08, 2007
wifi, SPDIF, tv out and dual display
More tests on the Acer Aspire laptop:
Wifi:
Wifi finally enabled thru ndiswrapper. It probably works with the Atheros driver from madwifi latest svn build, but didn't try it. Took quite a while get it working because I tried to take short-cuts which didn't work. First tried with the kernel source given in the DVD, didn't work since an update had upgraded the kernel from 2.6.17-13mdv to 2.6.17-14mdv. Then, I disregarded a forum post saying the latest madwifi patches will be needed, and madwifi stable didn't work. Then used old version of ndiswrapper on the DVD, didn't work with the Windows driver. Finally worked with latest stable ndiswrapper tar.gz. I've not tested with a hotspot, just saw that Mandrake Control Centre and ifconfig recognize the interface wlan0. Left it disabled since A doesn't have wifi at home.
TV out:
Works in Windows, NTSC, after going to Intel display properties tab after clicking display properties Advanced button, needs the connector to be plugged in before the settings appear. Doesn't work in Linux.
External Monitor:
Works in Windows and Linux, Windows has option of switching between Extended Desktop on CRT, Cloned Desktops on LCD and CRT, LCD only and CRT only modes, while on Linux Cloned displays on both is the only option. If external monitor is connected, BIOS, GRUB etc display only on the external monitor. When Ext Monitor and TV-out work, video overlays on those displays were working too - videos played in KMplayer and Xine for Windows and Linux tests.
Details of wifi exteriments:
Using http://madwifi.org/wiki/UserDocs/Distro/Mandrake/OldGuides
inside the madwifi directory, ran
)))))))))))))))))))))))))))))))))))))))))))))))))
Got new kernel source, did again. Then,
So trying ndiswrapper instead of trying cvs and stuff.
))))))))))))))))))))))))))))))))))))))))))))))))
Using the ndiswrapper installation instructions:
lspci gave
03:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
lspci -n gave
03:00.0 0200: 168c:001c (rev 01)
Next to check out the windows drivers and use them.
c:\windows\system32\drivers\ar5211.sys
C:\Program Files\Atheros\Wireless\Driver\net5211.inf
With the ndsiwrapper 1.21 which was included in Mandriva 2007.1, /var/log/messages gave
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Finally installed latest stable ver 1.47 from ndiswrapper.sourceforge.net, installed wireless tools, now all ok.
Wifi:
Wifi finally enabled thru ndiswrapper. It probably works with the Atheros driver from madwifi latest svn build, but didn't try it. Took quite a while get it working because I tried to take short-cuts which didn't work. First tried with the kernel source given in the DVD, didn't work since an update had upgraded the kernel from 2.6.17-13mdv to 2.6.17-14mdv. Then, I disregarded a forum post saying the latest madwifi patches will be needed, and madwifi stable didn't work. Then used old version of ndiswrapper on the DVD, didn't work with the Windows driver. Finally worked with latest stable ndiswrapper tar.gz. I've not tested with a hotspot, just saw that Mandrake Control Centre and ifconfig recognize the interface wlan0. Left it disabled since A doesn't have wifi at home.
TV out:
Works in Windows, NTSC, after going to Intel display properties tab after clicking display properties Advanced button, needs the connector to be plugged in before the settings appear. Doesn't work in Linux.
External Monitor:
Works in Windows and Linux, Windows has option of switching between Extended Desktop on CRT, Cloned Desktops on LCD and CRT, LCD only and CRT only modes, while on Linux Cloned displays on both is the only option. If external monitor is connected, BIOS, GRUB etc display only on the external monitor. When Ext Monitor and TV-out work, video overlays on those displays were working too - videos played in KMplayer and Xine for Windows and Linux tests.
Details of wifi exteriments:
Using http://madwifi.org/wiki/UserDocs/Distro/Mandrake/OldGuides
inside the madwifi directory, ran
make KERNELPATH=/usr/src/linux-2.6.17-13mdvKernel couldn't load the module on modprobe.
make KERNELPATH=/usr/src/linux-2.6.17-13mdv install
cp -rf /lib/modules/2.6.17-13mdv/net/* /lib/modules/2.6.17-14mdv/kernel/net
)))))))))))))))))))))))))))))))))))))))))))))))))
Got new kernel source, did again. Then,
modprobe -v ath_pcigives in /var/log/messages
Jul 2 09:43:21 aceraspire kernel: ath_pci: 0.9.4.5 (0.9.3.1)
Jul 2 09:43:21 aceraspire kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
Jul 2 09:43:21 aceraspire kernel: wifi%d: unable to attach hardware: 'Hardware didn't respond as expected' (HAL status 3)
Jul 2 09:43:21 aceraspire kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
So trying ndiswrapper instead of trying cvs and stuff.
))))))))))))))))))))))))))))))))))))))))))))))))
Using the ndiswrapper installation instructions:
lspci gave
03:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)
lspci -n gave
03:00.0 0200: 168c:001c (rev 01)
Next to check out the windows drivers and use them.
c:\windows\system32\drivers\ar5211.sys
C:\Program Files\Atheros\Wireless\Driver\net5211.inf
With the ndsiwrapper 1.21 which was included in Mandriva 2007.1, /var/log/messages gave
Jul 3 13:29:48 aceraspire kernel: ndiswrapper version 1.21 loaded (preempt=no,smp=yes)
Jul 3 13:29:48 aceraspire loadndisdriver: loadndisdriver: load_driver(361): couldn't load driver net5211
Jul 3 13:29:48 aceraspire kernel: ndiswrapper (import:241): unknown symbol: ntoskrnl.exe:'ZwDeleteKey'
Jul 3 13:29:48 aceraspire kernel: ndiswrapper (load_sys_files:215): couldn't prepare driver 'net5211'
Jul 3 13:29:48 aceraspire kernel: ndiswrapper (load_wrap_driver:113): loadndiswrapper failed (65280); check system log for messages from 'loadndisdriver'
)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Finally installed latest stable ver 1.47 from ndiswrapper.sourceforge.net, installed wireless tools, now all ok.
Friday, July 06, 2007
making DVD slide shows
Found Windows and Linux tools for making DVD slide shows for K*R :
Windows: DVD slideshow GUI
Linux: Slideshow Creator
Edit: But they have their idiosyncracies... slcreator needs gambas, so I directly tried it's backend, dvd-slideshow. Dependencies like ImageMagick > 5.5.4, mjpegtools, dvdauthor were already on saispace2, so tried installing and running it from there. The bundled dir2slideshow script easily produces the required input text file. But Imagemagick (composite) gave errors - lines similar to these:
Running dvd-slideshow on aceraspire - Running the program with the images located in a remote samba share gave an error, the smb share getting disconnected. Most probably some issue with samba on the aceraspire. Copied the pix locally and ran, all 605 pixs at once. Chugged along, each 2-second cross-fade taking nearly 15 seconds to render! But the whole process took only 2.5 hours for 1.5 hour long video file to be output as a vob.
Running DVD-slidehow-GUI on Windows on saispace2:
If captions are enabled, AVISynth subtitle engine gives an error when there are 18 or more images, saying can't find the temp file DVDsGUItemp.ssa even tho' it is in the path mentioned in the error dialog.
I suspect it is because the program is addding too much white space at the beginning of the ssa file - with 1-2 pictues, the subtitling works, and as more pix are added, the ssa file gets more white-space at the beginning. And again, after removing the subtitles in preferences, the program works, but takes up so much memory that the system (512 MB RAM, 512 MB swap file) runs out of memory if all the 600+ images are added at once. So, doing them 100 at a time. It also takes roughly 4 times real-time - so a slide show of 5 minutes takes 20 minutes to prepare the MPEG2 file.
Windows: DVD slideshow GUI
Linux: Slideshow Creator
Edit: But they have their idiosyncracies... slcreator needs gambas, so I directly tried it's backend, dvd-slideshow. Dependencies like ImageMagick > 5.5.4, mjpegtools, dvdauthor were already on saispace2, so tried installing and running it from there. The bundled dir2slideshow script easily produces the required input text file. But Imagemagick (composite) gave errors - lines similar to these:
composite -compose src-over -gravity center -type TrueColor -depth 8unknown option src-over.
Running dvd-slideshow on aceraspire - Running the program with the images located in a remote samba share gave an error, the smb share getting disconnected. Most probably some issue with samba on the aceraspire. Copied the pix locally and ran, all 605 pixs at once. Chugged along, each 2-second cross-fade taking nearly 15 seconds to render! But the whole process took only 2.5 hours for 1.5 hour long video file to be output as a vob.
Running DVD-slidehow-GUI on Windows on saispace2:
If captions are enabled, AVISynth subtitle engine gives an error when there are 18 or more images, saying can't find the temp file DVDsGUItemp.ssa even tho' it is in the path mentioned in the error dialog.
AVISynth Open Failure - TextSub: Can't open "q:\path\DVDsGUItemp.ssa"
I suspect it is because the program is addding too much white space at the beginning of the ssa file - with 1-2 pictues, the subtitling works, and as more pix are added, the ssa file gets more white-space at the beginning. And again, after removing the subtitles in preferences, the program works, but takes up so much memory that the system (512 MB RAM, 512 MB swap file) runs out of memory if all the 600+ images are added at once. So, doing them 100 at a time. It also takes roughly 4 times real-time - so a slide show of 5 minutes takes 20 minutes to prepare the MPEG2 file.
wget saves the day
K*R wanted some wedding pics of a relative, from a US photo site which I won't mention here. They had a painful java applet interface, one photo viewable every 30 seconds, for ordering only. Checked the code, found the path to the images, and wget was able to suck them all out easily! Used the following code from http://www.cyberciti.biz/tips/how-to-generating-print-range-sequence-of-numbers.html to create a text file of images:
for i in $(seq 605); do echo "http://url _ $i _ .jpg"; done > list.txtand then used
wget -i list.txt --random-wait --wait=2
Saturday, June 30, 2007
java plugin problem
In spite of following the instructions given at Mandrivausers there seems to be some problem with the java plugin on the Acer, probably due to the update to Firefox 2.0.0.4 . Interestingly, Konqueror is able to pick up the plugin from the /usr/lib/mozilla/plugins folder, and java is working fine with it.
blogger issue with captchas
There seems to be some issue with blogger captchas after the auto-save is introduced - every single time it refuses the captcha first entered with "ERROR - Enter the letters as they are shown in the image." if the post has been auto-saved.
Edit: searching for captcha on the Blogger help group led me to this thread, so now I've submitted the review form noting that I'm not a spam-bot.
Edit: searching for captcha on the Blogger help group led me to this thread, so now I've submitted the review form noting that I'm not a spam-bot.
solving audio quirks
My first laptop post was perhaps overly euphoric. There's an issue with the audio - plugging in headphones doesn't automatically mute the speakers. Thankfully, there's a solution, from linux-on-laptops.net The Acer Aspire 3680 entry noted that muting the "Surround" in the mixer, Kmix in my case, mutes the speakers, with sound still coming in the headphones. Also, the function keys - Fn-F8 for muting, Fn-DownArrow for decreasing volume and Fn-UpArrow for increasing - don't work. Another tweak which was required was to change the "Master Channel" by right-clicking and choosing 'Select Master Channel' - it was PC speaker, changed to PCM. This is so that now a single click on the Volume Control should be enough for controlling sound, without needing to open the full mixer.
Another nice link from linux-on-laptops was via the forum to this page - nice links to free audio software including Ardour.
Another nice link from linux-on-laptops was via the forum to this page - nice links to free audio software including Ardour.
Friday, June 29, 2007
installing java plugin
Surprisingly, Java plugin was not installed properly on saispace2. After the upgrade to firefox2, did that too. The arcana was from http://www.mozilla.org/support/firefox/faq.html#q2.2 and in my case, the command was
ln -s /usr/java/jre1.5.0/plugin/i386/ns7/libjavaplugin_oji.sofound by doing
rpm -ql jre
video player shootout
checking out media players on Mandriva 2007: Mplayer aspect ratio seems to be broken - seems to assume a 4:3 screen, and since the screen is not 4:3, is skewed. VLC and xine were OK. Totem and KMplayer seem to have a gamma problem - picture is washed out. And the players have problems with 3D desktop enabled. With Metisse, mplayer doesn't play without changing the vo option. VLC gets blocky - pixel interpolation seems to have gone for a six. Xine and Kmplayer with xine develop an interlacing problem. With Compiz and Beryl, VLC plays ok in windowed mode but black-screens on giving full-screen command. Xine is OK.
Tuesday, June 26, 2007
Mandriva 2007.1 on Acer Aspire 3684NWXCi
Got this machine for A - supposed to come pre-loaded with Linux, but the naughty dealer has put in an OEM version of pre-activated XP. 80 GB hdd was partitioned into 20 GB pieces, so the easy way out was to just leave everything as it was except to pop in Mandriva 2007.1 Free DVD and install it, removing the "D:" partition.
First looks - very impressive, with 3D desktops in three different flavours, each one configurable till one drops... Everything tried till now has worked out of the box - even the usual suspects ACPI battery monitor, sleep, WiFi, etc. The display was 1024x768 on first boot, but on opening drakconf and going to Hardware -> Change screen resolution , it prompted to change driver to the accelerated 915 driver, and then on X restart changed to 1280x800 as it should be. Then the 3D desktops - quite nice eye candy... More later.
First looks - very impressive, with 3D desktops in three different flavours, each one configurable till one drops... Everything tried till now has worked out of the box - even the usual suspects ACPI battery monitor, sleep, WiFi, etc. The display was 1024x768 on first boot, but on opening drakconf and going to Hardware -> Change screen resolution , it prompted to change driver to the accelerated 915 driver, and then on X restart changed to 1280x800 as it should be. Then the 3D desktops - quite nice eye candy... More later.
Monday, June 11, 2007
using the dialup - backup connectivity
Leased line failure, had to go back to dialup for a week. Dnj helped PB to locate the modem in the server room itself, with a long telephone cable connection over lan cable laid in just 30 minutes. kppp on krishna connected OK, but for the connection to work, the eth1 had to be disabled - it had the default gateway. For using from another machine, connected over eth1 - like me, for example, instead of disabling eth1, just commented out the
GATEWAY=...line in /etc/sysconfig/network . Since I'd also commented out (actually deleted) the line
FORWARD_IPV4=trueafter the leased line came back online, I had to restore it using drakconf and later disable shorewall.
Thursday, May 24, 2007
sssu.edu.in
The new domain sssu.edu.in is now operational. There was an error with the mail server: I'd forgotten to add to main.cf as per the readme and another thing was that I'd used a CNAME as the MX record which is not allowed, according to dnsstuff.com. Corrected.
Tuesday, May 15, 2007
making NTSC / PAL changes persistent
Using the video camera for skype as mentioned earlier, the NTSC setting was not being saved in the video source settings - it was reverting to PAL on reboot, when skype restarts. Googled and found a solution here. Downloaded VideoWDMControl v2.2, put it in the startup so that as soon as the machine boots up, the source can be set. But still, it would be better if the changes could remain after a reboot.
Thursday, May 10, 2007
PDF Split and Merge
Via freshmeat.net, a freeware for splitting and joining PDFs for R - another idea for doing this was to print to pdf stating print pages 1-3 or whatever. This guy has a nice revenue model - asks for donations for the compiled version of enhanced version, while giving away the source, and the basic version, free.
skype with video
Over the last few days, some activity on skype, tried out the webcam feature using the Sony Handycam TRV-36. Nice, full-motion video, good even in full-screen mode, unlike Yahoo.
DVD Decrypter for reading DVDs with errors
DVD Decrypter's nice retry feature and error correction mechanism are pretty robust. In case some file is not readable otherwise, copy to hard disk using "File" mode and then run DVDShrink if necessary in "Re-author" mode to create ISO file. This way, files which Fair Use Wizard can't encode directly are also made available.
mounting various large hard disks
Some days back we'd mounted a 250 GB hd on developer on the linux machines using samba - the fstab entry is
On our Jo'berg server, the hard disk is on the same machine, so the fstab entry for mounting it is given in a previous post.
//path/to_share /path/to/mount/folder smbfs rw,credentials=/path/to/credentials.txt,uid=500,gid=500 0 0where the uid and the gid are the user and group ids of the user who needs rw access to the share. For finding a user's uid and gid, the command is
id username
On our Jo'berg server, the hard disk is on the same machine, so the fstab entry for mounting it is given in a previous post.
Wednesday, May 09, 2007
helping TB with another domain
Spent an hour with TB's manager's domain from nettigritty. Authoritative name servers for the domain were not configured properly. Logging in to http://domain.nettigritty.com/customer
In the Management console, clicking Domain Registration, Clicking on Modify Name Server in the second row, changed the name servers from ns11.nettigritty.com etc to
dns1.interactivedns.com
dns2.interactivedns.com
dns3.interactivedns.com
dns4.interactivedns.com
This did the trick. Dns changes took approx 10-15 minutes, then it started working.
In the Management console, clicking Domain Registration, Clicking on Modify Name Server in the second row, changed the name servers from ns11.nettigritty.com etc to
dns1.interactivedns.com
dns2.interactivedns.com
dns3.interactivedns.com
dns4.interactivedns.com
This did the trick. Dns changes took approx 10-15 minutes, then it started working.
Tuesday, May 08, 2007
copying missing files to Jo'berg hard disk
From the daily email "SGHBACK 846 : Automatic Audio files Statistics Check for SGH" copied and pasted to kwrite and made appropriate find/replace so that the lines were like
nice -n +10 cp 'ANN_BHAJANS_SWAHILI_END.mp3' ../audio -vcopied to audioold, did chmod +x and ran. Also, the new audio has noexec, since it is mounted as user. So, any such stuff needs to be run from some other partition with the full path.
Monday, May 07, 2007
new hard disk install at Jo'berg
Added to fstab
/dev/hdd1 /home/sgh/audio2 ext3 rw,user,owner 1 2Had to do a
chown -R sgh:sgh audio2since the files had some other ownership stamp. Stopped playout, umounted audio, mounted hdd1 as audio. Unfortunately the process was complicated by many files being missing in the new drive. Copying from the audioold directory....
Saturday, May 05, 2007
iptables firewall config
saispace was giving too much trouble - bad network cable? - so connecting directly now instead of through NAT. So, set up firewall. Important part is the default
-A INPUT -i eth0 -j REJECTjust before the last COMMIT in the *filter table.
Friday, April 27, 2007
accessing Win2003 shares with Samba
The shares on Win2003 were not being seen on saiwaves komba2. Tried smbclient commandline, able to see those shares which require password. So, made share with permissions not set only for "Everybody" (which is the default), but also added the particular username for which I had the password. Then the share is seen, can be mounted. Added to fstab so that it mounts on boot. Useful info at http://wiki.linuxquestions.org/wiki/Samba
The uid gid of a user can be found with id -u username and id -g username as given at http://kb.iu.edu/data/adwf.html
The encryption problem mentioned at http://allinthehead.com/retro/218/accessing-a-windows-2003-share-from-os-x is not an issue in our case, with the encryption being turned off before I started checking this problem, probably because the machine is not a domain controller.
The uid gid of a user can be found with id -u username and id -g username as given at http://kb.iu.edu/data/adwf.html
The encryption problem mentioned at http://allinthehead.com/retro/218/accessing-a-windows-2003-share-from-os-x is not an issue in our case, with the encryption being turned off before I started checking this problem, probably because the machine is not a domain controller.
Wednesday, April 25, 2007
wireless networking
Played around with the Linksys WAP54G which had landed at PDS mapping the signal strength with the Acer laptop - reaches nearly 200 feet in open air when kept outside the window. Upto corridor of our building too. But practical use? Not really - typing into USB key far easier for my needs.
Sunday, April 22, 2007
problem with google apps start page
TB had some trouble with "verify your domain" in google apps start page creation. The google apps help group had this info:
I was having the same problem that you are having and I just got aDid that and it worked.
response from the Google Apps Team saying that you need to have the
"Next generation" control panel activated for "Start page" and "Docs &
Spreadsheets" to work, if you have the "Current version" control panel
activated you still can see the option for "start page" but you can't
activate it.
Steps to change control panel:
1. Log into your account and go to "Manage this domain".
2. Go to "Domain settings" (it's under "Services").
3. Go to "Advanced settings" and click on "Edit"
4. Under "Control Panel" you have the option to change to the "next
generation" control panel, select it.
5. Click on "Save Changes
After you should be able to activate the Start page.
Wednesday, April 18, 2007
ubuntu
Last year I'd tried the Ubuntu 5.10 Live CD on a low spec machine - PII 350 with 128 MB RAM - and had been less than impressed. On a whim, just tried it on the Acer laptop
( http://hnsws.blogspot.com/2006/05/acer-travelmate-242x-getting-sound-to.html
http://hnsws.blogspot.com/2006/05/linux-on-acer-travelmate-2423nwxci.html
and so on ) and was favourably impressed. Display correctly set to 1280 x 800, and apparently full ACPI support - battery monitor shown on panel. Mandriva did not have any of these.
( http://hnsws.blogspot.com/2006/05/acer-travelmate-242x-getting-sound-to.html
http://hnsws.blogspot.com/2006/05/linux-on-acer-travelmate-2423nwxci.html
and so on ) and was favourably impressed. Display correctly set to 1280 x 800, and apparently full ACPI support - battery monitor shown on panel. Mandriva did not have any of these.
Thursday, April 12, 2007
Number of subscribers to satellite radio
Saw an old email of mine, referring to a rediff.com article about WorldSpace having around 75,000 subscribers in India. XM and Sirius combined have around 10 - 15 million in the US. Interestingly, the numbers are roughly in the same ballpark range as the number of millionaires in India and US, too - around 80,000 and 8 million respectively. Not to say that only millionaires subscribe to WS, but the socio-economics of it....
Wednesday, April 11, 2007
toshiba laptop again
As noted in my previous post, the power problems finally brought the laptop back. External jack method was the solution, with D doing most the work. Then, the WiFi and speakers were not working - once again KR opened it and fixed it.
Saturday, March 31, 2007
specialized searches
Link for "Research Beyond Google: 119 Authoritative, Invisible, and Comprehensive Resources" - removed from linkbar on saispace2 and put it here...
Thursday, March 29, 2007
Toshiba laptop power problem
H brought in a laptop, a Toshiba Satellite M35X, with the power problem and solution as given at laptoprepairguy.com - he had done all the homework. Using the beautiful disassembly guide from irisvista.comKR opened it up with occasional help from me and did the job. On putting it back, it did not show any display. In the evening, came back and checked again, while it was charging all the while - turning the speakers on with the switch provided, heard error beeps - 1 short, 3 short, 3 short, 1 short. Was it the Phoenix BIOS motherboard bad signal 1-3-3 ?! No - I suspected the RAM. Removed it - a single 512 MB DDR, the same signal. Replaced it in the other slot, no beeps! Put it back in the first, this time seated it properly at 30 degree angle and more inside, slid in without any problem, now booted fine. But the soldering or the power jack still has problems, jiggling the power plug makes and breaks the contact. Maybe he can live with it, or maybe he wants to use the external jack method.
Wednesday, March 28, 2007
XP bug in handling zipped files
When XP copies files from a "Compressed folder" into another directory, that is to say, extracts from a zip file, it creates a temp folder inside
Microsoft says call 800-MICROSOFT for reporting bugs. In case anyone in the US reads this, they can do so. Meanwhile, I'll post this on an XP Newsgroup as 'bug in extracting read-only files from zip file'.
C:\Documents and Settings\but forgets to delete the temp folder afterwards if the files are readonly. So, the temp directory fills up...\Local Settings\Temp
Microsoft says call 800-MICROSOFT for reporting bugs. In case anyone in the US reads this, they can do so. Meanwhile, I'll post this on an XP Newsgroup as 'bug in extracting read-only files from zip file'.
Tuesday, March 27, 2007
Power problems
Power problems over the weekend. Saturday night, heard some bang, burning smell. It seems transformer is shorting. Monday night power temporarily restored using School Hostel transformer. The 1.5 KVA Numeric UPS which has input section trouble taken to Studio, from where it is supposed to be picked up and taken to ATP for repair. M, the repair guy, says the circuit board is damaged, may cost a bit for repairs.
Thursday, March 22, 2007
Wednesday, March 21, 2007
convert AMR to WAV and vice versa
DM's next query is also easily solved by Googling - the very first result gave MIKSOFT's Mobile AMR converter
Tuesday, March 20, 2007
ActiveSync toggle
DM's trouble was probably caused by ActiveSync remaining running while he pulled out the Bluetooth dongle - the next time he put in the dongle, ActiveSync was probably locking the previously used COM port, so the next COM port was being used. Using ActiveSync toggle to stop ActiveSync from running all the time may help - directed there from PocketPCfreeware via googling activesync startup.
Monday, March 19, 2007
bluetooth blues
DM has problems with his Bluetooth dongle syncing with his PDA - the COM port keeps incrementing, and if it goes above 20 the sync doesn't work. Googled Bluetooth COM port and found a post with the same problem which had been solved with the method given in this FAQ article using a MS KB article to remove spurious com ports.
Saturday, March 17, 2007
Added three streams log processing to Analog
Using the method given for virtual hosts, added the three streams to the Analog file for combined stats. Can of course have individual stats by commenting out the other streams...
Analog configuration
Added PAGEINCLUDEs for asp and mp3 in analog.cfg on fs3 so that the requests and pages would match better in the Downloads section webstats.
Sai Inspires backups and hard disk space
From PB: Found that sai inspires messages have not been sent for the day - 9th March. Restarted mysqld and httpd (mysqld failed to start). tail /var/log/mysqld/mysqld.log showed [ERROR] Can't start server: can't create PID file: No space left on device. /var was full. Moving apachebounces cleared up nearly 2 GB, restarted mysqld... it started. But sending messages with processqueue still failed, with [ERROR] /usr/sbin/mysqld: Can't open file: 'phplist_bounce.MYI' (errno: 145). tail /var/log/mysqld/mysqld.log showed [ERROR] /usr/sbin/mysqld: Can't open file: 'query_log.MYI and so on. Googling gave solution http://www.redrook.com/faqs/mysql-error-cant-open-file-something.myd-errno-145.php
So, logging in to the
REPAIR TABLE TableName
So, logging in to the
mysql -u root -pprompt, did that, and issue solved.
Wednesday, March 14, 2007
On-demand with announcements joined
For on-demand with announcements, for KA dialog and Bhagavad gita slokas, using mpgtx - has alias mpgjoin to join ann and main files and putting in renamed folder. Created a new set of podcast php files for renamed songs and renamed specials. Need one more where the Prasanthi Mandir Bhajan will be served from the normal location, but only the name will be changed on the fly.
fs1 C: filling up
Found fs1 C: filling up - turned out to be log files. C:\WINDOWS\system32\LogFiles one folder had 20 GB, another 3 GB. Moved to D: , will zip, backup and delete.
removing claps
Removing claps in bhajan recordings - well defined claps near the mic are being removed pretty well by "Remove single click now" in Cool Edit Pro's Click-Pop Elimination filter dialog under Noise Reduction menu. Filtering clicks and pops with "Old Record Quiet audio" preset does a reasonably good job of large selections.
Tuesday, March 13, 2007
Today's achievements
Half an hour correcting dl.asp delivering 0 bytes to IE:
L bumped up the audio on AsiaStar, now it's fine.
Rest of the morning doing Bhajan processing.
Afternoon tracing schedule problem with DST: found probable locale change so that
And evening was spent on playlist generation.
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile(strFilePath)
strFileSize=f.SizeL bumped up the audio on AsiaStar, now it's fine.
Rest of the morning doing Bhajan processing.
Afternoon tracing schedule problem with DST: found probable locale change so that
if (date > #11/03/2007#) and (date < #04/11/2007#) thenhas stopped working and now needs to be
if (date > #03/11/2007#) and (date < #11/04/2007#) thenSo, changed it to locale independent
if (date > DateSerial(2007, 03, 11)) and (date < DateSerial(2007, 11, 04)) theninstead. We're not changing the changeover times because then the Latin Americans would have four changes to their regular programming every year - following US DST and their own DST.
And evening was spent on playlist generation.
Monday, March 12, 2007
newline in csv breaks database tables
A single bad newline in a description field had the schedule page down for the last half hour while we traced and corrected the problem... Caution needed when copy/pasting descriptions especially from text files / emails as in the case of Telugu programs!
bhajan processing
Starting slowly on Bhajan processing. Yield is roughly an hour's worth for a morning's work.
Sunday, March 11, 2007
changes to add PHP 5 compatibility
The forms in maillist were not PHP5 compatible: as noted by P, in PHP5, the posted variables are not automatically available, but requires the addition of lines like
$variablename=$_REQUEST["variablename"];Did the necessary additions by searching for the name=parts and thus the required variablename in the forms. Partially implemented, so that most frequently used pages work.
changed Daylight savings times
Changed the code for daylight savings times for USA-Canada and Israel for 2007 checking out the info from http://timeanddate.com/time/dst2007.html
on-demand links on schedule page
An interim solution implemented, which will work only for single file items. Probably, multi-file items will need a rethinking along the lines of my previous post. Current implementation uses a single extra filename field in the remote database. And the logic to automatically add this is
if ( ($CATEGORYNAME=="Special") OR ($CATEGORYNAME=="Discourse") )with
{
if (Strncmp($NEXT_FILENAME,$FILENAME,7))
$DOWNLOAD_FILENAME=$FILENAME;
if (strcasecmp(trim($NEXT_DESCRIPTION),trim($DESCRIPTION)) )
$DOWNLOAD_FILENAME=$FILENAME;
}
$DOWNLOAD_FILENAME="";if the condition fails.
audio distortion at AsiaStar uplink
There seemed to be considerable distortion in low frequencies, and M wanted the jingle during the start and end of Moments of Oneness to be broadcast undistorted. The line in the playout scripts was
mpg123 -o alsa09 -g 70 -q -a $DSP_DEVICE "$line"But the gain factor of 70% was not being set - probably some permissions issue. After IM and emails, L found the audio card bad, since using another one seems to give clear audio. But currently the DBMax is byepassed, so audio levels are sometimes low. Next task is to get it thru the DBMax.
Saturday, March 10, 2007
play avi and wmv on MacOS X
Since we were mulling over the MirrorDome and such systems, just checking if DivX files play with QuickTime - this article links to some plugins to achieve this.
Windows media components for Quicktime is supposed to let you play Windows media files on Mac.
Windows media components for Quicktime is supposed to let you play Windows media files on Mac.
Friday, March 09, 2007
renewing postgres database from dump
My local copy of the SGH postgres database was out of date, so I picked up the dump from saiwaves
pg_dump sgh > /home/sgh/sghdbdumpBefore loading onto my system, I had to remove the existing database with
dropdb sghthen create it again with
createdband then run
psql -d sgh -f sghdbdumpSirf kuch hi lamhon mein apka swadisht database tayyaar!
Wednesday, March 07, 2007
downloadable links on the schedule
For implementing downloadable links on the schedule page, we'll need some database changes at our end also - a "flag" saying allow/don't allow download - so that the appropriate data can be dumped into the csv file for import into remote database. Experimenting with adding a filename field to the AsiaStar schedule table...
Tuesday, March 06, 2007
new on-demand code
Quietly removed the embedded XSPF player from the on-demand pages, replacing it with the mp3player from http://www.jeroenwijering.com/?item=Flash_MP3_Player opening in a new window using a simple target="_blank" In replacing the old pages' code, learnt some regular expression syntax from KWrite's regular expression editor -
1. Reg Exps have to be only on a single line - end of line symbol $ terminates the regexp.
2. object.*$ means object followed by any characters till end of line.
1. Reg Exps have to be only on a single line - end of line symbol $ terminates the regexp.
2. object.*$ means object followed by any characters till end of line.
Watch TV online
Got this link from Digg or Wired or somewhere:
http://www.onetipaday.com/2007/02/14/updated-list-of-places-to-watch-tv-for-free-online/
http://www.onetipaday.com/2007/02/14/updated-list-of-places-to-watch-tv-for-free-online/
iPod repair
Saw a Wired article on "iPod mechanics" repairing broken iPods, and checked out www.NYCiPodDoctor.com But the cost of replacing a hard disk on the old broken 1st Gen iPod is greater than the cost of buying a new flash-based mp3 player....
used iMacs
Found some nice deals via a google ad for used iMacs at megamacs.com - Apple iMac 233MHz Bondi 96MB, 4GB, CD for $29.99! But unfortunately we can't get them by normal shipping methods - there's a $200 anti-dumping duty, it appears!
http://www.emergic.org/collections/tech_talk_letter_to_arun_shourie.html
http://www.ieport.com/Cus2004/Tariff/not30.htm
http://www.emergic.org/collections/tech_talk_letter_to_arun_shourie.html
http://www.ieport.com/Cus2004/Tariff/not30.htm
virus attack
Like almost any all-Windows shop, the PDS was hit in 2nd half of Feb by a virus/worm which was creating a fun.exe in all folders, and spreading to all machines via shared folders. Norton Enterprise antivirus was not catching it or maybe because it was already loaded into memory, it was recreating instances. P finally cleaned it with AVG free + using msconfig to stop it from loading on startup.
problems connecting to our playout server
In the first part of Feb, we had some trouble connecting to our playout server at Melbourne. The traceroute was taking too many hops. Now, for example, the traceroute reaches the server in around 22 hops. A little on the high side?
traceroute to <snip> , 30 hops max, 38 byte packets
<snip>
3 203.200.24.1.ill-bgl.static.vsnl.net.in (203.200.24.1) 6.730 ms 6.518 ms 6.491 ms
4 202.54.86.63.ill-bgl.static.vsnl.net.in (202.54.86.63) 7.045 ms 7.027 ms 7.012 ms
5 203.197.162.54.ill-bgl.static.vsnl.net.in (203.197.162.54) 8.562 ms 7.862 ms 8.308 ms
6 202.54.12.249.ill-bgl.static.vsnl.net.in (202.54.12.249) 10.766 ms 7.818 ms 7.894 ms
7 59.163.16.250.static.vsnl.net.in (59.163.16.250) 109.642 ms 105.444 ms 105.941 ms
8 59.163.16.250.static.vsnl.net.in (59.163.16.250) 106.086 ms 105.597 ms 114.480 ms
9 203.131.241.157 (203.131.241.157) 272.903 ms 273.216 ms 272.864 ms
10 ge-2-3-0.r00.newthk01.hk.bb.gin.ntt.net (203.131.240.205) 277.114 ms 277.567 ms 277.532 ms
11 p4-1-1-0.r00.tokyjp01.jp.bb.gin.ntt.net (129.250.4.50) 279.050 ms 279.150 ms 280.268 ms
12 p4-3-0-0.r00.sydnau01.au.bb.gin.ntt.net (129.250.4.162) 398.757 ms 446.588 ms 398.916 ms
13 ge-0-0-0.a02.sydnau01.au.ra.gin.ntt.net (202.68.64.222) 399.456 ms 400.323 ms 399.194 ms
14 202.68.65.18 (202.68.65.18) 354.208 ms 377.895 ms 355.543 ms
15 * connect1.sybr4.global-gateway.net.nz (203.96.120.122) 352.962 ms 359.593 ms
16 so-4-1-0.cre1.hay.connect.com.au (202.10.4.93) 367.183 ms 354.246 ms 372.219 ms
17 so-5-0-0.cre1.bur.connect.com.au (202.10.0.251) 368.156 ms 368.916 ms 376.512 ms
18 so-0-0-1.dst2.mel.connect.com.au (202.10.0.134) 370.836 ms 367.982 ms 375.395 ms
19 gigabitethernet0-1.cor6.mel.connect.com.au (203.63.170.183) 369.349 ms 388.766 ms 398.202 ms
20 AUS130611-3.gw.connect.com.au (203.63.104.101) 370.382 ms 378.105 ms 416.715 ms
21 worldspace-gw.ozonline.com.au (203.23.159.193) 375.345 ms 376.441 ms 409.865 ms
22 * * *
Force Refresh browser window
To force a refresh of cached content:
shift+reload in Mozilla-based products and control+refresh in Internet Explorer
shift+reload in Mozilla-based products and control+refresh in Internet Explorer
Monday, March 05, 2007
trying de-clipping tools
Trying de-clipping tools like Cool Edit Pro's built-in and Acoustica's built-in on bhajan recordings. No use. Since it is the singer mic alone which has the distortion, and since it is added to all the rest, the mixed signal can't be cleaned by these sw.
Subscribe to:
Posts (Atom)
