source

Visual source safe headaches - Deleting files

I will pre-empt and say we are stuck using VSS here so changing it is not an option. Anyway, one person, 'user a' is deleting a file from their project. They then do a 'get latest' on the folder and it doesn't come back, so the user assumes they have truely deleted it from the project. We have another user, 'user b', who then looks at ...

Java static source analysis/parsing (possibly with antlr), what is a good tool to do this?

I need to perform static source analysis on Java code. Ideally, I want the system to work out of the box without much modification from me. For example, I have used Antlr in the past, but I spent a lot of time building grammar files and still didn't get what I wanted. I want to be able to parse a java file and have return the charact...

Is there a way to pass params to a script in TCL that is run using eval source?

I have a script that calls: eval source \{$scriptfile\} where $scriptfile is another TCL script. Is there way to pass parameters to the script? I'd like to do something like: set sampleData "ID=14678934" eval source \{$scriptfile\} $sampleData I know that this isn't allowed but, is there a way to pass data to a script that is ...

Recompiling php troubles

Hey, so I know there are somewhat similar questions on here, but I haven't been able to get a helpful answer (not that they're not helpful, just not for my specific question) on another thread. Also, I'm not quite sure this isn't a SF question, but here goes: I recently was working on a VPS that had php sans curl. I've tried working ar...

Restoring a subversion repository to workcopy revision

My subversion VM died the other day (host hardware melted) and I had to restore a backed up copy of the vmware server image. The restore went well and the VM is running again on a new host. The problem I have is that my restored repository is at revision 60 but my working copy on my PC is at 66. When I try and commit my working copy I g...

Filtergraph data flow

I have a filtergraph with a custom source filter that delivers uncompressed RGB24 bitmap data and uncmompressed PCM sound through two pins. The graph compresses the data using arbitrary compression filters and saves it to a file using an arbitray writer filter. Internally, for each frame there is generated a sound sample with an equal ti...

Ant MXMLC task with arbitrary list of source/lib paths?

Does anyone know of a way to use the mxmlc task of the Flex Ant tasks with a user-definable list of source path or library paths? The idea is that the user can define an arbitrary list of source paths and/or library (swc) paths into an Ant properties file and the build file takes these values and evaluates them for use in the mxmlc task....

problem in creating jar file, eclipse.

Hi, I downloaded the source of some api like wsdl4j and i made changes to it, now i want to use this source as a jar file. But when i export it using eclipse export->jar file option and then add it in the buildpath compiler shows me the errors on the methods that i created in that wsdl4j source... does any body has idea how to tackle th...

how to add language support to android

hello i hope someone put me on the right direction with my problem i want to work on supporting my language, specially the writing on android we use Arabic characters with little modification ( like parsi, urdu etc).. i was hoping android has fully supported Arabic , then i would make changes to work with my language. but even 2.2 dos...

What is all this stuff in the CKEditor folder?

A while ago I downloaded the latest version (3.1) of the CKEditor text editor. The directory name was ckeditor and I deleted the ckeditor/_source and ckeditor/_samples sub-directories, then I referenced the ckeditor.js file in my html pages, like so : <script type="text/javascript" src="ckeditor/ckeditor.js"></script> this works we...

What build param(s) to use so VS 2010 can gen .obj & link .objs but NOT create an .exe?

Question title pretty much asks it all. I know I could set the project to be a .lib build and have it fail to build/link a .lib .... and the .objs tend to be in the appropriate config dir That seems like a shi*-a** backdoor way to get VS to gen objs Is there a flag/param I can set somewhere in the property sheet properties/options for ...

How to specify arguments to a SWF loaded using a SWFLoader whose source was a ByteArray?

When a path is specified as the source argument of a SWFLoader, arguments can be appended to the path so that the SWF runs with the desired arguments. <mx:SWFLoader id="mySwf" source="pathOfSwf.swf?arg1=1"/> How do you do the same thing when instead of a path you specify a ByteArray as the source argument of a SWFLoader. <mx:SWFLoade...

Looking into the Android source, specifically around activity & service lifecycle

I want to look more into the workings of Android. More specifically I want to know how Applications (including Activities and Services) get launched by the system. I also want to be able to see who calls their lifecycle methods and how objects get allocated and recycled. I have downloaded the Android source from git and browsed around f...

cURL - scanning a website's source

Hello everyone, I was trying to use the program cURL inside of BASH to download a webpage's source code. I am having difficulty when trying to download page's code when the page is using more complex encoding than simple HTML. For example I am trying to view the following page's source code with the following command: curl "http://s...

Looking for single file telnet server to hack into application

Hi, I've been looking for some very simple to lift and simple telnet source code to build into an application I am working on. I have looked at some traditional Linux applications of this and they are build and they are overkill, comprised of about 20 files, and have way too many dependencies. I just want simple, and (NO) I do not ca...

How to display nested XML-elements in report with XML datasource in Active Reports 6

I have following xml structure and I would like them to display in the report. {...} <order id="121"> <item> <fees> <fee id="23"> {...} </fee> </fees> <discounts> <discount id="1"> {...} </discount> </discounts> </item> <item> .... </item> </o...

Query Execution Plan Tool - Java

Hi Does anyone know an open source java solution to display the Query Execution plan of a query send to a database ? Would prefer a graphical output like a graph with nodes etc. EDIT : Used Database is Oracle ...

Do you know of any programs worth reading?

One of the top tips for new programmers is to read programs, like the "old masters" who studied paintings of their ancestors, all programmers should also study programs of their colleagues. The question is, which programs are worth the trouble? ...

Parsing Java Class From Perl or Python

I want to get a .java file, recognize the first class in the file and getting information about annotations, methods and attributes from this class. Is there any module in both languages that already does that? I could build up a simple regexp to do it also, but I don't known how to recognize in the regexp the braces indicating the end ...

How many gumballs in the jar. 2 errors

Trying to code a guess how many gumballs in the gumballs jar, kinda thing. There are two problems I keep getting: It's supposed to say if the guess is to high or to low but that only happens when i enter a number over 1000 and it says: Enter your guess: 1001 Too High! Too Low! Enter your guess: If you type a letter or phrase it go...