Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
4506 connectés 

 

Sujet(s) à lire :
    - Who's who@Programmation
 

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  8920  8921  8922  ..  26992  26993  26994  26995  26996  26997
Auteur Sujet :

[blabla@olympe] Le topic du modo, dieu de la fibre et du monde

n°1213810
mareek
Et de 3 \o/
Posté le 03-10-2005 à 17:24:52  profilanswer
 

Reprise du message précédent :

nraynaud a écrit :

pareil, mais il faut faire gaffe que c'est associatif à gauche en C# mais que ça se propage à toute la ligne en java, quand il y en a plusieurs dans l'expression.


Je pensais pas que je pourrais être largué par un post parlant de l'opérateur "+" :hebe:
 
Enfin, avec nraynaud il faut s'attendre à tout [:pingouino]


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
mood
Publicité
Posté le 03-10-2005 à 17:24:52  profilanswer
 

n°1213817
mareek
Et de 3 \o/
Posté le 03-10-2005 à 17:37:16  profilanswer
 

Muriel, arrete de deleter tes posts :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°1213818
uriel
blood pt.2
Posté le 03-10-2005 à 17:38:25  profilanswer
 

c'etait un test de smileys [:dawao]


---------------
IVG en france
n°1213819
Tristou
Keep calm and hack cookies
Posté le 03-10-2005 à 17:40:28  profilanswer
 

La connerie atteint des sommets [:crystalizer]  
http://forum.hardware.fr/hardwaref [...] 8046-1.htm
 
(et puis vu que y'a peu de topics vérouillés ici, ça doit être signalé)


---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
n°1213820
el muchach​o
Comfortably Numb
Posté le 03-10-2005 à 17:43:26  profilanswer
 

Aujoud'hui, j'ai vu un collègue se débattre avec un script csh/sed/awk de 500 lignes à faire vraiment peur. Un truc cryptique à souhait qu'il a écrit il y a un moment pour sortir du HTML, et il n'arrivait plus à faire un truc simple avec le csh. En plus, son truc était trop lent, de son propre avoeu. Finalement, j'ai réussi à le convaincre d'apprendre et de tout réécrire en Python.
 
Un petit extrait du code csh :
 

Code :
  1. set FAMILY = `grep "^..\\" $DOC_DESC | awk -F'\' '{ for (i=1; i<=NF; i++) if (i%6 == 2) printf "%s\\", $i }'`
  2.     set FAMILY = `echo $FAMILY | awk -F'\' '{ for (i=1; i<=NF; i++) { a=0; for (j=1; j<i; j++) if ($j == $i) a=1; if (a == 0) printf "%s\\", $i }}'`
  3.     while ( "$FAMILY" != "" && "$FAMILY" != "\" )
  4.         set FAM = `echo $FAMILY | awk -F'\' '{ print $1 }'`
  5.         # Change HTML special characters.
  6.         set FAM_CLEAN1 = `echo $FAM | sed -e 's/>/\&gt;/g' -e 's/</\&lt;/g'`
  7.         # Replace " " by "b", "'" by "c" and '"' by "g".
  8.         set FAM_CLEAN2 = `echo $FAM_CLEAN1 | sed -e "s/'/c/g" -e 's/"/g/g' -e 's/ /b/g'`
  9.         set CODE_FAM_HTML = `printf "$FAMILY_HTML" "$FAM_CLEAN2" "$FAM_CLEAN1"`
  10.         set FAM_HTML = 0
  11.         set APPLICATION = `grep "^..\\" $DOC_DESC | awk -F'\' '{ for (i=1; i<=NF; i++) if (i%6 == 3) printf "%s\\", $i }'`
  12.         set APPLICATION = `echo $APPLICATION | awk -F'\' '{ for (i=1; i<=NF; i++) { a=0; for (j=1; j<i; j++) if ($j == $i) a=1; if (a == 0) printf "%s\\", $i }}'`
  13.         while ( "$APPLICATION" != "" && "$APPLICATION" != "\" )
  14.             set APP = `echo $APPLICATION | awk -F'\' '{ print $1 }'`
  15.             # Change HTML special characters.
  16.             set APP_CLEAN1 = `echo $APP | sed -e 's/>/\&gt;/g' -e 's/</\&lt;/g'`
  17.             # Replace " " by "b", "'" by "c" and '"' by "g".
  18.             set APP_CLEAN2 = `echo $APP_CLEAN1 | sed -e "s/'/c/g" -e 's/"/g/g' -e 's/ /b/g'`
  19.             set CODE_APP_HTML = `printf "$APPLICATION_HTML" "$FAM_CLEAN2" "$APP_CLEAN2" "$APP_CLEAN1"`
  20.             set APP_HTML = 0
  21.             set TYPE = `grep "^..\\" $DOC_DESC | awk -F'\' '{ for (i=1; i<=NF; i++) if (i%6 == 4) printf "%s\\", $i }'`
  22.             set TYPE = `echo $TYPE | awk -F'\' '{ for (i=1; i<=NF; i++) { a=0; for (j=1; j<i; j++) if ($j == $i) a=1; if (a == 0) printf "%s\\", $i }}'`
  23.             while ( "$TYPE" != "" && "$TYPE" != "\" )
  24.                 set TYP = `echo $TYPE | awk -F'\' '{ print $1 }'`
  25.                 set NUM_DOC = `cat $DOC_DESC | grep "^$LANG\\$FAM\\$APP\\$TYP\\" | wc  -l | awk '{print $1}'`
  26.                 set NB = 1
  27.                 while ( $NB <= $NUM_DOC )
  28.                     set DESC = `cat $DOC_DESC | grep "^$LANG\\$FAM\\$APP\\$TYP\\" | tail +$NB | head -1 | sed -e 's/\\/\\\\/g'`
  29.                     set NAME = `printf "$DESC" | awk -F'\' '{ print $5 }'`
  30.                     set FILE = `printf "$DESC" | awk -F'\' '{ print $6 }'`
  31.                     if ( $FAM_HTML == 0 ) then
  32.                         printf "$BLANK_LIGN_HTML" >> $TMP_FILE
  33.                         echo "$CODE_FAM_HTML" >> $TMP_FILE
  34.                         printf "$UNDERLIGN_HTML" >> $TMP_FILE
  35.                         printf "$BLANK_LIGN_HTML" >> $TMP_FILE
  36.                         set FAM_HTML = 1
  37.                     endif
  38.                     if ( $APP_HTML == 0 ) then
  39.                         echo "$CODE_APP_HTML" >> $TMP_FILE
  40.                         set APP_HTML = 1
  41.                     endif
  42.                     printf "$TYPE_HTML" $FILE "$NAME" >> $TMP_FILE
  43.                     @ NB++
  44.                 end
  45.                 set TYPE = `echo $TYPE | awk -F'\' '{ for (i=2; i<NF; i++) printf("%s\\",$i); printf $NF }'`
  46.             end
  47.             if ( $APP_HTML == 1 ) then
  48.                 printf "$BLANK_LIGN_HTML" >> $TMP_FILE
  49.             endif
  50.             set APPLICATION = `echo $APPLICATION | awk -F'\' '{ for (i=2; i<NF; i++) printf("%s\\",$i); printf $NF }'`
  51.         end
  52.         set FAMILY = `echo $FAMILY | awk -F'\' '{ for (i=2; i<NF; i++) printf("%s\\",$i); printf $NF }'`
  53.     end


 


Message édité par el muchacho le 03-10-2005 à 17:48:01
n°1213822
uriel
blood pt.2
Posté le 03-10-2005 à 17:45:17  profilanswer
 

[:le kneu]


---------------
IVG en france
n°1213823
boulax
Inserer phrase hype en anglais
Posté le 03-10-2005 à 17:45:37  profilanswer
 

mais spoiler quoi, y'a des gens sensibles ici merde [:mlc]


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1213824
push
/dev/random
Posté le 03-10-2005 à 17:45:42  profilanswer
 

Tristou a écrit :

(et puis vu que y'a peu de topics vérouillés ici, ça doit être signalé)


[:sarko]

n°1213825
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 17:46:00  profilanswer
 

Propose le à TDWTF :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213827
Tristou
Keep calm and hack cookies
Posté le 03-10-2005 à 17:47:35  profilanswer
 

masklinn a écrit :

Propose le à TDWTF :o


 
 
Skoi ça ? [:urd]


---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
mood
Publicité
Posté le 03-10-2005 à 17:47:35  profilanswer
 

n°1213828
uriel
blood pt.2
Posté le 03-10-2005 à 17:49:52  profilanswer
 


n00b, ban him, [:the real moins moins]


---------------
IVG en france
n°1213829
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 17:50:06  profilanswer
 


F'cking suxxoring noob [:mlc]
 
The Daily WTF, le site sur lequel des programmeurs se moquent d'autres programmeurs tout en se plaignant du forum pourri sur lequel tourne le site ("This forum is the true WTF" meme, rencontré au moins une fois par thread :o)


Message édité par masklinn le 03-10-2005 à 17:50:33

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213830
boulax
Inserer phrase hype en anglais
Posté le 03-10-2005 à 17:50:33  profilanswer
 

www.thedailywtf.com


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1213838
Tristou
Keep calm and hack cookies
Posté le 03-10-2005 à 18:04:31  profilanswer
 

Hé, on me dit une fois les choses, j'intègre et après je saurais [:icon3]

Message cité 1 fois
Message édité par Tristou le 03-10-2005 à 18:05:00

---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
n°1213851
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 03-10-2005 à 18:22:07  profilanswer
 

Tristou a écrit :

Hé, on me dit une fois les choses, j'intègre et après je saurais [:icon3]


kitétoua ? [:heink]

n°1213856
Tristou
Keep calm and hack cookies
Posté le 03-10-2005 à 18:32:13  profilanswer
 


 
STFU [:thalis]


---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
n°1213857
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 18:32:49  profilanswer
 

Tristou, tu voudrais pas te désintégrer plutôt que d'intégrer [:petrus dei]
(puis change ta citation, tout le monde sait que t'es pas un geek [:thalis] )


Message édité par masklinn le 03-10-2005 à 18:34:37

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213859
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 03-10-2005 à 18:39:02  profilanswer
 
n°1213861
Tristou
Keep calm and hack cookies
Posté le 03-10-2005 à 18:39:11  profilanswer
 

(fais moi une propositon [:petrus75])


---------------
"About your cat Mr. Schrödinger : I have good news and bad news"
n°1213867
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 03-10-2005 à 18:48:58  profilanswer
 
n°1213869
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 18:54:36  profilanswer
 


T'as quoi contre le fait de catcher les exceptions hein? :heink:  
 
Tu serais pas un peu un fan de la gestion d'erreurs au GOTO? :heink:  

Tristou a écrit :

(fais moi une propositon [:petrus75])


Citation :

Sucking golf balls through garden hoses


me semble pas mal [:icon12]


Ca me donne trop envie d'habiter là pas [:pingouino]
Des concours de mémorisation du Coran, voilà de belles occupations, c'est pas dans ce pays de dégénérés qu'est devenu la France qu'on ferait des concours de récitation de la Bible [:pingouino]
 
Revenons aux vraies valeurs, Travail Famille Patrie sous l'égide de Dieu, suivez moi mes frêres [:pingouino]

Message cité 1 fois
Message édité par masklinn le 03-10-2005 à 18:55:35

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213880
uriel
blood pt.2
Posté le 03-10-2005 à 19:08:38  profilanswer
 

lui filer un lien de gfx c'etait trop dur:
http://forum.hardware.fr/hardwaref [...] 8006-1.htm
 
 :??: y a des tas de tuto toshop la bas


---------------
IVG en france
n°1213881
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 19:10:04  profilanswer
 

Comment dire...
 
Si il ne percute pas tout seul que GFX est peut être plus adapté à des tutos Photoshop que prog c'est pas le lui pointer qui va beaucoup l'aider dans la vie [:petrus75]


Message édité par masklinn le 03-10-2005 à 19:10:13

---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213883
uriel
blood pt.2
Posté le 03-10-2005 à 19:12:59  profilanswer
 

http://img106.imageshack.us/img106/4700/cdocumentsandsettingsseandeskt.gif


---------------
IVG en france
n°1213885
the real m​oins moins
Posté le 03-10-2005 à 19:17:12  profilanswer
 
n°1213886
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 19:21:23  profilanswer
 


Ce combo gris clair + vert pâle sur du blanc me brûle les rétines, suis-je le seul [:petrus dei]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213889
plainsofpa​in
Pingouino's lover
Posté le 03-10-2005 à 19:35:47  profilanswer
 

masklinn a écrit :

Ce combo gris clair + vert pâle sur du blanc me brûle les rétines, suis-je le seul [:petrus dei]


 
Non  [:pingouino]  
 
Mais c'est hallucinant ce bloatware, tout ca pour un CMS un peu évolué  [:miracle]


---------------
http://www.alsacreations.com , http://www.openweb.eu.org. Mon CV : http://cv.roane-irkana.net/. Exemple à ne surtout pas suivre : www.worldinternet.be
n°1213893
el muchach​o
Comfortably Numb
Posté le 03-10-2005 à 19:53:46  profilanswer
 


Ah merde, faut que je m'entraine pour la 18ème session des compétitions de lecture et de mémorisation coraniques en Indonésie. [:petrus75]
Ca m'a l'air trop top. [:petrus75]

n°1213895
the real m​oins moins
Posté le 03-10-2005 à 20:04:27  profilanswer
 

http://en.wikipedia.org/wiki/List_ [...] ar_Channel [:mlc]
 
 
(cfr. le premier groupe en R [:xx_xx])


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1213896
nraynaud
lol
Posté le 03-10-2005 à 20:12:09  profilanswer
 

pouet pouet !
 
je reviens d'un entretien avec une charmante demoiselle :love:
 
dans une SSII :(


---------------
trainoo.com, c'est fini
n°1213897
tholdan
Posté le 03-10-2005 à 20:12:31  profilanswer
 


xptdr


---------------
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
n°1213898
masklinn
í dag viðrar vel til loftárása
Posté le 03-10-2005 à 20:13:12  profilanswer
 


 
        good job!!           ∩   ∩
       _ _∩           (⌒ )   ( ⌒;)       ∩_ _ good job!!
        (ヨ,,. i             |  |  / .ノ        i .,,E)
good job!!  \ \          |  |  / /         / /
  _n      \ \   _、 _  .|  | / / _、_    / ノ
 (  l     _、 _  \ \( <_,` )|  | / / ,_ノ` )/ /    _、_    good job!!
  \ \ ( <_,` ) \         ノ(       /____( ,_ノ` )    n
    ヽ___ ̄ ̄ ノ   |      /   ヽ      | __      \     l .,E)
      /    /     /     /    \     ヽ   /     /\ ヽ_/ /


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1213901
uriel
blood pt.2
Posté le 03-10-2005 à 20:20:15  profilanswer
 

tiens, Masklinn, je me suis jamais posé la question:
en python le mieux c'est:
 
try:
......
except IOError:
  print 'file does not exist'
 
ou faire
 
if os.path.exists("/pouet/truc/coin" ):
 
 :??: j'y repense parce que je me fais un ptit truc perso la


---------------
IVG en france
n°1213906
push
/dev/random
Posté le 03-10-2005 à 20:24:09  profilanswer
 

Je viens de voir la fin du vrai journal par hasard, vous êtes doués en France avec les cartes à puce [:mlc] c'est pas la première fois [:mlc]

n°1213909
uriel
blood pt.2
Posté le 03-10-2005 à 20:29:21  profilanswer
 

bon, fais chier python sa race, je le fais en perl [:pingouino]


---------------
IVG en france
n°1213910
red factio​n
Posté le 03-10-2005 à 20:30:19  profilanswer
 

uriel a écrit :

tiens, Masklinn, je me suis jamais posé la question:
en python le mieux c'est:
 
try:
......
except IOError:
  print 'file does not exist'
 
ou faire
 
if os.path.exists("/pouet/truc/coin" ):
 
 :??: j'y repense parce que je me fais un ptit truc perso la


les exceptions sapu  :o

n°1213911
uriel
blood pt.2
Posté le 03-10-2005 à 20:32:35  profilanswer
 

perl ca p00tre:
 
$coord=$ARGV[0];
if ( -e $coord == 0 ) {
 print STDOUT "FILE ",$coord, "does not exist\n";
 exit;
}
$res = $ARGV[1];
 
open(INPUT,"<$coord" );
 $lines = 0;
    while (sysread INPUT, $buffer, 4096) {
        $lines += ($buffer =~ tr/\n//);
    }
close(INPUT);
 
 et hop [:el robert]


---------------
IVG en france
n°1213912
the real m​oins moins
Posté le 03-10-2005 à 20:33:05  profilanswer
 

uriel a écrit :

tiens, Masklinn, je me suis jamais posé la question:
en python le mieux c'est:
 
try:
......
except IOError:
  print 'file does not exist'
 
ou faire
 
if os.path.exists("/pouet/truc/coin" ):
 
 :??: j'y repense parce que je me fais un ptit truc perso la


 
ça me rappelle un certain débat sur le meme sujet, mais en java [:screetch]
 
(je suis partisan du exists())


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1213913
uriel
blood pt.2
Posté le 03-10-2005 à 20:34:28  profilanswer
 

+1 je pense que le exists est plus propre mais je demande a l'expert [:klem3i1]
 
(je suis 10x plus rapide en perl qu'en python [:pingouino])


---------------
IVG en france
n°1213914
the real m​oins moins
Posté le 03-10-2005 à 20:35:14  profilanswer
 

splus une question de conception que de language, là [:dawao]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°1213917
nraynaud
lol
Posté le 03-10-2005 à 20:36:33  profilanswer
 

the real moins moins a écrit :

ça me rappelle un certain débat sur le meme sujet, mais en java [:screetch]
 
(je suis partisan du exists())


MAIS TU ES COMPL7TEMENT CON ET TU AVAIS COMPL7TEMENT TORT §§§§§§§  :fou:  :fou:  :fou:  :fou:  :fou:  :fou:  :fou:


---------------
trainoo.com, c'est fini
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  8920  8921  8922  ..  26992  26993  26994  26995  26996  26997

Aller à :
Ajouter une réponse
 

Sujets relatifs
Plus de sujets relatifs à : [blabla@olympe] Le topic du modo, dieu de la fibre et du monde


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)