Showing posts from October, 2013

Windows 8 get current bios version

To know whether I needed to updated my lenovo yoga 13 bios without rebooting, the command that worked now on windows is:

wmic bios get  manufacturer, smbiosbiosversion
which displays:

Manufacturer  SMBIOSBIOSVersion LENOVO        66CN55WW

Add gradle to Ubuntu 13.10 for Android

Installing gradle using 'sudo apt-get install gradle' was not working for me ( undefined symbol: tgetent)
So I decided to install from

My install path
My Android install path
The command to get it ready

# oncesudo ln -s /opt/apps/gradle/bin/gradle /usr/local/bin/gradle # in my .bashrcexport GRADLE_HOME=/opt/apps/gradle export ANDROID_HOME=/opt/apps/android-sdk-linux/

Add linux command without modifying PATH

Often I install stuff that I want to use on the command line that would require modifying the PATH variable. An alternative is to symlink the command wanted to /usr/local/bin (or whatever bin folder already in your path)

Example for gradle (install using apt-get was not working on Ubuntu)

sudo ln -s /opt/apps/gradle/bin/gradle /usr/local/bin/gradle export GRADLE_HOME=/opt/apps/gradle
The command is then accessible in any script that use the hash bang #!/usr/bin/env

#!/usr/bin/env gradle

Change Mac OS hostname

The hostname command was still displaying 'pc14.home' although I did change it in the System Preferences | Sharing panel where it was name 'myimac.local'.


sudo hostname myimac only changes it in the current shell

The solution I found to change it for good is to use

sudo scutil --set HostName "myimac"

Fix Ubuntu 13.10 Ethernet after Suspend/Resume

Thanks to
Find the network driver using the command

$ lshw -C network
which gives something like:

*-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:04:00.0 logical name: eth0 version: 06 serial: 90:2b:34:12:e0:14 size: 100Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip= latency=0 link=yes multicast=yes port=MII speed=100Mbit/s resources: irq:46 ioport:d000(size=256) memory:f0004000-f0004fff memory:…

Install Sass on Ubuntu for Dart

Finally I choose to use a css pre-processing tools. Regarding the choice SCSS vs LESS, I chose SCSS after reading some blogs. (dartlang site is using sass, sass can generate map debuggable in chrome).
sudo apt-get install ruby1.9.1 sudo gem install sass I did not use the watcher but simply modify my build.dart file to process scss file when changed changed.forEach((filename) { if (extension(filename) == ".scss") {"sass", [ filename, withoutExtension(filename) + ".css" ]); }; });