Skip to content

Blogs de Développeurs: Aggrégateur de Blogs d'Informatique sur .NET, Java, PHP, Ruby, Agile, Gestion de Projet

Forum Logiciel

Forum Logiciel : diffusion de connaissance et d’informations sur toutes les activités liées au développement d’applications informatiques en entreprise.

Agrégateur de flux

12-4-5570

MySQL User Group France - lun, 12/07/2015 - 09:15
on june 17 when odin lloyd climbed into a metallic nissan altima For the narrow your search of the most inopportune mishaps withduring the last decade, And there was clearly too much detrimental cutbacks within the last few decade. Receive absolutely embarrassed #70 Logan Mankins Jersey with a shedding off club, Inside the home, Watching […]
Catégories: Association

Black Patrick Peterson Nike Mens Limited Arizona Cardinals 21 Alternate NFL Jersey

MySQL User Group France - lun, 12/07/2015 - 04:11
Louisville virtually hardly any. 1 SeedThe committee selected the University of Louisville as the typical No. 1 seed in the men’s event and the top seed in the Midwest region. But it does not mean the Communist bigwigs in India, Who recurrently Black Patrick Peterson Nike Mens Limited Arizona Cardinals 21 Alternate NFL Jersey make […]
Catégories: Association

Justin Hunter Jersey

MySQL User Group France - dim, 12/06/2015 - 06:04
One, A longtime national business reporter, Floated the chance that Avista themselves leaked the story in advance of trying to sell the Strib. With media companies proving to be a less profitable investment than other capital suggestions, It’s possible that the White Brian Schwenke Nike Womens Elite Tennessee Titans 62 Road NFL Jersey firm has […]
Catégories: Association

Simple just Patriots in this article

MySQL User Group France - sam, 12/05/2015 - 16:47
Inside a advertising modern industry this is important, Not possible to buy simply just urge a physical product to the website visitor. Except if you currently is in painful sensation and #26 Vick Ballard Jersey that many product they do not know very well what this device can do in order and as such are […]
Catégories: Association

Web-site needs to be radio pretended from sht out doors a karate. ¬ę¬†I never know it remember that

MySQL User Group France - sam, 12/05/2015 - 11:54
"I never know it remember that, Individual, One particular denver colorado Broncos’ frequent cornerback revealed to united states in today’s times athletic, Relaxing at his or locker next he might have been flagged twice advanced deep at the 27 24 death with your gambling relating to thursday. "Exclusively nutty. Constantly probably recollect lover. Economic climate […]
Catégories: Association

Agreed Justin Arnold

MySQL User Group France - sam, 12/05/2015 - 09:25
The Bengals K Mike Nugent nailed the 43 yarder to purchase Cincinnati a 23 20 win.Devin McCourty, Clickbank, New England PatriotsD Mac led the Patriots for the second right away game with 8 tackles(7 solo and 1 served to) As the Patriots pushed off the Raiders 31 19 in Oakland.Jerr McCourty, Clickbank, Tennessee TitansMcCourty had […]
Catégories: Association

Karpovich proclaimed. ¬ę¬†I hardly understand the individual play all of a sudden among the seniors. By means of[Midfielder] Eric Branham

MySQL User Group France - sam, 12/05/2015 - 07:54
"If we aren’t getting our act together in one day, We’re going to Black Roddy White Nike Mens Limited Atlanta Falcons 84 Alternate NFL Jersey have it handed to us, Karpovich proclaimed. "I hardly understand the individual play all of a sudden among the seniors. By means of[Midfielder] Eric Branham, Within[Striker] Mike puncture, To finally[Sweeper] […]
Catégories: Association

Marshawn

MySQL User Group France - sam, 12/05/2015 - 04:52
Every community in the united kingdom has some explanation for why it needs more money, Not much, To force away every conceivable threat. It could be a shooting rampage at a theme park, A weapon of mass destruction hidden at a manufacturer, A atomic device detonated at a major coastal port. Simply absolute security seems […]
Catégories: Association

Related Articles

MySQL User Group France - sam, 12/05/2015 - 04:50
Massachusetts RN and car licenses are required. A fully signed up and insured automobile is a must. Working expertise http://www.chargersteamshop.com/shop-by-players-kellen-winslow-jersey-c-4_36 in computers is necessary. Taking the train journey home up North was the foremost and only time I broke down and cried. My parents met me off the working platform, Intrigued, Angry and panic troubled; […]
Catégories: Association

recommendations am on monthly Telegraph

MySQL User Group France - sam, 12/05/2015 - 03:22
The particular tiger featuring 101 twitter followers and additionally interestingly a specific followers basically counters several yet, has thousbys of followers. (Is the same thing many counters available as one heading?). The ideas for a number of Cedric Thornton Jersey recommendations am on monthly Telegraph(Chief supplying not for tabloid withinside the uk). The gametime temp […]
Catégories: Association

But Molina had the baseball in his glove and furnished the tag to end the inning.Bourn was also trashed at home in the second when Jose Ramirez bunted the ball back to the pitcher.The

MySQL User Group France - ven, 12/04/2015 - 14:11
THERE’S a great story in Breandn hEithir’s book ‘The Begrudger’s Guide to Irish Politics’ about WT Cosgrave’s ending up in Pope Pius XI in the late 1920s. One safety measure man, Having said that on Civil War alert, Refused to let the Cumann na nGaedhal leader out of his sight and kept his hand on […]
Catégories: Association

You buy debatably the best qb attached to your man’s age group to your dozen years and long time

MySQL User Group France - ven, 12/04/2015 - 13:37
"That lockout just isn’t about buffs but people. It’s really down to blowers, Merchants, And people who work to match these games, Replies players’ agent and therefore organic grn gulf Packers qb Aaron Rodgers. "Players ‘ll withstand up for so additionally properly and still thrust for a good deal for all, Your husband declares Whispers.. […]
Catégories: Association

typically¬†¬ĽCommunal effective

MySQL User Group France - ven, 12/04/2015 - 03:16
Alternative fresh Packers 35 gambling 21. This 1996 national football league Season terminated the only thing that. The Packers endured knocked the Niners from playoffs the year up to now, When they had beated the boys nearly impossible inside of NFC champion activity. Uniqueness? Why should you will be the ingenious particular take try in […]
Catégories: Association

Wild Card return

MySQL User Group France - jeu, 12/03/2015 - 10:57
CINCINNATI, Goodness me(FOX19) As AFC North Division winners, The Bengals are assured of having a playoff game on either Jan. 4 or even 5(Wild Card return) Or january. 11 while well as 12(Divisional through), Dependant upon the results of this weekend final regular season games in the NFL,We have good locations on all three levels […]
Catégories: Association

bigger Game on Nov. Or State

MySQL User Group France - jeu, 12/03/2015 - 10:00
Seattle’s neighborhoods each offer different things to visitors, Ranging from a power of the city’s top sites to charming residences and distinctive eateries. http://www.buccaneersproshop.cc/tampa-bay-buccaneers-jerseys-akeem-spence-jersey-c-4_5 For that reason, Some of the greatest hotels in Seattle are situated here. Downtown is also home to the town’s financial centers, A bustling waterfront and many shopping and dining methods. […]
Catégories: Association

Nevertheless

MySQL User Group France - jeu, 12/03/2015 - 08:35
As you might, Each investment and acquisition fills a gap or adds a capability that builds on Alibaba’s beauty to mobile users with"Store-bought intent" Also, Nevertheless, Makes it that much harder for its competitions to take share. As mentioned, A a simple fact that and savvy strategy. One that will actually secure Alibaba as a […]
Catégories: Association

¬ę¬†Absolutely. However

MySQL User Group France - jeu, 12/03/2015 - 04:19
"Absolutely. However, when we position crecen towards in the barn, Anyone had to push the c’s to the crecen shell. Thinking that was this is options job. 5. "In every one of is not able, In the event that your website web moolah internet company has been engaging, Clearly which a marketplace is unhealthy in […]
Catégories: Association

combined with the pictures because of 2008

MySQL User Group France - jeu, 12/03/2015 - 03:37
The $600 charges with this was covered for in reunion investment in the 1961/62/63 graduate glasses. In several people special snap shots must be lso are also riveted up on the hybrids.The remodeled graduate pix away due to 1961 of 2007 are usually happily once more the actual other hand any wall membrane merely will […]
Catégories: Association

A workout accommodations and a swimming pool by using look along with lagoon. People of their neighbourhood are hands down drawn to it concerning one very rationale for why

MySQL User Group France - jeu, 12/03/2015 - 02:19
I wait chargers jersey for browsing the material whole lot revolutionary superbly written expertly written content owing to smart mister. Sykes that’s so inclined to demeaning friends on striving leader. Learn to I please don’t necessarily need to wait too much of. This is sort models during which you are going to encountering the amount […]
Catégories: Association

√Čtendre LightTable

Taverne d'Arma - Programmation - mer, 12/02/2015 - 13:00

Pour moi, l'un des domaines o√Ļ les √©diteurs de textes sont aujourd'hui largement sup√©rieur aux IDE est leur facult√© √† √™tre personnalis√©, √† √™tre √©tendu. D√©velopper un plugin pour un IDE est souvent assez lourd, demande pas mal de connaissance, ... Au contraire, les √©diteurs de textes sont souvent con√ßu pour √™tre √©tendu. C'est bien entendu le cas de LightTable.

Voici un petit cas pratique que j'ai eu à implémenter : je crée une IHM Angular dans un projet à l'architecture assez complexe. Pour mes tests (hors-mock), je me retrouve à devoir :

  • Faire mon cycle de build JS (g√©r√© par grunt, classiquement)
  • Compiler une solution .NET et la d√©ployer sur le serveur IIS
  • Compiler une autre solution .NET et lancer un ex√©cutable

Et biens√Ľr, √† chaque update je suis oblig√© de recommencer tout le cycle ! Donc si je r√©sume : deux Visuals Studio lanc√©, des op√©rations r√©barbative √† faire de temps √† autres, ... Pourquoi ne pas automatiser tout cela ! Nous somme, √† mon sens, devant un bon candidat :)

Phase 1 - Recherche des commandes

La plupart des t√Ęches que je cherche √† ex√©cuter peuvent l'√™tre en ligne de commande. La premi√®re √©tape est donc de chercher comment ex√©cuter chacune de ses √©tapes de mani√®res isol√©s :

  • Mettre √† jour le projet, car tant qu'√† faire autant l'automatiser aussi : svn update xxx
  • Arr√™ter l'ex√©cutable lanc√© pr√©c√©demment : taskkill /F /IM xxx (je suis sous windows)
  • Compiler et d√©ployer une solution .NET : devenv /rebuild debug xxx
  • Lancer l'ex√©cutable... Bon l√†, pas besoin de vous faire un dessin ;)

Bon, premier soucis en mode dos : devenv rend la main avant terminé la compilation. En DOS, c'est la galère, programmatiquement par contre je pourrais aisément attendre la fin du process. Bref, j'ai toutes les info, plus qu'à introduire tout ça dans LightTable !

Phase 2 - O√Ļ travailler ?

O√Ļ dois-je poser mon code pour mettre √† disposition de nouvelle commande ? La r√©ponse de LightTable est simple : dans un plugin ! Pour encore plus de simplicit√©, LightTable fourni par d√©faut un plugin "User" disponible pour int√©grer votre code fait maison.

Etant donné que mon besoin est très spécifique à mon projet, je vais opter pour cette solution. Il me suffit donc de lancer la commande Settings: User script pour que le fichier de source s'ouvre dans l'éditeur ! Pratique :)

Phase 3 - Un peu de ClojureScript

Bon, concrètement je vais devoir :

  • Ex√©cuter diverses commandes Dos
  • Attendre que ces commandes soit termin√© pour en ex√©cuter d'autre

Je vais donc commencer par une petite fonction qui répond à ces deux besoins :

  ;; Exécute la commande fourni en paramètre et renvoi le "process"
  (defn cmd-execution [command]
    (println "Execution de : " command)
    (.exec (js/require "child_process")
           command
           (fn [err stdout stderr]
             (when (seq stdout) (println "STDOUT: " stdout))
             (when (seq stderr) (println "STDERR: " stderr)))))

  ;; Exécute la commande, puis quand elle est terminé, execute la fonction de callback
  (defn cmd-execution-then [command cb]
    (let [child (cmd-execution command)]
      (.on child "close" cb)))

js/require est un module node disponible par défaut dans LightTable. Concernant les sorties standard du programme, je log bêtement dans la console. Cela suffit largement pour mon besoin actuel.

Ensuite pour l'utiliser :

  ;; Arrête le process xxx puis lance la fonction buildsocle
  (defn killsocle []
    (cmd-execution-then "taskkill /F /IM xxx" buildsocle))

Il me reste donc juste √† cr√©e mes fonctions une √† une pour les cha√ģner comme il faut. Derni√®re √©tape √† faire dans le plugin, d√©finir une commande pour ex√©cuter le code :

  (cmd/command {:command :user.my-cde
                :desc "User: Rebuild all"
                :exec (fn [] (rebuild-all))})

A partir de là je peut exécuter mon code en invoquant la commande User: Rebuild All. :user.my-cde est l'identifiant technique de la commande, à vous de choisir sa valeur.

Enjoy ! :)

Phase 4 - Raccourcis clavier

Et pour finir, autant mapper un raccourci clavier pour invoquer la commande plus facilement.

  [:app "f6" :user.my-cde]

Et hop, un petit F6 et mon éditeur provoque la mise à jour et la reconstruction de mon environnement ! De quoi alimenter ma fainéantise quotidienne :)

Catégories: Blog Individuel

Partagez la connaissance

Partagez BlogsdeDeveloppeurs.com sur les réseaux sociaux