source-code

Looking for Java code beautifier (or maybe not beautify, but something to make code more elegant)

I don't know how to describe it, but I'm looking for a tool that makes suggestions to my code on how to be... more elegant. For example to make a nested if() statement a switch statement. something like this. As I don't know how to describe my problem I don't know what to search for. I thing code beautifier do not specifically change st...

Java Eclipse executable jar file

Hi All! I am new to eclipse + Java. I am trying to create executable jar file with eclipse export option. It works very well. But in my project, I have almost 10 packages (my own) and 4 main classes. I want to create a executable jar file that can execute any of main class from 4 main classes. For example: Double click write class name...

Is there a tool for formatting Delphi code?

Possible Duplicate: Online Code Beautifier And Formatter for Delphi or Pascal I've got unreadable Delphi source code. Is there an online service I could use to reformat the code? ...

Pasting code and keeping the correct aligning

I don't think I'm alone in spending a fair amount of my programming time moving bits of code from place to place, often within the same file. However, in my experience thus far, every time I cut/copy and paste some code I need to manually realign the spacing so that the pasted code is corrected indented and aligned. For example in the ...

What broke my Android Development Environment?

Things had been going swimmingly, but as of last night, when I hit a breakpoint in my own code (not Android code--I've found plenty of people looking for answers to that question, and I get why that's not available), I'm presented with "Source Not Found". I can try "Edit Source Lookup Path ..." all I want but to no avail. What might hav...

How do I apply a patch from gist to the Django source?

I want to try out a patch on gist that modifies the source code of Django: gist: 550436 How do I do it? I have never used git so a step by step instruction would be greatly appreciated. Thanks ...

Where to find PHP games apps?

where can I find an running exemple of game developed in PHP? I'm just finding game engines, and pages that says "php games" but running under flash... ...

Is there a way to hide source code from all browsers?

Possible Duplicates: How to disable (View Source) and (Ctrl + C ) from my site How to disable or encrypt View Source for my site Is there a way to hide source code from all browsers, disabling the right click and removing the view source option in Mac and PC? ...

Java search replace

Hi All, I want to do search and replace with the help of java. I have TreeMap that contains file names and its contents. I have one another TreeMap that contains word and its meaning. I want to search file contents and replace found word with its meaning. Thanks P.S: It is not an assignment. I used simple reading file and replace ...

Where can we get explanations of the code of open source projects

Apart from inline code comments and the discussion forums of the respective open source projects, can anybody point me a single place where I can get the explanation of the code of open source projects, Is there any wikipedia thats dedicated for this where we can find user/community contributed explanations for the codes. ...

Need some help completing a bumptop-ish selection tool.

Hi: I'm in the midst of creating a Bumptop styled selection tool. Right now I got as far as creating the tool itself (which actually works pretty good) and spreading some random square items on the stage. This is the class that creates the selection tool : package com.reyco1.medusa.selectiontool { import flash.display.Sprite; i...

Freebsd - Transmission sources

I need my torrent client 'Transmission' to say to a torrent-tracker that it is another torrent client (uTorrent). How can I do it? May be there is a simple way... If no, the question is - where can I edit sources of the transmission port on FreeBSD and then install it? ...

Java CSV row separation

Hi All, I am working with CSV in java. I am having one problem or you can say I don't know how to do it :) I have a CSV file that is as follow: a,4,5,3,2 b,6,4,6,7 c,5,3,7,2 2d,1,4,5,9 4e,4,2,5,7 m4,7,5,3,6 . . . xyz,1,6,4,8 I want to get all the rows from CSV which contains these following labels in first column, I have all followi...

Google appengine Java SDK source code?

Hello, Looking for the source of some classes from the AppEngine Java SDK, namely com.google.apphosting.utils.remoteapi.RemoteApiServlet (mentioned here). So I've downloaded http://googleappengine.googlecode.com/svn/trunk/ where I expected to find the source code of the class, instead I got zip: maxim@maxim-desktop:~/Desktop/sources$...

Cross source file template instantiation and use

I have a class with several template member functions that I would like to distribute among several source files to speed up compilation times. (The templates are implementation details and are not intended to be used outside the class, hence their definition in sources not headers.) How would I go about splitting up these templates in ...

What to do about a 11000 lines C++ source file?

So we have this huge (is 11000 lines huge?) mainmodule.cpp source file in our project and every time I have to touch it I cringe :-) As this file is so central and large, it keeps accumulating more and more code and I can't think of a good way to make it actually start to shrink. The file is used and actively changed in several (> 10) ...

is it possible to convert exe file to VB Project?

i lost my VB6 Project source files accidentally. but i have the executable files. is it possible to convert the exe files to VB Projects? is there any opensource/free decompiler available? ...

Creating a private folder in TFS 2008 Source Control System

I have a TFS2008 installation with a single TFS project that we use for all of our source code. Within this (super)project, we have a whole tree of sub projects. Our projects Contributors group has the default (read, write, checkin,, checkout etc.) access to this whole tree. We have a folder within this structure that we want to restr...

GPL, Drupal, and Source Code to Related App

I realize that if I choose to distribute a custom module for Drupal that I must provide equal access to the source code of said module (without obfuscation). My question is what about a phone app that used data from a Drupal Module? Do I have to release the code to the phone app as well? The app would not function entirely without the d...

Source codes of Famous Games

Hi! There are many hit games, that are out-of-date, and have their code released to the public. Such code would be of great interest for the programmer, wishing to see some good (and often creative) principles of game design, but not the theory (as in many books), but the real deal. So, do you know of any sites, providing lists of (no...