Hi, does anyone know of an API or where I could get hold of data/script to create a <select> drop down lists for occupation and job type?
Regards,
Phil
I have an unknown number of functions in my python script (well, it is known, but not constant) that start with site_...
I was wondering if there's a way to go through all of these functions in some main function that calls for them.
something like:
foreach function_that_has_site_ as coolfunc
if coolfunc(blabla,yada) == true:
return coolfunc(blabla,yada)
so it would go through them all until it gets something that's true.
thanks!
The documentation for Lua for Wireshark claims that the Tvp class has a new_real() method.
However, this method seems to not exist when I try to use it in my Lua script.
I'm using Wireshark 1.3.5 (latest dev version) for Windows x64.
Did the method get renamed? If so, to what? Is there a better support forum for this particular question?
What's the easiest way to split a file and add a header to each section?
The unix split command does everything that I need minus being able to add a header.
Any easy way to do it with existing tools before I script it up?
I'm trying to wrap a standard sequence of steps in a shell script (linux/bash) and can't seem to figure out how to tell of the execution of svn status returned anything. For example
~/sandbox/$svn status
? pat/foo
~/sandbox/$echo $?
0
If I delete the foo file, then the
svn status
return nothing, but the echo $? is still 0
I want to not do some steps if there are uncommitted changes.
Pointers greatly appreciated.
I have a very simple HTML page, viewable on gh-pages with the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="style.css" media="screen" rel="stylesheet" type="text/css">
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'>
</script>
</head>
<body>
<div id="page">
<div id="content">
<div id="heatmap">
<svg style="margin-left: 80px; color: rgb(255, 255, 255);" width="800" height="880">
<g transform="translate(80,80)">
<rect style="color: rgb(255, 255, 255);" height="720" width="720">
</rect>
</g>
</svg>
</div>
</div>
</div>
</body>
</html>
with the following CSS:
body {
background-color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #FFFFFF;
}
#wrapper {
margin: 0 auto;
padding: 0;
}
#page {
width: 1000px;
margin: 0 auto;
padding: 40px 0px 0px 0px;
}
#content {
float: left;
width: 660px;
padding: 0px 0px 0px 0px;
background: #FFFFFF;
}
I expect the rectangle, 'svg rect' to be the color #FFFFFF, or white. But it shows up as some other color. I opened it up in firebug, and it shows the computed color to be #FFFFF:
Hi,
I'm trying to extract data from one of my websites using Greasemonkey. Problem is, the script runs 6 times because apparently the page loads content from 6 different servers.
So if I put in an alert ("Hey"); the code runs 6 times and I get 6 alerts.
How can I wait for the entire page to load and then start playing with the DOM. Also, I'm using jQuery.
Thanks
Hey Guys
Im looking for a jquery or ajax file uploader, Im currently using the FancyUploader which worked great until Flash brought out their update making all flash progress bars absolete, now whenever I try to upload large files... it will fill the progress bar to 100% in a matter of seconds even though the actual upload finished minutes after. So im now looking for a new uploading script that DOESNT require flash but can still display the progress.
Any suggestions?
I have a script im writing. Here is whats happening. There is a while loop. In the while loop is a variable which is constant to X. How do i make X change from line one, line two, etc for each cycle of the while loop and pull X from a .txt file. Everything is in root. Thanks
I want assign certain values to some of the cck fields through Java script while the form is loaded. I think it is best to use the body/ form onload attribute. But how do i define that in drupal? Could someone help me with this or a better solution?
How to create cookie, which will work on all pages over choosen site?
Using cookie plugin.
Code must add cookie "movie_check" with value "no", which can be used over all pages on site "www.site.com" (were script is implemented). Expires after 365 days.
Tryed this (doesnt work):
$.cookie("movie_check", "no", {expires: 365, domain: 'www.site.com'});
Thanks.
Hello;
I have a Flex application, I want to scroll the page to bottom when a button is pressed.
Scroll bars is added by browser, they do not belong to flex app or component.
I can do this by javascript but is there a way to do this with action script?
Thanks.
Enes
I have to stop a browser from a PowerShell script, which I do by piping it into
Stop-Process -Force
However, this is very abrupt. When the browser is restarted, it detects that it didn't shut down cleanly, and tries to restart the previous session. Is there some way I can tell it to shut itself down gracefully? ("There are two ways we can do this ...")
I'd like to script p4 a little. Unfortunately, some of the filenames that we're tracking have "@" in the filename.
The filenames are in the form [email protected]. If I try to do something like p4 sync a\@b.xml on a mac (or p4 sync [email protected] on windows) it gives the error:
Invalid changelist/client/label/date '@b.xml'
Is there another way to escape it that perforce will recognize?
I had code on Download.aspx for downloading different type of file like doc, xls, pdf etc. I usually call the page to download a file. In one of my instance i am calling this from a java script code which works fine for http://loaclhost/tp/howwuworks/howwuworks.aspx but if i put ipaddress instead of localhost then its not working.
Hi there,
I feel like this is quite delicate,
I have various folders whith projects I would like to backup into a zip/tar file, but would like to avoid backing up files such as pyc files and temporary files.
I also have a Postgres db I need to backup.
Any tips for running this operation as a python script?
Also, would there be anyway to stop the process from hogging resources in the process?
Help would be very much appreciated.
I've got two systems, one with Windows XP and another with 7, both running Firefox 3.6, the same version of Selenium RC and the newest nunit.
When I run tests on 7, it is executed extremely slowly (I mean walking by textbox and setting its values), but when I execute this script on Windows XP it is extremely fast.
Do you have the same experience? Do you know what the problem might be?
I'm having a problem displaying data from a function to text box within a tab.
If you run the code and click "Select Tab 2 and Fill..." I get an error;
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm guessing this is because "Tab 2" is/was not rendered yet. Now if I run the code,
select "Tab 2" then select "Tab 1" and click "Select Tab 2 and Fill..." it works
the way I would like. Dose any one know a way around this problem.
----Full Flex 4/Flash Builder Code just copy paste----
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
creationComplete=" ">
<fx:Script>
<![CDATA[
public function showtab2():void
{
mytextbox.text="I made it!";
tn.selectedIndex=1;
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:Panel title="TabNavigator Container Example" height="90%" width="90%"
paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Label width="100%" color="blue"
text="Select the tabs to change the panel."/>
<mx:TabNavigator id="tn" width="100%" height="100%">
<!-- Define each panel using a VBox container. -->
<mx:VBox label="Panel 1">
<mx:Label text="TabNavigator container panel 1"/>
<mx:Button label="Select Tab 2 and Fill with Text" click="showtab2()"/>
</mx:VBox>
<mx:VBox label="Panel 2">
<mx:Label text="TabNavigator container panel 2"/>
<s:TextInput id="mytextbox" />
</mx:VBox>
</mx:TabNavigator>
<mx:HBox>
</mx:HBox>
</mx:Panel>
</s:WindowedApplication>
I have an ID in a package variable that I need to add as a column (with each row having that package variablevalue) in a Dataflow.
Is there a way to do this with only the Derived Column? I know i can using the Derived Column to make a new column and then set the value using a Script Component, but that seems inefficient.
i am submitting a from using jQuery ajax, and server is returning json response. but instead of the script, parsing the json result, the browser is prompting me to download the json response.
I have had this problem before, where i forgot to return false at the end of the event handler. But this time im clueless why this is happening.
anyone has experienced this problem..
thanks
Hi,
In my asp.net page, i am refring external javascript file.
As per my learning in web, it's recommended that always put inline java script at the bottom of page. There is no information i get about external javascript refrence
I want to know that if i am refing external javascript file then where should i write?
Inside top of the page
bottom after closing tag of
I'm building an ASP.Net MVC project in TeamCity.
Can I somehow call the Publish target and get the output copied to a folder under IIS? or do I need to write an msbuild script for this?
I am using AppleScript to close windows in Google Sketchup as follows:
$ osascript -e 'tell application "SketchUp" to close window 1'
When I close the window, the program prompts me to save, and there is a dialog box with buttons "Don't Save", "Cancel", and "Save...".
How do I make my script click on the "Don't Save" button in this situation?
Also, if there is a better way of closing the window, I'm all ears.
Hello.
I'm using the AjaxToolkit in asp.net project c# code.
I have a script managet and an update pannel in my page. It all works perfect.
The only problem is that I can't figure out how to show the Ajax loader gif while the request is processed.
Any idea?
TY