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
sequence |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,909,304 | 1 | 3,909,402 | null | 0 | 673 | I want to create a window that pops up like in the email app when you hit New Email.
Does anyone has a good tutorial or sample code of how to do this?
This is the screen I want:

| How to create a window like the e-mail app that pops up | CC BY-SA 2.5 | 0 | 2010-10-11T19:25:11.010 | 2010-10-11T19:42:00.507 | 2010-10-11T19:31:29.560 | 139,010 | 387,556 | [
"xcode",
"ipad"
] |
3,909,762 | 1 | 3,919,947 | null | 2 | 12,579 | 
I would like to customize the labels on the datapoints below so they would render as (using first datapoint on the chart as an example) :
4:10 - 4:40
yellow class
| set labels on datapoints using mschart | CC BY-SA 2.5 | null | 2010-10-11T20:37:18.827 | 2011-09-16T11:56:53.370 | null | null | 185,961 | [
"c#",
"asp.net",
"charts",
"mschart"
] |
3,909,833 | 1 | 3,909,868 | null | 1 | 1,260 | I have a main menu screen with a simple ListView that contains "links" to further screens in my app (Browse, Bookmarks, Settings, About, etc.). Underneath the ListView there is a TextView (more accurately, a TextSwitcher that rotates TextViews) that changes every 10 seconds to display a new "tip".

In portrait mode, this works fine. There are my five list items in the ListView , and my tip label underneath. However, when I switch to landscape mode, the ListView is taller than the screen. The ListView scrolls normally, but I cannot scroll past the end of the ListView to see the TextView underneath.
I have tried every possible combination of Layouts, wrappers, ScrollViews, and layout_height parameters and I simply cannot get it to behave.
Here is the simplest code I can use to get the result pictured above:
```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:orientation="vertical"
android:layout_height="fill_parent">
<LinearLayout android:id="@+id/ListLayout"
android:layout_width="fill_parent" android:layout_height="wrap_content">
<ListView android:id="@id/android:list" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1">
</ListView>
</LinearLayout>
<LinearLayout android:id="@+id/TipLayout"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_below="@+id/ListLayout">
<TextSwitcher android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/TipSwitcher">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textSize="7pt"
android:id="@+id/Tip1TextView" android:text="Tip: Hello, Android!"></TextView>
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tip: This is the second TextView in the TipSwitcher!"
android:id="@+id/Tip2TextView" android:textSize="7pt"></TextView>
</TextSwitcher>
</LinearLayout>
</RelativeLayout>
```
Like I've said, I've already tried so many different combinations that I can't list them, and for the most part I was randomly inserting XML in an attempt to get something to work the way I wanted. So I'd greatly appreciate suggestions as to how I would go about doing this the right way.
Thanks.
EDIT: Something I forgot to mention, this may or may not be relevant. My MainMenuActivity is extending ListActivity. According to the docs, "ListActivity has a default layout that consists of a single, full-screen list in the center of the screen." But, "If you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate()." So I don't think the ListActivity is interfering.
| How can I get a ListView and TextView to scroll as one unit when content is taller than the screen height? | CC BY-SA 2.5 | 0 | 2010-10-11T20:47:22.660 | 2010-10-11T20:51:44.237 | null | null | 143,987 | [
"java",
"android",
"xml",
"user-interface"
] |
3,909,938 | 1 | 3,910,383 | null | 1 | 930 | I am in the process of creating tabbed navigation where the route location can vary. The parameter used to render the tabs should be based on the presently viewed data (which when it is a user, may not be the logged in user).
In the example image this is a user. Therefore, if I am looking at Andrew Steele then the links should be contextual to Andrew Steele (Andrew's summary, computers, accounts etc.). When I am looking at Bruce Hamilton the links should be contextual to Bruce Hamilton (Bruce's summary, computers, accounts etc.).

I've solved this by sticking the necessary parameter value in each ViewModel and then passing the value onto a partial to render the links; this feels kludgey. I'd prefer to not shove the linking parameter data into each ViewModel. It would seem reasonable to use `Html.Action` or `Html.RenderAction` combined with a ViewData Dictionary value, but I tend to shy away from using "magic strings" where possible.
Is there a better way to get the parameter value to the view that I am missing?
| ASP.NET MVC navigation route that changes based on viewed data | CC BY-SA 2.5 | 0 | 2010-10-11T21:01:57.707 | 2010-10-12T19:03:27.980 | 2010-10-11T21:49:18.373 | 61,654 | 61,654 | [
"c#",
"asp.net-mvc",
"asp.net-mvc-2"
] |
3,910,150 | 1 | 3,915,282 | null | 0 | 1,042 | I'm currently trying to debug a problem in Flex 4, in where a component is firing a custom event with its local coordinates translated to global coordinates (i.e. localToGlobal) and another component (in a separate "branch" of the display list hierarchy) recieves such event and uses it as a part of an animation, via globalToLocal. It should be a simple, coordinate-transformation system but it is not working.
I'm trying to debug this, by using AS3's drawing API to draw circles where the Points should be.
Here is the dispatching component (Component A in the image below):
```
// Check where is the local x,y
this.graphics.beginFill(0x0000FF);
this.graphics.drawCircle(this.x,this.y, 10);
// Draw another circle in the "global" coordinates.
// pGC = Point in Global Coordinates.
var p: Point = new Point ( this.x, this.y);
var pGC:Point = Application(FlexGlobals.topLevelApplication).globalToLocal(p);
Application(FlexGlobals.topLevelApplication).graphics.beginFill( 0xFF0000)
Application(FlexGlobals.topLevelApplication).graphics.drawCircle(pGC.x,pGC.y,50);
// Dispatch the event
dispatchEvent( new ComponentLocationEvent( this.localToGlobal(this.x,this.y) );
```
Here is the "listening" component (component B in the image below):
```
private var value_x:int;
private var value_y:int;
private function onComponentLocationData( pointInGlobalCoordinates:Point):void
{
var pointLocalCoord:Point = this.childContainer.globalToContent(
pointInGlobalCoordinates);
this.value_x = pointLocalCoord.x;
this.value_y = pointLocalCoord.y;
// More debugging circles
this.graphics.beginFill(0x00FF00, 0.5);
this.graphics.drawCircle(pointLocalCoord.x,pointLocalCoord.y);
}
```
One would expect the three circles (Red, Green and Blue) to correspond, each being drawn just before the event dispatch and one (green) on event listening. What actually happens is:
- - -
Does anyone has any clue on what could I try here? This was my approach to debug this error, feel free to point out what I am doing wrong.
EDIT: Here is an image that explains the relationship between components and where are the dots being drawn:

| drawing API on Flex 4 stage? | CC BY-SA 2.5 | null | 2010-10-11T21:38:40.507 | 2010-10-12T13:37:20.153 | 2010-10-11T21:55:14.787 | 405,863 | 405,863 | [
"actionscript-3",
"flex4"
] |
3,910,184 | 1 | 3,910,797 | null | 2 | 1,007 | The Contacts app on the iPhone seems to use a grouped UITableView with what looks like an image outside the table and rows of text adjacent to the image are shifted. Like this:

How do you go about creating a layout like this with the first three rows placed at a different X position than the other rows?
I tried modifying the cell's frame.origin.x and frame.size by overriding the
initWithStyle:reuseIdentifier method inside my custom UITableViewCell class but no luck.
```
@implementation MyCustomCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
{
CGSize offset = CGSizeMake(30, 30);
CGRect originalFrame = self.frame;
CGFloat newX = originalFrame.origin.x + offset.width;
CGFloat newWidth = originalFrame.size.width - offset.width;
CGRect newFrame = CGRectMake(newX, originalFrame.origin.y,
newWidth, originalFrame.size.height);
self.frame = newFrame;
}
return self;
}
@end
```
| Shifting placement of rows in a grouped UITableView | CC BY-SA 2.5 | 0 | 2010-10-11T21:45:49.717 | 2011-05-20T20:06:40.477 | null | null | 378,510 | [
"iphone",
"uitableview"
] |
3,910,296 | 1 | 3,910,323 | null | 1 | 1,596 | lets make the simpliest application:




result:

ok. it works.
lets add some SDL with default dynamic linking here!




result:

works great. at stdout.txt we can see "puchuu"
lets change our makefile a little.
just group 2 object files to the static lib:

result:

Who is to blame?
Me or mingw developers?
is it clear to send to it's bug tracker?
| mingw. how to use static and dynamic linking both | CC BY-SA 2.5 | 0 | 2010-10-11T22:07:06.803 | 2010-10-11T22:12:44.137 | null | null | 404,949 | [
"c++",
"c",
"build",
"g++",
"mingw"
] |
3,910,353 | 1 | 3,910,390 | null | 12 | 2,139 | This code outputs `D`. The question is HOW?
```
alert([][(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]()[([][(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]()+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(![]+[])[+!+[]]](+[]+[+[]])[+!+[]]);
```
I understand that `![]` is evaluated to `false` or `0` and so on, but how does it execute? And how can I convert this to something humans can understand and not only Jon Skeet?
Can someone break some piece of this code and explain me what's happening?
| Obfuscated javascript code with binary values? | CC BY-SA 2.5 | 0 | 2010-10-11T22:20:19.697 | 2010-10-11T22:54:44.903 | null | null | 340,760 | [
"javascript",
"obfuscation"
] |
3,910,536 | 1 | 3,910,574 | null | 0 | 336 | All my submit buttons have different size and it looks really weird. At least I want them to have the same height. Look at the pictures below.
Firefox:

IE7:

Chrome & IE8 (how i want it):

My CSS looks like this:
```
input, select, textarea {
margin-bottom:3px;
}
input, select, button, textarea {
font-family: Tahoma, Verdana, sans-serif, FreeSans;
font-size:11px;
}
input[type=submit] {
padding:1px 3px;
}
```
Anyone know how i can fix this?
## UPDATE
Width problem fixed. Problem now: The height of the button in Firefox. Any tips?
| Why does Firefox have a 3px wide border on input[type=submit]? | CC BY-SA 2.5 | null | 2010-10-11T23:00:26.230 | 2010-10-11T23:36:24.040 | 2010-10-11T23:36:24.040 | 397,195 | 397,195 | [
"css",
"input",
"submit"
] |
3,910,601 | 1 | null | null | 7 | 1,034 | i have a table structure like this...

When I import this into entity framework it looks like this...

What I need to do is build a query from LINQ that will return a list of every unique store, populated with a list of people who like that store. (easy, right?)
THE CATCH:
I need to filter the list to the person's list of friends that get passed in as a List to the linq query (comes from facebook, so relationships are not in db)...
ONE MORE THING:
i need to return if the store is a favorite of the person requesting the data (the `uid` as shown below)
OK, ANOTHER THING:
I need to return the list sorted by the highest number of friends who like an item to lowest (the ui below is wrong in that regard)
Here is the method signature of the linq query i need
```
public List<Store> GetTopStoresFilteredByFriends
(int uid, List<int> friends, int size = 10){
}
```
To return a user interface that looks like this...

| Many to many ordered by count of relationship (Entity Framework, Linq) | CC BY-SA 2.5 | 0 | 2010-10-11T23:16:03.567 | 2010-10-12T04:01:57.160 | 2010-10-12T01:58:49.373 | 207,282 | 207,282 | [
"c#",
"entity-framework",
"linq-to-entities"
] |
3,910,621 | 1 | 3,910,643 | null | 0 | 1,692 | What is the problem(package org.apache.commons.codec.binary.Base64 does not exist.)?
| I have a Netbeans project written in Java which uses commons codec. I get next error | CC BY-SA 2.5 | null | 2010-10-11T23:20:28.440 | 2010-10-11T23:25:28.463 | null | null | 409,468 | [
"java",
"netbeans",
"apache-commons-codec"
] |
3,911,271 | 1 | 3,911,487 | null | 0 | 158 | I'm using SQL Server 2000.
My SP produces the follwing output:

It sums up all `Taxable Earnings` (top result) and subtract it by the sum of `Deductible Expenses` (middle result) to get the `Net Taxable Income` of an employee.
How will I get the value of Net Taxable Income only?
Here's my SP
```
/*
DECLARE @NET_TAXABLE_INCOME AS NUMERIC(19, 2)
EXEC NET_TAXABLE_INCOME '000001', '10/15/2010', @NET_TAXABLE_INCOME OUTPUT
SELECT @NET_TAXABLE_INCOME
*/
CREATE PROC [dbo].NET_TAXABLE_INCOME
(
@EMPLOYEENO AS VARCHAR(10),
@PAYROLLPERIOD_INPUT AS DATETIME,
@NET_TAXABLE_INCOME AS NUMERIC(19, 2) = NULL OUTPUT
)
AS
BEGIN
DECLARE @TAXABALEEARNINGS AS NUMERIC(18, 2)
EXEC TAXABLE_EARNINGS_BREAKDOWN @EMPLOYEENO, @PAYROLLPERIOD_INPUT, @TAXABALEEARNINGS OUTPUT
DECLARE @DEDUCTIBLEEXPENSES AS NUMERIC(18, 2)
EXEC DEDUCTIBLE_EXPENSES_BREAKDOWN @EMPLOYEENO, @PAYROLLPERIOD_INPUT, @DEDUCTIBLEEXPENSES OUTPUT
SET @NET_TAXABLE_INCOME = @TAXABALEEARNINGS - @DEDUCTIBLEEXPENSES
SELECT @NET_TAXABLE_INCOME AS [NET_TAXABLE_INCOME]
END
```
Is there a SQL statement that will cause to not to print the result of `EXEC`?
| How to get only one set of data from my Stored Procedure? | CC BY-SA 2.5 | null | 2010-10-12T02:28:32.470 | 2010-10-12T03:28:24.387 | 2010-10-12T02:45:44.193 | 372,871 | 396,335 | [
"c#",
"sql",
"sql-server-2000"
] |
3,911,460 | 1 | 3,956,185 | null | 0 | 2,976 | I have an excel file (xlsx) containing a table :

Once I launched my ssis task (successfully) to insert data in it, it is actually append after the table :

My expected result:

So I am looking for a way to insert into the table and expand it with the data. I hope someone could help me.
| How to export data to an Excel 2007 table using SSIS? | CC BY-SA 3.0 | 0 | 2010-10-12T03:20:29.820 | 2011-08-06T02:45:42.327 | 2011-08-06T02:45:42.327 | null | 303,726 | [
"sql-server",
"dts",
"ssis"
] |
3,911,819 | 1 | 3,912,007 | null | 18 | 57,024 | When i try to set the Dataset in SSRS IDE, i get the error you see in the snapshot.
The query works totally fine in SQL Server Management Studio, i wonder where did i go wrong?!
The connection to DB is well established.

---
OPTIONAL:
In case you want to have a look at my query (its too long), i checked it very well. Nothing wrong in it:
```
SELECT Customer.customerID, Customer.companyName, CustomerInvoice.dueDate, CustomerInvoice.cuInvoiceID, CustomerQuote.PONumber, Product.productName, CASE WHEN (SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 1 THEN CustomerQuoteProducts.unitPrice * 1.15
WHEN (SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 THEN CustomerQuoteProducts.unitPrice
ELSE CustomerQuoteProducts.unitPrice
END AS "unitPrice",
CustomerQuoteProducts.qty, CustomerQuoteProducts.isTaxPaid, PaymentMethod.paymMethDesc, CustomerInvoice.customerQuoteID, CustomerInvDetail.paidDate, CustomerInvDetail.clearedDate,
CustomerInvDetail.notes, CustomerInvDetail.sentDate, PaymentExpected.payExpectedTitle, PaymentStatus.paymentStatusTitle,
CASE WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 1 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN (((CustomerQuoteProducts.unitPrice * 1.15) * 1.15) * CustomerQuoteProducts.qty) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 1 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN ((CustomerQuoteProducts.unitPrice * 1.15) * 1.15) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN ((CustomerQuoteProducts.unitPrice * CustomerQuoteProducts.qty) * 1.15) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN (CustomerQuoteProducts.unitPrice * 1.15) WHEN
(SELECT Count(isTaxPaid)
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN ((CustomerQuoteProducts.unitPrice * 1.15) * CustomerQuoteProducts.qty) WHEN
(SELECT Count(isTaxPaid)
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid > 0 THEN (CustomerQuoteProducts.unitPrice * 1.15) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 1 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN (((CustomerQuoteProducts.unitPrice * 1.15)) * CustomerQuoteProducts.qty) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 1 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN ((CustomerQuoteProducts.unitPrice * 1.15)) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN ((CustomerQuoteProducts.unitPrice * CustomerQuoteProducts.qty)) WHEN
(SELECT isTaxPaid
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN (CustomerQuoteProducts.unitPrice) WHEN
(SELECT Count(isTaxPaid)
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty > 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN ((CustomerQuoteProducts.unitPrice * CustomerQuoteProducts.qty)) WHEN
(SELECT Count(isTaxPaid)
FROM SupplierQuoteProducts
WHERE productID = CustomerQuoteProducts.ProductID) = 0 AND CustomerQuoteProducts.qty <= 0 AND
CustomerQuoteProducts.isTaxPaid <= 0 THEN (CustomerQuoteProducts.unitPrice) END AS [TotalPrice], CASE WHEN row_number() OVER (partition BY
CustomerInvoice.cuInvoiceId
ORDER BY newid()) = 1 THEN (CASE WHEN CustomerShipping.isTaxPaid > 0 THEN (CustomerShipping.shippingPrice * 1.15)
WHEN CustomerShipping.isTaxPaid <= 0 THEN (CustomerShipping.shippingPrice) END) END AS [ShippingCost],
CASE WHEN row_number() OVER (partition BY
CustomerInvoice.cuInvoiceId
ORDER BY newid()) = 1 THEN (CASE WHEN CustomerShipping.isTaxPaidForOrigPr > 0 THEN (CustomerShipping.origShipPrice * 1.15)
WHEN CustomerShipping.isTaxPaidForOrigPr <= 0 THEN (CustomerShipping.origShipPrice) END) END AS [ShippingOrigCost],
CustomerShipping.isTaxPaid,
CustomerShipping.isTaxPaidForOrigPr,
CustomerShipping.shippingDate, CustomerShipping.trackingNumber, ShippingMethod.shippingVia, CustomerShipping.desAddress,
CustomerShipping.desCity, CustomerShipping.desPOBox, CustomerShipping.desPostalCode, CustomerShipping.desProvince, CustomerShipping.descName,
CustomerShipping.packageContent, CustomerShipping.cuShippingID, Country.countryName, CustomerShipping.packageDepth,
CustomerShipping.packageHeight, CustomerShipping.packageWeight, CustomerShipping.packageWidth, CustomerShipping.pickUpLocation
FROM CustomerInvoice INNER JOIN
CustomerInvDetail ON CustomerInvoice.cuInvoiceID = CustomerInvDetail.cuInvoiceID INNER JOIN
CustomerQuote ON CustomerQuote.CustomerQuoteID = CustomerInvoice.CustomerQuoteID INNER JOIN
CustomerQuoteProducts ON CustomerQuoteProducts.CustomerQuoteID = CustomerQuote.CustomerQuoteID INNER JOIN
CustomerShipping ON CustomerShipping.CustomerQuoteID = CustomerInvoice.CustomerQuoteID INNER JOIN
PaymentStatus ON PaymentStatus.paymentStatusID = CustomerInvDetail.paymentStatusID INNER JOIN
Customer ON Customer.CustomerID = CustomerQuote.CustomerID INNER JOIN
Product ON CustomerQuoteProducts.productID = Product.productID INNER JOIN
Country ON Country.countryID = CustomerShipping.countryID INNER JOIN
ShippingMethod ON ShippingMethod.shippingMethodID = CustomerShipping.shippingMethodID INNER JOIN
PaymentExpected ON PaymentExpected.paymentExpectedID = CustomerInvDetail.paymentExpectedID INNER JOIN
PaymentMethod ON PaymentMethod.paymentMethodID = CustomerInvoice.paymentMethodID
WHERE CustomerInvoice.cuInvoiceID = @cuInvID
```
| "An item with the same key has already been added" Error on SSRS When Trying to Set Dataset | CC BY-SA 2.5 | null | 2010-10-12T05:00:58.347 | 2017-02-13T23:47:21.363 | null | null | 372,445 | [
"sql",
"sql-server",
"sql-server-2008",
"reporting-services",
"ssrs-2008"
] |
3,912,119 | 1 | 3,914,248 | null | 1 | 227 | After so much trouble I find out that when I use the flush function in my PHP mail script then I get garbage or dump characters on browser like below.

The code is below
```
if ($mail->Send()) {
echo "<br><font color=darkgreen>[$num successful send to $to]</font> ";
// flush();
return true;
}
```
If I comment that flush line then out is simple English but I uncomment that the whole page the text looks like garbage.
Now is that a PHP problem, browser problem or server problem?
If I use the same script from the shell, I mean execute inside the shell terminal then I can see the HTML output. But it does not work in browsers.
| PHP flush function causing weird characters on the screen | CC BY-SA 2.5 | null | 2010-10-12T06:19:52.353 | 2011-03-21T08:18:54.907 | 2011-03-21T08:17:30.010 | 63,550 | null | [
"php",
"flush"
] |
3,912,131 | 1 | 3,919,514 | null | 8 | 3,336 | I'm looking for a step-by-step explanation on how to go from the normal folder structure on the left where the `application` folder contains `models,views,controllers`, to the module-based folder structure on the right where `application` contains a `modules` folder which contains the individual modules with their own `models,views,controllers`.
I say "conversion" because I don't think zend lets us create projects using the module architecture from the start, but if it did, that would be swell and would remove the need to make these folder structure changes manually.

- When I create a module `zf create module product`, the modules folder is generated and a folder `product` is generated inside it and the `views,controllers,models` for that module are also generated. - But I also need to move the main `views,controllers,models` to a `modules/default` folder of their own. If I create that folder manually and move the main `views,models,controllers` there, I get a bug when trying to add new controllers to that `default` module. The bug is that it the main (now missing) `views,controllers,models` in `application` and inserts that new controller in `application/controllers/newcont` because it doesn't recognize that the default controllers folder has been moved manually to `application/modules/default/controllers/`. - So my solution to that has been to `zf create module default` then copy the main `views,models,controllers` there. It ends up looking the same but somehow the `zf create module` method makes a difference. When I do it this way, new controllers get added correctly into `application/modules/default/controllers` and not `application/controllers`
Half the problem solved. But when I try to view the application, I don't see anything from `index/index` view. I don't get any errors either, but I see nothing. I suspect that it's because the application doesn't know that the `index/index` view has moved.
- `application/views/scripts/index/index.phtml`- `application/modules/default/views/scripts/index/index.phtml`
I'm guessing I need to make changes to application.ini or to bootstrap.php or some other location. So what exactly are the steps to get this thing done smoothly and get it working? I'm using the latest ZF 1.10.8. Please start from create a new zend project so there's no confusion on the exact steps.
| Step-by-step conversion to module-based folder structure for zend project | CC BY-SA 4.0 | 0 | 2010-10-12T06:24:35.433 | 2019-02-09T08:43:24.577 | 2019-02-09T08:43:24.577 | 1,033,581 | 435,565 | [
"php",
"zend-framework",
"zend-view"
] |
3,912,206 | 1 | null | null | 1 | 626 | I'm new to WPF control template and need your help on this.
I got a [sample Microsoft Ribbon project here](http://dl.dropbox.com/u/6194904/ribbon-menu-button-yellow-border.rar).
I tried to change the color of the ribbon menu button but I can not make the yellow border goes off. Please see screenshot below.

If you have a work-around, please help!
You can get MS Ribbon from:
1. http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4
2. http://msdn.microsoft.com/en-us/office/aa973809.aspx
| How to get rid of the untouchable yellow border of the ribbon menu-button? | CC BY-SA 2.5 | null | 2010-10-12T06:42:28.883 | 2010-10-13T09:02:55.747 | null | null | 248,616 | [
"wpf",
"ms-office",
"border",
"ribbon",
"controltemplate"
] |
3,912,309 | 1 | 3,912,387 | null | 0 | 56 | ```
SELECT e.firstName,t.setDate, w.wageAmount
FROM TimeSheet t
INNER JOIN Employee e
ON e.employeeID = t.employeeID
INNER JOIN Salary s
ON s.salaryID = t.salaryID
INNER JOIN Wage w
ON w.wageID = s.wageID
INNER JOIN EmpHiringInfo ehf
ON ehf.EmpHiringInfoID = s.EmpHiringInfoID
INNER JOIN WageType wt
ON wt.wageTypeID = w.wageTypeID
WHERE (wt.wageTypeID = 19) AND (ehf.isActive = 1 AND s.isActive = 1
AND ehf.employeeID = 300) AND (CONVERT(varchar, t.setDate, 23) BETWEEN '2000-08-02' AND '2020-08-04')
```
By the way, the wage is only one for every month, so the wage is repetitive. So for the month 11,2010 wage is 3600 regardless how many days in 11,2010 ...

I need to gather all similar month/year into one cell discarding days and time. For example
2010-11-12 and 2010-11-26 has to be contracted to one cell as 2010-11 (in any format).
Any help is appreciated.
| I Need to Discard Days of Month and Make Duplicate Months as Distinct | CC BY-SA 2.5 | null | 2010-10-12T07:04:09.083 | 2010-10-12T07:25:52.657 | 2010-10-12T07:22:16.167 | 372,445 | 372,445 | [
"sql",
"sql-server",
"sql-server-2005",
"tsql"
] |
3,912,358 | 1 | 3,912,386 | null | 0 | 2,430 | I've downloaded Jboss jboss-5.0.0.CR2-jdk6.zip file and extracted the zip. Then I've set system variable JBOSS_HOME=F:\jboss-5.0.0.CR2. When I'm trying to run the jboss by double click on run.bat it executes for a while and then windows are automatically closed. If I run the run.bat file from command prompt it shows the error depicted below:
I am not able to find out where is the problem, please help me.
| findstr is not recognized when trying to start Jboss server | CC BY-SA 3.0 | null | 2010-10-12T07:11:48.407 | 2013-06-07T12:12:11.083 | 2013-06-07T12:12:11.083 | 2,366,524 | 423,620 | [
"jboss"
] |
3,912,534 | 1 | 3,912,742 | null | 0 | 458 | I'm doing a blog engine in Symfony. Here's part of my schema :

```
Content:
connection: doctrine
tableName: ec_content
columns:
id:
type: integer(4)
fixed: false
unsigned: true
primary: true
autoincrement: true
(...)
relations:
Author:
local: author_id
foreign: id
type: one
State:
local: state_id
foreign: id
type: one
Type:
local: type_id
foreign: id
type: one
(...)
```
In the administration pages, I want to display the type of the articles, but symfony only shows the type_id, why is that ?
EDIT: here's my generator.yml : I haven't modified it much yet.
```
generator:
class: sfDoctrineGenerator
param:
model_class: Content
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: content_Brouillons
with_doctrine_route: true
actions_base_class: sfActions
config:
actions: ~
fields: ~
list:
title: Brouillons
display: [Type, State, title, link]
filter: ~
form: ~
edit: ~
new: ~
```
| Admin generator : why can't I display the state of an article, instead of state_id? | CC BY-SA 2.5 | null | 2010-10-12T07:47:52.860 | 2010-10-12T08:20:50.333 | 2010-10-12T08:15:50.773 | 113,305 | 113,305 | [
"symfony1",
"admin-generator"
] |
3,912,831 | 1 | 7,019,318 | null | 5 | 1,909 | On this following screenshot, if I click on "v" from "Available Kiosks" this is launching the action of the back button... (not with the second "a").

I don't understand why, I've nothing special in my code (this is the default backbutton handled by the navigation controller).
I also have the same bug with another application I did but I never notice this on others applications.
Any Ideas ?
Thank you.
| UINavigationItem Back Button touch area too large | CC BY-SA 2.5 | 0 | 2010-10-12T08:36:30.093 | 2012-04-05T13:21:59.440 | null | null | 406,761 | [
"objective-c",
"xcode",
"back-button",
"uinavigationitem"
] |
3,912,823 | 1 | null | null | 3 | 2,188 | I'm trying to implement DDD application with layered architecture. I have:
- - - -
The classic 3 layer (+ infrastructure) architecture is quite clear. But my application isn't very classic. Beside UI I have scheduled task which should be ran periodically. I thought about putting such tasks into interfaces layer, because these task actually handle events like UI. But there is a problem, I can't make decision which layer I should put an scheduler which fire events for scheduled tasks.
I draw a sketch

Which layer should I put the scheduler object? Or may be where is another way to design application with internal event generator.
| Which layer should scheduled task be put? | CC BY-SA 3.0 | 0 | 2010-10-12T08:35:35.000 | 2017-07-24T13:40:11.730 | 2011-12-04T10:40:02.867 | 84,042 | 473,003 | [
"domain-driven-design",
"scheduled-tasks",
"architecture",
"n-tier-architecture"
] |
3,913,315 | 1 | 3,913,346 | null | 1 | 2,987 | I was trying to get some tests running inside a console application
```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting; // this doesn't work
```
The error I'm getting is:
The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Yet it all works in a seperate test project:

What is different?
| MSTest inside a Console Application | CC BY-SA 2.5 | 0 | 2010-10-12T09:43:27.250 | 2010-10-17T07:34:21.213 | null | null | 26,086 | [
"c#",
"mstest",
"console-application"
] |
3,913,379 | 1 | 3,913,536 | null | 0 | 907 | i am trying to create a basic custom dialoge view on android witha few drop down boxes and a background image.
the issue i am having is that for some reason, it always draws the dialogue box bigger than necesary and therefore, the background image doesnt cover the whole dialogue box.
Its best i show you a pic of what i mean:

Sorry, here is my xml file related to this view:
```
<ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/closeButton"
android:src="@drawable/close_dialogue" android:background="@null"
android:layout_alignParentRight="true" android:layout_marginRight="10dip" android:layout_marginTop="10dip"></ImageButton>
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content" android:id="@+id/nzbNameText"
android:text="Nzb Title" android:layout_below="@+id/closeButton" android:layout_marginLeft="10dip" style="@style/BoldBlackStyle"></TextView>
<TextView android:layout_height="wrap_content"
android:layout_below="@+id/nzbNameText" android:layout_width="wrap_content"
android:text="Catagory" android:id="@+id/catagoryLabel"
android:layout_marginTop="20dip" android:layout_marginLeft="10dip" android:textColor="@color/Black"></TextView>
<Spinner android:layout_height="wrap_content"
android:layout_below="@+id/catagoryLabel" android:layout_width="fill_parent"
android:id="@+id/catagorySpinner" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"></Spinner>
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_below="@+id/catagorySpinner"
android:id="@+id/postProcessLabel" android:text="Post process"
android:layout_marginTop="10dip" android:textColor="@color/Black" android:layout_marginLeft="10dip"></TextView>
<Spinner android:layout_height="wrap_content"
android:layout_below="@+id/postProcessLabel" android:id="@+id/postProcessSpinner"
android:layout_width="fill_parent" android:layout_marginRight="10dip" android:layout_marginLeft="10dip"></Spinner>
<TextView android:layout_height="wrap_content"
android:layout_below="@+id/postProcessSpinner" android:layout_width="wrap_content"
android:id="@+id/priorityLabel" android:text="Priority"
android:layout_marginTop="10dip" android:layout_marginLeft="10dip" android:layout_marginRight="10dip" android:textColor="@color/Black"></TextView>
<Spinner android:layout_height="wrap_content"
android:layout_below="@+id/priorityLabel" android:layout_width="fill_parent"
android:id="@+id/prioritySpinner" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"></Spinner>
<Button android:layout_height="wrap_content"
android:layout_below="@+id/prioritySpinner" android:layout_width="wrap_content"
android:id="@+id/downloadButton" android:text="Download" android:layout_marginLeft="10dip" android:layout_marginRight="10dip"></Button>
```
| apply a background to a android dialogue box | CC BY-SA 2.5 | 0 | 2010-10-12T09:52:46.837 | 2010-10-12T10:12:37.047 | null | null | 444,668 | [
"android"
] |
3,913,401 | 1 | 3,913,593 | null | 0 | 3,946 | I have a datagrid view which shows table data from a database
Environment:
- C# 4.0
- SQL Server 2005
- Visual studio 2010
What i want is: On a row to row basis automatically save changes. So when I edit the first row and then leave the row. It should save the changes to the database.
I've used this code:
In the From1 Load:
```
dataSet1.TblObject.RowChanged += rowUpdate;
```
The eventhandler:
```
private void rowUpdate(object sender, DataRowChangeEventArgs e)
{
DataRow dr = e.Row;
if (dr.RowState == DataRowState.Modified)
{
tblObjectTableAdapter.Update(dr);
}
}
```
When I've edited a row in the grid, `tblObjectTableAdapter.Update(dr);` is called the data is stored to the table. Which is good. But the event keeps on triggering as if it's called recursively. So the `tblObjectTableAdapter.Update(dr);` is causing a `dataSet1.TblObject.RowChanged` event. But I can't differentiate between the both of them. I'm guessing I'm using the wrong event to store my values but I can't find any event that sounds logical to me. What am I doing wrong?
I've made a dataset xsd:

I've picked the dataset as datasource in this gridview:

| C# DataGrid automatically write values to DB | CC BY-SA 2.5 | null | 2010-10-12T09:56:12.187 | 2010-10-12T14:05:54.303 | 2010-10-12T14:05:54.303 | 107,009 | 121,483 | [
"c#",
"visual-studio-2010",
"datagridview"
] |
3,913,431 | 1 | 3,921,324 | null | 6 | 1,554 | I'm checking memory leaks in my apps using Instruments Leaks tool.
After fixing all leaks whose responsible library is my app. I figure out that there still have a lot of leaks whose responsible libraries are iOS's framworks, based on what Instruments said?
This is a [screenshot](https://i.stack.imgur.com/fdHiM.png) of Intruments:

I think these leaks may be caused by some of my misuse of frameworks' methods.
What is your approach when getting leaks like these?
Thanks!
| how to solve Instruments detected leaks whose responsible library is Apple's framework? | CC BY-SA 2.5 | 0 | 2010-10-12T09:58:42.357 | 2010-10-13T06:39:45.723 | 2010-10-13T06:31:52.677 | 192,800 | 192,800 | [
"iphone",
"xcode",
"memory-leaks",
"instruments"
] |
3,913,448 | 1 | 3,913,526 | null | 1 | 701 | Something in my CSS seem to be changing tinyMCE's buttons :

Any ideas on how to fix this ?
| TinyMCE style conflict | CC BY-SA 2.5 | null | 2010-10-12T10:00:25.460 | 2010-10-12T10:11:25.580 | null | null | 113,305 | [
"css",
"tinymce"
] |
3,913,564 | 1 | 3,913,590 | null | 0 | 324 | I am using a UITableView with style is UITableViewStyleGrouped, but when I set the table is editing = YES, the content cell is scaled so the delete button is stay out side of background as below screenshot

How can I make the delete button is stay inside of white background?
| Delete button is stay out side of UITableViewStyleGrouped cell background | CC BY-SA 3.0 | null | 2010-10-12T10:15:30.940 | 2015-07-11T09:21:51.190 | 2015-07-11T09:21:51.190 | 4,370,109 | 374,885 | [
"ios",
"iphone",
"uitableview",
"cocoa-touch",
"button"
] |
3,913,580 | 1 | 3,913,791 | null | 75 | 260,904 | I have a `DataGrid`, bound to Database table, I need to get the content of selected row in `DataGrid`, for example, I want to show in `MessageBox` content of selected row.
Example of `DataGrid`:

So, if I select the second row, my `MessageBox` has to show something like: .
| Get selected row item in DataGrid WPF | CC BY-SA 4.0 | 0 | 2010-10-12T10:17:26.380 | 2022-10-14T14:49:07.617 | 2019-02-21T11:19:11.740 | 462,347 | 462,347 | [
"wpf",
"datagrid",
"selecteditem"
] |
3,913,655 | 1 | 3,918,242 | null | 0 | 731 | I have sprites image, which contain set of sprites. i want to pull out each sprite from grid.

I know that we have to split them through their pixels positions. But i think its not an easy task and time consuming. so is there other way or tool to get thier pixel position to retrieve images ?
Thank you ,
Srinivas
| How to pull out individual sprites from grid of sprites? | CC BY-SA 2.5 | null | 2010-10-12T10:27:54.240 | 2011-01-26T12:58:25.090 | null | null | 414,777 | [
"android",
"sprite"
] |
3,913,709 | 1 | 3,913,800 | null | 0 | 169 | 
I need to make a preference panel with section like this.
but what is the exactly compoment has effect like these
(section I means "General,Accounts,RSS...")
| make an osx preference panel with section | CC BY-SA 2.5 | null | 2010-10-12T10:34:44.620 | 2010-10-12T10:45:56.920 | null | null | 227,975 | [
"objective-c",
"macos",
"user-interface",
"interface-builder"
] |
3,913,940 | 1 | null | null | 2 | 3,906 | I want to create a bitmap / image which has many images like "Collage" which has more then one images in a single picture.
I have stored all my images in a grid view but now i want to create a single image from all those images. And even i want to make few images click able
so what can be the road map to do this ? any sort of help / example will be helpful.

| multiple images in a one single image | CC BY-SA 2.5 | 0 | 2010-10-12T11:03:03.757 | 2011-06-11T12:55:55.157 | 2010-10-12T11:37:15.720 | 73,488 | 405,383 | [
"android",
"android-widget"
] |
3,913,956 | 1 | 3,970,689 | null | 4 | 4,638 | I have a scrollview that automatically generates a series of subviews containing imageviews. The concept is that it's pretty much a custom PDF style reader, where each page is loaded in to an imageview as an image. There are three "layers" - the outer UIScrollView, the automatically generated subViews and the imageview inside the subview.
I've been having some trouble with this, I've asked the question previously, but unfortunately, the core of my question was in the wrong place. Here is my second attempt:
On rotate, everything is rotated as needed. Unfortunately, this is what I'm getting:

Obviously, I would like Image 1 to be centred and for there to be no hint of image 2 until you flick the view across.
Here is my code for setting up the view:
```
- (void)loadView {
[self setUpView];
}
- (void)setUpView {
//INITIALISE PAGING SCROLL VIEW
CGRect pagingScrollViewFrame = [[UIScreen mainScreen] bounds];
pagingScrollViewFrame.origin.x -= 10;
pagingScrollViewFrame.size.width += 20;
pagingScrollView = [[UIScrollView alloc] initWithFrame:pagingScrollViewFrame];
pagingScrollView.contentMode = UIViewContentModeScaleAspectFit;
//CONFIGURE PAGING SCROLL VIEW
pagingScrollView.pagingEnabled = YES;
pagingScrollView.backgroundColor = [UIColor blackColor];
pagingScrollView.contentSize = CGSizeMake(pagingScrollViewFrame.size.width*7, pagingScrollViewFrame.size.height);
//ACTIVATE PAGING SCROLL VIEW
self.view = pagingScrollView;
//ADD PAGES TO SCROLL VIEW
for (int i = 0; i < 7; i++){
ImageScrollView *page = [[[ImageScrollView alloc] init] autorelease];
[self configurePage:page forIndex:i];
[pagingScrollView addSubview:page];
}
}
```
How do I re-define the size of the frame? What function should I call etc. How do I centre the image?
I'm new to this so I apologise for the ambiguity of my question.
Cheers
| UIScrollView Rotation Issues | CC BY-SA 2.5 | 0 | 2010-10-12T11:04:26.097 | 2014-01-27T13:17:21.570 | 2020-06-20T09:12:55.060 | -1 | 418,146 | [
"iphone",
"objective-c",
"uiscrollview",
"uiinterfaceorientation"
] |
3,913,991 | 1 | 3,914,029 | null | 0 | 290 | I'm seeing these all over the place but I'm wondering what controls are used here?
1. What is the thing with the arrow pointing right? Is it a UIRoundRectButton with a ">" (greater than) character?
2. What is the box with the rounded corners below which allows separaring content using a horzontal line? Also looks like a button...

Thanks!!
| Which Cocoa Touch control is this (screenshot)? | CC BY-SA 2.5 | null | 2010-10-12T11:09:06.660 | 2010-10-12T11:14:08.080 | null | null | 304,870 | [
"objective-c",
"cocoa-touch"
] |
3,914,329 | 1 | 3,914,662 | null | 14 | 32,238 | I want to create a circular button having a plus and minus sign on to this and exactly used in Android
Contacts application like shown in the image as below:

| Round button in Android | CC BY-SA 2.5 | 0 | 2010-10-12T11:50:36.830 | 2014-08-04T09:31:05.903 | 2011-01-11T09:09:04.537 | 457,982 | 457,982 | [
"android",
"layout",
"button",
"contacts"
] |
3,914,842 | 1 | 3,914,965 | null | 10 | 6,785 | Consider the following graph:

I'm trying to find a way to enumerate all possible paths from a source node to a target node. For example, from A to E, we have the following possible paths:
```
A B C D E
A B C E
A C D E
A C E
```
Note that for A C D E, there are actually 2 paths, since one of the paths uses edge F3 and the other uses edge F5. Also, since there's a cycle between A and C, you could end up with an infinite number of paths, but for the purposes of this I'm only interested in paths in which no node is repeated on the path from source to target.
I wrote a depth first search (DFS) algorithm, but the problem is that when you have multiple edges between 2 nodes (like edges F3 and F5 above) I'm not sure how to handle it. My algorithm only brings back paths `A C D E` and `A C E`, not the other paths. In the case of `A B C E`, I understand the reason, because it starts at A and then goes to C and builds those paths, but when the DFS gets back to node B, it then tries to go to C, but C has already been visited so it stops.
Anyway, I just wondered if there was a way to do this, or maybe this is NP-complete.
In case you'd like to see my DFS, code is below (sorry for the macro abuse, I use these in contest programming so it's a bit of a habit).
```
#include <algorithm>
#include <numeric>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cassert>
#include <cmath>
#include <complex>
#include <stack>
#include "time.h"
using namespace std;
#define SZ(x) (int)x.size()
#define FOR(i,x,y) for(int i=(int)(x);i<=(int)(y);++i)
#define REP(i,n) FOR(i,0,n-1)
#define FORD(i,x,y) for(int i=(int)(x);i>=(int)(y);--i)
#define ALL(a) (a).begin(),(a).end()
#define FORE(i,t) for(i=t.begin();i!=t.end();++i)
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<bool> VB;
typedef vector<double> VD;
typedef deque<int> DI;
typedef deque<string> DS;
typedef long long i64;
#define PI 3.14159265358979323
#define DEGTORAD(x) (double)x * 3.14159265358979323846264338327950288 / 180.0
#define RADTODEG(x) (double)x * 180 / 3.14159265358979323846264338327950288
#define prt if(1)printf
template <typename T> string tostr(const T& t) { ostringstream os; os<<t; return os.str(); }
typedef pair< char, char > PCC;
map< PCC, int > adj;
map< char, bool > vis;
vector< char > path;
void dfs(char at) {
if (at == 'E') {
REP(i,SZ(path)) {
if (i != 0)
cout<<",";
cout<<path[i];
}
cout<<",E"<<endl;
return;
}
if (vis[at])
return;
vis[at] = true;
map< PCC, int >::iterator it;
FORE(it,adj) {
if (it->first.first == at) {
path.push_back(it->first.first);
dfs(it->first.second);
path.erase(path.end()-1);
}
}
}
int main() {
adj[make_pair('A','B')] = 1;
adj[make_pair('A','C')] = 1;
adj[make_pair('C','D')] = 1;
adj[make_pair('D','E')] = 1;
adj[make_pair('E','I')] = 1;
adj[make_pair('C','F')] = 1;
adj[make_pair('F','G')] = 1;
adj[make_pair('F','H')] = 1;
adj[make_pair('C','E')] = 1;
dfs('A');
return 0;
}
```
Output:
```
---------- Capture Output ----------
A,C,D,E
A,C,E
```
| algorithm to enumerate all possible paths | CC BY-SA 2.5 | 0 | 2010-10-12T12:48:50.760 | 2020-01-06T23:30:55.763 | 2020-01-06T09:49:08.617 | 4,706,171 | 109,360 | [
"algorithm",
"graph-theory",
"graph-algorithm",
"depth-first-search",
"breadth-first-search"
] |
3,915,092 | 1 | 3,922,385 | null | 0 | 4,982 | My schema looks like this:

The Message.Id column is an identity(1,1), and the MessageHeader table uses a composite key consisting of the associated message ID, and a header name field that uniquely identifies a header within each message.
Entities are represented in code as:
```
public class Message {
public virtual int Id { get; set; }
public virtual string Sender { get; set; }
public virtual string Recipient { get; set; }
private IList<MessageHeader> headers = new List<MessageHeader>();
public virtual IList<MessageHeader> Headers {
get { return headers; }
set { headers = value; }
}
public virtual void SetHeader(string headerName, string headerText) {
MessageHeader header = this.Headers.FirstOrDefault(h => h.HeaderName == headerName);
if (header == default(MessageHeader)) {
header = new MessageHeader() {
HeaderName = headerName,
Message = this
};
this.Headers.Add(header);
header.HeaderText = headerText;
}
}
}
public class MessageHeader {
public virtual Message Message { get; set; }
public virtual string HeaderName { get; set; }
public virtual string HeaderText { get; set; }
public virtual byte[] Version { get; set; }
public override bool Equals(object obj) {
if (Object.Equals(this, obj)) return (true);
var that = obj as MessageHeader;
if (that == null) return (false);
return (this.HeaderName == that.HeaderName && this.Message.Equals(that.Message));
}
public override int GetHashCode() {
return (this.HeaderName.GetHashCode() ^ this.Message.GetHashCode());
}
}
```
I want to map these entities using Fluent NHibernate so that when I run code like:
```
var message = new Message() { Sender = "alf", Recipient = "bob" };
message.SetHeader("DateSent", DateTime.Now.ToString());
using (var session = NHibernateHelper.GetCurrentSession()) {
using(var tx = session.BeginTransaction()) {
session.Save(message);
tx.Commit();
}
}
```
NHibernate will:
1. INSERT the Message entity and retrieve the identity value.
2. INSERT the MessageHeader entity (with the appropriate MessageId retrieved in step 1)
I cannot make this work. It either tries to insert the MessageHeader first (which fails with a foreign key violation), or it tries to UPDATE the MessageHeader instead of INSERTing it, which returns no rows and throws a "could not synchronise database state with session" error.
My FluentNH mapping overrides are as follows:
```
public class MessageOverrides : IAutoMappingOverride<Message> {
public void Override(AutoMapping<Message> map) {
map.HasMany(message => message.Headers).KeyColumn("MessageId");
}
}
public class MessageHeaderOverrides : IAutoMappingOverride<MessageHeader> {
public void Override(AutoMapping<MessageHeader> map) {
map.IgnoreProperty(header => header.Message);
map.CompositeId()
.KeyReference(header => header.Message, "MessageId")
.KeyProperty(header => header.HeaderName);
map.Version(header => header.Version)
.CustomSqlType("timestamp").Nullable()
.Generated.Always();
}
}
```
I thought adding the explicit Version timestamp to the MessageHeader table would resolve this, but it would appear not... I'm sure something needs to be Inverse or Cascade or something, but I am completely stumped as to what needs to go where.
Thanks,
Dylan
| How do I map a has-many collection containing a composite key reference in Fluent NHibernate? | CC BY-SA 2.5 | 0 | 2010-10-12T13:18:15.697 | 2010-11-30T21:21:36.647 | null | null | 5,017 | [
"nhibernate",
"fluent-nhibernate",
"one-to-many"
] |
3,915,255 | 1 | 4,274,991 | null | 3 | 11,996 | >
[Load an SWF into a WebView](https://stackoverflow.com/questions/2994116/load-an-swf-into-a-webview)
I have a .swf file and I want to open it into a webview and also want to play flash games loaded there in the webview. How do I do that?

I am getting swf file in encoded form in webview instead of a clock.
| loading flash files (.swf) webview in android | CC BY-SA 2.5 | 0 | 2010-10-12T13:33:53.093 | 2011-03-30T15:17:07.583 | 2017-05-23T12:13:29.403 | -1 | 411,893 | [
"android",
"flash",
"webview"
] |
3,915,311 | 1 | 3,915,358 | null | 1 | 1,916 | How can I add the the sleek control to a Windows Forms application?
Or do I need to use WPF?
## Example
Ignore the red highlighted area, look at the on/off controls (screenshot lifted from Visual Studio Power Productivity Tools).

| Visual Studio On/Off Control in Windows Forms | CC BY-SA 2.5 | null | 2010-10-12T13:40:19.133 | 2010-10-12T14:22:38.630 | null | null | 198,927 | [
"wpf",
"winforms",
"wpf-controls"
] |
3,915,790 | 1 | 3,915,905 | null | 1 | 2,083 | The JMenu behaves normally until a JButton is used to update a JTable on the JFrame.
Then the JMenu is mostly hidden by a JPanel (see images below).
Shouldn't the JMenu always be on top when it is selected?
Why has it been pushed to the back?
The code that updates the table on jButtonAddActionPerformed is.
```
public class MyClass extends javax.swing.JFrame {
private void jButtonAddActionPerformed(java.awt.event.ActionEvent evt) {
DefaultTableModel model = (DefaultTableModel) jTable.getModel();
model.addRow(new Object[]{"", DEFAULT_ON, DEFAULT_OFF});
int lastRow = jTable.getRowCount() - 1;
jTable.setValueAt(lastRow + 1, lastRow, 0);
}
...
```
Expected

Broken

| Why isn't JMenu always on top? | CC BY-SA 2.5 | 0 | 2010-10-12T14:35:30.457 | 2017-05-03T12:52:10.500 | null | null | 398,460 | [
"java",
"swing",
"jframe",
"jmenu"
] |
3,916,149 | 1 | 3,916,188 | null | 0 | 627 | I am struggling with a problem related to uiscrollview.I need to load 3 images simultaneously into a scrollview like the attached image.If there is only one image the then that image should be shown centrally .If there are two images then first image should be shown centrally and half of the next image should be shown right to it.If there are three images then half of the first then second image centrally and finally half of third image .If the user scrolls it then the third image should come center,second should go first(show only half) and also the fourth image if any should load next.I am attaching my requirement here ,Looking for a solution thanks in advance...

| UIScrollView with Paging | CC BY-SA 2.5 | null | 2010-10-12T15:14:14.830 | 2010-10-12T15:17:28.500 | null | null | 130,936 | [
"iphone",
"uiscrollview"
] |
3,916,489 | 1 | null | null | 0 | 237 | I am working on a school-project with two classmates. Our task is to make a dynamic gallery for web.
So we got the whole gallery up and running perfect, except chrome is acting mighty weird about it.
We have our pictures uploaded in blob, as well as our thumbnails. We load them from the database through php.
```
<div id="content_right">
<?php
if(isset($_GET['c'])) {
$c = $_GET['c'];
$thumbs_sql = mysql_query("SELECT foto_id
FROM `fotos`
INNER JOIN foto_cat ON fotos.foto_cat = foto_cat.cat_id
WHERE fotos.foto_cat = $c");
}
else{
$thumbs_sql = mysql_query("SELECT foto_id
FROM fotos
INNER JOIN foto_cat ON fotos.foto_cat = foto_cat.cat_id
ORDER BY RAND() LIMIT 8");
}
while($getthumbs = mysql_fetch_array($thumbs_sql))
{
$thumb_id = $getthumbs["foto_id"];
$picsource = 'inc/thumbnails.php?thumb='.$thumb_id;
$thumb .= '<div class="ikon">
<img alt="'.$thumb_id.'" src="'.$picsource.'" value="inc/picture.php?pic='.$thumb_id.'" />
</div>';
}
echo $thumb;
?>
</div>
```
The thing is, it works perfect in any browser but chrome. The problem is the browser (or server) seems to add a very odd entity in our file-source (for the img-tag). It cannot be displayed in the page source, neither by echoing the source out. It is only visible through chromes developer tools, and shows up as a square (unknown entity?). It is placed right after "inc/".
 (picture-example of the problem in chrome developer tools.)
Not only does this seem strange, but also, it works perfect in chrome when we use a localhost (wamp/mamp/xampp etc.). Likewise, the image can still be downloaded/viewed if hardcoded into either url bar or source.
We have tried converting it to string, adding the slash through php, setting enctype and anything else we could possibly think of.
This leads us to believe it must be a serverside problem? Are we mistaken?
And if not, is there a workaround through coding?
The gallery is live at [http://46246.rtsphp.dk/gallery/index.php](http://46246.rtsphp.dk/gallery/index.php).
Let me know if you need more files than this somehow, or anything else. Any help would be greatly appreciated, since we ourselves are clueless :S
~Esben Tind (esbentind at gmail dot com)
| Odd entities in generated text (chrome is weird) | CC BY-SA 2.5 | null | 2010-10-12T15:44:13.567 | 2010-10-12T15:54:38.830 | 2010-10-12T15:54:38.830 | 34,065 | 473,475 | [
"php",
"html",
"image",
"google-chrome",
"entities"
] |
3,916,670 | 1 | 3,918,953 | null | 0 | 301 | Sorry for the lame question.
I am trying to run a simple [getting started tablesorter example](http://tablesorter.com/docs/) with no luck.
I know my jquery works because I made a 'hello world' alert test.
I downloaded the .js files and placed them in my working directory/folder.
Firebug "Reponse" window shows me there is actual .js code in the files.
Firebug says Status: "304 Not Modified", Doamin: "localhost".
I am usimng WAMP.
```
<head>
<script src="jquery1.4.2.js" type="text/javascript"></script>
<script src="jquery.tablesorter.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()
{
$("#myTable").tablesorter();
$("a").click(function() {alert("Hello world!")} );
}
);
</script>
</head>
<body>
<a href="">Link</a>
<table id="myTable"class="tablesorter" border="2" cellpadding="0" cellspacing="1" >
<thead>
<tr>
<th>Last Name</th>
<th>First Name</th>
<th>Email</th>
<th>Due</th>
<th>Web Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>Smith</td>
<td>John</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.jsmith.com</td>
</tr>
<tr>
<td>Bach</td>
<td>Frank</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.frank.com</td>
</tr>
<tr>
<td>Doe</td>
<td>Jason</td>
<td>[email protected]</td>
<td>$100.00</td>
<td>http://www.jdoe.com</td>
</tr>
<tr>
<td>Conway</td>
<td>Tim</td>
<td>[email protected]</td>
<td>$50.00</td>
<td>http://www.timconway.com</td>
</tr>
</tbody>
</table>
</body>
```

| Any suggestions on why I can not run this simple jquery tablesorter plugin example? | CC BY-SA 2.5 | null | 2010-10-12T16:02:32.077 | 2012-09-29T10:47:58.473 | 2012-09-29T10:47:58.473 | 1,479,606 | 290,150 | [
"javascript",
"jquery",
"jquery-plugins"
] |
3,917,091 | 1 | 3,917,217 | null | 0 | 4,766 | I want to know how I can change a normal default grey HTML button into an image using CSS.
This is the image I want to change into:
```
button.star {
background-image: url(img/star.jpg);
}
```

This is the image I'm using. It's for favoriting an item. Thanks :)
Is this the way to do it?
| Change a CSS button into a star image? | CC BY-SA 2.5 | null | 2010-10-12T16:52:31.890 | 2010-10-12T17:10:51.253 | 2010-10-12T17:10:51.253 | 107,009 | 428,137 | [
"css",
"image",
"button"
] |
3,917,552 | 1 | 3,949,116 | null | 1 | 1,139 | I use GtkAboutDialog and everything works fine except the close button of this widget. All other buttons works fine, I don't know how but all buttons have default callbacks and they create and destroy the windows.
But the "Close" button of GtkAboutDialog widget does not work. I can not even see it's widget. So, can I access it?
[CLARIFICATION] What you're looking at is gtk.AboutDialog — popup window displaying information about an application (new in PyGTK 2.6). This window contains the 'close' button widget which is contained in a GtkHButtonBox widget. The GtkHButtonBox widget is the highest level widget I am able to access for some. Any ideas on how to get to the "close" button and connect a handler for a callback signal?

| GtkAboutDialog Close Button Bug | CC BY-SA 2.5 | null | 2010-10-12T17:52:44.413 | 2013-05-23T20:38:30.490 | 2010-10-14T18:26:25.930 | 343,495 | 343,495 | [
"python",
"user-interface",
"gtk",
"pygtk"
] |
3,917,704 | 1 | 3,918,009 | null | 3 | 3,075 | this is my code:
```
<Window x:Class="WpfApplication1.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>
<ListBox ItemsSource="{Binding Persons}">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border Background="White" BorderThickness="5" Name="Bd">
<Border.Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="White" />
</Style>
</Border.Style>
<StackPanel Orientation="Horizontal" >
<TextBlock Margin="10" Name="t1" Text="{Binding Name}"/>
<TextBlock Margin="10" Text="{Binding Age}"/>
</StackPanel>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="HotPink" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>
</Grid>
```
And this is how MouseOver looks like:

Now I want the Mouse over To enlarge the text, how can I do that ?
| WPF - ListView Item on Selected change Font size | CC BY-SA 2.5 | null | 2010-10-12T18:13:58.177 | 2011-08-13T16:24:05.610 | 2011-08-13T16:24:05.610 | 305,637 | 138,627 | [
"wpf",
"triggers",
"styles",
"controltemplate"
] |
3,917,925 | 1 | 3,920,248 | null | 112 | 72,696 | What do the icons in the following screen capture mean? The icons are from Subclipse, an SVN plugin for Eclipse.

I'm not asking about the base file icons, I know those (HTML file and Java source file). I'm asking about the right-pointing dark gray arrows, which are labeled "outgoing." What does that imply? Outgoing from the IDE to the repo, or outgoing from the repo to the IDE? Why are there minus signs inside the arrows? Sometimes, I see plus signs instead; other times, just empty arrows. What's the difference?
There are also left-pointing blue arrows and double-headed red arrows; what do those mean? What about cases when they contain other symbols, like `-` and `+`?
> Note: This question has been edited pretty drastically. Normally I wouldn't change so much, but it had nearly no activity and was a dupe. The original question asked for an "icon glossary" that would explain all or most of Subclipse's icons, similar to [this one for Eclipse](http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm). I'd still love to know about one of those, but there just doesn't seem to be one out there.
| What do the arrow icons in Subclipse mean? | CC BY-SA 2.5 | 0 | 2010-10-12T18:43:07.777 | 2015-04-10T18:19:41.287 | 2010-10-12T22:15:23.030 | 122,607 | 122,607 | [
"icons",
"subclipse"
] |
3,918,028 | 1 | 3,919,443 | null | 25 | 16,557 | I'm currently using matplotlib to plot a measurement against 2 or 3 other measurements (sometimes categorical) on the x-axis. Currently, I am grouping the data on the x-axis into tuples and sorting them before plotting... the result looks something like the left image below. What I would like to do is to plot the data with multiple x-axes as you see in the right image. The grouping of the "treatment" x-axis labels would be icing on the cake.

| How do I plot multiple X or Y axes in matplotlib? | CC BY-SA 2.5 | 0 | 2010-10-12T18:54:47.813 | 2012-04-24T20:59:10.373 | null | null | 214,035 | [
"python",
"matplotlib"
] |
3,918,037 | 1 | 3,918,078 | null | 0 | 930 | I was wondering how I can make a GUI that looks like Media Center, so like this:

I don't know if it can be done with simple c# .net or if I have to use WPF or something. (The app needs to be written in C# style)
I found a couple of tutorials for WPF but nothing I can use to create such an nice looking GUI.
Hope somebody knows some good tutorial / sample code so I can begin my "home project"
Thanks in advance!
| Media Center Style app | CC BY-SA 2.5 | null | 2010-10-12T18:55:30.650 | 2010-10-12T19:00:37.847 | null | null | 387,556 | [
"c#",
".net",
"wpf",
"visual-studio-2010",
"user-interface"
] |
3,918,063 | 1 | 3,918,115 | null | 1 | 234 | how would I go about setting up a page using divs and css that has a background image on each side and the page content in the middle. Both the left and right side display images and shrink/grow according to the window size while the content pane always remains the same size.

Easy to do with tables but I just can't seem to think of how it works with div tags.
| Three background images | CC BY-SA 3.0 | null | 2010-10-12T18:58:46.523 | 2013-03-30T21:19:48.507 | 2013-03-30T21:19:48.507 | 246,246 | 453,075 | [
"html",
"css"
] |
3,918,312 | 1 | 3,918,326 | null | 1 | 1,169 | 
(from [failblog](http://failblog.org/2010/10/08/epic-fail-photos-cancel-fail/))
Not only the background's been changed but also the buttons. How can this be done?
| Styling browser dialog boxes | CC BY-SA 2.5 | null | 2010-10-12T19:30:37.617 | 2010-11-18T17:21:31.327 | null | null | 999,999 | [
"javascript",
"html",
"css"
] |
3,919,026 | 1 | null | null | 17 | 28,614 | OK, so I feel dumb for asking this... but I am stumped.
I can't seem to create a project/unit for using the ADO.NET Entity Framework.
I looked for a project type that looked like it would match, but no go (closest I could find was ASP.NET Dynamic Data Entities Web Application).
I also tried to just add a unit (like you do for Linq-to-SQL). But I could not find anything "Entity Framework"y to add (though Linq-to-SQL is in the list). (Note: I tried adding it to a normal Class Library and to a WCF Project.)
Is there something I need to download? Is there an anti-stupid pill I need to take? ('cause I feel stupid for not being able to figure this out)
(I am using Visual Studio 2010 Ultimate connecting to SQL Server 2008)
---
Here is a screen shot of my Add New Item window:

I got this by right clicking on a Class Library Project and select Add New Item. There is no Entity Framework in it.
| How to Create a Entity Framework Project? | CC BY-SA 3.0 | 0 | 2010-10-12T21:06:18.993 | 2018-11-01T06:11:23.683 | 2020-06-20T09:12:55.060 | -1 | 16,241 | [
"visual-studio",
"entity-framework",
"visual-studio-2010",
"entity-framework-4"
] |
3,919,370 | 1 | null | null | 0 | 1,375 | I was seeing some application and saw this application i was wondering how they created this horizontal navigation menu for their android application.

So what is this horizontal navigation called in android?? and can any one point me to any resource which has some sample example for creating 1 for android?
Thanks
| What is this called and how can i create something similar in android? | CC BY-SA 2.5 | 0 | 2010-10-12T21:56:47.763 | 2010-10-13T07:13:22.327 | null | null | 443,694 | [
"android",
"android-widget"
] |
3,919,477 | 1 | 7,966,018 | null | 1 | 1,202 | I have installed the plugin many times before, but this time I keep getting this error:

> 'Install' has encountered a problemAn error occurred while installing the items
Eclipse has some memory issues when running on my machine, so I just want to install the bare minimum plugins, etc.
Has anyone got any ideas how to get around this error?
I had the wrong version of Eclipse installed. I just installed the version from the Ubuntu software center and it didn't work, do I uninstalled it and downloaded the Java EE version from Eclipse's website and now it works.
| Error installing ADT plugin in Eclipse on Ubuntu 10.04 | CC BY-SA 2.5 | 0 | 2010-10-12T22:12:57.157 | 2012-09-23T08:00:26.180 | 2010-10-13T11:20:06.167 | 348,261 | 348,261 | [
"android",
"eclipse",
"plugins",
"adt"
] |
3,919,941 | 1 | 3,919,958 | null | 3 | 4,260 | I want to view a byte array in the Eclipse (Helios Release, build id: 20100617-1415) Java debugger as a char array? Is that possible? How?
For example, I want to display this:

...as: '\0', '0', 'G', '\22', etc.
| How do I display a byte array as a char array in the Eclipse Java debugger? | CC BY-SA 2.5 | null | 2010-10-13T00:05:47.027 | 2015-09-21T09:48:48.207 | null | null | 4,766 | [
"java",
"eclipse",
"types",
"debugging"
] |
3,920,206 | 1 | null | null | 70 | 39,502 | In Firefox, I view my site and get no warnings about insecure mixed content.
Using FireBug, I can see that every request is `https`.
In Chrome, I get the `https` crossed out in the address bar.


I viewed source in Chrome and then ran this regex `/http(?!s)/` but the only things it found were the `href` attributes for some external links and the doc type and `http-equiv` meta tags.
Using Chrome's revealed all requests were `https` too.
This includes Google Analytics, jQuery from Google's CDN and Facebook like scripts.
Is there any specific tool I can use to show non `https` requests, or anything further I can try?
| How can you tell exactly what insecure items are causing a browser to warn about mixed secure and insecure items? | CC BY-SA 3.0 | 0 | 2010-10-13T01:22:55.200 | 2016-06-13T15:27:12.783 | 2013-07-08T22:49:27.127 | 31,671 | 31,671 | [
"google-chrome",
"https"
] |
3,920,226 | 1 | 3,922,667 | null | 1 | 1,973 |
I am using dynamic matrix groups as in [Dynamic Grouping](https://web.archive.org/web/20160125222610/http://blogs.msdn.com:80/b/chrishays/archive/2004/07/15/dynamicgrouping.aspx) from [Chris Hays's Reporting Services Sleazy Hacks Weblog](https://learn.microsoft.com/en-us/archive/blogs/chrishays/) (which has some great stuff and is worth checking out, by the way). I have my row and column groups bound to two multi-value parameters and everything is working great, except for one thing. Even though I am suppressing unused groups from displaying, they are still taking up space.
Here's what the report looks like now when I choose only one row group and one column group:

Notice how even though the undesired groups have property hidden True (as set by an expression) they still take up space. Here's what I'd like it to look like (I cut the blank areas out of the picture by hand):

Does anyone have any ideas how to make the blank areas shrink when the corresponding matrix groups are hidden?
For reference, here is what the matrix looks like in Layout mode:

And if anyone else wants to do dynamic matrix groups like this, here's the code section that does the heavy lifting:
```
Public Function ValueIsInMultiParameter(MultiParameter As Parameter, Value As String) As Boolean
Dim i as Long
For i = 0 to MultiParameter.Count - 1
If MultiParameter.Value(i) = Value Then Return True
Next
Return False
End Function
Public Function DynamicFieldValue(CurrentFields As Fields, MultiParameter As Parameter, Index As Long) As Object
If ParameterCount(MultiParameter) - 1 < Index Then Return ""
Return CurrentFields(MultiParameter.Value(Index)).Value
End Function
Public Function DynamicFieldFormattedValue(CurrentFields As Fields, MultiParameter As Parameter, Index As Long) As Object
If ParameterCount(MultiParameter) - 1 < Index Then Return ""
Return CustomFormat(CurrentFields(MultiParameter.Value(Index)).Value, MultiParameter.Value(Index))
End Function
Public Function DynamicGrouping(MultiParameter As Parameter, Index As Long) As Object
If ParameterCount(MultiParameter) - 1 < Index Then Return "None"
Return MultiParameter.Value(Index)
End Function
Public Function DynamicGroupingLabel(CurrentFields As Fields, MultiParameter As Parameter, Index As Long) As String
If Index = 0 Then Return "Grand Total"
If ParameterCount(MultiParameter) - 1 < Index Then Return ""
Return CustomFormat(CurrentFields(MultiParameter.Value(Index - 1)).Value, MultiParameter.Value(Index - 1)) & " Total"
End Function
Public Function CustomFormat(Value As Object, ValueType As String) As String
Select Case ValueType
Case "DayOf"
Return Format(Value, "M/d/yyyy")
Case "WeekOf"
Return Format(Value, "M/d/yyyy")
Case "WeekDayPart"
Return WeekdayName(Value)
Case "MonthOf"
Return Format(Value, "MMM yyyy")
Case "MonthDayPart"
Return "Day " & Value
Case "MonthWeekPart"
Return "Week " & Value
Case "YearOf"
Return Format(Value, "yyyy")
Case "YearDayPart"
Return "Day " & Value
Case "YearWeekPart"
Return "Week " & Value
Case "YearMonthPart"
Return MonthName(Value)
Case "YearPart"
Return Value
Case Else
Return Value
End Select
End Function
Public Function ParameterCount(MultiParameter As Parameter) As Long
If MultiParameter.Count = 0 OrElse MultiParameter.Value(0) = "1" Then Return 0
Return MultiParameter.Count
End Function
```
In the parameters, I put a hard-coded list of selectable grouping options, for example the RowGroups parameter has available values:
```
Label Value
----- -------
Year YearOf
Month MonthOf
Week WeekOf
Day DayOf
```
Where the Value is the name of the SQL column as returned by the DataSet.
| Hidden dynamic matrix groups still take space in SSRS 2005 | CC BY-SA 4.0 | 0 | 2010-10-13T01:29:06.250 | 2021-08-03T06:03:24.103 | 2021-08-03T06:03:24.103 | 4,751,173 | 57,611 | [
"sql-server-2005",
"sql-server-2008",
"reporting-services",
"formatting",
"matrix"
] |
3,920,331 | 1 | null | null | 6 | 1,507 | We're using a .settings file to store our application settings, and use default values in there so that we don't need to configure every single setting. This has generally been fine.
However, during development we'll frequently change values in app.config, which means that when we open the .settings file, we always get the prompt

In our case, the correct thing to do is , otherwise development settings can slip through to test and production environments with relative ease. But, since we're human, that's not always what happens. What's worse, the default button is "Yes".
Can we remove the human element somewhat and make Visual Studio not ask us this? Or should we give up on relying on default settings and define an explicit entry in app.config for every single setting in every single environment?
| How to prevent Visual Studio from prompting to update .settings file from app.config | CC BY-SA 2.5 | null | 2010-10-13T02:09:12.247 | 2015-05-11T21:43:35.003 | null | null | 78,216 | [
"visual-studio-2008",
"configuration",
"web-config",
"settings",
"app-config"
] |
3,920,675 | 1 | null | null | 1 | 147 | Is there a Eclipse like [tool](http://www.eclipse.org/emf/) to build IDEs to build something similar to Visual Studio 98, something looking like ?
I've seen a lot of IDE's similar to VS98. Are there standard controls for them?
I'm exploring this technology to allow the end user like a doctor to define state-based interactive dialogue based diagnosis systems for simple diseases. Example below:

| Implementing a User Interface in the Style of Visual Studio 6 for a IDE | CC BY-SA 2.5 | 0 | 2010-10-13T04:00:54.017 | 2010-10-20T20:27:33.813 | 2010-10-20T20:27:33.813 | 143,373 | 143,373 | [
"ide"
] |
3,920,793 | 1 | 3,923,592 | null | 16 | 45,776 | For some weird reason i can not run my report, when i try to preview i get this error:

Here is how my tablix property looks like:

Any idea what to do? The current .rdl was copied from another one. I changed the newly copied .rdl values to match my needs. I always do that and works perfect, instead of creating the design from scratch every single time.
| The tablix 'Tablix1' is invalid. The value for the DataSetName Property is missing | CC BY-SA 4.0 | null | 2010-10-13T04:33:02.233 | 2023-01-17T21:50:33.393 | 2023-01-17T21:50:33.393 | 2,756,409 | 372,445 | [
"sql-server",
"sql-server-2005",
"tsql",
"sql-server-2008",
"reporting-services"
] |
3,920,947 | 1 | 3,921,053 | null | 1 | 721 | I am new to UNIX and can’t figure out how to access a certain number from a file. Following is the result I get when I type in quota -v.

I need to write a script to check and make sure if I am under quota, if not display a warning message. So, I am wanting to access “usage” number and “limit” number from that file and use a 'if' statement to do the comparison. Can someone please tell me how can I access data in that specific place. (Ex: 205539 in “usage” area and 200000 in “limit” area on that file). Any help would be greatly appreciated.
| How to read a value in UNIX | CC BY-SA 2.5 | null | 2010-10-13T05:11:42.173 | 2010-10-13T09:42:10.413 | null | null | 460,099 | [
"linux",
"ubuntu",
"unix"
] |
3,920,948 | 1 | 3,923,131 | null | 1 | 1,024 | I have used scheduler to return from a scene to the main menu. There is nothing in the scene page except menu. But scenes are not deallocating and memory leakage increasing as i navigate through the scenes. So application is not closing(kept running in background when close using iphone/ipod button) but crashing.
Hope some of you faced and resolved this type of problem.Expecting a way to out from here.
Here are my class sources-
```
@implementation BubbleWordAppDelegate
@synthesize window;
- (void) applicationDidFinishLaunching:(UIApplication*)application
{
CC_DIRECTOR_INIT();
// Obtain the shared director in order to...
CCDirector *director = [CCDirector sharedDirector];
// Sets landscape mode
//[director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
// Turn on display FPS
[director setDisplayFPS:NO];
// Turn on multiple touches
EAGLView *view = [director openGLView];
[view setMultipleTouchEnabled:YES];
// Default texture format for PNG/BMP/TIFF/JPEG/GIF images
// It can be RGBA8888, RGBA4444, RGB5_A1, RGB565
// You can change anytime.
[CCTexture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888];
// [[CCDirector sharedDirector] runWithScene: [MainGameLayer scene]];
[[CCDirector sharedDirector] runWithScene: [MenuScene node]];
}
- (void)applicationWillResignActive:(UIApplication *)application {
[[CCDirector sharedDirector] pause];
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
[[CCDirector sharedDirector] resume];
}
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
[[CCTextureCache sharedTextureCache] removeUnusedTextures];
}
- (void)applicationWillTerminate:(UIApplication *)application {
[[CCDirector sharedDirector] end];
}
- (void)applicationSignificantTimeChange:(UIApplication *)application {
[[CCDirector sharedDirector] setNextDeltaTimeZero:YES];
}
- (void)dealloc {
[[CCDirector sharedDirector] release];
[window release];
[super dealloc];
}
@end
```
```
#import "cocos2d.h"
#import "MenuScene.h"
#import "SettingsScene.h"
#import "AboutScene.h"
//#import "MainGameLayer.h"
#import "ErgoTransitions.h"
@implementation MenuScene
- (id) init
{
self = [super init];
if (self != nil) {
// CCMenuItem *menuItem1 = [CCMenuItemFont itemFromString:@"Play" target:self selector:@selector(onPlay:)];
CCMenuItem *menuItem2 = [CCMenuItemFont itemFromString:@"Settings" target:self selector:@selector(onSettings:)];
CCMenuItem *menuItem3 = [CCMenuItemFont itemFromString:@"About" target:self selector:@selector(onAbout:)];
// CCMenu *menu = [CCMenu menuWithItems:menuItem1, menuItem2, menuItem3, nil];
CCMenu *menu = [CCMenu menuWithItems: menuItem2, menuItem3, nil];
[menu alignItemsVertically];
[self addChild:menu];
}
return self;
}
/*
- (void)onPlay:(id)sender
{
NSLog(@"on play");
[[CCDirector sharedDirector] replaceScene: [ErgoTransitions randomTransition:[MainGameLayer node]]];
}
*/
- (void)onSettings:(id)sender
{
NSLog(@"on settings");
[[CCDirector sharedDirector] replaceScene: [ErgoTransitions PageTransitionForward:[SettingsScene node]]];
// [[CCDirector sharedDirector] replaceScene: [ErgoTransitions randomTransition:[SettingsScene node]]];
}
- (void)onAbout:(id)sender
{
NSLog(@"on about");
[[CCDirector sharedDirector] replaceScene: [ErgoTransitions PageTransitionForward:[AboutScene node]]];
// [[CCDirector sharedDirector] replaceScene: [ErgoTransitions randomTransition:[AboutScene node]]];
}
@end
```
```
#import "cocos2d.h"
#import "AboutScene.h"
#import "MenuScene.h"
#import "ErgoTransitions.h"
@implementation AboutScene
- (id) init
{
self = [super init];
if (self != nil) {
CGSize winSize= [[CCDirector sharedDirector] winSize];
CCSprite *bg = [CCSprite spriteWithFile:@"background2.png"];
bg.position = ccp(winSize.width/2,winSize.height/2);
[self addChild:bg];
CCLabel *label = [CCLabel labelWithString:@"about scene" fontName:@"Arial" fontSize:20];
label.position = ccp(winSize.width/2,winSize.height/2);
[self addChild:label];
[self schedule:@selector(onEnd:) interval:2];
}
return self;
}
- (void)onEnd:(ccTime)dt
{
[[CCDirector sharedDirector] replaceScene: [ErgoTransitions PageTransitionBackward:[MenuScene node]]];
// [[CCDirector sharedDirector] replaceScene: [ErgoTransitions randomTransition:[MenuScene node]]];
}
@end
```
```
#import "cocos2d.h"
#import "ErgoTransitions.h"
#define TRANSITION_DURATION (1.2f)
//static int sceneIdx=0;
static NSString *transitions[] = {
@"CCJumpZoomTransition",
@"CCCrossFadeTransition",
@"PageTransitionForward",
@"PageTransitionBackward",
@"CCFadeTRTransition",
@"CCFadeBLTransition",
@"CCFadeUpTransition",
@"CCFadeDownTransition",
@"CCTurnOffTilesTransition",
@"CCSplitRowsTransition",
@"CCSplitColsTransition",
@"CCFadeTransition",
@"FadeWhiteTransition",
@"FlipXLeftOver",
@"FlipXRightOver",
@"FlipYUpOver",
@"FlipYDownOver",
@"FlipAngularLeftOver",
@"FlipAngularRightOver",
@"ZoomFlipXLeftOver",
@"ZoomFlipXRightOver",
@"ZoomFlipYUpOver",
@"ZoomFlipYDownOver",
@"ZoomFlipAngularLeftOver",
@"ZoomFlipAngularRightOver",
@"CCShrinkGrowTransition",
@"CCRotoZoomTransition",
@"CCMoveInLTransition",
@"CCMoveInRTransition",
@"CCMoveInTTransition",
@"CCMoveInBTransition",
@"CCSlideInLTransition",
@"CCSlideInRTransition",
@"CCSlideInTTransition",
@"CCSlideInBTransition",
};
@interface FadeWhiteTransition : CCFadeTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipXLeftOver : CCFlipXTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipXRightOver : CCFlipXTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipYUpOver : CCFlipYTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipYDownOver : CCFlipYTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipAngularLeftOver : CCFlipAngularTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface FlipAngularRightOver : CCFlipAngularTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipXLeftOver : CCZoomFlipXTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipXRightOver : CCZoomFlipXTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipYUpOver : CCZoomFlipYTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipYDownOver : CCZoomFlipYTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipAngularLeftOver : CCZoomFlipAngularTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface ZoomFlipAngularRightOver : CCZoomFlipAngularTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface PageTransitionForward : CCPageTurnTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@interface PageTransitionBackward : CCPageTurnTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
@end
@implementation FlipXLeftOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationLeftOver];
}
@end
@implementation FadeWhiteTransition
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s withColor:ccWHITE];
}
@end
@implementation FlipXRightOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationRightOver];
}
@end
@implementation FlipYUpOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationUpOver];
}
@end
@implementation FlipYDownOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationDownOver];
}
@end
@implementation FlipAngularLeftOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationLeftOver];
}
@end
@implementation FlipAngularRightOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationRightOver];
}
@end
@implementation ZoomFlipXLeftOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationLeftOver];
}
@end
@implementation ZoomFlipXRightOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationRightOver];
}
@end
@implementation ZoomFlipYUpOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationUpOver];
}
@end
@implementation ZoomFlipYDownOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationDownOver];
}
@end
@implementation ZoomFlipAngularLeftOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationLeftOver];
}
@end
@implementation ZoomFlipAngularRightOver
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s orientation:kOrientationRightOver];
}
@end
@implementation PageTransitionForward
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s backwards:NO];
}
@end
@implementation PageTransitionBackward
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s {
return [self transitionWithDuration:t scene:s backwards:YES];
}
@end
@implementation ErgoTransitions
+(id) transitionWith:(NSString *) transitionName scene:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(transitionName);
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id) randomTransition:(CCScene*) scene withDuration:(ccTime) duration
{
short selectedTransition = [ErgoTransitions getRandomNumber:0 to:((short)sizeof(transitions) / (short)sizeof(transitions[0]))];
Class transitionClass = NSClassFromString(transitions[selectedTransition]);
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id) JumpZoomTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCJumpZoomTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)CrossFadeTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCCrossFadeTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)PageTransitionForward:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"PageTransitionForward");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)PageTransitionBackward:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"PageTransitionBackward");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeTRTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCFadeTRTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeBLTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCFadeBLTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeUpTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCFadeUpTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeDownTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCFadeDownTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)TurnOffTilesTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCTurnOffTilesTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)SplitRowsTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSplitRowsTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)SplitColsTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSplitColsTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCFadeTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FadeWhiteTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FadeWhiteTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipXLeftOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipXLeftOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipXRightOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipXRightOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipYUpOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipYUpOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipYDownOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipYDownOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipAngularLeftOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipAngularLeftOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)FlipAngularRightOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"FlipAngularRightOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipXLeftOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipXLeftOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipXRightOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipXRightOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipYUpOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipYUpOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipYDownOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipYDownOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipAngularLeftOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipAngularLeftOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ZoomFlipAngularRightOver:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"ZoomFlipAngularRightOver");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)ShrinkGrowTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCShrinkGrowTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)RotoZoomTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCRotoZoomTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)MoveInLTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCMoveInLTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)MoveInRTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCMoveInRTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)MoveInTTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCMoveInTTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)MoveInBTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCMoveInBTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)SlideInLTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSlideInLTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id)SlideInRTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSlideInRTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id) SlideInTTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSlideInTTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
+(id) SlideInBTransition:(CCScene*) scene withDuration:(ccTime) duration
{
Class transitionClass = NSClassFromString(@"CCSlideInBTransition");
return [transitionClass transitionWithDuration:duration scene:scene];
}
//------ OverLoaded without Direction
+(id) transitionWith:(NSString *) transitionName scene:(CCScene*) scene
{
return [ErgoTransitions transitionWith:transitionName scene:scene withDuration:TRANSITION_DURATION];
}
+(id) randomTransition:(CCScene*) scene
{
return [ErgoTransitions randomTransition:scene withDuration:TRANSITION_DURATION];
}
+(id) JumpZoomTransition:(CCScene*) scene
{
return [ErgoTransitions JumpZoomTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)CrossFadeTransition:(CCScene*) scene
{
return [ErgoTransitions CrossFadeTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)PageTransitionForward:(CCScene*) scene
{
return [ErgoTransitions PageTransitionForward:scene withDuration:TRANSITION_DURATION];
}
+(id)PageTransitionBackward:(CCScene*) scene
{
return [ErgoTransitions PageTransitionBackward:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeTRTransition:(CCScene*) scene
{
return [ErgoTransitions FadeTRTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeBLTransition:(CCScene*) scene
{
return [ErgoTransitions FadeBLTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeUpTransition:(CCScene*) scene
{
return [ErgoTransitions FadeUpTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeDownTransition:(CCScene*) scene
{
return [ErgoTransitions FadeDownTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)TurnOffTilesTransition:(CCScene*) scene
{
return [ErgoTransitions TurnOffTilesTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)SplitRowsTransition:(CCScene*) scene
{
return [ErgoTransitions SplitRowsTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)SplitColsTransition:(CCScene*) scene
{
return [ErgoTransitions SplitColsTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeTransition:(CCScene*) scene
{
return [ErgoTransitions FadeTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FadeWhiteTransition:(CCScene*) scene
{
return [ErgoTransitions FadeWhiteTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipXLeftOver:(CCScene*) scene
{
return [ErgoTransitions FlipXLeftOver:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipXRightOver:(CCScene*) scene
{
return [ErgoTransitions FlipXRightOver:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipYUpOver:(CCScene*) scene
{
return [ErgoTransitions FlipYUpOver:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipYDownOver:(CCScene*) scene
{
return [ErgoTransitions FlipYDownOver:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipAngularLeftOver:(CCScene*) scene
{
return [ErgoTransitions FlipAngularLeftOver:scene withDuration:TRANSITION_DURATION];
}
+(id)FlipAngularRightOver:(CCScene*) scene
{
return [ErgoTransitions FlipAngularRightOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipXLeftOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipXLeftOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipXRightOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipXRightOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipYUpOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipYUpOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipYDownOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipYDownOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipAngularLeftOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipAngularLeftOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ZoomFlipAngularRightOver:(CCScene*) scene
{
return [ErgoTransitions ZoomFlipAngularRightOver:scene withDuration:TRANSITION_DURATION];
}
+(id)ShrinkGrowTransition:(CCScene*) scene
{
return [ErgoTransitions ShrinkGrowTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)RotoZoomTransition:(CCScene*) scene
{
return [ErgoTransitions RotoZoomTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)MoveInLTransition:(CCScene*) scene
{
return [ErgoTransitions MoveInLTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)MoveInRTransition:(CCScene*) scene
{
return [ErgoTransitions MoveInRTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)MoveInTTransition:(CCScene*) scene
{
return [ErgoTransitions MoveInTTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)MoveInBTransition:(CCScene*) scene
{
return [ErgoTransitions MoveInBTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)SlideInLTransition:(CCScene*) scene
{
return [ErgoTransitions SlideInLTransition:scene withDuration:TRANSITION_DURATION];
}
+(id)SlideInRTransition:(CCScene*) scene
{
return [ErgoTransitions SlideInRTransition:scene withDuration:TRANSITION_DURATION];
}
+(id) SlideInTTransition:(CCScene*) scene
{
return [ErgoTransitions SlideInTTransition:scene withDuration:TRANSITION_DURATION];
}
+(id) SlideInBTransition:(CCScene*) scene
{
return [ErgoTransitions SlideInBTransition:scene withDuration:TRANSITION_DURATION];
}
+(short)getRandomNumber:(short)from to:(short)to
{
return (short)from + arc4random() % (to-from+1);
}
@end
```

I have removed transition- still leakage and app is not closing as i have explained above-
here is the screen shot

| iphone sdk 4.1 memory leackage: may be scene replace problem (cocos2d) | CC BY-SA 2.5 | 0 | 2010-10-13T05:11:45.037 | 2010-10-13T11:29:27.767 | 2010-10-13T05:23:54.817 | 169,965 | 169,965 | [
"memory-leaks",
"cocos2d-iphone",
"ios4",
"scene"
] |
3,921,116 | 1 | 3,923,398 | null | 5 | 623 | I’m creating a small application (a phonebook), actually
I already created it using ms access as a database, but now, I’m learning XML and planning to use it as a database for this app (just for fun and educational purposes).
Here’s the diagram in my access database.

And I created two XML files with the same structure as for the two access tables.
```
<?xml version="1.0" standalone="yes"?>
<ContactList>
<xs:schema id="ContactList" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="ContactList" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Contact">
<xs:complexType>
<xs:sequence>
<xs:element name="ContactID" type="xs:int" minOccurs="0" />
<xs:element name="Name" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Contact>
<ContactID>1</ContactID>
<Name>Peter</Name>
</Contact>
<Contact>
<ContactID>2</ContactID>
<Name>John</Name>
</Contact>
</ContactList>
```
```
<?xml version="1.0" standalone="yes"?>
<ContactNumbers>
<xs:schema id="ContactNumbers" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="ContactNumbers" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Numbers">
<xs:complexType>
<xs:sequence>
<xs:element name="ContactID" type="xs:int" minOccurs="0" />
<xs:element name="Mobile" type="xs:string" minOccurs="0" />
<xs:element name="Office" type="xs:string" minOccurs="0" />
<xs:element name="Home" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Numbers>
<ContactID>1</ContactID>
<Mobile>+63-9277-392607</Mobile>
<Office>02-890-2345</Office>
<Home>0</Home>
</Numbers>
<Numbers>
<ContactID>2</ContactID>
<Mobile>+62-9277-392607</Mobile>
<Office>02-890-2345</Office>
<Home>1</Home>
</Numbers>
</ContactNumbers>
```
This is how my simple app should look like:

In my original app, I used INNER JOIN statement to retrieve the contact numbers of a particular contact. But now, I have no idea how to do it since I’m using 2 XML files as the tables (corresponding to the two ms access tables). Is it still possible to query and link these two XML files and achieved the same functionality as my first application (using access) version does?
For now, this is what I only have:
```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TestXML
{
public partial class Form1 : Form
{
OpenFileDialog openFileDialog1 = new OpenFileDialog();
DataSet ds = new DataSet();
DataView dv = new DataView();
public Form1()
{
InitializeComponent();
}
private void btnBrowse_Click(object sender, EventArgs e)
{
try
{
openFileDialog1.Filter = "XML Document (*.xml)|*.xml";
openFileDialog1.FileName = "";
openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
txtDirectory.Text = openFileDialog1.FileName;
btnLoad.Enabled = true;
}
}
catch (Exception x)
{
btnLoad.Enabled = false;
MessageBox.Show("Something went wrong! \n" + x.Message, "Ooops!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
private void btnLoad_Click(object sender, EventArgs e)
{
dgContactList.DataSource = LoadXML();
}
private DataView LoadXML()
{
try
{
ds.Clear();
ds.ReadXml(txtDirectory.Text, XmlReadMode.ReadSchema);
dv = ds.Tables[0].DefaultView;
lblStatus.Text = "XML is loaded successfully";
}
catch (Exception x)
{
MessageBox.Show("Something went wrong! \n" + x.Message, "Ooops!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
lblStatus.Text = "";
}
return dv;
}
}
}
```
| How to query this two XML files using C#? | CC BY-SA 2.5 | 0 | 2010-10-13T05:52:24.027 | 2010-10-14T03:44:13.030 | null | null | 396,335 | [
"c#",
"winforms",
"linq"
] |
3,921,191 | 1 | 3,921,578 | null | 0 | 782 | I'm having trouble setting up SpringPython with PyDev and Jython
I've installed Spring python by:
> jython setup.py install
and the setup installed the library to my jython installation successfully.
See!:

In my PyDev project i've selected the jython interpreter and have c:\jython2.5.1\Lib\site-packages in my Library paths:

My eclipse environment fails to resolve the new classes:

What else do I need to do to install this baby?
Perhaps I should just be using the Java version of spring...
Thanks SO!
| How to setup springpython with Jython and Eclipse/PyDev? | CC BY-SA 2.5 | null | 2010-10-13T06:12:26.897 | 2010-10-15T09:18:19.873 | 2010-10-13T06:37:25.683 | 3,966 | 3,966 | [
"python",
"spring",
"jython",
"pydev"
] |
3,921,174 | 1 | null | null | 3 | 2,207 | Today I had my algorithms quiz for the semester and I can't figure out these two questions and they've been bugging me all day. I've gone through my notes and the lecture notes and I'm still unsure. I would appreciate it if someone could take a look and provide some insight into these questions. These are not homework and I've already sat the quiz.
True or False questions
1) [Paraphrased] The maximum number of edges in a bipartite graph with n vertices is n(n-1)/2.
I put this down as False, my logic is that n verticies means we have two n/2 rows. The first node has n/2 connections to the second row, the second row has n/2 connections to the second row... etc...
Hence, I calculated the maximum number of edges in a bipartite graph with n vertices to be (n^2/4).
2) [Paraphrased] Is it possible to take a cut, that is not necessarily the minimum s-t cut in a graph with directed flows (Ford–Fulkerson algorithm) such that the flow capacity is greater than the s-t cut capacity?
I put down false, but I don't understand the question... Is it possible to take an s-t cut such that the flow capacity is greater? I know the weak duality theorem and 'max flow = min cut' so I put down false, but I have no idea.
Short answer question:
1) Explain an efficient way to test weather a graph is connected.
I suggested doing a breadth first search and if there were nodes that were not found by the BFS algorithm in the graph, then it was not connected. I wrote down the running time was O(m+n) hence it was an efficient algorithm to use. It was worth two marks and it was the final question but I'm now worried it was a trick question.
2) In the graph:

List the sets of vertices which demonstrate minimum vertex cover [paraphrased]
My answer was {A, D}, {A, E}, {B, C}, {B, D}, {C, E}, but now I'm worried it was just {A}, {B}, {C}, {D}, {E}...
Thanks for taking the time to read! :)
| Graph theory questions from my Algorithms quiz today that I'd like help understanding | CC BY-SA 2.5 | null | 2010-10-13T06:07:57.383 | 2010-10-19T11:19:32.373 | null | null | 422,904 | [
"algorithm",
"math",
"graph",
"theory"
] |
3,921,193 | 1 | 3,955,505 | null | 0 | 516 | Kinda confusing title but oh well.
I have a UIScrollView in my viewController, in that is 3 UIViews with some buttons in each. I download data from a server and populate it into the view and this works as soon as you start scrolling the UIScrollView, but sometimes the buttons only partially load.
Usually its the button label without my formatting added to it. The button works and as soon as you click the button the rest of view loads correctly. Basically if the UIScrollView is touched in anyway it displays correctly.
I've tried adding and removing the scrollView to the view and I've called [scrollView setNeedsDisplay] and the exact same thing happens.
Anyone come across this?
EDIT: screen shot before and after (just basic to demonstrate whats happening)
 
| UIButton in UIView in UIScrollView not loading properly | CC BY-SA 2.5 | null | 2010-10-13T06:12:59.073 | 2010-10-17T22:05:33.793 | 2010-10-13T10:50:36.010 | 196,420 | 196,420 | [
"iphone",
"uiview",
"uiscrollview",
"uibutton"
] |
3,921,598 | 1 | null | null | 0 | 1,383 | Hi i am trying to create a basic contact list that has same functionality has the native one i.e. arranged in alphabetical order and have the scrolling thumb tab on the side to scroll through letters.
How do i create that scroll tab thing? i will use some sort of sorting algorithm to sort my contact list in order so that should be fine but im wondering how to do the fast thumb tab scroll seen in the pic below:

| create a android contactList view? | CC BY-SA 2.5 | 0 | 2010-10-13T07:33:46.703 | 2011-02-18T14:20:52.330 | null | null | 444,668 | [
"android"
] |
3,921,731 | 1 | null | null | 4 | 293 | does anybody know what android widget/view this is:

i want to be able to implement a similar widget for my own needs but i dont know what kind of view/widget it is. All i see is that it is embeded on the ContactContract class as a quickContact object.
Anyone used one of these and customized it? if so, how? Thanks in advance
edit: is it also possible to include more than 5 items as shown below and have it scrollable horizontaly
| What android widget is this? | CC BY-SA 2.5 | 0 | 2010-10-13T07:56:55.453 | 2012-02-20T14:33:17.770 | 2010-10-13T08:14:39.187 | 444,668 | 444,668 | [
"android"
] |
3,921,827 | 1 | 3,924,862 | null | 22 | 51,317 | I'm using the pretty fullCalendar jQuery plugin.
I'd like to be able to have a title AND a detail on each event as in the screenshot below:

Here the details are the participants for each session.
(overflow hidden on the detail)
| fullCalendar - Event title and detail | CC BY-SA 2.5 | 0 | 2010-10-13T08:14:50.987 | 2020-12-07T10:48:02.093 | 2015-11-29T23:13:06.777 | 2,861,681 | 305,189 | [
"javascript",
"jquery",
"fullcalendar",
"rendering"
] |
3,921,823 | 1 | null | null | 1 | 3,732 | I want have the info window content for a marker just a s below

My code so far is
```
loadEmbeddedMap : function() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initEmbeddedMap";
document.body.appendChild(script)
},
initEmbeddedMap : function() {
var myLatlng = new google.maps.LatLng(40, -80);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
map = new google.maps.Map(document.getElementById("embeddedGoogleMap"), myOptions);
geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': $('#userMapAddress').val()}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
console.debug(results[0]);
infowindow = new google.maps.InfoWindow();
var infoWindowContent = "<div><strong>Address:</strong></div>";
infoWindowContent += "<div>"+results[0].address_components[0].short_name+","+results[0].address_components[1].short_name+"</div>";
infoWindowContent += "<div>"+results[0].address_components[5].short_name+","+results[0].address_components[7].short_name+"</div>";
//infoWindowContent += results[0].formatted_address;
infowindow.setContent(infoWindowContent);
infowindow.open(map, marker);
} else {
//alert("Geocode was not successful for the following reason: " + status);
}
});
$('#embeddedGoogleMapWrapper').show();
},
```
Code above outputs this

How to get those 'Directions', 'Search near by' stuffs..? Any helps appreciated..
| Google maps Info Window Overlay content just like that in maps.goole.com | CC BY-SA 2.5 | null | 2010-10-13T08:13:55.500 | 2011-03-16T11:38:35.923 | 2010-10-13T12:22:51.307 | 174,261 | 174,261 | [
"maps",
"google-maps-api-3",
"google-maps-markers"
] |
3,921,846 | 1 | null | null | 4 | 12,842 | i am using fastscroll with indexer, but i want to implement a alphabetic scroll view just similar to Iphone. any idea?
i hope u can take a look at this image
| how to implement alphabetic scroll bar in android | CC BY-SA 2.5 | 0 | 2010-10-13T08:17:51.930 | 2012-11-13T03:08:08.837 | 2010-11-22T06:19:06.253 | 430,652 | 430,652 | [
"android",
"scroll",
"alphabet"
] |
3,921,931 | 1 | null | null | 17 | 5,728 | I am using Ubuntu 10.04, and studying programming of kernel objects.
I have come across some rather complicated structs which I have difficulties reading, so I thought I'd try to find some tool that can help me visualise them.
Only thing I could find so far is [VCG](http://rw4.cs.uni-sb.de/~sander/html/gsvcg1.html), which has a [C Struct Visualization Example](http://rw4.cs.uni-sb.de/~sander/html/gsvcg6.html), which looks like this:

which looks like something I'd like to use.
First thing, is that the last VCG packaged for Ubuntu is [vcg (1.30debian-6) in hardy](http://packages.ubuntu.com/hardy/vcg) - but the .deb package can be downloaded and installed in Ubuntu Lucid without problems.
However, it seems this package is only a VCG (similar to [vcgviewer](http://code.google.com/p/vcgviewer/), I'd guess). The [vcgviewer](http://code.google.com/p/vcgviewer/) page notes:
```
To generate compiler graph data with newest gcc compilers use:
gcc -g -da -dv -fdump-tree-original-raw -fdump-tree-all-all
```
So, apparently I'd have to use those switches along with `gcc` while compiling, to generate .vcg graph files from the C source.
The problem, however, is that I'm building a kernel module, which only references the Linux headers - as I try to avoid as much as I can the recompilation of entire kernel. And it seems, as soon as I try to use `-fdump-tree-...` switches in that context (kernel module), `gcc` wants to start compiling the rest of the kernel too! ()
So my is - is there a tool, that would produce .vcg or .dot graphs of structs - simply using a plain text header file as input? ()
EDIT: it is actually not that important for me that the backend is .vcg or .dot in particular, I mentioned them just because I've found them so far; any sort of software that would allow similar struct visualization, regardless of backend, is welcome :)
PS: Note that if you do not want to use VCG viewers for viewing .vcg graphs, you can convert the .vcg format to a .dot format, and use `graphviz` instead for the visualisation. What worked for me is to use [graph-easy - search.cpan.org](http://search.cpan.org/~tels/Graph-Easy/bin/graph-easy) for `perl` - which first got packaged in Ubuntu with Maverick edition, as [libgraph-easy-perl](http://packages.ubuntu.com/maverick/all/libgraph-easy-perl) (). `libgraph-easy-perl` installs a `graph-easy` script, which then allows to do stuff like:
```
graph-easy test.vcg --as_dot | dot -Tpng -o test.vcg.png
```
See also "[[graphviz-interest] VCG files](https://mailman.research.att.com/pipermail/graphviz-interest/2007q2/004327.html)" and "[Diego Novillo - Re: can't find VCG viewer](http://gcc.gnu.org/ml/gcc/2007-03/msg00554.html)" for another vcg-to-dot script ().
| How to visualise a graph of C structs that contain / point to one another? | CC BY-SA 3.0 | 0 | 2010-10-13T08:30:50.223 | 2019-03-25T15:38:10.847 | 2015-07-19T18:53:04.227 | 895,245 | 277,826 | [
"c",
"linux",
"struct",
"visualization"
] |
3,921,960 | 1 | 3,922,113 | null | 4 | 579 |
You have a CMS where an user is able to determine what content will be displayed.
The content consists of multiple colums with links underneath them. It looks something like this:
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
When this list gets too long the content will be split over 2 columns.
Right now content will just be split -> in mozilla using css3 and in IE using a JQuery library in which something similar is done.
### CSS
```
.columns {
-moz-column-count: 2;
-moz-column-gap: 30px;
-webkit-column-count: 2;
-webkit-column-gap: 30px;
column-count: 2;
column-gap: 30px;
}
### WEB FORM
<!--[if lte IE 9]>
<script src="/Estate/Scripts/Libraries/autocolumn.min.js" type="text/javascript"></script>
<script type="text/javascript">
if (Estate.Sitefinity.IsInEditMode() == false) {
jQuery('#MultiColumn').columnize({
columns: 2,
buildOnce: true
})
}
</script>
<![endif]-->
```
As you see this is handled client side, and the effect of doing this is that text will just be split without making sure columns won't be just broken apart.
This is the effect:

So this is now solved client side and therefore the content will just be broken and split over 2 columns.
Is there any good way to solve this server side having 2 nice columns with some logic to determine wheter the columns have the similar height?
How would you solve this issue?
| Splitting up content that will be displayed over multiple columns | CC BY-SA 2.5 | 0 | 2010-10-13T08:35:12.243 | 2010-10-16T14:05:33.103 | null | null | 81,892 | [
"jquery",
"css",
"layout"
] |
3,922,144 | 1 | null | null | 7 | 770 | Suppose we have a connected and undirected graph: G=(V,E).
Definition of connected-set: a group of points belonging to V of G forms a valid connected-set iff every point in this group is within T-1 edges away from any other point in the same group, T is the number of points in the group.
Pls note that a connected set is just a connected subgraph of G without the edges but with the points.
And we have an arbitrary function F defined on connected-set, i.e given an arbitrary connected-set CS F(CS) will give us a real value.
Two connected-sets are said disjoint if their union is not a connected set.
For an visual explanation, pls see the graph below:
In the graph, the red,black,green point sets are all valid connected-sets, green set is disjoint to red set, but black set is not disjoint to the red one.

Now the question:
We want to find a bunch of disjoint connected-sets from G so that:
(1)every connected-set has at least K points. (K is a global parameter).
(2)the sum of their function values,i.e max(Σ F(CS)) are maximized.
Is there any efficient algorithm to tackle such a problem other than an exhaustive search?
Thx!
For example, the graph can be a planar graph in the 2D Euclidean plane, and the function value F of a connected-set CS can be defined as the area of the minimum bounding rectangle of all the points in CS(minimum bounding rectangle is the smallest rectangle enclosing all the points in the CS).
| Combinatorial optimization | CC BY-SA 2.5 | 0 | 2010-10-13T09:03:57.587 | 2012-08-15T21:37:31.513 | 2010-10-13T12:43:39.233 | 437,472 | 437,472 | [
"algorithm",
"optimization",
"math",
"graph"
] |
3,922,441 | 1 | 3,922,462 | null | 7 | 2,566 | what is the meaning of these jquery random attributes in html and how jquery use them

any ideas please ??
| what is the meaning of jquery random attributes in html ? [expando attribute] | CC BY-SA 3.0 | 0 | 2010-10-13T09:51:34.417 | 2012-12-16T11:33:00.537 | 2012-12-16T11:33:00.537 | 188,954 | 188,954 | [
"javascript",
"jquery",
"html"
] |
3,922,487 | 1 | 3,970,744 | null | 3 | 1,785 | I've been segmenting my full `referral` path to the `user defined value` using advanced filters.

Anyone knows what I should feed the `user defined value` to get that behavior?
I've put up an image to better explain what I'm trying to do (sorry for the blur but it was the only the client allowed). What I'm trying to do is put the yellow part (the full link path) as an external link so that I can click on it and just visit the site that brought the user here.
Any thoughts on how to do it?

Please take into account that the text given in the example is extremely short. On 90% of the referrals google cuts down the link showing the full path on the title only:
```
<div class="a" title="http://www.example.com/vb/showthread.php?s=d0189c38">
<div class="b">http://www.example.com/vb/show</div>
</div>
```
Thanks!
| Advanced filtering on Google Analytics to grab referrals and convert them to external links | CC BY-SA 2.5 | null | 2010-10-13T09:57:26.950 | 2013-06-21T23:59:36.560 | 2013-06-21T23:59:36.560 | 172,322 | 67,945 | [
"javascript",
"google-analytics",
"filtering",
"referrals"
] |
3,922,808 | 1 | null | null | 2 | 695 | I have a setup project in VS 2005.
In the UI section I put some textboxes with some variables, that the user should fill-in when installing the application.

How can I use properties like [VARIABLES] in the fields like the shortcut descriptions?
| How to use Setup variables in Descriptions? | CC BY-SA 2.5 | null | 2010-10-13T10:43:31.077 | 2011-02-24T08:37:49.953 | 2011-02-23T22:56:32.100 | 481,927 | 185,593 | [
"visual-studio",
"visual-studio-2005",
"installation",
"setup-deployment"
] |
3,923,012 | 1 | null | null | 0 | 187 | when I jump into the PreviewKeyDown the char righthand to the Caret in my RichTextBox is not moved YET. I would like to say to this event do your stuff move the char to the rightside and THEN let me do MY stuff. How can I do that?
```
private void RTB_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Space)
{
// event do your stuff
// Char righthanded from the Caret position is moved to the right side
// do MY stuff
}
}
```
UPDATE: that you know what I talk about... =>

The Caret was directly before the Word "Harold..." then I pressed the spacebar key several times to move the "Harold..." to the right. But the formatting a black Underline seem to be stuck... how can I make the Underline stay attached to the Run object containing the name "Harold..." ?
The reason why I wanted to catch the spacebar key in the KeyDown event is to get the new implicit created Run-object and remove the black Underline.
| I want the moment when a Key is "Down" in the PreviewKeyDown Event in WPF | CC BY-SA 2.5 | null | 2010-10-13T11:14:25.820 | 2010-10-13T17:49:55.840 | 2010-10-13T17:49:55.840 | 320,460 | 320,460 | [
"wpf",
"handle",
"preview",
"skip",
"routedevent"
] |
3,923,075 | 1 | 3,931,473 | null | 8 | 5,582 | The problem:

Here is what I do
```
body {
border: 0;
}
```
as was suggested here: [Removing border from WebBrowser control](https://stackoverflow.com/questions/2128259/removing-border-from-webbrowser-control)
this only works when we use the following doctype:
```
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
```
When doctype is changed to
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
```
the nasty border won't go away!
But I need the XHTML doctype in order for "position: fixed" to work in IE.
Any suggestions?
---
The code:
HTML:
```
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<title>Borders, Go Away!</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
```
CSS:
```
body {
border: 0;
}
```
| How to remove 3D border in IE8 with DOCTYPE XHTML? | CC BY-SA 2.5 | 0 | 2010-10-13T11:23:34.210 | 2017-08-05T16:08:17.017 | 2017-05-23T12:19:48.617 | -1 | 67,878 | [
"internet-explorer",
"coding-style",
"border"
] |
3,923,197 | 1 | 3,923,309 | null | 0 | 2,126 | i want to implement a UIScrollView where paging is enabled and i can just flick through some images. Thats all i want to be able to do for now.
I have done this so far in interface builder: can someone help?

I dont know how to do the rest. Can someone please help me with this. I dont need any zooming functionality. I dont want any preview of the previous or next image within the scrollview, i just want a simple paging enabled scroll view that allows a user to flick through images.
All help is appreciated.
If you could tell me step by step how i could achieve this that would be most appreciated. thank you.
I've looked at code examples and they just have too much complexity going on. Ive looked at several and prefer a tutorial from the beginning. thank you
| iphone: UIScrollView Paging enabled with NO ZOOM and NO PREVIEW | CC BY-SA 3.0 | null | 2010-10-13T11:39:45.767 | 2014-05-08T23:36:29.853 | 2014-05-08T23:36:29.853 | 1,358,722 | 445,312 | [
"iphone",
"objective-c",
"uiscrollview",
"paging",
"programmatically-created"
] |
3,923,221 | 1 | null | null | 65 | 79,599 | We are using [google org chart API to display our org charts](http://code.google.com/apis/visualization/documentation/gallery/orgchart.html). This works well but we need something that supports:
1. One person reporting to multiple managers
2. Co heads of a functional areas.
Are there any competing tools that give better support for the above.
---
NOTE: For Gorka LLona, who suggested this solution below in one of the answers, i found a few bugs, here is a screenshot of the issue i am running into using your test example.

| Are there any better javascript org charts compared with Google Org Chart API? | CC BY-SA 3.0 | 0 | 2010-10-13T11:42:13.947 | 2022-08-22T14:24:05.120 | 2012-07-30T01:57:01.963 | 4,653 | 4,653 | [
"javascript",
"google-visualization",
"orgchart"
] |
3,923,275 | 1 | 3,923,509 | null | 2 | 2,029 | I am trying to model the following 2 sentences in an ER Diagram:
> Each company has a set of tanks. It is
also known for each tank how filled up
it is for each time of day.
It is not known if there are specific times of day for which there are logs. It can be once a day, twice, each hour, maybe some days you don't have any info, etc.
This is my current attempt:

Although for some reason I don't like it (I guess I don't like the `Dates` entity!). How do you guys generally model this kind of situations?
I think I could instead have a `TankLoads` entity, with an attribute "Load" and another attribute on the association called "Date".
Thanks
PS: Sorry for the crappy DIA Diagram :(
| Help modelling an ER Diagram | CC BY-SA 2.5 | 0 | 2010-10-13T11:49:59.800 | 2010-10-13T16:30:17.193 | null | null | 130,758 | [
"database",
"database-design"
] |
3,923,596 | 1 | 3,923,614 | null | 59 | 23,908 | I've got Git for Windows setup (msysgit) and it was working fine for the last few days and today I've encountered an odd error.
When issuing a Git command in the Windows Command Prompt or in the Git Bash that comes bundled with msysgit, I get a strange '(END)' line appear and then I cannot issue any other comamnds.

At this point all I get are system beeps.
Any ideas?
Thanks, P.
| Git Windows Command Prompt gets stuck during Git commands with (END) | CC BY-SA 2.5 | 0 | 2010-10-13T12:28:56.930 | 2015-05-20T16:31:23.673 | null | null | 156,406 | [
"windows",
"git",
"command-line",
"cmd",
"msysgit"
] |
3,923,924 | 1 | 3,924,004 | null | 0 | 318 | I've been coding with the iPhone SDK for nearly a year now and managed, up til now, to avoid Core Graphics. My question might therefore look quite simplistic.
I need to implement a class that resembles a real-world 'folder tab'. Here's a mockup ..

I've been getting by with UILabel, and have tried to subclass it, implementing a drawRect method to put the sloped sides on the label with a clipping path ... although this does nothing. I suspect the drawing is already done by this point.
Am I better off subclassing UIView and doing it all myself, or is there anything to be gained from UILabel?
Your clues are most welcome,
M.
| Using Core Graphics to paint a custom 'tab top' label | CC BY-SA 2.5 | null | 2010-10-13T13:05:33.610 | 2010-10-13T23:47:45.240 | 2010-10-13T23:47:45.240 | 30,461 | 42,429 | [
"iphone",
"cocoa-touch",
"uikit",
"core-graphics",
"uilabel"
] |
3,924,461 | 1 | null | null | -1 | 694 | In windows forms ,how can I bring the default scroll bar inside the listview.
Please refer image attached.
| C# Windows Listview Scrollbar | CC BY-SA 2.5 | null | 2010-10-13T13:57:11.453 | 2010-10-17T07:41:52.080 | 2010-10-17T07:41:52.080 | 137,400 | 137,400 | [
"c#",
"winforms",
"listview"
] |
3,924,708 | 1 | null | null | 1 | 3,389 | I really like [Google Map Chart](http://code.google.com/apis/chart/docs/gallery/new_map_charts.html), but the maximum size that can be generated is only 420x220 which is small.
Is there any similar service or product? Maybe using Javascript?
[edit]
Don't you think this is small [map](http://chart.apis.google.com/chart?chf=bg,s,EAF7FE&chs=440x220&cht=t&chco=FFFFFF,FF0000,FFFF00,00FF00&chld=AZCOGAILLANMNVTXUTVT&chd=t:33,22,22,88,22,77,8,22,2,7&chtm=usa) ?

| Is there something similar to Google Map Chart? | CC BY-SA 2.5 | null | 2010-10-13T14:23:15.377 | 2016-10-16T06:34:50.393 | 2010-10-13T14:33:42.917 | 419,628 | 419,628 | [
"javascript",
"google-visualization"
] |
3,924,720 | 1 | 3,926,116 | null | 16 | 7,221 | I am trying to implement Google Chrome style tabs, in Windows 7, in a Delphi application.
The elements of this are:
- - -

I have found that the challenges I have to overcome are:
- - [related question](https://stackoverflow.com/questions/3822609/documentation-and-api-samples-for-drawing-on-windows-aero-glass-dwm-gdi-gdi)
| Google Chrome style tabs on glass in Delphi | CC BY-SA 3.0 | 0 | 2010-10-13T14:24:13.887 | 2013-12-03T23:43:36.660 | 2017-05-23T10:31:39.507 | -1 | 84,704 | [
"delphi",
"dwm",
"aero-glass",
"tabbed-interface"
] |
3,925,020 | 1 | null | null | 5 | 1,225 | I'm trying to draw a CSpinButtonCtrl as a buddy of an edit box in Windows 7. When my CEdit window is 12 dialog units high, the spin buttons are scaled really badly and the top border is clipped off.

This looks pretty ugly. How can I get around this, or must I restrict my CEdit controls to be 14 dialog units high?
My controls are declared thusly:
```
EDITTEXT IDC_LOWER_EDIT,51,20,63,12,ES_MULTILINE | ES_WANTRETURN,WS_EX_RIGHT
CONTROL "",IDC_LOWER_SPIN,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,104,17,11,12
```
I've tried resizing using MoveWindow, but that doesn't help. Any ideas?
| CSpinButtonCtrl drawing problem with small CEdit control | CC BY-SA 2.5 | null | 2010-10-13T14:55:56.670 | 2013-03-20T10:07:49.473 | null | null | 51,637 | [
"visual-c++",
"mfc"
] |
3,925,085 | 1 | 3,925,406 | null | 0 | 469 | I have a Gridview which displays the filenames in the database.

I have written code for deleting filename entry from database, but I also want to delete it from the directory, so how do I retrieve filename from Gridview ?
I don't want to execute another select command for retrieving filename.
```
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int Fid = (int)GridView1.DataKeys[e.RowIndex].Value;
sdsFiles.DeleteCommand = "Delete from Files where Fid = @id";
sdsFiles.DeleteParameters.Clear();
sdsFiles.DeleteParameters.Add("id",Fid.ToString());
sdsFiles.Delete();
System.IO.Directory.Delete(Server.MapPath("~/Data/"));
}
```
Thanks.
| Retrieving filename column form Gridview | CC BY-SA 2.5 | null | 2010-10-13T15:01:57.050 | 2010-10-13T17:53:06.943 | null | null | 92,487 | [
"c#",
"asp.net",
"database",
"gridview"
] |
3,925,418 | 1 | 3,925,538 | null | 0 | 853 | I have a strange problem between two div's , there is a space below the top div which only shows in IE8. Although I am using IE8 at home I don't see it, but at other places I do.
Image in IE (red is the space that shouldn't be there):

In firefox and every other browser it shows fine as shown below:

```
<div id="top">
<form action="" onsubmit="">
<table >
<tr>
<td>
Name<input type="text" />
</td>
<td>
Password<input type="password" />
</td>
<td>
</td>
</tr>
</table>
</form>
</div>
<div id="header">
</div>
#top
{
margin-right: auto;
margin-left: auto;
margin-top: 0px;
background-color: #000000;
top: 0px;
text-align: center;
font-size: 16px;
}
#header
{
width: 100%;
height: 100px;
background-color: #336699;
margin: 0px;
padding: 0px;
}
```
I have tried floating both div's but I cannot seem to get it working.
Any advice? Thanks
| Space between two div's in IE | CC BY-SA 2.5 | null | 2010-10-13T15:40:10.980 | 2010-10-13T16:00:12.967 | null | null | 99,329 | [
"css",
"xhtml"
] |
3,926,211 | 1 | 3,927,241 | null | 2 | 1,760 | Consider the following simple WPF form, we will try to animate border1's Height:

This is the XAML for border1:
```
<Border Margin="3" BorderBrush="Black" BorderThickness="1" Name="border1">
<Border.Style>
<Style>
<Setter Property="Control.Height" Value="50" />
<Style.Triggers>
<DataTrigger Binding="{Binding X}" Value="1">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Height" To="100" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
<DataTrigger Binding="{Binding X}" Value="2">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Height" To="200" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
<DataTrigger Binding="{Binding X}" Value="3">
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Height" To="300" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<TextBlock Text="{Binding X}" />
</Border>
```
X is a normal `DependencyProperty` and buttons do their work without problem and TextBlock's content inside border1 shows the changed value.
Now the is Height can be only ! For example by pressing 1, Height increases to 100, pressing 3 increases it to 300 pressing 2 does not change the height.
If I set the initial border1's height to, for example, 400, all buttons can decrease it to 100, 200 or 300 but after this stage no animation can decrease border's height.
Am I missing some obvious point regarding WPF animation?
| WPF DoubleAnimation does not decrease the value after an animation | CC BY-SA 2.5 | 0 | 2010-10-13T17:15:13.770 | 2010-10-13T21:47:34.163 | null | null | 383,515 | [
"wpf"
] |
3,927,524 | 1 | 3,927,677 | null | 0 | 87 | Hello the screenshot explains it:

Why are do the Items become so tall? I do no positioning myself:
```
<ListBox Margin="6" ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=Segments}">
</ListBox>
```
No ItemTemplate either I'm relying on default `ToString()` behaviour.
| Listbox items become too high for no reason? | CC BY-SA 2.5 | null | 2010-10-13T20:00:09.147 | 2010-10-13T20:20:41.063 | null | null | 177,591 | [
"wpf",
"height",
"listboxitem"
] |
3,927,596 | 1 | 5,078,054 | null | 0 | 375 | Anybody have any idea what might cause this in IE8? The background is meant to be a solid blue, but as you can see it's not. This is not on my machine and I've been unable to reproduce it, but one of my clients is getting it:

More details: The background is using a png (which it doesn't strictly need to as it's a solid colour, but it's a legacy app so you know how that goes)
Also he says he is getting it on 2 machines in IE8. But all works fine on his end with chrome and firefox. I also have tried it in IE8, firefox, safari and chrome and they all work fine.
| What might cause this background "fade" in IE8? | CC BY-SA 2.5 | null | 2010-10-13T20:09:09.530 | 2013-02-01T18:10:33.943 | 2010-10-13T20:18:38.900 | 385,024 | 385,024 | [
"css",
"internet-explorer"
] |
3,928,003 | 1 | null | null | 0 | 144 | Using some P/Invoke, one can create a command link from a button in .NET (see [http://blogs.msdn.com/b/knom/archive/2007/03/12/command_5f00_link.aspx](http://blogs.msdn.com/b/knom/archive/2007/03/12/command_5f00_link.aspx)).
I was wondering if a similar procedure was possible for the Previous/Following arrows visible in, for instance, Aero wizards or the Aero Explorer.

I know I can extract the files myself (and I have already done so), I'm just wondering if there's a more "native" way.
| Aero arrows using native hacks? | CC BY-SA 2.5 | null | 2010-10-13T21:06:10.393 | 2010-10-13T22:38:55.950 | 2010-10-13T22:38:55.950 | 154,502 | 154,502 | [
"c#",
".net",
"pinvoke",
"aero"
] |
3,928,208 | 1 | 11,459,117 | null | 0 | 1,627 | I recently (today, actually) got some new permissions to some SAP tables, but I'm getting permissions issues with importing them. Here's how my process looks right now:
1. I have an Access db that links to SAP tables via an ODBC connection.
2. In that same Access db, a set of spaghetti-like queries pulls & refines a modest data set (a dozen columns, few hundred rows, nothing special). I can run these queries without a problem.
3. An Excel file imports that data using Data->Import External Data->Import Data. I do this all the time. Except this time, I'm getting the dialog pictured below. Clicking OK doesn't seem to do anything. Clicking Cancel produces an "ODBC Connection Failure" message (or something like that).

Again, these queries can be run from Access just fine. But when I import those query results into Excel, I get this problem. I can get around it with a make-table query, but since someone else is maintaining the Access db, I'd rather not make any changes to it.
| Cannot pull SAP data using Excel (Permissions issue?) | CC BY-SA 2.5 | null | 2010-10-13T21:30:45.560 | 2012-07-12T19:22:38.137 | null | null | 124,367 | [
"excel",
"ms-access",
"sap"
] |
3,928,429 | 1 | 3,928,454 | null | 5 | 509 | I am looking for an algorithm that will allow me to visually separate any two to four vehicles within a large list of vehicles that are close enough together on a map such that they obscure one another. I need to filter out instances where there are more than four vehicles as the vehicles will congregate in certain areas in large quantities and it is unimportant to separate them in those cases. The algorithm should also mark vehicles that have already been processed.
In my problem space, it is more important to know that the vehicles are present and to be able to see information about them, than to have absolutely accurate information as to where they are.
The idea is to add approximately 10 yards (given the map scale that is being used) so individual vehicles can be seen instead of being obscured by other vehicles in close proximity.
I have thought of several ways to do this, but given the quality of the answers here and the fact that somebody might have already done this, I thought I would post the question.
I am adding an image of what is currently shown in order to help clarify as one of the comments suggested (OK, it is not a diagram but this is what is actually shown to the user).
Several of the answers require changing the visual queues used to indicate how many vehicles (golf cars) are in a given location. I don't want to change what the users are expecting visually and have to explain to the users what the meaning is. The answer using a square is closest to what I was looking for but that is just the visual part. I am also looking for the algorithm for how to best traverse the list finding groups of 2 to 4 golf cars that are within n (lets say 5) yards of each other while ignoring larger groupings (cart barn, snack shack, etc). The numbers on the icons correspond to the cart numbers.
This application also allows the user to zoom the map in/out so the further zoomed out the map the more separation is needed between the cars so that they do not visually overlap.
Note in the picture that cars 78 and 62 are obscuring the cars that are behind them.

| What is the best algorithm to visually separate overlapping vehicles in close proximity on a map? | CC BY-SA 2.5 | null | 2010-10-13T22:06:25.893 | 2021-10-27T22:01:14.970 | 2010-10-13T23:20:03.900 | 85,666 | 85,666 | [
"c#",
"algorithm"
] |
3,928,489 | 1 | 3,929,324 | null | 3 | 12,603 | I want to display complex numbers in trig form. For example:
```
z = (-4)^(1/4);
```
I'm not sure what the command for that is, and its silly to write:

I thought, that the command was `ExpToTrig`, but solution can't possibly be just `1+i` (Or can it, and I'm misusing it?). How do display complex number in trig form.
### Edit:
Command is `ExpToTrig`, it just does not give all the solutions (or i have failed to find out how). Finally solved my problem with writing a pure function `NrootZpolar[n][z]`:
```
NrootZpolar :=
Function[x,
Function[y,
( Abs[y] ^ (1/x) *
( Cos[((Arg[y] + 360° * Range[0, x - 1]) / x)] +
I*Sin[((Arg[y] + 360° * Range[0, x - 1]) / x)]))
]
]
```
And use:
```
In[689]:= FullSimplify[NrootZpolar1[4][-4]]
Out[689]= {1 + I, -1 + I, -1 - I, 1 - I}
```
To visualize:
```
ComplexListPlot[list_] := ListPlot[Transpose[{Re[list], Im[list]}], AxesLabel -> {Re, Im}, PlotLabel -> list, PlotMarkers -> Automatic]
Manipulate[ComplexListPlot[FullSimplify[NrootZpolar1[n][z]]], {z, -10, 10}, {n, 1, 20}]
```

| Mathematica: Show Complex Numbers in Polar Form | CC BY-SA 2.5 | 0 | 2010-10-13T22:17:27.090 | 2010-10-14T17:31:14.730 | 2020-06-20T09:12:55.060 | -1 | 97,754 | [
"wolfram-mathematica",
"complex-numbers"
] |
3,928,628 | 1 | 3,928,826 | null | 2 | 1,346 | Let's explain the context: I have a person form inside a jquery dialog that has some tabs to group informations related to this person (Personal data, addresses, emails, position, etc.)
One of the tab show the Person addresses through an ajax call to this controller action
```
[HttpGet]
public ActionResult GetAddresses( int id, int? page ) {
IEnumerable<AddressModel> list = _manager.GetAddressesByContact( id ).AsPagination( page ?? 1, 2 );
ViewData["__ContactID"] = id;
return PartialView( "AddressList", list );
}
```
then I have on the partial the following code that create the grid and the pager
```
<%= Html.Grid(Model).Columns( column => {
column.For(addr => addr.GetAddressTypeList().First(at => at.AddressTypeID == addr.AddressTypeID).Description).Named("Tipo");
column.For( addr => ( addr.IsPostalAddress ) ? Html.Image( "/_assets/images/PostalAddress.gif", "Indirizzo per la corrispondenza" ) : " " ).Encode(false).Named("Posta");
column.For(addr => addr.StreetAddress + "<br />" + addr.ZipCode + ", " + addr.City + "<br />" +
addr.GetProvinceList().First( p => p.ProvinceID == addr.ProvinceID).Description + ", " +
addr.GetCountryList().First( c => c.CountryID == addr.CountryID).Name).Named("Indirizzo").Encode(false);
column.For( addr =>
"<a href='/Contact/EditAddress/" + addr.AddressID + "' class='ajaxLink' title='Modifica'><img src='/_assets/images/edit.png' alt='' /></a>"
).Attributes( style => "width:16px").Encode(false);
column.For( addr =>
"<a href='/Contact/DeleteAddress/" + addr.AddressID + "' class='ajaxLink' title='Elimina'><img src='/_assets/images/delete.png' alt='' /></a>"
).Attributes( style => "width:16px" ).Encode( false );
} ).Attributes( @class => "table-list" )%>
<br />
<%= Html.Pager((IPagination)Model).First("Prima").Next("Successiva").Previous("Precedente").Last("Ultima").Format("Visualizzati {0}-{1} di {2}") %>
```
To enable ajax on the pager I have used the following code:
```
$(".paginationRight > a").live("click", function(event) {
//stop the browser from going to the relevant URL
event.preventDefault();
$.ajax({
type: "get",
dataType: "html",
url: this.href,
data: {},
success: function (response) {
$("#addressListPlaceholder").html('').html(response);
}
});
});
```
Everything works very good except one thing. When I click on a paging link there are infinite request to the server as you can see from the following Fiddler screenshot. What is going to happen????

Following Vinzenz advice I have added the `event.stopPropagation()` and `return false` instructions after the ajax call. Then I have
- - -
Generally if I continue clicking back and forth the number of requests made to the server is always increasing.... :(

| Strange problem Ajax enabled MVCContrib Grid pager | CC BY-SA 2.5 | null | 2010-10-13T22:40:40.687 | 2012-05-15T07:27:44.390 | 2010-10-13T23:32:16.057 | 431,537 | 431,537 | [
"asp.net-mvc",
"asp.net-mvc-2",
"jquery",
"mvccontrib",
"mvccontrib-grid"
] |
3,928,793 | 1 | 3,929,789 | null | 1 | 3,317 | I need to port an application from PHP to JSF 2. Everything is fine except for a rather complex radio button group:

When 'Process Application for:' is selected, the child radio button group is enabled. Within that, when 'Other' is selected, the corresponding text box is enabled. When 'Brands' is selected, those two text boxes are enabled. Of course, deselecting any of these disables the corresponding tags again.
I can't think of any way to do this, beyond 3 separate `<h:selectOneRadioButton />` tags, with a ton of javascript handling disabling / enabling of tags, and more javascript handling selecting / deselecting across the different radio buttons so that they appear to be a single group of radio buttons. Can anyone think of a better solution than this? Something like a custom `<h:selectItem />`?
Thanks
| JSF complex cascading radio buttons | CC BY-SA 2.5 | null | 2010-10-13T23:09:44.490 | 2010-10-14T03:09:20.600 | null | null | 43,222 | [
"javascript",
"html",
"jsf",
"radio-button",
"jsf-2"
] |
3,928,850 | 1 | 3,972,420 | null | 0 | 872 | I wrote next jsp:
```
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1>Monster Calculator</h1>
<FORM METHOD="POST" ACTION="Controller">
N1: <input type ="text" name="nr1" value="0">
op: <input type ="text" name="op" value="+">
N2: <input type ="text" name="nr2" value="0">
<INPUT class ="button" TYPE="submit" NAME="actiune" VALUE="Calculate"/>
</FORM>
<jsp:useBean id="binaryOperation" class="beans.BinaryOperation" scope="session"/>
<jsp:setProperty name="binaryOperation" property="*"/>
Message: <jsp:getProperty name="binaryOperation" property="nr1"/>
</body>
```
Theproblem is that I expect that next line:
```
Message: <jsp:getProperty name="binaryOperation" property="nr1"/>
```
to display "Message: 0" at runtime.
This is the bean:
```
public class BinaryOperation {
private String nr1 = "";
private String op = "";
private String nr2 = "";
public void setNr1(String nr1) {
this.nr1 = nr1;
}
public void setOp(String op) {
this.op = op;
}
public void setNr2(String nr2) {
this.nr2 = nr2;
}
public String getNr1() {
return nr1;
}
public String getOp() {
return op;
}
public String getNr2() {
return nr2;
}
```
}

Where is the problem?
| Problems with <jsp:setProperty .../> | CC BY-SA 2.5 | 0 | 2010-10-13T23:23:24.703 | 2010-10-19T20:22:49.297 | 2010-10-16T16:22:37.067 | 70,604 | 409,468 | [
"java",
"jsp",
"servlets",
"javabeans"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.