source-code

What's the problem with this code?

MyControl.Margin.Left = 10 ; // Error // "Cannot modify the return value of 'System.Windows.FrameworkElement.Margin' because it is not a variable" ...

Code-aware searching

Are there any tools available that will search through a file, treating it as code, rather than plain text? That is, so you could specify that you want to find all occurrences of "foo" contained in a string? ..or in a variable name, etc? A quick web search turned up Codase but it seems to be more of a search engine rather than something...

What interacts with the DotNetNuke UserLogin function found in the AspNetMembershipProvider?

I'm trying to figure out where the login functionality is that interacts with the UserLogin function of the AspNetMembershipProvider section, there's no references to where the login functionality exists. I know this is the function to intact with the data, I just need to find where in the source code the login is so I can customize the ...

Old Code in comments

How long should you keep old code commented out in your code base. The contractors continue to keep old code in code base by turning it into comments. This is really frustrating and I want them to just remove the old code instead of commenting it out. Is there a valid reason to keep old code in the code base as comments? Update: Versi...

Sensible python source line wrapping for printout

I am working on a latex document that will require typesetting significant amounts of python source code. I'm using pygments (the python module, not the online demo) to encapsulate this python in latex, which works well except in the case of long individual lines - which simply continue off the page. I could manually wrap these lines exc...

Source Code of unix utilities such as sort, uniq etc.

Hi, Could anyone provide me with the pointers to source code for linux commands such as 'sort' , 'uniq' etc. many thanks. ...

Html: Should characters in <pre><code> be html encoded?

Writing documentation in html here, and that requires some code examples of course. What I am wondering is what to do with characters that in general should be replaced with & and > etc. Should they be encoded in this case too? Cause when I have these characters inside of <pre><code> tags they display like they should as far as I can see...

Where can I host throw away code?

Sometimes I want to host some small project to share with the public (often to help answer questions on StackOverflow). I don't really want to create a new project on Google Code/Source Forge/Codeplex/etc. because I don't plan on an ongoing project. Rapidshare and MegaUpload don't really seem good either. Is there a good free place for ...

is there an online javaScript code snippets resource that lets you run code?

is there an online javaScript code snippets resource that lets you run code? this would especially be useful for example code when trying to answer questions on SO! thanks, Josh ...

How Much Does Source Code Cost? Range?

I have taken a job selling a customized "online workplace management application." Our clients' businesses work around the application. Our clients track their time (which is how they get paid), finances and work documents through the application we provide and give their clients access to their interests throught the application. Our...

Where can I learn how best to represent procedural code in a language-independent manner ready for transformations?

Hi, For my source-code transforming (Fortran and C) numerical automatic differentiation engine project PARADE, I need a language-independent representation of procedural program code. The IL (intermediate language) in the below diagram: (The whole tool will be developed solely using Haskell, so strip Java from the above diagram where...

Good practice class line count

I know that there is no right answer to this question, I'm just asking for your opinions. I know that creating HUGE class files with thousand lines of code is not a good practice since it's hard to maintain and also it usually means that you should probably review your program logic. In your opinion what is an average line count for a ...

Download sun.net package for J2SE 1.3

I can find the package for JDK6.0 at here http://www.java2s.com/Open-Source/Java-Document/CatalogJava-Document.htm. Can anyone let me know where I can download sun.net package for J2SE 1.3? Thanks, ...

Pros and cons of various online code sharing sites

BACKGROUND: In order to learn C#, I have spent the last year converting the source code of SQLite from C to C#. As of the current version 3.6.16, it is now ready to release in the wild. I don't want to self-host CVS or some other repository, so I am trying to decide where to post the code. My goals are simple. I just want to allow...

vb.net/C# code editor with color coding

Are there any winforms source code editor controls available with color coding ? pref. open source I seem to recall having come across something like that previously but can't seem to recall it ? ...

Recommendations for simple SCM

DUPE: http://stackoverflow.com/questions/1091086/simple-single-user-revision-control What are the best options for a single developer SCM set-up ? Previously I've used Perforce and Visual Source Safe, but now I'm a single developer, but still want at least basic SCM ...

Why are some functions extremely long? (ideas needed for an academic research!)

Hi, I am writing a small academic research project about extremely long functions. Obviously, I am not looking for examples for bad programming, but for examples of 100, 200 and 600 lines long functions which makes sense. I will be investigating the Linux kernel source using a script written for a Master's degree written in the Hebrew ...

How to visualize workflow from Eclipse?

Is there an Eclipse IDE plugin that can generate workflow of Java code? ...

Tool for analyzing VB6 source code (like Understand from SciTools)

Does anyone know of a tool to analyze/navigate VB6 source code like the tool from scitools? http://www.scitools.com/products/understand/ ...

Does anyone know what is the most up-to-date status of WPF source code reference?

Hi folks. Does anyone know what is the status of it now? There is a very sad post about it here, but I am wondering if anyone has some good news about it. Advices on how to go back to the last version of .NET 3.5 with valid WPF sources without screwing the complete system will be accepted with gratitude. Thanks. ...