Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,084,151 | 1 | null | null | 2 | 787 | I have a modal UI in my web app that necessitates a fixed layout design. After much fussing, I decided absolutely positioned child elements was the way to go. However, I have one div that conditionally requires a vertical scrollbar (if there's too much content). When this scrollbar is added, the width of the div seems to vary between IE 7 and IE 8.
IE8 standards mode:

IE7 standards mode:

I haven't even tested for IE 6, but I'm sure it's even funkier. What's the simplest, least painful way to address this to arrive at a consistent UI in all major browsers?
| IE div width + scrollbar | CC BY-SA 2.5 | 0 | 2011-02-22T21:25:53.813 | 2011-02-23T15:23:04.317 | null | null | 34,942 | [
"html",
"css",
"internet-explorer"
]
|
5,084,144 | 1 | 5,224,849 | null | 2 | 2,725 | Is there a way to get an ArcSegment to draw in a particular direction? As far as I can tell, it is always drawing top to bottom to top. For example, I have an ArcSegment which at 180 degrees (270 degrees is north) and draws an almost ellipse to 180 degrees. Right now, the drawing goes clockwise from....well, sorry, let me show you.

The left-hand one is the values I receive from a conversion set of values, but I need it to act like the right-hand one.
```
<Canvas Background="#FDB" Width="720" Height="540">
<Path Canvas.Left="100" Canvas.Top="100" Stroke="#385D8A" StrokeThickness="2" StrokeLineJoin="Round" Fill="#4F81BD">
<!-- this is the LEFT shape that I need drawn like the other one -->
<Path.Data>
<GeometryGroup>
<PathGeometry>
<PathGeometry.Figures>
<PathFigure StartPoint="0,51" IsClosed="True">
<PathFigure.Segments>
<LineSegment Point="51,51" />
</PathFigure.Segments>
</PathFigure>
<PathFigure StartPoint="25.5,0">
<PathFigure.Segments>
<LineSegment Point="25.5,102" />
</PathFigure.Segments>
</PathFigure>
<PathFigure StartPoint="25.5,51" IsClosed="True" >
<PathFigure.Segments>
<ArcSegment Size="25.5,25.5" IsLargeArc="True" SweepDirection="Clockwise" Point="25.49,51" />
</PathFigure.Segments>
</PathFigure>
</PathGeometry.Figures>
</PathGeometry>
</GeometryGroup>
</Path.Data>
</Path>
<Path Canvas.Left="200" Canvas.Top="100" Stroke="#385D8A" StrokeThickness="2" StrokeLineJoin="Round" Fill="#4F81BD">
<!-- this is the RIGHT shape, the way it should behave, but notice the different StartPoint and Point -->
<Path.Data>
<GeometryGroup>
<PathGeometry>
<PathGeometry.Figures>
<PathFigure StartPoint="0,51" IsClosed="True">
<PathFigure.Segments>
<LineSegment Point="51,51" />
</PathFigure.Segments>
</PathFigure>
<PathFigure StartPoint="25.5,0">
<PathFigure.Segments>
<LineSegment Point="25.5,102" />
</PathFigure.Segments>
</PathFigure>
<PathFigure StartPoint="51,25.5" IsClosed="True" >
<PathFigure.Segments>
<ArcSegment Size="25.5,25.5" IsLargeArc="True" SweepDirection="Clockwise" Point="50.99,25.5" />
</PathFigure.Segments>
</PathFigure>
</PathGeometry.Figures>
</PathGeometry>
</GeometryGroup>
</Path.Data>
</Path>
</Canvas>
```
I've tried toying around with `RotationAngle`, but that doesn't seem to have any effect as it works only with the X-axis, not Y-axis.
The first Path's values come from a conversion routine, so it's not that I can easily modify them.
| Rotation and Direction of ArcSegment | CC BY-SA 2.5 | 0 | 2011-02-22T21:25:00.330 | 2011-03-07T20:26:54.640 | 2011-02-23T06:31:32.450 | 149,573 | 149,573 | [
"wpf",
"silverlight",
"geometric-arc",
"pathgeometry"
]
|
5,084,206 | 1 | 5,084,474 | null | 1 | 2,373 | I'm hoping what I'm trying to do is possible using Visual States...
What I want to do is have a button that toggles a stackPanel between two states: 'In' and 'Out'. I would then call VisualStateManager.GoToState on the button's click event, to toggle between the two states.

The problem I've run into is I can't figure out how to attach states to the StackPanel. It won't let me using Expression Blend. So I'm stuck... Is there anyway to animate in and out this panel using VisualStateManager? (I know I could use Storyboards and create and In and Out animation, but I'd preffer to use States if possible)
I really hope this is possible. Otherwise what is VisualStateManager good for besides doing gimmicky rollover effects on buttons?
Thanks for any help!
| WPF using VisualStateManager to animate panels in & out | CC BY-SA 2.5 | null | 2011-02-22T21:30:12.797 | 2011-02-25T22:25:43.087 | null | null | 217,208 | [
"wpf",
"silverlight",
"expression-blend",
"visualstatemanager"
]
|
5,084,470 | 1 | 5,084,514 | null | 0 | 42 | I have several TLF objects whose text I set dynamically, and the size and baseline is appearing incorrectly for certain digits. Has anyone encountered something like this before?
You can see the difference in the 6 and 3 here. (6 is the way it's supposed to look)


And the 7s in the above number are also wrong:

The font is Helvetica Neue, Bold.
The code does not touch the text objects except when changing the text.
| Why are these digits appearing at different baselines? | CC BY-SA 2.5 | null | 2011-02-22T21:55:54.847 | 2011-02-22T22:00:34.110 | null | null | 310,385 | [
"flash",
"actionscript-3"
]
|
5,084,801 | 1 | 5,085,274 | null | 23 | 13,600 | For a square grid the euclidean distance between tile A and B is:
```
distance = sqrt(sqr(x1-x2)) + sqr(y1-y2))
```
For an actor constrained to move along a square grid, the Manhattan Distance is a better measure of actual distance we must travel:
```
manhattanDistance = abs(x1-x2) + abs(y1-y2))
```
How do I get the manhattan distance between two tiles in a hexagonal grid as illustrated with the red and blue lines below?

| Manhattan Distance between tiles in a hexagonal grid | CC BY-SA 3.0 | 0 | 2011-02-22T22:30:23.457 | 2019-08-09T01:17:19.797 | 2015-04-10T13:10:13.160 | 1,030,331 | 223,888 | [
"algorithm",
"path",
"distance",
"hexagonal-tiles"
]
|
5,084,817 | 1 | 5,386,592 | null | 59 | 1,768 | Lets say I have a parabola. Now I also have a bunch of sticks that are all of the same width (yes my drawing skills are amazing!). How can I stack these sticks within the parabola such that I am minimizing the space it uses as much as possible? I believe that this falls under the category of [Knapsack problems](http://en.wikipedia.org/wiki/List_of_knapsack_problems), but this Wikipedia page doesn't appear to bring me closer to a real world solution. Is this a NP-Hard problem?
In this problem we are trying to minimize the amount of area consumed (eg: Integral), which includes vertical area.

| Parabolic knapsack | CC BY-SA 2.5 | 0 | 2011-02-22T22:32:47.543 | 2013-03-08T16:50:06.857 | 2011-02-23T08:58:05.460 | 18,061 | 183,528 | [
"algorithm",
"np-hard"
]
|
5,084,899 | 1 | null | null | 0 | 69 | Using a select dropdown list and `$(code).appendTo('#mydiv');` I'm able to add the html code stored in variable "code" (looks like `<div>...</div>` just before the end of `div` mydiv.
Now in the DIVs added this way, I would like to create a link (the (-) in the attached image

used to remove the corresponding div when clicked.
Of course the number of `div`s to be should be limited and I do not allow to add twice the same number.
As the `div`s are not available when page is loaded, I cannot define a event on the not yet existing links. I found the `.live()` feature which seems to be a clue. Now I need to find a way to detect which link (-) is clicked in order to remove the right `div`.
I cannot figure out how to achieve the last point.
Can someone help me here?
Thank you in advance.
| Add DIVs and remove them clicking on a link? | CC BY-SA 3.0 | null | 2011-02-22T22:40:01.930 | 2011-11-28T07:19:58.000 | 2011-11-28T07:19:58.000 | 234,976 | 1,487,788 | [
"jquery",
"html"
]
|
5,085,034 | 1 | null | null | 3 | 2,552 | ```
var scin = new Scintilla();
ScintillaHotspotStyle = scin.Styles.LastPredefined.Index + 1;
scin.Margins[0].Width = 20;
scin.Caret.HighlightCurrentLine = true;
scin.Styles[ScintillaHotspotStyle].IsHotspot = true;
scin.Styles[ScintillaHotspotStyle].Underline = true;
scin.Styles[ScintillaHotspotStyle].ForeColor = System.Drawing.Color.Blue;
var contents = File.ReadAllText(file);
scin.Text = contents;
//scin.ConfigurationManager.Language = "cpp";
//scin.ConfigurationManager.Configure();
scin.GetRange(2, 5).SetStyle(ScintillaHotspotStyle);
//scin.ConfigurationManager.Language = "cpp";
//scin.ConfigurationManager.Configure();
```
It doesn't matter which order of the commented lines, nor if the call to .Configure() is performed - the outcome is the same:

If however, I do not apply the syntax highlighting, it does work:

Scintilla is pretty confusing, so I'm probably doing something wrong - but I'm not sure what...
| Cannot Style ScintillaNet Text after or before syntax coloring | CC BY-SA 2.5 | null | 2011-02-22T22:54:53.080 | 2013-05-04T05:12:31.927 | null | null | 8,435 | [
"scintilla"
]
|
5,085,122 | 1 | 5,085,173 | null | 9 | 10,423 | I have various files in my Visual Studio Solutions that have to be copied to the bin/Debug folder if I change it.
I tried to set `Copy to Output Directory - Copy always` but it doesnt work. So how can i make sure that when building these files are copied to bin/debug?
Here a screenshot from one example:

| How to ensure that files are copied from my working directory into bin/Debug rsp. bin/Release? | CC BY-SA 2.5 | 0 | 2011-02-22T23:04:48.743 | 2011-02-23T00:02:49.143 | 2011-02-23T00:02:49.143 | null | null | [
"c#",
".net",
"wpf",
"visual-studio"
]
|
5,085,141 | 1 | 5,085,720 | null | 0 | 114 | I have a grid of icons and I want to select an individual icon and save it in separate image file. The image doesn't need to be processed further just simply split apart. Any thoughts on how to let the computer do this work for me?

| Selecting an icon from an image grid | CC BY-SA 2.5 | null | 2011-02-22T23:07:09.413 | 2011-02-23T00:23:15.420 | null | null | 325,193 | [
"c++",
"image-processing",
"image"
]
|
5,085,184 | 1 | 5,085,601 | null | 5 | 12,341 | I want to use chrome to display a full-screen html page for a presentation. You can set chrome to fullscreen mode, but it seems the only way to exit is moving the mouse to the top of the screen and clicking:

I don't want to disable the ability to exit full-screen, I just want to make it so the only way to exit is via pressing the ESC key, not the mouse position. That way basically browser "admin" are the only ones who can get out of the presentation. Is that possible in Firefox or Chrome? Could I write an extension for this if it's not possible?
| Force Chrome/Firefox into Full Screen? | CC BY-SA 2.5 | 0 | 2011-02-22T23:12:17.413 | 2011-02-23T00:16:53.840 | 2011-02-22T23:25:04.777 | 169,992 | 169,992 | [
"javascript",
"firefox",
"google-chrome"
]
|
5,085,183 | 1 | 5,085,232 | null | 1 | 2,096 | I'm wondering how to filter the input of a .NET textbox.
I already know that I could listen for the KeyDown event and intercept the key, but that won't filter pasted strings by a right-click menu or a CTRL+V.
I also don't wan't to completely disable the possibility of pasting of characters in the textbox. The paste action should be cancelled whenever it contains one or more invalid characters.
Finally, I'd like to display a notification balloon whenever invalid characters are either entered or pasted.
μTorrent already has this exact behavior:

How can I achieve this functionality in C# ?
| C# / Filter input of a textbox and display notification balloon | CC BY-SA 2.5 | null | 2011-02-22T23:12:15.827 | 2011-02-23T00:46:36.720 | 2011-02-23T00:46:36.720 | 65,994 | null | [
"c#",
"winforms",
"textbox"
]
|
5,085,410 | 1 | 5,085,482 | null | 8 | 5,463 |
How do I create an in-memory database with SQL CE 4.0?
I'd like to do some unit testing (or automated integration testing) with a real database, however, one that is in-memory. That'll make the tests run fast, plus, the database will vanish in thin air once the test are finished running.
According to Scott Guthrie's blog post "[VS 2010 SP1 and SQL CE](http://weblogs.asp.net/scottgu/archive/2011/01/11/vs-2010-sp1-and-sql-ce.aspx)" the new SQL CE 4.0 is capable of doing just that: providing an in-memory database.
However, I couldn't find any tutorials or code examples on the web showing how it is done. I only found this connection string example in this [blog post](https://weblogs.asp.net/scottgu/code-first-development-with-entity-framework-4). But that also hits the harddrive.

| How to create an in-memory database with SQL CE 4.0? | CC BY-SA 3.0 | 0 | 2011-02-22T23:44:23.327 | 2017-10-19T08:37:00.837 | 2017-10-19T08:37:00.837 | 541,065 | 33,311 | [
"c#",
"sql-server-ce"
]
|
5,085,762 | 1 | 5,087,075 | null | 1 | 687 | I have a document in a `scala.xml` tree (this is easy to convert to whatever else) that I'd like to take and turn into a series of PNG files.
For example, the document might look like this:
```
<doc
title="My Document"
author="John Doe"
created="1 July 1977"
published="19 July 1799"
>
<section heading="An Analysis of Multiparticles"> <!-- Section 1 -->
<p>Paragraph one goes here</p> <!-- INTRODUCTION! -->
<p>Paragraph two goes here</p>
</section>
<section heading="Conclusion of Multiparticles"> <!-- Section 2 -->
<p>Paragraph one goes here</p> <!-- INTRODUCTION! -->
<p>Paragraph two goes here</p>
</section>
</doc>
```
I'd then like to turn that document into a PNG that looks something like this minus the red lines under made-up words (I'd supply the rules for formatting, typefaces to use, etc etc):

And, if possible, longer documents should be able to be "paginated" into any number of PNG files that would flow into the next one after hitting say, 500px of height or something.
If there is an existing Java library/package to do this that does any part of this (or a couple that manage to do it all put together)—great! Otherwise, I'd like to know where I should start for writing something to do this in Scala (preferably) or Java.
Thanks!
| creating formatted PNG 'pages' of document using Java/Scala | CC BY-SA 2.5 | null | 2011-02-23T00:31:07.467 | 2011-02-23T06:12:19.857 | 2011-02-23T01:02:16.633 | 251,162 | 251,162 | [
"java",
"image",
"scala",
"text",
"typesetting"
]
|
5,085,892 | 1 | 5,086,000 | null | 4 | 1,424 | I am making the switch from TextMate to Vim for all of my text editing. However, one of the features that I used a lot in TextMate was the comment banner command (`ctr-shift-b`). It would create a banner and allow you to enter text inside the banner, and the banner would adjust to the length of the text. Is there any plugins, or any similiar feature in Vim? If not, is there a way I can program vim to make a comment banner? Any suggestions would be great. Thanks!

| TextMate Comment Banner in Vim | CC BY-SA 2.5 | null | 2011-02-23T00:52:09.887 | 2013-08-24T05:21:39.060 | null | null | 427,494 | [
"vim",
"textmate"
]
|
5,085,970 | 1 | 5,086,442 | null | 0 | 571 | I'm looking for a way to dynamically create an ellipse with a feathered edge (and be able to control the degree of the feathering). Ideally, this would be achieved through Javascript, as the intended use is in an app which may be made to be available offline, but for simplicity, I'd be happy with a PHP solution in the meantime.
I did attempt a solution using GD, however I found it quite limited when dealing with alpha. The main issues were that using a filled ellipse and layering would cancel out the transparency effect, and that just drawing the border with progressively smaller ellipses caused problems where the ellipses did not perfectly line up (see image below).

Is there a solution I can use that eliminates these issues, without getting too complex? I'm aware I could create an image pixel by pixel, but that seems like a very complex method for what should be a relatively easy task.
| How can I dynamically generate an image with an alpha gradient? | CC BY-SA 2.5 | null | 2011-02-23T01:09:13.393 | 2011-02-23T02:55:08.553 | null | null | 400,481 | [
"php",
"javascript",
"gd",
"gradient",
"alpha-transparency"
]
|
5,086,062 | 1 | null | null | 5 | 1,103 | I know there are modules for this type of structure, but I like and prefer to learn how things really works by myself.
So... I've being trying to expand a path from a graph, such as for example:

```
g = dict(
s=['a','d','s'],
a=['s','d','b'],
d=['s','a','e'],
b=['a','e','c'],
e=['d','b','f'],
f=['e','g'],
c=['b'],
g=['f'])
```
So far I can see the neighbors of a given node with:
```
def vecinosDe(n = ''):
return g[n]
```
I want to each time I call a function that has one argument given, a graph node, returns a list of the other nodes connected to that one given.
Then enter that same list given, created, to that same function to return the nodes connected to that list graph nodes given, and consecutively until it reaches to the 'g' node.
I also know that I need to check if the node connected to the node given has any recursion(loop).
Here's the code I have so far:
```
def expandir(n = '', lista = []):
lista.append([n]) #or lista = lista + [n]?
for v in g[n]:
for i in range(len(lista)): #?
lista[i].append(v)
return lista
```
This is what happens, which I know it's not good, lol.
```
>>> expandir('s')
[['s', 'd', 'a', 's']]
>>> expandir('d')
[['S', 'D', 'A', 'S', 'S', 'A', 'E'], ['D', 'S', 'A', 'E']]
```
In some part of the code within the second for loop I think I should check if there is a node equal to the node I want to expand, the node given. Here's where I get stuck.
Try this?
```
if n == v: #?
```
Also I'm thinking that this may need some kind of recursion, right? But I would like some tips to keep putting the puzzle together. :P
Should I return a list, a list of lists?... how? :S
Any tips? :)
thanks in advance
| Expanding a path from a graph | CC BY-SA 2.5 | 0 | 2011-02-23T01:25:41.567 | 2011-02-23T14:48:27.850 | 2011-02-23T14:20:36.480 | 4,279 | 624,693 | [
"python",
"graph"
]
|
5,086,298 | 1 | null | null | 10 | 1,902 | I want to place some annotations to the left of a topic using HTML and CSS (for example the 'status' and 'author' annotations shown in the following mockup/image):

I prefer CSS instead of a table-based layout.
Annotations should be displayed (to the left of) the heading, as shown above.
In the HTML, annotations should be located the corresponding heading, e.g. as follows (because the information/contents associated with a topic are usually whatever is after the topic's heading):
```
<h1>This is a section title</h1>
<div class="status">approved</div>
<div class="author">chris</div>
<p>This is some text. Lorem ipsum.</p>
<p>Lorem ipsum.</p>
<h1>Different section title</h1>
<div class="status">rejected</div>
<p>Lorem ipsum.</p>
```
There are (at least) two possibilities:
- [This answer uses](https://stackoverflow.com/questions/5086298/can-css-change-the-apparent-sequence-of-elements-e-g-using-float-or-position/5087239#5087239)`float:right``float:left`- [This answer uses](https://stackoverflow.com/questions/5086298/can-css-change-the-apparent-sequence-of-elements-e-g-using-float-or-position/5097132#5097132)`margin-left``position:absolute``left`
Which of these (or any other answer) is the better way to implement this layout, and why?
| Implement this layout using CSS float:left and float:right, or using CSS margin-left and position:absolute? | CC BY-SA 2.5 | 0 | 2011-02-23T02:13:16.620 | 2014-06-19T20:51:47.303 | 2017-05-23T12:01:09.963 | -1 | 49,942 | [
"html",
"css",
"position",
"css-float"
]
|
5,086,537 | 1 | 5,086,911 | null | 38 | 12,379 | I'm using Django's `TabularInline` admin view to edit category objects related to a main topic object, as shown here:

Is there a way to show the rendered names of the objects ("General Questions", "Media Handling and Margins", etc. in this example), creating a custom admin template? In other words, I just want to show a clean grid of input fields.
I found the relevant rendering code [here](http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/templates/admin/edit_inline/tabular.html), at this fragment:
```
...
<td class="original">
{% if inline_admin_form.original or inline_admin_form.show_url %}<p>
{% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}
{% if inline_admin_form.show_url %}<a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/">{% trans "View on site" %}</a>{% endif %}
</p>{% endif %}
...
```
Is there a short, clever way to omit the `{{ inline_admin_form.original }}` or have it return Null?
| How to omit object name from Django's TabularInline admin view? | CC BY-SA 2.5 | 0 | 2011-02-23T02:55:57.740 | 2022-03-13T11:05:03.267 | null | null | 584,597 | [
"django",
"django-admin"
]
|
5,086,623 | 1 | 5,086,696 | null | 2 | 1,143 | Inspired by [this question](https://stackoverflow.com/questions/5086192/sql-server-using-datetime-as-primary-key/5086255#5086255), the asker assumes that the users of a system would very rarely take some action at the exact same time as each other.
Given what I know of making assumptions like that I can guarantee that users would infact do things at the same time. However, I am at a loss as to how you would actually calculate the expected frequency of collisions.
E.g. If we assume each user is taking an action every 3 minutes and our timer is really only accurate to the millisecond, what is the formula for calculating the frequency of collisions?
Given the Wikipedia entry for the birthday problem can be generalised into the formula

Where d is the 180,000 milliseconds and p the probability of a collision.
So with 3 users say, we get a probability of 2.4996E-05 in any given 3 minute period that there is a collision.
The issue then becomes what are the chances of a collision during the day?
There being 60-*60*8/3 = 9600 3 minute periods in the working day, the probability of a collision in any given day then be comes 1-((1-2.4996E-05)^9600) = 21%. A pretty good chance of things going pear shaped.
| How do I calculate the expected frequency of collisions | CC BY-SA 2.5 | null | 2011-02-23T03:14:27.833 | 2011-02-23T04:15:13.960 | 2017-05-23T12:01:33.300 | -1 | 13,813 | [
"datetime",
"math",
"statistics",
"collision"
]
|
5,086,659 | 1 | 5,086,692 | null | 2 | 5,676 | How can I write Erlang B Formula as you see below in MATLAB?

I have tried;
```
GOS=((A.^C)/factorial(C))/...
```
but couldn't complete it. Thnx anyway..
| MATLAB Erlang B-Formula | CC BY-SA 2.5 | null | 2011-02-23T03:22:09.533 | 2018-07-19T11:15:56.280 | 2011-02-23T19:15:07.920 | 7,920 | 629,470 | [
"matlab"
]
|
5,086,682 | 1 | 5,135,440 | null | 0 | 934 | Currently, my ListViews look like this:

How can I achieve that Windows 7 native look below?

| Windows 7 Native Look for .NET ListView | CC BY-SA 2.5 | 0 | 2011-02-23T03:26:52.543 | 2014-09-15T20:15:00.420 | 2014-09-15T20:15:00.420 | 128,221 | null | [
".net",
"windows",
"listview",
"themes"
]
|
5,086,773 | 1 | null | null | 5 | 14,998 | I have 2 Oracle 10g database, XE and Enterprise




and this are the data type I've use in the test table


and then I tried to test to insert some Unicode char from [http://www.sustainablegis.com/unicode/](http://www.sustainablegis.com/unicode/)
and the results are


for this test, I use ColdFusion 9 developer edition
```
<cfprocessingDirective pageencoding="utf-8">
<cfset setEncoding("form","utf-8")>
<form action="" method="post">
Unicode : <br>
<textarea name="txaUnicode" id="txaUnicode" cols="50" rows="10"></textarea>
<br><br>
Language : <br>
<input type="Text" name="txtLanguage" id="txtLanguage">
<br><br>
<input type="Submit">
</form>
<cfset dsn = "theDSN">
<cfif StructKeyExists(FORM, "FIELDNAMES")>
<cfquery name="qryInsert" datasource="#dsn#">
INSERT INTO UNICODE
(
C_VARCHAR2,
C_CHAR,
C_CLOB,
C_NVARCHAR2,
LANGUAGE
)
VALUES
(
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.TXAUNICODE#">,
<cfqueryparam cfsqltype="CF_SQL_CHAR" value="#FORM.TXAUNICODE#">,
<cfqueryparam cfsqltype="CF_SQL_LONGVARCHAR" value="#FORM.TXAUNICODE#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.TXAUNICODE#">,
<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#FORM.TXTLANGUAGE#">
)
</cfquery>
</cfif>
<cfquery name="qryUnicode" datasource="#dsn#">
SELECT *
FROM UNICODE
ORDER BY LANGUAGE
</cfquery>
<table border="1">
<thead>
<tr>
<th>LANGUAGE</th>
<th>C_VARCHAR2</th>
<th>C_CHAR</th>
<th>C_CLOB</th>
<th>C_NVARCHAR2</th>
</tr>
</thead>
<tbody>
<cfoutput query="qryUnicode">
<tr>
<td>#qryUnicode.LANGUAGE#</td>
<td>#qryUnicode.C_VARCHAR2#</td>
<td>#qryUnicode.C_CHAR#</td>
<td>#qryUnicode.C_CLOB#</td>
<td>#qryUnicode.C_NVARCHAR2#</td>
</tr>
</cfoutput>
</tbody>
</table>
```
from this guide [http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10749/ch6unicode.htm#i1007297](http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10749/ch6unicode.htm#i1007297) I think for my Enterprise database it should produce same thing as XE (at least for NVARCHAR2 column) since the from that guide said:
- - -
So, how to make it works too in my Enterprise database?
Thank you
:)
| Oracle Unicode problem when using NLS_CHARACTERSET is WE8ISO8859P1 and NLS_NCHAR_CHARACTERSET is AL16UTF16, and ColdFusion as programming language | CC BY-SA 2.5 | 0 | 2011-02-23T03:43:25.020 | 2014-03-18T06:01:08.067 | null | null | 218,380 | [
"oracle",
"unicode",
"coldfusion",
"character-encoding",
"oracle10g"
]
|
5,087,122 | 1 | 5,226,258 | null | 0 | 2,131 | when using jrebel, How can I make it automaticly republish static resource such as HTML javascript and jsp?

| Jrebel eclipse tomcat republish problem | CC BY-SA 2.5 | null | 2011-02-23T04:49:13.987 | 2011-04-14T06:51:36.143 | null | null | 570,813 | [
"jrebel"
]
|
5,087,097 | 1 | 5,112,825 | null | 3 | 4,134 | I am fresh to jQuery's implementation of it's AJAX methods.
I have a simple setup that accesses two different pages, one which takes 10 seconds to complete (I have a timer set on it) and one which checks on the status of the first page.
The two functions are `progressCheck()` which requests its page every second with the latest status and `beginLogin()` which takes 10 seconds to load. I set a value in the user object on the server that both pages access through symfony 1.4.
The issue is that the `progressCheck()` works correctly until I click `beginLogin()`, then no changes are made until `beginLogin()` finishes. I have both functions setup to run asynchronously. I know it must be something simple to figure out, but I am at a loss.
I ran Firebug - Net while running this page and the result is:

A number of the `progressCheck()` are called during the wait period for the 10 second call, but Net says they ran in ~200 ms without any wait time.
Any ideas?
Code below:
```
<button onclick="beginLogin();">Begin Login</button>
<button onclick="progressCheck();">Check Progress</button>
<button onclick="clearCheck();">Clear Check</button>
<br/>
<div id="result_div">
</div>
<div id="progress_div">
</div>
<style type="text/css">
#progress_div
{
width: 800px;
height: 200px;
border: 1px solid #CCCCCC;
overflow: scroll;
background-color: #AAEEFF;
}
#result_div
{
width: 800px;
height: 300px;
border: 1px solid #CCCCCC;
overflow: scroll;
background-color: #FFEEAA;
}
</style>
<script type="text/javascript">
function beginLogin()
{
try
{
var login_url = "http://example.com/home/loginScript";
$.ajax({
url: login_url,
success: function(data){
$("#result_div").append('<pre>'+data+'</pre><hr/>');
alert("finished");
}
});
}
catch(e)
{
alert("There was an error beginning the login: " + e);
return false;
}
return true;
}
function progressCheck()
{
try
{
var check_url = "http://example.com/home/checkLoginProgress";
$.ajax({
url: check_url,
success: function(data){
$("#progress_div").append('<pre>'+data+'</pre><hr/>');
}
});
}
catch(e)
{
alert("There was an error checking the progress: " + e);
return false;
}
check_id = setTimeout('progressCheck()', 1000);
return true;
}
// set progress checking function to call every second
var check_id = setTimeout('progressCheck()', 1000);
function clearCheck()
{
try
{
clearTimeout(check_id);
}
catch(e)
{
alert("There was an error clearing the check: " + e);
return false;
}
return true;
}
</script>
```
Here are the two PHP functions that returns the data for the two page calls
```
define('DEBUG', true);
public function executeCheckLoginProgress(sfWebRequest $request)
{
if($this->getUser()->hasAttribute('login_script', 'sfGuardSecurityUser'))
$this->login_progress = $this->getUser()->getAttribute('login_script', -1, 'sfGuardSecurityUser');
else
$this->login_progress = '[undefined]';
$conn = $this->connectTestDb();
$query = sprintf("SELECT * FROM company_type WHERE id = 1;");
$result = mysql_query($query, $conn);
$this->login_progress = mysql_result($result, 0, 'name');
if($request->isXmlHttpRequest())
{ // this is an ajax all, only return value
$this->getResponse()->setHttpHeader("Content-type", "text/plain");
$this->getResponse()->setContent($this->login_progress);
return sfView::NONE;
}
}
public function executeLoginScript(sfWebRequest $request)
{
$user = $this->getUser();
if(!$user->hasAttribute('login_script', 'sfGuardSecurityUser'))
$user->setAttribute('login_script', 0, 'sfGuardSecurityUser');
$this->login_value = $user->getAttribute('login_script', 0, 'sfGuardSecurityUser');
$conn = $this->connectTestDb();
$query = sprintf("SELECT * FROM company_type WHERE id = 1;");
$result = mysql_query($query, $conn);
$this->login_value = mysql_result($result, 0, 'name');
$result = $user->assignAccessLevelIds();
if($result === true)
{
$this->login_value += 5;
$user->setAttribute('login_script', $this->login_value, 'sfGuardSecurityUser');
$query = sprintf("UPDATE company_type SET `name` = '%s' WHERE id = 1;", mysql_real_escape_string($this->login_value));
$result = mysql_query($query, $conn);
$this->login_progress = mysql_result($result, 0, 'name');
}
else
{
DataMan::logRawMessage('Unable to set access level user ['.$user->getAttribute('user_id', null, 'sfGuardSecurityUser'), sfLogger::WARNING);
}
// just for testing sleep!
if(DEBUG === true)
sleep(5);
$result = $user->assignCompanyIds();
if($result === true)
{
$this->login_value += 5;
$user->setAttribute('login_script', $this->login_value, 'sfGuardSecurityUser');
$query = sprintf("UPDATE company_type SET `name` = '%s' WHERE id = 1;", mysql_real_escape_string($this->login_value));
$result = mysql_query($query, $conn);
$this->login_progress = mysql_result($result, 0, 'name');
}
else
{
DataMan::logRawMessage('Unable to set company ids user ['.$user->getAttribute('user_id', null, 'sfGuardSecurityUser').'] '.__LINE__, sfLogger::WARNING);
}
// just for testing sleep!
if(DEBUG === true)
sleep(5);
}
```
| jquery ajax call not asynchronous | CC BY-SA 2.5 | 0 | 2011-02-23T04:44:56.703 | 2013-08-09T19:55:40.093 | 2013-08-09T19:55:40.093 | 94,374 | 94,374 | [
"php",
"jquery",
"asynchronous",
"race-condition"
]
|
5,087,248 | 1 | 5,087,481 | null | 1 | 1,751 | I've only programmed on the iPhone so far, so Cocoa is sort of confusing in certain ways for me. Here's where I've hit a snag. I wanted my window so that the background was invisible, and without a title-bar. Something like this:

Here's how I'm doing it:
I set my `window`'s class to a custom window, which I've created like this:
## CustomWindow.h
```
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
@interface CustomWindow : NSWindow {
@private
NSPoint initialLocation;
}
@property(assign)NSPoint initialLocation;
@end
```
## CustomWindow.m
```
//trimmed to show important part
#import "CustomWindow.h"
@implementation CustomWindow
@synthesize initialLocation;
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag {
// Removes the window title bar
self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO];
if (self != nil) {
[self setAlphaValue:1.0];
[self setOpaque:NO];
}
return self;
}
@end
```
Now, in my `.xib` file for this window I've added a custom view onto the window. I've set the view class to a custom class I've created that inherits from `NSView`. Here's how I'm setting that up:
## MainView.h
```
#import <Cocoa/Cocoa.h>
@interface MainView : NSView {
@private
//nothing to see here, add later
}
@end
```
## MainView.m
```
//trimmed greatly again to show important part
#import "MainView.h"
@implementation MainView
- (id)initWithFrame:(NSRect)frame
{
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
- (void)drawRect:(NSRect)rect {
// Clear the drawing rect.
[[NSColor clearColor] set];
NSRectFill([self frame]);
}
@end
```
So here's my question. I've added a `NSImageView` to my custom view (`MainView`) in Interface Builder. However, for some reason I can't figure out how to connect this image view to an instance variable in my custom view. They seem like they can't be connected like I normally would if I was creating an iPhone app. Any ideas how this would be done?
| Connect NSImageView to view using IB? | CC BY-SA 2.5 | null | 2011-02-23T05:09:55.030 | 2011-02-23T05:54:41.250 | null | null | 456,851 | [
"objective-c",
"cocoa",
"xcode",
"macos"
]
|
5,087,417 | 1 | 5,087,489 | null | 3 | 5,729 | When I group multiple QDockWidgets in the same place, their tabs go at the bottom. Is there a way to put them at the top?
Even better is if I can replace the title bar with the tabs themselves. the Eclipse IDE has very similar behavior, as can be seen in this screenshot:
.
For example, the JUnit tab is also it's header and can be dragged to dock it anywhere else.
| QDockWidget Tab Position | CC BY-SA 2.5 | null | 2011-02-23T05:43:41.077 | 2019-07-17T14:36:44.613 | 2019-07-17T14:36:44.613 | 1,163,786 | 187,523 | [
"c++",
"qt",
"user-interface",
"tabs",
"qdockwidget"
]
|
5,087,424 | 1 | 5,087,451 | null | 0 | 425 | 
I want to do something like that..
How to make the corner of the image in the UIImageview round?
Thanks in advance...
| Objective C, How to make the corner of a picture in UIImageView round? | CC BY-SA 2.5 | null | 2011-02-23T05:44:29.970 | 2015-07-01T15:45:47.573 | null | null | 615,780 | [
"objective-c"
]
|
5,087,419 | 1 | 5,096,751 | null | 3 | 3,689 | I ran into this unusual Firefox-only (as far as I know - I only checked against Safari and Chrome, and was using Firefox 3.6) CSS bug today at work, and managed to reproduce the problem with a much smaller snippet of code, here:
```
<!DOCTYPE html>
<head>
<style>
/*
* A small snippet of some CSS resets code from html5doctor and YUI fonts and resets
* added just to make sure it's not from weird browser padding/margin. Still happens
* if this is removed though
*/
html, body, div, span, p, ul, li {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
background: transparent;
}
body {
line-height: 1;
}
li {
list-style: none;
}
body {
color: #333;
font-family: Helvetica, Arial, Verdana, Geneva, sans-serif;
line-height: 1.3;
}
/* Some clearfix code from HTML5 Boilerplate */
.clearfix:before, .clearfix:after {
content: "\0020";
display: block;
height: 0;
visibility: hidden;
}
.clearfix:after {
clear: both;
}
.clearfix {
zoom: 1;
}
</style>
</head>
<body>
<div style="padding: 20px; border: solid thin black;">Hello!</div>
<div>
<ul class="clearfix">
<li style="float: left; padding: 5px; border: solid thin black;">There</li>
<li style="float: left; padding: 5px; border: solid thin black;">should</li>
<li style="float: left; padding: 5px; border: solid thin black;">be no</li>
<li style="float: left; padding: 5px; border: solid thin black;">margin</li>
<li style="float: left; padding: 5px; border: solid thin black;">above</li>
<li style="float: left; padding: 5px; border: solid thin black;">this</li>
<li style="float: left; padding: 5px; border: solid thin black;">list</li>
</ul>
<p style="margin-top: 30px">Yet for some reason the 30px margin-top on this p applies to both this p as well as the above list</p>
</div>
</body>
</html>
```
Here's a screenshot of what the problem looks like 
So what I'd normally expect to happen here is that there's no margin between the two `<div>`s, or above the `<ul>`, and indeed, hovering over elements in Firebug will show no margin/padding coloring. But for some reason, the 30px margin-top from the `<p>` is being applied to both the `<p>`, as well as its containing `<div>`. My guess is that something's buggy with the clearfix (and indeed, if you use a clearing `<br/>`, this problem goes away), but I'm curious if anyone has insight into what exactly the problem here is. Thanks!
| What might cause this CSS margin sharing(?) bug in Firefox to occur? | CC BY-SA 2.5 | 0 | 2011-02-23T05:43:53.637 | 2011-08-28T20:33:27.163 | null | null | 194,255 | [
"css",
"clearfix"
]
|
5,087,445 | 1 | 5,087,602 | null | 0 | 314 | The html code for the widget header is as follows.
```
<div class="widget-header">
<span>caption</span>
<a href="sh/index.php?type=rec">more</a>
<img src="/img/widgets/widgets_more.gif" />
</div>
```
My CSS code is
```
.widget-header span { float: left; }
.widget-header a, img { float: right; }
```
If this, the widgets_more right arrow would position to the left of text 'more' like this,

How can I get the right order with modifying the css code?
Thanks.
| How to position the arrow of this widget correctly? | CC BY-SA 2.5 | null | 2011-02-23T05:49:10.067 | 2011-02-23T06:49:45.833 | 2011-02-23T06:49:45.833 | 193,251 | 193,251 | [
"html",
"css",
"css-float"
]
|
5,087,443 | 1 | 5,112,530 | null | 9 | 358 | What is the simplest way to asynchronously apply consecutive improvements to a `Graphics` object in a dynamic setting (and abort the evaluation of the unneeded results if input changes while they are being computed)?
As a simple example, consider this:
```
speed[r_] := Graphics@{Red, Circle[{0, 0}, r]}
qualityA[r_] := (Pause[1]; Graphics@{Red, Disk[{0, 0}, r]})
qualityB[r_] := (Pause[1]; Graphics@{Black, Circle[{0, 0}, r]})
Manipulate[Show[
ControlActive[speed[r], {qualityA[r], qualityB[r]}],
PlotRange -> {{-1, 1}, {-1, 1}}
], {{r, .5}, 0, 1}]
```

How can I evaluate `qualityA` and `qualityB` consecutively, and append their output to the display when it is ready?
Bonus points for `Abort`'ing the evaluation of unneeded results, and for allowing a part of the result to be calculated multiple times, so that after releasing the control I would see e.g. `{qualityA[r]}` then `{qualityA[r],qualityB[r]}`, and finally `{qualityA2[r],qualityB[r]}`.
| Mathematica: Asynchronous incremental generation of dynamical graphics | CC BY-SA 3.0 | 0 | 2011-02-23T05:48:50.930 | 2012-01-03T21:34:52.373 | 2012-01-03T21:34:52.373 | 615,464 | 212,538 | [
"wolfram-mathematica"
]
|
5,087,546 | 1 | 5,088,099 | null | 6 | 16,372 | I created a UISwitch using this code...
```
UISwitch *switch = [[UISwitch alloc]initWithFrame:CGRectMake(110, 230, 60, 60)];
[window addSubview:switchView];
[switchView release];
```
The created button will be....

The default properties are,
1. It contains "ON" & "OFF" states
2. The OFF button is white & the ON button is in blue color
I want to create a customized switch, so that the background color & text in the switch should be changed. Is it possible? Please explain in detail.
Thanks in Advance,
Rajkanth
| How to customize UISwitch button in iphone? | CC BY-SA 2.5 | 0 | 2011-02-23T06:04:12.873 | 2013-01-08T19:29:17.657 | null | null | null | [
"iphone",
"text",
"customization",
"background-color",
"uiswitch"
]
|
5,087,542 | 1 | 5,089,771 | null | 21 | 16,595 | I am creating a `NSView` subclass that has rounded corners. This view is meant to be a container and other subviews will be added to it. I am trying to get the rounded corners of the `NSView` to clip all of the subview's corners as well, but am not able to get it.
```
- (void)drawRect:(NSRect)dirtyRect {
NSRect rect = [self bounds];
NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:self.radius yRadius:self.radius];
[path addClip];
[[NSColor redColor] set];
NSRectFill(dirtyRect);
[super drawRect:dirtyRect];
}
```
The red is just for example. If I add a subview to the rect, The corners are not clipped:

How can I achieve this?
| Rounded rect on NSView that clips all containing subviews | CC BY-SA 2.5 | 0 | 2011-02-23T06:03:27.257 | 2016-12-06T11:58:37.457 | 2011-02-23T06:09:40.077 | 69,634 | 69,634 | [
"cocoa",
"nsview",
"rounded-corners",
"clipping",
"nsbezierpath"
]
|
5,087,926 | 1 | 5,092,405 | null | 1 | 1,134 | The task seems fairly simple but I don't know what's the best way to implement it in Android.
There should be a number of images on the screen (let's say 4-5 max) each image will have as a Background a FrameAnimation that's oneTime(false) (representing a running man). Each of these images need to have a random path to follow around the screen, calculated when it's first created. So the running man will go around the screen in different directions. Each image will have a onClick listener so when clicked on it, it will be removed from the screen.
What is the best way to do this in Android starting with 1.6 without causing performance drops or Bitmap Memory leaks ?
I attach a image for exemplification. Thank you all for your time.

Later Edit: the best solution seems to use a extended SurfaceView. I saw some samples with adding, moving the image around, but I don't know yet how could I intercept the onTouchEvent. I can override the onTouchEvent of the surfaceView. The solution that comes now in my mind is get x and y of the touched spot and then look in the animated images if any is under the x,y pressed spot. This seems pretty complicate.
| Animating a imageview on a random path in Android | CC BY-SA 2.5 | null | 2011-02-23T07:04:26.677 | 2011-02-23T14:47:43.327 | 2011-02-23T10:35:38.683 | 379,865 | 379,865 | [
"android",
"animation",
"custom-view"
]
|
5,088,039 | 1 | 5,089,548 | null | 0 | 144 | I am trying to make a table-like calendar page, using fixed width and height block level elements. There is an outer container, which sets the width, and the cells get aligned by float: left. It works well in every browser, except in IE6, where the list gets split after the 29th element.
If I make the outside container a bit more wide (by at least 3 pixels) the problem gets fixed in IE6. Because the elements are more than 3 pixels wide, it doesn't change how the page looks. But I really don't understand why it happens, and what should I do not to make it happen.
I tried IE7.js, but it didn't help.
I know IE6 is such a buggy old browser, but while my sites are simple I prefer making them IE6 compatible.
[link to the page in question](http://asztal.brainhurt.net/naptar.php)

| list of block level elements gets split in IE6 | CC BY-SA 2.5 | null | 2011-02-23T07:20:16.623 | 2011-02-23T10:46:06.873 | 2011-02-23T10:46:06.873 | 405,015 | 518,169 | [
"css",
"internet-explorer",
"html",
"internet-explorer-6"
]
|
5,088,113 | 1 | null | null | 0 | 339 | I almost successfully implemented compass lucene search in my web application.I am searching for a customer with his name. For example in the below screenshot , I am searching for a customer with and below are the results. But there is a small problem,The results shown are not sorted for Names with RAM..it shows all customer names that have the three letters RAM in any position in their name.
I want all my results of Customer Name to start with Letters Ram*...
Can anyone guide me how to get results that start with letters RAM.
It should return results like a database search for eg: " Where customername like 'RAM%'
## My Analyzer is this
```
<searchEngine>
<analyzer name="default" type="Simple">
<stopWords>
<stopWord value="test" />
</stopWords>
</analyzer>
</searchEngine>
```
## This is my annotated field for Customer First name in my entity class.
```
@SearchableProperty
@SearchableMetaData(name = "customerFirstName")
private String customerFirstName;
```

| compass lucene search results sorting | CC BY-SA 2.5 | null | 2011-02-23T07:33:11.757 | 2011-07-27T17:22:57.580 | 2011-07-27T17:22:57.580 | 93,848 | 441,902 | [
"full-text-search",
"lucene",
"compass-lucene"
]
|
5,088,311 | 1 | null | null | 1 | 2,756 | 
This is dojox.grid.EnhancedGrid.
How can I hide the green dashed-square (around the check box) showing that this item is presently selected by keyboard, usually used for keyboard navigation?
The image is taken from: [http://dojotoolkit.org/reference-guide/dojox/grid/EnhancedGrid.html](http://dojotoolkit.org/reference-guide/dojox/grid/EnhancedGrid.html)
Thanks
| How to hide dojox grid selected row dashed borders | CC BY-SA 2.5 | null | 2011-02-23T07:57:46.090 | 2019-08-11T19:40:18.300 | null | null | 601,682 | [
"javascript",
"dojo",
"dojox.grid",
"dojox.grid.datagrid"
]
|
5,088,723 | 1 | 5,092,647 | null | 0 | 864 | I have a UITableView inside UITabBarController, when the starting orientation for the TableView is Landscape there is no problem, but when the Starting Orientation is Portrait it get shifted down by 10 px after rotating, please see Images,
Before Rotating:

After Rotating:

The gray 10 pixel rect is shown between the Status and the UINavigationController.
Any help would be so much appreciated.
Thanks all.
| UITableView in UITabBarController gets 10 px shift down on rotation | CC BY-SA 2.5 | 0 | 2011-02-23T08:52:09.393 | 2011-02-24T07:25:17.293 | 2017-02-08T14:31:36.817 | -1 | 488,434 | [
"iphone",
"objective-c",
"ipad",
"uinavigationcontroller",
"rotation"
]
|
5,088,842 | 1 | 5,088,873 | null | 3 | 116,172 | I have database code like this
```
try
{
string strConnectionString = ConfigurationManager.ConnectionStrings["SqlServerCstr"].ConnectionString;
SqlConnection myConnection = new SqlConnection(strConnectionString);
myConnection.Open();
string hesap = Label1.Text;
string musteriadi = DropDownList1.SelectedItem.Value;
string avukat = DropDownList2.SelectedItem.Value;
SqlCommand cmd = new SqlCommand("INSERT INTO AVUKAT VALUES (@MUSTERI, @AVUKAT, @HESAP)", myConnection);
cmd.Parameters.AddWithValue("@HESAP", hesap);
cmd.Parameters.AddWithValue("@MUSTERI", musteriadi);
cmd.Parameters.AddWithValue("@AVUKAT", avukat);
cmd.Connection = myConnection;
SqlDataReader dr = cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
Response.Redirect(Request.Url.ToString());
myConnection.Close();
}
catch (Exception)
{
Response.Write("<h2>ERROR</h2>");
}
```
It works fine but what I want, in the catch function, is to call the javascript alert function.
I've tried this
```
Response.Write("<script language=javascript>alert('ERROR');</script>);
```
But there is an error 
How can I show error message in `javascript` `alert` function?
| Using Alert in Response.Write Function in ASP.NET | CC BY-SA 2.5 | 0 | 2011-02-23T09:06:32.260 | 2017-01-23T05:22:31.660 | 2011-02-23T09:13:47.847 | 7,872 | 447,156 | [
"c#",
"javascript",
"asp.net"
]
|
5,088,929 | 1 | 5,323,027 | null | 23 | 9,865 | 
When I try to add a goal I don't get any goals. Is there any solution or I should manually add them.But in an example I saw it automatically lists all the available goals.
| Empty goals list in m2Eclipse | CC BY-SA 4.0 | 0 | 2011-02-23T09:16:40.567 | 2018-09-05T01:11:25.593 | 2018-09-05T01:11:25.593 | 4,099,593 | 410,693 | [
"eclipse",
"maven",
"eclipse-plugin",
"m2eclipse"
]
|
5,088,998 | 1 | 5,089,035 | null | 1 | 214 | You can see the implementation here: [http://jsfiddle.net/kqKfK/](http://jsfiddle.net/kqKfK/)
I am trying to get everything in one line - with the span "2-up" at the far right. It would also be nice if each of the internal divs are equally spaced amongst themselves.
Edit: This is how I want it to look:

Edit 2: This is how it looks after the implementation of Kyle's suggestion. I would like for it to be aligned properly:

Edit 3: This is how it looks after Kyle's second implementation.

| How do I align these 3 divs and a span? | CC BY-SA 2.5 | null | 2011-02-23T09:25:05.847 | 2011-02-23T18:44:07.623 | 2011-02-23T18:44:07.623 | 56,338 | 91,970 | [
"html",
"css"
]
|
5,089,030 | 1 | 5,102,096 | null | 14 | 18,973 | I've found several examples on how to create these exact hierarchies (at least I believe they are) like the following here [stackoverflow.com/questions/2982929/](https://stackoverflow.com/questions/2982929/plotting-results-of-hierarchical-clustering-ontop-of-a-matrix-of-data-in-python) which work great, and almost perform what I'm looking for.
[EDIT]Here's a simplified version of [Paul](https://stackoverflow.com/users/31676/paul)'s code, which now should be easier for someone to help get this into a radial cluster instead of this current cluster shape

```
import scipy
import pylab
import scipy.cluster.hierarchy as sch
def fix_verts(ax, orient=1):
for coll in ax.collections:
for pth in coll.get_paths():
vert = pth.vertices
vert[1:3,orient] = scipy.average(vert[1:3,orient])
# Generate random features and distance matrix.
x = scipy.rand(40)
D = scipy.zeros([40,40])
for i in range(40):
for j in range(40):
D[i,j] = abs(x[i] - x[j])
fig = pylab.figure(figsize=(8,8))
# Compute and plot the dendrogram.
ax2 = fig.add_axes([0.3,0.71,0.6,0.2])
Y = sch.linkage(D, method='single')
Z2 = sch.dendrogram(Y)
ax2.set_xticks([])
ax2.set_yticks([])
fix_verts(ax2,0)
fig.savefig('test.png')
```
But instead of a tree-like structure, I need a radial cluster like the following diagrams.


| How do I create a radial cluster like the following code-example in Python? | CC BY-SA 2.5 | 0 | 2011-02-23T09:28:10.533 | 2023-02-05T18:04:40.197 | 2017-05-23T12:24:15.203 | -1 | 563,343 | [
"python",
"numpy",
"scipy",
"cluster-analysis",
"dendrogram"
]
|
5,089,361 | 1 | 5,089,397 | null | 1 | 6,018 | I can't figure out why it can't find my images. The images are clearly there in the project, and their Build Actions are all set to "Resource".

If you enlarge, you can see all my code.
| Why can't visual studio find my image file? | CC BY-SA 2.5 | null | 2011-02-23T10:01:53.507 | 2016-10-27T23:17:20.523 | null | null | 343,381 | [
"wpf",
"visual-studio",
"visual-studio-2010",
"xaml"
]
|
5,089,389 | 1 | null | null | 57 | 269,340 | I could read registry `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0`.
However, it doesn't give me any information about the edition of it - Professional/Ultimate or whatever.
How can I get the information with programmatically (preferably python)?

| How can I check what version/edition of Visual Studio is installed programmatically? | CC BY-SA 3.0 | 0 | 2011-02-23T10:04:46.420 | 2022-06-06T16:39:20.860 | 2013-04-24T17:36:18.510 | 260,127 | 260,127 | [
"visual-studio",
"registry"
]
|
5,089,442 | 1 | 5,089,507 | null | 4 | 11,929 | 
I have to create a select box like this. I have been able to get this tree structure using optgroup but I am facing problems in changing the default background color of the selected option from default color to this orange color.
I am aware of js solutions but I am more interested in pure HTML/CSS solution. It would be better if it will work in every browser, but no pressure ;)
Thanks in advance.
| Changing the background color of the selected options in a select box | CC BY-SA 2.5 | 0 | 2011-02-23T10:11:23.507 | 2014-01-24T08:53:53.573 | null | null | 22,550 | [
"html",
"css",
"select",
"background"
]
|
5,089,544 | 1 | 5,099,082 | null | 0 | 691 | How to remove the gridlines that come in background for the core-plot?
I want the background to be of white color with no gridlines.
Currently my core plot looks like this:

I want to remove the black gridlines shown in background.
how can I do so?
| iPhone: How to remove the gridlines that come in background for the core-plot? | CC BY-SA 2.5 | null | 2011-02-23T10:20:23.300 | 2011-02-24T00:32:32.670 | null | null | 463,857 | [
"iphone",
"cocoa-touch",
"ios4",
"charts",
"core-plot"
]
|
5,089,552 | 1 | 5,118,407 | null | 1 | 298 | 
There are some server jars in my project which i want to migrate to maven ..
I don't have any idea how can i have dependencies attached to these jars.. there are almost 24 jars.. So how can add them to the project scope
| Handling server JAR in maven | CC BY-SA 2.5 | null | 2011-02-23T10:21:01.690 | 2011-12-01T12:12:58.033 | null | null | 410,693 | [
"jar",
"maven",
"m2eclipse",
"nexus"
]
|
5,089,843 | 1 | null | null | 4 | 17,878 | I have populated a `ComboBox` inside a `ListView`. Screen shot is given below

As shown above it's displaying "M", "a", "c" instead of "Mac". Why it is separating the word into characters?
In code behind file I've written
And in .xaml file I've written:
I'm using Visual Studio 2010
Screen shot of `dataTable` which I used as `ItemSource` for the ListView.(Taken during debuging)

| Populating ComboBox inside ListView in WPF | CC BY-SA 2.5 | 0 | 2011-02-23T10:48:29.430 | 2019-07-08T14:12:35.010 | 2011-02-23T12:11:03.033 | 411,552 | 411,552 | [
"wpf",
"listview",
"combobox",
"wpf-controls"
]
|
5,089,961 | 1 | 5,089,990 | null | 9 | 11,846 | This question felt so simple but I just can't find the answer:
How to change a Button back to its default? My VS2010 start giving me button with strange color and I have to manually set the Button to look like its default self.
I tried:
> `btn.Background = null; // only make it transparent, not default background`
Anyone?

| WPF how to restore Button background color | CC BY-SA 2.5 | 0 | 2011-02-23T10:59:05.923 | 2011-02-23T11:08:44.313 | 2011-02-23T11:08:44.313 | 21,234 | 529,310 | [
"wpf",
"button"
]
|
5,090,021 | 1 | 5,275,870 | null | 4 | 4,447 | does anyone know what is the actual code to create a local notification in the Blackberry app that has a customized application icon and when the user clicks on the notification in the inbox, it goes directly to a specific page in the application?
This is similar to how Twitter for blackberry works, whereby you can be notified of new tweets via your inbox and on clicking on the link brings you to the tweets list in the twitter app. Thanks.

| How to create a Blackberry notification message that opens the app like twitter does? | CC BY-SA 2.5 | 0 | 2011-02-23T11:04:48.450 | 2013-10-04T20:01:35.580 | 2011-03-13T21:06:57.740 | 75,204 | 192,339 | [
"blackberry",
"push-notification"
]
|
5,090,081 | 1 | 5,090,216 | null | 0 | 81 | I have built this query that is kind of self explanatory:
```
SELECT events.*,(SELECT COUNT(*)
FROM events_participants
WHERE events_participants.eventid=events.eventid)AS participants,linkViews.totViews
FROM events INNER JOIN linkViews ON events.event_id=LinkViews.eventid
```
In the events table i have 6 events but this query return just 3 of them (ID:1,2,4).

Where is this query wrong?
| mysql query result | CC BY-SA 4.0 | null | 2011-02-23T11:10:39.843 | 2019-05-02T03:10:19.020 | 2019-05-02T03:10:19.020 | 2,370,483 | 505,762 | [
"mysql",
"join"
]
|
5,090,123 | 1 | 5,090,184 | null | 0 | 87 | I used [the solution from this question](https://stackoverflow.com/questions/3210317/how-to-print-a-div-using-a-javascript) but it also shows the URL on the document.

| Print defined content using Javascript | CC BY-SA 2.5 | null | 2011-02-23T11:13:53.460 | 2011-02-23T12:09:25.357 | 2017-05-23T10:32:36.017 | -1 | 233,679 | [
"javascript"
]
|
5,090,168 | 1 | null | null | 1 | 1,938 | I have a matrix that represents a binary image (1 for each cell that represents "black" pixels and 0 for "white" ones). The black pixels represent the figures (shape and fill) of the image and the white ones the background. What I want to do is to detect the corners of the figures represented in the matrix.
2 examples:
---

---
Any idea or algorithm for this?
Thanks in advance.
| Binary Image Corner Detection | CC BY-SA 2.5 | 0 | 2011-02-23T11:18:37.527 | 2011-02-24T08:55:54.953 | 2011-02-24T08:55:54.953 | 277,927 | 277,927 | [
"c++",
"python",
"algorithm",
"image-processing",
"robotics"
]
|
5,090,332 | 1 | 5,090,389 | null | 0 | 389 | I have a button with a curved image set as its foreground image. It looks like:

Now when the button is on pressed state, it shows up like this:

notice the grey rectangular color coming up around the edges. Is there any easy way to avoid the grey background coming all over the rectangle ?
| iPhone: How to avoid background color coming up when button is selected? | CC BY-SA 3.0 | null | 2011-02-23T11:36:30.837 | 2011-11-23T14:41:10.563 | 2011-11-23T14:41:10.563 | 232,053 | 48,557 | [
"iphone",
"uibutton"
]
|
5,090,351 | 1 | 5,090,572 | null | 1 | 207 | how do I display a list of items on the screen, like how email is displayed on the screen?

What is this controller called?
| show items in a list like email | CC BY-SA 3.0 | null | 2011-02-23T11:37:39.037 | 2013-04-18T09:36:58.363 | 2013-04-18T09:36:58.363 | 664,177 | 103,264 | [
"iphone",
"objective-c",
"xcode",
"ios4"
]
|
5,090,361 | 1 | null | null | 0 | 802 | I'd like to create a sliding view showing facebook contacts at the bottom of the screen.
When clicking on the facebook logo, as shown in top image, I'll show a facebook login form, and once logged in, clicking on the facebook logo will slide in/out the view (bottom image shows view after slide out). The view will contain pictures of some selected facebook contacts (not all, say up to 10), so the view should be scrollable to be able to see selected contacts.
I found SlidingDrawer, but it seems it requires two separate children views, one for handle, another for content, while I want one view, with only a selected area shown when slidden in.
Any suggestion on the best way to achieve this?
Thank you


| Scrollable sliding view in Android | CC BY-SA 2.5 | 0 | 2011-02-23T11:38:30.357 | 2011-02-23T12:01:13.243 | null | null | 326,849 | [
"android",
"view",
"slide",
"scrollable"
]
|
5,090,742 | 1 | 5,090,872 | null | 3 | 5,472 | I have created a script in which a i have to create a image at runtime using a 64bitencoded string .i m using imagecreatefromstring function of PHP but it works in my Windows XAMPP based PHP , but not on my cloud side applications which i deployed on Amazon cloud running SUSE version of Linux.
Can u give me any suggestion to overcome the problem.
Or is there any other function which is capable to create the image from the encoded string passed to it.
Thanks in adv
I am using following code
```
<?php
require ('../dbconfig/dbConfig.php');
$gameId = $_POST["gameId"];
$username = $_POST['email'];
$imagedata = $_POST['imagedata'];
$uploaddir = './../blogdata/i/';
$countSql = mysql_query("select max(_id) as fileName from blog_data ");
while($rowCommentData = mysql_fetch_assoc($countSql))
{
$num = $rowCommentData["fileName"];
$file = ++$num.".png";
$filedb = $uploaddir .$file;
}
/* $imagedata= 'iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABl'
. 'BMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDr'
. 'EX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r'
. '8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg==';*/
$imagedata= base64_decode($imagedata);
if(($img = @imagecreatefromstring($imagedata)) !== FALSE)
{
if(imagepng($img,$filedb))
{
imagedestroy($img);
$sql="Insert into blog_data (game_id,text,type,username)".
"Values('$gameId','$file','i','$username')";
$result=mysql_query($sql);
if($result == 1)
{
echo $file;
}
else
{
echo "error2";
}
}
else {
echo "error1";
}
}
else
{
echo "error0";
}
```
?>
By running PHP info there i got this information

| PHP's imagecreatefromstring function not working on Amazon Linux Server | CC BY-SA 2.5 | null | 2011-02-23T12:13:14.563 | 2011-02-23T12:46:01.233 | 2011-02-23T12:27:56.243 | 395,661 | 395,661 | [
"php",
"amazon-ec2"
]
|
5,091,092 | 1 | 5,352,729 | null | 0 | 105 | I'm creating a pipe that basically needs to follow the work flow as follows:
1. Read an XML feed from a website (already does it by fetch data)
2. Grab some information of it (does it by using rename so a sub-element can be created with all the items)
3. Off this information, I'll be extracting a URL which I'd like to run through the following YQL: use 'http://javarants.com/yql/javascript.xml' as j; select * from j where code='response.object = y.rest("http://www.my_url.com").followRedirects(false).get().headers.location;'
4. I then want to take this URL, and update the URL already generated, so it can be returned by my pipe
I'm not sure I'm being very clear, but I'm having trouble with isolating things with Yahoo pipes. Basically I'd like to get a string returned by one of the items on my rename module, do some work with it (say run that URL through YQL), and then return it to update my output, so I have the newly created URL returned by my YQL
Also, I'd like to know how to modify this newly created URL returned by YQL is for example I wanted to change query string attributes of it.
Here's what my pipe looks like now:

Thanks in advance for any help.
| Basic help with creating a Pipe and how to isolate data | CC BY-SA 2.5 | null | 2011-02-23T12:46:09.977 | 2011-03-18T13:35:28.110 | null | null | 279,395 | [
"pipe",
"yahoo",
"yql"
]
|
5,091,475 | 1 | 5,091,545 | null | 0 | 54 | I've seen a really nice jQuery-like menu on force.com (after you log-in). And I can't find a tutorial/example on how to create it using jQuery.
It looks like this:
Before hover:

On Hover:

On Click:

Anyone knows where I can find a good example on how to create one of these?
Thanks.
| jQuery menu styling | CC BY-SA 2.5 | null | 2011-02-23T13:23:27.823 | 2011-02-23T13:28:43.420 | null | null | 407,943 | [
"jquery",
"css"
]
|
5,091,549 | 1 | null | null | 1 | 591 | I'm trying to measure conversion for both my Google Adwords campaign and normal traffic going to the App Store. Previously I had a link "/app_store/" on my page that would load, wait 1 second and then continue to the app store.
I found a more elegant solution somewhere using Javascript. For adwords it loads a pixel image and for analytics it calls a Google Javascript function, pauses for a fraction of a second and then follows the link.
Unfortunately it's not working for me. Google Analytics and Google Adsense don't see anyone going to the App Store (not even myself).
```
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18180332-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function recordOutboundLink(link, category, action) {
try{
// Google Analytics
var pageTracker = _gat._getTracker("UA-18180332-1");
pageTracker._trackEvent(category, action);
// Google Adwords
var image = new Image(1, 1);
image.src = "http://www.googleadservices.com/pagead/conversion/1046551421/?value=$8&label=zqrfCMWh0QEQ_baE8wM&guid=ON&script=0"
setTimeout('document.location = "' + link.href + '"', 100)
} catch(err) {}
}
</script>
```
And for the link:
```
<a href="http://itunes.apple.com/ae/app/isimplifiedchinese/id377690407?mt=8"
onClick="recordOutboundLink(this, 'Outbound Links', 'http://itunes.apple.com/ae/app/isimplifiedchinese/id377690407?mt=8');return false;">
<img alt="Appstore" src="images/appstore.png"></a>
```
What am I doing wrong here?
I noticed that if the delay is 100ms, the following error flashes by (it took me a while to time the screenshot).

I only tested this with Erwan's suggestion; not sure if it also happened in the old version. The error seems to go away for longer delays; I set it to 300ms to be on the safe side.
| Google Analytics & Adwords delayed javascript link to App Store ignored? | CC BY-SA 2.5 | 0 | 2011-02-23T13:29:20.870 | 2011-02-23T15:17:36.053 | 2011-02-23T15:17:36.053 | 313,633 | 313,633 | [
"javascript",
"google-analytics",
"google-ads-api"
]
|
5,091,588 | 1 | 5,092,495 | null | 0 | 4,321 | I've tried to include GData XML into my current project. So far without success, however, building fails due to an error of a kind that's out of my scope..:

Since I am building for iPhone (and iPhone Simulator, for the sake of completeness), I don't know why it cares about i386 anyway. But then again the whole matter of including libxml2 is a bit beyond my comfort zone - I'm doing this for the first time.
For setting up all the flags and search paths I was referring to Step 4 of [this tutorial](http://johntwang.com/blog/2009/06/08/how-to-use-google-apis-with-iphone-sdk/). I was unable to add the OTHER_CFLAGS flag, since a key of the same name exists in already. So I tried to set it to there, but that didn't change anything.
So, how do I get things to work properly? It seems like documentation on GData XML is sparse - can you recommend any ressource that explains things better than the link I found?
Since koregan asked this in his comment, I'd like to add that it doesn't compile for iPhone Simulator and the actual device. If building for the device the error is a slightly different one (without the i386 part) however:

| Building iPhone app with GData XML fails: undefined symbols (for architecture i386) | CC BY-SA 2.5 | null | 2011-02-23T13:32:57.313 | 2011-03-15T14:51:17.003 | 2011-02-23T14:03:50.243 | 416,600 | 416,600 | [
"iphone",
"xml",
"xcode",
"ios",
"libxml2"
]
|
5,091,677 | 1 | 5,093,800 | null | 7 | 3,575 | I have simple model with a "BaseEntity" and a derived "Fund" entity.
When I try to insert a new fund:
```
HybridModelContainer container = new HybridModelContainer();
//Create new Fund
Fund fund = new Fund();
fund.Id = Guid.NewGuid();
fund.DateCreated = DateTime.Now;
fund.Name = "Fund 1";
fund.Number = 1;
container.BaseEntities.AddObject(fund);
container.SaveChanges();
```
I get the following error:
> "Cannot insert the value NULL into column 'Id', table 'HybridData.dbo.BaseEntities'; column does not allow nulls. INSERT fails.
The statement has been terminated."
It seems that the ID assigned to the fund entity is not inserted into the BaseEntity table. Why not?
I did this "model first". If I design the database first, and create the model from it, everything works fine....But I need model first!

Also...why isn't there an `ObjectSet` for "`Funds`" in my `DataContext` (i.e., `container.Funds`)? Thanks in advance for your help!
| Entity Framework 4: Table per Type inheritance problem on insert | CC BY-SA 2.5 | null | 2011-02-23T13:41:51.703 | 2011-02-23T23:21:06.563 | 2011-02-23T21:19:34.827 | 2,555,214 | 2,555,214 | [
"c#",
"entity-framework",
"inheritance",
"entity-framework-4"
]
|
5,091,777 | 1 | 5,093,724 | null | 0 | 871 | I'm a relative newbie to MVC. The app that I've written works and I continually fine tune it as I learn. Recently, I've been toying with mobile web site tools. I've never needed to do this so I did as much searching/reading/tinkering as I could. I started with the Microsoft Web App Toolkit which ended up being a bit outdated so I kept on reading and eventually switched to using the 51Degrees.mobi library.
I've set it up based on several different posts:
1. Steve Sanderson - http://www.asp.net/learn/whitepapers/add-mobile-pages-to-your-aspnet-web-forms-mvc-application
2. 51Degrees User Guide - http://51degrees.codeplex.com/wikipage?title=User%20guide
3. ...and a bunch of other sites and descriptions all centering around the same basic points.
So here's what I have as described by Mr. Sanderson.
-

-

- 
I have to use the following IIS module for debugging even though I'm using Win7:

I've also made the necessary modification to the Global.asax.cs file to include the primary namespace so that there's no confusion for the app as to which area it should default to when executing. (as identified in Steve Sanderson's post).
Lastly, I've installed an iphone emulator and android emulators and the code that redirects is in my HomeController. I don't have anything specific yet for each device. I'm still trying to get the redirect to kick in properly.

When I run the site in the desktop browser (no mobile redirect) it runs fine. When I use the emulators (or try to direct the desktop browser to the mobile site) I get the following error. It sure seems obvious (MISSING CONTROLLER) but it's there. So what am I not seeing?
System.Web.HttpException: The controller for path '/Mobile' was not found or does not implement IController. at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
A second set of eyes would be grand! Thanks in advance for the assistance.
| Error during redirect to MVC Mobile Area using 51Degrees.mobi | CC BY-SA 2.5 | null | 2011-02-23T13:52:21.647 | 2011-02-23T16:27:00.713 | 2011-02-23T15:09:20.690 | 134,480 | 134,480 | [
"asp.net-mvc-2",
"mobile-website"
]
|
5,091,830 | 1 | 5,091,846 | null | 0 | 77 | I used [Command-Line Building](https://i.stack.imgur.com/W0CoD.jpg) and every time I run my application, a console also appears in the background. How should get rid of this? Please see image:

| Command-Line Building | CC BY-SA 2.5 | null | 2011-02-23T13:56:59.827 | 2011-02-23T13:59:15.067 | null | null | 396,335 | [
"c#",
"winforms"
]
|
5,091,941 | 1 | 5,092,732 | null | 0 | 636 | I am looking to populate a datatable with a MySQL stored procedure in Visual Studio. So I do the usual and add a TableAdapter to the DataSet and begin to fill in the details.
I create the connection string, which tests fine and returns all the stored procedures, then I go to populate by stored procedure. I click on the Select combobox and select the stored procedure I want to use for the population. Once I click on it the dialogs and datatable disappear and it goes back to the usual dataset screen.

What is happening and what can I do to stop it?! I have tested the stored procedure and it works as expected.
EDIT: Just tried other stored procedures and they are working fine...What could be going wrong?!
| Problem when selecting MySQL stored procedure to populate datatable in Visual Studio | CC BY-SA 2.5 | null | 2011-02-23T14:06:43.567 | 2011-02-23T15:10:44.967 | 2011-02-23T14:12:45.110 | 591,282 | 591,282 | [
".net",
"mysql",
"visual-studio",
"tableadapter"
]
|
5,092,068 | 1 | 5,094,315 | null | 2 | 79 | 
Lets say I have a 2 x 2 grid. They contain contents of different importance.
Cells (0,0) and (0,1) have important info.
Cells (1,0) and (1,1) have less important info.
When I resize my window, the dimensions of the grids change as well. How do I not show the non-important cells when the grids are beyond a threshold width.
I have considered some kind of value converter that binds visibility to the min-width, but is there a less hackish way to do this?
| Display certain contents depending on width of grid | CC BY-SA 2.5 | null | 2011-02-23T14:16:14.363 | 2011-02-23T17:13:00.617 | null | null | 504,310 | [
"c#",
"wpf"
]
|
5,092,126 | 1 | null | null | 5 | 1,201 | This picture illustrates my predicament:

All of the characters appear to be the same size, but the space between them is different when presented in a RichEdit control compared with when I use ExtTextOut.
I would like to present the characters the same as in the RichEdit control (ideally), in order to preserve wrap positions.
Can anyone tell me:
a)
b)
c)
d)
Perhaps I'm being optimistic, but if anyone has any hints to offer, I'd be very interested to hear.
Here's my text:
```
快的棕色狐狸跳在懶惰狗1 2 3 4 5 6 7 8 9 0
```
In order to view the effect by pasting these characters into a RichEdit control (eg. Wordpad), you may find you have to swipe them and set the font to 'Arial'.
The rich text that I obtain is:
It doesn't appear to contain a value for character 'pitch' which was my first thought.
| Display of Asian characters (with Unicode): Difference in character spacing when presented in a RichEdit control compared with using ExtTextOut | CC BY-SA 2.5 | 0 | 2011-02-23T14:22:37.650 | 2015-01-15T01:13:25.097 | 2011-02-25T00:25:27.647 | 531,179 | 449,295 | [
"windows",
"unicode",
"rtf",
"richedit",
"textout"
]
|
5,092,216 | 1 | 5,092,327 | null | 12 | 50,539 | I am using this code to make my form (FormBorderStyle=none) with rounded edges:
```
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect, // x-coordinate of upper-left corner
int nTopRect, // y-coordinate of upper-left corner
int nRightRect, // x-coordinate of lower-right corner
int nBottomRect, // y-coordinate of lower-right corner
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);
public Form1()
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20));
}
```
And this to set a custom border on the Paint event:
```
ControlPaint.DrawBorder(e.Graphics, this.ClientRectangle, Color.Black, 5, ButtonBorderStyle.Solid, Color.Black, 5, ButtonBorderStyle.Solid, Color.Black, 5, ButtonBorderStyle.Solid, Color.Black, 5, ButtonBorderStyle.Solid);
```
But see this .
The inside form rectangle doesn't have rounded edges.
How can I make the blue inside form rectangle to have rounded edge too so it wont look like the screenshot?
| C# Form with custom border and rounded edges | CC BY-SA 2.5 | 0 | 2011-02-23T14:29:54.497 | 2017-09-02T13:38:48.277 | null | null | 550,717 | [
"c#",
"winforms",
"rounded-corners",
"formborderstyle"
]
|
5,092,212 | 1 | 5,095,446 | null | 1 | 5,348 | I've seen lots of sources saying it is possible to to be able to (through a list of selectable images), but can't find any raw examples that does what I want. I've gotten my scroll view "working", but I am unsure how to go forward - hopefully someone can send me some guidance.
Within my cellForRowAtIndexPath, I create a cell, and add both a scrollView and pageControl as subviews.
```
UITableViewCell *cell = [self.challengeListView dequeueReusableCellWithIdentifier:SubmitChallengeCellIdentifier];
if(cell == nil){
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:SubmitChallengeCellIdentifier] autorelease];
cell.frame = CGRectMake(0, 0, 1000, 50);
}
scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, tv.frame.size.width, 50)];
[scrollView setContentSize:CGSizeMake(1000, 50)];
[[cell contentView] addSubview:scrollView];
pageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(0, 50, tv.frame.size.width, 50)];
[pageControl setNumberOfPages:4];
[[cell contentView] addSubview:pageControl];
```
I've attached a screenshot of what's being displayed

the bottom portion of the main view is my UITableView that contains the scrollView/pageControl (and it will scroll horizontally, as I can see the scrollerIndicator showing this), and I've got its method's set to the following:
```
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 1;
}
```
My Scroll view will indicate a "" and I am able to scroll back and forth, but obviously there's there. - preferably not a "hey this guy's done it somewhat similar, check out this link" but maybe more an explanation of how this functionality should be implemented correctly (E - it is my understanding Apple has made our lives easier in implementing this)
| UIScrollView and UIPageControl within UITableView | CC BY-SA 2.5 | 0 | 2011-02-23T14:29:50.130 | 2011-02-23T18:37:05.517 | null | null | 546,459 | [
"iphone",
"xcode",
"uitableview",
"uiscrollview",
"uipagecontrol"
]
|
5,092,274 | 1 | 5,105,294 | null | 3 | 2,751 | I need to create wcf service for sharepoint 2010. The idea to use Jquery ajax to communicate with this service. But all cals to service methods always fail.
The
I try to use and get message:
```
Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.
```
and error detais:
```
The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 227 bytes of the response were: 'A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - Either a required impersonation level was not provided, or the provided impersonation level is invalid.)'.
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ITV2WCFService.DoWork()
at TV2WCFServiceClient.DoWork()
```

But service [http://localhost/_vti_bin/site/TEMPSERVICE.svc/mex](http://localhost/_vti_bin/site/TEMPSERVICE.svc/mex) is avaliable and give me normal response.
Everything done according to article on msdn
[http://msdn.microsoft.com/en-us/library/ff521581.aspx](http://msdn.microsoft.com/en-us/library/ff521581.aspx)
Whats the problem and how to deal with it?
| Sharepoint 2010 problems with WCF service | CC BY-SA 2.5 | 0 | 2011-02-23T14:35:31.190 | 2011-02-24T13:30:19.650 | 2011-02-23T16:35:20.793 | 508,330 | 508,330 | [
"c#",
".net",
"wcf",
"visual-studio-2010",
"sharepoint-2010"
]
|
5,092,284 | 1 | 5,093,618 | null | 2 | 1,694 | I renamed a project in Eclipse via 'Refactor > Rename' as suggested in [this answer](https://stackoverflow.com/questions/3845913/easy-way-to-rename-a-project-in-android/3846417#3846417).
I now want to rename it again, but the Refactor menu has menu item now (Android > Extract Android String...) which is also greyed out!
I am using Eclipse 3.6.1 with the latest Android SDK 9.
Why is that and how to I restore this to normal?
After following Sankar Ganesh's suggestion (selecting a string), the Refactor menu appeared again. I then selected the Rename... menu item again and I received the following error message box:

This is much better than the previous situation, in which I had no idea why the Refactor menu had been disabled and what to do. Still, I don't understand why this is and what rules I should follow when using the Refactor function. I only wanted to rename a project... that's all. :)
I just tried the same exact operation again again (Refactor > Rename while the project is selected in Project Explorer) and it worked! (without issuing the message box shown above).
What's going on?
Must be a bug, because this is clearly .
| Android project Refactor greyed out | CC BY-SA 2.5 | 0 | 2011-02-23T14:36:29.710 | 2011-02-23T16:18:38.907 | 2017-05-23T12:01:09.563 | -1 | 418,055 | [
"android",
"eclipse",
"refactoring",
"eclipse-plugin"
]
|
5,092,468 | 1 | 5,094,120 | null | 0 | 389 | I've been running the same project on the same computer for months now in VS2010.
There have been no code changes to the class that contains the following code:
```
Private Event ValueChanged(ByVal sender As Object, ByVal e As EventArgs) _
Implements STI.Shared.UI.IEditField.ValueChanged
```
Recently, when I compile, I get an error that my class must implement event ValueChanged.
When I remove the underscore and bring the Implements piece to the same line, it compiles.
If I then undo checkout and revert it back to what the code was before, it compiles.
It's just very strange behavior and I'm wondering if anyone out there has experienced something like this.
| VB.NET won't compile because of underscore | CC BY-SA 2.5 | null | 2011-02-23T14:52:34.097 | 2011-02-25T15:20:41.173 | null | null | 250,385 | [
"vb.net",
"visual-studio-2010"
]
|
5,092,520 | 1 | 5,093,455 | null | 1 | 830 |
This is the distillation of the problem we are having...
1. We have two solution files. Both have a project reference to the same project, ProjA
2. ProjA has a reference to ProjX

We would like the ProjX reference to be a project reference in SolutionOne, but an assembly reference in SolutionTwo
How can this be done, since ProjA.csproj is the same file referenced by both solutions?
| Project reference in one .sln, and assembly reference in another | CC BY-SA 2.5 | 0 | 2011-02-23T14:55:52.360 | 2011-02-23T16:07:17.837 | null | null | 39,561 | [
"visual-studio",
"visual-studio-2008",
"projects-and-solutions"
]
|
5,092,967 | 1 | 5,093,219 | null | 1 | 632 | I would like to set a color to the most left of my UITableViewCell, BUT I want it to fall withing the bounds of the cell.
Because I use a UITableViewStyleGrouped UITableView I would like the color to have a round corner for the first and last cell. How can I do this?
I currently have the color in the table, but thats it. This is my code:
```
UIView *theView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, cell.frame.size.height)];
[theView setBackgroundColor:[UIColor purpleColor]];
[cell.contentView addSubview:theView];
[[cell textLabel] setText:@"Some row"];
```
This is the result:

Best regards,
Paul Peelen
| UITableViewCell left side color | CC BY-SA 2.5 | null | 2011-02-23T15:26:44.587 | 2011-02-23T16:43:10.727 | null | null | 406,677 | [
"ios",
"uitableview",
"ios4"
]
|
5,093,365 | 1 | 5,093,452 | null | -2 | 71 | 
When i try to create a button in fireworks its resolution sucks .. i thought all the fonts are vector graphics .. but can i do any think ?
| problem with the font resolution | CC BY-SA 2.5 | null | 2011-02-23T15:58:13.957 | 2011-02-23T16:06:37.380 | null | null | 410,693 | [
"photoshop",
"fireworks"
]
|
5,093,391 | 1 | null | null | 6 | 10,643 | I was wondering how can I create text stroke for UILabel ? is there any possible way ?

thank you ,
```
#import <Foundation/Foundation.h>
@interface CustomLabel : UILabel {
}
@end
#import "CustomLabel.h"
@implementation CustomLabel
- (void)drawTextInRect:(CGRect)rect {
CGSize shadowOffset = self.shadowOffset;
UIColor *textColor = self.textColor;
CGContextRef c = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(c, 22);
CGContextSetTextDrawingMode(c, kCGTextStroke);
self.textColor = [UIColor whiteColor];
[super drawTextInRect:rect];
CGContextSetTextDrawingMode(c, kCGTextFill);
self.textColor = textColor;
self.shadowOffset = CGSizeMake(0, 0);
[super drawTextInRect:rect];
self.shadowOffset = shadowOffset;
//works fine with no warning
}
```
now the question is how can i use this subclass with a IBOutlet label on different viewcontrollers . is it right :
```
label = [[CustomLabel alloc] initWithFrame:CGRectMake(0, 0, 190, 190)];
```
| uilabel with outline or stroke | CC BY-SA 2.5 | 0 | 2011-02-23T16:01:25.630 | 2016-08-18T21:17:45.580 | 2011-02-23T16:44:28.183 | 199,173 | 199,173 | [
"ios4",
"uilabel",
"iphone"
]
|
5,093,788 | 1 | null | null | 0 | 605 | I'm using a SlidingDrawer to show some selected Facebook contacts. When open, how can I make it scrollable to be able to see all the contacts if the total width of my SlidingDrawer's handle + content is greater than the width of my screen (eg if there are more than 6 contacts to be shown in the bottom image shown below)?
Thanks


| Scroll SlidingDrawer view in Android | CC BY-SA 2.5 | null | 2011-02-23T16:31:33.483 | 2011-02-23T17:20:12.533 | null | null | 326,849 | [
"android",
"scroll",
"slidingdrawer"
]
|
5,093,801 | 1 | 5,094,494 | null | 1 | 3,605 | I'm trying to get started with Jquery UI tabs and I'm running into an issue with the demo they have on their site. It runs fine for me on the site itself, but when I download the source and all the other files to run it on my machine, it initially renders correctly like this:

but when i click on any of the other tabs, they render like this:

Clicking the leftmost tab always makes things look correct, but clicking the other tabs cause the lines I have circled not to be rendered. It works fine for me in Firefox and Chrome.
Has anyone else seen something like this before?
I'd be really grateful for some advice.
Thanks,
-Mark
| JQuery UI Tabs Not Displaying Correctly - Internet Explorer | CC BY-SA 3.0 | 0 | 2011-02-23T16:32:24.003 | 2013-03-05T20:48:56.170 | 2013-03-05T20:48:56.170 | 17,966 | 630,422 | [
"javascript",
"internet-explorer",
"jquery-ui",
"jquery-ui-tabs"
]
|
5,094,033 | 1 | 5,111,560 | null | 3 | 681 | I'm wondering if its possible to load a website like the [twitter search results page](http://twitter.com/search?q=Bart+Simpson#search?q=Bart%20Simpson) using node.js with jsdom and still be able to detect any changes in the DOM after the initial render.


Thanks for your help.
| Monitoring DOM changes on the server side with node.js | CC BY-SA 2.5 | null | 2011-02-23T16:50:00.337 | 2011-03-11T00:29:15.930 | null | null | 231,178 | [
"javascript",
"node.js"
]
|
5,094,217 | 1 | 5,108,209 | null | 2 | 1,768 | I have a java application which splits a pdf into sections using itext, then stitches a selection of these up together again. The original pdf has many embedded fonts varying in type (all non-system fonts). When I stitch the pdf's up again, some of the embedded fonts are missing.
For example, this is a clipping from the original fonts list:

This is a clipping from the generated pdf font list:

I am using PdfWriter and PdfReader to copy the pages into the new document, with PdfContent and addTemplate().
| Preserving Embedded Fonts in iText | CC BY-SA 2.5 | null | 2011-02-23T17:05:08.043 | 2013-07-13T21:38:29.507 | null | null | 144,581 | [
"java",
"pdf",
"fonts",
"itext"
]
|
5,094,447 | 1 | 5,109,518 | null | 21 | 18,609 | I want to use XAML to style a WPF button to look like the "Mixer" and "Change date and time settings..." text of these Windows 7 Notification area flyouts.
Does a property of [SystemColors](http://msdn.microsoft.com/en-us/library/ms603159.aspx) define that color? Which?
```
<Setter Property="Foreground"
Value="{DynamicResource {x:Static SystemColors.????}}" />
```

| How do I use the correct Windows system colors? | CC BY-SA 2.5 | 0 | 2011-02-23T17:23:23.067 | 2022-02-14T21:17:26.520 | 2011-08-12T18:48:54.110 | 305,637 | 83 | [
"wpf",
"windows",
"xaml",
"styles"
]
|
5,094,523 | 1 | 5,094,629 | null | 0 | 1,929 | I tried using textview.setTranslationY(float) to change the y-coordinate of the textview but it does not seem to work. textview.setTop() seems to do the same function but the documentation says this method is meant to be called by the layout system and should not generally be called otherwise, because the property may be changed at any time by the layout.
I use textview.getTranslationY() to get the y-coordinate.
How can I set the y-coordinate of textview? If what I am doing above is wrong, kindly suggest an alternative way. Maybe there is another method to set y-coordinate which I have not found yet!
My situation: I have a textview whose height should change based on some value received. If I use textview.setHeight(int), the height increases from top to bottom. I want it to increase from bottom to top. So I change the y-coordinate of the textview every time I set it's height.
Cheers,
Madhu
Screen shot of my layout:

| Android: textView-set y-coordinate dynamically | CC BY-SA 2.5 | null | 2011-02-23T17:30:06.573 | 2011-02-23T21:02:00.903 | 2011-02-23T21:02:00.903 | 487,851 | 487,851 | [
"android",
"set",
"textview",
"coordinates",
"dynamic"
]
|
5,094,907 | 1 | 5,095,102 | null | 20 | 26,132 | How would I go about creating a `UITextField` like the one in this image?

It appears to be slightly larger, specifically in height.
| Custom UITextField | CC BY-SA 3.0 | 0 | 2011-02-23T17:59:12.437 | 2015-10-26T09:06:35.757 | 2015-10-26T09:06:35.757 | 2,725,435 | 298,051 | [
"iphone",
"uitextfield"
]
|
5,095,784 | 1 | 5,098,136 | null | 2 | 14,020 | I have WAMP installed and decided to use the default Apache 2.1.7 in the latest version of WAMP; the reason is my host server where my site is also uses 2.1.7. Previously, I was using Apache 2.2.11 in WAMP, because my last host also used that version.
The problem I have now is I seem to have some debugger on or something as when I get a PHP error it's shown like in the image below and the error is not logged to the PHP error log even though it's enabled, etc. in `php.ini`. When I switch back to an earlier Apache version, all errors are logged in the PHP error log.
So it must be Apache. Basically I want PHP to log errors to the PHP error log like it used to do. Why is this happening and how I can change it?
I don't mind the way the error is displayed as it helps anyway, because I can see it much better, but I still like it to log to the PHP error log as well.
Here's what a PHP error looks like since switching the Apache version in WAMP;
Here's the image:

| Why won't Apache 2.1.7 in WAMP log PHP errors to the PHP error log? | CC BY-SA 3.0 | 0 | 2011-02-23T19:06:16.290 | 2013-07-07T14:20:28.537 | 2013-07-07T14:16:53.790 | 63,550 | 439,232 | [
"php",
"apache"
]
|
5,096,030 | 1 | 5,097,054 | null | 1 | 372 | I've got a table with some factors that I need to incorporate into a Java program. At first I was thinking of hardcoding the number but it seems like a pain trying to create a data structure that will fit the factors. So I wanted to ask around and see if it would be better to implement this as reference data in a database, a flat file or in java. The number would change every six months and would be used for mathematical computations.
Thoughts?

| How to implement reference data Java/DB | CC BY-SA 2.5 | null | 2011-02-23T19:31:06.213 | 2011-02-23T21:01:38.780 | null | null | 116,156 | [
"java",
"database-design"
]
|
5,096,192 | 1 | null | null | 50 | 190,373 | Recently, I've taken up android development as a hobby and was looking to develop an application that can find and track a users position using Google Maps.
Once the application has a GPS lock, it can track their movements by drawing a route using an overlay class.
I've seen similar applications like Mytracks that are open source but they're too complex for me right now.
Ideally i'd love to create an application that looks like this

Here is my code below without the imports.
What I'm trying to do is create an array of geopoints.
Every time the location changes a new geopoint is created.
I then try to use a for loop to iterate through each geopoint and draw a path between them.
```
public class Tracking extends MapActivity implements LocationListener {
LocationManager locman;
LocationListener loclis;
Location Location;
private MapView map;
List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>();
private MapController controller;
String provider = LocationManager.GPS_PROVIDER;
double lat;
double lon;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.map);
initMapView();
initMyLocation();
locman = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
// locman.requestLocationUpdates(provider,60000, 100,loclis);
// Location = locman.getLastKnownLocation(provider);
}
/** Find and initialize the map view. */
private void initMapView() {
map = (MapView) findViewById(R.id.map);
controller = map.getController();
map.setSatellite(false);
map.setBuiltInZoomControls(true);
}
/** Find Current Position on Map. */
private void initMyLocation() {
final MyLocationOverlay overlay = new MyLocationOverlay(this, map);
overlay.enableMyLocation();
overlay.enableCompass(); // does not work in emulator
overlay.runOnFirstFix(new Runnable() {
public void run() {
// Zoom in to current location
controller.setZoom(24);
controller.animateTo(overlay.getMyLocation());
}
});
map.getOverlays().add(overlay);
}
@Override
public void onLocationChanged(Location location) {
if (Location != null) {
lat = Location.getLatitude();
lon = Location.getLongitude();
GeoPoint New_geopoint = new GeoPoint((int) (lat * 1e6),
(int) (lon * 1e6));
controller.animateTo(New_geopoint);
}
}
class MyOverlay extends Overlay {
public MyOverlay() {
}
public void draw(Canvas canvas, MapView mapv, boolean shadow) {
super.draw(canvas, mapv, shadow);
Projection projection = map.getProjection();
Path p = new Path();
for (int i = 0; i < geoPointsArray.size(); i++) {
if (i == geoPointsArray.size() - 1) {
break;
}
Point from = new Point();
Point to = new Point();
projection.toPixels(geoPointsArray.get(i), from);
projection.toPixels(geoPointsArray.get(i + 1), to);
p.moveTo(from.x, from.y);
p.lineTo(to.x, to.y);
}
Paint mPaint = new Paint();
mPaint.setStyle(Style.STROKE);
mPaint.setColor(0xFFFF0000);
mPaint.setAntiAlias(true);
canvas.drawPath(p, mPaint);
super.draw(canvas, map, shadow);
}
}
@Override
public void onProviderDisabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public void onProviderEnabled(String provider) {
// TODO Auto-generated method stub
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
// TODO Auto-generated method stub
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
```
The application runs fine without errors but there is no path drawn, the location dot just moves as i move.
Any help would be greatly appreciated
Thanks.
| Create an Android GPS tracking application | CC BY-SA 4.0 | 0 | 2011-02-23T19:43:38.920 | 2020-01-10T03:38:08.903 | 2020-01-10T03:38:08.903 | 1,797,622 | 630,978 | [
"android",
"dictionary",
"gps",
"tracking"
]
|
5,096,314 | 1 | 5,098,247 | null | 1 | 176 | 
We have this map, we need to use PHP to take all the shades of blue out, as well as the percentages. The problem is, is that some of the percentages are in the same color as the borders, and other times, the percentages go into the border. We need to use this image.
| Cleaning pixels from a map | CC BY-SA 2.5 | 0 | 2011-02-23T19:54:35.040 | 2011-02-24T16:14:45.193 | 2011-02-23T22:51:39.860 | 353,410 | 320,754 | [
"php",
"algorithm",
"image",
"image-processing"
]
|
5,096,446 | 1 | null | null | -2 | 656 | Although the data from mysql is properly indexed using dataimport handler but while searching through solr admin it shows zero result, please suggest whats the problem would be
right side display that indexing have been done completely, but not displaying in search results.
and when I used to search "programing" it display
| Apache Solr search is not displaying indexed result | CC BY-SA 2.5 | null | 2011-02-23T20:07:51.530 | 2011-02-24T07:30:19.927 | 2011-02-24T07:30:19.927 | 299,846 | 299,846 | [
"java",
"apache",
"lucene",
"solr"
]
|
5,096,537 | 1 | 5,097,059 | null | 8 | 6,808 | I have a RelativeLayout that has a 9-patch background image. The image is a simple speech bubble with a perfectly centered "arrow" at the bottom middle. 
The RelativeLayout is inflated and placed on a MapView. Using the emulator, the speech bubble can be easily pointed to a location and will expand to its contents (text, an image, or both). When I run my app on a phone however, the 9-patch doesn't stretch properly. The "arrow" for the speech bubble will be offset to the left by a very noticeable amount.
I primarily test on a Nexus S, but also a Samsung Captivate and Nexus One. Targeting SDK 7. Tested emulators for SDK 7+. Only hardware devices seem to have this problem.
```
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:id="@+id/BubbleLayout"
android:background="@drawable/bubble"
android:layout_width="wrap_content"
android:gravity="center_horizontal">
<TextView android:layout_height="wrap_content"
android:id="@+id/date"
android:layout_width="wrap_content"
android:maxWidth="196dp"></TextView>
<TextView android:layout_below="@+id/date"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:maxWidth="196dp"
android:id="@+id/summary"></TextView>
</RelativeLayout>
```
| Why do 9-patch graphics size correctly in the emulator but not on a phone? | CC BY-SA 2.5 | 0 | 2011-02-23T20:14:35.363 | 2011-02-23T21:01:55.500 | null | null | 175,307 | [
"android",
"android-layout",
"android-mapview",
"layoutparams"
]
|
5,097,157 | 1 | 5,097,549 | null | 0 | 112 | Consider the A* algorithm.
In Google it is possible to find a good pseudo-code:
```
function A*(start,goal)
closedset := the empty set // The set of nodes already evaluated.
openset := set containing the initial node // The set of tentative nodes to be evaluated.
came_from := the empty map // The map of navigated nodes.
g_score[start] := 0 // Distance from start along optimal path.
h_score[start] := heuristic_estimate_of_distance(start, goal)
f_score[start] := h_score[start] // Estimated total distance from start to goal through y.
while openset is not empty
x := the node in openset having the lowest f_score[] value
if x = goal
return reconstruct_path(came_from, came_from[goal])
remove x from openset
add x to closedset
foreach y in neighbor_nodes(x)
if y in closedset
continue
tentative_g_score := g_score[x] + dist_between(x,y)
if y not in openset
add y to openset
tentative_is_better := true
elseif tentative_g_score < g_score[y]
tentative_is_better := true
else
tentative_is_better := false
if tentative_is_better = true
came_from[y] := x
g_score[y] := tentative_g_score
h_score[y] := heuristic_estimate_of_distance(y, goal)
f_score[y] := g_score[y] + h_score[y]
Update(closedset,y)
Update(openset,y)
return failure
function reconstruct_path(came_from, current_node)
if came_from[current_node] is set
p = reconstruct_path(came_from, came_from[current_node])
return (p + current_node)
else
return current_node
```
Well there is one thing I do not understand:
Consider to have the situation in the picture:

How is A* able to change from a->b->c to a->d... ???
Well I mean, A* starts from a node and navigates through nodes. At a certain point a node have more than one neighbour, well, A* is able to follow a path generated by a neighbour, but at a certain point it is able to switch... and come back on its steps starting from a previou node and taking a different road EVEN if the abandoned path did't cross that one...
In the code, what's the condition that enables this envirinment?
| How's A* able to abandon a non efficient path following a better one? | CC BY-SA 2.5 | null | 2011-02-23T21:10:57.127 | 2011-02-23T21:43:14.830 | 2011-02-23T21:34:00.500 | 519,836 | 519,836 | [
"graph-theory",
"path-finding",
"graph-algorithm",
"minimum-spanning-tree"
]
|
5,097,368 | 1 | 5,097,480 | null | 2 | 2,137 | I have a JTable, I want to populate this JTable from a database.
The first mission is done.
The second mission is how to add JButton in this JTable, I have acolumn that I must put a button in, the number of buttons change with the number of rows.
How can I do??
This is an example in the image:

Thanks in advance.
Best regards.
Ali
| Add JButtons to JTable cell + DB | CC BY-SA 4.0 | 0 | 2011-02-23T21:26:46.877 | 2021-04-10T17:37:07.427 | 2021-04-10T17:37:07.427 | 604,156 | 604,156 | [
"java",
"swing",
"jtable",
"jbutton"
]
|
5,097,637 | 1 | null | null | 7 | 2,672 | I am trying to plot a function in that is defined over the unit simplex. To take a random example, suppose I want to plot sin(x1*x2*x3) over all x1, x2, x3 such that x1, x2, x3 >= 0 and x1 + x2 + x3 = 1.
Is there a neat way of doing so, other than the obvious way of writing something like
```
Plot3D[If[x+y<=1,Sin[x y(1-x-y)]],{x,0,1},{y,0,1}]
```

?
What I want, ideally, is a way of plotting over the simplex. I found the website [http://octavia.zoology.washington.edu/Mathematica/](http://octavia.zoology.washington.edu/Mathematica/) which has an old package, but it doesn't work on my up-to-date version of .
| How can I plot a function defined on the unit simplex in Mathematica? | CC BY-SA 3.0 | 0 | 2011-02-23T21:52:37.687 | 2019-08-09T01:30:55.730 | 2012-01-03T21:31:46.773 | 615,464 | 631,177 | [
"wolfram-mathematica",
"plot"
]
|
5,097,860 | 1 | 5,970,738 | null | 1 | 68 | I'm just working on a wordpress theme and suddenly find out this problem with the link function in the body post section. when it click the windows is out of margins cause the dropdown's width is huge:

Does anybody know how to fix this window????
| Advanced link category functionality Window fix Problem | CC BY-SA 2.5 | null | 2011-02-23T22:11:59.753 | 2011-05-11T21:18:34.383 | 2011-02-24T04:54:19.397 | 366,904 | 607,477 | [
"wordpress",
"tinymce"
]
|
5,098,274 | 1 | 5,098,329 | null | 0 | 4,697 | I am using css to create a "gantt-chart" style progress bar.
It consists of an empty progress bar, inside which is a green bar which represents expected progress. On top of this should be another (thinner) black bar which represents actual progress.
The "actual" and "expected" bars are independent - i.e. Actual could be more or less than expected, so I can't just nest the Actual bar inside the div for Expected.
I want to have a number of these little progress bars, in a GridView or Repeater, so I can't use position absolute.
How can I get the z-index to work so the Actual bar sits "on top" of the actual bar?
The CSS I have is:
```
div.progressBarEmpty
{
height:11px;
background-color:Silver;
border: 1px solid black;
font-size: 0.1em
}
div.progressBarGreen
{
position:absolute;
top:0;left:0;
height:11px;
background-color:#00ff33;
border-right: 1px solid black;
font-size: 0.1em
z-index:0;
}
div.progressBarActual
{
position:absolute;
top:3;left:0;
height:5px;
background-color:black;
border-style: none;
font-size: 0.1em
z-index:1;
}
```
And the html:
```
<div class="progressBarEmpty" style="width:100px">
<div class="progressBarGreen" style="width:40%" > </div>
<div class="progressBarActual" style="width:80%"> </div>
</div>
```
(Just to be clear, the "progressBarActual" div should be 80% of the width of the "progressBarEmpty" div, not the "progressBarGreen")
# EDIT
Here's a mockup of what I'm after.

| CSS z-Index with position: relative | CC BY-SA 2.5 | null | 2011-02-23T22:52:06.810 | 2011-02-23T23:09:20.237 | 2011-02-23T23:09:20.237 | 405,015 | 375,655 | [
"html",
"css",
"z-index"
]
|
5,098,286 | 1 | 5,098,315 | null | 0 | 145 | I downloaded some example code from [github](https://github.com/Mallioch/Evolving-Ajax-And-ASPNETMVC-Practices) and saw that the BookRepository.cs class was grouped beneath the IBookRepository.cs interface. Maybe this is a newbie question, but how do they do that?

| How do I group implementations under interfaces in Visual Studio? | CC BY-SA 2.5 | null | 2011-02-23T22:53:06.510 | 2011-02-23T23:02:17.133 | null | null | 592,965 | [
"visual-studio",
"asp.net-mvc-3"
]
|
5,099,152 | 1 | null | null | 6 | 2,086 | I started out learning DVCS with bazaar due to its newbie-friendliness, and have recently moved to git for my daily work due to its speed. The one thing I miss from bazaar is the `bzr qlog` dialog, that lets you hide or show lines of development by clicking on the plus sign, as shown here.

I would like to find something similar for git. I've checked the GUIs listed [here](https://stackoverflow.com/questions/3346929/git-gui-that-shows-branches-well) and [here](https://stackoverflow.com/questions/1516720/git-gui-client-for-linux), and I think I managed to get all the relevant ones from [here](https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools#Graphical_Interfaces). Is anyone aware of an implementation with hideable branches? Note, I don't mean being able to specify all branches versus a single branch, which almost all the GUIs can do. I mean being able to hide or show the ^2 side of any merge commit within a single branch.
I prefer open source and cross platform, but will accept even something commercial and/or windows only. I suppose I could use `bzr-git` to continue using bazaar just for viewing history, but that probably creates more usability problems than it solves, not to mention the speed issues that prompted the switch in the first place.
That being said, if there are no available implementations of this feature, is that because of some technical difference between git and bazaar that makes it infeasible? Or has it just not occurred to anyone working on git GUIs yet because of typical workflows or other non-functional reasons? If there are no insurmountable technical reasons, I might take the time to make that particular contribution myself.
| Git history visualizer GUI that can hide branches? | CC BY-SA 2.5 | 0 | 2011-02-24T00:44:15.740 | 2020-07-30T13:27:13.660 | 2017-05-23T12:07:07.397 | -1 | 389,146 | [
"git",
"user-interface",
"bazaar"
]
|
5,099,221 | 1 | 5,099,271 | null | 3 | 9,080 | I am unable to create Event Handler when i double click on button or anything this messagebox appears

how ever when i add event handler manually it works.any idea what might have i screwed up
thanks
| Unable to create Event Handler WPF | CC BY-SA 2.5 | null | 2011-02-24T00:55:13.777 | 2016-06-07T05:31:08.407 | null | null | 430,167 | [
"wpf",
"visual-studio-2010",
"event-handling"
]
|
5,099,552 | 1 | 5,103,899 | null | 0 | 2,052 | I'm trying to track the position of a robot from an overhead webcam. However, as I don't have much access to the robot or the environment, so I have been working with snapshots from the webcam.
The robot has 5 bright LEDs positioned strategically which are a different enough color from the robot and the environment so as to easily isolate.
I have been able to do just that using EmguCV, resulting in a binary image like the one below. My question is now, how to I get the positions of the five blobs and use those positions to determine the position and orientation of the robot?

I have been experimenting with the `Emgu.CV.VideoSurveillance.BlobTrackerAuto` class, but it stubbornly refuses to detect the blobs in the above image. Being a bit of a newbie when it comes to any of this, I'm not sure what I could be doing wrong.
So what would be the best method of obtaining the positions of the blobs in the above image?
| How do I detect small blobs using EmguCV? | CC BY-SA 2.5 | null | 2011-02-24T01:56:13.180 | 2013-12-31T04:29:48.960 | 2017-02-08T14:31:37.857 | -1 | 304,786 | [
"opencv",
"tracking",
"emgucv",
"blobs"
]
|
5,099,578 | 1 | null | null | 1 | 1,375 | My code to calculate the minimum translation vector using the Separating Axis Theorem works perfectly well, except when one of the polygons is completely contained by another polygon. I have scoured the internet for the solution to this problem and everyone just seems to ignore it ( [http://www.codezealot.org/archives/55#sat-contain](http://www.codezealot.org/archives/55#sat-contain) talks about this, but doesn't give a full solution...)
The pictures below is a screenshot from my program illustrating the problem. The translucent blue triangle is the position of the rectangle before the MTV is applied, and the other triangle is with the MTV applied.

| Separating Axis Theorem - Containment and the minimum translation vector | CC BY-SA 2.5 | 0 | 2011-02-24T01:59:34.463 | 2011-02-24T02:21:54.457 | null | null | 580,828 | [
"algorithm",
"collision-detection"
]
|
5,099,567 | 1 | 8,322,983 | null | 3 | 1,912 | I have routing set up as follows:
```
void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("", "Home", "~/Default.aspx");
......
}
```
I'm implementing breadcrumbs using a SiteMapPath control:
```
<asp:SiteMapPath ID="SiteMapPath1" CssClass="breadCrumbs" runat="server">
</asp:SiteMapPath>
```
Web.sitemap is set up as follows:
```
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Home" title="Home" description="Home">
<siteMapNode url="~/About" title="About" description="About">
<siteMapNode url="~/History" title="History"
description="History" />
</siteMapNode>
</siteMapNode>
</siteMap>
```
My problem is that when I navigate to mysite.com instead of mysite.com/default.aspx, the Home breadcrumb node does not appear. What am I missing?
I managed to get the "Home" node to display by updating Web.sitemap as follows:
```
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Home" title="Home" description="Home">
<siteMapNode url="~/Default.aspx" title="" description="" />
<siteMapNode url="~/About" title="About" description="About">
<siteMapNode url="~/History" title="History"
description="History" />
</siteMapNode>
</siteMapNode>
</siteMap>
```
The only remaining problem is that the path separator is still displaying on home page for mysite.com
Is there a way to programatically render the separator invisible for the home page? The SiteMapPath control itself is in a master page.

| Breadcrumbs SiteMapPath and SEO-Friendly Routing | CC BY-SA 2.5 | 0 | 2011-02-24T01:58:34.460 | 2011-11-30T08:26:25.390 | 2011-02-24T11:30:33.080 | 31,444 | 31,444 | [
"asp.net",
"routes",
"breadcrumbs",
"sitemappath"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.