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
  • Activer Apache 2.2 + Tomcat 6.0.x + Authentification Windows (french post)

    • 23 Mar 2011
    • 0 Responses
    •  views
    • apache authentification sspi tomcat windows
    • Edit
    • Delete
    • Tags
    • Autopost

    Activer Apache 2.2 + Tomcat 6.0.x + Authentification Windows ? possible sous Windows !

    Installation en 3 temps :

    1. Installation des logiciels
      • Apache : http://httpd.apache.org/download#apache22
      • Tomcat 2.2.17 : http://tomcat.apache.org/download-60.cgi#6.0.32
      • mod_auth_sspi : http://sourceforge.net/projects/mod-auth-sspi
    2. Dans l'ordre d'apache 2.2, download et dézippage de tomcat 6.0.x et récupération du module mod_auth_sspi

    3. Configuration
    4. Fichier Configuration Apache : httpd.conf

      ...
      --> fin de la zone chargement des modules
      LoadModule sspi_auth_module modules/mod_auth_sspi.so
      ...
      -->fin de fichier
      # Mod_jk 
      LoadModule jk_module modules/mod_jk-1.2.31-httpd-2.2.3.so
      JkWorkersFile "[path to my apache server]\conf\workers.properties" 
      JkLogLevel warning 
      JkMount /audit-web default 
      JkMount /audit-web/* default 
      JkMount /testWeb default 
      JkMount /testWeb/* default 
      # Load extra modules
      Include conf/mod-enabled/*.load
      Include conf/mod-enabled/*.conf
      Include conf/vhosts/*.conf
      #SSPI authentification on ROOT.
      
              AllowOverride None
              Options None
              Order allow,deny
              Allow from all
              AuthName "My Intranet"
              AuthType SSPI
              SSPIAuth On
              SSPIAuthoritative On
              require valid-user
      
      Fichier: workers.properties
      ps=/ 
      worker.list=default 
      worker.default.port=8009 
      worker.default.host=localhost 
      worker.default.type=ajp13
    5. Déploiement
    6. Copier le fichier .WAR à déployer dans le répertoire webapps de tomcat

    That's all !

    • Tweet
  • What to say about Trends ?

    • 30 Aug 2010
    • 0 Responses
    •  views
    • analysis android future iphone linux macos os trends web windows
    • Edit
    • Delete
    • Tags
    • Autopost

    Just run the following google trends:

    Capture0

    And here are the results:

    Capture1

    Iphone is explosing, Android quitly raise, and other OS are decreasing...

    But is it the right analysis ?

    wait and see...

    • Tweet
  • Chrome as a portable software

    • 15 Jun 2010
    • 0 Responses
    •  views
    • chrome google portable usb windows
    • Edit
    • Delete
    • Tags
    • Autopost
    To get a Chrome as a portable app, you can:

    1. Download the following (old) app

    http://ignum.dl.sourceforge.net/project/chromium-portab/Chromium-Portab/0.1.0/Chromium-Portab_0.1-R0.paf.exe

    2. DIY !
    • Get chrome-win32.zip edition,
    • Unzip it in your prefered directory,
    • Create a UserData directory ion the just created one the unzip operation,
    • Create a shortlink to chome.exe
    • Edit properties of the link and in the Shortlink tab:

    add at end of line 'target' 

    xxx\chrome.exe --user-data-dir="userdata" 

    See capture bellow:

    Shortlink_properties

    Illustration 1 - Chromium shortlink properties

    Chrome User data will be now stored in the specified path.

    That's all.
    • Tweet
  • RedCar, it's not a red car !

    • 7 Mar 2010
    • 0 Responses
    •  views
    • code editor hobo java linux multiplatform rails tools windows
    • Edit
    • Delete
    • Tags
    • Autopost
    RedCar is a brand new programmer's editor ruby oriented, and ruby developed.
    And on of the main feature of this new text editor, it's to be JRuby compatible natively !  A good news for the multiplatform world.

    Screenshot-redcar

    to be tested to help dev team to improve this cool programmer's tool.

    Is it possible to optimize such editor for Rails and Hobo ?

    McG.
    • Tweet
  • 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