Tuesday, September 23, 2014

iPhone 6 battery life

Overall Apple executed well on one of the most important feature : battery life ranking #1

http://www.tomsguide.com/us/iphone-6-battery-life,news-19591.html

Now after 2 days of excitements here is a fact that I discover on the iPhone 6 plus with iOS

Facebook is a battery hog!

Facebook background activity took away 24% of battery life for shit that most of the time I don't care about!

Facebook needs to come up with a real plan to add more settings in order to save battery life and data bandwidth as well if they want to move away from the #1 spot of worse battery usage!

Here is few features ideas :


  1. While roaming don't sync the news speed. When you are travelling and posting to facebook you don't want to sync the news feed. Actually you only want to post and access your home page eventually to confirm that your content was posted.
  2. Auto play video on mouse over os a stupid feature and should be turned off automatically while roaming.
  3. Add a feature to hide all pictures (no download) expect the one you just posted. Make more important facebook settings available through the OS/App settings option not some obscure settings inside the human interface within the phone app.




Monday, August 11, 2014

First-person Hyperlapse Videos @ SIGGRAPH

https://www.youtube.com/watch?v=sA4Za3Hv6ng

"We present a method for converting first-person videos, for example, captured with a helmet camera during activities such as rock climbing or bicycling, into hyperlapse videos: time-lapse videos with a smoothly moving camera.

This video accompanies our SIGGRAPH paper and provides a technical explanation of our system.

Check out our project page for more details:"

http://research.microsoft.com/hyperlapse

Wednesday, August 06, 2014

Adding new harddrive live to Ubuntu VMWARE image


Very useful after doing a repo sync on a gigantic repo...

Create the disks in the Virtual Infrastructure Client


Right click on the guest, click “Edit Settings…”

Under the “Hardware” tab, click “Add”

For the device type, select “Hard Disk”, click “Next”, and “Next” again

Specify the size of your disk, optionally enable Thin Provisioning, and click “Next”, “Next”, “Finish”, “Ok”


Re-scan the scsi bus for new hardware


cat /proc/partitions

Note the list of devices

sudo apt-get install scsitools

sudo rescan-scsi-bus.sh

cat /proc/partitions

See what devices got added


Format the new disk

Format the newly detected drive using fdisk

fdisk /dev/sdb

    n (for new partition)

    p (for primary partition)

    1 (partition number)

    (keep the other values default)

    w (write changes)

    

sudo mkfs -t ext3 /dev/


Add the devices to /dev/disk/by-uuid/


sudo partprobe

sudo blkid /dev/

Note the UUID


Add the new mount to /etc/fstab, and mount the filesystem


sudo vi /etc/fstab

mount -a 

Thursday, July 24, 2014

Housing Trends, Short and Long Term




SOURCE: ROBERT J. SHILLER, "IRRATIONAL EXUBERANCE," SECOND EDITION (PRINCETON UNIVERSITY PRESS), AS UPDATED BY AUTHOR 



By JEFF SOMMER
April 15, 2013

4/16/13 | Updated to reflect new figures on housing starts and building permits.
Home prices in the United States have been on a roller coaster ride for the last decade — soaring through 2005, then plunging in the steepest decline since the Great Depression. In 2012, though, prices began moving upward.
How solid is the incipient housing recovery, and what are the prospects for home prices in the decade ahead?
Some fresh clues about the short-term trends began arriving this week. And an analysis of the long-term prospects for home prices began appearing in a three-part series of columns in Sunday Business by Robert Shiller, the Yale economist.

First, the short-term trend: based, at least, on a report on Monday morning, it appeared to be taking a zigzag path rather than a straight line upward. According to the National Association of Home Builders/Wells Fargo Housing Market index, sentiment among home builders declined in April for the third consecutive month, to 42 from 44 the previous month. While that index climbed in 2012, it has not been above the neutral level of 50 since April 2006, when the market collapse was already under way.
In another report, on Tuesday — the tally of housing starts and building permits in March — Wall Street economists were expecting another set of strong numbers, but the picture was mixed. The Commerce Department said housing starts climbed to a 1.04 million annual rate, the fastest pace since June 2008, and up from a revised rate of 968,000 in February. But while construction surged for multifamily units — many intended as rentals — the building of single-family homes declined. And building permits over all fell 3.9 percent from the previous month.
Still, the short-term trend for the housing market seemed clear and strong enough for Michael E. Feroli, chief United States economist at JPMorgan Chase, to conclude in a report on April 10 that residential investment – including home building, repairs, renovation and brokers’ fees – would rise enough this year to add 0.5 percent to G.D.P. growth.

As for home prices, no major reports were imminent. But in the fourth quarter of 2012, the latest home period included in the Standard & Poor’s Case-Shiller 20-city index, prices rose sharply, at the fastest rate since June 2006.

Professor Shiller, who helped devise the Case-Shiller index, says in his Economic View column on Sunday even if the upward trend for prices continues for a while, historical data shows that it’s not necessarily meaningful over the long haul.
“One-year home price increases, after correcting for inflation, have had almost no statistical relationship to increases 10 years down the road,” he writes. “Thus, the upturn last year is irrelevant to long-run forecasting. Booms are typically followed by busts, usually in far less than 10 years. In a decade, an entire housing boom, if there is one in inflation-corrected terms, is likely to have been reversed and completely washed away.”

In assessing long-term price trends, he says, prospective home buyers ought to emphasize fundamental factors like inflation and construction costs, which he discusses in his first column. While inflation creates the illusion that real home prices are increasing, rising productivity in the construction industry often drives down the cost of housing.
Next Sunday’s column will deal with real estate bubbles, and with the speculative effects of years of declining interest rates on housing and other markets. The third will consider cultural and demographic trends, including the stimulative market influence of a rising population — and the potential constraints on prices that could occur as America ages..


Xiaomi's 49-inch Android TV boasts 4K for just $640

The Mi Pad wasn't Xiaomi's only announcement 2 months ago. Following the Chinese company's first smart TV from last September, 2 months ago it has unveiled a slightly larger model with a nice surprise: 4K for just CN¥3,999 or about $640! Like its affordable predecessor, this 49-inch TV comes with built-in Android (with MIUI TV skin), though you can easily side-load other TV apps. On the hardware side, you'll find a 4K 3D panel made by either LG or CSOT within a 6.2mm aluminum bezel, and underneath that lies a MediaTek MStar 6A918 chip (1.45GHz quad-core CPU, Mali-450 MP4 GPU) plus 2GB of RAM to drive all those pixels. On top of the built-in 8GB space, you also get to add up to 64GB of storage via microSD.


http://www.engadget.com/2014/05/15/xiaomi-mi-tv-2-4k/

Tuesday, July 22, 2014

libwebviewchromium.so is a memory hog Android 4.4.4_r1 inside Ubuntu 13 VM

A very good alternative is to install openbox which takes about 1/2 memory to load instead of standard ubuntu Windows Manager http://openbox.org/

target SharedLib: libwebviewchromium (out/target/product/hammerhead/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)
collect2: error: ld terminated with signal 9 [Killed]
make: *** [out/target/product/hammerhead/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so]

When building inside a VM with Ubuntu VM in case you only created a swap partition of 2 GB, you need to add more swap because you need about 3GB of swap to link this monster libwebviewchromium...

1. Create empty file:
This file will contain virtual memory contents so make file big enough for your needs. This one will create 1Gb file which means +1Gb swap space for your system:
dd if=/dev/zero of=/var/swapfile.img bs=1024 count=3M
If you want to make 3Gb file then change count value to count=3M. See man dd for more information.
2. Bake swap file:
Following command is going to make "swap filesystem" inside your fresh swap file.
mkswap /var/swapfile.img
3. Bring up on boot:
To make sure that your new swap space is activated while booting up computer you should add it to filesystem configuration file 
/etc/fstab. Add it to end of file, this is recommended because other filesystems (at least one that contains swap file) must be mounted in read-write mode before we can access any files.
# Add this line to /etc/fstab
/var/swapfile.img swap swap sw 0 0

or

echo /var/swapfile.img none swap defaults 0 0 | sudo tee -a /etc/fstab


4. Activate:
You can either reboot your computer or activate new swap file by hand with following command:
swapon /var/swapfile.img

 If swapon fail please use sudo gparted and try to turn all swap partition off then on again 

If everything goes well
you should see that more swap space is available for use. You can use following commands to check your new swap and confirm that it is active:
cat /proc/swaps  
Filename                   Type       Size    Used    Priority
  /dev/sda5                partition  2094076 2094056 -1  
  /var/swapfile.img        file       4194300 383604  -2

grep 'Swap' /proc/meminfo
  SwapCached:        380992 kB
  SwapTotal:        6288376 kB
  SwapFree:         3838044 kB

Thursday, April 10, 2014

How to Survive a Total Constellation Outage

"There are two receivers shown here, from two different manufacturers, both in smartphones. The yellow dots are for a GPS/GLONASS receiver; the blue dots are from the Broadcom 47531 receiver which tracks GPS/GLONASS/QZSS/BeiDou signals simultaneously. The 47531 receiver includes logic to use redundant measurements to check the validity of all measurements. It successfully identified and removed the bad GLONASS ephemeris 100 percent of the time, as can be seen by the continuity and accuracy of the positions."

Full article available at the following URL:

http://gpsworld.com/how-to-survive-a-total-constellation-outage/

Wednesday, January 08, 2014

chm viewer compatible with doxygen 1.7.6.1 and chmcmd on ubuntu

ChmSee is doing the job

https://apps.ubuntu.com/cat/applications/precise/chmsee/

Google Python Preprocessor

A variation on the C preprocessor that (1) works on multiple languages and (2) encodes preprocessor statements as comments in that language so syntax correctness is not broken. This project provides a Python script: preprocess.py
https://code.google.com/p/preprocess/

Install Notes
-------------

Download the latest `preprocess` source package, unzip it, and run `python
setup.py install`:

unzip preprocess-1.1.0.zip
cd preprocess-1.1.0
python setup.py install