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.