Tuesday, May 05, 2015

Oculus Rift trials

Finally a post on the Oculus Rift DK2. I had tried out Google Cardboard earlier, and wanted to see how much better the Rift is. Unfortunately the system specs needed are very steep. Smooth 70 fps+ framerates were obtained only on a machine with the following specs, which costs more than Rs. 2 lakhs:


A Mac Mini was not enough - the frame rate was 10 fps for the Tuscany Demo. A few of the Rift demos I sampled were the following:


Short notes:
VRSurgery - view is like a big screen tv with a wide field of view.
3d gallery - interesting and works OK.
HiyoshiJump - a simple demo
bungee - no hmd detected - probably this does not work with DK2
surface of mars - an OK demo
spacewalk - limited?
Malfunction - hmd?
mars walk - field of view not as good as "surface of mars"
chair in a room - an OK demo
earthvr - needs a good internet connection and good specs for the machine
roculus - a lo res demo
vrspacetunnel - wrong registration - probably doesn't work with DK2
Titans of space worked at 15 fps on the Mac Mini
Unity demo - at 10 fps on the Mac Mini
Trying a fisheye movie Cosmic Colors on liveviewrift - not very clear focus, equirec mode
vrplayer not available for Mac, so can't do a head to head comparison with Google Cardboard.
Edit - KolorEyes player is available for both Cardboard (Android) and Oculus. Renders well.

My conclusion of Rift vs Cardboard - Cardboard's strength is affordability -smooth display, no rendering lags on low cost hardware. With a powerful machine, Rift shines due to configurability, input methods, hand tracking possibilities, etc. 

Monday, April 06, 2015

Optoma projector HDMI quirk

While testing a VGA-to-HDMI converter box, came across this quirk with our Optoma TX1080 projector. It did not recognize the HDMI input if the HDMI signal was changed after the projector was powered on. The fail-safe workaround was to do a hard reboot of the projector, removing the power cord, and then putting on the projector with a valid HDMI signal present - then it detects, and is able to change resolution also if the HDMI resolution changes.

The VGA to HDMI box was able to convert almost any resolution which my PC output to HDMI, sending  720p, 1080p and even resolutions of 1600x1200, 1280x1024 etc - the aspect ratio setting on the projector could be set to original pixels or 16x9 or 4x3 etc, and a suitable picture resulted. 

Tuesday, March 31, 2015

Adobe Audition settings export

A wanted to export settings from Audition and import it on another machine. My reply was:

Here is the method for exporting and importing application settings from audition,
https://helpx.adobe.com/audition/using/customizing-saving-application-settings.html

Choose File > Export > Application Settings. Then specify a filename and location.

To reapply the settings at a later time, choose File > Import > Application Settings.

For exporting presets, this forum post  :
https://forums.adobe.com/thread/1042236
gives detailed instuctions on how to find the presets folder.

Then this page says, how to export mixdowns, sessions etc
https://helpx.adobe.com/audition/using/whats-new-cs6.html

Choose File > Export > Session As Template to create multitrack templates that speed up recurring projects requiring similar settings, tasks, and source files. To apply a template to a new session, choose File > New > Multitrack Session, and then choose a Template option.

To archive whole sessions or move them to other systems along with markers, metadata, and source files, choose File > Export > Session. In the Export Session dialog box, customize exported source files by selecting Save Copies Of Associated Files, and clicking Options. To change file format, select Convert Files. To export full or trimmed source files, choose Media Options.

Choose File > Export > Mixdown, and review the Mixdown Options section. Click Change to output tracks as separate files, or simultaneously output mono, stereo, and 5.1 masters.

Monday, March 09, 2015

players on Android for radiosai streams

Adapted from a support email to a listener who complained that radiosai on a Lenovo tablet worked sometimes and did not work sometimes.

The various options are listed at
http://radiosai.org/Pages/Streaming_Audio.htm#mobile
One way would be to try out the different apps listed there.

Unfortunately, we have found that various Android devices have various incompatibilities. Some players work on some devices while some don't. Apps like Tunein radio are very likely to work, since they have large installed bases.

Opera mobile browser plays our streams from the player linked from the home page radiosai.org when "Opera Turbo" is turned off. It does not seem to play the streams when Turbo is turned on. Chrome mobile browser plays too. 

Tuesday, March 03, 2015

fulldome clip - DNA flythrough

DNA FLY-THROUGH - A dramatic journey through the DNA double helix.

FILM TYPE
Biology
Key Stages 3-5, General audiences
Length: 1 min
Full preview: http://bit.ly/1tgKIGw
Available as: 1920px MOV
No User Agreement to complete.


From BFI,

http://www.bfi.gb.com/
 

free planetarium show - Astronomy Photographer of the Year 2014

ASTRONOMY PHOTOGRAPHER OF THE YEAR 2014 - the Royal Observatory Greenwich proudly presents selected images of the Astronomy Photographer of the Year 2014 competition. Exhibited in glorious 360˚ and showcasing incredible images of the sky, you will marvel at spectacles from both within our Solar System and from distant deep space. More photographs than ever of solar features, eclipses, aurorae, nebulae, star trails and much more were received as entries from around the world this year - and for the first time, even a photograph taken from the edge of Space!

FILM TYPE
Astronomy / Music / Art
Length: 12 min
Full preview: http://bit.ly/apy2014
Available as: 1024, 1080, 1536,1920px MOV


From BFI,

http://www.bfi.gb.com/
 

free planetarium show - Astro photographer of the year 2013

ASTRO PHOTOGRAPHER OF THE YEAR 2013 - imagine sitting comfortably in a dark planetarium. You look up at the 360˚ screen and the room explodes with images of the Universe. The Astronomy Photographer of the Year competition, run annually by the Royal Museums Greenwich, attracts the very best photographs of the Cosmos from around the world. Immerse yourself in the breathtaking beauty of the heavens, enjoying the spectacle with ambient background music.

FILM TYPE
Astronomy / Music / Art
Length: 12 min
Full preview: http://bit.ly/apy2013
Available as: 1920px MOV
 


Distributed by BFI,


http://www.bfi.gb.com/

free planetarium show - Clockwork skies

Another Ott planetarium show from BFI,

http://www.bfi.gb.com/
CLOCKWORK SKIES - explore the motions of the stars, Sun, Moon and planets - are they moving or are we? Learn about daily motion and the Earth's rotation; the Moon's monthly orbit of our planet and how the Earth takes a full year to travel around the Sun. The Solar System is like a giant celestial clock powered by gravity.

FILM TYPE
Length: 5 min
KS 1 - KS2
Full preview: http://bit.ly/ott_cs
Available as: 1080 / 1536 / 2048px MOV



free planetarium show - Space Shapes

One of the Ott planetarium movies, rendered and distributed by BFI,
BFI logo


SPACE SHAPES - what's the difference between a sphere and a disc? A ball and a pancake? Lift off in a rocket and find out! Fly to the Moon and discover an 'orbit'. Visit the planets to see if they are round like a ball or round like a pancake. What about the Solar System, is it round like a pancake or round like a ball?

FILM TYPE
Length: 9 min
Reception & KS 1
Full preview: http://bit.ly/ott_ss
Available as: 1080 / 1536 / 2048px MOV


free planetarium show - solar system adventure

The BFI lists this show,
with a short intro and more info,

SOLAR SYSTEM ADVENTURE - embark on a 12-minute adventure to explore the planets, moons and countless other objects orbiting our nearest star the Sun. Make a quick stop at each of the planets to examine its makeup. Enjoy an unforgettable cruise through the rings of Saturn as you zig-zag past countless pieces of ice. Discover the mystery and beauty of our planetary neighbourhood in this fast-paced, informative film.

FILM TYPE
Length: 12 min
KS 2-5, general audiences
Full preview: http://bit.ly/bfi-ssa
Available as: 1600px MOV in English, French & Italian
User Agreement to complete.
For your copy contact: free_int@bfi.gb.com

Short link to this page: http://bit.ly/bfi_ssa


BFI logo and link,  currently it goes to their facebook page,
http://www.bfi.gb.com/


link farming for bfi

The British Fulldome Institute has a very useful feature - not only do they list free shows, but they distribute them too! But they request a link for every show. So, the next few posts are going to be about each planetarium show I requested, and with a link to BFI!

Saturday, February 28, 2015

server dns issue

One of our servers at Dallas stopped sending us daily status emails. Mentioned it to PB. He checked the logs and found DNS not resolving. Checked the nameserver, found it was set to 4.2.2.2. Apparently that belongs to Level 3.

Asked Codero tech support, they said that for that data centre, the nameserver has to be some external one, like Google's and so on. Apparently just editing /etc/resolv.conf is not the answer, but have to edit /etc/network/interfaces and reboot. So P set it to Google's 8.8.8.8 and 8.8.4.4 and rebooted, problem solved. 

Thursday, February 26, 2015

slow shared server - my comments

One of our ashram websites was becoming very slow to respond, and one of us submitted a ticket to Nettigritty. I interjected with the following comments, when Nettigritty responded that they did not see any issue:

In general, these shared web servers will not be very responsive - you might have seen how slow the web control panel is. So, if the mysql server is also on a shared server, or on a shared network connection like our cyberoam, that may be the reason.

The solution may be to use asynchronous protocols instead of real time updates, or using larger time-out settings on the server, or using protocols which run over http/https like xml / soap. (But SOAP has been deprecated.) In general, it is very dangerous to directly leave the sql server open to the web.

Planetarium dome surface area

There was a request for estimate of Planetarium dome surface area for painting.

1. Looking at the dome, for eg. in the picture at our website, I estimate 45 4-sided figures visible from the front. Assuming 45 more from the back, and rounding off to 100, I would estimate 100x area of one 4-sided figure.

The 4-sided figure is made of 3 triangles and one trapezium, and its overall shape is like a big equilateral triangle of side approximately 3 metres as measured with a metre scale, an estimate which is likely to be a bit on the low side, would be sqrt(3)/4*3^2 x100,
3.9 sq. metres x 100 = 400 square metres (approx).

2. Another estimate is using the distance measured with my feet for radius, 10.75 metres, for the dome. That would make it 2*pi*r^2 = 725 square metres!

This is closer to being correct, because the estimate of 100 4-sided figures by looking at the picture is probably wrong. 

But this would be area if the hemisphere was smooth. Actually it is more like a series of pyramids. So, the actual area could be even double this estimate. 

(Eg. If a pyramid has 10m x 10m length and breadth, if it has 10m height also, google shows that its surface area would be around 350. Subtracting the base area of 100, that makes it 2.5 times the area of the base alone.)

Tuesday, February 17, 2015

znetlive hosting and folder permission changes

The CT web team wanted to change permissions for an image upload folder for a new site under construction. Changing through filezilla gave the error: SITE CHMOD [permissions] not understood - apparently IIS FTP server can't change permissions?

ZNET LIVE's user portal also couldn't change the permissions, "Error reading file/folder permissions".

Finally resolved by contacting their customer support and asking them to change the permissions. Luckily the difficulties experienced by these people or these were not faced by the CT team. 

Sunday, February 15, 2015

email ids for a new domain - Zoho mail

Google Apps free signup is no longer available. znet, where the website is hosted, offers a free email plan. But after creating there, mail sent from that account takes around 20 minutes to reach, and also goes to gmail's spam. Gmail has now stopped support for sending emails for other domains from their smtp servers. So the free email forwarding from godaddy, to a gmail id, and replying from gmail will not work. Free email hosting for domains from hotmail.com has also stopped.

Due to the delays and poor spam reputation of znet servers, S suggested moving to Zoho's free plan. So, migrated to Zoho, the experience so far is good. 

Monday, February 09, 2015

google earth for earth zoom-in movies

Now that google earth pro is available for free, creating google earth zoom in videos should now be easier I suppose.

Digitalurban describes a click and drag method as well as a zoom out and then reverse method.

And this hi-res movie making script method is nice for resolutions higher than 1080p.

Saturday, February 07, 2015

4d dicom file from renal scan

S had a student who had a problem with a 4-d dicom file from a renal scan. He wanted to display it on the screen and do some manipulations on it with matlab, but of course his routines expected 2D images and not 4-D data.

At first, I assumed the dicomread routine was wrongly reporting 4D data - 64x64x1x63 , and asked him to use squeeze to get rid of the extra dimensions. Then I read that the 4D is actually correct, and also a better treatment of the files rather than squeeze. In his code, there were some for loops, and using matlab's matrix methods are generally faster.

Sunday, February 01, 2015

experiences with google cardboard

Got an assembled Google cardboard from K - had ordered via TinyDeal.com for around $2. This reddit thread helped in getting to know some basic apps. My USP was two-fold. Try out immersive planetarium-style experience with VR Player, and to get a large screen experience for movie watching, normal flat screen movies. Phone used was the Xiaomi Mi3.

The magnet on the cardboard viewer was not fixed properly. This dodocase thread gave the pointer of testing with the app called Sensors for testing. Also, how to correctly assemble, from this video. But the magnet is not used in the apps I needed, below.

Planetarium show experience:
The only app I found which supported fulldome rendering was VR Player. It needs the video to be in mp4 AVC (H264) format with baseline profile in order to display without dropping frames! Have to re-encode with Handbrake for this - ensure zero cropping in the first screen - Picture tab, and choose H.264 Profile as baseline in the Video tab. With those settings, and choosing constant framerate and specifying an average bitrate of 6000 kbps, good results for me, and a 1.5 GB file for a half-hour planetarium show in 2K.

In the VR Player app, the default 110 degree FOV setting gives reasonably good results with the full dome projection. But the default number of slices - 32 - leads to somewhat wavy straight lines etc - distortions in the warping. Number of slices 100 gave much cleaner results. The Coverage setting was at 180, and Tilt at 0. Using this, by hitting the calibrate button at the bottom of the screen when onscreen controls are on (toggle on and off by touching the screen) an appropriate tilt of 30-40 degrees could be set.

I also needed to disable the Gestures in the settings - before that, the screen was getting tapped by the cardboard, and was calibrating again and again during the movie, causing the viewport to shift. Removing the magnet may also be necessary to prevent drift - I removed it, just to be safe.

The experience is somewhat like viewing the show in the dome through blinkers or through binoculars. Somewhat restricted field of view, somewhat distorted at the edges. Suggestions for settings tweaks are welcome.

For flat movie viewing, found that VR Cinema Pro was the best choice for me. It has an option to not track based on sensors, then the movie is shown on the centre of the screen. Choosing the + - buttons so that the movie is largest without being truncated, and choosing the pincushion/barrel distortion button to choose no distortion, side-by-side viewing gives a widescreen experience on Cardboard. Unfortunately the current version has a bug - every time a file is opened, it becomes thinner and thinner - squashed vertically.



After 3-4 times of open file, display becomes just a single line.

Rebooting the phone fixes it. Also, this app does not show up on the registered apps for viewing videos, so have to go through its own interface to open files, and then put on Cardboard.

Other apps with the same functionality, but more bells and whistles, have the unfortunate problem of needing mp4 video with baseline encoding for smooth playback, with other codecs causing dropped frames. Examples: Cmoar VR Cinema Pro, Fibrum VR CinemaVR Player, Side-by-side video player.

There are many other things which can be done with google cardboard, of course. Viewing photospheres with Orbulus, games, the official cardboard app, SBS (side-by-side) 3D youtube videos with VRTube and more.



Friday, January 23, 2015

using the web version of whatsapp

The instructions for using the web version are a bit terse: "simply open web.whatsapp.com in Chrome. You'll see a QR code — scan that inside of WhatsApp, and voila. Your phone will need to stay connected to the Internet for the Web client to work".

And how does one "scan that inside of WhatsApp"?

For scanning the QR code, you will need the latest version of WhatsApp on your phone. At this time, WhatsApp Web is available only for Android, Windows Phone, Nokia S60, BlackBerry and BB10 smartphones. With the latest version which supports the web client, if you go to the menu (on Android, by going to the chats screen and clicking on the ... on the top right corner) you will find a Whatsapp Web option. Choosing that option opens up the QR code scanning utility. Initial screen is a help screen which shows what is to be done, click past it and then just frame the QR code within the QR code scanning utility's bounding box. 

Tuesday, January 20, 2015

Li ion battery charging info

An interesting link forwarded by DJD, lots of info, but a bit old, and specific to removable device batteries:

http://batteryuniversity.com/learn/article/charging_lithium_ion_batteries

problems with xiaomi mi3

The first problem with the phone has surfaced. Perhaps it is related to the inadvertent water treatment it received.  After a call which I put on speakerphone, when I switched back to earpiece, the earpiece did not work. At first I thought it must be a software problem, so I thought a factory reset, or if that fails, upgrading to a newer ROM (firmware) might solve it, as per this thread.

But no. Upgraded to the latest MIUI 6, but problem persisted.

According to this thread, if the hardware test fails, have to return for repair or replacement. So I dialled  *#*#64663#*#* and did the test, no sound.

Then I thought, if it is a hardware issue, it must be some sort of stuck relay or contact. Gave it a couple of hard whacks with the USB charger connected. And hey-presto - started working :)

Unfortunately the problem keeps resurfacing now, even when I do not put the phone in speaker-phone mode. Occasional hard taps are needed for the earpiece to start working. Sometimes irritating when receiving a call.


problem with virtualdub frameserver maybe due to avisynth directshowsource

When I warped a mov file using the virtualdub frameserver method and GL_warp2avi, found that the video had not completed till the end. Digging in, found that the output frame rate was 25 fps, while the input file had 30 fps. Looks like the directshowsource avisynth method does not correctly report frame rate for some files? Manually setting the frame rate to 30 fps in virtualdub, then creating the frameserver signpost seems to solve the issue.

Edit: The problem seemed to be with ffmpeg reading the Sorenson SVQ3 video codec. Had to use Avidemux to transcode to AVC (x264) and then use directshowsource etc. 

Sunday, January 18, 2015

xiaomi mi3 reboot loop

I wanted to downgrade the xiaomi mi3 phone to the firmware customized for India, which is MIUI v5, after the upgrade while trying to solve the earpiece issue. The MIUI 6 had too many China-specific defaults, and even seemed to not work with Airtel's *123# USSD service. When I just downloaded the firmware, copied it to the phone and tried to update using the phone's update tool, choosing the update file using the menu, the phone went into a reboot loop.

Apparently a complete system wipe is needed when downgrading - but not needed for upgrading.

Came out of the reboot loop using the reboot to recovery mode option, by pressing down the power and volume UP button. From there, chose to wipe entire phone, and then it gave option of booting to System 1 or System 2. Booting to System 1 gave a functional phone, but when I tried to install apps, found that it did not have google play services! System 2 was the MIUI 6.

Then I thought of using the update.zip method of updating the phone from recovery mode - copied the v5 firmware using USB to the phone's root directory, renamed as update.zip and used the recovery mode option to write update.zip to System 1. There were some hiccups due to loose contacts in the USB cable. Windows refused to recognize the device with the flaky cable, booted into Ubuntu and did the job.

So, finally back to MIUI v5, but the background and lock screen I had previously seems to be gone - maybe those were flipkart customizations? Anyway, loaded most of the apps I had before, and things seem OK now. 

Saturday, January 17, 2015

free transform tool in GIMP - perspective tool

The perspective tool is the equivalent of Photoshop's free transform. Had to use it to straighten some documents which had been photographed. Camscanner does this sort of thing automatically, very nicely too. Anyway, the perspective tool details were from

http://ubuntuforums.org/showthread.php?t=823364

http://ubuntuforums.org/showthread.php?t=1262679

Saturday, January 10, 2015

first fraudulent credit card transaction

I had my first fraudulent credit card transaction yesterday. Got a notification sms that some 1300 rupees had been paid to NICOLEBURNS. Immediately called up HDFC credit card customer care, they said if it is not done by me or by my auxiliary card holder, then I should hotlist via HDFC netbanking, and fill up a form for disputing the transaction.

Hotlisting and getting a new card will cost me Rs. 100, it will take a week or two to arrive. The transaction will be investigated, and if I am found right it will be credited back in 45-90 days, that is what the person said. Today I got a mail from HDFC saying that the amount was only authorized and not yet settled, so I will be not charged that amount by the end of the billing cycle. 

Thursday, January 08, 2015

iphone caveats

Caveats for an old jailbroken iPhone 3G which I wrote down for N:

So Skype cannot be installed. Other things to note:
  • If you sync with iTunes DO NOT upgrade the iOS version with iTunes when it says "Newer version available", upgrade will cause the jailbreak to fail. Check the box saying don't show me this again, and hit Cancel. 
  • If you sync with iTunes, if you connect to another computer with iTunes ans sync there, all your music files will be automatically deleted. So, DO NOT sync with other computers if you want to retain your music files.
  • If you wish to transfer files to and from the iphone, copy trans manager is a better iTunes alternative, will not automatically delete.
  • Change the screen time-out using Settings -> General -> Auto-Lock 
  • I used iTunes to change the Phone name, and uninstalled it after use. 

change iphone name

I was tasked with changing the name of an old iphone 3g, ios 4. iOS 5 and above allow direct editing from the phone's Settings -> About page. But for iOS 4, have to do it with iTunes.

Tried to avoid iTunes - my work laptop seems to be supplying less power, so the iPhone doesn't get detected with USB cable. Tried to do it via third-party apps like iFunBox, iSpirit with wifi sync etc - they did not seem to have the renaming phone option.

Tried to edit it via POSIX commands with an ssh shell - from
http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/

tried
sysctl -w kern.hostname=NewName
Unfortunately the name did not remain on reboot. Checked some of the plist files, but could not find the appropriate place to edit. 

So, finally folded and used iTunes, USB cable to home laptop and edited. 

Monday, January 05, 2015

audition batch save regions

Reply to a query from AS:

In my version of cool edit pro, older version of adobe audition, the cue list window has a "batch" buttton at the bottom, which allows you to save all regions as files.
In audition, the sequence of steps seems to be like this, somewhat similar:
http://blogs.adobe.com/audition/2010/06/using_audition_to_save_section.html

And merge point markers to make range markers. 

Sunday, December 28, 2014

streaming live video from gopro

S asked me about streaming live video wirelessly from their GoPro Hero 3+ camera.

This article gives the steps in text form:
http://www.wikihow.com/Stream-Your-GoPro-to-Your-PC-Using-VLC-Media-Player

This youtube video shows in video form.
https://www.youtube.com/watch?v=-BByvuPSdms

EZcast dongle - wireless display - display mirroring over wifi

I recently got an EZCast dongle, which can handle MiraCast, Apple AirPlay and DLNA as well as output from it's own EZCast app. Things to take care while using:

  • Make sure that the USB port powering the dongle can supply sufficient power. Or use a good quality USB charger. Low quality chargers may have electrical noise issues. 
  • First set up using the EZCast app - that is the easiest way to get things going. Using an Android phone, for eg, install the app, then connect to the EZCast dongle's wifi access point SSID displayed on the initial setup screen. After that, run the app, it scans for the EZCast device, and the setup is fairly self-explanatory after that.
  • EZMirror - display mirroring using Miracast - requires the device to support it. Many cheaper devices don't.
Using the Xiaomi Mi3 with EZCast with EZMirror mode was similar to the youtube video demonstrating the Mi2 - but the menu item is in Settings -> More -> Wi-Fi Display
When the EZCast is set up in EZMirror mode, once you go to Settings -> More -> Wi-Fi Display and Enable Wifi display, the EZCast device will be displayed below it, and can be selected to start the screen mirroring.

About the quality - the video quality degrades a bit compared to a direct wired HDMI connection, due to the re-encoding with H.264 and depending on the setup, resolution of the video may also be changed. There is also a bit of latency, 5 frames or so in the case of mirroring on my phone. 

Saturday, December 27, 2014

stream video from gopro camera

The Studio folks got a GoPro Hero3+ camera and they wanted to use it wirelessly. Showed them:

This youtube video shows in video form.
https://www.youtube.com/watch?v=-BByvuPSdms

Unfortunately, a lot of delay in the video - so usefulness would be limited for live programs. The range of the wifi would also be a limitation. 

Tuesday, December 16, 2014

exporting anu fonts to unicode

At long last, found a web tool to convert anu fonts - used by the Telugu team to create pagemaker documents, exported to pdf - to unicode, for pasting in Wordpad and so on.

https://www.google.co.in/search?q=export+text+anu+fonts+telugu

http://crossroads.veeven.com/2010/11/15/converting-text-from-anu-to-unicode/

I used the second link, Dynamic Font to Unicode convertor, and got reasonably OK results. 

Monday, December 08, 2014

large file download and unzip

Just documenting the time taken etc. - downloading the 98 GB zip file from ESO's website,

  • On my machine with a single download segment, 3 Mbps, 3 days estimated, with our 10 Mbps network. 
  • On R's machine at college with their 1 Gbps network, Sat-night, Sun-morning, 4 segment download at around 15 Mbps. 1.5 MB per second. 15 hours. 10 segment download might have been faster. 
  • Copying from their NAS over their 1 Gbps internal network to the external hard disk - half an hour. 
  • Unzipping on my machine - around 4 hours with 7-zip. 

Friday, December 05, 2014

godaddy dns editing

One of my colleages needed some help with editing the DNS records on godaddy. The interface is not the easiest to navigate: In godaddy site -> expand domains by clicking the + sign to the left -> click Launch for the required domain -> Click on DNS Zone file tab, make edits there. 

Thursday, December 04, 2014

internet radio, AppleTV etc and possible local issues

The Logitech internet radio of our neighbour was "not working". Found that the radio had some issues connecting when their ip camera is streaming. If the internet radio is started before the camera, then it can play even when the camera is on. Possible mitigation by reducing the frame rate or resolution of the camera image for reducing its network usage.

In case they think of the Apple TV or Roku, the internet connection may need to be upgraded. Some Indian reviewers mention that Apple TV needed > 5 Mbps for smooth video. Apparently Apple TV does not support live streams. So, the live broadcasts can't be watched (without airplay and another apple device, of course) only after the program concludes can those programs be watched. Maybe support for live will come later, like for the iOS app.

Similarly, the Roku Youtube app also has limitations, it apparently works only in US, UK, Canada and Ireland.

Here is a nice review of many of the current set top boxes, but US-centric
http://thewirecutter.com/reviews/roku-3-best-streaming-box/

Wednesday, November 19, 2014

firefox caching iframes

Today, P asked me to do a website update by ftp. But after putting in the required file, the youtube video in the embedded iframe did not change when I checked with Firefox, so I wondered if the correct file had been modified. Even refreshing the page did not help. Safari showed the correct iframe, so I cleared the Firefox cache, and then the correct video appeared. 

Monday, November 17, 2014

video stutter issue

I needed to increase brightness and contrast in a video warped with GL_warp2Avi but when I just loaded the video into virtualdub and tried to do it, vdub was reading the video two frames forward, one back and so on. Not sure whether the problem is with the xvid codec used, or with GL_warp2Avi or with vdub. Anyway, the workaround was to make an avisynth avs file with just directshowsource("myfilename.avi") and use that as the source for vdub. That worked fine. 

Sunday, November 16, 2014

Airtel and Reliance speeds

P got USB dongles for M - Reliance and Airtel. The Reliance data plans are cheaper, but the speeds are lower. Airtel speeds are higher and the tariff is higher too.

Speedtest.net gave Reliance 0.9 Mbps up as well as down. Airtel got 2.5 Mbps down, 0.5 Mbps up. This was done in the afternoon around 2 pm, so the networks were probably not congested. 

Saturday, November 15, 2014

adventures with a Xiaomi Mi3 phone

Was gifted a Xiaomi Mi3 phone in mid October. Now that I've used it for nearly a month, can write a bit about it. As the reviews say, it's a very nice phone, looks very distinguished. The few disadvantages from my point of view are maybe the large size and the slippery feel of the metallic body. Also the audio quality of the built-in headset needs a bit of tweaking - too much bass, making conversations somewhat unintelligible sometimes. Privacy concerns may have been addressed by the firmware update which I have applied.

Just a day or two after I got it, it fell into water and was completely underwater for a second or two, during a power outage when I was using it as a torch. Switched it off as soon as I fished it out, and kept it for 24 hours in an airtight container with raw rice for drying it. Then kept it on top of a warm fridge voltage stabilizer for another 12 hours to ensure that it has dried, and then switched on. No damage to normal operations, except for a sort of water stain which can be seen on the screen when the screen is completely white.

The processor + GPU is more capable than my work computer in playing high bitrate high resolution videos. For eg. a 10 Mbps 2K video which played at 0.5x on my laptop played back perfectly on the phone, using ES File Explorer to read it over a shared volume. The phone's 1920x1080 screen is higher res than my laptop's 1280x720!

Skype, Viber, Youtube etc etc all work without a hitch, and the mobile browsing experience is really good. The touch response is iPad-esque, not skittery like the cheaper Samsungs. Another good point is that the lock screen swipe does not happen accidentally from the pocket, unlike my earlier HTC. Overall, very happy with it. 

Tuesday, November 11, 2014

automatic deletion of files

PB had set up a cron to automatically delete files from a shared folder two weeks after they were put there. But folders were not being deleted. Now, he updated his script.

Earlier it was

/usr/bin/find  /path/to/folder/expires/* -ctime +15 -exec rm -f {}  \;

Updated to

/usr/bin/find  /path/to/folder/expires/* -ctime +15 -exec rm -Rf {}  \;

Sunday, November 09, 2014

Traffic causes cloudflare issue

Due to Akhanda Bhajan traffic I assume, Cloudflare was showing radiosai.org/program and associated pages inside that folder as being offline, or timed out etc, probably due to high load. I have put in a page rule by logging in to cloudflare, bypassing everything, so that cloudflare will be bypassed, and the page will load, even though it may load slowly.


(Removed this rule after a week).

Wednesday, November 05, 2014

spindles of solar system exhibit

KR noted down the speeds of the spindles of our solar system exhibit, which run using worm gears. The worm gears slip, and need to be aligned exactly for the planets to rotate. The spindle speeds are 8, 12 and 90 seconds per rotation, in the order below:

90


               8


12

(technician inside)


Tuesday, November 04, 2014

New IP for Server with Reverse DNS

Once we set up the new IP address and Reverse DNS via the hosting control panel, we were supposed to set up signing emails with dkim like
https://hnsws.blogspot.in/2009/05/signing-emails-with-dkim.html

apt-get install dkim-filter
error'd out with 
Unable to locate package dkim-filter

Looking around,
https://askubuntu.com/questions/116553/what-package-replaces-dkim-filter-in-12-04
Opendkim is what was needed - 
https://www.exratione.com/2014/07/setting-up-spf-and-dkim-for-an-ubuntu-1404-mail-server/

Wednesday, October 22, 2014

audio video sync problems persist

Even after using the SDI audio for the streaming and recording, the streaming video on youtube continues to have audio video sync issues, video lags audio by a frame or two. According to this thread,
http://atemuser.com/forums/atem-vision-mixers/blackmagic-atems/audiovideo-not-lipsync-when-using-unsynchronized-sources
we probably need an audio delay box if the Panasonic AG-HMX100 does not have audio delay built in.

Searching in the advanced operating instructions at
http://www.panasonic.com/business/provideo/AG-HMX100.asp
there does not seem to be any audio delay setting in the AG-HMX100

Audio delay units are available, this one is available in India for Rs. 8500.

Wednesday, October 15, 2014

Adobe Audition save all files

My colleague wanted Adobe Audition CS6 to save all associated files in a project into a single folder, a la Reaper or Nuendo.

On my old version of Cool Edit Pro, when you open a sesssion file and then choose File-> Save Session As, in the dialog box, there is an option at the bottom, "Save copies of all associated files". If that is checked, audition will save all the files in the same folder which you choose for saving the ses file.

But he did not have this option. Then googled and found that the answer was probably
http://helpx.adobe.com/audition/using/saving-exporting-files1.html#id_2294

File -> Export -> Session
and select Save Copies of Associated files. 

Tuesday, October 14, 2014

sitelutions stopping free dns redirection

One of the sites which had a domain redirect stopped working, and found that sitelutions.com had stopped their free dns redirection. "In October, 2014, after offering free DNS and redirection for about 14 years, Sitelutions was forced to shutdown free DNS and redirection. Over the years, the free services began to attract a significant amount of abuse, including very large DDoS attacks. These attacks would impact the services being provided to paying customers, and were very expensive to properly mitigate."

Shifting some domains to nettigritty nameservers (which were purchased via nettigritty.com), some to freedns.afraid.org and some to cloudflare dns.

Sunday, October 12, 2014

google public dns failure

Yesterday evening, radiosai.org was returning SERVFAIL on google's public DNS servers 8.8.8.8 and 8.8.4.4 - suspected because of dnssec failure. 


http://dnssec-debugger.verisignlabs.com/radiosai.org

https://groups.google.com/forum/#!topic/public-dns-discuss/4KyD2HYYcVo

https://groups.google.com/forum/#!topic/public-dns-discuss/xBjI62Kz-sw


But today it seems to be resolving OK. Checking with Cloudflare support, they said that it would probably have just been a google public dns failure. 

Friday, October 10, 2014

Java problem on Windows 8 machine

The Windows 8.1 desktop at the SSSHos.SS office was unable to use the Income tax site's java based authentication. Checking, found that even the java test applet was not loading. At first I suspected that the network firewall and proxy were blocking all java applets. But later found that other machines on the same network were able to access java applets without problems, eg the one in JHos. So, I wrote,

The following points can be checked.
1. Verify that it is a 64-bit version of java which is installed, and it is a 64-bit version of the browser (IE or firefox). If browser is 32 bit, then you need to install 32 bit version of Java also.
2. Verify that Windows Defender and or any other antivirus is turned off while testing for Java (and turn it back on after doing the test). This person found that Kaspersky was blocking the java applets,
http://www.howtogeek.com/forum/topic/windows-8-and-java-problem

But even disabling Kaspersky did not solve the issue - maybe it needs to be uninstalled? Temporary workaround is to use the JHos computer for this job. 

Friday, September 19, 2014

using virtualdub frameserver for warping tool GL_warp2Avi

Finally found a workaround for the 2 GB and avi only input limitations of GL_warp2Avi using Virtualdub's frameserver and the Avifile client bundled with Virtualdub. (auxsetup.exe).

Earlier method with AVFS - which uses Pismo File Mount Audit package to mount - had limitations - GL_warp2Avi crashed with a 3.5 GB mp4 file used as directshowsource in avisynth avs file.

With the Virtualdub frameserver, just naming the signpost file with an avi extension was enough, after the Avifile client bundled with Virtualdub was installed. Tested with 20 minute pieces with no problems. 40,000+ frames.

But in the process, found a somewhat new issue - the menu items don't appear to be visible when the GL_warp2Avi window is moved to the secondary monitor. So at present I just run it from the primary monitor. Minimizing the window did not seem to have any ill effect. Re-sizing the window would cause the output video also to be re-sized, of course. 

Thursday, September 18, 2014

Ubuntu servers needed manual ntp install

Our new servers at Dallas and Phoenix needed a manual install of the ntp daemon.

PB mentioned that
Found that the time diff between the servers was about a minute.
Did the following as suggested here   
https://help.ubuntu.com/10.04/serverguide/NTP.html

root:~# ntpdate ntp.ubuntu.com

Then I suggested checking for ntp 

And PB did the install on both machines,
apt-get install ntp

Thursday, September 11, 2014

Google Webmaster Tools verification for a domain which has forwarding enabled

Our colleagues wanted Google Webmaster Tools verification for a domain which has forwarding enabled. The standard methods did not work - even the DNS TXT record method did not work since the DNS provider sitelutions.com did not allow TXT records to be created for domains which have forwarding enabled. So, disabled forwarding, created the TXT record, and after the verification, enabled forwarding again.

We might have to do this whole process again - according to google, the verification code should remain on the server. But since we have put back the redirect, the TXT dns record has gone. So we shouldn't be surprised if google webmaster tools asks us for verification once again. 

Tuesday, September 02, 2014

batch processing on Adobe Audition

G and S had a query - how to run multiple processing steps using Adobe Audition's batch processing. Their version is probably CS6, on Mac. This page probably has the solution. First create a favorite by going to Favorites -> Start Recording Favorite and Stop Recording Favorite. Then choose that favorite in the batch processing drop-down.

repairing broken php on Ubuntu 14.04

M reported php redirects on our website were not working. Returning the php code instead. Found that php5 was not present in the mods-available folder.
apt-get install php5
reported that php5 was already installed. Our reinstall of apache after a purge had probably broken it. So, did
apt-get purge libapache2-mod-php5 libapache2-mod-php5filter  php5-cgi   php5-fpm php5
and then
apt-get install php5

That solved the problem. 

Saturday, August 30, 2014

new streaming server live

Changed TTL for our streaming server to 10 minutes, and some time later, changed the DNS A record. Tweeted that users should clear their browser caches in case of problems. After half an hour or so, many users were still connected to the old server. Manually kicked them, then many started connecting to the new server. After one day, only a handful were on the old server, so shut down icecast.

Thursday, August 28, 2014

changes to our icecast setup

Continuing my earlier post about changes while migrating, we made some changes to the icecast setup - using the on-connect tag to run our live begin and end scripts. There were some small hiccups while doing this - since the she-bang #!/bin/bash was not present on our scripts, they were not being executed. PB corrected this, and then giving the full path in the on-connect directive does the trick.

Also, instead of changing the alias of port 8020 to a different mount-point as earlier, we've now made the fallback-mount change in the mount-point telugustream during the live session.

(Our attempts to avoid the live begin and end scripts did not work. The fallback-mount directive for relay does not seem to work. So, if livemandirasia is a relay for livemandir, and livemandir does not have a fallback, then if asiastream falls back to livemandirasia, then if livemandir is not live, listeners get a 404 file not found. And if connect when live and live disconnects, listeners are kicked.)

In the web player at our website, the streams were linked to server1.radiosai.org:8000 etc - changed to stream.radiosai.org:8000 etc. and purged the cloudflare cache for those files. Other places have stream.radiosai.net, which is fine since it is a cname for stream.radiosai.org.

Then, PB found a nice way to make the icecast daemon start as our user (and not root) on reboot - the @reboot directive in crontab. So, now no manual intervention is required for starting the streams. Also, when done this way, the ulimit workaround we had to implement is automatically taken care of - the cron is run as root su'ed as our user.

key-based rsa auth - a caution

When doing key-based auth for ssh, a caveat - if the .ssh/authorized_keys or .ssh/id_rsa files are being modified, the permissions need to be set to not allow read or write by any other user for the authentication to work - chmod 600 needs to be done. 

Wednesday, August 27, 2014

changing servers with an upgrade

Migrating data from Internap (formerly Voxel) to Codero, we found that the upgrade from Ubuntu 10.04 to 14.04 breaks many of our configuration files. Apache and vsftpd in particular. Icecast remains at the same version, but our icecast scripts which use small binary files needed re-compiling, of course.

Apache:

  • Merely creating symlinks did not seem to work - we had to run a2enmod and a2ensite for them to work properly. This included a2enmod cgi , without which the awstats perl scripts were being shown as plain text :)
  • The default website name has changed from default to 000-default - without that, requests to the server using the ip address or using other names will not work. 
  • The configuration files in sites-available needed to have .conf at the end.
  • The old method of
    Order Allow, Deny
    Allow from all

    had to be changed as per this post to
    Require all granted
  • Many more changes in apache2.conf, so we just modified the newer apache2.conf step-by-step with our old requirements
Vsftpd:

This needed additional config lines as per this post, done by PB, added the lines 

chroot_local_user=YES
allow_writeable_chroot=YES
and restarted vsftpd to fix the problem with not being able to write using ftp. 

Icecast:

We created symlinks to mp3info, mp3splt etc since the paths to these given in the old scripts had changed. Also recompiled the "CCodes" files. cc filename.c -o filename_of_executable

We tried to run icecast from init scripts, but just changing the USERID and GROUPID in the icecast2 init script was not enough. Perhaps we have to add chroot and run as user parameters also in the xml config file - we have to explore this later. 

We also tried some techniques to try and get Telugustream to mirror the live from mandir stream only during live times, but the methods we tried did not work.

livefrommandirfortelugustream as an alias for livemandir, and having autotelugu as fallback-mount for livefrommandirfortelugustream did not work in that the alias does not work in cascaded fashion - we already have :8020/ aliased to telugustream, but this does not follow the alias to livemandir. 

Also, trying to make livefrommandirfortelugustream a relay of livemandir works, but when livemandir ends, it has the fallback-mount of autoasia, so livefrommandirfortelugustream continues to get the relay audio instead of falling back to autotelugu. 

So we have to retain our method of switching config files using a shell script and manually dumping telugustream users to the relevant mountpoint using icecast's /admin/moveclients.xsl called using wget. 



Sunday, August 17, 2014

video setup troubleshooting

The video team had a couple of problems. After changing video switchers from their older Datavideo DV switcher to the newer Panasonic AG-HMX100 HD mixer, they were not able to get a composite analog video out, or IEEE 1394 (firewire) DV out for streaming, and had rigged up a camera facing a screen for getting a DV feed. Apparently the Aja Ki Pro had earlier given them a composite out, but now was not giving it. Checked, found the manual mentions that the component out has to be set to SD in order for the composite out to be available. V did it, and it worked. That composite out is given to a DVCAM tape deck, which in turn gives a firewire out to the streaming server.

The next issue was regarding sourcing of PC playback video to the video mixer. Their setup had VGA out from PC going to a video doubler connected to the display screens in the hall, and a HDMI out from the PC going to a screen with a HDMI -> DVI cable. It so happened that the HD video switcher had a DVI input, only the resolutions supported were 1920x1080, 1280x768 etc. After changing the resolution to 1280x768 (1080p not supported by graphics card) and choosing the same format 1280x768 @ 60 Hz in the mixer settings, it could recognize the PC input as one of the valid sources. 

Tuesday, August 12, 2014

instapaper epubs on kobo reader

NNR gave me his Kobo Vox ereader to use. The epubs available for download from instapaper do not open in the Kobo's built-in library, but open in FBReader which I installed. Converting a mobi downloaded from instapaper to epub using Calibre could make that file recognizable by Kobo's library app. But with any method, the Feynman lectures' equations don't render correctly in epub. Printing to pdf using PDF995 and reading with Adobe Reader works nicely.  

Monday, August 11, 2014

documenting my fulldome process

Answer to a query about how we make movies from domemasters (still images of single frames):

To make the images into a movie, I usually do my own technical work. My workflow is on Windows. So, I generally follow this method.
Software used:
After installing the above software, I create an avisynth file, which is just a text file with .avs extension.

Opening this file in virtualdub, I choose
 Video -> Compression Xvid codec, maximum bitrate 9000 (kbps or so)
Audio -> Audio from other file -> choose the audio file
and then File -> Save as avi

Edit 19 Oct 2015: Adding a picture:


Saturday, August 09, 2014

data analysis with ROOT - redux

In my previous post about data analysis with ROOT, I had used the data from a single gamma. Extending it to multiple gammas - 1500 - and calculating the energy weighted position, found a bug in my code.

Apparently the Fill() function does not fill if the indices passed to it are 0. That is,
h2->Fill(i,j,energy2D[i][j])
will not work for i=0 or j=0. Since our energy2D C array has a range 0-7 for i & j, this Fill() had to be re-written as
h2->Fill(i,j,energy2D[i-1][j-1])
with the i & j range 1-8.

I also changed my definition of the histogram to
TH2I *h2 = new TH2I("h2","energy distribution",8,1,9, 8,1,9);
instead of
TH2I *h2 = new TH2I("h2","energy distribution",8,0,8, 8,0,8);

With the resulting root file, energy-weighted position analysis could be done quite quickly, almost instantaneously, with

// loading the data in root file
    TFile f("multifile.root");
    f.ls();
    TH2I* h = (TH2I*)f.Get("h2"); 

for (int i=1;i<9;i++)
    {     
    for (int j=1;j<9;j++)
      {
      bincontent=h->GetBinContent(i,j);
      ewposx += posx[i-1][j-1] * bincontent ;
      ewposy += posy[i-1][j-1] * bincontent ;
      totalcount +=  bincontent ;      
      }
    }
    ewposx /= totalcount;
    ewposy /= totalcount;
    printf("ewposx & y   = %f, %f\n", ewposx  , ewposy  );

Changing the position of the gamma was fairly straightforward in LXePrimaryGeneratorAction.cc

The calculation of energy weighted position in the LXe example seems to have broken somewhere in development - people have reported non-zero positions in 2010 and so on, but when it is run now, it returns only zero, since the GetPos() for the pmt hit collection class returns zero. This seems to have causes in the class definitions and so on - LXePMTHit.cc doesn't mention fPos private variable in the over-ride function for = operator and so on. Instead of trying to fix that, I just re-entered the position data in root, as

for (int i=0;i<8;i++)
    {
    y = -22.75;
    for (int j=0;j<8;j++)
      {
      posx[i][j]= x ;
      posy[i][j]= y ;

      //printf("pos2D[%d,%d]=%f,%f\n",i,j,posx[i][j] , posy[i][j] ); 
      y+=6.5;
      }
    x+=6.5;
    }



Friday, August 08, 2014

blogger limitations

Blogger is still raw around the edges! Surprising, even after so many years.
  • A post I did with email - the one just before this one - became mangled somehow, and made any page containing that post to break the browser so that links were disabled. Deleted it and reposted it from blogger compose window in order to fix it. Not sure what exactly was the issue, perhaps links are the issue in emailed posts.
  • Any < or > anywhere in the post has to be manually escaped, written as & lt ; and & gt ; respectively (without the spaces, of course). Otherwise blogger creates all sorts of problems, misrecognising them as html tags.

Thursday, August 07, 2014

Tuesday, August 05, 2014

opening multiple files in ROOT

If the filenames (or pathnames in this case) are sequential, this method in the ROOT forums would work.

while (i1<50) {
   
 sprintf(filename1,"pathnameTemplete_%d.txt",i1);
    f1 = new TFile(filename1,"READONLY");


and so on.

Otherwise this glob based solution might be useful.

Monday, August 04, 2014

ROOT canvas save problem

At first I could not save the ROOT plots, error mesg
Error in <tunixsystem::dynamicpathname>: Postscript[.so | .dll | .dylib | .sl | .dl | .a] does not exist in <tunixsystem::dynamicpathname> ...

Then found this discussion about this very same issue.

sudo apt-get install libroot-graf2d-postscript5.34

Solved.

Now I can save as png or pdf / ps etc. But not gif. Error,
Error in <tasimage::writeimage>: error writing file

But pdf and png are fine for now :)

data analysis with ROOT

Got similar results to my previous post with Octave, using ROOT.

Had some hiccups. Initial testing of ROOT C macro failed due to that particular sample data file being empty! The file input was based on this basic.C example. After getting the samples into the ntuple,
while (1) {
      in >> runID >> sID >> energy >> pixelID;
      if (!in.good()) break;
      ntuple->Fill(runID,sID,energy,pixelID);
      nlines++;
   }

I could do a simple linear plot just to check,
ntuple->Draw("pixelID","energy");

Then I created the same sort of 2D matrix as in octave - perhaps this is not necessary, but this is the way I did it :)

 for (int i=0;i<8;i++)
    for (int j=0;j
<8;j++)
     {
     energy2D[i][j]=0;    // initializing to zero, since 

                          // some i,j are not mentioned in the next loop
     }


for (int i=0;i<nlines;i++)     {
     ntuple->GetEntry(i);
    //pmtNumber pmtx is an 8x8 array,
    // assumed numbered rowwise.
    //for i=0:7, j=0:7,
    //i*8+j=pmtx. So
    jj= int(pmtx) % 8; //here we need to cast the float pmtx as an int
    ii= (pmtx -jj) / 8;
    energy2D[ii][jj]=enx   
     }


for (int i=0;i<8;i++)
 for (int j=0;j<8;j++)      {
     h2->Fill(i,j,energy2D[i][j]);
     }

h2->Draw("lego2");