Hi,
I am using scriptaculous drag drop in my project. While dragging i have to clone the element which is draggable and i want to drop only the element which is cloned, but not the original draggable element, into one cart.
I tried with ghosting. But wat happens is, draggable element has been cloned for dragging, leaving the origin...
Do we have a yahoogroups api?
I have a yahoo group and I want that whenever my RSS feeds are updated, a message should be automatically posted to the group with the link to the post.
Is that possible?
...
I have been starting to write scripts to do some simple work in modifying existing code files - mostly finding some block of text, and making a few changes based on regular expressions within that block.
These are the kinds of tasks that are beyond simple sed (or even awk) style search and replace or modify in a stream. Basically one o...
We have a pattern to our folder and sub-folder creation. We have one folder that is always named x that is located in multiple sub-folders. Is there a way I can set permissions to a folder only based on the name of the folder. I have looked into CACLS, xcacls, etc but I may have missed something. Is there a way I can list out all of the ...
I've been tasked with automating the collection of some reports from our remote locations. The machines are sometimes used locally by the staff at the location, and their usage is random. The software that generates the reports is somewhat limited and just allows us to print to the default printer. The department that's taking these r...
I'm using the excellent Innosetup installer and I notice that some Applications (often from Microsoft) get installed with their launch icon already highly visible ('pinned?' ) in the start menu (in Windows 7). Am I totally reliant on the most-recently-used algorithm for my icon to be 'large' in the start menu, or is there a way of promot...
Hi guys,
Thanks to all for the help in the past. I have another query for you guys. I'm hoping someone can solve my problem.
I have a .vbs script here. That changes the 'Visual Effects' in Windows. I've tested it on XP/Vista and it changes the settings, but doesn't 'apply' it. I've tried logout/login to no avail.
What I mean by 'apply' ...
I need a variable to hold results retrieved from the database. So far this is basically what I'm trying with no success.
myvariable=$(mysql database -u $user -p $password | SELECT A, B, C FROM table_a)
My understanding of bash commands is not very good as you can see.
...
I have a visual basic file with a number of functions I want to use inside my XSL. I can build it as a dll and reference in my XSL project but I don't know how to reference it in my XSL file. I am using visual studio.
I get the error "Cannot find the script or external object that implements prefix..."
I want to do something like:
xml...
Hello all,
I'm currently using SwiftMailer to send out emails to several users (up to 50). I have it set up and working properly, however, I'm not quite sure how to pull the recipients from my MySQL database and iterate to send them.
Here is what I currently have:
<?php
require_once 'swift/lib/swift_required.php';
$mailer = Swift_M...
I need an Eclipse Plugin run Shell Scripts under Linux. I have a beautiful Rsync Script and i want a Button in Eclipse to activate it.
The best Solution would be if the rsync Shell Script was also activated when i was saving Stuff, so maybe i can add a Script Builder or something like that.
Anyone has a clue for both of the Solutions? ...
I need to convert HTML documents (generated from DocBook XML documents) to the Wiki mark up language, in particular to the PM Wiki mark up language. The goal is to include the company's application operations guides in our newly created wiki. This means that I actually have two options:
Convert the HTMLs (generated from DocBook XMLs) t...
I have a small ruby script in which I'd like to use ActiveRecord to easily access a database model. What is the best way to do it?
...
shell>/bin/date -d "091029 20:18:02" +%s
1256827682
Similarly I created shell script:
#My.sh
myDate=`date +'%y%m%d_%H%M%S'`
myDate1=`echo $myDate | sed 's/_/ /g'`
myDate2=`echo $myDate1 | sed 's/\([0-9][0-9][0-9][0-9][0-9][0-9]\) \([0-9][0-9]\)\([0-9][0-9]\)\([0-9][0-9]\)/\/bin\/date -d "\1 \2:\3:\4" +%s/'`
print $myDate2
`$myDate2`
...
Sometimes I find myself needing to do something that could be automated or could be manual. E.g. I just ran a particular script 8 times, making a small change in between each run. I certainly could have written a script that would have automated this, but in this instance I decided it was quicker to just run it manually each time.
But...
I'm writing a script to do variable substitution into a Java properties file, of the format name=value. I have a source file, source.env like this:
TEST_ENV_1=test environment variable one
TEST_ENV_2=http://test.environment.com/one
#this is a comment with an equal sign=blah
TEST_ENV_3=/var/log/test/env/2.log
My script will replace eve...
Hello,
I have a project which exposes object model to use by different types of clients. Written in .Net 3.5 it exposes classes to COM. Problem is while all seems to work from test VB6 client, I faced strange errors while trying to automate it with JScript and Windows Script Host.
Here's code snippet:
var scComponent = new ActiveXObje...
I have a list of timestamps in a text file. I want to figure out the times at which the change is more than a given threshold.
Input format:
10:13:55
10:14:00
10:14:01
10:14:02
10:14:41
10:14:46
10:17:58
10:18:00
10:19:10
10:19:16
If the threshold is, say, 30 seconds, I want the output to list the cases where the...
So one of the common tasks that I do as a programmer is debugging a live system. And one of the ways that I debug a live system is to capture a verbose log from the console.
Typically the log file has around 20 extra lines for every one line I am interested.
To minimize my macro script I went about creating a macro that will grab ONLY ...
Why does the following...
c=0; for i in $'1\n2\n3\n4'; do echo iteration $c :$i:; c=$[c+1]; done
print out...
iteration 0 :1 2 3 4:
and not
iteration 0 :1:
iteration 1 :2:
iteration 2 :3:
iteration 3 :4:
From what I understand, the $'STRING' syntax should allow me to specify a string with escape characters. Shouldn't "\n" be in...