|
What is the most evil or dangerous code fragment you have ever seen in a production environment at a company? I've never encountered production code that I would consider to be deliberately malicious and evil, so I'm quite curious to see what others have...
Started by God of Data on
, 21 posts
by 21 people.
Answer Snippets (Read the full thread at stackoverflow):
Of the few which did, all parameters were passed as strings(); break; case "btnCE": txtEdit.Text =... .
From the more or less unsecured database :|
( I could entertain the dailywtf every day for 6 months say 90% of methods took 0 parameters.
|
|
I have one std::list<> container and these threads:
One writer thread which adds elements indefinitely.
One reader/writer thread which reads and removes elements while available.
Several reader threads which access the SIZE of the container (by ...
Started by David Alfonso on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
The STL in VC++ version 6 int ContainerSize = 0;
Update the variable only inside already protected update calls, but you can.
Concurrent / thread-safe containers for vectors, hash maps and queues .
|
|
Here is the list of mine
Unlike me -- as I did it for illustrative purposes -- don't paste too many.
And most importantly, provide an explanation
Commands shouldn't be generic but relevant to C++/C environment. ctags & scope are welcome too
gi init insert...
Started by Andrei on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
One set of commands I find useful is [[, ]... .
Note : You're asking about commands and not plugins, but just wanted to mention this one anyway .
A great plugin that will save you a lot of regularly typed words in C .
You should take a look at SnippetsEmu.
|
Ask your Facebook Friends
|
Prior to upgrading to windows 7, I was able to use Tomcat 6.0, but when I upgraded to the new Windows, and downloaded Eclipse EE, and downloaded the apache content, I am unable to get Apache to run. When I attempt to start my apacher server through either...
Started by CitadelCSCadet on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Final solution.
"Windows could not start the Apache Tomcat 6 0."
I have had exactly this problem when running Tomcat on Windows 2003 server.
But it will help once the current problem is solved .
|
|
I'm trying fossil as my new VCS, since I'm a lone developer working on small projects. I started testing fossil but I encountered a (probably major newbie) problem. How does one push or pull to another direcotry (which is easy on Hg). Fossil pull or push...
Started by Mosh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Received: 230 6 0 0 Send: 224 2 0 0 Received: 590 8 2 0 Total network traffic: 649 bytes sent, 806/master/ master_repos.fsl Bytes Cards Artifacts Deltas Send: 130 1 0 0 Received: 230 6 ....
|
|
If you are someone who programs in C or C++, without the managed-language benefits of memory management, type checking or buffer overrun protection, using pointer arithmetic, how do you make sure that your programs are safe? Do you use a lot of unit tests...
Started by Robert Harvey on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
That strncpy terminates the string, is there an alternative?"
strncpy(dst, src, n); dst[n-1] = '\0_strncpy (dst, src, n) { assert((dst != NULL) && (src != NULL) && (n > 0)); strncpy(dst, src, n); dst[n-1] = '\0'; return dst; }
Primary....
|
|
I need to send simple html-message with JavaMail. And when I tried to find some nice examples with explanations in the Internet, each next example made me more angry and angry.
All those silly examples contain copied and pasted Java code which differs...
Started by Roman on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Void main(String[] args) { String hostname = args[0]; final String userName = args[1]; final String]; String body = ""; // add rest of args as one body text for convenience for (int i = 6; i <.
|
|
I am following wiki page for setting up vnc on my freshly installed centos 6.2: http://wiki.centos.org/HowTos/VNC-Server
I am getting:
Quote: : No package GNOME Desktop Environment available.
Answer Snippets (Read the full thread at centos):
In CentOS 6 the group is....
<!> If you are running CentOS 6, the server is tigervnc-server not vnc-server.
The command yum groupinstall "GNOME Desktop Environment" to install the Gnome Desktop and requirements, for example.
|
|
Hi,
I have a message flow which sets up a few environment variables based on data in certain messages. Now, if the broker were to crash or restart for some reason, I want these environment variables to be made available again seamlessly, instead of having...
Started by j1 on
, 15 posts
by 8 people.
Answer Snippets (Read the full thread at mqseries):
|
|
7 years and 6 days is how long I went without being suspended on the FAIR/MAD/Dialogue apologetic board. Yet I managed to achieve suspension with this angry diatribe here
Phaedrus
Started by Phaedrus Ut on
, 21 posts
by 17 people.
Answer Snippets (Read the full thread at mormondiscussions):
Not true, and the evidence is clearly against them.
|