XWindow_
Posts made by acne
-
RE: I am facing problem in ie-6 in css.
Use a spell checker?
Or a web browser...
-
RE: The NumLock Obstacle
Newsflash for non-motif users: this beautiful peace of crap also known as a library does not let you enter anything if numlock is on!
-
RE: Refund email
For those who don't speak french:
vente --> sale
jeu --> game
date --> date
temps --> time
devise --> currency
prix --> price -
RE: Twofer: Deleting the file will not affect the printing functionality, and it is you who implemented the resolution to perfection
@Monkios said:
À cause de la Chartre de la Langue Française, toutes mes réponses doivent se faire en français.
You should at least try to write it correctly! It is "charte", not "chartre", even if both words exist in french...
A french guy who knows that sometimes you can't do without a little of eng[lr]ish.
-
RE: HR and Vacation
@taylonr said:
The theme de jour (that's theme of the day ;) ) [...]
No, it's "Le thème du jour"!
Please stop using french when you don't speak it...
-
RE: Debian OpenSSL fiasco
@Daid said:
Now THAT hurts. I guess some admins are doing overtime right now. Lucky that I run windows! (actualy, I run slackware ;))
Nope! You may be affected too:
- you may have generated a key that belongs now to the weak keys pool;
- you may have imported a weak key generated elsewhere, on an affected system.
-
RE: Honorable WTF mention
@lmollea said:
To the IT managers at Societe Generale (I'm not french so I don't know where and which accents should be placed).
FYI, it is « Société Générale »
-
RE: 0 = -3,1E-15?
@Lingerance said:
TRWTF is French style co-ordinates (2,3,6), is that x 2,3 and y 6, x 2 and y 3,6 or x 2, y 3 and z 6?
TRWTF is that you don't know french style co-ordinates and still rant about it!
x = 2,3 and y = 6 ==> (2,3;6)
x = 2 and y = 3,6 ==> (2;3,6)
x = 2, y = 3 and z = 6 ==> (2;3;6)
-
RE: Cubits per fortnight
Not difficult to compute! No need to use a calculator to see that the second is 3x faster...
Then ask yourself the average length of a label, and compute how much time it will take to print it.
But it's true that one should be consistent with the units they use, and that metric should be used instead of imperial ;-)
-
RE: German Amazon WTF
@CapitalT said:
So, they use a different rating than ESRB?
OK, nevermind.Most european countries use PEGI (Pan European Game Information). See http://www.pegi.info for the classifications and some explanations of the different categories.
-
RE: The Ove Glove commercial...
@tenchu said:
@vt_mruhlin said:
If you're installing new efficient florescent bulbs
...and then proceed to burn your house down because you toss the hot bulb in the garbage. But at least you saved that 20 minutes it would take to cool down the bulb (and you helped the environment!).
One should not simply throw used bulbs in the garbage! At least, dealers in France must collect them to be handled specificaly.
-
RE: Omitted from these rack-mounting instructions..
See the novel (in french) La Disparition (300 pages without any E). It has been translated in english as A Void.
-
RE: Available... where exactly?
You missed the "online only" tag above the price... ;-)
-
RE: Departing to... End program
@Evo said:
Well, at least the window is slightly transparent... But the real WTF is still that they use Windows.
No, the window is not transparent, the screen is burned. But I still agree with you concerning the real WTF!
To the OP, do not simply specify smaller dimensions for the image, do a real, smaller image. The file is almost 2MB!
-
RE: On error resume... not
@salandur said:
@PSWorx said:
Well, he probably decided to bring "data hiding" to a new level: He not just hides fields and helper functions, he really makes sure his internal call stack is hidden, too.
Brillnt!
He isn't actualy throwing away the original stack: he is just throwing the exception. If the original programmer rely wants to dispose the original stacktrace, he must do the folowing:
throw new RuntimeException(e.getMessage);
Most import: the transaction isn't rolledback!
That way you also loose the type of the exception (which may be a subclass of RuntimeException).
To reset the stack, see the fillInStackTrace() method, but please don't use it unless you really know what you're doing! It makes debugging much harder.
-
RE: Excel Doc Title
@flukus said:
What do people pay out gimp (i know I do) but not excel for essentially the same "feature"?
The GIMP was made to be used in a true window manager, and MS Windows(tm) isn't one!
-
RE: Emulating meta-refresh ... in Javascript!
@Cap'n Steve said:
Yes, but it's in a lot of HTML books and tutorials so it lives on. There's also a version using CDATA that I believe is added by HTMLtidy.A CDATA section lets you use < and & directly. Otherwise, you should use < and & instead.
And in case you commented out the content of the <script> tags, you may also use -- directly (the end of comment is -- and not --> !)
-
RE: Computers need AC? Who would have thought.
Well, the admins are at fault here too: the A/C units stopping, the temperature rising and the servers failing should have triggered alarms that would page the admin team! A confident admin is a bad admin.
-
RE: Damn that's a big camera
WTF #2: using a JPEG image for a screencap...
sigh
-
RE: LOC per Dollar
@viraptor said:
@sp160n said:
sub closest {
my $target = shift;
my @list = @_;
@{[sort({abs($a - $target) <=> abs($b - $target)} @list)]}[0];
}Write once, read never?
Unreadable without comments. I can understand the original code, but got no idea what your code does... (I'll just believe it's the same) Are you sure, you want all your code to look like that?You can probably write every program in one line - but what's the point of that?
I learned perl a long time ago and have not used it much, and it seems quite easy to understand... He simply sorts the array using a custom sort order based on the distance to the target. The result is then the first element.
I'm not sure I would have done it that way. I think that sorting the array is useless. Why use a n.log(n) algorithm when you only need a sequential read throught the array?
My way of writing it (untested pseudo code) :
my candidateResult = array[0] my candidateDistance = abs(target - candidateResult) for element in array loop if (abs($target - $element) < $candidateDistance) then candidateDistance = abs($target - $element) candidateResult = $element end if end loop return candidateResult
-
RE: Javascript Date wtf
@tchize said:
But as it's a static final int, would the value of JANUARY change in future you will have to recompile your code (static final fields are considered constants by compiler and value is used directly in bytecode to prevent a pointless class reference :)
You're right :-/
But you should always do some regression testing when a new version arrives, right? These tests usualy include a full rebuild.
By the way, at work I only deliver source code to the clients, and my personnal projects are all compiled to binary code using gcj.
-
RE: Javascript Date wtf
@rjnewton said:
I would come down squarely in the middle here. The format of the function call itself is pretty WTF-y: why have three arguments when it is only the year you are changing? Nevertheless, I don't see why it should be that difficult for anyone who has any business programming to recgnize the potential for off-by-one errors and adjust for array indexes. It's not that damned hard--really.
Well, I have never used 0 for january in java...
I use the constant Calendar.JANUARY instead! Its value may change in the future, my code will not be impacted.
-
RE: Got Root?
@Nandurius said:
Well, give the boot loader the kernel option "init=/bin/bash" and hit enter. You do realize thouth that you can change the password again without knowing it, yes? 'sudo passwd' or even 'sudo vim /etc/shadow'
Sure, but your bootloader is password protected against any non default kernel line, right? Or you might as well use an empty root password...
And I know that any password may be changed without knowing it, but what if you get that dreaded "Enter root password or hit Ctrl+D to continue"?
-
RE: Got Root?
@cparker said:
Ditto for Debian etch.
To enforce this line of thinking on all of the boxes I administer, one of the first things I do once I confirm that sudo is working properly is the following, if it hasn't already been done:
- Log in as myself.
- su to root
- Set root's password to a random 64-character string.
- exit
Then I move on with things. If I ever absolutely need a root console (which should rarely--if ever--happen),
sudo su -
works quite well.What will you do next time you need to log in your system in single user mode? You'll need the root password then. For the machines I do not own but administer, I write down the root password and store it in the company safe.
And if you need a shell, simply type "sudo -s".
-
RE: Got Root?
rwsr-xr-x here on a Debian sarge.
By the way, one should not use su but sudo, as sudoers use their own password instead of having to share the One Root Password. The admin may restrict as well the commands a sudoer may run as another user.
-
RE: It need root!
Why on earth do you need a GUI for a server application ? My servers do not event have a X-server, hence the startx command is absent...
-
RE: TDWTF Job Boad - another WTF!
@db2 said:
As someone who writes aspx pages (among other things) for a living, and tests them primarily in Firefox, I'd love to hear the presumed reason for the two being incompatible.
Well, this may not be caused by aspx itself, but this very same page has 274 warnings according to my "HTML Validator" extension... If your generated code is not clean, there is no wonder it displays incorrectly in some browsers.
-
RE: MOOcode WTF
Look at items #5 and #19, both in the player:tell commands and in the elsif frenzy block...
-
RE: How not to parse your command line arguments...
[quote user="asuffield"]
With gperf, or something like it. This is not a WTF. This is software-generated code. It's the easiest way to automatically generate an efficient string matcher from a table. It was more common years ago, when computers were slow enough to care... nowadays you don't see it so much, except in legacy code, because nobody worries about the performance of their string lookup tables any more.
I'm not really sure why somebody bothered to implement one for Java.
[/quote]
Command line parsing is a one time task in the life of an application. I don't really think you would get a real gain by adding lookup tables.
On the other side, if you have to compare strings many times and you are concerned by performance, you should take a look at
java.text.CollationKey. -
RE: When is an object not an object?...
[quote user="Anonononymous"]The API seems to care about the data type of a null attribute. How would you specify the null attribute's type if you called newAttributeValue(null)?[/quote]
Simply by writing newAttributeValue((Type) null) where Type is the type of the object you are inserting. That way, the corresponding method is called with a null parameter value.