Could anyone link me to a sample script that would allow be to resize PNG images containing transparency? Some scripts I tried create a black area in place where the image was transparent.
#!/bin/bash
function usage(){
cat <<EOF
USAGE: $0 [strategylist]
valid strategies are:
ALLD
ALLC
TitForTat
JOSS
WeightedRandom
Tester
EOF
exit 1
}
[ -z $1 ] && usage
javac robsAgents/*.java robsAgents/behaviours/*.java
agentlist='leader:robsAgents.TournamentLeader'
agentlist=$agentlist";$1:robsAgents.Contestant"
while shift;
do
agentlist=$agentlist";$1:robsAgents.Contestant"
done
java jade.Boot -gui -host 127.0.0.1 "$agentlist"
i have above bash script and have no access to a windows computer and i need to convert it to a .bat file, but don't even know how to do the shift and argument parsing
this is the scenario.
p1
|_f1
|_f2
p2
|_f1
|_f2
Can anyone please help me with a powershell script that copies the files shown above from the TFS to a temporary folder ??? where f1,f2,and so on are the subfolders..
on one page of my app i get a Type is undefined on the ajax script. why would this be?
EDIT
Type is not defined
MicrosoftMvcAjax.js()()Microsof...vcAjax.js (line 6)
[Break on this error] Type.registerNamespace('Sys.Mvc');Sys.Mv...reate_AjaxOptions=function(){return {};}
Is there a way to set the next build number in Hudson from a script?
I have the nextBuildNumber plug-in installed, and attempted to use wget with --post-data, but that page appears to require login.
I have two steps of a chained build and I want to keep the build numbers in sync.
Hi,
i am using Zend Framework, i have an layout.phtml wich renders navigation.phtml. How can i display a search form in this script ?
Where is the right place to set the form ? In normal view scripts i will use the controllerAction to set the form , and simply echo it..
Do i need an FrontController Plugin, wich sets the form ?
How can I load other scripts from within a groovy script? In particular, I want this:
in file A.groovy:
def say(String msg) {
println(msg)
}
say("hi")
in file B.groovy:
load("A.groovy")
say("bye")
running 'groovy B.groovy' should print
hi
bye
I am trying to go through a site with a bunch of links. I click on a link, save the page, click on a button, save a page. Then go back and repeat it for a huge number of links. I want to write a script to do that for me. I know C++ but I want to do Javascript for this, what is a good place to get me started? What would be a good IDE to use?
Here's the question, I need to connect to a remote MySQL database from my C# Application, problem is the MySQL instance will block all access to all IP's apart from localhost, this can not be changed as its too much of a security issue.
The question is, is it possible to connect via a tunnel instead to a php script hosted on the server, this would then act as the mysql connection.
Any ideas and suggestions?
Hi folks,
When sites give you some JavaScript that you paste into a web page to have content inserted at that position, how does the script determine its current position in the DOM? Without using document.write?
Thanks,
Nick
I have a c# code that connects remotely to a winServer2008 machine (with a local user of that machine).
How do I configure via automated code the logon script that will be executed as soon as the connection is established ?
Hello everyone,
How can I get the file name and line number in python script.
Exactly the file information we get from an exception traceback. In this case without raising an exception.
The == is used to compare two string in shell script, however I want to compare two strings by ignoring case, how it can be done.Do we any standard command for this.
Well I'm working on a school project, and I uploaded my script to send emails. I'm pretty much using whats defined here: http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php .
Now, all I really changed(other than the contents), is the receiver, to my email address. However, I'm not getting it in my inbox. Is there something else I need? Do I need to do something with the settings on the server(or have my school enable something)?
What is the PowerShell script to get the speed a specific Windows machine's network card is running at?
I know this can be done with a WMI based and will post an answer once I work it out.
Hi,
I was wondering if it is possible to make a "link" in usr/bin (i.e.) that leads to a shell-script.
But I want just to write
% shellscript
instead of
% sh shellscript.sh
kinda like an alias.
Is this possible?
Hi Experts,
I am using sql server 2005
I have a table [say tblHistory] and this table contains 100 rows.
I have created the same table at the server, but the table doesn't have the data, I want data from tblHistory to convert into
INSERT INTO tblHistory ------
so that I could run the script on the server to fill the database.
Please help, it's urgent
Hi,
I have a Grails (GAnt) script with the following target:
includeTargets << grailsScript("_GrailsInit")
includeTargets << grailsScript("_GrailsPlugins"
target('default': "Does something awesome!") {
depends(updatePluginsList)
// Implementation omitted
}
Since upgrading to Grails 1.3.1, when I run this I get the error
groovy.lang.MissingPropertyException: No such property: updatePluginsList for class:
So it appears that the target updatePluginsList has disappeared. This target used to be provided by Grails, so I guess it's either been removed or renamed in a recent release?
Thanks,
Don
I need to know how to make a rating script for a site. I have a form that submits a rating out of ten to mysql. How would you get the average rating to be displayed from the mysqk column?
---using PHP with mysql
I m using XML for storing data and I m retriving it into google map application using java script.now I want to add latitude and logitude data into XML file as it arrives from the tracking device.I m facing difficulty in adding closing tag of root node when my data is appended in the XML file.Can any body help me?
Hey, I am looking for PHP login script that allows a user to sign in, confirm his email and save his login/password if he wants. Is there something free and simple to support and modify?
Thank you.
Michael
I set a view variable in someAction function like this:
$this->view->type = "some type";
When I access this variable inside layout script like this:
<?php echo $this->type ?>
it prints nothing. What's wrong?
My application.ini settings related to layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.layout.layout = "layout" ; changed 'default' to 'layout'
I have a file which contains several thousand numbers, each on it's own line:
34
42
11
6
2
99
...
I'm looking to write a script which will print the sum of all numbers in the file. I've got a solution, but it's not very efficient. (It takes several minutes to run.) I'm looking for a more efficient solution. Any suggestions?