scripting

Rhino: restrict Java packages that can be accessed from JavaScript

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. ...

What's the best way to use username/password auth in a Ruby script in OS X?

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...

SVN and VSS sync

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 ...

Recommendations for encrypting/decrypting scripts elegantly?[Now on Sourceforge]

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...

Regarding transfer of data from IDE to some text file

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...

Updating backend database from cooked XML/PDF input: Which is the best tool/approach?

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...

What is the easiest way to assign data in a Windbg script?

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...

Are there any decent scripting languages that use functional programming?

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? ...

Count the number of #defines in a .c file using VBS

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. ...

How to wait in a batch script

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 ...

Should I call my validation script in the prebuild section of my ccnet.config?

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...

Add a "Hyperlink" item type to a list using PowerShell in Sharepoint

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 ...

Batch File Display Startup Items

Hey guys Just wonderin' if anyone here knows how to display startup items from within a batch file? ...

Best tool(s) for decompiling Lua bytecode?

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? ...

Does it make sense to integrate scripting languages to C# apps?

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...

Does the Frontier Kernel have a future?

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,...

Why the php code below is not returning the expected values?

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 ...

Object Dump JavaScript

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 ...

jQuery samples

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 ...

Do you prefer compiled or scripted languages?

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...