What's the worst single line of code/script/command you have ever written/seen?

1 Answer

Answer :

You might enjoy this story.

Related questions

Description : What's bugging my simple JavaScript toggle script?

Last Answer : answer:The toggle_visibility function specifies (eng, met), not (var1, var2), so it seems not to matter what order of parameters you send it, it's going to read (eng, met) always. function toggle_visibility(eng, ... = block'; } else { e1.style.display = block'; e2.style.display = none'; }

Description : What kind of script/program/CMS/etc. is needed to make a site like care.com, airbnb.com, schoolofeverything.com, fiverr.com?

Last Answer : All the sites you posted are so different I don’t think you can use a CMS without being heavily modified. I would charge about 20K to even touch it if I was doing it from scratch.

Description : How to fetch files' extension from a variable which contains files & folder list in bash script ?

Last Answer : I know very little about this kind of stuff (very little), but is what you are asking, simply.. what type of file did this information come from? As in, is it a .zip, .exe, .txt, .html, etc… ??

Description : I need C troubleshooting: When i include a library do i have to do something more in order to have its functions work in my script?

Last Answer : Are you getting any other errors, like “math.h” not found? Actually, IIRC, not finding an include is just a warning…

Description : What are some tips for preventing a script kiddie from harming your web site?

Last Answer : 1. Don’t use SQL (saves money, too). 2. Run your site on Linux. 3. Don’t enable any software or languages you aren’t using yourself. 4. Put your server behind a NAT firewall and close down ports you aren’t using yourself.

Description : How to make custom command to text in Mac OSX?

Last Answer : TextExpander does something similar. I can type “MBP” and have “MacBook Pro” appear for me.

Description : What is the keyboard command to zoom in ?

Last Answer : Press ctrl + = on the keyboard to zoom in .

Description : How do I simply repeat a line of code 4x in Javascript?

Last Answer : something like a for loop is pretty simple, and gives you a handy counter if needed. for(var i = 0; i < 4; i++) { forward(); }

Description : What's some good music to code to?

Last Answer : EDIT: Panic at The Disco. Period.

Description : Command prompt default colors in a script?

Last Answer : Is she opening them in the standard windows command shell? Or some other terminal?

Description : Programmers: Thoughts on this AI game where you fight via code?

Last Answer : answer:Hmm. Cool, but so far I’m stuck on the tutorial with some sort of error: > Game.mothership.moveTo(1,0) undefined

Description : Do you still use spaghetti code , like QBasic?

Last Answer : talljasperman Sorry I didn’t know that spaghetti code was a pejorative. My teacher called it that and I did not look it up.

Description : I understand what the PL/SQL code below is supposed to do, but when I run the code, it won't compile. Can anybody help with why this is so?

Last Answer : answer:PL\SQL really isn’t my thing, but I believe you need something between the first IF statement and the ELSIF. What do you want it to do with the number if it is 50 or 90?

Description : How can I swap two integers without temporary variables using JavaScript code?

Last Answer : answer:This is a trick using the exclusive or operator ^ that was used when computers were short on memory. a = (a ^ b) /* a^b, b */ b = (a ^ b) /* a^b, a */ a = (a ^ b) /* b, a */ You can also do it using subtraction for numeric ... = a - b /* a - b, b */ b = b -a /* a-b, a */ a = b - a /* b, a */

Description : What does this short snippet of C code do? (see details)

Last Answer : answer:It's been a long time since I did much in C but It looks like it reads a file (or url?) and assigns that reference to the variable handle to use later, then reads each ... meant to return file contents in an expected format for use elsewhere. More of the context would provide more clues.

Description : How does computer code break?

Last Answer : Errors in logic, programming errors with the language used; type of programming involved eg. application prgm, operating system executable, etc . operating system upgrades can be any number of items ... is alway helpful when fixing programming problems.. Albeit,a general answer, I hope it helps

Description : How to implement a JavaScript code that doing "Set as my Home Page" in Google Chrome?

Last Answer : So, you’re saying the JavaScript code for doing this works in IE and Firefox, but not Chrome? That’s weird. Let me see if I can find a script for you.

Description : Would appreciate tips on reading someone else's code and understanding it .

Last Answer : First hint: if there are no coments smack the someone else in the face with a crowbar. That said there's really not much to say, you should be able to figure out what the code says ... trying to understand what the subroutines are for and then from that wrking out why the bigger parts need them.

Description : Python Code error?

Last Answer : You have too many parens in that line—you’re passing in a tuple instead of two integers.

Description : Do I have to give up my source code to a .NET DLL I wrote?

Last Answer : It depends on the contract that you had with the client. You might want to check Free Lance Switch. It’s a community of Freelance designers/coders. They might be able to help you out more.

Description : Is there somewhere where I can have someone look at my code and give me suggestions on how to make it better?

Last Answer : There are dozens of PHP forums on the web where you can submit things like that. Just search for PHP community or PHP forum. Most web design forums and communities will have an area for programming ... own forums as well. Just post a thread showing your code and asking for whatever help you need.

Description : The OpenGL source code for an open source Breakout game?

Last Answer : Here is one Learning and copying from others code is cool. Using code is cool if credits are made.

Description : Do I have to be in U.S to be able to participate in Google's Summer of Code?

Last Answer : http://socghop.appspot.com/document/show/program/google/gsoc2009/faqs#student_eligibility

Description : How much sample code should you give when asked for it as part of a programming job application?

Last Answer : answer:I've recently gone through an interview process where they did ask to see some code that I've written, but didn't ask to actually have the code sent to them. I would assume that a majority of ... you shouldn't have too much of a problem sending the code to them if they insist upon it too.

Description : Do you code on white or black?

Last Answer : I used to do it in white too, and I am definitely liking the change to black. makes my code stand out more and well it saves some battery use :P

Description : What kinda of code commenting system do you use?

Last Answer : answer: I write bad code. Seriously, that is in stuff viewable be to public. And I comment the fuck out of everything.

Description : What is the HTML code of Visit Count below Needsbd.wapkiz.com ?

Last Answer : You can find http://redowan.wapkiz.com on this website.

Description : What is Html Code to Red Text ?

Last Answer : Your writing! You can color the text using the HTML code .

Description : Want HTML code to enlarge text ?

Last Answer : HTML to enlarge text: your text or your text

Description : Enter the HTML code to color the text ?

Last Answer : + font color = "lime"> Your writing . When using the code, give + example

Description : Web site link that can copy all the code to design Wapkiz site ?

Last Answer : I am giving you the names of some sites from where you can copy the code. Site- 1 Site- 2 From these two sites you will get all the code for creating Wapkiz site . If you need more sites, please let us know in the comments.

Description : Other than "a" is there a single lower case letter in the English alphabet that qualifies as a word?

Last Answer : Possibly because some people write equations into documents? The lowercase i would show up frequently in that context. But I think Word does actually spellcheck the lowercase i into uppercase, and as I’m writing this, I’m being corrected also.

Description : Best line following algorithm?

Last Answer : This brings back memories of the robotics club in high school. Unfortunately, I was the engineer and not the programmer. :[ Umm, you might want to look at this. It seems like a simple explanation of line following for robots.

Description : Can I take my written script to another pharmacy and get it filled?

Last Answer : answer:The pharmacy doesn’t care; the insurance company does. If you’re paying out of your own pocket, you’re free to do whatever you want.

Description : In cursive or fancy script, what is the thing that connotes an underscoring of the text above (such as a name written on the envelope of a card) or that marks the end of a written passage (such as a diary entry) that looks like a giant tilde (~) with two forward slashes (//) through it?

Last Answer : The closest thing I can find in the Unicode character set is the swung dash , hex code 2053. I don't know if this is exactly the same character as the one you mention-the only place I see that ... re asking about might be a different entirely. If that's in the Unicode set, I can't find it.

Description : The Ashoka edicts are written in ____________ script.

Last Answer : The Ashoka edicts are written in ____________ script. (a) Sinhala (b) Aramaic (c) Kharoshthi (d) Modi

Description : Which script of ancient India was written from right to left?

Last Answer : Kharoshti

Description : The use of _____________ script is seen on the Shaka coins. 

Last Answer : The use of _____________ script is seen on the Shaka coins. (a) Brahmi (b) Sanskrit (c) Pali (d) Kharoshthi

Description : Is there a website that shows all the English words, idioms, etc ever invented, including archaic, unofficial, and newest words that have just been invented?

Last Answer : The problem with such a lexicon would be that there have been a lot of slang, dialect, idioms, and unofficial words that 99% of people have never heard of. Besides that, the English language is ... pretty good vocabulary. Hopefully, someone will recommend some. I am unable to do this at the moment.

Description : Is Espresso ever going to have CSSEdit's features?

Last Answer : It seems unlikely, since they make money off of both products. You’re right that some clean integration would be nice though.

Description : Ever created an open source project based on your work?

Last Answer : answer:Well, I've done something like this, on a very small project (a WordPress theme)... even so I think the hardest thing it's to create a community around a project, but this might be a little easier ... are not LGPL, but I think you can't use GPL code if your project isn't GPL'ed) Good luck!

Description : In a relational database, this is a data structure that organizes the information about a single topic into rows and columns. 1) Block 2) Record 3) Tuple 4) Table 5) Command line interface

Last Answer : Answer :4

Description : What's the best book for understanding Unity 2D?

Last Answer : Are you a beginner programmer in general, or just new to Unity? That would make a big difference in how I would respond.

Description : I'm clueless. Why do people make a differentiation between Apps and other programs? What's the difference?

Last Answer : answer:“App” == “Application” == “Program” Same thing.

Description : What's the best combiantion C++ Compiler+IDE for windows?

Last Answer : im not a 1337 c++ programmer, but my teacher had us use visual c++ express (you could use visual studio if u wanna pay) for a couple of my classes and it was pretty good as far as formatting and readability

Description : What's your favorite PHP integrated development environment (IDE)?

Last Answer : If I did PHP development, I’d probably use Coda: http://www.panic.com/coda/

Description : What's so special about Ruby, anyway?

Last Answer : According to the website, it has an elegance in it’s simplicity and productivity.

Description : What's the best way to deploy a PHP application?

Last Answer : answer:debian package At a previous job I had to install/maintain a site written in CakePHP. I made it into a debian package. “aptitude install projectname” and you’re done (although I guess that is technically “touching the server”) Send me a PM and I can give you the details.

Description : What's the most valuable software programming language right now?

Last Answer : answer:Yes. I think C# is your overall best bet, subject to certain industry/company idiosyncrasies (e.g. Google is all about Python and C++) – or if wanting to do anything for mobile apps (Java). It’s been many years since I programmed for a living though. Delphi may make a comeback…

Description : What's the heaviest material (some kind of metal I suppose)?

Last Answer : Maybe in these economic bad times, gold is your pick?