source-code

What application can I use for finding the differences between two source code files?

Possible Duplicates: Best file comparison tool Best Diff Tool? Duplicate: this is a duplicate of Best file comparison tool and many others. While it may be fun to post our favorite diff tools, I recommend we close this question as a duplicate, and answer in the original question. What application do you use for comparing tw...

PHP: Pubsubhubbub and realtime information (for Subscriber)

Hi all, I started now with Pubsubhubbub (and all about realtime things), but I having trouble with the Subscriber option. I'm trying to develop a webapp in PHP to: Subscribe a RSS (previously Published) to the Hub (http://pubsubhubbub.appspot.com/); Read notifications (updates) from the Hub for the subscription; without succeed!!! :(...

java calculation problem

So here is my problem. i search for a word in a string and put 0 where that word occur. For example : search word is DOG and i have string "never ever let dog bites you" so the string would be 000100 . Each 0 or 1 represent found and not found respectively. 1 can also be the number of occurances of searched word in the string. For examp...

Tools for understanding large codebase

Hi! My whole life I have been programming in simple plain text editor. Lately, I was contemplating about joining an open source project which is fairly large and written in C. I downloaded the sources, started to look around, read this, forget that... Then I thought to myself: this can't be true. This is 21st century there must be som...

explain the code - custom class definition & use (ruby)

could somebody explain the code below for me? Only the lines where is #??? I asked and got an answer It does 100% what I asked for. Now I need to add some code and I do not know where. I tried and it did not work. I used custom class in ruby twice so far otherwise I used to use arrays. Is it actually custom class used below? :-) I nee...

Maven plugin for gathering source code statistics

Our project is based on J2EE and we would like to know if there is a open source maven-plugin which either integrates with cloc (Refer http://stackoverflow.com/questions/1353631/source-code-statistics) or other tools? ...

Online source code accepting system.

Dear all I need your input. I am developing a web application which accepts source code online, same like stackoverflow. Source code resides inline with other details and one content may have code in multiple languages. I am very much impressed with stackoverflow's system, can anyone please let me know how should I proceed to develop ...

Sql code formatter for .NET (SQL Server 2008 dialect)

Can you please point me to a an SQL code formatter, preferably as an opensource library for NET? I need to make sql source code invariant to the formatting, because i would like to make consistent diff on version control system merges, and it's not easy to maintain in generated code mixed with snippets of handcrafted code. My idea is t...

is it strange to generate controls into placeholders to avoid the "ugly" long Control ClientID's?

More and more I dislike this long ID's by server controls... But the other method to generate it in codebehind I think is not the sense of the easy thing of asp.net, is it? So would you prefer that method by yourself? I'm going to create medium and big projects next year in company, thats the reason why I ask. Me self come from PHP and...

Java jama Sigma problem

Hi All, I am using jama libarary for matrix. I used following matrix but when i tried to get S, it gave me error. 1.0 1.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 11.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 12.0 2.0 1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 13.0 3.0 ...

Help with question/form code PLEASE

I am in desperate need of some help to write some code for templates I need for work. I want to write a number of different options but I need to know how to do a basic code and have fields come up based on answers from the previous question. Something kind of like this... Select Letter (then have the different letter options and depen...

How does one implement a push service for a blackberry app?

Hi Everyone, I am a newb in blackberry development. I am in the process of learning it. Can someone refer me a good tutorial or starting point for implementing a push service for blackberry apps? I've read the basic theoratical knowledge of push service need to have a sample to code to start with. Thanks, TF ...

Effect of unused methods and properties on library or executable

I'm playing around with creating a source code generator for C# (.NET). Will generating properties or methods that never get called cause my code to run slower? How about inserting "using" statements for libraries that don't get used? I'm assuming the compiler is smart enough not to build in the unused "using" statements, but there is n...

What is the significance of a source folder/directory with a .tproj suffix ?

What is the significance of a source folder/directory with a .tproj suffix ? ...

How to "draw" source code comment using text diagram?

I found following diagram from http://webkit.org/coding/major-objects.html. Is there a tool can draw graphics using characters like this? +---------+ | Chrome | +----+----+ | +---+---+ +----------+ | Page +---->| Settings | +---+---+ +----------+ | +-------------------------- ... other Frame objects...

Is it bad practice to use an if-statement without brackets?

I've seen code like this: if(statement) do this; else do this; I don't like that, I think this is cleaner and more readable if(statement){ do this; }else{ do this; } Is this simply a matter of preference or would one way be recommended over the other? ...

Java Clustering Library

Hi All, Thanks for reading my question. I am looking for a light weight clustering library in java. I don't need 100s of clustering algo in that library just 5 to 7 algo would be fine for me. I am sure, you are going to ask. What kind of algo. do you need and for what purpose :). So here is the answer. I just need to do classification o...

PHP's PDO Source Code

I've got PHP installed from the repos on my Ubuntu 9.10 local machine. Where can I find the source code to the PDO classes? ...

android lock screen source code

Hi I am looking for the source code of the android lock screen. It can be any version (1.5, 1.6, 2.0, etc) Here is the link to the code: http://android.git.kernel.org/ I tried to look into the platform/frameworks/base.git but it looks like is not there. Maybe is closed source? Thanks Daniel ...

Sample source files for Linux Device Drivers, Third Edition

I am working through Linux Device Drivers, Third Edition and while the book is released under Creative Commons Attribution-Share Alike license, I can't seem to locate the source code for the examples used in the book. Some Amazon reviews mention that they do exist, but fail to provide a reference. In the book snippets you can see that ...