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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,528,695 | 1 | 4,528,706 | null | 11 | 23,404 | Recently i learned that i can display images in a web page without referencing an image URL as follows :
```
<img class="disclosure" img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oIGRQbOY8MjgMAAABVSURBVBjTfc6xDcAwCETRM0rt5nbA+49j70DDAqSLsGXyJQqkVxxwNOeMiEA+waW1VuT/inrvG7wikht8UETy2ygVMjO4O8YYTf6AqrZyUwYlygAAXo+QLmeF4c4uAAAAAElFTkSuQmCC">
```
I had another small bmp image that i wanted to display, so i opened it in vim and the img source looke like:

When i paste this code where it needs to be pasted i only get "BMڀ"
-
| Displaying images in webpage without src URL | CC BY-SA 2.5 | 0 | 2010-12-24T23:24:11.623 | 2021-08-06T19:50:54.733 | 2015-02-01T16:30:23.113 | 3,204,551 | 98,204 | [
"html",
"image",
"google-chrome",
"unicode"
]
|
4,528,801 | 1 | 4,528,806 | null | 0 | 749 | I'm trying to create a tooltip with jquery. However I'm having a problem that if there is enough space in the div, then it displays all the tooltip. However I have another div below it, and the tooltip gets hidden behind it. I want to display tooltip over the div, as shown in the image below:

Here is my code:
```
<div id ="wrapper">
<button type="button" class="like_button" onclick=";return false;" id="like" ></button>
<div class="tooltip">
<span class="ilikethis">
I like this
</span>
</div>
</div>
```
Here is css code:
```
#wrapper{ background:#eaf3fd; margin-top:5px; overflow:visible;}
.tooltip{ height:13px;display: none;width:120px; text-align:left;overflow:visible;opacity:0.7;filter:alpha(opacity=40)}
.ilikethis{
display: none;
font-size: 1.0em;
height:17px;
padding:7px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
text-align: center;
text-decoration: none;
width:60px;
background-color:#333333;
color:#FFFFFF;
text-shadow: #fff 0px 0px 20px;
overflow:visible;
}
```
| jquery tooltip not visible completely | CC BY-SA 2.5 | null | 2010-12-25T00:06:25.433 | 2010-12-25T00:09:09.627 | null | null | 966,582 | [
"jquery",
"css",
"tooltip"
]
|
4,528,945 | 1 | 4,529,092 | null | 0 | 1,001 | I m trying to install Glassfish Application Server 3.1. But I get this

I have installed Java 1.6 SDK, also Java 1.6 runtime environment. I have added C:\Program Files\Java\jdk1.6.0_22\bin; to path in system variables in environment variables. Still I get this error when I run the setup. In command prompt, running java and javac return possibilities of commands, running java -version returns me,
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
so why isnt installation recognizing it ? Also, the browser is not detecting it. However, I could compile and run a java file in command-line.
| Java runtime not recognized | CC BY-SA 2.5 | null | 2010-12-25T01:19:01.183 | 2010-12-25T02:26:03.593 | 2010-12-25T02:21:47.513 | 368,084 | 368,084 | [
"java",
"sdk",
"runtime",
"environment-variables"
]
|
4,529,088 | 1 | 4,654,129 | null | 0 | 335 | ok to clarify. i understand that the map data is basically some images grouped in bounding boxes and drawn on a 2d canvas. is it possible to rotate the whole view so that it looks like on the image i posted from google earth, to get a kind of fly-over look? i know that there is a class in adroid used for 3d rotations on images(the camera class [Graphics.camera](http://developer.android.com/reference/android/graphics/Camera.html))
There was a nice tutorial not long ago from sony-erricson with their 3d listview describing its functionality, but i don't think i can achieve what i need with it. is there a way that a view can be rendered maybe on a GL surface?
i realize that this isn't that simple to do but any suggestions or ideas on the matter can be helpful.
so where do i start?
tnx.

| can we display a mapView like google earth(see screens) | CC BY-SA 2.5 | null | 2010-12-25T02:22:47.697 | 2011-01-11T04:19:15.013 | 2010-12-25T15:39:21.457 | 44,729 | 448,192 | [
"android",
"graphics",
"opengl-es",
"maps"
]
|
4,529,349 | 1 | 4,617,896 | null | 2 | 276 | I am using the latest Minefield and Chrome nightly builds; at the official O3D webgl samples (ie.[http://o3d.googlecode.com/svn/trunk/samples_webgl/o3d-webgl-samples/customcamera.html](http://o3d.googlecode.com/svn/trunk/samples_webgl/o3d-webgl-samples/customcamera.html)) I cant change any of the text in the non-disabled html text boxes. I have the same problem with my own pages when using O3D (haven't tested raw webgl script but I am now using o3d ) .. and this is a problem now that I have gotten to the point where I require an overlaying interface for my 3D shiz
Is anyone else having this problem, has investigated the problem, or is able to provide any knowledge or analysis of this BUG ?

| Textbox cant be selected or set to focus | CC BY-SA 2.5 | null | 2010-12-25T05:03:19.350 | 2011-01-06T17:41:15.073 | 2010-12-30T00:18:24.427 | 449,534 | 449,534 | [
"css",
"html",
"webgl",
"o3d"
]
|
4,529,591 | 1 | 4,529,616 | null | 0 | 355 | I have a menu on the top of a page and when I get the sub menu, it is collapsing with the existing html on the host page
Menu when not yet clicked

Menu when menu item clicked

Just notice the blue line is comming on the top of the sub menu
The menu is found in a div
can someone helps??
| GWT CSS problem | CC BY-SA 2.5 | null | 2010-12-25T07:15:21.693 | 2010-12-25T07:41:01.420 | null | null | 484,290 | [
"html",
"css",
"gwt"
]
|
4,529,902 | 1 | 4,529,915 | null | -4 | 133 | 
| What is the name of this font? | CC BY-SA 2.5 | null | 2010-12-25T09:35:20.113 | 2010-12-25T09:38:15.173 | null | null | 244,413 | [
"css",
"fonts"
]
|
4,530,180 | 1 | null | null | 3 | 1,518 | Hi,
I am upgrading Xcode to 3.2.5 from 3.2.4 along with iOS SDK 4.2.
I keep getting following error message at the end of the installation:
"installation failed contact software manufacture".
Please check attached screenshot for more details.
Can you please suggest what needs to be done?
Thanks!
| Error Installing Xcode 3.2.5 along with iOS SDk 4.2 | CC BY-SA 2.5 | null | 2010-12-25T11:48:37.067 | 2012-10-21T12:53:52.153 | 2011-01-03T10:46:13.677 | 433,794 | 531,783 | [
"macos",
"iphone-sdk-3.0",
"ios4",
"ios-4.2"
]
|
4,530,316 | 1 | 4,530,670 | null | 1 | 663 | I just want to know how does facebook makes the chat bar always remains the bottom of the browser whether or not we scroll on the page
| How does facebook make the char bar always remains at the bottom of the browser | CC BY-SA 2.5 | null | 2010-12-25T12:51:45.720 | 2010-12-25T15:51:45.453 | null | null | 484,290 | [
"html",
"css",
"facebook"
]
|
4,530,704 | 1 | null | null | 6 | 321 | I'm trying to run the readwrite example in the dsplink on the beagleboard. To do so, I need to give the dsp address as a command line parameter. How do I know what is the dsp address?
I have the config file of OMAP5030. Here's a snapshot of the dsplink memory section diagram (copied from CFG_OMAP3530_SHMEM.c):

| How do I calculate the dsp address for a readwrite application in the beagleboard? | CC BY-SA 2.5 | 0 | 2010-12-25T15:55:30.553 | 2011-01-08T07:17:41.903 | null | null | 110,028 | [
"signal-processing",
"read-write",
"beagleboard"
]
|
4,530,907 | 1 | 4,531,616 | null | 3 | 694 | I have an application on the store that has two versions: for iPad and iPhone. I have noticed now that one of the apps have a misspelled name on the field on the target info (see picture).
I wonder what would happen if I correct that. Will I have problems changing the name there?
My concerns are:
- -
Do you guys know something about this?
thanks.

| iPhone - changing the product name | CC BY-SA 2.5 | 0 | 2010-12-25T17:05:09.083 | 2010-12-25T20:42:24.290 | null | null | 316,469 | [
"iphone",
"ipad"
]
|
4,530,957 | 1 | 4,530,991 | null | 4 | 18,753 | I am trying to create a block of indented text without using block quote. The reason I want to do this is because block quote adds an additional space between the indented block of text and the previous paragraph.

I wan the indented piece of text to be flush up against the the non-indented piece of text.
| HTML code to indent without using blockquote (so there is no space on the next line) | CC BY-SA 2.5 | 0 | 2010-12-25T17:18:40.217 | 2010-12-25T17:39:10.197 | 2010-12-25T17:39:10.197 | 313,758 | 440,266 | [
"html",
"css"
]
|
4,531,048 | 1 | null | null | 1 | 587 | In case cols textarea [attribute](http://www.w3.org/TR/html401/interact/forms.html#adef-cols-TEXTAREA) "specifies the visible width in average character widths", why it doesn't mean, in fact, that if one uses monospace font, he'll get exactly as many letters to fit textarea rect, as it actually defined in cols?

| Textarea and monospace fonts | CC BY-SA 2.5 | null | 2010-12-25T17:42:08.760 | 2015-12-01T18:52:20.333 | 2010-12-25T19:56:23.647 | 360,811 | 360,811 | [
"textarea",
"rows"
]
|
4,531,218 | 1 | 4,531,229 | null | 0 | 5,419 | I need to dynamically add validation rules to a text box when the user clicks on the checkbox in that row and remove it when the user unchecks it. This is what I did, and it works fine, but I'm not sure if it is the right way to do it.
Here's my html code:
```
<tbody>
<c:forEach items="${list}" var="item">
<tr>
<td align="center">
<input type="checkbox" name="selectItems" value="<c:out value="${item.numberPlate}"/>" />
</td>
<td align="left"><c:out value="${item.numberPlate}"/></td>
<td align="left"><c:out value="${item.driver.fullName}"/></td>
<td align="left"><input type="text" name="mileage_<c:out value="${item.numberPlate}"/>" value="" /></td>
</tr>
</c:forEach>
</tbody>
```
and my jquery:
Now I'm using and it also works fine,but isn't there a quicker way of doing this? I mean , one way to avoid writing so many 'add/removeClass' instructions? and finally how could I indicate "min:100" or " minlength:6" with addClass?
```
$("input[name=selectItems]").change(function() {
if (this.checked)
{
$(this).closest("tr").find("input[name^=mileage]").addClass('required');
$(this).closest("tr").find("input[name^=mileage]").addClass('number');
}
else
{
$(this).closest("tr").find("input[name^=mileage]").removeClass("required")
$(this).closest("tr").find("input[name^=mileage]").removeClass('number');
}
});
```

any suggestion is welcome and... I almost forgot, Merry Xmas!
| Add/remove validation rules Dynamically | CC BY-SA 2.5 | 0 | 2010-12-25T18:38:12.877 | 2013-06-28T15:49:07.867 | 2013-06-28T15:49:07.867 | 594,235 | 530,911 | [
"jquery",
"validation"
]
|
4,531,315 | 1 | 4,531,326 | null | 0 | 437 | I am trying to create a Option menu where there is a button to click register. on clicking that i want to go to the RegisterActivity.java
```
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.register:
Intent i = new Intent(this, RegisterActivity.class);
startActivity(i);
return true;
case R.id.exit:
return true;
default:
return super.onOptionsItemSelected(item);
}
}
```

[http://variable3.com/files/screenshots/2010-12-26_0034.png](http://variable3.com/files/screenshots/2010-12-26_0034.png)
| Activity Not Found Expection | CC BY-SA 2.5 | null | 2010-12-25T19:08:11.100 | 2010-12-25T19:12:22.207 | 2020-06-20T09:12:55.060 | -1 | 155,196 | [
"android",
"android-activity"
]
|
4,531,751 | 1 | 4,589,168 | null | 1 | 5,167 | Adobe states that [Charts are supported in mobile projects](http://www.adobe.com/devnet/flex/articles/mobile_development_hero_burrito.html) but when I try to change the following working files (created project with File - New - Flex Mobile Project - Google Nexus One):
MyTest.mxml:
```
<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.MyTestHome">
<s:navigationContent>
<s:Button label="Home"
click="navigator.popToFirstView();"/>
</s:navigationContent>
<s:actionContent/>
</s:MobileApplication>
```
MyTestHome.mxml:
```
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
title="Test Chart">
</s:View>
```
to the new MyTestHome.mxml:
```
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark"
title="Test Chart">
<fx:Script>
<![CDATA[
import mx.collections.*;
[Bindable]
private var medalsAC:ArrayCollection =
new ArrayCollection( [
{Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
{Country:"China", Gold: 32, Silver:17, Bronze: 14 },
{Country:"Russia", Gold: 27, Silver:27, Bronze: 38 }
]);
]]>
</fx:Script>
<mx:PieChart id="chart" height="100%" width="100%"
paddingRight="5" paddingLeft="5" color="0x323232"
dataProvider="{medalsAC}" >
<mx:series>
<mx:PieSeries labelPosition="callout" field="Gold">
<mx:calloutStroke>
<s:SolidColorStroke weight="0"
color="0x888888" alpha="1.0"/>
</mx:calloutStroke>
<mx:radialStroke>
<s:SolidColorStroke weight="0"
color="#FFFFFF" alpha="0.20"/>
</mx:radialStroke>
<mx:stroke>
<s:SolidColorStroke color="0"
alpha="0.20" weight="2"/>
</mx:stroke>
</mx:PieSeries>
</mx:series>
</mx:PieChart>
</s:View>
```
and also add
- - -
to Flex Build Path (clicking "Add SWC" button):

Then it fails with the error:
Does anybody please have an idea here?
| Using mx.charts in a Flex mobile project | CC BY-SA 3.0 | 0 | 2010-12-25T21:31:03.097 | 2013-04-16T13:49:52.203 | 2013-04-16T13:49:52.203 | 165,071 | 165,071 | [
"apache-flex",
"mobile",
"charts",
"flex4.5",
"flex4.6"
]
|
4,531,863 | 1 | null | null | 0 | 423 | I have an image that is 1600x1200px, I'm trying to do the "twitter background effect" (where the image is fixed and does not repeat) , but a bit differently.
I know you can just set the image in the body as such:
```
background: url("background1.jpg") no-repeat fixed center #000;
```
or
```
background: url("background1.jpg") no-repeat fixed 0 0 #000;
```
as twitter does it
However, then, the full height of the image does not show. The width is fine.
I want the image to be 1200px long, so the full height of the image is shown.
Is there any way to do this?
To make it a bit clearer, I drew this extremely detailed diagram in GIMP:

| Making a background 100% | CC BY-SA 2.5 | null | 2010-12-25T22:07:25.963 | 2012-05-01T19:40:09.300 | 2010-12-25T22:13:27.010 | 403,912 | 403,912 | [
"html",
"css",
"twitter"
]
|
4,531,902 | 1 | 4,534,479 | null | 0 | 818 | Using Eclipse Helios, I'd like to develop a JSF based application. I tried to work through a [tutorial](http://www.eclipse.org/webtools/jsf/docs/tutorial/JSFTools_1_0_tutorial.html). Even though I thought to have installed all the required stuff from the repo, in the Webeditor I have no Palette called JSF or kinda.
Furthermore, I cannot even add the library stated in the tutorial (in the first screenshot), because I don't have a subitem "Libraries" in the JSF-Part at left.
See the screenshot:

Already tried to download the newest version of Eclipse, recreating a workspace... Nothing works, unfortunately.
Any idea?
My system:
Ubuntu 10.04 64bit, Eclipse Helios with Eclipse Webtools Platform. Java 1.6.0_22.
Apache Tomcat 6.0.14.0
| Eclipse & JSF: Library linking | CC BY-SA 3.0 | null | 2010-12-25T22:18:47.837 | 2016-04-26T23:21:37.187 | 2016-04-26T23:21:37.187 | 750,510 | 146,003 | [
"eclipse",
"jsf"
]
|
4,531,976 | 1 | 4,531,987 | null | 5 | 2,791 | How do you change the small image showed in a browsers tab when viewing image using HTML? Sorry, I am new to programming.

The small image is what I am talking about.
| Changing in the top of the browser using HTML (favicon) | CC BY-SA 2.5 | 0 | 2010-12-25T22:43:21.810 | 2022-12-24T13:35:07.293 | 2011-01-28T10:18:40.790 | 187,606 | 440,266 | [
"html",
"favicon"
]
|
4,532,009 | 1 | 4,551,191 | null | 5 | 10,830 | I am using the Validation Plugin for jQuery and it works wonders. Except when I have a group of checkboxes...the error messages will display right after the first checkbox...like so:

```
<tbody>
<c:forEach items="${list}" var="item">
<tr>
<td align="center">
<input type="checkbox" name="selectItems" value="<c:out value="${item.numberPlate}"/>" />
</td>
<!--some other columns-->
</tr>
</c:forEach>
</tbody>
```
I found that I can use , but I have no idea how to show the error message of the checkbox array in the table footer or somewhere else inside the second fieldset.
Hope you can help me out.
| Placing error message for a checkbox array | CC BY-SA 2.5 | 0 | 2010-12-25T22:51:35.643 | 2010-12-29T03:31:27.690 | 2010-12-27T14:20:56.727 | 530,911 | 530,911 | [
"jquery",
"jquery-validate"
]
|
4,532,059 | 1 | 4,534,602 | null | 1 | 2,356 | How do you structure you graphs/nodes in a graph search class? I'm basically creating a NavMesh and need to generate the nodes from 1 polygon to the other. The edge that joins both polygons will be the node.

I'll then run A* on these Nodes to calculate the shortest path. I just need to know how to structure my classes and their properties?
I know for sure I wont need to create a fully blown undirected graph with nodes and edges.
| Structure of Astar (A*) graph search data in C# | CC BY-SA 2.5 | 0 | 2010-12-25T23:03:23.947 | 2010-12-26T16:45:09.850 | 2010-12-25T23:05:05.703 | 89,806 | 400,861 | [
"c#",
"algorithm",
"data-structures",
"graph",
"a-star"
]
|
4,532,228 | 1 | null | null | 3 | 579 | 
Above is presented a case where I have only 512 MB of physical memory. What I have read up so far, is that ZONE_NORMAL is mapped to the kernel virtual address space as shown. Essentially I have a 512 MB physical memory, out of which 496 MB worth of ZONE_NORMAL is mapped to the kernel virtual space. Based on this understanding, following are my question:
- -
I am totally mixed up of the case where the physical memory is less than 4GB as shown in this case that I have put forth. Have I "missed" out on the ZONE_HIGHMEM here ? How does it get determined, how much of the physical memory goes to ZONE_NORMAL and how much goes to ZONE_HIGHMEM ?
Would really appreciate if someone can throw light on this.
| ZONE_NORMAL association with kernel/user-pages | CC BY-SA 3.0 | null | 2010-12-25T23:59:19.223 | 2011-04-30T23:51:16.060 | 2011-04-30T23:51:16.060 | 198,536 | 398,369 | [
"linux-kernel",
"kernel",
"arm",
"linux-device-driver",
"embedded-linux"
]
|
4,532,342 | 1 | 4,532,365 | null | 13 | 14,395 | I'm having problems with the GL_LINES block... the lines in the sample below do not connect on the ends (although sometimes it randomly decides to connect a corner or two). Instead, the endpoints come within 1 pixel of one another (leaving a corner that is not fully squared; if that makes sense). It is a simple block to draw a solid 1-pixel rectangle.
```
glBegin(GL_LINES);
glColor3b(cr, cg, cb);
glVertex3i(pRect->left, pRect->top, 0);
glVertex3i(pRect->right, pRect->top, 0);
glVertex3i(pRect->right, pRect->top, 0);
glVertex3i(pRect->right, pRect->bottom, 0);
glVertex3i(pRect->right, pRect->bottom, 0);
glVertex3i(pRect->left, pRect->bottom, 0);
glVertex3i(pRect->left, pRect->bottom, 0);
glVertex3i(pRect->left, pRect->top, 0);
glEnd();
```
The sample below seems to correct the problem, giving me sharp, square corners; but I can't accept it because I don't know why it's acting this way...
```
glBegin(GL_LINES);
glColor3b(cr, cg, cb);
glVertex3i(pRect->left, pRect->top, 0);
glVertex3i(pRect->right + 1, pRect->top, 0);
glVertex3i(pRect->right, pRect->top, 0);
glVertex3i(pRect->right, pRect->bottom + 1, 0);
glVertex3i(pRect->right, pRect->bottom, 0);
glVertex3i(pRect->left - 1, pRect->bottom, 0);
glVertex3i(pRect->left, pRect->bottom, 0);
glVertex3i(pRect->left, pRect->top - 1, 0);
glEnd();
```
Any OpenGL programmers out there that can help, I would appreciate it :)
The picture is a zoomed-in view of a screenshot. As you can see, the top left corner is not connected. The top right corner is. Not see are the bottom left and right, which are not connected.
The viewport is setup to a 1 to 1 pixel per coordinate.
```
glDisable(GL_DEPTH_TEST);
glDisable(GL_LIGHTING);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrtho(0, __nRendererWidth, __nRendererHeight, 0, -1, 100);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
glEnable (GL_TEXTURE_2D);
```
| OpenGL GL_LINES endpoints not joining | CC BY-SA 4.0 | 0 | 2010-12-26T00:43:46.563 | 2021-12-01T07:50:45.183 | 2018-07-30T04:29:55.173 | 1,033,581 | 482,910 | [
"opengl"
]
|
4,532,376 | 1 | 4,533,097 | null | 1 | 111 | How to input such system

into maple so that it would solve it?
BTW we some part of system will be given to us,, which we do not know certently - may be some Ai's may be some Bi's as constants. we do not know how much constants we will get. And we would need from given constants get a soltion for other a's and b's. in real life we will be provided with s as a constant but I hoped for general solution=)
| How do I input this system into maple? | CC BY-SA 2.5 | 0 | 2010-12-26T01:03:29.753 | 2010-12-26T13:36:32.640 | 2010-12-26T13:36:32.640 | 434,051 | 434,051 | [
"math",
"system",
"maple"
]
|
4,532,579 | 1 | 4,532,812 | null | 21 | 25,612 | In the second code there is a textBlock with the text "Mina övningar"
How can I change the text color to black when the tabItem is selected?
style:
```
<Style TargetType="{x:Type TabItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid>
<Border Name="Border" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Margin="0,0,0,13" CornerRadius="5" >
<ContentPresenter x:Name="ContentSite" VerticalAlignment="Top" HorizontalAlignment="Center" ContentSource="Header" Margin="9"/>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="Black"/>
<Setter TargetName="Border" Property="Background">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFF9F7FD" Offset="0.432" />
<GradientStop Color="#FFECF7FD" Offset="0.433" />
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter TargetName="ContentSite" Property="Margin" Value="9,12,9,9" />
</Trigger>
<Trigger Property="IsSelected" Value="False">
<Setter TargetName="Border" Property="Background" Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
```
tabitem:
```
<TabItem Background="White">
<TabItem.Header>
<StackPanel Orientation="Vertical">
<Image Height="32" Source="/Glosboken;component/Images/library bookmarked.png" />
<TextBlock Text="Mina övningar" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White" />
</StackPanel>
</TabItem.Header>
<Grid>
<ListBox Height="216" Name="bookslist" VerticalAlignment="Top" Background="White" BorderBrush="White" Foreground="White" SelectedIndex="0" Margin="0,0,129,0" />
</Grid>
</TabItem>
```

| Changing the text color of the selected tabItem in a TabControl? | CC BY-SA 2.5 | 0 | 2010-12-26T03:03:19.230 | 2021-05-27T14:03:44.600 | null | null | 263,723 | [
"wpf",
"tabcontrol",
"tabitem"
]
|
4,532,649 | 1 | 6,870,621 | null | 6 | 32,532 | How to do automatic mysql db backup using mysql workbench?

Is it possible?
| How to do automatic mysql db backup using mysql workbench | CC BY-SA 2.5 | 0 | 2010-12-26T03:34:20.650 | 2015-06-29T06:59:39.937 | null | null | 472,034 | [
"mysql",
"database-backups"
]
|
4,532,865 | 1 | 4,532,920 | null | 4 | 4,312 | Basically I want something like this. What are the ready-made options for me? Is there any proper short name for this kind of widget?

| jQuery multiselect dropdown with close button for selected items | CC BY-SA 2.5 | 0 | 2010-12-26T05:23:35.450 | 2010-12-26T05:52:31.120 | null | null | 1,897 | [
"javascript",
"jquery",
"multi-select"
]
|
4,533,022 | 1 | 4,533,027 | null | 0 | 195 | I am trying do a sign up process. Where i have a method inside the DbAdaptor where i check if the username exists.
```
public Boolean checkUsername(String username) throws SQLException {
Cursor mCursor = db.query(TABLE_USERS, new String[] { ID,
KEY_NAME, KEY_USERNAME}, KEY_USERNAME + "="
+ username, null, null, null, null, null);
if (mCursor != null) {
return true;
}
return false;
}
```
From the Edit text i sent a value "harsha" as username to test it. but i am getting the following error

[http://variable3.com/files/screenshots/2010-12-26_1215.png](http://variable3.com/files/screenshots/2010-12-26_1215.png)
the code inside the activity is this
```
DBAdapter db = new DBAdapter(RegisterActivity.this);
db.open();
if (db.checkUsername(username))
Toast.makeText(RegisterActivity.this, "Found",
Toast.LENGTH_LONG).show();
else
Toast.makeText(RegisterActivity.this, "Not Found",
Toast.LENGTH_LONG).show();
db.close();
```
| No Such Column found | CC BY-SA 2.5 | null | 2010-12-26T06:55:14.580 | 2011-05-25T03:03:19.363 | 2011-05-25T03:03:19.363 | 135,152 | 155,196 | [
"android",
"sqlite"
]
|
4,533,317 | 1 | 4,534,020 | null | 3 | 6,257 | I am a noob in java ee
But to learn it I should connect to mysql!
I have googled about a day:
```
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connection = DriverManager.getConnection("mysql:jdbc://127.0.0.1:3036/shedule", "root", "12345");
```
said:
0) mysql -h 127.0.0.1 -P 3306 -u root -p works
2) netstat said that mysqld listened to 0.0.0.0:3306
3) lastest netbeans 6.9.1 + glassfish 3.0.1
4) I have ONLY mysql-connector-java-5.1.6-bin.jar no other jars! searched at all hard drives before and after deploy!
it seat at:
D:\Program Files\NetBeans 6.9\ide\modules\ext and
D:\NetBeansProjects\MyProject\build\web\WEB-INF\lib
5) I have selected "add Library" and mysql-connector-java-5.1.6-bin.jar
6) people said that netbeans deploy this jar to
D:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\lib
But after deploy there are no mysql-connector-java-5.1.6-bin.jar
Finaly:

| netbeans with glassfish have no suitable driver found for mysql:jdbc | CC BY-SA 2.5 | null | 2010-12-26T09:12:40.733 | 2010-12-26T14:10:05.853 | 2010-12-26T14:10:05.853 | 404,949 | 404,949 | [
"java",
"mysql",
"netbeans",
"jar",
"glassfish"
]
|
4,533,346 | 1 | 4,533,372 | null | 1 | 91 | Let's say I have form looks like

First: Use jQuery to display data like auto submit on every select field
```
$('#region,#categories,#types').change(function () {
$(this).closest("form").submit();
});
```
Second : One time query. Select all fields then click search button
I want to know which method is good to display the search results.
| Which query is good to display results on search | CC BY-SA 2.5 | null | 2010-12-26T09:27:42.950 | 2010-12-26T09:39:16.457 | null | null | 520,725 | [
"php",
"jquery"
]
|
4,533,426 | 1 | 4,533,456 | null | 1 | 105 | In the DataBase i Stored the Some information(represented in the Attached ScreenShot)

what is the best way to get the longest hierarchy id?
in the attached pic the longest hierarchy is 128 ,because it has the least number of 0's values in it's fields(t_definition_types_id_(1-4))
Thank You
| get the longest hierarchy | CC BY-SA 2.5 | null | 2010-12-26T09:59:25.820 | 2010-12-26T21:20:09.757 | 2010-12-26T10:32:36.207 | 128,165 | 531,224 | [
"php",
"sql",
"mysql"
]
|
4,533,425 | 1 | null | null | 7 | 3,446 | I'm trying to draw an animation on a window with a transparent background using Windows API. The problem is that I can't delete the previous drawing from the window.
I set the following parameters:
```
InvalidateRect(m_hWnd, &sClientRect, TRUE); // we set the bErase parameter as TRUE
paintParams.dwFlags = BPPF_ERASE; // erase window content while copying backbuffer
paintParams.pBlendFunction = &m_sBlendfunc; // copy source image to backbuffer
```
But it still doesn't work. You can see the result in the attached image. The animation I wanted is moving the circles across the screen. What I get instead (as shown in the attached image) is artifacts of their motion because the window is not cleared before each draw.
See my full code below:
```
#include "DrawTest.h"
DrawTest* m_sDrawTest;
DrawTest::DrawTest()
{
m_pAnimation = NULL;
m_sDrawTest = NULL;
m_nFrameindex = 0;
}
DrawTest::~DrawTest(void)
{
if(m_pAnimation)
delete m_pAnimation;
m_pAnimation = NULL;
if(m_sDrawTest)
delete m_sDrawTest;
m_sDrawTest = NULL;
}
int DrawTest::Init(AnimationManager* pAnimationManager,HINSTANCE hInstance,int nCmdShow)
{
//listener
m_sDrawTest = this;
//get anemation (sequence of frames containing location and png's);
m_pAnimation = pAnimationManager->GetAnimation(2);
//set window class information
WNDCLASSEX wcex;
wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndDrawTestProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.hbrBackground = (HBRUSH)GetStockObject(HOLLOW_BRUSH);//configures the window to use transparrent brush
wcex.lpszMenuName = NULL;
wcex.lpszClassName = sWindowClass;
wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_APPLICATION));
if (!RegisterClassEx(&wcex))
{
MessageBox(NULL,
_T("Call to RegisterClassEx failed!"),
_T("Win32 Guided Tour"),
NULL);
return 1;
}
m_hInst = hInstance; // Store instance handle in our global variable
m_hWnd = CreateWindow(
sWindowClass,
sTitle,
WS_POPUP,
200, 200,
1024, 600,
NULL,
NULL,
hInstance,
NULL
);
if (!m_hWnd)
{
MessageBox(NULL,
_T("Call to CreateWindow failed!"),
_T("Win32 Guided Tour"),
NULL);
return 1;
}
SetWindowPos(m_hWnd, // handle to window
HWND_TOPMOST, // top z
0, // ignored
0, // ignored
0, // ignored
0, // ignored
SWP_NOSIZE | SWP_NOMOVE);
// The parameters to ShowWindow explained:
// hWnd: the value returned from CreateWindow
// nCmdShow: the fourth parameter from WinMain
ShowWindow(m_hWnd,
nCmdShow);
UpdateWindow(m_hWnd);
return 1;
}
// Called by an external timer. This is the application "Next Step" proc.
void DrawTest::TimeStep(){
PostMessage(m_hWnd, WM_PAINT, 0, 0);
}
// WndDrawTestProc replaces the default DefWindowProc
//
// FUNCTION: WndDrawTestProc(HWND, UINT, WPARAM, LPARAM)
//
// PURPOSE: Processes messages for the main window.
//
// WM_PAINT - Paint the main window
// WM_DESTROY - post a quit message and return
//
//
LRESULT CALLBACK WndDrawTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_ERASEBKGND:
return DefWindowProc(hWnd, message, wParam, lParam);
case WM_PAINT:
// call onNextFrame to draw current frame.
m_sDrawTest->OnNextFrame(hWnd);
// ensures that the window is in top most position
SetWindowPos(hWnd, // handle to window
HWND_TOPMOST, // top z
0, // ignored
0, // ignored
0, // ignored
0, // ignored
SWP_NOSIZE | SWP_NOMOVE);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
break;
}
return 0;
}
/*
DrawTest::OnNextFrame
Called by WndDrawTestProc when receving WM_PAINT message
Configures the drawing canvas and calles DrawTest::Draw(HDC hBBDC) to do the actual drawing
*/
void DrawTest::OnNextFrame(HWND hUILoopWnd)
{
if(m_nFrameindex > m_pAnimation->GetNumOfFrames() - 1)
return;
// defines paint area
RECT sClientRect;
GetClientRect(hUILoopWnd, &sClientRect);
InvalidateRect(m_hWnd, &sClientRect, TRUE); // we set the bErase parameter as TRUE
//blending structure
m_sBlendfunc.BlendOp= AC_SRC_OVER;
m_sBlendfunc.BlendFlags = 0;
m_sBlendfunc.SourceConstantAlpha = 255;
m_sBlendfunc.AlphaFormat = AC_SRC_ALPHA;
HDC hdc;
PAINTSTRUCT ps;
hdc = BeginPaint(hUILoopWnd, &ps);
GetClientRect(hUILoopWnd, &sClientRect);
BP_PAINTPARAMS paintParams = { sizeof(BP_PAINTPARAMS) };
paintParams.dwFlags = BPPF_ERASE; // erase window content while copying backbuffer
paintParams.pBlendFunction = &m_sBlendfunc; // how to copy source image to backbuffer
HDC hBBDC;
HPAINTBUFFER hPBuffer;
paintParams.cbSize = sizeof(paintParams);
hPBuffer = BeginBufferedPaint(hdc, &sClientRect, BPBF_COMPATIBLEBITMAP, &paintParams, &hBBDC);
//draw animation
Draw(hBBDC);
m_nFrameindex ++;
EndBufferedPaint(hPBuffer, TRUE);
EndPaint(hUILoopWnd, &ps);
}
/*
Draw
Paint the animation frame on the backbuffer
*/
void DrawTest::Draw(HDC hBBDC)
{
HDC hdcScreen = GetDC(NULL);
HDC hdcMem = CreateCompatibleDC(hdcScreen);
bool test = false;
HGDIOBJ hbmpOld = SelectObject(hdcMem, m_pAnimation->m_pFramesArray[m_nFrameindex]->hBmp);
HBITMAP ptemp = CreateCompatibleBitmap(hdcMem,m_pAnimation->m_pFramesArray[m_nFrameindex]->nWidth,
m_pAnimation->m_pFramesArray[m_nFrameindex]->nHeight);
DeleteObject(ptemp);
test = AlphaBlend(hBBDC,m_pAnimation->m_pFramesArray[m_nFrameindex]->nPtX,m_pAnimation->m_pFramesArray[m_nFrameindex]->nPtY
,m_pAnimation->m_pFramesArray[m_nFrameindex]->nWidth, m_pAnimation->m_pFramesArray[m_nFrameindex]->nHeight,
hdcMem,0,0,m_pAnimation->m_pFramesArray[m_nFrameindex]->nWidth,m_pAnimation->m_pFramesArray[m_nFrameindex]->nHeight,m_sBlendfunc);
DWORD test10 = GetLastError();
SelectObject(hdcMem, hbmpOld); //placing the old object back
test = DeleteDC(hdcMem); // after CreateCompatibleDC
test = ReleaseDC(NULL, hdcScreen); // after GetDC
}
```
This is the result after 5 frames:

| How can I draw an animation on a transparent window using Windows API? | CC BY-SA 2.5 | 0 | 2010-12-26T09:59:09.880 | 2011-02-23T17:37:42.860 | 2010-12-26T10:12:31.663 | 366,904 | 487,308 | [
"c++",
"windows",
"gdi+",
"transparency",
"wm-paint"
]
|
4,533,521 | 1 | 4,533,618 | null | 2 | 213 | I am trying to create a log in box which should look like this  but this is what I get.  Here is my code.
```
<html>
<head>
<title>Login Page</title>
<script type="javascript" src="js/login.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div class="logo">
<img src="images/logo.gif"/>
</div>
<div class="line">
</div>
<div class="loginImage">
<img src="images/login_banner.jpg" />
</div>
<div class="loginTop">
<img src="images/log_top.gif" />
</div>
<div class="loginBox">
<br/>
<div class="innerLogin">
<text>Secure Login</text>
<br/><br/>
<img src="images/field_top.gif" />
<div class="innerLoginBox">
<br/>
<div class="loginControls">
Login Id
<div style="position:relative;top:15px;">
<input type="text" name="txtLogin" />
</div>
<div style="position:relative;top:30px;">
Password
</div>
<div style="position:relative;top:36px;">
<input type="password" name="txtPass" / >
</div>
<div style="position:relative;top:45px;">
<input type="button" value="Log In" />
</div>
</div>
</div>
<img src="images/field_bottom.gif" />
</div>
</div>
<div class="loginBottom">
<img src="images/log_bottom.gif" />
</div>
</body>
</html>
```
```
.logo
{
position:absolute;
top:15px;
left:80px;
}
.line{
position:absolute;
top:65px;
left:80px;
width:955px;
height:5;
background:#B60548;
}
.loginImage
{
position:absolute;
top:85px;
left:80px;
}
.loginTop
{
position:absolute;
top:85px;
left:770px;
}
.loginBottom
{
position:relative;
top:339px;
left:762px;
}
.loginBox
{
position:absolute;
top:88px;
left:770px;
background-color:#E5E5E5;
width:255px;
}
.innerLogin
{
position:relative;
left:15px;
}
.innerLoginBox
{
position:relative;
background-color:white;
width:226px;
}
.loginControls
{
position:relative;
left:10px;
}
text
{
color:#A4003F;
font: bold 16px Arial,Helvetica,sans-serif;
}
```
I don't know what's wrong with my html code. Can some one point me in a right direction ?Thanks.
| My login box is not displayed properly | CC BY-SA 3.0 | null | 2010-12-26T10:42:09.217 | 2013-01-29T15:16:07.450 | 2013-01-29T15:16:07.450 | 5,849 | 92,487 | [
"html",
"css"
]
|
4,533,629 | 1 | 4,587,646 | null | 0 | 672 | Long story short:
I have a BDC application definition in my sharepoint 2007 server, which is pulling data from a SQL server.
Some of this data is the Employee Name.
What i'm trying to do, is that when a user is writing a portion of the employee name in the BDC column (in the custom list) and then clicks 'Check Names', it will show him a list of the available names it found. (Like this user column type:)

now, what happens in real life when using BDC, is that i dont see the list of available users.
Any help solving this issue would be greatly appreciated!
| Sharepoint BDC - Check names not working | CC BY-SA 2.5 | null | 2010-12-26T11:16:05.620 | 2011-01-03T19:35:28.917 | 2010-12-27T09:22:08.230 | 95 | 539,638 | [
"sharepoint",
"bdc"
]
|
4,533,816 | 1 | 5,214,165 | null | 19 | 4,299 | I am using the `setView:` method on an `NSMenuItem` to set a custom view. In this custom view there is an image which takes the whole of the view. The `NSMenuItem` with this custom view is the first in the menu but the problem is it doesn't sit flush with the top of the menu, there is a big gap as you can see here:

Why is this happening and how can I stop it?
---
I am using this code now but I am getting `EXC_BAD_ACCESS` on the line `InstallControlEventHandler`.
```
-(void)applicationDidFinishLaunching:(NSNotification *)aNotification {
HIViewRef contentView;
MenuRef menuRef = [statusMenu carbonMenuRef];
HIMenuGetContentView(menuRef, kThemeMenuTypePullDown, &contentView);
EventTypeSpec hsEventSpec[1] = {
{ kEventClassMenu, kEventMenuCreateFrameView }
};
InstallControlEventHandler(contentView,
NewEventHandlerUPP((EventHandlerProcPtr)hsMenuCreationEventHandler),
GetEventTypeCount(hsEventSpec),
hsEventSpec,
NULL,
NULL); // Get EXC_BAD_ACCESS here.
}
static OSStatus hsMenuContentEventHandler( EventHandlerCallRef caller, EventRef event, void* refcon )
{
OSStatus err;
check( GetEventClass( event ) == kEventClassControl );
check( GetEventKind( event ) == kEventControlGetFrameMetrics );
err = CallNextEventHandler( caller, event );
if ( err == noErr )
{
HIViewFrameMetrics metrics;
verify_noerr( GetEventParameter( event, kEventParamControlFrameMetrics, typeControlFrameMetrics, NULL,
sizeof( metrics ), NULL, &metrics ) );
metrics.top = 0;
verify_noerr( SetEventParameter( event, kEventParamControlFrameMetrics, typeControlFrameMetrics,
sizeof( metrics ), &metrics ) );
}
return err;
}
static OSStatus hsMenuCreationEventHandler( EventHandlerCallRef caller, EventRef event, void* refcon )
{
OSStatus err = eventNotHandledErr;
if ( GetEventKind( event ) == kEventMenuCreateFrameView)
{
err = CallNextEventHandler( caller, event );
if ( err == noErr )
{
static const EventTypeSpec kContentEvents[] =
{
{ kEventClassControl, kEventControlGetFrameMetrics }
};
HIViewRef frame;
HIViewRef content;
verify_noerr( GetEventParameter( event, kEventParamMenuFrameView, typeControlRef, NULL,
sizeof( frame ), NULL, &frame ) );
verify_noerr( HIViewFindByID( frame, kHIViewWindowContentID, &content ) );
InstallControlEventHandler( content, hsMenuContentEventHandler, GetEventTypeCount( kContentEvents ),
kContentEvents, 0, NULL );
}
}
return err;
}
```
Also note the line `metrics.top = 0` this is the line which should remove the gap at the top. However I cannot get it work that far. Does anyone know why I would be recieving an `EXC_BAD_ACCESS` there. I have already created and allocated `statusMenu` so surely it should work?
| Gap above NSMenuItem custom view | CC BY-SA 2.5 | 0 | 2010-12-26T12:34:25.147 | 2011-03-07T22:25:12.213 | 2010-12-27T08:23:55.883 | 92,714 | 92,714 | [
"objective-c",
"cocoa",
"macos",
"nsmenu",
"nsmenuitem"
]
|
4,533,903 | 1 | 4,534,970 | null | 1 | 1,494 | Have simple composite component(compositeComponent.jsf),that is embedded to global.jsf page.
The problem is that ajax can't update this component.
Neither `:componentId`, not `formId:componentId` declaration doesn't work.
Should i write own method generator in my bean for id generation?
see pic. for more info!

| JSF 2.0(Primefaces) - composite component is unreachable, if to refer by ID | CC BY-SA 2.5 | null | 2010-12-26T13:01:02.240 | 2010-12-26T19:57:14.697 | 2010-12-26T18:45:18.463 | 157,882 | 170,830 | [
"java",
"jsf",
"jsf-2",
"facelets",
"composite-component"
]
|
4,534,391 | 1 | 4,534,752 | null | 2 | 710 | I have an `NSBezierPath` that I'm filling and stroking. I'd like to add some inner glow to the path (a light stroke, just inside of the outer stroke), and the thing that comes to mind is to use the same path shrunk by 1 pixel (the size of the line that is already )stroked. Is there a way to do this?
Alternatively, is there some sort of pattern I can use when applying both a border (stroke) and a glow to a bezier path?
Example, the (extremely subtle) inner glow on the Google Chrome tabs:

| Any simple way to "resize" an NSBezierPath? | CC BY-SA 2.5 | 0 | 2010-12-26T15:41:42.587 | 2010-12-26T17:28:46.327 | null | null | 322,122 | [
"objective-c",
"cocoa",
"macos",
"nsbezierpath"
]
|
4,534,525 | 1 | 4,534,581 | null | 1 | 2,419 | I'm trying to create a basic application, i created facebook application before but everything has been changed :(
I looked every where to create a basic application, but now i'm getting mad because there isn't any working sample. Because of the changed links, facebook api changes, facebook wiki changes i couldn't find a working copy.
I wonder if anyone can help me to write a basic app that gets permission to write user name to screen in facebook developer toolkit asp.net. I looked computerbeacon.net, codeplex, and some other pages but i couldn't succeed, so please don't give me the links :)
Edit: I' m adding some screenshots and some codes, it will may be help you to find my problem.
Here some screenshots from fb;
This is the core settings,

This is the Facebook integration settings,

Web.config file
```
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="FaceBookAPIKey" value="MyapiKey"/>
<add key="FaceBookSecretKey" value="MyapiSecret"/>
</appSettings>
<system.web>
<compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>
```
My Default.aspx file;
```
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="Facebook.Web" Namespace="Facebook.Web" TagPrefix="cc1" %>
<cc1:CanvasFBMLLoginControl ID="CanvasFBMLLoginControl1" runat="server" RequireLogin="true" />
```
Result;

Thanks
| How to create facebook application via Facebook Developer Toolkit | CC BY-SA 2.5 | 0 | 2010-12-26T16:20:59.757 | 2010-12-26T17:36:41.090 | 2010-12-26T17:36:41.090 | 331,798 | 331,798 | [
"asp.net",
"canvas",
"facebook"
]
|
4,534,539 | 1 | 4,638,069 | null | 7 | 3,877 | I would like to build a Connect 4 engine which works using an artificial neural network - just because I'm fascinated by ANNs.
I'be created the following draft of the ANN structure. Would it work? And are these connections right (even the cross ones)?

Could you help me to draft up an UML class diagram for this ANN?
I want to give the board representation to the ANN as its input. And the output should be the move to chose.
The learning should later be done using [reinforcement learning](http://en.wikipedia.org/wiki/Reinforcement_learning) and the [sigmoid function](http://en.wikipedia.org/wiki/Sigmoid_function) should be applied. The engine will play against human players. And depending on the result of the game, the weights should be adjusted then.
... is mainly coding issues. The more it goes away from abstract thinking to coding - the better it is.
| Connect 4 with neural network: evaluation of draft + further steps | CC BY-SA 2.5 | 0 | 2010-12-26T16:23:11.867 | 2016-06-29T08:55:59.477 | 2011-01-03T03:23:49.843 | 89,818 | 89,818 | [
"artificial-intelligence",
"neural-network",
"game-ai"
]
|
4,534,833 | 1 | 4,592,935 | null | 0 | 315 | I want to limit the number of buttons in the group of a ribbon in Word 2007 as the buttons are getting generated on the basis of data in the database. See the pic below. . I wanted to have limited number, say 6 or so in the ribbon with a dialogboxlauncher which when clicked will open a pane showing all the buttons. Is there any way of doing the same. Can somebody also tell me how to create that pane when somebody clicks on the dialogbox launcher?
| OpenXML - Limiting the number of buttons showed in the group in custom MS-Word ribbon | CC BY-SA 2.5 | null | 2010-12-26T17:57:33.747 | 2011-01-04T11:09:33.130 | null | null | 255,562 | [
"openxml",
"ribbon",
"openxml-sdk",
"ribbon-control"
]
|
4,534,940 | 1 | 4,534,954 | null | 1 | 8,209 | I'm writing some dll which use xmlrpc-c project ([http://xmlrpc-c.sourceforge.net/](http://xmlrpc-c.sourceforge.net/)). I downloaded and compiled xmlrpc-c using MSVC++2008. With settings:

Now I'm trying to build my dll and link it with xmlrpc-c. I'm using settings:

I'm getting linker errors:
```
------ Build started: Project: [...], Configuration: Debug Win32 ------
Linking...
msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in xmlrpccppD.lib(value.obj)
msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in xmlrpccppD.lib(value.obj)
msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in xmlrpccppD.lib(value.obj)
msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in xmlrpccppD.lib(value.obj)
LIBCMTD.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __malloc_dbg already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __free_dbg already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbghook.obj) : error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(sprintf.obj) : error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dosmap.obj) : error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(strftime.obj) : error LNK2005: _strftime already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(mlock.obj) : error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRTD.lib(cinitexe.obj)
LIBCMTD.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(dbgrptw.obj) : error LNK2005: __CrtDbgReportW already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(getenv.obj) : error LNK2005: _getenv already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(strtol.obj) : error LNK2005: _strtol already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(strtoq.obj) : error LNK2005: __strtoui64 already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(_file.obj) : error LNK2005: ___iob_func already defined in MSVCRTD.lib(MSVCR90D.dll)
LIBCMTD.lib(strnicmp.obj) : error LNK2005: __strnicmp already defined in MSVCRTD.lib(MSVCR90D.dll)
Creating library [...].lib and object [...].exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
[...].dll : fatal error LNK1120: 1 unresolved externals
Build log was saved at "[...]\Debug\BuildLog.htm"
[...] - 34 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
```
I was trying to add linker options:
```
/NODEFAULTLIB:MSVCRTD
/NODEFAULTLIB:LIBCMTD
```
But it also give strange restults.
I suspect that diffrent runtime libraries cause issue (MT debug and MT DLL debug).
How can I fix that?
| MSVC++ 2008 issue with linker and dll | CC BY-SA 2.5 | 0 | 2010-12-26T18:26:29.107 | 2013-01-24T06:49:26.233 | null | null | 170,614 | [
"c++",
"c",
"visual-c++",
"dll",
"linker"
]
|
4,535,397 | 1 | 4,535,452 | null | 0 | 1,595 | Hey,.. i wanna show pictures with names onit in a jList, i know it get's also in a JPanel but i'm now using a jList, doesn't matter..
why does the jlist don't fit the images only in 2 horizontal 'cells' and then go one row down?
sry my english is bad and i don't know how to describe it better, but look on the picture, why does the jlist dont set the e.g. 3rd picture right next to the 2nd?

| JList: Horizontal_WRAP fitted? | CC BY-SA 2.5 | null | 2010-12-26T21:00:14.830 | 2011-11-29T14:46:18.263 | null | null | 1,333,276 | [
"java",
"swing",
"jlist"
]
|
4,535,510 | 1 | 4,536,623 | null | 1 | 1,616 | I hvae done a [netbeans tutorial](http://platform.netbeans.org/tutorials/nbm-wizard.html) to create a wizard dialog, and the result wizard dialog module have appear on the toolbar of my netbeans, but the problem is how could I use that module in my own project.

I created a new project called 'testDemo' and copied all the source code of the module, then I tried to create a instance of that wizard dialog, but failed with 'org.openide could not found'.

Thanks.
| How to use netbeans module in my own project? | CC BY-SA 2.5 | null | 2010-12-26T21:34:50.527 | 2010-12-27T04:30:37.293 | null | null | 193,251 | [
"java",
"swing",
"netbeans",
"wizard",
"formwizard"
]
|
4,535,743 | 1 | 4,989,412 | null | 0 | 1,868 | I am reading Oracle SOA Suite 11gR1 and try to follow the tutorial:
[http://www.packtpub.com/article/installation-configuration-oracle-soa-suite-11g-1](http://www.packtpub.com/article/installation-configuration-oracle-soa-suite-11g-1)
This is all on a Win 7 machine btw.
When I create the domain (Middle of page) and try to associate the EnterPrise Manager with the Oracle_SOA1 home I do not have that option. For some reason its says next Oracle_Common next to it and I am not experienced enough to understand why.
Can someone please let me know how to fix that and what I missed. Maybe I need to uninstall everything and start over.
I installed Oracle DB 11gR2, WebLogic 10.3 and SOA suite 11gR1 and Jdev.
I am able to start the servers and browse to [http://localhost:7001/console](http://localhost:7001/console) BUT I can NOT browse to [http://localhost:7001/em](http://localhost:7001/em). I assume it has something to do with the problem mentioned above.
I am including a screen shot of my domain creation window:

I hope someone can please help me with this, I would like to continue with the book to learn SOA.
Thank you,
Steve
| WebLogic / SOA suite install - Oracle HOME confusion | CC BY-SA 2.5 | 0 | 2010-12-26T22:54:00.177 | 2012-01-30T03:48:03.420 | null | null | 233,309 | [
"weblogic",
"soa",
"oracle11g",
"weblogic-10.x",
"middleware"
]
|
4,536,000 | 1 | null | null | 2 | 1,457 | What is a "realistic" way to build a galaxy in 2D with WPF?
I'm not interessed in the physical modelling but the graphical aspect . At least the stars (position, size, color, pulsing etc.) should be generated from code. Generating milkyways would be nice. (See update bellow.)
Main questions are:
- - - - -
Some examples (taken from the web, I want to build similar pictures (animations) with wpf):


## Update
The goal of this project is to visualize huge data structures. "Galaxy" is only a semblance.
From birdview it's similar to [code_swarm](http://www.michaelogawa.com/code_swarm/) but based on WPF. So this is an astronomy application or something, just a view for hierarchical data.
| A galaxy with stars, milkyway and other stuffs (WPF) | CC BY-SA 2.5 | 0 | 2010-12-27T00:21:56.803 | 2010-12-28T23:46:43.983 | 2010-12-28T23:46:43.983 | 72,563 | 72,563 | [
"c#",
".net",
"wpf"
]
|
4,536,341 | 1 | 4,536,686 | null | 3 | 7,331 | Is it possible to make this texture in pure css?

See this also for texture: [http://dribbble.com/shots/70256-Background-Textures](http://dribbble.com/shots/70256-Background-Textures)
| Paper Texture in CSS? | CC BY-SA 2.5 | 0 | 2010-12-27T02:45:05.083 | 2010-12-27T17:21:43.597 | 2010-12-27T02:48:49.433 | null | 103,753 | [
"css",
"photoshop",
"textures"
]
|
4,536,394 | 1 | 4,536,421 | null | 16 | 4,070 | An application in the field is getting this message intermittently:

I am not able to reproduce this on my machine. I have also traced what I believe is the relevant code and can't find any access to uninitialized objects.
I've never had to deal with this kind of problem.
I did a build with madExcept and unfortunately the program does not crash once it is bundled.
Any opinions on madExcept vs EurekaLog for finding this kind of thing? I've never used FastMM. Would it be useful in his situation? (Delphi 2010) Any suggested flags to set in FastMM? Any other recommendations?
| How do I debug an Access violation in the field? | CC BY-SA 2.5 | null | 2010-12-27T03:04:26.063 | 2010-12-27T16:32:48.767 | null | null | 246,057 | [
"delphi"
]
|
4,536,510 | 1 | null | null | 0 | 414 | i have 2 textview in a viewcontroller. the 1st textview is not editable, but the 2nd is editable. i want to make both of them scroll in the same position and size when the keyboard is appear. I think i have to use UIScrollView as base of both of textview. And then i add the UIScrollView in xib (bot of textview are made in xib too). and this is the picture if this hierarchy :

in the viewDidLoad method, i add this code :
```
- (void)viewDidLoad {
[super viewDidLoad];
[scrollTextView addSubview:lineNumberTextView];
[scrollTextView addSubview:_codeTextView];
[lineNumberTextView bringSubviewToFront:scrollTextView];
[_codeTextView bringSubviewToFront:scrollTextView];
```
}
but after that i can't scroll anything. What i have to do?
thx for the advices
this my code after do some advises like mac gave to me :
```
- (void)viewDidLoad {
[super viewDidLoad];
scrollTextView.showsVerticalScrollIndicator = YES;
scrollTextView.showsHorizontalScrollIndicator = YES;
scrollTextView.scrollEnabled = YES;
_codeTextView.showsHorizontalScrollIndicator = NO;
_codeTextView.showsVerticalScrollIndicator = NO;
_codeTextView.scrollEnabled = YES;
_codeTextView.tag = 0;
_codeTextView.delegate = self;
lineNumberTextView.showsVerticalScrollIndicator = NO;
lineNumberTextView.showsHorizontalScrollIndicator = NO;
lineNumberTextView.scrollEnabled = YES;
lineNumberTextView.tag = 1;
lineNumberTextView.delegate = self;
```
}
but just the _codeTextView scroll, the lineTextVew stil didn't scroll...somebody know why??
| adding a UIScrollView as a superview of 2 UITextview made no view can be scrolled | CC BY-SA 2.5 | null | 2010-12-27T03:46:57.813 | 2010-12-27T09:01:56.813 | 2010-12-27T09:01:56.813 | 515,986 | 515,986 | [
"iphone",
"uiscrollview",
"uitextview"
]
|
4,536,821 | 1 | 4,639,165 | null | 0 | 1,790 | The CSS -
```
#header {
overflow: hidden;
background: url(images/header-bg.png) top repeat-x #FFFFFF;
position: relative;
border: none;
display: block;
height: 125px;
width:100%;
}
```
The HTML -
```
<div id="header">
<a href="http://localhost/" title="Dev" id="logo"><img src="images/logo.png" alt="" /></a>
</div>
```
This works good in Firefox -

But not in Chrome :( -

The image isn't being stretched vertically in Chrome.
Help!
Just a note, I'm on Linux.
Edit : The background image (50x112px) -

Check it out here - [http://movie-buffs.info/](http://movie-buffs.info/)
| Background image not getting vertically stretched in Chrome | CC BY-SA 2.5 | null | 2010-12-27T05:46:05.633 | 2011-01-09T12:46:00.997 | 2010-12-27T17:56:10.013 | 305,357 | 305,357 | [
"css"
]
|
4,537,477 | 1 | 4,539,529 | null | 1 | 1,434 | i'v made toolbar for IE, and want to hide leftside-close-button. What is the way to do it?

| hide close button in ie toolbar | CC BY-SA 3.0 | null | 2010-12-27T08:31:28.487 | 2011-05-22T19:03:11.517 | 2011-05-22T19:03:11.517 | 12,597 | 395,034 | [
"internet-explorer",
"toolbar"
]
|
4,537,528 | 1 | 4,537,553 | null | 10 | 13,398 | I have a DatePicker minimum year is 2000 and needs to be done so that the minimum year was equal to, well, for example, 1910

```
$(" .datepicker").datepicker({dateFormat: 'dd.mm.yy', changeYear: true, changeMonth: true});
```
How to do it?
| datepicker minimal year | CC BY-SA 2.5 | null | 2010-12-27T08:46:42.173 | 2013-09-06T20:17:27.567 | 2012-04-30T13:04:37.163 | 1,268,895 | 528,858 | [
"jquery",
"datepicker"
]
|
4,537,673 | 1 | 4,537,705 | null | 1 | 643 | I am facing an strange issue. I developed java web app in java 6 and when I hosted it on server, its shows error since its java 5 server. I have used annotations, hibernate, rest API in my code and now I want to transform my code with java 5 environment.
is it possible to do so? if yes HOW? Or is there any other workaround for this problem? Please let me know.
@all: This is the error i am getting:

| How to use java 6 features in a java 5 environment | CC BY-SA 2.5 | null | 2010-12-27T09:19:38.483 | 2010-12-27T09:41:10.933 | 2010-12-27T09:32:11.477 | 501,767 | 501,767 | [
"java",
"compatibility"
]
|
4,537,925 | 1 | 4,538,576 | null | 1 | 4,705 | I have programmed c# application i will post screenshot. In this main form is 3 buttons which opens different forms. Now i decided to modify this application I want to Make one main form with strip menu which will open this forms. I used this code but i don't like or i'm doing something wrong. I don't like because there is child controls(minimize, maximize, close) in parent (please see second picture ):

Please advice me something. Is MDI good for such job? Thanks!
```
Sell sell = new Sell();
sell.MdiParent = this;
sell.Dock = DockStyle.Fill;
sell.Show();`
```

So my problem is that parent form is not filling when i open child form this is creen how to make that it parent form was filled with child form 
| c# winForms open forms inside mainform | CC BY-SA 2.5 | null | 2010-12-27T10:05:07.870 | 2010-12-27T12:22:16.803 | 2010-12-27T11:10:46.150 | 508,284 | 508,284 | [
"c#",
"winforms",
"mdi"
]
|
4,538,082 | 1 | 4,538,118 | null | 1 | 2,253 | I have designed the following WPF window:
```
<Window x:Class="Boris.Gui.Wpf.DragDropWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="286" Height="350" ResizeMode="CanMinimize" Title="Drag and Drop">
<Window.Resources>
<!-- Sorted matches list panel -->
<ItemsPanelTemplate x:Key="SortedMatchesListPanel">
<UniformGrid Rows="3" Columns="4" />
</ItemsPanelTemplate>
</Window.Resources>
<Grid>
<ListBox
Name="SortedMatchesListBox"
Height="180"
Margin="12,85,12,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
ItemsPanel="{StaticResource ResourceKey=SortedMatchesListPanel}" />
</Grid>
</Window>
```
When run, the `SortedMatchesListBox` list is populated with the items, and it looks like this:

My question is: Is it possible to specify the cell location of the list items in the `UniformGrid` items panel? For example, is it possible to place the highlighted `Team 2 vs Team 5` item underneath the `Team 1 vs Team 5`, i.e. move it to the next cell on the right, and to preserve the blank space where it currently resides? It should look like this:

Right now, I am using a trick of adding a blank item to the `SortedMatchesListBox.ItemsSource` to make it happen, but what I'd really like is to be able to specify the item's cell location in the items panel. Thanks for the help.
| In WPF, is it possible to specify the item's cell location within a UniformGrid panel? | CC BY-SA 2.5 | 0 | 2010-12-27T10:30:43.403 | 2010-12-27T10:36:23.997 | null | null | 119,093 | [
"wpf",
"uniformgrid"
]
|
4,538,597 | 1 | 4,538,632 | null | 0 | 46 | In my web application i am facing a weird problem. In jsp there is code for Brightcove video player. For playing this you need flash with Internet Explorer 8. While running this jsp page it sometimes provide the option to install flash and sometimes not. But what i want that every time it must show the option to install flash at the client side if the flash is not available. Something like this

| Sometimes provide option to install flash and sometimes not | CC BY-SA 3.0 | null | 2010-12-27T12:22:49.403 | 2017-08-21T21:45:23.190 | 2017-08-21T21:45:23.190 | 2,602,718 | 190,604 | [
"java",
"html",
"flash",
"jsp",
"internet-explorer-8"
]
|
4,538,609 | 1 | 4,544,173 | null | 1 | 352 | I've trying to get properly work kcaptcha class from kcaptcha.ru in my own component. 'Cause class not build for Joomla natively I break my brain on the wall.
And at the beginning...
I've a url to image generated by this class like: [http://.../index.php&task=captcha&format=raw](http://.../index.php&task=captcha&format=raw)
In main controller I've put method
```
function captcha() {
include(JPATH_COMPONENT.DS.'libraries'.DS.'captcha'.DS.'kcaptcha'.DS.'kcaptcha.php');
$session = &JSession::getInstance('default', array());
$captcha = new KCAPTCHA();
if ($session) {
$session->set('captcha_keystring', $captcha->getKeyString());
}
}
```
And I've see in browser

When I request an image from the class all working good but in my component I cannot set session variables.
Any ideas how to fix this problem?
| Captcha image and raw format | CC BY-SA 2.5 | null | 2010-12-27T12:25:11.093 | 2010-12-28T06:39:43.890 | null | null | 345,874 | [
"captcha",
"joomla1.5"
]
|
4,538,639 | 1 | null | null | 0 | 101 | I'm working with an iPad project. the problem below does not occur for iPhone projects (oddly enough)
here is what i see in IB

and here is what appears in the simulator

i've used a segmented control with style = "Bezelled". When i change the style to "Bar", IB and simulator are consistent in the display. the style is set in interface builder and not in code, if that matters
Also - the edges look rather ugly in the simulator. not what i expected even when it rendered incorrectly.
Thanks in advance
| segemented control in iphone not appearing as in interface builder for Ipad | CC BY-SA 2.5 | null | 2010-12-27T12:30:30.593 | 2010-12-27T13:03:02.473 | 2010-12-27T13:03:02.473 | 154,353 | 154,353 | [
"iphone",
"ipad",
"interface-builder"
]
|
4,538,693 | 1 | 4,538,903 | null | 0 | 2,566 | I am planning to have search functionality in WPF like it happens in Google Chrome browser. The sample is shown below

I have the backend code ready, but I want to have a TextBox like the one shown below - in which I can display the results also(like 0 of 0).
Also I would like to have the arrow marks for next and prev.
| How do I get WPF searchbox styling like GoogleChrome browser search? | CC BY-SA 2.5 | 0 | 2010-12-27T12:39:57.410 | 2017-09-25T22:22:08.860 | 2011-08-12T20:10:42.103 | 305,637 | 443,568 | [
"wpf",
"xaml",
"search",
"google-chrome",
"styles"
]
|
4,538,740 | 1 | null | null | 0 | 490 | I want to create a dashboard like the twitters application.but i am unable to set the buttons location and i dont know how to change the image of the button on click or move.I want the dash board like this Image:

So please provide me the solution.
| Android Dash Board | CC BY-SA 3.0 | null | 2010-12-27T12:48:14.183 | 2013-04-18T09:36:33.017 | 2013-04-18T09:36:33.017 | 664,177 | 537,819 | [
"android",
"layout"
]
|
4,538,795 | 1 | 4,569,781 | null | 1 | 466 | I have a problem with the text shadow of the UIActionSheet buttons. At iOS 4.0.2 long string were truncated automatically. No at iOS 4.2 these texts are presented with a smaller font. But now the offset of the shadow is corrupted and to big.
Is there a possibility to change/remove the text shadow of the UIActionSheet.

EDIT: I'm building the UIActionSheet not with `initWithTitle:`, but with the normal `init` and sets all needed properties afterwards because the number of possible buttons is dynamic and the texts cannot be change. I've tested it with `initWithTitle:` and got the same results.
| UIActionsSheet text shadow problem | CC BY-SA 2.5 | 0 | 2010-12-27T12:56:57.127 | 2011-04-11T13:26:08.220 | 2010-12-27T14:50:28.330 | 221,194 | 221,194 | [
"iphone",
"uiactionsheet",
"shadow"
]
|
4,538,921 | 1 | 4,539,052 | null | 1 | 1,312 | I use this segmented control as a mechanism for the user to select an option rather than control any subviews.
IMHO this looks better and is more usable that a select picker which would be very heavy on the screen for a small selection like the one i need.
Anything wrong / inefficient / immoral / illegitimate about this approach ? Would apple care about this?

| Using segmented control as a quasi-radio button | CC BY-SA 2.5 | null | 2010-12-27T13:15:23.383 | 2010-12-27T13:35:36.340 | null | null | 154,353 | [
"iphone",
"ipad",
"human-interface"
]
|
4,539,072 | 1 | 4,548,744 | null | 1 | 462 | Is there a way to hide the overflow in a `UITableViewCell`? I have a custom cell view, that I load into the table, where some of the information is supposed to be hidden on load, and then each row will expand when clicked.
Right now, I'm returning height `30` for my row, which is the height of the cell header, but the buttons and text that are supposed to be hidden just overflows and is placed on top of the headers below.

| iphone uitablecellview overflow | CC BY-SA 2.5 | null | 2010-12-27T13:38:48.937 | 2010-12-28T19:24:24.097 | 2010-12-27T13:58:34.130 | 59,242 | 59,242 | [
"iphone",
"uitableview"
]
|
4,539,275 | 1 | null | null | 0 | 2,715 | I do have a project which includes ZF library. In the problems tab I get all the warnings from the Zend library.
My problem is that I want to hide all that.
I've tried adding Exclude Group settings and rules for HTML for PHP validator and even I've suspended all validators for global settings and as a customized project settings and nothing works.
The strange thing is that most common type of problem is DLTK and I cannot find this particular validator.

| disable eclipse validators | CC BY-SA 2.5 | null | 2010-12-27T14:15:47.467 | 2010-12-28T07:24:46.053 | 2010-12-28T07:24:46.053 | 95,353 | 95,353 | [
"eclipse",
"zend-studio",
"eclipse-pdt",
"dltk"
]
|
4,539,476 | 1 | 4,539,544 | null | 0 | 279 | I'm trying to use libcurl library in my application.
when i start my application, it asks for libcurl.dll and zlib1.dll
to exist in the same folder. when i add them everything works fine but i want to include
them to the executable.

how can i statically add both dll's to the application?
| add two dll's to msvc 2010 application | CC BY-SA 2.5 | null | 2010-12-27T14:55:47.353 | 2010-12-27T15:05:49.703 | null | null | 537,943 | [
"c++",
"visual-c++",
"curl",
"libcurl"
]
|
4,540,244 | 1 | 4,540,745 | null | 20 | 2,188 | I have a `ManualResetEvent`. At one point, I wait on that event using `WaitOne`. To my amazement, I received an `OnPaint` event while in the `WaitOne`. This happens quite often too.
The stack trace looks like this:

I understood that a `WaitOne` would block the current thread and would not allow any other code to be executed until the event fires.
Could someone explain what happens here?
| How is this possible: OnPaint processed while in WaitOne | CC BY-SA 2.5 | 0 | 2010-12-27T16:47:08.590 | 2011-09-10T09:43:29.103 | 2010-12-27T17:00:17.700 | 446,261 | 446,261 | [
"c#",
".net",
"winforms",
"events"
]
|
4,540,265 | 1 | 4,541,004 | null | 9 | 807 | Recently I wrote a Ruby program to determine solutions to a ["Scramble Squares"](http://www.b-dazzle.com/puzzdetail.asp?PuzzID=52&CategoryName=Hobbies%20and%20Activities%20Puzzles&CatID=8) tile puzzle:

I used TDD to implement most of it, leading to tests that looked like this:
```
it "has top, bottom, left, right" do
c = Cards.new
card = c.cards[0]
card.top.should == :CT
card.bottom.should == :WB
card.left.should == :MT
card.right.should == :BT
end
```
This worked well for the lower-level "helper" methods: identifying the "sides" of a tile, determining if a tile can be validly placed in the grid, etc.
But I ran into a problem when coding the actual algorithm to solve the puzzle. Since I didn't know valid possible solutions to the problem,
I ended up writing a pretty ugly, untested, algorithm to solve it:
```
def play_game
working_states = []
after_1 = step_1
i = 0
after_1.each do |state_1|
step_2(state_1).each do |state_2|
step_3(state_2).each do |state_3|
step_4(state_3).each do |state_4|
step_5(state_4).each do |state_5|
step_6(state_5).each do |state_6|
step_7(state_6).each do |state_7|
step_8(state_7).each do |state_8|
step_9(state_8).each do |state_9|
working_states << state_9[0]
end
end
end
end
end
end
end
end
end
```
So my question is:
If you're interested, the code's on GitHub:
- [https://github.com/mattdsteele/scramblesquares-solver/blob/master/golf-creator-spec.rb](https://github.com/mattdsteele/scramblesquares-solver/blob/master/golf-creator-spec.rb)- [https://github.com/mattdsteele/scramblesquares-solver/blob/master/game.rb](https://github.com/mattdsteele/scramblesquares-solver/blob/master/game.rb)
| How can I use TDD to solve a puzzle with an unknown answer? | CC BY-SA 2.5 | 0 | 2010-12-27T16:50:38.547 | 2010-12-29T14:06:31.923 | 2017-02-08T14:31:16.790 | -1 | 27,557 | [
"tdd",
"puzzle",
"scramble"
]
|
4,540,852 | 1 | 4,540,886 | null | 4 | 4,892 | I want to clone a path that is held in a var named szPath to a new wchar_t.

szPath is of the type wchar_t *. so i tried doing something like:
```
szPathNew = *szPath;
```
but this is referring to the same place in memory.
what should i do? i want to deep clone it.
| clone a wchar_t* in c++ | CC BY-SA 2.5 | 0 | 2010-12-27T18:24:54.730 | 2010-12-28T04:40:57.860 | null | null | 537,943 | [
"c++",
"visual-c++"
]
|
4,541,050 | 1 | 4,541,066 | null | 8 | 32,265 | I have this code to create new sql table
when i execute this its shows me this error which is on screenshot. In my db there ise not such table. it shows this error any name of table. can anyone help me?
```
public void Create(string TName, string ConString)
{
try
{
using (SqlCommand cmd = new SqlCommand("CREATE TABLE [dbo].['" + TName + "']("
+ "[ID] [int] IDENTITY(1,1) NOT NULL,"
+ "[DateTime] [date] NOT NULL,"
+ "[BarCode] [nvarchar](max) NOT NULL,"
+ "[ArtNumber] [nvarchar](max) NOT NULL,"
+ "[ProductName] [nvarchar](50) NOT NULL,"
+ "[Quantity] [int] NOT NULL,"
+ "[SelfPrice] [decimal](18, 2) NOT NULL,"
+ "[Price] [decimal](18, 2) NOT NULL,"
+ "[Disccount] [int] NULL,"
+ "[Comment] [nvarchar](max) NULL,"
+ "CONSTRAINT ['" + TName + "'] PRIMARY KEY CLUSTERED "
+ "("
+ "[ID] ASC"
+ ")WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]"
+ ") ON [PRIMARY]", new SqlConnection(ConString)))
{
cmd.Connection.Open();
cmd.ExecuteNonQuery();
cmd.Connection.Close();
}
}
catch (Exception)
{
throw;
}
}
```

| Creating new sql server table with c# | CC BY-SA 2.5 | 0 | 2010-12-27T18:55:00.520 | 2015-12-23T15:06:08.997 | null | null | 508,284 | [
"c#",
"sql-server",
"winforms"
]
|
4,541,402 | 1 | null | null | 0 | 367 | I am working asp.net 3.5. My page is displaying properly in IE but not in mozilla. See The image. Can anyone help how to solve this issue. I am hiding or showing Reject/ Reschedule : option on click event.

```
<tr>
<td align="right" style="padding-top: 4px" id="trRejResch" runat="server">
Reject/ Reschedule :
</td>
<td align="left" style="height: 25px;" id="trRejResch1" runat="server">
<telerik:RadComboBox OnClientKeyPressing="onKeyPressing" ID="txtRejResch" MarkFirstMatch="true"
runat="server" Width="157px" Height="60px" CollapseDelay="0" CollapseAnimation-Duration="0"
DataSourceID="sqlDSRejResch" DropDownWidth="154px" AllowCustomText="true" DataTextField="nTypeDesc">
</telerik:RadComboBox>
<asp:SqlDataSource ID="sqlDSRejResch" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnectionString %>"
SelectCommand="select nTypeDesc from NoteType where nType in (2,3)" />
</td>
</tr>
```
| HTMl alignment issue | CC BY-SA 2.5 | null | 2010-12-27T19:58:43.643 | 2010-12-27T20:10:02.377 | 2010-12-27T20:06:17.870 | 61,164 | 356,973 | [
"asp.net",
"html"
]
|
4,541,442 | 1 | 4,542,327 | null | 8 | 2,865 | A brief background: I'm working on a web-based drawing application and need to draw 1px thick splines that pass through their control points.
The issue I'm struggling with is that I need to draw each of the pixels between p1 and p2 as if I were using a 1px pencil tool. So, no anti-aliasing and one pixel at a time. This needs to be done manually without the use of any line/curve library code as my brush system depends upon having a pixel coordinate to apply the brush tip to the canvas.
Essentially, I need to combine the one pixel stepping from something like the Bresenham algorithm with the coordinates returned by the Catmull-Rom equation. I'm having trouble because the Catmull-Rom points are not uniformly distributed (so I can't just say there should be 100 pixels in the curve and run the equation 100 times). I tried using an estimated starting value of the maximum of the X and Y deltas and filling in the gaps with Bresenham, but due to rounding I still end up with some "dirty" sections (ie. the line is clearly moving up and to the right but I still get two pixels with the same Y component, resulting in a "fat" section of the line).
I'm positive this has been solved because nearly every graphics program that draws splines has to support the clean pixel curves that I'm after. After quite a bit of math research, though, I'm a bit confused and still without a solution. Any advice?
EDIT: Here's an example of a curve that I might have to render:

Which might have an expected result looking like this (note that this is an estimate):

Using the Catmull-Rom spline equation, we need four points to create a segment. P0 and P3 are used as tangents for incoming and outgoing direction from the P1->P2 segment. With a Catmull-Rom spline, the blue section is all that gets interpolated as t moves from 0 to 1. P0 and P3 can be duplicated to ensure that the green portion gets rendered, so that is not an issue for me.
For simplicity's sake, I need to render the pixels on the curve between P1 and P2, given that I have tangents in the form of P0 and P3. I don't necessarily need to use Catmull-Rom splines, but they seem to be the right tool for this job being that control points must be passed through. The non-uniform distribution of interpolation points is what's throwing me for a loop.
EDIT2: Here's an example of what I mean when I say my resulting curve is dirty:

The red arrows point out a few locations where there should not be a pixel. This is occurring because the X and Y components of the coordinate that get calculated do not change at the same rate. So, when each of the components gets rounded (so I have an exact pixel location) it can be the case that either X or Y doesn't get bumped up because the calculated coordinate is, say, (42.4999, 50.98). Swapping the round for a floor or ceil doesn't solve the problem, as it just changes where it occurs.
| Drawing aliased, pixel-perfect 1px splines (Catmull-Rom, specifically) | CC BY-SA 2.5 | 0 | 2010-12-27T20:05:25.253 | 2010-12-28T01:22:13.963 | 2010-12-28T00:40:26.953 | 555,322 | 555,322 | [
"algorithm",
"graphics",
"2d",
"pixel",
"splines"
]
|
4,541,614 | 1 | 4,542,106 | null | 4 | 5,348 | I need to create a winforms control what looks something like this:

Currently i'm considering taking a picturebox/panel and overriding onpaint event and drawing all the stuff myself. But somehow this approach doesn't seem right.
I was wondering maybe there's an easier way out or perhaps a better solution?
How would you make a control like this?
| Winforms: creating a dynamic timeline control | CC BY-SA 2.5 | null | 2010-12-27T20:31:53.947 | 2010-12-28T03:32:22.543 | 2010-12-27T20:41:52.990 | 421,481 | 421,481 | [
"c#",
".net",
"winforms",
"user-controls",
"controls"
]
|
4,541,833 | 1 | 4,541,919 | null | 0 | 561 | I am using Ajax Control Toolkit 3.5. I have a form like this:
```
<body>
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
```
And related codebehind of this page is this:
```
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = TextBox1.Text;
}
```
When I write for example "foo" into the TextBox1 it succesfully copies that into Label1. But if I write any text into the textbox with some HTML tags like "<b>foo</b>" i get following Javascript error in IE statusbar:

How can I solve this?
Thanks in advance.
| Getting error when posting a form with html tags in its fields | CC BY-SA 2.5 | 0 | 2010-12-27T21:04:42.153 | 2015-11-19T01:32:11.847 | 2015-11-19T01:32:11.847 | 1,505,120 | 2,275,962 | [
"html",
"ajaxcontroltoolkit"
]
|
4,542,130 | 1 | 4,542,167 | null | 1 | 12,822 | When I use `<p>` I get to large of a space but when I use `<br\>` I don't get large enough of a space.

I want a large space between "Glucose Levels" and "I have recently been diagnosed..."
| In HTML do you insert a small space in between lines | CC BY-SA 2.5 | 0 | 2010-12-27T22:02:14.110 | 2010-12-28T00:46:42.707 | 2010-12-27T22:04:05.337 | 258,127 | 440,266 | [
"html",
"css",
"spacing"
]
|
4,542,438 | 1 | 4,542,637 | null | 8 | 12,955 | I have a density plot and I would like to add some summary information such as placing a line at the median and shading the 90% credible intervals (5th and 95th quantiles). Is there a way to do this in ggplot?
This is the type of plot that I would like to summarize:
I can figure out how to draw a line from the y=0 to y= density(median(x)), but it is not clear to me if I can shade the plot with a 90% CI. Alternatively, I could add a horizontal boxplot above the density plot, but it is not clear how to rotate the boxplot by itself, without rotating the density plot along with it.
```
x <- as.vector(rnorm(10000))
d <- as.data.frame(x=x)
library(ggplot2)
ggplot(data = d) + theme_bw() +
geom_density(aes(x=x, y = ..density..), color = 'black')
```

| Adding summary information to a density plot created with ggplot | CC BY-SA 2.5 | 0 | 2010-12-27T22:55:57.767 | 2017-04-09T03:17:32.937 | 2010-12-27T23:05:56.643 | 199,217 | 199,217 | [
"r",
"statistics",
"visualization",
"ggplot2"
]
|
4,542,473 | 1 | 4,542,532 | null | 8 | 4,792 | I have an array of UILabels inside the contentView of a custom UITableViewCell. The font of each label is sized by ranking to form a tag cloud. In the method that sets up the cell (row), I iterate through the word objects that will fit on that line, setting up the frame for each UILabel as follows:
```
CGRect theFrame = CGRectMake(xPosAdjuster,
theWordRow.rowHeight - thisWord.lblHeight,
thisWord.lblWidth,
thisWord.lblHeight);
UILabel *myLabel = [[UILabel alloc] initWithFrame:theFrame];
```
This gets the frames of the labels aligned (see image below), but, unfortunately, the labels have a padding that is a function of the font size.

Is there any way to remove the padding (border) on a UILabel and/or calculate it exactly so I can adjust the y pos of the frames accordingly?
Thanks
| Any way to bottom-align UILabels with dissimilar fonts? | CC BY-SA 2.5 | 0 | 2010-12-27T23:04:07.177 | 2010-12-28T04:29:21.640 | 2010-12-28T02:40:50.123 | 714 | 413,631 | [
"iphone",
"cocoa-touch",
"uitableview",
"uilabel"
]
|
4,542,590 | 1 | 5,343,480 | null | 0 | 173 | I'd like to know how to create UITabBarItem like those in [Remote Satisfaction](http://itunes.apple.com/app/satisfaction-remote/id305593756?mt=8) (Iphone app).
And, in your opinion, how works the upper menu navigation in this view (About, Topics, Products, People) is this a UiNavigationController?

| Iphone UI case Study - Satisfaction Remote | CC BY-SA 2.5 | 0 | 2010-12-27T23:27:46.637 | 2011-03-17T18:23:58.327 | 2010-12-28T02:41:17.817 | 714 | 499,990 | [
"iphone",
"cocoa-touch",
"user-interface",
"ios"
]
|
4,542,879 | 1 | 4,600,711 | null | 1 | 320 | I've got this qt app[1](https://i.stack.imgur.com/FRPLp.png) that I've cross-compiled using cmake and openembedded. It's cross-compiled from i686 to geode, so I figure I should be able to run it on the i686 host I compiled it on, if I link against the geode libraries. As you can see from the image, it doesn't run quite right. Using strace seems to indicate that qt is using some funny encoding for everything, e.g.:
```
stat64("\342\274\200\347\200\200\347\210\200\346\274\200\346\214\200", 0x869566c) = -1 ENOENT (No such file or directory)
```
Any ideas?
Thanks,
Jayen

| Running cross-compiled qt application | CC BY-SA 2.5 | null | 2010-12-28T00:29:39.850 | 2011-01-05T03:58:28.963 | 2010-12-28T08:10:10.750 | 192,798 | 192,798 | [
"qt",
"unicode",
"character-encoding",
"cross-compiling",
"iconv"
]
|
4,542,985 | 1 | 4,543,391 | null | 0 | 8,052 | Im trying to build this gallery:

How would I go about building this image gallery using jquery, and having the thumbnails populate automatically based on how many images I had in a folder? Id like to click the thumbnail and have it open a new page or div with a bigger image.
Id also like to make each thumbnail fade in 1 after the other.
| Build Dynamic Image Gallery Jquery | CC BY-SA 2.5 | null | 2010-12-28T01:00:40.530 | 2011-01-14T05:32:44.037 | null | null | 544,140 | [
"jquery",
"image-gallery"
]
|
4,543,040 | 1 | 4,556,699 | null | 1 | 503 | I have the following model and configuration:
```
public class User
{
public int Id { get; set; }
public User CreatedBy { get; set; }
public DateTime? DateCreated { get; set; }
public string Name { get; set; }
public string Username { get; set; }
}
public class UserConfiguration : EntityTypeConfiguration<User>
{
public UserConfiguration()
{
this.HasKey(t => t.Id);
this.HasOptional(u => u.CreatedBy);
this.Property(u => u.DateCreated);
this.Property(u => u.Name).HasMaxLength(64);
this.Property(u => u.Username).HasMaxLength(64);
}
}
public class SampleContext : DbContext
{
public IDbSet<User> Users { get; set; }
public SampleContext(string dbConnection)
: base(dbConnection)
{
}
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Configurations.Add(new UserConfiguration());
}
}
```
I can work with the context and add users just fine. I then was looking at the table generated by Code First and realized that the `CreatedBy` property isn't generating a `CreatedById` column but rather a `UserId` column. If I add another property such as `ModifiedBy` it will generate `UserId1` and so on:

I tried mapping with `HasRequired()` as well but the property still generates a column name that matches the actual type and the property name. Any help would be appreciated.
| Code-First CTP5 navigational properties generates wrong column names | CC BY-SA 2.5 | 0 | 2010-12-28T01:12:47.990 | 2010-12-29T18:23:48.530 | 2010-12-28T15:36:31.633 | 200,322 | 200,322 | [
"c#",
"entity-framework",
"code-first"
]
|
4,543,536 | 1 | 4,543,637 | null | 1 | 248 | I have a form where I have an administrator creating new users. The form uses the User model I created (login, password, first_name, etc...). For the last field on the form, I want to have a checkbox that doesn't need to be stored as part of the User record, but it is needed for the controller. This will control if the newly created user will receive a welcome email or not. This is in Rails 3.0.3.
```
def create
@user = User.new(params[:user])
if @user.save
if @user.send_welcome_email
UserMailer.welcome_email(@user).deliver
end
redirect_to(admin_users_url, :notice => "User #{@user.name} was successfully created.")
else
render :action => "new"
end
end
```
In my view (haml) I am trying to access it like this:
```
%p
Send Welcome Email?
= f.check_box :send_welcome_email
```
I tried to make this an `attr_accessible: :send_welcome_email` but the controller does not recognize it. I get an
```
undefined method 'send_welcome_email' for #<User:0x00000100d080a8>;
```
I would like it to look like this:

What is the best way to get this working?
| Conditional value for ActiveRecord create method only | CC BY-SA 2.5 | null | 2010-12-28T03:49:59.893 | 2010-12-28T16:46:44.910 | 2017-02-08T14:31:17.133 | -1 | 3,256 | [
"ruby-on-rails",
"activerecord",
"model"
]
|
4,543,952 | 1 | null | null | 0 | 667 | I need to change the text "Send Invite Invitation" that appear on the Button on fb:request-form tag in Facebook.
| Change the "Send Invite Invitation" text in fb:request-form tag | CC BY-SA 2.5 | null | 2010-12-28T05:47:09.837 | 2011-03-30T06:24:34.653 | null | null | 524,700 | [
"facebook",
"fbml"
]
|
4,544,189 | 1 | 4,544,721 | null | 1 | 2,345 | I am new to CoreData and been looking to all the books and examples but none of them really tell me how to do this, so any help is greatly appreciated.
Basically, I have 2 Entities in one to Many relation. [other relationships are not important in this case]
The relationship and entities:

Now I can get All the MedicalCondition Entity based on given Profile Entity using NSFetchRequest
```
NSFetchRequest *request = [[NSFetchRequest alloc] init];
request.entity = [NSEntityDescription entityForName:@"MedicalCondition" inManagedObjectContext:delegate.managedObjectContext];
request.sortDescriptors = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"condition" ascending:YES]];
request.predicate = [NSPredicate predicateWithFormat:@"MedicalToProfile = %@", myProfile];
//request.fetchBatchSize = 20;
NSFetchedResultsController *frc = [[NSFetchedResultsController alloc]
initWithFetchRequest:request
managedObjectContext:delegate.managedObjectContext
sectionNameKeyPath:nil
cacheName:nil];
NSError *error;
BOOL success = [frc performFetch:&error];
NSArray *fetchedObjectsFromCore;
[request release];
if (success) {
fetchedObjectsFromCore = [frc fetchedObjects];
}
```
This is ok. Now the problem comes in when I want to update one particular entry. I am not sure how to do it. I can add more MedicalCondition object just fine. But when it comes to edit, I am not sure.
The only way I cant think of is to have "ID" attribute in entity. I think there must be a better solution than this. Please help ! Thankz so much.
| CoreData Edit one attribute in One to Many relationship | CC BY-SA 3.0 | null | 2010-12-28T06:43:11.067 | 2012-07-31T18:00:28.333 | 2011-07-28T08:05:26.893 | 128,662 | 408,721 | [
"iphone",
"core-data"
]
|
4,544,517 | 1 | 4,545,266 | null | 1 | 2,865 | 
| How to decrease the height of rdlc report header? | CC BY-SA 2.5 | null | 2010-12-28T07:52:57.547 | 2016-02-26T05:05:03.820 | null | null | 438,277 | [
"rdlc"
]
|
4,544,957 | 1 | null | null | 1 | 646 | I'm stuck in a problem, the font I want to use can't save in pdf, STHeiti and STXihei they are both the default Chinese fonts in Mac os.

illustrator give me this error, I don't know how to change the font to make this work,
I know a software in windows named Font Creator that looks promising, But I don't know exactly how to use it
| font embed restriction in PDF | CC BY-SA 2.5 | null | 2010-12-28T09:21:08.867 | 2010-12-28T09:26:26.233 | null | null | 456,218 | [
"embedded-fonts"
]
|
4,545,062 | 1 | 4,545,097 | null | 2 | 1,036 | I need to catch the and for a certain area of the . With that specific area I mean .
The problem is, that the (I'm catching internal control messages CM_MOUSEENTER and CM_MOUSELEAVE) .

The aim for me is to draw a small arrow in the right empty side when user hovers in the red framed area (and drawing is just piece of cake) and erase it when leaves this area. And I'm don't care about the overflow of the tabs (which causes to draw scrolling double button) - that will never happen.
Here is the working piece of code, . There must be another (more clean) way to do it.
```
type
TPageControl = class(ComCtrls.TPageControl)
protected
procedure CMMouseLeave(var Message: TMessage); message CM_MOUSELEAVE;
procedure WMNCHitTest(var Message: TWMNCHitTest); message WM_NCHITTEST;
end;
procedure TPageControl.CMMouseLeave(var Message: TMessage);
begin
inherited;
Canvas.TextOut(Width - 130, 5, 'CMMouseLeave'); // display result
end;
procedure TPageControl.WMNCHitTest(var Message: TWMNCHitTest);
var TabHeaderRect: TRect;
begin
if Message.Result = 0 then // if Message.Result = HTNOWHERE ...
begin
TabHeaderRect := ClientRect;
TabHeaderRect.Bottom := Top + 21;
if PtInRect(TabHeaderRect, ScreenToClient(Point(Message.XPos, Message.YPos))) then
Canvas.TextOut(Width - 130, 5, 'WMNCHitTest '); // display result
Message.Result := HTCLIENT;
end
else
inherited;
end;
```
| TPageControl tab area OnMouseEnter OnMouseLeave events | CC BY-SA 2.5 | null | 2010-12-28T09:38:36.563 | 2010-12-28T16:12:45.660 | 2010-12-28T16:12:45.660 | null | null | [
"delphi",
"winapi"
]
|
4,545,160 | 1 | 4,545,192 | null | 0 | 340 | I'm using jquerybubblepopup plugin, as shown in the image:

In the IE (8, 7, 6) I’m unable to show button inside the JQuery Bubble plugin as shown in the above image (red rectangle). Other browsers(like Chrome, Opera, Firefox) render it correctly. Can anyone let me know how to show the button inside the bubble plugin.
```
<input type="submit" value="Add Comment" />
```
| jquerybubblepopup - button is not visible within this plugin (in IE) | CC BY-SA 2.5 | null | 2010-12-28T09:58:09.527 | 2010-12-28T10:02:18.583 | null | null | 552,182 | [
"asp.net",
"jquery",
"asp.net-mvc"
]
|
4,545,287 | 1 | null | null | 1 | 235 | 
I did a select statement in sql and 1 of the column return me this.
There is a need to query from that sql column, but as this is an existing system, I can only try and error.
From the characters, I have already confirmed if the numbers inside is 0015, I should get 15.
Problem is as you can see above, it contains more than one number, and I have to compare the numbers.
Using SQL Server and C# programming, can some1 guide me on how to retrieve these individual numbers in sql server as well as the data type in C#
| What are these data type of characters? | CC BY-SA 3.0 | null | 2010-12-28T10:15:28.663 | 2015-12-19T18:03:27.147 | 2015-12-19T18:03:27.147 | 4,370,109 | 408,561 | [
"c#",
"sql"
]
|
4,545,475 | 1 | 4,568,009 | null | 4 | 2,426 | 
1. I have provided a screenshot of my CredentialProvider window. In this window everything is fine now but i don't want to show Switch User button to the user. How i can do this. I am just editing Win-7 SDK sample for CredentialProvider (C++). Anyone can help me, or any link for code help.
2. One more thing I want to ask is by default, the username text box displaying EditText in grey color. How i could change it to Username text. I can set text in SHStrDupW(L"", &_rgFieldStrings[SFI_EDIT_TEXT]); code but its not setting in background text. is there any hack for this.
Thanks SO members
| how to hide windows 7 switch user button in vc++ CredentialProvider sample | CC BY-SA 2.5 | 0 | 2010-12-28T10:52:10.390 | 2011-06-28T08:14:53.393 | 2010-12-30T10:44:35.783 | 173,613 | 173,613 | [
"c++",
"windows-7",
"sdk",
"authentication",
"credentials"
]
|
4,545,754 | 1 | null | null | 2 | 1,720 | I get the warning as below screenshot and I don't understand why it would be treated like that. I often need to "regionize" my codes.
What do you think?

| Why StyleCop rule does not allow using #region in code? | CC BY-SA 2.5 | null | 2010-12-28T11:41:07.273 | 2013-01-11T07:33:37.097 | null | null | 248,616 | [
"stylecop",
"code-regions"
]
|
4,545,737 | 1 | 4,545,859 | null | 3 | 3,958 | I'm reading this Excel file:

with [PHPExcel](http://phpexcel.codeplex.com) but it looks like this:

I am using this code:
```
$objReader = PHPExcel_IOFactory::createReaderForFile("data/".$file_name);
$objReader->setLoadSheetsOnly(array(0));
$objPHPExcel = $objReader->load("data/".$file_name);
echo '<table border="1">';
for ($row = 1; $row < $number_of_rows; $row++) {
echo '<tr>';
for ($column = 0; $column < $number_of_columns; $column++) {
$value = $objPHPExcel->setActiveSheetIndex(0)->getCellByColumnAndRow($column, $row)->getValue();
echo '<td>';
$newValue = iconv("ISO-8859-1", "UTF-8", $value); //has no effect
// echo $newValue . ' ';
echo $value . ' ';
echo '</td>';
}
echo '</tr>';
}
echo '</table>';
die;
```
| How can I read German characters (äöü߀) in Excel via PHPExcel? | CC BY-SA 2.5 | null | 2010-12-28T11:38:05.013 | 2015-09-04T04:07:02.977 | 2015-09-04T04:07:02.977 | 1,505,120 | 4,639 | [
"php",
"utf-8",
"phpexcel"
]
|
4,546,110 | 1 | 4,546,255 | null | 5 | 15,240 | I am using [PHPExcel](http://phpexcel.codeplex.com/) to read data out of Excel files.
With the following code, I am able to read out of a Excel file in just a couple seconds. Works nicely.
However, I now have and Excel files which I need to get data out of. They are so large that even cannot open them.
I have found that I can use an index number instead of a name when I load a sheet, but this seems inconsistent, e.g. in one particular Excel file `setLoadSheetsOnly(0)` gave me the sheet while `setLoadSheetsOnly(1)` gave me an even though there were four worksheets in the file. So that seems for some reason.
```
$objReader = PHPExcel_IOFactory::createReaderForFile("data/" . $file_name);
$objReader->setLoadSheetsOnly(array($sheet_name));
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load("data/" . $file_name);
echo '<table border="1">';
for ($row = 1; $row < $number_of_rows; $row++) {
echo '<tr>';
for ($column = 0; $column < $number_of_columns; $column++) {
$value = $objPHPExcel->setActiveSheetIndex(0)->getCellByColumnAndRow($column, $row)->getValue();
echo '<td>';
echo $value . ' ';
echo '</td>';
}
echo '</tr>';
}
echo '</table>';
die;
```
# ADDENDUM:
I found some code that gets close, but it doesn't seem to always be accurate, e.g. here it missed the second worksheet in a 27MB file:

and here it only got the third worksheet and missed 3 others:

```
$objReader = PHPExcel_IOFactory::createReaderForFile("data/" . $file_name);
$objReader->setLoadSheetsOnly(0);
$objReader->setReadDataOnly(true);
$objPHPExcel = $objReader->load("data/" . $file_name);
echo $objPHPExcel->getSheetCount(), ' worksheets<hr/>';
$loadedSheetNames = $objPHPExcel->getSheetNames();
foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) {
echo $sheetIndex, ' -> ', $loadedSheetName, '<br />';
}
die;
```
| Is there a way to get the worksheet names from 20MB+ Excel files with PHPExcel? | CC BY-SA 2.5 | 0 | 2010-12-28T12:42:35.530 | 2015-09-04T03:45:50.830 | 2015-09-04T03:45:50.830 | 1,505,120 | 4,639 | [
"php",
"phpexcel",
"large-files"
]
|
4,546,427 | 1 | 4,548,632 | null | 1 | 92 | How to exchange the links's place using jquery.
below the navigation will be content div for each tab. the selected link will always next to the first "sixrevision" link.

Code will be like this
```
<ul id="crumbs">
<li><a href="#" class="selected">Home</a></li>
<li><a href="#">product 1</a></li>
<li><a href="#">product 1</a></li>
<li><a href="#">product 1</a></li>
/ul>
```
It will be a ajax tab system but only tabs looks like breadcrumb. I want to know how to keep "selected" item always in next of first item.
| How to exchange the links's place using jquery | CC BY-SA 2.5 | null | 2010-12-28T13:32:25.090 | 2010-12-28T19:07:05.413 | 2010-12-28T13:39:52.703 | 84,201 | 84,201 | [
"jquery",
"css",
"xhtml"
]
|
4,546,433 | 1 | 4,546,590 | null | 3 | 3,851 | my current query return the below result

What I need is I have to display date in column header. I know it have to be done using
Example: if we want to display month in column header then query will be something like..
```
SELECT [January], [February], [March]
FROM ( SELECT [Month], SaleAmount
FROM Sales
) p PIVOT ( SUM(SaleAmount)
FOR [Month]
IN ([January],[February],[March])
) AS pvt
```
and I think my resultant query should be look like `Pivot ( (Price) FOR [DateVal] IN (What will be here?) )` here is what resultant column should be like

Note: in the result set currently it show December month data, but it can be any month.
Thanks for your help...
| Pivot SQL query - Show Date in column | CC BY-SA 2.5 | null | 2010-12-28T13:33:35.867 | 2010-12-29T17:33:15.587 | 2010-12-28T17:36:48.640 | 97,010 | 97,010 | [
"sql",
"sql-server-2005"
]
|
4,546,448 | 1 | 6,921,794 | null | 3 | 2,443 | 
I get the same screen everytime I connect my device to the Mac.
This thing started happening after I installed iOS 4.2.1 on my iPhone.
It takes several minutes each time to recognize the device when I connect it to Mac.
What can be a permanent fix?
My iOS SDK version is 4.2.1 and My Xcode version is is 3.2.5.
| Getting "Unknown iOS Detected" everytime in Xcode Organizer when I connect my device iOS 4.2.1 | CC BY-SA 3.0 | 0 | 2010-12-28T13:35:46.323 | 2011-08-11T12:12:09.753 | 2011-08-11T12:12:09.753 | 463,857 | 463,857 | [
"iphone",
"xcode",
"ios4"
]
|
4,546,437 | 1 | 4,546,788 | null | 2 | 1,026 | I am trying to make a post that should use the Default Model Binder functionality in ASP.NET MVC 2 but unfortunately I can't get through....
When I click on the checkout button I populate a form dinamically using jQuery code and then submit this form to the server. This is the form that get submitted
```
<form action="/x/Order/Checkout" id="cartForm" method="post">
<input name="__RequestVerificationToken" type="hidden" value="UDjN9RdWheKyWK5Q71MvXAbbDNel6buJd5Pamp/jx39InuyYIQVptcEubIA2W8DMUzWwnZjSGkLspkmDPbsIxy8EVuLvfCSZJJnl/NrooreouptwM/PaBEz2v6ZjO3I26IKRGZPqLxGGfITYqlf8Ow==">
<input id="CustomerID" name="CustomerID" type="hidden" value="1">
<input id="FirmID" name="FirmID" type="hidden" value="2">
<input type="hidden" name="CartItems[0].ServiceTypeID" value="1">
<input type="hidden" name="CartItems[0].Quantity" value="1">
<input type="hidden" name="CartItems[1].ServiceTypeID" value="2">
<input type="hidden" name="CartItems[1].Quantity" value="1">
</form>
```
This is the jQuery code that handle the submit event for the form
```
$("#cartForm").submit(function (event) {
event.preventDefault();
var form = $("#cartForm");
var panel = form.parent();
panel.parent().block();
$.ajax({
type: "post",
dataType: "html",
url: '<%: Url.Content("~/Order/Checkout") %>',
async: false,
data: form.serialize(),
success: function (response, status, xml) {
panel.parent().unblock();
},
error: function (response) {
panel.parent().unblock();
}
});
});
```
This is the controller action that should be get called
```
[HttpPost]
[ValidateAntiForgeryToken]
public virtual ActionResult Checkout( CartModel cart ) {
}
```
And finally this is the CartModel class involved
```
public class CartModel : BaseModel
{
public int CustomerID { get; set; }
public int FirmID { get; set; }
public List<CartItemModel> CartItems { get; set; }
public CartModel() {
CartItems = new List<CartItemModel>();
}
}
public class CartItemModel : BaseModel
{
public int ServiceTypeID { get; set; }
public int Quantity { get; set; }
}
```
But the default Model Binder does not bind the web form data to a CartModel class. Using Fiddler I have been able to see that the data sent to the server is correct as you can see from the following snapshot

Any suggestion?
| Default model binder does not bind my model class | CC BY-SA 2.5 | null | 2010-12-28T13:34:09.050 | 2010-12-28T14:33:06.587 | null | null | 431,537 | [
"asp.net",
"jquery",
"asp.net-mvc",
"asp.net-mvc-2",
"defaultmodelbinder"
]
|
4,546,726 | 1 | 4,546,795 | null | 0 | 700 | I need to update image in Firstviewcontroller if cell is selected in tableviewcontroller.
My application Navigation base . Firstviewcontroller contains button event. tap on button i am firing tableview. In tableview i am selecting cell and updating checkmark in left side , It is working fine . My question is when cell is selected same time i need to update different custom image in viewcontroller for indicating cell is selected. [With ref.](https://stackoverflow.com/questions/4453413/how-to-check-cell-is-selected-in-uitableview-for-image-display) i got image cell selecting in inside of tableview.
```
here it is Appdelegate
@interface FertilityAppAppDelegate : NSObject <UIApplicationDelegate>
{
Fertility *updateImage;
}
@property (nonatomic, retain) Fertility *updateImage;
@implementation
@synthesize updateImage;
@interface Fertility : UIViewController
{
UIImageView *imgView;
FertilityAppAppDelegate *Appdelegate;
}
@property(nonatomic,retain) FertilityAppAppDelegate *Appdelegate;
@property (nonatomic, retain) UIImageView *imgView;
Viewcontroller for image update
@implementation Fertility
@synthesize imgView,Appdelegate;
- (void)viewDidLoad
{
[super viewDidLoad];
Appdelegate = (FertilityAppAppDelegate*)[[UIApplication sharedApplication] delegate];
}
- (void)changeImg:(UIImage*)image
{
imgView.image = image;
}
- (void)assignObjToTableViewClass
{
Appdelegate.updateImage = self;
}
Tableview controller
@interface Menstruation : UITableViewController
{
FertilityAppAppDelegate *Appdelegate;
}
@property (nonatomic, retain) FertilityAppAppDelegate *Appdelegate;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIImage *image = [UIImage imageNamed:@"bar.png"];
[Appdelegate.updateImage changeImg:image];
selectedRow = indexPath.row;
[self.tableView reloadData];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
[[cell imageView] setImage:[UIImage imageNamed:@"Tick.png"]];
}
[[cell imageView] setHidden:YES];
if (indexPath.row == selectedRow)
{
[[cell imageView] setHidden:NO];
}
NSString *cellValue = [MenstruationArray objectAtIndex:indexPath.row];
cell.text = cellValue;
return cell;
}
```

How to display in Firstviewcontroller. the above image is Button with red color bar in bottom of button.
When i click this button in Firstviewcontroller firing for Menstruation table view, same time i need to update image bar to Firstviewcontroller.
| How to update custom image if table cell is selected outside controller | CC BY-SA 2.5 | null | 2010-12-28T14:22:52.317 | 2010-12-29T13:33:41.177 | 2017-05-23T12:30:36.930 | -1 | 508,535 | [
"iphone",
"uitableview"
]
|
4,547,064 | 1 | null | null | 0 | 1,674 | I have upgraded my projects to VS2010 a while ago and i'm using local report server reports (RDLC).
The parameter definition dialogs have moved to the Report Data pane, that was the first barrier to get over.
Now i wonder where i can change the value of a parameter - the text the user is prompted when entering a value for the parameter.
I know i can change it by editing the rdlc file in an xml editor - i just can't belief that they have removed the textbox from the dialog.
See a screenshot of the parameter properties window in VS2010:

| How to change the prompt value of an RDLC report parameter in Visual Studio 2010 | CC BY-SA 2.5 | null | 2010-12-28T15:18:09.580 | 2010-12-29T15:37:45.613 | 2010-12-29T15:37:45.613 | 25,727 | 25,727 | [
"visual-studio-2010",
"reporting-services",
"parameters",
"rdlc"
]
|
4,547,162 | 1 | null | null | 5 | 572 | We are looking for a PHP library something like [graphviz.org](http://graphviz.org/) which generates an image of a networked groups of objects as shown below. Graphviz also enables you to make each of the nodes a hyperlink, but we are looking for something more interactive, e.g. even with Flash that would be able to react to a click which deletes a node and quickly redraws that area so the other nodes fill in the space, etc.

| Looking for PHP/Flash graphics library for interactive networked object presentation | CC BY-SA 2.5 | 0 | 2010-12-28T15:35:35.080 | 2011-07-19T12:42:57.070 | 2010-12-28T16:21:24.020 | 4,639 | 4,639 | [
"php",
"image",
"graphics",
"libraries"
]
|
4,547,209 | 1 | 4,564,312 | null | 3 | 8,109 | Is there any way to force the SWT button text to span two lines, either manually in the SWT code or using the WindowBuilder GUI?
I have this:

I want something like this (digitally altered image to achieve this):

Is it possible? How?
| Multi-Line Button text in SWT/WindowBuilder? | CC BY-SA 2.5 | 0 | 2010-12-28T15:42:34.073 | 2014-02-21T13:15:33.483 | null | null | 446,746 | [
"java",
"eclipse",
"swt",
"windowbuilder"
]
|
4,547,308 | 1 | 4,554,615 | null | 3 | 2,068 | My custom font defined on [http://flamefusion.net](http://flamefusion.net) does not render correctly in Firefox 3.6.
It is rendering as Verdana, which is set as the fall-back font in the CSS, defined here: [http://flamefusion.net/style/site.css](http://flamefusion.net/style/site.css)
The code there is generated by Typekit, here: [http://typekit.com/](http://typekit.com/)
[http://www.css3.info/preview/web-fonts-with-font-face/](http://www.css3.info/preview/web-fonts-with-font-face/)
Here's a screenshot of how the page looks like in Chrome 8, which is how it is supposed to look like regarding the fonts. They also work in IE6 or higher, as well as Opera.

| Custom font not working in Firefox 3.6! | CC BY-SA 2.5 | null | 2010-12-28T15:56:37.900 | 2012-10-18T14:49:05.420 | 2010-12-28T16:33:02.047 | 553,609 | 553,609 | [
"css",
"firefox"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.