Tuesday, March 27, 2018

Windows 10 Guest Account

Had some overseas guests staying with us, and realized that Windows 10 doesn't support guest accounts anymore. By guest account, I mean an account where you don't need to be authenticated, but can still use the PC and the internet. Not allowed to change any Windows settings though.

As far as I can tell, the guest account option is well and truly gone in Windows 10. There are lots of websites out there that tell you how to do it, but:

  • they either don't work and just mess up your OS, or
  • they're actually just a standard user account that is not as restrictive as the real guest account

If you're fine with option two, then read on.

1) Run Command Prompt as administrator.
2) Create a user account called Visitor. Can be any name as long as it's not Guest.
> net user Visitor /add /active:yes
3) Create a password for the Visitor account. Double-enter if you don't want to enter any password.
> net user Visitor *
4) Remove the Visitor account from the default Users group.
> net localgroup users Visitor /delete
5) Add the Visitor account to the Guests users group.
> net localgroup guest Visitor /add

To delete the Visitor user account, just go to Settings > Accounts, select the Visitor account and click Remove.

Now, apparently this does not actually give you a "real" restricted guest account, even though Visitor is part of the Guests user group. When you open up Computer Management, and read the description of the Guests user group, it says, "Guests have the same access as members of the Users group by default, except for the Guest account which is further restricted." If that is true, then might as well create a local (non-Microsoft) standard user.

  1. Go to Settings > Accounts.
  2. Under Other people, click on "Add someone else to this PC"
  3. Scroll down and click on "I don't have this person's sign-in information"
  4. Again, scroll down and click on "Add a user without a Microsoft account"





Thursday, March 15, 2018

Connecting Fronius Datalogger to Solar.web

First thing you'd want to do after having your solar (PV) system installed is to monitor how much power the solar panels are generating. Most inverters will have an LCD panel in front to show the relevant stats. But if you're like me, you probably don't want to be standing in front of the inverter out in the sun (or inside the garage) just scrolling through the numbers. Most inverters would also have realtime monitoring available through an online portal. In the case of Fronius, they have an app called Fronius Solar.web Live on Android and IOS, and an online portal called Solar.web at www.solarweb.com.

Two ways to get the inverter connected to your home WiFi network to get data monitoring going. The first is using an online wizard (wizard.solarweb.com), which you can access via a web browser (desktop or mobile). I tried using a desktop PC running Windows, and for some reason it didn't work. Second option is to call the commissioning wizard from within the app. Just click on the red icon on the lower right corner of the app.

Setup procedure is similar to how you would integrate wireless speakers and Chromecasts to your home network. Basically, you pair your app to the device using a special WiFi access point provided by the device. You provide the SSID and password of the home WiFi, so that the device can connect to the Internet, and continue the setup process from there.

The inverter access point is enabled from the inverter panel - under the Setup tab. Note that the inverter AP will only be active for an hour, so try to finish the setup by then. Ideally, the app should automatically switch APs, but if it doesn't, the inverter panel will display the SSID and password (12345678) anyway. Once connected, a form comes up and you'll have to specify the ff. information:

  • feed-in tariff
  • grid supply tarriff
  • time, day, timezone
  • a name for your PV system
  • PV power in watts
  • home WiFI SSID and password

Once this is done, the inverter will connect to the home WiFi, and you should do the same on your phone/tablet.

The app will ask you to set up a password for your inverter, and add more user accounts if you want to. You will then be redirected to the Solar.web portal to create an account to manage your PV system. Once you complete the verification process via email, you're pretty much done. You should now be able to monitor your system using the app or the web portal.

If you need more help, check out this video.

Next stop, PVOutput!

Setting the Clock on Sharp Carousel

Just realized that the Sharp Carousel microwave ovens to not have a clock button that allows you to set the time, unlike the Panasonic inverter ones.

So how to reset the time after a power interruption?

  1. Press the INFO/TIMER pad, then the number 3.
  2. Enter the correct time of day by pressing the numbers in sequence. (Note: 12-hour clock only.)
  3. Press the INSTANT COOK/START pad.

Thursday, January 25, 2018

Flashing LG G Pro 2 with Mokee

Next step is to root my newly-flashed KitKat LG G Pro 2. No more KingRoot for me. This time I went with DP Tools. (https://forum.xda-developers.com/lg-g-pro-2/development/tool-dp-tools-manage-lg-device-t3084979) As far as I can tell, it works as advertised. Naturally, for it to do its magic, you need to first enable USB debugging under Settings --> Developer Tools. If it's not there, go to About Phone --> Software Info and click on Build Number for seven times.

First time I did the one-click root, it reported Rooted. Yet, when I did Check Root, I didn't get a root prompt. Had to do the one-click root a second time before it eventually worked. Next up, copy over the TWRP APK to the phone and install. Again, "Install from unknown sources" have to be enabled first. Using DP Tools, I rebooted to recovery to make sure TWRP is indeed flashed properly. Full instructions here: https://forum.xda-developers.com/lg-g-pro-2/development/twrp-recovery-lg-g-pro-2-t3318686

You can also copy a newer version of TWRP (https://drive.google.com/file/d/1ADfHyz8ii6w_QErKkzhrKexTQ4a6cAXp/view), and upgrade by flashing the zip file using TWRP itself. With a custom recovery installed, upgrading to a custom ROM is easy peasy.

  1. copy over "LP Baseband and kernel(bumped)+KK bootloader" file", custom ROM, pico Gapps, and Magisk (for root)
  2. reboot to TWRP recovery
  3. wipe Dalvik, cache, data, and system
  4. flash LL baseband, flash ROM, flash Gapps, flash Magisk
  5. reboot into system

Detailed instructions here: https://forum.xda-developers.com/lg-g-pro-2/development/rom-resurrection-remix-m-t3520021
You have a choice of Lineage, Resurection Remix, and Mokee. For me, I chose the latter.

First boot takes an awfully long time. You'll be temped to restart the phone, but don't.

Downgrading LG G Pro 2 from Lollipop to KitKat

The wife recently took possession of a Xiaomi Redmi Note 4X, so her old LG G Pro 2 is mine to play around with. First order of the day is to root it. Lots of tutorials and scripts and tools around. Tried a couple of them, but didn't work. Maybe because the device has already been upgraded to stock Lollipop.

Getting impatient, I decided to use KingRoot. Big mistake. After installing and running KingRoot, it informed me that rooting was unsuccessful. Uninstalled the apk, yet KingRoot still persists. I bit the bullet, and did a factory reset. Guess what? Still there. Once in a while, I'll get a notification from Android asking if I want to disable KingRoot. I tap Yes, but it always comes back. Time for a system wipe.

The idea is to root the device, install a custom recovery, then flash a custom ROM. From what I've read in the XDA Developers forum, this is best done when the device is still on stock KitKat, which requires me to do a downgrade. Now, the problem with an "old" phone is that there are so many posts talking about the same thing, yet many of them have conflicting information. It's up to you to figure out which parts fit your situation. Worse, most of the download links to the ROMs or scripts are now broken. Either the personal domain is non-existent anymore, or the files have been taken down by the file-hosting company.

At the end of the day, I managed to get it done, and this is how I did it.

Downgrade from Stock Lollipop (D83820x) to Stock KitKat (D83810x)
Two ways to do this. Easiest way is to download a KDZ file and flash using LG Flash Tool. Here is the official procedure:
http://www.lg-phones.org/how-to-flash-unbrick-lg-g-pro-2-with-a-kdz-firmware.html

If that looks too complicated for your liking, you can try this modified flash tool from XDA:
https://forum.xda-developers.com/showthread.php?t=2797190

  1. copy KDZ file to the same folder as the flash tool
  2. power off phone
  3. hold down VolUp button, then connect phone to PC using USB cable (a.k.a. download mode)
  4. run LGFlashTool2014.exe file
  5. select KDZ file
  6. click on CSE Flash button

Normal Flash is for when you want to flash ROM without losing any data. Make sure you flash the same exact ROM as you have now, or you'll get bootloops. Used when you need to fix some system error. CSE Flash is for when you need a clean format. Obviously, all data will be wiped. Used when you need to downgrade or upgrade to stock ROM.

Next question is, where do you get the KDZ file? Lots of links on the forum, mostly dead. Well, I've got the link for you. If you're after your current ROM, use this:
http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=<yourimei>
Replacing <yourimei> with your IMEI (15 digits).

You'll then be presented with the download link between the <sw_url> tags. You might also take note of the <buyer> tags, which tells you which region your phone is from.

<response req_cmd="auth_model_check" status="OK">
<auth_model_check>
<result>OK</result>
<esn>xxxxxxxxxxxxxxx</esn>
<model>LGD838</model>
<suffix>ACWTOP</suffix>
<msn>xxxxxxxxxxxxx</msn>
<esn_date/>
<sw_version>D83820B_00</sw_version>
<sw_url>
http://pkg02.cdn.gdms.lge.com/dn/downloader.dev?fileKey=xxxxxxxxxxxxxxxxxxxxxxx/D83820B_00.kdz
</sw_url>
<sw_locale_url/>
<sw_recommand_uri/>
<app_version/>
<app_url/>
<cs_em_flag>N</cs_em_flag>
<cs_em_uri>N</cs_em_uri>
<chip_type>EG</chip_type>
<prod_type>2</prod_type>
<buyer>CWT</buyer>
<file_name>D83820B_00.kdz</file_name>
</auth_model_check>
</response>

Need an older/newer KDZ from a different region/country? This link's for you:
https://lg-roms.com/LG-Firmware-List/LG%20G%20Pro%202
As of this writing, the download links still work.

The first time I ran the tool, the screens are showing gibberish. Window text is possibly in a foreign language, as I can only see question marks. Clicked a few default buttons, and the software quit. Re-ran the tool, and this time the text was in English. First try didn't work because one of the screens has one button to exit from the tool (while in the middle of flashing), which I clicked. Second try worked just fine.

If, for some reason this method didn't work, then you'll have to use flash method #2 mentioned here:
http://www.lg-phones.org/how-to-flash-lg-g-pro-2-with-a-tot-firmware.html
Similar information here:
https://forum.xda-developers.com/showthread.php?t=2475045

From there you can get download links to the flash tool, the crack, and the TOT/DLL files. That said, I wasn't able to find any working download links to the TOT/DLL files that I needed. Good thing the KDZ method worked for me.

Friday, January 19, 2018

周杰倫 - 等你下課 (with 楊瑞代)

周杰倫 - 等你下課 (with 楊瑞代)

作詞:周杰倫
作曲:周杰倫


你住的巷子裡
nǐ zhù de xiàngzi lǐ
我租了一間公寓
wǒ zūle yī jiàn gōngyù
為了想與你不期而遇
wèile xiǎng yǔ nǐ bù qī ér yù
高中三年我為什麼
gāo zhòng sān nián wǒ wèishéme
為什麼不好好讀書
wèishéme bù hǎo hǎo dúshū
沒考上跟你一樣的大學
méi kǎo shàng gēn nǐ yīyàng de dàxué

我找了份工作
wǒ zhǎole fèn gōngzuò
離你宿舍很近
lí nǐ sùshè hěn jìn
當我開始學會做蛋餅
dāng wǒ kāishǐ xuéhuì zuò dàn bǐng
才發現你不吃早餐
cái fāxiàn nǐ bù chī zǎocān
喔你又擦肩而過
ō nǐ yòu cā jiān érguò
你耳機聽什麼
nǐ ěrjī tīng shénme
能不能告訴我
néng bùnéng gàosù wǒ

躺在你學校的操場看星空
tǎng zài nǐ xuéxiào de cāochǎng kàn xīngkōng
教室裡的燈還亮著你沒走
jiàoshì lǐ de dēng hái liàngzhe nǐ méi zǒu
記得我寫給你的情書
jìdé wǒ xiě gěi nǐ de qíngshū
都什麼年代了
dōu shénme niándàile
到現在我還在寫著
dào xiànzài wǒ hái zài xiězhe
總有一天總有一年會發現
zǒng yǒuyītiān zǒng yǒuyī nián huì fāxiàn
有人默默的陪在你的身邊
yǒurén mòmò de péi zài nǐ de shēnbiān
也許我不該在你的世界
yěxǔ wǒ bù gāi zài nǐ de shìjiè
當你收到情書
dāng nǐ shōu dào qíngshū
也代表我已經走遠
yě dàibiǎo wǒ yǐjīng zǒu yuǎn

Gary:
學校旁的廣場
xuéxiào páng de guǎngchǎng
我在這等鐘聲響
wǒ zài zhè děng zhōng shēngxiǎng
等你下課一起走好嗎
děng nǐ xiàkè yīqǐ zǒu hǎo ma
Jay:
彈著琴唱你愛的歌
dànzhuó qín chàng nǐ ài de gē
暗戀一點都不痛苦
ànliàn yīdiǎn dōu bù tòngkǔ
Gary:
一點都不痛苦
yīdiǎn dōu bù tòngkǔ
Jay:
痛苦的是你
tòngkǔ de shì nǐ
合:
根本沒看我
gēnběn méi kàn wǒ
Jay:
我唱這麼走心
wǒ chàng zhème zǒu xīn
Gary:
這麼走心
zhème zǒu xīn
Jay:
卻走不進你心裡
què zǒu bù jìn nǐ xīnlǐ
Gary:
進你心裡
jìn nǐ xīnlǐ
Jay:
在人來人往
zài rén lái rén wǎng
合:
找尋著你守護著你
zhǎoxúnzhe nǐ shǒuhùzhe nǐ
不求結局
bù qiú jiéjú
合:

ō
Gary:
你又擦肩
nǐ yòu cā jiān
合:
而過
érguò
Jay:
我唱告白氣球
wǒ chàng gàobái qìqiú
終於你回了頭
zhōngyú nǐ huíle tóu

躺在你學校的操場看星空
tǎng zài nǐ xuéxiào de cāochǎng kàn xīngkōng
教室裡的燈還亮著你沒走
jiàoshì lǐ de dēng hái liàngzhe nǐ méi zǒu
記得我寫給你的情書
jìdé wǒ xiě gěi nǐ de qíngshū
都什麼年代了
dōu shénme niándàile
到現在我還在寫著
dào xiànzài wǒ hái zài xiězhe
總有一天總有一年會發現
zǒng yǒu yītiān zǒng yǒu yī nián huì fāxiàn
有人默默的陪在你的身邊
yǒurén mòmò de péi zài nǐ de shēnbiān
也許我不該在你的世界
yěxǔ wǒ bù gāi zài nǐ de shìjiè
當你收到情書
dāng nǐ shōu dào qíngshū
也代表我已經走遠
yě dàibiǎo wǒ yǐjīng zǒu yuǎn

Saturday, December 30, 2017

Speeding Up an Old iPad

Was gifted a pre-loved iPad 2 (64GB, WiFi, Model A1395) in time for my kid's new school year, which requires a BYOD (bring your own device). As expected, the tablet of choice by the school is an Apple iPad. Good thing they didn't specify a particular model.

The iPad 2, with its 132 ppi resolution and 1 GHz dual-core A5 processor, is starting to show its age, but still runs fine, though a bit sluggish. Most of the "suggested" apps downloaded and installed just fine on IOS 9.3.5. A few required IOS10 or IOS11, and simply won't install. Apple's iWork productivity suite (Pages, Numbers, and Keynote) and GarageBand reported incompatibility with the iPad.

As a workaround, go to the App Store app, and tap on Purchased. Select "Not on this iPad". Select again the apps that wouldn't install. If there is an older version that is compatible with the current firmware/hardware, you will be given the option to download that instead. Managed to get the iWork apps installed this way.

Next step is to speed up the old clunker. Most obvious choice is to disable the features that you don't really need:
  • Spotlight indexing
  • App Store auto-update
  • background app refresh
  • notifications
  • multi-finger gestures
  • keyboard auto-correct, auto-capitalizaiton, check spelling
  • location services
  • perspective zoom on the home and lockscreen wallpapers
  • transparency
You can also enable reduce motion, deleted rarely-used apps to recover diskspace, upgrade to the latest IOS, and restart the iPad once in a while.

Rotating Vertical Videos

Everyone on the Internet is saying never to take videos in portrait mode (vertically). However, there are some scenarios that call for vertical videos, much like pictures that look better in portrait mode.

Thing is, once downloaded from my DSLR, those vertical videos show up as horizontal videos on my PC, with the subject lying down. Usually, I just use Freemake Video Converter to rotate them into portrait mode again. However, there are some videos that Freemake is not able to handle, for whatever reason. The MOV file loads fine, but when I click the "Edit/Play" button, the program (version 4.1.10) just quits/exits with no warning. Thanks to Google, I found a way to do the same thing using VLC.

So this is how to rotate your portrait-mode videos:

  1. Run VLC.
  2. Under Tools, selects Effects and Filters (Ctrl+E).
  3. Click on Video Effects tab, then click on Geometry sub-tab.
  4. Enable Transform, and select "Rotate by 90 degrees" from the drop-down list, and click Close. There is another option to Rotate, but this is more if you want to rotate using a specific angle, instead of the preset ones.
  5. Go back to Tools --> Preferences. Under Show settings, select All.
  6. From the left pane, select Stream output, then Sout stream, then Transcode.
  7. Under Video filter, enable Video transformation filter. Click Save.

You can test that the whole process works by playing your vertical video. It should now play right side up.

And this is how to convert the video permanently:

  1. Under Media, select Convert/Save (Ctrl+R).
  2. Add the video file you want to rotate.
  3. Click on the drop-down arrow beside the Convert/Save button and select Convert (Alt+C).
  4. Specify a destination file for the converted output.
  5. Default profile is MP4 container using H.264 video and MP3 audio. Click on the Tools icon on the right to edit the settings.
  6. Click on the Audio codec tab. Select MP3 as codec and sample rate of 48000. This is so because my original video uses PCM and 48000 sample rate, which I'd like to keep.

So far, this gives me the best results. I tried the "Keep original video track" option to preserve video quality, but in this case, the video was not rotated.


Wednesday, December 27, 2017

Grand Pacific Drive Day Out

Planned the day's itinerary using Google search. As simple as typing in "Sydney Wollongong itinerary". Next step is to put in the multiple stops in Google Maps as one trip.

First stop is the Sri Venkateswara Temple in Helensburg, around an hour's drive away. Been to this Hindu temple before, but never went in. Nothing much to it, all you need to do is to take off your footwear. High ceilings, open spaces, mats on the floor for devotees to sit on, hundred of deities all round the temple. Behind the temple is a hall for functions, and a canteen serving food for eat-in or takeaway.

Next stop is the Bald Hill Lookout. Don't make the mistake of putting in Stanwell Tops Lookout in Google Maps. It'll take you to a totally different spot. Bald Hill Lookout is where you get 180-degree panoramic view of the Illawara escarpment, the Sea Cliff Bridge and the Tasman Sea. It's also quite popular with hang gliders. The Sydney Hang Gliding Centre is just nearby. There's also a monument to Lawrence Hargrave, an Australian pioneer of flight.

Driving down Lawrence Hargrave Drive, it eventually becomes the 665-meter long Sea Cliff Bridge. Thought of taking a short bridgewalk, but all available parking spaces along the bridge are taken.
Took a right at Cliffton School Parade after the bridge and stopped at Rube Hargrave Park. There's a nice playground for the kids and a public toilet. Parking is limited, but doesn't matter as the tourists simply parked along both sides of the street. A group of Chinese tourists even took the last remaining disabled parking. None of them looked disabled to me. Across the highway is the Moronga Park. Took a short stroll on the bridge and went back, as it started to get hot.

Next stop is Austinmer Beach, about 10 minutes' drive away. There's a carpark between the beach and the drive, but it's usually full. Street parking is not much better. Lunch is basically burger, fish and chips and chicken nuggets and chips from Shells Diner. Then, it's off to the rock pools to get our feet wet. There are toilets and showers and change rooms nearby.

Original plan was to go to the Wollongong Lighthouse, then Nan Tien Temple. However, as time is running short, we decided to head straight for Kiama instead. That's another hour of driving. Got to see the blowhole in action and the lighthouse. Farmer's market is on from 3pm till 6pm, but there's absolutely no parking spot to be found nearby. Time to head home.