@DOA said:
Here's a small wtf to pass the time. Stumbled on it while going through some of my old code.
$position = strripos($text,".");
FTFY
No need to lie, we won't judge you here.
@DOA said:
Here's a small wtf to pass the time. Stumbled on it while going through some of my old code.
$position = strripos($text,".");
FTFY
No need to lie, we won't judge you here.
@derula said:
Refactored that for you. Even left the height:"20"
in there, you know, so it doesn't magically break anything.
Great, thanks. I'll post some other work code wtf's on here later, when can you have them done by? for your assument.
Well, I have to say that I like your solution for alternating colors better than the one I saw here at my work:
.WhiteRow
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
COLOR: #000;
height:"20";
background-color: #F9F9ED
}
.WhiteRow A:link
{ COLOR: #00F; }
.WhiteRow A:visited
{ COLOR: #00F; }
.WhiteRow A:hover
{ COLOR: #F00; }
.WhiteRow A:active
{ COLOR: #930; }
.WhiteRowSmallText
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 11px;
FONT-WEIGHT:normal;
COLOR: #000;
background-color: #F9F9ED }
.WhiteRowSmallText A:link
{ COLOR: #00F; }
.WhiteRowSmallText A:visited
{ COLOR: #00F; }
.WhiteRowSmallText A:hover
{ COLOR: #F00; }
.WhiteRowSmallText A:active
{ COLOR: #930; }
.WhiteRowRed
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
COLOR: #F00;
background-color: #F9F9ED }
.WhiteRowGreen
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
COLOR: #080;
background-color: #F9F9ED }
.GrayRow
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
height:"20";
COLOR: #000;
background-color: #E0E0E0 }
.GrayRow A:link
{ COLOR: #00F; }
.GrayRow A:visited
{ COLOR: #00F; }
.GrayRow A:hover
{ COLOR: #F00; }
.GrayRow A:active
{ COLOR: #930; }
.GrayRowSmallText
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 11px;
FONT-WEIGHT:normal;
COLOR: #000;
background-color: #E0E0E0 }
.GrayRowSmallText A:link
{ COLOR: #00F; }
.GrayRowSmallText A:visited
{ COLOR: #00F; }
.GrayRowSmallText A:hover
{ COLOR: #F00; }
.GrayRowSmallText A:active
{ COLOR: #930; }
.GrayRowRed
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
COLOR: #F00;
background-color: #E0E0E0 }
.GrayRowGreen
{ FONT-FAMILY: verdana, arial, sans-serif;
FONT-SIZE: 12px;
FONT-WEIGHT:normal;
COLOR: #080;
background-color: #E0E0E0 }
@Carnildo said:
@TGV said:1753 is the first full year after Britain (and by extension, the American colonies) adopted the Gregorian calendar. Because of this, it's the first year that can be represented as a DateTime in SQL Server.Would that be 256 years ago?
Good story, and yes I actually read the whole thing.
I wouldn't really blame the guys at Eidos. Once a game has been released and sold they really only support it for the first year or so until they make their initial sales. After that they really don't give a crap. Your paying $40 and expecting a tech making $50/hour to actual come up with a fix and push it out just doesn't make sense economically. I agree though that Valve should stop selling it in this case (which it looks like they did), but it's hard to blame Eidos for that.
@galgorah said:
2) The friggin person who has no sense of hygene or cleaning up after themselves.
Oh, you mean co-workers from India...
I don't say that to be a racist dick, but every single one that I have had to work with seems to think that taking a bath, and deoderant for that matter, are a luxory that they just can't afford. I don't care if it's 'custom' in their country to not shower or whatever the reason is, but here: we really don't want to smell you.
I have this one Indian guy on my team that I can actually smell him coming. It's fucking disgusting.
I know I know, this doesn't only apply to IT guys from India, there are plenty of disgusting Americans as well. It has been my experience though that the percentage of funtastic folks from India is far greater than that of any others.
@pitchingchris said:
That's helarious! I never noticed that the black guy was using a Mac Notebook! They probably photoshopped him out for this reason, certainly not because he was black...
@Weng said:
Some of the permanents there have actually set up a pan-and-zoom surveilance camera with HTTP control.
Share the link or it didn't happen!
@robbak said:
TRWTF is that I could do a better photoshop than that!
(To start with, I'd use a donor image of someone who is looking in the same direction!)
That and at LEAST change the color of his hand. I mean ffs, IT"S STILL BLACK!
@ogilmor said:
@ogilmor said:
hey was I talking to you?....!!!!! Grrrrrr.....I'm so insulted you don't like my picture....grrrrrrrrrrrrrrrrrr..........grrrrrrrrrrrrrrrrrrrrrrr....anger anger..........steam.....steam....
@amischiefr said:
I hope that you are. Pissing off people like you is what makes my day.Oh goodie, then I made you waste your time and proved that you don't have a life. 2 birds, one stone
Waste my time? Oh lord no, I get paid to do this :) No life? Not really, between work, school, coaching my sons baseball team, going to my other sons soccer practice, exercising, playing guitar and talking shit to dumfucks like you I have no time to have a life.
@ogilmor said:
@ogilmor said:
YOU use avatars@amischiefr said:
Actually, I'm not using anything. I left mine as the default because I don't really give a shit.
you were stupid enough to take the bait sucker!
Who are you, Dr Evil? "You fell into my trap MUUAAAHHAHAHHAHAHAHA!" Seriously? Do you dress up on the weekend and play D&D too? I bet you're the wizard.
@ogilmor said:
@ogilmor said:pssst. the chinese characters in your sig do not make you look any cooler. just a hint.at least Morbius is clever once a week or so.
@amischiefr said:Thanks for the hint! I'll translate it into
Chinese for you so that you can read it and enjoy the subtle humor.I order you to do that. so do it NOW, boy!
I'm busy not having a life right now, I'll get back to you on this one.
@derula said:
@amischiefr said:@stratos said:@ogilmor said:That and the fact that it isn't there to make me look cool, it's a joke, sort of.pssst. the chinese characters in your sig do not make you look any cooler. just a hint.Indeed it doesn't, since it isn't chinese it's japanese.Maybe you should put something less braggy there then. Like アジアの名人.
You have to take a symbol out though and make it: アジア名人
@ogilmor said:
hey was I talking to you?....!!!!! Grrrrrr.....I'm so insulted you don't like my picture....grrrrrrrrrrrrrrrrrr..........grrrrrrrrrrrrrrrrrrrrrrr....anger anger..........steam.....steam....
I hope that you are. Pissing off people like you is what makes my day.
@ogilmor said:
YOU use avatars <Dork>
Actually, I'm not using anything. I left mine as the default because I don't really give a shit.
@ogilmor said:
... I get it now. friggin priceless.....
I really don't think that you do.
@ogilmor said:
pssst. the chinese characters in your sig do not make you look any cooler. just a hint.
at least Morbius is clever once a week or so.
Thanks for the hint! I'll translate it into Chinese for you so that you can read it and enjoy the subtle humor.
Wow, that guy is incredible! He has found a way to combine error checking, exception handling AND unit testing all in one! You should be so blessed to be gazing upon his code.
@stratos said:
@ogilmor said:
pssst. the chinese characters in your sig do not make you look any cooler. just a hint.Indeed it doesn't, since it isn't chinese it's japanese.
That and the fact that it isn't there to make me look cool, it's a joke, sort of.
@snoofle said:
I explain the concept of Java templates. Oh, I'm only working on Java 1.5. Guess what (moron), 1.5 supports templates.
No, it has Generics. Similar, but not quite the same.
@snoofle said:
It turns out that this guy only knows how to write straight-line procedural C-like Java code; no concept of Collections, Lists or Maps; just arrays. No polymorphism or virtual functions. No subclassing. No interfaces. His system is just a handlful of 5000 line classes that do everything with a bunch of public static variables tying everything together.
This seems to be a popular thing among dumbasses out there that don't understand Java, or at least OO. My first job out of college was to maintain a Java app written by a guy they all thought was great. The first thing that I noticed about his code was a 4000+ line file called ConstantsAndGlobals.java!!! FFS, having such a file is bad enough, but 4,000 lines of them?
@ogilmor said:
so why u have pic of a hot chick on your profile if u don't want dicks in ur mouth. that's more retarded and gay than people who have "avatars."
So is your picture an actual picture of you? If so I can see why you're so angry.
@Ren said:
Ohh, it's a slut joke. I thought it had something to do with chmod 775.
It does: full access to the owner, full access to the group and everybody can access and execute. Sounds like a slut to me.
@bstorer said:
Currently it oversees the burgeoning life on Gliese 581 d, hoping to guide their evolution in order to create a lifeform worthy of using it.
Is that internet leet speak for Washington DC? Damn kids and their interweb talk.
@belgariontheking said:
Who hasn'tseenbought a fake gucci or chanel handbag?
Not I. Not being a fag, and not really caring what fucking bag the slut I'm with carries, I have no need for these.
Do you find yourself buying a bunch of gucci bags?
@too_many_usernames said:
In fact, freedom from patents will probably encourage more innovation, because people won't be afraid to try new things - as it is now, people are afraid to develop things...
Maybe it's your wording, but this makes no sense to me. Are you are saying that people don't develop NEW things currently (which aren't patented) because they are afraid of current patents? If the idea is new then there should be no rational fear of it already being patented.
Besides the name being really long, I don't see much of a WTF.
@derula said:
@mallard said:We seem to disagree there, so since this is no life-or-death matter, I think I'm going to stop trying to convince you. I do not mean this disrespectfully, you are fully entitled to your opinion.Wow. This must be the most mature version of "OIC UR A TROLL" I've ever seen.
I know, and I'm so proud of Morbs, I haven't seen him cuss once in this thread!! He's all grown up now </tear>
@Chame1eon said:
@tgape said:
I would think one would expect this sort of thing at a local community college. Most of the competent academics prefer to work at larger institutions, such that they can reach more students. As such, community colleges tend to have more of those who can't teaching than universities.
Actually I'm going to a community college right now and the Instructors seem to be
1 working full time and teaching on the side becuase they want to keep up with new things in their feild and/or like students
2 people who just finished thier master's degree
3 Instructors from the nearby university.
So, speaking in broad terms, either they are exactly the same people, or they have a unique mix of enthusiasm and/or real world experiencethat can be missing in a university. Maybe I'm just lucky, but that has been my experiance.
I hate that whole arguement of: "they didn't give me any real world experience, they suck." If they were teaching you real world experience it would be a trade school, not a college.
@dhromed said:
The Pragmatic Programmer
Yeah but then Andrew Hunt and David Thomas would be sueing Alex.
You misspelled the codez one, it should be: Plz Send Us Teh Codez!?!11!
@PJH said:
Hey, Alex from TDWTF here...
...Alex
Personally I like this one:
Am I allowed to use “Programming Practice” or, would that infringe upon this guy’s non-existent trademark and create “confusion in the marketplace of ideas” [sic]?
And just to be sure… I am still allowed to write programming exercise articles, right? Or would that infringe on a make-believe patent?
*EDIT: Damnit Alex, stop cross-posting!!!
@bjolling said:
So you never have your girlfriend jacking you off because you're much better at doing it yourself?
Why would he want her to do something he can take care of himself? Girlfriends are there to do something we can't: put it in their mouths. Now, maybe he's that flexible, maybe he's not...
@Weng said:
It looks just like any other line of Perl on the planet.
Perl: For the 1337 programmer that likes writing entire programs in one line.
@derula said:
Wow... now THIS is some serious necromancingshitskill... This thread has already died twice and is more than four and a half years old!
It's the every-odd-year thread. You'll see it again in 2011.
@Helix said:
Here is a link for kicks:
o.O
Is that supposed to be some kind of inside joke or an advertisement for your site? Maybe I'm just stupid.
@Mole said:
You actually display that 3 line number on the website for users to try and parse? Or do you just pass that to a script which prettify's it up a bit first?
Trying to register for class must be a bitch! Hell, just imagine the course cataloge, 1,000 pages of class listings.
@belgariontheking said:
@Weng said:
There are also several passenger airlines that do the same thing in relatively frequent service (once or twice a week) - but they'll typically do it without passengers to prevent the inevitable outcry of environmentalists.Wait, what? Why would having no passengers quell the uproar from the environmentalists? It seems to me that it's wasted resources and should increase the uproar.
It's that whole "if a tree falls in the woods..." gag. If nobody rides on the plane, does it still hurt the environment?
@jetcitywoman said:
Sure, the feast/famine thing wouldn't be so bad if we didn't have the defense contractor procedures/policies that require us to bill every working minute to a project, NOT bill to overhead numbers, and NOT bill inaccurately. It's purely beaurocracy, but I read it as hypocracy when they preach that and then the managers refuse to give us overhead numbers for required training/meetings/fire drills, whatever. That's always burned my bottom too, especially a few years ago when they were making us read and sign the timecard policy every year to prove that we understood the penalty for falsifying timecards was termination. Let me see... you threaten to fire me if I charge time to the wrong number, and *claim* you'll fire my boss if he asks me to do that. But all of our managers do that on a daily basis and you turn a blind eye when we report it. Uh huh.
Yeah, I worked at one of those government type places before (a national lab actually). My boss would tell me "we're running out of funding for project X, so I want you to start charging your time to project Y". Even though I was working on project X she wanted me to charge my time to Y. Seems like fraud to me, but w/e. It's the way of the Government contractor. I know what you mean though, they really don't like charging time as non billable. You're right, it's a beaurocracy thing, and it's friggin stupid.
@PJH said:
@Aaron said:
Typical fudge factors round here involve estimating the time the original request will (reasonably) take, doubling the number, and increase the units (one hour -> 2 days, 3 days -> 6 weeks, 1 week -> 2 months.) So it's not that unbelievable.So you mean to tell us that you finished two months of scheduled work in 1 (very long) day, equivalent to maybe 2 or 3 normal days?
I've heard of fudge factors, but that's ridiculous.
We're that far down the 'chain of command' that it's usually accurate when you take into account changes of scope, interruptions etc.
I much prefer that than the "Welcome to our kickoff meeting, oh by the way: this project is critical and due next week!", kind of bullshit. As a developer, who cares if you padd too much?
Not to belittle your rant, but at least half of that seems about on par. Waiting for vendor specs/input, having projects on hold, busy times and slow times where you sit on here all day. That sounds like most places.
The promotion thing is pretty stupid though. It used to be that way in the ARMY as well, which there is a good thing. Now they promote everybody unless you have documentation illustrating why they should NOT be promoted. Pretty lame idea, but hey: what do I know?
By the way, why is it we only get rants like this from you once a month? It's like you're not upset, and normal, for 23-25 days and then BAM you're all upset for 3-5. Must be the phases of the moon or something...
@Master Chief said:
In winter, it drops to minus 40, and in summer, it can get as hot as 130 degrees.
Alright, I am dieing to know where in the world it goes from minus 40 to 130?
@bstorer said:
A lot of accused murderers in your family or something?
Quiet fool, you must say "falsly accused" when dealing with his family lest you find yourself sleeping with the 1's and 0's!!!
@GalacticCowboy said:
So following some swearing and laughter, we informed her that she can't just change a file extension to "CSV" if she wants a CSV file.
I can't? Next thing you're going to tell me is that I can't rename my .dll files .png and open them up as hidden photos from the MS christmas party.
@campkev said:
<font size="2">*cool explanation*</font>
Alright, thanks! I've never used this language so i wasn't sure what that particular class was doing. Thanks for clearing that up.
@bstorer said:
@amischiefr said:
The federal government is going hold you to that statement.It's hard to call something that makes that much money a failure.
Yeah but WoW isn't obligated to actually provide anything useful.
@mann_jess said:
@Vechni said:
And IMO this is why MMORPGs are just doomed to failure by a few years of productionI don't have a clue what you're saying here. Lots of MMORPGs have the "challenges" you mention, including WoW, which reels in -- what? -- 10 million players? I doubt they're "doomed to fail" any time soon, and certainly not for innovation or "new" features. If anything, they're doomed to stagnate from an inability to create meaningful content for the multitude of lifeless players who explore and exploit every facet of the game 24/7.
No kidding. Let's do some math:
10,000,000 users * $50 WoW + 10,000,000 users * $50 First Expansion + 10,000,000 users * $45 Second Expansion = $1.45 Billion Even if you say only 70% have the expansions it's still over $1Billion in initial sales.
10,000,000 users * ~$14 / month = 140,000,000 per month, or $1.68 Billion a year
It's hard to call something that makes that much money a failure.
@MiffTheFox said:
Clarification:
OP is getting an integer from the database, then using it as an index in the result of the same DB query.
Oh? Because to me it looked like he was getting an int, converting it toString() just to convert it back to an Int32.
@tOmcOlins said:
I'm not a WoW player, and I don't mean to get off topic, but what the hell is "Get You Tier 8 / S6 Righ Now"?
I'll bite... Tier 8 is the latest set of gear for the highest level. It takes a while to get, so buying it could save you 6 months of raiding. The S6 is the arena PvP armor you get. I played about 2 years ago.
@Nelle said:
@morbiuswilters said:Sadly, IIRC, Sun dropped support for self-signed certs in Java 6.i cant find anything on google... can anyone confirm this ? it would be a major pita ...
Mmmmmm.... pita
@Qwerty said:
Wow. I really think something has changed with our usual Morbs. New medication?
He has probably made it through the first phases of menopause and has now come to accept it.
I had a similar error this weekend trying to play the Aion beta. When I was logged into their site trying to set up my account it kept telling me there was an error with a field, but it didn't say which field. At least you know the problem is Global.TGlobal!!!
What was the problem with NCSoft? They have something in their site that didn't work in FF, or Chrome so I had to open the site in IE to get it to work...
@sabbott64 said:
I'll never understand headhunters. Too much like car salesmen to me, and I hate car salesmen.
They get say $50/hour for the position, so they lowball you for $25/hour and they pocket the other 25. This isn't really their fault, they are just trying to maximize their proffit. You would do the same thing.
My favorite is the "not to let the brush tips to the East and West." North and South are okay, but not those god damned East and West! They always fuck everything up.
@morbiuswilters said:
Yeah, but the point is that 10 years from now we'll look at somebody and say: "you only have 12GB of ram? You poor soul, how do you even run Winows2019!!"I think it was Linus Torvalds, but he was referring to the PDP-11.