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!
Monday, October 17, 2011
blurry background for video on fulldome using Blender
HD video file on fulldome with fisheye camera in Blender
https://blender.stackexchange.com/questions/174750/how-to-make-fisheye-lens-for-camera
Rotation - X = 125, Y = 0, Z = 0
Location - X = 0, Y = 0, Z = 1.3
This gave an effect similar to the video part in the TSPOG show - probably I need to add some blurring on the blank black area outside the video window like in that show. Rendering took around 1 minute per frame with two threads, and 2 minutes per frame with a single thread. Sample fulldome frame was like below.
Saturday, October 15, 2011
ebook using instapaper
rudimentary planet in Blender, also video texture
Things to remember:
- UV mapping means wrapping the texture around the object - U and V are used to describe the 2D mesh since X and Y are already taken!
- For the planet, the mapping used was Co-ordinates = Object, Object = Sphere, Projection = Sphere. (Not Co-ordinates = UV!)
- Smooth shading: as given in Ron Proctor's tip here, using smooth shading makes the sphere look much better. Accessed from Object tools - T after selecting the object.
- The plane could be of the same dimensions as the movie, so for a 4:3 movie, a plane of dimensions x=4 and y=3 is good.
- In such a case, the texture mapping to use is Co-ordinates = Generated, Projection = Flat, and Extension = Clip.
- For ease of placement of camera(s) and the plane, the N key which brings up the properties allows numerical entry of values.
- As mentioned before, Emit=1 and Specular=0 are good for video textures.
- In some tutorials like this one, the rotation animation is done by entering a value like 3600 degrees for 10 turns. But when I tried entering a value of 360 for rotating the camera a full circle, it did nothing. When I tried 340 or 370, the camera moved only by 20 or 10 degrees respectively. So I settled for 180 degrees in my test.
Friday, October 14, 2011
NASA models and more in Blender
- Textures need to be in UV mapping mode for them to be displayed properly in this model - Mapping -> Co-ordinates -> UV - and I had to manually map the texture bitmaps to the relevant materials in the model.
- Blender's Textured Viewport shading only works if object has a UV mapped texture (in general).
- Imported model was extremely large as seen in default Blender view. Scaling it down was easier than moving the camera and lights out.
- Ctrl Alt Numpad 0 puts Camera to current view.
Wednesday, October 12, 2011
getting started with Blender
Today, I dove a bit deeper, to take the first baby steps towards making our own fulldome show. Printed out the cheat sheet from qubodup and went through the first few getting started tutorials again to refresh my memory.
- Right-click to select an object.
- Middle-click and drag to move around in the view-port, with Shift and Ctrl as modifiers for pan and zoom respectively.
- Shift+A to add an object
- N to numerically adjust location and size
- S R and G for Scale, Rotate and Grab, with X Y Z for constrained motion along those axes.
- TAB to toggle Edit mode and Object mode
- Shift+F10 Image Editor (where rendered output is seen)
- Shift+F5 3D viewport
- Numpad 7 1 3 for Top Front Right views, 4 6 8 2 for rotate, 5 for toggling perspective and orthogonal views.
- Numpad . for Zoom to object.
Problems faced:
- Extrude tool seems to Extrude only along the natural face of the object - some sort of constraint somewhere.
- When I change dimensions of an object using N and then render using F12, it is going back to its original dimensions!
Next steps:
Would probably want to make a set of stills or videos move around the dome as in the IBEX show.
Tuesday, October 11, 2011
using Digital Universe to create fulldome content
But maybe instead I can use the video they give for download.
Monday, October 10, 2011
Zalip internet radio and TeluguStream
Sunday, October 02, 2011
iphone 3GS update restore saga
Googling various terms, the first thing I tried was to use TinyUmbrella to kick the phone out of recovery mode, as given here. That did not work. TinyUmbrella was not able to see any info on the phone, not even ECID.
Gathered info including ECID using USBview as given here.
This particular forum post seemed promising - Did I ruin my 3GS . As suggested there, tried the untethered jailbreak with sn0wbreeze, with the tutorial given at this page. Making a bulleted list of the many trials I did - the last two are the successful ones:
- I tried first with the later version of sn0wbreeze, using OS version 4.3.2 instead of 4.2.1. After creating the custom IPSW with sn0wbreeze, iTunes did not allow the update - I thought it was because TinyUmbrella's TSS server was not running. Making a custom IPSW was taking around 5 minutes on my phone.
- At this point, TinyUmbrella was not able to save any blobs - it was not seeing any blobs on the phone. Running iTunes with the TSS server also did not work, it ended with error 1602. The update process in iTunes was taking around 5 minutes.
- The solution for that was to run sn0wbreeze till the end - I thought the phone was already in DFU mode, black screen - but it needed to put the phone in a pwned DFU mode.
- Running sn0wbreeze till the end where it uses iReb to avoid the 16-- errors, the update went till the very end, but then error 37 in iTunes.
- In the above trials, I had chosen New Boot Rom within sn0wbreeze. Perhaps that was the culprit. So made another IPSW with sn0wbreeze, chosing Old Boot Rom.
- This time it went through, iTunes declared it successful, but phone did not boot. It remained in DFU mode even after reboot.
- TinyUmbrella was able to save some blobs now, and it showed 4.1 and 5.0 beta blobs. So tried the same update, with the TSS server running this time. Same result - iTunes success, but phone doesn't boot.
- Tried New Boot Rom IPSW with TSS server - again error 37.
- Tried New Boot Rom IPSW without TSS server - error 3194 this time. "This device is not eligible for the requested build" - so probably I should go with Old Boot Rom and not New.
- Back to making an Old Bootrom IPSW, on a different usb port, without TSS. Stuck at preparing iphone for restore.
- Tried a different tack - since 4.1 blobs are seen in TinyUmbrella, why not try with that one. For this, downloaded sn0wbreeze 2.1. This time, it worked like a charm - running iTunes with TinyUmbrella's TSS server on. The phone booted up. But it is not unlocked yet.
- To unlock 4.1, this page points to this guide - just need to add repo666.ultrasn0w.com to the sources in Cydia (it was already there) and install ultrasn0w using Cydia Search. Did so, rebooted, and the phone is unlocked, working fine.
Wednesday, September 28, 2011
enabling NTP on our servers
sudo apt-get install ntp
I guessed that the firewall might cause problems, and sure enough, checking the status with
ntpq -p
found that the peer was not being contacted, the reach was 0. Added a firewall rule for NTP for the DMZ, and all was well.
krishna bounce processing again
Monday, September 26, 2011
creating DiscourseStream schedule
Steps:
1. Added new BC Broadcast Center Name: DiscourseStream Bcid: 9
2. Modified the changeover time from 5:00AM to 7:00AM to avoid import issues for the schedule database
3. Modified Playlist import script for Discourse Stream and commented out Asiastar
4. Added SIGNATURE_TUNE to the beginning of playlist files that were already created.
5. Modified the cron for changeover in the remote server from 5:00AM to 7:00AM
6. Added two hrs of DD to today's playlist so that the changeover takes place tomorrow without a break and reuploaded.
7. Modified the csv script to generate csv for Discourse stream
8. Skipped the instrumentals being listed in the csv for DD
9. Modified the schedule database for discourse stream to have the changeover @ 1:30 GMT (7:00 am IST)
10. Added a single program item to start the 27th csv import (NOTE: It can be done only through IE)
11. Uploaded the csv for 27th Sep 2011
12. Modified the DD making script to add signature tune in the beginning of the playlist.
Monday, September 19, 2011
fixing problems with Listen Now page and IE
in the body, put
in the head of the document.
Saturday, September 17, 2011
more about the iphone and farewell to it as well
Coming back to this iphone, installed the following from iTunes on the PC:
Battery Magic - uninstalled due to a startup screen which could not be removed due to non-working touchscreen portion
Planets
Compass Free - uninstalled as the iPhone 1st gen doesn't have GPS
Remote Desktop Lite
GPS Tracker - uninstalled as the iPhone 1st gen doesn't have GPS
Battery LED!
Teamviewer
APPZILLA
EasyWriter
iTalk Recorder - uninstalled as phone call recording needs paid service.
Got Veency in Cydia installed through iSpirit which was mentioned at this forum page. Then onwards it was fairly straightforward to do anything on the phone, since the VNC client could click even in the places where the touchscreen wasn't working. Mobile Terminal was one of the nice apps loaded through Cydia.
Saturday, September 10, 2011
working around a broken iphone
Trying to get ebooks into it. SSH not working - probably not installed, though Cydia is present. Trying to install SSH gave an error message in Cydia about being unable to download files - probably an old repository. But cannot click on the OK button for the message. That was in the bad portion, and landscape mode is not available for that screen.
Tried to use the Kindle app - it needs registration, and in portrait mode, which does not work with the keypad. I did not try copy-pasting the username and pw - that might have worked. But anyway, went on to try iBooks. Unfortunately iBooks needs iOS 3.2 and higher, and this is a 1st gen iPhone with iOS 3.1.3. Then tried Stanza, that one works.
Transferring files to Stanza - all the methods seem to need Stanza to pop up a confirmation dialog asking if I want to download - and the Download confirmation button comes up in the non-working part of the screen! Finally got books to transfer using iPhone Explorer.
Tuesday, September 06, 2011
DD-WRT and Dlink DIR615 revE4
Quite simple procedure as given at the dd-wrt wiki. Ours was E4 and not E3. Read somewhere on the forums that changing the last number from 0 to 1 in the E3 firmware with a hex editor makes it work with E4. Tried that, it works. Did the Hex editing of the firmware using Free Hex editor Neo on Windows. The firmware labelled as E4 in the dd-wrt site has 5 as the last digit - that apparently makes it not compatible with our E4 version.
But plugging it in our network, it didn't work. At first I thought it might be a MAC address caching issue, and tried cloning the old router's MAC address. That also did not work. Then did some tests and found that it was just not routing - logging into the router, ping works in both directions LAN and WAN. But the LAN can't ping the WAN and vice-versa.
Tried posting on the dd-wrt forums, here and here, but finally did not get any solution. Assuming that some hardware limitation prevents it from working as a router without NAT. And the google answers page recommended routers seem to be scarce. The Linksys WRT54G is superseded by the WRT54GH which doesn't support routing mode, for example.
Sunday, August 28, 2011
access to audio files from macs at Studio
FileZilla -> Preferences -> Connection -> SFTPSaturday, August 27, 2011
burning cds on the mac
Friday, August 26, 2011
router failure and fail-over
The router which failed yesterday - DLINK DFL-210 - cost around Rs. 22,000
Both these models are no longer available. DFL-260 is a possible replacement, PB checking Indian market cost found it to be around Rs. 50,000.
Wednesday, August 24, 2011
live video streaming test
First downloaded Wowza server with a free developer license and tested after installing it with the documentation given at wowza forums.
Then tested by copying the same html file mentioned above to another system.
Then tried stopping Wowza and starting the C++ RTMP server. It asked for a username and pw for the encoder to connect, found that it was located in users.lua
Entered suitable values and the encoder connected without problems. Next, tried on the other system with the same test file supplied with Wowza, and it worked.
Next step was an flv player embedded in the website.
Downloaded JWPlayer's latest version, first tried the quick-start method given in the downloaded pdf. That did not work. Reason was wrong path. Even giving full path did not work, since our server was configured not to serve .mp4 - it gave access denied. Anyway, the player was coming up embedded on the page.
Next, followed the docs at
http://www.longtailvideo.com/
With streamer address given as a private ip address 192.168.2.2, it did not work. Configured the router to use a virtual server at the Macbook, port 1935 for rtmp, and it worked with the public ip - used the domain name, actually.
Later, tried out the private ip address also - that also worked. The player on the remote server does not need to contact the streamer directly. Only the client needs to contact the streamer. The first time the private ip address did not work was because of other issues with embedding the player - the player itself was not appearing.
Monday, August 22, 2011
automatic email scripts
On saiwaves :
playlist_import.sh
lame*sh
On colinux :
test_playlist_sgh_africa.sh
test_playlist_sgh_america.sh
test_playlist_sgh_asia.sh
test_playlist_sgh_discourse.sh
test_playlist_sgh_bhajan.sh
Thursday, August 18, 2011
problem with ftp upload using php ftp_connect
This page says that with some firewalls you should connect to the firewall and then connect to the host etc. Tried that, doesn't work.
I suspect that the problem is with the way in which php handles ftp commands. When a put command is sent on our system, cyberoam responds saying delayed due to scanning, and then uploads.
STOR /httpdocs/program/csv/AmeriStream20110818.csv
150-Scanning file for viruses
150-There'll be a delay while we scan for viruses
150 Data connection already open; Transfer starting.
221-Scanning for virus
221 Transfer complete.
I think php's ftp library does not handle the ftp 150 commands, hence it fails.
I have currently commented out the ftp upload part in the mkcsv php script.
ERROR: duplicate key value
This causes some files not to be entered into database, so when importing playlist, it complains that some fids are NULL
Wednesday, August 17, 2011
setting up vnc
Tuesday, August 16, 2011
procedure for telugu broadcasts
2. Copy relevant m3u file to ~/playlist directory.
3. cd to playlist directory and run the sed script modifying the commmandline to relevant date, which converts the extended m3u to simple m3u and appends the audio directory path.
4. run ~/scr*/lame_encoder2422.sh
5. Open playlist from step 2 in kwrite and change / to \, save as m3u
6. Open the m3u playlist in Winamp after lame finishes, to check that all files are present - total duration should be 24 hours and a bit, and it should not show a + symbol after the total duration.
If playlist generation is desired, additional steps:
7. Run scr*/main_ftp.sh which takes files from ~/ftp folder
8. upload files from ~/ftp folder to dl.radiosai.org
9. Run scr*/playlist_import.sh
10. Update missing descriptions from localhost/SGHDescription as with sgh database, if necessary copy-pasting from sgh database
11. Make csv and upload from localhost/mkcsv
bug in our playlist import script
to 2011-08-16 06:30:00+05:30 during the import process. So, verify if the correct timestamp should be 00:00:00+05:30 and then edit the entry manually from 06:30:00+05:30 to 00:00:00+05:30 .
The point to be noted is that the problematic entry may not be adjacent to the actual 06:30 signature tune file, it could be at midnight also.
Saturday, August 06, 2011
updating MBV download filenames
1. In sgh database on saiwaves run the following query:
select 'UPDATE file_id SET download_filename=' || '"' ||download_filename|| '"' || ' WHERE filename="' || filename || '"' from file_id where filename ilike 'MBV%' \t \o update_mandirbhajans.sql ;
First row of the result set looks like:
UPDATE file_id SET download_filename="MBV_04_
2. Save the result set to a file update_mandirbhajans.sql
3. Replace double quotes with single quotes in update_mandirbhajans.sql
4. In sghtelugu database on saiwaves execute the saved update_mandirbhajans.sql (through phpPgAdmin interface)
5. upload the updated csv files / run the update sql statements on the schedule database through the cpanel
Friday, August 05, 2011
stellarium night sky on our mirrordome
View Settings Window -> Sky tab -> Absolute scale = 2 makes everything bigger and hence brighter, and Relative scale = 0.2 or so makes the stars uniform in size instead of brighter stars being as big as oranges! This makes the night sky much better to look at, more like a "starball" effect.
viewing panoramas on fulldome - simple technique
When I tried it with a pan of the SSSIHMS, a hi-res version of this picture, found that it looks squished on the dome - need original to be more squarish? Also, building is too far above the horizon. Need more sky and less ground. So, probably the solution would be to take a pan with the interesting parts near the bottom edge of the pic, and clone the sky to make it square instead of distorting it by simply resizing.
Friday, July 29, 2011
download users as csv in Google Apps
This post seemed to have the solution:
http://www.google.com/support/
So, sign in, and then use the following url for the csv file:
https://www.google.com/a/
where you must change the date 20110727 for the relevant date. We also have to remember that google servers use US time, so today is still 28 July for them and not 29 July.
Wednesday, July 27, 2011
Telugu stream playlist - Extended m3u to simple m3u
cat 26th_JULY.m3u | sed /^#/d | tr '\\' '\n' | tr '\r' '\n' | sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
sed /^#/d Remove the lines starting with #
tr '\\' '\n' The windows path backslash (\) is changed to line feed
tr '\r' '\n' The Carriage return is changed to line feed
sed '/\(.mp3\)\|\(.MP3\)\|\(.Mp3\)
Added tr '\r' '\n' on 26th July 2011.
The line used to end with both \r\n which made ices fail to start the playlist.
\r - Carriage Return - 0D in Hex
\n - Line feed - 0A in Hex
Saturday, July 16, 2011
problem playing file from finder for live broadcast
But in general, this is a bit risky - a better way to do announcement insertion would be to drag and drop the relevant files into the timeline on Reaper. This can be done even when Reaper is recording. The track into which the file is dropped should not be armed for recording - only then will the file play back if Reaper is recording on another track.
Friday, July 15, 2011
more ports on server
Did some troubleshooting by starting the server from the command line.
Found that the reason it gives for the other ports not to work is:
error opening client socket! FATAL ERROR! Some other process is using this port!
So it is not the service provider's fault.
When I test with telnet, I find (after stopping shoutcast)
telnet stream.radiosai.org 8021
Trying 66.249.27.181...
Connected to stream.radiosai.org.
Escape character is '^]'.
200 1500
GET / HTTP/1.1
fxÚ
ÍËÎË/ÏSHÎÏÍMÌKÑ5
Yesterday when I tested, ports 8023, 24 and 25 were also probably occupied by the other process. Today, those ports were open, and shoutcast could use those ports.
Using
Netstat -a -b -n -o > c:\netstatnames.txt
and searching for 8021 in that file,
found that the process is
G6FTPSERVER.EXE
So, requested that the Gene ftp be tweaked so that it uses only ports above 8100 for listening, like 8121 etc. That solved the issue.
Wednesday, July 13, 2011
procedure to change over to live broadcast
Shortcuts on desktop for these bat files have been created. So, one minute before the live broadcast is to start, like 4.29 pm for the evening programme, just login with Remote Desktop and double-click on the respective icon.
To stop live, wait 70 seconds after the ending point - usually the Jaikar after Arati - and double-click the stoplive bat file. The BUTT has to be running during these 70 seconds too. This is because of buffering of the stream by the Shoutcast servers.
Edit: Initially we experimented with using Scheduled Tasks to automate the changeover, at least for the startlive which was a fixed time. But Scheduled Tasks don't run if the password is changed, and then we would also have issues when DST kicked in. So, decided manual change-over was better. And the next day the manual change-over came in useful when we had a long power outage at the Studio and could not change to live till 50 minutes into the morning session - recorded filler was played on air at that time.
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.
Monday, April 11, 2011
google multiple sign-in
- Code
- Calendar
- Finance
- Gmail
- Profiles
- Reader
- Sites
- Voice
- Docs (Google Apps accounts only)
So turned it off again, since blogger and groups are not supported, and it disables offline gmail.
Saturday, April 09, 2011
small gotcha with blogger's compose mode
Logic gotchas and finally Reaper to the rescue!
The Studio got a Macbook Pro for Mandir recordings along with Logic Express for multi-tracking. According to the Wikipedia, the only differences for me between Logic Pro and Logic Express are the lack of 5.1 mastering and extra content - so Logic Pro is not required for my use. Anyway, when I tried to use it with the Tascam US-1641 and the Korg NanoKontrol and chronicled my adventures.
Initially when I created multiple inputs and tried to record-enable (arm) only one of them, all of them were being armed! This turned out to be a problem with the control mapping (I think) where the control was set to "arm selected track" instead of "arm track 1", and by creating multiple tracks simultaneously Logic had also selected all the tracks. Later, using the Deselect all menu item, this was resolved.
One of the most important things was a control room mix - doing an AFL (After-Fade Listen). Googling gave this google books link which confirmed my hunch that the only way to do an independent AFL would be to make sends to duplicate tracks (Buses in Logic) which are routed to a different output and mute those buses which I don't want to listen to. All right, I did that.
Then, the mapping of the NanoKontrol buttons and faders. Logic too has a "Learn Mode", but it is somewhat less user-friendly than the Reaper one, at least in my opinion. Click Learn Mode (it is difficult to see if it is enabled or not - this is a general problem with the MacOS buttons) and move a fader or button, then click on the onscreen control you wish it to be mapped to. Logic does the mapping without any success dialog box, and silently waits for the next fader or button. This caused some initial confusion till I got the hang of it. Also, Logic goes the route of allowing multiple actions per button press (or fader move) on the control surface, instead of Reaper's more elegant 'Actions'. So, for my requirement of muting 13 (out of 14) Aux Buses for AFL of one channel, I needed to map that button 13 times to 13 channel mutes. Makes a big mess on the MIDI mapping page. But at least it works.
Then another small gotcha - Logic by default trims any send to -inf dB! Tried buses, couldn't hear any output, till I figured out that the sends needed to be manually set to 0 dB or whatever using the dinky rotary control next to the send!
More Reaper features which I missed were: no customization of filenames of recorded files, un-intuitive LED graphs where -20 dB shows up as only a sliver of light! and far less complete realtime updating of recorded track. Also, probably it does not have the ability to add markers directly to the recorded wav file as in Reaper, though I did not test for this.
Then came the slow realization of the vital missing feature - without which Logic would be almost useless for me - cannot enable or disable EQ, effects etc on the fly onscreen while a recording is going on! (except maybe with mapped MIDI commands). So I went on a lookup and saw this DAW comparison wikipedia page, which mentions that Reaper has a MacOS version. Immediately downloaded, so now I can put my license in it due to Reaper's generous license terms,
Your license allows you to use REAPER on one computer at a time. Multiple REAPER installs for use by the same person are fine (home/studio/laptop, Win32/x64/OSX).and get going.
Friday, April 08, 2011
sharing files between Windows7 and XP
N got a Lenovo with Windows 7 pre-loaded. S wanted to be able to share files between his Windows XP machine and this one. I googled and found this technet forum link which basically says these steps:
- Make sure both are in the same Workgroup
- Verify in Advanced Sharing settings on Win7 that Network Discovery, File and Printer Sharing, and Public Folder Sharing are all set to “on” and Password Protected Sharing is set to “off”.
- Right-click and share a folder.
- Right-click and change security settings on the folder, to allow Everyone access. Type Everyone in the Security box and click the Add button, giving appropriate read write permissions.
- Make firewall changes if required, not applicable for us.
Using that, I made an entire drive (I:) on the win7 pc shared, and visible from the xp machine. But that share does not allow writing, for some reason. But other folder shares we made allow write from the XP machine. So, probably we can share folders but not entire drives in Win7.
I think it also requires identical usernames and passwords. Since my account on both machines is exactly the same, I am not asked for a pw when I use my account. But with the admin account, it asks me for username & password. When I give the Win7 administrator username and password (Both Case sensitive!) then it allowed read and write. Probably it might have worked with any other credentials on the Win7 machine too, since Everyone had permissions on that folder.
upload issues with the new internet connection
- Check if the router lights are blinking madly. If not, then you have no problem, you can upload.
- One more check may be to check in cyberoam if traffic has been dropped in the IDS - in the dashboard. If yes, you could restart management services. (If traffic is being dropped, DNS may fail and you may not be able to connect to outside servers.)
- If lights blinking madly, you can put the 512 kbps speed limit for http in cyberoam. For this, the procedure is as follows.
(a) In cyberoam, go to Firewall -> Manage Firewall -> LAN to WAN
(b) There you have to edit rules 1 and 2 - both of them are duplicates. You need to go to bandwidth policy and choose 512 kbps and save changes.
This will limit outgoing traffic to 512 kbps, so incoming ssh will not be timed out.
adventures with PING
The task I wanted to accomplish : Increase the space in C:\ partition (primary) by shrinking other partitions. I had D & E as Logical partitions. Cleared E to make it empty. It was a 60 GB ATA HDD. C was 12 GB, D & E sharing the rest in an extended partition.
I had :
a. PING 3.0 CD for backup. (I had used it earlier to restore primary partitions to identical machines/partitions with success. )
b. Lucid Puppy Live CD for useful tools like Gparted, Batch Renamer etc.
c. Ultimate Boot CD, just in case required.
Backed up C & D using ping to ping-images named PingC and PingD, just in case required. This would come in handy as things went wrong. During backup, C was seen by Ping as hda1 and D was seen as hda5. The backup image folders were written to USB External HDD.
Booted with Puppy for Gparted. It so happened, E being empty, wasn't reason enough for C to expand. Deleted D, thinking I would be able to restore later. C had all the space it needed to expand, yet it didn't. (??)
Deleted C, too and re-did the partitioning, thinking backups were handy anyway. Turned out, I would run into restoration problems.
Tried to restore C, from the image, to the now expanded C partition. Hmm, it failed. Apparently, as noted here, resizing of the partitions may be a problem ?
Firstly, PING would ask "where your images are stored" (the source of restoration), but at no point, it would ask "where do you want to restore to" (destination for restore). I had noticed this in my earlier experiences with PING, but in those case, didn't bother and it still worked because the backup and restoration environs were identical in size, order of partitions and hardware. This time I had re-done the partitioning. This problem has been noted by other PING users in forums, and I guess, by default, PING attempts to restore to the identical partition which you backed up from. This was noted at one of the forum posts, but not in PING's documentation.
Secondly, towards the last step ( just when you expect it to kick off the restoration), PING would ask something like "We found additional space in the partition you are trying to restore. Do you want us to extend the partition for you after restoration ? " . This problem too has been noted by other users. Here, either way you are caught, because I had tried both in different attempts (every time clearing up and redoing the partitioning). Either way it failed saying "Partitioning failed. May be, you have to do it yourself". If you didn't have a backup, the strange behaviour here can sometimes lead to catastrophic results, like here. btw, PING's errors and notifications are strange, they are in first person/second person in conversational lang (Some exasperation on this, here) . Like, after identifying drives, it would say "So, everybody is here". :) :)
Thirdly, during one of my many attempts with various combinations of answers to PING's questions, it "accidentally" restored the C partition successfully. This problem is also noted by a PING user in the forum. If you press the Cancel Button at one point in time, it would go ahead and kick off the restoration and finish it. (Natan acknowledges in the forum post that all is not well with the Cancel button behaviour).
However, after the above restoration, Gparted showed weird partition info. It showed the entire drive as unallocated. Pmount (in Puppy) failed to mount the partition giving an error. But Windows booted, hahaha. But it showed only C parition at 12 GB. I had had some Program Files in D, because C had run out of space. Since D hadn't been restored, I had a strange situation like IE works but Firefox doesn't, KM Player works but VLC doesn't and so on, because those other software were installed in D.
Windows XP's Disk Manager had even weird things to show. It showed drives as huge as 800GB with unallocated free space (where did she get that) and also a 23 GB unallocated space and another 230 GB unallocated space. When I tried Windows to create partitions in unalloacted free space, it failed. This problem of weird partitions sizes after a PING restoration attempt is also noted by other users in the forum. ( Can't dig the link now, don't remember).
In other attempts, I also tried PartImage from the UBCD to do the restorations. (PING is built around PartImage, I guess). That too failed.
In the meanwhile, my room-mate [Edit: me :)] suggested, 'Can't you mount D's ping image and copy files from there and worry only about C's restoration'.
Part of this suggestion would come in handy. Looked up on ways to mount a PING image. Unfortunately, this is not possible with PING, but while confirming this, Natan had suggested in an earlier forum post, that you could restore it to some other partition/machine and copy files from there.
Finally, after many rounds of trial, with every time re-partitioning from scratch, and I was about to give up, I bumped into the forum post, where Natan had suggested a solution for a similar situation of problems with restoring extended partitions. I took a clue from there and did the following.
Restoring only D :
1. In the PingD image folder, renamed hda5.001 to hda1.001, hda5.002 to hda1.002 and so on for all the zip files. Effectively, fooling PING as if it was an image of C.
2. Deleted the "hda" file created by PING.
3. Created a blank text file, called hda.
4. Deleted the "hda5-first sectors.txt" file created by PING.
5. Re-did the partition table, to create one big 55GB primary partition.
6. Tried now to restore PingD to hda1 as identified by PING. Strange, isn't it, since it is the D partition files that are getting restored to the primary partition.
7. When asked "whether you want PING to extend the additional space", say Yes.
8. PING completes restoration.
9. Boot with Puppy, mounted the partition and saw the D files in it.
10. Remembered my room-mate's suggestion and copied the D-partition files from HDD to USB External hard disk.
Restoring only C :
1. Deleted partitions, Re-did the partitioning, to create one big 55 GB primary partition.
2. In the PingC image folder, Deleted the "hda" file created by PING.
3. Created a blank text file, called hda.
4. Deleted the "hda5-first sectors.txt" file created by PING. (Strange, but it worked only after I did this deletion and creation of blank stuff).
5. Restored C successfuly, similar to steps 6 to 9 above.
Back to Puppy, Gparted showed a good C partition, was mountable.
Used Gparted to shrink C. Created the Extended partition, Logical partition and so on for D & E.
Copied the D-partition files from the USB external disk, including Program Files.
Windows XP now booted neatly. I now had enough space to provide for hibernation, additional space for the page file and 15% space for defragmentation.
At the end of two nights, all is well that ends well.
In retrospect, it's quite possible, some of these steps are silly and illogical and there are better simpler ways to do these things or to find the answers earlier on. Whatever, allow some crazy stuff for a novice like me in the open-source world. Also, there must be more sophisticated ways to do this from scratch from the Shell command prompt, as noted by Natan here.
Don't ask me whether I could have reinstalled Windows XP on Day 1. Haha, I could have. Had it ready, but I wanted to book something to adventurous exploration :) and open source problem-solving. Also, I had always relied on PING, it can't fail me now, so I have to find ways to make it work. :) :) It's a very useful piece of software and I love it. :)
Wednesday, April 06, 2011
speed tests
In case vimeo upload is slower in the Studio, that will probably be due to filtering being done by cyberoam. We can disable cyberoam filtering for a particular user or machine to make it faster for vimeo uploads, or connect a machine directly to the public-ip subnet on the DLink.
After doing the speed tests, there was a false alarm when I found ftp transfer to my machine was going at only 25 Mbps when connected through a 100 Mbps link after the router. Later concluded that this was because of wifi being used at the last hop. Removed the wifi and connected by wired LAN and the transfer became 75 Mbps, no problems.
Monday, April 04, 2011
configuring the DFL-210 router without NAT
- remove the firewall rules mentioning NAT.
- add a single firewall rule with all services allow as below.
- Add appropriate IP addresses at the LAN and WAN end in the 'address book'.
- Routing is already enabled as below by default, so nothing else needs to be done.
(This means that all packets meant for ip addresses in lannet should go to the lan interface, all packets meant for the outside world - all-nets - should go to the wan interface and so on.) Even though "all services" are enabled, the router is intelligent enough not to allow access to its control panel from WAN port - accessing it gives an error 403.
Sunday, April 03, 2011
ssh in from macbook pro to saiwaves and others
Friday, April 01, 2011
migrating google sites to google apps
- Share the site as owner with the new GApps account.
- Log in with the new account, and after clicking on the notification email to go to the site, go to More Actions -> Manage Site -> General -> Copy this site.
lots of interesting online apps
www.techsupportalert.com/content/best-free-online-applications-and-services.htm
I've not yet tested all of them, but I created a pan online with www.dermandar.com here.
Also tried out a one-page OCR with www.onlineocr.net - that also worked nicely.




