source-code

Callgrind for c++ code coverage

Is Callgrind, which is part of valgrind suite a good candidate for C++ code coverage?? ...

Team Foundation Server 2010 Unmapping

Any idea how to unmap a project? Here is what I am trying to do, I changed the location of a source control, completely removed it from TFS source control.. but now it is showing up wanting to add it.. And the other issue I'm having is.. when I try to Map the new project, it is giving this error.. thing is, I've completely deleted th...

Idiomatic approach for structuring Clojure source code

I'm interested in how people structure their Clojure source code. Being used to Java, I'm pretty familiar with the paradigm of one class per source code file, bundling all the data and method definitions with appropriate comments and annotations etc. However Clojure offers a lot more flexibility, and I'm not sure how I should structur...

How to code a batch file to copy and rename the most recently dated file?

I'm trying to code a batch file to copy only the most recently dated file in a given folder to another directory on the local machine, and simultaneously rename it as it does. I've found a very similar question here http://stackoverflow.com/questions/97371/batch-script-to-copy-newest-file and have managed to cobble together the below ...

Source code for android apps?

I have just started learning to write apps for android using Eclipse. Where can I find free source code that I can use during my learning experience? Thanks. ...

How to Print Rails Source Code?

I'd like to read the Rails 3 source code on printed paper (and preferably in color). For example, xv6 (http://pdos.csail.mit.edu/6.828/2009/xv6-book/index.html) did a nice job printing their code (http://pdos.csail.mit.edu/6.828/2009/src/xv6.pdf). It even has line numbers and an index. The only thing I would like to add is syntax highli...

Call Another Source File

I'm building a program(in 16-Bits) using Assembly(nasm as the assembler), but as I love to have things organized in different source files. Let's think I have 2 sources, one called main.asm and another one called source2.asm, but I want to call the source1.asm content in the middle of main.asm. How could I do this? ...

Is there any way or site to store the programming code for viewing later

For example i use store bits and pieces of text from web in my google docs to view later. I am finding it hard to store the code snippet in google docs due to non formatting or non color highlighting. For example when i get some anser in stack overflow i want to copy and paste somewhere so that i can review later. But i am not finding...

sql queries in code files

I am a little bit reluctant when it comes to mixing SQL queries with my code ... I tend to not like it aesthetically. I was wondering whether there's a better way of storing them, without having to mix them with the code. What I've found until now: Use an ORM and you don't have to worry about storing full SQL strings - this is not an o...

Snipets of code in microsoft word or open office

How can i put snippets of code, in word or open office? i am putting xml and java, if it has good formatting, even maybe a small shade in back, its even better ...

Do you know of any programs worth reading?

One of the top tips for new programmers is to read programs, like the "old masters" who studied paintings of their ancestors, all programmers should also study programs of their colleagues. The question is, which programs are worth the trouble? ...

Resolving Clojure circular dependencies

I'm working on some Clojure code that has some circular dependencies between different namespaces and I'm trying to work out the best way of resolving them. Basic issue is that I get a "No such var: namepace/functionname" error in one of the files I tried to "declare" the function but then it complains with: "Can't refer to a qualified...

Is there some ExtJs Sample Application with open code?

Do you know of any sample application written in ExtJs which source code is open to the public? I'd like to see how code is modularized because I'm having some problems in organizing my own app. ...

I'm releasing some code, what license should I be using?

I've been trawling through many pages about software licensing and it's a real brain-beater. Legal stuff just isn't interesting, although I do know that I must release my code under a license, otherwise I'd just end up with problems later on down the road. So I've just finished a rich web-based media manager, and I'm getting around to r...

Last.fm client source code / SVN

I have already asked in their forums ([1], [2]) but I don't seem to get an answer there. It seems that the official Lastfm SVN (svn://svn.audioscrobbler.net/clientside/Last.fm) is not updated anymore since a long time (last version-tag is 1.4.1.57486 - last commit from 2007). Where is the current code of the 1.* branch? Moved to Git or...

What is purpose of _p.h files?

In Qt Source files, there are two versions of header files, such as: qxmlstream.h qxmlstream_p.h Why are there _p.h files? ...

Is there a way to view the source code of a function, class, or module from the python interpreter?

Is there a way to view the source code of a function, class, or module from the python interpreter? (in addition to using help to view the docs and dir to view the attributes/methods) ...

Managing and deploying code between dev/preprod/prod

hello... We have a fairly large java web app and all new features, bug fixes, etc. are being managed manually... This is becoming a very tedious task to keep track of everything that has changed and then move them from dev to pre production and finally to production so we are looking for a way to better manage this. Obviously we need to...

A tool to list down the user defined functions, classes in Visual Basic, C#, C++ ?

Hello, I need a tool which parses and lists down the user defined functions / classes in the source code of my project. The code can be in either Vb, C#. Please let me know if there exists such tool. Tried a lot of google search But i did not see any such tool. Project Analyzer, codesmart do not have such feature. Thanks in advance ...

Is it possible to retrieve website source code for parsing in an iPhone app?

I'm making an application that directly takes images from a site and downloads them into the apps Documents directory for use when the user doesn't have a data connection. The application will check the site for the latest post and update accordingly. I've never done anything with databases before and thought that this would be easier t...