source-code

How to copy .java sources to Ant javac destFolder

Hi, I know how to use Ant to copy files and folders but what I'm interested in is if, and how, I can have the javac task copy the same sources it's compiling to the output directory. Basically, it's very similar to the option to include your sources in the jar task. Thanks in advance, Ittai ...

how to find hidden information

hye im newbie here.. im looking for a hidden information in a source code.. for example the code is var d=document.getElementById('phoneSpan0');d.innerHTML+=0?'0':'0';d.innerHTML+='3';d.innerHTML+=0?'5':'-';d.innerHTML+=1?'7':'0';d.innerHTML+=0?'8':'9';d.innerHTML+='6';d.innerHTML+='8';d.innerHTML+=String.fromCharCode(19+30);d.inn...

isUserInRole source code or HttpServletRequest

Hi! Where can I find the source code for isUserInRole? All I find are only interfaces or calling to super.isUserInRole ...

ASP.NET/PHP/HTML: Retrieving HTML source code from a website

Hi, Is it possible to retrieve/get the html source code of a certain website and use it in a ASP.NET web application to display them? (without using the copy-paste, of course) I want my ASP.NET web application to use them as part of a code sample feature I currently working on. I'm also considering working it on PHP. Any suggestions? ...

Can I recover older Oracle pl/sql source code from a package body after i have replaced with newer code

I had created an Oracle PL/SQL package with a header and a body with lots of code. Later, I ended up accidentally erasing the code from that body after reran the CREATE OR REPLACE PACKAGE BODY... statement with different source code (which actually I intended to save under a different package name). Is there anyway I can recover my older...

HTML Line Spacing & Compact Code

I was just wondering if there was a professional opinion on the matter of compact code. Does it really speed up page loading. Example: <body> <div id="a"></div> <div id="b"></div> </body> VS <body> <div id="a"></div> <div id="b"></div> </body> any ideas? ...

How can I run an app's source code that I got from the Android source code?

For all of you android devs out there that have the Android simulator running on your comp, you know that there are a few built in apps that are already installed on your 'phone'. I had an idea for an app that would utilize a function that is already being done in the spare parts app that comes already installed. I went on to the andro...

Auto height and the float issue.

I have had this issue before and can't remember if and how I fixed it. I have to create a scenario where I have 2 DIV's floated left and right inside a parent DIV. The 2 floating DIV's have height:auto, but the parent ignores them (perfectly logical) and the background of the parent DIV can't be seen. I know what the issue is, but are t...

Where can I obtain the Red5 SOSample Source File?

I was hoping to procure the src for SOSample in Red 5 in order to better understand some of the commands they use within the demonstrations that us SOSample. Edit To Clarify the source is not in their SVN trunk, so I was wondering if people knew if it was available elsewhere. ...

Python Mersenne Twister implementation

I have Python 3.1.2 and I'm using Windows XP. Where can I see Python's implementation of the Mersenne Twister? In the Python docs it is stated that the Mersenne Twister was written in C and the Python History and License ( http://docs.python.org/py3k/license.html?highlight=mersenne%20twister ) states that "The _random module includes c...

Is there a PowerShell code formatter / pretty printer?

I'm looking for a source code beautifyer for PowerShell programs. Ideally, it would be CLI based, but any solution is acceptable. I would like to avoid configuring a generic pretty printer tool; I'd like a solution that works for PowerShell out of the box. Is there such a thing? ...

What are the parameters used to calculate complexity in SourceMonitor?

I recently started using SourceMonitor to review my (and others) code. Though i understand other parameters judged by the tool, i don't know how does it calculates the complexity of the code. As in, what all parameters does it considers to read to a complexity number? Any feedback/suggestion would be of help. Thanks. ...

Why do Java source files go into a directory structure?

as weSuppose that I am creating a Java project with the following classes com.bharani.ClassOne com.bharani.ClassTwo com.bharani.helper.HelperOne com.bharani.helper.support.HelperTwo with files put immediately under the folder 'src' src/ClassOne.java src/ClassTwo.java src/HelperOne.java src/HelperTwo.java and compile them using th...

Is there a preferred method of including the source code(s) of other software you've used in your application?

I've used a few F/OSS libraries in my commercial application. As per their licenses, I am obligated to include their source codes along with my VS2008 application. This is my first time making a "real" commercial application, and I would appreciate some advice on how best to go about including their source codes. I don't want to packa...

how to read the javascript source code in an html page

Is there a way that a javascript function can read the javascript source code of other functions in an html page, so that the function can do some checking job on the javascript source code of these other functions? Maybe a walkabout is how to get the source code of all javascript functions in an HTML page. ...

how to read values from the remote OPC Server

I have created one asp.net web service. In this web service I am using the web method as follows. The web service is related to the OPC ( OLE for process control) public string ReadServerItems(string ServerName) { string txt = ""; ArrayList obj = new ArrayList(); XmlServer Srv = new XmlServer(...

Good tool to convert sourcecode to PDF?

I've a daunting task of getting familiair and possibly re-architecting large pieces of old source code. I was hoping there would be a nice tool to convert php (in my case), but let's make it more general: any language to PDF, for offline browsing on a Kindle or Ipad Would be ideal if it would create indexes / hyperlinks automatically. ...

What is difference between output functions in php ?

What is the difference between these code snippets? 1) $f = 12.044545; printf("%f",$f); vprintf("%f",$f); 2) echo("echo"); print("print"); Thanks, ...

Do I Own the Source Code?

If I pay someone to write some software for me and our contract doesn't specify, do I own the rights to the source code, or does the company who wrote the software? Who does the intellectual property belong to in this situation? I'm specifically interested in the answer as it applies in the United Kingdom. ...

Does git ignore empty folders?

I created an Android project, added it to my git repo, comitted and pushed my clone to the master. Later I tried checking out the project and Eclipse complained about missing src folders. I checked my repo and the master repo and the src folders are missing (Im sure they were there when I created the project). So can someone explain what...