When embedding a JavaScript interpreter (Rhino) into a Java application (to be able to script that application), how would one go about restricting the Java packages that are available to scripts? For example, only "java.lang.*" should be accessible.
...
I am working on an automated backup script. This script needs to download an HTTP resource using a username and password. At the moment, the auth credentials are in cleartext, which is obviously not ideal from a security point of view. I recently discovered the security utility on OS X after reading this blog post. security gives you key...
Can I sync files from SVN to VSS automatically?. My personal repository is SVN and my client hava a VSS repository. I'll would to like sync the repository throught scripts or something like that.
Can I?
Thanks
...
Update2:
Thanks for the input. I have implemented the algorithm and it is available for download at SourceForge. It is my first open source project so be merciful.
Update:
I am not sure I was clear enough or everyone responding to this understands how shells consume #! type of input. A great book to look at is Advanced Unix Program...
Hi, This is a doubt regading the usage of cruise control.NET which is invoking my IDE for execution.After the execution,i am unable to getthe data present in my IDE to some text file.Is there any way that i can do it so that if i could get the text file or log files,i could then integrate with my ccnet and in turn notify the developers r...
We have to automate database updation couple of times a month.
My current use case is as follows.
Currently we manually diff the input data with the previous month's
input. If it is XML we use MS xmldiff. If it is Pdf , it is fully done
through manual verificaton :-( .
Once the changes are found, we update the database through a fo...
I have a windbg script that I plan on assigned to run via a breakpoint. In this script I want to tokenize a command using .foreach, but I want to be able to assign a variable to remember something about a current token for the next time around the for loop.
For example, something like this (written in psuedo windbg-script-code):
$this...
I've been reading a bit about functional programming recently and am keen to get have a bit of a play. are there any decent scripting languages that support functional programming? I find that the bulk of my ad-hoc programming is done in Python, so I thought I might be able to do the same with a functional language. Any recommendations?
...
I need to count the number of #define lines in C files (3 of them) using VBS. Please suggest the best way to accomplish this.
...
I am trying to write a batch script and trying to wait 10 seconds between 2 Function calls.
sleep 10
does not wait for 10 seconds
I am running XP
...
I have a ccnet.config section which I had implemented for a demo purpose. So I have a simple validation check which is done before my build is being triggered. So if the validation passes then my build starts of successfully.So validation check is to count the number of '#defines' present in a single .c file which is a.c for example. I h...
I've been a SharePoint admin for a while, and now have been tasked with a bit more of a developer role - which I'm still very much learning. Most things I've been able to figure out on my own or through Google, but this one has me stumped.
For one particular task I need to use PowerShell to script adding items to a list. Normally - not ...
Hey guys
Just wonderin' if anyone here knows how to display startup items from within a batch file?
...
I am really having trouble finding a good working Lua bytecode decompiler. I'm trying to decompile some scripting files I found in a game but they appear to be compiled, yet don't seem impossible to decode. What's the best tool to decompile Lua binaries?
...
I have been thinking about integrating Ruby into my app, but some of my friends at work told me that C# is already very high level. But to me it seems like it has more baggage for doing very quick things.
What do you guys think?
Also if I do integrate, then does it make sense to limit it so that you can do just about anything using the...
Whatever you think about Dave Winer, Frontier is an incredible piece of software. It includes quite a few advances that have yet to be surpassed: the object database, the database viewer, the scripting environment, the hierarchical-including website generation scheme, the elegant scripting language, the mixing of scripts and compilation,...
I am trying to make a few php scripts that will run among other things system calls commands like top and other custom scripts. You can see the code below is super simple. The problem that we are having with the php below is that when I call the php from the linux prompt like:
#php checkTOP.php
it will return the top -n 1 output in ...
Is there a 3rd party add-on/application or some way to perform object map dumping in script debugger for a JavaScript object?
Here is the situation... I have a method being called twice, and during each time something is different. I'm not sure what is different, but something is. So, if I could dump all the properties of window (or ...
Hi, one of these days I came across one of those very long scrolling pages with several great jQuery samples: calendars, sliders, collpsible menus etc. I am googling like crazy to find it again but I haven't been successful, although there are lots of jQuery examples. This website I am talking about (ouch, I don't know its name) has the ...
Since this is wide community using all kind of different technologies, it seems like appropriate place to ask this.
Do you like to compile or do you prefer scripting?
I ask this because I tend to program things in small scripting languages with chosen modules I actually need (like Lua, Awk, AutoHotKey ... ) instead of mainstream langua...