Wednesday, April 9, 2014

Xposed & Moto G

Xposed & Moto G
Better read the updated post about Xposed : here

Here are a few Xposed modules i use on my device : 





Tuesday, March 4, 2014

Laser-Beam from DVD burner : some experiments

Laser-Beam from DVD burner : some experiments

The set-up : 
  • followed this article as a base
  • with the following stuff : an old PC-PSU, a laser-diode from DVD Burner, an adjustable voltage regulator (LM317T), a 100ohm potentiometer, 2x 1N4001 diodes, a 47µF capacitor, some wires, thermic pasta, and a heat sink.

DVD-burner cover : 


soldering details : 



the laser-diode case : 



Now, some data : 
Circuit Input : 5V
At the laser diode poles : from 2.0 to 2.4 V (depend on the potentiometer setting )




a small video of the working circuit : 

details : 
the laser burning the surface : 

now passing through the plastic sheet : 




burning results : small dots of melted plastic, not impressing, but quite good for a first trial : 



Wednesday, February 19, 2014

Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

How to batch resize pictures using Nemo/Nautilus scripting


Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (4) : Bulk renaming files in linux
  • Tip Of The Day (3) : Linux Mint 13 and Petra Backports
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 


  • See how to batch resize here


    Open your Nemo scripts folder /home/user_name/.gnome2/nemo-scripts

    Create a new file, and paste the following :


    Save and make it as executable, then enjoy ! 

    Go to the folder where pictures you need to resize are, right click in a blank space > scripts > resize

    For Custom pic size, edit this line : 
    for file in *.JPG; do convert $file -resize 800x600 resized-$file;done
    following my previous tip

    Friday, January 24, 2014

    my work at XDA

    My Work at XDA



    Supported devices: 

    Motorola : 
    • Moto G

    Sony(-ericsson) Xperia 2010 line : 
    • X10mini (e10/robyn); 
    • X10miniPRO (u20/mimmi); 
    • X8/W8 (e15/shakira)

    Motorola related work : 

    Wednesday, January 22, 2014

    Logitech Unifying Mice & Keyboard : pairing and setting up

    Logitech Unifying Mice & Keyboard : pairing and setting up



    Since there is no support form Logitech for Linux, a small tool have been created by Daniel Pavel : Solaar.


    • How to install on Ubuntu based distros : 


    • Launch it by typing solaar in terminal or seek for it in menu.
    (You may need to unplug/re-plug your receiver before Solaar can detect it.)

    here are some screen-shots of the app : 




    • For my specific device (M505), only Smooth scrolling and battery status are supported: 




    About Solaar : 


    Monday, January 20, 2014

    Tip Of The Day (4) : Bulk renaming files in linux

    Tip Of The Day (4) : Bulk renaming files in linux 

    Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (3) : Linux Mint 13 and Petra Backports
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 
    • Xfce with Thunar : use the embedded Bulk renamer included in Thunar.


    • Linux Mint with Nemo (or Ubuntu based with Nautilus) : 

    1- Install pyrenamer 

    2- Use it "as it is" or integrate it in your file manager : 

    Nautilus and its fork, Nemo can use scripts to integrate new features.

    to get the right folder for your script, use either solutions : 

    - Right click on a file, search for scripts > open scripts folder
    - On Nautilus for Ubuntu 12.10 and before : ~/.gnome2/nautilus-scripts
    - On Nautilus for Ubuntu 13.04 and after : ~/.local/share/nautilus/scripts
    - On Nemo : ~/.gnome2/nemo-scripts

    Create a new file call it "Bulk rename" or whatever, open it with your text editor and paste the following : 

    #!/bin/bash
    #Launch Pyrenamer in current folder.
    #########################################################################
    # Nemo "Bulk Rename" Script #
    ##########################################################################
    if [ "$1" = "" ];then
    wdir=${NEMO_SCRIPT_CURRENT_URI#file://}
    wdir=${wdir//%20/ }
    else
    filetype=$(file "$1")
    filetype=${filetype##*: }
    if [ "$filetype" = "directory" ];then
    wdir=${NEMO_SCRIPT_SELECTED_FILE_PATHS%%$1*}
    wdir=$wdir/$1
    else
    wdir=${NEMO_SCRIPT_SELECTED_FILE_PATHS%%$1*}
    fi
    fi
    pyrenamer "$wdir"

    Save, and make it executable

    3- the script is now available when right clicking > scripts in the folder you want files to be renamed.


    Saturday, December 21, 2013

    Tip Of The Day (3) : Linux Mint 13 and Petra Backports

    Can't log in after the update of your Linux Mint with Petra Backports ?

    Don't forget to read the other tips:
  • Tip Of The Day (5) : Batch Script to resize pictures in linux (Nemo)

  • Tip Of The Day (4) : Bulk renaming files in linux
  • Tip Of The Day (2) : Batch resizing pictures in linux
  • Tip Of The Day (1) : Screenshot 



  • After the update i shot down my PC, and the following day i couldn't log in and got 
    "There was an error loading the theme XXXXXX" 
    And no way to log or anything

    Here is the Workaround : 

    1. Press ctrl+alt+F1 to switch to the console
    2. Log in
    3. Then type sudo killall mdm
    4.  and startx
    5. Cinnamon will start correctly (we've just bypassed the login window)
    if not done yet, make sure mint-meta-cinnamon , mint-mdm-themes are installed, and ubuntu-system-adjustments is up-to-date.

    ==> you've got a somewhat working PC now, but you'll need to repeat the process at every boot

    Now fixing the issue : 

    When the update was performed it erased the potentially custom theme we were using so mdm couldn't launch anything at boot ...

    • Once in Cinnamon trying to start mdm in order to change the theme fails.
    • Open /etc/mdm/mdm.conf as root
    • Search for  HTMLTheme= and GraphicalTheme=
    • Change theses values to : 
    HTMLTheme=Mint-XGraphicalTheme=linuxmint
    • Save the file, and reboot
    • Log in, open mdm and choose the theme you want (html or gdm/gtk)

    ==> You've now recovered a fully working Linux Mint 13 with the Petra backports ! 


    Alternate fix [source] : 

    • Delete your MDM configuration with the command: sudo rm -f /etc/mdm/mdm.conf
    • Reset the MDM configuration with the command: sudo touch /etc/mdm/mdm.conf
    • Reboot the computer