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

 

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

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  1311  1312  1313  ..  26864  26865  26866  26867  26868  26869
Auteur Sujet :

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

n°522345
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 16:41:26  profilanswer
 

Reprise du message précédent :

chrisbk a écrit :


J'avais bien dit qu'elle etait atroce :O


Stu veux j't'en code une rapide avec des StringBuffer, hein :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
mood
Publicité
Posté le 24-09-2003 à 16:41:26  profilanswer
 

n°522346
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 16:42:07  profilanswer
 

Back in summer of 69 [:taiche]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522347
chrisbk
-
Posté le 24-09-2003 à 16:43:14  profilanswer
 

Taiche a écrit :


Stu veux j't'en code une rapide avec des StringBuffer, hein :o


 
Vazy, cultive moi [:joce]
(Fo que ca soit 1.1 compliant :O)

n°522348
benou
Posté le 24-09-2003 à 16:43:20  profilanswer
 

Taiche a écrit :


Ba mate le source de la classe de Jakarta que file benou en URL plus haut, alors :/


marchera pas : ca utilise des StringBuffer en interne :/
 
edit : tin la bourde ! c'est since JK1.0 les StringBuffer :/


Message édité par benou le 24-09-2003 à 16:44:28

---------------
ma vie, mon oeuvre - HomePlayer
n°522352
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 16:44:42  profilanswer
 

benou a écrit :


marchera pas : ca utilise des StringBuffer en interne :/


Ui nan mais StringBuffer existe depuis 1.0, hein, c'est juste la méthode replace() de StringBuffer qui est since 1.2 :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522356
benou
Posté le 24-09-2003 à 16:48:28  profilanswer
 

Taiche a écrit :


Stu veux j't'en code une rapide avec des StringBuffer, hein :o


 

Code :
  1. /**
  2.      * <p>Replaces all occurances of a String within another String.</p>
  3.      *
  4.      * <p>A <code>null</code> reference passed to this method is a no-op.</p>
  5.      *  
  6.      * <pre>
  7.      * StringUtils.replace(null, *, *)        = null
  8.      * StringUtils.replace("", *, *)          = ""
  9.      * StringUtils.replace("aba", null, null) = "aba"
  10.      * StringUtils.replace("aba", null, null) = "aba"
  11.      * StringUtils.replace("aba", "a", null)  = "aba"
  12.      * StringUtils.replace("aba", "a", "" )    = "aba"
  13.      * StringUtils.replace("aba", "a", "z" )   = "zbz"
  14.      * </pre>
  15.      *  
  16.      * @see #replace(String text, String repl, String with, int max)
  17.      * @param text  text to search and replace in, may be null
  18.      * @param repl  the String to search for, may be null
  19.      * @param with  the String to replace with, may be null
  20.      * @return the text with any replacements processed,
  21.      *  <code>null</code> if null String input
  22.      */
  23.     public static String replace(String text, String repl, String with) {
  24.         return replace(text, repl, with, -1);
  25.     }
  26.     /**
  27.      * <p>Replaces a String with another String inside a larger String,
  28.      * for the first <code>max</code> values of the search String.</p>
  29.      *
  30.      * <p>A <code>null</code> reference passed to this method is a no-op.</p>
  31.      *
  32.      * <pre>
  33.      * StringUtils.replace(null, *, *, *)         = null
  34.      * StringUtils.replace("", *, *, *)           = ""
  35.      * StringUtils.replace("abaa", null, null, 1) = "abaa"
  36.      * StringUtils.replace("abaa", null, null, 1) = "abaa"
  37.      * StringUtils.replace("abaa", "a", null, 1)  = "abaa"
  38.      * StringUtils.replace("abaa", "a", "", 1)    = "abaa"
  39.      * StringUtils.replace("abaa", "a", "z", 0)   = "abaa"
  40.      * StringUtils.replace("abaa", "a", "z", 1)   = "zbaa"
  41.      * StringUtils.replace("abaa", "a", "z", 2)   = "zbza"
  42.      * StringUtils.replace("abaa", "a", "z", -1)  = "zbzz"
  43.      * </pre>
  44.      *  
  45.      * @param text  text to search and replace in, may be null
  46.      * @param repl  the String to search for, may be null
  47.      * @param with  the String to replace with, may be null
  48.      * @param max  maximum number of values to replace, or <code>-1</code> if no maximum
  49.      * @return the text with any replacements processed,
  50.      *  <code>null</code> if null String input
  51.      */
  52.     public static String replace(String text, String repl, String with, int max) {
  53.         if (text == null || repl == null || with == null || repl.length() == 0 || max == 0) {
  54.             return text;
  55.         }
  56.         StringBuffer buf = new StringBuffer(text.length());
  57.         int start = 0, end = 0;
  58.         while ((end = text.indexOf(repl, start)) != -1) {
  59.             buf.append(text.substring(start, end)).append(with);
  60.             start = end + repl.length();
  61.             if (--max == 0) {
  62.                 break;
  63.             }
  64.         }
  65.         buf.append(text.substring(start));
  66.         return buf.toString();
  67.     }


 :ange:


---------------
ma vie, mon oeuvre - HomePlayer
n°522358
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 16:51:34  profilanswer
 


Beurk :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522369
urd-sama
waste of space
Posté le 24-09-2003 à 17:07:54  profilanswer
 

putain! mon boss vient de me dire qu'il fait une démo de mon truc vb demain matin  
heureusement qu'il me le dit en début de journée bordel  :fou:

n°522371
chrisbk
-
Posté le 24-09-2003 à 17:11:30  profilanswer
 

j'en ai trop marre de cette JVM de merde [:sisicaivrai]
 
On arrive meme pas a lire les exceptions, la callStack est trop grosse pour l'ecran.
Donc le truc plante cjaipasou pour chaiaps quelle raison

n°522372
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:11:36  profilanswer
 

PUTAIN DE BORDEL DE CUL ! :fou:  
 
Quand est-ce qu'elle se termine cette journée de merde [:toad666]


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

n°522374
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:13:40  profilanswer
 

mareek a écrit :

PUTAIN DE BORDEL DE CUL ! :fou:  
 
Quand est-ce qu'elle se termine cette journée de merde [:toad666]


Tout le monde se pose la même question [:ddr555] J'pense que je vais me tirer d'ici 30 min au maximum [:kunks]
En plus, moi ce soir j'vois ma douce :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522375
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:14:07  profilanswer
 

chrisbk a écrit :

j'en ai trop marre de cette JVM de merde [:sisicaivrai]
 
On arrive meme pas a lire les exceptions, la callStack est trop grosse pour l'ecran.
Donc le truc plante cjaipasou pour chaiaps quelle raison


Redirige la sortie d'erreur vers un fichier texte [:spamafote]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522379
chrisbk
-
Posté le 24-09-2003 à 17:16:31  profilanswer
 

Taiche a écrit :


Redirige la sortie d'erreur vers un fichier texte [:spamafote]


 
c fait (je recupere tous les throwable au niveau du main et je balance dans un log)
sauf que qqpart dans le code y'a un pouilleux qui recup une exception, balance la call stack et continue facon y s'est rien passé....
 
203e120d2
 
g rien dit


Message édité par chrisbk le 24-09-2003 à 17:17:50
n°522381
benou
Posté le 24-09-2003 à 17:17:43  profilanswer
 

chrisbk a écrit :


Donc le truc plante cjaipasou pour chaiaps quelle raison


Tu ferrais du C tu trouverais ca normal ;)


---------------
ma vie, mon oeuvre - HomePlayer
n°522382
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:17:46  profilanswer
 

chrisbk a écrit :


 
c fait (je recupere tous les throwable au niveau du main et je balance dans un log)
sauf que qqpart dans le code y'a un pouilleux qui recup une exception, balance la call stack et continue facon y s'est rien passé....


Alors redirige la sortie standard vers un fichier [:banzai]
java monprog > out.txt ?>err.txt
ou un truc du style :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522384
benou
Posté le 24-09-2003 à 17:18:36  profilanswer
 


c'est le code de jakarta-commons-lang-de-pute


---------------
ma vie, mon oeuvre - HomePlayer
n°522385
chrisbk
-
Posté le 24-09-2003 à 17:18:41  profilanswer
 

benou a écrit :


Tu ferrais du C tu trouverais ca normal ;)


 
Ah ben la je dis pas que c java qui chie mais cette jvm de mes deux :O

n°522388
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:20:59  profilanswer
 

benou a écrit :


c'est le code de jakarta-commons-lang-de-pute


Ba franchement, j'trouve ça très laid. Ne serait-ce que pour le coup du if(--max == 0) avec un bon break au bout. Blerk.


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522389
chrisbk
-
Posté le 24-09-2003 à 17:22:07  profilanswer
 

merde y'a pas moyen de remplacer system.err ?
ta gueule chris t trop con


Message édité par chrisbk le 24-09-2003 à 17:22:51
n°522391
benou
Posté le 24-09-2003 à 17:23:20  profilanswer
 

Taiche a écrit :


Ba franchement, j'trouve ça très laid. Ne serait-ce que pour le coup du if(--max == 0) avec un bon break au bout. Blerk.


t'as qu'à leur dire :  
 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
 * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
 * @author <a href="mailto:gcoladonato@yahoo.com">Greg Coladonato</a>
 * @author <a href="mailto:bayard@generationjava.com">Henri Yandell</a>
 * @author <a href="mailto:ed@apache.org">Ed Korthof</a>
 * @author <a href="mailto:rand_mcneely@yahoo.com">Rand McNeely</a>
 * @author Stephen Colebourne
 * @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
 * @author Holger Krauth
 * @author <a href="mailto:alex@purpletech.com">Alexander Day Chaffee</a>
 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
 * @author Arun Mammen Thomas
 * @author Gary Gregory
 * @author Phil Steitz


---------------
ma vie, mon oeuvre - HomePlayer
n°522392
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:23:46  profilanswer
 

benou a écrit :


t'as qu'à leur dire :  
 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
 * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
 * @author <a href="mailto:gcoladonato@yahoo.com">Greg Coladonato</a>
 * @author <a href="mailto:bayard@generationjava.com">Henri Yandell</a>
 * @author <a href="mailto:ed@apache.org">Ed Korthof</a>
 * @author <a href="mailto:rand_mcneely@yahoo.com">Rand McNeely</a>
 * @author Stephen Colebourne
 * @author <a href="mailto:fredrik@westermarck.com">Fredrik Westermarck</a>
 * @author Holger Krauth
 * @author <a href="mailto:alex@purpletech.com">Alexander Day Chaffee</a>
 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
 * @author Arun Mammen Thomas
 * @author Gary Gregory
 * @author Phil Steitz
 


:lol: [:grinking]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522393
benou
Posté le 24-09-2003 à 17:24:02  profilanswer
 

chrisbk a écrit :

merde y'a pas moyen de remplacer system.err ?


System.setErr() [:spamafote]


---------------
ma vie, mon oeuvre - HomePlayer
n°522396
urd-sama
waste of space
Posté le 24-09-2003 à 17:26:57  profilanswer
 

vais pas me stresser, vais me la jouer "haaaaaaaaaaaaaaaaaaaaaaaaaaan c'eeeeeeeeeeeeeeest looooooooooooooooong" et rester à la maison demain matin :o

n°522398
chrisbk
-
Posté le 24-09-2003 à 17:27:56  profilanswer
 

benou a écrit :


System.setErr() [:spamafote]
 


 
cf mon edit [:ddr555]

n°522401
benou
Posté le 24-09-2003 à 17:30:52  profilanswer
 

chrisbk a écrit :


cf mon edit [:ddr555]


[:rofl]
je me demandais pkoi tu traitais ce pauvre chrisbk, j'avais pas fait attention que c'était à toi que je répondais [:ddr555]


---------------
ma vie, mon oeuvre - HomePlayer
n°522403
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:38:32  profilanswer
 

Taiche a écrit :


Tout le monde se pose la même question [:ddr555] J'pense que je vais me tirer d'ici 30 min au maximum [:kunks]
En plus, moi ce soir j'vois ma douce :o


Moi j'pense que je vais me tirer une balle, ou me pendre à un reverbere Ou bien je quidnappe la serveuse du quick, je me baricade dans une vieux chalet abandonnée et j'espère profiter du syndrome de Stockholm avant que le GIGN ne donne l'assaut (et j'essaye d'en avoir un ou 2 dans l'operation) :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°522405
chrisbk
-
Posté le 24-09-2003 à 17:40:19  profilanswer
 

Hallelujah !
La generation de code marche aussi sur iPaq, cai la faite

n°522406
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:40:20  profilanswer
 

mareek a écrit :


Moi j'pense que je vais me tirer une balle, ou me pendre à un reverbere Ou bien je quidnappe la serveuse du quick, je me baricade dans une vieux chalet abandonnée et j'espère profiter du syndrome de Stockholm avant que le GIGN ne donne l'assaut (et j'essaye d'en avoir un ou 2 dans l'operation) :o


Tu peux aussi de la jouer plus soft et l'inviter à prendre un verre :o


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522407
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:41:03  profilanswer
 

Taiche a écrit :


Tu peux aussi de la jouer plus soft et l'inviter à prendre un verre :o


ouais mais dans ce cas là, je meurre pas à la fin et c'est nettement moins marrant :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°522408
chrisbk
-
Posté le 24-09-2003 à 17:41:06  profilanswer
 

mareek a écrit :


Moi j'pense que je vais me tirer une balle, ou me pendre à un reverbere Ou bien je quidnappe la serveuse du quick, je me baricade dans une vieux chalet abandonnée et j'espère profiter du syndrome de Stockholm avant que le GIGN ne donne l'assaut (et j'essaye d'en avoir un ou 2 dans l'operation) :o


 
jvais me trouer la tete  la biere :O

n°522411
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:42:17  profilanswer
 

mareek a écrit :


ouais mais dans ce cas là, je meurre pas à la fin et c'est nettement moins marrant :o


Ba ouais mais t'embarques la bonnasse [:spamafote]
 
Sinon, un lien marrant : http://www.gazunta.com/wwtg/


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522412
chrisbk
-
Posté le 24-09-2003 à 17:43:46  profilanswer
 

mareek a écrit :


ouais mais dans ce cas là, je meurre pas à la fin et c'est nettement moins marrant :o


 
bah tu vides trois bouteilles de champagne, en pleine euphorie tu prends ta caisse et tu t'enroules a 180 autour d'un arbre

n°522413
urd-sama
waste of space
Posté le 24-09-2003 à 17:44:54  profilanswer
 

chrisbk a écrit :


bah tu vides trois bouteilles de champagne, en pleine euphorie tu prends ta caisse et tu t'enroules a 180 autour d'un arbre


ouais mais faut qu'il se fasse la nana avant sinon c'est nettement moins marrant :o

n°522416
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:46:57  profilanswer
 

Taiche a écrit :


Ba ouais mais t'embarques la bonnasse [:spamafote]
 
Sinon, un lien marrant : http://www.gazunta.com/wwtg/


c'est vrai, je vais y reflechir [:meganne] (et c'est pas ce que j'appellerai une bonasse :o)


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°522417
Taiche
(╯°□°)╯︵ ┻━┻
Posté le 24-09-2003 à 17:47:45  profilanswer
 

:lol:
http://fr.news.yahoo.com/030923/202/3er7k.html
[:roxelay]


---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
n°522418
chrisbk
-
Posté le 24-09-2003 à 17:47:52  profilanswer
 

Urd-sama a écrit :


ouais mais faut qu'il se fasse la nana avant sinon c'est nettement moins marrant :o


 
"Vidant couilles et bouteille de champagnes, mareek mis fin a ses jours"
 

n°522420
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:48:14  profilanswer
 

chrisbk a écrit :


 
bah tu vides trois bouteilles de champagne, en pleine euphorie tu prends ta caisse et tu t'enroules a 180 autour d'un arbre
 


nan, je veux pas mourrir comme un ptit con, je préfère la méthode psychopathe :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°522422
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:50:08  profilanswer
 

mareek a écrit :


c'est vrai, je vais y reflechir [:meganne] (et c'est pas ce que j'appellerai une bonasse :o)


nan, c'est pas possible, je dois quand même retourner au boulot le lendemain et je me retrouve encore dans un pays où la pensée est brevetable :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°522423
simogeo
j'ai jamais tué de chats, ...
Posté le 24-09-2003 à 17:50:53  profilanswer
 

salut les progo-moules  
[:mad_overclocker][:mad_overclocker][:mad_overclocker]
[:mad_overclocker][:mad_overclocker][:mad_overclocker]
[:mad_overclocker][:mad_overclocker][:mad_overclocker]
 
:fuck:


---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
n°522424
chrisbk
-
Posté le 24-09-2003 à 17:50:54  profilanswer
 

mareek a écrit :


nan, c'est pas possible, je dois quand même retourner au boulot le lendemain et je me retrouve encore dans un pays où la pensée est brevetable :o


 
brevete le kidnapping [:spamafote]

n°522426
mareek
Et de 3 \o/
Posté le 24-09-2003 à 17:53:41  profilanswer
 

chrisbk a écrit :


 
brevete le kidnapping [:spamafote]


"Technique qui consiste à se faire suicider par la maréchaussée, à téroriser une jeune fille et à apparaitre en page 18 du Dauphiné Libéré" :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  1311  1312  1313  ..  26864  26865  26866  26867  26868  26869

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)