scripting

transparent background in ie6 for png

How to make transparent background for png image in ie6 Thanx ...

How to iterate through luabind class (in lua or in c++)?

How to iterate through luabind class (in lua or in c++)? class 'A' function A:__init() -- Does not work -- self is userdata, not a table for i, v in pairs(self) do end end Thanks ...

New web-scipting language named OPA.

I found this website some times ago. They are proposing much innovations in scripting, but I feel like something is missing. Had anyone tried it out already? ...

Deploying a Web Application from the command line

Hi. Im looking to deploy a web application on a build server. It is a very small web app and so far i have written a nice little console app that checks out from SVN and then calls msbuild on the .sln file. This of course is not the same as publishing a web app and so far have not found a programatic way of publishing. So my question ...

How to override luabind class __finalize method?

How to override luabind class __finalize method? Trying to do this in such way: class A function A:__init() end function A:__finalize() end local original_finalize_function = A.__finalize A.__finalize = function(...) -- some custom logic if original_finalize_function then original_finalize_function(unpack(arg)) end end local...

Extract log file

Hi, xxxxxxxxmessageyyyyyyymessagexxxxxxxxxx xxxxxxxxmessagezzzzzzzmessagexxxxxxxxxx xxxxxxxxmessageaaaaaaamessagexxxxxxxxxx xxxxxxxxmessageyyyyyyymessagexxxxxxxxxx The above is my log file I need to extract the phrase which is inside the message tag and I need to save the distinct messages in a file in the above example I need to ...

How can I sandbox Python in pure Python?

I'm developing a web game in pure Python, and want some simple scripting available to allow for more dynamic game content. Game content can be added live by privileged users. It would be nice if the scripting language could be Python. However, it can't run with access to the environment the game runs on since a malicious user could wrea...

Powershell 1.0 - Renaming files fails when script is in a different directory

I am trying to batch rename old log files, but the script only works for me when the script is stored in the same folder as the log files. Here is the code: cls $file = gci E:\logs |? {$_.extension -eq ".log" |% {rename-item $_ ($_.Name + ".old")} When I run this script from E:\logs, it works just fine. However, when I run this scri...

Performance monitoring script in linux

Hello, I'm trying to create a script that will allow me to monitor CPU Utilization, Memory Utilization, I/O Utilization, and Network Utilization. Currently, I have a script that should run the necessary commands on linux. Hopefully in the end, I'll be able to run this every 15 or so minutes and then use specific information to analyze ...

Where does scripting fit in today

I was wondering what place scripting has in today's world of IDEs and GUIs. I'm new to programming and am wondering at what point I should, if at all, open up the PowerShell terminal for a particular task. What do people here use scripting for and how important is it to a modern developer working full time with C++/C#/Java? ...

Free UsersVoice

Hey guys, I'm looking for a free website similar to usersvoice.com or a free script to generate some feedback towards my website, if you know the answer, I will appreciate it a lot... ...

Correct software-engineering approach to make Lua bindings to my C++ classes ?

I'm trying to figure out the best way to register my C++ Classes constructors with Lua (from a software design perspective, not a coding perspective) How shall I do this ? My Ideas: 1) Make some kind of "init Lua bindings" file which binds each of the C++ constructors that I want to have available in Lua ? (problem: this file would ...

Rhino, adding code from multiple javascript files

Hi, I am embedding some javascript in a Java application using Rhino. I am following the example on the Rhino website, executing a script by calling the Context's evaluateString method and passing the actual script in as a String. I have a whole bunch of existing javascript code that I would like to make use of. I don't want to concaten...

How to set the process name of a shell script?

Hi, is there any way to set the process name of a shell script? This is needed for killing this script with the killall command. Thanks for any hint. ...

postgresql db structure script

How to get my db structure without the data, (schema, tables, ...) as a script by command line. ...

Running scripts on DD-WRT enabled router

Hello guys, is there a way to program a simple code and run it on a wireless router with the dd-wrt firmware? Thanks ...

Getting started working with RemObjects Pascal Script in delphi

I have just started working with RemObjects Pascal Script. and have been trying to follow the remobjects tutorial. http://devcenter.remobjects.com/articles/?id={2FFC1EE9-F18D-4B11-9DE4-1BA0A79D0D04} all was going fine up to the part you run begin ShowNewMessage('Show This !'); end. where it claimed it does not know of it. but i ...

iPhone - Automate Appstore submission

Hi, Did anyone try scripting/Automating an Appstore app submission? It will be amazing if we can save all the necessary info in a plist or a server, Click on one button to generate and Upload the App to iTunes connect. This will be very useful if we have to develop template based Apps. Any expert opinions/comments/samples? ...

javax.script : Creating a class in a script or loading it from another file

Hello, In my script, I want to create a class or load it from an other file. How to do please ?? ...

Taking notes to a background text editor without switching windows

I am looking for a solution to a specific use case: When I read something on my browser or pdf reader, I want to take notes without switching windows. I want to type right on my browser or pdf reader, but the typed text should go to the background text editor like notepad. Is this possible? Do you know any existing automation script t...