Basically what I want to do it this: a pdb file contains a location of source files (e.g. C:\dev\proj1\helloworld.cs). Is it possible to modify that pdb file so that it contains a different location (e.g. \more\differenter\location\proj1\helloworld.cs)?
...
I'm looking for a tool that will, in bulk, add a license header to some source files, some of which already have the header. Is there a tool out there that will insert a header, if it is not already present?
Edit: I am intentionally not marking an answer to this question, since answers are basically all environment-specific and subject...
Much like it's possible to geotag pictures, I wonder if there is a way to automatically geolocate the code associated with a commit - or any changes - in a version control system like SVN?
I couldn't find any information about this and I don't know if for example SVN stores the IP address used by the committers, which in most situation...
Hi there.
I have a curly one here. When we remote a method (that is using generics) the remoting sink cannot seem to discover our method from the other identical named ones. Debugging with .net source code attached I've got it to where there is a MethodInfo. MakeGenericMethod call. However I cannot look at any of the surrounding data as...
I've scoured the groovy doc and haven't found an analogue, but things there are organized a bit haphazardly. I'm switching from beanshell to groovy and was using the source("fileloc") method in beanshell to inline-include other, utility beanshell scripts for reuse. Is there a standard function to do this in groovy or a best practice?
...
(I'm asking this with Visual Studio Web Applications in mind, but am interested in more high-concept answers)
Recent topic of conversation in my life with colleagues and friends has been how best to structure source files within a project. Not a source-control question or a development-environment question per se, I'm more interested in...
I am trying to find a way to get the source code for (user defined) PHP functions in a string.
For normal code this is easy, using reflection I can find the file and linenumbers where the function is defined, then I can open the file and read the function source code.
This will not work if a function is defined in eval'd code. I do not...
I'm looking for a way in .NET (2.0, C# in particular) for source code to trigger a debugging break as if a breakpoint was set at that point, without having to remember to set a specific breakpoint there in the debugger, and without interfering with production runtime.
Our code needs to swallow exceptions in production so we don't disrup...
Hi all,
I am looking for a source for the processing steps behind Excel functions. For example I would like to know how exactly the function PERCENTILE(array, percentile) works. Having embarked upon a quick search I couldn't find anything really, so was wondering if anyone here knew of a better source.
The reason for my search is that ...
I'm starting work on a huge C++ codebase, and was wondering if someone could suggest good source code comprehension tools.
I usually use doxygen but was curious to see if anything better existed.
Thanks.
...
I have a window with a title on it. When the user selects a choice from a drop down list, the title image can change. The problem is when the image loads, it's a blurred, stretched, and pixelated. These are PNG files I'm working with and they look good prior to setting the source dynamically.
Here's the code I'm using to change the imag...
Imagine this function:
void SoundManager::playSource(ALuint sourceID, float offset)
{
alSourceStop(sourceID);
ALint iTotal = 0;
ALint iCurrent = 0;
ALint uiBuffer = 0;
alGetSourcei(sourceID, AL_BUFFER, &uiBuffer);
alGetBufferi(uiBuffer, AL_SIZE, &iTotal);
iCurrent = iTotal * offset;
alSourcei(sourceID, ...
Hi All,
I have been tasked with implementing TLS/SSL onto an in-house webserver framework. I was wondering if anyone could point me to some good example code that they know of?
I am particularly interested in using GSS API (Microsoft's Security Support Provider Interface (SSPI)). Failing that, Crypto++, I can't use any other type of op...
I tried running 'diff' against two source directories get a patch file with a 'diff' between the two directories.
diff -rupN flyingsaucer-R8pre2_b/ flyingsaucer-R8pre2/ > a.patch
The command above does not seem to work, it generates a diff of everything and I get a 13 MB file, when in reality, it should be a couple of changes.
...
I am trying to convert java 1.5 source code into equivalent 1.1 source. My strategy so far has been to try to cross-compile 1.5 source into 1.1 byte code, and then decompile the 1.1 byte into 1.1 source code.
I see that there are issues with cross-compiling using the -target option to javac. Can anyone explain the hang-up here? Is th...
I'm thinking of making an easy global dark background switch for Eclipse.
For example intercept all the colors that are about to be rendered and replace them: (R,G,B) -> (255-R, 255-G, 255-B).
Can you suggest Eclipse source spots where it can be done?
The current problems are
Every language-color pair must be manually modified
Ther...
What order should headers be declared in a header / cpp file? Obviously those that are required by subsequent headers should be earlier and class specific headers should be in cpp scope not header scope, but is there a set order convention / best practice?
...
Sample case:
class Test {
final Set<String> uniqueNames = new HashSet<String>();
}
But w/ the help of a plugin can generate methods like this (similar to Generate getters/setters)
class Test {
final Set<String> uniqueNames = new HashSet<String>();
public boolean add(String name) {
return uniqueNames.add(name);
}...
The question is related to the post.
I need to install python-setuptools to install python modules.
I have extracted the installation package.
I get the following error when configuring
[~/wepapps/pythonModules/setuptools-0.6c9]# ./configure --prefix=/home/masi/.local
-bash: ./configure: No such file or directory
I did not find the ...
Is there any way of finding which file contains a specific function? I'm using many modules in an application and I would like to see what file contains them. How could I do this?
...