source-code

getting android source for android.hardware.Camera

I have been trying to find the source for Android's Camera class so that I can examine how it calls the drivers that it is supposed to interface with. The API that android provides is insufficient for my purposes, and I am hoping to be able bypass that API. However, I am having trouble finding any documentation, and am resorting to acces...

Converting BCI (bytecode indices) to source code line numbers

I am writing JVMTI code to profile Java programs, which mostly entails obtaining stack traces from random threads at fixed time intervals using the function AsyncGetCallTrace. Thus, I am able to obtain CallTrace structures, each of which contains an array of CallFrame structures, which contain data about individual frames in a stack trac...

C# read HTML/PHP files code

I want to write an application using the C# that takes a URL as a parameter/input and then get the source code of the page, extract some URLs and some text based on given criteria ... ...

Where can I find the source code for the Android Development Tools (ADT) plugin for the Eclipse IDE?

I can't find the source code for the Android Development Tools Plugin for Eclipse. It seems to have been moved a few times, and when I google the question, the answers point to the wrong places. Also http://source.android.com/discuss seems to be down. ...

Please Optimize My Pearson Code

Hello there...I was wondering if you can make the opization of my code. Because, when I aplied in localhost the running is about "17 MINUTES" ( calculation with 100000 query) For data is like this : $data[UserID][ItemID] = Rating ==> $data[1][1] = 5; This is my code : <?php include "......."; set_time_limit(0); ...

What is the best way to store and view a Source Code Library?

First of all I have been away from SO for a few months, had to take a short break from coding (sometimes I have to disconnect for short periods so I don't go crazy). Point being, forgive me if this question is not appropriate or is a duplicate, I did a search but was not able to really find anything too similar. So my main question, ...

Develop a native source code for Android and BlackBerry

Is there a way to develop classes for Android and BlackBerry ? In this I mean that BlackBerry and Android have different collections. So I would like to know what is the best way to develop such files (reflection, different files, ...) ...

Useing the Defli 7SE Media Player

Hi, I am studying computer programming at school and have a project, in this project I want to use the Media Player to play videos, and require codeing aswell as notes as to how it works, any help will be usefull. ...

Source code license for closed (non-open-source) software components

This is a question about licensing 3rd-party software components, which are to be included/used in your own software. When you license a software component from a component vendor, many vendors will also allow you to get the source code (for an extra fee). I'm talking about a not-for-resale and not-for-redistribution source code licens...

Multiple source files in Haskell

I'm writing my first big project in Haskell and I'd like to split it across multiple files. So far, I have written two modules, Parse and Eval. I'd like to have a Main module that just includes these two modules and specifies the main function. I have the files Main.hs, Parse.hs, and Eval.hs and import them in Main, but this happens: Pr...

Looking for code snippets, library, or toolkit to modify a USB Flash Drive's serial number

I've been writing some tools to interact with a USB Flash Drive (removable drive) for our portable application. We are going to be tying some relevant information directly to the flash drive via the serial number (device serial number, not the volume serial number which is formatting based) I am able to read the device serial number. Wh...

Search engine for website source

What I'm looking for is a search engine that enables me to search websites for a specific code-snippet.Specifically, I'm interested in the occurrence of a javascript script that displays a layer ad on the target website. Can anybody think of a way to make this happen? I assumed that there was some kind of search machine that simple craw...

source comments with questions

I'm not sure if this is an appropriate question. If not, then remove without mercy. I've frequently encountered source code comments with questions in them. Like //Are we ever gonna need this? //todo: may be this should be moved some place else? I've written such comments myself. What I never did in my life is answer those questions ...

An open source version of 1st SMTP Server?

I am looking for something like 1st SMTP Server but open source, I have searches a lot of sources but all I found are samples about a server to receive/store msgs (but not send) or how to connect to a external server not how to turn your pc into one. I am looking for a sample in any of the ms visual studio languages or delphi. ...

How to make GWT find source in linked folders?

I'd like to create a GWT (2.0.4) project but with my source in a common java directory that's not kept under the GWT project directory. I did the following: 1) Created new project 'game' in package com.mycomp.project.game. This worked fine, with its source under C:\java\Projects\game\src\com\mycomp\project\game. 2) Copied the code in...

Do repository sizes increase within time and revisions?

Hi, All source code hosting services have size limits. I am wondering that does that mean my files can be up to that size -- or that the repository is limited to that size? Say I have 5 files of 100 kB, if I keep changing them and committing, will the repo size get larger? For example, Github.com smallest plan has a limit of 0.30 GB, a...

How get to pretty HTML source code from PHP generated output?

When you look at the source code of PHP generated output usually everything is on one line, it makes it very hard for front end developers to read the code and trouble shoot. So is there a way to get PHP generated output to go from this: <ul><li>Hello</li><li>Hola</li><li>Bonjour</li></ul> to <ul> <li>Hello</li> <li>Hola</li...

How to begin reading a huge amount of source code?

I'm interested in a specific Java-based project and want to understand how it really works. My main problem is that there are different versions of documentation which are inconsistent. The source code is mainly not commented and has nearly 150 kLOC (according to sloccount). So I have not idea where I should start. What would you recomme...

is there something like sonar for fortran?

Are there any quality control systems for fortran as there are with java? i used valgrind intensively to ensure i have no memory errors, is there more out there, preferably as freeware? what are your experiences? ...

Should I bundle source and class files in the same JAR?

Separate Jars When creating JAR files, I've always kept the source separate and offered it as an optional extra. eg: Foo.jar Foo-source.jar It seems to be the obvious way to do things and is very common. Advantages being: Keeps binary jar small Source may not be open / public Faster for classloader? (I've no idea, just guessing) ...