source-code

Generate UML class diagrams from C++ source files?

With doxygen I can generate nice diagrams but doxygen lacks a deeper analysis of the relationships between classes. It recognizes derivation but other relations are not understood by the tool. Which better utilities are there (commercial or not) that generate more complete UML class diagrams out of C++ source files? PS: The tools availa...

PHP source code "obfuscation" with eval and rot13

I once stumbled upon an online PHP source code "obfuscator" that scrambled the code using a combination of str_rot13 and uuencode. The obfuscated source was a string being executed through eval(). I don't remember the site's name – is there a way to make code unreadable using abovementioned functions? EDIT: I think the obfuscator also ...

TFS Simple Merge Issues

It seems as though my scenario is about as simple as it can get. I have Main and a branch called Dev. I picked a directory in Dev that has only my code and did a Merge (based on all changesets up to a specific changeset. First question, does it immediately checkin the merge, or I should do a checkin right after that? I ask because o...

Code for sorting using map reduce in c or java

I need a code or help to write a code in c or java to demonstrate the power of map reduce. ...

Source code needed for calculating quaternions

I have gyroscope + accelerometer data at each time period T. I want to calculate the rotation of the object at each time - it can rotate on its axises. So I've read that it is convenient to represent the rotation of the system in terms of quaternions (not in Euler angles). Is there any source code that can transform from angular veloci...

Is there a general purpose source code documentation parser?

I want to document my jQuery plugin and I am a friend of putting the documentation - as usual in *doc approaches like Javadoc - together with the source code (so that I don't have to maintain it separately or even worse, twice). Unfortunately JSDoc already fails on the standard way of wrapping your jQuery plugin source into an anonymous...

Where to store the unit test classes?

So far I've always stored my unit test on my HDD, as I'm the only one in the company to actually care about them, but I'm thinking of cheking them in the repository in order to use them in my CI server, and look into code coverage, so I'm wondering... where do you find the corresponding projects to be better stored in a SVN repository? a...

There is a way to use CLASS_EXISTS and __autoload without CRASH the script?

Example: ClassName.php <?php echo "This will crash all"; ?> In another file... foreach ($FILENAMES_WITHOUT_DOT_PHP as $name => $value) { if (class_exists( $value )) { echo "ClassName exists..."; } else { echo "ClassName doesn't exists...."; } } The output of this code is: This will crash all Instead o...

How to know the source code project of a referred web service?

A project, called P, of my solution refers to some web services whose source codes are in other projects in the same solution. Those web services are coded by other colleagues not me. From within1 project P, I can see these web services in Services References. What I want to know: The source code projects of each of those web services....

Which html code beautifier would work form CMS?

Is there any open source HTML/XHTML source code beautifiers written in PHP? By beautifier I mean library that correct white space indents and improve code readability and can be integrated with CMS. ...

Where I can get md5-function on pure php?

I need a source code of md5 function written in php. (Not C, really on pure php) Where I can get this? Thanks. I need it to make some changes to the algorithm. ...

How do I get source code from Google code?

How can I get editable source code off of Google Code? (I'm looking into SipDroid and Siphon in particular.) EDIT: I'm not looking to check back in, I just want the source so I can use it in my project. ...

Question on source code copyright and developer rights (if they exist!)

I am an indy dev/student and I recently had a mandate to build an client-server iPhone application for a students association (for a low amount of money). The contract stipulates that a fully functional application has to be delivered, and must have the following features : (list of end user features). There's no mention of source code...

Code searching / browsing / cross referenced web sites

I have stumbled across many websites that sites that let you search and browse code across many different open source projects. Some even have cross referenced capabilities and code syntax highlighting. But I have not found a goto one. I always stumble onto them from google because I'm usually looking for the source for a particular Ja...

Where can I find the fpmake.pp framework source?

Hey guys, well Marco actually :) Where can I find the initial effort from the person who started fpmake.pp so I can pick up and/or continue. I'm about to get into a very complicated, in terms of building rules, project and I would really like to master the whole thing... OR bend it to my will :) ...

removing trailing whitespace for all files in ediff-trees session

Hi, I am using the very handy ediff-trees.el http://www.emacswiki.org/emacs/ediff-trees.el to compare two versions of a pile of Python code provided by one of my project partners. Unfortunately, these guys are checkin in code with trailing whitespace (extra tabs here and there...) which is creating a ton of false positive diffs, whic...

need OCR c# code for text recognition in images

HI i need to find the text that are in images programmatically... Please any one share me the code or links regarding this ...

What is the best practice for safely change a method name in a team project?

I often get scary whenever I need to rename a method since it's very likely to break other working codes. What is the best guidance to follow when doing this? ...

What are some good websites that rate and review publicly available code libraries?

Preferably in C++, but code in all languages would be good to. Should be well categorized for different purposes, and have side by side comparisons. To clarify what I'm looking for. Let's say I wanted to find a graphics library. I would search for that, and it would give me a list: SDL OpenGL Ogre Allegro etc... Each one would be r...

How to quickly locate the implementation of a specific PHP function in PHP's C source?

PHP's C source can be found at http://svn.php.net/viewvc/php/php-src/trunk/. If I want to find the implementation of a specific PHP function, how to quick locate it in that SVN source? ...