I'm experimenting with wx.aui.AuiNotebook; is there a way I can prevent particular tabs from being closed? i.e. I have an app that allows the user to create multiple tabs in an AuiNotebook, but the first 2 tabs are system managed and I don't want them to be closed.
Also, in a close event, can I get the window object attached to the tab being…
I have the code in one of my flex file used as labelFunction in a DataGrid. When I run the FlexPMD to do the code review , it generates objection about the dynamic type object used in method signature "public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String", it suggests to use strongly type object. Does anyone how…
How do I create a clicked state in visual state manager for a control that is based on a button control? I tried using a pressed state but once the mouse button is released it reverts back to the original color. I would like to change the color of the button when it is clicked on. I am not looking for a solution in the click event handler…
I'm new to C#, and I'm trying to write a program that selects file types from a FileInfo list.
So far I have something along the lines of:
List<FileInfo> files = new List<FileInfo>();
IEnumerable<FileInfo> result = files.Where(f=>f.Extension.Equals(".jpg", StringComparison.InvariantCultureIgnoreCase)||
…
Hi,
Is there a way to make a Listbox go back to the beginning of the list once a user scrolls all the way to the end of list?
Current aspx code:
<ListBox x:Name="listbox">
<ListBox.ItemTemplate>
<DataTemplate>
<Image Name="imgSource" Source="{Binding Path=Url}" />
…
Php
I have a contact form that currently has a form field that tries to prevent spam through a calculation (3 + 1). I need that form field to have multiple calculations and at random so prevent spam.
Hi all,
I'm developing a ASP.NET MVC application. There is little space for me to put two standard file uploading web controls in a page. So I'm seeking for some succinct alternatives. A checkbox-look button pops up a file open dialog is ideal. Is there any kind of stuff?
Thanks in advance!
I've just recently started development using Visual Studio 2010 Express for Windows Phone and I put in a ListBox. I can't seem to manipulate the formatting. No matter what I do, the background is black/gray, the selected items have a blue border, and there is padding between the items in the listbox (i'm using images). …
Does a meta refresh tag require a full url?
I have code that looks like this, which seems to work just fine, but when I load it in lynx text browser, it says this is bad HTML. It seems to suggest that the full URL is required (http://mydomain.com/blah.htm).
Is there any Python library that allows me to parse an HTML document similar to what jQuery does?
i.e. I'd like to be able to use CSS selector syntax to grab an arbitrary set of nodes from the document, read their content/attributes, etc.
The only Python HTML parsing lib I've used before was BeautifulSoup, and even…
I have a table DEAL and a table DEAL_TYPE. I would like to map this code:
public class Deal {
DealType type;
}
public enum DealType {
BASE("Base"), EXTRA("Extra");
}
The problem is that the data already exist in the database. And I'm having a hard time mapping the classes to the database.
The…
I want to create a simple game like tic tac toe where the human user is playing against the computer. The computer function takes a couple of milliseconds to run but I would like to make the computer take 5 seconds to make a move. Which method should I use?
1) Create two memory threads. One for the…
We have a small .Net program that we sell with individual licenses. The individual licenses are enforced by registering a key file that is generated using information from the machine used to install the program (MAC address, etc.)
Now, we have a customer request for a site-wide license, such that…
say i have a directory with hi.txt and blah.txt and i execute the following command on a linux-ish command line
ls *.* | xargs -t -i{} echo {}
the output you will see is
echo blah.txt
blah.txt
echo hi.txt
hi.txt
i'd like to redirect the stderr output (say 'echo blah.txt' fails...), leaving…
What I am trying to accomplish:
10 percent increase scale transformation of a rectangle via Silverlight storyboard animation.
What I currently doing:
While in Expression Blend 3, I created a rectangle, created a storyboard, and created the scale transformation. The preview looked correct…
I have a contact form written in PHP that currently has a form field that tries to prevent spam through a calculation (3 + 1). I need that form field to have multiple calculations and at random so prevent spam.
I have put a form on a web page where the user can send us data. Unfortunately, the webmaster does get a lot of spam through this form and the valid submissions gets buried.
I have used captcha to bypass this problem. But I think that everyone would agree that captcha is a big annoyance…
I'm being asked to assess whether we can safely upgrade the java version on one of our production-deployed webapps. The codebase is fairly large and we want to avoid having to regression test everything (no automated tests sadly), but we've already encountered at least one problem during…
I have a mysql table "items" with 2 integer fields: seid and tiid
The table has about 35000000 records, so it's very large.
seid tiid
-----------
1 1
2 2
2 3
2 4
3 4
4 1
4 2
The table has a primary key on both fields, an index on seid and…
When I listen to a YouTube video fullscreen in landscape on my Galaxy Nexus, the navigation bar on the right disapear after a few seconds (the bar which contains the "back", "home" and "recent apps" buttons ).
I want to do the same thing when a user watch a video in my app. What is…
I am using one program to monitor the keyboard for input but would like to use that same program to populate the clipboard then automatically paste to the cursor location of the other program? Can this be done... I am using Delphi 4 Pro.