I have used the jQuery dialog code so that I can prompt my user. Is there a way to catch if the user clicks the close button (the 'X' in the top right? Thanks.
I am having extreme difficulty constructing a query which returns an XML style hierarchy.
We have a database table which contains a hierarchy of URLs for our website. The table contains the columns: ID, URL, DisplayName, ParentID, ItemOrder
The parent ID forms a recursive relationship between the current item and it's parent. The item should site…
I've added types to my .NET classes that I'm using for COM interop. To get it to work with my VB6 application, I unregistered the DLL and re-registered it (using regasm). I then uninstalled and reinstalled it to the GAC (using gacutil).
The types are showing up in the VB6 object explorer, but when I run the application in the VB6 IDE, it breaks…
If I set up a loop that posts some keyboard events to a PSN, I find that it works fine except for when first launched. The event only seems to post when i do something with the mouse manually - even just moving it slightly. Here's the details, if they help.
An external application has a list box of text lines, which I am reading by posting copy…
This is for a genetic algorithm fitness function, so it is important I can do this as efficiently as possible, as it will be repeated over and over.
Lets say there is a function foo(int[] array) that returns true if the array is a "good" array and false if the array is a "bad" array. What makes it good or bad does not matter here.
Given the full…
So my understanding of Flask sessions is that I can use it like a dictionary and add values to a session by doing:
session['key name'] = 'some value here'
And that works fine.
On a route I have the client call using AJAX post, I assign a value to the session. And it works fine. I can click on various pages of my site and the value stays in the…
I have some data that looks something like this...
+----------+----------+----------+
| Column 1 | Column 2 | Column 3 |
+----------+----------+----------+
| Red | Blue | Green |
| Yellow | Blue | Pink |
| Black | Grey | Blue |
+--------------------------------+
I need to go through this data and find the 3…
Please please please can someone help me
$this-load-library('form_validation');
$this-load-helper('cookie');
$data = array();
if($_POST) {
// Set validation rules including additional validation for uniqueness
$this-form_validation-set_rules('yourname', 'Your Name', 'trim|required');
…
What i'm trying to do is, set the wallpaper using an image URI (no cropping)
I'm a noob at dev on Android and dev in general.
The internet has failed me... on providing code to set the wallpaper.
yes the dev resource site says
public void setStream (InputStream data)
but i don't understand it,…
I have two arrays of hashes.
Array1 => [{attribute_1 = A, attribute_2 = B}, {attribute_1 = A, attribute_2 = B}]
Array2 => [{attribute_3 = C, attribute_2 = D}, {attribute_3 = C, attribute_4 = D}]
Each hash in the array is holding attributes for an object. In the above example, there are…
I read somewhere (and have observed) that starting threads is slow. I always assumed that AsyncTask created and reused a single thread because it required being started inside the UI thread.
The following (anonymized) code is called from a ListAdapter's getView method to load images…
Hi,
My current project involves lexing and parsing script code, and as such I'm using fslex and fsyacc. Fslex LexBuffers can come in either LexBuffer<char> and LexBuffer<byte> varieties, and I'd like to have the option to use both.
In order to user both, I need a…
Hi, im very new to this. I've set up an account "SQLBOX" thats on the a network, but not connected to the domain. I have installed an instance of SQL Server 2008 and am trying to connect to it from another machine on the network but am getting "Cannot connect to "SQLBOX"". From…
I am trying to convert a 24bit Hexadecimal string (6 characters) signed in two's complement to a long int in C.
This is the function I have come up with:
long int hex2li (char string[])
{
char *pEnd;
long int result = strtol (string, &pEnd, 16);
if (strcmp…
I am having an issues while using the <asp:login> tag. When a user clicks the "login" button, the form will process correctly. However, when the user hits the enter key, the form self submits and does not process the login, whether it was correct information or…
Hi I have my movie in the main timeline and then have a smaller clip in which there is a dynamic text box. In that smaller movie I have some actionscript
myVars = new LoadVars();
myVars.load("http://preview.domain.co.uk/inc/loadVars.php");
myVars.percentage
…
Hi,
Strange behaviour. I use rich:editor with these attributes: (Irrelevant data removed)
HtmlEditor editor = new HtmlEditor();
editor.setValueExpression("value", ve);
editor.setTheme("advanced");
editor.setValueExpression("viewMode",…
Afternoon, I am trying have an HTML file containing a frameset which contains two frames. I have populated the left Frame with a URL containing a TreeView with URL's for the nodes.
I would like the to be able to select a URL from the treeview in the…
I feel like this should be obvious to me, but for some reason I can't figure this out. I have a navigation interface with nav bar, tool bar, and primary view. Sometimes the user takes an action that causes a progress indicator to appear in the…
Hi,
This is a bit of an odd/specific one - possibly a bug?
I'm using MPMoviePlayerViewController to play a variety of files, including Enhanced Podcasts - these are audio files, but with a slideshow of images, often created using GarageBand.…
So, I am working with the jQuery Autocomplete function, and am trying to write a custom data parser. Not sure what I am doing incorrectly, but it throws an error on trying to call the autocompleteSourceParse function, saying that req is not…
I am new into PHPUnit, and just digging through the manual. I cannot find a decent example of how to build a complete test from end to end though, and so, am left with questions.
One of these is how can I prep my environment to properly…
I would like to run a symfony project on a zeus webserver, however i cannot get the rewrite rules to work. Has anyone done this successfully The symfony .htaccess is as follows:
Options +FollowSymLinks +ExecCGI
<IfModule…
Let's say I have an object who's class definition looks like:
class Command:
foo = 5
def run(self, bar):
time.sleep(1)
self.foo = bar
return self.foo
If this class is instantiated once, but different…