Shaare your links...
418 links
Liens · Devenet Home Login RSS feed Tags cloud
◄ older
19 of 21
newer ►
  • Joel on Software - Le test de Joël : 12 étapes vers un meilleur code → http://french.joelonsoftware.com/Articles/TheJoelTest.html
    Les 12 questions à se poser dans une équipe de programmeurs.
    Et c'est aussi les 12 questions à poser en entretien d'embauche...

    (via http://sebsauvage.net/links/?XQq7xQ)
    Fri May 23 12:10:34 2014 – #permalink
    développement mémo ressource
  • Votre site web est obèse → http://davidl.fr/blog/site-obese.html
    Techniques pour réduire le chargement des pages d'un site web.
    On retrouve gzip, cache, png optim, et des conseils css, js & dom.

    Par exemple :
    button {
       border: 2px solid transparent;
    }
    button:hover {
       border-color: red;
    }
    est plus efficace que :
    button:hover {
       border: 2px solid red;
       margin: -2px;
    }
    Thu May 22 22:29:04 2014 – #permalink
    astuce design développement html ressource
  • Site du Zero - archive offline → http://sdz.tdct.org/
    Les archives du site du zéro. Les tutos en une seule page, ah comme c'est agréable !

    (via http://lehollandaisvolant.net/index.php?mode=links&id=20140428193918)
    Fri May 2 12:49:41 2014 – #permalink
    archive développement ressource sdz
  • Mettre à jour son Raspberry Pi (raspbian et rpi-update) - Leeroy Brun - Leeroy Brun → http://www.leeroy.me/mettre-a-jour-son-raspberry-pi-raspbian/
    Un apt-get install rpi-update pour installer le paquet si pas encore présent, puis un rpi-update suivi d'un redémarrage et le tour est joué, le firmware est à jour.
    Fri May 2 12:44:14 2014 – #permalink
    mémo rbpi ressource shell
  • Classic Theme Restorer (Customize Australis) → https://addons.mozilla.org/fr/firefox/addon/classicthemerestorer/
    Plugin pour Firefox qui permet de retrouver l'ancienne interface.

    (via http://lehollandaisvolant.net/index.php?mode=links&id=20140501203508)
    Fri May 2 11:00:40 2014 – #permalink
    design firefox plugin
  • Organized Gmail Inbox → http://jgthms.com/organized-gmail-inbox.html
    Exemples de labels pour bien organiser sa boite e-mail.

    "I set up a simple rule to follow: Every incoming mail must hold one of the predefined labels."
    Tue Apr 29 14:33:14 2014 – #permalink
    astuce ressource
  • Tout comprendre sur votre fiche de paie → http://www.lemonde.fr/les-decodeurs/article/2014/04/29/tout-comprendre-sur-votre-fiche-de-paie_4408809_4355770.html
    Comprendre les différents intitulés de sa fiche de paye.
    Tue Apr 29 14:23:11 2014 – #permalink
    ressource work
  • Visualiser ses métadonnées Gmail → https://immersion.media.mit.edu
    Pour permettre au public de visualiser ce concept, une équipe du Massachusetts Institute of Technology (MIT) a développé une application qui permet à l’internaute de visualiser ses métadonnées Gmail, le service de messagerie de Google.

    (via http://rue89.nouvelobs.com/2013/07/08/visualiser-metadonnees-gmail-dabord-amusant-puis-carrement-effrayant-244052)
    Fri Apr 25 16:19:09 2014 – #permalink
    internet metadata
  • [Tuto] Comprendre et utiliser les évènements clavier en Javascript - Yosko.net → http://www.yosko.net/article33/snippet-06-javascript-capturer-des-raccourcis-clavier-utilises-par-votre-navigateur
    Je me mets ça sous le coude.
    Déjà lu des choses, mais c'est pour pas oublier d'ajouter la navigation par touches dans AdventCalendar.
    Wed Apr 23 15:43:57 2014 – #permalink
    développement javascript
  • Colo syntaxique du blog - Yosko.net → http://www.yosko.net/article15/colo-syntaxique-du-blog
    Fichiers templates de coloration syntaxiques, pour notamment Sublime Text : https://github.com/daylerees/colour-schemes/
    Wed Apr 23 14:01:13 2014 – #permalink
    développement ressource
  • Git - Le remisage → http://git-scm.com/book/fr/Utilitaires-Git-Le-remisage
    Équivalent au "shelve" de TFS (par Microsoft) : permet de stocker localement ses modifications pour retrouver un dépôt git "propre", et ainsi faire des modifications urgentes, changer de branche, bref faire autre chose, puis une fois ces choses terminées, retrouver l'état initial.
    It's awesome!
    Fri Apr 11 15:33:49 2014 – #permalink
    astuce git
  • PHP - Best Practises → http://thisinterestsme.com/php-best-practises/
    Petite liste des bonnes pratiques PHP à respecter.
    Bon, pas de grosses nouveautés (*never trust user input* oh really?).

    function calculateAge($dateOfBirth){
       $birthday = new DateTime($dateOfBirth);
       $interval = $birthday->diff(new DateTime);
       return $interval->y;
    }
    Fri Apr 11 13:33:32 2014 – #permalink
    astuce php ressource
  • LogWatch Apache / HTTP avec Virtual Host - Wiki de Romain RUDIGER → http://romain.novalan.fr/wiki/LogWatch_Apache_/_HTTP_avec_Virtual_Host
    Voici mon format de log Apache :

    LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined

    Le champ contenant le virtual host sera donc le premier.

    Il faut modifier le script du service http, on le prend donc pour ensuite le modifier :

    cp /usr/share/logwatch/scripts/services/http  /etc/logwatch/scripts/services/

    Maintenant il suffit de modifier le code suivant :

    577    if ( ($field{http_rc} >= 400) &&
    578          !((defined $ignoreURLs) && ($field{url} =~ /$ignoreURLs/)) &&
    579          !((defined $ignoreIPs) && ($field{client_ip} =~ /$ignoreIPs/)) ) {
    580       my $fmt_url = $field{url};
    581       if (length($field{url}) > 60) {
    582          $fmt_url = substr($field{url},0,42) . " ... " .
    583                     substr($field{url},-15,15);
    584       }
    585       $needs_exam{$field{http_rc}}{$fmt_url}++;
    586    }

    Pour :

    577    if ( ($field{http_rc} >= 400) &&
    578          !((defined $ignoreURLs) && ($field{url} =~ /$ignoreURLs/)) &&
    579          !((defined $ignoreIPs) && ($field{client_ip} =~ /$ignoreIPs/)) ) {
    580       my $fmt_url = $field{url};
    581       if (length($field{url}) > 60) {
    582          $fmt_url = substr($field{url},0,42) . " ... " .
    583                     substr($field{url},-15,15);
    584       }
    585       my $vhost = $field{$log_fields[0]};
    586       $vhost =~ s/\s+$//;
    587       $fmt_url =~ s/^[[:alnum:]]/\ $&/;
    588       $needs_exam{$field{http_rc}}{$vhost . $fmt_url}++;
    589    }

    Il faut également modifier le fichier de configuration du service http. On le copie :

    cp /usr/share/logwatch/default.conf/services/http.conf /etc/logwatch/conf/services/

    Modification de la variable LogFormat :

    $LogFormat = "%{v} %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
    Wed Apr 9 12:07:17 2014 – #permalink
    apache rbpi sécurité
  • Table des caractères Unicode (2000-2FFF) — Wikipédia → http://fr.wikipedia.org/wiki/Table_des_caract%C3%A8res_Unicode_(2000-2FFF)
    Tables des caractères (spéciaux) HTML pour afficher sur une page web.

    Edit : il y a aussi http://character-code.com/ !
    Mon Apr 7 23:04:20 2014 – #permalink
    html ressource
  • 7 lines JavaScript library for calling asynchronous functions → http://krasimirtsonev.com/blog/article/7-lines-JavaScript-library-for-calling-asynchronous-functions
    M'ouais sinon y'a http://stackoverflow.com/questions/899102/how-do-i-store-javascript-functions-in-a-queue-for-them-to-be-executed-eventuall

    // Function wrapping code.
    // fn - reference to function.
    // context - what you want "this" to be.
    // params - array of parameters to pass to function.
    var wrapFunction = function(fn, context, params) {
       return function() {
           fn.apply(context, params);
       };
    }


    // Create my function to be wrapped
    var sayStuff = function(str) {
       alert(str);
    }

    // Wrap the function.  Make sure that the params are an array.
    var fun1 = wrapFunction(sayStuff, this, ["Hello, world!"]);
    var fun2 = wrapFunction(sayStuff, this, ["Goodbye, cruel world!"]);

    // Create an array and append your functions to them
    var funqueue = [];
    funqueue.push(fun1);
    funqueue.push(fun2);

    // Remove and execute all items in the array
    while (funqueue.length > 0) {
       (funqueue.shift())();  
    }
    Mon Apr 7 22:29:54 2014 – #permalink
    javascript ressource
  • I can have your IP → http://icanhazip.com/
    Petit site web qui renvoie l'IP du demandeur, et uniquement l'IP sans fioriture !
    Tue Mar 25 16:51:51 2014 – #permalink
    astuce internet ip ressource
  • Tony Finch - Simple shell scripting for Twitter → http://fanf.livejournal.com/108436.html
    Simple shell scripting for Twitter

    I have a few scripts which manage my URL log, including posting a copy of the feed to my Twitter and del.icio.us accounts. Until recently the scripts have just used wget's HTTP Basic Auth support to authenticate to my accounts. This has to change because Twitter is switching to oauth. This switch has already been delayed but is now due to occur by the end of August.

    Most oauth implementations are not designed for old school languages like the Unix shell, so I procrastinated because I didn't fancy dealing with the dependency hell of mainstream scripting languages. But I perked up when I noticed Jef Poskanzer mentioning his stand-alone oauth implementation on his twitter feed. I have liked Jef's approach to writing simple code since I worked on thttpd in support of Demon's homepages service.

    Posting to Twitter with basic auth didn't require anything beyond a Twitter account. You could just POST to https://twitter.com/statuses/update.json - which is the essence of the security problem that the Twitter crew want to solve.

    To use oauth you must register an application. Go to https://dev.twitter.com/ -> Get started -> Your apps -> Register a new app. Fill in the form. Tell it the app is a client app and give it read+write permission.

    When you have done that you will be presented with your application's settings page. The interesting parts are the "consumer key" and the "consumer secret" which are the half of your app's oauth credentials which authenticate the application to Twitter. The other half of the credentials prove that your app may do something to a particular person's Twitter account. In order to obtain the second half oauth normally requires a fairly complicated dance. Happily, for simple cases where you want to script your own account, Twitter provides a shortcut.

    On your application's settings page, click the "My Access Token" link. This gives you a page containing your "access token" and "access token secret" which together with your "consumer key" and "consumer secret" allow your app to post to your Twitter account.

    Now you need some software. Fetch Jef Poskanzer's oauth_sign and http_post packages. You can use oauth_sign with wget or curl, but http_post is more convenient since both it and oauth_sign encode the query parameters for you, whereas wget and curl do not. Typing make should be enough to build oauth_sign; for http_post you probably want make SSL_DEFS="-DUSE_SSL" SSL_LIBS="-lssl -lcrypto".

    Now you have everything you need to write a simple shell twitter client. Something like:

       #!/bin/sh

       consumer_key="COPY-FROM-APP-SETTINGS-PAGE"
       consumer_secret="COPY-FROM-APP-SETTINGS-PAGE"
       access_token="COPY-FROM-MY-ACCESS-TOKEN-PAGE"
       access_secret="COPY-FROM-MY-ACCESS-TOKEN-PAGE"
       url="https://api.twitter.com/1.1/statuses/update.json";

       http_post -h Authorization "$(oauth_sign \
    $consumer_key $consumer_secret \
    $access_token $access_secret \
    POST "$url" status="$*")" \
        "$url" status="$*"

    That should be enough to get you going.

    For completeness (and since I worked out how to do it I'm going to inflict it on you) here's how to use Jef's tools to do the full three party oauth procedure.

       First obtain a request oauth token and secret. For this transaction your oauth token and secret are empty. The HTTP request is a POST with an empty body.

       http_post -h Authorization "$(oauth_sign \
           $consumer_key $consumer_secret "" "" \
           POST https://api.twitter.com/oauth/request_token)"; \
                https://api.twitter.com/oauth/request_token

       The response will contain oauth_token and oauth_token_secret parameters which are your request token and secret. You must then get your victim to visit the URL https://api.twitter.com/oauth/authorize?oauth_token=$request_token. They will be asked to give your app permission to diddle with their account. (They may have to log in first.)
       When they have done this they will be redirected to your app's callback URL, with some extra parameters. The documentation says these will be a copy of the request oauth_token and an oauth_verifier but in my testing the verifier was missing.
       If your app is a client app (which has no callback URL or the URL is "oob") then the user will be presented with a PIN which is the request verifier.
       You can now obtain the access token and secret as follows.

       http_post -h Authorization "$(oauth_sign \
           $consumer_key $consumer_secret \
           $request_token $request_secret \
           POST https://api.twitter.com/oauth/access_token oauth_verifier="$verifier")" \
                https://api.twitter.com/oauth/access_token oauth_verifier="$verifier"

       The response will contain oauth_token and oauth_token_secret parameters which are the access token and secret that you must use when your app wants to do something with your victim's account.

    I hope this might be of use to someone else...
    Tue Mar 25 16:49:40 2014 – #permalink
    rbpi shell twitter
  • OS X Mavericks: Pas à pas pour faire une installation propre (Clean Install) ou une mise à jour et tout ce qu'il faut savoir pour passer à Mavericks • Actualité Apple, Mac, iPhone, iPad, App Store avec Ohmymac → http://www.ohmymac.fr/os-x-mavericks-pas-a-pas-pour-faire-une-installation-propre-clean-install-ou-une-mise-a-jour-et-tout-ce-quil-faut-savoir-pour-passer-a-mavericks/
    Comment faire une installation propre de Mavericks : pas juste une upgrade, création d'un DVD d'installation pour “formatage”.
    Mon Nov 25 14:18:40 2013 – #permalink
    apple mac mémo ressource
  • Scarab : dictionnaire de Scrabble → http://www.kurokatta.org/hacks/scarab-fr
    Un petit site web pour trouver des anagrammes et autres joyeusetés :)
    Fri Oct 4 17:47:43 2013 – #permalink
    astuce ressource scrabble
  • Keypress: A Javascript library for capturing input → http://dmauro.github.io/Keypress/
    Une petite librairie JavaScript (apparemment sans dépendance apparament) pour écouter les touches tapées sur le clavier d'un internaute dans une page Web. Ça a l'air intéressant et très pratique, et plus c'est sur github :)
    Tue Oct 1 17:44:27 2013 – #permalink
    développement javascript ressource
◄ older
19 of 21
newer ►
Shaarli by sebsauvage
Shaarli-Theme by Nicolas based on idleman theme