source-code

XMLHttpRequest Implementation

I would like to understand the low level details of how XMLHttpRequest works in Javascript, however I have not had any luck finding the implementation code within either the Rhino or V8 code. I'm not familiar with the code in either projects, so I may not be looking in the right spots. Is there an available open-source implementation a...

What is the difference between "Source" and "Generated Source"?

What is the difference between "Source" and "Generated Source"? Please explain with example. Edit: 3 July Which source "Search engine" uses, Generated or before generated? ...

How to Un-format a document in Visual Studio 2008?

So there's a messy XML file where all white spaces between tags have been stripped, so it's a valid XML file but it's somewhat unreadable. I press the magic Ctrl+K, D, and the file is beautifully formatted. I edit it, and then I want to put it back into the compressed, hardly readable state, removing all whitespaces between the tags. H...

Please refer a source code level (C#) obfuscator tools

Possible Duplicate: Is there any program that obfuscates C# source code? At first, please note I don't want a .Net obfuscator which works with assemblies. Actually I tried nearly all such tools and after the processing, my application doesn't work normally any more. And the worst thing is maybe there are other hidden caused pr...

Debug into Qt sources

Is it possible to step into Qt sources, e.g. qmainwindow.cpp, in Qt Creator? At the moment I'm seeing the disassembly, but it would be nice to see the sources instead. ...

Adding Disclaimer in PHP source code files

We have a PHP project and this is our first product delivery. We want to add a disclaimer to all *.php files in the project. Is there any free/OS tool that we can use to avoid donkey work :( ? We have around 100 source code files. ...

Updating Android 2.1-update1 to Froyo. I'm feeling lost

Carrier: N/A OS / build number: 2.1-update1 / ECLAIR.eng.root.20100307.043650 Hi there, I'm using a rooted N1 device for development uses only ( Thats why I have no carrier and such..) I have a build which I've compiled from the eclair source tree and flashed using fastboot. I'm trying to update to Froyo so I could pull some needed pr...

Code reading sources

I have heard a lot of people saying that to be a good programmer one needs to read a lot of good code. Can you help me find some good code in Java? Thanks. ...

Do you print your source code? If so why?

Possible Duplicate: Why print your code? For the first time in probably over 10 years I printed some source code. The reason why was so my non-programming wife could use it as a reference for a novel she's writing. Twenty years ago when I worked for a major bank we had to print the source code of every major release. Do you ...

Same simple source code, different binaries on Windows

Hi all, I have a question about the source-code binary on Windows. #include <stdio.h> int main() { printf("Hello, world!\n"); return 0; } The same source code, I compiled twice on Windows (VS 2008 Cmmand Prompt: "CL"), but I got different binaries. cl new.cpp Can you guys tell me why, and how to avoid that? Thanks. Pet...

Should I put a license on code submitted to a potential employer?

I am currently applying for a position and have been asked to essentially write two small apps. I started wondering if I should put some license on the code before I submit. I honestly do not keep up with all the different licenses, but know there are many to choose from. The question is should I put a license on the code? If so which o...

How to "force" a file's ISO-8859-1ness?

I remember when I used to develop website in Japan - where there are three different character encodings in currency - the developers had a trick to "force" the encoding of a source file (so it would always open in their IDEs in the correct encoding etc). What they did was to put a comment at the top of the file containing a Japanese ch...

An Ideal Source-Code Editor that support Internet Share and Chat

I am going to co-develop src with friends on internet. Is there such a source-code editor that have these features: Shares Code Real-Time showing who is editing the code ( or in other words I can see another person's code and he can see mine...and we can make change to one another's code) Shares file through internet Have Side-bar Chat...

Source code of PThread Library?

Hi, I am trying to find the source code of pthread library. (I guess its a supposed to be a part of Linux source code) But somehow can't find any good website that has it. I like this website: http://lxr.linux.no/#linux+v2.6.34.1/ where I usually find what I need. Somehow pthread source is not searchable. Anyway, I wanted to mention t...

How to navigate around and get familiar with large Java/Java EE code base?

Hi All, This questions is inspired from How to navigate around and get familiar with large C or C++ code base ? This is indeed an major problem for someone how has just joined the team and who is not aware of Application Architecture and Code Design. Currently I am in similar situation but in my case I have very large Java/Java EE cod...

getting computers name using c # code

Hello, I am using this code in cs file into an asp.net page for getting ip address from the loggeg user: cmd.Parameters.AddWithValue("@ip",System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]); I would like to have also his computer name, as well?! ...

can i rebuild sound code in Windows

i download AlarmClock in the sound code of android,i have modified it,but i want to run it can i rebuild AlarmClock in Windows, if i can ,how? thanks. ...

Rich WPF FocusVisualStyle.

Does anyone have a rich FocusVisualStyle to share? I am looking for something like the Silverlight 4 one or Google TextBoxes in Chrome or like Visual Studio 2010. Examples: ...

What java datastructure/library do you use for a Tree

I have a Region Hierarchy(think State, District, Taluk, etc) that I need to represent using a Tree. I saw a few implementations of a Tree in the public domain BUT not sure how good they are and how well they are maintained. Apache Collections doesn't have one of those NOR do the google collections. I'm wondering if any of you can point m...

How can I quickly search my code using unix?

I frequently search for a token, perhaps a function name, throughout my codebase. My traditional method would be to grep for the term itself. However, the codebase is so large that I can't do this efficiently (it takes minutes). Is there a way to do this efficiently? ack (which ignores irrelevent files such as revision control files) i...