source-code

Display any website source code for copy/paste

Hi everyone... I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code... It's almost like an HTML generator using info from mySQL, so users can custimize each HTML code. I have everything cov...

How to convert source code to a xml based representation of the ast?

i wanna get a xml representation of the ast of java and c code. 3 months ago, i asked this question yet but the solutions weren't comfortable for me srcml seems to be a good solution for this problem but it does not support line numbers and columns but i need that feature. about elsa: cite: "There is ongoing effort to export the Elsa A...

Where to find the Google Talk Android client source code?

I found an app called IM in Android's trunk on git, but that doesn't look like the Google Talk app that comes installed on Android phones. Does anyone know if that source code is even published? ...

Problem formatting in Eclipse

I have a method in Eclipse as below. public String toString() { return "HouseVo [ " + "Name : " + this.name == null ? "" : this.name + "Address : " + this.address == null ? "" : this.address; } When I format it becomes: return "HouseVo [ " + "Name : " + this.name == null ? "" : this.name + "Address : " + this.ad...

Visual Studio - "{ }" settings

Seriously, I don't know what to google. Here's the thing, I like this java-like code writting: if (condition == true) { doSomeStuff(); } But VisualStudio "helps" me with his own "style", which I don't like and I am unable to change (after rather big time of desperate checking all settings :/) if (condition == true) { DoStuff(); ...

Crawling within a pdf

Hi, I'm developing a tool that searches the keyword entered by the user on a given site. My problem is, it searches the keyword only on html/web pages but not on the PDF/MS-Word files found on the site. Can anyone suggest me some api/tool or provide the code that can search text from the given online PDF/MS-Word/Text file? ...

How to explain to a non-technical person what source code is in a few words?

I'm writing a bit of open-source propaganda and I need to explain what source code is to a non-technical audience in ten words or less without them losing interest. I've tried things relating to recipes and the like but I'm not an English major so I'm having a really hard time with this. Any ideas? ...

How best to organize projects folders for unit tests in .NET?

So I'm trying to introduce unit testing to my group. I've successfully upgraded a VS'05 web site project to a VS'08 web application, and now have a solution with the web app project and a unit test project. The issue now is how to fit this back into the source repository such that we don't break the build system and the unit test proje...

Static code analysis for new language. Where to start?

I just been given a new assignment which looks like its going to be an interesting challenge. The customer is wanting a code style checking tool to be developed for their internal (soon to be open sourced) programming language which runs on the JVM. The language syntax is very Java like. The customer basically wants me to produce some...

Source code annotation tool

I'm looking for a tool with which I can annotate source code. I have some 3rd party source code (JavaScript) I need to understand and I don't want to change it (add inline comments) so that line numbers can stay intact (for communication with others), I can avoid accidentally changing something and my annotations stand out compare...

How can the Kindle be used as a source code reading tool?

I'm a programmer. I want to be a better programmer. I want to read more source code written by other people (especially open source projects). Also, I'd like to be able to have a on-hand searchable reference to all of that source code so that I can pull up reference to structures and snippets. Does anyone know of a way to use the Kin...

Java JDK Source Code?? Where to find it?

Hi, I like to see what a method in the Java API does. So I want the JDK Source Code. Before I re-installed Linux I had the scr.sip file with all the code in it. I just had to tell Eclipse this file and I could see the code. But now I haven't the file anymore... So the question is: Where can I find it? Please don't paste the Google resu...

How do I compile irb from source on Ubuntu?

I would like to compile irb from source without any optimizations so I can get more information while stepping through (interpreter) code using gdb. I have successfully compiled ruby 1.9.1 without problems, but I cannot find any documentation regarding irb. I believe that irb is included in the ruby 1.9 source, but have not been able t...

Adding images into source code

Is there a way (or an editor) that allows me to link an image/files/http links from within a source file (*.java for instance), sort of like a rich text document ? This way, while reading the code I can quickly look at the appended image (augmenting the comments), instead of opening the browser etc. ...

Do your admins modify your web.config files?

I'm wondering how other developers are handling source code conflicts for config files when system admins modify them in production. For example, if a system admin updates a appsettings key on the production server and then my team publishes out a project, it will overwrite that key. How do you handle config file updates in your organiz...

Displaying .aspx and .aspx.cs files such that it's not understood by the browser

I have to give the user the option to upload his own aspx and aspx.cs files on to the server, and adjusting the hyperlink to point to a page which would do the following. Display the aspx and aspx.cs files code onto the page without actually rendering the code. The browser should not understand anything and while reading the files to d...

How do I get callgrind to dump source line information?

I'm trying to profile a shared library on GNU/Linux which does real-time audio processing, so performance is important. I run another program which hooks it up to the audio input and output of my system, and profile that with callgrind. Looking at the results in KCacheGrind, I get great information about what functions are taking up mo...

Order source code alphabetically by function name

I use Geany as text editor (windows). It shows the functions list sorted alphabetically and I would like to have the actual functions in the source code sorted in that way. Is there any program to process the source code (php) and output the functions sorted alphabetically my name? ...

view source code of page from url in textarea

I have one problem. I have one button and one textarea in a frame.I want to show the source code in that textarea when I click on button. show source code of URL that I want to show. help pleas! ...

.NET sources to download

Where can I download source code for the .NET Framework? I mean sources of libraries. I need the source for reflection methods like invoke and other. ...