https://gravatar.com/userimage/16926726/2de44cb9918f08ff7f430244b10bf37b.jpeg?size=256

gowinder's Blog

Adding a New Settings Page to chrome://settings in Chromium

The left-hand menu of the settings page is edited in

chrome/browser/resources/settings/settings_menu/settings_menu.html

If you want to add or remove a setting, that is where you change it.

To add one, put in a block like this:

<a id="new_setting" href="/new_setting"
    hidden="[[!pageVisibility.new_setting]]">
  <iron-icon icon="settings:assignment"></iron-icon>
  $i18n{newSettingTitle}
</a>

Then create a directory chrome/browser/resources/settings/new_setting

and put the settings page inside it.

Create new_setting_page.html and new_setting_page.js — that is the content.

Create new_setting_section.htm and new_setting_section.js — that is the section.

Coordinates in RectTransform

I had always been using position to get the value, but later I found that the code output didn’t match what the inspector displayed. So I pulled down the uGUI source code and read it, and only then did I learn that you have to use anchoredPosition.

Notes on Custom ListBox Control Styles and Data Binding

When binding a custom-styled ListBox in Silverlight, there are a few things to watch out for:

  1. The properties specified by ItemTemplate can live in a separate resource file.
  2. The object you bind to, say an ItemTestData, must inherit from the INotifyPropertyChanged interface, and every bound set property you use must call NotifyPropertyChanged(“property name”);
  3. If you want to bind data to the Item object, the custom ItemTemplate style must declare the binding name in its root LayoutRoot.

Suppose the root is a Grid and an Item consists of 2 TextBlocks, each bound to Data1 and Data2 of an ItemTestData object. Then under the Grid you first need to declare an alias for ItemTestData:

Mounting a Windows Share Directly with cifs.ko

Found this online, http://myapad.wordpress.com/author/xaueious/

This guy compiled a cifs module for the RK2808 using Archos’s kernel source code

Download it and put it in any directory on the flash, say /flash/cifs.ko

Then run this from the command line

insmod /flash/cifs.ko

That loads the module, and after that you can mount network shares

mount –t cifs –o username=guest,iocharset=utf8 //192.168.0.3/movie /sdcard/movie

I specified the guest user for username, so there’s no password; if there is one, you also need to add password=somekey,

APAD RK2808: Notes on Getting Root, and Mounting an NFS Network Drive

See: Getting root on the RK2808 System disk image, plus material on other custom firmware builds

A basic tutorial for modifying Rockchip RK28XX Android system firmware images

It was a real pain. I did it many times, and I found that tutorials exist but none of them are complete — miss one step and you may end up without root.

Preparation:

A flashing tool. Download link: flashing tool

The First Sci-Fi Book Haul of the Second Half of This Year Has Arrived

http://gowinder.files.wordpress.com/2010/10/dsc04231_thumb.jpg
DSC04231

The batch is Mission of Gravity, The Martian Chronicles and True Names. Mission of Gravity uses that cover — and wow, that illustration is from some old issue of Science Fiction World. Even back then I was wondering how a plane like that flies. No engine — is it a glider? No idea whether it has anything to do with the novel. Word is this book is hard core. So I bought it.