I have a very simple code (simplified from the original code - so I know it's not a very clever code) that when I compile in Visual Studio 2010 with Code Analysis gives me warning CA1062: Validate arguments of public methods.
public class Foo
{
protected static void Bar(out int[] x)
{
x = new int[1];
for (int i = 0; i != 1;…
We are just about to start a new project. The Proof of Concept (PoC) for this project was done simply using Win32. The plan is/was to flesh out the PoC, tidy the uglier parts and meet the requirements set by the project owners.
One of the requirements for the actual project is 100% code coverage but I can see problems ahead: How can I acheive…
Hey Guys
i want to do basically two things
1)I want to know is there any way that i can run the java code, using some java code.
2 ) and if it is possible then , and whatever the out put is then it should get that out put [ maybe output or error or exception ] and show on my screen, so i need to get that also.
I know this is possible bcz one…
The challenge
The shortest code by character count to output a spider web with rings equal to user's input.
A spider web is started by reconstructing the center ring:
\_|_/
_/ \_
\___/
/ | \
Then adding rings equal to the amount entered by the user. A ring is another level of a "spider circles" made from \ / | and _, and wraps…
Just curious here: is it possible to invoke a Windows Blue Screen of Death using .net managed code under Windows XP/Vista? And if it is possible, what could the example code be?
Just for the record, this is not for any malicious purpose, I am just wondering what kind of code it would take to actually kill the operating system as specified.
Challenge:
Without using the modulus divide operator provided already by your language, write a program that will take two integer inputs from a user and then displays the result of the first number modulus divided number by the second number.
Example:
Input of first number:2
Input of second number:2
Result:0
Who wins:
In case…
In visual studios i can run code analysis on my .NET project. I am running basic correctness and have 85 warnings. Which is a little much. Also majority of them are in external code.
How do i disable specific warnings so i can focus on the more important warnings? I tried the below but it does not recognize code analysis warnings. (I first…
I'm looking for a tool with which I can annotate source code.
I have some 3rd party source code (JavaScript) I need to understand and I don't want to change it (add inline comments) so that
line numbers can stay intact (for communication with others),
I can avoid accidentally changing something and
my annotations stand out compared…
What is your favourite Code Coverage tool(s) (Free/non-free) and how do you use them effectively?
There are several options available, such as:
CodeCover
Coverlipse
Emma / EclEmma
Atlassian Clover (commercial)
Cobertura
Crap4j
I have CodeCover telling me various chunks of my code are 58% covered etc. But how does this help me write…
Code hosting sites such as github and bitbucket have public api's to retrieve statistics of project repositories. Is there such an api in google code or any other way to retrieve statistics about a google code project repository?
Hi
I'm interested to find out what would be the good way to make changes to production database and source code in web application (ASP.NET, SQL Server 2008).
A little bit more details, we develop on local machines, and then we need to transfer the code and database changes to production (pretty much standard story).
At the…
I am looking to create a QR code that does the following:
When scanned from inside an application, it dislpays a custom alert, (Ex. "You won $5")
When scanned with a different QR code reader (non app) it goes to a mobile web page that directs the user to download the application.
My main question is: Can you control what…
SQLite claim to have 679 times more test code than production one.
http://www.sqlite.org/testing.html
Does anyone knows how it is possible? Do they generate any test code automatically? What are the major parts of these "45678.3 KSLOC" of test code?
I have the following (Python) code to check if there are any rows or columns that contain the same value:
# Test rows ->
# Check each row for a win
for i in range(self.height): # For each row ...
firstValue = None # Initialize first value…
Hi,
There is a table Item like,
code,name
01,parent1
02,parent2
0101,child11
0102,child12
0201,child21
0202,child22
Create a java object and hbm xml to map the table.The Item.parent is a Item whose code is equal to the first two character of its code :
class Item{
string code;
string name;
Item parent;
…
I have references to two different WCF services in a project. I updated the reference for one of the services, and now no code is generated for it. The references.cs file just has the "this is genrated code" comment at the top. Updating that same service in other projects and updating the other service both work fine.…
I'm having a code written in C that works on Linux. I want this program to work in windows, Are there any differences that I have to make in the code ?
It is a code for Server/Client communication using sockets taken from here :
http://www.linuxhowtos.org/C_C++/socket.htm
How to disable source tab in Google Code? I don't want any random users to look at my code.
Before you say that this can't be done, that Google Code is by default open source. Someone managed to do it, somehow.
Edit: Before you downvote me further, take a look at the link I provided. It's possible to do it,…
Hi everyone...
I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code...
It's almost like an HTML generator using info from mySQL, so users can custimize each HTML…
Hi everyone...
I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code...
It's almost like an HTML generator using info from mySQL, so users can custimize each HTML…
I want to help me
In the following link i found nice code in Ajax
http://www.w3schools.com/php/php_ajax_livesearch.asp
I want to link my code with the code you see in the link above and replace dropdown list How can I do it for I could not
where is it change in code even my code work as Ajax ??
I wish…