Saturday, October 27, 2018

Stories by Elyssa : The girl with no name

It has been many years since I last updated this site.

Now, I have 2 daughters and the 2nd one is already 7 years old.

Below is a short story she attempted. 😊 (I will leave it as verbatim, including any grammar mistakes)

----------------------------------------------------------
Once there was a little girl. She love to go out to pick her garden's beans.

One day, when she was playing in her garden, she heard a scary sound. She was scared, she quickly hide in a bush. Then she saw a paper. On the paper it wrote "Alice!".

Chapter 2
After she saw the paper, she quickly went back home. She gave her mom the paper. She said "I like this name!". Her mom was impressed. Her mom said to her "Well, well, then we will give you this name".
She was so happy. So everyday, her friends call her Alice!

The end.



--------------------------------------------
At the end, Elyssa create a little quiz too. Probably like how she see the stories in school. 





Wednesday, February 12, 2014

Converting wmv to mp4 (for online video player)

It has been a while since I last blogged. Too many things have been happening.

Anyhow, here is another entry. This time, it was because of work that I needed to build pages to run videos uploaded by different individual staff for an internal system.

First problem I had was that the file was too large to be uploaded. No other work-around found unless the staff themselves contact me, pass me the file, and I personally perform an FTP upload.

However, the file can go up to 4 GB and that is really too large. Researched the web and found that MP4 files can be easily converted to a smaller WMV file by using window movie maker. While the guide on "How to Reduce Video Size" refers to an older version of windows movie maker, the steps are still applicable in principle. On windows 7, I just need to open the MP4 file (and wait for it to be loaded into movie maker), tweak whatever I want to (it was a video recording from phone, so I had to rotate it) and save as a movie. Done! So from a 4GB+ file, it became a 1GB+ file.

Then I found that the player I am going to use (Flowplayer) supports MP4, and another few more encoding... and I don't think WMV is one of them. Thank God I found that a WMV can easily be converted to an MP4 by a program I already have installed, i.e. VLC as per the guide found here. I guess most people would have a VLC as it virtually play every video encoding found on the web (or at least those common ones). However, the guide is also on an older VLC version, but still the principle is applicable.

So in case my link would be dead in the future, here are the steps I have take:
1. Open VLC
2. Click on Media->Convert/Save
3. On the File tab, click "Add" and choose the WMV file. Then click the "Convert/Save" button
4. Select a destination and the Profile (as in the encoding). For MP4, it was the first choice (Video - H264 + MP3 (MP4))
5. Wait for the file to be converted
6. Try playing the converted file once done

Thinking that the job is over, I tested it with my web browser. Unfortunately, I discovered that somehow the encoding cannot be played on the web. No problem at all using VLC.

After much digging around the web for 1.5 days and tested a few software that were full of malware, I found a great open source tool (and 100% clean without malware too)! After reading a great write up on HTML5 Videos, I proceed to downloaded Handbreak, as per the recommendation no. 8. (Note: if anyone reading this and is looking for a video converter, one should google the software name alongside with the word "malware" and see if there are any indication that it is loaded with malware. Learnt this the hard way).

At first, I attempted to convert the video to MP4 using the WMV file. But it didn't work. There were no video, only audio. Then I thought I had nothing to loose if I try using the MP4 converted using VLC. When I saw that the processes started running (and taking up lots of resources too!) I somehow knew that this could be working. Once the process completed, I went ahead and test with both VLC and my HTML5 player (using Flowplayer). It work!

Phew! For now, this closes my chapter of research. Hopefully my steps here are still valid for reference in the future. Who knows what new software capability would be... or... what new bugs are introduced later. For example, I actually upgraded my VLC to version 2.1.3 from an earlier version which I did not note, and it can no longer convert. Crashed every time I attempt to convert. I have just uninstall it and re-install, but have not tried to convert again since I found the solution using Handbrake.

Tuesday, February 11, 2014

Breaking and Fixing my Asus Transformer Prime (TF201) LCD Screen (Part 2)

Now... continuing where I have left off.

I waited for my new LCD screen and it finally came after about 1 week plus.

Immediately that night, I could not resist but to attempt to fix it.

Opening up the item, I met my first obstacle. On the surface of the screen, it was scribbled using a permanent marker "TF201"! This is bad, but at least I think can be rub away. Putting some plain water on a piece of cloth to rub it would not remove it. It smeared a little further, but never really removed. The more I tried to wipe, I start to see minor scratches on the surface. I cannot continue doing this. Cannot afford to ruin even my replacement.

So I googled up and try reading up how to remove stain. There were many suggestions on the web. Some suggested I use minyak kapak (some kind of medicated ointment). Unfortunately, there were none in my house... or at least do not know where it was. Then a good suggestion came up: try using a cheap perfume. I think I have that! So I look for underused fragrant and sprayed on my cloth. Wiped the surface and voila! It is gone! :)

Now, following some video to take apart the tablet again... and this time continue watching until I have to remove the LCD screen (previously I stopped once I separated the screen from the back of my tablet).

To cut a long story short, I have manage to install the new screen back perfectly! :)... well, perfect except I may have a speck of dust here and there between the LCD and the glass. But not gonna risk opening it up again.

Now... the unexpected: Some portion of my screen were not responsive! :(. Why so much trouble!!!

So after using the tablet for about a week, I can't stand the sub-standard usage of my tablet, I decided to test if it was really a hardware problem. So I tested with two apps from google play.

An app that tested with finer dots. See all the black area without dots? Those were the none responsive parts
Another app. This one uses larger box. Still the same area that is black are those not responding. :(

So after testing, it looked like I need to pry open my tablet again.

Before I open up my tablet again, I decided to do some research. My guess was that the ribbon connector was not properly inserted. It was really difficult inserting them, and I guess maybe it was not good enough. Prayed that it isn't some hardware damage again. :(

Once I had a little assurance that it could be a problem (I have no idea now where was it that say so, but info were scarce and this was only a single comment in xda forum). I open it up again and try to push the ribbon onto the port as deep as I can.

Then when I have inserted, tested... and thank God it is now working as it should! Phew! :)

Now the fine dots are evenly distributed.


Even here, it is so. Did not cover every dots as this was enough proof that every area is responsive.

What an ordeal! hehehhe... so the lesson learned: If it is not broken, don't fix it.

But well... the GPS was broken (by design flaw)... hehehehhe.

Breaking and Fixing my Asus Transformer Prime (TF201) LCD Screen (Part 1)

I had wanted to write this for quite a while, but never found the time.

My Asus Transformer Prime is now more than a year old... which means that I am no longer any sort of warranty. So it really does not matter if I choose to unlock my bootloader, flash a custome ROM and do whatever to my tablet.

However, I was in a dilemma over what I should do first: To flash a new ROM... or to pry open the device to attempt to fix the GPS.

There were numerous videos on how the device can be open up and there also many who modded their TF201 to fix the GPS. So, I guess if I installed a new ROM, I can't properly test the GPS as it might be a ROM issue. Thus I decided that if I ever want to open up my TFP, it would be before flashing a new ROM.

So as I was looking at the videos, the steps were simple enough. So I started doing it... a few days right before the new year of 2014. As I dig my tool onto the layer below the surface, I kinda find it odd that it seem so thin, and I did not hear click sounds. But I thought maybe if I go around the whole table... and maybe deeper, it might work.

Now... the bad news... I found that after I run around the whole tablet, I realised that I got onto the wrong layer! I have inserted my tool between the glass and the LCD screen! But I thought it wasn't a big deal as I did not really put my tool so deep and forcibly pry it open.

So I got onto the right layer, and manage to open as per all the video's instruction. Then, thinking of any copper wire would help me improve my GPS signal, I hook one onto the GPS pogopin. Then I turn on the tablet (yeah, I turned it off when I started the operations). Then I saw some odd vertical lines on the right hand side of the tablet. Hmmm... maybe it is nothing... and maybe it would go away later. No other problem on the screen at that moment.

After moving about the copper wire and see that there were no improvements, I guess that maybe the issue is with the copper wire. I did a little read up and there were such thing called GPS wires or that sort. So I guess I was ill equip to complete the job. Ok, then... time to restore the tablet.

So I reverse my steps and put the tablet together again. As I turn on the screen after I put them together... I notice the line on the side did not go away! Oh no.... :(

Then I start to notice there were horizontal lines as well on top... "Hmmm... this does not look good", I thought. Maybe if I open it up again and maybe it will go away. So there I was opening it again... and try to see if there were anything that I have wrongly installed. Nope. None whatsoever. So I put them back together again.

This time, the lines grew more pronounced. So I try to pinch the right side and some lines were gone. So I tried to google up information on this but nothing really appear. I suspected something is wrong with my LCD Screen, but not much clues. Found some videos for laptop that had similar lines and some of these videos suggested that twisting the screen may fix it. So I attempted. Nope, did not do the job.

So in desperate measures, I kept on pinching and pressing the surface... and the more I did that, the lines were even more permanent! :(. Then... as I looked closely, there seems to be a little tear on the right side of the screen, where all the horizontal lines were found. I continued pinching that area... I knew I have damaged the screen as the tear grew bigger. By now, the horizontal lines are completely permanent.

Over the next few days, I continue pinching the sides, hoping that somehow it would fix itself. Then I saw even the vertical lines have multiplied from a single red line to a few lines.

So, after doing much research, I came to a few conclusion:
1. My LCD Screen is indeed damaged
2. To fix it, I would have to replace it.

So I have just damaged my TF201 for no reason. GPS is not fixed and I now have a bigger problem.

Tried calling Asus and as I have suspected, the guy over the other end of the line estimate that this would probably cost me about RM800. Nope. No way I would spend such money on my own stupidity.

So I explored alternatives. Found that such lcd screen spareparts were easily available and it would cost around RM160, after conversion.

So I went and purchase the item using aliexpress.

Ok... have been ranting for too long. Will continue in part 2...

Wednesday, October 3, 2012

Notification Toggle on HTC Desire (Evervolv Turba 3.0.0p10 custom ROM by Nikez Lente)

First of all, I must say that I was excited when I found there were quite a few Jelly Bean (JB) custom ROM for my HTC Desire!

I first flashed the ROM by Vijendrahs (https://sites.google.com/site/androidromporting/downloads) as I have enjoyed the MIUI ROM. Unfortunately, my joy did not last very long as I soon discovered that everything works perfectly except for GPS. I have use Waze daily and so when it could not get my location (waze kept on showing me that I am somewhere in Ecuador and not Malaysia!), I got very frustrated. Tried also the AOKP ROM ported by Vijendrahs and it was the same problem.

Thus this was what triggered me to look for other JB ports, since I have nothing to loose. I come to accept that some things may not work on alpha/beta builds and I can live with it. So I found the ROM by Nikez Lente (http://nikez.nu/releases/). At first, I wasn't quite happy with it as I was so used to features offered by MIUI ROMs. So I nandroid the phone and restore back to MIUI ICS by Marange. Only then I realised that the ICS ROM was very much slower in response and everything seems to lag. I have forgotten that I use to have so many "App not responding" messages in ICS while I get none of it in ALL the JB build.

I then decide that I should restore the ROM by Nikez and get used to it. I must say that this ROM is very responsive and other than known issues, I find that it performed better than anything I had before!

Now, one thing I missed is that I can toggle wifi, mobile data and GPS via the notification bar. I believe it was purposely removed from this build, but it is so useful I started to find if there are any apps out there that could overcome this lack. And I did find some very nice apps, but among them all, "Notification Toggle" fits my needs the best. It may not have the best icons, but I can customize my own icons if I choose to. I can even download via another app built by the same developer. While design was something I can ignore, I was really annoyed that I can't toggle my GPS directly. The developer did mention that as long as my app is installed as a user app, it will only pull out the location settings and not toggle the GPS directly. I would need to move the apk to /system/app if I fix that.

Now comes the problem. Since the internal memory of HTC Desire is so small, I needed to use A2SD script to move all my apps to the SDCard so that I have more space to install more apps. So the conventional way of copying/moving the apk from /data/app to /system/app was impossible. It failed when I use ES Explorer. When I use command line (via Terminal Emulator), the error message was "out of memory".

I was at my wits end when and idea struck. If I can only make the app installable via a zip file, then I can install it like how I install my gapps. So I downloaded app2zip and zip up the app for Notification Toggle. Sadly, it installs back to my user app space.

Then, I figure that if zip a system app, I can restore it back to my /system/app. So I got my colleague to help me install all the necessary app in his SGS1:
1. Notification Toggle
2. /system/app mover
3. app2zip

I get him to move the Notification Toggle to /system/app (using /system.app mover) and create the zip file (via app2zip). Once the zip file is created, I get him to send me the zip file to be installed via clockworkmod recovery like how ROMs are being flashed and how gapps are installed.

Voila! Now Notification Toggle is a system app! I can now toggle GPS directly via the notification bar and no longer need to go via the location settings page! :)

Friday, March 30, 2012

Reading up on DNSSEC

Came across this article and think the observation are interesting regarding TLD that implemented DNSSEC.

http://www.potaroo.net/iepg/2012-03-ietf83/IETF83IEPGLewis.pdf

Friday, March 23, 2012

Accident: A case of hit-and-run... by cows!

This is gonna be a short post.

An unfortunate event happened to me today. After picking Hannah from kindergarten, I use a "kampung" road to go back to office. For the first time in that area, I notice some cows.

I suspected the cows may wanna cross over from the other side of the road, and they did looked like they were walking, I judged that I can keep my pace and be ahead before they crossed over.

To my horror, and when it is to late to do anything else, I realized that the cows were running! So, one of them (about 4 cows, I think, and I think only one of them) hit my car! I jammed my brakes but the damage was already done. Driving a little ahead with the intention to assess the damage, I first readjusted my mirror (which was hitted) and I realized all the cows were gone. Really a hit-and-run case. :(

Below are the pictures I took of the car when I reached office. What an experience! Such a "historical" day.

Lesson learnt: Never cross a cow. You can't win.