source-code

Why does the event of specifying wrong server not get handled?

The following is the code. I have written every posssible handler for server object I can think of, but still the horrible page appears. when i give the name of the SERVER INCORRECTLY in textbox1 which is used further. protected void Page_Load(object sender, EventArgs e) if (TextBox1.Text.Length>0) { Server srv; ServerCo...

Source Control Repositories - One or Many?

Hi Everyone, I've been given the task of restructuring our Repositories upon moving to SourceGear Fortress (for those that don't know this product, think Stable, Reliable SourceSafe on Steroids :P) I know how I'm going to organise all of my projects and solutions, the problem that I'm having is how to organise these into repositories. ...

How to deploy source code from multiple Eclipse projects to Google App Engine? (aka, linking two projects)

Hey all. I am thinking of extracting some core functionality into a new Eclipse GAE project, so I don't have duplicated code. Meaning I now have two Eclipse projects; one "main" and one "util". I have linked them together locally in Eclipse, but when I deploy the main project, the source code from the second project is not deployed. I...

Sanity Check: Managing Visual Studio project references with source control

Hi everyone, I've been asking, searching, rating and reading for about a week now trying to get a decent source control process up together and my major stumbling block has been references to projects in other repositories and managing third party libraries. This was compounded by conflicting views on whether to store binaries in the s...

c#.net source code

is it possible to see the source code of C# library implementations? such as List or Dictionary implementation source code. ...

How to see Qt Source code while coding by Qt Creator ?

How to see Qt Source code while coding by Qt Creator ? when I Debug my program and hit a break point, and when I press F11 over a Qt function , Debugger steps into source code of that function, it is very interesting stuff :D now, I will see the source code of Qt functions in Qt creator while coding , not at Debug time :D ...

Is it legal to quote from the Microsoft Reference Source or from reflected BCL code?

I've noticed that some questions here on StackOverflow (example) are answered by quoting either some part of the .net Reference Code or some decompiled parts of the .net base class library (using Reflector). On one hand, the MS Reference Source License does not allow redistribution of the code "outside your company", and I'm pretty s...

Search Attached Sources in Eclipse

Is there any way that Eclipse will let me search within attached sources of referenced libraries? I'm trying to find all the places where a public static final String constant is used. ...

Visual Studio to load Qt source code for debugging

I had compiled Qt 4.6.2 from sources with VS 2008. Now I would like to be able to step into Qt sources while debugging my application. How do I make VS to pick up the framework sources? Edit: I forgot to mention that qt was built statically, and I dont find any .pdb files anywhere... I belive that all the necessary data should be includ...

show html from db on a webpage as plain text

i am getting html from the database, and want to output the html as text without the browser rendering the HTML. I have unsuccessfully tried to set the content type to text/plain. I have tried using the textarea but the code is not formatted. ...

"Good" Java code examples?

Can anyone point out some java code which is considered "good"? I have started programming recently, about two years ago. I mostly program using java. I write bad code. I think the reason behind this, is that I have never actually seen "good" code. I have read a couple of books on programming, but all of them just have some toy examples...

Reimplement algorithm from Open Source project

I am currently working on a project where we using an Open Source library (GPL) for some specific algorithms and computations. This will be later replaced by our own implementation. What I was wondering now is how much can you let yourself "help" or "inspire" by the Open Source implementation when implementing your own library which sh...

beginner:source files vs binary files: what's the purpose of providing both?

here http://www.codeproject.com/KB/database/CsvReader.aspx they are offering both source and binary files. if i am a programmer who needs to use the files, why should they be providing me with both? why not just give me the source and i will compile it? ...

Adjusted Cosine Similarity

Hello there. Can you help me, please. I was confused to make PHP code about adjusted cosine similarity. I have build data like this : $data[UserID][ItemID] = Rating data example : $data[1][1] = 5; $data[1][2] = 3; $data[1][3] = 4; $data[2][1] = 3; $data[2][2] = 2; $data[2][4] = 3; $data[2][5] = 3; $data[3][1] = 4; $data[3][3] = 3; $d...

Where can I find source code of FireFox for iPhone?

Where can I find source code of FireFox for iPhone? ...

Where to find demo code of working PHP extension for VS2008 targetting PHP 5.3.x and Windows?

There seem to be so many half-documented ways of writing extensions for PHP in Windows. Can anyone point me to source code which demonstrates an extension compiled under VS2008 and working in a PHP 5.3.x environment? ...

Code beautifiers with reorganisation ?

Hello, As a code formatter in my git repository as a post commit hook, I use astyle in Java mode which is very cool. But does anyone knows a code formatter that can reoganize the code (ctors, accessors, mutators, etc ...), and reassemble them together ? Regards ...

Need help searching through source code

Hello all! I was hoping that someone could give me some tips and point me in the right direction as far as searching through complex source code. For example, I am looking for the various POSIX system call implementations. Say I wanted to find the implementation of open(), how would an experienced programmer find this? I am familiar w...

How to make Eclipse to format JSP code properly?

I use code formatting command (Ctrl + Shift + F) a lot in Eclipse IDE. While this works pretty well for Java / CSS source codes, the JSP formatting is just sucks. Is there any plug-in available to make the JSP formatting better in Eclipse IDE? By formatting I mean proper indenting of JSP/HTML tags. ...

How to organize Android source code into folders

I'm working on an Android app and it's up to 17 classes. I want to start organizing the .java class files into a more intuitive layout. Say I want to have a source code directory called "views". When I create that directory using Eclipse, it changes my package name to com.xyz to com.xyz.views. Since this package name (com.xyz.views) ...