- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Pick up 12-inch vinyl record. Place in antiquated record player. Flip on switch. Jam to "Rock Me Amadeus" extended dance remix classic.
Admin
I'm so glad that you made a reference to a Falco classic. I really enjoyed the extended 12-inch version because it had a really long "history of Amadeus" intro. It was really funky.
Admin
don't you mean "the" Falco classic? I had that too... [:$] but I have redeemed myself by performing principle roles in all of Mozart's standard repertoire operas.
Admin
Marcus here.
Your replies have cracked me up time and time again... it's reassuring to know that so many share my "WTF?!" reaction to this code, but sadly it's just the tip of the iceberg. The entire application needs to be junked and a new one written from scratch. However, the problem is that's not going to happen for another 2 years. [:|]
Isac's image left me speechless, but once I regained the power to speak, I couldn't stop laughing, so top marks for "wittiest response" goes to him! Genius indeed. [:D] I just wish I could show my boss that image (and the whole of this thread) but obviously I can't. (However, I might show a few coworkers who would appreciate it.)
Anyway, other than making damn sure that we don't have the right to modify the code (I have a horrible feeling that the powers that be might have signed away that right), I'm left with data pruning and a total application rewrite. The first is a temporary fix which probably won't suffice for two more years, and the latter is out of the question for now.
Fortunately, it's not my project, I merely offered to investigate the timeouts. Little did I know what I was going to find. Can open. Worms everywhere.
I bid you all good morning/day/evening/night, and hope you all have a great New Year! I'll be checking back next week to see what else you guys come up with, so see you then, perhaps.
Marcus
Admin
This makes me very angry!
Admin
Marcus:
Okay, you can't modify the app or the DB, but perhaps there's a way of sticking a proxy in between the two which filters out the offending query and replaces it with something sane?
I know very little about what you'd use in practice, but a service that appears as an ODBC source which just passes the data back and forth with a little filtering code in the middle... I believe there are various bits of middleware you can buy to do this (it may even be simple enough to write if you can find some decent ODBC libs) and it wouldn't invalidate the warranty.
-- Yoz
Admin
Marcus: it might be possible to simplify the schema, recreate a database with the simplified schema, and write a routine to migrate the data. If everything in the client code uses views instead of direct queries on tables, this might work great. Otherwise, you might have to combine it with the ODBC proxy idea. But either solution seems like it would be license friendly.
That is, unless your license also prohibits making derivitive works from the source code you have. Which it probably does, come to think of it.
Come to think of it, even a ODBC middle layer would probably be considered a derivitive work and against the license. Oh well. But I'd check with a company lawyer.
Admin
Obviously, you've never heard "The Kiss of Kathleen Turner".
Admin
I disagree. Your basic arguement ("if it's in the contract, it must be binding") is nonsense. I could sign a contract selling my children into slavery --- That wouldn't make it legal or enforceable.
Consider a more common example: I buy a book, also known as being licensed to read (use) the book, but not republish it. Does this mean I cannot write notes in the margins? Does this mean I cannot cross out the protagonist's name and write in my own where ever it appears in the book?
Then you have the more practical concerns, namely, (a) "How would they know?", (b) "Why would they care?", and (c) "Would could they do about it?".
In (a), The service contract has already been cancelled, so why would anyone from the contracters be looking at the code on your machines?
In (b), do you really think they are going to insist you use their crappy code instead of you own improvement?
In (c), they could refuse to sell you a service contract, which is moot since you've already canceled it, Or they could attempt to sue you for breach of contract, which they will almost certainly lose (What judge is going to side with a geek expert witness he can't understand over "I should be able to write in the margins of a paperback"?), and which, won or lose, will cause irrepairable damage to their reputation ("Oh yes, they're the one's who write crappy code, and will sue ya if you don't use it!")
Admin
Unbelivable. That takes the cake as the years greatest WTF.
Estimated execution plan: wtf?
Number of tables joined: WTF?
Most of those joins left outer: WTFF?
use of DISTINCT: OMFGWTFBBQ!
phx
Admin
JamesCurran, you took the words out of my mouth!
Then you apparently stuck them in a nice soft baggie (like the kind you get with crown royal,) jumbled them around a bit, and pulled them out in a far more eloquent manner.
As far as I'm concerned this is comparable to editing an .ini file that comes with any arbitrary such windows program, nothing like software reversing. I'm fairly certain an EULA or the like cannot govern this sort of thing, and if the powers-that-be aren't willing to take that chance or to find out, at least consider asking this "highly reputable" company if it's okay (they'll perhaps say sure, but at your own risk.) Something MUST be done about that WTF!
Admin
Afaik and ianal, but yes, modification would likely be breach of contract/copyright, but as pointed out - completely unenforcable. How are they going to (legally) find out?
Code (or config files) is like a novel, or a painting, its is protected by copyright law. You cant modify my work unless I grant permission.
It could be said that config files are in place to allow end user configuration, an implicit grant of permission. However after your (America's) recent "advances" in copyright law, I would personally - how do you put it? - "bet my ass" - that if I was dumb enough to put the line "HasBoughtProEditon = false" in my app's config file, and you changed it, then I would end up with your "ass" on a platter ;)
Admin
Try CTRL-MOUSEWHEEL (aka, the View->Text Size menu.) Since this forum uses relative font sizes, it works quite nicely. (Way better than some I've seen.)
Admin
Only if you caught me. ;)
Admin
The confusion here is a misunderstanding of what is "The Code".
I can't modify your work, because your work exists on your computer. If you sell me a copy of your work, I can modify my copy which exists on my computer.
Fundementally important point here: After I change my copy of your code, your Code still exist on your computer in it's unmodified form.
Hence, my modifications to my copy of your code do not impair your ability to sell your Code to other people, which is pretty much the only concern of the copyright law.
Admin
Admin
Anonymous, your reply doesn't appear under your quote of me when I view the page, but whatever (possibly snide?) comment you were trying to make is probably moot since we had later discussion involving why I wrote that that way -- it is not how I generally write code, it was in response to someone else's suggestion, and showing how it wouldn't work.
Yes, I know how to use joins.
Thanks.
Admin
I think the important point here is that the two selects aren't related, so joins aren't the answer:
SELECT
@Col3 = somecolumn,
@Col4 = othercolumn
FROM
table2
where
table2.id = testvalue
SELECT
col1,
col2,
@Col3,
@Col4,
FROM
table1
WHERE
table1.[id] = 12345
Admin
"If you sell me a copy of your work, I can modify my copy which exists on my computer."
That is similar to me saying if you park your car near my house I can smash the windows with a hammer.
"Fundementally important point here: After I change my copy of your code, your Code still exist on your computer in it's unmodified form. Hence, my modifications to my copy of your code do not impair your ability to sell your Code to other people, which is pretty much the only concern of the copyright law."
That concern is afaik in regard to determining compensation. The court can force you to stop using the code even if no compensation is offered. Also you are depriving me of the income when I do the modifications for you :)
So you claim if I copy some music and listen to it at home and dont distribute it and claim i wouldntve bought it if I didnt copy it I would get away with that? (Assuming your RIAA found out about the "collection").
Actually good example:
A company recently sold XBOX mod chips. These were a drop-in replacement BIOS for the XBOX. These contained modified code owned by Microsoft, who got pissed off and shut them down mainly on breach of copyright. Now, Microsoft has already sold Joe an XBOX, and when Joe buys a chip MS isnt losing any money or potential to sell the original code. In fact Joe has a licence to run the MS code on his box, like any mod chip customer (otherwise the chip is useless).
Now I understand a lot of people have this "Right to Copy" bullshit happening. This is basically "Right to get people to do shit for you for free" and "Right to rip off programmers like myself" which pisses me off. I dont get annoyed with people that copy software, I mean I do sometimes - like running full SQL server on my box at home for development. Its just when people make the claim that its their right to do so.... so fucking annoying. Its like this kid I saw with a shirt that said "Graffiti is not a Crime!". I told him that if you Graffiti my Wall, I will Punch you in the Face. He mumbled something about me hatin' his art. [:@]
Admin
Huh???? There is absolutely no similarity whatsoever between the two situations.
Again not even close to what we are talking about here. How 'bout we try modifying this to something closer: I buy a music CD. Do I have the right to use it as a Frisbee?
Not really, but it's not quite as wacky as the rest....
OK, let's recap... Microsoft sold a copy of the code to Joe. He can modify his copy as he pleases. Microsoft also sold a copy of the code to the Unnamed company. They can modify THEIR COPY of that code as they please --- However, they CANNOT sell the modified version. This is EXACTLY what I said in my original comment. They cannot sell it, because this would be using Msft's work to compete against them (ie, you could use their chip is a home-brew XBOX, or you could buy their ROMs instead of buying an upgrade from Msft or whatever). The point is that Msft has the right to control how their work is distributed ("copyright" is literally "The right to make copies"), but once it's reached the end consumer, they can do what they want with their copy.
P.S. The comment before this guy's (with the SQL code) is also mine -- I forgot to sign in.
Admin
Ok, so following that logic...if I had some code which I created, which was distributed, and then I parked a car near a glass house and walked in with a hammer...oh no...I've gone cross-eyed. [:|]
Admin
Admin
Admin
Man, I wish people would read the thread before saying the same thing YET AGAIN that about an earlier reply that has been beaten to death.
argh!
I wish I could just delete that post, it caused way more useless discussion that it was worth.
I can't even see what the reply was this time, thanks to the Magic Quoting Feature(tm), but it's annoying anyway.
Admin
Thought you'd all like to know that The Powers That Be eventually saw the light, and we have now junked the application! We replaced it with a rather simple .Net app that replicates 90% of all the functionality that we actually used, and a few mods to another system covered the last 10%! Hurray! Good riddance to it! [<:o)]
Marcus
Admin
I've read this post 100 times and it makes me laugh out loud every single time.
Admin
544