1. The script mount_cd.sh had a call to the binary message
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!
Thursday, June 16, 2011
importing SGH M CDs into local database
1. The script mount_cd.sh had a call to the binary message
Tuesday, June 14, 2011
colinux instabilities and D drive
Yes, the issue could be the windows file system size or its way of dealing with long file names. But the failure in reading might even be due to Colinux. Windows has never complained in sending the data to Colinux but CoLinux always complains in not able to read the data. The Colinux change log does mention about I/O errors.
Was going through this link on Working with File Systems which says:
If you use a large number of files in an NTFS folder (300,000 or more), disable short-file name generation, especially if the first six characters of the long file names are similar.Every time you create a file with a long file name, NTFS creates a second file entry that has a similar 8.3 short file name. A file with an 8.3 short file name has a file name containing 1 to 8 characters and a file name extension containing 1 to 3 characters. The file name and file name extension are separated by a period.
If you have a large number of files (300,000 or more) in a folder, and the files have long file names with the same initial characters, the time required to create the files increases. The increase occurs because NTFS bases the short file name on the first six characters of the long file name. In folders with more than 300,000 files, the short file names start to conflict after NTFS uses all the 8.3 names that are similar to the long file names. Repeated conflicts between a generated short file name and existing short file names cause NTFS to regenerate the short file name from 6 to 8 times.
To reduce the time required to create files, use the fsutil behavior set disable8dot3 command to disable the creation of 8.3 short file names. (You must restart your computer for this setting to take effect.) For more information about disabling 8.3 short file names, see “MS-DOS-Readable File Names on NTFS Volumes” later in this chapter.
If you want NTFS to generate 8.3 names, improve performance by using a naming scheme in which long file names differ at the beginning of the name instead of at the end.
But again, disabling 8.3 filenames systemwide seemed a bit drastic, and could lead to other unexpected problems elsewhere. So, for now we have not done the disabling.
wifi radios for radiosai
This one, for eg. is around Rs. 4.5k in the UK while in India, the listings start from 10k. Other cheaper options in India other than mobile phones are products like this Asus box for around 6k. What you have to look for in products which allow you to listen to Internet radio stations is: do they allow you to enter custom stations - if yes, then you are safe. Otherwise, do they use the Reciva online database - if yes, then also it is safe, since Sai Global Harmony all streams are listed in Reciva. If the player uses a custom database and does not allow you to enter your own stations, then you may not be able to listen to SGH with such a player.
Monday, June 13, 2011
buffering on server
1. The changeover actually happened at around 6.32 as heard on the stream, but the shoutcast server went into the interruption music for more than ten minutes more, till the signature tune finally came, around 6.44. Meaning the stream is buffered by 14 minutes due to the two servers?
2. By afternoon, the delay was around 7 minutes - The dd which was supposed to get over at 2.41 was heard to end at 2.48. So somehow the buffering delay was reduced ?!
Friday, June 10, 2011
BSNL online directory enquiry
Wednesday, June 08, 2011
adjustments for mirrordome
- Moving the mirror up by a few inches more now allows us to bring the horizon a bit lower in the front area of the tilted dome of the theatre.
- Moving the projector laterally left-right corrected the tilt in the reflected image, where earlier the left side of the reflected image was around a foot higher than the right side - for this, we moved the projector physically to the right.
- Moving the projector towards and away from the mirror, and adjusting the zoom setting allowed us to reduce the shadow area right above the mirror. Covering a larger area on the mirror makes the shadow smaller and vice-versa.
- Using the Bright mode instead of Custom mode in the projector, the colours are a bit better though the brightness levels are quite lower. This has to be further tuned.
Wednesday, June 01, 2011
couple of queries of email migration
http://www.google.com/support/
When you delete the group, you should be able to recreate a user of the same name immediately. The 5 day wait period only occurs when you delete a user and try to recreate a user of the same name. Deleting a group or email alias does not lock out that address for 5 days like it does when deleting a user.Also, Google Apps seemed to have removed the online IMAP migration tool from within the Domain control panel. So the email migration has to be done using the Google Apps Migration for Microsoft Exchange utility .
Once you install it, the setup is like the screenshot for migration from gmail:

In case it asks you for changing the consumer key, you have to log in to google apps as webmaster and copy-paste the new key.
The users csv file should be of the form
user1@domain.in#user1password_of_domain.in, google_apps_user1
(Please note that the @google.apps.domain is not required for the second field.)
Unfortunately, this tool takes a lot of bandwidth, needs the computer to be on all the time it runs, and is much slower for gmail to gapps migrations than the online IMAP migration tool. A sample run is:
Info:Start local time is: 2011:06:01 13:56:12
Info:Migration start local time is: 2011:06:01 13:56:12
Start: Now migrating user=**********
Start: Migrating Email for store=**********
Start: Migrating 105 messages from Folder [Gmail]/All Mail for store=**********
In progress: Migrated 100 out of 105 messages from folder [Gmail]/All Mail for user.
Success: Migrated 105 messages from folder [Gmail]/All Mail for store=
snip....
Info:Migration end local time is: 2011:06:01 14:25:19
Info:End local time is: 2011:06:01 14:25:19
So it took half an hour for 100 mails.
upload problems persist
Sometimes, when using sftp and it stalls, if we kill the process, then the file at stream.radiosai.org becomes orphaned or something like that. If we delete the file, then also the file appears in ls. After a day or two it disappears on its own - probably when the process times out or something like that.
Saturday, May 07, 2011
ftp disc quota full
Friday, April 29, 2011
setting up headless mac mini server
Did initial installation using a borrowed Apple Cinema Display from the video studio, which had an Apple mini display port cable. Apparently Apple's "Allow Remote Management" opens up a vnc server. So, standard VNC clients can be used to connect. On Developer, installed tightvnc since it has the nice option of scaling Desktop to fit window.
Can log in with ssh or vnc. For vnc, two passwords - a vnc password, and then the user password on the server. The former similar to saiwaves, the latter similar to the router.
For using the Remote Desktop tool, I believe each client needs to have the Remote Management Enabled, under System Preferences -> Sharing.
http://www.ehow.com/how_
Later, registered some of the studio machines' Applecare Protection Plans: googling "Register Applecare Protection Plan" gets this registration page, where once you have an Apple Id, you only need the Applecare serial number, which is inside the product box, and the serial number of the hardware. For the Macs, this is under Apple menu -> About this Mac -> More info -> Serial number (Hardware).
Friday, April 22, 2011
Logmein possible conflict with RealPlayer
Wednesday, April 20, 2011
backups
- Corrected db pw on the script on krishna's cron
- Corrected IP address on the script on saiwaves's cron
- Added scp with -r option to copy over the krishna backups to saiwaves.
Monday, April 18, 2011
problems with disc full on web server
After initiating a restart, the machine did not cleanly restart even after 20 minutes. Checking, found it was pinging. Logged in to fs1 using Computer Management console from fs3 using Action -> Connect to another computer, found that some services were running, like file sharing, but some were not, like remote desktop, IIS and so on. Checked the Eventlog - there was an extra shutdown initiation, after I had initiated the shutdown:
4:34 - I initiated shutdown.
4:39 - The process svchost.exe has initiated a shutdown etc. No title for this reason could be found. Reason code 0x80070020
this was the last entry. So, I moved out some more log files from D: to make 4 GB free, then did
shutdown /r /m \\sea-fs1 /d 1:1
(as given at this technet article)
This time it worked, after restart things seem to be working.
some graphic card drivers allow custom resolutions
Since it was not listed, I went to NVidia Control Panel -> Change Resolution -> Customize and added this resolution.
remote desktops on the mac
For tunnelled VNC, ssh provides multiple tunnels using the -L option, with the syntax
ssh -L 10000:localhost:8080 -L 10001:localhost:8081 name@hostname.com
where 10000 and 10001 are the local ports and 8080 and 8081 the ports on the remote machine.
Checking out VNC clients, Chicken of the VNC and Chicken are recommended by many, but did not work for me, probably because they don't support the tight option? Finally opted for using the browser based client, by going to
http://localhost:58xx for display xx. For this, ports 58xx and 59xx should both be tunnelled.
Sunday, April 17, 2011
live broadcast from the Mac

Edit: Just some caveats:
- Tascam US-1641 control panel needs to have inputs 3-4 made digital outs manually every time after booting.
- Order of startup is important. JackPilot - Jack - Butt - Reaper - Routing window - Load Saved routing setup is the order that seems to work fine.
Friday, April 15, 2011
uploads problems hopefully solved now
My previous post about a checklist to solve the upload problems was just a stab in the dark. And turns out it did not work - even when there was no network traffic, uploads would stall and stop. Then I thought there might be some problem with DHCP server assigning IPs which are supposed to be static to random machines. Checked out the DHCP pool, that was all right.
Then, Googling found this post about MTUs. Did sudo /sbin/ifconfig eth0 mtu 1490 on our local machine. Trying an upload, still the same problem. Then tried setting mtu on Colinux with ifconfig eth0 mtu 1490 and that seemed to help Colinux.
This page has a ping test, for seeing what MTU you need, and for the Windows machine, even ping krishna.radiosai.org -f -l 1480
gave fragmentation - so thought 1400 would be a safe number.
But the Windows machine needed a reboot after setting MTU - set with regedit http://support.microsoft.com/kb/900926 for finding which id is which network adapter, http://support.microsoft.com/kb/314053 After doing this, and the reboot, made the changes on Colinux permanent by adding mtu 1400 to /etc/network/interfaces for eth0. And now things seem to be fine, with 2 minute uploads for 10 MB files.
This page has more about the possible reason for this: Path MTU discovery defeated by ICMP packet blocking, and fragmentation also being not allowed.
Edit: Unfortunately the problem persists. So, have to think about other solutions.
Thursday, April 14, 2011
using google transliterate for Hindi when not installed
This is happenning because applications such as "Google Indic Transliteration" use hindi font mangal. Though windows xp comes preinstalled with Mangal Hindi font, one need to ENABLE Hindi (asian layout) support through Control Panel to able to edit documents in Unicode Hindi font like Mangal. Legacy Hindi fonts like Krutidev do not need this configuration.Editing a word doc using mangal font won't be possible until asian language support is configured.You can overcome this problem through one of the following way:1. Use WORDPAD instead of MS WORD.2. copy hindi text from "Google Indic Transliteration" and paste it on the word doc now change the font of pasted text to "Arial Unicode MS" if you have one installed.3. install indic from XP Control Panel -> Regional and Language Options -> Languages -> Install files for complex script and right-to-left languages (including thai). For editing you need to goto Details... and add Hindi (or other indian language) keyboard layout.
Wednesday, April 13, 2011
adding a domain to phplist
Tuesday, April 12, 2011
bounce processing cleanup
rm /var/mail/the_relevant_spool_file touch /var/mail/the_relevant_spool_file
chown the_relevant_account:mail /var/mail/the_relevant_spool_file
chmod 660 /var/mail/the_relevant_spool_file
Once this is done, bounces are processed - if checking is necessary, can run the commandline process if a cron scheduled bounce process is at least half an hour away.