I'm using Ext JS 2.3.0 and have a bunch of fields contained within a FieldSet
I'd like to have them laid out side-by-side instead, ideally with the label on top of the field instead of to the left of it. The relevant code is:
var kpiFilterCombo = new Ext.form.ComboBox({
name: 'kpi',
store:…
The following is from the Python v3.1.2 documentation:
From The Python Language Reference Section 3.3.1 Basic Customization:
object.__hash__(self)
... User-defined classes have __eq__() and __hash__() methods
by default; with them, all objects compare unequal (except
with themselves) and x.__hash__() returns…
Hi,
I'm creating 2 Google calendars via the Java client API using the following Groovy method:
private CalendarEntry createGoogleCalendar(User user) throws ServiceException {
new CalendarEntry().with {calendar ->
title = new PlainTextConstruct(user.email)
summary = new…
One of the things that block objects, introduced in Snow Leopard, are good for is situations that would previously have been handled with callbacks. The syntax is much cleaner for passing context around. However, I haven't seen any information on the performance implications of using blocks…
Is there a leak in this code?
// Move the group
Group *movedGroup = [[Group alloc] init];
movedGroup = [[[[GroupList sharedGroupList] groups] objectAtIndex:fromIndex] copy];
[[GroupList sharedGroupList] deleteGroup:fromIndex];
[[GroupList sharedGroupList] insertGroup:movedGroup…
Odd behavior with file behavior. Here's the thing: I'm using the phone camera to snap a picture, and internally generating a thumbnail. I'm saving those as temp files in the Documents directory.
Here's the complete code:
- (void)imagePickerController:(UIImagePickerController…
I have 2 controls (MyCtrl) next to each other called ctrlLeft and ctrlRight.
Whenever one receives interaction it is considered active (by default the left one). I override OnDraw and customize the look of the active one a bit.
Currently I have a property Active and an event…
Wav files support different encodings, including mp3. Is there a C/C++ library that would produce mp3-encoded wav files from uncompressed wav? If not, what would be the best place to start to implement one?
The default output of File.toURL() is
file:/c:/foo/bar
These don't appear to work on windows, and need to be changed to
file:///c:/foo/bar
Does the format
file:/c:/foo/bar
work correctly on Unix (I don't have a Unix machine to test on)? Is there a library that can…
Currently working on a project where a login will be required to use the application.
I'm trying to figure out a smarter way to reset the application if someone is somehow logged out and the next one to login is not the same user.
The option I have come up with at the…
I have the following routine in a subclass of view:
It calculates an array of points that make up a line, then erases the previous lines, then draws the new lines (impact refers to the width in pixels drawn with multiple lines). The line is your basic bell curve,…
I'm trying to send emails to my website members using the mail() function with PHP,
The mails are in hebrew, and I want to send an html email,
That's pretty much how I send it
$mail_to = "Email@domain.com";
$message = "
<html>
some content here…
Hi,
I'm currently working on a site that will display a list of online shops,
Each shop will be stored on my database and I'll be using PHP to select and display them.
But since those shops will pay me, I want to let each shop to be on the top of the…
If you have a table with a clustered index on the Primary Key (int), is it redundant and bad to have one (ore more) non-clustered indexes that include that primary key column as one of the columns in the non-clustered index?
I'm new at setting a lot of this up, so bear with me.
I installed Ubuntu 10.4 server on a 64 bit machine. Then I added vnc so I could manage it while it's racked.
I start the server, SSH to it, and run
vncserver :1
At this point, all keys work…
The instructions for v.3 of the Google Maps API say that I
should load the Maps API using an API key
Curiously it says I should..., rather than I must..... Anyhow, at the moment, I am not using an API key simply because (as far as I can…
Good day Friends,
I've a mass mailing program with simple mail templates (HTML and few Images). I've a problem with image display. My clients are not getting images in the mail. Sometimes they get a mail with all the images, But if they…
Hi,
Given an instance of java.util.Date which is a Sunday. If there are 4 Sundays in the month in question, I need to figure out whether the chosen date is
1st Sunday of month
2nd Sunday of month
2nd last Sunday of month
Last Sunday…
I used the function - WNetAddConnection2A(n, UserName, Password, dwFlags) to programmatically map a drive and read the drive info out, and then used WNetCancelConnection2A(DriveLetter, dwFlags, ForceDisconnect) to unmap the drive. The…
Nemerle is a C-like language and mostly works very well with cindent. However, its construct analogous to switch is called match:
match (x)
{
| "Hello World" => ...
| _ => ...
}
Is it possible to get the cinoptions for switch…
Essentially what I'm trying to do is sync a production server with a sandbox server, but only the table structures and stored procedures. The procedures aren't any problem since they can be overriden, but the problem is the tables. I…