source-code

Loading external source code and using them internally (by re-compiling or something)

Hi, Is there a way in using externally stored sourcecode and loading it into a Java programm, so that it can be used by it? I would like to have a program that can be altered without editing the complete source code and that this is even possible without compiling this every time. Another advantage is, that I can change parts of the co...

How to count words in java

Hi All, I am looking for an algorithm, hint or any source code that can solve my following problem. I have a folder it contains many text files. I read them and store all text in STRING. Now I want to to calculate, if any of the word appeared in other files or no. ( I know its not clear let me give an example) For example i have two do...

Looking for literature on how to organize/deploy code for first open source projects (C/C++, Java, Python)

Hi, I am looking for documentation on how to commonly do the technical part of publishing the source of first open source projects, in particular with library-intensive stuff in C/C++, Java, Python. To give an example, if I built a C++ project with an IDE like Netbeans and various libraries like Xerces-C and Boost, I would like to find...

How to manage @todo programming stuff ?

For many years my code was full of this kind of comments : //TODO : Add ... ... /* *TODO : Fix ... * */ Now I think to create my own @todo javadoc annotation ... but before doing that I want to know if do you guys have better way to manage your todo programming stuff ? ...

LVDiff not working in Git

I'm trying to get lvdiff from meta-diff suite to work with Git. My .gitconfig looks like this: [gui] recentrepo = C:/Users/Tanner/Desktop/FIRST 2010 Beta/Java/LoganRover [user] name = Tanner Smith email = [email protected] [merge "labview"] name = LabVIEW 3-Way Merge driver = 'C:/Program Files/National Instrum...

Cosine Similarity

Hi All, Thank you all great guys here for helping people like me :) I just need small hint .... I calculated tf/idf values of two documents. Following is the tf/idf values 1.txt 0.0 0.5 2.txt 0.0 0.5 The documents are like 1.txt = > dog cat 2.txt = > cat elephant As now I have tf/idf values. Can any body tell me how to use these valu...

Source code comparison app that doesn't require files?

I'm looking for an easy-to-use, free source code comparison app for Windows, which will highlight differences side-by-side between two pieces of source code. Some apps get close to what I want, but are too restrictive by requiring you load in entire files and compare them in their entirety. Sometimes I just want to compare a section of...

"The source file is different...." message in Visual Studio 2008 is result of debugging x32 apps on x64 Windows.

Hi, I'm writing ADO.NET provider. For debugging I use class DbProviderFactories.GetFactory method. This method constructs my inherited DbProviderFactory class that i use for create DbConnection inheritor of my provider and etc.. When I try set breakpoint in my provider code I sow it isn't work - execution doesn't stopped. When I throw ex...

Debugging x86 .NET application on Windows x64

I use the x64 version of Windows 7. My application use some COM servers (usual native x86 COM Servers) that can't be loaded in x64 context. So I decided run it as a x86 application using WOW so I set platform target as x86. But Visual Studio debugger started to show messages like "The source file is different...." for all source files w...

Intellisense for dynamic languages

Hi all! I am looking for various approaches for supporting some level of intellisense on a dynamically typed language. Since intellisense information is based on type information, there are inherent difficulties in implementing this for dynamic languages. Do you know any algorithms or methods to implemented it? ...

Using Tortoise SVN, how can I download the latest version of the source code of my CodePlex application?

I'm trying to figure out how to download the latest source code. Here's what I've done. On my desktop machine, I created my CodePlex app account, installed Tortoise SVN and successfully uploaded my code to the site. The source code now shows on the CodePlex site. On my laptop, I installed Tortoise SVN. I then created a blank folder an...

Using SVN am I obligated to create a new folder and do the checkout without exception?

Refer to my previous question for context: Link Consider this situation: I upload the source code for my app for the very first time from my Desktop. On my laptop machine, I create a blank folder and do the Checkout. Two days pass and while working on my Desktop I decide to scrap the entire project. I delete everything in the Repo by ...

Is there a mini-search engine or documentor for undocumented code?

I'm often working with undocumented code. Much of the time, PHPxref works great for this, but often there's code that isn't a php variable or function, so PHPxref won't search for it. For example, right now I'm working with Smarty templates, and it's not straightforward to search for the smarty variables in the rest of the code. A sea...

What does the i--> opeator do in JavaScript?

So I took a look at the code that controls the counter on the SO advertising page. Then I saw the line where this occured i-->. What does this do? Here is the full code: $(function(){ var visitors = 5373891; var updateVisitors = function() { visitors++; var vs = visitors.toString(), ...

logic to count steps while walking using accelerometer feature in iphone

How can I use the accelerometer feature in the iPhone to calculate distances while walking? ...

shark does not show source code

We are trying to run shark on our iphone application. However, in the analyzed samples it does not list any of our application function. All that is listed are the libraries and when we click on any of those, the assembly code is visible. Most of the sites mention about 'Generate Debug Symbols' option when building the app; I am not able...

Source code repository for copy/paste distribution

Scenario is to use a source code repository as usual except at periodic intervals, take a backup of the delta changes and copy them over to a remote location which should bring it to the same state as the source, the reverse should also apply assuming that no new changes have been committed to the 1st instance in the interim I hope this...

Best source control software for .Net (mvc)

I work for a small development team and have been using Tortoise and Visual SVN (for visual studio 2008 integration) for our source versioning. We primarily develop in c# .Net MVC but have some legacy apps in vb6 and classic ASP (so any system that could handle those as well is a plus). I have never been 100% happy with tortoise (8 mon...

Encryption Algorithm from PHP to Ruby (Vignere variant)

Hey all, I am a bit stuck with this. I have to interface with an api that uses a version of an encryption algorithm that they seem to have ripped from Typo3 written by Ari Kuorikoski. I need to create a ruby lib to interface with their api, so have to port their algorithm into ruby, and I am a bit out of my depth when it comes to encry...

Why I am not able to see source code with FF when I have this if statement?

When I add this code, I am not able to see source code with Firefox. Can anyone tell me why please? if (!isset($_SESSION['userid']) || $_SESSION['userid'] < 1){ $this->session->set_flashdata('error',"You must log in!"); redirect('welcome/verify','refresh'); } This code is in the following controller. cl...