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

 

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

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  16686  16687  16688  ..  26988  26989  26990  26991  26992  26993
Auteur Sujet :

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

n°1926437
Loom the G​loom
Even coders get the blues...
Posté le 24-09-2009 à 16:34:21  profilanswer
 

Reprise du message précédent :

black_lord a écrit :


 
si tu maitrises pas l'infra entre les 2 le diagnostic va pas être facile :spamafote: colle un URG sur les paquets ACK pour voir


[:le poney de mr pink]


---------------
Music|Market|Feed|Loom|DVD
mood
Publicité
Posté le 24-09-2009 à 16:34:21  profilanswer
 

n°1926439
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 16:42:58  profilanswer
 


Le monsieur suggère que tu flagges tes paquets ack(nowledgement) en URG(ent) afin de t'assurer qu'ils ne sont pas bloqués par d'autres paquets.


---------------
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°1926440
black_lord
Truth speaks from peacefulness
Posté le 24-09-2009 à 16:47:23  profilanswer
 

masklinn a écrit :


Le monsieur suggère que tu flagges tes paquets ack(nowledgement) en URG(ent) afin de t'assurer qu'ils ne sont pas bloqués par d'autres paquets.


 
:jap:


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
n°1926441
boulax
Inserer phrase hype en anglais
Posté le 24-09-2009 à 16:49:01  profilanswer
 

Taiche a écrit :

Ouais, et après les AIO, oublie pas de TPT les UIF.
 
EDIT : sauf si les RTP sont disablés (par défaut dans les conf MTL)


RDV au POPB pour le JUG


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1926442
gfive
Posté le 24-09-2009 à 16:49:42  profilanswer
 

HOUPTAIN§§§§

 
Code :
  1. public class OList<T> extends ArrayList<T> {
  2.    public ArrayList<T> getList() {
  3.        ArrayList<T> list = new ArrayList<T>();
  4.        for (T obj : this) {
  5.            list.add(obj);
  6.        }
  7.        return list;
  8.    }
  9. }
 

Et plus loin,

 
Code :
  1. OList listObject = ....;
  2. if (listObject.getList() != null && listObject.getList().size() > 0) {
 

Ah ben oui, forcément, c'est un peu lent, hein.

 

[:prozac]

Message cité 2 fois
Message édité par gfive le 24-09-2009 à 16:50:06

---------------
Tous les sud africains sont ségrégationistes, à part Ted. (P. Desproges)
n°1926443
boulax
Inserer phrase hype en anglais
Posté le 24-09-2009 à 16:52:04  profilanswer
 

gfive a écrit :

HOUPTAIN§§§§
 

Code :
  1. public class OList<T> extends ArrayList<T> {
  2.    public ArrayList<T> getList() {
  3.        ArrayList<T> list = new ArrayList<T>();
  4.        for (T obj : this) {
  5.            list.add(obj);
  6.        }
  7.        return list;
  8.    }
  9. }


 
Et plus loin,
 

Code :
  1. OList listObject = ....;
  2. if (listObject.getList() != null && listObject.getList().size() > 0) {


 
Ah ben oui, forcément, c'est un peu lent, hein.
 
[:prozac]


Méthode mal nommée non ? Ca devrait plutot s'appeler convertTo... M'enfin bon étendre ArrayList [:petrus75]


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1926445
gfive
Posté le 24-09-2009 à 16:55:24  profilanswer
 

boulax a écrit :


Méthode mal nommée non ? Ca devrait plutot s'appeler convertTo... M'enfin bon étendre ArrayList [:petrus75]

 

nan, nan. Il s'en servent UNIQUEMENT pour récupérer le contenu de la liste.

 

Jamais pour le modifier, toujours pour la parcourir ou tester qu'elle est ni nulle ni vide. SIOUPAIRE§

 

Après, étendre ArrayList, pourquoi pas. Sauf que l)à, ils ont besoin d'un comportement de LinkedHashMap, mais bon.

Message cité 1 fois
Message édité par gfive le 24-09-2009 à 16:55:56

---------------
Tous les sud africains sont ségrégationistes, à part Ted. (P. Desproges)
n°1926446
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 16:56:07  profilanswer
 

gfive a écrit :

HOUPTAIN§§§§

 
Code :
  1. public class OList<T> extends ArrayList<T> {
  2.    public ArrayList<T> getList() {
  3.        ArrayList<T> list = new ArrayList<T>();
  4.        for (T obj : this) {
  5.            list.add(obj);
  6.        }
  7.        return list;
  8.    }
  9. }
 

Et plus loin,

 
Code :
  1. OList listObject = ....;
  2. if (listObject.getList() != null && listObject.getList().size() > 0) {
 

Ah ben oui, forcément, c'est un peu lent, hein.

 

[:prozac]


mais… [:pingouino]

boulax a écrit :


Méthode mal nommée non ? Ca devrait plutot s'appeler convertTo... M'enfin bon étendre ArrayList [:petrus75]


cloneTo [:aloy]

 

Parce que bon sinon il aurait pu écrire return (ArrayList<T> ) this :o

gfive a écrit :

 

nan, nan. Il s'en servent UNIQUEMENT pour récupérer le contenu de la liste.

 

Jamais pour le modifier, toujours pour la parcourir ou tester qu'elle est ni nulle ni vide. SIOUPAIRE§

 

Après, étendre ArrayList, pourquoi pas. Sauf que l)à, ils ont besoin d'un comportement de LinkedHashMap, mais bon.


En même temps, tu sais déjà comment l'optimiser: suffit de dégager #getList :D


Message édité par masklinn le 24-09-2009 à 16:57:15

---------------
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°1926448
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 16:58:10  profilanswer
 

gfive a écrit :


 
nan, nan. Il s'en servent UNIQUEMENT pour récupérer le contenu de la liste.
 
Jamais pour le modifier, toujours pour la parcourir ou tester qu'elle est ni nulle ni vide. SIOUPAIRE§
 
Après, étendre ArrayList, pourquoi pas. Sauf que l)à, ils ont besoin d'un comportement de LinkedHashMap, mais bon.


Sinon, j'voudrais le source en MP :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°1926449
Loom the G​loom
Even coders get the blues...
Posté le 24-09-2009 à 16:59:21  profilanswer
 

masklinn a écrit :


Le monsieur suggère que tu flagges tes paquets ack(nowledgement) en URG(ent) afin de t'assurer qu'ils ne sont pas bloqués par d'autres paquets.


Ca m'aide pas plus, mais au cas où, je n'ai absolument pas la main sur le serveur ftp (si c'est là que ça se gère ce truc :o)


---------------
Music|Market|Feed|Loom|DVD
mood
Publicité
Posté le 24-09-2009 à 16:59:21  profilanswer
 

n°1926451
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:02:49  profilanswer
 

Loom the Gloom a écrit :


Ca m'aide pas plus, mais au cas où, je n'ai absolument pas la main sur le serveur ftp (si c'est là que ça se gère ce truc :o)

Quand tu reçois des données c'est ta machine qui envoie des packets ACK au serveur (pour dire qu'elle a bien reçu le paquet, donc) je pense.
 
Après, faut aller demander aux barbus c'est eux qui jouent avec ce genre de technos de natas :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°1926452
gfive
Posté le 24-09-2009 à 17:11:39  profilanswer
 

masklinn a écrit :


Sinon, j'voudrais le source en MP :o


 
:d naaaaan, je peux pas! :o


---------------
Tous les sud africains sont ségrégationistes, à part Ted. (P. Desproges)
n°1926453
boulax
Inserer phrase hype en anglais
Posté le 24-09-2009 à 17:12:13  profilanswer
 

Loom the Gloom a écrit :


Ca m'aide pas plus, mais au cas où, je n'ai absolument pas la main sur le serveur ftp (si c'est là que ça se gère ce truc :o)


Ca a plus l'air d'une modif dans la pile TCP, barbu style, ça t'avance pas plus je sais [:petrus75]


---------------
Posté depuis des chiottes, sales. Me gusta.
n°1926454
Loom the G​loom
Even coders get the blues...
Posté le 24-09-2009 à 17:15:53  profilanswer
 

boulax a écrit :


Ca a plus l'air d'une modif dans la pile TCP, barbu style, ça t'avance pas plus je sais [:petrus75]


J'ai cherché à ce niveau là toute la journée (clé de registre TCPWindowSize etc...) mais sans grand résultat :/


---------------
Music|Market|Feed|Loom|DVD
n°1926455
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 24-09-2009 à 17:15:54  profilanswer
 

Bonjour
le spectacle comique que je vais vous présenter ce soir s'intitule olol.NET  :o
 
 
Soit bmp une bitmap de .NET
 

Code :
  1. for (int i=0 ; i<bmp.Width ; i++) {
  2.     for (int j=0 ; j<bmp.Width ; j++) {
  3.         // attention mesdames et messieurs, rien dans les manches rien dans le scope
  4.     }
  5. }


 

Code :
  1. int W = bmp.Width;
  2. int H = bmp.Height;
  3. for (int i=0 ; i<W ; i++) {
  4.     for (int j=0 ; j<H ; j++) {
  5.         // attention mesdames et messieurs, rien dans les manches rien dans le scope
  6.     }
  7. }


 
 
La différence est de... ~1000% (et c'est pas le mécanisme des properties qui est lent, c'est vraiment le contenu de bmp.Width/Height qui se traîne)
 
Vive Gdi, vive la France. À votre bon cœur msieur dames :o


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°1926456
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:16:11  profilanswer
 

gfive a écrit :


 
:d naaaaan, je peux pas! :o


Steupléééé [:bakk21]  
 
Juste pour moi [:bakk33]


---------------
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°1926457
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:18:36  profilanswer
 

Xavier_OM a écrit :

La différence est de... ~1000% (et c'est pas le mécanisme des properties qui est lent, c'est vraiment le contenu de bmp.Width/Height qui se traîne)


Genre ça retourne lire le contenu des offsets 0x12 et 0x16 du header BMP (width et height) à chaque accès?


---------------
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°1926458
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 24-09-2009 à 17:24:07  profilanswer
 

masklinn a écrit :


Genre ça retourne lire le contenu des offsets 0x12 et 0x16 du header BMP (width et height) à chaque accès?


 
Je sais pas, ça fait :
 

Code :
  1. public int get_Width()
  2. {
  3.     int num;
  4.     int status = SafeNativeMethods.GdipGetImageWidth(new HandleRef(this, this.nativeImage), out num);
  5.     if (status != 0)
  6.     {
  7.         throw SafeNativeMethods.StatusException(status);
  8.     }
  9.     return num;
  10. }


 
 
Ce qui est sûr c'est qu'une propriété retournant une constante valant bmp.Width n'alourdit que très peu la chose :o
 


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°1926459
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:32:23  profilanswer
 

Xavier_OM a écrit :

 

Je sais pas, ça fait :

 
Code :
  1. public int get_Width()
  2. {
  3.     int num;
  4.     int status = SafeNativeMethods.GdipGetImageWidth(new HandleRef(this, this.nativeImage), out num);
  5.     if (status != 0)
  6.     {
  7.         throw SafeNativeMethods.StatusException(status);
  8.     }
  9.     return num;
  10. }
 


Ce qui est sûr c'est qu'une propriété retournant une constante valant bmp.Width n'alourdit que très peu la chose :o
 


J'ai gagné:

Citation :

GdipGetImageWidth (or GdipGetImageHeight) is used to retrieve the value, and it isn't cached.


[:dawa]

 

>> http://www.artima.com/forums/flat. [...] read=57162 [:ddr555]


Message édité par masklinn le 24-09-2009 à 17:34:16

---------------
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°1926460
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 24-09-2009 à 17:33:48  profilanswer
 

Xavier_OM a écrit :

Bonjour
le spectacle comique que je vais vous présenter ce soir s'intitule olol.NET  :o
 
 
Soit bmp une bitmap de .NET
 

Code :
  1. for (int i=0 ; i<bmp.Width ; i++) {
  2.     for (int j=0 ; j<bmp.Width ; j++) {
  3.         // attention mesdames et messieurs, rien dans les manches rien dans le scope
  4.     }
  5. }


 

Code :
  1. int W = bmp.Width;
  2. int H = bmp.Height;
  3. for (int i=0 ; i<W ; i++) {
  4.     for (int j=0 ; j<H ; j++) {
  5.         // attention mesdames et messieurs, rien dans les manches rien dans le scope
  6.     }
  7. }


 
 
La différence est de... ~1000% (et c'est pas le mécanisme des properties qui est lent, c'est vraiment le contenu de bmp.Width/Height qui se traîne)
 
Vive Gdi, vive la France. À votre bon cœur msieur dames :o


cha pas si t'as vu, mais sur le code 1 tu boucles 2 fois sur Width, et sur le code 2 tu boucles sur Width et Height [:petrus75]


---------------
J'ai un string dans l'array (Paris Hilton)
n°1926461
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:34:56  profilanswer
 

Harkonnen a écrit :


cha pas si t'as vu, mais sur le code 1 tu boucles 2 fois sur Width, et sur le code 2 tu boucles sur Width et Height [:petrus75]


C'est juste une erreur de copypasteanonymisation ça :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°1926462
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 24-09-2009 à 17:36:15  profilanswer
 

j'espère pour lui [:petrus75]


---------------
J'ai un string dans l'array (Paris Hilton)
n°1926464
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 24-09-2009 à 17:39:11  profilanswer
 

Harkonnen a écrit :

j'espère pour lui [:petrus75]


of course, jsuis un Xavier quand même :o


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°1926466
kadreg
profil: Utilisateur
Posté le 24-09-2009 à 17:39:59  profilanswer
 

ssardou est mort :(


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
n°1926467
drasche
Posté le 24-09-2009 à 17:42:49  profilanswer
 

Xavier_OM a écrit :

of course, jsuis un Xavier quand même :o


Oui mais Harko aussi.


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°1926468
drasche
Posté le 24-09-2009 à 17:43:11  profilanswer
 

kadreg a écrit :

ssardou est mort :(


Tu ments.


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°1926470
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:45:42  profilanswer
 

kadreg a écrit :

ssardou est mort :(


C'est même pas vrai :(

drasche a écrit :


Oui mais Harko aussi.


http://hfr-rehost.net/images.starcraftmazter.net/4chan/for_forums/thats_the_joke.jpg


---------------
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°1926471
drasche
Posté le 24-09-2009 à 17:46:47  profilanswer
 

[:sadnoir]


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°1926472
kadreg
profil: Utilisateur
Posté le 24-09-2009 à 17:48:45  profilanswer
 


 
nan :o
 
http://www.eglise.catholique.fr/ac [...] onaco.html


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
n°1926473
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 17:52:03  profilanswer
 


 [:implosion du tibia]


---------------
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°1926475
drasche
Posté le 24-09-2009 à 17:54:52  profilanswer
 


Alors tu dis "Monseigneur Sardou" et tu fais pas chier [:natas]


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°1926476
kadreg
profil: Utilisateur
Posté le 24-09-2009 à 17:59:12  profilanswer
 


 
 [:lol_yvele]


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
n°1926480
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 18:40:43  profilanswer
 

http://www.youtube.com/watch?v=vLQvBczyrhg [:pingouino]


---------------
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°1926481
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 18:42:31  profilanswer
 

http://world.honda.com/news/2009/c [...] e/video01/ [:prozac]


---------------
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°1926482
skeye
Posté le 24-09-2009 à 18:44:12  profilanswer
 


[:roane]


---------------
Can't buy what I want because it's free -
n°1926483
lorill
Posté le 24-09-2009 à 18:45:40  profilanswer
 

linux n'est pas pret pour le destkop :fou:

n°1926484
lorill
Posté le 24-09-2009 à 18:46:22  profilanswer
 

c'est l'anniversaire du ptiot, il a eu un DVD "Petit Ours Brun" (tm), je le mets dans le lecteur, et... rien.

n°1926485
masklinn
í dag viðrar vel til loftárása
Posté le 24-09-2009 à 18:50:06  profilanswer
 

lorill a écrit :

linux n'est pas pret pour le destkop :fou:


http://www.gstatic.com/hostedimg/af40b849fd1efd2f_large


---------------
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°1926486
drasche
Posté le 24-09-2009 à 18:51:39  profilanswer
 


Y peuvent pas faire un titre encore plus long aussi? [:prozac]


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°1926487
skeye
Posté le 24-09-2009 à 18:53:08  profilanswer
 

Les déménageurs m'ont filé 40 cartons "pour les livres".[:pingouino]


Message édité par skeye le 24-09-2009 à 18:53:14

---------------
Can't buy what I want because it's free -
n°1926488
kadreg
profil: Utilisateur
Posté le 24-09-2009 à 19:09:33  profilanswer
 


 
segway !


---------------
brisez les rêves des gens, il en restera toujours quelque chose...  -- laissez moi troller sur discu !
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  16686  16687  16688  ..  26988  26989  26990  26991  26992  26993

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)