Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
sequence |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,396,681 | 1 | null | null | 3 | 1,906 | I am wondering why the following HTML/CSS renders fine until I put a doctype in:
```
<body style="margin:0; padding:0; background-color:#eeeeee"></body>
<div id="HeaderContainer" style="background-color:#eeeeee; color:Black; border-bottom:1px solid #cccccc; height:60px; margin:0px"></div>
<div style="width:100%; background-color:White; margin:0px; padding:0px">
<div style="margin:30px; width:840px; margin:10px auto; margin-top:50px; background-color:#cc0000;">
text
</div>
</div>
</div>
</body>
```
What I want is a header (a grey bar) with a dark grey border at the bottom. Beneath this, I want my content, which goes into a big 100% width div that's white (as the page is grey). The above code looks fine, but if I add this line to the top:
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
```
The margin on the innermost div turns from white to grey, so the page looks wrong.
Can anyone explain why? I am testing this using IE8 but it looks the same in Chrome.
Image description:

| Why does adding a DOCTYPE affect my CSS? | CC BY-SA 2.5 | 0 | 2010-08-03T13:01:09.293 | 2010-08-03T13:36:58.903 | 2017-02-08T14:29:32.260 | -1 | 174,375 | [
"html",
"css"
] |
3,397,113 | 1 | 3,397,158 | null | 1,711 | 2,530,136 | Can anyone explain how to remove the orange or blue border (outline) around text/input boxes? I think it only happens on Chrome to show that the input box is active. Here's the input CSS I'm using:
```
input {
background-color: transparent;
border: 0px solid;
height: 20px;
width: 160px;
color: #CCC;
}
```

| How to remove focus border (outline) around text/input boxes? (Chrome) | CC BY-SA 4.0 | 0 | 2010-08-03T13:49:03.267 | 2021-01-15T22:02:51.187 | 2020-04-19T10:35:24.930 | 8,583,669 | 303,221 | [
"css",
"google-chrome",
"input",
"focus",
"border"
] |
3,400,021 | 1 | 3,400,045 | null | 0 | 108 | [My HTML+CSS graphic](http://forsythrobotics.org/templates/forsythalliancenew_v2/so_copy_of_county_graphic.html)
My issue with this page is that the "High School", "Middle School", and "Elementary School" images center perfectly in all browsers except for IE6, 7, and 8.
Relevant parts of the page: ()
CSS:
```
#block {
clear: both;
width: 682px;
}
.education_level_wrapper {
float: left;
width: 100%;
}
.education_level {
margin-bottom: 3px;
margin-left: auto;
margin-right: auto;
display: block;
}
```
HTML:
```
<div id="block">
<div class="education_level_wrapper">
<img src="[sniped]/Title_HS.png" class="education_level" />
</div>
</div>
```


What am I doing wrong here?
See the fixed version here: [Non-Archived Graphic](http://forsythrobotics.org/templates/forsythalliancenew_v2/county_graphic.html). The above link was a snapshot to stay consistent for archival purposes.
| IE not centering these images, is there a fix? | CC BY-SA 2.5 | null | 2010-08-03T19:21:49.520 | 2010-08-04T15:45:14.610 | 2010-08-04T15:45:14.610 | 166,873 | 166,873 | [
"html",
"css",
"internet-explorer",
"centering"
] |
3,401,989 | 1 | 3,402,987 | null | 1 | 882 | I have a grid like below. Here I am getting problem with "". Here I have to use this text over the grid headers like the below screen. How can I use this? Highlighted in "Yellow" is the actual text.
Please help me on this. Thanks in advance.

| How to create columnspan in gridview? | CC BY-SA 2.5 | null | 2010-08-04T01:38:29.193 | 2010-08-04T17:19:43.447 | 2017-02-08T14:29:33.670 | -1 | 158,008 | [
"c#",
"asp.net"
] |
3,403,062 | 1 | null | null | 1 | 2,309 | I am trying to install Django on Windows XP. Here is what I did:
(1) Downloaded and installed Python 2.7 from
> [http://python.org/ftp/python/2.7/python-2.7.msi](http://python.org/ftp/python/2.7/python-2.7.msi)
in C:\Python27
---
(2) Downloaded Django 1.2.1 from
> [http://www.djangoproject.com/download/1.2.1/tarball/](http://www.djangoproject.com/download/1.2.1/tarball/)
---
(3). After unzipping the file I placed Django's folder inside Python's site packages folder as below:
> C:\Python27\Lib\site-packages\Django-1.2.1
---
(4). Now when I try to run "setup.py" in Django folder, I get the following error:
```
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\Django-1.2.1\setup.py", line 48, in <module>
root_dir = os.path.dirname(__file__)
NameError: name '__file__' is not defined
```
Screenshot can be seen below:

What am I doing wrong?
Thanks
| Django installation problem on Windows | CC BY-SA 2.5 | null | 2010-08-04T06:17:43.743 | 2013-01-20T03:15:50.597 | null | null | 402,076 | [
"python",
"django",
"installation"
] |
3,403,319 | 1 | null | null | 1 | 1,129 | I am using an Olimex sam7s256 board. I tried to get it up and running in linux (Ubuntu). I was able to successfully install GCC and binutils. I installed SAM-BA for linux from the atmel site. I was able to get the USB port for connection as specified in the SAM-BA manual (.dev/ttyUSB0).
But when I try to use the GUI and 'connect' there is no response.
I though that there is a connection failure, so when I presses the reset button in the board, I get a message "Failed to initialize FLASH accesses".
No matter how long I wait before pressing the reset button,

can any one one help me out in this?
I did the 'tst' jumper set, reconnect the board for 10 s, disconnect and 'tst' jumper reset, reconnect before opening SAM-BA.
Any help will be greatly appreciated.
I am stuck.
It is the same for both SAM-BA 2.9 and 2.8.
| SAM-BA not responding with olimex sam7s256 | CC BY-SA 2.5 | null | 2010-08-04T07:08:22.987 | 2010-08-07T05:34:52.943 | 2017-02-08T14:29:34.353 | -1 | 408,192 | [
"embedded",
"arm",
"microcontroller"
] |
3,407,079 | 1 | 4,225,016 | null | 3 | 2,719 | When laying out a group, the Windows Ribbon Framework supports [some predefined layouts](https://learn.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-templates). One of the layouts, which requires buttons is called `FourButtons`.
This layout supports 3 different sizes, , , and . In each case it gives the layouts:
:

:

:

Right now i am using the `FourButtons` predefined template in my xml file as:
```
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://schemas.microsoft.com/windows/2009/Ribbon">
...
<Application.Views>
<Ribbon>
...
<Ribbon.Tabs>
<Tab CommandName="tabHome">
<Group CommandName="grpActivity" SizeDefinition="FourButtons">
<Button CommandName="cmdStartWorking" />
<Button CommandName="cmdStopWorking" />
<Button CommandName="cmdPrint" />
<Button CommandName="cmdDuplicateTicket" />
</Group>
</Tab>
</Ribbon.Tabs>
</Ribbon>
</Application.Views>
</Application>
```
And you can see the line
```
<Group CommandName="grpActivity" SizeDefinition="FourButtons">
```
which specifies the `FourButtons` layout template.
And my layout is :
[](https://i.stack.imgur.com/9TPe8.png)
Except i don't want layout, i want "".
In the same way that there is `ThreeButtons-OneBigAndTwoSmall`:

And there is a `FiveButtons`:

i want a `FourButtons-TwoBigTwoSmall`, which i can manually mockup:
[](https://i.stack.imgur.com/HudkS.png)
Unfortunately declarative programming [that Microsoft invented for creating custom layouts](https://learn.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-templates) confounds me as a programmer.
Can anyone decipher the declarative language example at the bottom of the page and come up with a template?
All the pretty graphics, formatting, links, and stuff are used to attract squirrels - who love shiny graphics. And if you actually read this far i could use your help.
| Windows 7 Ribbon: How to specify "Four buttons, two big, two small"? | CC BY-SA 4.0 | null | 2010-08-04T15:25:34.850 | 2019-08-04T21:07:29.920 | 2019-08-04T21:07:29.920 | 4,751,173 | 12,597 | [
"windows-7",
"ribbon",
"windows-ribbon-framework",
"scenic-ribbon",
"uiribbon"
] |
3,407,712 | 1 | 3,408,695 | null | 0 | 2,517 | I tried the suggestion [here](https://stackoverflow.com/questions/2323063/wpf-resizing-listbox-contents-according-to-listbox-dimensions) regarding Stretching, but it didn't work for me.
I have a TabItem that hosts a UserControl that is essentially just a ListBox with an ItemsPanel. The ItemsPanel forces the ListBox to display its contents horizontally. The contents of the ListBox are databound to an `ObservableCollection<StackPanelContents>`, which is another UserControl. `StackPanelContents` itself basically just contains a `List` of objects with some visual representation (they contain a UIElement for visualization).
In general the code works properly in that it renders all of the data that I have contained in the `ObservableCollection`, but the problem is that the items don't resize as the window is enlarged or shrunk.
Here's an overview of what the class hierarchy looks like:

And here are the results:

The XAML for the main window just has the TabControl and TabItem:
```
<Window x:Class="ResizeStackPanelInListBox.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<TabControl>
<TabItem Header="Test" x:Name="MyTabItem">
<!-- contents are set in code behind -->
</TabItem>
</TabControl>
</Window>
```
The ListBoxContainer XAML that displays the StackPanelContents looks like this:
```
<UserControl x:Class="ResizeStackPanelInListBox.ListBoxContainer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="Auto" Width="Auto">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock>ListBox with StackPanels as its ListBoxItems:</TextBlock>
<ListBox Grid.Row="1" ItemsSource="{Binding StackPanels}" HorizontalContentAlignment="Stretch">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" Width="Auto" Height="Auto" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</Grid>
</UserControl>
```
And the StackPanelContents UserControl looks like this:
```
<UserControl x:Class="ResizeStackPanelInListBox.StackPanelContents"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="Auto" Width="Auto">
<StackPanel>
<TextBlock Text="StackPanel"></TextBlock>
<StackPanel x:Name="MyStackPanel">
</StackPanel>
</StackPanel>
</UserControl>
```
Can anyone explain why this isn't resizing automatically, and how I can go about resolving this? Am I going to have to write my own custom panel to deal with this, and use `MeasureOverride` and `Arrange`?
| Having trouble getting contents of ListBox to resize with it | CC BY-SA 2.5 | null | 2010-08-04T16:38:02.663 | 2010-08-04T18:39:10.423 | 2017-05-23T12:01:33.300 | -1 | 214,071 | [
"wpf",
"listbox",
"resize",
"stackpanel",
"itemspaneltemplate"
] |
3,407,751 | 1 | 3,407,773 | null | 6 | 4,265 | I've already searched on SO to see if there has been a similar question but I haven't found anything so far.
I'm looking to add a help window to my application, similar to the ones found in many other applications (Example below):

As you can see the help window allows you to give plenty of instructions for particular functions of an application, as well as the ability to print it off for future reference.
How would I go about adding this to my application?
| Adding a help window to an application - C# | CC BY-SA 3.0 | null | 2010-08-04T16:42:57.167 | 2012-12-19T11:57:34.553 | 2017-02-08T14:29:36.043 | -1 | 218,159 | [
"c#",
".net",
"winforms"
] |
3,409,985 | 1 | 3,410,088 | null | 176 | 89,399 | EDIT: This is a nice ready-made menubar application [here](http://blog.shpakovski.com/2011/07/cocoa-popup-window-in-status-bar.html) ([github source](https://github.com/shpakovski/Popup)) by this [answer](https://stackoverflow.com/a/6834833/264795).
---
I was wondering how to make a menubar application, what are the requirements for that to do so?
I saw a simple application for the menubar was to open links using your browser, I want to create something similar to that.

This is the application I like to make similar.
| How to create a Menubar application for Mac | CC BY-SA 3.0 | 0 | 2010-08-04T21:29:16.443 | 2019-02-19T22:49:47.863 | 2017-05-23T12:17:49.537 | -1 | 264,795 | [
"macos",
"cocoa",
"menubar"
] |
3,410,098 | 1 | 3,410,144 | null | 6 | 3,966 | How can I put `<input type="text"/>` and `<input type="button"/>` in one line, like this...

...so that they fit inside their parent (`<div>` for example), with textbox taking maximal possible width?
Of course, additional `div`s can be used. `table`s are allowed but discouraged.
| Fit a textbox and a button inside a div | CC BY-SA 3.0 | 0 | 2010-08-04T21:44:35.913 | 2012-06-22T21:16:14.910 | 2012-06-22T21:16:14.910 | 241,039 | 241,039 | [
"css",
"html"
] |
3,410,727 | 1 | 3,410,803 | null | 18 | 17,641 | I'm trying to achieve this effect with css3:

The HTML code is cleanly something like
```
...
<header>
...
</header>
<div id="wrapper">
...
</div>
...
```
and the css is, for the moment, something like
```
header {
display: block;
width: 900px;
height: 230px;
margin: 0 auto;
border: 1px solid #211C18;
...
box-shadow: 2px 4px 20px #005377;
-moz-box-shadow: 2px 4px 20px #005377;
-webkit-box-shadow: 2px 4px 20px #005377;
}
#wrapper {
width: 820px;
margin: 0 auto;
...
border-right: 1px solid #211C18;
border-bottom: 1px solid #211C18;
border-left: 1px solid #211C18;
...
box-shadow: 2px 4px 20px #005377;
-moz-box-shadow: 2px 4px 20px #005377;
-webkit-box-shadow: 2px 4px 20px #005377;
}
```
In order to obtain the desired result, I need to:
1. Hide the top shadow of the main div (no problem with that)
2. Bring header's bottom shadow in front of the main div, and not behind as it is right now.
I've been reading a lot about box-shadow, and I haven't found a solution that really pleases me...
Any idea?
| CSS3 box-shadow for overlapping-like divs | CC BY-SA 2.5 | 0 | 2010-08-04T23:45:04.740 | 2012-01-08T18:48:42.680 | 2017-02-08T14:29:37.080 | -1 | 302,076 | [
"css"
] |
3,410,904 | 1 | 3,412,455 | null | 3 | 771 | I like the Emacs color theme clarity. I start the theme with M-x color-theme-clarity. However, I would rather have the background was always black, rather than the mixed black and white as seen in my screenshot. It seems like if there is a line that has never had text on it, it will be white rather than black. How do I fix this?
Thank you and best regards.

| Modifying an existing emacs color theme | CC BY-SA 2.5 | 0 | 2010-08-05T00:28:38.560 | 2011-11-02T09:28:34.123 | null | null | 318,976 | [
"emacs"
] |
3,412,215 | 1 | 3,837,499 | null | 0 | 212 | I have a couple of images, representing tents, that look like this:


The red and blue parts on each side of the tents are doorways, and several tents can be connected together via these doorways. For example, I want to connect the two blue doorways so that they match up like in this picture:

If the first tent is stationary, around which point do I rotate the second tent and how do I calculate where to place it?
Currently, I have the upper left corner of each doorway as an x and a y value, together with the width and direction (in degrees) of the door. I'm treating the doorways as one dimensional, so they don't have heights. Would another representation suit this better? Perhaps a start point and an end point plus direction?
I'm coding this in Flex/AS3, but I'm more after a way of thinking than code, though code would be appreciated too!
| Calculating position for rotated image | CC BY-SA 2.5 | null | 2010-08-05T06:20:20.553 | 2010-10-01T08:15:46.437 | 2017-02-08T14:29:38.777 | -1 | 169,670 | [
"apache-flex"
] |
3,412,624 | 1 | 3,413,016 | null | 3 | 851 | My requirement is
1) I should like the one which is given below in the figure.
2) I need to then compute the say C and D. or D and F. ( as per the figure A and B are categories C,D,E and F are terms under the respective categories.
----------
C and D ---------------------- 2
C and F ---------------------- 4
D and E---------------------- 4
---
[https://t3.gstatic.com/images?q=tbn:N-Lb_jjMYri3aM:http://skrud.net/files/binary_tree_boat_race.png&t=1](https://t3.gstatic.com/images?q=tbn:N-Lb_jjMYri3aM:http://skrud.net/files/binary_tree_boat_race.png&t=1)

Is there any suitable which could do this functionality for me or I should write a algorithm on my own.
If at all there are no suitable API's available where can I look for an algorithm to implement this....
Would appreciate your timely help
Thanks in advance,
| Any Java Tree API which can be used to find distance between 2 terms | CC BY-SA 2.5 | null | 2010-08-05T07:33:25.603 | 2010-08-09T11:48:36.497 | 2017-02-08T14:29:39.113 | -1 | 409,596 | [
"java",
"algorithm",
"api"
] |
3,417,028 | 1 | 3,419,973 | null | 16 | 35,402 | I would like to reproduce the following figure in MATLAB:

There are two classes of points with X and Y coordinates. I'd like to surround each class with an ellipse with one parameter of standard deviation, which determine how far the ellipse will go along the axis.
The figure was created with another software and I don't exactly understand how it calculates the ellipse.
Here is the data I'm using for this figure. The 1st column is class, 2nd - X, 3rd - Y. I can use `gscatter` to draw the points itself.
```
A = [
0 0.89287 1.54987
0 0.69933 1.81970
0 0.84022 1.28598
0 0.79523 1.16012
0 0.61266 1.12835
0 0.39950 0.37942
0 0.54807 1.66173
0 0.50882 1.43175
0 0.68840 1.58589
0 0.59572 1.29311
1 1.00787 1.09905
1 1.23724 0.98834
1 1.02175 0.67245
1 0.88458 0.36003
1 0.66582 1.22097
1 1.24408 0.59735
1 1.03421 0.88595
1 1.66279 0.84183
];
gscatter(A(:,2),A(:,3),A(:,1))
```
FYI, [here](https://stackoverflow.com/questions/2153768/matlab-to-draw-ellipse-and-ellipsoid) is the SO question on how to draw ellipse. So, we just need to know all the parameters to draw it.
---
I agree that the center can be calculated as the means of X and Y coordinates. Probably I have to use principal component analysis (`PRINCOMP`) for each class to determine the angle and shape. Still thinking...
| Ellipse around the data in MATLAB | CC BY-SA 3.0 | 0 | 2010-08-05T16:40:15.363 | 2022-06-22T14:23:22.787 | 2017-05-23T11:53:01.437 | -1 | 163,080 | [
"matlab",
"plot",
"ellipse",
"normal-distribution",
"standard-deviation"
] |
3,418,721 | 1 | 3,427,105 | null | 5 | 2,100 | I have a Group entity which has many Item entities. An Item entity can be in multiple groups. The relevant portion of my model looks like this:

When I call
```
[fetchedResultsController performFetch:&error]
```
I get this error in the console
```
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'to-many key not allowed here' ***
```
I'm pretty sure the problem is in how I'm setting up the predicate here:
```
[NSPredicate predicateWithFormat:@"groups == %@", self.group];
```
But I can't tell what I'm doing wrong. I've read over the NSPredicate documents and I've tried this:
```
[NSPredicate predicateWithFormat:@"ANY groups IN %@", [NSArray arrayWithObject:self.group]];
[NSPredicate predicateWithFormat:@"ANY groups LIKE %@", self.group];
[NSPredicate predicateWithFormat:@"ANY groups == %@", self.group];
[NSPredicate predicateWithFormat:@"ANY groups IN %@", [NSArray arrayWithObject:self.group]];
[NSPredicate predicateWithFormat:@"groups == %@", self.group];
```
None of which work. This has got to be simple, but I can't figure it out. I simply want the predicate to filter all the items so as to only return items that are members (through the model relationship) of the group. How do you do this?
I have a NSFetchedResultsController that I am trying to configure to show only the items in a specific group. My code to setup the NSFetchedResultsController looks like this:
```
// create the fetch request
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
// configure the entity
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Item" inManagedObjectContext:managedObjectContext];
[fetchRequest setEntity:entity];
// configure the predicate
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"groups == %@", self.group];
[fetchRequest setPredicate:predicate];
// configure the sort descriptors
NSSortDescriptor *indexSortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"uniqueID" ascending:YES];
NSArray *sortDescriptors = [NSArray arrayWithObject:indexSortDescriptor];
[fetchRequest setSortDescriptors:sortDescriptors];
// create the fetched results controller
NSFetchedResultsController *aFetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:managedObjectContext sectionNameKeyPath:nil cacheName:@"ItemsCache"];
// configure the fetched results controller
aFetchedResultsController.delegate = self;
```
| How do I set up an NSPredicate that filters for items in a specified group using NSFetchedResultsController | CC BY-SA 2.5 | 0 | 2010-08-05T20:05:05.120 | 2010-08-06T19:32:15.740 | 2017-02-08T14:29:41.463 | -1 | 92,260 | [
"iphone",
"cocoa-touch",
"core-data"
] |
3,419,039 | 1 | null | null | 2 | 1,456 | > I apologize if this is a duplicate
question but it's kind of hard to
fiddle through all the datepicker
requests..
I'm basically looking to implement this:

I'm not really familiar with using datepicker other than a trivial setup. Has anyone had to implement this before, and if so how did you set it up to handle both arrive/depart textfields?
Misc questions:
- -
Functionality notes:
- - - -
I'd appreciate any insight, you don't have to necessarily provide me with a fully working demo or anything.
| jQuery Datepicker: Arrival and Depart textfields? | CC BY-SA 2.5 | 0 | 2010-08-05T20:49:40.593 | 2010-08-06T09:22:22.310 | null | null | 145,190 | [
"jquery",
"datepicker"
] |
3,419,270 | 1 | 3,420,044 | null | 0 | 182 | I am trying to program an application for the mac to query a high performance computing cluster about its running and queued calculation jobs. The aim is to be able to monitor the submitted jobs if they are still queued and waiting for execution or if they are running and on which node or host in the cluster.
On the GUI side I would like to be able to display an `NSTableView` showing all submitted job and alternatively a second option to see all hosts in the cluster, how many and which jobs are running on each node.
The model objects themselves are not so hard to do, what bothers me most is the lifecycle and the ownership relations between the host and the job objects. This has to be well designed otherwise I will run into memory management problems.

The yellow queue object is the root object of my object graph and it owns all the host objects (has an `NSArray` of custom host objects). Each host object owns all the job object which are running on this host (also by having an `NSArray` of custom job objects). I think that there are two major problems with this approach:
1. where are all the job objects store which are still queued and are not already running on a host. They lack a parent host object.
2. How would one implement a NSTableView containing all the job objects?
The yellow root object holds directly references to all job objects by having them stored in a `NSArray`. Each job has an instance variable retaining a host object. Again here are some problems
1. I would also have the hosts in the model which are currently idle, so no job is currently executed on them.
2. How would one implement the data source for a NSTableView showing all the hosts.
3. How does one make sure that there are no duplicate host objects, so that each host in the cluster is represented by one host object only.
My questions are:
1. Which of the two possibilities make most sense? Are there alternatives?
2. Would one better implement it with CoreData?
3. How would one manage the object lifecycle so that there are no retain cycles or dangling pointers.
| How to model a HPC queueing system with Objective-C | CC BY-SA 2.5 | null | 2010-08-05T21:23:33.777 | 2010-08-05T23:50:02.440 | 2017-02-08T14:29:41.803 | -1 | 369,817 | [
"objective-c",
"core-data",
"data-modeling"
] |
3,419,535 | 1 | 3,419,545 | null | 5 | 2,416 | I'm trying to build a CSS-based table that will be populated with information coming from a database.
What is the most appropriate tag to use for this structured data? I originally considered ul since each row is an unordered list of data... but then I uncovered some difficulties making it into a grid using CSS.
I'm now looking at DIV (inline?) and Span. There may be others. What tag would be considered the industry standard way of displaying a CSS based grid?
Although I'm interested in learning what's most appropriate one from a DOM-Theory perspective, ultimately I want clean code that is consistent among browsers... This may weed out the ul tag entirely.
What do the experts think?
So it seems that everyone is recommending that I use a table for (duh) tabular data. The only reason I don't feel silly for asking this question is because my ASP.net grid vendor is having issues with a dynamically resizing grid... and allowing for the columns to be resized on the client.
The vendor claims that the reason columns are having issues with a resize is because of tables. They will be moving to a DIV based layout to fix the issue. I'll post a reference link shortly...
Search for the word "Based" and you will see the posting from a MVP who mentions the internal changes:
[http://stagev5.componentart.com/community/forums/t/60782.aspx](http://stagev5.componentart.com/community/forums/t/60782.aspx)
Perhaps a large non-table based grid will also render faster.
You might say I need a lot of scalibility (for a large rowset) and the ability to resize the panes. Very similar to how Outlook currently looks/operates:

Summary of needs:
I'm looking for a Table approach that allows for:
- - - - -
| What HTML tag is most appropriate for display in a Grid or Table? (with specific needs) | CC BY-SA 2.5 | null | 2010-08-05T21:57:42.813 | 2016-10-02T14:28:57.117 | 2017-02-08T14:29:42.507 | -1 | 328,397 | [
"html",
"css",
"html-table"
] |
3,422,263 | 1 | 3,545,682 | null | 0 | 3,571 | I made a Java program that runs on a computer with two RS-232 ports.
It works pretty good. I connected two devices that communicate with each other through RS-232. I put the computer between the cable.
You can see everything getting send on a terminal window.
But after a random amount of time one device stops responding to queries.
Normally device 1 sends query 1 and the device responds.
But after some time the device starts sending query 2 and device 2 doesn't respond anymore.
Here is a capture:
- - -

Why is this not working? I'm planning on making the terminal program open source in the future.
EDIT:
I didn't post any code because the code works. It only stops working after 5 min - 1 hour.
Here is the connection code:
```
CommPortIdentifier portIdentifier;
portIdentifier = CommPortIdentifier.getPortIdentifier("COM1");
InputStream inCom1;
InputStream inCom2;
if (portIdentifier.isCurrentlyOwned()) {
addError("COM1 in use!, please restart");
}
else {
SerialPort serialPort = (SerialPort) portIdentifier.open("Main", 2000);
//19200 8n1
serialPort.setSerialPortParams(19200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
// CTS/RTS handshaking
serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN | SerialPort.FLOWCONTROL_RTSCTS_OUT);
//Set sender
Com1Sender.setWriterStream(serialPort.getOutputStream());
//Set receiver
// new com1_receive(serialPort.getInputStream()).start();
inCom1 = serialPort.getInputStream();
portIdentifier = CommPortIdentifier.getPortIdentifier("COM2");
if (portIdentifier.isCurrentlyOwned()) {
addError("COM2 in use!, please restart");
}
else {
serialPort = (SerialPort) portIdentifier.open("Main2", 2001);
//19200 8n1
serialPort.setSerialPortParams(19200, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
// CTS/RTS handshaking
serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN | SerialPort.FLOWCONTROL_RTSCTS_OUT);
//Set sender
Com2Sender.setWriterStream(serialPort.getOutputStream());
//set receiver
// new com2_receive(serialPort.getInputStream()).start();
inCom2 = serialPort.getInputStream();
new Receiver(inCom1, inCom2).start();
}
}
```
This is the receiver:
```
public class Receiver extends Thread {
InputStream inCom1;
InputStream inCom2;
public Receiver(InputStream inCom1, InputStream inCom2) {
this.inCom1 = inCom1;
this.inCom2 = inCom2;
}
@Override
public void run() {
try {
int b1;
int b2;
while (true) {
// if stream is not bound in.read() method returns -1
//dect
while ((b1 = inCom1.read()) != -1) {
//Send trough to COM2
Com2Sender.send(new byte[]{(byte) b1});
Main.addText(Integer.toString(b1), true);
}
//televic
while ((b2 = inCom2.read()) != -1) {
//Send trough to COM2
Com1Sender.send(new byte[]{(byte) b2});
Main.addText(Integer.toString(b2), false);
MessageExtractor.add(b2);
}
// Wait 10 ms when stream is broken and check again.
sleep(10);
}
} catch (Exception e) {
Main.addError(e.getMessage());
}
}
}
```
This is one of the senders:
```
public class Com1Sender {
static OutputStream out;
public static void setWriterStream(OutputStream out) {
Com1Sender.out = out;
}
public static void send(byte[] bytes) {
try {
// Sending through serial port is simply writing into OutputStream.
out.write(bytes);
out.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void send(int letter) {
try {
Main.addText(Character.toString((char)letter), false);
// Sending through serial port is simply writing into OutputStream.
out.write(new byte[]{(byte)letter});
out.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
}
```
| com0com RS232 terminal Java program | CC BY-SA 3.0 | 0 | 2010-08-06T08:52:28.833 | 2012-01-08T07:24:52.637 | 2017-02-08T14:29:42.863 | -1 | 373,207 | [
"java",
"terminal",
"serial-port",
"com0com"
] |
3,425,633 | 1 | 3,595,878 | null | 9 | 953 | I'm doing some image processing, and am trying to keep track of points similar to those circled below, a very dark spot of a couple of pixels diameter, with all neighbouring pixels being bright. I'm sure there are algorithms and methods which are designed for this, but I just don't know what they are. I don't think edge detection would work, as I only want the small spots. I've read a little about morphological operators, could these be a suitable approach?
Thanks

| How to detect points which are drastically different than their neighbours | CC BY-SA 2.5 | 0 | 2010-08-06T16:11:19.687 | 2015-12-01T20:20:02.810 | null | null | 90,317 | [
"c++",
"algorithm",
"image",
"image-processing",
"opencv"
] |
3,425,931 | 1 | 3,426,032 | null | 2 | 15,668 | I am trying to create double and number format cells in excel using NPOI library. I used code like
```
Dim cell As HSSFCell = row.CreateCell(j)
cell.SetCellValue(Double.Parse(dr(col).ToString))
```
In excel numbers are aligning right but when I check format it is showing in "General"

then I changed my code to like below
```
Dim cell As HSSFCell = row.CreateCell(j)
cell.SetCellValue(Double.Parse(dr(col).ToString))
Dim cellStyle As HSSFCellStyle = hssfworkbook.CreateCellStyle
cellStyle.DataFormat = HSSFDataFormat.GetBuiltinFormat("#,#0.0")
cell.CellStyle = cellStyle
```
Then While opening file it is giving error and also taking so long to open. But Excel format showing in "Number"
error showing is like below.

How to fix this?
| NPOI Excel number format not showing in Excel sheet in asp.net | CC BY-SA 2.5 | 0 | 2010-08-06T16:50:25.743 | 2018-03-08T10:22:45.350 | 2017-02-08T14:29:44.250 | -1 | 158,008 | [
"c#",
"asp.net",
"vb.net",
"excel",
"npoi"
] |
3,426,091 | 1 | 3,460,346 | null | 0 | 2,207 | I'm trying to specify custom Y axis tick marks, but IDL is not cooperating.

In the top left, 1.0000 should be the max value, but IDL puts a 57 there. 57 is the max array dimension of my data.
I have an array of eta levels(strings) corresponding 1:1 with the array indices, and I want to use them as tick marks. I've got a bit of code that let's it plot X major tick marks, but IDL keeps throwing that silly max array index value in there instead of my desired final tick mark.
Is there a way I can get rid of that?
As requested, here is the code:
```
;Get the total number of possible y axis values( this case has 58 )
number_of_ticks = (size( custom_levels[ min_level:max_level ] ) )[1]
;I want 6 major tick marks
number_of_major_ticks = 6
;The amount in between each tick in terms of array index
tick_step = number_of_ticks / number_of_major_ticks
;Check if we can fit another tick mark in
if ((((number_of_major_ticks - 1)+min_level) * tick_step) + tick_step) LT number_of_ticks then begin
number_of_major_ticks = number_of_major_ticks + 1
endif
;Get the array positions of the values that will be used for tick marks
tick_array_indices = indgen( number_of_major_ticks )
tick_array_indices = (tick_array_indices+min_level) * tick_step
;Now build the array of tick mark strings that should be displayed
y_tick_labels = strarr( number_of_major_ticks + 1 )
for i = 0, number_of_major_ticks - 1 do begin
y_tick_labels[i] = custom_levels[ tick_array_indices[ i ] ]
endfor
;That's all the initial setup, now to actually plot the data:
if overplot EQ 1 then begin
CASE contour_type OF
'Solid Line':contour, var_slice, /overplot, levels = var_levels, /FOLLOW, Color = 0, YSTYLE = 1, XSTYLE = 1, XRANGE = [0, n_points ], YRANGE = [ min_level, max_level ]
'Dashed Line':contour, var_slice, /overplot, levels = var_levels, /FOLLOW, C_LINESTYLE = [1], C_COLOR = 0, Color = 0, YSTYLE = 1, XSTYLE = 1, YRANGE = [ min_level, max_level ], XRANGE = [0, n_points ]
endcase
endif else begin
CASE contour_type OF
'Fill':contour, var_slice, /Fill, C_COLORS=var_colors, Background = 16777215, levels=var_levels, POSITION=[0.1, 0.25, 0.9, 0.95], /NORMAL, Color = 0, Title = 'Cross section plot between coordinates ' + strtrim(lat[x1, y1],2) + ',' + strtrim(lon[x1, y1],2) + ' and ' + strtrim(lat[x2, y2],2) + ',' + strtrim(lon[x2, y2],2), YTICKS = number_of_major_ticks, YTICKNAME = y_tick_labels, YTITLE = custom_levels_title, XTITLE = 'Points in between the 2 chosen coordinates', CHARSIZE = 1.2, YSTYLE = 1, XSTYLE = 1, YRANGE = [ min_level, max_level ], XRANGE = [0, n_points ]
'Solid Line':contour, var_slice, Background = 16777215, levels=var_levels, POSITION=[0.1, 0.25, 0.9, 0.95], Color = 0, Title = 'Cross section plot between coordinates ' + strtrim(lat[x1, y1],2) + ',' + strtrim(lon[x1, y1],2) + ' and ' + strtrim(lat[x2, y2],2) + ',' + strtrim(lon[x2, y2],2), YTICKS = number_of_major_ticks, YTICKNAME = y_tick_labels, YTITLE = custom_levels_title, XTITLE = 'Points in between the 2 chosen coordinates', CHARSIZE = 1.2, YSTYLE = 1, XSTYLE = 1, YRANGE = [ min_level, max_level ], XRANGE = [0, n_points ]
'Dashed Line':contour, var_slice, Background = 16777215, levels=var_levels,C_LINESTYLE = [1], C_COLOR = 0, POSITION=[0.1, 0.25, 0.9, 0.95], Color = 0, Title = 'Cross section plot between coordinates ' + strtrim(lat[x1, y1],2) + ',' + strtrim(lon[x1, y1],2) + ' and ' + strtrim(lat[x2, y2],2) + ',' + strtrim(lon[x2, y2],2), YTICKS = number_of_major_ticks, YTICKNAME = y_tick_labels, YTITLE = custom_levels_title, XTITLE = 'Points in between the 2 chosen coordinates', CHARSIZE = 1.2, YSTYLE = 1, XSTYLE = 1, YRANGE = [ min_level, max_level ], XRANGE = [0, n_points ]
endcase
endelse
```
The fill case is the one that is being used right now. var_slice is a 450x58 array in this case.
| Why is IDL adding it's own tick marks to my custom plot tick marks? | CC BY-SA 3.0 | null | 2010-08-06T17:15:08.890 | 2014-06-18T15:51:04.223 | 2014-06-18T15:51:04.223 | 2,982,225 | 392,030 | [
"plot",
"axis",
"idl-programming-language"
] |
3,426,652 | 1 | 3,428,201 | null | 1 | 316 | [flickr](http://www.flickr.com/photos/diesel_travis/4859762987/)
Here's a simplified demo: [http://jsbin.com/emugo3](http://jsbin.com/emugo3)
```
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
try {
$(function () {
$.noop();
$("#hello").text("it works");
});
} catch (e) {
alert(e.message);
}
</script>
```
The user agent for my phone's browser is:
```
NokiaE71x/ATT.03.28 Mozilla/5.0 SymbianOS/9.3; U; [en]; Series60/3.2; Profile/MIDP-2.1 Configuration/CLDC-1.1 AppleWebKit/413 (KHTML, like Gecko) Safari/413
```
I've tried googling this error and I've seen people with really old versions of Safari having the same issue, but I haven't seen a solution yet. Does anyone know anything I can try?
| Trying to use jQuery on my Nokia gives me this error: TypeError: "Object $ (result of expression $) does not allow calls." | CC BY-SA 2.5 | 0 | 2010-08-06T18:30:00.173 | 2010-08-06T22:18:04.513 | 2017-02-08T14:29:44.593 | -1 | 1,414 | [
"jquery",
"webkit",
"symbian",
"nokia",
"s60"
] |
3,427,253 | 1 | 3,428,468 | null | 2 | 3,277 | On the demo website for jqGrid, the columnChooser module is displayed like this:

It allows you to both reorder the columns and select which columns are to be shown.
Unfortunately when I enter this section of code into my application(The code that is suppose to make this appear exactly as portrayed):
```
jQuery("#colch").jqGrid('navButtonAdd','#pcolch',
{ caption: "Columns",
title: "Reorder Columns",
onClickButton : function (){
jQuery("#colch").jqGrid('columnChooser');
}
// ...
```
It displays a column chooser; however, it only allows you to choose which columns to display and not the order the appear. One other noticeable difference is that the interface looks nothing like the above, it is simply a list of columns that you either select or de-select, by control click to select them one at a time or shift-click to select in bulk.
Here is a link to the demo site, to use as a reference.
[http://trirand.com/blog/jqgrid/jqgrid.html](http://trirand.com/blog/jqgrid/jqgrid.html)
| How do I persuade JqGrid columnChooser to use the correct interface? | CC BY-SA 2.5 | 0 | 2010-08-06T19:52:24.907 | 2016-01-23T09:09:02.840 | 2017-02-08T14:29:44.937 | -1 | 364,604 | [
"php",
"javascript",
"jqgrid"
] |
3,427,532 | 1 | 3,427,581 | null | 2 | 87 | I should know this but I expect it to be a simple answer...
This is my simple database so far for this question:

Am I supposed to insert the Id from Contact and Phone into Contact_Phone when I insert a record into Contact and Phone tables - or can this be done automatically?
I am using SQL Server 2008 Express.
| Normalized Database Question | CC BY-SA 2.5 | null | 2010-08-06T20:28:04.567 | 2010-08-06T20:51:34.907 | null | null | null | [
"database-design",
"relational-database",
"sql-server-2008-express"
] |
3,427,701 | 1 | 3,427,744 | null | 2 | 2,405 | I have the following database schema:

Here's how I populate a DropDownList in my AreaController.cs:
```
public ActionResult Edit(int id)
{
Area area = areaRepository.GetArea(id);
JefeRepository jefe = new JefeRepository();
ViewData["Jefes"] = new SelectList(jefe.FindAllJefes().ToList(), "ID", "Nombre", area.Jefe.Nombre);
return View(area);
}
```
Then in my View I display it like so:
```
<%: Html.DropDownList("IDJefe", (SelectList)ViewData["Jefes"]) %>
```
The DropDownList loads correctly but only shows the Name of the Jefe. I want to display both name and last name. How can I achieve this?
I've tried doing something like this but it only display the first name.
```
ViewData["Jefes"] = new SelectList(jefe.FindAllJefes().ToList(), "ID", "Nombre", area.Jefe.Nombre + area.Jefe.Apellido);
```
This is how it shows:

| How to populate a DropDownList in ASP.Net MVC2? | CC BY-SA 2.5 | null | 2010-08-06T20:48:02.447 | 2010-08-06T20:54:09.373 | 2010-08-06T20:53:07.377 | 112,355 | 112,355 | [
"asp.net-mvc-2",
"drop-down-menu"
] |
3,428,606 | 1 | null | null | 1 | 1,243 | So I want to change the UIPickerView background to add a black rectangle next to the white part of the scroller, a la the Convert app.

However I'm not sure how to go about doing that. I know there's no direct way to do it, but I've also looked at trying to write my own UIPickerView from scratch using UIScrollView. This didn't seem very promising.
Do you have any suggestions or tips? Really appreciate it.
| Custom UIPickerView Background | CC BY-SA 2.5 | null | 2010-08-07T00:06:10.997 | 2011-04-28T00:00:12.863 | null | null | 144,268 | [
"iphone",
"uiscrollview",
"uipickerview"
] |
3,429,959 | 1 | 3,470,439 | null | 87 | 95,056 | I am using the Android plugin for Eclipse, and when I try to run my program using a real device through the , my phone is not listed as a device. I have updated Eclipse, all of the Android packages, and the USB driver, but it still isn't showing up. My phone is running Android 2.1, which is also the target version listed in the Eclipse project.
Also it happens that the device shows up as an unknown target and the serial number as question marks as shown in the screenshot.

| Why is Eclipse's Android Device Chooser not showing my Android device? | CC BY-SA 3.0 | 0 | 2010-08-07T09:45:17.107 | 2015-07-23T12:34:10.577 | 2012-12-02T13:22:36.473 | 356,895 | 412,168 | [
"android",
"eclipse",
"adb"
] |
3,430,933 | 1 | 3,431,027 | null | 0 | 292 | 
I'm following the book Pro ASP.Net MVC2 and I can't move past this point.
What would cause this error?
Why does it say 'load an assembly from a network location' when my .dll is on my machine?
| NUnit won't load my unit test .dll file | CC BY-SA 2.5 | null | 2010-08-07T15:23:03.517 | 2010-08-07T15:47:23.837 | 2010-08-07T15:44:33.187 | 309,308 | 112,355 | [
"nunit"
] |
3,431,342 | 1 | null | null | 8 | 813 | Suppose that I open up MS Paint, draw a bunch of solid rectangles, save it as a png, and give it to you:

Now you have to find out how I drew these rectangles. For this image, your algorithm would generate instructions like,
1. Draw the green rectangle (filling up the entire space)
2. Draw the pink rectangle
3. Draw the yellow rectangle
4. Draw the blue rectangle
Or in other words, given an image, I want to generate it using the as possible. A rectangle command draws a solid rectangle given its position, length, width, and color. How can I approach this problem?
The algorithm should be robust enough to process images not only drawn by placing rectangles, but also .
| Algorithm to find the optimal way of covering a plane with colored rectangles | CC BY-SA 2.5 | 0 | 2010-08-07T17:20:06.300 | 2010-08-07T20:22:51.467 | null | null | 408,999 | [
"algorithm"
] |
3,432,605 | 1 | 3,438,742 | null | 3 | 543 | They are ruining the page I'm making. Anyone know a way of turning them off?
It ends up making the text look odd and blurry:

I've tried obfuscating them as so:
`+44 (<span>0) 1234</span> 567 890`
but Skype still recognises them. I am aware that is a plugin, just wondered if anyone knew of any meta tags or equivalent.
| Skype links in IE | CC BY-SA 2.5 | null | 2010-08-08T00:27:18.877 | 2010-08-09T09:27:35.407 | null | null | 222,013 | [
"internet-explorer",
"skype"
] |
3,432,891 | 1 | 3,432,896 | null | 1 | 6,673 | I want one image above the other. How can I do it?

[http://twitpic.com/2cnpku](http://twitpic.com/2cnpku)
| How to overlay an image over another image? | CC BY-SA 3.0 | 0 | 2010-08-08T02:53:03.957 | 2013-07-09T20:33:13.463 | 2011-11-29T02:58:15.257 | 234,976 | 243,035 | [
"html",
"css",
"image"
] |
3,433,226 | 1 | 3,433,240 | null | 0 | 590 | I have a couple of HP M5 servers that I've been collecting temperature reference data for a year now.
The problem I have is with graphing this with PHP.
I've tried half a dozen methods from Google chart to SWF charts and JS but all seem cumbersome due to the large amount of data.
How could I graph this data successfully and easily?<
At this time i am using a graph setup like this:

| graphing years of server temperature data | CC BY-SA 2.5 | null | 2010-08-08T05:42:31.040 | 2010-08-08T05:58:36.680 | 2017-02-08T14:29:46.647 | -1 | 149,523 | [
"php"
] |
3,433,360 | 1 | 3,509,136 | null | 40 | 37,989 | I'm trying to submit an update of an existing application on behalf of one of my clients, and I'm getting "Invalid Binary" failures from iTunes Connect with no explanation of the error. I'm leaving on a 2 week vacation without network access tomorrow, so I'm a bit desperate for a solution. Any insights are greatly appreciated.
This update changes the name of the application and fixes a few minor bugs. I did previous submissions via the iTunes Connect, but I'm submitting this update via Xcode as Apple now requires.
I set myself up as the technical contact for this client, so I receive a notification when I put the new version into a "Waiting for Upload" state via iTunes Connect. When I then validate the binary via the Xcode organizer, the tool eventually reports that the binary is valid. When I submit the binary via the Xcode organizer, it eventually comes back and says that the binary has been successfully uploaded. Both of these steps take a while (maybe 15 minutes each), probably because the app bundle is 63 megabytes with thousands of resources.
For the next hour or two the iTunes Connect portal still reports that the application is in a "Waiting for Upload" state. I believe some latency is normal between the time when the upload completes in Xcode and when the state changes in iTunes Connect. These hours of latency seem excessive, but not entirely surprising I suppose, given the size of the app.
Eventually the state just silently changes to "Invalid Binary" in iTunes connect. I understand that iTunes Connect is supposed to send out an email explaining the error when this happens, but I'm not receiving anything, nor is my client. (I assume it should go out to all users flagged for notification of app state changes in iTunes Connect. Is this assumption correct?)
Here are the build settings copied and pasted from my App Store Distribution configuration:
```
ADDITIONAL_SDKS =
ARCHS = $(ARCHS_STANDARD_32_BIT)
SDKROOT = iphoneos4.0
ONLY_ACTIVE_ARCH = YES
VALID_ARCHS = armv6 armv7
SYMROOT = /Users/cduhn/Documents/workspace/xcode_build_output
OBJROOT = $(SYMROOT)
CONFIGURATION_BUILD_DIR = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
CONFIGURATION_TEMP_DIR = $(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
SHARED_PRECOMPS_DIR = $(CACHE_ROOT)/SharedPrecompiledHeaders
BUILD_VARIANTS = normal
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
ENABLE_OPENMP_SUPPORT = NO
GENERATE_PROFILING_CODE = NO
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
RUN_CLANG_STATIC_ANALYZER = NO
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
VALIDATE_PRODUCT = NO
CODE_SIGN_ENTITLEMENTS = Entitlements.plist
CODE_SIGN_IDENTITY =
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution: Capturing Moments
CODE_SIGN_RESOURCE_RULES_PATH =
OTHER_CODE_SIGN_FLAGS =
STRIPFLAGS =
ALTERNATE_GROUP = $(INSTALL_GROUP)
ALTERNATE_OWNER = $(INSTALL_OWNER)
ALTERNATE_MODE = $(INSTALL_MODE_FLAG)
ALTERNATE_PERMISSIONS_FILES =
DEPLOYMENT_LOCATION = NO
DEPLOYMENT_POSTPROCESSING = NO
INSTALL_GROUP = $(GROUP)
INSTALL_OWNER = $(USER)
INSTALL_MODE_FLAG = u+w,go-w,a+rX
DSTROOT = /tmp/$(PROJECT_NAME).dst
INSTALL_PATH = $(HOME)/Applications
MACOSX_DEPLOYMENT_TARGET = $(inherited)
SKIP_INSTALL = YES
COPY_PHASE_STRIP = YES
STRIP_INSTALLED_PRODUCT =
STRIP_STYLE = all
TARGETED_DEVICE_FAMILY = 1
SEPARATE_STRIP = NO
IPHONEOS_DEPLOYMENT_TARGET = 3.0
MODULE_NAME =
MODULE_START =
MODULE_STOP =
MODULE_VERSION =
BUNDLE_LOADER =
STANDARD_C_PLUS_PLUS_LIBRARY_TYPE = dynamic
DYLIB_COMPATIBILITY_VERSION =
DYLIB_CURRENT_VERSION =
LINKER_DISPLAYS_MANGLED_NAMES = NO
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
LD_DYLIB_INSTALL_NAME =
EXPORTED_SYMBOLS_FILE =
INIT_ROUTINE =
LINK_WITH_STANDARD_LIBRARIES = YES
MACH_O_TYPE = mh_execute
LD_OPENMP_FLAGS = -fopenmp
ORDER_FILE =
OTHER_LDFLAGS = -all_load -ObjC
LD_MAP_FILE_PATH = $(TARGET_TEMP_DIR)/$(PRODUCT_NAME)-LinkMap-$(CURRENT_VARIANT)-$(CURRENT_ARCH).txt
GENERATE_MASTER_OBJECT_FILE = NO
PREBINDING = NO
PRELINK_LIBS =
KEEP_PRIVATE_EXTERNS = NO
LD_RUNPATH_SEARCH_PATHS =
SEPARATE_SYMBOL_EDIT = NO
PRELINK_FLAGS =
SECTORDER_FLAGS =
UNEXPORTED_SYMBOLS_FILE =
WARNING_LDFLAGS =
LD_GENERATE_MAP_FILE = NO
COMPRESS_PNG_FILES = YES
APPLY_RULES_IN_COPY_FILES = NO
EXECUTABLE_EXTENSION =
EXECUTABLE_PREFIX =
INFOPLIST_EXPAND_BUILD_SETTINGS = YES
GENERATE_PKGINFO_FILE = YES
FRAMEWORK_VERSION = A
INFOPLIST_FILE = iRevealMaui-Info.plist
INFOPLIST_OTHER_PREPROCESSOR_FLAGS =
INFOPLIST_OUTPUT_FORMAT = binary
INFOPLIST_PREPROCESSOR_DEFINITIONS =
INFOPLIST_PREFIX_HEADER =
INFOPLIST_PREPROCESS = NO
COPYING_PRESERVES_HFS_DATA = NO
PRIVATE_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/PrivateHeaders
PRODUCT_NAME = iRevealMaui
PLIST_FILE_OUTPUT_FORMAT = binary
PUBLIC_HEADERS_FOLDER_PATH = $(CONTENTS_FOLDER_PATH)/Headers
STRINGS_FILE_OUTPUT_ENCODING = binary
WRAPPER_EXTENSION = app
ALWAYS_SEARCH_USER_PATHS = NO
FRAMEWORK_SEARCH_PATHS =
HEADER_SEARCH_PATHS = ${SDKROOT}/usr/include/libxml2/** ../three20/Build/Products/three20
LIBRARY_SEARCH_PATHS = $(inherited) "$(SRCROOT)/../desiccant/Classes/External/google-analytics"
REZ_SEARCH_PATHS =
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch (*) CVS .svn *.xcodeproj *.xcode *.pbproj *.pbxproj
INCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES =
OTHER_TEST_FLAGS =
TEST_HOST =
TEST_RIG =
CURRENT_PROJECT_VERSION =
VERSION_INFO_FILE = $(PRODUCT_NAME)_vers.c
VERSION_INFO_EXPORT_DECL =
VERSION_INFO_PREFIX =
VERSION_INFO_SUFFIX =
VERSIONING_SYSTEM =
VERSION_INFO_BUILDER = $(USER)
GCC_FAST_OBJC_DISPATCH = YES
GCC_AUTO_VECTORIZATION = NO
GCC_OBJC_CALL_CXX_CDTORS = YES
GCC_ENABLE_SSE3_EXTENSIONS = NO
GCC_ENABLE_SSE41_EXTENSIONS = NO
GCC_ENABLE_SSE42_EXTENSIONS = NO
GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONS = NO
GCC_STRICT_ALIASING = NO
GCC_FEEDBACK_DIRECTED_OPTIMIZATION = Off
GCC_ENABLE_FIX_AND_CONTINUE = NO
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
GCC_DYNAMIC_NO_PIC = YES
GCC_GENERATE_TEST_COVERAGE_FILES = NO
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
GCC_MODEL_TUNING = G4
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
GCC_ENABLE_KERNEL_DEVELOPMENT = NO
GCC_DEBUGGING_SYMBOLS = default
GCC_REUSE_STRINGS = YES
GCC_NO_COMMON_BLOCKS = NO
GCC_ENABLE_OBJC_GC = unsupported
GCC_OPTIMIZATION_LEVEL = s
GCC_FAST_MATH = NO
GCC_ENABLE_SYMBOL_SEPARATION = YES
GCC_THREADSAFE_STATICS = YES
GCC_SYMBOLS_PRIVATE_EXTERN = YES
GCC_UNROLL_LOOPS = NO
GCC_MODEL_PPC64 = NO
GCC_CHAR_IS_UNSIGNED_CHAR = NO
GCC_ENABLE_ASM_KEYWORD = YES
GCC_C_LANGUAGE_STANDARD = c99
GCC_CHECK_RETURN_VALUE_OF_OPERATOR_NEW = NO
GCC_CW_ASM_SYNTAX = YES
GCC_INPUT_FILETYPE = automatic
GCC_ALTIVEC_EXTENSIONS = NO
GCC_ENABLE_CPP_EXCEPTIONS = YES
GCC_ENABLE_CPP_RTTI = YES
GCC_LINK_WITH_DYNAMIC_LIBRARIES = YES
GCC_ENABLE_OBJC_EXCEPTIONS = YES
GCC_ENABLE_TRIGRAPHS = NO
GCC_ENABLE_FLOATING_POINT_LIBRARY_CALLS = NO
GCC_USE_INDIRECT_FUNCTION_CALLS = NO
GCC_USE_REGISTER_FUNCTION_CALLS = NO
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO
OTHER_CPLUSPLUSFLAGS = $(OTHER_CFLAGS)
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREFIX_HEADER = iRevealMaui_Prefix.pch
GCC_ENABLE_BUILTIN_FUNCTIONS = YES
GCC_ENABLE_PASCAL_STRINGS = YES
GCC_FORCE_CPU_SUBTYPE_ALL = NO
GCC_SHORT_ENUMS = NO
GCC_ONE_BYTE_BOOL = NO
GCC_USE_STANDARD_INCLUDE_SEARCHING = YES
GCC_PREPROCESSOR_DEFINITIONS =
GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS =
GCC_WARN_CHECK_SWITCH_STATEMENTS = NO
GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = NO
GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO
GCC_WARN_ABOUT_GLOBAL_CONSTRUCTORS = NO
GCC_WARN_SHADOW = NO
GCC_WARN_64_TO_32_BIT_CONVERSION = NO
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
GCC_WARN_INHIBIT_ALL_WARNINGS = NO
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = NO
GCC_WARN_ABOUT_RETURN_TYPE = YES
GCC_WARN_MISSING_PARENTHESES = NO
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = NO
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO
GCC_WARN_ABOUT_MISSING_NEWLINE = NO
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = NO
WARNING_CFLAGS =
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = NO
GCC_WARN_PEDANTIC = NO
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
GCC_WARN_PROTOTYPE_CONVERSION = NO
GCC_WARN_SIGN_COMPARE = NO
GCC_WARN_STRICT_SELECTOR_MATCH = NO
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO
GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = NO
GCC_TREAT_WARNINGS_AS_ERRORS = NO
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
GCC_WARN_UNDECLARED_SELECTOR = NO
GCC_WARN_UNINITIALIZED_AUTOS = NO
GCC_WARN_UNKNOWN_PRAGMAS = NO
GCC_WARN_UNUSED_FUNCTION = NO
GCC_WARN_UNUSED_LABEL = NO
GCC_WARN_UNUSED_PARAMETER = NO
GCC_WARN_UNUSED_VALUE = NO
GCC_WARN_UNUSED_VARIABLE = YES
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
IBC_FLATTEN_NIBS = YES
IBC_OTHER_FLAGS =
IBC_PLUGIN_SEARCH_PATHS =
IBC_PLUGINS =
IBC_ERRORS = YES
IBC_NOTICES = YES
IBC_WARNINGS = YES
```
Here are the contents of my Info.plist:

Any insights are greatly appreciated.
Based on my status history, it appears that the "Invalid Binary" status is actually being established within minutes, but iTunes Connect is concealing this fact with a poorly designed caching strategy.
To monitor for a change in state, I've been refreshing and clicking around between four pages: "Manage Your Applications", the "App Information" page, "View Details", and "Status History". When the status history finally updates, it shows that the app went into an "Invalid Binary" state around an hour prior.
As an experiment, I tried changing my app ID and submitting the binary as a new app. This time, I clicked into the "View Details" page a few minutes after submitting the binary. Its status showed, "Upload Received". Apparent progress! A couple minutes later I clicked into Status History, and it showed "Invalid Binary" mere minutes after my upload finished. Then I went back and refreshed my "View Details" page. It still shows "Upload Received", despite the fact that the Status History shows "Invalid Binary". This is pretty clear evidence that all these pages are being cached and showing stale data for long periods of time. I only caught this when I resubmitted the binary as a new app because I was loading the pages for that app for the first time.
This doesn't solve my "Invalid Binary" problem, nor does it explain why I'm not getting any emails, but it does help rule out some hypotheses.
| What can cause "invalid binary" with no email followup from iTunes Connect? | CC BY-SA 3.0 | 0 | 2010-08-08T06:44:29.567 | 2018-12-21T04:26:17.803 | 2018-04-24T05:05:47.200 | 6,083,675 | 33,701 | [
"iphone",
"app-store-connect"
] |
3,434,250 | 1 | 3,434,439 | null | 0 | 2,611 | I am having some trouble with the flex Tree control.
I have a control in my system and of course it is data driven.
I have a group which shows a folder icon and that's fine but it also shows an expand icon when the item has no children.
I don't what it to show the expand icon when the group has no children but I do want to show the folder icon, because it is different entities in my system.
here's an example of what I'm talking about. I still want to show the folder icon, the expand Icon should be hidden in this case only for the child icon.

| flex expand and collapse icon in Tree control | CC BY-SA 2.5 | 0 | 2010-08-08T12:14:29.443 | 2010-08-08T13:22:23.107 | 2017-02-08T14:29:46.983 | -1 | 155,720 | [
"apache-flex",
"actionscript-3",
"flex3"
] |
3,434,774 | 1 | 3,435,073 | null | 0 | 168 | I need a way to programatically determine if this checkbox in control panel is checked (Windows XP):
Screenshot:

The checkbox is in Control Panel - Regional settings - Language - Supplemental language support - and is called "Install files for complex script and right-to-left languages".
It would be best to check for some related registry entry, but I do not know which one. Any ideas?
| Detect "Suplemental language support" on Windows XP | CC BY-SA 3.0 | null | 2010-08-08T15:08:50.070 | 2011-07-26T15:58:52.810 | 2011-07-26T15:58:52.810 | 128,662 | 126,910 | [
".net",
"windows-xp",
"globalization"
] |
3,436,276 | 1 | 3,603,737 | null | 9 | 4,236 | I'm loading a custom nib file to customize the cells of a UITableView. The custom nib has a UILabel that is referenced from the main view by tag. I would like to know if it is possible to change the shadow color of the UILabel when the cell is selected to a different color so it doesn't look like in the screenshot.

| UILabel shadow from custom cell selected color | CC BY-SA 3.0 | 0 | 2010-08-08T22:09:55.203 | 2013-11-11T22:53:01.820 | 2013-11-11T22:53:01.820 | 881,229 | 289,251 | [
"iphone",
"uitableview",
"uilabel"
] |
3,436,324 | 1 | null | null | 2 | 3,125 | I have the following code:
```
static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = @"Publisher";
cell.detailTextLabel.text = @"This Is A Very Very Long String";
```
which results with the following look: (only first table row is relevant)

As it appears, the detail text is overlapping the "Publish" title so both strings are truncated.
What I wish is to have the "Publish" title neverc being truncated as follows:

Is this possible using UITableViewCellStyleValue1? I saw many posts suggesting to create a custom cell but is it really the only way?
Thanks,
Josh
| Problems with UITableViewCellStyleValue1 | CC BY-SA 2.5 | null | 2010-08-08T22:24:14.983 | 2011-09-12T18:15:18.260 | null | null | 371,684 | [
"iphone",
"uitableview"
] |
3,437,786 | 1 | 3,437,825 | null | 2,385 | 2,070,531 | How can I get `windowWidth`, `windowHeight`, `pageWidth`, `pageHeight`, `screenWidth`, `screenHeight`, `pageX`, `pageY`, `screenX`, `screenY` which will work in all major browsers?

| Get the size of the screen, current web page and browser window | CC BY-SA 3.0 | 0 | 2010-08-09T06:28:58.150 | 2022-10-15T06:59:31.673 | 2020-06-09T09:02:24.820 | 860,099 | 408,393 | [
"javascript",
"html",
"jquery",
"layout",
"cross-browser"
] |
3,437,802 | 1 | 3,445,684 | null | 1 | 919 | I have a web service for a production application that is returning different results to different clients for the same inbound request.
I discovered this by configuring my clients to dump the raw WCF messages to trace files, which I then compared.
For one client machine, the response includes date/times targeted at time zone +13:00 - aka NZDT (New Zealand Daylight Time) (see the ObservedDate element):
```
<b:ObservationDTO>
<b:mVersionNumber>0</b:mVersionNumber>
<b:mBoolValue i:nil="true"></b:mBoolValue>
<b:mDateValue i:nil="true"></b:mDateValue>
<b:mIsNull>true</b:mIsNull>
<b:mNumericValue i:nil="true"></b:mNumericValue>
<b:mObservationID>0</b:mObservationID>
<b:mObservedDate>2005-09-30T00:00:00+13:00</b:mObservedDate>
<b:mTextValue i:nil="true"></b:mTextValue>
</b:ObservationDTO>
```
For another client machine, the response includes date/times targeted at time zone +12:00 - aka NZST (New Zealand Standard Time) (see the ObservedDate element):
```
<b:ObservationDTO>
<b:mVersionNumber>0</b:mVersionNumber>
<b:mBoolValue i:nil="true"></b:mBoolValue>
<b:mDateValue i:nil="true"></b:mDateValue>
<b:mIsNull>true</b:mIsNull>
<b:mNumericValue i:nil="true"></b:mNumericValue>
<b:mObservationID>0</b:mObservationID>
<b:mObservedDate>2005-09-29T23:00:00+12:00</b:mObservedDate>
<b:mTextValue i:nil="true"></b:mTextValue>
</b:ObservationDTO>
```
Trouble is, the client isn't picking up on the time zone information included and is therefore showing (for this example) to the user.
I've double checked, and all the machines involved (both clients, application server and web server) are all correctly configured to NZST:

Tracing through the WCF messages between client and server, the only other differences I've seen are:
- `<TimeCreated>`- `<Execution>`- `<Computer>`- `<MessageLogTraceRecord>`- `<MessageID>`
These five elements are different on each message - otherwise the message streams are identical, except for the date/times coming through as noted above.
To summarize:
- - - -
I figure that there must be a patch or something different between the machines, but after 8 hours of searching, I've yet to find it. Thanks for your time.
> Does the "wrong" client consistently get the wrong value for the same entry, or does it vary between calls? Does it always happen the same way round?
Each client is quite consistent from call to call.
The sequence of web service calls results in 26784 distinct time series observations. Both clients get the same number of results, but differ in the time stamps associated with the values. For one client, all 26784 values are midnight aligned; for the other, 5630 of the values (21%) are offset 1 hour earlier than they should be. Not all examples of a specific date/time will be offset: for example, of 992 records that should have timestamp 31/3/2010, 448 instead have 30/3/2010 11pm,
> If the requests are absolutely identical, it I can't see how it can really be explained by any difference at the client side.
I'm wondering if there is any "out of band" communication not shown in the WCF message tracing. Wild speculation: we're using "WindowsAuthenticationBasicHttpBinding", so I was wondering if WCF queried AD for locale information or something.
> Also, why are the clients ignoring the time zone
We're not knowingly ignoring the time zone, it just seems to be happening. We have DTOs with DateTime properties being serialized across the wire from the server to the client and then reassembled. For convenience, we're sharing the same DTO assembly both server and client side, so I'd (perhaps naiively) expect the Date Time to round trip intact.
| Inconsistent time zone in results from Web Service | CC BY-SA 2.5 | null | 2010-08-09T06:32:54.047 | 2010-08-10T02:47:04.123 | 2017-02-08T14:29:47.783 | -1 | 30,280 | [
"c#",
"wcf",
".net-3.5",
"windows-xp",
"timezone"
] |
3,437,884 | 1 | 3,441,860 | null | 5 | 3,249 | I have an UITextField in an UITableViewCell.
For some reason the clear button isn't align to the textField's text.
Here's my textField code:
```
cell.selectionStyle = UITableViewCellSelectionStyleNone;
usernameField = [[UITextField alloc] initWithFrame:CGRectMake(22, 10, cell.contentView.frame.size.width, cell.contentView.frame.size.height)];
usernameField.adjustsFontSizeToFitWidth = YES;
usernameField.placeholder = @"Username";
usernameField.backgroundColor = [UIColor clearColor];
usernameField.keyboardType = UIKeyboardTypeDefault;
usernameField.autocapitalizationType = UITextAutocorrectionTypeNo;
usernameField.autocorrectionType = UITextAutocorrectionTypeNo;
usernameField.returnKeyType = UIReturnKeyNext;
usernameField.delegate = self;
usernameField.clearButtonMode = UITextFieldViewModeAlways;
[usernameField setEnabled:YES];
[cell addSubview:usernameField];
[usernameField becomeFirstResponder];
[usernameField release];
```
And here's the picture to demonstrate the problem:

Edit:
I also tried with `- (CGRect)clearButtonRectForBounds:(CGRect)bounds` and still nothing
| Why doesn't the clear button aligned with the text in a UITextField? | CC BY-SA 3.0 | 0 | 2010-08-09T06:55:08.487 | 2011-12-09T17:52:04.023 | 2011-12-09T17:52:04.023 | 4,160 | null | [
"uitableview",
"uitextfield"
] |
3,439,700 | 1 | null | null | 0 | 100 | I'm planning on doing this, but I can't get my head around to if this is completely possible or not.
I'm trying to follow this design: 
The list on the left is populated by SQL. When clicking on one of these links on the left, the page will change (i.e. something like designers.php?designerID=whatever).
All this I can do easily, but I'm looking more at the CSS coding. You see when I click on a link, it covers in a purple box to show you've selected it (You can see in the image that Helen Mary is selected). I can do this in an non SQL list, but how would I do this WITH an SQL populated list?
| CSS and SQL populated lists | CC BY-SA 3.0 | null | 2010-08-09T11:53:22.947 | 2011-11-26T06:02:25.453 | 2011-11-26T06:02:25.453 | 234,976 | 409,894 | [
"php",
"sql",
"css",
"list"
] |
3,440,428 | 1 | 3,442,909 | null | 2 | 1,704 | I'm looking for a way to apply a "perspective correction" to an image in an iPhone app.
[This question](https://stackoverflow.com/questions/347721/uiview-perspective-transform/353611#353611) explains how to apply a perspective distortion, what I want is exactly the inverse operation...
Any idea how to do this?

| UIImage perspective correction | CC BY-SA 2.5 | 0 | 2010-08-09T13:24:40.867 | 2012-03-31T13:44:27.967 | 2017-05-23T11:53:28.290 | -1 | 135,050 | [
"iphone",
"objective-c"
] |
3,441,431 | 1 | 3,441,459 | null | 4 | 810 | Ive noticed when looking at the source of a page generated in ASP.NET, the actual markup is very messy - sort of a half-assed tabbed affair with bundles of whitespace thrown in (see pic).

Can anyone suggest a technique to remove/strip this whitespace?
| Cleaning 'messy' markup rendered by ASP.NET | CC BY-SA 2.5 | 0 | 2010-08-09T15:11:59.403 | 2018-09-07T10:40:22.333 | null | null | 35,026 | [
"asp.net",
"html",
"whitespace",
"markup"
] |
3,441,561 | 1 | null | null | 3 | 845 | Can anyone please tell me how to create a combobox like following with Gtk (on Linux)? (I already ask this question for win32 API).

A code example or tutorial will be very helpful. I have tried searching this over the internet, but unfortunately documentations/tutorials aren't that much rich for Gtk. Thank you very much.
Regards,
| How to create combobox with images in Gtk? | CC BY-SA 3.0 | null | 2010-08-09T15:26:09.797 | 2016-01-20T00:30:35.293 | 2020-06-20T09:12:55.060 | -1 | 134,804 | [
"c++",
"linux",
"combobox",
"gtk"
] |
3,442,178 | 1 | 3,442,332 | null | 1 | 1,412 | I'm dealing with a rather frustrating bug. My ultimate goal is to have an image, which glows on IsMouseOver, and can be clicked to call an event. This seems all too complicated, but the other alternative I found was creating a custom user control, which is even more excessive. This is what I've done so far:
```
<Style x:Key="DelButton" TargetType="Button">
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="Red" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Image Source="/HaskList;component/Images/Del24.png" Stretch="None"/>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Image Source="/HaskList;component/Images/Del24h.png" Stretch="None"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
```
My button is defined as:
```
<Button HorizontalAlignment="Right" Margin="0,28,6,0" Name="delButton" VerticalAlignment="Top" Style="{DynamicResource DelButton}" Click="delButton_Click" />
```
This is what's happening:

Thanks for any suggestions.
| Button growing 8 pixels when MouseOver WPF XAML | CC BY-SA 2.5 | null | 2010-08-09T16:40:36.437 | 2010-08-09T17:00:15.683 | null | null | 258,107 | [
"wpf",
"image",
"xaml",
"button",
"controltemplate"
] |
3,443,484 | 1 | 3,485,105 | null | 2 | 1,825 | I have Drupal with CCK,
I have a content type named Article.
This Article has 5 Node references.
I'm using the table field in CCK and I'm trying to connect it to
the references, so each article [that holds a table field]
would have a table with 5 columns, one for each product
and content that can change according to what the user wants
However I'm not really sure how to do so, I tried
adding the products to the columns once they are chosen in the reference
via jquery, it seemed sluggish.. is there any former solution to this?
Image to clearify

| Node Reference to Table in Drupal | CC BY-SA 2.5 | null | 2010-08-09T19:30:27.993 | 2010-08-14T21:05:56.577 | null | null | 333,283 | [
"drupal",
"reference",
"cck"
] |
3,444,031 | 1 | null | null | 1 | 1,290 | WPF 4.0 notoriously fixed the [blurry text issue](http://blogs.msdn.com/b/text/archive/2009/08/24/wpf-4-0-text-stack-improvements.aspx). Setting `TextOptions.TextFormattingMode="Display"` uses pixel hints to line up characters, which works really well to improve clarity.
However, it does not work while the program is running as a Windows service in session 0; the text goes back to "Ideal" rendering, which at small sizes is completely unreadable. Below is a comparison of the two renderings.
Not running as a service:

Running as a service:

Rendering code:
```
//rtb is a RenderTargetBitmap
//c is a FormatConvertedBitmap with rtb as it's source
while (displayRunning) {
if (lcd != null) {
Dispatcher.Invoke(new ThreadStart(delegate() {
if (dv == null) {
dv = new DrawingVisual();
using (DrawingContext dc = dv.RenderOpen()) {
dc.DrawRectangle(Brushes.White, new Pen(), new Rect(0, 0, 256, 64));
dc.Close();
}
}
rtb.Render(dv);
rtb.Render((Visual)Content);
//bitmap output just for testing
PngBitmapEncoder e = new PngBitmapEncoder();
e.Frames.Add(BitmapFrame.Create(c));
using (FileStream f = File.Open("C:\\test.png", FileMode.Create))
e.Save(f);
WriteableBitmap bitmapdata = new WriteableBitmap(c);
srcdata = new byte[bitmapdata.BackBufferStride * bitmapdata.PixelHeight];
System.Runtime.InteropServices.Marshal.Copy(bitmapdata.BackBuffer, srcdata, 0, srcdata.Length);
}));
try {
framesender.Send(new PicoLCDFrame(srcdata, lcd.OutputReportLength), lcd);
} catch (NullReferenceException) { } // device was unplugged
}
Thread.Sleep(33);
}
```
I realize there are no screen pixels for hints when rendering the fonts as a service, but shouldn't it get the pixel hints from the bitmap it is rendering to? Is there anything I can do about this?
Apparently, it using pixel hints, but it is anti-aliasing for some reason. Below is the rendered bitmap before it is downsampled to 1 bits/pxel.

I do have `TextOptions.TextRenderingMode="Aliased"` set and it seems that WPF is ignoring that when running as a service? It needs to be on to look good when downsampled. How can I force it?
It may have something to do with WPF rendering in Tier 0 (software mode) when running as a service and Tier 2 (hardware) when not.
On Windows XP, as a service, it renders like this:

Notice the margin difference, the font size difference, and an otherwise perfect rendering. WTF?
| WPF text rendering inconsistencies | CC BY-SA 2.5 | null | 2010-08-09T20:46:36.377 | 2010-08-11T20:28:49.767 | 2010-08-11T20:28:49.767 | 89,966 | 89,966 | [
"wpf",
"text",
"drawing",
"rendering"
] |
3,444,879 | 1 | 3,463,859 | null | 1 | 13,470 | I am trying to access a REST webservice, however my code doesn't work and keeps throwing a HTTP 401 error
see this example screen cap from Wireshark of the initial ssl request:

This is from a Curl call to the same web address with the same details. The issue is that under my VB.NET version the "Extension: server_name" (and related) part of the SSL packet is missing, I believe that this is causing the server to not reply with the Server key exchange in the next couple packets.
Below is the VB.NET code
```
Dim webRequest As HttpWebRequest = DirectCast(System.Net.WebRequest.Create(UrlString), HttpWebRequest)
webRequest.Method = "GET"
webRequest.ContentType = "application/x-www-form-urlencoded"
webRequest.Credentials = New NetworkCredential(username, password)
Dim response As HttpWebResponse = DirectCast(webRequest.GetResponse(), HttpWebResponse)
```
This fails on the last line (HTTP 401 error), issue does not seem to be related to my proxy and the user credentials are correct for the server as this request works from Curl and wget.
I have already tried setting the AuthenticationLevel as well as manually setting the Authorization header, and PreAuthenticate doesn't seem to change this issue either.
| Accessing REST WebService in VB.NET | CC BY-SA 3.0 | null | 2010-08-09T23:13:14.743 | 2012-02-28T11:11:05.353 | 2012-02-28T11:11:05.353 | 1,147,455 | 288,747 | [
".net",
"rest",
"ssl",
"https",
"httpwebrequest"
] |
3,444,977 | 1 | 3,525,095 | null | 9 | 1,394 | I am getting strange aliasing behaviour in a WPF app using [FluidKit's](http://fluidkit.codeplex.com/) ElementFlow control. We are using the control in an app at work for presenting content, and when the elements of the ElementFlow are tilted, the edges alias as per the following image:

In order to avoid the aliasing, we decided to get rid of the tilt angle, so I created a quick test app where I bound the tilt angle, item gaps, and popout distance to sliders so I could find out what looked best.
However, in the test app using the same settings, the edges are nicely anti-aliased:

I am assuming there is some setting somewhere up the XAML hierarchy that is controlling this but I've tried setting `SnapsToDevicePixels` on various elements and styles, both at design time and run time (with bindings and tools like Snoop) to no avail.
The XAML for the ElementFlow is as follows:
```
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<Fluid:ElementFlow
x:Name="ContentElementFlow"
SelectedIndex="{Binding SelectedIndex}"
Focusable="True"
TiltAngle="15.95"
ItemGap="0.722"
FrontItemGap="0.052"
PopoutDistance="1.631"
HasReflection="False"
Background="Transparent"
CurrentView="{StaticResource CoverFlowView}"
ElementWidth="175"
ElementHeight="250"
>
<Fluid:ElementFlow.Camera>
<PerspectiveCamera
FieldOfView="60"
Position="0,0,6"
LookDirection="0,0,-6"
UpDirection="0,1,0"
/>
</Fluid:ElementFlow.Camera>
</Fluid:ElementFlow>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
```
I've also tried both apps on two different machines (one running XP Pro, one XP Embedded, both have differing levels of dedicated graphics) and both demonstrate aliasing in one app and anti-aliasing in the other.
Does anyone know of any setting or XAML attribute that can be used to control this?
| Inconsistent anti-aliasing in WPF 3.5 | CC BY-SA 2.5 | 0 | 2010-08-09T23:36:47.000 | 2010-08-21T05:17:32.863 | 2017-02-08T14:29:51.453 | -1 | 172,905 | [
".net",
"wpf",
"antialiasing"
] |
3,445,349 | 1 | 41,798,031 | null | 4 | 327 | I've been struggling with a strange problem which has arisen in using the CorePlot framework, but which I suspect isn't an error in the framework itself. I'm hoping somebody here will have seen something similar, and can point me in a productive direction.
I have a tabbed view in which graphs are shown. The tab that is initially active has no problems at all, but often when I open the next tab, I see the following:

Note that on the top graph, several labels are missing. If I switch back to the original tab, then to the second tab again, all is well every time. I've placed various diagnostic logging statements in and have determined that:
1. The view is awake before the graph is created; and
2. The drawInContext: method of each label is being called, including those that are missing. In fact, the axis labels are amongst the last things rendered, so I'd expect them to show if anything does, and some of the labels that are missing are being rendered after (and before) those that are present.
Because the rendering seems to be going ahead as it should, and because this thing draws fine "the second time around", I suspect that the problem is in how I'm hooking this up to the views, or in my timing there, and not in Core Plot itself (or, for example, in clipping). I'm out of ideas on how to debug this, though, and would love to hear from anybody who has experience with a similar problem.
Thanks!
| CALayers not showing when drawn the first time | CC BY-SA 3.0 | null | 2010-08-10T01:13:29.607 | 2017-01-23T01:25:34.107 | 2011-12-04T10:45:51.660 | 84,042 | 415,675 | [
"cocoa",
"core-animation",
"core-plot"
] |
3,445,608 | 1 | null | null | 0 | 1,269 | I asked a question awhile back about how to properly do my css/html so I could make a rounded widget based on an image I had. The question was answered [here](https://stackoverflow.com/questions/3249576/how-would-you-design-the-css-and-html-to-divide-up-this-rounded-widget/3249730#3249730) and the solution works great.
The widgets look just like I want them to:

Their basic structure is:
```
<div id="widget3" class="widget">
<div class="widget-top">
<div class="widget-header">
<div class="widget-nw"></div>
<div class="widget-n">
<div class="widget-header-title">Demo Widget 3</div>
<div class="widget-header-link"><a href="#">Edit</a></div>
<div class="widget-header-controls">
<span class="widget-header-control"><img src="images/icon-refresh.png" class="widget-refresh" alt="refresh" /></span>
<span class="widget-header-control"><img src="images/icon-minimize.png" class="widget-minimize" alt="minimize" /></span>
<span class="widget-header-control"><img src="images/icon-close.png" class="widget-close" alt="close" /></span>
</div>
</div>
<div class="widget-ne"></div>
</div>
</div>
<div class="widget-bottom">
<div class="widget-body">
<div class="widget-w"></div>
<div class="widget-e"></div>
<div class="widget-content">
Demo Widget 3<br />
Demo Widget 3<br />
Demo Widget 3<br />
Demo Widget 3<br />
Demo Widget 3
</div>
</div>
<div class="widget-footer">
<div class="widget-sw"></div>
<div class="widget-s">
<div class="widget-footer-controls">
<span class="widget-footer-control">
</span>
</div>
</div>
<div class="widget-se"></div>
</div>
</div>
</div>
```
Css:
```
.widget-nw
{
background-image: url('images/widget-top-left.png');
background-repeat: no-repeat;
position: absolute;
top: 0;
left: 0;
height: 28px;
width: 6px;
z-index: 2;
}
.widget-ne
{
background-image: url('images/widget-top-right.png');
background-repeat: no-repeat;
position: absolute;
top: 0;
right: 0;
height: 28px;
width: 6px;
z-index: 2;
}
.widget-sw
{
background-image: url('images/widget-bottom-left.png');
background-repeat: no-repeat;
position: absolute;
bottom: 0;
left: 0;
height: 28px;
width: 6px;
z-index: 2;
}
.widget-se
{
background-image: url('images/widget-bottom-right.png');
background-repeat: no-repeat;
position: absolute;
bottom: 0;
right: 0;
height: 28px;
width: 6px;
z-index: 2;
}
.widget-w
{
background-image: url('images/widget-middle-left.png');
background-repeat: repeat-y;
position: absolute;
left: 0;
height: 100%;
width: 6px;
z-index: 1;
}
.widget-e
{
background-image: url('images/widget-middle-right.png');
background-repeat: repeat-y;
position: absolute;
right: 0;
height: 100%;
width: 6px;
z-index: 1;
}
.widget-n
{
background-image: url('images/widget-top-middle.png');
background-repeat: repeat-x;
position: absolute;
top: 0;
height: 28px;
width: 100%;
z-index: 1;
}
.widget-s
{
background-image: url('images/widget-bottom-middle.png');
background-repeat: repeat-x;
position: absolute;
bottom: 0;
height: 28px;
width: 100%;
z-index: 1;
}
.widget
{
position: relative;
}
.widget-header-title
{
float: left;
font-size: 8pt;
font-weight: bold;
font-family: Verdana, Tahoma, Helvetica;
margin: 8px 0px 0px 10px;
color: #4c3166;
cursor: move;
}
.widget-content
{
padding: 28px 6px;
}
.widget-header-controls
{
float: right;
margin: 6px 10px 0px 0px;
}
.widget-header-control
{
cursor: pointer;
padding-right: 1px;
}
.widget-header-link
{
margin: 6px 0px 0px 10px;
float: left;
}
```
Now, however, I'm trying to make that "Up Arrow" icon in the top-right of the widget toggle a minimize/maximize using jQuery (so will only show the top-bar or conversely the whole thing). I'm attempting to animate it either using animate() or slideUp()/slideDown().
```
$(document).ready(function () {
$('.widget-minimize').click(function () {
toggleMinimize($(this).parents('.widget').attr('id'));
});
});
function toggleMinimize(widgetId) {
if ($('#' + widgetId + ' .widget-bottom').is(':visible')) {
$('#' + widgetId + ' .widget-bottom').slideUp();
$('#' + widgetId).find('.widget-minimize').attr('src', 'images/icon-maximize.png').attr('alt', 'maximize');
}
else {
$('#' + widgetId + ' .widget-bottom').slideDown();
$('#' + widgetId).find('.widget-minimize').attr('src', 'images/icon-minimize.png').attr('alt', 'minimize');
}
}
```
This isn't working correctly when I try to minimize/maximize it. I have a feeling it has something to do with jQuery incorrectly calculating the height of my widget but I don't know of an easy way to really change the widget. I've also tried using the animate() method and altering the height but I ran into problems of not knowing what height to expand it back out to when it was time to "maximize" the widget. Also, they were still sliding on top of each other.
What can I do to make it so I can I properly minimize/maximize my widget without them sliding on-top of eachother (and still be animated)?
Try it out (Live Demo): [Here](http://dl.dropbox.com/u/638285/SO/widget-model.htm)
| How can I change my CSS so my widgets don't overlap each other when trying to "minimize" them? | CC BY-SA 2.5 | null | 2010-08-10T02:25:08.467 | 2013-04-14T10:38:14.077 | 2017-05-23T12:13:38.490 | -1 | 64,878 | [
"jquery",
"html",
"css",
"widget"
] |
3,446,727 | 1 | 3,457,108 | null | 53 | 23,182 | How does Linux determine the next PID it will use for a process? The purpose of this question is to better understand the Linux kernel. Don't be afraid to post kernel source code. If PIDs are allocated sequentially how does Linux fill in the gaps? What happens when it hits the end?
For example if I run a PHP script from Apache that does a `<?php print(getmypid());?>` the same PID will be printed out for a few minutes while hit refresh. This period of time is a function of how many requests apache is receiving. Even if there is only one client the PID will eventually change.
When the PID changes, it will be a close number, but how close? The number does not appear to be entirely sequential. If I do a `ps aux | grep apache` I get a fair number of processes:

How does Linux choose this next number? The previous few PID's are still running, as well as the most recent PID that was printed. How does apache choose to reuse these PIDs?
| How does Linux determine the next PID? | CC BY-SA 3.0 | 0 | 2010-08-10T07:03:26.973 | 2016-03-20T03:55:45.993 | 2014-12-06T15:39:38.630 | 512,251 | 183,528 | [
"linux",
"apache",
"linux-kernel",
"kernel"
] |
3,447,129 | 1 | 4,850,553 | null | 0 | 191 | I am interested in purchasing a SSL/TSL certificate for my website and I would like to know which retailer allows me to add my custom message in the green address bar like in this image :

You can see there : "COMPANIA NATIONALA DE TRANSPORTURI AERIENE ..."
I want something like that too.
| Add Custom Green BAR MSG with EV SSL | CC BY-SA 3.0 | null | 2010-08-10T08:14:53.027 | 2011-07-22T07:58:46.797 | 2011-07-22T07:58:46.797 | 128,662 | 450,504 | [
"linux",
"security",
"browser",
"ssl"
] |
3,447,472 | 1 | null | null | 0 | 147 | In my app I want to create something like this: [like this](http://picasaweb.google.it/dr.cervo/Develop?feat=email#5503703287992443698):

I thought to put five buttons inside a linear layout, but the problem is how to show the inner items at run time. Every time i click on a button i want to show the proper items and hide the others.
| Android: need help to create UI | CC BY-SA 2.5 | null | 2010-08-10T09:12:55.853 | 2010-08-10T11:53:30.917 | 2017-02-08T14:29:52.873 | -1 | 415,963 | [
"android"
] |
3,451,006 | 1 | 3,451,188 | null | 0 | 487 | How can I get a NSTextField (or any object) to respect the autoresizing options below via code? I want to add new objects to the view dynamically, but when I increase the height of the view, they are anchored to the bottom left, as opposed to the top left as shown, and so new textfields are dropped on top of the old ones.
Is this even possible via code?

| What's the code equivalent to the autoresizing mask anchoring options in IB? | CC BY-SA 2.5 | null | 2010-08-10T16:06:40.550 | 2010-08-11T04:34:18.043 | 2017-02-08T14:29:54.230 | -1 | 270,472 | [
"objective-c",
"cocoa",
"interface-builder",
"autoresize"
] |
3,451,121 | 1 | 3,451,860 | null | 1 | 799 | I have `<ul>` tag, in that I have couple of `<li>` items. When I added text to list item. Text is showing left side. I want make it center. I tried different ways to make it. But still showing left side.
```
<ul>
<li > <a href="#fragment-5" >
<asp:LinkButton ID="lnkResources" runat="server"
CssClass="custom-tab" Text="Favorites"
OnClientClick="jQuery('#tabs').tabs('select','#fragment-5');">
</asp:LinkButton>
</a>></li>
</ul>
```

see above pic. It shows to left of the tab. I want make it center.
| Make text center in <ul> using jquery tabs | CC BY-SA 2.5 | null | 2010-08-10T16:20:32.677 | 2010-08-10T17:47:43.927 | 2017-02-08T14:29:54.577 | -1 | 158,008 | [
"asp.net",
"jquery",
"html"
] |
3,453,466 | 1 | 3,454,778 | null | 0 | 5,683 | I everyone. I'm very new to Android development and I want to develop an application that uses a local database. I want to show the results of queries in a DataGrid like object.
The UI would be somewhat similar to this.

Is it possible to develop this kind of UI in Android? If so how can I accomplish this? Are there good tutorials I can follow?
Thank you very much.
Marco Sousa
| Android equivalent to Windows Mobile Datagrid control? | CC BY-SA 3.0 | null | 2010-08-10T21:11:27.693 | 2012-04-18T03:18:37.907 | 2011-07-30T16:49:41.583 | 808,940 | 416,619 | [
"android",
"datagrid"
] |
3,453,695 | 1 | 3,454,648 | null | 28 | 68,688 | I am an R newbie and had a question. I am trying to place some text into an R plot. Here's some code using the brightness dataset in the UsingR package.
```
library(UsingR)
brightness
MyMean <- mean(brightness)
MyMedian <- median(brightness)
MySd <- sd(brightness)
hist(brightness, breaks=35, main="This is a Histogram",
xlab="Brightness", ylab="Frequency", xlim=c(0,15), ylim=c(0, 200))
text(3.5, 150, paste("Mean =", round(MyMean, 1), "\n Median =",
round(MyMedian, 1), "\n Std.Dev =", round(MySd, 1)))
```
This code produces:

The issue with this output is that the text is not left left alligned. Does anyone know how to make the text left alligned.
Thanks.
| Align text inside a plot | CC BY-SA 3.0 | 0 | 2010-08-10T21:43:55.853 | 2022-09-09T13:07:19.053 | 2017-05-16T12:10:02.343 | 6,607,497 | 406,278 | [
"r",
"text",
"text-alignment"
] |
3,454,046 | 1 | 3,544,275 | null | 3 | 747 | Some people have mentioned [RockScroll](http://www.hanselman.com/blog/IntroducingRockScroll.aspx) and [MetaScroll](http://code.google.com/p/metalscroll/) in [This Question](https://stackoverflow.com/questions/132452/keyword-highlighting-on-selection-in-visual-studio-2008), but those only seem to work in code, is there something that will work with file type, including plain text files?
In Resharper I can do ALT-SHIFT-F11, but again, that only works in source files, I need this functionality in plain text files as well. If not then at least in JavaScript and HTML files.
Screen shot below is of Notepad++ in action.

| Highlight similar strings in Visual Studio like in Notepad++, for any file type | CC BY-SA 2.5 | 0 | 2010-08-10T22:40:51.630 | 2010-08-23T01:54:47.807 | 2017-05-23T11:45:25.620 | -1 | 66,803 | [
"visual-studio",
"syntax-highlighting"
] |
3,455,355 | 1 | 4,103,833 | null | 2 | 100 | I've got a simple question that I just KNOW won't be possible, but here goes:
It makes me crazy that I can make a beautifully crafted Flash app which needs to access to some local resources, with the user's permission, and that God-awful little box appears. To be clear, I have no problem with WHAT it's doing, just how it LOOKS. I want to skin it myself.
This is an example of what I mean:

I've run some focus testing, and users feel intimidated by this thing; they think the site is trying to do something spamful.
My only "solution" has been to try to educate the users with a help button which has a snapshot of the dialog telling them what to do with it. Not ideal.
Anyway, it's a rant + question, so any help would be appreciated.
Cheers,
Shane
| Is it possible to customise the ugly little Flash "Local Settings" dialog? | CC BY-SA 2.5 | null | 2010-08-11T04:45:40.657 | 2010-11-05T05:44:52.953 | 2017-02-08T14:29:55.937 | -1 | 123,592 | [
"flash",
"actionscript-3",
"customization"
] |
3,457,107 | 1 | 5,444,154 | null | 23 | 19,348 | I am looking for a WPF control which is a hybrid of TreeView and DataGrid, something like the Visual Studio debugger or QuickBooks contacts list etc.
Any other solution on how to handle editable hierarchical data in WPF will be very welcommed as well.

| Handle editable hierarchical data / TreeView~DataGrid hybrid | CC BY-SA 4.0 | 0 | 2010-08-11T09:40:09.303 | 2019-05-14T20:37:53.197 | 2019-02-15T22:11:24.003 | 2,642,204 | 75,500 | [
"wpf",
"datagrid",
"controls",
"treeview",
"wpf-controls"
] |
3,458,235 | 1 | 3,463,576 | null | 1 | 821 | Consider the following svg snippet:
```
<linearGradient id="redgradient" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="0%" stop-color="#ffffff"/>
<stop offset="100%" stop-color="#ff0000"/>
</linearGradient>
<rect x="0" y="0" width="400" height="400" fill="url(#redgradient)"/>
```
Is there a way of specifying that the colours should be blended together using a bell shaped curve?
(Similar to the [GDI+ LinearGradientBrush::SetBlendBellShape method](http://msdn.microsoft.com/en-us/library/ms535343(VS.85).aspx))
The two rectangles below show the difference - bell blend, bell blend:

Or is it left to the SVG renderer to decide how the colors should be blended together?
| Can I define a linear gradient in SVG with a normal/bell-shaped blend? | CC BY-SA 2.5 | null | 2010-08-11T12:34:30.233 | 2019-04-03T23:00:58.653 | 2017-02-08T14:29:57.627 | -1 | 144,486 | [
"graphics",
"svg",
"linear-gradients",
"svg-filters"
] |
3,459,576 | 1 | 3,459,597 | null | 0 | 781 | I'm noticing some strange behavior when I add a `ComboBox` to my Windows `Form`:
when I resize the `Form` without a `ComboBox`, it behaves correctly and the File menu stays where it's supposed to stay even when I drag the right corner as far left as possible. When I add the `ComboBox` and I try to do the same thing, then the File menu gets pushed to the left... in my actual application the File menu completely disappears, but it's based on the same problem.
Here is the "normal" resize, where the file menu stays in the right location:

And here is the "abnormal" resize, where the file menu, the group box and the status strip all get pushed to the left:

The only difference between the two forms is the `ComboBox`... does anybody have any idea why this may be happening and how can I fix it?
## Update
The `Left` value/property of the file`MenuStrip` becomes negative and that makes things really ugly, because I have a `DataGridView` below the group boxes that is always offset to the right of 0 by a fixed padding (say 50 px). At that point the distance between the Left side of the DataGridView and the Left side of the File menu becomes 105 px, since the File menu is now at -55.

Notice that even when I scroll all the way to the left, the File menu still stays at -55... so if I have something offset from 0 by 50 (like my GridView), then at this point the difference between them will be 105 pixels.
| ComboBox causes strange behavior on a Windows Form | CC BY-SA 2.5 | null | 2010-08-11T14:46:21.093 | 2010-08-11T15:16:16.150 | 2017-02-08T14:29:58.667 | -1 | 28,760 | [
"c#",
".net",
"winforms",
"forms",
"combobox"
] |
3,461,424 | 1 | 3,461,778 | null | 1 | 1,280 | I'm trying to set a background image of an NSView. (Actually an NSScrollView.) At the moment I'm subclassing drawRect: and I'm using `NSDrawThreePartImage` to draw the image but there are a few things that are not correct whenever I start scrolling.

Are there better ways to draw the images?
```
- (void)drawRect: (NSRect)dirtyRect
{
dirtyRect.size.height -= 18; //Moving the image up a bit for future subclassing of NSScroller.
NSDrawThreePartImage(dirtyRect, viewLeftCap, viewFill, viewRightCap, NO, NSCompositeSourceOver, 1, YES);
}
```
| NSView background image composed of 3 different files | CC BY-SA 3.0 | null | 2010-08-11T18:04:05.297 | 2012-04-25T21:08:34.970 | 2012-04-25T21:08:34.970 | 1,028,709 | 417,583 | [
"objective-c",
"cocoa",
"image",
"nsview"
] |
3,462,433 | 1 | 3,463,332 | null | 97 | 32,230 | Here is a very simplified example of my Dot graph:
```
strict digraph graphName {
A->B
B->A
}
```
This creates

Instead I want a single edge shown between A and B but with a double arrow head. I know how to get the double arrowhead as a global option:
```
strict digraph graphName {
edge [dir="both"]
A->B
B->A
}
```
But that looks very ugly, and not all of my edges should be dual headed.

If I do more processing of the graph and detect the double reference myself and replace the two edges with a single edge, it looks OK. But I'd rather not have to do this extra step
```
strict digraph graphName {
A->B [dir="both"]
}
```

Any better solutions?
| Dot graph language - how to make bidirectional edges automatically? | CC BY-SA 4.0 | 0 | 2010-08-11T20:16:13.120 | 2019-11-21T23:24:24.183 | 2019-11-21T23:24:24.183 | 8,047 | 155,392 | [
"graph",
"graphviz",
"dot"
] |
3,462,588 | 1 | null | null | 0 | 947 | I know how I can remove the border of my form, but I simply want to remove the caption. Googling for P/Invokes didn't give me much results, so I'm wondering, how can I achieve such a result?

| How to achieve a captionless bordered Aero window? | CC BY-SA 2.5 | 0 | 2010-08-11T20:36:35.217 | 2010-11-30T02:54:33.250 | 2010-11-30T02:54:33.250 | 91,299 | 154,502 | [
"c#",
".net",
"window",
"border",
"aero"
] |
3,464,359 | 1 | 3,464,416 | null | 10 | 17,260 | Anyone know if it is possible to wrap the xtick labels in matplotlib? Right now I've got the following code (kind of messy -- been hacking at it for a while):
```
def plotResults(request, question_id):
responses = ResponseOption.objects.filter(question__id=question_id).order_by('order').annotate(response_num=Count('response'))
counts = []
labels = []
for response in responses:
counts.append(response.response_num)
labels.append(smart_truncate('$'+response.text+'$'))
N = len(labels)
labels = tuple(labels)
counts = tuple(counts)
ind = na.array(range(N))+0.5
width = .35
fig = Figure(facecolor='white',edgecolor='white')
ax = fig.add_subplot(1,1,1)
rects1 = ax.bar(ind, counts,linewidth=0)
ax.set_ylabel('$Count$')
ax.set_title('$Response Historgram$')
ax.set_xticks(ind+width)
ax.set_xticklabels(labels)
print mpl.matplotlib_fname()
canvas = FigureCanvas(fig)
response = HttpResponse(content_type='image/png')
canvas.print_png(response)
return response
```
That generates this plot:

As you can see the xticks are boned. Any ideas on how to wrap them, or baring that make them readable? Thanks again!
PS: This is part of a Django project. I return the plot as a png image -- normally call them from img tags in various views.
| Is it possible to wrap the text of xticks in matplotlib in python? | CC BY-SA 2.5 | 0 | 2010-08-12T02:29:40.223 | 2021-12-22T02:30:02.967 | 2010-08-12T02:37:52.420 | 97,160 | 344,568 | [
"python",
"django",
"matlab",
"matplotlib"
] |
3,464,552 | 1 | 3,464,682 | null | 5 | 5,868 | I would like to change the stacking order of hospitals in the diagram below so #1 is at the top and #4 at the bottom.
The diagram was produced with
```
ggplot(survey,aes(x=hospital, y=age))+geom_boxplot()+coord_flip()+xlab("")+ylab ("\nPatient Age")
```
and I need the top->down order to be the reverse of what is now. I'm not sure why it comes the way it does now. The 'hospital' column is a factor in case it matters.
Many thanks!

| ggplot: how to specify vertical order of multiple boxplots? | CC BY-SA 2.5 | 0 | 2010-08-12T03:29:37.863 | 2010-08-12T04:03:14.780 | null | null | 277,434 | [
"r",
"ggplot2",
"boxplot"
] |
3,464,610 | 1 | 3,464,680 | null | 0 | 115 | I work in the architecture and construction industry, but currently spend a lot of my time doing software development. After moving my software projects into Subversion repositories I've realized how much this industry really needs a similar system for design and construction documents. I've only been developing software for a year and half, so I'm far from qualified to take on a project like this. But I'm still interested in attempting it if nothing else for the learning experience.
I'd like to develop a server client system that runs over HTTP similar to SubVersion, but rather then managing raw files the system would store architectural design information. An open schema specification already exists for this type of data called Industry Foundation Classes. Yet currently information in this format is always stored in individual files, encoded as STEP or XML, and shared over simple FTP servers.
Instead I'd like to develop a way to store this information in a database so that subsets of the data can be easily queried or updated. In addition, I'd like to include versioning functionality similar to subversion where the central database tracks changes to the data as deltas, which can also be branched into multiple options.
I don't want to simply use SVN, because I'd like the system to be aware of the data it contains. For example a user may want to be able to query all the walls from the server. Yet, in order for that to work the server will need to understand that it may contain walls.
Obviously there are a number of specific questions I could ask regarding how I should go about this. But first I'm trying to figure out the big picture of how each layer will work and with what technology.
So far I've only been developing stand alone applications, primarily in C#.Net. So I'm new to any kind of network/server/client type development. Would it make sense to develop an application like this as a .NET Web service hooked into a SQL Server database? So requests to the server would be made through SOAP, and the data would then be returned as XML? SVN does something similar but through WebDAV correct? See the diagram below.

I'm not necessarily stuck on staying in the Microsoft/C#/.NET environment but it seems like the easiest option given that I'm already pretty comfortable with it and Visual Studio and a .NET WebService will automatically create the SOAP functionality. Is there a Java equivalent to a .NET Web service where I can focus on the object model and not the RCP interface? Would there be a significant advantage of using a RCP other then SOAP such as XML-RCP, JSON, or REST?
I'd really like to hear any other feedback from more experienced developers on how they would approach a project like this.
| Looking for guidance on developing specialized a version control system | CC BY-SA 2.5 | null | 2010-08-12T03:46:29.777 | 2010-08-12T04:02:53.907 | null | null | 88,427 | [
".net",
"svn",
"version-control",
"rpc"
] |
3,465,629 | 1 | null | null | 3 | 1,353 | i am having a huge problem with MEF when i am trying to dynamic load XAP files. When i am download the catalog/xap file with the the method call dc.DownloadAsync(); My Internet explorer will crash and show me the "IE has stopped working" dialog. (see image belove).
I have followed several steps by steps guides and i just cant see what i am doing wrong or what i have missed.
OverView of my Solution Explorer
(Se image in the end of the post for a more detailed view):
- - - - - - -
```
public interface IApp
{
string Name { get; }
string Description { get; }
UserControl GetUserInterface();
}
```
```
[Export(typeof(IApp))]
public class HelloMefApp : IApp
{
public string Name
{
get { return "Hello MEF"; }
}
public string Description
{
get { return "Adds a label with the text 'Hello MEF'"; }
}
public UserControl GetUserInterface()
{
UserControl uc = new UserControl();
TextBlock textBlock = new TextBlock();
textBlock.Text = "Hello MEF";
uc.Content = textBlock;
return uc;
}
}
```
```
private void Application_Startup(object sender, StartupEventArgs e)
{
AggregateCatalog catalog = new AggregateCatalog();
DeploymentCatalog dc = new DeploymentCatalog(new Uri("Test2.xap", UriKind.Relative));
catalog.Catalogs.Add(dc);
dc.DownloadAsync(); //This will give the "Internet Explorer has stopped working" crash.
CompositionHost.Initialize(catalog);
this.RootVisual = new MainPage();
}
```
```
public partial class MainPage : UserControl, IPartImportsSatisfiedNotification
{
[ImportMany(AllowRecomposition = true)]
public IApp[] Apps { get; set; }
public MainPage()
{
InitializeComponent();
CompositionInitializer.SatisfyImports(this);
}
public void OnImportsSatisfied()
{
if (Apps != null)
{
foreach (IApp item in Apps)
{
LayoutRoot.Children.Add(item.GetUserInterface());
}
}
}
}
```
[](https://i.stack.imgur.com/5mNop.jpg)
[colincochrane.com](http://www.colincochrane.com/image.axd?picture=WindowsLiveWriter/InternetExplorer8Beta1FirstImpressions_117C3/ie8-2_thumb.jpg)

Test2 is a Silverlight Application, i have howeever removed the App.xaml and MainPage.xaml since i heard they were not needed. and when i build the application i do indeed get two .XAP files.
I did the exact same steps as you described above and i am getting the same problem.
I have also tried to debug it a bit further by adding these lines of codes:
```
dc.DownloadCompleted += (s, args) =>
{
int x = 10;
};
dc.DownloadProgressChanged += (s, args) => {
int x = 10;
};
```
And all i notices is that my breakpoints (i added one to each event) is not getting hit.
```
Exception has been Thrown by the target of an invocation.
at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
Caused by: Exception has been thrown by the target of an invocation.
at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)
```
| Problem with dynamic loading XAP files with MEF. IE is crashing | CC BY-SA 4.0 | 0 | 2010-08-12T07:37:21.410 | 2019-08-05T23:08:46.143 | 2019-08-05T23:08:46.143 | 4,751,173 | 411,689 | [
".net",
"silverlight",
"silverlight-4.0",
"mef"
] |
3,466,865 | 1 | 3,466,923 | null | 3 | 3,906 | I have 3 tables A, B and C

I am doing this :-
/* There is no relation between Table A and Table B . Table A is just used to provide values to C.Profile */
1st step ) D <---- Select * from C where Profile=1 // want to give a specific ProID(I have successfully retrieved it from A table)
2nd Step ) Output <--- Select B.sname,D.Status from B Left Join D On B.ID=D.ID
so that the output looks like the required output table shown above:-
Can I do this by using a single query? how?
| Left Join with where clause | CC BY-SA 2.5 | 0 | 2010-08-12T10:55:29.970 | 2010-08-12T11:12:12.767 | 2017-02-08T14:30:00.467 | -1 | 165,107 | [
"ms-access",
"left-join",
"where-clause",
"sql"
] |
3,468,866 | 1 | 3,477,291 | null | 53 | 41,144 | What is the proper way of adding a '+' button tab at the end of all the tab items in the tab strip of a tab control in WPF?
1. It should work correctly with multiple tab header rows.
2. It should be at the end of all tab items
3. Tab cycling should work correctly (Alt + Tab), that is, the + tab should be skipped.
4. I shouldn't have to modify the source collection I am binding to. That is, the control should be reusable.
5. The solution should work with MVVM


To be more precise, the button should appear exactly as an additional last tab and not as a separate button somewhere on the right of all tab strip rows.
I am just looking for the general approach to doing this.
Google throws many examples, but if you dig a little deep none of them satisfy all the above five points.
| TabControl with Add New Tab Button (+) | CC BY-SA 3.0 | 0 | 2010-08-12T14:39:57.553 | 2020-07-30T17:57:11.530 | 2016-06-12T11:59:27.197 | 63,550 | 190,615 | [
"wpf",
"button",
"tabs",
"tabcontrol"
] |
3,469,481 | 1 | 3,470,835 | null | 0 | 1,341 | All the examples I've seen use "getElementById" to get the single element, and then change that style for that singular element.
I'm in the situation where I need to modify all the matching elements on the page with a style. I need to change the font size, height, and width. How do I do this, and is jQuery required or optional? The reason I ask is because this site doesn't use jQuery and I'd rather not download the entire library just to accomplish this one thing.
As an example, suppose I have several elements on the page with this style:
```
.outerContact
{
border: 0px;
margin: 7px;
float: left;
padding: 0px;
background: url(/TLSADMIN/UserControls/contactsgrid/trans-shadow.png) no-repeat bottom right; /* Most major browsers other than IE supports transparent shadow. Newer release of IE should be able to support that. */
}
.contactLarge{
height: 163px;
width: 250px;
border: 1px solid #ccc;
border-top: 1px solid #ddd;
font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
font-size:small;
margin: -5px 5px 5px -5px; /* Offset the image by certain pixels to reveal the shadow, as the shadows are 6 pixels wide, offset it by that amount to get a perfect shadow */
/* Most major browsers other than IE supports transparent shadow. Newer release of IE should be able to support that. */
background-image: url('/TLSADMIN/UserControls/contactsgrid/OutlookContactGradient.png') ;
background-repeat:repeat-x;
background-position: bottom;
padding: 0px; /* Increasing this gives a white border around the image */
background-color: #f2f6f9; /* Background color of the border created by the padding */
border: 1px solid #cecece; /* A 1 pixel greyish border is applied to the white border created by the padding */
display: block; /* IE won't do well without this */
position: relative; /* Make the shadow's position relative to its image */
}
```
And then assume I have a JavaScript function that will proportionally resize the elements above according to a slider bar. The slider bar I'm using is available from a 3rd party here:
[http://aspnetajax.componentart.com/control-specific/slider/features/custom_Scrollbar/WebForm1.aspx](http://aspnetajax.componentart.com/control-specific/slider/features/custom_Scrollbar/WebForm1.aspx)
That slider will then pass a number that I'll use to determine how much to zoom in/out:
```
function ResizeWindowAccordingToScrollBar(PercentChange)
{
//Locate elements
//Resize fonts, borders, all styles to zoom in/ zoom out.
}
```
How do you recommend I handle the "PercentChange" value? I may swap out the CSS style for each matching element using a switch statment, but that may not be as smooth as other options could be.
Also, if someone wants to look at my code, a self contained sample is here:
[http://www.perfmon.com/download/StackOverflow_ContactsGrid.zip](http://www.perfmon.com/download/StackOverflow_ContactsGrid.zip)
If you download the ComponentArt Controls, feel free to uncomment the scrollbar code.
My goal is to directly emulate the zoom feature available in Outlook 2007

| If I use "getElementById" to alter a CSS style of a single object, how do I alter all elements that inherit the style? | CC BY-SA 2.5 | null | 2010-08-12T15:45:46.440 | 2010-08-12T19:18:15.853 | 2017-02-08T14:30:01.207 | -1 | 328,397 | [
"jquery",
"css",
"dhtml",
"getelementbyid"
] |
3,469,975 | 1 | 3,471,465 | null | 10 | 5,052 | I want to added dark/light phase information to the background of my stacked area graphset to highlight the how light affects the shapes of the curves. My dataframe looks like this:
```
> str(MDist.median)
'data.frame': 2880 obs. of 6 variables:
$ groupname: Factor w/ 8 levels "rowA","rowB",..: 1 1 1 1 1 1 1 1 1 1 ...
$ fCycle : Factor w/ 6 levels "predark","Cycle 1",..: 1 1 1 1 1 1 1 1 1 1 ...
$ fPhase : Factor w/ 2 levels "Light","Dark": 2 2 2 2 2 2 2 2 2 2 ...
$ starttime: num 0.3 60 120 180 240 300 360 420 480 540 ...
$ dists : Factor w/ 3 levels "inadist","smldist",..: 1 1 1 1 1 1 1 1 1 1 ...
$ value : num 110 123 124 128 132 ...
```
example data:
```
> head(MDist.median)
groupname fCycle fPhase starttime dists value
1 rowA predark Dark 0.3 inadist 110.00
2 rowA predark Dark 60.0 inadist 123.25
3 rowA predark Dark 120.0 inadist 124.10
4 rowA predark Dark 180.0 inadist 128.35
5 rowA predark Dark 240.0 inadist 131.80
6 rowA predark Dark 300.0 inadist 140.30
```
My area plot stacks the 3 kinds of `dists` on the y axis by starttime on the x axis.
```
dists.med.areaplot <- qplot(starttime,value,fill=dists,facets=~groupname,
geom='area',data=MDist.median, stat='identity') +
labs(y='median distances', x='time(s)', fill='Distance Types')+
opts(title='Changes in Fish Activity and Activity Type') +
scale_fill_brewer(type='seq')
```
I want to add vertical rectangles behind each plot that are horizontally positioned by the min and max starttimes of each fCycle where fPhase=="Dark". I edited my graphset in GIMP to show what I mean:

I've been attempting to use themes but that's not working out so well. Thoughts?
## ETA
So, using this example (from Hadley's [website](http://had.co.nz/ggplot2/book/toolbox.r)):
```
(unemp <- qplot(date, unemploy, data=economics, geom="line",
xlab = "", ylab = "No. unemployed (1000s)"))
presidential <- presidential[-(1:3), ]
yr <- range(economics$unemploy)
unemp + geom_rect(
aes(NULL, NULL, xmin = start, xmax = end, fill = party),
ymin = yr[1], ymax = yr[2], data = presidential) +
scale_fill_manual(values = alpha(c("blue", "red"), 0.2)
)
```
I can do this with my data:
```
dists.med.areaplot + geom_rect(
aes(NULL, NULL, xmin = phase_start, xmax = phase_end, fill = fPhase),
ymin = -Inf, ymax = Inf, data = phase_starts) +
scale_fill_manual(values = alpha(c("#cccccc", "#000000"), 0.2)
)
```
which adds Light and Dark categories to the legend and changes ALL the colours to grey.
If I leave out the `scale_fill_manual(values = alpha(c("#cccccc", "#000000"), 0.2)`, I get the rectangles I expect still with the legend change, but they are completely opaque, on top of my original graph, and use the 1st 2 colours in my colour sequence.
How can I make the geom_rect behind the original plots?
| ggplot2: adding a background layer | CC BY-SA 2.5 | 0 | 2010-08-12T16:42:54.773 | 2018-04-18T18:46:48.797 | 2020-06-20T09:12:55.060 | -1 | 128,245 | [
"r",
"ggplot2"
] |
3,470,014 | 1 | 3,471,680 | null | 1 | 896 | I'm very new to Sharepoint, I have an aspx page on a Sharepoint site that shows a list of fields, including First Name, Last Name, etc. I'm have a console app, in Visual Studio, I'm using for testing communication and data transfer capability between between one web service and another; namely Sharepoint and another web service. My goal is to populate the various fields in the list on my Sharepoint site with data from the other web service. I'm using a web reference to the Lists Web Service on my Sharepoint server to try and gain access to fields in this particular list on the Sharepoint site. I have the following code:
```
''Name of my web reference to Lists Web Service is "sharepoint"
Dim sharepointList As New sharepoint.Lists()
sharepointList.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim testLists As XmlNode = sharepointList.GetListCollection
Dim xmlText As String = testLists.InnerXml
Dim xmlElement As XmlAttributeCollection = testLists.Attributes
```
I've been trying to find where this particular list is. I'll admit I'm not sure where I'm supposed to be looking, as the above code demonstrates. I've been using the debugger to analyze each of the above variables to try and find where in the XML this particular list is defined. Any help or insight is appreciated.
Here is a snapshot of the Sharepoint page containing the list I'm trying to search for:

UPDATE:
I decided to use the GetList() function and passed the name "New Hires" to it. It ended up grabbing the list above. Now I'm just trying to see if I can get access to just the fields pictured above, analyzing the xml it seems like those are just display names, the actual fieldID is some alpha numeric string, i.e. Display Name = "Business Phone" has the Field ID = "{fd630629-c165-4513-b43c-fdb16b86a14d}". I'm wondering if there's a way to search fields by Display Name.
| Getting fields from a list on Sharepoint page | CC BY-SA 2.5 | null | 2010-08-12T16:46:57.597 | 2010-08-12T20:30:30.330 | 2017-02-08T14:30:01.677 | -1 | 94,541 | [
"xml",
"visual-studio",
"web-services",
"sharepoint",
"sharepoint-2007"
] |
3,470,099 | 1 | 3,785,596 | null | 3 | 3,224 | What I wanted is something like the figure below shows.

Thanks.
| How to set a QDockWidget to use only the bottomright corner of a QMainWindow | CC BY-SA 2.5 | null | 2010-08-12T16:55:43.463 | 2017-02-10T20:28:24.137 | 2017-02-08T14:30:02.033 | -1 | 262,303 | [
"qt"
] |
3,470,104 | 1 | 3,844,276 | null | 2 | 329 | I need to develop is an application that shows the TV signal along with information on the channel being displayed. My only need is to communicate the app with the card to change channels and get the video.

So, I need to operate a Pinnacle PCTV (-like) card from Actionscript OR C#. Actionscript is preferred, but C# is being considered in case Actionscript cannot interface with the card.
I've been searching on Google but I haven't found any relevant resources.
Is there any API documentation available online?
| Is there any documentation on the Pinnacle PCTV API? | CC BY-SA 2.5 | 0 | 2010-08-12T16:56:02.697 | 2010-10-02T03:41:08.653 | 2010-08-21T23:04:21.833 | 290,221 | 290,221 | [
"c#",
"api",
"actionscript",
"video",
"television"
] |
3,470,125 | 1 | 3,470,155 | null | 2 | 1,288 | I've been messing around with IDA Pro and trying to disassemble my own products just for the sake of it.
I've noticed a couple of things I don't understand because my assembly language knowledge is terrible. Here is a little chunk of code which invokes .
```
CGContextSetRGBStrokeColor(ctx, 1, 1, 1, 1);
```
In IDA it looks like this:

I don't understand a number of things:
1. How does 0x3F800000 relate to the number 1? I assume it is a reference, however I did not get what it refers to.
2. Why is MOVS being called three times instead of four (because there are four arguments)?
3. Are R0,R1,R2 etc. CPU registers?
4. Could someone explaing these:
[Some text lines http://a.imageshack.us/img836/4018/gah.png](http://a.imageshack.us/img836/4018/gah.png)
This file is a (therefore a file). That function comes from CoreGraphics.
| Dissasembling simple ARM instructions? | CC BY-SA 2.5 | null | 2010-08-12T16:58:32.457 | 2010-08-12T17:29:49.953 | 2010-08-12T17:16:38.297 | 116,908 | 160,868 | [
"objective-c",
"assembly",
"arm",
"core-graphics",
"ida"
] |
3,470,691 | 1 | null | null | 0 | 1,018 | I have a checkbox and a label, and while the label is set after the checkbox, it appears before it when the page is in view.
What could be the problem?
```
<input name="signed" id="fd_supplier_contract_signed" type="checkbox" value="1" />
<label for="fd_supplier_contract_signed">Signed:</label>
```
IMAGE:

| HTML Label float passed Checkbox on left | CC BY-SA 2.5 | null | 2010-08-12T18:13:20.113 | 2010-08-12T18:34:13.417 | 2017-02-08T14:30:02.373 | -1 | 386,276 | [
"html",
"css",
"forms",
"checkbox",
"label"
] |
3,471,642 | 1 | 3,494,521 | null | 0 | 484 | I have layout as follows.

Height of resizeable element is to kept such as it will cover entire browser height.
Few points
- - - - - -
I have started writing script based browser resize event. But could not come to suitable logic. Also resize element does not cover event if new content is added in or
I tried searching for layout plug-in, but it was bit overkill for me.
if not solution, suggestion will help. Thank you.
| Jquery Dynamic element height to cover browser height | CC BY-SA 2.5 | null | 2010-08-12T20:12:14.070 | 2010-08-16T15:14:59.657 | 2017-02-08T14:30:02.717 | -1 | 136,513 | [
"jquery",
"html",
"height"
] |
3,471,907 | 1 | null | null | 1 | 398 | Imagine an XY Line Chart. The X axis is a number range, as is the Y axis.
There are 3 series on the chart
The domain cross hair is NOT locked on data:
```
plot.setDomainCrosshairLockedOnData(false);
```
I would like to know what the Range value is for each of the three series for the selected DomainCrossHair values. The issue is not each series has an actual datapoint at each of the domain points BUT, there should be a way, based on the rendered line and its slope between the two points to know what the corresponding Range value is.
Make sense?
edit: A picture is worth a thousand words:

| Determine the value between 2 points in JFreeCharts | CC BY-SA 2.5 | null | 2010-08-12T20:49:38.507 | 2010-08-12T21:13:02.723 | 2010-08-12T21:02:24.137 | 107,982 | 107,982 | [
"java",
"swing",
"charts",
"jfreechart"
] |
3,472,616 | 1 | null | null | 0 | 240 | I have the following database table:

And here is the code I use to validate the model created by Entity Framework:
```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
namespace UTEPSA.Models
{
[MetadataType(typeof(Area_Validation))]
public partial class Area
{
}
public class Area_Validation
{
[Required(ErrorMessage = "Campo requerido: Debe elegir un Jefe valido.")]
public int IDJefe { get; set; }
[Required(ErrorMessage = "Campo requerido: Nombre")]
public string Nombre { get; set; }
}
}
```
The ID field is in the int primary key, and it is an identity so it autoincrements and I don't have to ever enter a field.
However, when I try to save the form for it on edit, I NEED to write in any number at all for it to pass.
```
When I leave the field blank:
Validation fails.
When I type in a string:
Validation fails.
When I type in ANY number:
Validation passes.
```
Any suggestion on how to ignore this field?
Rendered HTML is:
```
<form action="/area/create" method="post">
<fieldset>
<legend>Fields</legend>
<div class="editor-label">
<label for="ID">ID</label>
</div>
<div class="editor-field">
<input id="ID" name="ID" type="text" value="0" />
</div>
<div class="editor-label">
<label for="IDJefe">IDJefe</label>
</div>
<div class="editor-field">
<input id="IDJefe" name="IDJefe" type="text" value="" />
</div>
<div class="editor-label">
<label for="Nombre">Nombre</label>
</div>
<div class="editor-field">
<input id="Nombre" name="Nombre" type="text" value="" />
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
</form>
```
| Validating a model in ASP.Net MVC2 | CC BY-SA 2.5 | null | 2010-08-12T22:47:39.653 | 2010-08-13T11:57:00.777 | 2010-08-12T22:56:58.413 | 112,355 | 112,355 | [
"c#",
"asp.net-mvc-2",
"model"
] |
3,472,780 | 1 | 3,472,833 | null | 2 | 308 | I'm following this tutorial but it doesn't tell me how to run this jQuery script. Since this script will be run pretty much everywhere, I should attach this script to the Masterpage right, but how?
I guess what I'm asking is, what HTML tag do I need to reference the jQuery script, and where to put the jQuery code.
I have this library already in my project:

Thanks.
| How to use jQuery on my page? | CC BY-SA 2.5 | null | 2010-08-12T23:22:31.083 | 2010-08-13T01:19:56.757 | 2010-08-13T01:19:56.757 | 67,945 | 112,355 | [
"asp.net",
"jquery"
] |
3,472,817 | 1 | 3,472,911 | null | 0 | 262 | I can't figure out the prototype for this simple function:


That's what I got so far, and it causes an error.
```
//No idea
void CameraDeviceCreate(int one,int two,int* three);
```
There are three registers used (R0,R1,R2) so there should be three arguments. Third one refers to a stack variable (I still don't get how that works). # (var_28) is only mentioned in the ADD call, not sure what it could be.
If I missed some info out tell me and I'll add it. This is from by the way.
| Can't decode a simple ARM function prototype from a dissasembly? | CC BY-SA 2.5 | null | 2010-08-12T23:31:30.190 | 2010-08-12T23:50:42.580 | 2010-08-12T23:41:47.577 | 160,868 | 160,868 | [
"iphone",
"c",
"objective-c",
"reverse-engineering",
"ida"
] |
3,472,834 | 1 | 3,473,897 | null | 3 | 1,309 | I'm thinking on adding Markdown to a Java project with using:
- - - -
Q1. What javascript library can I use for the client side? I'm thinking on using Cletus'  [port of MarkDownSharp](http://github.com/cletus/jmd) for the backend.
Q2. What strategy should I follow to add [JMD](http://github.com/cletus/jmd) to my project? My code it's a Maven project already. If JMD were available for maven I would just create a dependency on that, but it is not. So, should I merge it with my code base?
Thanks in advance.
| What do I need to use Markdown in a Java webapp? | CC BY-SA 2.5 | null | 2010-08-12T23:34:46.533 | 2010-08-13T21:15:47.280 | 2017-02-08T14:30:03.157 | -1 | 20,654 | [
"java",
"maven-2",
"markdown",
"javascript"
] |
3,472,980 | 1 | 3,473,306 | null | 291 | 372,237 | I have used the following `ggplot` command:
```
ggplot(survey, aes(x = age)) + stat_bin(aes(n = nrow(h3), y = ..count.. / n), binwidth = 10)
+ scale_y_continuous(formatter = "percent", breaks = c(0, 0.1, 0.2))
+ facet_grid(hospital ~ .)
+ theme(panel.background = theme_blank())
```
to produce

I'd like to change the labels, however, to something shorter (like `Hosp 1`, `Hosp 2`...) because they are too long now and look cramped (increasing the height of the graph is not an option, it would take too much space in the document). I looked at the [facet_grid](https://ggplot2.tidyverse.org/reference/facet_grid.html) help page but cannot figure out how.
| How to change facet labels? | CC BY-SA 4.0 | 0 | 2010-08-13T00:05:40.117 | 2023-02-21T10:32:26.657 | 2019-04-11T12:40:40.423 | 680,068 | 277,434 | [
"r",
"ggplot2",
"symbols",
"facet",
"plotmath"
] |
3,474,062 | 1 | 3,479,826 | null | 0 | 52 | What is the commonly accepted way so an admin can set panels/widgets positions (i.e. from the image below, set "Data Finder" to sit on "top left") ?
In other words, the customer/admin would like to be able to configure the widgets/panels positions at startup (and users see that by default), maybe using a JSON configuration file that is easy to edit?
I am using YUI 2.7, but other frameworks solutions are welcomed.

| Configure widgets positions on website | CC BY-SA 2.5 | null | 2010-08-13T05:10:11.760 | 2010-08-13T18:48:25.167 | 2017-02-08T14:30:03.493 | -1 | 115,988 | [
"javascript",
"configuration",
"yui",
"widget",
"position"
] |
3,475,726 | 1 | 3,475,755 | null | 36 | 40,242 | I get the warning like this

If you know what it is, please explain & help me to get rid of it.
Nam.
| Argument type is not CLS-compliant, why? | CC BY-SA 2.5 | 0 | 2010-08-13T09:52:19.027 | 2020-07-09T11:02:35.917 | 2017-02-08T14:30:04.207 | -1 | 248,616 | [
"c#"
] |
3,476,719 | 1 | null | null | 43 | 130,984 | I'm trying to install SQL Server 2008 R2 Express from this site:
[http://www.microsoft.com/express/database/](http://www.microsoft.com/express/database/)
I have a 64-bit, Windows 7 machine.
I have tried both the 32-bit and 64-bit versions but each fail on "Performance counter registry hive consistency".

| How do I fix a "Performance counter registry hive consistency" when installing SQL Server R2 Express? | CC BY-SA 3.0 | 0 | 2010-08-13T12:23:22.190 | 2019-02-04T15:40:10.133 | 2015-04-17T08:37:30.980 | 1,402,846 | 4,639 | [
"sql-server",
"installation",
"sql-server-express"
] |
3,478,109 | 1 | null | null | 1 | 137 | I currently have a cache implementation (using arrays) for the heavy computations performed during the simulation. The structure of the cache is as follows:

The way it works:
```
CalculationsAbstract calculationsCache = new CalculationsCache();
// Constructor of CalculationsCache
public CalculationsCache()
{
this.Proxy = new Calculations();
Proxy.Proxy = this;
}
calculationsCache.CalculateValue1();
// Checks "Value1" array for existing value, if not, the actual computation is called
// via Proxy object, value retrieved is cached in array then returned to user.
```
Now, I'm trying to add new computations which are specific to a certain scenario, and wouldn't be appropriate for them to be placed in `CalculationsAbstract`, `Calculations` and `CalculationsCache`, however ScenarioA would still use existing calculations in the old classes.
I'm trying to add the new calculations and their arrays in new classes named `ScenarioACalculations` and `ScenarioACalculationsCache`, just like it was done for Value1, Value2,...etc but I'm confused as to how these new classes would fit into the existing model.
This is what I tried to do:
```
internal interface IScenarioACalculations
{
float GetScenarioAValue5();
}
ScenarioACalculations : Calculations, IScenarioACalculations
ScenarioACalculationsCache : CalculationsCache, IScenarioACalculations
```
Given that throughout my project, I only hold a reference to type `CalculationsAbstract` (as in the code example above), and I can't cast my `IScenarioACalculations` object to `CalculationsAbstract`, what would be the best way to add ScenarioA calculations and possibly ScenarioB...etc in the future ?
Sorry for making this long.
Thank you.
| How can I refactor/extend the following model | CC BY-SA 2.5 | 0 | 2010-08-13T14:59:58.390 | 2010-08-13T16:09:27.160 | null | null | 1,700,998 | [
"c#",
"design-patterns",
"oop",
"caching",
"refactoring"
] |
3,480,125 | 1 | 3,480,789 | null | 8 | 15,678 | I have these progress bars:

I'm trying to set the color of the TEXT of the progress bars, without changing the background color or the color of the progress bar itself. As far as I can tell, setForeground() sets both the text and the bar color? Is there a way to do one without the other?
| Setting the colors of a JProgressBar text | CC BY-SA 2.5 | 0 | 2010-08-13T19:31:30.167 | 2011-03-05T16:14:35.987 | 2017-02-08T14:30:04.970 | -1 | 4,913 | [
"swing",
"jprogressbar"
] |
3,480,826 | 1 | 3,480,954 | null | 44 | 25,914 | I'd like to use column guide line to IntelliJ IDE.
Anybody knows about this?
I couldn't find any solution for the feature?
For example:

| Adding a column guideline to the editor in IntelliJ | CC BY-SA 3.0 | 0 | 2010-08-13T21:35:54.983 | 2022-10-08T21:06:20.060 | 2015-01-16T02:47:27.497 | 1,402,846 | 1,556 | [
"java",
"intellij-idea"
] |
3,482,138 | 1 | 3,482,681 | null | 3 | 722 | I realize, if I didn't not include line
```
jComboBox1.addItem("Cause Text Field To Override");
```
When I type in "A" in JComboBox's text field, "A" will shown in JComboBox's text field.

However, If I include the addItem code, JComboBox's text field will be override. (The lower boundary line also dissapear, not sure why)

I wish to able to addItem, and showPopup without override the content in JCombBoBox's text field. May I know how I can do so?
```
package javaapplication5;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
/**
*
* @author yccheok
*/
public class NewJDialog extends javax.swing.JDialog {
/** Creates new form NewJDialog */
public NewJDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
jComboBox1.getEditor().getEditorComponent().addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
jComboBox1.addItem("Cause Text Field To Override");
jComboBox1.showPopup();
}
});
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jComboBox1 = new javax.swing.JComboBox();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jComboBox1.setEditable(true);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Hello", "World", "Bye" }));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(124, 124, 124)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(92, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(76, 76, 76)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(204, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
NewJDialog dialog = new NewJDialog(new javax.swing.JFrame(), true);
dialog.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
}
});
dialog.setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.JComboBox jComboBox1;
// End of variables declaration
}
```
| Prevent JComboBox's Text Field to be Override | CC BY-SA 2.5 | null | 2010-08-14T05:24:54.993 | 2010-08-14T09:02:56.630 | 2010-08-14T05:33:27.240 | 2,598 | 72,437 | [
"java",
"swing"
] |
3,482,346 | 1 | 3,482,374 | null | 316 | 245,912 | Multiple colours in an `NSString` or `NSMutableStrings` are not possible. So I've heard a little about the [NSAttributedString](http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/Reference/Reference.html) which was introduced with the (or around 3.2) and is available on the iPhone as of .
I would like to have a string that has three colours.
The reason I don't use 3 separate NSStrings, is because the length of each of the three `NSAttributedString` substrings changes often and so I would prefer, not to use any calculations to re-position 3 separate `NSString` objects.
If it's possible using `NSAttributedString` how do I make the following - (if not possible with NSAttributed string how would you do it):

Remember, `@"first"`, `@"second"` and `@"third"` will be replaced by other strings at any time. So using hardcoded NSRange values won't work.
| How do you use NSAttributedString? | CC BY-SA 3.0 | 0 | 2010-08-14T06:50:37.810 | 2021-06-10T14:03:58.790 | 2017-10-12T14:14:07.227 | 5,638,630 | 40,002 | [
"ios",
"ios4",
"nsattributedstring",
"textcolor"
] |
3,482,803 | 1 | null | null | 2 | 2,111 | I have a win application project that should be done in delphi2010.
In a form something like the image below,should be produced:

www.up.iranblog.com/Files2/1e867ce0de784c469496.jpg
First the image of product and under that tha name and the price.
The information should be read from a xml file, but I don't know how to display the information in dbctrlgrid?
Please help
thanx in advance
| showing a xml file contents in a dbctrlgrid | CC BY-SA 3.0 | 0 | 2010-08-14T09:47:39.690 | 2011-11-30T00:33:33.607 | 2011-11-30T00:24:11.290 | 234,976 | 420,294 | [
"delphi",
"delphi-7",
"xmlmapper"
] |
3,484,117 | 1 | 3,654,233 | null | 0 | 2,304 | A few weeks ago I asked exactly the same question [here](https://stackoverflow.com/questions/3053554/retrieve-contacts-nickname). At first, I thought the answers solved my problem, but they didn't. I just didn't notice that I wasn't able to solve my problem with those answers.
However, what I've got now is:
```
final Cursor phoneCursor = context.getContentResolver().query(Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode("'" + incomingNumber + "'")), null, null, null, null);
phoneCursor.moveToFirst();
String lookupString = phoneCursor.getString(phoneCursor.getColumnIndex(PhoneLookup.LOOKUP_KEY));
final Cursor dataCursor = context.getContentResolver().query(ContactsContract.Data.CONTENT_URI, null, ContactsContract.Data.LOOKUP_KEY + "=" + "'" + lookupString + "'", null, null);
dataCursor.moveToFirst();
Log.e("smn", "display_name: " + dataCursor.getString(dataCursor.getColumnIndex(ContactsContract.Data.DISPLAY_NAME)));
Log.e("smn", "nickname: " + dataCursor.getString(dataCursor.getColumnIndex(ContactsContract.Data.DATA1)));
```
Output looks like this:
```
08-14 17:41:02.106: ERROR/smn(20146): display_name: Tom Tasche
08-14 17:41:02.106: ERROR/smn(20146): nickname: null
```
[This answer](https://stackoverflow.com/questions/3053554/retrieve-contacts-nickname/3054083#3054083) told me that Nicknames are held in Data-table, but although I'm querying Data-table, I don't retrieve the contact's alias saved in my addressbook.

I already tried it the other way: I inserted a new alias for this contact. And that worked fine. So, nicknames seem to work.
Additionally, I've printed out every field that's saved in Data-table, again, without no luck.
Any ideas? Maybe I'm doing something completely wrong, but at the moment I don't see what's the problem...
Thanks for your help
Tom
| retrieve contact's nickname, part 2 | CC BY-SA 2.5 | null | 2010-08-14T16:08:45.613 | 2015-11-22T09:52:47.633 | 2017-05-23T12:33:39.247 | -1 | 198,996 | [
"android",
"contacts"
] |
3,484,497 | 1 | null | null | 4 | 5,335 | Starting with a 3D mesh, how would you give a rounded appearance to the edges and corners between the polygons of that mesh?
---
Without wishing to discourage other approaches, here's how I'm currently approaching the problem:
Given the mesh for a regular polyhedron, I can give the mesh's edges a rounded appearance by scaling each polygon along its plane and connecting the edges using cylinder segments such that each cylinder is tangent to each polygon where it meets that polygon.
Here's an example involving a cube:

Here's the cube after scaling its polygons:

Here's the cube after connecting the polygons' edges using cylinders:

What I'm having trouble with is figuring out how to deal with the corners between polygons, especially in cases where more than three edges meet at each corner. I'd also like an algorithm that works for all closed polyhedra instead of just those that are regular.
| Algorithm to produce rounded edges and corners in a 3D mesh | CC BY-SA 2.5 | 0 | 2010-08-14T18:00:25.357 | 2021-02-10T22:27:55.283 | 2010-08-19T18:31:58.377 | 90,850 | 90,850 | [
"algorithm",
"3d",
"rounded-corners",
"mesh"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.