Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,273,460 | 1 | 5,023,153 | null | 0 | 996 | How do you sort the class, element, or element id's in the css outline window? Is this possible? I've used the NetBeans IDE recently and I noticed that feature was present by default:

Here is what I see in visual studio 2010

| is there a way to sort css class names, ids, and elements in the css navigator window in visual studio 2010 | CC BY-SA 2.5 | 0 | 2010-11-25T03:17:51.317 | 2011-02-17T03:40:58.380 | 2011-02-17T03:40:58.380 | 185,961 | 185,961 | [
"asp.net",
"css",
"visual-studio-2010"
] |
4,273,484 | 1 | 4,274,159 | null | 0 | 1,408 | Briefly described, I have 2 tables that have 'equivalent' rows in each other. The equivalencies are maintained in a 3rd Mapping table (which maps ID A to ID B). In a view I want to create a consolidated view that shows:
- - -
It's easier to explain graphically...
I have the following scenario (shown in picture linked below):
[Current Scenario](https://i.stack.imgur.com/OyIz4.png)
I'm sure this is much simpler than it seems - I've been chewing on this for a little while and can't get it workable.
| Consolidate 2 tables via a mapping table - Full Joins? | CC BY-SA 2.5 | 0 | 2010-11-25T03:22:21.153 | 2010-11-25T06:00:30.553 | 2010-11-25T04:26:37.920 | 372,871 | 125,430 | [
"sql",
"teradata",
"multiple-tables"
] |
4,273,509 | 1 | 4,273,585 | null | 0 | 46 | I just recently found out how to add an icon to a win32 project after I tried it out the base icon on my application worked fine but when I open the application the actual 16x16 icon in the top left corner is a question mark in a bubble
the odd thing is when I accidently forgot to put -mwindows in my compile code the cmd window had the icon I intentenally wanted for my window
does this make sense
heres a bit of code
```
wc.hIcon = LoadIcon(NULL, MAKEINTRESOURCE(THEICON));
```
and
```
wc.hIconSm = LoadIcon(NULL, MAKEINTRESOURCE(THEICON));
```
maybe a visual aid will help
P.S. If any one is felling generous I don't have the privilege to create new tags but can someone add 'icon'
| icon working as base weird icon appearing inside window | CC BY-SA 2.5 | null | 2010-11-25T03:28:01.570 | 2010-11-25T03:46:59.220 | null | null | null | [
"c++",
"winapi",
"mingw"
] |
4,273,525 | 1 | 4,273,546 | null | 2 | 110 | So I have a `<div>`. I would like to turn the css style `overflow:visible` on all content that pass through the top of the `<div>` and turn `overflow:hidden` on all content that is below the div. Is this possible?

| CSS Overflow Property Question | CC BY-SA 2.5 | null | 2010-11-25T03:32:49.673 | 2010-11-25T04:32:08.727 | 2010-11-25T04:04:37.460 | 463,065 | 404,760 | [
"html",
"css"
] |
4,274,441 | 1 | 4,274,491 | null | 0 | 2,384 | I have a report choosing start date and end date.
I tested at the office and it is working fine.
When it is installed at the user's place, the following error pops up.

I wonder why is that?
I bring back the database and run at the office.
Still working fine.
| system argument out of range exception | CC BY-SA 2.5 | null | 2010-11-25T06:54:33.527 | 2010-11-25T07:28:56.380 | null | null | 398,909 | [
"c#",
"crystal-reports"
] |
4,274,458 | 1 | 4,274,498 | null | 3 | 5,956 | I have set my `ListBox.ItemTemplate` to something like below
```
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Margin="10">
<TextBlock Text="{Binding Args}" />
<ProgressBar Value="{Binding Progress}" Height="10" />
<TextBlock Text="{Binding Status}" />
<TextBlock Text="{Binding Result}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
```
The result is

How can I make the `StackPanel` fill the entire width of the `ListBox`?
| WPF ListBox ItemTemplate: How to make contents fill available space? | CC BY-SA 2.5 | null | 2010-11-25T06:57:52.903 | 2010-11-25T07:09:11.073 | null | null | 292,291 | [
"wpf",
"listbox",
"itemtemplate"
] |
4,274,543 | 1 | 4,274,565 | null | 0 | 34 | i have seen people using these kind of images then positioning them so that they are single buttons, you know what i mean
 
- -
| PNG\Images - Positioning | CC BY-SA 2.5 | null | 2010-11-25T07:18:16.203 | 2012-04-05T15:22:20.557 | 2012-04-05T15:22:20.557 | 50,776 | 158,455 | [
"language-agnostic"
] |
4,274,831 | 1 | 4,274,844 | null | 0 | 554 | I have a ASP.NET web application, when I click menu "report", it will download an microsoft office excel template from server, and when the excel file opened, there is an "retrieve data" button, by clicking this button, excel with vba script will download the data from webservice.
I'm sure nothing wrong about vba script on excel template.
Now, I have development server, let we call it "server A" with Win server 2k3. And also I have a local development environment, with windows xp service pack 2. let we call it "local server B"
when I access my web application on server A from my local PC (local server B), and click "report" button, an excel file will be downloaded. And then I click button "Retrieve data" on excel, an error happen :

I cannot retrieve data from server.
But if I use remote desktop, and connect to server A, and I access my application (in server A) in browser in server A locally..as I told above, the data was retrieved successfully.
I tried another plan, I try to access my application in local server (local server B) from a web broser in server A, and data was retrieved successfully.
Any idea about the fvcking error ? is it about IIS configuration ?
I need your helps, guys,
thanks,
regards,
| Error retrieving data in Excel | CC BY-SA 2.5 | null | 2010-11-25T08:01:57.000 | 2010-11-25T08:04:50.510 | null | null | 454,786 | [
"web-services",
"excel",
"iis",
"vba"
] |
4,275,432 | 1 | 4,275,605 | null | 0 | 360 | I write the following code on my main form to show the help file when i click on F1. This works fine but i am getting it as maximized i don't want this and also only after selecting the contents on the opened one i am able to see the contents by default i am unable to view
My code is as follows
```
private void frmMain_HelpRequested(object sender, HelpEventArgs hlpevent)
{
helpProvider1.SetShowHelp(this, true);
}
```

| Need guidance regarding Helpprovider | CC BY-SA 2.5 | null | 2010-11-25T09:21:53.933 | 2010-11-25T09:44:05.867 | 2010-11-25T09:30:30.347 | 388,388 | 388,388 | [
"c#",
"winforms"
] |
4,275,436 | 1 | 4,276,058 | null | 5 | 1,843 | The [MSDN Docs](http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.dowork.aspx) says
> If the operation raises an exception that your code does not handle, the BackgroundWorker catches the exception and passes it into the RunWorkerCompleted event handler, where it is exposed as the Error property of System.ComponentModel.RunWorkerCompletedEventArgs
But when I tried
```
_workers[i].DoWork += (s, args) =>
{
throw new Exception("Error!");
};
```
I get Exception Unhandled error ... The code doesn't seem to go to `RunWorkerCompleted`. How are errors supposed to be handled?
## UPDATE
I have setup simple handlers
```
_workers[i].DoWork += (s, args) =>
{
throw new Exception("Error!");
}
...
_workers[i].RunWorkerCompleted += (s, args) =>
{
if (args.Error != null) {
string dummy = args.Error.Message;
}
...
};
```
The code never leaves `DoWork`

| BackgroundWorker & Exceptions | CC BY-SA 2.5 | null | 2010-11-25T09:22:13.877 | 2012-02-29T04:49:28.493 | 2010-11-25T09:43:27.163 | 292,291 | 292,291 | [
"c#",
"exception",
"backgroundworker"
] |
4,275,724 | 1 | null | null | 0 | 1,396 | i wont to add a new Link on /wp-admin/edit.php by using a plugin.
I wont to have on every post a Link to a page of my plugin and passing the postid
any idea to do this?

thx
| Add new Button to a page in Wordpress | CC BY-SA 2.5 | null | 2010-11-25T09:54:03.367 | 2010-11-25T10:31:52.003 | 2010-11-25T10:31:52.003 | 290,326 | 290,326 | [
"wordpress"
] |
4,275,727 | 1 | 4,275,876 | null | 0 | 79 | I am trying to learn about ways to layout my data from a database using ASP.NET and C#
I can layout my data without any problem in rows using things like the GridView control, as the below image illustrates.

However I want to layout all of the information that would normally be in 1 row, in 1 cell.
So for example, each row would have 3 cells, each cell containing all of the information from 1 database row, as the image below illustrates.

Is there any way to do this with the existing ASP.NET controls, for example with a Gridview, or do I have to just build the table myself?
Any help would be greatly appreciated.
| Laying out data with the ASP.NET data controls | CC BY-SA 2.5 | null | 2010-11-25T09:54:37.417 | 2017-01-17T18:24:44.200 | 2017-01-17T18:24:44.200 | 4,370,109 | 467,732 | [
"asp.net",
".net",
"database",
"tablelayout"
] |
4,275,741 | 1 | 4,887,138 | null | 1 | 5,404 | I'm using an `UpdatePanel` to swap the `ActiveView` of a `MultiView`.
In IE6, 7 and 8 and Chrome 7 I get a JavaScript error when the UpdatePanel returns. In Firefox 3.6.1 there is no error reported (in the error console or in Firebug).
The error is on line 3621 of ScriptResource.axd
```
function Sys$_ScriptLoader$_loadScriptsInternal() {
var session = this._currentSession;
if (session.scriptsToLoad && session.scriptsToLoad.length > 0) {
var nextScript = Array.dequeue(session.scriptsToLoad);
var scriptElement = this._createScriptElement(nextScript);
if (scriptElement.text && Sys.Browser.agent === Sys.Browser.Safari) {
scriptElement.innerHTML = scriptElement.text;
delete scriptElement.text;
}
if (typeof(nextScript.src) === "string") {
this._currentTask = new Sys._ScriptLoaderTask(scriptElement, this._scriptLoadedDelegate);
this._currentTask.execute();
}
else {
var headElements = document.getElementsByTagName('head');
if (headElements.length === 0) {
throw new Error.invalidOperation(Sys.Res.scriptLoadFailedNoHead);
}
else {
line 3621: headElements[0].appendChild(scriptElement);
}
Sys._ScriptLoader._clearScript(scriptElement);
this._loadScriptsInternal();
}
}
else {
this._stopSession();
var callback = session.allScriptsLoadedCallback;
if(callback) {
callback(this);
}
this._nextSession();
}
}
```

Chrome's Developer tools show that `headElements` is a `NodeList` with one element and that `scriptElement` is an `HTMLScriptElement`

What could be the cause of this error? Why is it only apparent in IE and Chrome, and not Firefox?
| JavaScript error when using ASP.NET UpdatePanel | CC BY-SA 2.5 | null | 2010-11-25T09:55:48.500 | 2018-03-29T13:38:00.050 | null | null | 1,741,868 | [
"asp.net",
"asp.net-ajax",
"updatepanel",
"asp.net-3.5"
] |
4,276,056 | 1 | 4,276,181 | null | 1 | 755 | I need to add cancel button in numeric keyboard. How to customize the following keyboard? When I click by cancel button, the keyboard will be hide.

| Customize numeric keyboard in iPhone | CC BY-SA 3.0 | 0 | 2010-11-25T10:33:01.330 | 2017-09-05T21:05:51.797 | 2017-09-05T21:05:51.797 | 472,495 | 409,571 | [
"iphone",
"iphone-softkeyboard"
] |
4,276,044 | 1 | 4,276,133 | null | 7 | 4,543 | I am trying to automate a website using WatIN IE.
As the website bans the ip after few request .So I am setting a bool ipbanned =true when ip gets bannned. In that case and i wish to change the IP. The SetProxy method successfully changes the ip adress with port.
but on next request I am getting this screen :-

Note: - the first red strip shows the ip address and the second one shows the server name
How should I set the username and password in this dialog box from within the program, so that user do not get to see this box and it is set correctly
Below is the code snippet I am using:-
```
private void Start_Thread()
{
Thread pop = new Thread(populate);
pop.SetApartmentState(ApartmentState.STA);
pop.Start();
}
bool ipbanned=false;
private void populate()
{
if(ipbanned)
SetProxy(proxies[0]);
///I wish to handle the dialog box here.
WatiN.Core.Settings.MakeNewIeInstanceVisible = false;
WatiN.Core.Settings.Instance.AutoMoveMousePointerToTopLeft = false;
using (IE browser = new IE(URLs.mainurl))
{
///code
}
}
private void SetProxy(string proxy)
{
//code which successfully changes the ip address.
}
```
Any help will be deeply appreciated.
Thank You :)
| How to handle Windows Security alert dialog box using Watin IE | CC BY-SA 2.5 | 0 | 2010-11-25T10:30:57.837 | 2013-08-20T21:44:27.047 | null | null | 418,281 | [
"c#",
".net",
"proxy",
"dialog",
"watin"
] |
4,276,168 | 1 | 4,276,221 | null | 0 | 42 | The only difference I can think between a project that WAS working to now this new project that's NOT working is the fact that one may have been a normal MVC 2 project whereas this new one is an Empty MVC 2 project.
I'm unaware of the differences other than some helper files... nevertheless, I get this error and I'm at a loss as to what causes it.

| ASP.NET MVC 2: Odd Error | CC BY-SA 2.5 | null | 2010-11-25T10:47:52.370 | 2010-11-25T19:52:46.503 | 2010-11-25T19:52:46.503 | 337,806 | 337,806 | [
"linq-to-sql",
"asp.net-mvc-2"
] |
4,276,196 | 1 | 4,279,268 | null | 0 | 953 | I am trying to install my program via ClickOnce on a clients PC - it has Win XP with .Net 2.0 runtime. It comes up with a problem during installation - saying that something went wrong during installation see below:

I looked at the event viewer and I saw the following:
[http://www.download.windowsupdate.com/msdownloadupdate/v3/static/trustdr/en/authrootstl.cab](http://www.download.windowsupdate.com/msdownloadupdate/v3/static/trustdr/en/authrootstl.cab)
I'm not sure what's going on here but I'm guessing it's something to do with the digitally signed key in FC.MrsCore that "encountered a problem" and something to with certificates no doubt. In any case can anyone shed any light on what is going on here and how I can sort it.
I have installed this program on other PC's fine it's just this one PC that seems to be causing me some problems.
| Problem with installing program on PC with ClickOnce | CC BY-SA 2.5 | 0 | 2010-11-25T10:51:51.330 | 2010-11-25T18:52:46.967 | 2010-11-25T11:16:49.173 | 5,175 | 5,175 | [
"clickonce"
] |
4,276,210 | 1 | 4,276,302 | null | 0 | 300 | i had to reset my computer to factory settings yesterday and reinstall visual studio now before the clean start when i created a mvc2 application everything appeared correct but now i get a parser error when opening with iis7
and i set the application pool to asp.net v4.0
i would be able to fix this if what was in the window was actually visible in the file but its not so how can i fix it if i cant see it im using iis7 and visual studio 2010 ultimate
here are some screen shots
the browser error

and the global asax it refers to

according to the net it should automatically be migrated with iis7
so whats the problem here?
| visual studio iis7 parser error? | CC BY-SA 2.5 | null | 2010-11-25T10:53:06.363 | 2010-11-25T11:03:34.183 | null | null | 474,691 | [
"visual-studio",
"iis"
] |
4,276,224 | 1 | 4,286,175 | null | 0 | 256 | why do I get the "-1" string displayed below, even though I submit an underscore "_" to indicate missing data value here?
[My bar chart - please click to see the URL parameters](http://chart.apis.google.com/chart?chs=700x280&cht=bvo&chco=3399FF,CCCCFF&chd=t:_,_,_,-2064|3927,6133,8053,2802&chxl=0:|2010-44|2010-45|2010-46|2010-47&chxt=x,y&chxs=0,006633,12,0,_,000000&chxr=1,-2064,8053&chds=-2064,8053&chbh=140,10,0&chm=N,,0,,12|N,,1,,12)

Is this a bug in Google Charts?
I suspect they use -1 internally to indicate NULL values, but because I use it becomes visible. They should use a MIN-1 value instead...
Thank you!
Alex
| Google bar chart: getting -1 for underscore data values | CC BY-SA 2.5 | null | 2010-11-25T10:54:40.330 | 2010-11-26T14:40:11.487 | 2010-11-25T20:45:30.217 | 165,071 | 165,071 | [
"google-visualization"
] |
4,276,325 | 1 | 4,276,717 | null | 2 | 19,211 | I want a table to have fixed width but dynamic height because content may be of various length. Here is an example:

I have fixed width but the content is overlapping. What I am doing wrong? Here is my code:
```
<table width="60%" align='center' cellpadding='2'
cellspacing='2' border='2' style='table-layout:fixed'>
<thead>
<tr>
<th>#</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
```
And my css:
```
table{
font-size:12px;
}
table td{
padding:5px; height:auto;
background:#f6f6f6;
}
table thead tr th{
background:#d7dbe2;
}
```
Any ideas how to make the height dynamic?
| Create HTML table with fixed width columns with CSS | CC BY-SA 2.5 | 0 | 2010-11-25T11:07:11.767 | 2017-06-14T19:23:55.443 | 2017-06-14T19:23:55.443 | 4,370,109 | 401,025 | [
"html",
"css",
"html-table"
] |
4,276,535 | 1 | 4,277,209 | null | 5 | 4,218 | If I'm not really fussy about the exact tone etc of the dimmed image, is there a quick and dirty way to draw an NSImage slightly dimmed, like this? I've searched online and can't really find what I'm looking for (but I'm not very good when it comes to understanding graphics and the correct technical terms).


I'm actually dimming icons for the same use-case as Xcode dimming icons like above (i.e. document has unsaved changes).
| Easiest way to draw an NSImage dimmed out (like a disabled view) | CC BY-SA 2.5 | 0 | 2010-11-25T11:31:45.390 | 2020-04-14T17:14:32.620 | null | null | 322,122 | [
"objective-c",
"cocoa",
"macos",
"nsimage"
] |
4,276,577 | 1 | null | null | 4 | 2,529 | for a 3d imaging software i am coding:
I need to define an ellipsoid E, which can have any radii, centers and rotations in space

the user interface allows the user to control 3 ellipses, which are "slices" of the ellipsoid (red,green,blue in the image) ,and are parallel (by definition) to the main Cartesian planes (x-y, y-z.
x-z)
these 3 ellipses are part of, and define, the whole ellipsoid

each slice can be dragged, resized or rotated in space and
each slice is fully defined: it's center's 3d position in space, it's 2 radiuses, it's distance from the axis planes.
each change should, obviously, affect the parameters of the ellipsoid E, and the other 2 derived ellipses.
i need the equation to re-calculate ellipsoid E based on the changes made to a slice
(The preferred type of equation for the ellipsoid should make it easy to derive the X-Y ellipse cuts (variable z))
any ideas?
thanx in advance
Saar
| 3d imaging: defining an ellipsoid based on 3 given ellipses which are parallel to the Cartesian planes | CC BY-SA 2.5 | 0 | 2010-11-25T11:35:48.563 | 2010-12-21T16:01:53.240 | 2010-11-25T13:03:50.103 | 161,631 | 161,631 | [
"math",
"3d",
"geometry",
"equation",
"ellipse"
] |
4,276,677 | 1 | null | null | 2 | 382 | please help me to create the following xml layout for the row of my listview

Here the Text is written in a textview and remaining 5 boxes are 5 different ImageView, and the Images should be clickable.
Main problem is how thetext comes over the images.
| How to create such layout for each row of Android Listview?(Tricky Layout :) ) | CC BY-SA 2.5 | null | 2010-11-25T11:45:32.647 | 2010-11-25T11:57:29.247 | null | null | 152,867 | [
"android"
] |
4,276,734 | 1 | null | null | 0 | 2,145 | I have all MySQL dbs, tables and cols set to `utf8_general_ci`.
If i use phpMyAdmin to put a `£` symbol into a row, when i display it on a utf-8 charset page i get the good old question-mark-diamond.
However on the same page, if i put `<?php echo 'pound symbol test: £' ?>`, the symbol displays correctly, so the problem must be with the MySQL not the page.
If i dump my database and add a `£` using my text editor (set to UTF-8) and then re-import, same problem as with adding the £ in phpMyAdmin

| How do i store £ symbols in UTF-8 MySQL | CC BY-SA 2.5 | null | 2010-11-25T11:52:44.443 | 2013-10-03T11:43:43.717 | null | null | 289,666 | [
"php",
"mysql",
"utf-8"
] |
4,276,732 | 1 | null | null | 0 | 321 | I have created Xcode iPhone project using TabBarController template.

I hope FirstViewController links to an UIView(View1).
shown as picture below

Then I set as ad hoc version and build&Run
It installed on my ipod, but it reported
```
Thu Nov 25 19:25:59 unknown com.apple.debugserver-43[2591] <Warning>: debugserver-43 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Thu Nov 25 19:25:59 unknown com.apple.debugserver-43[2591] <Warning>: Connecting to com.apple.debugserver service...
Thu Nov 25 19:26:03 unknown com.apple.debugserver-43[2591] <Warning>: 1 [0a1f/0903]: error: ::task_for_pid ( target_tport = 0x0103, pid = 2585, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Thu Nov 25 19:26:03 unknown com.apple.debugserver-43[2591] <Error>: error: MachTask::StartExceptionThread (): task invalid, exception thread start failed.
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 2 [0a1f/0903]: error: ::task_for_pid ( target_tport = 0x0103, pid = 2585, task => 0x0000 ) 0x000001f5/0x000001f5 0x000001f5/0x000001f5 err = (os/kern) failure (0x00000005)
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 3 [0a1f/0903]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: ''
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: error: failed to launch process (null): failed to get the task for process 2585
Thu Nov 25 19:26:09 unknown com.apple.debugserver-43[2591] <Warning>: 4 [0a1f/1603]: error: ::read ( 7, 0x28091c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.product[0x64d5]) Bug: launchd_core_logic.c:2649 (23909):10
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.company.product[0x64d5]) Working around 5020256. Assuming the job crashed.
Thu Nov 25 19:26:09 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.company.product[0x64d5]) Job appears to have crashed: Segmentation fault
Thu Nov 25 19:26:09 unknown SpringBoard[24] <Warning>: Application 'tabbar' exited abnormally with signal 11: Segmentation fault
```
What's wrong with my change?
I am not familiar with UITabBarController, it really make me headache for a week
Welcome any comment
Thanks
interdev
| IPhone tabbar application error | CC BY-SA 2.5 | null | 2010-11-25T11:52:29.440 | 2011-04-21T10:08:01.663 | null | null | 262,325 | [
"iphone"
] |
4,277,023 | 1 | 4,282,327 | null | 0 | 279 | is there any way to remove the red marked "select column" from an dojo grid?

| Remove "column" form DojoX Grid 1.2 | CC BY-SA 2.5 | null | 2010-11-25T12:24:16.267 | 2010-11-26T03:21:58.380 | null | null | 118,027 | [
"dojo"
] |
4,277,444 | 1 | 22,209,454 | null | 1 | 351 | Does anybody please have an advise on what to do with the too close values in different series, which overlap - like in the right bar below?
[My chart URL - please click to see the parameters](http://chart.apis.google.com/chart?chs=700x280&cht=bvo&chco=3399FF,CCCCFF&chd=t:1552,1885,3451,2745|3927,6133,8053,2790&chxl=0:|2010-44|2010-45|2010-46|2010-47&chxt=x,y&chxs=0,006633,12,0,_,000000&chxr=1,0,8053&chds=0,8053&chbh=140,10,0&chm=N**$,,0,,12|N**$,,1,,12)

I can't find a good [chm parameter](http://code.google.com/apis/chart/docs/gallery/bar_charts.html#gcharts_data_point_labels) for all of the data I have.
Shouldn't overlapping be handled by the Google charts automatically in this case? Is this a bug?
| Google bar chart: what to do with too close values | CC BY-SA 3.0 | null | 2010-11-25T13:15:47.603 | 2014-03-05T22:38:08.403 | 2014-03-05T22:38:08.403 | 165,071 | 165,071 | [
"google-visualization"
] |
4,277,632 | 1 | 4,277,711 | null | 0 | 48 | I have a mysql table like that

and i need to run a query which will output the following result

what will be mysql query for that?any suggestions please?
| mysql query data group | CC BY-SA 2.5 | null | 2010-11-25T13:35:50.050 | 2010-11-25T13:47:49.567 | 2010-11-25T13:46:23.140 | 52,598 | 223,596 | [
"sql",
"mysql"
] |
4,278,821 | 1 | 4,485,732 | null | 4 | 7,977 | I'm using the WPF WebBrowser to display online help inside an app (just a few small web pages). Some of those pages use cookies to display items only for the first few times the pages are viewed (it's a "Why not try X" type of thing).
However, for some reason the cookies don't seem to be working inside the WebBrowser control. They work fine in full IE as well as Firefox and Chrome (so the items correctly hide), but they never hide when viewed through the WPF WebBrowser control.
Is there something special about using cookies in the WPF WebBrowser control? It seems to be behaving as if all the cookies are only stored in memory, rather than being persisted on disk.
Here's one of those pages inside a browser (where the cookies work):

And here's the exact same page inside the app:

That additional content should only be visible for the first few times of using the software (i.e. it should be hidden after N views of that web page), but because I can't get cookies to work it's always visible.
| Persistent cookies in WPF WebBrowser control? | CC BY-SA 2.5 | 0 | 2010-11-25T15:56:38.490 | 2010-12-19T23:24:02.587 | 2010-12-16T11:22:20.853 | 1,367 | 1,367 | [
"wpf",
"cookies",
"wpf-controls",
"browser"
] |
4,279,260 | 1 | null | null | 0 | 296 | Hey guys, I want to build a `UITableView` cell to look something like this that is used in the new vBulletin iPhone app. Here is a picture. Any help would be highly appreciated. Thanks in advance.

| iPhone - build a cell to look like this | CC BY-SA 2.5 | 0 | 2010-11-25T16:47:22.320 | 2010-11-26T10:56:15.840 | 2010-11-25T17:24:49.673 | 253,056 | 442,994 | [
"iphone",
"ios"
] |
4,279,398 | 1 | 4,279,744 | null | 8 | 24,327 | How can I center these buttons on Android?

The code I'm using in the `layout` is:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<Button android:text="Test"
android:layout_width="100px"
android:layout_height="40px" />
<Button android:text="Test"
android:layout_width="100px"
android:layout_height="40px" />
<Button android:text="Test"
android:layout_width="100px"
android:layout_height="40px" />
<Button android:text="Test"
android:layout_width="100px"
android:layout_height="40px" />
</LinearLayout>
</LinearLayout>
```
| Center layout Android | CC BY-SA 3.0 | 0 | 2010-11-25T17:06:01.463 | 2015-05-08T18:03:40.367 | 2015-05-08T18:03:40.367 | 3,810,333 | 143,979 | [
"android",
"xml",
"button",
"android-layout",
"android-sdk-1.6"
] |
4,279,864 | 1 | null | null | 10 | 2,480 | Good day!
I'm developing an application that plays a MIDI. It plays fine, but I often get quasi-bug reports: 'there is no sound playd'. The answer is always, to enter into volume controller and turn the synthesizer sound on (make it not muted).
The question is - how to change it automatically - by software? Till now I can only change the master volume and I couldn't really anywhere find how to change only for 'wave' 'SW synthesizer' etc...
I'm generally looking for platform indenpendent solutions (pure java), however solution only for Windows (all sorts of windows) are also welcomed ;) Thank you ahead!
Edit: Well, looking at the answers, I see, I should specify my question better. I append image. The control selected with green is what I can already do (i.e. as Cliff linked) however I need something for controls in red (the most important in my case is the 3rd from the left - synthesizer volume). Image is taken from win XP, but other operating systems (linux also) have similar controls. Java has to have such possibility. 
| Setting volume with java | CC BY-SA 2.5 | 0 | 2010-11-25T18:15:30.560 | 2013-01-02T08:25:14.233 | 2010-11-28T07:51:59.330 | 520,521 | 520,521 | [
"java",
"audio",
"volume"
] |
4,280,507 | 1 | 4,493,294 | null | 11 | 9,649 | I am unable to run my signed, release keystore in Eclipse:
I get the error:
```
Keystore was tampered with, or password was incorrect
```
How can I resolve this?
Here is the error:

Here is me successfully signing the keystore:

| Problem running my signed, release keystore in Eclipse | CC BY-SA 2.5 | 0 | 2010-11-25T20:05:21.883 | 2013-05-16T17:47:35.590 | 2010-11-26T17:06:47.243 | 19,875 | 19,875 | [
"java",
"android",
"eclipse",
"keystore",
"keytool"
] |
4,280,805 | 1 | 4,280,811 | null | 5 | 1,917 | I have 2 points `P1` and `P2`. I need to find the `P3`, in order that
- - `P3``d``P2``P1`
I started a complicated system apparently hardly to resolve...

Vectorial answers is cool, but I use C# and don't know how to add vectors over there.
| Find the third point | CC BY-SA 2.5 | null | 2010-11-25T20:56:58.353 | 2011-10-16T11:07:19.170 | 2010-11-25T21:15:43.250 | 185,593 | 185,593 | [
"math",
"drawing"
] |
4,281,056 | 1 | 4,281,094 | null | 2 | 398 | I have spent a lot of time reading questions and answers about Big-Oh on both here and math.stackexchange and seems that this is the best place for it as math.stackexchange don't seem to like questions of this sort. So I have been given some coursework at uni on my CS course and I don't fully understand it and was hoping you guys could help. I understand that "homework" questions are slightly frowned upon here so I have chosen another example that is part of my coursework, but of similar style.

Using Definition 2.5 show that if f(n) is O(g(n)) then k + f(n) is also O(g(n)).
I have spent 3 days searching the web for any kind of answer to problems like these. Looking at definition 2.5 it says f(n) is O(g(n)) and k + f(n) is O(g(n)). That's enough for me, but it seems I have to prove how that is derived. I thought at first that it should be done somehow by induction but have since decided against that and there must be a simpler way.
Any help would be appreciated. I don't expect someone to just upright give me the answer. I would more prefer either a methodology or a reference to where I can learn the technique of doing this. Could I remind you again that this is my actual coursework but a question of similar style.
Thanks in Advance.
| Big-Oh, Concequence of a Definition | CC BY-SA 2.5 | null | 2010-11-25T21:45:47.080 | 2010-11-29T08:13:03.660 | null | null | 501,145 | [
"big-o",
"asymptotic-complexity"
] |
4,281,974 | 1 | 4,282,741 | null | 6 | 2,576 | We're working on a new project (re-writing existing app), and I'm running into problems with my domain model / repository design.
Here is a (simplified) version of two key portions in our domain model:

As you can see, I have an abstract concept of a , which can be things like a Review, a Discussion, a Photo, a Video, etc. Posts can also have comments.
I also have a abstract concept of a , which are obviously things like Streets, Cities, Neighbourhoods, etc.
Now, this naturally looked to me as two clear aggregate roots.
So I created two repositories, one called , and another called .
This was all working fine, I can add/get any type of Post (or comment), and add/get any type of Location via one of these two repositories.
But now im in the scenario of a "landing page" for a City (for example).
On this page, I need to basically show "all posts for this location".
How is that defined? Well, a Post can be (optionally) tagged at a Location. Implementation detail, so I don't want to go too deep into data (as that's not what DDD is about), but essentially there is geospatial intelligence to work out which posts are contained in a particular location by the shape file of the location, and the latitude/longitude of the tagged Post.
But how can I retrieve this information without crossing the boundaries?
Which repository do I use? Do I need a new one?
If it matters (or for the curious), this is a web application (ASP.NET MVC), with a SQL Server 2008 database and Entity Framework 4.0.
If you need any clarification, let me know.
We currently use a modified version of the Specification pattern in order to retrieve domain models.
For example, this is the code in our BLL to retrieve all Review's where Score >= 4:
```
var reviews = postRepository // GenericRepository<Post>
.Find() // IQueryable<Post>
.OfType<Review>() // IQueryable<Review>
.Where(x => x.Score >= 4)
.ToList(); // List<Review>
```
But now I need some code like this:
```
var reviews = postRepository
.Find()
.OfType<Review>()
.Where( //lat long, or Locations FK )
.ToList();
```
The problem is I don't know how to do the above query without adding an intermediary join-entity (LocationPost - as it's a many to many), and add a FK to the Post domain model to that.
But by doing that, I am crossing the aggregate boundaries - aren't I?
| DDD - How Can I Avoid Crossing Aggregate Boundaries Here? | CC BY-SA 3.0 | 0 | 2010-11-26T01:29:44.823 | 2015-06-08T15:14:25.470 | 2015-06-08T15:14:25.470 | 4,370,109 | 321,946 | [
"domain-driven-design",
"ddd-repositories",
"domain-model",
"aggregateroot"
] |
4,281,983 | 1 | 4,282,651 | null | 0 | 6,498 | Ey guys, I am reading in from a plist structured like so:

As you can see, it is a plist that contains annotation information of different types(C,Visitor). I can display each annotation type just fine, but I am attempting to loop through all types and display all annotations on the map view at once. Here is the code:
```
NSLog(@"loadAnnotations");
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"PermitData" ofType:@"plist"];
NSDictionary *rootOfPermitDataPlistDict = [[NSDictionary alloc] initWithContentsOfFile:plistPath];
// NSMutableDictionary *permitDict = [[NSMutableDictionary alloc] init];
if ([self title] == @"All Permits") {
for (id key in rootOfPermitDataPlistDict) {
NSLog(@"key:%@",key);
//[key retain];
NSMutableDictionary *permitDict = [NSDictionary dictionaryWithDictionary:[rootOfPermitDataPlistDict objectForKey:key]];
//[key release];
//array containing annotation information: latitude, longitude, title, subtitle(see PermitData.plist)
NSArray *annotationsArray = [[NSArray alloc] initWithArray:[permitDict objectForKey:@"annotations"]];
[permitDict release];
[rootOfPermitDataPlistDict release];
CLLocationCoordinate2D workingCoordinate;
NSDictionary *annotationContainerDict = [[NSDictionary alloc] init];
//loop through annotations array, creating parking annotations filled with the information found in the plist
for(annotationContainerDict in annotationsArray){
NSLog(@"%@",annotationContainerDict);
ParkingAnnotation *parkingAnnot = [[ParkingAnnotation alloc] init];
workingCoordinate.latitude = [[annotationContainerDict objectForKey:@"latitude"] doubleValue];
workingCoordinate.longitude = [[annotationContainerDict objectForKey:@"longitude"] doubleValue];
[parkingAnnot setCoordinate:workingCoordinate];
[parkingAnnot setTitle:[annotationContainerDict objectForKey:@"title"]];
[parkingAnnot setSubtitle:[annotationContainerDict objectForKey:@"subtitle"]];
if ([parkingAnnot title] == @"C Parking") [parkingAnnot setAnnotationType:annotationTypeC];
else if ([parkingAnnot title] == @"Visitor Parking") [parkingAnnot setAnnotationType:annotationTypeVisitor];
[mapView addAnnotation:parkingAnnot];
[parkingAnnot release];
}
[permitDict release];
}
}
```
And this is the console output when I run the program:
```
2010-11-25 03:25:28.020 Parking[38918:207] All Permits
2010-11-25 03:25:28.021 Parking[38918:207] loadAnnotations
2010-11-25 03:25:28.021 Parking[38918:207] key:C
2010-11-25 03:25:28.021 Parking[38918:207] {
latitude = "38.545301";
longitude = "-121.754066";
subtitle = "VP 17";
title = "C Parking";
}
2010-11-25 03:25:28.022 Parking[38918:207] {
latitude = "38.544831";
longitude = "-121.754785";
subtitle = "VP 16";
title = "C Parking";
}
2010-11-25 03:25:28.022 Parking[38918:207] {
latitude = "38.544781";
longitude = "-121.755729";
subtitle = "VP 22";
title = "C Parking";
}
2010-11-25 03:25:28.022 Parking[38918:207] {
latitude = "38.544412";
longitude = "-121.752489";
subtitle = "VP 15";
title = "C Parking";
}
```
So it loops through the first NSDictionary properly, but crashes when it is about to begin looping through the next one. And I have tried changing NSDictionary to NSMutableDictionary but the result is the same. So when I select the "All Permits" row in the table view, it hangs for a fraction of a second(without switching to the map view), and then crashes, without generating an error.
If anyone wouldn't mind helping me out here, I would greatly appreciate it. Thanks in advance!
EDIT:
Here is the stack trace(described in comments below):
```
2010-11-25 20:28:08.141 Parking[39400:207] All Permits
2010-11-25 20:28:08.142 Parking[39400:207] loadAnnotations
2010-11-25 20:28:08.142 Parking[39400:207] key:C
2010-11-25 20:28:08.143 Parking[39400:207] {
latitude = "38.545301";
longitude = "-121.754066";
subtitle = "VP 17";
title = "C Parking";
}
2010-11-25 20:28:08.143 Parking[39400:207] {
latitude = "38.544831";
longitude = "-121.754785";
subtitle = "VP 16";
title = "C Parking";
}
2010-11-25 20:28:08.143 Parking[39400:207] {
latitude = "38.544781";
longitude = "-121.755729";
subtitle = "VP 22";
title = "C Parking";
}
2010-11-25 20:28:08.144 Parking[39400:207] {
latitude = "38.544412";
longitude = "-121.752489";
subtitle = "VP 15";
title = "C Parking";
}
2010-11-25 20:28:08.145 Parking[39400:207] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSCFDictionary: 0x6d5fd80> was mutated while being enumerated.<CFBasicHash 0x6d5fd80 [0x2667380]>{type = mutable dict, count = 1,
entries =>
0 : <0x7380> = <NSKeyValueContainerClass: Original class: ParkingAnnotation, Notifying class: NSKVONotifying_ParkingAnnotation>
}
'
*** Call stack at first throw:
(
0 CoreFoundation 0x025fdb99 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0274d40e objc_exception_throw + 47
2 CoreFoundation 0x025fd659 __NSFastEnumerationMutationHandler + 377
3 Parking 0x00002e93 -[ParkingMapViewController loadAnnotations] + 364
4 Parking 0x00002caf -[ParkingMapViewController viewDidLoad] + 117
5 UIKit 0x0036a5ca -[UIViewController view] + 179
6 UIKit 0x003689f4 -[UIViewController contentScrollView] + 42
7 UIKit 0x003787e2 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 48
8 UIKit 0x00376ea3 -[UINavigationController _layoutViewController:] + 43
9 UIKit 0x00378067 -[UINavigationController _startTransition:fromViewController:toViewController:] + 326
10 UIKit 0x00372ccd -[UINavigationController _startDeferredTransitionIfNeeded] + 266
11 UIKit 0x00379d8b -[UINavigationController pushViewController:transition:forceImmediate:] + 876
12 UIKit 0x00372b67 -[UINavigationController pushViewController:animated:] + 62
13 Parking 0x00002914 -[PermitListViewController tableView:didSelectRowAtIndexPath:] + 307
14 UIKit 0x00333a48 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
15 UIKit 0x0032a32e -[UITableView _userSelectRowAtIndexPath:] + 219
16 Foundation 0x0003f21a __NSFireDelayedPerform + 441
17 CoreFoundation 0x025def73 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
18 CoreFoundation 0x025e05b4 __CFRunLoopDoTimer + 1364
19 CoreFoundation 0x0253cdd9 __CFRunLoopRun + 1817
20 CoreFoundation 0x0253c350 CFRunLoopRunSpecific + 208
21 CoreFoundation 0x0253c271 CFRunLoopRunInMode + 97
22 GraphicsServices 0x02edc00c GSEventRunModal + 217
23 GraphicsServices 0x02edc0d1 GSEventRun + 115
24 UIKit 0x002ceaf2 UIApplicationMain + 1160
25 Parking 0x00001e08 main + 102
26 Parking 0x00001d99 start + 53
)
terminate called after throwing an instance of 'NSException'
```
However, I am releasing permitDict within the for loop(second [permitDict release] was left uncommented), so I don't know why it is complaining about the NSDictionary being immutable. As you can see, the permitDict is of type NSMutableDictionary, so I am lost as to why it is giving me this error.
| Looping Through an NSDictionary Read in From Property List Prooving Troublesome | CC BY-SA 2.5 | null | 2010-11-26T01:31:51.003 | 2010-11-26T05:50:29.257 | 2010-11-26T04:37:56.063 | 347,339 | 347,339 | [
"ios",
"annotations",
"mkmapview",
"property-list"
] |
4,282,036 | 1 | 4,282,210 | null | 8 | 9,553 | How do I render 2D sprites in OpenGL given that I have a png of the sprite? See images as an example of the effect I'd like to achieve. Also I would like to overlay weapons on the screen like the rifle in the bottom image. Does anyone know how I would achieve the two effects? Any help is greatly appreciated.


| Rendering 2D sprites in a 3D world? | CC BY-SA 2.5 | 0 | 2010-11-26T01:53:52.063 | 2016-04-12T09:04:00.470 | 2010-12-14T20:03:10.090 | 44,729 | 256,062 | [
"opengl-es",
"webgl"
] |
4,282,143 | 1 | 4,288,725 | null | 3 | 11,033 | I followed [THIS](http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml) but had no luck.
My . file has in tag:
```
<s:head theme="ajax" />
```
and in tag
```
<s:datetimepicker name="dateOfBirth" label="Format (yyyy-MM-dd)" displayFormat="yyyy-MM-dd"/>
```
But it is not showing, here is the picture:

My generated HTML source code contains all necessary lines like in [example](http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml) ( tags and other are generated....)
Any ideas?
Following Quaternion's answer:
I was using, which recognized `<s:datetimepicker />` tag but wasn't showing in my page. After replacing with newer one , `<s:datetimepicker />` tag wasn't recognized.
After putting `<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>` in head of the file it wasn't recognized as my tag library. Based on [THIS](http://old.nabble.com/DoJo-Plugin-for-struts-2.0.11-td19062990.html), you should download separately and add it into your folder (you can downlad it [here](http://people.apache.org/builds/struts/2.1.2/) --> --> ).
After that you just use tag for your datetimepicker.
: Don't forger to put `<sx:head/>` in head tag of your page --> examples [here](http://struts.apache.org/2.2.1/docs/dojo-head.html).
| Struts2 datetimepicker not showing | CC BY-SA 2.5 | 0 | 2010-11-26T02:25:20.190 | 2010-11-27T21:23:57.843 | 2010-11-27T21:23:57.843 | 365,011 | 365,011 | [
"java",
"jsp",
"dojo",
"struts2",
"datetimepicker"
] |
4,282,725 | 1 | 4,322,166 | null | 0 | 111 | 
Hi,
I want to display data in format as given in image.
I am using GridView to display data.
FirstName,LastName etc. columns are binding to Grid.
But I have to add row above Header with two columns "Who has changed "Job Role"" and WorkGroup.
How can i do it.
| How can i display data in given format | CC BY-SA 2.5 | null | 2010-11-26T05:26:34.070 | 2010-12-01T07:37:32.100 | null | null | 503,125 | [
"gridview"
] |
4,282,895 | 1 | null | null | 4 | 255 | I've started using [derobins wmd markdown](https://github.com/derobins/wmd), and I really like the way it performs and integrates with my system. I do however have one MAJOR issue whereby the `<ol>` the `<ul>` and the `<blockqote>` doesn't work in Google Chrome or RockMelt.
I see that it's working here on StackOverflow, but I know they're making a lot of modifications.
Can anyone suggest a better version of WMD Markdown?
Here's a screenshot of what my editor looks like when I click "blockquote" in Chrome

| Is there a more current version of WMD Markdown other than derobins? | CC BY-SA 2.5 | 0 | 2010-11-26T06:05:47.457 | 2012-07-03T14:09:16.920 | 2010-11-26T22:09:05.540 | 124,069 | 124,069 | [
"markdown",
"wmd"
] |
4,283,069 | 1 | 4,283,320 | null | 8 | 5,019 | Any idea to make one of the options in TRadioGroup component invisible? (Delphi 7)

| how to Invisible one of the item in TRadioGroup? | CC BY-SA 2.5 | null | 2010-11-26T06:45:19.113 | 2010-11-28T22:08:20.070 | null | null | 367,856 | [
"delphi"
] |
4,283,401 | 1 | null | null | 5 | 1,359 | I need to implement this scenario in C#:

The matrix will be very large, maybe 10000x10000 or larger. I will use this for distance matrix in hierarchical clustering algorithm. In every iteration of the algorithm the matrix should be updated (joining 2 rows into 1 and 2 columns into 1). If I use simple double[,] or double[][] matrix this operations will be very "expensive".
Please, can anyone suggest C# implementation of this scenario?
| Linked 2D Matrix in C# | CC BY-SA 2.5 | 0 | 2010-11-26T07:51:27.927 | 2015-01-06T01:45:10.667 | 2010-11-26T09:11:29.833 | 41,956 | 521,077 | [
"c#",
"matrix"
] |
4,283,674 | 1 | 4,284,727 | null | 4 | 2,047 | I have the following Javascript/jQuery function:
```
function addEventHandler(){
$("div").mouseenter(function() {
$(this).html("Over");
}).mouseleave(function() {
$(this).html("Out");
});
}
```
It works, but not perfectly. The divs sometimes overlap slightly (don't ask), and as the picture below tries to convey they don't always get the "Out" value. This happens especially if I move the pointer over them very fast.

Any ideas how to make sure every div gets the "Out" value on mouseleave? Thanks!
As my real function isn't quite as simple as the example above, I've included the exact code of the real function here:
```
function addEventHandlers(){
var originalContent = "";
$(".countryspots div").mouseenter(function() {
var thisClass = $(this).attr("class");
var thisCountry = thisClass.split(" ");
var thisNumber = getNumber(thisCountry[1]);
originalContent = $(this).children("a").html();
$(this).children("a").html("<span>" + thisNumber + "</span>");
}).mouseleave(function() {
$(this).children("a").html(originalContent);
});
}
```
And my HTML markup is like this:
```
<div class="countryspots">
<div class="america brazil"><a href="#"><span>Brazil</span></a></div>
<div class="america argentina"><a href="#"><span>Argentina</span></a></div>
<div class="europe ireland"><a href="#"><span>Ireland</span></a></div>
<div class="europe portugal"><a href="#"><span>Portugal</span></a></div>
</div>
```
The general idea is that the country name in the inner most `<span>` is swapped with a number representing employees on `mouseenter` (retrieved from `getNumber();`) - then swapped back on `mouseleave`.
The is that many divs retain their employee number when I move the pointer onto another div. In other words: the `mouseleave` event is not executed on all divs.
[http://jsfiddle.net/N9YAu/4/](http://jsfiddle.net/N9YAu/4/)
Hope this helps. Thanks again!
| jQuery mouseenter/mouseleave html()-swap issue | CC BY-SA 3.0 | null | 2010-11-26T08:37:04.530 | 2016-04-07T03:40:42.810 | 2016-04-07T03:40:42.810 | 2,793,619 | 147,425 | [
"javascript",
"jquery",
"mouseleave",
"mouseenter"
] |
4,284,197 | 1 | null | null | 1 | 2,339 | I want to use the to access Lotus Notes . Because of some reasons I must do this on a . Unfortunately I cannot configure the ODBC datasource on this OS! On XP it works fine!
Error message:

Has anybody a solution for this problem?
| Lotus Notes: NotesSQL on Windows 2008 - ODBC Problem | CC BY-SA 2.5 | null | 2010-11-26T09:53:17.407 | 2011-09-23T13:22:43.277 | 2010-11-26T10:48:33.840 | 272,706 | 272,706 | [
".net",
"database",
"odbc",
"windows-server-2008",
"lotus-notes"
] |
4,284,233 | 1 | 4,284,297 | null | 1 | 913 | 
I applied the following CSS to the above text. How to make the underline of above hyperlink to be appear as the one below. For example like this one 
```
.result-listingext h3
{
display:block;
margin:0;
padding-right:10px;
padding-left:10px;
color:#b2002f;
font-family: Arial, Verdana;
text-decoration: none;
background: white;
font-size:0.94em;
font-weight:normal;
line-height:1.3;
}
.result-listingext h3 a:visited
{
font-family: Arial, Verdana;
text-decoration: none;
background: white;
font-size:0.94em;
color:#000;
font-weight:normal;
line-height:1.3;
}
.result-listingext h3 a:link,
.result-listingext h3 a:hover,
.result-listingext h3 a:focus,
.result-listingext h3 a:active {
color:#b2002f;
font-family: Arial, Verdana;
text-decoration: none; background: white;
font-size:0.94em;
font-weight:normal;
line-height:1.3;
}
```
| How to underline the hyper-link spreaded on two lines. CSS-HTML geeks? | CC BY-SA 2.5 | null | 2010-11-26T09:59:43.023 | 2010-11-26T10:11:53.687 | 2010-11-26T10:07:46.923 | 395,198 | 395,198 | [
"html",
"css",
"hyperlink"
] |
4,285,201 | 1 | 4,286,101 | null | 0 | 4,207 | I have an application in Visual c++ (Win32 API). In my application the main window boarder is displayed in old windows styled. I have tried changing the wndWc.style values to WS_OVERLAPPED,WS_POPUP and other which are given in WinUser.h but there is no change in the appearance of the main window were as all my pop-up window are displayed in windows 7 style how this can be rectified. Any help in this regards will be highly appreciated. I have attached both the images the main window and the pop up window.


Code :
```
// our window class
WNDCLASS wndWc;
// ---------------------------------------------------------
// fill window class members
// ---------------------------------------------------------
wndWc.style = CS_GLOBALCLASS;
wndWc.lpfnWndProc = (WNDPROC) WndProc;
wndWc.cbClsExtra = 0;
wndWc.cbWndExtra = 0;
wndWc.hInstance = GetModuleHandle(NULL);
wndWc.hIcon = NULL;
wndWc.hCursor = LoadCursor(0, IDC_ARROW);
wndWc.hbrBackground = (HBRUSH)GetStockObject(0);
wndWc.lpszMenuName = NULL;
wndWc.lpszClassName = "XYZ";
// register class
if (!RegisterClass(&wndWc)) return false;
// ---------------------------------------------------------
// get actual screen resolution
int iSw = (WORD)GetSystemMetrics(SM_CXSCREEN); // height
int iSh = (WORD)GetSystemMetrics(SM_CYSCREEN); // height
// make a rectangle on the center of the screen
RECT rc = {(iSw - iWidth)/2, (iSh - iHeight)/2, width, height};
// create the window. the spaces on the window title
// are just to make sure this will be visible when the region
// is active. just run the app and you'll understand. =)
hWnd = CreateWindow("XYZ", "XYZ",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,CW_USEDEFAULT, width,height,
NULL, NULL, GetModuleHandle(NULL), NULL);
```
| How to change the border style of applications main window in visual c++ win32 API | CC BY-SA 2.5 | null | 2010-11-26T12:13:11.820 | 2012-10-12T09:55:30.587 | 2010-11-26T13:11:42.180 | 157,861 | 157,861 | [
"visual-c++",
"winapi"
] |
4,285,483 | 1 | 4,285,526 | null | 4 | 4,165 | How to place two divs side by side with splitter between them?
That's what I mean:

I assume that html layout can looks something like this:
```
<div id="container">
<div id="left"></div>
<div id="splitter"></div>
<div id="right"></div>
</div>
```
or
```
<div id="container">
<div id="left">
<div id="splitter"></div>
</div>
<div id="right"></div>
</div>
```
| Side by side divs | CC BY-SA 2.5 | 0 | 2010-11-26T13:03:46.783 | 2010-11-26T17:26:13.613 | null | null | 116,553 | [
"css",
"html"
] |
4,285,787 | 1 | 4,285,795 | null | 2 | 73 | If ISO-8859-1 then (HTML Text: GOOD, MySQL Data: BAD)
if UTF-8 then (HTML Text: BAD, MySQL Data: GOOD)
What can I do to solve it?

| Data from MySQL CHARSET problems, please look the image! | CC BY-SA 2.5 | null | 2010-11-26T13:42:43.800 | 2010-11-26T13:44:21.913 | null | null | 439,866 | [
"php",
"mysql",
"html",
"http",
"utf-8"
] |
4,285,970 | 1 | 4,285,995 | null | 18 | 15,123 | This click indicator is a disgusting piece for my recent web projects.. I hate this! - How can I say to my Firefox browser that he should not mark the clicked object?

| CSS Firefox - How to deactivate the dotted border ( firefox click indicator )? | CC BY-SA 2.5 | 0 | 2010-11-26T14:11:12.450 | 2016-02-06T13:31:59.697 | null | null | 497,060 | [
"css",
"firefox",
"browser",
"webbrowser-control"
] |
4,285,981 | 1 | 8,831,226 | null | 18 | 56,190 | I am developing one android application which use transparent activity.. I used the following [link](https://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android) as reference but my problem is when i set background color as black i am not able see previous. i need transparent like this .

Thanks in Advance...
| Transparent layout in Android? | CC BY-SA 2.5 | 0 | 2010-11-26T14:12:40.097 | 2023-01-11T17:51:03.910 | 2017-05-23T11:54:01.217 | -1 | 405,640 | [
"android"
] |
4,286,047 | 1 | 4,286,077 | null | 1 | 539 | I would like to know how to create buttons like the ones on Apple's [main page](http://www.apple.com/the-beatles/)?

Can anyone help me get started or point me in the direction of a tutorial?
| How can I create buttons like those on the Apple website? | CC BY-SA 2.5 | null | 2010-11-26T14:20:36.893 | 2010-11-26T14:59:19.780 | 2010-11-26T14:51:40.677 | 434,051 | 434,051 | [
"javascript",
"html",
"css"
] |
4,286,339 | 1 | 4,490,248 | null | 4 | 892 | It seems that you can persist in a settings file PrinterSettings and also PageSettings, they are Serializable etc. Great! Everything was going OK until I tried to persist my PageSettings and the margins. Everytime I change the margins, save the settings and then reload them back into the PageSetupDialog.PageSettings - they have been modified. Does anyone know why this happens? Is it something that the driver or Windows is doing ? Its bizarre, see below:
Here I show the dialog:
```
PageSetupDialog psd = new PageSetupDialog();
psd.PageSettings = MySettings.Default.pageSettings;
if (psd.ShowDialog() == DialogResult.OK)
```

I manually change the values to 5.
Then I save the changes:
```
MySettings.Default.pageSettings = psd.PageSettings;
```
When I reload the dialog and load in the settings from the settings file the values have changed to 2!?

So just to try and expand on the problem - if we show the PageSetupDialog for the first time with default settings values which are 10 for all margins. If we inspect the values during debug then we see them represented like this:

So they are all 100, strange but I expected them to be 10 i.e. like 10mm like the dialog says, so I don't know what unit of measure 100 is pertaining to be but anyway lets assume that it correlates with 10 in the dialog.
We then edit them all to 5 in the dialog and press OK - so we get past this code:
```
if (psd.ShowDialog() == DialogResult.OK)
```
so we would expect to see on inspection of the pageSettingDialog object to see some values for the margins to be all 5 (or 50, as seems to be the case in the 10 vs 100 confusion, see above). Let's have a look at the object then:

Low and behold it's not what we were expecting, it's 20 for some bizarre reason. That's where I get stuck, I just can't work out whats going on behind the seens here. Why is it changing from 50 to 20?, why won't it keep the value I set?
Hope that explains it a little bit better.
| PageSettings keep getting modifed unexpectedly | CC BY-SA 2.5 | 0 | 2010-11-26T15:01:13.593 | 2010-12-20T14:45:41.243 | 2010-12-15T14:23:58.913 | 5,175 | 5,175 | [
".net",
"settings",
"printers"
] |
4,286,446 | 1 | 4,524,991 | null | 0 | 78 | We migrated one of our websites from IIS 7.0 to IIS 6.0 and everything seemed to work fine, however we get this strange error now:

Does this issue have anything to do with this or is it - like I think - the fact that method 'GenerateSynopsis' is called with an empty parameter?
| XslTransformException after migrating from IIS 7.0 to IIS 6.0 | CC BY-SA 2.5 | null | 2010-11-26T15:17:34.797 | 2010-12-24T07:50:08.270 | 2010-11-26T15:29:09.573 | null | 81,892 | [
".net",
"iis",
"xslt"
] |
4,286,466 | 1 | 4,286,493 | null | 148 | 332,572 | I want to submit a form. But I am not going the basic way of using a input button with submit type but a link.
The image below shows why. I am using image links to save/submit the form. Because I have standart css markup for image links I don't want to use input submit buttons.
I tried to apply to the a element but I would prefer a html method.

Any ideas?
| Use a normal link to submit a form | CC BY-SA 2.5 | 0 | 2010-11-26T15:20:11.697 | 2021-04-18T01:26:57.803 | null | null | 401,025 | [
"html",
"css",
"forms",
"hyperlink",
"submit"
] |
4,287,267 | 1 | 4,289,313 | null | 0 | 1,961 | This is not related to any language atm, only math algorithm required. I have some image, lets say this one 
I need to cut tree  from this image, sky with clouds and grass should be threated as background. Thanks for any help.
| How to find shapes on image | CC BY-SA 2.5 | 0 | 2010-11-26T17:07:16.137 | 2010-11-26T23:55:38.653 | null | null | 183,419 | [
"math",
"imagemagick",
"gd"
] |
4,287,346 | 1 | 4,288,609 | null | 0 | 309 | maybe someone is able to explain me why I'm having unhandled exceptions when running unit tests? Is not supposed the environment to handle all the exceptions and just set the test to failed?
This can be related to the fact that the unit tests are calling unmanaged code thru C++/CLI?
Thanks in advance.
EDIT: Just to clarify, the problem is not having an exception. The problem is the exception not causing the unit test to fail and going to execute the next unit test.

| Why is Visual Studio breaking on an unhanded exception running unit tests? | CC BY-SA 2.5 | null | 2010-11-26T17:19:13.910 | 2010-11-26T22:09:49.470 | 2010-11-26T22:09:49.470 | 166,452 | 166,452 | [
"visual-studio-2008",
"unit-testing",
"exception",
"unhandled-exception"
] |
4,287,401 | 1 | 4,292,863 | null | 0 | 719 | After retrieving search results from a UISearchBar, the results appear in my tableview correctly, but the view is 'greyed out' (see image below)..Any help on this is appreciated, I can't find a solution the Apple documentation.
This is my code that is fired upon hitting the Search button:
```
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
isSearchOn = YES;
canSelectRow = YES;
self.tableView.scrollEnabled = YES;
CityLookup *cityLookup = [[CityLookup alloc] findCity:searchBar.text];
if ([cityLookup.citiesList count] > 0) {
tableCities = cityLookup.citiesList;
}
[cityLookup release];
isSearchOn = NO;
self.searchBar.text=@"";
[self.searchBar setShowsCancelButton:NO animated:YES];
[self.searchBar resignFirstResponder];
[self.navigationController setNavigationBarHidden:NO animated:YES];
[self.tableView reloadData];
}
```
And this is how the table view is being refreshed:
```
-(UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *kCellID = @"cellID";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kCellID] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
NSString *cellValue = [tableCities objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
return cell;
}
```

| After reloading my tableView with content, it still appears greyed-out until I tap it..why? | CC BY-SA 2.5 | null | 2010-11-26T17:27:32.467 | 2010-11-27T17:19:26.167 | 2010-11-26T17:42:34.230 | 376,107 | 350,119 | [
"iphone",
"uitableview",
"uisearchbar",
"reloaddata"
] |
4,287,473 | 1 | 4,290,532 | null | 141 | 71,384 | Whenever the software keyboard appears, it resizes the background image. Refer to the screenshot below:

As you can see, the background is sort of squeezed. Anyone can shed a light on why the background resizes?
My Layout is as follows:
```
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/page_bg"
android:isScrollContainer="false"
>
<LinearLayout android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_width="fill_parent"
>
<EditText android:id="@+id/CatName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:inputType="textCapSentences"
android:lines="1"
/>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/save"
android:onClick="saveCat"
/>
</LinearLayout>
<ImageButton
android:id="@+id/add_totalk"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@null"
android:src="@drawable/add_small"
android:scaleType="center"
android:onClick="createToTalk"
android:layout_marginTop="5dp"
/>
</LinearLayout>
```
| Software keyboard resizes background image on Android | CC BY-SA 3.0 | 0 | 2010-11-26T17:38:44.460 | 2020-02-26T10:50:21.320 | 2015-03-21T17:35:57.480 | 2,157,640 | 135,448 | [
"android",
"view",
"android-linearlayout"
] |
4,287,495 | 1 | 4,288,549 | null | 4 | 17,925 | This is really basic question and may be duplicate. Can anyone tell me how useful error info generated by any program in .Net.
Today I got an error "Ambiguous match found." while saving entity in database (using EF4)
I can't figure out why this error is coming, what is the root cause. Attached is the snap for same.

Here is the complete Error Details,
```
System.Reflection.AmbiguousMatchException was unhandled by user code
Message=Ambiguous match found.
Source=mscorlib
StackTrace:
at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetProperty(String name)
at IAA.Data.EntityFramework.RepositoryWithTypedId`2.SaveOrUpdate[T](T entity)
at ABC.XYZ.ApplicationServices.AcknowledgementManagementService.SaveOrUpdate(AcknowledgementFormViewModel acknowledgementFormViewModel) in E:\RA\ABC.XYZ\app\ABC.XYZ.ApplicationServices\AcknowledgementManagementService.cs:line 123
at ABC.XYZ.Web.Controllers.AcknowledgementsController.Acknowledgements(AcknowledgementFormViewModel acknowledgementFormViewModel) in E:\RA\ABC.XYZ\app\ABC.XYZ.Web.Controllers\AcknowledgementsController.cs:line 68
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
```
InnerException:
| How to read stack trace or error info generated in .Net program to find root cause of exception | CC BY-SA 3.0 | null | 2010-11-26T17:42:45.983 | 2013-10-17T20:46:35.650 | 2013-10-17T20:46:35.650 | 522,735 | 341,950 | [
"c#",
"exception"
] |
4,287,646 | 1 | 4,287,662 | null | 2 | 1,793 | I need to implement an "infinite scrolling" timeline, where the pinch-to-zoom will change the scale of the timeline rather than zoom on the underlying view, almost exactly like the scroll view of the app iStreamer (see below). I don't think I can do this with UIScrollView and am considering implementing a custom UIView that draws the timeline and its contents.
Are there any classes/formulas/constants that can provide the physics simulation behind the "glass on liquid" effect of inertial scrolling?

iStreamer (above) has overlapping touchable elements and inertial scrolling. They might be doing this with a regular UIScrollView, but I don't know how to achieve the same effect. I need to add elements that could span very wide stretches (years or decades on a timeline).
| How can I mimic inertial scrolling in a custom UIView when I can't use UIScrollView? | CC BY-SA 2.5 | 0 | 2010-11-26T18:14:32.947 | 2010-11-26T21:01:19.393 | 2017-02-08T14:31:05.580 | -1 | 5,548 | [
"ipad",
"ios",
"uiview",
"uiscrollview"
] |
4,289,520 | 1 | 4,289,533 | null | 0 | 575 | Here's the error:

It says the source of the exception is on Line20 of my class. Here is my class:
```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Collections.ObjectModel;
namespace WebServiceScanner
{
public partial class imageList : UserControl
{
private int XPosition = 0;
public imageList()
{
InitializeComponent();
Images.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Images_CollectionChanged);
}
public ObservableCollection<selectablePicture> Images { get; set; }
public void AddImage(selectablePicture image)
{
Images.Add(image);
}
public void RemoveImage(selectablePicture image)
{
Images.Remove(image);
}
public void MoveImageLeft(int index)
{
selectablePicture tmpImage = Images[index];
Images[index] = Images[index - 1];
Images[index - 1] = tmpImage;
}
public void MoveImageRight(int index)
{
selectablePicture tmpImage = Images[index];
Images[index] = Images[index + 1];
Images[index + 1] = tmpImage;
}
void Images_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
RedrawImages();
}
private void RedrawImages()
{
foreach (var picture in Images)
{
picture.Location = new Point(XPosition + panel1.AutoScrollPosition.X, 0);
XPosition += 130;
panel1.Controls.Add(picture);
}
}
}
}
```
Maybe I'm doing something dumb like setting an event handler at the constructor. Any ideas? This user control isn't really that complex, so there are few places where something could be wrong.
If you guys need more information please let me know.
| Visual Studio gives a NullReferenceException when trying to add my control! | CC BY-SA 2.5 | null | 2010-11-27T01:02:43.623 | 2010-11-27T01:08:42.323 | null | null | null | [
"c#",
"user-controls"
] |
4,289,891 | 1 | 4,290,393 | null | 9 | 30,023 | How do I get control over the axis settings of a pyplot plot. I have simply done
```
pylab.plot(*self.plot_generator(low, high))
pylab.show()
```
and I get this which is what I want

but I want the x axis to be at 0 instead of at the bottom. How would I do that?
| change matplotlib axis settings | CC BY-SA 2.5 | 0 | 2010-11-27T02:55:55.883 | 2010-11-28T11:54:55.703 | null | null | 375,874 | [
"python",
"matplotlib",
"scipy"
] |
4,290,363 | 1 | 4,292,691 | null | 19 | 7,956 | Interesting problem I'm having with a ListView. It's using a standard ArrayAdapter, with a custom XML layout for the items within. Simple XML:
```
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:background="@drawable/list_bg_blue"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:paddingBottom="20dp"
android:typeface="serif"
android:textSize="20px"
android:textStyle="bold|italic"
android:textColor="#FF1e5a82"
android:shadowColor="#FFFFFFFF"
android:shadowDx="1"
android:shadowDy="1"
android:shadowRadius="1"
/>
```
I don't think there's anything in there that is a problem, but I'm having some strange black lines showing up that I can't seem to get rid of (you can see it in the picture below). I've tried setting `android:dividerHeight="0px"` in the ListView, but these still appear. You can see between New Episodes and Shows that there is no line, but for some reason there is after the first and last.
Any ideas?
EDIT: Did some more thinking, seems to be just the first and the last, so I found:
`android:headerDividersEnabled` and
`android:footerDividersEnabled`
Setting footers to false fixed the last one, but oddly setting header dividers to false had no effect. :/
EVEN MORE EDITS!: Okay, so I added a few more items to the list (should have done that first), and it seems to be every other item (e.g. item 1, item 3, item 5, and so on) that has a divider appearing below it.

| Black Line Under Some ListView Items | CC BY-SA 2.5 | 0 | 2010-11-27T06:01:08.087 | 2013-08-06T10:28:36.773 | 2010-11-27T06:29:04.250 | 321,697 | 321,697 | [
"android",
"listview",
"divider"
] |
4,290,459 | 1 | 4,290,498 | null | 1 | 57 | 
There are one-one relationship between room and application means an application must occupy a room. If I want to get the room that doesn't occupied by application, how to write sql to query
| MySQL : query question | CC BY-SA 2.5 | null | 2010-11-27T06:34:28.550 | 2010-11-27T06:46:25.107 | null | null | 480,716 | [
"mysql"
] |
4,290,477 | 1 | null | null | 1 | 640 | I'm looking for some animation ideas to open and close this ancient scroll..

Anybody has any idea about it??
| Ancient Message Scroll Animation idea | CC BY-SA 2.5 | 0 | 2010-11-27T06:39:46.137 | 2010-11-27T07:17:06.600 | null | null | 462,533 | [
"iphone",
"core-animation"
] |
4,290,563 | 1 | 4,294,394 | null | 4 | 423 | I am trying to write a query which counts the number of bidirectional (strong) connections between users which represent nodes in the graph.
To test the query I have created the following sample

which is stored in the table monthly_connections_test:
```
calling_party, called_party, link_strength
z1 z2 1,0000000
z1 z3 1,0000000
z3 z1 1,0000000
z1 z4 1,0000000
z1 z5 1,0000000
z5 z1 1,0000000
z2 z4 1,0000000
z2 z5 1,0000000
z5 z2 1,0000000
z2 z7 1,0000000
z7 z2 1,0000000
z4 z7 1,0000000
z7 z4 1,0000000
z2 z1 1,0000000
```
The following query returns 2 for strong connections between z1 and z2 instead of 1:
```
SELECT user1, user2, 0 AS calling_calling, 0 AS calling_called, 0 AS called_calling, 0 AS called_called, COUNT(*) AS both_directions
FROM (SELECT monthly_connections_test.calling_party AS user1, monthly_connections_test_1.calling_party AS user2
FROM monthly_connections_test INNER JOIN
monthly_connections_test AS monthly_connections_test_1 ON
monthly_connections_test.called_party = monthly_connections_test_1.called_party AND
monthly_connections_test.calling_party < monthly_connections_test_1.calling_party) t1
INNER JOIN monthly_connections_test AS monthly_connections_test_2 ON
t1.user2 = monthly_connections_test_2.called_party
AND t1.user2 < monthly_connections_test_2.calling_party
GROUP BY t1.user1, t1.user2
```
The example results are the following:
```
z1 z2 0 0 0 0 2
z2 z3 0 0 0 0 3
z2 z4 0 0 0 0 1
z1 z5 0 0 0 0 3
z2 z5 0 0 0 0 3
z3 z5 0 0 0 0 2
z1 z7 0 0 0 0 4
z2 z7 0 0 0 0 1
z5 z7 0 0 0 0 1
```
Does anyone know how to modify the query in order to return the number of common neighbors which are connected in both directions (in this example the right value for z1, z2 is 1 as z5 is connected to both z1 and z2 in both directions)?
The problem is, I guess in the part
```
INNER JOIN monthly_connections_test AS monthly_connections_test_2 ON
t1.user2 = monthly_connections_test_2.called_party
AND t1.user2 < monthly_connections_test_2.calling_party
```
The correct result should be the following:
```
z1 z2 0 0 0 0 1
z2 z3 0 0 0 0 1
z2 z4 0 0 0 0 1
z1 z5 0 0 0 0 1
z2 z5 0 0 0 0 1
z3 z5 0 0 0 0 1
z1 z7 0 0 0 0 1
z2 z7 0 0 0 0 0
z5 z7 0 0 0 0 1
```
The join condition has to be formulated in such way that each connection is counted just once (previously included connections have to be excuded at this point) but haven't figured out the solution.
P.S. As the original table consists of 24M records the query has to be written in such way that it return results in the acceptable ammount of time. Trying to write the query with multiple selects at first it took too much time to execute.
| How to count the number of common bidirectional connections in graph | CC BY-SA 2.5 | 0 | 2010-11-27T07:18:04.107 | 2010-11-30T14:08:03.653 | 2010-11-27T12:33:55.230 | 22,996 | 22,996 | [
"sql",
"graph",
"social-networking"
] |
4,290,656 | 1 | 4,290,761 | null | 5 | 5,929 | I'm trying to write code that will traverse an undirected, unweighted graph. Essentially, the method will be passed a node (which knows all its neighbors). The method then has to build a model of the graph as efficiently* by going from node to node and collecting information which nodes link to each other. At the end, the method will have a complete list of all the nodes and all the vertices that connect them.
*The crux of the problem lies in the word efficiently and what I mean by it. Let me direct your attention to this small graph:

Let's say I start at node G. I can either visit C, B, F, D, H, J or E. I want to minimize the amount of times I visit a node and in order to visit a node, I must pass through all nodes on the way to that node.
Example: let's say I decide to visit node C. The next node to visit could be either A, B, F, D, H, J or E. However, to visit any node except for A, I would have to pass through G again which is considered inefficient. And in order to visit A, I would have to visit G and C again and then pass through C and then G to get back to the rest of the graph. So I decide to visit A. This means I have to pass through C again to reach G. Thus, from a logical point of view, it makes sense to visit the C branch last.
However, the program, when it starts at Node G, is unaware that branch C leads to a dead-end. As I write this, I think it might be impossible, but I ask it anyways: is there anyway to traverse this graph as efficiently as possible (as I have previously defined it) using only the information given (i.e. that the program only knows about the nodes its visited and the edges emanating from those nodes? Or should I just go with a variation Dijkstra's algorithm in order to insure I visit every node?
This will all be written in Java if that matters.
| Traversing an undirected, unweighted graph with a twist: minimum visits to each node | CC BY-SA 3.0 | 0 | 2010-11-27T07:54:36.433 | 2013-08-23T20:50:42.020 | 2013-08-23T20:48:26.293 | 603,977 | 522,091 | [
"java",
"algorithm",
"graph",
"graph-theory"
] |
4,291,293 | 1 | 6,291,897 | null | 1 | 1,457 | I have this quick query but since my table is named User (SQL keyword), Linqer (a SQL to LINQ converter) fails to convert the SQL query.
Here is the query:
```
SELECT TOP (100) PERCENT
dbo.[User].OID,
dbo.[User].FirstName + ' ' + dbo.[User].LastName AS [User Name],
COUNT(dbo.AssignedCounty.OID) AS [Counties Assigned],
dbo.UserType.Name AS [User Type]
FROM
dbo.UserType
INNER JOIN dbo.[User] ON dbo.UserType.OID = dbo.[User].UserTypeID
LEFT OUTER JOIN dbo.AssignedCounty ON dbo.[User].OID = dbo.AssignedCounty.UserID
GROUP BY
dbo.[User].OID,
dbo.[User].FirstName + ' ' + dbo.[User].LastName,
dbo.UserType.Name,
dbo.[USER].IsActive
HAVING
(dbo.[User].IsActive = 1)
ORDER BY
[User Name]
```
Can anyone guide me on how to work my way around this? I need the LINQ.

| Linqer won't do this SQL.. :( | CC BY-SA 2.5 | null | 2010-11-27T11:03:21.150 | 2018-03-06T19:16:34.797 | 2018-03-06T19:16:34.797 | 109,122 | 481,656 | [
"linq-to-sql",
"linqer"
] |
4,291,379 | 1 | 4,291,448 | null | 8 | 3,429 | I'm creating a simple 3D engine using the HTML5 canvas object. It is working well but I'd like to implement red/blue anaglyph processing, so that one could really see 3D using red/blue glasses. At the moment I have the 3D object rendered twice, the second time from a camera position just next to the first camera position.
The problem I'm facing is how to combine the two objects rendered to have the correct color for an anaglyph. Now I'm using globalAlpha=0.5 and rendering the first in red and the second in blue. This is however not completely working, as pixels only affected by the red object should stay red, but they are becoming the color between black and red as my background color is black.
When taking a look at a 3D anaglyph creating application, I noticed that red and blue pixel together are calculated as following:
```
255 0 0
0 0 255
------------- +
255 0 255
```
The HTML5 canvas is however calculating all pixels using alpha, so if the background color is black a red pixel becomes dark-red while it should stay red. Basically I need the pixels of the red object only affect the red component of each pixel, and the pixels of the blue object affect only the blue component of each pixel.
I could be working on a per-pixel basis but would this be possible and not performance-breaking? I'm rendering 20 frames a second so I guess it would not be of any practical use. Any suggestions would be appreciated.
I hope this image clarifies the whole:

| Creating anaglyph 3D image on HTML5 canvas | CC BY-SA 3.0 | 0 | 2010-11-27T11:23:53.713 | 2011-09-30T11:06:30.450 | 2011-09-30T11:06:30.450 | 514,749 | 514,749 | [
"javascript",
"colors",
"3d",
"html5-canvas"
] |
4,291,555 | 1 | 4,291,569 | null | 15 | 2,872 | I have a linq query that is showing an error:

I see this error any time I try to access the variable I'm iterating over, if the source of the collection is a linq query. I guess this error is just telling me the variable could change, or something like that?
| Should I be concerned about "access to modified closure" in a linq queries? | CC BY-SA 2.5 | 0 | 2010-11-27T12:07:07.187 | 2017-07-03T13:08:07.503 | null | null | 402,098 | [
"c#",
"linq"
] |
4,291,602 | 1 | null | null | 2 | 1,406 | Suppose we have a simple HTML page:
```
<html>
<body style="background-color: red; width: 100px; height: 100px; border: 1px solid black">
</body>
</html>
```
Browsers (except for IE) would render it like this:

The question is why does the area outside the body element (which itself is 100px wide and 100px high) have a red background?
| Body background-color strange behavior | CC BY-SA 2.5 | null | 2010-11-27T12:19:01.480 | 2012-01-03T20:30:40.073 | 2012-01-03T20:30:40.073 | 861,565 | 430,083 | [
"html",
"css",
"background"
] |
4,292,307 | 1 | null | null | 0 | 191 | Hi am learning C# in VS2008 platform.I have problem with Windows Mobile project which include .NET Compact Framework 3.5.
When I adding a web reference or update it,there is an error comes with "'MSDiscoCodeGenerator' failed".Here a snapshot of error:

When I look in web references,I noticed that there is no References.cs file exists.How can I solve it?I have uninstalled and installed .NET CF 3.5 ,but nothing has changed.My platform is VS2008 running on Win 7 OS.
Note:Sorry for red drawings on snapshot,it's for my company's security restrictions.
My best regards and thanks in advance.
| Creating References.cs problem in VS2008 | CC BY-SA 2.5 | null | 2010-11-27T15:15:11.573 | 2010-11-27T15:44:11.413 | null | null | 457,136 | [
"c#",
".net-3.5"
] |
4,292,606 | 1 | null | null | 1 | 120 | Is there a way to perform with OpenID, not just ?
With OpenID i give an OpenID-enabled web-site my , e.g.:

And then the asks the OpenID provider if i do, in fact, own the identifier "".
But this isn't what i want. i want what Google and Facebook do; which violates the OpenID standard.
A "Google OpenID" enabled site transfers to google. From there i perform a login (identification and authentication), and an is returned to the .
That's what i want. But i want to use OpenID, so i don't have to ask every site on the internet to support my custom security implementation. In other words:
Is there a way to perform with OpenID, not just ?
---
The reason i want this is that my OpenID provider use Windows Cardspace for and . The provider will pop up Windows Cardspace on a secure desktop:

From i can choose an existing identity, or choose to create a new one. The identity has a unique, private, identification number, that can be returned to the relying party.
But without a way to return an , then i cannot use OpenID for .
| Is there a way to use OpenID for identification (not just authentication)? | CC BY-SA 2.5 | null | 2010-11-27T16:25:06.073 | 2010-11-27T18:18:58.387 | 2010-11-27T18:01:50.860 | 12,597 | 12,597 | [
"openid",
"openid-provider",
"cardspace",
"infocard"
] |
4,292,797 | 1 | 4,313,350 | null | -1 | 1,211 | I have a little problem with the silverlight data grid. I wrote a little sample app to show the problem. (You can download it here: [http://rapidshare.com/files/433480041/DataGridValidationTest.zip](http://rapidshare.com/files/433480041/DataGridValidationTest.zip)).
Here you can Add a new Person (has a Name and an Age) to a Collection which is displayed in a DataGrid. I also implemented the validation based on the INotifyDataErrorInfo interface. If you click save, the data is validatet (Name must not be null, Age gt 0).
The validation works fine, but the validation errors are only displayed if I click into one row. After clicking the Save Button, the data is validatet, but not shown in the grid (see picture below):

If I click in the row, to change the data, the validation message is shown (picture below):

If I'm in that row, I have to resolve the problem, cause I'm not able to select another cell.
Does anyone know, how I can show (all) errors directly in the grid?
And can I get out of the cell with the error without resolving the problem?
Thx in advance,
TJ
| DataGrid validation display error problem | CC BY-SA 2.5 | 0 | 2010-11-27T17:08:02.570 | 2010-11-30T11:46:01.567 | null | null | 489,360 | [
"silverlight",
"validation",
"datagrid",
"silverlight-4.0"
] |
4,293,004 | 1 | 4,293,052 | null | 35 | 84,971 | I'm using the following CSS to add checkmarks before my `<li>`list items:
```
ul.checkmark li:before {
content:"\2713\0020";
}
```
And then in the HTML:
```
<ul class="checkmark">
<li>Learn the keyboard at your own pace</li>
</ul>
```
Works great in Safari, Firefox and Chrome, but displays "freak out boxes" on IE8.
Safari:

IE8:
Is there a portable way to specify a good-looking checkmark that will work in all the major browsers?
:
I ended up using a variation on meder's answer below:
```
ul.checkmark li {
background:url("../checkmark.gif") no-repeat 0 50%;
padding-left: 20px;
}
ul.checkmark {
list-style-type: none;
}
```
| proper CSS for generating a checkmark li that works cross-browser | CC BY-SA 2.5 | 0 | 2010-11-27T17:41:45.750 | 2017-01-12T05:19:37.383 | 2010-11-27T19:52:08.387 | 93,995 | 93,995 | [
"html",
"css",
"internet-explorer"
] |
4,292,998 | 1 | 4,335,328 | null | 0 | 1,398 | I've created a Windows Gadget using JQuery to call the oAuth-Service of Yammer: [https://www.yammer.com/oauth/request_token](https://www.yammer.com/oauth/request_token) [(API Documentation)](https://www.yammer.com/api_oauth.html)
```
$.ajax({
url: "https://www.yammer.com/oauth/request_token",
type: "GET",
beforeSend: function (xhr) {
xhr.setRequestHeader("Authorization", oAuthHeader)
},
success: function() { ... },
error: function() { ... }
});
```
The sidebar.exe process shows an security alert, because I'm calling an HTTPS address.
There is no HTTP address for this service. Is there a way to avoid this warning?

Thank's
This is my current configuration. Is there anything special?
```
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1001"=dword:00000001
"1004"=dword:00000003
"1200"=dword:00000000
"1201"=dword:00000003
"1206"=dword:00000000
"1207"=dword:00000000
"1208"=dword:00000000
"1209"=dword:00000000
"120A"=dword:00000003
"120B"=dword:00000000
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000001
"1407"=dword:00000000
"1408"=dword:00000000
"1409"=dword:00000003
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"160A"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1806"=dword:00000000
"1807"=dword:00000000
"1808"=dword:00000000
"1809"=dword:00000003
"180A"=dword:00000000
"180C"=dword:00000000
"180D"=dword:00000000
"180E"=dword:00000000
"180F"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"2000"=dword:00000000
"2005"=dword:00000000
"2100"=dword:00000000
"2101"=dword:00000003
"2102"=dword:00000000
"2103"=dword:00000000
"2104"=dword:00000000
"2105"=dword:00000000
"2106"=dword:00000000
"2200"=dword:00000000
"2201"=dword:00000000
"2300"=dword:00000001
"2301"=dword:00000003
"2400"=dword:00000000
"2401"=dword:00000000
"2402"=dword:00000000
"2500"=dword:00000003
"2600"=dword:00000000
"2700"=dword:00000003
"CurrentLevel"=dword:00000000
"Description"="Your computer"
"DisplayName"="Computer"
"Flags"=dword:00000021
"Icon"="shell32.dll#0016"
"LowIcon"="inetcpl.cpl#005422"
"PMDisplayName"="Computer [Protected Mode]"
"2004"=dword:00000003
"2007"=dword:00000003
"2001"=dword:00000003
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1001"=dword:00000000
"1004"=dword:00000000
"1200"=dword:00000000
"1201"=dword:00000001
"1206"=dword:00000000
"1207"=dword:00000000
"1208"=dword:00000000
"1209"=dword:00000000
"120A"=dword:00000000
"120B"=dword:00000000
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000000
"1407"=dword:00000000
"1408"=dword:00000000
"1409"=dword:00000003
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"160A"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1806"=dword:00000000
"1807"=dword:00000000
"1808"=dword:00000000
"1809"=dword:00000003
"180A"=dword:00000000
"180C"=dword:00000000
"180D"=dword:00000000
"180E"=dword:00000000
"180F"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"2000"=dword:00000000
"2005"=dword:00000000
"2100"=dword:00000000
"2101"=dword:00000003
"2102"=dword:00000000
"2103"=dword:00000000
"2104"=dword:00000000
"2105"=dword:00000000
"2106"=dword:00000000
"2200"=dword:00000000
"2201"=dword:00000000
"2300"=dword:00000001
"2301"=dword:00000003
"2400"=dword:00000000
"2401"=dword:00000000
"2402"=dword:00000000
"2500"=dword:00000003
"2600"=dword:00000000
"2700"=dword:00000003
"CurrentLevel"=dword:00000000
"Description"="Your computer"
"DisplayName"="Computer"
"Flags"=dword:00000021
"Icon"="shell32.dll#0016"
"LowIcon"="inetcpl.cpl#005422"
"PMDisplayName"="Computer [Protected Mode]"
"2007"=dword:00000003
"2004"=dword:00000003
"2001"=dword:00000003
```
| Windows Gadget AJAX Security Warning | CC BY-SA 2.5 | 0 | 2010-11-27T17:40:48.847 | 2010-12-02T13:08:45.837 | 2010-11-28T12:00:43.133 | 1,838,492 | 1,838,492 | [
"jquery",
"ajax",
"security",
"windows-desktop-gadgets"
] |
4,293,037 | 1 | 4,293,059 | null | 2 | 132 | i have two tables,
a) albums

b)pictures

i am using the following query to select the albums.id, albums.cover_picture_id, pictures.url where albums.cover_picture_id = pictures.id, i want to perform the following
`select all the values from albums`, but it should also fetch the pictures.url with reference to albums.cover_picture_id
for the purpose i am using the following SELECT STATEMENT
```
SELECT
albums.id,
albums.cover_picture_id,
pictures.url
FROM albums
JOIN pictures
ON
(
albums.cover_picture_id = pictures.id
)
```
it works fine but i have a problem here, the table entity albums.cover_picture_id may contain the value 0 which does not exist in pictures.id so it will not fetch the value if it finds 0, i would want to fetch all the albums from the albums table even if it finds 0. how do i add the clause in the select statement.
thank you
| help building the database for picture gallery | CC BY-SA 2.5 | null | 2010-11-27T17:51:04.873 | 2010-11-27T17:55:38.487 | 2010-11-27T17:55:38.487 | 226,897 | 396,476 | [
"php",
"mysql",
"database"
] |
4,293,508 | 1 | 4,293,528 | null | 1 | 552 | I have just added a new panel to StatusBar1 and it is called . I want to give it a different name but I can't remember how to do this.

I want to rename to . As you can see from the image I have done this before (see Num, Caps, AM/PM) but I can't remember how I did this. It sucks to get old.
| How do you rename a Status Bar Panel in Delphi 2010 | CC BY-SA 2.5 | null | 2010-11-27T19:36:24.350 | 2010-11-27T21:04:54.593 | 2010-11-27T19:42:39.517 | 282,848 | 195,983 | [
"delphi",
"ide",
"delphi-2010",
"statusbar"
] |
4,293,569 | 1 | 4,294,106 | null | 2 | 1,118 | How can i customize UIDatePicker for Hijri?
Like this

| How can i customize UIDatePicker for Hijri | CC BY-SA 2.5 | 0 | 2010-11-27T19:53:21.843 | 2011-11-04T04:50:44.683 | null | null | 498,137 | [
"objective-c",
"uidatepicker"
] |
4,293,739 | 1 | 5,545,707 | null | 8 | 10,961 | Do you know of any datagrid-like control that also supports a treeview. Like this (but still fully WPF-stylable/templatable):
: UI-virtualization would be another important feature.

| DataGrid that also supports a tree view | CC BY-SA 3.0 | 0 | 2010-11-27T20:26:26.750 | 2014-10-31T11:56:11.883 | 2014-10-31T11:56:11.883 | 650,492 | 4,227 | [
"wpf",
"datagrid",
"treeview"
] |
4,294,287 | 1 | 4,294,348 | null | 3 | 11,054 | ok not just checkbox, but also radio button. The thing is I have a zillion check-boxes & radio-buttons on my form & it looks ugly as hell.
This is not a functionality issue but a purely UI issue. I am looking for some cooler looking ways to implement the same task.
Oh I am using jQuery 1.4.3
[jQuery Plugin](http://code.google.com/p/jquery-checkbox/) Attached the screenshot of the one I am using now. This one I liked because, it kinda looks like a iPhone style but is not an exact clone.

| Cool Alternatives to HTML Checkbox | CC BY-SA 2.5 | 0 | 2010-11-27T22:35:47.367 | 2010-11-30T14:29:39.033 | 2010-11-30T11:27:53.187 | 427,328 | 147,019 | [
"jquery",
"html",
"user-interface",
"checkbox",
"radio-button"
] |
4,294,327 | 1 | 4,294,349 | null | 4 | 1,621 | I'm writing a web spider. It works well except there seems to be a memory leak. The program will run fine for about 15 minutes and then it will crash.
If I monitor it using the "Profile" function in NetBeans, I can see that the memory is increasing over time until eventually I get a `java.lang.OutOfMemoryError` and the program crashes completely.
The image below shows snapshots of the memory of objects used after one minute and after 15 minutes (right before it crashes.) Is there any way to tell where these objects (my main culprits are `byte[]` and `char[]`) are being created or what is still referencing them (and therefor preventing them from being destroyed by the garbage collector)?
Or do I have no idea what I'm talking about?

Thanks, I appreciate the help.
| How can I investigate a memory leak better in NetBeans | CC BY-SA 2.5 | 0 | 2010-11-27T22:46:51.073 | 2010-11-27T23:36:48.680 | 2010-11-27T22:49:43.703 | 427,328 | 450,164 | [
"java",
"memory",
"netbeans",
"memory-leaks",
"profiling"
] |
4,294,345 | 1 | 4,294,938 | null | 0 | 1,806 | I'm currently developing a small photo cms for a friends, she uses Flickr, so that what i use to get the images, or i use a gem called Flickraw. I have to somehow know when the image is a third in a row out of three, and the second out of three, and so on. Here's an screenshot which illustrates what it does.

(sorry about it is danish)
So basicly i want the middle image to be in the middle, the left to the left, and the right to the right. i have lik 8 rows .. and it is dynamicly.
Thank you!
PS. i wan't as much as possible to not use tables.
| Get the image to be placed right ruby on rails | CC BY-SA 2.5 | null | 2010-11-27T22:49:57.530 | 2010-11-28T02:02:40.563 | 2010-11-27T23:08:58.720 | 117,104 | 382,224 | [
"html",
"css",
"image",
"frontend"
] |
4,294,983 | 1 | 4,295,001 | null | 0 | 1,855 | First off, rest assured that I've read every Oracle Java article & tutorial about 6 times now, so if you can help, you'll have to do better than providing a link to an Oracle page. Sorry if that sounds rude.
Apparently I don't know how Strings work. I'm trying to get 4 jButtons to send their value to a string when pushed, so that only the last button that was pushed will record its (name, text, whatever works) in a string or value, so that I can concatenate that value to a jLabel's message.
So there's 2 problems here, I must not have the "Status" buttons set up right, and then I need to be able to take the value and put it in the jLabel.
You can see where I'm stuck by looking at this screenshot:
[http://krisbunda.com/gui2.png](http://krisbunda.com/gui2.png)
See where it says "null" instead of the value of 1 of 4 "status" buttons ("Shipped" or "Loaded", etc.)
```
private void shippedButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
StringBuilder status = new StringBuilder(loadedButton.getText());
}
private void loadedButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
StringBuilder status = new StringBuilder(loadedButton.getText());
}
private void outReadyButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
StringBuilder status = new StringBuilder(outsideReadyButton.getText());
}
private void outNotReadyButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
StringBuilder status = new StringBuilder(outsideNotReadyButton.getText());
}
private void enterButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
Confirmation.setVisible(true);
Confirmation.setBounds(300,200,900,400);
Confirmation.setModal(rootPaneCheckingEnabled);
confirmationLabel.setText("You are about to send this message:"
+ "\n #" + display.getText()+ " is currently " + status);
}
private void confirmationNoButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
Confirmation.dispose();
}
```
Any help is greatly appreciated.
Thanks for the help, here's the workaround I figured out for the "new line" issue: I used 2 JLabels.

and coded like so:
```
private void enterButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
Confirmation.setVisible(true);
Confirmation.setBounds(200,300,1000,400);
Confirmation.setModal(rootPaneCheckingEnabled);
confirmationLabel1.setText("You are about to send this message:");
confirmationLabel2.setText("PS# " + display.getText()+ " is currently " + status);
}
```
and here's a snippet of code to illustrate the fix answered by "Hovercraft full of eels":
```
public class PlanterStatusUI extends javax.swing.JFrame
{
/** Creates new form PlanterStatusUI */
public PlanterStatusUI() {
initComponents();
}
public String status = new String(); {
}
```
```
private void shippedButtonHandler(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
status = shippedButton.getText();
}
```
| How do I get a String to show up in a jLabel? | CC BY-SA 2.5 | null | 2010-11-28T02:19:33.050 | 2010-11-29T02:59:10.260 | 2010-11-29T02:59:10.260 | 230,513 | null | [
"java",
"string",
"swing",
"jbutton",
"jlabel"
] |
4,295,030 | 1 | null | null | 1 | 1,921 | I really hope someone can help me here. I have tried applying SP1 to Visual Studio 2008 and SP1 to Crystal Reports Basic that comes with VB2008 to repair this problem, but have had no success. I've tried setting margins, changing paper sizes and default printers too.. No joy.
Every time I create a ReportViewer and give it a ReportDocument in Windows 7, the report isn't centered in the ReportViewer. If I resize the width of the window to the point you can see the whole page of the report, theres a huge section of background to the left. I was originally coding under Windows XP (the error doesn't occur in XP but does occur on some client systems running Windows 7), but after swapping my coding environment over to Windows 7 this error even occurs at design stage! Please help if you can.
Screenshot:

[http://i55.tinypic.com/53o135.jpg](http://i55.tinypic.com/53o135.jpg)
As you can see in this screenshot, there is no Crystal Report Viewer background visible on the right, yet there is already a large section visible on the left. Once the window is enlarged further, the left becomes even larger still.
| Crystal Reports with Windows 7 - Report displays with a huge left margin inside viewer | CC BY-SA 3.0 | null | 2010-11-28T02:37:51.843 | 2013-07-26T06:33:02.497 | 2011-12-01T08:14:01.293 | 234,976 | 522,679 | [
"windows-7",
"crystal-reports"
] |
4,295,106 | 1 | null | null | 2 | 1,985 | I'm sending an ajax request to my server that updates some data there. Request is sent with jquery's `get` function. On success I'd like te perform some action, but unfortunately whole operation fails since server gives no response, even though firebug clearly shows 200 status:

What more, when I enter this address with browser, also everything looks fine. Any ideas why it may not be working properly ? Here's my js:
```
$(".interests-delete").live("click", function(){
var id = $(this).attr('title');
var user_id = "100000717262400";
$.ajax({
type: "GET",
url: "http://dev1.gecoloco.com/rte/ilike.php?",
data: "u=" + user_id + "&d=" + id,
dataType: "json",
success: function(response, status){
alert(status);
console.log(response);
getLikes();
}
});
return false;
});
```
| Sending GET to server gives no response (but status returned) | CC BY-SA 2.5 | null | 2010-11-28T03:04:11.810 | 2017-01-17T09:42:58.993 | null | null | 463,186 | [
"jquery",
"ajax",
"get",
"xmlhttprequest",
"response"
] |
4,295,660 | 1 | 4,295,705 | null | 0 | 144 | I am developing on Windows 7 platform using my HTC HERO.
The original firmware is 1.5. I've heard that 2.2 is new and is faster than 1.5, so I updated the firmware to 2.2. (There are quiet a few concepts here, like SPL, Recovery, ROM, Radio) I think I only upgraded ROM.
The phone works fine. However, my windows 7 cannot find the device anymore. Also `adb devices` cannot find the device either.
(I didn't backup my old ROM, and I've tried to flash a few 2.2 ROMs available online, none of them could be found by Windows 7.)
Can anyone give me some hint on solving this problem. Thanks a lot.
UPDATE:
I try to find the official ROM. E.g. [http://www.htc.com/uk/SupportViewNews.aspx?dl_id=671&news_id=254](http://www.htc.com/uk/SupportViewNews.aspx?dl_id=671&news_id=254). But when I input my SN number, it says that this update does not work for my phone. It seems that there are a lot of HEROs there and I don't know which HERO is my phone.
In Windows 7, the system can find the device, but says that cannot install the driver correctly.
When I press BACK + Power Off key, I can enter recover mode and Windows can connects to the phone correctly. And also `adb devices` displays:
```
D:\android\android-sdk-windows-old\tools>adb devices
List of devices attached
HT9BJL904379 recovery
```

USB VID:

I am done! Thanks for @Chris Stratton's hint!
I use the solution here:
[http://alt236.blogspot.com/2010/09/adb-will-not-detect-phone-after-rom.html](http://alt236.blogspot.com/2010/09/adb-will-not-detect-phone-after-rom.html)
| Cannot connect to phone after upgrading the firm ware | CC BY-SA 3.0 | null | 2010-11-28T06:17:43.867 | 2012-01-12T13:01:03.817 | 2012-01-12T13:01:03.817 | 1,288 | 183,828 | [
"android",
"firmware"
] |
4,295,758 | 1 | 4,295,803 | null | 0 | 751 | I have set my compression like this for my on my iphone app (I use Monotouch, but it's a 1:1 API match):
```
var req = new NSMutableUrlRequest (new NSUrl (str), NSUrlRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, 20)
req["Accept-Encoding"] = "compress, gzip";
```
When I download a resource (REST xml file) and monitor the bandwidth in the iPhoneSimulator, it indicates that the file is being downloaded at its raw file size (20 meg, zipped should be 3 meg-ish).
On my IIS 6 server I have set compression universally. Using a browser to the file works fine with compression when I monitor its bandwidth usage.
Ideas why?

| iphone NSMutableUrlRequest Compression | CC BY-SA 2.5 | null | 2010-11-28T07:00:44.537 | 2010-11-28T07:30:13.313 | null | null | 172,861 | [
"iphone",
"nsmutableurlrequest"
] |
4,296,188 | 1 | 4,314,998 | null | 1 | 2,364 | I am trying to put some triangles & squares on Android screen in certain way as shown in following figure. I am putting them separately because all shapes are clickable.

I used RelativeLayout (other layouts I tried, but they aren't working). Following is xml code for the same:
```
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:id="@+id/LeftTopTriangle"
android:src="@drawable/a_triangle_towards_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="true"
android:layout_alignTop="true"
android:clickable="true" />
<ImageView
android:id="@+id/TopLeftTriangle"
android:src="@drawable/a_triangle_towards_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="true"
android:layout_alignTop="true"
android:clickable="true" />
<ImageView
android:id="@+id/LeftBottomTriangle"
android:src="@drawable/a_triangle_towards_right"
android:layout_below="@id/LeftTopTriangle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true" />
```
Here I am trying only 3 triangles, 2 on the left-top corner and one on the left-bottom corner. Now whatever, I trial-error, somehow the bottom triangle never shows up.
I end up as following:

Any one have idea, how to achieve it ?
[P.S.: Strangely in the xml file, I am getting the same figure even removing following lines from both the ImageViews
android:layout_alignLeft="true"
android:layout_alignTop="true"
]
| Android: RelativeLayout problem with xml | CC BY-SA 2.5 | null | 2010-11-28T09:36:26.090 | 2010-11-30T14:50:29.063 | 2010-11-28T09:44:41.317 | 514,235 | 514,235 | [
"android-layout",
"android-image",
"android-imageview"
] |
4,296,196 | 1 | 4,297,902 | null | 2 | 2,832 | The following query counts the common neighbors of two nodes in the graph:
```
DECLARE @monthly_connections_test TABLE (
calling_party VARCHAR(50)
, called_party VARCHAR(50))
INSERT INTO @monthly_connections_test
SELECT 'z1', 'z2'
UNION ALL SELECT 'z1', 'z3'
UNION ALL SELECT 'z1', 'z4'
UNION ALL SELECT 'z1', 'z5'
UNION ALL SELECT 'z1', 'z6'
UNION ALL SELECT 'z2', 'z1'
UNION ALL SELECT 'z2', 'z4'
UNION ALL SELECT 'z2', 'z5'
UNION ALL SELECT 'z2', 'z7'
UNION ALL SELECT 'z3', 'z1'
UNION ALL SELECT 'z4', 'z7'
UNION ALL SELECT 'z5', 'z1'
UNION ALL SELECT 'z5', 'z2'
UNION ALL SELECT 'z7', 'z4'
UNION ALL SELECT 'z7', 'z2'
SELECT monthly_connections_test.calling_party AS user1, monthly_connections_test_1.calling_party AS user2, COUNT(*) AS calling_calling, 0 AS calling_called,
0 AS called_calling, 0 AS called_called, 0 AS both_directions
FROM @monthly_connections_test AS monthly_connections_test INNER JOIN
@monthly_connections_test AS monthly_connections_test_1 ON
monthly_connections_test.called_party = monthly_connections_test_1.called_party AND
monthly_connections_test.calling_party < monthly_connections_test_1.calling_party
GROUP BY monthly_connections_test.calling_party, monthly_connections_test_1.calling_party
```
For the following graph

it returns the number of common neighbors which are called by user1 AND user2 so for example the number of neighbors called by z1 AND z2 it returns 2 as both call z4 and z5.
Another thing I would like to count is the number of all neighbors of two nodes (users) which are called either by user1 or user2 so for example for the pair (z1, z2) the query should return 5 (user z1 calls z2, z3, z4, z5, z6 and user z2 calls z1, z4, z5, z7 - the connections between z1 and z2 have to be exluded as (z1, z2) is the observed pair and the number of elements in (z3, z4, z5, z6) U (z4, z5, z7) is 5).
Does anyone know how to modify/create the join query for the above logic?
Thank you!
| How to use JOIN instead of UNION to count the neighbors of "A OR B"? | CC BY-SA 2.5 | 0 | 2010-11-28T09:39:26.923 | 2010-11-28T17:09:28.397 | 2010-11-28T14:51:41.970 | 22,996 | 22,996 | [
"sql",
"sql-server-2008"
] |
4,296,654 | 1 | 4,297,116 | null | 3 | 10,980 | I have a servlet which receive some parameter from the client ,then do some job.
And the parameter from the client is Chinese,so I often got some invalid characters in the servet.
For exmaple:
If I enter
```
http://localhost:8080/Servlet?q=中文&type=test
```
Then in the servlet,the parameter of 'type' is correct(test),however the parameter of 'q' is not correctly encoding,they become invalid characters that can not parsed.
However if I enter the adderss bar again,the url will changed to :
```
http://localhost:8080/Servlet?q=%D6%D0%CE%C4&type=test
```
Now my servlet will get the right parameter of 'q'.
## What is the problem?
`UPDATE`
BTW,it words well when I send the form with post.
WHen I send them in the ajax,for example:
```
url="http://..q='中文',
xmlhttp.open("POST",url,true);
```
Then the server side also get the invalid characters.
It seems that just when the Chinese character are encoded like %xx,the server side can get the right result.
That's to say `http://.../q=中文` does not work,
`http://.../q=%D6%D0%CE%C4` work.
But why "`http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&q=%E4%B8%AD%E6%96%87&btnG=Google+%E6%90%9C%E7%B4%A2&aq=f&aqi=&aql=&oq=&gs_rfai=`" work?

| encoding problem in servlet | CC BY-SA 2.5 | 0 | 2010-11-28T12:08:11.647 | 2010-11-29T05:48:26.283 | 2010-11-29T05:48:26.283 | 306,719 | 306,719 | [
"java",
"unicode",
"servlets",
"character-encoding"
] |
4,296,824 | 1 | 4,298,929 | null | -1 | 999 | I am creating a profile page, and I would like to create a followers list ( similar to twitter )
Max 18 images across , I think 24px x 24px each icon. With padding as per the image attached.
What would be the best method for reproducing this using css. That is easily propagated using php from a db.
I am looking for cleanest method. Suggestions please.
Perhaps even with a preloader thrown in for good measure, as we will be dealing with 1000's of different images.
Cheers
Well this is what I had thought of.
```
<ul class="icons">
<li><img1></li>
<li><img2></li>
<li><img3></li>
<li><img4></li>
```
then in the css
```
ul.icons li {display: inline;}
```
But would need to add 2 rows, so was thinking two layers of `<ul>...</ul>`
The issue, is I would like that if 20 are displayed then we show 2 rows of 10, rather than one row of 18 and one of 2.
But thats as clean as I think It could be done, but... I didnt know if there was a programatic way of using php to repeat the `<li> ... </li>` tags based on a loop
Plus wanted to tweak in image preloader, and I have seen these, just not sure what they are called. Uses js to handle the loading.
| creating a profile page, need help ( css ) | CC BY-SA 2.5 | null | 2010-11-28T12:56:00.247 | 2010-11-29T02:04:27.763 | 2010-11-28T20:26:58.133 | 501,173 | 501,173 | [
"php",
"css"
] |
4,297,444 | 1 | 4,297,532 | null | 2 | 766 | The code is pretty much straightforward:
```
<TextBlock TextAlignment="Center" Text="{Binding TimeAgo}" Foreground="White" FontSize="12" FontFamily="Calibri" Background="Transparent"/>
```
As far as I know, WPF has native support for Calibri font. However, the font renders differently on XP and on Vista/7:
XP:

Vista:

My main issue is with the font's size (It renders bigger on XP) since I have dedicated, limited space for the text.
I am currently using UseLayoutRounding="True" but removing it didn't make any difference. I'm also using:
```
<ResourceDictionary Source="/PresentationFramework.Aero, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />
```
But removing it also didn't make any difference (In terms of the font's size).
| WPF: font (size) renders differently on XP and Vista/7 | CC BY-SA 2.5 | 0 | 2010-11-28T15:17:48.510 | 2010-11-28T15:35:26.180 | null | null | 478,442 | [
"wpf",
"fonts",
"windows-xp",
"rendering",
"font-size"
] |
4,297,439 | 1 | 4,297,836 | null | 1 | 259 | ```
public void Delete(Dinner dinner)
{
List<RSVP> rsvps = dinner.RSVPs.ToList();// This clone looks inefficient.
foreach (RSVP rsvp in rsvps)
entities.RSVPs.DeleteObject(rsvp);
entities.Dinners.DeleteObject(dinner);
}
```

Deleting a parent row by deleting the child rows referencing it first through the child row clones looks inefficient.
Duplicating the child rows will consume huge resources I think.
If so, what is the better way?
```
namespace NerdDinner.Models
{
public class DinnerRepository
{
private NerdDinnerEntities entities = new NerdDinnerEntities();
public IQueryable<Dinner> FindAllDinners()
{
return entities.Dinners;
}
public IQueryable<Dinner> FindUpcomingDinners()
{
return from dinner in entities.Dinners
where dinner.EventDate > DateTime.Now
orderby dinner.EventDate
select dinner;
}
public Dinner GetDinnerByID(int DinnerID)
{
return entities.Dinners.FirstOrDefault(d => d.DinnerID == DinnerID);
}
public void Add(Dinner dinner)
{
entities.Dinners.AddObject(dinner);
}
public void Delete(Dinner dinner)
{
//List<RSVP> rsvps = dinner.RSVPs.ToList();
//foreach (RSVP rsvp in dinner.RSVPs)
// entities.RSVPs.DeleteObject(rsvp);
entities.Dinners.DeleteObject(dinner);
}
public void Save()
{
entities.SaveChanges();
}
}
}
```
| In EF, is it efficient to delete a parent row by deleting the child rows referencing it first through the child row clones? | CC BY-SA 2.5 | 0 | 2010-11-28T15:16:31.983 | 2010-11-28T16:54:40.580 | 2010-11-28T16:54:40.580 | 397,524 | 397,524 | [
"c#",
"entity-framework",
"c#-4.0",
"entity"
] |
4,297,546 | 1 | 5,340,032 | null | 1 | 1,126 | When the the combo contains lots of items, the combo is dropped down and you scroll the drop down list up and down, the items in the drop down get all messed up - it looks like they are overwriting each other. I am running on 64 bit windows 7 with deve studio 2008. I didn't have this problem on windows xp. Have reduced the code to a simple example which reproduces the problem.
```
public class ODComboBox : ComboBox
{
protected override void OnDrawItem(
DrawItemEventArgs e)
{
if (e.Index == -1) {
e.DrawBackground();
e.DrawFocusRectangle();
return;
}
string text = Items[e.Index].ToString();
e.Graphics.SetClip(e.Bounds);
e.DrawBackground();
e.Graphics.DrawString(text, Font, new SolidBrush(ForeColor), e.Bounds);
e.DrawFocusRectangle();
}
}
```
The draw mode of the comob is set to OwnerDrawFixed and here is the OnLoad method from the host from.
```
private void Form1_Load(object sender, EventArgs e)
{
for (int i = 0; i < 50; ++i) {
cobmob1.Items.Add("AAAAAAAAAAAAAAAAAAAAAAAA");
cobmob1.Items.Add("BBBBBBBBBBBBBBBBBBBBBBBB");
}
cobmob1.DropDownWidth = 500;
}
```

| Owner Draw Combo Box display messed up while scrolling on Windows 7 | CC BY-SA 2.5 | 0 | 2010-11-28T15:38:27.580 | 2011-09-29T18:28:56.783 | 2011-03-05T12:04:27.743 | 276,779 | 276,779 | [
".net",
"winforms"
] |
4,297,590 | 1 | null | null | 2 | 565 | I've trying to setup cache money for rails 3.0, but i am getting the following error
Gemfile

environment.rb

config/initializers/cache_money.rb

| ngmoco cache money rails 3 ruby 1.9.2 uninitialized constant CacheMoney | CC BY-SA 2.5 | 0 | 2010-11-28T15:50:32.157 | 2011-02-24T10:23:59.663 | null | null | 328,787 | [
"ruby-on-rails-3"
] |
4,297,629 | 1 | 4,357,048 | null | 2 | 2,103 | where i can change this stupid formatting, i look at all options in Editor/Format but didn't find anything useful!
When i just wrote comment block:

and when i press SHIFT+ALT+F or Source/Format in menu comment block is crashed, and all beauty of phpDoc comment is destroyed :(

| Netbeans phpdoc/comment formatting | CC BY-SA 2.5 | null | 2010-11-28T15:59:01.643 | 2010-12-05T02:33:57.423 | null | null | 217,128 | [
"netbeans"
] |
4,297,667 | 1 | 4,305,432 | null | -2 | 94 | how i can create the this layout 
| layout in android | CC BY-SA 2.5 | null | 2010-11-28T16:09:13.343 | 2012-03-31T02:04:13.367 | 2012-03-31T02:04:13.367 | 1,149,919 | 510,992 | [
"android",
"android-layout",
"android-listview"
] |
4,298,062 | 1 | 4,298,817 | null | 1 | 6,089 | I'm using a Listview Control with two columns, one is text and one has a rectangle init.
When an Item is selected I want the content of the item to be white (both the text in column 1 and the rectangle in column 2) but what happens is that only the text is getting white.
This is my XAML:
```
<Window x:Class="Selection.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" >
<Grid>
<Grid.Resources>
<ResourceDictionary>
<Style x:Key="@ListViewItemStyle" TargetType="{x:Type ListViewItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType='{x:Type ListViewItem}'>
<Grid SnapsToDevicePixels="True" Margin="0">
<Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" />
<GridViewRowPresenter x:Name="Content" TextBlock.Foreground="{TemplateBinding Foreground}"
Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter Property="TextElement.Foreground" Value="White" TargetName="Content" />
<Setter Property="Background" Value="DarkGray" TargetName="Bd"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
<Condition Property="Selector.IsSelectionActive" Value="false" />
</MultiTrigger.Conditions>
<Setter Property="Background" TargetName="Bd"
Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
</MultiTrigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<DataTemplate x:Key="@TextCellTemplate">
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
<DataTemplate x:Key="@TrubleCellTemplate">
<Rectangle Width="20" Height="20" Fill="Black"></Rectangle>
</DataTemplate>
</ResourceDictionary>
</Grid.Resources>
<ListView ItemsSource="{Binding Persons}" Style="{DynamicResource @ListView}" ItemContainerStyle="{DynamicResource @ListViewItemStyle}">
<ListView.View>
<GridView>
<GridViewColumn Width="40" CellTemplate="{DynamicResource @TextCellTemplate}" />
<GridViewColumn Width="131" CellTemplate="{DynamicResource @TrubleCellTemplate}" />
</GridView>
</ListView.View>
</ListView>
</Grid>
```
This is the code behind:
```
public partial class MainWindow : Window
{
public List<Person> Persons { get; set; }
public MainWindow()
{
Persons = new List<Person> {new Person {Name = "Ashton"}};
DataContext = this;
InitializeComponent();
}
}
public class Person
{
public string Name { get; set; }
}
```

| WPF - ListView Selection style | CC BY-SA 2.5 | 0 | 2010-11-28T17:38:22.223 | 2011-08-12T20:26:46.210 | 2011-08-12T20:26:46.210 | 305,637 | 138,627 | [
"wpf",
"triggers",
"styles"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.