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,450,764 | 1 | 5,450,818 | null | 8 | 63,878 | I know this question will sound very basic but i just am not able to fix it.I have got a div container and im trying to position the a child div to the right.I tried positioning the container div with relative and then positioning the child div with absolute,but the parent div loses its width.
please have a look at the image above,i need the div1 to position itself right of the divContainer. I have got other nested divs in divContainer, i need only div1 to be postioned on the right.
```
div#divContainer{
margin-left:auto;
margin-right:auto;
top: 0px;
width:1000px;
background:#666;
position:relative;
}
div#div1{
height:45px;width:200px;
background:yellow;
position:absolute;
}
```
HTML CODE
```
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
</head>
<body>
<div id="divContainer">
<div id="div1"></div>
</div>
</body>
</html>
```
| Positioning a div to the right of its containing div | CC BY-SA 2.5 | 0 | 2011-03-27T17:04:53.453 | 2011-03-27T17:16:52.600 | 2011-03-27T17:11:05.517 | 188,477 | 188,477 | [
"html",
"css"
]
|
5,450,796 | 1 | 5,457,103 | null | 0 | 2,179 | I want to my iOS project in . In xcode4 this seems to be very simple. In the utility sidebar there is a localization panel where I can add languages.
Adding a language I get following structure:

I want to localize a button. So I open `MainWindow.xib (German)` and just edit the title of the button. But when I run my project on both device or simulator I always get the english version even if it is set to German.
Where is the problem? Any ideas?
| How to localize view in xcode4? | CC BY-SA 2.5 | 0 | 2011-03-27T17:09:33.913 | 2011-03-28T09:35:37.980 | 2011-03-28T09:31:28.027 | 401,025 | 401,025 | [
"iphone",
"xcode",
"localization",
"xcode4"
]
|
5,450,919 | 1 | 5,451,712 | null | 0 | 280 | This suppose to be a portrait view.... but it is kind of a mixed view. I tried many skins and nothing helps. I also tried using landscape skins but they apper the same.

| Strange android emulator behavior - mixed landscape and horizontal views | CC BY-SA 2.5 | null | 2011-03-27T17:26:06.130 | 2011-03-27T19:21:22.233 | null | null | 234,965 | [
"android-emulator",
"android-virtual-device"
]
|
5,450,931 | 1 | 5,538,788 | null | 16 | 45,856 | I have two projects in a solution.
1. PizzaSoftware.Data
2. PizzaSoftware.UI
In the Data project, I have my Entity Framework model which connects to my database.
My UI project has a project reference to Data and here's how it looks like:

I've created a user control in the UserControls folder.
```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PizzaSoftware.Data;
namespace PizzaSoftware.UI.UserControls
{
public partial class AutoCompleteTextBox : UserControl
{
AutoCompleteStringCollection completeCollection = new AutoCompleteStringCollection();
public AutoCompleteTextBox()
{
InitializeComponent();
}
private void AutoCompleteTextBox_Load(object sender, EventArgs e)
{
CustomerRepository repo = new CustomerRepository();
var customers = repo.FindAllCustomers().ToList();
foreach (var customer in customers)
{
completeCollection.Add(customer.Name);
}
txtSearchBox.AutoCompleteMode = AutoCompleteMode.Suggest;
txtSearchBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
txtSearchBox.AutoCompleteCustomSource = completeCollection;
}
}
}
```
When I try to drag this user control into the design pane, I receive the error in the question title.
Here's what my connection string looks like:
```
<connectionStrings>
<add
name="SaharaPizzaEntities"
connectionString="
metadata=res://*/PizzaSoftwareEntityModel.csdl|res://*/PizzaSoftwareEntityModel.ssdl|res://*/PizzaSoftwareEntityModel.msl;
provider=System.Data.SqlClient;
provider connection string="
Data Source=.\SQLEXPRESS;
Initial Catalog=SaharaPizza;
Integrated Security=True;
MultipleActiveResultSets=True
""
providerName="System.Data.EntityClient"
/>
```
What could be causing this error?
| The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid | CC BY-SA 3.0 | 0 | 2011-03-27T17:28:51.537 | 2014-04-23T06:47:56.390 | 2013-06-24T21:08:38.490 | 82,729 | null | [
"c#",
"visual-studio-2010",
"entity-framework",
"windows-forms-designer"
]
|
5,450,982 | 1 | 5,451,051 | null | 2 | 3,560 | I have a JSF datatable like this one:
```
<h:form id="productsBox">
<h:dataTable var="product" value="#{categoriesBean.category.products}" id="productsTable">
<h:column id="product">
<img id="img" src="C:/upload/Jellyfish_231834557726756606.jpg" />
<h:outputText id="name" value=" #{product.name}" />
<h:outputText id="price" value=" #{product.price}" />
<h:commandButton id="addToCart" value="Add to cart" action="#{shoppingCartBean.addProduct(product)}">
</h:commandButton>
</h:column>
</h:dataTable>
</h:dataTable>
</h:form>
```
I don't know how to make this table with 4 rows and 2 columns, putting one product on each sell, like in the image below:

And after this problem is solved, I'm curious, can I make something like pagination for products with JSF, if they are more than 12 products in my category? Or there is something better for this? I heard primefaces could help me.
| JSF Datatable with two columns | CC BY-SA 2.5 | null | 2011-03-27T17:37:09.433 | 2016-02-11T07:49:15.493 | 2011-03-27T17:49:12.330 | 472,792 | 432,580 | [
"java",
"datatable",
"jsf-2"
]
|
5,451,363 | 1 | 5,587,037 | null | 4 | 1,774 | I recently had to reinstall the OS on my dev box and I am now in the process of reinstalling various applications. I had previously installed the WP7 SDK without any problems but unfortunately I'm having problems this time around. The only project type I have available in the Silverlight for Windows Phone category is one that I downloaded from the online templates section.

When I try to open it or any of the WP7 projects I created previously I get a "The project type is not supported by this installation." error. I am not sure what I am missing. I have followed the three steps listed [here](http://create.msdn.com/en-us/home/getting_started) so I've installed the SDK, the Dev Tools and the Dev Tools fix. The installation of VS2010 itself seems to be fine as I can create ASP.NET and Silverlight applications and run them without any problems.
Has anyone encountered something like this before?
I have installed Service Pack 1 for VS 2010 but that hasn't helped unfortunately.
I have also re-installed the Windows Phone Dev Tools and that installation reported no errors but I still get no projects under the Silverlight for Windows Phone category.
| Windows Phone Application Project Type Unavailable in VS2010 | CC BY-SA 3.0 | 0 | 2011-03-27T18:33:36.637 | 2013-04-16T12:10:28.803 | 2013-04-16T12:10:28.803 | 137,001 | 137,001 | [
"visual-studio-2010",
"windows-phone-7"
]
|
5,451,376 | 1 | 5,493,122 | null | 8 | 4,264 | How to implement this tunnel like animation in WebGL?

Source: [http://dvdp.tumblr.com/](http://dvdp.tumblr.com/)
See also: [How to implement this rotating spiral in WebGL?](https://stackoverflow.com/questions/4638317/how-to-implement-this-rotating-spiral-in-webgl)
| How to implement this tunnel like animation in WebGL? | CC BY-SA 2.5 | 0 | 2011-03-27T18:35:09.587 | 2018-05-31T22:49:26.383 | 2017-05-23T12:09:11.587 | -1 | 94,411 | [
"javascript",
"glsl",
"webgl"
]
|
5,451,497 | 1 | 5,451,560 | null | 0 | 144 | 
I [asked this question](https://stackoverflow.com/questions/5419931/help-designing-a-database-schema-for-a-pizza-store), and someone suggested this type of schema. I'm not familiar with how super/subtypes work. Can you show me a TSQL example of how I would create this database?
Another problem I'm having trouble wrapping my head around, is given an order, and a collection of items in that order, how would I know if an item is a Pizza, Beverage or Side dish?
Thank you.
| What would the tsql be for this type of database schema? | CC BY-SA 2.5 | null | 2011-03-27T18:50:56.130 | 2011-03-27T18:58:59.907 | 2017-05-23T10:30:21.980 | -1 | null | [
"sql-server",
"database-design",
"schema"
]
|
5,451,485 | 1 | 5,459,830 | null | 5 | 3,845 | My Nexus One has it:
1. Settings includes a "Voice recognizer settings" in the list of "Voice input & output settings".
2. Google Search has a microphone button next to it, so when I touch it, a dialog prompts me to say what I want to search.
On the emulator (API level 8, Android 2.2) however, any of the above is nowhere to be found.
Isn't voice search part of Android 2.2? If so, why is it found on my Nexus One (Froyo) but not on the emulator?
What do I need to do to make at least the "Voice input & output settings" available?
: I followed the instructions for creating the recognizer-enabled AVD as suggested below, but I still receive the "Recognizer no present" message:

What else do I need to do?
Is it possible that despite installing Google APIs by Google Inc., Android API 8, revision 2 and creating a special AVD with it, I still need to install the Voice Search app from the Android Market?
: I followed Michael's correction to install Google's Voice Search app. This solved the "Recognizer no present" problem but now I am presented with a new problem:

The app's suggestion "Speak again" is bogus: Speaking again presents the same error message over and over again.
| Android 2.2: Where is the option for speech input in the emulator? | CC BY-SA 2.5 | 0 | 2011-03-27T18:49:39.740 | 2011-08-09T20:54:06.090 | 2011-03-29T14:03:00.067 | 679,180 | 679,180 | [
"android-emulator",
"speech-recognition",
"voice-recognition",
"speech-to-text"
]
|
5,451,593 | 1 | null | null | 22 | 2,977 | I have 4 points.. i can draw a polygon usign this code
```
var p = new Polygon();
p.Points.Add(new Point(0, 0));
p.Points.Add(new Point(70, 0));
p.Points.Add(new Point(90, 100));
p.Points.Add(new Point(0, 80));
```

# Question is still unanswared!!!
| 4 points and Ellipse | CC BY-SA 2.5 | 0 | 2011-03-27T19:04:43.027 | 2012-01-10T18:23:26.280 | 2011-04-03T10:30:30.853 | 474,290 | 474,290 | [
"c#",
"wpf",
"silverlight",
"silverlight-4.0",
"drawing"
]
|
5,451,673 | 1 | 5,457,627 | null | 4 | 1,840 | The test code is available [here](https://github.com/reader20/Study) for your comments.
1) Rotation problem:
I have implemented
```
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}
```
in the WebViewController.m file, but it still does not rotate. (See the pictures below)


2) The size issue
As you may notice in the pictures, the bottom part of the screen is blank (about 25% of the screen). I have checked the xib file and the UIWebView seems to be set correctly
Did I make any very obvious mistake?
| UIWebview: Does not rotate and does not resize to fit the whole screen | CC BY-SA 2.5 | 0 | 2011-03-27T19:15:53.510 | 2011-03-28T10:26:50.013 | null | null | 58,129 | [
"ios",
"uiwebview",
"xcode4"
]
|
5,452,594 | 1 | 5,452,612 | null | 1 | 60 | ```
SELECT info, date
FROM Professor, Professor_Comment, Comment
WHERE pID = ?
AND Professor_Comment.pcID = Professor.pcID
AND Comment.commID = Professor_Comment.commID;
;
```

| Why isnt this SQL command working | CC BY-SA 2.5 | null | 2011-03-27T21:30:01.640 | 2011-03-27T21:45:00.427 | null | null | 700,070 | [
"sql"
]
|
5,452,585 | 1 | 5,452,776 | null | 0 | 356 | I have the following Entities and the issue I am having is that I have a type Game which inherits from MediaItem. I have passed a collection of Game to a view and I want to be able to display the Games Rating (Stored inside LibraryItemRating) as Rating. Currently I cannot do this, as when I get to Game.Libraryitems I have a collection..
I want LibraryItems association with MediaItem to be 1 -- * and not * -- 1.
The only referential constraint which is sensible is Principal: MediaItem (MediaItemID) and Dependent: (MediaItem). When this is set I can only have the * -- 1 relationship, otherwise I get these two errors:
> Multiplicity is not valid in Role
'LibraryItem' in relationship
'MediaItemLibraryItem'. Because the
Dependent Role properties are not the
key properties, the upper bound of the
multiplicity of the Dependent Role
must be *.
and
> Multiplicity is not valid in role
'MediaItem' in relationship
'MediaItemLibraryItem'. Valid values
for multiplicity for Principal Role
are '0..1' or '1'.
Any help would be appreciated! Here is a screenshot:
Note: MediaItem(MediaItemID) maps to LibraryItem(MediaItem)
| ADO.Net EF, Mapping Issue | CC BY-SA 2.5 | null | 2011-03-27T21:29:06.430 | 2011-03-27T21:59:42.967 | 2011-03-27T21:52:12.130 | 413,501 | null | [
"database",
"entity-framework",
"inheritance",
"ado.net",
"mapping"
]
|
5,452,648 | 1 | 5,452,664 | null | 0 | 229 | Fellow Folks,
Inspecting om my PLESK 8.2 on APACHE2 with PHP 5.2.3 I saw this. Being a person who loves peed, I'll do anything to speed up my site. Advise in regards to the buttons in this picture is appreciated greatly.

| Does disabling unused languages [Python ASP.net CGI Perl] in PLESK8 Speed Up PHP5 on Apache server? | CC BY-SA 2.5 | 0 | 2011-03-27T21:40:08.527 | 2011-03-27T21:43:14.270 | null | null | 509,670 | [
"php",
"asp.net",
"python",
"apache",
"plesk"
]
|
5,452,944 | 1 | 5,452,971 | null | 1 | 9,056 | I want to know please how can I fill in a table, row by row, by numbers, and then to color in each row the cell that has the higher number in it.
I searched the web a little and found this "set(handles.uitable2, 'Data', {5,6,4})" but this is not helping me because i need to fill in row by row, and in this method the row data is been replace.
this is the table. as you see there is 7 rows and 10 columns. in each columns there is the correlation score of the plate digit against the samples digits (0-9).

this is how I call the correlation function`[scores] = compute_corr(digit);` I'm executes this call 7 times for each plate digit. scores is an array that saves in each call the correlation scores and digit is one digit from the plate.
thanks in advance.
| how to use tables in Matlab | CC BY-SA 2.5 | null | 2011-03-27T22:32:52.693 | 2011-03-28T18:10:00.727 | 2011-03-28T18:10:00.727 | 556,011 | 556,011 | [
"matlab",
"uitableview",
"matlab-deployment"
]
|
5,452,976 | 1 | 5,453,037 | null | 0 | 129 | ```
- (void)viewDidLoad {
[super viewDidLoad];
definedNames = [[NSArray alloc] initWithObjects:@"Ohio", @"Newark", @"Steve", @"Coffee", nil];
definedAmounts = [[NSArray alloc] initWithObjects:@"5", @"100", @"1", @"72", nil];
}
```
That for example. So the numbers go with the name it matches but when i search it puts the numbers still in that order with the searched names
before search:

searching for newark:

Newark should stay with the value 100. Can someone explain how to do this to me please? i would appreciate it. also i have over 1000 entries and the values are shown in a custom cell.
thanks
| UITableView Search Display Cell Error | CC BY-SA 3.0 | null | 2011-03-27T21:46:19.750 | 2012-03-05T00:34:13.110 | 2012-03-05T00:34:13.110 | 689,356 | 612,322 | [
"iphone",
"objective-c",
"cocoa-touch",
"ios"
]
|
5,453,169 | 1 | null | null | 5 | 463 | I’m no expert programmer, but I’m attempting to change the way in which some technical indicators are displayed in a financial charting package called TradeStation (not that the specific charting supplier is relevant).
Here is the problem: Most indicators are plotted around a Zero point, sometimes they oscillate close to this point and sometimes far away. I would like to change the way in which the indicators are plotted so that they oscillate around Zero much more. But here is the tricky part, I don’t wish to distort their shape too much; some change is fine and inevitable, but I still would like the indicators to be recognisable for what they originally were.
In the past I have tried many ways, one way was using a logarithmic type scale, but this was not successful as it made any oscillation that was at a very high value almost inconsequential- which is not the goal. The goal is to try to keep any one oscillation of the indicator almost the same, but change the placement of it so that its closer to Zero (centre). Or put another way; the goal is to make the indicators perform similar shaped oscillations, but the centre of these oscillations should be closer to Zero (the centre of the indicators scale).
Does anyone know of, or can think of a way that this can be done? Are there any algorithms that might help keep any price series oscillating more around a centre point without too much distortion to the original?
Any help on this would be greatly appreciated, thank you.

The pink line is the original oscillator, the black line I have drawn in. It crudely represents what my goal would be for this. The circled areas show where the drawn in line crosses Zero so that its Zero value is roughly in the center of the oscillation... But the overall shape of the oscillation remains recognizable compared to the original one, also there is less discrepancy in the highs and lows of each oscillation; i.e. they are more similar in value . I have tried adding several different Detrend functions to various indicators but I have found that this distorts the shape for too much.
I have tried dividing reducing linearly the y axis by 50% and 80%, Unfortunately this seems to just act in the same was as a scale factor would? Is this correct? It does not seem to change the relationship between different oscillations. If you see my example plot, the drawn in black line has more stable high and low oscillations i.e they are more similar in value/size and this is the key goal.
Next, I am going to try to add a high pass filter to the plot to see what result that gives and if it is closer in any way to my goal.
As usual, feel free to post any comments as they are gratefully received.
Chris
I have also implemented a high pass filter to an indicator. This did not do the trick either. This also seems to act as a scale factor. What I am after essentially, is to make large oscillations smaller, and small oscillations larger. Bringing any indicator used into a more synchronised range- and do this while maintaining the basic properties of the indicator in question. A better way to describe it may be that I'm after a damping formula?
Does anyone have any other ideas, or things I should be trying?
| How to manipulate a price series (indicator) oscillate around a Center Value? | CC BY-SA 4.0 | 0 | 2011-03-27T23:19:50.980 | 2021-01-25T11:00:16.613 | 2021-01-25T11:00:16.613 | 1,783,163 | 679,441 | [
"algorithm",
"statistics",
"language-agnostic",
"trading",
"tradestation"
]
|
5,453,299 | 1 | 5,569,136 | null | 4 | 3,377 | I'm trying to create a NSTextField with a button on its right side (similar to a NSSearchView), but I can't figure out how to have the NSTextField's text scroll without going under the NSButton.
Here is my code thus far:
```
rightButton = [[NSButton alloc] initWithFrame:rect];
[rightButton setTarget:self];
[[rightButton cell] setHighlightsBy:NSNullCellType];
[rightButton setImage:[NSImage imageNamed:@"rightButton"]];
[rightButton setAction:@selector(action:)];
[rightButton setBordered:NO];
```
Any thoughts?
EDIT: Here is a screenshot of the problem.

| NSButton Inside NSTextField | CC BY-SA 2.5 | 0 | 2011-03-27T23:46:45.977 | 2011-04-06T15:42:07.380 | 2011-04-06T14:56:18.357 | 41,761 | 123,441 | [
"objective-c",
"cocoa",
"nstextfield",
"nsbutton"
]
|
5,453,336 | 1 | 5,454,100 | null | 96 | 99,450 | I have a matrix with some correlation values. Now I want to plot that in a graph that looks more or less like that:

How can I achieve that?
| Plot correlation matrix into a graph | CC BY-SA 3.0 | 0 | 2011-03-27T23:53:01.023 | 2022-08-20T08:51:23.803 | 2020-07-12T12:35:40.387 | 1,851,712 | null | [
"r",
"ggplot2",
"plot",
"correlation"
]
|
5,453,391 | 1 | 5,453,429 | null | 2 | 473 | I have an executable file in the resources folder. I am able to run that file by writing it to the disk then locating the file and use the Process.Start method to run the executable. Here is an example of how I do this:

How can I execute the file without writing it to the disk. Is there a way I can execute the file from memory? Or maybe execute it directly from the resources folder?
| Execute file in resourses folder without copying it to disk | CC BY-SA 2.5 | 0 | 2011-03-28T00:04:53.983 | 2011-03-28T00:10:50.077 | null | null | 637,142 | [
"c#"
]
|
5,453,422 | 1 | 5,453,678 | null | 21 | 87,464 | I have the following DOM structure / HTML, I want to get (just practicing...) the marked data.

The one that is under the h2 element. that div[@class="coordsAgence"] element, has some more div children below and some more h2's.. so doing:
```
div[@class="coordsAgence"]
```
Will get that value, but with additional unneeded text.
: The value (From this example) that I basically want is that: "GALLIER Dennis" text.
| Get (text) in XPath | CC BY-SA 3.0 | 0 | 2011-03-28T00:10:16.297 | 2021-01-14T14:16:55.140 | 2015-06-04T17:40:04.170 | 3,885,376 | 427,306 | [
"html",
"dom",
"xpath",
"html-parsing"
]
|
5,453,418 | 1 | 5,467,705 | null | 2 | 1,265 | I have my values of the lattice in the matrix as shown in fig 1:

Now I would like to represent these values in form of lattice tree as shown in the figure 2 (Note the values in figure 2 are not same as in figure 1, and fig 2 is just for demonstration purpose). How could I modify my code in Matlab in order to have result that looks like the tree format shown in figure 2?:

Following is my code:
```
function [price,BLOV_lattice]=BLOV_general(S0,K,sigma,r,T,nColumn)
%% Constant parameters
del_T=T./nColumn; % where n is the number of columns
u=exp(sigma.*sqrt(del_T));
d=1./u;
p=(exp(r.*del_T)-d)./(u-d);
a=exp(-r.*del_T);
%% Initializing the lattice
Stree=zeros(nColumn+1,nColumn+1);
BLOV_lattice=zeros(nColumn+1,nColumn+1);
%% Developing the lattice
for i=0:nColumn
for j=0:i
Stree(j+1,i+1)=S0.*(u.^j)*(d.^(i-j));
end
end
for i=0:nColumn
BLOV_lattice(i+1,nColumn+1)=max(Stree(i+1,nColumn+1)-K,0);
end
for i=nColumn:-1:1
for j=0:i-1
BLOV_lattice(j+1,i)=a.*(((1-p).*BLOV_lattice(j+1,i+1))+(p.*BLOV_lattice(j+2,i+1)));
end
end
price=BLOV_lattice(1,1);
```
| How to represent my Matlab matrix values in the following lattice-tree form? | CC BY-SA 3.0 | 0 | 2011-03-28T00:09:42.233 | 2017-08-09T05:42:35.660 | 2017-08-09T05:42:35.660 | 52,738 | null | [
"matlab",
"matrix",
"format"
]
|
5,453,748 | 1 | 5,455,457 | null | 0 | 72 | I added Core Data to my existing app. I added the methods and properties in the App Delegates and I added `#import <CoreData/CoreData.h>` to the prefix file.
But I am still getting the following errors:
Here is the link for the bigger picture: [http://www.box.net/shared/static/zfd2bkxy23.png](http://www.box.net/shared/static/zfd2bkxy23.png)
| Added Core Data To Existing App, Now Can't Resolve Errors | CC BY-SA 2.5 | null | 2011-03-28T01:16:26.150 | 2011-03-28T06:37:17.313 | null | null | null | [
"iphone",
"objective-c",
"xcode",
"core-data"
]
|
5,453,942 | 1 | 11,885,964 | null | 0 | 178 | I'm having a strange issue with AnythingSlider, this is my page layout:

The red blocks being links. The Biggest red block in the big middle black requires two clicks in FireFox and the BlackBerry browser but only one in Chrome/IE (IE!?). The other red boxes (Links) only need one click in ALL browsers.
Any help would be awesome guys!
| AnythingSlider Static Link takes 2 clicks the first time | CC BY-SA 2.5 | 0 | 2011-03-28T01:58:18.800 | 2012-08-09T14:55:29.010 | null | null | 554,195 | [
"javascript",
"html",
"css",
"jquery-plugins",
"anythingslider"
]
|
5,453,954 | 1 | 5,454,091 | null | 1 | 54 | I have the following query:
```
SELECT frst.FirstActionPath, scnd.SecondActionPath, frst.FirstIterationId, scnd.SecondIterationId,
frst.FirstTestRunId, scnd.SecondTestRunId, frst.FirstOrderId, scnd.SecondOrderId
FROM @FirstRunData frst
FULL JOIN @SecondRunData scnd
ON frst.FirstIterationId = scnd.SecondIterationId
AND frst.FirstActionPath = scnd.SecondActionPath
ORDER BY scnd.SecondIterationId, scnd.SecondOrderId, frst.FirstIterationID, frst.FirstOrderId
```
It gives me the following results:

The top row is a row that is in the @FirstRunData table but has not matching row in the @SecondRunData row.
How can I change my order by so that the extra row will be after the row with the 10000 value in FirstOrderId?
| How to setup Order By so that null rows will order based off a later constraint | CC BY-SA 2.5 | null | 2011-03-28T02:02:49.343 | 2011-03-28T02:34:02.780 | null | null | 16,241 | [
"sql",
"sql-server",
"tsql",
"sql-server-2008",
"sql-order-by"
]
|
5,454,161 | 1 | 5,558,590 | null | 2 | 2,868 | When using the Salesforce Partner API (version 21.0), how can I determine if the current user/session is able to create a new [Content Version](http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentversion.htm)?
Using [describeGlobal()](http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describeglobal.htm) I can confirm ContentVersion and ContentDocument are available as objects for the current organization.
Using [describeSObject()](http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describesobject.htm) I can confirm that the the current users session marks ContentVersion as createable.
I've also confirmed that the fields I'm setting when inserting the ContentVersion record are marked as createable (PathOnClient, VersionData and FirstPublishedLocationId).
In my test cases, if the user has access to the Content area via the Salesforce web interface then the test case passes with the ContentVersion being created.
However, when I try the same code from a developer edition org (without access to the Content area) it falls over with the message:
> FIELD_INTEGRITY_EXCEPTION - User doesn't have access to Salesforce Content. Invalid field value:: Content Origin
The createable Partner API metadata for ContentVersion and the fields indicated that this should have worked.
I'm working in C#, but the Java code in recipe [Publishing Documents Into a Salesforce CRM Content Personal Workspace](http://developer.force.com/cookbook/recipe/publishing-documents-into-a-salesforce-crm-content-personal-workspace) is doing much the same thing without the creatable metadata checks.
To try and rule out my code as the cause of the issue I've confirmed that the ContentVersion should be createable using Force.com Explorer:

| Determine if the current user has access to the Salesforce CRM Content features via the Partner API | CC BY-SA 2.5 | 0 | 2011-03-28T02:49:11.357 | 2011-04-07T18:59:41.727 | 2011-04-05T03:15:07.353 | 54,026 | 54,026 | [
"api",
"salesforce"
]
|
5,454,242 | 1 | 5,644,588 | null | 0 | 951 | We are trying a prototype using Google chart api.
```
http://chart.apis.google.com/chart?chf=bg,s,000000&chxs=0,FFFFFF00,9.5&chxt=x&chs=500x300&cht=p3&chco=3072F3|FF9900|80C65A|990066&chd=t:50,5,5,40&chdl=50%C2%B0%20Apples|5%C2%B0%20Oranges|5%C2%B0%20Dates|40%C2%B0%20Strawberries&chdlp=b&chp=0.1
```

the problem is when we see the chart in the browser it displays the legend. but when we use the BitmapFactory to download the image to an ImageView or even SD card the Legend goes missing (this happens irrespective of where the legend is placed top, bottom, left or right).
here is the code
```
private Bitmap loadChart(URL url){
Bitmap chart = null;
try{
HttpURLConnection httpConnection = (HttpURLConnection)url.openConnection();
httpConnection.setDoInput(true);
httpConnection.connect();
InputStream is = httpConnection.getInputStream();
chart = BitmapFactory.decodeStream(is);
} catch (IOException e) {
e.printStackTrace();
}
//MediaStore.Images.Media.insertImage(getContentResolver(), chart, "chart.png", "chart.png");
return chart;
}
```
here is the image which was downloaded by the commented line.
we also noticed that, the dimension of the chart specified in URL (chs=500x300) matches with the image dimension as well.

| Android :: BitmapFactrory Cuts off image | CC BY-SA 2.5 | null | 2011-03-28T03:05:36.900 | 2011-04-13T04:54:51.143 | null | null | 398,715 | [
"android",
"charts",
"bitmapfactory"
]
|
5,454,304 | 1 | 5,454,413 | null | 0 | 309 | With Internet Explorer when I have an effect with jQuery (slidedown) or a youtube video or something with oembed it will overlap or overflow over the text/content below. How can I have it so the div will "stretch so all of the text or video will stay inside the element?

| How can I have text/objects stay in a div element? (Having the div "stretch" so all of the content will stay inside?) | CC BY-SA 2.5 | null | 2011-03-28T03:19:47.847 | 2011-03-28T05:55:23.137 | null | null | 648,865 | [
"jquery",
"html",
"css",
"dom",
"oembed"
]
|
5,454,319 | 1 | 5,454,820 | null | 0 | 1,056 | I have an ASP.Net page which has several UpdatePanels. Each UpdatePanel loads an UserControl, and per UserControl, sub UserControl(s) may exists. In order to achieve partial-refresh, each sub UserControl will be carried through UpdatePanel. Those UserControls have input controls, and corresponding validator server controls.
The problem is, validators in a sub-UserControl will also trigger the validation in its parent UserControl; however, I'd like separate validation into scopes based on UpdatePanel.
Please kindly help.
I'm using Visual Studio 2008 and .Net 3.5.
Thank you.
William
-- EDITED ---
E.g.

I've an UserControl called "AddableDropDown" which is a drop down list that provides the ability of adding new list item on the fly. It consists of a drop down list for illustrating the currently available items; a asp:textbox for entering the title for the new item, a asp:button for submitting the new item, and a "RequiredFieldValidator" target on the asp:textbox.
The "AddableDropDown" will be used in different UserControl-based "web form" which has other kinds of inputs and Validators.
The goal I'm trying to reach is separating the Validation of the AddableDropDown from each of its instances, as well as each parent control of it.
| Validation in nested UpdatePanel(s) | CC BY-SA 2.5 | null | 2011-03-28T03:22:18.370 | 2011-03-28T07:45:43.680 | 2011-03-28T07:45:43.680 | 440,327 | 440,327 | [
"asp.net",
"updatepanel",
"validation"
]
|
5,454,334 | 1 | 5,467,819 | null | 1 | 3,124 | This is a follow up to my last question [Link](https://stackoverflow.com/q/5421564/675032)
I wanted to make some small adjustments to the look of the tabs. I accomplished this by passing a view into setIndicator() instead of a charSequence and icon.
the problem: now I have to totally recreate the look and feel of the tabs (I just wanted some small changes). oh well, I've got some tabs working now that are ok.
There are basically two things that I can't seem to recreate.
the main one being:(1) I wan't a horizontal bar right under my tabs (same color as the selected tab) like the one that is there by default.
here are my tabs:

here are some tabs from [developer.android.com](http://developer.android.com/resources/tutorials/views/hello-tabwidget.html)

The other is less important but would be really nice. (2) how to make them actually look like tabs instead of rectangles (curved edges, like in the second image). I assume this has to do with the divider I put in. I'm not a graphic designer though, are their any good resource for these images. also, I would like to do it in a way that has at least some hope of not breaking in the future.
anyone has any suggestions (especially for Q:1), that would be much appreciated. I had hoped to throw in a little padding, and now, 4 days of learning to make custom tabs. lol
| how to put some finishing touches (rounded edges and horizontal divider) on my custom tabs | CC BY-SA 2.5 | null | 2011-03-28T03:24:49.040 | 2011-09-01T18:57:15.260 | 2017-05-23T10:32:35.693 | -1 | 675,032 | [
"android",
"view",
"tabs",
"divider"
]
|
5,454,354 | 1 | 5,455,083 | null | 0 | 693 | When the user clicks the + button in the navbar, a UIAlert with text prompt comes up. The user then enters a string into the prompt and it should result in a new UITableViewCell with the name as the string.
For some reason the app is crashing when I get to the screen for this viewController.
It think it is related to the following line in ViewDidLoad: `NSEntityDescription *entity = [NSEntityDescription entityForName:@"Routine" inManagedObjectContext:managedObjectContext];`.
The console says the following: `Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Routine''`
I think I need to use "name" instead of routine but that isn't working either.
Here is my Core Data Model:
Here is my code:
```
#import "RoutineTableViewController.h"
#import "AlertPrompt.h"
#import "Routine.h"
@implementation RoutineTableViewController
@synthesize tableView;
@synthesize eventsArray;
@synthesize managedObjectContext;
- (void)dealloc
{
[managedObjectContext release];
[eventsArray release];
[super dealloc];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
#pragma mark - View lifecycle
- (void)viewDidLoad
{
UIBarButtonItem * addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(showPrompt)];
[self.navigationItem setLeftBarButtonItem:addButton];
[addButton release];
UIBarButtonItem *editButton = [[UIBarButtonItem alloc]initWithTitle:@"Edit" style:UIBarButtonItemStyleBordered target:self action:@selector(toggleEdit)];
self.navigationItem.rightBarButtonItem = editButton;
[editButton release];
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Routine" inManagedObjectContext:managedObjectContext];
[request setEntity:entity];
NSError *error = nil;
NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy];
if (mutableFetchResults == nil) {
// Handle the error.
}
[self setEventsArray:mutableFetchResults];
[mutableFetchResults release];
[request release];
[super viewDidLoad];
}
-(void)toggleEdit
{
[self.tableView setEditing: !self.tableView.editing animated:YES];
if (self.tableView.editing)
[self.navigationItem.rightBarButtonItem setTitle:@"Done"];
else
[self.navigationItem.rightBarButtonItem setTitle:@"Edit"];
}
-(void)showPrompt
{
AlertPrompt *prompt = [AlertPrompt alloc];
prompt = [prompt initWithTitle:@"Add Workout Day" message:@"\n \n Please enter title for workout day" delegate:self cancelButtonTitle:@"Cancel" okButtonTitle:@"Add"];
[prompt show];
[prompt release];
}
- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
{
if (buttonIndex != [alertView cancelButtonIndex])
{
NSString *entered = [(AlertPrompt *)alertView enteredText];
if(eventsArray && entered)
{
[eventsArray addObject:entered];
[tableView reloadData];
}
}
}
-(void)addEvent
{
Routine *routine = (Routine *)[NSEntityDescription insertNewObjectForEntityForName:@"Routine" inManagedObjectContext:managedObjectContext];
NSError *error = nil;
if (![managedObjectContext save:&error]) {
// Handle the error.
}
[eventsArray insertObject:routine atIndex:0];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath]
withRowAnimation:UITableViewRowAnimationFade];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES];
}
- (void)viewDidUnload
{
self.eventsArray = nil;
[super viewDidUnload];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return [eventsArray 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];
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellEditingStyleDelete reuseIdentifier:CellIdentifier] autorelease];
}
cell.textLabel.text = [self.eventsArray objectAtIndex:indexPath.row];
return cell;
}
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the specified item to be editable.
return YES;
}
-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the managed object at the given index path.
NSManagedObject *eventToDelete = [eventsArray objectAtIndex:indexPath.row];
[managedObjectContext deleteObject:eventToDelete];
// Update the array and table view.
[eventsArray removeObjectAtIndex:indexPath.row];
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
// Commit the change.
NSError *error = nil;
if (![managedObjectContext save:&error]) {
// Handle the error.
}
}
}
@end
```
| TableView Crashing/Freezing Because Of Core Data Error | CC BY-SA 2.5 | 0 | 2011-03-28T03:28:48.310 | 2011-03-28T21:44:27.463 | 2011-03-28T05:21:23.843 | null | null | [
"iphone",
"objective-c",
"core-data"
]
|
5,454,830 | 1 | 5,454,942 | null | 0 | 15,381 | I have the following table:

The problem is that when I try to use JDBC to insert a String to this field I always get the following error:
```
java.sql.SQLException: Data size bigger than max size for this type: 6019
```
what should I do now?
The java code to generate the INSERT is the following:
```
Connection conn2 = null;
if(connection==null||connection.isClosed())
{
System.out.println("Connection is null");
conn2 = connectDB();
}
//REPLACE is non-standard SQL from MySQL, it's counter part of INSERT IGNORE
String sql = "";
sql = "INSERT INTO TEST."+tablename+" ("+fields+") VALUES ("+fields.replaceAll("[^,]+", "?")+")";
System.out.println("SQL: "+sql);
PreparedStatement pstmt = conn2.prepareStatement(sql);
// start parsing
int event = r.getEventType();
while (true) {
// for each wanted element
if (event == XMLStreamConstants.START_ELEMENT
&& r.getName().toString().equalsIgnoreCase("row")) {
System.out.println("Table : "+tablename+" / Row : "+rowCount );
if (attributeCount == 0)
attributeCount = r.getAttributeCount();
//put each parameter to SQL
int f=1;
for (String field : fieldsArray){
String value = r.getAttributeValue("",field);
if("body".equalsIgnoreCase(field) && value != null) {
pstmt.setCharacterStream(f++, new CharArrayReader(value.toCharArray()), value.length());
} else {
pstmt.setString(f++, value);
}
}
pstmt.addBatch();
rowCount++;
if(rowCount%rowspercommit==0){
System.out.println("Importing at row "+rowCount+" ... ");
pstmt.executeBatch();
conn2.commit();
}
} // end for each row.
```
Not sure how the CREATE TABLE is, as someone did that for me
With the current code above, I am now getting this:
```
Exception in thread "main" java.lang.NullPointerException
at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
at oracle.jdbc.driver.OraclePreparedStatement.checkBindTypes(OraclePreparedStatement.java:3271)
at oracle.jdbc.driver.OraclePreparedStatement.setStreamItem(OraclePreparedStatement.java:1178)
at oracle.jdbc.driver.OraclePreparedStatement.setCharacterStream(OraclePreparedStatement.java:3539)
at XMLDumpImporter.importXMLFile(XMLDumpImporter.java:179)
at XMLDumpImporter.importXMLFolder(XMLDumpImporter.java:117)
at XMLDumpImporter.main(XMLDumpImporter.java:48)
```
at line:
```
if("body".equalsIgnoreCase(field) && value != null) {
pstmt.setCharacterStream(f++, new CharArrayReader(value.toCharArray()), value.length());
```
Which made no total sense as what could possibly be null
| Convert Java String to CLOB | CC BY-SA 2.5 | null | 2011-03-28T04:52:56.583 | 2011-03-28T07:38:57.503 | 2011-03-28T07:04:36.907 | 95,265 | 95,265 | [
"java",
"oracle",
"jdbc",
"clob"
]
|
5,454,858 | 1 | 5,454,976 | null | 0 | 1,254 | 
Edit:how to make my screen like this?
[How to implement custom device photos gallery for android?](https://stackoverflow.com/questions/4438935/how-to-implement-custom-device-photos-gallery-for-android)
The xml is in the below link
[http://pastebin.com/WdgEBQUY](http://pastebin.com/WdgEBQUY)
| how to decrease the space between the images in the image below? Is there any way to make the spae zero ? so that the images are side by side? | CC BY-SA 2.5 | null | 2011-03-28T04:57:44.157 | 2011-03-28T05:53:57.210 | 2017-05-23T12:07:02.087 | -1 | 335,997 | [
"android",
"image"
]
|
5,455,002 | 1 | 5,474,998 | null | 0 | 1,573 | I have a table in Sqlite with these fields:- Number,Value_Pressed,Time,Date, Month,Year
The Output should be Date,Yes,No and Mood.My query returns almost appropriate result but the problem is how can get the total Value pressed on the particular date.
Here's the query m using:-
"select date,year,month, count(*) Yes from value_table where date between 25 and 30 and value_pressed ='YES' group by date".
25 and 30 is date which is in NSstring.
The output of this query is :

i have already used the Union.But it's not returning desired output.Please help me.J
Please help me ...I shall be realy thankful to you for this..
| Validate my Sqlite Query? | CC BY-SA 2.5 | null | 2011-03-28T05:23:03.093 | 2011-03-29T15:29:06.867 | 2011-03-28T05:30:37.087 | 524,698 | 524,698 | [
"sqlite"
]
|
5,455,171 | 1 | 5,469,383 | null | 7 | 558 | I have a AutoCompleteTextView, the list for which is loaded from a custom ArrayAdapter.
In the view, I have 2 lines one name and second is email id.
My problem is that when I have a single item in the list, it crops the item. (Please see the attached image)

Any Idea how to fix this?
Thanks in advance.
Update: looks like a fading issue, can some one help me in removing the fading for this?
| AutoCompleteTextView crops the last row | CC BY-SA 2.5 | 0 | 2011-03-28T05:51:36.583 | 2011-03-29T07:45:21.183 | 2011-03-28T06:03:12.293 | 362,416 | 362,416 | [
"android",
"autocompletetextview"
]
|
5,455,295 | 1 | 5,455,464 | null | 0 | 67 | My problem is wrong first item. It isn't like others. Some code creates my table. When I scroll down and scroll up first item becomes like other items, but when at first I load my view, it is bad.
```
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView setEditing:YES];
NSString *MyIdentifier = @"MyIdentifier";
UITableViewCell *cell = [tv dequeueReusableCellWithIdentifier:MyIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
}
[cell.textLabel setText: [m_pArrayData objectAtIndex:indexPath.row]];
return cell;
}
```

| Why my first item look like wrong? (see pic) | CC BY-SA 2.5 | null | 2011-03-28T06:15:30.033 | 2011-03-28T06:40:03.280 | 2011-03-28T06:40:03.280 | 563,848 | 631,792 | [
"iphone",
"objective-c",
"cocoa-touch",
"uitableview"
]
|
5,455,755 | 1 | null | null | 2 | 1,823 | i have a control that is the plotter which is scrollable. After the plotter has finished plotting, it is able to scroll just like this:

My plotter is a real-time plotter i.e. meaning it plots as time goes by and it's not a static plotter(one which u put in the values manually). After I've stopped the plotter, I'm able to scroll around the plotter to see the results. However, I want to save the plotter into an image, which I'm trying to do using print screen method. But what I was able to capture is only the visible part of the plotter, but not the non-visible part of the plotter(which is because it needs scrolling). I hope it's clearer now.
The code for the print screen is:
```
// Set the bitmap object to the size of the screen
bmpScreenshot = new Bitmap(panel2.Bounds.Width, panel2.Bounds.Height, PixelFormat.Format32bppArgb);
// Create a graphics object from the bitmap
gfxScreenshot = Graphics.FromImage(bmpScreenshot);
Point p = this.PointToScreen(new Point(panel2.Bounds.X, panel2.Bounds.Y));
gfxScreenshot.CopyFromScreen(p.X, p.Y, 0, 0,
panel2.Bounds.Size, CopyPixelOperation.SourceCopy);
SaveFileDialog saveImageDialog = new SaveFileDialog();
saveImageDialog.Title = "Select output file:";
saveImageDialog.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";
if (saveImageDialog.ShowDialog() == DialogResult.OK)
{
bmpScreenshot.Save(saveImageDialog.FileName, ImageFormat.Jpeg);
}
```
Thanks a lot.
| C# print screen scrollable control | CC BY-SA 2.5 | 0 | 2011-03-28T07:16:23.433 | 2011-03-28T08:27:17.040 | 2011-03-28T08:27:17.040 | 643,953 | 643,953 | [
"c#",
"printing",
"screen",
"region",
"scrollable"
]
|
5,455,893 | 1 | 5,457,331 | null | 13 | 17,733 | I made a Webpart in Sharepoint 2010, and I need that the property "Chrome Type" allways set a "None" value.
I was looking for ways to force the Combobox to "None", or overriding the "Chrome Type" in the C# class, but I didn't find any way to do them. What is the best way to set this property?

| Override Chrome Type Webpart | CC BY-SA 2.5 | 0 | 2011-03-28T07:33:06.210 | 2016-07-16T07:05:52.397 | null | null | 674,887 | [
"sharepoint",
"sharepoint-2010",
"web-parts"
]
|
5,455,988 | 1 | 5,501,096 | null | 0 | 208 | I started out with the UISplitViewController template in Xcode 4, and added a UIImageView that covers the whole detailViewController.
When i run the project the image and views render correctly. If i rotate the device it also renders correct, but if i hit the PopoverButton while in portrait and then rotate the device the image is rendered above the rootView..

| UISplitViewController Render problem after using UIPopoverButton | CC BY-SA 2.5 | 0 | 2011-03-28T07:44:54.197 | 2011-03-31T14:01:10.573 | null | null | 381,762 | [
"ipad",
"uisplitviewcontroller"
]
|
5,456,067 | 1 | null | null | 0 | 1,634 | IIRC it should be `high->low`,but according to this image,it's `low->high`.

I'm now confused,which is the case?
Seems the code is also executed from `low->hight`:
```
0x0000000000400498 <main+0>: push %rbp
0x0000000000400499 <main+1>: mov %rsp,%rbp
0x000000000040049c <main+4>: sub $0x10,%rsp
0x00000000004004a0 <main+8>: movl $0x6,-0x4(%rbp)
```
| Does the system allocates memory from high->low or the reverse? | CC BY-SA 2.5 | 0 | 2011-03-28T07:52:58.237 | 2011-03-28T11:49:05.060 | 2011-03-28T08:14:34.147 | 657,251 | 657,251 | [
"stack",
"cpu-architecture"
]
|
5,456,097 | 1 | 5,456,357 | null | 1 | 779 | I am having a strange error in mysql that despite of existing the column it generates and error saying that the column does not exists.
This is the table schema:

This is the Error in query:

| MySQL Error: #1054 - Unknown column in 'field list' | CC BY-SA 4.0 | null | 2011-03-28T07:55:40.493 | 2019-01-30T02:28:20.330 | 2019-01-30T02:28:20.330 | 1,033,581 | 562,417 | [
"mysql",
"mysql-management"
]
|
5,456,416 | 1 | 5,456,623 | null | 2 | 1,978 | How do i get the button styles of the standard next/previous buttons and the gradient backgrounds like in the image below

| Android: Standard 'Next' Button and Background | CC BY-SA 2.5 | 0 | 2011-03-28T08:30:26.087 | 2011-03-28T09:57:38.980 | null | null | 481,239 | [
"android",
"button",
"background"
]
|
5,456,364 | 1 | null | null | 0 | 2,324 | Currently I am using the javascript tooltips called [EZPZ tooltips](http://theezpzway.com/2009/3/17/jquery-plugin-ezpz-tooltip). Here is the [demo](http://theezpzway.com/demos/ezpz-tooltip) page of EZPZ tooltips.
I have this kind of layout with html and css.
The largest div is with position relative with margin-left:auto; and margin-right:auto; and inside the small box is with position absolute.

Here is the full code for this html page.
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>The EZPZ Way – EZPZ Tooltip </title>
<link href="css/application.css" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.ezpz_tooltip.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("#stay-target-1").ezpz_tooltip({
contentPosition: 'belowStatic',
stayOnContent: true,
offset: 0
});
});
</script>
<style type="text/css" media="screen">
.wrapper {
position:relative;
width:800px;
height:600px;
border:1px solid #000;
margin-left: auto;
margin-right: auto;
}
h3 { margin-top: 20px; }
.tooltip-target {
display: block;
padding: 10px;
background-color: #EEE;
text-align: center;
width:100px;
position:absolute;
top:100px;
right:100px;
}
.tooltip-content {
display: none; /* required */
position: absolute; /* required */
width: 250px;
padding: 10px;
border: 3px solid #AF8A31;
background-color: #FFC848;
text-align: center;
color: black;
}
.tooltip-content p {
margin: 0;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="tooltip-target" id="stay-target-1">Stay on Content ToolTip</div>
<div style="top: 1455px; left: 190px; display: none;" class="stay-tooltip-content tooltip-content" id="stay-content-1">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas sit amet enim...<br>
<a href="javascript:">You can reach down and click this</a>
</p>
</div>
</div>
</body>
</html>
```
Here is the javascript of EZPZ tooltips.
```
// EZPZ Tooltip v1.0; Copyright (c) 2009 Mike Enriquez, http://theezpzway.com; Released under the MIT License
(function($){
$.fn.ezpz_tooltip = function(options){
var settings = $.extend({}, $.fn.ezpz_tooltip.defaults, options);
return this.each(function(){
var content = $("#" + getContentId(this.id));
var targetMousedOver = $(this).mouseover(function(){
settings.beforeShow(content, $(this));
}).mousemove(function(e){
contentInfo = getElementDimensionsAndPosition(content);
targetInfo = getElementDimensionsAndPosition($(this));
contentInfo = $.fn.ezpz_tooltip.positions[settings.contentPosition](contentInfo, e.pageX, e.pageY, settings.offset, targetInfo);
contentInfo = keepInWindow(contentInfo);
content.css('top', contentInfo['top']);
content.css('left', contentInfo['left']);
settings.showContent(content);
});
if (settings.stayOnContent && this.id != "") {
$("#" + this.id + ", #" + getContentId(this.id)).mouseover(function(){
content.css('display', 'block');
}).mouseout(function(){
content.css('display', 'none');
settings.afterHide();
});
}
else {
targetMousedOver.mouseout(function(){
settings.hideContent(content);
settings.afterHide();
})
}
});
function getContentId(targetId){
if (settings.contentId == "") {
var name = targetId.split('-')[0];
var id = targetId.split('-')[2];
return name + '-content-' + id;
}
else {
return settings.contentId;
}
};
function getElementDimensionsAndPosition(element){
var height = element.outerHeight(true);
var width = element.outerWidth(true);
var top = $(element).offset().top;
var left = $(element).offset().left;
var info = new Array();
// Set dimensions
info['height'] = height;
info['width'] = width;
// Set position
info['top'] = top;
info['left'] = left;
return info;
};
function keepInWindow(contentInfo){
var windowWidth = $(window).width();
var windowTop = $(window).scrollTop();
var output = new Array();
output = contentInfo;
if (contentInfo['top'] < windowTop) { // Top edge is too high
output['top'] = windowTop;
}
if ((contentInfo['left'] + contentInfo['width']) > windowWidth) { // Right edge is past the window
output['left'] = windowWidth - contentInfo['width'];
}
if (contentInfo['left'] < 0) { // Left edge is too far left
output['left'] = 0;
}
return output;
};
};
$.fn.ezpz_tooltip.positionContent = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY - offset - contentInfo['height'];
contentInfo['left'] = mouseX + offset;
return contentInfo;
};
$.fn.ezpz_tooltip.positions = {
aboveRightFollow: function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY - offset - contentInfo['height'];
contentInfo['left'] = mouseX + offset;
return contentInfo;
}
};
$.fn.ezpz_tooltip.defaults = {
contentPosition: 'aboveRightFollow',
stayOnContent: false,
offset: 10,
contentId: "",
beforeShow: function(content){},
showContent: function(content){
content.show();
},
hideContent: function(content){
content.hide();
},
afterHide: function(){}
};
})(jQuery);
// Plugin for different content positions. Keep what you need, remove what you don't need to reduce file size.
(function($){
$.fn.ezpz_tooltip.positions.aboveFollow = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY - offset - contentInfo['height'];
contentInfo['left'] = mouseX - (contentInfo['width'] / 2);
return contentInfo;
};
$.fn.ezpz_tooltip.positions.rightFollow = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY - (contentInfo['height'] / 2);
contentInfo['left'] = mouseX + offset;
return contentInfo;
};
$.fn.ezpz_tooltip.positions.belowRightFollow = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY + offset;
contentInfo['left'] = mouseX + offset;
return contentInfo;
};
$.fn.ezpz_tooltip.positions.belowFollow = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = mouseY + offset;
contentInfo['left'] = mouseX - (contentInfo['width'] / 2);
return contentInfo;
};
$.fn.ezpz_tooltip.positions.aboveStatic = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = targetInfo['top'] - offset - contentInfo['height'];
contentInfo['left'] = (targetInfo['left'] + (targetInfo['width'] / 2)) - (contentInfo['width'] / 2);
return contentInfo;
};
$.fn.ezpz_tooltip.positions.rightStatic = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = (targetInfo['top'] + (targetInfo['height'] / 2)) - (contentInfo['height'] / 2);
contentInfo['left'] = targetInfo['left'] + targetInfo['width'] + offset;
return contentInfo;
};
$.fn.ezpz_tooltip.positions.belowStatic = function(contentInfo, mouseX, mouseY, offset, targetInfo) {
contentInfo['top'] = targetInfo['top'] + targetInfo['height'] + offset;
contentInfo['left'] = (targetInfo['left'] + (targetInfo['width'] / 2)) - (contentInfo['width'] / 2);
return contentInfo;
};
})(jQuery);
```
When I hover, the small grey box, tooltips show like this which is wrong.

But if i remove margin-left: auto; and margin-right:auto; from wrapper class. it works. Here is the actual look that tooltip supposed to be show.

I think it's somewhere clashed. But i don't know how to fix it. Is there anyway to center the div not using margin-left:auto; and margin-right:auto; ? I tried with margin:0px auto; and text-align:center also. But it's still occurred same problem with tooltips.
I need the site to be at center and tooltips to be working correctly under hover content also. Please kindly help me. Thank you.
| Center Div and Javascript Tooltip problem | CC BY-SA 2.5 | 0 | 2011-03-28T08:25:19.660 | 2011-03-28T13:26:21.957 | null | null | 329,453 | [
"javascript",
"html",
"css"
]
|
5,456,633 | 1 | 5,456,670 | null | 0 | 997 | i'm using `CFArrayBSearchValues`.
Ref: [http://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFArrayRef/Reference/reference.html#//apple_ref/doc/uid/20001192-CH201-F10956](http://developer.apple.com/library/mac/documentation/CoreFoundation/Reference/CFArrayRef/Reference/reference.html#//apple_ref/doc/uid/20001192-CH201-F10956)
It works successfully but compiler show me a warning on first parameter:
```
CFIndex indexResult = CFArrayBSearchValues(
m_Locations,
CFRangeMake(0, [m_Locations count]),
data,
PGPlaceDataCompare, nil);
```

`CFArrayBSearch` expect as first parameter an `CFArrayRef`.
My `m_Locations` is an `NSMutableArray`.
How to resolve this warning? I need to do any cast to NSMutableArray to CFArrayRef?
thanks.
| Binary search warning in CFArrayBSearchValues | CC BY-SA 2.5 | null | 2011-03-28T08:54:36.347 | 2011-03-28T09:02:36.283 | null | null | 88,461 | [
"iphone",
"objective-c",
"ipad",
"nsmutablearray",
"binary-search"
]
|
5,456,642 | 1 | 5,539,618 | null | 10 | 7,171 | I'm trying to achieve a kind of origami transition on two UIView using only layer capabilities. The idea is to fold two views with a perspective effect. Both views have a perspective, the transition is defined by a rotation on each view, as well as a translation on one view such that this view seems to be attached to the other one.
The issue is that the view overlaps one another in the middle of the transition. I don't want to use a zPosition to visually avoid this overlapping, I really want these two views to act as if they were bound together by their shared side. Here is the code for the transition.
Any idea, or any other solution?

```
- (void)animateWithPerspective
{
CGFloat rotationAngle = 90;
CATransform3D transform = CATransform3DIdentity;
UIView *topView;
UIView *bottomView;
UIView *mainView;
CGRect frame;
CGFloat size = 200;
mainView = [[UIView alloc] initWithFrame:CGRectMake(10,10, size, size*2)];
[self.view addSubview:mainView];
bottomView = [[UIView alloc] initWithFrame:CGRectZero];
bottomView.layer.anchorPoint = CGPointMake(0.5, 1);
bottomView.frame = CGRectMake(0, size, size, size);
bottomView.backgroundColor = [UIColor blueColor];
[mainView addSubview:bottomView];
topView = [[UIView alloc] initWithFrame:CGRectZero];
topView.layer.anchorPoint = CGPointMake(0.5, 0);
topView.frame = CGRectMake(0, 0, size, size);
topView.backgroundColor = [UIColor redColor];
[mainView addSubview:topView];
transform.m34 = 1.0/700.0;
topView.layer.transform = transform;
bottomView.layer.transform = transform;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:INFINITY];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
frame = bottomView.frame;
frame.origin.y = bottomView.frame.origin.y - bottomView.frame.size.height - topView.frame.size.height;
bottomView.frame = frame;
topView.layer.transform = CATransform3DRotate(transform, rotationAngle * M_PI/180, 1, 0, 0);
bottomView.layer.transform = CATransform3DRotate(transform, -rotationAngle * M_PI/180, 1, 0, 0);
[UIView commitAnimations];
}
- (void)viewDidLoad
{
[super viewDidLoad];
[self animate];
}
```
To simplify the problem, let's get rid of any perspective transform. Here is a simpler code with the same kind of issue:
```
- (void)animateWithoutPerspective
{
CGFloat rotationAngle = 90;
UIView *topView;
UIView *bottomView;
UIView *mainView;
CGRect frame;
CGFloat size = 200;
mainView = [[UIView alloc] initWithFrame:CGRectMake(10,10, size, size*2)];
[self.view addSubview:mainView];
bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, size, size, size)];
bottomView.backgroundColor = [UIColor blueColor];
[mainView addSubview:bottomView];
topView = [[UIView alloc] initWithFrame:CGRectZero];
topView.layer.anchorPoint = CGPointMake(0.5, 0);
topView.frame = CGRectMake(10, 0, size-20, size);
topView.backgroundColor = [UIColor redColor];
[mainView addSubview:topView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2];
[UIView setAnimationRepeatAutoreverses:YES];
[UIView setAnimationRepeatCount:INFINITY];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
frame = bottomView.frame;
frame.origin.y = bottomView.frame.origin.y - bottomView.frame.size.height;
bottomView.frame = frame;
topView.layer.transform = CATransform3DMakeRotation(rotationAngle * M_PI/180, 1, 0, 0);
[UIView commitAnimations];
}
```
| Origami transition using CATransform3D perspective | CC BY-SA 2.5 | 0 | 2011-03-28T08:55:02.750 | 2018-05-31T15:17:58.127 | 2011-03-31T10:01:17.653 | 249,869 | 249,869 | [
"iphone",
"animation",
"calayer",
"perspective",
"catransform3d"
]
|
5,456,708 | 1 | 5,456,975 | null | 0 | 1,272 | My config file is
```
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = /Users/voloda2/safe/tut:tut.git
[branch "master"]
remote = origin
merge = refs/heads/master
```
I got an error: git push
ssh: Could not resolve hostname /Users/voloda2/safe/tut: nodename nor servname provided, or not known
## fatal: The remote end hung up unexpectedly

| I want to construct a local Git repository. I am using the config file. I got an error | CC BY-SA 2.5 | null | 2011-03-28T09:00:59.223 | 2011-03-28T09:41:59.450 | 2011-03-28T09:11:02.357 | 241,482 | 499,825 | [
"git",
"macos"
]
|
5,456,721 | 1 | null | null | 1 | 1,253 | In my application, I need to display file system files in a JTable. When I click on the JTree node (which is any system folder), the contents of that folder are shown in the JTable.
In the first column of the JTable (where the name of the file or folder icon is shown), the icon is fetched from the system icon and is displayed.
Every thing is working fine. However, the problem is that when the renderer renders icon, the icon of the first file (first row of JTable) is repeated in all rows. I mean the icon does not change in the subsequent rows of the JTable. Here my code is in which a render gets icon and the model displays it in the JTable
```
class KeyIconCellRenderer extends DefaultTableCellRenderer {
public KeyIconCellRenderer(String ext) {
File file = new File(ext);
Icon icon = FileSystemView.getFileSystemView().getSystemIcon(file);
setIcon(icon);
}
}
```
and here is code where I am using render to display
```
private class Selection implements TreeSelectionListener {
public void valueChanged(TreeSelectionEvent e) {
Object[] myData= new Object[6];
TreePath path = e.getPath();
FileUtil util= new FileUtil();
FileMetaData metaData;
Vector<FileMetaData> vList = new Vector<FileMetaData>();
DefaultMutableTreeNode node = (DefaultMutableTreeNode)treeMainView.getLastSelectedPathComponent();
FileInfo info =(FileInfo)node.getUserObject();
File filePath= info.getFilepath();
vList=util.getChildList(filePath);
dtModel.getDataVector().removeAllElements();
for(int i=0;i<vList.size(); i++){
Vector v= new Vector();
metaData=(FileMetaData)vList.get(i);
v.add(metaData.getName());
tblMainView.getColumnModel().getColumn(0).setCellRenderer(new KeyIconCellRenderer(metaData.getClientpath()));
v.add(metaData.getClientpath());
if(metaData.isDirectory()){
v.add("");
}else
{
v.add((FileHelper.getSizeString(metaData.getSize())));
}
if(metaData.isDirectory()){
v.add("");
}else
{
v.add(new Date(metaData.getTime()));
}
if(metaData.isDirectory()){
v.add("Folder");
}else
{
v.add("File");
}
v.add("Pending Upload");
dtModel.insertRow(0, v);
}
tblMainView.repaint();
}
}
```
as in the attached image, only the icon of the fist file is repeated in all rows,
Please help, it will be a huge favor,
Thanks

| Java: JTable not showing icons properly | CC BY-SA 2.5 | 0 | 2011-03-28T09:02:12.510 | 2011-03-28T17:35:12.933 | 2011-03-28T09:30:52.040 | 41,619 | 614,249 | [
"java",
"swing",
"icons",
"jtable"
]
|
5,456,850 | 1 | 5,517,393 | null | 1 | 1,160 | I have a problem with a `QGrahicsRectItem` in a `QGraphicsScene`. What I would like is to be able to move the item with mouse. But the problem is that in my case, the dragging rectangle is bigger than the item itself.
Here is the code that I use:
```
class Test: public QGraphicsView
{
public:
Test();
private:
virtual void resizeEvent (QResizeEvent * event);
QGraphicsScene* m_pScene;
};
Test::Test()
{
m_pScene = new QGraphicsScene();
setScene(m_pScene);
m_pScene->setSceneRect(0, 0, 100, 100);
for (int i = 0 ; i < 10 ; i++)
{
QGraphicsRectItem * pItem = new QGraphicsRectItem();
pItem->setFlag(QGraphicsItem::ItemIsMovable);
pItem->setBrush(QBrush(QColor(190, 100, 100)));
pItem->setRect(QRectF(10*i, 10, 5, 80.f));
pItem->setCursor(Qt::SizeAllCursor);
m_pScene->addItem(pItem);
}
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
resize(600, 200);
fitInView(scene()->sceneRect());
show();
}
void Test::resizeEvent(QResizeEvent * event)
{
QGraphicsView::resizeEvent(event);
fitInView(scene()->sceneRect());
}
```
So when I run my program I have this window, and I can drag items. All seems OK.

But if I look closer the dragging zone is bigger than the item itself. (see the blue rectangle on following screenshot) The blue rectangle means that If I move the mouse in this rectangle, the cursor changes, and I can drag the item.

I have the feeling that the problem is related to the “fitInView(scene()->sceneRect());” line. If I remove it, then it works.
If I add a ‘scale(5,1)’ for example, there is the same problem.
Do you have an idea of what the problem could be?
| Dragging rectangle bigger than item itself using QGrahicsRectItem | CC BY-SA 3.0 | null | 2011-03-28T09:12:57.127 | 2014-04-30T16:06:06.117 | 2013-05-20T17:13:09.867 | 1,012,641 | 189,248 | [
"qt",
"draggable",
"qgraphicsview",
"qgraphicsitem"
]
|
5,456,976 | 1 | 5,459,253 | null | 1 | 1,991 | I would like to move my cursor to the start of the text in my `ComboBox`.
This is what it looks like at the moment:

I did try the following on the `Closed Event`:
```
cboSomeCombo.Select(cboSomeCombo.Text.Length, 0);
```
The cursor still stays all the way to the right.
| How to move my cursor to the left in in my ComboBox? | CC BY-SA 2.5 | null | 2011-03-28T09:24:41.140 | 2011-03-28T12:52:14.187 | 2011-03-28T09:31:58.077 | 393,879 | 393,879 | [
"wpf",
"text",
"combobox",
"cursor"
]
|
5,457,002 | 1 | 5,457,046 | null | 0 | 157 | I was just playing around with CSS positioning and I have got a few doubts regarding the the elements being rendered in browsers? Would someone please explain to me why this is?

HTML CODE
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="background:#ccc;height:150px;width:300px;">
parent div
<div style="background:#ff0;height:50px;position:absolute;">
child div
</div>
</div>
</body>
</html>
```
1.Why is the child div being displayed in-line with the content of the parent div in IE6 but not in Safari?
2.And when I positioned the child div absolute,it lost its width? But if I specify width:inherit it gets its full width back in Safari but not in IE6[i know inherit is not supported in IE].
Thank You
| CSS positioning inconsistencies in browsers | CC BY-SA 2.5 | null | 2011-03-28T09:27:22.237 | 2011-03-28T09:30:49.560 | null | null | 188,477 | [
"html",
"css"
]
|
5,457,180 | 1 | 5,457,231 | null | 0 | 75 | 
| How do I add wordings in Flash's right-click panel? | CC BY-SA 2.5 | null | 2011-03-28T09:42:18.607 | 2011-03-28T18:11:33.353 | null | null | 577,363 | [
"flash",
"actionscript-3"
]
|
5,457,154 | 1 | 5,467,758 | null | 7 | 5,260 | I'm using Qt 4.7.
I have a model that I display in a `QTableView` in two columns, and my goal is to provide inline editing of this model in my `QTableView`.
```
+-----------------+----------------+
| Axis position | Axis range |
+-----------------+----------------+
| Left | Fixed [0,1] |
| Left | Source: SRC1 |
| Right | Source: SRC2 |
| Left | Fixed [5,10] |
+-----------------+----------------+
```
The first column is editable by using a simple `QComboxBox` to switch between Right and Left, and it works quite well. The problem is with my second column, which is editable using a custom widget.
This widget is kind of simple, it describes a range. So there is a QComboBox to select the kind of range ("Fixed": the values are given by the user, "Source": the value are adjusted dynamically from the min/max of a source).
Here is the source code of my custom widget:
```
class RangeEditor : public QWidget
{
Q_OBJECT
public:
RangeEditor( ... );
~RangeEditor();
public:
CurveView::ConfigAxes::Range range () const;
QVariant minimum() const;
QVariant maximum() const;
DataModel* model () const;
void range ( CurveView::ConfigAxes::Range range );
void minimum( QVariant minimum );
void maximum( QVariant maximum );
void model ( DataModel* model );
public slots:
void rangeTypeChanged( int type );
private: // --- External editors
QComboBox* editRange_;
QSpinBox* editMinimum_;
QSpinBox* editMaximum_;
QComboBox* editModel_;
};
RangeEditor::RangeEditor( ... ) : QWidget(parent)
{
editRange_ = new QComboBox(this);
editMinimum_ = new QSpinBox (this);
editMaximum_ = new QSpinBox (this);
editModel_ = new QComboBox(this);
QHBoxLayout* layout = new QHBoxLayout();
setLayout(layout);
layout->addWidget( editRange_ );
layout->addWidget( editMinimum_ );
layout->addWidget( editMaximum_ );
layout->addWidget( editModel_ );
editRange_->addItem( "Fixed" );
editRange_->addItem( "Source" );
editModel_->setCurrentIndex(0);
editModel_->hide();
QObject::connect( editRange_, SIGNAL(currentIndexChanged(int)),
this, SLOT (rangeTypeChanged(int)) );
}
void RangeEditor::rangeTypeChanged( int type )
{
if ( type==CurveView::ConfigAxes::FIXED )
{
editMinimum_->show();
editMaximum_->show();
editModel_->hide();
}
else if ( type==CurveView::ConfigAxes::SOURCE )
{
editMinimum_->hide();
editMaximum_->hide();
editModel_->show();
}
}
```
Okay, so now, I created a QStyledItemDelegate to provide the view a custom editor for my columns. Here is how I did it:
```
class ConfigAxesDelegate : public QStyledItemDelegate
{
public:
ConfigAxesDelegate( ... );
~ConfigAxesDelegate();
public:
virtual QWidget* createEditor ( QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
virtual void setEditorData ( QWidget* editor, const QModelIndex& index ) const;
virtual void setModelData ( QWidget* editor, QAbstractItemModel* model, const QModelIndex& index ) const;
virtual void updateEditorGeometry( QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
};
QWidget* ConfigAxesDelegate::createEditor( QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
if ( index.column()==0 ) // Position
{
PositionEditor* editor = new PositionEditor(parent);
return editor;
}
else if ( index.column()==1 ) // Range
{
RangeEditor* editor = new RangeEditor(parent);
return editor;
}
else
{
return QStyledItemDelegate::createEditor(parent,option,index);
}
}
void ConfigAxesDelegate::updateEditorGeometry( QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
// WHAT TO DO HERE?
editor->setGeometry( option.rect );
}
```
Basically, what I get is a single pixel height editor.
Here is a screenshot of the result:
I tried to changed `updateEditorGeometry` to the following:
```
void ConfigAxesDelegate::updateEditorGeometry( QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index ) const
{
QRect r = option.rect;
r.setSize( editor->sizeHint() );
editor->setGeometry( r );
}
```
Which seems to fix the size problem, but not the position:

I feel kind of lost since I don't know if the problem comes from my custom widget (not providing enough information for Qt to compute its position properly), or the view (maybe some margins that would crush the editor size), or the `updateEditorGeometry()` method.
Any help greatly appreciated, thanks for reading!
| QStyledItemDelegate - How does updateEditorGeometry works? | CC BY-SA 2.5 | 0 | 2011-03-28T09:40:03.393 | 2011-03-29T04:04:07.703 | null | null | 158,049 | [
"qt",
"widget",
"qwidget"
]
|
5,457,226 | 1 | 5,457,604 | null | 0 | 2,195 | I'm trying to read a file from the SD card and I've been told it's in unicode format. However, when I try to read the file I get the following:

This is the code I'm using to read the file:
```
InputStreamReader fw = new InputStreamReader(new FileInputStream(root.getAbsolutePath()+"/Drive/sdk/cmd.62.out"), "UTF-8");
char[] buf = new char[255];
fw.read(buf);
String readString = new String(buf);
Log.d("courierread",readString);
fw.close();
```
If I write that output to a file this is what I get when I open it in a hex editor:

Any thoughts on what I need to do to read the file correctly?
| Android read file encoding issue | CC BY-SA 2.5 | 0 | 2011-03-28T09:45:53.673 | 2011-03-28T12:31:27.777 | 2011-03-28T12:18:23.893 | 471,628 | 471,628 | [
"java",
"android",
"encoding"
]
|
5,457,320 | 1 | 5,458,202 | null | 1 | 744 | How I can get information about indexes of system views.
I write this query and look at execution plan.I saw it used Index scan rather Index seek.Any one know why?
```
SELECT OBJECT_NAME(OBJECT_ID) TableName, st.row_count
FROM sys.dm_db_partition_stats st
WHERE index_id < 2 AND OBJECT_NAME(OBJECT_ID)='Mytbl'
```

| How to get Information about indexes of system views | CC BY-SA 2.5 | 0 | 2011-03-28T09:55:57.747 | 2011-03-28T17:31:49.187 | 2011-03-28T17:31:49.187 | 648,723 | 648,723 | [
"sql-server",
"sql-server-2005",
"sql-server-2008"
]
|
5,457,421 | 1 | 5,459,198 | null | 1 | 4,508 | I want to make a simple datatable just with the pagination feature, but i have 2 problems:
1- The data is displayed but the paginator is not shown in the browser(I tried IE and chrome)
```
<p:dataTable var="garbage" value="#{resultsController.allGarbage}" paginator="true" rows="10">
<p:column>
<f:facet name="header">
<h:outputText value="Filename" />
</f:facet>
<h:outputText value="#{garbage.filename}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Description" />
</f:facet>
<h:outputText value="#{garbage.description}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Upload date" />
</f:facet>
<h:outputText value="#{garbage.uploadDate}" />
</p:column>
</p:dataTable>
```
2- In google chrome paginator still is not displayed and also i see some extrange dialog every time i refresh:

Does this mean that primefaces is not compatible with chrome?
------------------------UPDATE 1------------------------------
This is how it looks the hold page:
```
<ui:composition template="WEB-INF/templates/BasicTemplate.xhtml">
<ui:define name="resultsForm">
<h:form enctype="multipart/form-data">
<h:inputText id="search" value="" /><h:commandButton value="search"/>
<h:selectOneRadio id="searchFilter" value="" >
<f:selectItem id="r1" itemLabel="text documents(.pdf, .docx ...)" />
<f:selectItem id="r2" itemLabel="audio(.mp3,.wav...)" />
<f:selectItem id="r3" itemLabel="multimedia(.mpeg,flv...)" />
<f:selectItem id="r4" itemLabel="other..." />
</h:selectOneRadio>
<p:dataTable var="garbage" value="#{resultsController.allGarbage}" paginator="true" rows="10"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10,15">
<p:column>
<f:facet name="header">
<h:outputText value="Filename" />
</f:facet>
<h:outputText value="#{garbage.filename}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Description" />
</f:facet>
<h:outputText value="#{garbage.description}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Upload date" />
</f:facet>
<h:outputText value="#{garbage.uploadDate}" />
</p:column>
</p:dataTable>
</h:form>
</ui:define>
```
------------------------UPDATE 2------------------------------
This image is how the component is displayed in chrome and how the chrome consoles displays an error:

| (JSF 2.0) Problems with primefaces dataTable component. | CC BY-SA 2.5 | 0 | 2011-03-28T10:06:59.930 | 2011-03-28T12:47:48.070 | 2011-03-28T11:25:28.647 | 614,141 | 614,141 | [
"java",
"jsf",
"browser",
"jakarta-ee",
"jsf-2"
]
|
5,457,468 | 1 | null | null | 1 | 2,562 | I need to set the "Read & Execute" flag for a file. Since Ant's [chmod task](http://ant.apache.org/manual/Tasks/chmod.html) can't do this, is there another way to do it with Ant? Maybe using [Exec](http://ant.apache.org/manual/Tasks/exec.html) and use the windows specific command?
I need to set the "Read & execute" flag, you can see on the screenshot below.

| How to set the windows "Read & Execute" permisson flag with Ant? | CC BY-SA 2.5 | null | 2011-03-28T10:12:02.740 | 2011-03-28T14:14:05.963 | 2011-03-28T13:24:35.227 | 60,518 | 60,518 | [
"windows",
"ant",
"chmod"
]
|
5,457,544 | 1 | 5,457,576 | null | 2 | 57 | I know I can just use margins and padding to accomplish what I want. But, that seems a little... I dunno, strange I guess. I just feel that there is a more... structured? way of doing this?
Here's what I want to do:

How would you suggest I go about doing this? Any advice is appreciated.
Thank you!
| What's the best approach to this type of layout? | CC BY-SA 2.5 | null | 2011-03-28T10:18:53.903 | 2011-03-28T10:32:29.893 | null | null | null | [
"layout",
"html",
"css"
]
|
5,457,674 | 1 | null | null | 0 | 179 | I need to make a custom view as shown in diagram, which needs to functional like radio button, any of the options needs to be selected. How can I achieve this? I don`t want to use series of buttons.

| Custom View in android/ | CC BY-SA 2.5 | 0 | 2011-03-28T10:29:55.640 | 2011-05-12T20:36:26.707 | 2011-03-28T10:38:59.377 | 473,070 | 555,806 | [
"android",
"android-widget"
]
|
5,457,931 | 1 | null | null | 1 | 1,148 | I'm looking for a component like this one (from gmail)
Can I do something like that with jquery ?
Regards

| jquery checkbox like gmail | CC BY-SA 2.5 | 0 | 2011-03-28T10:53:26.947 | 2013-03-21T10:33:19.237 | null | null | 547,706 | [
"jquery",
"html"
]
|
5,458,651 | 1 | 5,458,797 | null | 2 | 131 | Could you please explain why the Output window does not print the "xxxxx" part of the string?
Looks like I'm missing some basic understanding about something...?
I'm sending string messages over TcpClient, and when building the strings, I don't add any special characters on the sender side, and neither on the receiver side. Is this part of the problem?
[http://i56.tinypic.com/9lg7pi.png](http://i56.tinypic.com/9lg7pi.png)

---
I'm building my strings at the sender side like this:
```
Private Sub SendData(ByVal stringArray As String())
SendData(GetMessageString(stringArray))
End Sub
Public Function GetMessageString(ByVal array As String()) As String
Dim str As String = ""
For i = 0 To array.Length - 1
str = str & array(i)
If i < array.Length - 1 Then
str = str & "|"
End If
Next
Return str
End Function
```
And on receiving side, the variable is built:
```
client.GetStream.BeginRead(readBodyBuffer, 0, MESSAGE_BODY_LENGTH, New AsyncCallback(AddressOf ReadBody), Nothing)
...
Private Sub ReadBody(ByVal aread As IAsyncResult)
BytesRead = client.GetStream.EndRead(aread)
...
' Read (add) into buffer
messagePart = Encoding.ASCII.GetString(readBodyBuffer)
messagePart = messagePart & "xxxxx"
```
---
My simple mistake was wrong use of Redim of the byte array:
(parameter 10 gives 11 elements)
Wrong:
```
ReDim readBodyBuffer(MESSAGE_BODY_LENGTH)
```
Correct:
```
ReDim readBodyBuffer(MESSAGE_BODY_LENGTH - 1)
```
| String not printing as expected | CC BY-SA 2.5 | null | 2011-03-28T11:58:06.027 | 2011-03-28T14:20:38.533 | 2011-03-28T14:20:38.533 | 445,533 | 445,533 | [
".net",
"vb.net",
"string",
"tcpclient"
]
|
5,459,168 | 1 | 5,460,938 | null | 28 | 16,121 | I want to display three buttons in the middle of a screen, and have the three buttons all be the same width, though they will have text labels of different lengths.
Just adding three buttons with text labels of different lengths produces buttons of different widths.
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center">
<Button
android:id="@+id/button_1"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:text="ABCDEF" />
<Button
android:id="@+id/button_2"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:text="GHI" />
<Button
android:id="@+id/button_3"
android:layout_height="fill_parent"
android:layout_width="wrap_content"
android:text="JKLM" />
</LinearLayout>
```
default button width wraps contents:

--
Setting the layout_weight to 1 and the layout_width to 0dip on all the buttons causes them to stretch equally to fill the entire screen width. For what I want, such buttons are simply too big, especially on large screens.
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center">
<Button
android:id="@+id/button_1"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="ABCDEF" />
<Button
android:id="@+id/button_2"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="GHI" />
<Button
android:id="@+id/button_3"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="JKLM" />
</LinearLayout>
```
layout weight 1 buttons fill screen width:

--
Setting different values for weightSum in the parent LinearLayout can be used to stop the buttons from filling the entire screen, but I don't think this is the path I want to take, because I don't want the buttons to occupy a large portion of the screen on large screen devices. To clarify, using weightSum, I could, for example, set the three buttons to collectively occupy half the screen width, which may look OK on small screens, but on a large screen, the buttons would still occupy half the screen width, and the buttons would simply be much larger than what I want. Perhaps the final solution will be to simply have different layout files for different screens, but I'd rather not go down this path.
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:gravity="center"
android:weightSum="5">
<Button
android:id="@+id/button_1"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="ABCDEF" />
<Button
android:id="@+id/button_2"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="GHI" />
<Button
android:id="@+id/button_3"
android:layout_height="fill_parent"
android:layout_width="0dip"
android:layout_weight="1"
android:text="JKLM" />
</LinearLayout>
```
weight sum 5 small screen:

weight sum 5 large screen:

--
I also tried many things with TableLayout, but didn't get anything better than just using LinearLayout.
GridView is extra-clumsy to use, and I haven't tried it, yet.
So, how does one create buttons with equal widths, preferrably where they are only as wide as necessary to fit the contents of the button with the longest label?
Any advice is appreciated.
(I did search and find this question asked and answered many times, but none of the answers I found resolved what I'm trying to achieve.)
| How does one create Buttons with Equal Widths? | CC BY-SA 3.0 | 0 | 2011-03-28T12:45:17.430 | 2018-12-27T05:13:40.843 | 2012-10-15T19:37:32.123 | 1,236,185 | 519,818 | [
"android",
"user-interface",
"button",
"android-layout"
]
|
5,459,341 | 1 | null | null | 3 | 2,847 | This is a follow up to [Dendrogram generated by scipy-cluster does not show](https://stackoverflow.com/q/2967858/188368).
```
from matplotlib.pyplot import show
from scipy.spatial.distance import pdist
from scipy.cluster.hierarchy import linkage, dendrogram
from numpy.random import rand
X = rand( 5, 3 )
X[0:5, :] *= 2
Y = pdist( X )
Z = linkage( Y )
dendrogram( Z )
show()
```
when `dendrogram()` returns a dictionary with keys `ivl, leaves, color_list, icoord` that `pyplot` is picking up. How can I modify the labels and the leaf length before they are passed to `pyplot`?
Doing something like:
```
d=dendrogram( Z )
d['leaves']=['label1','label2','label3','label4','label5']
```
does not seem to affect it.
The leaf length should be something like this:

| Dendrogram generated by scipy-cluster customisation | CC BY-SA 3.0 | null | 2011-03-28T13:00:50.663 | 2012-09-30T22:05:53.850 | 2017-05-23T12:07:01.740 | -1 | 188,368 | [
"python",
"matplotlib",
"scipy",
"dendrogram"
]
|
5,459,382 | 1 | 5,468,609 | null | 1 | 2,956 | This is the error which I get after my macro executes for about 10 mins. The macro is basically performing the task to update the MySQL database every five seconds.

What could be wrong?
My macro is as below:
```
Public RunWhen As Double
Public Const cRunIntervalSeconds = 10 ' five seconds
Public Const cRunWhat = "UpdateMarketData" ' the name of the procedure to run
Sub UpdateMarketData()
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rad = 0
TextStrang = TextStrang & "'"
field2 = "cid"
field1 = "bid"
table1 = "MMbanner"
For rowCursor = 3 To 4
SQLStr = "UPDATE tbl_MarketData SET Mid = '" & Cells(rowCursor, 2) & "',Bid = '" & Cells(rowCursor, 5) & "',Offer = '" & Cells(rowCursor, 6) & "',DateEntered = '" & Format(DateTime.Now(), "yyyy-MM-dd hh:mm:ss") & "' WHERE IndexCode = '" & Cells(rowCursor, 1) & "'"
Debug.Print SQLStr
Set Cn = New ADODB.Connection
Cn.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER=<Servername>; PORT=Portno; DATABASE=Databasename; USER=Username; PASSWORD=Password; OPTION=0;"
Cn.Execute SQLStr
rad = rad + 1
Next
Set rs = Nothing
Cn.Close
Set Cn = Nothing
Call StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, _
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, _
Schedule:=False
End Sub
```
| Error in VBA: Lost Connection to MySQL Server at 'reading authorization packet',system error 2 | CC BY-SA 3.0 | null | 2011-03-28T13:04:59.290 | 2017-09-10T17:40:59.960 | 2017-09-10T17:40:59.960 | 472,495 | 463,857 | [
"mysql",
"excel",
"vba"
]
|
5,459,479 | 1 | 5,459,501 | null | 1 | 2,459 | i am placing a toolbar at the top of my view with edit button.
For edit button i am giving action like edit the table as shown below.
```
- (IBAction)editModeForTable {
[tableview setEditing:YES animated:YES];
NSLog(@"edit button clicked ");
}
```
Now what i need is when i click on edit button i need to change this edit button to done button.

this is myscreen.
when ever i click on edit i need to set edit mode for table and change edit button to done.
similarly when ever i click on done button i need to change that done to edit button and edit mode should be false.
```
- (IBAction)editModeForTable {
if (buttonClickid == 1) {
[allLIsts setEditing:YES animated:YES];
mybutton.style = UIBarButtonSystemItemDone;
mybutton.title = @"Done";
buttonClickid = 2;
NSLog(@"mmm");
}
if (buttonClickid == 2) {
[allLIsts setEditing:NO animated:YES];
mybutton.style = UIBarButtonSystemItemEdit;
mybutton.title = @"Edit";
buttonClickid = 1;
NSLog(@"ppp");
}
NSLog(@"edit button clicked ");
}
```
this is button action where buttonclickid is int.
it executes both conditions why?
| how to change barbuttonitem from edit to done | CC BY-SA 2.5 | null | 2011-03-28T13:13:27.007 | 2011-03-28T14:25:51.797 | 2011-03-28T14:23:31.743 | 699,226 | 699,226 | [
"iphone"
]
|
5,459,651 | 1 | 5,474,096 | null | 1 | 450 | When I run try to access a website using prototype on internet explorer I'm getting the following errors:



Does anyone know what it could be coming from ?
| Errors with Prototype.js on Internet Explorer | CC BY-SA 2.5 | 0 | 2011-03-28T13:26:55.830 | 2011-12-27T17:34:32.140 | 2011-12-27T17:34:32.140 | 938,089 | 83,475 | [
"javascript",
"internet-explorer-7",
"cross-browser",
"prototypejs"
]
|
5,459,894 | 1 | 5,519,362 | null | 6 | 10,519 | I'm trying to get the coordinates of an element on a page. I've been using the standard way to obtain it:
```
var el = element, pos = {x: 0, y: 0};
while ( el ) {
pos.x += el.offsetLeft;
pos.y += el.offsetTop;
el = el.offsetParent;
}
```
But this method fails when the element in question has `display: block`, and one of the offsetParents has `display: inline;`. This is due to the fact described in [this thread](https://stackoverflow.com/questions/995838/left-offset-of-an-inline-element-using-jquery):

After some trying with jQuery it turns out that their `.offset()`-method returns the correct offset, and I've looked through the source but not found exactly how they do it. So my question is: how do I get the exact position? I can't use jQuery for this project, and the method in [the thread described earlier](https://stackoverflow.com/questions/995838/left-offset-of-an-inline-element-using-jquery) is to cumbersome, adding an element and testing is too much work (performance perspective), and using `Element.getBoundingClientRect` is not available either.
If you feel like trying it out you can go to [Apple.com](http://apple.com) open your debugger of choice and type in the following:
```
var el, el2;
el = el2 = document.querySelector('#worldwide span');
var pos = {x: 0, y: 0};
while ( el2 ) {
pos.x += el2.offsetLeft;
pos.y += el2.offsetTop;
el2 = el2.offsetParent;
}
alert("Calculated position: " + pos.x + "x" + pos.y + " window size: " + screen.width + "x" + screen.height);
```
With this code I get: `Calculated position: 1354x988 window size: 1280x800` (ie. the offset left is way of the screen, which it clearly isn't)
How is this possible? Any work-around ideas? Approximations? It does not have to be exact, but it has to be better than before. Thanks.
Edit: This is for the WebKit rendering engine, to clarify.
| Get real offset left/top of element with inline offsetparent | CC BY-SA 2.5 | 0 | 2011-03-28T13:46:29.080 | 2014-01-06T13:45:18.880 | 2017-05-23T11:45:38.073 | -1 | 224,732 | [
"jquery",
"html",
"css",
"dom",
"offset"
]
|
5,460,020 | 1 | 5,599,000 | null | 0 | 174 | I need to write the following component in WPF:

It should be over image, I should able to drag the lines with the mouse (drag X up and down, drag Y left and right, and Z spin from horizontal to vertical)
My backround in WPF is almost not exist,
Can you give me guidliness? do you know component that doing it, or something similar to that?
Do you know what is the name of this control?
Thanks.
| Help needed in drawing 3D scrollbars | CC BY-SA 2.5 | null | 2011-03-28T13:55:49.030 | 2011-04-08T18:02:04.533 | 2011-03-28T14:36:59.370 | 505,931 | 505,931 | [
"wpf",
"wpf-controls"
]
|
5,460,199 | 1 | 5,460,402 | null | 0 | 3,105 | I am trying to get the file version using C#:
```
string file = @"C:\somefile.dll";
Console.WriteLine(FileVersionInfo.GetVersionInfo(file).FileVersion);
```
For most files this is fine, however for some i receive results that are different than the ones presented in the Windows file explorer.
See the attached image: the file version presented in windows is "0.0.0.0", however the one i get using FileVersion property is "000.000.000.000".
I've tried using different versions of the .NET (2, 3.5, 4) which give the same results.
Anyone else experienced this issue?
Thanks
Lior

| FileVersionInfo.FileVersion returns ProductVersion? | CC BY-SA 2.5 | null | 2011-03-28T14:09:31.427 | 2011-03-28T14:30:05.173 | null | null | 494,143 | [
"c#",
".net",
"getfileversion"
]
|
5,460,107 | 1 | 5,541,689 | null | 9 | 7,713 | I added a "Service Reference" to a vendor's Java based web service which i have no control over.
I have this simple client code:
```
Client myClient = new Client();
CapabilitiesType response = client.GetCapabilities(new GetCapabilitiesType1());
myClient.Close();
litCapabilities.Text = response.version;
```
Which generates the following SOAP evelope:
```
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header></s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetCapabilities xmlns="http://www.opengis.net/cat/csw/2.0.2"></GetCapabilities>
</s:Body>
</s:Envelope>
```
So far so good, the above i got from Trace Viewer. Using both SoapUI and Trace Viewer, i can verify that i'm getting the correct response:
```
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header></SOAP-ENV:Header>
<SOAP-ENV:Body>
<wrs:Capabilities xmlns:wrs="http://www.opengis.net/cat/wrs/1.0" xmlns:csw="http://www.opengis.net/cat/csw" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengeospatial.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>EarthObservation ebRIM Catalogue</ows:Title>
<ows:Abstract>
A web-based catalogue service that implements the CSW-ebRIM profile of the OGC Catalogue 2.0 specification, and the EO Extension Package
</ows:Abstract>
<ows:Keywords>
<ows:Keyword>registry</ows:Keyword>
<ows:Keyword>catalogue</ows:Keyword>
<ows:Keyword>ebRIM</ows:Keyword>
<ows:Keyword>earth observation</ows:Keyword>
</ows:Keywords>
<ows:ServiceType>urn:ogc:service:catalogue:csw-ebrim</ows:ServiceType>
<ows:ServiceTypeVersion>2.0.2</ows:ServiceTypeVersion>
<ows:Fees>NONE</ows:Fees>
</ows:ServiceIdentification>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="sections">
<ows:Value>ServiceIdentification</ows:Value>
<ows:Value>ServiceProvider</ows:Value>
<ows:Value>OperationsMetadata</ows:Value>
<ows:Value>Filter_Capabilities</ows:Value>
<ows:Value>ServiceProperties</ows:Value>
</ows:Parameter>
<ows:Parameter name="AcceptVersions">
<ows:Value>2.0.2</ows:Value>
</ows:Parameter>
<ows:Parameter name="AcceptFormats">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="GetRecords">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="resultType">
<ows:Value>hits</ows:Value>
<ows:Value>results</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputSchema">
<ows:Value>urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0</ows:Value>
</ows:Parameter>
<ows:Parameter name="startPosition">
<ows:DefaultValue>1</ows:DefaultValue>
</ows:Parameter>
<ows:Parameter name="maxRecords">
<ows:DefaultValue>10</ows:DefaultValue>
</ows:Parameter>
<ows:Parameter name="TypeNames">
<ows:Value>rim:RegistryObject</ows:Value>
<ows:Value>rim:Association</ows:Value>
<ows:Value>rim:Classification</ows:Value>
<ows:Value>rim:ClassificationNode</ows:Value>
<ows:Value>rim:ClassificationScheme</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOProduct</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOAcquisitionPlatform</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOBrowseInformation</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOArchivingInformation</ows:Value>
</ows:Parameter>
<ows:Parameter name="ElementName"></ows:Parameter>
<ows:Parameter name="ElementSetName">
<ows:Value>brief</ows:Value>
<ows:Value>summary</ows:Value>
<ows:Value>full</ows:Value>
</ows:Parameter>
<ows:Parameter name="CONSTRAINTLANGUAGE">
<ows:Value>FILTER</ows:Value>
</ows:Parameter>
<ows:Parameter name="DistributedSearch">
<ows:Value>FALSE</ows:Value>
</ows:Parameter>
<ows:Parameter name="constraint"></ows:Parameter>
<ows:Parameter name="SortBy"></ows:Parameter>
</ows:Operation>
<ows:Operation name="GetRecordById">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="Id">
<ows:Value></ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputSchema">
<ows:Value>urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0</ows:Value>
</ows:Parameter>
<ows:Parameter name="ElementSetName">
<ows:Value>brief</ows:Value>
<ows:Value>summary</ows:Value>
<ows:Value>full</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="DescribeRecord">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="TypeNames">
<ows:Value>rim:RegistryObject</ows:Value>
<ows:Value>rim:Association</ows:Value>
<ows:Value>rim:Classification</ows:Value>
<ows:Value>rim:ClassificationNode</ows:Value>
<ows:Value>rim:ClassificationScheme</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOProduct</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOAcquisitionPlatform</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOBrowseInformation</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOArchivingInformation</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="schemaLanguage">
<ows:Value>http://www.w3.org/TR/xmlschema-1</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Parameter name="service">
<ows:Value>CSW</ows:Value>
</ows:Parameter>
<ows:Parameter name="version">
<ows:Value>2.0.2</ows:Value>
</ows:Parameter>
<ows:ExtendedCapabilities xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
<rim:Slot name="urn:ogc:def:ebRIM-Slot:OGC-06-131:parentIdentifier " slotType="urn:oasis:names:tc:ebxml-regrep:DataType:String">
<rim:ValueList>
<rim:Value>urn:ogc:def:EOP:xxx-GSI:RSAT2_SEGMENTS</rim:Value>
</rim:ValueList>
</rim:Slot>
</ows:ExtendedCapabilities>
</ows:OperationsMetadata>
<ogc:Filter_Capabilities xmlns:gml="http://www.opengis.net/gml">
<ogc:Spatial_Capabilities>
<ogc:GeometryOperands>
<ogc:GeometryOperand>gml:Envelope</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:Point</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:LineString</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:Polygon</ogc:GeometryOperand>
</ogc:GeometryOperands>
<ogc:SpatialOperators>
<ogc:SpatialOperator name="BBOX"></ogc:SpatialOperator>
<ogc:SpatialOperator name="Overlaps"></ogc:SpatialOperator>
</ogc:SpatialOperators>
</ogc:Spatial_Capabilities>
<ogc:Scalar_Capabilities>
<ogc:LogicalOperators></ogc:LogicalOperators>
<ogc:ComparisonOperators>
<ogc:ComparisonOperator>LessThan</ogc:ComparisonOperator>
<ogc:ComparisonOperator>GreaterThan</ogc:ComparisonOperator>
<ogc:ComparisonOperator>LessThanEqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>GreaterThanEqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>NotEqualTo</ogc:ComparisonOperator>
</ogc:ComparisonOperators>
<ogc:ArithmeticOperators>
<ogc:SimpleArithmetic></ogc:SimpleArithmetic>
</ogc:ArithmeticOperators>
</ogc:Scalar_Capabilities>
</ogc:Filter_Capabilities>
<wrs:ServiceProperties>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/extension-packages">
<wrs:value>urn:ogc:specification:csw-ebrim:ext-pkg:Basic</wrs:value>
<wrs:value>urn:x-ogc:specification:csw-ebrim:package:EOProducts</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/query-languages">
<wrs:value>http://www.opengis.net/ogc</wrs:value>
<wrs:value>http://www.w3.org/TR/xpath</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/mime-types">
<wrs:value>application/xml</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/temporal-ref-systems">
<wrs:value>urn:ogc:def:trs:ISO-8601:2000</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/spatial-ref-systems">
<wrs:value> urn:ogc:def:crs:EPSG:6.3:4326</wrs:value>
</wrs:property>
</wrs:ServiceProperties>
<wrs:WSDL-services xlink:href="http://999.999.999.999:8080/hma/ws/hma.wsdl" xlink:role="http://www.w3.org/2005/08/wsdl" xlink:title="HMA RSAT-2 Web Service End point" xlink:type="simple"></wrs:WSDL-services>
</wrs:Capabilities>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header></SOAP-ENV:Header>
<SOAP-ENV:Body>
<wrs:Capabilities xmlns:wrs="http://www.opengis.net/cat/wrs/1.0" xmlns:csw="http://www.opengis.net/cat/csw" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengeospatial.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>EarthObservation ebRIM Catalogue</ows:Title>
<ows:Abstract>
A web-based catalogue service that implements the CSW-ebRIM profile of the OGC Catalogue 2.0 specification, and the EO Extension Package
</ows:Abstract>
<ows:Keywords>
<ows:Keyword>registry</ows:Keyword>
<ows:Keyword>catalogue</ows:Keyword>
<ows:Keyword>ebRIM</ows:Keyword>
<ows:Keyword>earth observation</ows:Keyword>
</ows:Keywords>
<ows:ServiceType>urn:ogc:service:catalogue:csw-ebrim</ows:ServiceType>
<ows:ServiceTypeVersion>2.0.2</ows:ServiceTypeVersion>
<ows:Fees>NONE</ows:Fees>
</ows:ServiceIdentification>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="sections">
<ows:Value>ServiceIdentification</ows:Value>
<ows:Value>ServiceProvider</ows:Value>
<ows:Value>OperationsMetadata</ows:Value>
<ows:Value>Filter_Capabilities</ows:Value>
<ows:Value>ServiceProperties</ows:Value>
</ows:Parameter>
<ows:Parameter name="AcceptVersions">
<ows:Value>2.0.2</ows:Value>
</ows:Parameter>
<ows:Parameter name="AcceptFormats">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="GetRecords">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="resultType">
<ows:Value>hits</ows:Value>
<ows:Value>results</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputSchema">
<ows:Value>urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0</ows:Value>
</ows:Parameter>
<ows:Parameter name="startPosition">
<ows:DefaultValue>1</ows:DefaultValue>
</ows:Parameter>
<ows:Parameter name="maxRecords">
<ows:DefaultValue>10</ows:DefaultValue>
</ows:Parameter>
<ows:Parameter name="TypeNames">
<ows:Value>rim:RegistryObject</ows:Value>
<ows:Value>rim:Association</ows:Value>
<ows:Value>rim:Classification</ows:Value>
<ows:Value>rim:ClassificationNode</ows:Value>
<ows:Value>rim:ClassificationScheme</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOProduct</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOAcquisitionPlatform</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOBrowseInformation</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOArchivingInformation</ows:Value>
</ows:Parameter>
<ows:Parameter name="ElementName"></ows:Parameter>
<ows:Parameter name="ElementSetName">
<ows:Value>brief</ows:Value>
<ows:Value>summary</ows:Value>
<ows:Value>full</ows:Value>
</ows:Parameter>
<ows:Parameter name="CONSTRAINTLANGUAGE">
<ows:Value>FILTER</ows:Value>
</ows:Parameter>
<ows:Parameter name="DistributedSearch">
<ows:Value>FALSE</ows:Value>
</ows:Parameter>
<ows:Parameter name="constraint"></ows:Parameter>
<ows:Parameter name="SortBy"></ows:Parameter>
</ows:Operation>
<ows:Operation name="GetRecordById">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="Id">
<ows:Value></ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputSchema">
<ows:Value>urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0</ows:Value>
</ows:Parameter>
<ows:Parameter name="ElementSetName">
<ows:Value>brief</ows:Value>
<ows:Value>summary</ows:Value>
<ows:Value>full</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Operation name="DescribeRecord">
<ows:DCP>
<ows:HTTP>
<ows:Post xlink:href="http://999.999.999.999:8080/hma/ws/"></ows:Post>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="TypeNames">
<ows:Value>rim:RegistryObject</ows:Value>
<ows:Value>rim:Association</ows:Value>
<ows:Value>rim:Classification</ows:Value>
<ows:Value>rim:ClassificationNode</ows:Value>
<ows:Value>rim:ClassificationScheme</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOProduct</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOAcquisitionPlatform</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOBrowseInformation</ows:Value>
<ows:Value>urn:x-ogc:specification:csw-ebrim:ObjectType:EO:EOArchivingInformation</ows:Value>
</ows:Parameter>
<ows:Parameter name="outputFormat">
<ows:Value>application/xml</ows:Value>
</ows:Parameter>
<ows:Parameter name="schemaLanguage">
<ows:Value>http://www.w3.org/TR/xmlschema-1</ows:Value>
</ows:Parameter>
</ows:Operation>
<ows:Parameter name="service">
<ows:Value>CSW</ows:Value>
</ows:Parameter>
<ows:Parameter name="version">
<ows:Value>2.0.2</ows:Value>
</ows:Parameter>
<ows:ExtendedCapabilities xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
<rim:Slot name="urn:ogc:def:ebRIM-Slot:OGC-06-131:parentIdentifier " slotType="urn:oasis:names:tc:ebxml-regrep:DataType:String">
<rim:ValueList>
<rim:Value>urn:ogc:def:EOP:xxx-GSI:RSAT2_SEGMENTS</rim:Value>
</rim:ValueList>
</rim:Slot>
</ows:ExtendedCapabilities>
</ows:OperationsMetadata>
<ogc:Filter_Capabilities xmlns:gml="http://www.opengis.net/gml">
<ogc:Spatial_Capabilities>
<ogc:GeometryOperands>
<ogc:GeometryOperand>gml:Envelope</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:Point</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:LineString</ogc:GeometryOperand>
<ogc:GeometryOperand>gml:Polygon</ogc:GeometryOperand>
</ogc:GeometryOperands>
<ogc:SpatialOperators>
<ogc:SpatialOperator name="BBOX"></ogc:SpatialOperator>
<ogc:SpatialOperator name="Overlaps"></ogc:SpatialOperator>
</ogc:SpatialOperators>
</ogc:Spatial_Capabilities>
<ogc:Scalar_Capabilities>
<ogc:LogicalOperators></ogc:LogicalOperators>
<ogc:ComparisonOperators>
<ogc:ComparisonOperator>LessThan</ogc:ComparisonOperator>
<ogc:ComparisonOperator>GreaterThan</ogc:ComparisonOperator>
<ogc:ComparisonOperator>LessThanEqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>GreaterThanEqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator>
<ogc:ComparisonOperator>NotEqualTo</ogc:ComparisonOperator>
</ogc:ComparisonOperators>
<ogc:ArithmeticOperators>
<ogc:SimpleArithmetic></ogc:SimpleArithmetic>
</ogc:ArithmeticOperators>
</ogc:Scalar_Capabilities>
</ogc:Filter_Capabilities>
<wrs:ServiceProperties>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/extension-packages">
<wrs:value>urn:ogc:specification:csw-ebrim:ext-pkg:Basic</wrs:value>
<wrs:value>urn:x-ogc:specification:csw-ebrim:package:EOProducts</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/query-languages">
<wrs:value>http://www.opengis.net/ogc</wrs:value>
<wrs:value>http://www.w3.org/TR/xpath</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/mime-types">
<wrs:value>application/xml</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/temporal-ref-systems">
<wrs:value>urn:ogc:def:trs:ISO-8601:2000</wrs:value>
</wrs:property>
<wrs:property name="http://www.opengis.net/cat/wrs/properties/spatial-ref-systems">
<wrs:value> urn:ogc:def:crs:EPSG:6.3:4326</wrs:value>
</wrs:property>
</wrs:ServiceProperties>
<wrs:WSDL-services xlink:href="http://999.999.999.999:8080/hma/ws/hma.wsdl" xlink:role="http://www.w3.org/2005/08/wsdl" xlink:title="HMA RSAT-2 Web Service End point" xlink:type="simple"></wrs:WSDL-services>
</wrs:Capabilities>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
```
But somehow this data is not making it's way back to my client code. Most properties within the response object are NULL.

Based on the SOAP response, The one property of response object that is not NULL is wrong (response.version) it should be "2.0.2" and not "1.0.0"
| SOAP xml response received but not populating response object | CC BY-SA 2.5 | null | 2011-03-28T14:01:54.993 | 2011-04-04T17:43:45.137 | 2020-06-20T09:12:55.060 | -1 | 442,580 | [
"c#",
".net",
"web-services",
"soap"
]
|
5,460,399 | 1 | 5,461,021 | null | 1 | 1,585 | Anyone know how I can return the following information from my Google analytics account using [GAPI](http://code.google.com/p/gapi-google-analytics-php-interface/)?

| Using GAPI to return list of pages with percentage of views | CC BY-SA 2.5 | 0 | 2011-03-28T14:23:53.260 | 2011-03-28T15:09:59.993 | null | null | 161,056 | [
"php",
"api",
"google-analytics"
]
|
5,460,431 | 1 | 5,461,293 | null | 1 | 1,701 | I am using C# winform's DataGridView control to display data present in a table to the user. All data gets present in the database table gets displayed to the user perfectly except the last column's data which contains data in XML format. In data DataGridView control the last column always gets displayed as empty but in fact in database the last column contains the xml formatted data. The GUI settings of the last column of the DataGridView control is shown below:

Can anyone suggest me how to display the xml formatted data in this DataGridView control?
| display xml data present in table column into datagridview control c# winforms | CC BY-SA 2.5 | null | 2011-03-28T14:26:37.810 | 2011-03-28T15:29:13.347 | 2011-03-28T15:19:49.523 | 398,368 | 329,051 | [
"c#",
"xml",
"database",
"winforms",
"datagridview"
]
|
5,460,582 | 1 | 5,463,015 | null | 0 | 411 | I want to know what is the exact origin of onscreen keyboard on ipad. Does it dynamically change depending on the language we use, or not?
I try to get this value to make a frame for UITextview in my app.
Is it a difference in origin or behavior, if I use a wireless external keyboard or dock external keyboard??
This is my app screenshot when i use the external keyboard:

And this is when I use the onscreen keyboard:

| ipad onscreen keyboard origin | CC BY-SA 3.0 | null | 2011-03-28T14:38:21.070 | 2014-09-15T19:35:08.173 | 2014-09-15T19:35:08.173 | 321,731 | 515,986 | [
"ipad",
"uikeyboard",
"on-screen-keyboard"
]
|
5,460,806 | 1 | null | null | 5 | 950 | I have a rather sophisticated caching system in place for a web application. I would like to expose, through the management console of the application, a viewer for the cached objects.
Essentially, I'm looking for something like the Visual Studio object inspector that's available whilst debugging.
I certainly can write something, and in fact, I have a working prototype that uses a tree control. I'm looking for something a bit more sophisticated that I don't have to maintain :)
| .NET web-based object browser/inspector | CC BY-SA 2.5 | 0 | 2011-03-28T14:53:01.867 | 2012-12-29T21:05:46.607 | null | null | 62,195 | [
"c#",
"debugging",
"inspector"
]
|
5,460,889 | 1 | 5,460,944 | null | 6 | 8,137 | I received message like

where I need set my Publisher Name in .rc (resource file) to show it in this window?
| set publisher field in .rc file | CC BY-SA 2.5 | 0 | 2011-03-28T14:58:56.753 | 2017-10-27T02:01:57.327 | null | null | 395,034 | [
"winapi"
]
|
5,461,190 | 1 | 5,461,263 | null | 9 | 7,778 | I am somewhat new to android and I am setting up my view perspectives (that i am fairly anal about). I want to have logcat showing on my normal editing perspective.
But I go into Window>Show View>Other Views.. select android and logcat. And the window does not show up. Sometimes it grayed out.
If I switch to the DDMS perspective it shows up just fine.
What am I doing wrong?
thanks!

| Logcat won't show up | CC BY-SA 2.5 | 0 | 2011-03-28T15:20:39.600 | 2015-01-29T16:43:30.373 | null | null | 291,733 | [
"android",
"logcat"
]
|
5,461,233 | 1 | 5,461,246 | null | 6 | 5,418 | I'm in the process of upgrading from VS 2008 to VS 2010, and for the most part it is going pretty smooth. One problem I'm running into is that if I put a break in the code, and try to make changes, I get an error saying that it's not allowed. This is something that I can't live without, so I'm hoping it can be fixed. Otherwise I'll be sticking with VS 2008 for a while longer.

I have no add-ins, and the only extension I have is the GIT Source Control Manager.
I tried uninstalling the GIT Source Control Manager, but that didn't help the problem.
| Why are changes not allowed in Visual Studio 2010? | CC BY-SA 2.5 | null | 2011-03-28T15:24:08.047 | 2015-06-26T02:44:43.340 | null | null | 356,438 | [
"visual-studio",
"visual-studio-2010"
]
|
5,461,415 | 1 | 5,461,519 | null | 0 | 523 | I would like to create a `combobox` without any `textbox` and with a customizable icon in the button that opens the `combobox`. Something like this image (forget about the `checkbox`s)

I don't need you to post the solution, just some directions or resources so I can know how to begin this customization.
TIA
| Combobox with button instead of textbox | CC BY-SA 2.5 | null | 2011-03-28T15:37:16.023 | 2011-03-28T15:43:29.617 | null | null | 278,888 | [
"winforms",
"image",
"button",
"combobox"
]
|
5,461,503 | 1 | 5,576,866 | null | 7 | 5,296 | trying to build an ad hoc distribution with Xcode 4.
Consider that my project.xcodeproj was created with a very old version of Xcode.
Now Looking around at Build Setting I cannot find Code Signing Identity Ad Hoc as shown into attached image:

Any help appreciated
| XCode4 Building Problem - Code Signing Identity Ad Hoc missing | CC BY-SA 2.5 | 0 | 2011-03-28T15:42:18.963 | 2011-04-07T06:23:28.547 | null | null | 336,827 | [
"iphone",
"xcode4",
"identity",
"signing",
"ad-hoc-distribution"
]
|
5,461,593 | 1 | null | null | 1 | 486 | My Grails app displays informational messages to the user after a request has been processed. These are typically either success messages:
> User "[email protected]" successfully created
Or error messages:
> Please fix the validation errors shown below

If I do a redirect after processing the request, then I store the messages in the flash scope. But if I call `render` after processing the request, I can't store the messages in the flash scope, because the message will then exist in the flash scope for one request too many, so I'm not sure what is the best way to pass these messages from the controller to the view?
An obvious option is to just pass them in the model along with the other data, but I'd prefer to keep these messages separate from the "real" view model, are there any alternatives?
In the case of the example shown above, where I want to show an error message associated with a command object, I considered calling [Errors.reject(msgCode)](http://static.springsource.org/spring/docs/1.2.9/api/org/springframework/validation/Errors.html#reject%28java.lang.String%29) passing it the code for the "Please fix the...." message, is this an abuse of the global errors concept?
| Grails informational messages | CC BY-SA 2.5 | null | 2011-03-28T15:48:04.747 | 2011-03-28T16:08:32.227 | null | null | 2,648 | [
"grails",
"groovy"
]
|
5,461,856 | 1 | 5,462,002 | null | 3 | 1,276 | Apologies for the image being of terrible quality, but it shows my scenario of what I'm trying to achieve and wondering what the best possible solution for this is?

I have a test project setup, using RP to a single STS - in which works fine, the RP gets directed to the STS for approval and then sends a token back, simple.
However, I want, say, a drop-down list on my RP that you choose a "mode" and based on this mode you will re-directed for authorisation to one of the STS providers. Obviously I can't re-direct straight to the STS for this and so it would have to be dynamic, and the web.config settings removed for instant re-directs that the .NET projects automatically put there.
Can anyone give guidance on this?
| WIF with multiple STS's | CC BY-SA 2.5 | 0 | 2011-03-28T16:09:41.867 | 2011-08-06T21:45:58.500 | null | null | 664,822 | [
"c#",
".net",
"asp.net",
"wif"
]
|
5,462,358 | 1 | 5,467,848 | null | 0 | 112 | I use NSFetchedResultController and CoreData to manage my UITableView, but I have a problem. It has really confused me for two days, and I don't know how to deal with it.
I use two entity(Group, Contact) to store my data, and in my tableview, the contact is separated into Group, it works fine when application launch, but just after I add a contact, which is belong to one of the exist Groups, the tableview add a new section for me. That's not what I want.
I have tried two ways and hope to fix it, but...
the first one, I use the grp relationship of contact entity as my section separater. The result is not what I want. So I change to the second one, I add a new attribute(GName) to group my contacts, I thought maybe it's all because of grp is a relationship, so I use an attribute. It dosen't work neither.
Pleeeease help me. any reply will be appreciate.

| Why does my UITableView add another section for me when I insert an entry into an exist section? | CC BY-SA 2.5 | null | 2011-03-28T16:53:40.153 | 2011-03-29T04:19:29.047 | 2011-03-28T18:11:15.557 | 418,715 | 381,700 | [
"iphone",
"objective-c",
"xcode",
"core-data",
"nsfetchedresultscontroller"
]
|
5,462,510 | 1 | 5,462,589 | null | 0 | 973 | I am working on a Windows Phone 7 project with a panorama on the MainPage and multiple simple pages. All my pages have a background set this way:
```
<local:PhoneApplicationPage>
<Grid Background="{StaticResource PageBackground}">
content here
</Grid>
</local:PhoneApplicationPage>
```
PageBackground is an application resource set in default.xaml and light.xaml this way:
```
<ImageBrush x:Key="PanoramaBackground" ImageSource="/Resources/PanoramaBackground01Dark.jpg" Stretch="None" />
<ImageBrush x:Key="PageBackground" ImageSource="/Resources/PageBackground01Dark.jpg" Stretch="None" />
```
The PageBackground01Dark.jpg picture is of size 800x800 px.
When a page is displayed in the , the picture is centered correctly horizontaly and the picture height corresponds to the page height. This is fine.

When a page is displayed in the , the picture width corresponds to the page width but .

I would like my background picture to be "topped" in the page.
The Background property of a Grid is a brush with no interesting options. I would like not to create 2 pictures for this. There should be an obvious solution. Here is the result I would like to have:

| Change background position when WP7 Page changes to Landscape | CC BY-SA 2.5 | null | 2011-03-28T17:07:17.787 | 2011-03-28T17:15:44.183 | null | null | 282,105 | [
"xaml",
"windows-phone-7"
]
|
5,462,519 | 1 | 5,464,189 | null | 0 | 492 | I created an app using lucene. The server winded up throwing out of memory errors because I was new'in up an IndexSeacher for every search in the app. The garbage collector couldn't keep up.
I just got done implementing a singleton approach and now there are multiple indexes being created.

Any clue why this is happening? IndexWriter is what I am keeping static. I get IndexSearchers from it.
| Lucene creating duplicate indexes | CC BY-SA 2.5 | null | 2011-03-28T17:08:24.877 | 2011-03-30T17:23:47.993 | null | null | 96,140 | [
"indexing",
"lucene.net"
]
|
5,462,596 | 1 | 5,462,807 | null | 1 | 3,076 | Today i started using some new tools from primefaces into my JSF pages new to me. I notice that some of this tools for some reason do not allow me to deploy my project. and this is what i see:

And the console says this:
> SEVERE: Class [ Lorg/slf4j/Logger; ] not found. Error while loading [ class managedbeans.UploadController ]
WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging for C:\jeeAplicationServer\glassfishv3\glassfish\domains\domain1\eclipseApps\GarbageTheWeb
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:133)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:662)
SEVERE: Exception while loading the app
java.lang.RuntimeException: Unable to load EJB module. DeploymentContext does not contain any EJB Check archive to ensure correct packaging for C:\jeeAplicationServer\glassfishv3\glassfish\domains\domain1\eclipseApps\GarbageTheWeb
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:133)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:662)
The component that i am tiying is the simple file upload from prime faces, it looks exacty as in this link:
[http://www.primefaces.org/showcase/ui/fileUploadSingle.jsf](http://www.primefaces.org/showcase/ui/fileUploadSingle.jsf)
Am i ussing the correct impor statement?
```
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
```
| Glassfish V3.0 weird deployment error when using primefaces components | CC BY-SA 2.5 | null | 2011-03-28T17:17:33.223 | 2011-03-28T17:36:33.090 | null | null | 614,141 | [
"java",
"deployment",
"jakarta-ee",
"glassfish",
"primefaces"
]
|
5,462,746 | 1 | 5,464,782 | null | 2 | 5,814 | I am developing Earthquake Risk Analysis Software. In this application, I have to use some maps to show the layout of places that are most vulnerable to seismic activities based on some calculations.
For maps that show danger zones MapWinGis is known to me but I was thinking that can I use some other library or control that is more powerful and yet provides some excellent features.
Can I use google maps? What are other viable alternatives?

| What control to use for maps | CC BY-SA 2.5 | 0 | 2011-03-28T17:31:14.693 | 2022-08-28T09:59:25.983 | 2012-06-06T18:48:29.017 | 488,657 | 430,167 | [
"c#",
"mapping",
"gis"
]
|
5,462,894 | 1 | null | null | 0 | 747 | I have PHP code that searches through a mysql table and prints out the empty/null fields. Now I want to print out the messages on a pop-up/modal window.
```
<?php
mysql_connect('localhost', 'root', '');
mysql_select_db("users") or die(mysql_error());
$emptyFields = array();
//$row_count = 1;
$sql = "SELECT * FROM userinfo";
$res = mysql_query($sql);
while ($row = mysql_fetch_array($res)) {
foreach($row as $key => $field) {
if( ! is_integer($key) AND empty($field)){
$emptyFields[] = sprintf('Field "%s" on entry "%d" is empty/null', $key, $row['card_id']);
}
}
}
echo implode('<br>', $emptyFields);
echo sizeof($emptyFields);
?>
```
How can I get this unto an 'expandable' modal page using Javascript/jQuery. Where a page pops up to tell me the which columns headers are empty/null and also a details link when clicked, expands to give more details:

| Javascript modal window | CC BY-SA 4.0 | null | 2011-03-28T17:43:57.983 | 2021-09-14T21:05:39.110 | 2021-09-14T21:05:39.110 | 4,370,109 | 648,608 | [
"javascript",
"jquery",
"jquery-ui",
"jquery-validate",
"jquery-events"
]
|
5,463,074 | 1 | 7,036,212 | null | 0 | 2,175 | I'm trying to read a Log4net XMLLayout output log file using Log4View.
```
<?xml version="1.0"?>
<log4net>
<appender name="fileAppender" type="log4net.Appender.FileAppender">
<!-- Note: Be sure that your user has the rights to write to this directory. -->
<file value="C:\temp\logFile1.xml" />
<appendToFile vlaue="true" />
<encoding value="unicodeFFFE" />
<layout type="log4net.Layout.XmlLayout" />
</appender>
<root>
<level value="ALL" />
<appender-ref ref="fileAppender" />
</root>
</log4net>
```
- log4net configured to output an XmlLayout.
---
```
<?xml version="1.0"?>
<!DOCTYPE log4net:events SYSTEM "log4net-events.dtd" [<!ENTITY data SYSTEM "abc">]>
<log4net:events version="1.2" xmlns:log4net="http://logging.apache.org/log4net/schemas/log4net-events-1.2>
<log4net:event logger="hgmqtest._Default" timestamp="2011-03-28T11:07:57.0281466-04:00" level="INFO" thread="9" domain="5321f0e4-1-129457963430674694" username="DOTNET_4_WORK\leeand00">
<log4net:message>BEGIN: Page_Load</log4net:message>
<log4net:properties>
<log4net:data name="log4net:HostName" value="DOTNET_4_WORK" />
</log4net:properties>
</log4net:event>
...
</log4net:events>
```
- Output of log4net log file.
I've got the tags surrounding the logging statements just as [specified in the documentation](http://logging.apache.org/log4net/release/sdk/log4net.Layout.XmlLayout.html).
---

When I drag my log file into log4view I specify that the Layout of the file is XML.
---
But when Log4View starts trying to read the xml file logFile1.xml there are no statments being displayed. I keep hitting the area of my application that should cause the log statments to be displayed, but nothing happens in Log4View, although the new statements are being added to the log file.
Any ideas why this might not be working?
| Reading a Log4View Logfile using Log4net log4net.Layout.XmlLayout? | CC BY-SA 2.5 | null | 2011-03-28T18:00:33.960 | 2013-06-14T16:35:31.617 | 2013-06-14T16:35:31.617 | 1,253,312 | 18,149 | [
"xml",
"log4net",
"log4view"
]
|
5,463,115 | 1 | 10,875,427 | null | 1 | 871 | I am curious about the proper way to stop a user from activating my plugin if their system does not meet certain requirements. Doing the checks is easy and I don't need any help with that, I am more curious how to tell WordPress to exit and display an error message.
Currently I have tried both `exit($error_message)` and `die($error_message)` in the activation hook method. While my message is displayed and the plugin is not activated, a message saying Fatal Error is also displayed (see image below).

Does anyone know of a better way, that would display my message in a proper error box without displaying Fatal error, it just looks really bad for new users to see that.
Thanks for any help in advance.
| Proper way to check system requirements for a WordPress plugin | CC BY-SA 2.5 | null | 2011-03-28T18:05:17.233 | 2012-06-04T05:00:32.807 | null | null | 643,982 | [
"error-handling",
"conditional-statements",
"wordpress",
"system-requirements"
]
|
5,463,290 | 1 | 5,468,916 | null | 1 | 2,157 | I want to implement a GUI in MATLAB 2010a that user be able to input a [Piecewise linear function](http://en.wikipedia.org/wiki/Piecewise_linear_function) interactively (add/remove points by click and move point by drag and drop). [Here](http://www.codeproject.com/KB/graphics/contrastStretch.aspx) is an implementation in C#.
I am hope there is an similar implementation in MATLAB that uses axes or any other object that capture mouse events and update the piecewise function. Below is some examples of user input as a piecewise linear function:




| How to get a piecewise linear function in MATLAB GUI | CC BY-SA 2.5 | null | 2011-03-28T18:21:35.783 | 2011-03-29T06:52:59.800 | null | null | 161,640 | [
"user-interface",
"matlab",
"user-input",
"interactive",
"piecewise"
]
|
5,463,551 | 1 | 5,463,670 | null | 5 | 3,821 | I have a couple of web applications which all utilize sending emails whether it be by contact form, or some kind of notification updates etc.
The problem I have found is that there isn't really any way to track the emails which are being sent from the web applications, so I've come up with a possible solution:

It's pretty straight forward really - instead of having each web application sending the emails themselves I would like to unify the process by creating a central Email Sender Service.
In basic terms, each application would just create a row in a 'Outbound Emails' table on the database with To,From,Subject,Content data.
The Email Sender Service (Win Service) would then pick the emails from the outbox, send them and then mark as sent.
---
Even though I would store 'basic email' information (to,from,subject,content) in the database, what I would really like to do is also store the 'MailMessage' object itself so that the Email Sender Service could then de-serialize the original MailMessage as this would allow any application to fully customize the email.
Update: Another objective, is to store a log of emails that have been sent - hence the reason for using a database.
| Building a Email Sender Service | CC BY-SA 2.5 | 0 | 2011-03-28T18:42:45.380 | 2011-03-28T19:15:09.697 | 2011-03-28T19:15:09.697 | 177,811 | 177,811 | [
"c#",
"asp.net",
"sql-server-2008",
"mailmessage"
]
|
5,463,577 | 1 | 5,463,630 | null | 0 | 3,183 | I am having troubles implementing JQuery autocomplete using JSON.
Basically, I get an JSON encoded data from my server (I use codeigniter php framework).
The JSON format is following:
```
[
{
"id": "1",
"prodname": "Candy",
"code": "CND01",
"uname": "grams",
"pcname": "Sweets"
},
{
...
}
]
```
So, the autcomplete goes on the Product(prodname) field (in the red rectangle on the image). When certain
product is selected, the ID,Code,Category and UOM get populated.
These are my input fields:
```
<input type="text" name="id" value="" id="id" size="3" />
<input type="text" name="code" value="" id="code" size="5" />
<input type="text" name="prodname" value="" id="prodname" size="30" />
<input type="text" name="category" value="" id="category" /></td>
<input type="text" name="quantity" value="" id="quantity" size="3" />
<input type="text" name="uom" value="" id="uom" size="5" />
<button name="add" type="button" >Add</button>
```
How can I achieve that?
Thank you very much upfront!

SOLUTION:
```
$.ajax({
dataType: 'json',
async: false,
success: function(data) {
projects = data;
},
url: '<?php echo site_url('products/autocomplete/no'); ?>'
});
//Autocomplete
$( "#prodname" ).autocomplete({
source: projects,
focus: function( event, ui ) {
$( "#prodname" ).val( ui.item.prodname );
return false;
},
select: function( event, ui ) {
$( "#prodname" ).val( ui.item.prodname );
$( "#id" ).val( ui.item.id );
$( "#code" ).val( ui.item.code );
$( "#category" ).val( ui.item.pcname );
$( "#uom" ).val( ui.item.uname );
return false;
}
})
.data( "autocomplete" )._renderItem = function( ul, item ) {
return $( "<li></li>" )
.data( "item.autocomplete", item )
.append( "<a>" + item.prodname + "</a>" )
.appendTo( ul );
};
```
| JQuery autocomplete and form population using JSON | CC BY-SA 2.5 | 0 | 2011-03-28T18:45:01.710 | 2011-04-03T11:22:54.767 | 2011-04-03T11:22:54.767 | 641,048 | 641,048 | [
"php",
"javascript",
"jquery",
"ajax",
"json"
]
|
5,463,637 | 1 | null | null | 1 | 1,158 | I want to exclude files like on this picture below, so it not necessary include to test, so how to solve this problem?

[http://i.stack.imgur.com/n9Lwk.png](https://i.stack.imgur.com/n9Lwk.png)
| How to exclude file in rcov and cucumber? | CC BY-SA 3.0 | null | 2011-03-28T18:50:52.820 | 2011-12-17T00:22:58.900 | 2011-12-17T00:22:58.900 | 1,022,826 | 680,785 | [
"ruby-on-rails",
"cucumber",
"rcov"
]
|
5,464,214 | 1 | null | null | 3 | 3,963 | I have this linq query:
```
public static Banner getSideBarBanner(){
DataClassesDataContext db = new DataClassesDataContext();
var bannerSiderBar = (from b in db.Banners
where b.Position.Equals(EBannersPosition.siderbar.ToString())
&& b.Visible == true
select b).FirstOrDefault();
return bannerSiderBar;
}
```
well, I use dotTrace to profile the application and I see that the query execution takes a lot of time (over 2s)

I am simply wondering, why so much time especially when my Banner table has about 30 records!!!
Thanks in advance for your opionions...
:
Banner's table schema:

UPDATE 2: If I use simple SQL connection instead of linq, the query execution takes 700ms which is a huge improvement...
```
public static Banner getSideBarBanner()
{
Banner bannerFound = new Banner();
SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Library_prodConnectionString"].ConnectionString);
try
{
myConnection.Open();
SqlCommand myCommand = new SqlCommand("SELECT path, link FROM Banner b WHERE b.Position = @position AND b.Visible = 1 ", myConnection);
myCommand.Parameters.Add(new SqlParameter("@position", EBannersPosition.siderbar.ToString()));
SqlDataReader myReader = myCommand.ExecuteReader();
while (myReader.Read())
{
if (myReader["path"] != null)
bannerFound.Path = myReader["path"].ToString();
if (myReader["link"] != null)
bannerFound.Link = myReader["link"].ToString();
}
myConnection.Close();
}
catch (Exception e)
{
CreateLogFiles Err = new CreateLogFiles();
Err.ErrorLog(HttpContext.Current.Server.MapPath("~/Site/Logs/ErrorLog"), e.ToString());
}
return bannerFound;
}
```
This tells me that translation of the linq query to sql has a very poor performance...What do you think?
| why this simple linq query takes so much time? | CC BY-SA 2.5 | 0 | 2011-03-28T19:43:53.403 | 2011-03-29T17:45:09.297 | 2011-03-28T22:00:38.980 | 174,349 | 174,349 | [
"c#",
"asp.net",
"linq"
]
|
5,464,424 | 1 | 5,464,565 | null | 1 | 3,679 | I was designing a custom listview in Android following the online tutorial [Android Series: Custom ListView items and adapters](http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/) and I created a custom list view like this:

This is simple and fine. Now I was surfing the web and found this fantastic listview for iPhone:

How can I create something like this? How has he given a box like interface for each row separating them from background and each other?
| How to create a custom listview like iPhone in Android | CC BY-SA 3.0 | null | 2011-03-28T20:02:05.597 | 2012-07-28T16:15:51.800 | 2012-06-11T19:03:04.717 | 63,550 | 443,694 | [
"iphone",
"android",
"android-layout",
"android-listview"
]
|
5,464,405 | 1 | null | null | 0 | 1,300 | i have a wpf datagridview that is bound to a source
the source is a dataset filled from the database manually
there's a datagridcomboboxcolumn
i've set the column's items source to the dataset (DSGLAccounts.tables..etc),
set the displaymemberpath to the column name "Account_ID";
and it's successfully displays the account list
but when i sellect an item at run time, the cell does not keep it when i navigates to another cell and just disappears
now i cannot understand how to make the sellected index equals some value depending on the dataset which is the source of the grid view (DSRegisters)
i need to know how to set the selected index
i think i have to know about the properties (SelectedItemBinding/SelectedValueBinding/SelectedValuePath)
Here's the form

here's my stupid code :)
```
<DataGrid Name="dgv_Accounts" Width="Auto" Height="Auto" AutoGenerateColumns="False" VerticalAlignment="Stretch"
HorizontalAlignment="Stretch" HeadersVisibility="Column" CanUserReorderColumns="False" CanUserResizeColumns="False"
CanUserSortColumns="False" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible"
BorderBrush="Gray" BorderThickness="0" HorizontalGridLinesBrush="Gray" VerticalGridLinesBrush="Gray"
AreRowDetailsFrozen="False" CanUserResizeRows="False" RowDetailsVisibilityMode="Visible" RowHeight="20" SelectionMode="Extended"
FlowDirection="LeftToRight" GridLinesVisibility="All" UseLayoutRounding="True" EnableColumnVirtualization="True"
FontFamily="DFKai-SB" FontWeight="Bold" FontStyle="Normal" Grid.Row="5" CellEditEnding="dgv_Accounts_CellEditEnding" RowEditEnding="dgv_Accounts_RowEditEnding">
<DataGrid.Columns>
<DataGridComboBoxColumn Header="GL Account" Width="*" >
</DataGridComboBoxColumn>
<DataGridTextColumn Header="Description" Width="*" Binding="{Binding Path=Transc_desc, Mode=TwoWay}"/>
<DataGridTextColumn Header="Debit" Width="*" Binding="{Binding Path=Debit}"/>
<DataGridTextColumn Header="Credit" Width="*" Binding="{Binding Path=Credit}"/>
<DataGridTextColumn Header="Job" Width="*"/>
</DataGrid.Columns>
</DataGrid>
```
that's code behind
```
dgv_Accounts.ItemsSource = DSRegisters.Tables[0].DefaultView;
DataGridComboBoxColumn COL = ((DataGridComboBoxColumn)(dgv_Accounts.Columns[0]));
COL.ItemsSource = DSGLAccount.Tables[0].DefaultView;
COL.DisplayMemberPath = "Account_ID";
```
where
DSRegister is a dataset contains records that should be displayed on the datagrid
DSGLAccounts is the dataset to which the datagridcombobox should be bound
also when i at run time as i said, when select a value from the combobox, it does not keep sellection when i leave the cell , as if it's non editable
i'm noooob in wpf, need help please , if there's an example or something like this , it would be very helpful
| Datagridviewcomboboxcolumn getting me mad | CC BY-SA 2.5 | null | 2011-03-28T20:00:50.207 | 2011-10-06T12:11:37.560 | null | null | 452,799 | [
"wpf",
"datagridview",
"datagridcomboboxcolumn"
]
|
5,464,703 | 1 | 5,464,758 | null | 0 | 1,426 | I have a certificate that I need to use in order to access a web service. The problem is that whenever I try to use the X509 certificate it asks for a passphrase (PIN). Is there any way of providing the passphrase directly, without it popping up the same window every time?

The certificate uses a dongle made by Oberthur Technologies, if it's of any help. Here's the code I use to get the certificate:
```
X509Store store = new X509Store("MY",StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
if(collection.Count != 0)
userCert = collection[0]; // everything's ok up to here
```
And here's where I use the certificate:
```
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(new Uri(url));
req.ClientCertificates.Add(userCert); // add the certificate I just got
// ...
WebResponse ret = req.GetResponse(); // here's where it asks me for my passphrase
```
| Use X509Certificate without requiring passphrase | CC BY-SA 2.5 | null | 2011-03-28T20:27:41.073 | 2011-04-27T14:54:56.363 | null | null | 114,930 | [
"c#",
"x509certificate2"
]
|
5,465,130 | 1 | 5,465,322 | null | 1 | 737 | I have many pictures that are made of an object with black background. I've created them with Matlab, and they all have a white "extra" surrounding the picture. I want to be able to automatically crop them so that the picture will not have the white extra.
The files are `.tif` format
Here is a picture as an example:
It may be not noticeable at first, but if you select the picture, it's much bigger than just the black area.
| Automatic cropping of pictures | CC BY-SA 2.5 | null | 2011-03-28T21:10:10.067 | 2011-03-29T12:17:49.147 | 2011-03-29T02:42:16.433 | 480,692 | 480,692 | [
"scripting",
"image-processing",
"automation",
"tiff",
"image"
]
|
5,465,555 | 1 | 5,465,679 | null | 2 | 14,590 | I working on Optical Character Recognition system.
I want to convert the license plate image from binary to gray scale.
let's look at the next example:
this is the binary image:

and this is the gray scale:

what I want to know is if there is a way to convert it from binary to the gray, or this is not possible because i've lost the information when I converted the picture to binary at the beginning.
any idea how to do this? thanks
| converting binary image to gray scale image in Matlab | CC BY-SA 2.5 | null | 2011-03-28T21:58:22.777 | 2022-09-20T22:34:16.283 | 2011-03-29T11:34:54.127 | 556,011 | 556,011 | [
"matlab",
"image-processing"
]
|
5,465,606 | 1 | 5,807,010 | null | 6 | 926 | I've just started using [LevelScheme](http://wnsl.physics.yale.edu/levelscheme/), and have issues with getting the histogram to fit correctly within the figure. A minimal non-working example:
```
<<"LevelScheme`"
Figure[{FigurePanel[{{0, 1}, {0, 1}},
LabB -> textit["x"], BufferB -> 2.5,
LabL -> textit["p(x)"], BufferL -> 2.5,
FrameTicks -> {LinTicks[-4, 4], LinTicks[0, 1]},
PlotRange -> {{-3, 3}, {0, 0.5}}],
RawGraphics[
Histogram[RandomReal[NormalDistribution[], 1000], Automatic,
"ProbabilityDensity"]]},
Frame -> False, PlotRange -> {{-0.075, 1.1}, {-0.1, 1.03}}]
```
The output looks like this

when it should look like this

Basically, the `Histogram` graphics object doesn't obey the `FigurePanel`'s `PlotRange`, but instead obeys the main `Figure`'s `PlotRange`. This behaviour doesn't occur when the `Histogram` is replaced by a `Plot` or similar commands. So the following produces a clean plot
```
Figure[{FigurePanel[{{0, 1}, {0, 1}},
LabB -> textit["x"], BufferB -> 2.5,
LabL -> textit["p(x)"], BufferL -> 2.5,
FrameTicks -> {LinTicks[-4, 4], LinTicks[0, 1]},
PlotRange -> {{-3, 3}, {0, 0.5}}],
RawGraphics[Plot[1/Sqrt[2 Pi] Exp[-x^2/2], {x, -4, 4}]]},
Frame -> False, PlotRange -> {{-0.075, 1.1}, {-0.1, 1.03}}]
```

Has anyone else encountered this issue? Or, do you have suggestions for a fix?
I thought I'd add some green to the question. I'm still interested in knowing how to overcome this hurdle.
| Histogram plots in LevelScheme | CC BY-SA 3.0 | null | 2011-03-28T22:04:14.223 | 2011-06-05T20:47:02.237 | 2011-06-05T20:47:02.237 | null | null | [
"wolfram-mathematica",
"levelscheme"
]
|
5,465,849 | 1 | 5,468,713 | null | 0 | 677 | I'm trying to implement one of Saki's [examples](http://examples.extjs.eu/) in `Form --> Displaying Form Submit Errors`, but looking at the html of included classes I don't see several of the one's he uses (like theme empty.css, icons.css, extjs.ico, and Ext.us.form.XCheckbox.js). I'm using Ext-JS 3.3.0.... could anyone link me to a source that shows how to utilize QuickTips for 3.3.0? Or a way to make sure I have all the required files?
Currently when I try to do msgTarget: 'side' the red explanation point isn't appearing like it should. Also the actual tooltip that appears isn't styled correctly. See below (I have the msgTarget: 'side' commented out for this so you can see the tooltip).
This is what my JSP's Head looks like, I can't tell if its a style sheet problem or that I am not refreshing something correctly.
```
<!-- Include Ext and app-specific scripts: -->
<script type="text/javascript" src="../js/ext-base.js"></script>
<script type="text/javascript" src="../js/ext-all-debug.js"></script>
<script type="text/javascript" src="../examples/shared/examples.js"></script>
<script type="text/javascript" src="../examples/form/states.js"></script>
<script type="text/javascript" src="../examples/ux/MultiSelect.js"></script>
<script type="text/javascript" src="../examples/ux/ItemSelector.js"></script>
<script type="text/javascript" src="../examples/ux/fileuploadfield/FileUploadField.js"></script>
<script type='text/javascript' src="../examples/ux/RowExpander.js"></script>
<script type="text/javascript" src="../examples/ux/CheckColumn.js"></script>
<script type='text/javascript' src="../js/TreeGrid.js"></script>
<script type='text/javascript' src="../js/Exporter-all.js"></script>
<!-- My JS's: -->
<script type="text/javascript" src="../js/comm.js"></script>
<script type="text/javascript" src="../js/commStore.js"></script>
<!-- Include Ext Stylesheets here: -->
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css"/>
<link rel='stylesheet' type="text/css" href="../examples/ux/css/MultiSelect.css">
<link rel="stylesheet" type="text/css" href="../examples/ux/fileuploadfield/css/fileuploadfield.css"/>
<link rel="stylesheet" type="text/css" href="../examples/grid/grid-examples.css" />
<link rel="stylesheet" type="text/css" href="../css/TreeGrid.css" />
<link rel="stylesheet" type="text/css" href="../css/TreeGridLevels.css" />
<link rel="stylesheet" type="text/css" title="tundra" href="../css/xtheme-tundra.css" />
<!-- My StyleSheet -->
<link rel="stylesheet" type="text/css" title="commTool" href="../css/CommTool.css" />
```

| Ext-JS QuickTips not working correctly | CC BY-SA 2.5 | null | 2011-03-28T22:36:47.377 | 2011-04-01T03:32:10.700 | null | null | 594,801 | [
"javascript",
"extjs",
"validation"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.