scripting

Question about furniture making and scripts in Second Life?

Okay, so I just recently started messing with furniture making. I know a little bit about making stuff and scripting but I wouldn’t call myself a pro just yet. Anyway, I’m using the Mizzy's Furniture Script (whole sale version) to add the animations to my furniture. I really like the whole set up with it but there’s a problem I’m having ...

What's the API of PowerObject or WindowObject classes?

I'm currently developing a PowerBuilder application and noticed that each window features a 'ParentWindow' function. However, there doesn't seem to be a 'ChildWindows' or anything like that. Unfortunately, the Documentation at sybase.com just says that these base classes are not documented. Maybe somebody figured it out anyway, using so...

Javascript: "Cancelling" a dynamic script tag?

I use dynamic script tags to request javascript from external domains. Sometimes the request takes too long; is it possible to stop the request or timeout if the requests takes too long? I do not want to use xmlhttprequest because I'd like to avoid having to use a server side proxy. Thanks! ...

Can statically compiled languages replace scripting language?

Assuming you can get a dynamic interrupter; can statically compiled languages replace scripting language? I never quite understood why anyone would use a scripting language? I am talking about on PC, not a limited system which needs a simplistic interrupter. I seen some python install scripts and seen similar python and C# solutions to a...

combine multiple pdfs in linux using script?

Hi All, I want to save/download pdfs from X website and then combined all those pdfs into one, so that it is easy for me to see all of them at once. What I did, get pdfs from website wget -r -l1 -A.pdf --no-parent http://linktoX combine pdfs into one gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Combined_date +%F.pdf -dBATCH file1.pd...

spell check textfield

I am trying to get a spellchecker to check spelling in a text field as the user types. I am well aware that browsers such as firefox have this feature for textfields (but this requires a user to manually enable it in the right click menu. The ideal script Im looking for would accept an id as a parameter, since the id for the field I wan...

Checking whether a command produced output

Hello all, I am using the following call for executing the 'aspell' command on some strings in Python: r,w,e = popen2.popen3("echo " +str(m[i]) + " | aspell -l") I want to test the success of the function looking at the stdout File Object r. If there is no output the command is successful. What is the best way to test that in Python?...

Documentation for Microsoft.SqlServer.ReportingServices2005.Role ?

Zilch on the web or BOL Any ideas? ...

How can I run a Windows shell script prior to launching an application?

Is there a way to configure an application shortcut so that a Windows shell script is run prior to kicking off the application? In my case, I want to back-up some files before the application runs. Thanks! ...

Oracle DDL/DML script, PL/SQL in Source Control

I'm looking for recommendations/guidance on how best to store DDL/DML and PL/SQL script in Source Control (we're using Microsoft Visual Studio TFS) for an in-house developed SaaS application. We have a team of up to 7 developers working on a project that is based on a fairly straight-forward Dev/Main branch model. There are dependenc...

How to test things in crontab

Hi, This keeps happening to me all the time: 1) I write a script(ruby, shell, etc). 2) run it, it works. 3) put it in crontab so it runs in a few minutes so I know it runs from there. 4) It doesnt, no error trace, back to step 2 or 3 a 1000 times. When I ruby script fails in crontab, I can't really know why it fails cause when I pipe o...

Running Database scripts in C#

Hi all, How to run database scripts(MySql db scripts) in c#. Thanks, sirni. ...

Finding out Last logon time in Windows through Powershell

How do you find out the last log-in time for a windows machine(any user) through powershell? ...

Greasemonkey script to upload multiple images?

I have an account at wikidot.com that hosts wikis for free. they will even store up to 300mb per of images for you. I currently have a car repair wiki that is doing quite well but I have to upload all the pictures one at a time. I know that this is probably a good application where Greasemonkey could help me but I have very little expe...

Can someone explain the limitations of cron job scripts to me?

I think I'm confused about exactly what the difference is between running a PHP script as a cron job versus accessing it with a browser. When I test test.php by hitting it with Safari, it writes to a text file as expected, makes DB entries, etc. When it runs as a cron job, it does everything except write to a text file. I already dealt ...

korn Shell script to get files between two dates

Hi, Need to get the files between two given dates. If there are multiple files on one day get the latest of the files for that day. ...

Executes Fine In Jail Shell but not in Browser

My python script executes fine in Jail shell, putting out html which I can pipe to an html file. When I look at the file, it's exactly what I want. However when I try to run the file from a browser I get a 500 error. According to the instructions at http://imgseekweb.sourceforge.net/install.html the cgi-bin should be in suEXEC mode. M...

oops - a ghost tab-box in firefox

I was happy to cobble some code together that gives me a nice looking tabbed-box on my (wordpress) page - 2 tabs; a feed and recent comments. Only after a few days have I noticed a problem: Firefox shows 2 tab boxes, one below the other, each showing the other tab. IExplorer displays a single functional tab-box as intended. Could some...

Getting functions from another script in JS

I load this JS code from a bookmarklet: function in_array(a, b) { for (i in b) if (b[i] == a) return true; return false; } function include_dom(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); ...

Lua scripting implementation

Hello, I'm currently working on implementing Lua into one of the applications that I'm working on. Currently I'm just using the C api and registering functions using lua_register, but I'd like to be able to pass static and non static function pointers to certain class methods. I've found certain libraries on the net, but since I need...