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
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,355,194 | 1 | 5,360,944 | null | 0 | 944 | I created a `Settings.bundle` file for my iOS project. The generated file has already some data so when I build and run the app the settings show up in the iPhone settings for my app.
But when I edit the Root.plist file it can not be safed anymore, it stays some kind of grey.

Why can it not be safed? How do I solve that problem?
| How to edit Root.plist in settings.bundle? | CC BY-SA 2.5 | 0 | 2011-03-18T16:46:54.493 | 2011-03-19T08:14:12.947 | 2011-03-18T17:45:44.130 | 401,025 | 401,025 | [
"iphone",
"settings.bundle"
]
|
5,355,250 | 1 | 6,630,430 | null | 0 | 352 | In [PHPStorm](http://en.wikipedia.org/wiki/PhpStorm), [WebStorm](http://en.wikipedia.org/wiki/WebStorm), and [MPS](http://en.wikipedia.org/wiki/JetBrains_MPS), is there a setting or way to get the "peek" functionality to show two lines on a control statement (that is, IF or FOR or WHILE) when using [Allman/BSD style](http://en.wikipedia.org/wiki/Indent_style#Allman_style_.28bsd_in_Emacs.29) coding (braces on a separate line)?
When the cursor is behind the closing brace, the "peek" functionality works (showing the opening brace), but it only shows one line, the actual line of the opening brace, which is almost worthless. Note this functionality works perfectly with a CLASS, showing two lines, but not with a CONTROL statement or METHOD.
See screenshots below of (1) an IF statement and (2) a CLASS definition.
I have my code style appropriately specified under settings/code style, but this doesn't seem to be helping. This problem is very annoying!


---
---
This works GREAT with JavaScript files... Why can't we get the same behavior with PHP files?
Example of this is working great with a JavaScript file:

| PHPStorm/Webstorm setting to adjust # of "peek" lines at top of control statement | CC BY-SA 3.0 | null | 2011-03-18T16:51:12.203 | 2014-05-10T02:48:51.703 | 2014-05-10T02:48:51.703 | 1,079,354 | 580,606 | [
"phpstorm",
"webstorm"
]
|
5,355,294 | 1 | 5,361,213 | null | 0 | 3,820 | Does Sencha touch have the ability to create a selector similar to the iphone's selector?:

I did not see it in their kitchen sink demos.
| Sencha Touch - Selector like iphone? | CC BY-SA 2.5 | null | 2011-03-18T16:54:52.707 | 2011-10-13T01:45:37.000 | null | null | 349,223 | [
"user-interface",
"sencha-touch",
"extjs"
]
|
5,355,433 | 1 | 6,061,567 | null | 4 | 1,117 | Could someone suggest me how to go about getting the wind filter effect in opencv similar to the one available in photoshop and gimp?
Here is an image of text with wind styled filter applied on it.

Thanks
| wind filter in opencv | CC BY-SA 2.5 | null | 2011-03-18T17:06:41.320 | 2011-05-19T16:14:58.390 | null | null | 584,261 | [
"image-processing",
"filter",
"opencv"
]
|
5,355,592 | 1 | 5,357,238 | null | 2 | 2,751 | I'm having some misunderstanding concerning Bayesian network. My main misunderstanding are independence and conditional independence!!

If e.g. I have to calculate
`P(Burglary|Johncall)`,
is it `P(Burglary|Johncalls)=P(Burglary)` because i'm seeing that Burglary is independent of Johncalls??
| Bayesian Network: Independance and Conditional Independance | CC BY-SA 2.5 | 0 | 2011-03-18T17:19:23.433 | 2011-03-18T20:01:19.047 | null | null | 484,290 | [
"artificial-intelligence",
"probability",
"bayesian-networks"
]
|
5,355,805 | 1 | 5,356,023 | null | 37 | 226,101 | Im trying to use the movingBoxes plugin with my asp.net mvc site and it is not working (obviously).
I have the movingboxes.js imported in my head tag in the site.master like so
```
<script src="<%: Url.Content("~/Scripts/jquery.movingboxes.js")%>" type="text/javascript"></script>
```
and the browser successfully gets this script. Now i have a regular view that inherits from the site.master that has this little bit of jquery in it that calls the movingBoxes plugin
```
<script type="text/javascript">
$(document).ready(function () {
$($('#slider-one'));
$('#slider-one').movingBoxes({
startPanel: 1,
panelWidth: .5,
fixedHeight: false
});
$('#slider-two').movingBoxes({
startPanel: 1,
panelWidth: .5,
fixedHeight: false
});
});
</script>
```
When i view the page. Every thing works fine (including other jquery stuff) except for this plugin and i get this error

And here is the description of the error

Any help would be appreciated
So apparently I had this:
```
<script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" />
<script src="<%: Url.Content("~/Scripts/jquery.movingboxes.js")%>" type="text/javascript"></script>
```
And it works now by changing it to this:
```
<script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
<script src="<%: Url.Content("~/Scripts/jquery.movingboxes.js")%>" type="text/javascript"></script>
```
| Uncaught TypeError: Object #<Object> has no method 'movingBoxes' | CC BY-SA 3.0 | 0 | 2011-03-18T17:40:29.433 | 2016-02-10T18:00:52.957 | 2014-07-12T10:00:16.390 | 2,778,810 | 524,874 | [
"javascript",
"jquery",
"typeerror"
]
|
5,355,833 | 1 | 5,356,907 | null | 2 | 369 | Using the following as an example I am trying to figure out the best way set up a MySql database.

`FoodGroupTypeCode`: Grain, Vegetable, Fruit, Dairy, Protein
What is the best Data Type to use to represent this attribute?
1. CHAR(1): G, V, F, D, P
2. TINYINT: Using number codes (i.e. Grain = 1, Vege = 2)
3. ENUM
4. VARCHAR(9): Using full names
5. Other (explain)
Option 4 is really not a consideration of mine, unless someone can really validate it. I have read a lot of "opinions" on the subject but looking for more concrete reasons for picking one over the other. I appreciate any input that someone can give to that degree rather then something such as "I like ENUM because it is fast."
| Use of MySql Data Types | CC BY-SA 2.5 | 0 | 2011-03-18T17:42:44.037 | 2011-03-18T19:28:10.817 | 2011-03-18T18:01:19.380 | 13,302 | 527,298 | [
"mysql",
"database",
"database-design",
"types"
]
|
5,356,146 | 1 | null | null | 14 | 8,509 |
I would like to set up some Schemes that build for iOS Device only.
For example, I never want to build an Ad Hoc build with a Simulator destination. The ability to choose Simulator destinations for an Ad Hoc build is just noise.


-

-

- `iphoneos`
I can still select Simulator as a destination in the scheme dropdown:

However, if I run the scheme with a Simulator destination, I get an error:

It would be much nicer for myself and my team is would could just hide these invalid destinations.
Is there a better way to manage what destinations are available for a given scheme?
| Limit or change Scheme Destinations in Xcode 4? | CC BY-SA 2.5 | 0 | 2011-03-18T18:14:28.043 | 2011-03-20T11:46:25.743 | 2011-03-18T19:50:23.660 | 4,468 | 4,468 | [
"xcode",
"ios",
"xcode4"
]
|
5,356,171 | 1 | 5,356,416 | null | 4 | 6,380 | I have Django installed. I also have django-admin.py in my python-2.7 folder. I can `import django` using my Python shell (DreamPie). But I can't create a new Django project in Pydev. When trying to create a new Pydev Django Project (choosing python2.7 as the interpreter) I receive the following error message:

I went to the link in the message and I have all the pre-requisite to getting started in Django: Django is installed and `import django` properly works (in the shell).
| Why doesn't Pydev find Django? | CC BY-SA 2.5 | 0 | 2011-03-18T18:16:29.540 | 2022-10-12T06:21:09.847 | null | null | 110,028 | [
"python",
"django",
"pydev"
]
|
5,356,215 | 1 | 5,383,665 | null | 3 | 1,309 | I am creating a new project from the ground up. I have my web application in this web application I have references set up to multiple class libraries.
In one of those libraries I have some general Javascript files (like jQuery) that I need to load in my web application's mastersheet. I cannot seem to get at the Javascript.
How can I access that Javascript, located in a different class library, from my web application project?
Attached is a screen shot for better clarity.

Is there any way do achieve this without using ScriptManager?
| Embedding Javascript resource located in another class library without ScriptManager | CC BY-SA 2.5 | null | 2011-03-18T18:20:18.547 | 2011-08-10T21:47:48.680 | 2011-03-18T19:42:43.453 | 4,144 | 4,144 | [
"c#",
"asp.net",
"setup-project"
]
|
5,356,418 | 1 | null | null | 1 | 342 | I installed Microsoft xNA, but i m quit new to it. When i run the application i get an error message (image attached):

Does this error mean that I need 3D card in my laptop??
Please explain this
| Microsoft Xna Basics | CC BY-SA 2.5 | 0 | 2011-03-18T18:40:23.053 | 2011-03-18T20:27:05.423 | null | null | 562,417 | [
"xna",
"3d"
]
|
5,356,477 | 1 | 5,356,521 | null | 2 | 292 | I have some old programs that I created 7-8 years ago in C++ in Visual Studio 6.0.
I tried to start them today, but I had no luck. When starting up the program (or any other program I created at the time), I get the following error message:

I can see at least that MFC42D.DLL and MSVCP60D.DLL is present in the program folder, but honestly I do not remember what is required to start these programs any more, and I obviously do not have VS6 installed on my current machine.
Do anyone know what this error message mean, and what I can do to resolve it? I would love to start up these old programs again to see what they look like :)
I got a step further now, after I put a new DLL, but now the problem is that Direct X 8 is not getting set up properly. I thought DirectX was backwards compatible, but do I have to install DX8 as well? Will it work having two DirectX versions installed at the same time?
| Problem starting old programs created in VS6 | CC BY-SA 2.5 | null | 2011-03-18T18:46:56.437 | 2012-01-12T13:09:47.647 | 2012-01-12T13:09:47.647 | 366,904 | 303,476 | [
"c++",
"visual-c++",
"visual-c++-6"
]
|
5,357,254 | 1 | 5,368,818 | null | 3 | 2,526 | I'm trying to profile a system with XPerf.
And see that performance problems occurs when there is activity in HardFaults !

But what I cant figure out and find in google what are these Hard Faults that xperf shows.
What are they related to?
What do they indicate?
Is there any universal remedy for such situations?
[Hard faults table](https://i.stack.imgur.com/7XH1U.jpg)
| What is Hard Faults in XPerf | CC BY-SA 2.5 | 0 | 2011-03-18T20:02:32.540 | 2011-04-21T06:20:21.410 | null | null | 548,894 | [
"performance",
"profiler",
"xperf",
"system-profiler"
]
|
5,357,267 | 1 | 5,358,419 | null | 13 | 16,099 | I have TFS 2010 and Visual Studio 2010 Ultimate and the April TFS 2010 Power Tools installed. I am a Project Collection Administrator on my TFS Server (so permissions should not be an issue).
I want to open the alerts explorer, but when I right click on a project tab it is not there:

Just in case I tried upgrading to the March version of the TFS 2010 Power Tools. There was no change.
Opening the "Project Alerts" just gets me the normal Alerts dialog. I need to make a new alert.
Any ideas how I can get the missing menu item back?
Edit: I tried manually adding the menu item to the context menu. But I cannot find Alerts Explorer in any of the command lists.
| How to open TFS Power Tools - Alerts Explorer | CC BY-SA 2.5 | 0 | 2011-03-18T20:03:37.837 | 2012-02-23T23:53:04.870 | 2011-10-06T00:23:20.657 | 76,337 | 16,241 | [
"tfs",
"alerts",
"tfs-power-tools"
]
|
5,357,568 | 1 | 5,361,662 | null | 5 | 2,724 | I have an App that has a toolbar at the bottom of the screen and the rest is filled with a custom View (see xml below). Now when I make the App full screen (I tried all possibilities, programmatically and via Manifest.xml), when it's started the whole layout seems to be shifted down by about the height of the notification bar. The buttons in the toolbar are only visible half-way. Sometimes, all of it moves up after a few seconds, or when I click a button in the toolbar.

I'm pretty sure, that it's a problem with my custom view, because I do not get this effect if I replace it with a Button or the like. I guess it must have something to do with the `onMeasure` method. I don't really know how to implement it, my version is shown below. The custom view is used for drawing inside, so basically it wants to be as large as possible.
Any help would be much appreciated. I searched for several hours already, but no clue yet.
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<com.example.MyCanvasView
android:id="@+id/canvas"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
/>
<!-- Buttonbar -->
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="4dp"
android:orientation="horizontal"
android:background="@android:drawable/bottom_bar"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3"
/>
</LinearLayout>
</LinearLayout>
```
And this is my `onMeasure` method:
```
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int width = MeasureSpec.getSize(widthMeasureSpec);
int height = MeasureSpec.getSize(heightMeasureSpec);
setMeasuredDimension(width, height);
}
```
| Fullscreen App, Layout shifted down by height of notification bar | CC BY-SA 2.5 | 0 | 2011-03-18T20:36:22.397 | 2011-03-19T11:04:52.010 | 2011-03-18T21:36:12.553 | 61,479 | 61,479 | [
"android"
]
|
5,357,604 | 1 | 5,357,610 | null | 6 | 2,924 | I thought I knew how to declare javascript arrays but in this script I am getting an infinite loop of `undefined` elements in the array.
I declare three arrays of numbers, two of which have multiple values and one which has a single value.
I have a switch statement that assigns one of the three arrays to a new variable name `cluster_array`
When I run a `for` loop through `cluster_array`, I get an infinite loop and every element if `undefined`
What am I missing?
```
<script type="text/javascript">
var ga_west_cluster = new Array(10,11,12,14,74,75,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,295,296);
// original bad array
var ga_east_cluster = new Array(84);
// added an extra (dummy) value and it works fine
var ga_east_cluster = new Array(1,84);
var sc_cluster = new Array(93,94,95,96,97,98,99,100,101,102,103);
</script>
```
Here is the `alert` text:
```
var test_message = "cluster data\n";
for(var k=0;k<cluster_array.length;k++)
test_message += "value: "+cluster_array[k]+"\n";
```

| Javascript array contains only undefined after initialization, not the given values | CC BY-SA 2.5 | null | 2011-03-18T20:39:16.593 | 2011-03-18T20:59:55.350 | 2011-03-18T20:59:55.350 | 20,570 | 94,374 | [
"javascript",
"arrays",
"undefined"
]
|
5,357,835 | 1 | 5,357,905 | null | 2 | 4,442 | I have a div with a solid border and rounded corners defined in CSS, but looking at it in Chrome or FF renders the following (screenshot):

I can't figure out why the solid border is not visible along the rounded corner edges? Here is the associated CSS:
```
div.evalframe {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 12px;
margin: 20px 0 0 0;
padding: 0;
width: 635px;
border: 1px solid #666666;
background-color: #f4f4f4;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius:5px;
}
```
| Problem with border radius rounded corners | CC BY-SA 2.5 | null | 2011-03-18T21:08:40.780 | 2011-03-18T21:15:13.210 | null | null | 397,423 | [
"css"
]
|
5,357,861 | 1 | null | null | 8 | 583 | I'm customizing an `IKImageBrowserView` and I would like to change the space between cells.
I'm using this method `[_imageBrowser setIntercellSpacing:NSMakeSize(0, 0)]` to set the spacing between cells to 0 pixels and it works.
But I notice an inside padding of 10 pixels in the IKImageBrowserView :

Any Idea?
| IKImageBrowserView inside padding | CC BY-SA 3.0 | 0 | 2011-03-18T21:11:32.217 | 2014-01-16T01:46:15.490 | 2017-02-08T14:31:47.377 | -1 | 325,587 | [
"macos",
"cocoa",
"ikimagebrowserview"
]
|
5,357,865 | 1 | 5,357,934 | null | 2 | 4,370 | 
I have these link buttons with text underneath. Right now I am using a table to get everything into alignment. But my boss wants wants a mouseover to trigger both the image and the text state to change. So ideally I would wrap both image and text in `<a>` and use css:hover. But I can't figure out how to do it. I've tried lists so far with no success. I would like something like:
```
<li><img src="" /><br /><a>href</a></li>
```
| Center text under horizontally aligned buttons | CC BY-SA 2.5 | 0 | 2011-03-18T21:11:45.250 | 2011-03-18T21:19:55.480 | null | null | 510,314 | [
"html",
"css"
]
|
5,357,983 | 1 | 5,358,554 | null | 0 | 1,368 | I'm trying to figure out how to send a complex object through javascript to my C# webservice.
Here xml string:
```
<?xml version="1.0" encoding=utf-8?><soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body>
<SaveResponse xmlns="http://tempuri.org/">
<RL>
<response_entries>
<ResponseEntry>
<response_id>string</response_id>
<account_id>string</account_id>
<organization_id>string</organization_id>
<form_header_id>string</form_header_id>
<status>string</status>
<field0>string</field0>
<field1>string</field1>
<field99>string</field99>
</ResponseEntry>
<ResponseEntry>
<response_id>string</response_id>
<account_id>string</account_id>
<organization_id>string</organization_id>
<form_header_id>string</form_header_id>
<status>string</status>
<field0>string</field0>
<field1>string</field1>
<field99>string</field99>
</ResponseEntry>
</response_entries>
</RL>
</SaveResponse>
```
Example of what I'm trying to send:

| Pass complex objects through javascript to a .Net Service | CC BY-SA 2.5 | 0 | 2011-03-18T21:25:24.067 | 2011-03-18T22:51:29.833 | 2011-03-18T22:51:29.833 | 76,337 | 421,237 | [
"c#",
"javascript",
"jquery",
"soap",
"asmx"
]
|
5,358,015 | 1 | 5,358,123 | null | 4 | 8,325 | I want to select the a standard Android menu icon based on the current Android version the phone is running.
Example icons:

I do not want for this purpose, I do want the correct icon based on the devices API.
Is this possible?
| How to select standard Android menu icons? | CC BY-SA 2.5 | 0 | 2011-03-18T21:28:38.393 | 2011-03-18T21:41:16.827 | null | null | 386,562 | [
"android"
]
|
5,358,219 | 1 | 6,701,621 | null | 5 | 2,631 | Here's some strange behavior I hope someone can confirm is a known bug, or suggest a workaround.
My iPad app needs to display some large PDFs (~7mb and graphics-heavy.) The path of least resistance is of course a UIWebView, but my app crashes after display of a few. I isolated the behavior in a new project, and ran Instruments on it.
Here are the results. They seem to indicate that bad leaks are happening in UIWebView.
The essential code, in a minimal view controller:
```
-(IBAction)doPresent:(UIView *)sender
{
NSURL *url = [[NSBundle mainBundle] URLForResource:[NSString stringWithFormat:@"%d", [sender tag]]
withExtension:@"pdf"];
UIWebView *wv = [[[UIWebView alloc] init] autorelease];
UIViewController *vc = [[[UIViewController alloc] init] autorelease];
[vc setView:wv];
UINavigationController *holder = [[[UINavigationController alloc] initWithRootViewController:vc] autorelease];
[self presentModalViewController:holder animated:YES];
[wv loadRequest:[NSURLRequest requestWithURL:url]];
UIBarButtonItem *close = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone
target:self
action:@selector(doDismiss:)] autorelease];
[[vc navigationItem] setRightBarButtonItem:close];
}
-(IBAction)doDismiss:(id)sender
{
[self dismissModalViewControllerAnimated:YES];
}
```
Not pictured: the main nib containing this VC, its view, and five buttons connected to `doPresent:`, each tagged with 1...5; and 1.pdf through 5.pdf in the app bundle. Run it and it works much as you'd expect, except that it crashes after a half-dozen or so views of the PDFs.
Running it under Instruments (allocations) yielded this interesting plot:

The pattern I notice is that, if I display a PDF and dismiss it , it's released as expected with minimal leakage. But if I touch it and scroll, even a little, the memory is not released. Viewing subsequent PDFs does not appear to reuse any of the wasted memory but each allocates more of its own. Running in the simulator and triggering memory warnings doesn't get this memory back either.
When usage hit ~ 25mb, the program got `kill -9`'d. This seems low to me, suggesting some other resource is being leaked besides app memory.
This is on a iPad 1, running 4.3, freshly rebooted.
Ideas? Workarounds? Foolish omissions on my part?
| UIWebView leaking when displaying large PDFs on iPad | CC BY-SA 2.5 | 0 | 2011-03-18T21:55:03.370 | 2011-10-11T09:06:17.187 | 2011-03-22T21:42:37.630 | 50,294 | 50,294 | [
"ios",
"ipad",
"pdf",
"memory-leaks",
"uiwebview"
]
|
5,358,231 | 1 | 5,358,256 | null | 0 | 7,793 | Table:

I'm wondering if there is a way to convert all my timestamps into native mysql datetime (`YYYY-MM-DD HH:MM:SS`) using FROM_UNIXTIME(), but I'm falling short on examples I can pull from. MySQL is not my kung fu.
| Converting unix time to datetime with FROM_UNIXTIME() in MySQL | CC BY-SA 2.5 | 0 | 2011-03-18T21:55:56.997 | 2013-11-08T16:49:45.573 | null | null | 255,255 | [
"mysql"
]
|
5,358,279 | 1 | 5,360,115 | null | 0 | 492 | I wanted to display, mutiple ListViews side by side(horizontal) and which are each scrollable on their own that is scrolling of one doesn't change the scroll position of the others and also to extend it, instead of the regular checkbuttons from Android I would like to use my images.
P.S: I use HoneyComb here.
Here is the sample screenshot of what I wanted.
Any help of how should I proceed would be really appreciated.
Here is my xml for the view.
```
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" android:splitMotionEvents="true">
<ListView android:id="@+id/list1" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight="1" />
<ListView android:id="@+id/list2" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight="1" />
<ListView android:id="@+id/list3" android:layout_width="0dip" android:layout_height="match_parent" android:layout_weight="1" />
</LinearLayout>
```

| Mutiple ListView in one XML. Is it possible? | CC BY-SA 2.5 | null | 2011-03-18T22:01:43.977 | 2011-05-29T07:17:54.240 | 2011-05-29T07:17:54.240 | 750,987 | 402,637 | [
"android",
"android-layout",
"android-listview",
"android-3.0-honeycomb"
]
|
5,358,397 | 1 | 5,358,486 | null | 1 | 106 | I want to generate an hierarchical data representation, more like a family tree rather than the typical tree view.
Something like this

Are there any solutions out there to accomplish this? Preferably in .NET but I am considering any solution that this available.
I have my hierarchical datasource, hopefully, I can just feed it into the constructor for this control and have it render on my site. A google and stack exchange search yielded nothing substantive.
| Are there any good hierarchial controls for web sites? | CC BY-SA 2.5 | null | 2011-03-18T22:19:58.807 | 2011-03-18T22:51:53.890 | null | null | 127,257 | [
"c#",
"asp.net",
"tree",
"controls"
]
|
5,358,521 | 1 | 5,831,386 | null | 3 | 1,327 |
Download a small test app [here](http://cid-478bda4dd05d096a.office.live.com/self.aspx/.Public/CustomControlProblem2.zip)
I have a custom control consisting of a border, button and textblock. When the control is pressed I display a popup picker control. I'm having a problem using visual state to properly enable and disable the control.
When I enable and disable the control normally using the Normal and Disabled visual state it works fine:
Enabled:

Disabled:

If I click the control then disable the control the background stays white:

Any ideas?
Here is the style:
```
<Style
TargetType="Controls:PickerBoxButton">
<Setter
Property="Background"
Value="Transparent" />
<Setter
Property="BorderBrush"
Value="{StaticResource PhoneForegroundBrush}" />
<Setter
Property="Foreground"
Value="{StaticResource PhoneForegroundBrush}" />
<Setter
Property="BorderThickness"
Value="{StaticResource PhoneBorderThickness}" />
<Setter
Property="FontFamily"
Value="{StaticResource PhoneFontFamilyNormal}" />
<Setter
Property="FontSize"
Value="{StaticResource PhoneFontSizeMediumLarge}" />
<Setter
Property="Padding"
Value="8,3,8,5" />
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="Controls:PickerBoxButton">
<Grid
Background="Transparent">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup
x:Name="CommonStates">
<VisualState
x:Name="Normal">
<Storyboard>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="ButtonBackground"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneForegroundBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="PickerButton"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneTextBoxBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="PickerText"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneTextBoxForegroundBrush}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState
x:Name="Disabled">
<Storyboard>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="ButtonBackground"
Storyboard.TargetProperty="BorderBrush">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneDisabledBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="PickerButton"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneChromeBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames
Storyboard.TargetName="PickerText"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame
KeyTime="0"
Value="{StaticResource PhoneDisabledBrush}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Border
x:Name="ButtonBackground"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="0"
Background="{TemplateBinding Background}"
Margin="6,8,8,0"
>
<Button
x:Name="PickerButton"
BorderThickness="0"
Height="64"
HorizontalAlignment="Left"
Margin="-12,-12,0,-12"
VerticalAlignment="Top"
Width="700">
<StackPanel
Orientation="Horizontal"
Width="700">
<TextBlock
x:Name="PickerText"
Margin="-2, 0, 0, 0"
/>
</StackPanel>
</Button>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
```
UPDATE
Added code from control showing visual state change trigger.
```
private bool _isReadOnly;
public bool IsReadOnly
{
get { return _isReadOnly; }
set
{
_isReadOnly = value;
UpdateVisualState();
}
}
private void UpdateVisualState()
{
VisualStateManager.GoToState(this, IsReadOnly ? "Disabled" : "Normal", false);
}
```
| WP7 Visual State Problems | CC BY-SA 3.0 | 0 | 2011-03-18T22:43:13.943 | 2011-05-01T05:13:21.333 | 2011-05-01T05:13:21.333 | 4,149 | 4,149 | [
"silverlight",
"windows-phone-7",
"coding-style"
]
|
5,358,804 | 1 | 7,263,732 | null | 24 | 49,877 | I have a strange problem with tortoise git at the moment, which I can't figure out. When trying to commit to my repository on github I get the error
> ERROR: Permission to martindevans/Hermes.git denied to key2
Key2 is a key I use to access a different github repository, however the remote url is not set to use key2, as you can see here it's set to use private.ppk

Am I doing something obviously wrong, or is tortoise git broken?
Nb. In response to the comments. Using normal git results in:
```
C:\Users\Martin\Documents\Visual Studio 2010\Projects\Hermes>git push
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
```
| TortoiseGit using incorrect SSH key | CC BY-SA 2.5 | 0 | 2011-03-18T23:28:13.660 | 2022-05-28T16:30:21.917 | 2016-03-12T02:45:41.500 | 2,581,872 | 108,234 | [
"git",
"tortoisegit"
]
|
5,359,106 | 1 | null | null | 1 | 730 | It will look something like this:

I'm wondering what the best way of going about this is, with regard to making the GUI (Swing vs. OpenGL) and any other issues you can think of.
I'm not wedded to making it 3-D, as I could just show two-sides and the bottom, but I'd love any advice.
| Making a graphics-oriented rubix cube solver in Java | CC BY-SA 3.0 | null | 2011-03-19T00:21:17.453 | 2011-12-04T00:08:12.057 | 2011-12-04T00:08:12.057 | 84,042 | 666,866 | [
"java",
"cube",
"rubiks-cube"
]
|
5,359,302 | 1 | null | null | 3 | 19,804 | The following web page is not showing properly in IE 9.
It seems to be only a problem in IE 9.
[http://froyo.tv/test/](http://froyo.tv/test/)
the list-style-image are over the image!

IE9

Firefox, Chrome, IE8, ...
Fixed: [http://froyo.tv/test/index_fix.php](http://froyo.tv/test/index_fix.php)
| IE 9 CSS Float problem! | CC BY-SA 2.5 | 0 | 2011-03-19T01:07:35.180 | 2012-06-28T14:11:57.670 | 2012-06-28T14:11:57.670 | 44,390 | 457,015 | [
"css",
"internet-explorer-9",
"css-float"
]
|
5,359,386 | 1 | null | null | 2 | 2,790 | I'm having some trouble with my maze solving algorithm. I'm trying to implement the left hand rule.
```
public Direction move(View v) {
if (!wallExistsToLeft(v)) {
turnLeft();
} else if (v.mayMove(direction)) {
return direction;
} else if (!wallExistsToRight(v)){
turnRight();
} else {
turnAround();
}
return direction;
}
```
direction is always set to the current direction the maze solver is facing.
turnX changes the direction based on the direction you're currently facing
The move function returns a direction in which the maze solver moves 1 space in that direction.
Can anyone point me in the right direction? I'm sure there is some simple recursive way that this can be implemented but I can't seem to work it out.
Currently I'm failing on these two tests:

Any help would be greatly appreciated.
| Wall follow maze solver | CC BY-SA 3.0 | null | 2011-03-19T01:27:11.443 | 2014-09-15T15:43:27.790 | 2014-09-15T15:43:27.790 | 772,868 | 439,360 | [
"java",
"algorithm",
"maze"
]
|
5,359,440 | 1 | 5,377,944 | null | 3 | 453 | In regards to storing history within a database, is it better to use a DateEnd (Ex. 1) or a Duration (Ex. 2)?
Or please feel free to even suggest another approach that would be the most effective.
Are there other changes that I should make to one of these Examples if one proves to be the correct approach? DB being used is MySQL although I don't think it has a bearing on the approach here.

| Storing History in a Database | CC BY-SA 2.5 | null | 2011-03-19T01:41:03.233 | 2011-03-21T13:03:30.333 | 2011-03-20T13:19:46.840 | 527,298 | 527,298 | [
"database",
"database-design",
"history",
"relational-database"
]
|
5,359,563 | 1 | null | null | 1 | 285 | So, I am building a part of a UI that is used to display a video stream along with a few other controls beside it. Without getting into too much detail, the video is a stream from an area scan camera under which is an objective lens and a tissue sample.
The UI provides a "macro" image which represents the tissue sample, and the video is a live feed showing an arbitrary region of the sample at any time. My idea was to display the video in a tooltip-like area with a stem that maps to the area of the sample that the user is currrently viewing as shown below. The window can be dragged around, but the stem should stay anchored. So, I am using a Callout to get that effect.
---

---
Notice the broken border on the right side. That is where the stem would be (Ignore the corners; those areas are transparent but happened to be over a blue background). However, because this `Callout` is hosted inside of a window, the stem is clipped. Does anyone know of a way around this, or better yet, a more simple approach?
Clip to bounds is more of a suggestion than a directive (and doesn't work here) and the I do need the window to be draggable. Any help will be much appreciated as I learn the ins and outs of WPF. Thanks in advance.
| Displaying content outside the boundaries of a Window | CC BY-SA 2.5 | null | 2011-03-19T02:10:26.083 | 2011-09-28T00:53:24.297 | 2011-03-19T03:21:44.337 | 1,053 | 1,053 | [
".net",
"wpf",
"window",
"cliptobounds"
]
|
5,359,711 | 1 | 5,359,781 | null | 3 | 300 | I'm trying to add a dash `-` and a defined string `$pageurle` right after the `{target}` sothat the url in the href (se below code) is extended with, naturally a dash and the contents of the variable $pageurle
See the existing piece of code into which I would like to inject the dash & variable right after the href:
```
// html for breadcrumbs
var $breadcrumb_templates = array(
'separator' => '→',
'link' => '<a href="{target}">{name}</a>',
'wrapper' => '<div class="breadcrumbs">{items}</div>',
);
```
Now, when I add the dash and the $pageurle, dreamweaver says i'm doing something wrong and shows an eror. I must be doing something stupid here... but what? Your ideas/code/improvements/possible dives into this matter are much appreciated by me.

| Adding a little String variable in an Array Causes Syntax Error? | CC BY-SA 3.0 | 0 | 2011-03-19T02:47:55.897 | 2012-12-21T06:35:35.193 | 2012-12-21T06:35:35.193 | 367,456 | 509,670 | [
"php",
"arrays",
"string",
"debugging"
]
|
5,359,873 | 1 | null | null | 0 | 461 | What ways are there of coding a CSS layout with the following conditions:
1) Multiple equal-height columns, no fixed height given for any column, no knowledge of which will be the highest, the layout simply expands all columns according to whichever happens to contain the most content.
2) Each column is fully bordered.
3) No background images are used.
4) Works in webkit, gecko, and... yep, IE6+. (well, I might accept an IE7+ answer).
If you'd like a visual, this:

is the relevant portion of the composition I'm trying to work up.
If I relax any one of the criteria, I'm familiar with a number of methods of accomplishing this. It's all of the criteria together where I can't figure out what to do.
Note that in particular, the full-border and no background-image requirements seem to knock out a number of high-profile solutions (for example, Matthew Taylor's "Perfect 3 Col Liquid Layout"). Please don't point to to something like this unless you can give specific instructions on how to tailor it.
| Multiple equal height box-bordered columns using CSS -- *without* background images? | CC BY-SA 2.5 | null | 2011-03-19T03:34:44.303 | 2011-03-19T04:08:46.180 | null | null | 87,170 | [
"css",
"layout"
]
|
5,359,946 | 1 | 10,374,818 | null | 4 | 217 | I have an UITableView in my application that lets the user quit apps on a remote computer. I would like to let the user to choose from Force Quit or regular Quit, using the regular 'delete' button. Here's a quick mock-up of what I mean:

First of all, is this even possible? Secondly, how would I go about implementing this? I'm guessing something like an UISegmentedControl with the same red tint. I'd love to know that tint too ;)
| Replace UITableView Delete Button with Segmented Button | CC BY-SA 2.5 | null | 2011-03-19T03:56:02.917 | 2012-04-29T18:35:37.763 | null | null | 219,515 | [
"cocoa-touch",
"uitableview",
"uisegmentedcontrol"
]
|
5,360,355 | 1 | 5,362,093 | null | 1 | 1,590 | i am using a toolbar filter (mostly select dropdowns) and multiple advanced filter. This works fine except if i programatically set a bunch of filters and then load up the dropdown it takes the first entry and converts the textbox to a dropdown and only shows me "Equals" in the operation dropdown.
The issue is all other items will still show textboxes. here is a picture:

you see how the first row has a dropdown but the other rows are textboxes. If this was working properly they all would be textboxes. Also, the operation default is not defaulting to "Equals"
Here is my code:
On startup i programatically set some filters:
```
var myfilter = { groupOp: "AND", rules: [] };
myfilter.rules.push({ field: "Status", op: "ne", data: "Completed" });
myfilter.rules.push({ field: "Status", op: "ne", data: "On Hold" });
myfilter.rules.push({ field: "Status", op: "ne", data: "Cancelled" });
[a bunch of code to initialize grid . . .]
postData: { filters: JSON.stringify(myfilter) },
```
Also, here is the colModel for the status column:
```
{ name: "Status", index: "Status", width: 55, stype: 'select', searchoptions: { sopt: ['eq'], dataUrl: "/Project/StatusGetSelectData1"} },
```
then all i do i click on the Search button (i have )
So because the "Status" column is stype: "select" it seems to only show me the "equal" operator in the operator dropdown (which defeats the purpose of advance filter) and on the first item on the advance filter converts to a select with the items from the select but:
1. It doesn't default the value of the operation to "equal" as you can see it keeps it blank
2. The other filters below DONT convert to dropdown (they stay textboxes) and also don't default to equals
## Update:
One problem is fixed as i didn't have 'ne' in the sopts setting for this field. i now see this:

Also, Oleg below asked to see the output of DataUrl:. Oleg, all i do is get the list of values and shove it into the dropdown view (see below)
```
<select>
<option value="">(None)</option>
<%
foreach (var pair in Model)
{
%><option value="<%= pair.Value %>"><%= pair.Value %></option>
<%
}
%></select>
```
## Update:
This is now fixed in jqGrid 4.0
| bug in jqgrid, only the first search shows a dropdown | CC BY-SA 3.0 | null | 2011-03-19T05:35:43.537 | 2011-04-10T19:51:53.677 | 2011-04-10T19:51:53.677 | 4,653 | 4,653 | [
"jquery",
"jqgrid",
"filtering"
]
|
5,360,404 | 1 | 5,360,733 | null | 0 | 206 | This is a very weird bug I'm having.
I'm using Modernizer and after a whole bunch of troubleshooting I've pretty much narrowed it down to Modernizer generating this big block of whitespace.
I can check the server on my local server via 'localhost' and get this whitespace

I would perform the same check with the same browser but with my WAN IP instead and get a different whitespace. It's really odd.

You can check it out here:
[http://184.161.181.41:8888/](http://184.161.181.41:8888/)
| Extra Whitespace generated on the top of page? | CC BY-SA 2.5 | null | 2011-03-19T05:47:41.007 | 2011-03-19T07:09:18.923 | null | null | 185,731 | [
"javascript",
"css",
"modernizr"
]
|
5,360,699 | 1 | 5,386,087 | null | 8 | 1,965 | I don't necessarily need a solution to this problem--rather I'd like to understand it's occurring. I don't see why I should be getting the odd results below...
Although this question is directed towards an issue I'm having with an HTML5 canvas application, I think the problem is less specific.
I have an HTML5 canvas app that allows you to stamp images on the screen. These images are 32bit PNG's, so I'm working with transparency. If I stamp a highly transparent image in the same location many times (roughly 100), I end up with an absolutely terrible result:

The color of the image that I'm using as a stamp is `RGB(167, 22, 22)` and the background that I'm stamping onto is `RGB(255, 255, 255)`. Here's the source image, if anyone's interested:

As you can tell, the image has extremely low alpha levels. Likely about `2/255 to 5/255` or so. What I would to happen is that if you repeatedly apply the image stamp to the canvas enough times, you'll get pixels of color `RGBA(167, 22, 22, 255)`. Unfortunately, I'm getting a mixed bag of colors including some very odd regions of gray with a value of `RGB(155, 155, 155)`.
I just loaded up Excel and plugged in the equation for source-over alpha blending ([Wikipedia reference](http://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending)) and I seem to be converging to `RGB(167, 22, 22)` after enough iterations. I'm probably missing something fundamental about alpha blending operations and how the HTML5 canvas implements source-over compositing... can anyone help straighten me out?
Thanks!
[this question](https://stackoverflow.com/questions/4781808/html5-canvas-banding-with-low-alpha)
| Poor results with source-over alpha blending (HTML5 canvas) | CC BY-SA 3.0 | 0 | 2011-03-19T07:01:58.540 | 2011-10-06T08:54:49.443 | 2017-05-23T12:01:09.963 | -1 | 555,322 | [
"html",
"graphics",
"canvas",
"pixel",
"blend"
]
|
5,360,777 | 1 | null | null | 0 | 1,100 | In a scrollable datatable, which displays a collection of objects , I have to add one manual row as first row. That row contains inputText, through which user can able to enter some values and while hitting enter, those values will save and displays in bottom rows. I couldnt able to add this manual row as first row. Below is the current code.
```
<rich:scrollableDataTable value="{resultList}" var="result">
<rich:column>
<f:facet name="header">Name</f:facet>
<h:outputText value="#{result.name}" />
</rich:column>
<rich:column>
<f:facet name="header">Category</f:facet>
<h:outputText value="#{result.category}" />
</rich:column>
</rich:scrollableDataTable>
```
The above code is for just displaying the values from the backend.

| JSF Rich scroallable Datatable Issue | CC BY-SA 2.5 | null | 2011-03-19T07:22:21.727 | 2011-03-19T19:32:20.403 | null | null | 606,115 | [
"jsf",
"richfaces",
"richdatatable",
"scrollable-table"
]
|
5,360,854 | 1 | 5,360,921 | null | 0 | 1,482 | How can I do to create a loading jframe without title bar like Eclipse in the image...

I used setUndecorate() to remove the title bar and a thread to wait 3 seconds then open the main window but it wouldn't work ...
I'm not thinking to use a progressbar...
How can I do??
Thanks in advance.
Best rgards,
Ali
| Loading Spalsh Screen before application launching | CC BY-SA 2.5 | 0 | 2011-03-19T07:48:30.263 | 2014-09-03T03:02:08.883 | 2011-03-19T08:14:18.737 | 604,156 | 604,156 | [
"java",
"screen",
"loading",
"splash-screen"
]
|
5,360,975 | 1 | 5,361,648 | null | 0 | 1,090 | my current situation maybe akin to me painting myself into a corner.
i have many vector shapes drawn with the Flash Professional CS5 IDE, which have been converted into sprite objects and exported to actionscript. for example, here are 3 shapes:

i want to fill each shape with a bitmap from my library. i realize i can fill these shapes with library bitmaps in the IDE, but i need to scale the bitmaps at runtime as well as swap them out for others.
how is it possible to programatically bitmap-fill shapes drawn within the IDE at runtime without having to also programatically redraw them?
| ActionScript / Flash - Programatically Bitmap-Fill IDE Drawn Vectors? | CC BY-SA 2.5 | 0 | 2011-03-19T08:21:46.853 | 2012-05-05T03:41:00.523 | 2012-05-05T03:41:00.523 | 390,278 | 336,929 | [
"actionscript-3",
"flash",
"bitmap"
]
|
5,361,265 | 1 | 5,361,844 | null | 0 | 265 | I have successfully loaded the muscleName items into a table view but am not having any luck loading their respective exerciseName into the 2nd table view.
The method I am using is:
```
cell.textLabel.text = [[self.exerciseArray objectAtIndex:indexPath.row] objectForKey: @"exerciseName"];
```
Maybe I need to define constants?

Edit:
Here is the code in ViewDidLoad for the first table that loads muscleName:
```
if (muscleArray == nil)
{
//Read the plist file into an array (the root element is an array)
NSString *path = [[NSBundle mainBundle]pathForResource:@"test" ofType:@"plist"];
NSMutableArray *rootLevel = [[NSMutableArray alloc]initWithContentsOfFile:path];
self.muscleArray = rootLevel;
[rootLevel release];
```
Here is my current sub table class
```
import "SpecificExerciseTableViewController.h"
#import "MusclesTableViewController.h"
#import "CurlAppDelegate.h"
#import "DetailViewController.h"
@implementation SpecificExerciseTableViewController
@synthesize exerciseArray;
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
}
return self;
}
- (void)dealloc
{
[exerciseArray release];
[super dealloc];
}
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
self.navigationItem.title = @"Exercises";
[super viewDidLoad];
if (exerciseArray == nil)
{
//Read the plist file into an array (the root element is an array)
NSString *path = [[NSBundle mainBundle]pathForResource:@"test" ofType:@"plist"];
NSMutableArray *rootLevel = [[NSMutableArray alloc]initWithContentsOfFile:path];
self.exerciseArray = rootLevel;
[rootLevel release];
}
// Uncomment the following line to preserve selection between presentations.
// self.clearsSelectionOnViewWillAppear = NO;
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem;
}
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [self.exerciseArray count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
NSUInteger row = [indexPath row];
cell.textLabel.text = [[self.exerciseArray objectAtIndex:indexPath.row]objectForKey:@"exerciseName"];
return cell;
}
- (UITableViewCellAccessoryType)tableView:(UITableView *)tv accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellAccessoryDisclosureIndicator;
}
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Navigation logic may go here. Create and push another view controller.
DetailViewController *detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
// ...
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
}
@end
```
| Need Help Loading Plist Into Multiple Tables | CC BY-SA 2.5 | 0 | 2011-03-19T09:30:29.793 | 2011-03-21T01:05:32.717 | 2011-03-21T01:05:32.717 | null | null | [
"iphone",
"objective-c",
"sdk",
"plist"
]
|
5,361,408 | 1 | 5,361,493 | null | 14 | 5,788 | I am trying to set the cell background of my UITableViewCells but I am struggling with the background color of the UIAccessoryView. It does not change.
Can anyone help me make the background color of the UIAccessoryView transparent (or actually any other color)?
This is my code
```
cell.textLabel.backgroundColor = [UIColor clearColor];
cell.accessoryView.backgroundColor = [UIColor clearColor];
cell.detailTextLabel.backgroundColor = [UIColor clearColor];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
if(indexPath.row % 2) {
cell.contentView.backgroundColor = [UIColor clearColor];
}
else {
cell.contentView.backgroundColor = [UIColor redColor];
}
```
Here is an image illustrating the issue

| Cell background and accessory | CC BY-SA 2.5 | 0 | 2011-03-19T10:05:09.670 | 2016-04-10T01:51:44.483 | null | null | 486,845 | [
"iphone",
"sdk",
"uitableview",
"accessoryview"
]
|
5,361,451 | 1 | 5,362,112 | null | 1 | 265 | I have following HTML layout
```
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
margin:10px 0px 0px 0px;
font-size: 11px;
font-family: Arial,Tahoma, sans-serif;
background: #fff;
color: #444;
}
h1 {
font-size:1.5em;
font-weight: bold;
}
#container {
width: 920px;
margin: 0 auto;
background-color: red
}
#header {
border: 2px solid #ccc;
height: 80px;
}
#content{
display: block;
width: 100%
}
#left {
clear: left;
float: left;
width: 660px;
border: 2px solid #ccc;
margin:0 0 10px 0;
padding:20px;
}
#right {
position: relative;
margin: 0 5px 0 5px;
padding: 5px 0px 0px 0px;
float: right;
width: 200px;
border: 2px solid #ccc;
}
#footer {
clear: both;
border: 2px solid #ccc;
padding: 10px 0 20px 0;
margin: 20px 0 0 0;
font-size: .9em;
color: #9b9b9b;
width: 100%;
background-color: skyblue;
}
</style>
</head>
<body>
<div id="container">
<div id="header" >
<h1>Header</h1>
</div>
<div id="content">
<div id="left">
<h1>Left</h1>
</div>
<div id="right">
<h1>Right</h1>
</div>
</div>
</div>
<div id="footer">
<h1>Footer</h1>
</div>
</body>
</html>
```
My problem is #container doesn’t hold the #left & #right contents, it only holds #header
Please refer attached imaged to see what my intended layout is.

| HTML – CSS problem with DIVs | CC BY-SA 2.5 | null | 2011-03-19T10:12:49.483 | 2012-06-17T20:26:38.293 | null | null | 438,877 | [
"html",
"css"
]
|
5,361,570 | 1 | 5,361,649 | null | 0 | 586 | I'm using the picdem F184550, I want to read the value of the led, I'm using the mplab ide v8.63 with a C compiler. but I don't have a idea how to interface with the port RB7 where my led with a resistor is connected to. The question is, how can I read the port RB7 where my led is connected to in the program language C. thanks! (see picture
| read port RB7 or other port from PICF184550 in program language C | CC BY-SA 2.5 | null | 2011-03-19T10:36:51.730 | 2011-03-19T11:15:35.230 | 2011-03-19T11:15:35.230 | 2,622,924 | 642,760 | [
"c",
"compiler-construction",
"microcontroller",
"pic",
"led"
]
|
5,361,606 | 1 | 5,361,629 | null | 2 | 6,389 | Okay, so I am in the process of designing a website which has a login form at the top-right corner of a webpage. I set the size attribute of its input fields and I am getting some interesting results. Below is a group of screenshots that I threw together. I even stacked them for you all. I am even throwing in a [jsFiddle](http://jsfiddle.net/6vAwn/) for you all. So four things:
- - - -
I could not find anything to reveal what is happening after a series of searches. Maybe it's because it's hard to word a question like this into simple search terms (or at least for me)…
With all of this said, my question is why is are the input fields rendered so differently, and most importantly, can I remedy this (without JavaScript or the dependence on User Agents preferably)?

| Input fields rendered very differently in different browsers | CC BY-SA 2.5 | 0 | 2011-03-19T10:46:31.207 | 2011-03-19T10:52:18.147 | null | null | 652,722 | [
"html",
"css",
"xhtml",
"cross-browser",
"textfield"
]
|
5,361,681 | 1 | 5,361,711 | null | 1 | 1,727 | i am following [this simple tutorial](http://railscasts.com/episodes/73-complex-forms-part-1) and i followed all the steps... but the browser simply doesn't show me anything i put inside the `fields_for` tag.
```
<%= form_for :activity, :url => activities_path do |f| %>
<% if @activity.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@activity.errors.count, "error") %> prohibited this activity from being saved:</h2>
<ul>
<% @activity.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label "Foto" %><br />
<%= f.text_field :photo %>
</div>
<div class="field">
<%= f.label "Foto per la home" %><br />
<%= f.text_field :photoHome %>
</div>
<% for info in @activity.infos %>
This is rendered<br>
<% fields_for "activity[info_attributes][]", info do |info_form| %>
This is not rendered<br>
<p>
Titolo: <%= info_form.text_field :title %>
</p>
<p>
Descrizione: <%= info_form.text_field :description %>
</p>
<% end %>
<% end %>
<p><%= submit_tag "Create activity" %></p>
<% end %>
```
The above code result is this:

| Rails Screencast - Completely stuck on "fields_for" | CC BY-SA 2.5 | null | 2011-03-19T11:10:11.793 | 2011-03-19T11:23:10.343 | null | null | 396,133 | [
"ruby-on-rails"
]
|
5,361,791 | 1 | null | null | 21 | 9,153 | I'm trying to devise an algorithm for a robot trying to find the flag(positioned at unknown location), which is located in a world containing obstacles. Robot's mission is to capture the flag and bring it to his home base(which represents his starting position). Robot, at each step, sees only a limited neighbourhood (), but he has an unlimited memory to store already visited cells.
I'm looking for any suggestions about how to do this in an efficient manner. Especially the first part; namely getting to the flag.

| Robot exploration algorithm | CC BY-SA 3.0 | 0 | 2011-03-19T11:31:22.980 | 2012-09-16T22:14:09.733 | 2012-09-15T23:23:17.530 | 1,288 | 42,803 | [
"algorithm",
"artificial-intelligence",
"robotics"
]
|
5,361,832 | 1 | null | null | 2 | 623 | Which value can I expect from PORTBbits.RB7, on this port there is a green led with a resistor connected (see picture). I'm using pic F184550 with mplab ide v8.63 and a C compiler C18 from mplab microchip. Or do I need to write to putty to see this value. thanks 
| which value can I aspect from PORTBbits.RB7 from pic 18f4550 | CC BY-SA 2.5 | null | 2011-03-19T11:38:43.487 | 2011-03-29T00:30:13.943 | null | null | 642,760 | [
"c",
"compiler-construction",
"microcontroller",
"microchip"
]
|
5,361,901 | 1 | 5,361,926 | null | 0 | 3,643 | please see follow pic.

[enter link description here](http://mehdi9torki.persiangig.com/image/calender.jpg)
i want when i click on bottom that specified by green circle a thing like that specified by red circle is shown is appeared.
i want two know is there any function or class in java that do that and return
the selected date.
```
i want to use it in mysql.
```
| how can get date in netbeans? | CC BY-SA 2.5 | 0 | 2011-03-19T11:56:44.743 | 2011-03-19T12:42:27.470 | 2011-03-19T12:42:27.470 | 21,234 | 578,462 | [
"java",
"date",
"netbeans"
]
|
5,361,917 | 1 | 5,361,961 | null | 2 | 825 | I need to implement functionality of nightly process in my applications billing module. See the image of the tables involved.

Let me explain tables by their numbers in red. Basically this is an house allotment application database where the tenants can choose the billing plans and addons in it. Like we have inour mobile service.
Step: 1. This is the first most table, tbl_MSTBilling, where the enduser will create a plan with some addon. Addon is known as transaction type here. There billing plan general details are saved here in the same details where as the addons will get saved into table no 2 with reference of the billing plan, that is the billing plan id. Also here in table 1 we have two entities BillingDayOfMonth as integer and LatefeeAppliedDayOfMonth as int. Which takes input in between 1-31 (days of months).
Step 2: Now at the time of agreeement, tenant opts some billing plan that suits him and that billing plan is then attached with the agreement. In table 3 , we have agreement id and billingplanid. Now we agreement is generated the addons of billing plan from table 2 will get inserted into table 4. Here Agreement and BillingPlan has 1:1 relationship.
Sterp3: Now the scenario of nightly process come, which will occur every night. First it will check the Billing day of month in table 3, It will have to pull out the agreements id of all user having their billing day of month as today. Now on the basis of all agreements the rows from table 4 will get populated into table 5. Here TransactionDate will be null for each row and Statementdate will become current date. TransactionType of 4 is as same as TransactionTypeId of 5. Say we got 100 rows of 20 different AgreementId's.Also in the mean while we have to check in table 6 whether there is any bill due for agreement on the basis of includedinstatement, which is bit field. If this is included then it will get set to true.
Step 4: Taking table 5 and 7 a single row will get inserted to table 7 which will be the original bill.
So this is my entire query. . I hope i am clear to you. Any queries please put it.
```
BEGIN TRY
BEGIN TRANSACTION
DECLARE @Today AS INT
--
SET @Today =12-- (SELECT DATEPART(DAY,GETDATE()))
-- First of all check for the agreements
INSERT INTO tbl_AccountTranscation (AgreementID,TranscationDate,TranscationTypeID,Amount,StatementDate)
SELECT AgreementId, NULL, TransactionType,Amount,GETDATE() FROM tbl_AgreementTransaction
WHERE AgreementId IN (SELECT AgreementId From tbl_MSTAgreement WHERE BillingDayOfMonth = @Today)
Declare @Count AS INT
SET @Count = (Select COUNT(*) FROM tbl_BillDue WHERE IncludedinStatement=0 AND AgreementID IN (SELECT AgreementId
From tbl_MSTAgreement
WHERE BillingDayOfMonth = @Today) )
IF @Count >0
BEGIN
INSERT INTO tbl_AccountTranscation (AgreementID,TranscationDate,TranscationTypeID,Amount,StatementDate)
Select AgreementId,NULL,-1,ISNULL(((ISNULL(TotalDueAmount,0)+ ISNULL(LateFeeAmount,0)) - ISNULL(AdjustmentAmount,0)),0) as Amount,
GETDATE() as StatementDate
From tbl_BillDue
Where IncludedinStatement = 0 and AgreementID IN ( SELECT AgreementId
From tbl_MSTAgreement
WHERE BillingDayOfMonth = @Today
)
END
--INSERT INTO tbl_MSTBill
--(AgreementId,OutStandingPayment,BillDate,BillDueDate,PaymentDate,AmountPaid)
--SELECT AgreementID, SUM(Amount) as Amount,StatementDate,NULL,NULL,NULL
--FROM tbl_AccountTranscation WHERE AgreementId IN ( SELECT AgreementId
-- From tbl_MSTAgreement
-- WHERE BillingDayOfMonth = 12)
--GROUP BY AgreementID, Amount,StatementDate
SELECT tbl_MSTAgreement.AgreementID, tbl_MSTAgreement.LateFeeApplyDayOfMonth, tbl_AccountTranscation.StatementDate,
SUM(tbl_AccountTranscation.Amount) as Amount
FROM tbl_AccountTranscation INNER JOIN
tbl_MSTAgreement ON tbl_AccountTranscation.AgreementID = tbl_MSTAgreement.AgreementID
GROUP BY tbl_MSTAgreement.AgreementID,Amount,tbl_MSTAgreement.LateFeeApplyDayOfMonth, tbl_AccountTranscation.StatementDate
COMMIT TRANSACTION
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
END CATCH
END
```
| Implementing nightly process using ASP.Net , C# and Sql Server | CC BY-SA 2.5 | 0 | 2011-03-19T12:00:57.587 | 2011-03-19T12:08:55.367 | 2011-03-19T12:08:35.007 | null | null | [
"c#",
"asp.net",
"sql-server",
"tsql",
"sql-server-2008"
]
|
5,362,060 | 1 | 5,362,307 | null | 0 | 660 | You know it is very easy to set transparent background of the control placed on the top of other control in WinForm by using the Parent method in C# like:
```
LabelText.Parent = pictureBox1;
```
But it does not work in the Windows Mobile programming. I thought there in an other way to do so.

I want to set the Label's background transparent, which is placed on the picturebox. In the above image the back colour of the label is already set to transparent but it displays the white colour instade of transparent.
| Transparent Background controls in PPC programming | CC BY-SA 2.5 | null | 2011-03-19T12:29:17.807 | 2011-03-19T19:09:49.243 | 2011-03-19T19:09:49.243 | 104,267 | 574,917 | [
"c#",
"windows-mobile",
"pocketpc"
]
|
5,362,201 | 1 | 5,362,383 | null | 0 | 2,724 | Given the schema below, how can a notification system be incorporated?
Users need to be notified when someone comments on their Picture or SaleItem along with when someone makes a bid on their SaleItem (through Purchase Offer).
The ultimate goal is to have a notification system that will handle SMS, Email, and an internal system messaging system. The complexities of those options will be worked out but I need the basic data model from which they can be built upon.
MySql is the DB being used but I don't believe that should affect the data model.
Thanks

| Notification System Design | CC BY-SA 2.5 | 0 | 2011-03-19T12:56:12.617 | 2011-03-19T13:32:14.873 | null | null | 527,298 | [
"database",
"database-design",
"data-modeling",
"database-schema"
]
|
5,362,241 | 1 | 6,473,131 | null | 3 | 2,222 | I frequently use the Edit -> Advanced -> Format Document command (Ctrl-K, D) in VS2010 when editing HTML markup.
I'm working on a site that uses HTML5 structural elements (`<nav>, <header>, <footer` and so on) - but I can't get Visual Studio to indent the tags' content when reformatting the document.
I've explored the options under Tools -> Options -> Text Editor -> HTML -> Formatting -> Tag Specific Options, and explicitly added the HTML5 elements I'm using to the "Client HTML Tags" section

but this doesn't indent the tag content when reformatting.
Is this unsupported? A known bug? Some sort of configuration setting I've missed?
| Can I configure "Format Document" support for HTML5 tags in Visual Studio 2010? | CC BY-SA 2.5 | 0 | 2011-03-19T13:03:52.647 | 2011-06-24T19:58:23.167 | null | null | 5,017 | [
"visual-studio-2010",
"html",
"formatting",
"code-formatting"
]
|
5,362,312 | 1 | null | null | 0 | 761 | Curently I'm writing a project about image recognition and clusterization. In publication which is a basis for my project there is this equation

Variables description is given below
> Rj - is a rotation matrix of j-th
clustert_j - is a translation vector of j-th
clusterp*ij - is a i-th point from j-th
clusterx_i - is a i-th point from the image
I had a little problem with writing this function so I asked the author of publication if he could share with me a source code. Here is what I got
```
ddx=D.x-Q.translation(1);
ddy=D.y-Q.translation(2);
st=sin(Q.theta); ct=cos(Q.theta); R=[ct -st; st ct]; % rotation matrix
qq=R*[ppx0; ppy0];
qqd2=sum(qq.*qq,1);
Q.scale=sum((ddx.*qq(1,:)+ddy.*qq(2,:)).*Um) / sum(qqd2.*Um);
```
Here `D.x`, and `D.y` are the coordinates of data points
`Q.translation` (a vector), `Q.scale`, and `Q.theta` are the transform parameters
`ppx0` and `ppy0` are the and coordinates of *p**
`Um` is the matrix containing []
However I have a hard time with understanding this solution. First of all I don't understand why he uses array multiplication (operator `.*`) instead of matrix multiplication (operator `*`) what is more it seems that he takes only one/first point `p*`
I hope somebody will help me to try this source code. Thanks in advance
| Image clustering - problem with matlab function | CC BY-SA 2.5 | null | 2011-03-19T13:17:52.513 | 2011-03-21T21:15:32.813 | 2011-03-21T14:22:20.030 | 198,501 | 667,327 | [
"matlab",
"image-processing",
"cluster-analysis"
]
|
5,362,343 | 1 | 5,362,426 | null | 1 | 424 | I have table called `playlist`, and I display those details using `display_playlist.php` file.
screen shot of `display_playlist.php`:

Every time user clicks the 'up' or 'down' button to arrange the song order, I just update the table.But I feel updating DB very often is not recommended, so Is there any efficient way to accomplish this task.
I am still a newbie to AJAX, so if AJAX is the only way to do it, can you please explain it in detail.thank you in advance.
| DB operation, Is it very expensive? | CC BY-SA 2.5 | null | 2011-03-19T13:24:12.920 | 2011-03-19T13:40:38.800 | 2020-06-20T09:12:55.060 | -1 | 585,329 | [
"php",
"mysql"
]
|
5,362,715 | 1 | null | null | 1 | 49 | when i pressed the key it will effect the size of another td
```
<tr><td class="value">source </td><td class="text">
<input type="text" id="txt_sh_source" onKeyPress="src_record()" maxlength="3">
<input type="text" id="srcid" style="display:none;">
<div id="div_src" class="search_form" ></div>
```
and its css is
}
```
div.search_form
{
position:fixed;
background-color:white;
}td.value
{
background-color:#00628B;
color:#E6E6DC;
height:50;
}
```

| size of td in table also changed | CC BY-SA 2.5 | null | 2011-03-19T14:32:37.000 | 2011-03-19T17:12:02.770 | 2011-03-19T14:40:26.833 | 343,955 | 621,446 | [
"html",
"css"
]
|
5,362,817 | 1 | 5,362,848 | null | 3 | 1,075 | Just about every tree view and list item in Windows has an attractive light-blue with border selected item effect:

But when I create a simple tree view using WPF the default effect is far less pleasing:

What do I need to do to change my list view item selected effect to be consist with the effect in the top screenshot? Is there some standard / system way of creating this effect or do I need to create it myself using borders, fill effects (and of course the colour picker in MSPaint)
This is the xaml that I am currently using:
```
<TreeView Name="myTreeView" Margin="1">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type local:NodeType}" ItemsSource="{Binding Children}">
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Icon}" />
<TextBlock Text="{Binding DisplayName}" Margin="5, 0" />
</StackPanel>
</HierarchicalDataTemplate>
</TreeView.Resources>
</TreeView>
```
| Improving the default selected item style for WPF tree views | CC BY-SA 2.5 | null | 2011-03-19T14:52:51.260 | 2011-03-19T14:57:40.103 | null | null | 113,141 | [
"wpf",
"listview",
"selecteditem"
]
|
5,362,922 | 1 | 5,363,155 | null | 0 | 237 | I've created a database using the EF4 model-first approach. In my model, there's an N-to-M relationship between two entities:

I've filled my database with some dummy data, including 3 records of type `Diagnosis` and 3 records of type `TreatmentSchema` and associations between them. Here's the code snippet I used to do this:
```
using(var container = new SmartTherapyContainer()) {
var diagnosisA = new Diagnosis() { Id = Guid.NewGuid(), Name = "Diagnosis A" };
var diagnosisB = new Diagnosis() { Id = Guid.NewGuid(), Name = "Diagnosis B" };
var diagnosisC = new Diagnosis() { Id = Guid.NewGuid(), Name = "Diagnosis C" };
container.Diagnoses.AddObject(diagnosisA);
container.Diagnoses.AddObject(diagnosisB);
container.Diagnoses.AddObject(diagnosisC);
var schemaA = new TreatmentSchema() { Id = Guid.NewGuid(), Name = "Schema 1" };
var schemaB = new TreatmentSchema() { Id = Guid.NewGuid(), Name = "Schema 1" };
var schemaC = new TreatmentSchema() { Id = Guid.NewGuid(), Name = "Schema 1" };
container.Schemas.AddObject(diagnosisA);
container.Schemas.AddObject(diagnosisB);
container.Schemas.AddObject(diagnosisC);
diagnosisB.TreatmentSchemas.Add(schemaA);
diagnosisC.TreatmentSchemas.Add(schemaA);
diagnosisC.TreatmentSchemas.Add(schemaB);
diagnosisC.TreatmentSchemas.Add(schemaC);
container.SaveChanges();
}
```
I verified that the associations are indeed stored in the reference table created through EF4's mapping. However, when I retrieve a `Diagnosis` via the `container.Diagnoses` collection later, its `.TreatmentSchemas` collection is always empty.
I tried debugging into the EF4-generated code and all it does is lazily create said collection, but it doesn't fill it with the associated objects. Ayende's shows no queries being generated at all when the property is accessed, which leads me to believe that I'm doing something wrong here.
How can I get a list of the associated `TreatmentSchemas`?
| How do I correctly use EF4 Navigation Properties? | CC BY-SA 3.0 | null | 2011-03-19T15:11:03.260 | 2014-02-17T15:24:08.473 | 2014-02-17T15:24:08.473 | 759,866 | 133,183 | [
"database",
"entity-framework",
"entity-framework-4",
"associations",
"self-tracking-entities"
]
|
5,363,209 | 1 | null | null | 11 | 39,345 | I've been searching the net for some time now yet still haven't found any good solution to my problem. I want to make MS Chart to automatically rescale Y axis on scrolling to make sure that all data points are visible. The twist here is that I need to have the ability to exclude certain series from being used for auto scale. So far I only found solutions that offer to iterate through the entire point collection on AxisViewChanged event, which doesn't work well when you have large collections of points and a few series to iterate through. I was wondering if there was any way to narrow the search by obtaining data points that are between currently visible min and max X values. Any help would be appreciated.
Heres the image. As you can see the candlesticks in the middle aren't entirely visible.

| Chart Control Y axis auto-scale on scrolling | CC BY-SA 2.5 | 0 | 2011-03-19T16:13:16.277 | 2015-07-16T10:18:27.033 | 2011-03-19T16:54:15.883 | 407,914 | 407,914 | [
"c#",
"scale",
"mschart"
]
|
5,363,234 | 1 | 5,725,115 | null | 9 | 3,295 | In Webkit browsers, an input[type=number] has a spinbox control:
> 
However, Safari does not follow some other input[type=number] rules, like enforcing that only numeric characters are entered. Hence, Modernizr detects that Safari does not support input[type=number].
I have very particular needs for number-input width, and when there's a spinbox I make the width 2.7em and without it (like in Firefox), the width need only be 1.7em. So Chrome and Firefox both look fine. But Safari puts in a spinbox but doesn't follow any other rules, so it gets the 1.7em width and looks like this:
> 
I only care if there's a spinbox control. I don't care about any of the other input[type=number] rules that Safari is flouting. Safari is playing by the only rule I care about. How do I detect that?
| html5 input type number: detect whether spinbox or not (and no other features) | CC BY-SA 2.5 | 0 | 2011-03-19T16:18:05.430 | 2011-04-20T03:14:37.760 | 2017-02-08T14:31:48.057 | -1 | 249,801 | [
"javascript",
"jquery",
"html",
"detection",
"modernizr"
]
|
5,363,542 | 1 | 5,364,069 | null | 6 | 2,639 | what is the the best practice of solving circular dependency in `C++`?
I could use the forward declaration, but then I get the `pointer to incomplete class type is not allowed` error. Does that mean that two classes that uses each others pointer cannot be dependent?
Also, I thought about forward declaring each class and then including every header of the solution in the `main.cpp`, so it's all in one place. Would you recommend it?
A snippet from the whole project is below, so you can refer to it if the issue is better explained on an example I'm familiar with, but it would do just to be theoretical.
Thanks

| Complex circular dependency | CC BY-SA 2.5 | 0 | 2011-03-19T17:17:58.827 | 2011-03-19T18:42:18.763 | 2011-03-19T18:23:09.290 | 476,681 | 326,257 | [
"c++",
"oop",
"circular-dependency"
]
|
5,363,771 | 1 | 5,365,761 | null | 1 | 544 | when I have `<?php __('Écoutez votre grand-mère'); ?>` I have an output with question mark chars like: `�coutez votre grand-m�re`. Charset is set to utf-8 in my header. What's wrong ?

| Cakephp - "__" function give me question mark chars (�) | CC BY-SA 2.5 | 0 | 2011-03-19T17:56:52.283 | 2011-03-23T01:03:12.957 | 2011-03-21T04:31:21.337 | 449,071 | 449,071 | [
"eclipse",
"cakephp",
"utf-8",
"internationalization"
]
|
5,363,789 | 1 | 5,365,931 | null | 74 | 62,280 | I have the following layout, and I'm trying to add a padding to the left and right..
The controls are a disabled UIButton.

My code for creating a button is this:
```
UIButton *buttonTime = [[UIButton alloc] initWithFrame:CGRectMake(90, 10, 50, 20)];
[buttonTime setBackgroundImage:[[UIImage imageNamed:@"bubble.png"] stretchableImageWithLeftCapWidth:9 topCapHeight:13] forState:UIControlStateDisabled];
[buttonTime setTitle:@"27 feb, 2011 11:10 PM" forState:UIControlStateDisabled];
[buttonTime setTitleColor:[UIColor blackColor] forState:UIControlStateDisabled];
buttonTime.titleLabel.font=[UIFont fontWithName:@"Helvetica" size:8.0];
buttonTime.titleLabel.lineBreakMode= UILineBreakModeWordWrap;
[buttonTime setEnabled:FALSE];
[scrollView addSubview:buttonTime];
[buttonTime release];
```
| UIButton Text Margin / Padding | CC BY-SA 4.0 | 0 | 2011-03-19T17:59:29.217 | 2023-01-30T02:08:54.100 | 2019-10-25T23:08:33.353 | 1,265,393 | 249,071 | [
"iphone",
"uibutton",
"uikit",
"margin",
"padding"
]
|
5,363,808 | 1 | 5,363,825 | null | 0 | 233 | Hi I'd like to only be able to see a certain part of an image on my site, and I think if I rememer correctly I need to use javascript for this? Could anyone give me a code for this?
More specifically, this is the image:

I'd like to be only able to see the front of the head. The diagram for this image is:

Thanks. If this is not on the right website, it would be great if it could be moved.
| View only certain parts of an image | CC BY-SA 2.5 | null | 2011-03-19T18:02:34.483 | 2011-03-19T18:15:03.210 | null | null | 111,731 | [
"javascript",
"image",
"web"
]
|
5,363,997 | 1 | 5,364,047 | null | 1 | 1,401 | I have an imageView that is embedded inside of a scrollView so as to allow me to pinch and zoom the image in the imageView. I would like however to add an activity indicator to be spinning while the array of images is being loaded.
I put the indicator where I need it in IB, then hooked it up via an IBOutlet. It is spinning when the view loads, and stops at the correct time, the only problem is that it is behind the image and scroll views, not on top where I need it to be.
What can I do to change this and send the indicator to the front? I tried sending to back in IB as well as sending to front, neither have worked...

| How to make UIActivityIndicator show on top of UIImageView embedded in UIScrollView? | CC BY-SA 3.0 | null | 2011-03-19T18:31:44.100 | 2012-05-04T21:26:02.727 | 2012-05-04T21:26:02.727 | 15,168 | 647,565 | [
"iphone",
"layout",
"interface-builder",
"uiactivityindicatorview"
]
|
5,364,035 | 1 | 5,364,732 | null | 0 | 404 | I'm making a wrapper for a forum API, one function returns this, which is meant to provide enough information for you to set a cookie to log the user in with:
```
<?xml version="1.0" encoding="utf-8" ?>
<ApiResponse>
<ErrorCode>0</ErrorCode>
<ErrorDescription/>
<ResultData recordcount="1">
<Record>
<Username>Gullanian</Username>
<UserID>4</UserID>
<CookieName>WWF9sLID</CookieName>
<CookieKey>UID</CookieKey>
<CookieData>Gullanian-CD45-ZCB-D72Z-AAC6</CookieData>
<CookiePath>/scirranew/forum/</CookiePath>
<ForumPath>http://127.0.0.1/scirranew/Forum/</ForumPath>
</Record>
</ResultData>
</ApiResponse>
```
I've got as far as this:
```
public class WebWizCookie
{
public string Username { get; set; }
public int UserID { get; set; }
public string CookieName { get; set; }
public string CookieKey { get; set; }
public string CookieData { get; set; }
public string CookiePath { get; set; }
public string ForumPath { get; set; }
/// <summary>
/// Loads this cookie so user is logged in with this cookie data.
/// </summary>
public void LoadCookie(double MinutesExpiry)
{
HttpCookie Cookie = new HttpCookie(this.CookieName);
Cookie[this.CookieKey] = this.CookieData;
Cookie.Domain = this.CookiePath;
Cookie.Expires = DateTime.Now.AddMinutes(MinutesExpiry);
HttpContext.Current.Response.Cookies.Add(Cookie);
}
```
It's returning all the values fine, but I'm not being logged into the site when I call this function. Does anyone know if I'm doing anything wrong here? Forgetting to set something, or setting it incorrectly?
## Edit, printing out values
After setting the cookie, if I print out the values:
```
HttpContext.Current.Response.Write("Cookie[" + this.CookieKey + "] = " + this.CookieData + "<br />");
HttpContext.Current.Response.Write("Cookie.Domain = " + ConfigurationSettings.AppSettings["MasterDomainRoot"] + "<br />");
```
I get:
```
Cookie[UID] = Gullanian2-4B9B-9D5-27E2-A413
Cookie.Domain = http://localhost/ScirraNew
UID
```
And in google chrome the developer tools says there is a cookie:

| c# how do I turn this data into a cookie? | CC BY-SA 2.5 | null | 2011-03-19T18:36:55.740 | 2011-03-19T20:33:57.190 | 2011-03-19T18:52:19.277 | 356,635 | 356,635 | [
"c#",
"asp.net",
"api",
"cookies"
]
|
5,364,310 | 1 | 5,364,359 | null | 2 | 289 | 
In the above picture there is a 4 pixel padding after the word Contact and when not selected it looks like there is a 5 pixel padding between the divider and feedback and a 9 pixel padding between contact and the divider. How can I get rid of those 4 pixels after Contact?
Edit: Here's some code.
```
.vdivider {
width: 1px;
height: 10px;
border-left: 1px solid #666666;
margin: 0px 5px;
}
<div id="footer">
<a href="contact.php">Contact</a>
<span class="vdivider"></span>
<a href="feedback.php">Site Feedback</a>
</div>
```
| How to remove 4 pixel padding after a word? | CC BY-SA 2.5 | null | 2011-03-19T19:18:15.357 | 2011-03-19T19:56:44.567 | 2011-03-19T19:32:48.533 | 636,065 | 636,065 | [
"html",
"css",
"padding",
"spacing"
]
|
5,364,502 | 1 | null | null | 1 | 2,251 | As you can see in this screenshot, I'm having some issues with the margins/padding. For example, the top of the trend line is being covered up by top of chart area. Ditto with bottom. And there's not enough space between the data point areas.

See: [http://www.fusioncharts.com/flex/docs/charts/contents/ChartSS/ScrollArea2D.html#Anchor3](http://www.fusioncharts.com/flex/docs/charts/contents/ChartSS/ScrollArea2D.html#Anchor3)
Here's a snippet of my existing config:
```
xml += "xAxisName='Bets' yAxisName='Chips' canvasPadding='30' formatNumberScale='0' "
xml += "toolTipBorderColor='951818' numVisiblePlot='7' showLegend='0' scrollHeight='15' scrollBtnWidth='14' "
xml += "chartBottomMargin='5' chartTopMargin='3' chartLeftMargin='2' chartRightMargin='10' "
xml += "xAxisNamePadding='0' yAxisNamePadding='2' captionPadding='3'>"
xml += "yAxisValuesPadding='0'>"
```
I can paste the whole thing, if need be.
| Fusion Charts - controlling margins, padding, etc | CC BY-SA 2.5 | null | 2011-03-19T19:50:25.427 | 2011-03-22T18:03:02.330 | 2011-03-19T19:58:36.483 | 635,608 | 251,257 | [
"fusioncharts"
]
|
5,364,588 | 1 | 5,365,396 | null | 0 | 136 | As you can see in this screenshot, the way the tooltip displays it is cut off by the viewport. If I can force the tooltip to display upwards, as opposed to downwards, then it wouldn't but cut off.
Any ideas on how I can display this in a more user-friendly way?

| Prototype Tooltip - controlling "orientation" | CC BY-SA 2.5 | null | 2011-03-19T20:07:25.383 | 2011-03-19T22:36:15.710 | null | null | 251,257 | [
"ruby-on-rails",
"prototype",
"tooltip",
"viewport"
]
|
5,364,903 | 1 | 5,365,260 | null | 3 | 6,325 | I have written a simple app in winforms (.net 4.0) on win 7. Application looks how I want but when I tried it on windows xp everything looks different.
I have created a sample example to show how it looks on win 7 and xp.
What can I do to have the same look on both systems?
The problem is not only with the background and font color but with the controls too. Here I show how the numericupdown looks but with table layout I have problem too.


```
private void InitializeComponent()
{
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.groupBox1 = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
this.SuspendLayout();
//
// numericUpDown1
//
this.numericUpDown1.DecimalPlaces = 2;
this.numericUpDown1.Increment = new decimal(new int[] {
1,
0,
0,
131072});
this.numericUpDown1.Location = new System.Drawing.Point(21, 26);
this.numericUpDown1.Maximum = new decimal(new int[] {
1,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(54, 22);
this.numericUpDown1.TabIndex = 0;
//
// groupBox1
//
this.groupBox1.Location = new System.Drawing.Point(21, 82);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(226, 99);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "groupBox1";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ActiveCaption;
this.ClientSize = new System.Drawing.Size(407, 331);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.numericUpDown1);
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
this.ResumeLayout(false);
}
```
I have no modified the xp color themes.
I have the same result on two diffrent computers with win xp.
| winforms app written in win7 looks different on win xp. why? | CC BY-SA 3.0 | 0 | 2011-03-19T21:06:11.617 | 2017-03-08T15:56:26.673 | 2017-03-08T15:56:26.673 | 1,033,581 | 453,396 | [
"winforms",
"windows-7",
"windows-xp"
]
|
5,364,947 | 1 | 5,365,115 | null | 3 | 2,489 | I initially built an Android app and threw all of my images in the drawable-hdpi resource directory and now I'm going back and making the necessary changes/additions so that the app is supported on all screen sizes and densities.
How do I go about taking all of my images and making them 'less dense'? My first guess is to load them into Gimp or Photoshop and scale them down to a smaller resolution. Is this all I need to do?

| How do you prepare an image for a smaller density screen? | CC BY-SA 2.5 | 0 | 2011-03-19T21:13:58.013 | 2012-05-06T15:59:37.990 | 2012-05-06T15:59:37.990 | 1,140,748 | 487,840 | [
"android",
"image"
]
|
5,365,951 | 1 | 5,366,031 | null | 1 | 3,548 | I am working on a program which I want to draw diode curves in a WinForms application. I have a list of diode names and I have theire points as you can see at the right side of the picture. That is Voltage as X and Current as Y ( A curve contains like 50 points).
What I want to do is by selecting one or more diodes from the list theire curve show up on my plot. What you see is just a picture box at the moment filled with a bmp. I know that this is not a reliable solution, so I am asking you what can be the best approach to do such thing? I dont know any good component which can make me do this. So I just need to know what can be the best approuch for this task?

A diode curve is something like:

I might have up to 100 of diode curves in my program which all of them (single or multiple) should be drawn by clicking on them in the list.
So what you think?
I am drawing that axis you see using the code below:
```
Bitmap xyCords = new Bitmap(500, 500);
Graphics g = Graphics.FromImage(xyCords);
g.DrawLine(penAxis, 250, 0, 250, 500);
g.DrawLine(penAxis, 0, 250, 500, 250);
curveBox.Image = xyCords;
```
how is it possible later if I made a new Graphics I append it like:
```
curveBox.Image += newGraphic;
```
** Please let me know if there is any component or something which already can do what I want. or else show me a good approach! Thanks!
| draw multiple curves in WinForms picturebox | CC BY-SA 2.5 | null | 2011-03-20T00:37:46.233 | 2011-04-05T21:54:27.733 | 2011-03-20T01:44:27.440 | 658,031 | 658,031 | [
"c#",
"winforms",
"drawing",
"draw"
]
|
5,366,048 | 1 | 5,366,387 | null | 8 | 10,112 | I've got some non-ascii characters I'm trying to display in a Swing JComboBox. The characters aren't displaying correctly, I get lots of weird characters where the non-ascii characters should be:

```
import javax.swing.*;
public class Test {
public static void main(String[] args) {
String[] choices = new String[]{"Good's","Bad’s","தமிழ்"};
for (String s : choices) System.out.println(s);
JComboBox choiceBox = new JComboBox(choices);
JFrame frame = new JFrame("Test");
frame.setSize(400, 400);
frame.add(choiceBox);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
```
(Note the slightly different apostrophe in Bad’s, which is what started this whole thing.)
The `System.out.println` call displays the characters just fine in my terminal.
There are a bunch of questions on SO about this, and they suggest listing fonts from the GraphicsEnvironment and picking only ones that claim to display my characters. Unfortunately, this trick doesn't work for me.
```
Font font = new Font("Ariel", Font.PLAIN, 12);
for (String s : choices) assert font.canDisplayUpTo(s) < 0;
choiceBox.setFont(font);
```
The assert doesn't fail, but still displays garbled characters.
I'm on OSX 10.6.5, Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
| Swing not displaying unicode characters | CC BY-SA 2.5 | 0 | 2011-03-20T00:59:14.610 | 2013-02-19T10:02:45.943 | 2011-03-20T03:54:46.257 | 180,090 | 180,090 | [
"java",
"swing",
"fonts"
]
|
5,365,928 | 1 | null | null | 4 | 3,255 | first the background:
I have a singleton which does all my CoreData related stuff on it. It's getting called from multiple threads. For each thread I generate a new MOC using always the same StoreCoordinator. I have two fetchedResultsController which need to be updated as soon as the data changes on another thread. To merge the changes I call `addControllerContextDidSave:` like in the Books Demo App.
```
- (void)addControllerContextDidSave:(NSNotification*)saveNotification {
if (saveNotification) {
NSManagedObjectContext *fahrzeugeContext = [fetchedFahrzeuge managedObjectContext];
NSManagedObjectContext *accountContext = [fetchedAccount managedObjectContext];
// Merging changes causes the fetched results controller to update its results
@try {
if (fahrzeugeContext) [fahrzeugeContext mergeChangesFromContextDidSaveNotification:saveNotification];
if (accountContext) [accountContext mergeChangesFromContextDidSaveNotification:saveNotification];
}
@catch (NSException * e) {NSLog(@"Merge Notification Error: %@", e);}
}
}
```
In some really rare cases the App crashes with an `EXC_BAD_ACCESS` on line `mergeChangesFromContextDidSaveNotification:` saying the `saveNotification` has an `invalid Summary`. (even the try-catch block doesn't work)
It happens only on really, really rare situations (e.g. once a week) so I cannot test it properly.
What can cause that and more important how to fix it. Now I'm testing with `if (saveNotification) {}` but again it can take a while till it occur again.

.
EDIT: found an older device crash log:
```
Incident Identifier: 655DB451-81C1-41A6-942C-F54DD9F40FCC
CrashReporter Key: 2495494089df0a2b47c6283c14ad5f8e7895fbbe
Hardware Model: iPhone1,2
Process: MyApp [648]
Path: /var/mobile/Applications/43E12C67-7D7D-4F30-A7E3-D83DDE0FDCC1/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-02-25 13:33:30.232 +0100
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000004
Crashed Thread: 8
Thread 0:
0 libSystem.B.dylib 0x35d5b4a0 swtch_pri + 8
1 libSystem.B.dylib 0x35de59c8 sched_yield + 8
2 UIKit 0x35a60c18 -[UITableView(_UITableViewPrivate) _smoothScroll:] + 20
3 UIKit 0x35a4a4a0 ScrollerHeartbeatCallback + 100
4 GraphicsServices 0x33e79a3c HeartbeatVBLCallback + 152
5 IOMobileFramebuffer 0x3027d864 IOMobileFramebufferVsyncNotifyFunc + 124
6 IOKit 0x307dc884 IODispatchCalloutFromCFMessage + 292
7 CoreFoundation 0x37537e30 __CFMachPortPerform + 212
8 CoreFoundation 0x3752f5c4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 22
9 CoreFoundation 0x3752f582 __CFRunLoopDoSource1 + 158
10 CoreFoundation 0x3752182e __CFRunLoopRun + 574
11 CoreFoundation 0x37521504 CFRunLoopRunSpecific + 220
12 CoreFoundation 0x37521412 CFRunLoopRunInMode + 54
13 GraphicsServices 0x33e76d1c GSEventRunModal + 188
14 UIKit 0x3591d574 -[UIApplication _run] + 580
15 UIKit 0x3591a550 UIApplicationMain + 964
16 MyApp 0x000177ae 0x1000 + 92078
17 MyApp 0x00002f68 0x1000 + 8040
Thread 1:
0 libSystem.B.dylib 0x35d8f974 kevent + 24
1 libSystem.B.dylib 0x35e5e2fc _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x35e5dd68 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x35e5d788 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x35de6970 _pthread_wqthread + 392
5 libSystem.B.dylib 0x35ddd2fc start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x35d5b3b0 mach_msg_trap + 20
1 libSystem.B.dylib 0x35d5d894 mach_msg + 60
2 CoreFoundation 0x37521f7c __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x37521780 __CFRunLoopRun + 400
4 CoreFoundation 0x37521504 CFRunLoopRunSpecific + 220
5 CoreFoundation 0x37521412 CFRunLoopRunInMode + 54
6 WebCore 0x3318bd14 RunWebThread(void*) + 524
7 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
8 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 3:
0 libSystem.B.dylib 0x35d5b3b0 mach_msg_trap + 20
1 libSystem.B.dylib 0x35d5d894 mach_msg + 60
2 CoreFoundation 0x37521f7c __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x37521780 __CFRunLoopRun + 400
4 CoreFoundation 0x37521504 CFRunLoopRunSpecific + 220
5 CoreFoundation 0x37521412 CFRunLoopRunInMode + 54
6 Foundation 0x3517ec4e +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 210
7 Foundation 0x3515cb8a -[NSThread main] + 42
8 Foundation 0x35155b90 __NSThread__main__ + 908
9 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
10 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x35d848d8 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x3755aa34 __CFSocketManager + 356
2 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
3 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 5:
0 libSystem.B.dylib 0x35de72fc __workq_kernreturn + 8
1 libSystem.B.dylib 0x35de6b50 _pthread_wqthread + 872
2 libSystem.B.dylib 0x35ddd2fc start_wqthread + 0
Thread 6:
0 libSystem.B.dylib 0x35d5b3b0 mach_msg_trap + 20
1 libSystem.B.dylib 0x35d5d894 mach_msg + 60
2 CoreFoundation 0x37521f7c __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x37521780 __CFRunLoopRun + 400
4 CoreFoundation 0x37521504 CFRunLoopRunSpecific + 220
5 CoreFoundation 0x37521412 CFRunLoopRunInMode + 54
6 MapKit 0x3627ec44 TileCachePrivate::runCacheThread() + 412
7 MapKit 0x3627ea98 _runCacheThread(void*) + 4
8 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
9 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 7:
0 libSystem.B.dylib 0x35de454c __semwait_signal + 24
1 libSystem.B.dylib 0x35d90f70 _pthread_cond_wait + 1140
2 libSystem.B.dylib 0x35d90910 pthread_cond_wait + 48
3 QuartzCore 0x33dd01fc CA::DispatchGroup::thread(void*) + 128
4 QuartzCore 0x33d86e30 thread_fun + 20
5 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
6 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 8 Crashed:
0 CoreFoundation 0x374ffa7c ___CFBasicHashFindBucket_Linear + 120
1 CoreFoundation 0x374ff948 CFBasicHashAddValue + 352
2 CoreFoundation 0x3750410a CFSetAddValue + 90
3 CoreFoundation 0x3752be2a -[__NSCFSet addObject:] + 34
4 CoreData 0x34994b72 -[NSManagedObjectContext refreshObject:mergeChanges:] + 166
5 CoreData 0x349b3288 -[NSManagedObjectContext mergeChangesFromContextDidSaveNotification:] + 1800
6 MyApp 0x0001aa18 0x1000 + 104984
7 Foundation 0x351663ae _nsnote_callback + 150
8 CoreFoundation 0x3752096a __CFXNotificationPost_old + 390
9 CoreFoundation 0x3752060a _CFXNotificationPostNotification + 122
10 Foundation 0x3515569c -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
11 CoreData 0x349a0a68 -[NSManagedObjectContext(_NSInternalAdditions) _didSaveChanges] + 1772
12 CoreData 0x3499b87a -[NSManagedObjectContext save:] + 462
13 MyApp 0x00018e26 0x1000 + 97830
14 MyApp 0x0001a372 0x1000 + 103282
15 MyApp 0x00005344 0x1000 + 17220
16 Foundation 0x3515cb8a -[NSThread main] + 42
17 Foundation 0x35155b90 __NSThread__main__ + 908
18 libSystem.B.dylib 0x35de5b44 _pthread_start + 364
19 libSystem.B.dylib 0x35dd77a4 thread_start + 0
Thread 8 crashed with ARM Thread State:
r0: 0x00000001 r1: 0x0018be57 r2: 0x0020fdc8 r3: 0x00000001
r4: 0x00000002 r5: 0x001cde10 r6: 0x00000007 r7: 0x2ff780b8
r8: 0x00000001 r9: 0x2ff780e0 r10: 0x001ce3e0 r11: 0x00000000
ip: 0x3752be09 sp: 0x2ff78074 lr: 0x374ffa50 pc: 0x374ffa7c
cpsr: 0x20000010
Binary Images:
0x1000 - 0x40fff +MyApp armv6 <1515b6768d3049d6eef946a5e74e95ed> /var/mobile/Applications/43E12C67-7D7D-4F30-A7E3-D83DDE0FDCC1/GPS-Explorer.app/GPS-Explorer
0xe3000 - 0xe4fff dns.so armv6 <88b569311cca4a9593b2d670051860d1> /usr/lib/info/dns.so
0x2fe00000 - 0x2fe29fff dyld armv6 <617f6daf4103547c47a8407a2e0b90de> /usr/lib/dyld
0x30270000 - 0x3027bfff ITSync armv6 <a451205e89373cbdf0832688085e8f72> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x3027c000 - 0x3027efff IOMobileFramebuffer armv6 <f42bbbf67195a7b98d67ad021bba4784> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x3027f000 - 0x3038dfff CFNetwork armv6 <d6eeee83216ee9c553134f069f37cbc2> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x303ef000 - 0x303f4fff CaptiveNetwork armv6 <f41df4b358b77b29ff85e0eaea88ee1d> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x303f5000 - 0x30444fff Security armv6 <cf625b4dc7ea928891313444ef64a7cb> /System/Library/Frameworks/Security.framework/Security
0x30445000 - 0x3055cfff libicucore.A.dylib armv6 <8968ff3f62d7780bb1bd75026a7628d0> /usr/lib/libicucore.A.dylib
0x3055d000 - 0x30561fff ApplePushService armv6 <0560b630d26e261e205fc58942e1885c> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x3059d000 - 0x305a8fff MobileWiFi armv6 <c7532e63e083a1dd2a0ef7352b85749d> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x305aa000 - 0x30612fff libvDSP.dylib armv6 <9d264733fc675943c082bd3b9b567b59> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x30613000 - 0x3064dfff MobileCoreServices armv6 <beb473ce80390554bb4af21554522286> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x3065c000 - 0x3066efff libbsm.0.dylib armv6 <51e7bb18da9afa44a33e54e42fbd0707> /usr/lib/libbsm.0.dylib
0x3066f000 - 0x306c6fff CoreMedia armv6 <cd5e9398c161f129146931e888e1c92e> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x306f0000 - 0x306fefff libz.1.dylib armv6 <84592e96bae1a661374b0f9a5d03a3a0> /usr/lib/libz.1.dylib
0x306ff000 - 0x30729fff PrintKit armv6 <74f9710fa01a33b5bb04c4aeabd6be7d> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x307d7000 - 0x3082afff IOKit armv6 <20da5e822f21a8d0a7c5b3e149330efd> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x30831000 - 0x3083bfff AccountSettings armv6 <eca67ab04f724e1fa7c6406c88e75433> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x30999000 - 0x309c5fff DataAccess armv6 <8c045822d57a369835f5b40653a48838> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x309c6000 - 0x309f4fff MIME armv6 <fac8f55c508ff476e07894af7abdb761> /System/Library/PrivateFrameworks/MIME.framework/MIME
0x30a04000 - 0x30aa3fff ProofReader armv6 <2734920b62f174c17aeeb15f371615ef> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x30ad6000 - 0x30b1afff AddressBook armv6 <1f30c3370dad27331a491ba4b190813c> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x30b3d000 - 0x30b9cfff CoreAudio armv6 <ccc4bace0d6eca79a32ed84d566f72e9> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x30ba6000 - 0x32ce3fff TextInput armv6 <3fa14e6e5749e0230becd6ea34a8da7a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput
0x32d7d000 - 0x32d89fff libkxld.dylib armv6 <f74f359de7bbe3ccdc37fa6f332aebf4> /usr/lib/system/libkxld.dylib
0x32d95000 - 0x32e5cfff libobjc.A.dylib armv6 <429841269f8bcecd4ba3264a8725dad6> /usr/lib/libobjc.A.dylib
0x32e5d000 - 0x32ecdfff libsqlite3.dylib armv6 <87b9bb47687902d9120d03d1da9eb9fc> /usr/lib/libsqlite3.dylib
0x32f0c000 - 0x32f1ffff libmis.dylib armv6 <dba9c086b49bd9540930ff27211570d6> /usr/lib/libmis.dylib
0x33055000 - 0x33061fff SpringBoardServices armv6 <fd0c472436b3306f5b56118c93c8a423> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x33062000 - 0x3306ffff MobileBluetooth armv6 <2b68516e1321011a4efbee2947d463c6> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x33070000 - 0x338bffff WebCore armv6 <aa3b6827f051da7a3494c9bee4ebe290> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x338c0000 - 0x338d4fff MobileDeviceLink armv6 <19d66078f8cf19be558713c13612c7a3> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x338d5000 - 0x33a1dfff libmecabra.dylib armv6 <fc962eeb4e6cfe4ad5ebee6fb4b1d5c1> /usr/lib/libmecabra.dylib
0x33a21000 - 0x33a6afff CoreLocation armv6 <a69399375024b2bfae8bb96e845f4fd0> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x33a6b000 - 0x33ab3fff iCalendar armv6 <fbb717874ea0ede24454a5def644ab69> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x33ab4000 - 0x33ab4fff Accelerate armv6 <cdde24a7ad004b2b2e600cd4f3ac5eb7> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x33b32000 - 0x33b72fff QuickLook armv6 <54400e0d48ec86c84e937e55790b9e54> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x33bbc000 - 0x33c0afff CoreText armv6 <16c9582fdffb598178287c6ce9fd6897> /System/Library/Frameworks/CoreText.framework/CoreText
0x33c16000 - 0x33d73fff libGLProgrammability.dylib armv6 <aec6b54ffd532bb607aab4acbab679b6> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x33d76000 - 0x33d79fff ActorKit armv6 <d3ec50b4a7f0257ef31baf37936dc275> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x33d85000 - 0x33e71fff QuartzCore armv6 <77cd91ff21fe6c58c309f2c82eb95ca5> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x33e72000 - 0x33e81fff GraphicsServices armv6 <af20aba0ec96e7b7c42bb55ac763c784> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x33ead000 - 0x33f6efff ImageIO armv6 <0c1b6f466667ff345f2399d8142a9d10> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x33f78000 - 0x33f79fff CoreSurface armv6 <5e290514380c626e9b0f9f9985b9dc7a> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x340ac000 - 0x340bffff Notes armv6 <acf9e548948ecb299270c8398ef297a1> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x34137000 - 0x34156fff EAP8021X armv6 <fa56845b5396c3ebb368c2368331643c> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x341ad000 - 0x341ebfff ContentIndex armv6 <7f3334380acc72292571803f0b490189> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x343a0000 - 0x343bffff Bom armv6 <f41bef81e23e2bff59155e5ce46762d3> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x343c0000 - 0x344bdfff JavaScriptCore armv6 <3547c92c1efc0522b087e7f10eba7728> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x344be000 - 0x34500fff ManagedConfiguration armv6 <397723a33c19c3487d304d69580acbfc> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x34954000 - 0x34a5cfff CoreData armv6 <6e3af4b4648ae695f8d4bc0bf5a9dba5> /System/Library/Frameworks/CoreData.framework/CoreData
0x34a6e000 - 0x34a72fff CertUI armv6 <57c499baf9d343a78fe1b43f0f3ef997> /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x34b52000 - 0x34f1ffff libLAPACK.dylib armv6 <0eb734c91165416224b98c943ff6476b> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x34f20000 - 0x35014fff libiconv.2.dylib armv6 <01916d6784f4de8f3746978faae9c5fa> /usr/lib/libiconv.2.dylib
0x35015000 - 0x35022fff CoreVideo armv6 <7b100fd5fdf98db1cd0f0649e7f6f316> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x35023000 - 0x3507dfff MessageUI armv6 <21bb9d93911f7015b79aef9dc6df55ef> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x35087000 - 0x35148fff AddressBookUI armv6 <fea72732451610277e22a667d35ad76d> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x35151000 - 0x35272fff Foundation armv6 <6bdeb19a1fcb93e2930dadb50416f881> /System/Library/Frameworks/Foundation.framework/Foundation
0x3529b000 - 0x352a6fff libbz2.1.0.dylib armv6 <6aa8a4ed0906a495d059ace9125f525d> /usr/lib/libbz2.1.0.dylib
0x352dc000 - 0x35342fff libBLAS.dylib armv6 <11a3677a08175a30df1b3d66d7e0951a> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x35348000 - 0x353b0fff GMM armv6 <adcdfedd491ac237b385b6c2d7f684e3> /System/Library/PrivateFrameworks/GMM.framework/GMM
0x35406000 - 0x35406fff vecLib armv6 <8f914b3e8a581d49fb21d2c0ff75be03> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x35407000 - 0x3540afff MobileInstallation armv6 <456ed7fe6dd9fcd8e78df425085b1452> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x35541000 - 0x35547fff MBX2D armv6 <fad4955cab36e0179df6f8f27d365b8f> /System/Library/PrivateFrameworks/MBX2D.framework/MBX2D
0x35758000 - 0x35778fff AppleAccount armv6 <0ef3f6564414f3ef030031ae25b28bbd> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x35779000 - 0x3577bfff TextInput_de armv6 <e51cb663d64b8ced7dccfdbd3ad04591> /System/Library/TextInput/TextInput_de.bundle/TextInput_de
0x35815000 - 0x3581afff AssetsLibraryServices armv6 <224b3cf992a01814f91481244e3213eb> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x3581b000 - 0x35877fff libGLImage.dylib armv6 <7c1049f20c4e64591c09d3ac00c7d3ab> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x358bc000 - 0x358c3fff liblockdown.dylib armv6 <f470dea180ddf23886df75eb256d3888> /usr/lib/liblockdown.dylib
0x358cc000 - 0x358cffff libgcc_s.1.dylib armv6 <bed95ed187350ce27d22ed241ef892ea> /usr/lib/libgcc_s.1.dylib
0x358d3000 - 0x35d4ffff UIKit armv6 <14ec6c926b8bda71b73136f6e1a6ac1b> /System/Library/Frameworks/UIKit.framework/UIKit
0x35d5a000 - 0x35e98fff libSystem.B.dylib armv6 <70571c1e697e2ae7f7a9b1a499453bb6> /usr/lib/libSystem.B.dylib
0x35f7e000 - 0x35fc2fff VideoToolbox armv6 <101dbbcd34cc3231a8be3fd6392556aa> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x35fdb000 - 0x36162fff CoreGraphics armv6 <9a1d72fa9549d83abc1e735ba37a4dc2> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x36167000 - 0x36178fff DataAccessExpress armv6 <c112bd2791eb706526db25407ec117d4> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x36179000 - 0x36255fff WebKit armv6 <83da207070be989ba81dba3a83d5206a> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x36269000 - 0x36278fff OpenGLES armv6 <37eda5ddcff210dd321157da35a87a5e> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x36279000 - 0x36362fff MapKit armv6 <d28b96a0107a7822fda677ed28901c0c> /System/Library/Frameworks/MapKit.framework/MapKit
0x363f3000 - 0x363f9fff MobileKeyBag armv6 <2d83bf6a43bab972d77a1a6e0f3b03d2> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x363fa000 - 0x36483fff Message armv6 <9ed4944d998f99e69ba81afdda659bee> /System/Library/PrivateFrameworks/Message.framework/Message
0x36500000 - 0x36508fff ProtocolBuffer armv6 <8ed6e560e85eecfaf625219a8247aea4> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x365db000 - 0x365f9fff libresolv.9.dylib armv6 <9c94634beea733e754dc115737b6e63c> /usr/lib/libresolv.9.dylib
0x36746000 - 0x3683cfff libxml2.2.dylib armv6 <9c44d05cc67f1ebabd795903e581724e> /usr/lib/libxml2.2.dylib
0x3683e000 - 0x36888fff libCGFreetype.A.dylib armv6 <cfc94cfa17958f2f94c9eff208a7dace> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x36889000 - 0x368b4fff MobileSync armv6 <b42cf746d993e6765d432edf47987835> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x368b5000 - 0x3692dfff EventKit armv6 <c1fb82d645d3bf1f2e0558cc884712e9> /System/Library/Frameworks/EventKit.framework/EventKit
0x3694c000 - 0x3694ffff libAccessibility.dylib armv6 <74e0f77cc276a9412be268c795fdcbca> /usr/lib/libAccessibility.dylib
0x36955000 - 0x36a1ffff Celestial armv6 <11172a6ee53bdf067548cd4496bc5fe0> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x36a20000 - 0x36a2cfff WebBookmarks armv6 <5d1eb10d851d0362e304d9d95f016df1> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x36a2d000 - 0x36a30fff CrashReporterSupport armv6 <00bc60f690e6328b64e7a7b718edf45a> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x36a31000 - 0x36a74fff CoreTelephony armv6 <cabbce0fa7630065dc7e7d3ca3bc616c> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x36c1c000 - 0x36c26fff AggregateDictionary armv6 <f7429444c955e4f13c6761d20032ab52> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x36c2b000 - 0x36de1fff AudioToolbox armv6 <bb65e8ed531fe5923eb8ac00a7c0d87d> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x36de2000 - 0x36e16fff AppSupport armv6 <783e14db9585fd063c0c2a755cd121b6> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x36e17000 - 0x36e2dfff PersistentConnection armv6 <006723906b8ac250c1681a1821fbe94d> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x36e2e000 - 0x37140fff GeoServices armv6 <570238d025d41838cc888a0b3f28f4b2> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x37141000 - 0x37184fff SystemConfiguration armv6 <207f362e707871e74a292cfd1ea7893d> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x372aa000 - 0x37477fff MediaToolbox armv6 <21ceabd0e5de17ad4e883c85fcd34d51> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x37478000 - 0x3747dfff IOSurface armv6 <ffd66ca04dfe7d382d6961f0df3839ff> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x3748d000 - 0x374f8fff libstdc++.6.dylib armv6 <eccd1d7183e73587b2c0aa5755a19c39> /usr/lib/libstdc++.6.dylib
0x374f9000 - 0x375e4fff CoreFoundation armv6 <ab0eac0ddd5b4ae1bf8541116e3c0bd1> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x3760a000 - 0x3760bfff DataMigration armv6 <d2de7c0db77278484236669c2cdccabb> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x37731000 - 0x37736fff libGFXShared.dylib armv6 <bd1c480607cc286288db1ca1aec64180> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x377f6000 - 0x37817fff libRIP.A.dylib armv6 <22c6da37f3adf325f99c3a0494e04c02> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x37992000 - 0x37999fff libMobileGestalt.dylib armv6 <de9b417e7278742e90b30b1ad45f31fa> /usr/lib/libMobileGestalt.dylib
```
| CoreData crash on mergeChangesFromContextDidSaveNotification: invalid Summary | CC BY-SA 2.5 | 0 | 2011-03-20T00:32:18.917 | 2011-04-01T11:16:29.877 | 2011-03-22T08:41:05.013 | null | null | [
"objective-c",
"core-data",
"notifications",
"save",
"exc-bad-access"
]
|
5,366,308 | 1 | null | null | -1 | 1,956 | Basically, I want a 'If image.contains(image2)...' sort of thing. For example if image 1:

is found to contain in image 2:

Then it will return it's x/y co-ordinate, is this possible in VB.Net?
| VB.Net Image Recognition | CC BY-SA 2.5 | null | 2011-03-20T02:06:40.897 | 2013-09-10T17:38:51.053 | 2013-09-10T17:38:51.053 | 881,229 | 577,478 | [
"vb.net",
"image-recognition"
]
|
5,366,504 | 1 | 5,373,555 | null | 1 | 735 | My ORM (LightSpeed) generates this for Animals table, with Name and Age. Using MVC3 and Razor
```
[Serializable]
[System.CodeDom.Compiler.GeneratedCode("LightSpeedModelGenerator", "1.0.0.0")]
[System.ComponentModel.DataObject]
[Table(IdColumnName="AnimalID", IdentityMethod=IdentityMethod.IdentityColumn)]
public partial class Animal : Entity<int>
{
[ValidatePresence]
[ValidateLength(0, 50)]
private string _name;
[ValidateComparison(ComparisonOperator.GreaterThan, 0)]
private int _age;
public const string NameField = "Name";
public const string AgeField = "Age";
[System.Diagnostics.DebuggerNonUserCode]
[Required] // ****I put this in manually to get Name required working
public string Name
{
get { return Get(ref _name, "Name"); }
set { Set(ref _name, value, "Name"); }
}
[System.Diagnostics.DebuggerNonUserCode]
public int Age
{
get { return Get(ref _age, "Age"); }
set { Set(ref _age, value, "Age"); }
}
```
With [Required] attribute added:

With no [Required] attribute added: (notice LightSpeed strange rendering of validation)

With name filled in:

In images above - the validation at the top is LightSpeed (put into ValidationSummary) and at the side is MVC3 (put into ValidationMessageFor)
Am only using Server Side validation currently.
How do I get LightSpeed validation working well in MVC3?
I think it is something in this area [http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/](http://www.mindscapehq.com/staff/jeremy/index.php/2009/03/aspnet-mvc-part4/)
For the server side validation - you will want to use a custom model binder which emits the errors from LightSpeed validation more precisely rather than the leveraging the DefaultModelBinder behavior. Have a look at either directly using or adapting the EntityModelBinder from the community code library for Mvc
[http://www.mindscapehq.com/forums/Thread.aspx?PostID=12051](http://www.mindscapehq.com/forums/Thread.aspx?PostID=12051)
| MVC3 Validation with Lightspeed | CC BY-SA 2.5 | null | 2011-03-20T03:03:01.727 | 2011-04-04T21:27:42.970 | null | null | 26,086 | [
"validation",
"asp.net-mvc-3",
"lightspeed"
]
|
5,366,594 | 1 | 5,366,601 | null | 0 | 612 | Picture 1: UIWebView is under View

Picture 2: UIWebView is at the same level as View

What is the difference between these two arrangement?
| Xcode 4/Interface builder layout question: What is the difference between the two? | CC BY-SA 2.5 | null | 2011-03-20T03:31:51.853 | 2011-03-20T03:35:27.223 | null | null | 58,129 | [
"ios",
"interface-builder",
"xcode4"
]
|
5,366,631 | 1 | 5,526,282 | null | 0 | 1,688 | First of all, have a look at this example of the layout I'm trying to achieve (below)

Basically, I have a standard center div (gray) with the typical `margin: 0 auto`. My problem is that I have a background image (on the white overflow area) that is `<div id="stripes">` with the following CSS
```
background: url(foo) top center repeat;
position: fixed;
width: 100%;
height: 100%;
```
This background is applied BELOW the `HTML` level of the document to the `#stripes` div.
What I'm having trouble with is setting up the red div below. The plan is for it to stay visible at all times via `position: fixed` however, I can't use % based `right: xx%; top: 0` because the pattern must line up with the striped pattern, so a few pixels offset will create a visible and obvious "seam" on the page.
Here is a look at the effect with the stripes included:

| CSS: Possible to do position:fixed offset center div? | CC BY-SA 2.5 | null | 2011-03-20T03:44:33.593 | 2011-04-02T22:20:56.113 | null | null | 187,750 | [
"css",
"debugging",
"positioning"
]
|
5,366,877 | 1 | null | null | 1 | 182 | The image below is of a database I am learning to make from a tutorial. The author of the tutorial, as you can see from the arrow connecting the two tables, is trying to explain the relational nature of them. He added the `subject_id` to the pages table so that, whenever we're talking about a page, we know which subject it is a part of. Subject is the parent, page is the child.
My question is, is there something special about this syntax `subject_id` that allows that relationship to be made. For example, the name of the subjects table is plural `subjects`, so I don't see how subject_id makes a connection from `pages` to `subjects`. Could subject_id have been named anything, and, if so, then how does the database know the relationship has been made?

| MySQL Database, subject id | CC BY-SA 2.5 | null | 2011-03-20T05:09:12.653 | 2011-03-20T05:13:51.003 | null | null | 577,455 | [
"mysql"
]
|
5,366,851 | 1 | null | null | 1 | 1,253 | I hope this problem would not waste your time.
I use Adobe Coldfusion 9 to create CFC to to interact with database. Generally, CFC can be generate WSDL by itself. for example:
```
http://localhost/services/employeeService.cfc?wsdl
```
The WSDL was generated well. But the problem has been found when I tried to use Adobe Flash Builder 4's Data service to generate service class to connect ColdFusion's WSDL.
If you tried to invoked the remote function that return primitive data type as int or String, it works correctly.
```
remote numeric function count() {
return ormExecuteQuery("select Count(*) from employee")[1];
}
```

But complex data type such as, return custom class returned with no data in the field.
```
remote fp_sandbox.cfc.employee function get(required numeric id ) {
return EntityLoad("employee", arguments.id, true);
}
```

For array, if the remote function specified as ColdFusion's Array, it will return an array but with no data in object's property:
```
remote Array function list() {
return entityLoad("employee", {}, "idEmployee asc");
}
```

and if the return type is ORM genarated code, it will throw the exception. It looks like ColdFusion try to cast something.
```
remote fp_sandbox.cfc.employee[] function search(string q ) {
// query creating.
return ormExecuteQuery(hqlString, false, params);
}
```
StackTrace:
> InvocationTargetException:There was an error while invoking the
operation. Check your operation inputs and try invoking the operation
again.
Response Received:
> soapenv:Server.userException
coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassCastException : java.util.ArrayList]
coldfusion.xml.rpc.CFCInvocationException:
[java.lang.ClassCastException : java.util.ArrayList] at
coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
at
coldfusion.xml.rpc.CFComponentSkeleton.__cast(CFComponentSkeleton.java:409)
at
fp_sandbox.services.EmployeeService.search(D:\home\cashr.com\wwwroot\fp_sandbox\services\employeeService.cfc)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at coldfusion.xml.rpc.CFCProvider.invoke(CFCProvider.java:54) at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at coldfusion.xml.rpc.CFCServlet.doAxisPost(CFCServlet.java:270) at
coldfusion.filter.AxisFilter.invoke(AxisFilter.java:43) at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87) at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at
coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138) at
coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:289) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at
coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at
coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at
com.seefusion.Filter.doFilter(Filter.java:49) at
com.seefusion.SeeFusion.doFilter(SeeFusion.java:1500) at
jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at
jrun.servlet.FilterChain.service(FilterChain.java:101) at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ntcps1
Could you give me any suggestion to solve or workaround this problem?
| How to solve ClassCastException for java.util.ArrayList via WSDL of ColdFusion 9's CFC? | CC BY-SA 3.0 | null | 2011-03-20T04:53:41.177 | 2012-11-29T22:41:54.483 | 2012-11-29T22:41:54.483 | 1,410,998 | 95,974 | [
"apache-flex",
"wsdl",
"flash-builder",
"coldfusion-9",
"cfc"
]
|
5,367,014 | 1 | 5,367,021 | null | 2 | 648 | I think the screenshot is worth a couple of paragraphs

The best way I can think of doing it is to check for the length of the string and depending give/take `\t`, but it just seems inelegant. Is there a simpler/better way?
| How to align text appended to a JScrollPane | CC BY-SA 2.5 | null | 2011-03-20T05:51:51.397 | 2011-03-20T06:20:24.040 | null | null | 287,893 | [
"java",
"user-interface",
"swing",
"jscrollpane",
"text-alignment"
]
|
5,367,180 | 1 | 5,370,192 | null | 1 | 872 | can someone help to configure JXTA
??

I'm not understanding what type of uri to place as the rendez vous
| JXTA Configuration | CC BY-SA 2.5 | null | 2011-03-20T06:56:29.710 | 2011-09-10T20:06:54.063 | 2011-09-10T20:06:54.063 | 520,957 | 484,290 | [
"configuration",
"p2p",
"jxta"
]
|
5,367,718 | 1 | null | null | 0 | 1,181 | In the AutoCompleteBox I choose "AAAA" witch is the name of the first person in my Persons collection.
After that I press the button that change the first person's name to "Jeniffer".
The code is working fine but the AutocompleteBox selected item doesn't seem to be refreshed.
How can I make the selected item refresh after changing the name ?

XAML:
```
<Grid Background="LightBlue" >
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Controls:AutoCompleteBox x:Name="autoCompleteBox" Populating="autoCompleteBox_Populating" Height="30">
</Controls:AutoCompleteBox>
<Button Grid.Row="1" Click="Button_Click">Change first person Name</Button>
</Grid>
```
CodeBehind:
```
public partial class Window1 : Window {
public delegate void SearchResults(IEnumerable results);
public ObservableCollection<Person> Persons { get; set; }
public Window1() {
Persons = new ObservableCollection<Person> {
new Person {Name = "AAAA"},
new Person {Name = "BBBB"},
new Person {Name = "CCCC"},
};
InitializeComponent();
}
private void autoCompleteBox_Populating(object sender, PopulatingEventArgs e) {
e.Cancel = true;
Search(autoCompleteBox.SearchText, delegate(IEnumerable results) {
autoCompleteBox.ItemsSource = results;
autoCompleteBox.PopulateComplete();
});
}
private void Search(string phrase, SearchResults resultsDelegate) {
var results = new ObservableCollection<Person>();
foreach (var person in Persons) {
if (person.Name.ToLower().Contains(phrase.ToLower())) {
results.Add(person);
}
}
resultsDelegate(results);
}
private void Button_Click(object sender, RoutedEventArgs e) {
Persons.FirstOrDefault(p => p.Name == "Aaaaa").Name = "Jennifer";
}
}
public class Person {
public string Name { get; set; }
public override string ToString() {
return Name;
}
}
```
| WPF tool kit AutoCompleteBox doesn't refresh its data | CC BY-SA 2.5 | null | 2011-03-20T09:39:54.537 | 2011-03-20T18:54:45.260 | 2011-03-20T10:04:46.903 | 138,627 | 138,627 | [
"wpf",
"binding",
"wpftoolkit"
]
|
5,368,188 | 1 | 5,372,963 | null | 12 | 13,079 | I'm working on a Sencha Touch application, and have a list of contacts. When a list item is tapped, an ActionSheet is displayed showing some basic functions (such as call, delete and ignore). Unfortunately, when the user taps and the ActionSheet is fired, the List item remains selected underneath the overlay (see the screenshot below):

Here's the function bound to the itemTap event:
```
itemTap: function(list, index)
{
// Deselect the selected record:
var currentRecord = list.getStore().getAt(index);
currentRecord.forename = currentRecord.get('forename');
currentRecord.surname = currentRecord.get('surname');
currentRecord.phoneNumber = currentRecord.get('phoneNumber');
currentRecord.shortFullName = currentRecord.forename + ' ' + currentRecord.surname[0];
list.getStore().deselect(index, true);
callButton.setText('Call ' + currentRecord.shortFullName + ' (' + currentRecord.phoneNumber + ')');
unfriendButton.setText('Remove ' + currentRecord.shortFullName + ' as friend');
friendActionSheet.show();
}
```
Unfortunately, `list.getStore().deselect(index, true)` returns the following error: `Object [object Object] has no method 'deselect'`
Any ideas on what I could be doing wrong, or how I can achieve this?
| Sencha Touch - deselect list item? | CC BY-SA 2.5 | 0 | 2011-03-20T11:29:19.043 | 2014-08-14T16:12:57.073 | null | null | 367,401 | [
"javascript",
"sencha-touch"
]
|
5,368,294 | 1 | 5,368,353 | null | 2 | 654 | I'm having translating the following logic into a MySQL CASE statement, I'm sure there is an elegant way to do it but I think I have been working on for way too long and confused my self!
The business rules:
- -
Individuals attend multiple programmes during one period, they can only have one of the following example attendance spans:

What I need to do is categorise each span into a category type i.e. Type 1 ... 9. but I'm having trouble building up a CASE statement that can mutually exclusively cover each span.
Has anyone done something like this before? If not could someone help with the logic behind it?
Thanks in advance!
| Translating complex logic to MySQL CASE statement | CC BY-SA 2.5 | null | 2011-03-20T11:50:49.600 | 2011-03-20T12:03:35.960 | null | null | null | [
"mysql",
"join",
"logic",
"case"
]
|
5,368,299 | 1 | 5,368,383 | null | 10 | 6,909 | I am just learning how to implement the Nested Set Model but still have confusion with a certain aspect of it involving items that may be part of multiple categories. Given the example below that was pulled from [HERE](http://articles.sitepoint.com/print/hierarchical-data-database) and mirrors many other examples I have come across...


How do you avoid duplication in the DB when you add Apples since they are multi-colored (i.e. Red, Yellow, Green)?
| Hierarchical Data - Nested Set Model: MySql | CC BY-SA 2.5 | 0 | 2011-03-20T11:51:30.863 | 2013-04-04T11:48:22.843 | 2011-03-20T12:02:27.280 | 527,298 | 527,298 | [
"mysql",
"database",
"database-design",
"relational-database",
"database-schema"
]
|
5,368,366 | 1 | null | null | 1 | 3,119 | In Opera when a text field is focused, the submit button gets an ugly black border.
You can see this in a screenshot.

In the bottom of the image the textarea is focused and submit button looks awful. How can I prevent this using CSS?
the CSS for the button is
```
.uiGreenButtonOuter {
border: 1px solid #234723;
cursor: pointer;
}
.uiGreenButtonInner {
margin: 0;
font-size: 11px;
display: block;
background: #3E7E3E;
padding: 4px 6px;
border-width: 1px;
border-style: solid;
border-color: #6AB76B #3A763B #3A763B;
color: white;
text-align: center;
text-shadow: 0 1px 0 #234723;
cursor: pointer;
}
.uiGreenButtonOuter:hover .uiGreenButtonInner {
text-decoration: none;
background: #4C9B4C;
}
.uiGreenButtonInner:focus{
outline: 0;
}
```
| CSS - Prevent Submit Button From Getting Focus | CC BY-SA 2.5 | null | 2011-03-20T12:06:39.090 | 2011-03-20T13:09:00.133 | 2011-03-20T12:17:29.177 | 587,800 | 587,800 | [
"css",
"focus",
"styling"
]
|
5,368,449 | 1 | null | null | 18 | 20,114 | I am trying to make a program which opens an image, scans it for circles/round shapes and returns the coordinates so that I can use the `cv.Circle` function to draw circles over the circle detected.
My question is: How do I get the coordinates/radii of the circles detected in an image using `cv.HoughCircles()` ?
Using [this](https://stackoverflow.com/questions/2933284/opencv-python-houghcircles-error) page, I found out how to detect the circles (which took me a lot of time to find out since I don't understand terms like threshold and the OpenCV documentation for Python is really poor, almost none). Unfortunately, on that page it didn't show how to extract the information of each circle detected from the `CvMat` created. How do I extract that information/is there some other way(eg. with `MemoryStorage()` ) ?
This is my code so far:
```
import cv, opencv
def main():
im = cv.LoadImageM("Proba.jpg")
gray = cv.CreateImage(cv.GetSize(im), 8, 1)
edges = cv.CreateImage(cv.GetSize(im), 8, 1)
cv.CvtColor(im, gray, cv.CV_BGR2GRAY)
cv.Canny(gray, edges, 50, 200, 3)
cv.Smooth(gray, gray, cv.CV_GAUSSIAN, 9, 9)
storage = cv.CreateMat(im.rows, 1, cv.CV_32FC3)
cv.HoughCircles(edges, storage, cv.CV_HOUGH_GRADIENT, 2, gray.height/4, 200, 100)
# Now, supposing it found circles, how do I extract the information?
print storage.r
if __name__ == '__main__':
main()
```
Also, what value do the last two parameters of `HoughCircles` need to have in order for me to detect really small circles (like 3mm on the screen) ?
Thank you all for your time and effort trying to help me!
The image I'm working with is this:
| Python and OpenCV. How do I detect all (filled)circles/round objects in an image? | CC BY-SA 3.0 | 0 | 2011-03-20T12:23:34.597 | 2016-10-23T11:46:37.393 | 2017-05-23T12:09:03.000 | -1 | 485,766 | [
"python",
"opencv",
"image-processing",
"geometry",
"detect"
]
|
5,368,548 | 1 | 5,368,734 | null | 3 | 2,846 | The question I have is more of mathematics! I have some pair of values that reperesent points of a curve that I want to draw on a picturebox using fromImage(Bitmap). My picture box is sized at 500x500. I also know that the top-left corner has point of (0,0) and bottom right corner has points of (500,500). Obviously the origin should be (250,250). Now I am wondering how can I convert my own values to this format?
A sample points that I have are like:
```
Voltage: -0.175 Current: -9.930625E-06
Voltage: -0.171875 Current: -9.53375E-06
Voltage: -0.16875 Current: -9.136875E-06
Voltage: -0.16875 Current: -8.74E-06
Voltage: -0.165625 Current: -8.343125E-06
Voltage: -0.1625 Current: -7.94625E-06
Voltage: -0.1625 Current: -7.549375E-06
Voltage: -0.159375 Current: -7.152188E-06
Voltage: -0.15625 Current: -6.755312E-06
```
You see there are Voltage values which should be on X axis and Current on Y axis. I know that to make them a bit better I have to multiply them in a bigger number and also maybe multiply by an inverse or something. but I still cant figure out how to represent them on my picturebox. These points are usually start from 3rd quadrant and end up in first quadrant. Please assist!
Just to add that my X axis min and max are -2V and +2V and for Y Axis I would have -10uA to +10uA (that is 10*10^-6)
What I am trying to do is have a curve like these, so those points I have are used in Graphics.DrawCurve:

This is how my code looks like:
```
g.DrawLine(penAxis, 250, 0, 250, 500); // Y AXIS
g.DrawLine(penAxis, 0, 250, 500, 250); // X AXIS
PointF[] p = new PointF[pinData.GetLength(0)]; //pinData is AboutBoxForm double[,] array
for (int i = 0; i < pinData.GetLength(0); i++)
{
p[i] = new PointF(250 * ((1 + (float)pinData[i, 0]) / 2), 250 * ((1 + (float)pinData[i, 1] )/ 10));
}
Pen pengraph = new Pen(pinColor, 2.0F);
g.DrawCurve(pengraph, p);
```
ok now using the code below my curve looks like:
```
g.DrawLine(penAxis, 250, 0, 250, 500); // Y AXIS
g.DrawLine(penAxis, 0, 250, 500, 250); // X AXIS
PointF[] p = new PointF[pinData.GetLength(0)]; //pinData is AboutBoxForm double[,] array
for (int i = 0; i < pinData.GetLength(0); i++)
{
p[i] = new PointF(250 * (1 - ((float)pinData[i, 1] *100000) / 10), 250 * (1 + (((float)pinData[i, 0]))/ 2));
}
Pen pengraph = new Pen(pinColor, 2.0F);
g.DrawCurve(pengraph, p);
```

I think now the problem is scaling it. I had to multiply by 10^6 but I did with ^5 no it is ok!!! Thanks all.
| convert cartesian coordinate to picturebox coordinates c# | CC BY-SA 2.5 | null | 2011-03-20T12:42:17.547 | 2011-03-20T13:57:53.933 | 2011-03-20T13:57:53.933 | 658,031 | 658,031 | [
"c#",
"pixel",
"picturebox",
"cartesian"
]
|
5,368,706 | 1 | 5,376,655 | null | 0 | 157 | I've got a `Patient` entity (storing up-to-date information about a patient) and a `TreatmentPlanPatient` entity (a copy of a patient's date as it was when the "treatment plan", another entity not relevant to this question, was created):

I'm using Table-per-Type in this case. Now when I try to add a new `TreatmentPlanPatient` that's pointing to the `Patient` it was created from, EF4 actually does this:
1. It retrieves the existing patient from the database
2. Creates a copy of that patient
3. Assigns it a new ID GUID (despite StoreGeneratedPattern = None!)
4. Inserts the new patient into the Patients table
5. Rewrites the ID in my TreatmentPlanPatient instance to point to this new Patient
6. Inserts the new treatment plan patient in to the TreatmentPlanPatients table.
This is my code causing above behavior:
```
using(var container = new SmartTherapyContainer()) {
// Look up the patient in the current container to make sure EF4 recognizes it
var patient = container.Patients.First(r => r.Id == selectedPatient.Id);
var treatmentPlanPatient = new TreatmentPlanPatient() {
Id = Guid.NewGuid(),
FirstName = patient.FirstName,
LastName = patient.LastName,
Street = patient.Street,
ZipCode = patient.ZipCode,
City = patient.City,
BirthDate = patient.BirthDate,
Telephone = patient.Telephone,
Email = patient.Email,
ClonedPatient = patient
};
// EF4 doesn't generate a separate .TreatmentPlanPatients collection :-/
container.Patients.AddObject(treatmentPlanPatient);
container.SaveChanges();
}
```
What is going on? How can I get EF4 to just insert a treatment plan patient into the `TreatmentPlanPatients` table and associate it with the existing patient in the `Patients` table?
| How can I associate a new entity with an existing entity in EF4? | CC BY-SA 2.5 | null | 2011-03-20T13:13:54.030 | 2011-03-21T10:55:46.823 | 2011-03-20T16:13:18.107 | 133,183 | 133,183 | [
"entity-framework",
"inheritance",
"entity-framework-4",
"associations",
"table-per-type"
]
|
5,369,380 | 1 | 5,369,434 | null | 3 | 1,477 | 
The black is JFrame content and the red one is JPanel's.
This happens a lot when resizing the JFrame. A little less, when resizing the frame from upper left corner, but still happens.
The panel is not able to keep up with the frame change.
Why, is it "fixable" ?
Thanks
| Java (swing): Annoyance resizing JFrame by dragging the bottom left corner | CC BY-SA 3.0 | null | 2011-03-20T15:23:03.463 | 2014-06-19T07:26:32.447 | 2014-06-19T07:26:32.447 | 2,557,554 | 662,344 | [
"java",
"swing",
"jframe",
"resize"
]
|
5,369,393 | 1 | 5,369,426 | null | 14 | 22,808 | I am using the css/javascript drop-down menu from this page:
[http://javascript-array.com/scripts/simple_drop_down_menu/](http://javascript-array.com/scripts/simple_drop_down_menu/)
Though I would like to have the far-right drop-down aligning to the right: when you hover "Contact" that the "Email" item etc do not go further to the right than the "Contact" box at the top, and instead are taking space from the left side if required.
Here is a picture to help clarify:

I thought of having the far-right of a different class which I would make:
```
<li class="alignRight"><a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()">Contact</a>
<div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
<a href="#">E-mail</a>
<a href="#">Submit Request Form</a>
<a href="#">Call Center</a>
</div>
</li>
```
with css:
```
.alignRight {
float: right;
}
```
but that does not work.
How can I "align" the drop-down to the right?
| css to align drop down to the right | CC BY-SA 2.5 | 0 | 2011-03-20T15:24:40.557 | 2015-07-13T07:06:30.330 | null | null | 190,791 | [
"css",
"drop-down-menu"
]
|
5,369,423 | 1 | 5,369,704 | null | 15 | 25,046 | So I have a method to get all the contact phone numbers from the address book on the iPhone, but is there a way to get the phone number label? For example you can do this:

And I'd be looking to modify my method to print out the label (such as iPhone/Home/mobile/etc).
```
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef all = ABAddressBookCopyArrayOfAllPeople(addressBook);
CFIndex n = ABAddressBookGetPersonCount(addressBook);
for( int i = 0 ; i < n ; i++ )
{
ABRecordRef ref = CFArrayGetValueAtIndex(all, i);
NSString *firstName = (NSString *)ABRecordCopyValue(ref, kABPersonFirstNameProperty);
NSLog(@"Name %@", firstName);
ABMultiValueRef *phones = ABRecordCopyValue(ref, kABPersonPhoneProperty);
for(CFIndex j = 0; j < ABMultiValueGetCount(phones); j++)
{
NSString *phoneLabel = @""; // ???
CFStringRef phoneNumberRef = ABMultiValueCopyValueAtIndex(phones, j);
//CFRelease(phones);
NSString *phoneNumber = (NSString *)phoneNumberRef;
CFRelease(phoneNumberRef);
NSLog(@" - %@ (%@)", phoneNumber, phoneLabel);
[phoneNumber release];
}
}
```
| Get iPhone phone number label from Address Book | CC BY-SA 2.5 | 0 | 2011-03-20T15:30:43.850 | 2015-12-25T09:11:53.470 | null | null | 143,979 | [
"iphone",
"objective-c",
"ios",
"abaddressbook",
"phone-number"
]
|
5,369,482 | 1 | 5,371,438 | null | 0 | 274 | I'm developing a website and I can't find the ways to resolve some stuff under .
First of all, here is temporary site location: [http://capitalpay.co.uk/](http://capitalpay.co.uk/).
# 1
---
So the troubles are: Login/register form has black rectangle instead of transparency:

And the style is:
```
#LoginPart
{
background-image: url('../images/login_bg.png');
float: right;
width: 184px;
height: 25px;
margin-top: 10px;
margin-right: 100px;
text-align: center;
}
```
And here is that background (a bit ugly):

# 2
---
My meny highlights bad... I know the code is'nt the best, but it works in another browsers
s
:
```
<div id="Menu">
<ul id="Navigation">
<li><a href="#home"><div class="HighlightItem"></div><span>Home</span></a></li>
<li><a href="#vending"><div class="HighlightItem"></div><span>Vending machine</span></a></li>
<li><a href="#videos"><div class="HighlightItem"></div><span>Videos</span></a></li>
<li><a href="#about"><div class="HighlightItem"></div><span>About</span></a></li>
<li><a href="#contact"><div class="HighlightItem"></div><span>Contact</span></a></li>
</ul>
</div>
```
`Navigation`:
```
#Navigation
{
margin:0;
padding:0;
text-align:center;
list-style:none;
height: 50px;
}
.HighlightItem
{
width: 142px;
height: 50px;
position: absolute;
display: none;
background:none;
}
#Navigation span
{
position: relative;
text-align: center;
top: 40%;
font-size: small;
z-index: 5000;
font-weight: bold;
text-shadow: 1px 0px 0px #000;
}
```
In span element there is menu text. I made `z-index: 5000` for it to make over it absolute div with transparency, but leave text above it.
And here is JS (Jquery) code I'm using to animate menu:
```
$('li>a').hover(function(){
$(this).children('div').stop();
$(this).children('div').css({opacity: 0});
$(this).children('div').css('background-image', 'url("../images/but_hov.png")');
$(this).children('div').css('background-repeat', 'no-repeat');
$(this).children('div').css('background-position', 'center center');
$(this).children('div').fadeTo(400, 1.0);
}, function(){
$(this).children('div').stop();
$(this).children('div').fadeTo(400, 0, function() {
$(this).children('div').css('background-image', 'none');
$(this).children('div').hide();
});
});
```
Any help is welcome!
| IE8 site trouble | CC BY-SA 2.5 | null | 2011-03-20T15:42:05.170 | 2011-03-21T07:27:13.747 | 2011-03-20T18:32:17.023 | 87,152 | 87,152 | [
"jquery",
"html",
"css",
"internet-explorer",
"transparency"
]
|
5,369,566 | 1 | 5,369,999 | null | 0 | 4,046 | I want to construct a div that has a header with background like that

some content with a background of one pixel repeated at y(or not?)
and a footer with background like that

resulting in something like that with some text in the div content()

I want to have the same result with 5 lines or 50 lines of text.
Right now i have this
```
<html>
<head>
<link rel="stylesheet" type="text/css" href="test.css" />
</head>
<body>
<div id="header"></div>
<div id="content">Text goes here
</div>
<div id="footer"></div>
</body>
</html>
```
and this
```
#header {
width: 959px;
height: 169px;
margin:0 auto;
padding:0;
background: url(header.jpg);
}
#content {
width: 959px;
margin:0 auto;
background: url(content.jpg);
color: white;
}
#footer {
width: 959px;
height: 158px;
margin:0 auto;
padding:0;
background: url(footer.jpg);
}
```
resulting in this()

I hope i demonstrated the problem clearly
Cheers
| Css div with header and footer and dynamic content height | CC BY-SA 2.5 | null | 2011-03-20T15:54:53.977 | 2011-03-21T03:59:48.153 | 2011-03-20T16:22:45.947 | 36,525 | 36,525 | [
"jquery",
"css",
"html"
]
|
5,369,580 | 1 | 5,370,625 | null | 2 | 613 | I'm trying to understand some quirks of the Parallelize[] behavior.
If I do:
```
CloseKernels[];
LaunchKernels[1]
f[n_, g_] :=
First@AbsoluteTiming[
g[Product[Mod[i, 2], {i, 1, n/2}]
Product[Mod[i, 2], {i, n/2 + 1, n}]]];
Clear[a, b];
a = Table[f[i, Identity], {i, 100000, 1500000, 100000}];
LaunchKernels[1]
b = Table[f[i, Parallelize], {i, 100000, 1500000, 100000}];
ListLinePlot[{a, b}, PlotStyle -> {Red, Blue}]
```
The result is the expected one:

CPU utilization:

But if I do the same, changing the function to evaluate:
```
CloseKernels[];
LaunchKernels[1]
f[n_, g_] :=
First@AbsoluteTiming[
g[Product[Sin@i, {i, 1, n/2}]
Product[Sin@i, {i, n/2 + 1, n}]]];
Clear[a, b];
a = Table[f[i, Identity], {i, 1000, 15000, 1000}];
LaunchKernels[1]
b = Table[f[i, Parallelize], {i, 1000, 15000, 1000}];
ListLinePlot[{a, b}, PlotStyle -> {Red, Blue}]
```
The result is:

CPU utilization:

I think I am missing some important knowledge about Parallelize[] to understand this.
Any hints?
| Parallelize behavior | CC BY-SA 2.5 | null | 2011-03-20T15:57:24.697 | 2011-08-24T04:15:25.923 | 2011-08-24T04:15:25.923 | 353,410 | 353,410 | [
"wolfram-mathematica"
]
|
5,369,632 | 1 | 5,369,705 | null | 0 | 502 | Right now in my game I'm drawing true type fonts like this:
```
for(int i = linesSkipped; i <= maxitems + linesSkipped; ++i)
{
if(i >= (int)textRows.size())
{
break;
}
paintargs.graphics()->drawText(AguiPoint(textX - 2,
textY - 2 + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(0,0,0),getFont());
paintargs.graphics()->drawText(AguiPoint(textX + 2,
textY + 2 + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(0,0,0),getFont());
paintargs.graphics()->drawText(AguiPoint(textX,
textY + (i * getFont().getLineHeight())),
textRows[i].c_str(),AguiColor(255,128,0),getFont());
}
```
So I draw it with an offset of 2, then with an offset of -1 .
It almost does what I want, but the top right and bottom left edges are still unstroked:

Is there a way to draw it such that it would look like stroking in Photoshop?
Thanks
| Drawing stroked text with True Type Fonts | CC BY-SA 2.5 | null | 2011-03-20T16:03:34.227 | 2011-03-20T16:40:14.313 | null | null | 146,780 | [
"c++",
"algorithm",
"user-interface",
"graphics"
]
|
5,369,780 | 1 | 5,369,796 | null | 1 | 1,061 | I was solving some old exams of the first major exam in Java. I found this question which I don't really understand why did they use Ceil method in it. Also the question says "Parentheses are not allowed" what do they exactly mean they are not allowed?
This is the question:

| Arithmetic Expression | CC BY-SA 2.5 | null | 2011-03-20T16:32:12.747 | 2011-03-20T16:57:26.767 | 2011-03-20T16:43:02.430 | 191,797 | 571,484 | [
"java"
]
|
5,369,876 | 1 | 5,369,935 | null | 1 | 1,031 | I have a `ul` which displays fine in normal browsers, and even IE8! However, when I put IE8 into IE7 mode (could that be the issue?), I get the layout to the left (normal behaviour on the right:

And here be my CSS:
My question is: How do I get rid of the silly offset (I've used `margin-left -10px` (or another negative value), but of course that affects other browsers too. Thanks for any help :-)
| IE7 giving UL a margin even though I told it not to | CC BY-SA 2.5 | null | 2011-03-20T16:45:45.263 | 2011-03-20T16:55:11.290 | 2020-06-20T09:12:55.060 | -1 | 383,609 | [
"css",
"internet-explorer-7"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.