Ressources documentaires pour Mandriva Linux et les Logiciels Libres

Billets dans la catégorie Tutorials

Install Twitter Bootstrap under Mageia using Bower

twitter_bootstrapTwitter Bootstrap is an HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. It was developped by twitter and being released as open source in 2010.

The best way to install Twitter Bootstrap and allow to manage update is to use a Bower manager :

  • Install Node.js : urpmi nodejs
  • Install git : urpmi git
  • Install bower : npm install -g bower
  • Move to your project directory : cd /var/www/myproject
  • Create a default config for bower to install your stuff under inc : vi .bowerrc

    [js]

    {
    "directory": "inc/",

    "analytics": false
    }

    [/js]

  • Install Twitter Bootstrap : bower install bootstrap
  • To check your package list and if updates are available you just have to do in your project directory : bower list
  • To update a package : bower update mypackage

And now you’re done 🙂

References :

Bower pour les nuls

Don’t hesitate to browse Bower packages list

Installing the HTC IME keyboard under a non-HTC Androïd phone

clavier_htc_nexus_one_miniPresently I’m using an Acer Liquid Metal as my phone. This Androïd phone is running under Androïd 2.2 ( Froyo ), and they keyboard is pretty the stock Androïd keyboard. However my first smartphone was the HTC Legend, and this phone was using the awesome HTC IME keyboard : IMHO the best Androïd keyboard. So I decide to install the HTC IME in my Acer Liquid Metal. I will be using the Androïd SDK and the adb command to install the keyboard, so please read before my previous tutorial explaining how to install applications in an Androïd from a computer runnning Linux : Installing applications to your Androïd phone from your computer using Mandriva.

Download the HTC IME

First you need to download the HTC IME packages on the XDA developpers forum : http://forum.xda-developers.com/showthread.php?t=624416.

You will have to choose the right version :

Once you download the right archive, extract its content in the /tmp/HTC_ime directory. For someone using the High resolution version (Froyo/2.2), this will be : unzip htc_ime_jonasl_hires22_27.zip -d /tmp/HTC_ime.

Install the keyboard

Now if you have a file manager installed in your Androïd phone like Astro File Manager, you can just copy the .apk file to your phone SDcard, and then use Astro  to install them. Here I will explain how to do it using the Androïd SDK.

  • if you are not using the Sense UI ( so not using an HTC phone ), you are advised to install the Clicker UI apk file :  adb install -r /tmp/HTC_ime/Clicker_hi.apk
  • to install the HTC IME keyboard, just install the HTC_IME apk file : adb install -r /tmp/HTC_ime/HTC_IME_hi22.apk

Enable the keyboard

  • Enable the keyboard : Settings -> Language & keyboard and select HTC_IME mod
  • Click on HTC_IME mod/HTC_IME mod settings to configure the keyboard. Here you will be able to select the keyboard layout, the keyboard language for the dictionary ( French, English, … ), the keyboard text input, etc ….
    • Text Input : you may want to activate the spell checking and the prediction feature. Theses settings can be activated individually for each keyboard ( QWERTY, Hardware QWERTY for physical keyboards, phone & QWERTY compact ). Don’t hesitate to calibrate the keyboard for you, especially if you have big fingers and tend to select the wrong keypads 😉
    • Mods by jonasl@xda -> Language selection : just enable the languages that you are going to really use : this will help speeding up the keyboard and lower its memory footprint
  • If you did notice that some of your settings are not applied, you can reboot your phone, or make the keyboard commit suicide : Settings -> Language & keyboard -> HTC_IME mod -> Tools -> Kill keyboard
  • To switch to the HTC IME keyboard, just go to a text entry field ( for example try writing a SMS ), and then do a long press in the field -> Input mode -> [x] HTC_IME mod

Happy HTC keyboard usage 🙂

References :

Catégories

My Tweets