McGivrer's Home

life of french web solution architect

  • Sublime Text 2 : the "killer" source editor !

    • 20 Apr 2012
    • 2 Responses
    •  views
    • editor osx ubuntu windows
    • Edit
    • Delete
    • Tags
    • Autopost

    Walking the web, i've found the ultimate text editor.

    A multi-platform editor

    It's like TextMate on OS-X and bring a lots of fantastic feature like a "distraction free" mode, displaying your current text in a fullscreen format without anything else like menubar or status bar. Only a big black screen with synthaxe highlighted text.

    Ok, for coder it's not heaven, but with all the snippets, plugins, console, templates, and more (Column edtion mode, etc...)

    Sublime Text in its second edition is not only a good editor but also a beautiful one: see screen captures bellow on Linux (Ubuntu 11.10):

    Capture_du_2012-04-20_011516
    figure 1 : The text editor with all features activated:
     project explorer, console, and mini-map mode.
    Capture_du_2012-04-20_012004
    figure 2 : Here is the Famous Distraction Free Mode
    for Hardcore developers :)

    This Very good "professional" text editor is quiet stable, during all my edition sessions: no bug, no crash!  

    Very good work, guy's !

    I also like the easy way to create plugin (complexe one can be implemented because of the Python embbeded engine !).

    Create a plugin from scratch

    You just have to create a new Directory in the "~/.config/sublime-text-2/Packages/" named with your new extension name to create.

    The create a new *.py file script with the name to be used in the configuration file (see later). For exemple "open_google". just copy and paste the following peace of code bellow :

    import sublime, sublime_plugin, webbrowser
    
    #
    # Open the default browser to seach for the selected text in Google 
    # (or any other search engine, through Default.sublie-keymap parameters)
    # sample:
    # { "keys": ["ctrl+alt+g"] , 
    #   "command": "open_browser" , 
    #   "args": {"url" : "http://www.google.fr/#hl=fr&output=search&sclient=psy-ab&q={search}&oq={search}"}
    #
    # where *search* is the selected string to serach for.
    #
    class OpenBrowserCommand(sublime_plugin.TextCommand):
    
            def run(self, edit, url):
                    selection = ""
                    for region in self.view.sel():
                            selection += self.view.substr(region)
                    webbrowser.open_new_tab(url.format(search=selection))

    , and update the  keybinding user (CTRL+P and select "Default (Windows).sublime-keymap" file and paste the following lines:

    [
         {
              "keys": ["ctrl+alt+g"] ,
                  "command": "open_browser" ,
                  "args": {"url" : "http://www.google.fr/#hl=fr&output=search&sclient=psy-ab&q={search}&oq={search}"}
          }
    ]

    Save the files and try to select some text in any sublime editor window, and then press a magic [CTRL]+[ALT]+[G]...

    Your default Web browser would open a new tab and display result of the google search with the selected text.

    Have fun !

     

    • Tweet
  • Samsung have its own PPA !

    • 15 Apr 2012
    • 0 Responses
    •  views
    • Rxxx ppa samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Yes !

    All Samsung laptops will need this PPA repository : ppa:voria/ppa

    Linux_on_my_samsung_-_fortunato_ventre

    Installing these useful tools is very easy, just follow the next command lines:

    sudo add-apt-repository ppa:voria/ppa
    sudo apt-get update
    sudo apt-get install samsung-tools samsung-backlight samsung-wireless

    That's all.

    have fun !

    • Tweet
  • Restore backlight on Ubuntu ?

    • 12 Apr 2012
    • 0 Responses
    •  views
    • Q210 backlight linux samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Using Ubuntu as main OS for years now on all Laptop and desk
    top at home, I am regularly in front of common problems. But one of the most anoying is the "backlight off bug",

    Samsung-q210

    Sometimes, after kernel update, my laptop LCD decide to stay off, for unknown reason.

    So only one way to restore it:

    sudo vbetools dpms on

    This is the only solution I have found to restore the "ON" state.

    After any reboot, the LCD stay ON.

    Ubuntu is sometimes frustrating for newbies. So here is ONE solution.

    Have Fun(buntu ?) 

    • Tweet
  • How to solve REALTEK 8192 driver on Ubuntu ?

    • 4 Apr 2012
    • 0 Responses
    •  views
    • hibernate r8192 realtek suspend ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Using for 2 years a Samsung R580 laptop, I am in front of a annoying issue relaying on thethe realtek R8192e_pci for wifi device.

    Each time I am closing the screen, the laptop switch to hibernate mode. But when I open it again, Wifi stay off !

    So here is the solution:

    r8192e_pci

    This will install the module at boot time.

    An addtional note. This wireless driver seems to cause problems with the power manager sleep (suspend) and hibernate modes. There is a fix for this that worked on my netbook. Edit /usr/lib/pm-utils/sleep.d/55NetworkManager to read as shown below adding the lies in bold:

    Code:

    case "$1" in 
     hibernate|suspend)
       modprobe -r r8192e_pci 
       suspend_nm
       ;; 
     thaw|resume)
       modprobe r8192e_pci 
       resume_nm
       ;; 
     *)
       exit $NA 
       ;; 
    esac

    Thanks to this post http://ubuntuforums.org/showthread.php?t=1457592&page=14#td_post_9173699

     

    Have fun !

    • Tweet
  • Box.com en davfs sur Ubuntu !

    • 26 Jan 2012
    • 0 Responses
    •  views
    • box.com dav linux ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Connaissez vous le  site www.box.com qui propose du stockage en ligne gratuit à hauteur de 5Go ?

    Si non, courrez vous créer un compte pour stocker tous les fichiers qui vous sont vitaux.

    Donc, un fois votre compte en main, vous allez pouvoir le monter comme un disque local sous linux avec les informations suivantes !

    Tout d'abord,  commençezs par installer l'outil magique qui va permettre d'accèder au repertoire DAV distant sur box.com

      #> sudo apt-get install davfs2

    Maintenant, créez un répertoire box.com dans votre répertoire personnel:

      #> mkdir ~/box.com

    Ensuite, éditez le fichier fstab décrivant les volumes monté au démarrage (vos disques connus de linux):

      #> sudo gedit /etc/fstab

    Et ajouter la ligne ci-dessous:

      https://www.box.com/dav /home/[username]/box.com davfs rw,user,noauto 0 0

    où [username] est votre nom d'utilisateur linux.

    Ensuite, créons l'espace de stockage de nom / password pour le nouveau point de montage DAV.

    Créez un répertoire .davfs2 dans votre $HOME

      #> mkdir  ~/.davfs2
      #> cp /etc/davfs2/davfs2.conf ~/.davfs2
      #> sudo cp /etc/davfs2/secrets ~/.davfs2
      #> sudo chown $USER ~/.davfs2/secrets

    Et éditez le fichier ~/.davfs2/secrets  pour ajouter une ligne de la forme:

      https://www.box.com/dav    [box.username]    [box.password]

    où [box.username] et [box.password] sont respectivement les nom et mot de passe utilisateur de votre compte box.com.

     Maintenant la commande magique:

      #> mount ~/box.com

    Et voila, vous avez accès à vos fichiers présents sur votre compte box.com !

    Pour démonter le lecteur box.com, simple:

      #> umount ~/box.com

    Encore plus fort, sous Nautilus, une nouvelle entrée de volume est disponible, un seul click sur l'icone et le lecteur est monté.  Un click sur le petit bouton de démontage, à droite et le lecteur est démonté.

    Nautilus-drive-box-com
    Note:

    Si comme moi, vous êtes confrontés à l'impossibilité de monter un volume DAVFS en tant que simple utilisateur (non root) vous devez passer la commande suivante:


      #> sudo chmod u+s /sbin/mount.davfs 

     Merci à launchpad https://bugs.launchpad.net/ubuntu/+source/davfs2/+bug/46995

    facile, non ?

    • Tweet
  • Plymouth: the Theme manager at Ubuntu Boot

    • 24 Mar 2011
    • 0 Responses
    •  views
    • alternatives install plymouth theme ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    During ubuntu boot phase, a beatiful Logo appear on screen, indicate you are soon starting your desktop. What about changing this default screen ? Yes all is possible on Ubuntu and mainly on Linux ;)

    OK, first, try to install a new plymouth theme in the proposed list.

    frederic@nostromo64:~$ aptitude search plymouth-theme
    v   plymouth-theme                    -
    i   plymouth-theme-fade-in            - graphical boot animation and logger - fade-in theme
    i   plymouth-theme-glow               - graphical boot animation and logger - glow theme
    p   plymouth-theme-kubuntu-logo       - graphical boot animation and logger - kubuntu-logo theme
    p   plymouth-theme-kubuntu-text       - graphical boot animation and logger - kubuntu-text theme
    p   plymouth-theme-lubuntu-logo       - plymouth theme for Lubuntu
    p   plymouth-theme-sabily             - plymouth theme for Sabily
    p   plymouth-theme-script             - graphical boot animation and logger - script theme
    i   plymouth-theme-solar              - graphical boot animation and logger - solar theme
    p   plymouth-theme-spinfinity         - graphical boot animation and logger - spinfinity theme
    p   plymouth-theme-text               - graphical boot animation and logger - text theme
    i   plymouth-theme-ubuntu-logo        - graphical boot animation and logger - ubuntu-logo theme
    i   plymouth-theme-ubuntu-text        - graphical boot animation and logger - ubuntu-logo theme
    p   plymouth-theme-ubuntustudio       - Ubuntu Studio Plymouth theme
    p   plymouth-theme-xubuntu-logo       - graphical boot animation and logger - xubuntu-logo theme
    p   xubuntu-plymouth-theme            - Plymouth theme for Xubuntu

    Then, select the one you want and execute the following command lines:

    frederic@nostromo64:~$ sudo update-alternatives --config default.plymouth

    Select in proposed list one of the theme installed :

    frederic@nostromo64:~$ sudo update-alternatives --config default.plymouth
    
    There are 4 choices for the alternative default.plymouth (providing/lib/plymouth/themes/default.plymouth).
    
    Sélection   Chemin                                                 Priorité  État
    ------------------------------------------------------------
    * 0            /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth   100       mode automatique
      1            /lib/plymouth/themes/fade-in/fade-in.plymouth           10        mode manuel
      2            /lib/plymouth/themes/glow/glow.plymouth                 10        mode manuel
      3            /lib/plymouth/themes/solar/solar.plymouth               10        mode manuel
      4            /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth   100       mode manuel
    Appuyez sur  pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :

    And install this theme on boot sequence

    frederic@nostromo64:~$ sudo sudo update-initramfs -u

    You can verify it with the command line

    sudo plymouthd ; sudo plymouth --show-splash ; sleep 10 ; sudo plymouth --quit

    And then, reboot and enjoy !

    (sorry for french screenshot... I run a french installation of Ubuntu ;)

    • Tweet
  • Tomcat6 and the Play!framework on Ubuntu (for newbie!)

    • 3 Jan 2011
    • 1 Response
    •  views
    • deploy install newbie playframework tomcat6 ubuntu war
    • Edit
    • Delete
    • Tags
    • Autopost

    Playframework-logo

    I have just installed a brand new Ubuntu 10.10 on my laptop, and one of my first need was to deploy a Playframework java application.

    So I need a Tomcat 6 instance for "Java Runable" purpose.

    Tomcat installation
    So, just read this guide: ubuntu-fr tomcat installation and click this "click-to-install" link: tomcat6,tomcat6-admin,tomcat6-example. If the APT protocol is not installed on your ubuntu linux, just try :

    frederic@nostromo6:~$ sudo apt-get install tomcat6,\
                          tomcat6-admin,tomcat6-examples

    if you try to access the http://localhost:8080/

    you will must obtain the following page :
    Capture-apache_tomcat_-_chromium-1
    figure 1 -Tomcat 6 is now installe dand ready to use.
    User Tomcat path
    To be able to isolate your own work from the Tomcat server instance, you have to install with the following link apt://tomcat6-user  the  "by-user-instance" oriented package for Apache Tomcat server.

    If not PAT protocole is installed, just use  the good old command line:

    frederic@nostromo6:~$ sudo apt-get install tomcat6-user

    Then in your prefered shell command terminal, execute the following command:

    frederic@nostromo6:~$ tomcat6-instance-create ~/tools/tomcat6 \
                          -p 8088 -w 8008

    Then you are able to start  this Tomcat 6 instance with a 

    ~/tools/tomcat6/bin/startup.sh

    To start your own tomcat on port 8088. (note: the control port will be 8008).

    To ask tomcat server to stop, send a "SHUTDOWN" ASCII string to port 8008.

    Conclusion
    Yes, Tomcat 6 is now installed on your computer. you are ready to deploy your Play! Framework based application:

    play war myplayapp -o myplayapp.war

    Just copy the produced myplayapp.war to the [tomcat_server_path]/webapps/ directory, Tomcat cat will auto deploy the war and you will just have to open your stared browser to http://localhost:8080/myplayapp/.
     
    Capture-your_application_is_ready__-_chromium
    figure 2 - Your first empty Play!framework application deployed on Tomcat

    Job done !
    Have good time with the fabulous Play!framework.
    to be continued...
    • Tweet
  • Samsung R580, Ubuntu 10.04 and Brightness control

    • 1 Aug 2010
    • 5 Responses
    •  views
    • 10.04 R580 brightness control samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    For unknown (anyway, for my side) reason, the NVIDIA driver is not well configured after installation on the Samsung R580. In fact, brightness control does not work, with Fn+Keys or using the brightness applet, telling back to you that "Brightness status can not be read in Bios side".

    So, in only one line, the issue can be solved: just edit the /etc/X11/xorg.conf file and add the following line (the bold one)  into the Device section:

    Section "Device"

      Identifier "Default Device"

      Driver "nvidia"

      Option "NoLogo" "True"

      Option "RegistryDwords" "EnableBrightnessControl=1"

    EndSection

    And that's it ! Brightness control with Fn+keys is working great.

    thanks to this forum entry (end of page) : http://ubuntuforums.org/archive/index.php/t-1357776.html
     

    Have fun !

    (download)
    Click here to download:
    samsung-r580-ubuntu-10-04-and-brightness-control-jBykGqzdnxsvcCozAaEF.zip (990 KB)

    • Tweet
  • Gnome-Do and Docky, or the user oriented interface

    • 11 Jul 2010
    • 0 Responses
    •  views
    • design do docky gnome ubuntu ui usability
    • Edit
    • Delete
    • Tags
    • Autopost
    Logo for Gnome-Do, a simple gear on a light star purple background.
    Logo for Docky, an anchor on ligth star blue background.

    You know how you have some automated behaviour when you are working on a computer: how to open a file, how to launch any tool, etc...  So you know how Microsoft Windows contribute to open Computer to people, but also how it contributes to format "User" usage about User interface and behaviour !

    So, in the Linux world, during years, the goal was to bring to Linux user a User Interface oriented free Operating System. And during the few 2 or 3 last years, big evolution are drop in the pipe of Gnome evolution. First tries were gnome-shell and gnome-zeitgheist. But these tools are not matue for People.
    Screenshots?action=AttachFile&do=get&target=Screenshot-gnome-shell-overview.png
    Gnome Shell, The new Gnome Desktop approach
    So , Gnome Do and Docky are some of these beautiful tools design for easy life ! Gnome Do will enable you to launch any tools, docs, contacts just with one key shortcut and keying the first letters of the action you want to do!  Docky is another MacOSX Dock Icon clone. But a well integrated one for the Gnome Desktop.
    So launching an application or accessing one of the last docuemnt you've just write have never been so easy !
    Gnome Do
    Launching an application :
    ubuntu-gnome-do-1.png
    Mail to one of your contact:
    ubuntu-gnome-do-2.png
    And just retreiving one of your Google Docs:
    ubuntu-gnome-do-3.png
    Anyway, you are able to configure any interaction between Gnome-DO and your desktop enviroment, thanks to numerous plugins already existing which are able to connect to all the main applications you use everyday.
    ubuntu-gnome-do-preferences.png 
    Docky
    More as usual in our desktop, the docked toolbar at bottom screen is one of the most popular way to start an application. Docky is one of the most integrated to Gnome with a lot of customization for geeks :)
    Very easy to use and configure, just drag and drop icon of applications you want to be able to include in the dock bar. 
    Multiple skin exists for the Dock bar appearance, so just choose the one that's feat better to your own desire. 
    And start apps !
    ubuntu-gnome-docky.png
    Gnome Docky - The Gnome Desktop Dock Bar by excellence !
    And a lot of docklets (greffons in french) are available to enhanced your user experience, adding Weather, GMail state icon, Time, Battery life, Processor performance, and so on ...
    Also exists Plugins (greffons in french language), to connect Docky to other application like liferay, Gajim, Rythmbox, etc...
    Docklets preferences tab :
    ubuntu-gnome-docky-prefs-docklets.png
    Plugins preferences tab :
    ubuntu-gnome-docky-prefs-plugins.png
    So now, just Start Apps and enjoy ;)
    • Tweet
  • Ubuntu 10.04 LTS on my Samsung R580

    • 12 Jun 2010
    • 2 Responses
    •  views
    • 10.04 R580 laptop linux samsung ubuntu
    • Edit
    • Delete
    • Tags
    • Autopost

    Capture

    I have just received my new laptop, and have already installed Ubuntu as my default OS. Only one thing remain unreachable, the Brigthness control :(

    But, thanks to the voria (https://launchpad.net/~voria/+archive/ppa) PPA , I am able to use, network, Wifi, and all other features as suspend, hibernate and so on.
     
    Ubuntu needed cheat sheet for this PPA:
     
    • deb http://ppa.launchpad.net/voria/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main
    • deb-src http://ppa.launchpad.net/voria/ppa/ubuntu YOUR_UBUNTU_VERSION_HERE main
    • Tweet
  • « Previous 1 2 Next »
  • About

    Java/J2EE Expert
    Technical Manager
    Web Standard evangelizer

    120786 Views
  • Archive

    • 2012 (12)
      • May (1)
      • April (7)
      • January (4)
    • 2011 (53)
      • December (5)
      • November (1)
      • September (4)
      • August (4)
      • July (5)
      • June (2)
      • May (11)
      • April (11)
      • March (5)
      • February (3)
      • January (2)
    • 2010 (51)
      • December (2)
      • November (2)
      • October (1)
      • September (3)
      • August (8)
      • July (4)
      • June (15)
      • May (3)
      • April (2)
      • March (5)
      • February (5)
      • January (1)
    • 2009 (29)
      • December (1)
      • November (5)
      • October (6)
      • August (1)
      • July (4)
      • June (2)
      • May (1)
      • April (4)
      • March (2)
      • February (1)
      • January (2)
    • 2008 (39)
      • December (1)
      • November (5)
      • October (8)
      • September (8)
      • August (8)
      • July (9)

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS
    FlickrPicasametaweblog