Tuesday, September 13, 2016

WinISO

Why can't everyone just use one standard disc image format?

So I got hold of a bunch of disk images that end in bin, cue, img, sub, and ccd. Was looking for a software that can convert them all to iso, so I can mount the disc (natively) on Windows 10. Google recommended WinISO, CloneCD, Magic ISO Maker, and PowerISO, among others. Most of them turned out to be shareware.

Tried installing version 4.2.0.2 of CloneCD, but Win10 is "unable to load the CloneCD device driver". Kept asking me to reboot, which I just did.

After some evaluation, I settled on WinISO, specifically Free WinISO Maker (WinISO 5.3). Heck, they installer even comes with the regkey. Handled all of the image files I threw at it.

Saturday, September 10, 2016

CM11 for the Ainol Novo 7 Aurora II

It's been a while since I've used the Ainol, as I have probably five other tablets lying around. The next time I looked at it, Android was complaining about "Encryption unsuccessful". It would boot into custom recovery, do some wipe, and boot back into the same error message. The Ainol Novo 7 Aurora II has been running CM10.2. I reckon it's time to upgrade it to CM11.

The procedure from the CM11 (4.4.2) thread looks simple enough.

  1. Download and install TWRP recovery.
  2. Copy the CM11 ROM, gapps, and compatibility zip onto the microSD card (and insert into tablet).
  3. Power on tablet while holding down the VOL- button.
  4. Once booted to the custom recovery, enter "Wipe" menu and swipe to perform a factory reset.
  5. Flash/Install the ROM, gapps, and compatibility zip.
  6. Select "Reboot system".

Did the normal wipe, but TWRP unable to mount /data partition. So, I did a "Format data", then used "Advanced wipe" to wipe everything except the SD-ext. Did another wipe/factory reset, and this time it didn't complain. So, there's a new boot animation, which is a good sign. And the Cyanogenmod logo started spinning, and it kept on spinning for the next 10 minutes. That can't be right. Did another flash with the same results. Went back to the tried and tested CM10.2. Same spinning logo.

This time even Format Data is giving me I/O errors. And seems like the partitions are in ext3 instead of the expected ext4. Something must have gone terribly wrong. The tablet is as good as bricked. As a last resort, I turned to the Aurora II Unbrick Kit 2.0.

Instructions to prep the kit:

  1. Run USB Image Tool as administrator to flash the microSD card.
  2. Choose "Device Mode" in the drop-down menu.
  3. Choose your microSD card on the left panel.
  4. Click the "Restore" button.
  5. Choose "Aurora II 0607 Image.img" in the pop-up window, then click Ok.
  6. Wait until the image recovery is finished.


At this point you'll have a 500MB microSD card with 4 files:

  • factory_update_param.aml
  • g06refe3-ota-eng.chengnan.tan.zip
  • u-boot.bin
  • uImage_recovery

To continue:

  1. Insert the prepared microSD card into your tablet.
  2. Connect the power adapter to your tablet.
  3. Turn the tablet on by pressing "Power" and "Volume -" simultaneously.
  4. Wait until the auto-update is finished, at which point the tablet will reboot.
  5. Remove the microSD card prior to next boot or else tablet will be flashed again.

In my case, flash was completed, but tablet still refuses to boot up properly. Next step is to copy the aml_autoscript to the microSD card and repeat the flash. The "aml_autoscript" is a NAND scrubbing tool to format your internal memory. Note that the forums advise using aml_autoscript as a last resort.

This time, the tablet was able to boot up (to the Chinese ROM) after the flash. With the confidence knowing I can recover from a bad/corrupted/incorrect partition, I proceeded to install Troy's CM11.

First step was to install the TWRP recovery to NAND (via the microSD card). The stock Android recovery gives me an error about invalid/wrong signature, plus the ff. errors:
E:Bad bootloader arguments
"(null)"
E:unknown volume for path [/udisk/factory_upgrade_param.aml]
E:Can't mount /udisk/factory-update-param.aml

No matter; there's more than one way to skin a cat. Simply extract uImage_recovery from the TWRP zip and copy to the root directory of the microSD card, then try again. This time, the tablet booted into TWRP instead of the stock Android recovery. Just to be sure that the partitions are all good and clean:

  1. "Wipe" "Format Data"
  2. "Wipe" "Advanced Wipe"  "System", "Cache", and "Dalvik Cache"
  3. "Wipe" "Factory Reset"

...then flash these zips (in order):

  • TWRP-v2.6.0.0-aurora2_elf2_crystal-ext4.zip
  • cm-11-20140716-UNOFFICIAL-elf2.zip
  • gapps-kk44-core-amlogic.zip
  • aurora2-cm11.0-multiuser_compatibility-rc1.zip

All good!

Friday, August 26, 2016

SecureCRT - Send Input to Multiple Tabs

This SecureCRT feature basically allows you to send input (commands) to multiple tabbed sessions. This is neat, time-saving feature if you have to run the same procedures on a group of servers, e.g. account creation, statistics collection, etc.

For this to work:

  • sessions need to be grouped. Just drag and drop separate session windows into one single tabbed window. OR select a session folder and click on the Connect button to launch all sessions within that folder.
  • chat window nees to be visible. View --> Chat Window

If there is a specific tabbed session that you want to exclude from the input broadcast, just lock them from the File menu or tab menu.

From the chat window, right-click and choose Send Chat to All Sessions. Input/Command is sent to the remote sessions when you press ENTER. You can prepare multiple lines of commands in the chat window by using the CTRL+ENTER key combination.

Friday, August 12, 2016

Movie 2016.08.12 - Edge of Tomorrow

Just from the trailer, I wasn't too impressed going into the movie. I mean, with a Groundhog Day-type scenario, anyone can win the fight against the aliens. And then, there's Tom Cruise.

Having come in contact with the blood of an Alpha, Major William Cage (Tom Cruise) gains the power to live another day every time he dies. Together with Sargeant Rita Vrataski (Emily Blunt), who used to also have this power, they try to figure out a way to get through the daily grind, and locate the Omega, which controls the whole alien Mimic army. Of course, there were some funny moments when Cage first realizes he's in an endless deja vu. Then, the obligatory romance when Cage falls for Vrataski when he gets to know her more and more.

On the day that Cage gets the long-awaited vision and pinpoints the location of the Omega, he gets injured and after a blood transfusion, loses his power to reset the day. Back to Day 1, with no power to reset, he and Vrataski, with the help of the the J Squad, head for The Louvre on a suicide mission to neutralize the Omega. Against all odds, Cage manages to blow up the Omega, and with another dose of alien blood, he goes back in time to witness the defeat of the aliens.

Not too much heavy acting required from the leads. The members of the J Squad are pretty much disposable. I quite liked the moral lesson that human perseverance and tenacity eventually win out. Despite knowing the eventual failed outcome, just having a go at it again and again might make the difference. And if you try hard enough, she might even tell you her middle name.

Wednesday, July 27, 2016

Softmodding the Wii

Got hold of a refurbished Nintendo Wii console system from EB Games for $28. Proceeded to hack it for maximum gaming pleasure.

Lots of ways to hack the Wii, but the easiest, cheapest way to go is diskless softmod. For this, I used ModMii by XFlak. For n00bs like me, ModMii will do (almost) everything for you. It comes with a graphical front-end for point-and-click convenience. Choose what options you like, and type in the Wii MAC address. The required installers and patches are then downloaded on-the-fly from the internet and packaged nicely for you, ready to be copied over to the SD card and/or USB drive. Then it's all just a matter of connecting the media to the game console and following the custom-generated guide.

In my case, I just want the Wii soft-modded and a USB loader installed, so I can play my game backups.

  1. First step is to install the Homebrew Channel (HBC) via BootMii. Copy all the necessary files onto the SD card. Boot the Wii with the SD card inserted. Go to the Messageboard, navigate to Yesterday, then click on the envelope with the bomb icon. This runs the Hackmii installer, which will install the HBC and Bootmii as IOS. In some cases, Hackmii doesn't run after clicking on the envelope. Make sure the SD card is formatted as FAT32 and not write-protected. If that doesn't work, try another SD card.
  2. Once HBC is installed, first thing you want to do is do a NAND backup of the Wii, in case something goes wrong and you need to do a restore. Within HBC, press the Home button, then select Launch BootMii. You'll be presented with four icons. Press the Power button on the Wii (not the remote) to go to the last icon, then press Reset button to select. Press Reset again to choose the first option and start the NAND backup process. Copy the BootMii folder, nand.bin and keys.bin from the SD card, and keep them somewhere safe.
  3. Next, we run the IOS236 installer from the HBC. If this doesn't work, run the Simple IOS Patcher instead.
  4. Install Priiloader to enable some system menu hacks.
  5. Install Multi-Mod Manager and install all the WADs that ModMii has downloaded.
  6. That's it. The Wii is now soft-modded.

Like everything else, there's a YouTube video on how to do this if you need further clarification.

All that's left to do is to copy your game backups (ISO or WBFS) to the wbfs folder of your USB stick/drive. This is best done using a WBFS manager like Wii Backup Manager. This tool can convert between different file formats. It can also split game backups that are greater that 4GB.

At this point, you're probably saying, "I've misplaced most of my game discs. Where can I find game backups?" Your best bet is to check with your favourite torrent sites. Also try wiiuiso.com. Between ISO and WBFS, choose the latter as they're always smaller in size, as they only contain the game partition, and not the full disc dump. You might even come across some games in WIA (Wii ISO Archive) format, which is even more compressed. For these, you'll need WIT (Wiimms ISO Tools) to decompress into WBFS. Command syntax is: wit copy game.wia game.wbfs

By the way, the Wii has two USB ports. Make sure your USB drive is connected to the "outer" USB port. From the main menu, run the USB loader and play away.

Friday, June 24, 2016

HP Deskjet 3520 Won't Print Black - Solved

The other day I noticed that my black printouts are getting fainter and fainter. So I switched to printing in colour, while I want for the replacement cartridge to arrive. I installed the new ink cartridge, and my first black printout turns out blank. Not faded or faint - the page is totally blank. I thought maybe it takes a while for the ink to go through the system, so I printed a few more sheets - still blank. Printed a few test pages with colour and grayscale. They all came out fine, except for the parts where there's supposed to be black ink.

A quick Google search tells me this is quite a common problem. Some suggestions:
 - Reseat the cartridge as it might not be installed properly.
 - Run multiple passes of "clean printhead" as it might be clogged.
 - Check the vent of the cartridge as it might be clogged. In my case, I noticed that the whole upper sticker/label on the cartridge was peeling off, so I taped it back on to provide a better seal/suction.

As part of my troubleshooting, I put back the old cartridge as it should be good for at least one or two pages. Still blank, so definitely nothing to do with the cartridge. At this point, I'm thinking the firmware/software must've decided NOT to allow black and white printing for some reason. Did a partial reset using this procedure from YouTube, then did a couple of "print status report", "print qualit test report". At one stage, I started getting black print again. Then the printer said ink is low and cartridge requires replacement. Put back the new cartridge I bought, and everything is good from then on.

Monday, June 6, 2016

MD5 Checksum

Lots of ways to generate md5 checksum for a file. Easier to do on Linux than Windows. Just run md5sum.
Normally, I would download and install software like:

If your system is locked down with no admin rights to install new software, try the built-in CertUtil utility in Windows.
Syntax: certUtil -hashfile pathToFileToCheck [HashAlgorithm], where HashAlgorith can be MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

Sunday, April 10, 2016

Recipe 2016.04.10 - Scrambled Eggs

I hear you saying, surely everyone knows how to make scrambled eggs. Anybody can make scrambled eggs, but not everyone can make great scrambled eggs.

Ingredients:
  • 4 eggs
  • 1/4 cup milk
  • salt and pepper
  • 2 tsp. butter
  • shredded cheese
Steps:
  • Beat eggs, milk, salt and pepper until thoroughly mixed.
  • Heat butter in non-stick skillet over medium heat. Pour in egg mixture. Sprinkle some shredded cheese.
  • As egg mixture begins to set, gently pull the egg across the pan with a wooden spatula. Continue pulling, lifting, and folding eggs, until no visible liquid egg remains. Remove from heat. Serve immediately.

Pro-tips:
  • Do not allow the butter to burn, or this will discolour the egg.
  • Do not stir the egg mixture for the first 20 seconds. Lift and fold every 10 seconds afterwards.
  • Pull the cooked  outer edges IN towards the center. Uncooked eggs will flood the area you just pulled back.
  • Never leave a surface in contact too long with the skillet or it will become overcooked.
  • Don't overcook. Remove pan from heat when egg softly set and slightly runny. The retained heat in the pan will continue to cook and firm up.

Saturday, April 2, 2016

Cyanogenmod on Samsung Galaxy Tab GT-P1000

Picked up a stock Samsung Galaxy Tab (GT-P1000) still running Froyo. That's a quite a novelty nowadays. Quick check on the Cyanogen website shows that KitKat nightlies are being built for this tablet. There's even a Marshmallow-based OmniROM for it on xda developers, but I don't it's stable enough to run on the tablet. So KitKat it is.

CyanogenMod installation instructions here:
https://wiki.cyanogenmod.org/w/Install_CM_for_p1

First thing to do is to get the Froyo device updated to Gingergead. For the complete instructions, check out this YouTube video:
https://www.youtube.com/watch?v=iI79j97R4qw
Basically, you install the Samsung USB drivers, so your tablet will be recognized by your PC. Download Odin and the Gingerbread image, and flash it to the tablet. In detail:
  1. Download the Samsung USB drivers from here: http://www.androidrootguide.com/download-samsung-usb-driver-samsung-device-drivers, and install on PC.
  2. Download the Odin flasher and stock Gingerbread 2.3.3 ROM from here: https://docs.google.com/open?id=0BzJut_BZm8NTUjc1OVl6VzRsa0U, and unpack on PC. (Archive password is vio)
  3. Put the tablet in download mode by holding the VolDown button when powering up the tablet.
  4. Run Odin. Use gt-p1000_mr.pit as the PIT file. Use GB_Stock_Safe_v5.tar as the PDA file. In my case, I used the modem.bin file under JPZ modem as the Phone file.
  5. Once everything is set up, connect the tablet to the PC. If the USB drivers are installed properly, Odin should detect the tablet automatically, with the correct COM port.
  6. Click on Start.
  7. Once flash process is complete, Odin will indicate PASS, and device will reboot automatically. Disconnect tablet from the PC. Power down the tablet.
  8. This time, go into recovery mode by holding the VolUp button while powering up the tablet.
  9. Using the volume buttons, go to the "wipe data/factory reset" option and press the Home button to select.
  10. Then, select "wipe cache partition" option.
  11. Then, select "reboot system now".
First boot takes a relatively long time. Once done, you now have a stock Gingerbread Galaxy Tab.

For the second part, we'll be installing ClockworkMod Recovery on the tablet. Full instructions here: http://theunlockr.com/2012/05/07/how-to-root-and-flash-the-clockworkmod-recovery-on-the-galaxy-tab-p1000-running-gingerbread/.

Pretty straightforward after we've gone through the first part though. Download the ClockworkMod Recovery tar file from here: http://www.mediafire.com/?q8s0wnj1s6109gc, then flash it to the tablet using Odin, while the tablet is in download mode. Make sure the Re-Partition tickbox is unchecked. Use the downloaded CF-Root-TAB7_XX_OXA_JQ1-v3.3-CWM3RFS.tar file as PDA.

Third part is to install CM11.
  1. Download the latest p1 nightly build from here: https://download.cyanogenmod.org/?type=nightly&device=p1
  2. Download the OpenGapps Android 4.4 pico package from here: http://opengapps.org/?download=true&arch=arm&api=4.4&variant=pico (Don't bother getting the bigger packages like micro or even nano because they won't fit on the P1000's system partition.)
  3. Set up the tablet to use the USB connection for mass storage, instead of Samsung Kies.
  4. Transfer the nightly build and the gapps package to the tablet.
  5. Boot into recovery mode using the VolUp + Power buttons.
  6. Select the option to "wipe data/factory reset".
  7. Select "install zip from sdcard".
  8. Select "choose zip from sdcard".
  9. Select the CM11 file you transferred and confirm to flash.
  10. Repeat above steps starting from step 7 to flash the gapps package.
  11. Select option to reboot system.
In my case, I ran into a bit of issue. After step 11, the system keeps going back to the recovery menu. After some headscratching, I realized that Step 9 was happening too fast. What's happening was, the first flash actually installs a newer version of the CWM recovery, but didn't actually flash CM11. So, when I did the second flash for gapps, CM11 wasn't even there. What I did then is, once presented with the newer CWM recovery after step 9, I had to flash the CM11 file again, before proceeding to step 10.

Once done, you now have CM11 KitKat running on your Samsung Galaxy Tab.