Posts made by bugmenot1
-
RE: A new WTF: Tsunamie @ Google Trends
[quote user="bugmenot"]
And anyone can change the password too.
Like I'm doing right now.
[/quote]
-
RE: A new WTF: Tsunamie @ Google Trends
Bugmenot really doens't work well for forums because now anyone can log in with the same name.
Like I'm doing right now.
And anyone can change the password too.
So you'll have to get your own account :-) -
RE: A new WTF: Tsunamie @ Google Trends
[quote user="iwpg"]
Only Alex and his minions can post new threads in the main feed. This would be better off in the Side Bar.
[/quote]
Didnt know. Sry.[quote user="iwpg"]
Nice to meet you, No. Is your surname Quack by any chance? :-P
[/quote]
Nice to meet you. I think my surname is not Quack :D.
But the login / signup page asked for my name, so I used this bugmenot account. Anonymous posting is disabled on so many forums... yes I know there are spammers. I'm a webmaster myself.
-
A new WTF: Tsunamie @ Google Trends
Hi all,
for some reason i cant post in the Daily WTF area (mods, be so nice and move this please...), but I think this is pretty funny:
What does Google say about Tsunamies? Selfexplanating.
http://www.google.de/trends?q=tsunami
Nice site btw.I'll see you :)
PS: My name? No. -
RE: Load bearing stack-overflow
The OpenGL matrix stack is distinct from the stack used for holding variables. Anybody posting about uninitialized variables needs to re-read the first post.
-
RE: Load bearing stack-overflow
If you're overflowing the matrix stack, chances are you're not using it properly. What are you doing with it?
-
RE: Why I HATE Frameworks!
This is a symptom of Java, not of frameworks. And Java is stuffed full of enough WTFs to fill this site for months.
-
RE: MANUAL_INCREMENT: a parable
raluth is correct, because i starts at a weird value
-
RE: Redesigning Paste
The paste behaviour is totally customizable. You can't have looked very hard for the option to turn it off (Options > Text Editor > (Lang) > Formatting).
The paste behaviour make perfect sense to me. Once I set the formatting options to my preferences, the paste command acts as a pretty-printer, saving me loads of trouble when pasting other people's code or code at a different level of indentation.
The double-undo is consistent with Microsoft's Office apps that do any type of auto-formatting. Even if you've never used Word or Excel, it's a pretty intuitive way of giving the developer control in those cases where the auto-formatting is inappropriate for the pasted content.
Of course, if one can't wrap one's head around it, I can see how it would make sense to write a short essay complaining about it rather than looking through the options for a way to disable it. -
RE: Your never to old
[quote user="mlathe"]
I always had trouble with "its vs it's".
But i recently came up with a rule that i can remember.
Its -- should be used like "his", ie you don't say: "what is hi's name?" you say "what is his name?"
It's -- this is the other one. or in other words it's is used when you can break it apart into "it is".
I guess it seems obvious in retrospect. The key is just to remember one, and the other just falls into place.[/quote]
I had problems with its vs. it's as well, before being subjected to Bob the Angry Flower: -
College WTF
One of my classes, while fun and informative, comes with a side dish of WTF. The professor is a strong believer in all things Enterprise: Oracle, C#, and Java are the only things real programmers use. As part of the course, we are to create a simple database-backed application. When that was first announced to the class, I thought
OK, I'll make something web-based in Python
(since that was what I'm doing for my real job). Things went by pretty well, until a few weeks into the course, after I'd already started on the Python implementation. The professor decided that all applications are to be done in C#, using Windows.Forms. I don't actually run Windows at home, so that was a bit of a problem. Luckily, I could code the main parts of the project in Mono, and convert it to a Visual Studio project at some later point. Fast forward to last week, when most of the students are apparently falling behind schedule. The professor, as a courtesy, gave us the source code to one of his own utility programs to base our projects on. Since this is on the Daily WTF, you know what's going to happen next:
His utility is broken into two parts - the user interface and back end. The interface is as you see above, and features among other things a 700 line method. Callbacks for the various buttons and fields contain large amounts of code, much of which sends raw (unescaped) SQL directly to ADO.NET. Some of the code appears to be auto-generated by Visual Studio, but it looks like other parts have been hand-edited. I really hope the GUI was one of the auto-generated parts.
The back end consists of static data, which accumulate state between calls to perform actions, and static methods which accept Windows.Forms objects as arguments and fill them with data. There are also a few static data in another file named "global constants", all of which is global, none of which is constant. These are manipulated by the GUI in between calls to the back end. Error handling consists of printing an exception's stack trace to the console and continuing on with whatever. The only comments to be seen are lines of code commented out but still kept around.
The best part?It doesn't work. Every time I try to run it, it crashes on start-up. And my only hope to get a passing grade in this class is to repair it by the end of the quarter.
-
RE: Everyone Loves eBay
Everybody has the means to create a screenshot. Just host it on photobucket or imageshack.
-
RE: Sometimes it's the little things
The real wtf is the weird XML-based commenting system.
-
RE: On the proper use of XML
Perhaps the project manager should actually learn how to use Python before he tries to program in it.
-
RE: SedgeCo, a fictional WTF company.
While I am willing to read such a long, no doubt boring story if it's real, if it never even happened, why are you posting it here?
-
RE: Semaphores + error checking == uh oh.
The real WTF is people replying suggesting C++ solutions, when this is pretty obviously C code. I'd guess something to do with Video4Linux.
-
RE: What do you mean "destructed"?
[quote user="UnFleshed One"]Yeah, I hit this once myself too :). Code seems to work on windows, and then instant segfault on linux.[/quote]
Interestingly, when I did this, it was exactly the other way around. Worked fine in Linux and OS X, but spewed garbage when I ran it in Windows. That was what eventually drove me to using memory analysis software as part of automated testing.
-
RE: What do you mean "destructed"?
[quote user="stewie"]Will that code even compile on decent C++ compilers? They would prevent (or at least give a warning) when a const char* (returned from c_str()) is trying to be coerced to a char* without a const_cast<>.
[/quote]Yeah, return value should be const char*, my bad.
-
RE: What do you mean "destructed"?
[quote user="Benanov"]
I'm not exactly sure what this means. I suppose that's the joke, but I'm quite unfamiliar with this syntax.
[/quote]
In C++, there are two ways to represent a string - std::string, which has fancy overloaded concatenation operators and memory mangement, and char*, which is basically a raw pointer. std::string has a method, c_str(), which returns an internal should-not-be-modified char* for interoperation with old APIs. The basic outline of what will happen is this:
Filename and error are concatenated to a new string, Foo
The address of Foo's data is stored in a char* Bar
Foo is automatically destructed at the end of the method. Bar now points to garbage
Bar is returned
It turns out that on some platforms, Bar continues to point to valid string data, but on others it just gets random data.
-
What do you mean "destructed"?
This one's short and sweet:
class FileException : public std::exception {
...
std::string filename;
std::string error;
}
char* FileException::what() const throw () {return (filename + error).c_str();
}
-
RE: Pervasive Recursive Frames
How can they even dare put the xhtml doctype on this.. this... THING?!?
-
RE: Pervasive Recursive Frames
I don't know if it's the same product, but there's an internal webapp where I work with markup that looks much like that. Is the hidden name "Ziteman A/S"?
-
RE: Would you want to approach this man?
Afro? Check
Suit? Check
I guess the train's closed~desu
-
RE: Nightmare client
I think I just got a headache reading that.
Anyway.. don't forget to tell your clients they could use some kind of rootkit/DRM thingy to protect their work.
-
RE: Paula Clone?
WTF? He's blaming Firefox, not IE:
The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple object.name returns undefined. In my case, it was a DIV in Firefox 1.5 that was behaving this way.
-
RE: Microsoft Word Automation boolean
There is a valid reason for this. If the propery is accessed in relation to a collection of paragraphs, some of which have 'Keep with next' turn on and some that don't, the result is undefined.
-
RE: Microsoft Word Automation boolean
The real WTF is their "C++" example, which is nothing of the sort.
-
RE: YouTube WTF
Don't forget 4chan - their largest board, /b/, gets so many posts that they have to delete them every couple hours to avoid over-loading the server. The entire site has no forced registration, and /b/ itself doesn't have names or tripcodes at all.
-
RE: YouTube WTF
BugMeNot - Bypass compulsory Registration
Very useful for sites like YouTube (or TDWTF) that require logins for no reason.
-
Set @employeenumb:=WTF;
CREATE PROCEDURE `database`.`table`()
DETERMINISTIC
BEGIN
# SET @rptdate:='2001-01-01';
# SELECT DATE_FORMAT((@rptdate:=CURDATE() -1),'%Y-%m-%d');
SELECT @rptdate:=DATE_SUB(CURDATE(), INTERVAL 1 DAY);
set @employeenumb:=1;
Call DoAnalysis ();
set @employeenumb:=2;
Call DoAnalysis ();
set @employeenumb:=3;
Call DoAnalysis ();
set @employeenumb:=4;
Call DoAnalysis ();
...
set @employeenumb:=50;
Call DoAnalysis ();
# ED: huge space after the lines!
...
END -
RE: Microsoft WTF
GDB runs on Windows 95 and up, Linux, most UNIX-es, and various obscure platforms. Why can't Microsoft manage to get their debugger to work on more than one version of their own?
-
Manager/Database WTF
I'm working with a database at the moment which has been designed by somebody who never heard of the term 'normalization'. Things like names and addresses are duplicated through many different tables. My manager says that we may soon have to integrate another database into our system, which would probably also be in the same sorry state.
As an aside, my manager often writes some queries himself. These are often pretty good, but he's not very clear on relational theory.This conversation followed:
Me: If we do that, it would be a good idea to create an intermediate database format. We could transform the existing databases to this properly normalized form, so we don't have to maintain two of each of our queries.
Manager: So, if we did that, the new database would be layed out better and be easier to query?
Me: Yes
Manager: So, we can get rid of all those 'join' statements?
-
RE: Pointing to the void
The real WTF is your reply. Why would this be a memory leak? It's up to whatever called this function to de-allocate the result.
And why wouldn't it be a good idea to return a new instance? Why would you want to copy a void pointer to another void pointer before returning it? WTF??
-
School WTF
I've been learning so many new things in my Database class this semester! For example, did you know that MySQL is not suitable for the enterprise because it doesn't run on Windows? We've been told to use Access instead, since it is only a few hundred dollars. Of course, once the database grows beyond "a few thousand rows", it would be time to start looking into an Oracle solution.
Also, the reason Macs do not have as large a market share as Windows is because they do not come with compilers for good languages, like Pascal. Lastly, it's always good to create a project during the course, which will be turned in at the end. This should of course be coded in C#, because Visual Basic isn't a serious enough language.
-
Selfmade friend-classes...
while inspecting a piece of code, i discovered the following solution for using friendclasses - the advantage: it's the decision of the friend to be a friend or not:
<font color="#000000" face="Courier New">class MyClass {</font><font color="#000000">
</font><font color="#000000" face="Courier New"> ...</font><font color="#000000">
</font><font color="#000000" face="Courier New">#ifndef CLASS_FRIEND</font><font color="#000000">
</font><font color="#000000" face="Courier New"> protected:</font><font color="#000000">
</font><font color="#000000" face="Courier New">#else</font><font color="#000000">
</font><font color="#000000" face="Courier New"> public:</font><font color="#000000">
</font><font color="#000000" face="Courier New">#endif
...
</font><font color="#000000" face="Courier New">};</font> -
RE: Using functions is great
@Zizzencs said:
<font style="font-family: Courier New;" size="2">...a precious employee...</font>
Obviously too valuable to keep...
-
RE: How do you pronounce faq
@mrprogguy said:
@passblayer said:
I believe it's supposed to be pronounced like the peanut butter name...
Well, I call shenanigans on that, because it's
Graphics Interchange Format
not
Giraffics Interchange Format. The 'G' needs to be hard, because the word it represents starts with a hard 'G' sound.
Umm - most linguists I know would consider the gee in 'graphics' to be the soft one and the gee in 'gyraffe' to bet the hard one.
Frankly, I think pronouncing acronyms as words is just jargon, meant to isolate those who are not members of the guild.
Furthermore there is an overwhelming WTF here - the amount of time wasted discussing the pronounciation of non-words.
BTW - how DO you pronounce 'WTF'?
-
RE: How to share object functionality
Static methods that instanciate new objects are called Factory Methods, and are in fact a know pattern. Also, I don't think you should call those methods getters; A "Getter" should be to control access to a variable, on a non static object (well that's how I see that).
-
RE: Vim vs. IDE (flame on)
@ammoQ said:
I've been using VI(M) for many years, but half a year ago, I switched
to Slickedit. It's in USD 300k price range, pretty much for an editor
(in fact, it's more like an IDE) but for me, it's worth the money.
At that price I hope it writes complete systems using autocompletion of single words...
-
RE: Vim vs. IDE (flame on)
@Stan Rogers said:
@dhromed said:
Also, the capslock key should be way on the other side of the keyboard...
cAN'T wE jUST gET rID oF tHE cAPSLOCK kEY oNCE aND fOR aLL?
yeS: http://anticapslock.com/
The capslock key should be way on the other side of the commode lid. Mine is...
-
RE: Really true
@Zizzencs said:
Yesterday I had to push a button. Sounds easy, right? Well, it isn't if you have to do it from PHP on a website with heavy two phase authenctication. In this case the source code of the button and the surroundings always help, don't they? Let's look at this little example:
if (true) {
// lots of code
} else {
// another lots of code
}
Isn't it just wonderful to debug a 20k PHP file like that?
I should think it would be pretty easy since you only ever need to look at half the code...
-
Perl question.
<font size="3">Since everyone on here seems to think that they're the best programmers in the world I'd like to see what people come up for with this problem. </font>
<font class="fixed_width" face="Courier, Monospaced" size="3">A while ago while I was in the Army I co-wrote an exercise SIGINT </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> generator with a friend. We made a mess of a few functions called </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> VaryLat and VaryLong. The functions basically took in two arguments: a </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> Latitude or Longitude and an amount to vary it by(in seconds). The </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> second parameter could be any number positive or negative. The real </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> issues started rising when we figured out that crossing over either the </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> 90' mark or the 180' mark was throwing off our numbers. The functions </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> turned out to be very long seeing as how neither of us was very </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> experience with Perl at the time. I wish I had the code to post to show </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> how messy this thing was but seeing as how it was on a Top Secret//SCI </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> machine security protocols made if impossible to bring a copy of this </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> source home at the time. Basically I was wondering if anyone else has </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> had this particular problem and came up with a good solution. It's been </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> bugging me ever since I wrote the stupid code. The function prototype </font>
<font class="fixed_width" face="Courier, Monospaced" size="3"> was something like this: VaryLat($theLatitude,$varyAmount).</font>
<font class="fixed_width" face="Courier, Monospaced" size="3">So if you had VaryLat(101010N,30) it would return 101040N. </font>
-
Resume wtf
heres one of the options on raytheons site for uploading a resume.
Upload an existing resume.
If you already have a resume in one of
the supported formats (specified on the next screen), choose this
option to upload it into our system. -
RE: Ask a silly question?
Okay, this is pretty simple. Remember the Star Trek episode with Harry Mudd, not "Mudd's Women," but the other one, with all the androids? Remember how they shut all the androids down by being completely illogical? (Classic.) Well, that's what's happening here. A bunch of morons who can't get real jobs while the fully qualified people are in the way are trying to explode our brains by using non-sensical language. Once we're out of the way, they take our jobs. Don't try to figure them out, just ignore them, perhaps they'll go away.