I think this poses an interesting challenge: writing an algorithm that searches google for code snippets and constructs a program that compiles and works according to your specifications. Perhaps though an iterative process where the code just gets more and more insane each time the algorithm is run.
Posts made by Dudehole
-
RE: When you can't code, just add more counters
-
RE: CPU Badge'd
I miss the day when computer hobbyism was just for fat nerds and if you did something like that your entire motherboard would catch on fire and most likely stink up your house for months.
-
RE: Real Life WTF - Badly Engineered Sink.
You know that's pretty damn unsanitary looking. I wouldn't want my hands inadvertantly touching the bottom of something that's had peoples food and spit tossed into it all day.
-
RE: Deadlock victim
I assume you have experience with programming LINQ in an asychronous environment that you would like to share? And what's 64-bit support got to do with anything that isn't in an HPC/datacenter environment.
(P.S., you come off as an asshole)
-
RE: Deadlock victim
Man I hate that error. I seem to get it all the time using LINQ and asynchronous/multi-threaded programming.
-
RE: "Lord of the Web" 2.0
Oh, I really didn't mean to troll. I just thought the thread was so far gone there wouldn't be any harm in some meta commentary.
-
RE: "Lord of the Web" 2.0
I dunno about the rest of you but I always find it refreshing when I meet a woman that hates the world as much as I do. Like a good example would be that lady who thinks that the health care reform bill will enstate senior death panels, or even Ann Coulter. I mean I don't actually know if this person is a woman or not, I'm just sort of fantasizing a mousy woman in her mid-30's wearing a black evening dress and some kind of diamond necklace, maybe even sipping on champagne as she spews bile hate-filled things onto the Internet.
-
RE: Just saw this popup on Twitter
I miss the days when I was ignorant enough to think of databases as just being magical black boxes that stored all my data in an efficient and convenient to retrieve format.
-
RE: What the Update? and Crappy Anti Virus...
Well I'm not gonna bother defending Vista (personally I don't think any part of that product justified the 5+ year development cycle) but I will say that without Office Outlook my professional life would be some kind of nightmarish hellscape.
-
RE: What the Update? and Crappy Anti Virus...
Well in a year or so Microsoft is going to fix this mess once and for all and just release their own anti-virus software. OneCare sucked but the new one should be quite sufficient enough to make a lot of these bloated AV suites obsolete.
-
RE: Before the internet...
I recommend the book "How to win friends and influence people" by Dale Carnegie it will really help you with your social skills.
-
RE: Gotta love people who don't upgrade
You sure about that? I'd thought Microsoft would have wanted to bury 1.1 underground by now.
-
RE: Bad Java code
But this is java, so I'm assuming the programmer doesn't have to worry about stupid, confusing shit like copy constructors and operator overloading. So why does this argument apply here?
-
RE: The firefox fiasco
"Please give up some memory or I'll kill kick your face in" is approximately the signal the iPhone OS sends to apps when it needs to free up some memory. I think you'd need an implied threat (program suspension, termination) in order to have such a feature provide any value to the end user.
-
RE: The firefox fiasco
Has firefox ever been anything less than a steaming pile, though? I mean come on, XUL? Who the hell thought that was a good idea. All a freaking web browser needs to do is open web pages and display them accurately and have a decent bookmarks/history feature but leave it to the open source community to complicate the hell out of something so simple with "addons" and "themes".
-
RE: Strangest Hardware Swapout Ever.
Are there any things I could be pissing on right now to obtain free warranty replacements? This thread presents a real money saving opportunity.
-
RE: GM likely to file bankruptcy?
New take on the old proverb? "Give a man a car, he'll drive until he runs out of gas. Teach a man to buy a car, and he can use Federal bailout money for a lifetime."
-
RE: C++ operator==(char, std::string)
Doesn't really seem necessary to use operator overloading here as the implementation seems pretty trivial (and specialized to a specific domain? Why do you need to compare against the first character of a string and nothing else?).
P.S. I fucking hate C++ and everything it stands for. Not to criticize your use of it specifically, though.
-
RE: E-Pimpin'
If I were in your position I'd be ASHAMED of myself.
(Just kidding of course, I lost my sense of shame a loong time ago.)
-
GM likely to file bankruptcy?
http://gm-volt.com/2009/05/28/gm-reportedly-planning-to-file-for-bankruptcy-on-june-1/
So where's my personalized thank-you note from the Federal government for the tax money money they extorted from me at gunpoint and then illegally gave to the UAW's lobbying group. Not even a reach-around?
-
RE: You know, we do have wheels now...
That sure is some horrible Java syntax. But I don't see any wierd side effects so you should just be able to refactor it out... right?
-
RE: Outlook problems
So is the problem the fileserver is also the exchange server, or does exchange have some fileserver functionality I am not aware of (not wanting to discount this as exchange is basically the anti-christ in mail server form). Wouldn't there be a pretty good business justification at this point to just get rid of the file share on that machine without even waiting for a replacement to become available? Even non-technical people can just create file shares on their own machines with some documentation.
-
RE: Plain rocks
That's why I only drive hatch backs -- easier to cram fat people in the back when I need ballast. Actually I have another question: is sand cheaper per lb than river rock? This thread is really making me think about this whole scenario.
-
RE: StackOverflow ad
Not really seeing how this would be beneficial over T-SQL since LINQ is basically middleware over a bunch of different data storage technologies and therefore more generalized and less tuned to operating over an SQL database than T-SQL would be?
-
RE: Plain rocks
River rocks are good for putting in pots if your pots have soil drainage issues. I keep a bag around for precisely this reason. They're also good to put in the trunk of your car if you're having traction problems over icy road (sand works too). Also, if you're lacking in self defense options (perhaps from living in a country with firearms restrictions) a couple rocks in a tube sock will do in a pinch. I suppose you could just pick rocks up from a nearby creek or river, but then you'd have to bear in mind that you would be hauling a 30 pound sack of rocks for whatever distance the river is from you. Also your sack for the rocks would have to be able to withstand the strain of having a bunch of heavy ass rocks in it. All-in-all, a good bag of rocks is handier to have around than you'd think it would have any right to be.
-
RE: Windows file execution WTF
I don't know, I'd say that if 3 years after the OS release you still haven't fixed the bugs in your software yet it's your own goddamn problem. Really, the stuff Vista causes problems with is usually stuff your code shouldn't have been doing in the first place.
-
RE: Premature optimization...
I haven't done any C coding in a long time (assuming that's what this is), but that makes sense to me. It also occured to me that I don't even know what a "record" is. I am assuming it's a struct, but it could just as easily be some blob of bytes given the context. Makes it kind of hard to define a problem domain. Anyway, you probably don't even need to test this function to see it's a bad idea.
-
RE: Premature optimization...
unsigned int NumTimes = 100000000; long GetByteSizeA(short rec_size, long num_recs) { switch (rec_size) { case 1: return num_recs; case 2: return num_recs << 1; case 4: return num_recs << 2; case 8: return num_recs << 3; case 16: return num_recs << 4; } return num_recs * rec_size; } long GetByteSizeB(short rec_size, long num_recs) { return num_recs * rec_size; } void TestA() { printf("Testing A %u times\n", NumTimes); for (unsigned int i = 0; i < NumTimes; i++) { int recSize = (rand() + 1) / 32 - 1; // limit to some predefined sane amount int numRecs = rand(); GetByteSizeA(recSize, numRecs); } printf("Done testing.\n"); } void TestB() { printf("Testing B %u times\n", NumTimes); for (unsigned int i = 0; i < NumTimes; i++) { int recSize = (rand() + 1) / 32 - 1; // limit to some predefined sane amount int numRecs = rand(); GetByteSizeB(recSize, numRecs); } printf("Done testing.\n"); }
So I did a best out of 5 for each. Curiously...>timer fooA.exe
fooA.exe
With A
Testing A 100000000 times
Done testing.
Results of execution:Exit code 0 Time of execution 4.024
>timer fooB.exe
fooB.exe
With B
Testing B 100000000 times
Done testing.
Results of execution:Exit code 0 Time of execution 4.023
Paid by KLOC?
-
RE: I hope this gets fixed when they ship it.
The fuck's your problem?
<omitting argument where I show that complaining about a feature in a beta is not the same as not knowing what a beta is.>
-
I hope this gets fixed when they ship it.
I'm using a beta version of Live Mesh to manage my various home/work machines. With the latest patch applied I'm having trouble reading the text on one of my machines with a dual 1080p monitor setup:
http://picasaweb.google.com/lh/photo/VN6J0Bnasf6TgKFIz74XqA?feat=directlink
Note: google's image dump thingie scaled it down about 50%, but it really is that squashed on the H axis. And no, I cannot span the window across multiple monitors either.
-
RE: Anyone have experience with AbleDating.net?
In my experience any service on the internet that has anything to do with online is a scam that will ruin your life. Couldn't you take something like drupal and hack it up to your specifications instead?
-
RE: TDWTF and Microsoft /web Survey WTF
The survey is clearly missing options for "DON'T KNOW, DON'T CARE" and "I'd rather use Perl".
-
RE: I bet you thought you'd never see another one of these
I see a thought pattern of "putting a check constraint on the database field and validating the textbox before submitting it with a regex is too crazy an idea for this world", but I can't quite understand how the developer arrived at that conclusion.
-
RE: Easy and safe layout? Not sure.
Hmm... if only there were some language that could be used to describe the format of data-driven reports. Some kind of, I don't know, SQL Reporting Service. Then there would be no need to maintain this huge codebase. I wonder if they had that back in the VB5 days?
-
RE: Libgweather xml copy pasta
So I guess breaking out their localizable/unlocalizable data into separate units and merging them together at runtime never came up? Although in my experience not a lot of developers even consider localization until their product's almost ready to ship. Not a very efficient use of drive space but I guess as long as you never ever have to edit what's in those files it's not a big deal. Heck I think there's even tools that will localize XML content for you. Then again maybe their "tool" was just a perl script with a key/value pair of strings to translate. Having all your localized files in one huge directory would DEFINITELY be annoying, though...
-
RE: Atry-fax
Ah the wonders of printer software. This is why I don't install 3rd party driver peripherals on my machine unless they're for my video card.
-
Simple AssemblyVersion/AssemblyFileVersion question...
Specifically, why is the AssemblyVersion attribute auto incrementable via the .NET framework but the AssemblyFileVersion isn't? It seems like it should be the other way around given your assembly interfaces probably won't change with every build but you probably want a way to distinguish binaries between different builds anyway. It also makes any hopes of servicability a total pain in the ass. On top of this, I don't see how the lack of auto-incrementability could not be annoying without migrating my VS2008 projects to MSBuild projects or something, which actually might not be a bad idea since MSI version numbers don't auto increment either. Oh if only I had the time/wasn't lazy...
Example:
[assembly: AssemblyVersion("2.0.*")] [assembly: AssemblyFileVersion("2.0.*")]
...
Warning 1 Assembly generation -- The version '2.0.*' specified for the 'file version' is not in the normal 'major.minor.build.revision' format [redacted]
-
RE: What language would *you* use?
ASP.NET/C# sounds like the totally obvious brain dead solution here. If your database is SQL Server 2008 there's no reason why you shouldn't also be using IIS7, both of which integrate very well with the whole .NET framework thing. There's a whole bunch of stuff in ASP.NET that makes creating data bound web content pretty trivial as well.
-
RE: No, for crying out loud, I don't know, nor care, how to frigging do X in application Y!!! ARGH!!!
@tster said:
@bstorer said:
The most frequent one I experience is that everyone seems to think I'm a master at resolving printer problems because I have a degree in Comp Sci. Why don't they go bother the EEs? It's their fault, not mine.
The question is, are you usually able to fix the printer problem?
A while back a girl in a dorm lab asked me to fix a printer that was malfunctioning. It was one of those giant xerox printer/copier things with an LCD display on it. So I looked at the screen and followed the instructions given on it for fixing the problem (a piece of paper was jammed inside it's guts somewhere). She was very thankful.
-
RE: Meet the Director of Technical Operations
I always say "S Q L" since it's technically not an acronym.
P.S., I think this would all make a good justification for getting him fired. Especially the eliminating PHP thing, who knows how much revenue that decision cost the company. Failing that, I would probably just stop going to work and see how long it takes for them to stop sending me paychecks.
-
RE: Side-effect-based programming.
Hm, I guess I'll have to track down who owns this project and forward them my new idea for "Visual Whiteboard And Marker 2008"
-
RE: ExecuteScalar maybe?
Wrapping a SQL statement around a connection doesn't sound WTFey to me. I probably would've put in a connection retry attempt loop as well just to be extra paranoid. It's hard to say if GetOneItemFromDB is a WTF or not without knowing how the SQL server driver works internally (the datatable may be set up to fetch each row one at a time with a cursor in which case the performance hit from retriving subsequent datarows may be optimized out). But I think we all know the real enterprisey solution to this is to use a LINQ to SQL adapter for this database or possibly typed data sets if you're stuck in .NET Framework 2.0-land.
-
RE: Side-effect-based programming.
I have to say as someone who is employed as a developer at Microsoft, I hate it when marketing douchebags design software instead of engineers. Too bad that encompasses about 95% of the products we make :(
-
RE: Java, the wrong way
I find a supple pair of breasts and tight ass go a long way to ensuring your job security when employed in the engineering field. Your boss might also be more likely to buy a pair of 24" monitors for you.
-
RE: Side-effect-based programming.
Dang, sounds like someone ripped off my idea for Visual Batch Script 2008