scripting

python logging.basicConfig

I have seen this in a lot of python code what does this do? What is it useful for? logging.basicConfig(level=loglevel,format=myname) Please and thank you. ...

move folder from one directory to another in batch script

Hi, can anyone please tell me how to move a folder from one path to another path using batch script? For ex: I want to move XXX folder(including the contents) from D:\abc\XXX folder to D:\cef\ Regards, Orbit ...

ftp folders from one server to another using batch script

Hi, How can we transfer/ftp a folder with its contents from one server to another using batch script? Is it something that can be achieved using a secured file transfer like winscp, but to run from batch script. Appreciate your help Regards, Orbit ...

Is there a better way to check for Virtual Directory and if not, Create it?

Hi All, I have some vbscript code I use to set paths to virtual directories when a developer switches his/her environment to work on another project. Currently, we try to set the path, and if there's an error, we create it. It just smells funny. Is there a way to check if a Virtual Directory exists? And if not, create it? set objIIS = ...

How do I get the day month and year from a Windows cmd.exe script?

How do I get the current day month and year from inside a Windows cmd script? I need to get each value into a separate variable. ...

Popular games beside WoW that allow addons / extensions / plugins?

I have what I think is a neat idea for a game add-on that I could probably tailor to most genres. The idea isn't a stand-alone game concept, more of an enhancement. As a result, I'm trying to find an existing game that I could try modifying to include it. What'd I'd really like to see is a system like World of Warcraft's for plugins -- ...

Arrow in jQuery Dialog

Is there any way by which I can show an arrow tip on left of jQuery dialog? I would like to achieve functionality as mentioned in image below. How to do this with Theme roller CSS and icons? ...

the HTML script tag and non-JS content - Firefox

It appears this code will request the file in Chrome and IE but not in Firefox. <script type="text/my-custom-mime-type" src="test.ashx"> </script> Is there a some spec that says browsers should only process JavaScript related mime-types? I know IE probably supports this because of the history with vbscript. Once you have "content" li...

Is it good style to call bash commands within a Python script using os.system("bash code")?

I was wondering whether or not it is considered a good style to call bash commands within a Python script using os.system(). I was also wondering whether or not it is safe to do so as well. I know how to implement some of the functionality I need in Bash and in Python, but it is much simpler and more intuitive to implement it in Bash. H...

Best/easiest way to parse configuration parameters in Sh/Bash and php

Hello, I got in every php project (around 25!), some sh scripts that help me with routine tasks such as deployment, repo syncronizing, databases exporting/export, etc. The sh scripts are the same for all the projects I manage, so there must be a configuration file to store diferent parameters that depend on the project: # example conf...

Sending variable pointers back and forth between C++ and Lua?

I am looking for a way to transfer the variable addresses back and forth between C++ and Lua. For instance, transferring an object from C++ to Lua and do some processing, then transfer it back to C++. However, the thing is how can you execute a C++ functions or methods from Lua? Or is a workaround required? If possible, could you incl...

Linux cronjob doesn't work (execute script)

I created a cronjob with the command crontab -e: */1 * * * * /var/lib/tomcat/webapps/ROOT/WEB-INF/scripts/test.sh This file test.sh should be executed every minute. But it doesn't work. If I run the script manually it works fine. So I think the problem is the cronjob not the script ;) Are there any permissions or something else w...

Equivalent of AutoIt for Mac OS X?

AutoIt is a Windows tool to automate UI tasks, for testing or scripting. It supports basic commands like moving the mouse, clicking its buttons, simulating keystrokes. Beyond that it also recognizes windows controls and can interact with them easily. It sports a scripting language to write macros, with loops, ifs, etc. I'm looking for a...

Counting words on a html web page using php

I need a PHP script which takes a URL of a web page and then echoes how many times a word is mentioned. Example This is a generic HTML page: <html> <body> <h1> This is the title </h1> <p> some description text here, <b>this</b> is a word. </p> </body> </html> This will be the PHP script: <?php htmlurl="generichtml.com"; the script ...

What is the difference between a programming language and a scripting language?

Possible Duplicates: Whats the difference between a script and an application? When is a language considered a scripting language? What is the difference between a web application core language and a web scripting language? What is exact use of a web scripting language like Python? When we use a scripting language like Pyth...

Parsing through XML Nodes - Creating an XML Based Scripting Engine

I'm trying to create a 'scripting' engine for my program. As the scripting needs to be cross-platform compatible (it is in VB for now and needs to ported to XNA later). I have sample data posted below. Anyway, within a script you can add graphical objects, play sounds, or perform other actions. Graphical objects have a time, duration,...

cant send SMS vla libgmail - python

Hi All, i'm new to python , and trying to write a script in order to send SMS's , after quick googling i found this lib: libgmail, and successfully installed it , this is the code i use to send SMS: !/usr/bin/env python import libgmail ga = libgmail.GmailAccount("[email protected]", "password") myCellEmail = "[email protected]...

How to rewrite python script output in terminal?

I have a python script and I want to make it display a increasing number from 0 to 100% in the terminal, I know how to print the numbers on the terminal but how can I "rewrite" them so 0 turns into 1, 1 into 2, and so on until 100? ...

How to check if today is a weekend in bash?

How to check if today is a weekend using bash or even perl? I want to prevent certain programs to run on a weekend. Thanks ...

TFMail : How to keep original name of attachments.

TFMail was a popular CGI Form Mail script at one time. Unfortunately, my client insists on continuing to use it. I hope that there are people who still use it and are experts in using it. The best documentation I can find is someone's home made reference sheet. In my HTML form, I have an input named attachment1 : <input type="file"...