Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,243,672 | 1 | 6,243,982 | null | 0 | 1,866 |
I'm trying to develop a custom PDF viewer using [PDFLibNet](http://pdfviewer-win32.googlecode.com) library.
I downloaded compiled dlls (32 and 64 bit) and took a look to examples: very nice.
Then I started a library project in VS2010 and created a new user control (the one I want to export): dll compiled succesfully.
So I created a GUI project (net 4.0), referenced my assembly and dropped my control to main form: I have an error that says (I'm translating, so it could be wrong) .

To prevent some question:
- - - -
Here is what I left after deleting everything (for testing purpose):
```
public partial class PdfViewer : UserControl
{
PDFWrapper _pdfDoc = null;
public PdfViewer()
{
InitializeComponent();
}
}
```
Just to tell you: if I try to remove any reference to PDFLibNet (removing `PDFWrapper _pdfDoc = null;`), my control is dropped correctly on form.
I even tried to register PDFLibNet into GAC, but the result is the same.
I'm really confused...
|
"Unable to create component" error
|
CC BY-SA 3.0
| null |
2011-06-05T15:00:23.170
|
2011-06-05T15:49:00.563
|
2011-06-05T15:09:11.530
| 604,015 | 604,015 |
[
"c#"
] |
6,243,876 | 1 | 6,243,929 | null | 1 | 168 |
I would like to make a simple plan:

I did something like this:
but it doesn't work too well...
I wish that every cell has a unique ID in TD.
Now is:
and now i can't refer to a single TD. i wold like edit for example only ID: 20.
how best plan database?
thanks for help!
|
simple plan - schema database
|
CC BY-SA 3.0
| null |
2011-06-05T15:34:29.160
|
2011-06-05T16:08:38.857
|
2011-06-05T16:08:38.857
| 650,492 | 784,814 |
[
"php",
"mysql",
"database",
"schema"
] |
6,244,029 | 1 | 6,244,970 | null | 3 | 2,009 |
We have many custom built web applications (both external & internal) written in Classic ASP and ASP.NET 2.0 technologies. Internal users can upload files to these websites, which can then be viewed by External Users. In some cases, external users can upload documents as well.
Screenshot # gives a brief idea about the existing architecture.
1. Internal users upload documents to custom web applications. These documents are stored in a folder structure defined under the web application.
2. Meta data and user permissions like who can access the documents are stored in SQL Server database.
3. The same set of documents that are being uploaded to custom web applications also exist in SharePoint. However, the custom web applications are unaware of SharePoint. So, users have to download them from SharePoint and then Upload it to the custom web applications. We are currently using SharePoint 2010.
4. External users can also upload documents to the custom web applications. The meta data and user permissions of the document are saved into database based on the user who is uploading the document.
:

Screenshot # shows the architecture that I am trying to achieve. I have done very little SharePoint development. Mostly, I have used the SharePoint web services to retrieve some list content but nothing more than that. Our future Custom Web Applications might be written using ASP.NET MVC. Please find the questions after the screenshot.
:

1. I would like to have internal users continue to upload and maintain their documents in SharePoint. User security model is already defined in the SQL Server database. This security permissions should be available in the SharePoint document properties so users can choose who can view the document from the custom web applications. How can I achieve this? Should I have to copy the SQL Server user permissions info to SharePoint?
2. I believe that SharePoint Web Services or Business Connectivity Services (BCS) can help in retrieving the document and its related info from SharePoint. Which one of these would better suit this scenario?
3. Custom web app should display only the committed versions of the documents. If a user has checked out a document in SharePoint to make any changes, that checked out version of the document should not be visible to External users. Is that possible?
4. Has anyone tried this approach? Are there any pitfalls with this model? Are there any performance concerns with this design?
5. Will this design be of any hindrance if I rewrite our existing applications using ASP.NET MVC?
6. Is it possible to make use of SharePoint search feature within the custom web application (ASP.NET Web Forms / ASP.NET MVC)? In other words, can I send search criteria from custom web app and have SharePoint do the search and return the results back to custom web app?
I really appreciate your inputs.
Thanks in advance.
|
How to use SharePoint only as a Content Management tool from a custom web application?
|
CC BY-SA 3.0
| null |
2011-06-05T15:57:46.623
|
2011-06-05T18:34:52.977
| null | null | null |
[
"asp.net",
"asp.net-mvc",
"sharepoint",
"content-management"
] |
6,244,055 | 1 | 6,244,076 | null | 6 | 603 |
As we all know, there are multiple reasons of `OutOfMEmoryError` (see [first answer](https://stackoverflow.com/questions/880255/out-of-memory-error-starting-jboss-with-portal-from-eclipse)). Why there is only one exception covering all these cases instead of multiple fine-grained ones inheriting from `OutOfMEmoryError`?

|
Why there are no OutOfMemoryError subclasses?
|
CC BY-SA 3.0
| 0 |
2011-06-05T16:02:59.353
|
2011-06-12T01:47:26.597
|
2017-05-23T11:45:23.923
| -1 | 605,744 |
[
"java",
"exception",
"out-of-memory",
"subclassing"
] |
6,244,128 | 1 | 6,429,232 | null | 0 | 307 |
I'm using a cocoa wrapper API to post audio tracks from my iPhone app to Soundcloud. I have some basic functionality working, but I'm not sure where I am supposed input keys that Soundcloud gave me. Here is a clipped photo from my developer's page:

which I believe is supposed to be somehow plugged in here:

Any ideas?
|
JSON and Soundcloud
|
CC BY-SA 3.0
| null |
2011-06-05T16:14:05.557
|
2011-06-21T17:11:29.633
| null | null | 385,559 |
[
"iphone",
"objective-c",
"cocoa",
"json",
"soundcloud"
] |
6,244,277 | 1 | 6,245,786 | null | 1 | 297 |
Hey, I have a simple list which contains Strings in Arabic, the problem is that some strings get a blank space on the begging of the word, so not all the words are allaigned properly..
Here is a screen shot of what I mean:

As you can see in the 3rd and 4th line, there is a blank space before the name, and the source of the strings there is no blank space.. Here are the 2 lines that get blank space that are in strings.xml:
```
<item>التاريخ الإسلامي</item>
<item>الحضارة الإسلامية</item>
```
Can anyone tell me why they get blank space?
Thanks.
|
Blank space in the start of the Text in Listview
|
CC BY-SA 3.0
| null |
2011-06-05T16:38:22.580
|
2011-06-05T20:54:03.580
| null | null | 668,082 |
[
"java",
"android",
"string"
] |
6,244,254 | 1 | 6,605,116 | null | 0 | 716 |
I recently just overhauled my application to use ListView instead of using the classic TextView.setText and looping the inflation of a layout. I was able to acheive this very well but now I'm having a problem having it fill the screen. Heres the section of my code that does the work.
```
//Place JSON data into array one item at a time
JSONArray jArray = new JSONArray(result);
//Loop through each record in the database
//Get ListView
ListView lv= (ListView)findViewById(R.id.listview);
// create the grid item mapping
String[] from = new String[] {"lblQuote", "lblBuzzed", "lblShared", "lblSaid", "lblLikes", "lblHates", "lblLocation", "lblDate"};
int[] to = new int[] { R.id.lblQuote, R.id.lblBuzzed, R.id.lblShared, R.id.lblSaid, R.id.lblLikes, R.id.lblHates, R.id.lblLocation, R.id.lblDate };
for(int i=0;i<jArray.length();i++){
Log.i("uDrew Debug", "Made it into JSONArray Loop");
//Get this record
JSONObject json_data = jArray.getJSONObject(i);
//Put each result into variables for later handling
strFName = json_data.getString("FName");
strLInitial = json_data.getString("LInitial");
strCity = json_data.getString("City");
strState = json_data.getString("State");
strDate = json_data.getString("Date");
strQuote = json_data.getString("Quote");
intLikes = Integer.parseInt(json_data.getString("Likes"));
intHates = Integer.parseInt(json_data.getString("Hates"));
strFNameSaid = json_data.getString("FNameSaid");
strLInitialSaid = json_data.getString("LInitialSaid");
intBuzz = Integer.parseInt(json_data.getString("Buzz"));
Log.i("uDrew Debug", "Made it past JSON Parsing");
switch(intBuzz){
case 1:
strBuzzed = ("One Beer\nSyndrome");
break;
case 2:
strBuzzed = ("Buzzed");
break;
case 3:
strBuzzed = ("Drunk");
break;
case 4:
strBuzzed = ("Trashed");
break;
case 5:
strBuzzed = "Retarded";
break;
}
HashMap<String, String> map = new HashMap<String, String>();
map.put("lblQuote", strQuote);
map.put("lblBuzzed", strBuzzed);
map.put("lblShared", strFName + " " + strLInitial);
map.put("lblSaid",strFNameSaid + " " + strLInitialSaid);
map.put("lblDate", strDate);
map.put("lblLocation", strCity + ", " + strState);
map.put("lblLikes", intLikes.toString());
map.put("lblHates", intHates.toString());
fillMaps.add(map);
}//End For loop
// fill in the grid_item layout
SimpleAdapter adapter = new SimpleAdapter(this, fillMaps, R.layout.myviews, from, to);
lv.setAdapter(adapter);
```
main.xml:
```
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="vertical">
<LinearLayout
android:orientation="vertical"
android:id="@+id/myMainLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<com.google.ads.AdView android:id="@+id/adViewer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adUnitId="a14de539f600385"
ads:adSize="BANNER"
ads:loadAdOnCreate="true"/>
<TextView
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:text="RandomDrunkQuotes.com"
android:id="@+id/lblTitle"
android:textSize="16px"
android:padding="5px"
android:textStyle="bold"
android:gravity="center_horizontal"/>
<!-- List Divider -->
<View android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
<!-- ListView (grid_items) -->
<LinearLayout android:id="@+id/layout"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<ListView android:id="@+id/listview"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
</ListView>
</LinearLayout>
</LinearLayout>
</ScrollView>
```
myviews.xml:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/lblQuote"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Filler Text"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="left">
<ImageView
android:id="@+id/imgUp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="5px"
android:paddingRight="5px"
android:src="@drawable/thumbsup"
android:layout_gravity="left"/>
<TextView
android:id="@+id/lblLikes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="5px"
android:paddingRight="5px"
android:textSize="4pt"
android:text="10"
android:layout_gravity="left"/>
<TextView
android:id="@+id/lblBuzzedTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="4pt"
android:text="Buzz Level:"/>
<TextView
android:id="@+id/lblShared"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="Shared By: Filler Name"
android:textSize="4pt"/>
<TextView
android:id="@+id/lblSaid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="Said By: Filler Name"
android:textSize="4pt"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="left">
<ImageView
android:id="@+id/imgDown"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="5px"
android:paddingRight="5px"
android:src="@drawable/thumbsdn"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/lblHates"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:paddingLeft="5px"
android:paddingRight="5px"
android:textSize="4pt"
android:text="2"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/lblBuzzed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="High"
android:textSize="4pt"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/lblDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="4pt"
android:text="04/04/1987 4:32 PM"
android:layout_gravity="center_vertical"/>
<TextView
android:id="@+id/lblLocation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:textSize="4pt"
android:text="Broomfield, CO"
android:layout_gravity="center_vertical"/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="1">
<TextView
android:text=" "
android:textSize="1pt"
android:background="#6F7285"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
```
Heres what the App looks like:

There are also no scrollbars and if I change the main.xml ScrolView layout_height="fill_parent" it extends to the end of the screen but the scrollable option isn't there.
|
Android: Layout short within a ScrollView
|
CC BY-SA 3.0
| null |
2011-06-05T16:34:37.467
|
2011-07-07T02:12:17.943
| null | null | 765,119 |
[
"java",
"android",
"android-layout"
] |
6,244,416 | 1 | 6,244,564 | null | 4 | 4,549 |
I would like to use Castle Windsor for dependency injection for my solution consisting of the following projects:
1. Mvc [ASP.NET MVC 3 Web Application]: presentation layer (depends on Business and Models)
2. Business [Class Library]: business layer (depends on DataAccess and Models)
3. DataAccess [Class Library]: data access layer (depends on Models)
4. Models [Class Library]: model layer
In the business layer there is a class called `PostService` implementing `IPostService` that manages blog posts. The `PostsController` of the project depends on `IPostService`. However, `PostService` (the corresponding concrete implementation) itself depends on `IPostRepository`.
Where do I configure Castle Windsor to return an instance of `PostRepository` to resolve `IPostRepository`? The project doesn't know about the project. Thus, I can't configure the component bindings in or somewhere else within .
---
Now that I've found a solution (thanks again, Darin Dimitrov!) I'd like to share the current dependency diagram with you.

|
Castle Windsor: Register components across multiple projects in solution
|
CC BY-SA 3.0
| 0 |
2011-06-05T17:01:54.407
|
2011-06-06T15:29:07.207
|
2011-06-05T21:56:14.550
| 362,634 | 362,634 |
[
"asp.net-mvc",
"asp.net-mvc-3",
"dependency-injection",
"castle-windsor"
] |
6,244,602 | 1 | 6,248,301 | null | 0 | 368 |
I am creating a section view programmatically and I have a `UIButton` "delete" also programmatically assigned. However, when the button is pressed, I'd like to delete that section from my tableview. How should I go about doing this?
Here is the code that creates the section header view:
```
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView* customView;
if (Cart.myOrderSummaryRow == 0)
{
// create the parent view that will hold header Label
customView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 0.0, 300.0, 44.00)];
customView.backgroundColor = [UIColor grayColor];
//food item label
UILabel * _headerLabel = [[UILabel alloc] initWithFrame:CGRectZero];
_headerLabel.backgroundColor = [UIColor clearColor];
_headerLabel.opaque = YES;
_headerLabel.textColor = [UIColor blackColor];
//_headerLabel.highlightedTextColor = [UIColor whiteColor];
_headerLabel.font = [UIFont boldSystemFontOfSize:14];
_headerLabel.frame = CGRectMake(40.0, 0.0, 300.0, 44.0);
NSMutableString *header = [[[NSMutableString alloc] initWithCapacity:20] autorelease];
FoodItem *tmpFoodItem = [Cart.foodItemsArray objectAtIndex:section];
[header appendString:tmpFoodItem.foodName];
_headerLabel.text = header;
[customView addSubview:_headerLabel];
//price label
UILabel * _priceLabel = [[UILabel alloc] initWithFrame:CGRectZero];
_priceLabel.backgroundColor = [UIColor clearColor];
_priceLabel.opaque = YES;
_priceLabel.textColor = [UIColor blackColor];
//_headerLabel.highlightedTextColor = [UIColor whiteColor];
_priceLabel.font = [UIFont boldSystemFontOfSize:14];
_priceLabel.frame = CGRectMake(200.0, 0.0, 300.0, 44.0);
NSMutableString *price = [[[NSMutableString alloc] initWithCapacity:20] autorelease];
[price appendString:@"$"];
[price appendString:tmpFoodItem.foodPrice];
_priceLabel.text = price;
[customView addSubview:_priceLabel];
//delete button
UIButton *deleteButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
deleteButton.frame = CGRectMake(260.0, 10, 40.0, 20.0); // x,y,width,height
[deleteButton setTitle:@"-" forState:UIControlStateNormal];
[deleteButton addTarget:self
action:@selector(foodDeleteButtonPressed:)
forControlEvents:UIControlEventTouchDown];
[customView addSubview:deleteButton];
} else {
customView = nil;
}
return customView;
}
```
Here is how the `UITableView` looks –

As you can see the sections are in grey and there is a button inside the section for deleting the section itself. The non highlighted part is the row. The sections correspond to food items and the rows correspond to side items. There are different delete buttons for sections and rows.
|
I want to delete a section from a UITableView when a "delete" button is pressed inside it
|
CC BY-SA 3.0
| null |
2011-06-05T17:34:37.100
|
2011-11-28T10:36:28.797
|
2011-06-06T07:45:37.227
| 106,435 | 657,514 |
[
"iphone",
"cocoa-touch",
"uitableview"
] |
6,244,672 | 1 | 6,244,774 | null | 2 | 2,719 |
Here is my layout XML:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="true">
<TableRow
android:background="#FF0000">
<ViewFlipper
android:id="@+id/viewer_something"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/view1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#CCCCCC">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="button one" />
</LinearLayout>
<LinearLayout
android:id="@+id/view2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF">
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="button two" />
</LinearLayout>
</ViewFlipper>
</TableRow>
<TableRow
android:background="#FF0000">
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="button three" />
</TableRow>
</TableLayout>
</LinearLayout>
```
So in short, I have a ViewFlipper inside a TableRow. The ViewFlipper is shrinking to the size of its content, even though all of the elements have fill_parent specified. In my screenshot below, the ViewFlipper has the grey background and the TableRows have red background.

|
ViewFlipper width is wrapping its content and fill_parent is not working
|
CC BY-SA 3.0
| null |
2011-06-05T17:46:43.300
|
2011-12-07T23:44:10.967
|
2011-12-07T23:44:10.967
| 84,042 | 627,569 |
[
"android",
"xml",
"layout",
"viewflipper",
"fill-parent"
] |
6,244,790 | 1 | 6,246,153 | null | 3 | 115 |
This problem has been bothering me for sometime now, I have not settled on a solution and have tried several approaches. I am trying to keep my markup semantic as possible. I have searched for similar questions, but I am having trouble abstracting my problem enough to find an applicable solution.
I feel a quick about me is in order to explain my design approach. For starters, I am not a designer. I have no formal training, but have managed to find myself employed as a Programmer. I have dabbled with work on the web since I was 11 (1997) and was deeply influenced by the Web Standards movement in high school (2000-2004). And up until a few months ago, have not thought about web work since. The company I work for had paid a designer to develop a design, in photoshop, and was about to pay another person to do the CSS work. This confounded me to no end, and I decided to step up and take a shot at the work, and so far so good.
However, I have let a nagging problem slip by. we have a search form that has been designed as a 3 column box. Due to the nature of my work, I have had to abstract the box a bit. the box renders correctly in webkit, but the center column will not stay positioned correctly in firefox, opera, and especially, IE (not pictured). It looks worse in older versions of these browsers. This may be a good time to checkout a live example: [http://jsfiddle.net/KdFT7/](http://jsfiddle.net/KdFT7/)

I should briefly explain some of the markup. When one clicks on the button 'add X' a modal window appears with choices to select X Items, this will be appended to the div with the class XChoice and the total selected with is appended to the paragraph (<p>) with the class XSelected below. Ideally it would be nice for the box to start small and grow as items are added, but this causes issues for me in how to update the center column and the box for AddY. overall I am unhappy with the design, but my job is to code it not critique it.
I need a fresh set of eyes. How do I mark this up, and apply the correct styles that allow the 3 columns to sit flush across most browsers. I understand this a lot to digest, but I greatly appreciate any stab at the problem. The markup can change, the css can be retooled, but unfortunately, the design needs to be the same.
### HTML
```
<div class="rightCol">
<div class="addX">
<h2><span class="tiny">Add</span>X</h2>
<span class="ui-corner-tl ui-widget-header ui-widget-borderfix"></span>
<div class="innerContent ui-padding-med ui-widget-content">
<form>
<input type="radio" id="radio-0" name="radio" checked="checked" /><label for="radio-0" class="ui-spacer-med">And</label>
<input type="radio" id="radio-1" name="radio" /><label for="radio-1" class="ui-spacer-med">Or</label><br />
</form>
<p class="descrip ui-spacer-med"> Click the button to lookup and select X for your search </p>
<div class="XChoice"></div>
<p class="xSelected"></p>
<!-- brings up modal form -->
<a href="addX.htm" class="addXButton">Add X</a> </div>
<span class="ui-corner-bl ui-widget-header ui-widget-borderfix"></span>
</div>
<div class="centerCol">
<span class="ui-widget-header ui-widget-borderfix"></span>
<form class="clause ui-widget-content ui-padding-med">
<input type="radio" id="radio-2" name="radio" checked="checked" /><label for="radio-2">And</label><br />
<input type="radio" id="radio-3" name="radio" /><label for="radio-3">Or</label><br />
<input type="radio" id="radio-4" name="radio" /><label for="radio-4">Not</label><br />
</form>
<span class="ui-widget-header ui-widget-borderfix"></span>
</div>
<div class="addY">
<h2><span class="tiny">Add</span>Y</h2>
<span class="ui-corner-tr ui-widget-header ui-widget-borderfix"></span>
<div class="innerContent ui-padding-med ui-widget-content">
<form>
<input type="radio" id="radio-5" name="radio" checked="checked" /><label for="radio-5" class="ui-spacer-med">And</label>
<input type="radio" id="radio-6" name="radio" /><label for="radio-6" class="ui-spacer-med">Or</label><br />
<input type="input" value="Enter Y(s)" /><br />
</form>
<a href="#" id="example">example</a>
<ol>
<li> We should find an example to put here?</li>
<li> Examples? </li>
<li> Yes, perhaps 3 solid examples </li>
</ol>
</div>
<span class="ui-corner-br ui-widget-header ui-widget-borderfix"></span>
</div>
<div class="addSubGroup ui-corner-all ui-widget-content">
<a class="rg ui-icon ui-icon-circle-minus" title="Remove Sub Group">Remove Sub Group</a> <a class="ag ui-icon ui-icon-circle-plus" title="Add Sub Group">Add Sub Group</a>
</div>
<span class="sub-clause">
<form class="ui-corner-all ui-widget-content">
<input type="radio" id="radio-7" name="radio" checked="checked" class="ui-spacer-med" /><label for="radio-7">And</label>
<input type="radio" id="radio-8" name="radio" class="ui-spacer-med" /><label for="radio-8">Or</label>
<input type="radio" id="radio-9" name="radio" class="ui-spacer-med" /><label for="radio-9">Not</label>
</form>
</span>
</div>
```
### CSS
```
* { margin: 0; padding: 0; zoom: 0; }
body, html {font: .9em/1.1em HelveticaNeue, Helvetica, Arial, sans-serif;}
.addY,
.addX{ float: left; max-width: 370px; min-width: 218px; width: 43%; }
.addSubGroup { float: left; margin: -1em 0 0 80%; padding: .25em .5em; width: 2.5em; }
.ag,
.rg { float: left;}
.centerCol { float: left; margin-top: 3.05em; max-width: 66px; min-width: 46px; }
.clause { border-left: 1px solid #fff; border-right: 1px solid #fff; height: 210px; margin: 0 auto; }
#example { margin-left: 1em; }
#example+ol { display: none; line-height: 1.5em; margin-left: 2.5em; }
.rightCol { float: right; height: 350px; margin: -1em 1% 2%; width: 73%; }
.sub-clause { display: none; float: left; margin: 2% 0 1% 5%; text-align: center; width: 80%; }
.ui-widget-borderfix { display: inherit; height: 1.25em; }
h2 { color: #222; font: 2.2em/1em Georgia, serif; }
.rightCol h2 { margin: .5em 0 -.25em .45em; }
.innerContent { height: 210px; }
.ui-widget-content { background: #eee; color: #000000; }
.ui-widget { font-family: Arial,sans-serif; font-size: .8em; }
.ui-padding-med { padding: .5em; }
.tiny { font-size: .65em }
```
again a live example can be found here: [http://jsfiddle.net/KdFT7/](http://jsfiddle.net/KdFT7/)
PS.
Bonus, this question is related to another I had asked that has received no solid answers:
[Clone and update attributes](https://stackoverflow.com/questions/5887328/clone-and-update-attributes)
|
rendering issues in a (seamless) 3 column item
|
CC BY-SA 4.0
| 0 |
2011-06-05T18:05:13.390
|
2018-12-28T05:48:18.380
|
2018-12-28T05:48:18.380
| 1,033,581 | 638,649 |
[
"html",
"css",
"cross-browser",
"web-standards",
"html-rendering"
] |
6,244,882 | 1 | 6,245,268 | null | 1 | 402 |
I want to plot the data as a time series (quarterly) but the plot keeps treating the dates as Data not labels or time?
Trying to keep my initial exercise very simple, (have more complex stuff to get on with, it would be a snap with Excel or even GDocs!)
I am reading a very small table from csv (using read.csv) as
This is the display for Corl (my data in r)
```
Date Survey Actual
1 2011-06-30 60 NA
2 2011-03-31 55 50
3 2010-12-31 48 44
4 2010-09-30 48 36
5 2010-06-30 56 75
6 2010-03-31 57 41
```
I tried to convert to date using Corl$Date <- as.Date(Corl$Date) but no difference.
I have used both plot(Corl) and plot.ts(Corl)
I'll then want to run correlate and auto correlate but I seem to be missing a basic concept for the data structure?
I also tried inverting the columns and rows,
```
V1 V2 V3 V4 V5 V6
1 Date 2010-03-31 2010-06-30 2010-09-30 2010-12-31 2011-03-31
2 Survey 57 56 48 48 55
3 Actual 41 75 36 44 50
V7
1 2011-06-30
2 60
3
dput(Corl)
structure(list(Date = structure(c(15155, 15064, 14974, 14882,
14790, 14699), class = "Date"), Survey = c(60L, 55L, 48L, 48L,
56L, 57L), Actual = c(NA, 50L, 44L, 36L, 75L, 41L)), .Names = c("Date",
"Survey", "Actual"), row.names = c(NA, -6L), class = "data.frame")
```
Plot as follows:

|
Beginning R date plots and analysis with Matrix object?
|
CC BY-SA 3.0
| 0 |
2011-06-05T18:20:33.553
|
2011-06-05T20:19:01.150
|
2011-06-05T19:04:28.137
| 137,783 | 137,783 |
[
"r",
"date",
"charts",
"time-series"
] |
6,245,178 | 1 | null | null | -1 | 652 |
Have anyone implemented something similar to Excel's collapsible levels structure? UI should like same as Image. Remember Tree Table is not acceptable. Can any one help me how can I create this.

|
Collapsible Jtable
|
CC BY-SA 3.0
| null |
2011-06-05T19:06:51.390
|
2011-06-05T19:45:58.417
| null | null | 711,466 |
[
"java",
"swing"
] |
6,245,626 | 1 | null | null | 42 | 179,571 |
I have a question about using the `area` function; or perhaps another function is in order...
I created this plot from a large text file:

The green and the blue represent two different files. What I want to do is fill in the area between the red line and each run, respectively. I can create an area plot with a similar idea, but when I plot them on the same figure, they do not overlap correctly. Essentially, 4 plots would be on one figure.
I hope this makes sense.
|
MATLAB, Filling in the area between two sets of data, lines in one figure
|
CC BY-SA 3.0
| 0 |
2011-06-05T20:23:37.920
|
2017-01-12T16:27:33.720
|
2011-09-27T02:25:07.333
| 97,160 | 785,090 |
[
"matlab",
"plot",
"fill",
"area"
] |
6,245,745 | 1 | 6,245,794 | null | 0 | 187 |
I'm trying my hardest to get this site's load time blazing fast. I've taken good steps in caching. Every static element on the page is cached so it renders immediately. My page loads in 1 second, because of the index file:

How can I cut down the load time of this index file. I questioned yesterday, and the answer worked on my localhost, but I'm now on the server.
Here's the site:
[http://thenozzle.net/login](http://thenozzle.net/login)
username: admin1
password: admin1
Please troubleshoot this. Sites like youtube, Facebook and google have this element loading in 400 ms. How can I do this?
Both my server and I are on the west coast U.S.
|
Index file drastically slows page loading time
|
CC BY-SA 3.0
| null |
2011-06-05T20:45:18.380
|
2011-06-05T21:34:31.473
| null | null | 743,561 |
[
"javascript",
"html",
"css",
"optimization",
"load"
] |
6,245,855 | 1 | 6,246,672 | null | 0 | 494 |
In my Core Data model, I have an entity Session and Exercise.
Session has a to many relationship to Exercise (there is a one-one inverse relationship as well).
In my fetch, I am trying to find all Session object that are related to the current Exercise.
I am using the following code which isn't working.
```
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
[fetchRequest setPredicate:[NSPredicate predicateWithFormat: @"exercise = %@", exercise.name]];
NSEntityDescription *sessionEntity = [NSEntityDescription entityForName:@"Session" inManagedObjectContext:managedObjectContext];
[fetchRequest setEntity:sessionEntity];
NSError *error = nil;
NSArray *results = [managedObjectContext executeFetchRequest:fetchRequest error:&error];
NSLog(@"Fetch error: %@", error);
self.sessionArray = results;
```
Here is my data model:

|
Quick Question About NSFetchRequest and Relationship
|
CC BY-SA 3.0
| null |
2011-06-05T21:04:16.823
|
2011-06-06T06:24:09.707
| null | null | null |
[
"iphone",
"objective-c",
"xcode",
"nsfetchedresultscontroller"
] |
6,245,868 | 1 | null | null | 19 | 21,038 |
`MouseEvent.metaKey` doesn't seem to work. On both FireFox and Chrome, it returns `false` even if I hold the key while clicking:
```
<!doctype html>
<button onclick=alert(event.metaKey)>click while holding "meta key"</button>
```
MDN [states](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey):
> The `MouseEvent.metaKey` read-only property returning a [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) that
indicates if the key was pressed (`true`) or not (`false`) when the
event occured.Note: On Macintosh keyboards, this is the command key (). On Windows
keyboards, this is the windows key ().
### Browser Compatibility

MDN claims `MouseEvent.metaKey` is supported on FireFox and Chrome, but it's not working.
Which key does `MouseEvent.metaKey` refer to?
Why is the above code not working?
|
Which key does the e.metaKey refer to in JavaScript MouseEvent?
|
CC BY-SA 3.0
| 0 |
2011-06-05T21:06:50.347
|
2019-05-06T14:33:28.150
|
2019-05-06T14:33:28.150
| 4,370,109 | 632,951 |
[
"javascript",
"browser",
"mouseevent",
"dom-events",
"keycode"
] |
6,245,937 | 1 | 6,246,900 | null | 3 | 226 |
Here's my code:
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:acid="http://acid/">
<head>
<title>Acid4 Test</title>
<link rel="stylesheet" type="text/css" href="acid4.css" />
</head>
<body>
<h1><acid:textGradient></acid:textGradient>Acid<span>4</span></h1>
</body>
</html>
```
and stylesheet:
```
@font-face {
src: url('syncopateBold.ttf');
font-family: Syncopate;
font-weight: bold;
font-style: normal;
font-variant: none;
}
@font-face {
src: url('syncopate.ttf');
font-family: Syncopate;
font-weight: normal;
font-style: normal;
font-variant: none;
}
* {
margin: 0;
padding: 0;
}
body > *:first-child { /* our title */
font-family: Syncopate;
font-size: 4em;
font-weight: bold;
margin: 0;
text-shadow: 0 0 10px black;
text-transform: lowercase;
*color: blue;
_color: red;
}
body > *:first-child > span { /* The 4 in Acid4 */
color: white;
font-weight: normal;
font-size: 200%;
vertical-align: sub;
z-index: 999;
}
acid\:textGradient:empty {
background: url('textGradient.png') repeat-x;
display: block;
height: 31px;
margin-top: 50px;
position: absolute;
width: 210px;
}
```
. Here's the result I get on Google Chrome:

Which is what I expect. However, Firefox and IE9 display this:

I'd like to know, which one is the standards-compliant result?
The fonts can be found here: [http://www.google.com/webfonts/family?family=Syncopate&subset=latin](http://www.google.com/webfonts/family?family=Syncopate&subset=latin) and the textGradient.png is just a gradient image.
|
Is this a standards-compliant result?
|
CC BY-SA 3.0
| null |
2011-06-05T21:18:39.327
|
2011-10-07T05:45:28.027
|
2011-10-07T05:45:28.027
| 558,592 | 707,111 |
[
"xhtml",
"css",
"standards-compliance",
"xhtml-1.0-strict"
] |
6,245,945 | 1 | 6,246,470 | null | 1 | 628 |
I'm writing RESTful service with basic authorization.
Here is what I do when no authorization header present or when there is wrong UN/Password
```
//Get authorization header
var auth = HttpContext.Current.Request.Headers.GetValues("Authorization");
if (auth == null)
{
outgoingResponse.StatusCode = HttpStatusCode.Unauthorized;
return false;
}
//Parse auth header:
var authString = auth[0];
String loginName, password;
try
{
var decbuff = Convert.FromBase64String(authString.Replace("Basic ", ""));
loginName = System.Text.Encoding.UTF8.GetString(decbuff).Split(':')[0];
password = System.Text.Encoding.UTF8.GetString(decbuff).Split(':')[1];
}
catch
{
outgoingResponse.StatusCode = HttpStatusCode.Unauthorized;
outgoingResponse.StatusDescription = "Invalid Authorization header";
return false;
}
```
When I look in Fiddler I see this:

It works OK with my client (Android) but I want this service to be browseable via Explorer or other browsers. How do I make explorer to ask for UN/Password if I send 401? Do I need to specify something?
Thanks
|
wcf 401 and asking for login/password in RESTful service
|
CC BY-SA 3.0
| null |
2011-06-05T21:20:53.153
|
2011-06-05T22:58:11.583
| null | null | 509,600 |
[
"c#",
"wcf",
"http",
"rest"
] |
6,246,238 | 1 | 6,246,248 | null | 13 | 23,372 |
I'm a fairly experienced programmer and I've just recently discovered node.js. I love JavaScript because that's where I started (Web Development) so being able to write server-side code with its is amazing.
Currently, I'm working on a simple exercise, a WebSocket/HTTP server, and I began to add a directory list function when I ran into a slight annoyance: when I list directories and files in a certain directory they're not in any order. I would like them to be listed with directories first, files second than alphabetically (like the 'ls' command). I have a feeling its because its asynchronus but I'm not totally positive. Any help would be appreciated.
BTW, here's my code:
```
var sys = require("sys");
var ws = require('websocket-server');
var fs = require("fs");
var path = require("path");
var url = require("url");
function log(data){
sys.log("\033[0;32m"+data+"\033[0m");
}
var server = ws.createServer();
server.listen(3400);
log("Listening on 3400 for HTTP and WS");
server.addListener("request", function(request, response){
log("HTTP: Connected: " + request.connection.remoteAddress);
var uri = url.parse(request.url).pathname;
var filename = path.join("/home/brandon", uri);
log("HTTP: " + request.connection.remoteAddress + " Requested: " + filename);
path.exists(filename, function(exists) {
if(!exists) {
response.writeHead(404, {"Content-Type": "text/plain"});
response.write("404 Not Found\n");
log("HTTP: " + filename + " Does Not Exist. 404 returned to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
return;
}
fs.readFile(filename, "binary", function(err, file) {
if(err) {
if(err.errno === 21){
fs.readdir(filename, function(err1, files){
if(err1){
response.writeHead(500, {"Content-Type": "text/plain"});
response.write("Error when reading directory: " + err1 + "\n");
log("HTTP: " + filename + " Could Not Be Read. 500 returned to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
return;
} else {
response.writeHead(200);
response.write("<HTML><HEAD><title>Directory Listing for " + uri + "</title></HEAD><BODY><h1>Directory Listing for " + uri + "</h1>");
response.write("<ul>");
function printBr(element, index, array) {
response.write("<li>" + element + "</li>");
}
/*for( i in files ){
response.write("<li>" + files[i] + "</li>");
}*/
files.forEach(printBr);
response.write("</ul>");
response.write("</BODY></HTML>");
log("HTTP: Directory listing for " + filename + " sent to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
return;
}
});
return;
}
response.writeHead(500, {"Content-Type": "text/plain"});
response.write("Error when reading file: " + err + "\n");
log("HTTP: " + filename + " Could Not Be Read. 500 returned to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
return;
}
response.writeHead(200);
response.write(file, "binary");
log("HTTP: " + filename + " Read and Sent to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
});
});
});
server.addListener("connection", function(conn){
log(conn.id + ": new connection");
server.broadcast("New Connection: "+conn.id);
conn.addListener("readyStateChange", function(readyState){
log("stateChanged: "+readyState);
});
conn.addListener("close", function(){
var c = this;
log(c.id + ": Connection Closed");
server.broadcast("Connection Closed: "+c.id);
});
conn.addListener("message", function(message){
log(conn.id + ": "+JSON.stringify(message));
server.broadcast(conn.id + ": "+message);
});
});
```
And here's the output in the browser:

# **SOLVED:**
Thanks to @Samir, I found out how to do exactly what I wanted to do. I iterated through the array of the directory contents, checked if an item was a directory or file, separated them into two arrays ('dirs_in' for dirs and 'files_in' for files), sorted the two arrays alphabetically, and finally wrote them out.
Code (Lines 42-70):
```
response.writeHead(200);
response.write("<HTML><HEAD><title>Directory Listing for " + uri + "</title></HEAD><BODY><h1>Directory Listing for " + uri + "</h1>");
response.write("<ul>");
function printBr(element, index, array) {
response.write("<li>" + element);
if( fs.statSync( path.join(filename + element) ).isDirectory() ){
response.write(" is a <b>dir</b>");
} else {
response.write(" is a <b>file</b>");
}
response.write("</li>");
}
var dirs_in = [];
var files_in = [];
function sep(element, index, array) {
if( fs.statSync( path.join(filename + element) ).isDirectory() ){
dirs_in.push(element);
} else {
files_in.push(element);
}
}
files.forEach(sep);
dirs_in.sort().forEach(printBr);
files_in.sort().forEach(printBr);
response.write("</ul>");
response.write("</BODY></HTML>");
log("HTTP: Directory listing for " + filename + " sent to " + request.connection.remoteAddress);
response.end();
log("HTTP: Disconnected: " + request.connection.remoteAddress);
```
Browser Output:

P.S. I'll remove the 'is a dir' and 'is a file'. They were just for testing.
|
How to list contents of a directory IN ORDER with node.js?
|
CC BY-SA 3.0
| 0 |
2011-06-05T22:11:46.373
|
2021-01-04T06:29:55.723
|
2011-06-06T02:47:40.607
| 662,947 | 662,947 |
[
"javascript",
"list",
"node.js",
"directory",
"inorder"
] |
6,246,384 | 1 | 6,246,566 | null | 2 | 2,413 |
I found that in the center of [Mozilla home page](http://www.mozilla.org/), there is a <select> element (drop-down list) whose arrow has no border and background color. While on [facebook sign-up page](http://www.facebook.com/), the drop-down arrow has the windows standard border and background color. I am wondering what makes this difference? I tried to set `border` to `none` in CSS, but it only hides the border around the whole <select> element, the arrow still has border. I am using Firefox 4 on Windows.
See attached screenshot. The upper half shows the drop-down list on Facebook, while the lower half shows the drop-down list on Mozilla.

|
How to hide the border and background color of the drop-down arrow of a HTML <select> element?
|
CC BY-SA 3.0
| null |
2011-06-05T22:39:29.993
|
2011-06-06T02:21:57.087
|
2011-06-06T02:21:57.087
| 203,458 | 312,483 |
[
"css",
"windows",
"firefox",
"firefox4"
] |
6,246,938 | 1 | 6,247,003 | null | 5 | 34,390 |
I recently tried installing WAMP but found that none of the pages will load. It also has an orange W logo, if that means anything. It does say (Tray Icon) that the though. I also did some research and found that Skype may cause problems and I removed the option, but it still won't work. I get the following screen in my Chrome browser, any ideas?

After further research I found that something may have gone wrong with the installation and Skype. I don't know how this happened but after a re-instillation everything worked fine. Thanks for your guy's help.
|
Why doesn't http://localhost/ load anything with WAMP?
|
CC BY-SA 3.0
| 0 |
2011-06-06T00:48:39.480
|
2013-06-05T17:27:21.117
|
2012-06-02T14:31:50.110
| 367,456 | 648,865 |
[
"php",
"localhost",
"wamp"
] |
6,247,046 | 1 | 6,248,940 | null | 0 | 287 |
What is the best way to incorporate this default Forgot Password functionality into a custom module?

|
DotNetNuke 5.6.2 - What is the best method to incorporate the default DNN Forgot Password functionality into a custom module?
|
CC BY-SA 3.0
| null |
2011-06-06T01:18:35.380
|
2011-06-27T10:27:51.277
| null | null | 127,880 |
[
"dotnetnuke"
] |
6,247,112 | 1 | 6,247,143 | null | 0 | 96 |
Its been a few hours now and I cannot figure out why there is a gap in my layout.

[http://dl.dropbox.com/u/4123377/gap.png](http://dl.dropbox.com/u/4123377/gap.png)
[http://pastebin.com/7WktN5EA](http://pastebin.com/7WktN5EA)
[http://pastebin.com/Fj8rukJ8](http://pastebin.com/Fj8rukJ8)
The button is "#login"
|
Why is there a gap in my layout?
|
CC BY-SA 3.0
| null |
2011-06-06T01:36:06.267
|
2011-06-06T01:54:49.107
|
2020-06-20T09:12:55.060
| -1 | null |
[
"html",
"css"
] |
6,247,133 | 1 | 6,247,273 | null | 0 | 515 |
I am trying to use XDocument.Parse(string s) to parse some XML that is being returned from a REST based API. After the XML is parsed, it creates a new XDocument, but the document doesn't contain the properly parsed XML nodes. The name of the first node is the correct node name, but the value is the the concatenation of all the text from the XML, regardless of which Element is belongs to. Can anybody help me figure out what is going on?
```
<sci_reply version="1.0">
<send_message>
<device id="00000000-00000000-00000000-00000000">
<error id="303">
<desc>Invalid target. Device not found.</desc>
</error>
</device>
<error>Invalid SCI request. No valid targets found.</error>
</send_message>
</sci_reply>
```

|
Why doesn't XDocument.Parse() parse my XML properly?
|
CC BY-SA 3.0
| null |
2011-06-06T01:42:24.547
|
2011-06-06T02:14:37.570
| null | null | 592,965 |
[
"c#",
".net",
"linq"
] |
6,247,298 | 1 | null | null | 0 | 1,454 |
I have a very weird memory management issue going on in my apps. I have a UISplitViewController appps in which the RootViewController is a UITabBarApplication. The error:
```
*** -[UIImage retain]: message sent to deallocated instance 0x555960
```
always happens when I try to switch views by tapping on the tab bar buttons. I have three tab bar buttons at the button. I also don't have any call to UIImage retain anywhere in my code.
Does anyone have any hints on how to debug this? I have no idea on how to reproduce this specifically, all I know is that this sometimes happens when I switch between tabs.
The debugger breaks at:
```
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, @"CVore", nil);
[pool release];
return retVal;
}
```

I got Received memory warning. Level=1 and then when I switch tab, it gives me that error.
|
*** -[UIImage retain]: message sent to deallocated instance
|
CC BY-SA 3.0
| 0 |
2011-06-06T02:20:48.363
|
2011-06-06T09:44:29.593
|
2011-06-06T04:54:27.573
| 721,937 | 721,937 |
[
"iphone",
"objective-c",
"memory-management"
] |
6,247,342 | 1 | 10,351,468 | null | 1 | 3,189 |
I'm using [FPDF](http://www.fpdf.org/) (generate PDF from PHP). I want to show all the items in my array in the table titles, but only some are shown, like the list is too big to fit, but is not properly formatted. I yet don't understand how to move the dimensions for my table header.

This is my code:
```
<?php
require('fpdf.php');
class PDF extends FPDF
{
//Load data
function LoadData($file)
{
//Read file lines
$lines=file($file);
$data=array();
foreach($lines as $line)
$data[]=explode(';',chop($line));
return $data;
}
//Colored table
function FancyTable($header,$data)
{
//Colors, line width and bold font
$this->SetFillColor(255,0,0);
$this->SetTextColor(255);
$this->SetDrawColor(128,0,0);
$this->SetLineWidth(.3);
$this->SetFont('','B');
//Header
$w=array(40,35,40,45);
for($i=0;$i<count($header);$i++)
$this->Cell($w[$i],7,$header[$i],1,0,'C',true);
$this->Ln();
$this->Cell(array_sum($w),0,'','T');
}
}
$pdf = new PDF('L', 'mm', 'A4');
//Column titles
$header=array('Name','Surname','Date','Start','Br Start','Br End','Start','End','Centre');
//Data loading
$data=$pdf->LoadData('countries.txt');
$pdf->SetFont('Arial','',12);
$pdf->AddPage();
$pdf->FancyTable($header,$data);
$pdf->Output();
?>
```
|
Why my table doesn't fit in the PDF output?
|
CC BY-SA 3.0
| null |
2011-06-06T02:32:48.847
|
2017-09-12T21:57:10.797
|
2017-09-12T21:57:10.797
| 4,370,109 | 523,507 |
[
"php",
"pdf-generation",
"fpdf"
] |
6,247,565 | 1 | 6,259,864 | null | 1 | 832 |
I'm trying to create a simple test website using spring MVC and I cannot seem to get past the most simple case. I have a jsp website that is a "login" that has 2 inputs and a submit button, but it will not display anything except an error message. Using Spring 3.0.2 and Tomcat 6.0.29 Stand-alone.
IndexController.java:
```
@Controller
@RequestMapping("login.htm*")
public class IndexController {
@RequestMapping(method=RequestMethod.GET)
public String getLoginPage(Map model){
UserAccess user = new UserAccess();
model.put("user", user);
return "login";
}
```
login.jsp:
```
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<form:form action="login.htm" commandName="user">
<table>
<tr>
<td>Enter Username:</td>
<td><form:input path="username" /></td>
</tr>
<tr>
<td>Enter Password:</td>
<td><form:password path="password" /></td>
</tr>
<tr>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form:form>
</body>
</html>
```
My UserAccess class is nothing more then a username, password and a bunch of getter/setters, just like any bean should be. Enclosed it a picture of the error I get upon build, please let me know if you need any more information to help me.

My servlet.xml
```
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="" />
<property name="suffix" value=".jsp" />
</bean>
```
As well as my project's web.xml
```
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
```
|
Spring MVC IllegalStateException Error
|
CC BY-SA 3.0
| null |
2011-06-06T03:41:58.983
|
2011-06-07T01:45:52.263
|
2011-06-06T04:47:26.013
| 256,108 | 256,108 |
[
"java",
"spring",
"jsp",
"tomcat"
] |
6,247,596 | 1 | 6,248,031 | null | 4 | 1,028 |
Is there a way to know when the panorama view gets changed from say a current title "Settings" to "Help"? I need this so I know what view to open if they click the add button or remove appbar buttons.
So lets say we got a panerama view like:

How can we know when the user changed from the recent part to the part the phone is currently on or the network part?
|
Panorama Page Layout Change? Windows Phone 7
|
CC BY-SA 3.0
| 0 |
2011-06-06T03:51:41.390
|
2013-04-14T16:28:57.147
| null | null | 677,110 |
[
"c#",
"silverlight",
"windows-phone-7"
] |
6,247,625 | 1 | 6,247,763 | null | 1 | 1,189 |
I am testing a few things here in a basic webpage, and I noticed something very odd. I'm not sure if this behavior is to be expected, but it does make me wonder...
I know I can get the Current User ID of the person currently logged in, like so:
```
@WebSecurity.CurrentUserId
```
And just to see how Sessions are used, I thought I'd just store (as an example) the CurrentUserId in a Session variable once the user logs in, like this:
```
@Session["UserIDthing"] = @WebSecurity.CurrentUserId;
```
And then on another page, I just output the session id (which should be exactly equal to 1, because thats what my UserId is), like this:
```
@Session["UserIDthing"]
```
But, instead of it outputting "1", it outputs minus 1 "-1". Why does this happen?

And just to make sure I was right about the user id, I outputted the user id using:
```
@WebSecurity.CurrentUserId
```
And it displayed the correct ID, which is just "1"
|
Confusing Result with @Session["something_here"] (C#/Razor)
|
CC BY-SA 3.0
| 0 |
2011-06-06T03:57:11.290
|
2011-06-06T12:41:57.130
| null | null | 772,619 |
[
"c#",
"asp.net",
"session",
"razor",
"webmatrix"
] |
6,247,708 | 1 | null | null | 0 | 946 |
I am assigning a button and an image to the same position (0, 0), but they are drawn in different locations. Why does this happen?
Here is my code:
```
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
[window makeKeyWindow];
[window setFrame:NSMakeRect(0, 0, 500, 468) display:YES];
//[window setFrame:[[NSScreen mainScreen]frame] display:YES];
[window setBackgroundColor:[NSColor clearColor]];
[window center];
[[window contentView] setAutoresizesSubviews:YES];
NSImageView *subView = [[NSImageView alloc]initWithFrame:NSMakeRect(0, 0, 500, 468)];
[subView setImage:[NSImage imageNamed:@"Flowers.jpg"]];
[subView setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
[subView setAutoresizesSubviews:YES];
NSButton *subButton = [[NSButton alloc]initWithFrame:NSMakeRect(0, 0, 100, 40)];
[subButton setTitle:@"testing"];
[subButton setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable|NSViewMaxXMargin|NSViewMaxYMargin|NSViewMinXMargin|NSViewMinYMargin];
[subView addSubview:subButton];
[window setContentView:subView];
}
```
and here is the result after building:

|
Image and button in NSImageView are in wrong positions
|
CC BY-SA 3.0
| null |
2011-06-06T04:17:46.977
|
2012-06-06T10:58:51.853
|
2012-06-06T10:58:51.853
| 1,028,709 | 718,408 |
[
"objective-c",
"cocoa",
"macos",
"nsbutton",
"nsimageview"
] |
6,247,759 | 1 | 6,247,978 | null | 1 | 449 |
I am trying to create a 'blank_star icon' in every cell of a table view, the star should become a 'solid' star after the user clicks on it.
I have created a subclass of `UIButton` as seen below
```
//.h file
@interface Bleh : UIButton {
}
+(id)specialInit;
-(void)vvv;
@end
//.m file
@implementation Bleh
+(id) specialInit
{
Bleh* button=[super buttonWithType:UIButtonTypeCustom];
[button setImage:[UIImage imageNamed:@"blank_star.png"] forState:UIControlStateNormal];
[button setImage:[UIImage imageNamed:@"star.png"] forState:UIControlStateDisabled];
[button addTarget:button action:@selector(vvv) forControlEvents:UIControlEventTouchUpInside];
NSLog(@"%d",[button isEnabled]);
return button;
}
-(void)vvv
{
NSLog(@"button tapped");
[self setEnabled:false];
}
@end
```
I added the subclass of UIButton in my table view's `cellforRow:` method as follows:
```
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
int row = indexPath.row;
NSString *cc = [array objectAtIndex:row];
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
// Configure the cell...
Bleh *button = [Bleh specialInit];
button.frame = CGRectMake(0, 0, 100, 100);
NSLog(@"Button:%@ at row number: %i",button, indexPath.row);
cell.textLabel.text = cc;
[cell.contentView addSubview:button];
}
return cell;
}
```
However I am getting an issue when running the app. For instance, if I click on the cell marked 'a', the star becomes solid as expected.

The strange thing is that after scrolling down, I see some other cells with the solid star as well (see cell 'e').

Can anyone help to explain why this is happening? It seems like the `state` of the cell is being re-used in other cells. How can I avoid this happening?
|
Issue with setting icon image in cell
|
CC BY-SA 3.0
| null |
2011-06-06T04:29:40.420
|
2011-06-06T05:18:30.273
|
2011-06-06T05:18:30.273
| 603,977 | 683,898 |
[
"objective-c",
"ios",
"uitableview",
"uiimage",
"reuseidentifier"
] |
6,247,778 | 1 | null | null | 2 | 2,297 |
I am trying to create an AJAX filter along with an AJAX pagination feature.

Initially, as you can see, I paginated all the "posts" of all users. Pagination works perfectly here. But then when I select from the drop-down menu a user, so that the page only shows up all the posts of that particular user, pagination mysteriously disables (The illustration shows I chose user "neilmarion").

I followed [this](http://railsontherun.com/2007/9/27/ajax-pagination-in-less-than-5-minutes/) tutorial to AJAXify my pagination function and it works perfectly.
Below is the page's view code (index.html.erb):
```
<script src="javascripts/a.js" type="text/javascript"></script>
<%= javascript_include_tag 'prototype' %>
<%= javascript_include_tag 'lowpro' %>
<%= javascript_include_tag 'application' %>
<h1>AJAXIFIED PAGINATION TEST (will_paginate gem)</h1>
<%= collection_select(:person,
:id,
@people, :id, :name,
{},
{:onChange => remote_function(:with => "'user_id='+value", :update => "search_results", :url =>{ :controller => :home, :action => :filter_posts_by_person } ) }) %>
<div id="search_results">
<%= render :partial => "search_results" %>
</div>
```
Below is the partial that is being updated whenever a user selects from the drop-down menu (_search_results.html.erb)
```
<% width = 1000 %>
<% rheight = 50 %>
<% colsperrow = 2 %>
<% desuserperpage = 8.0 %>
<table border="0" width="<% width %>">
<% e = @posts.count %>
<% d = 0 %>
<% while d < (desuserperpage / colsperrow).ceil %>
<tr height="<%= rheight %>">
<% c = 0 %>
<% while c < colsperrow %>
<% if (d*colsperrow)+c >= @posts.count %>
<td width="<%= width/(2*colsperrow) %>">
</td>
<td width="<%= width/(2*colsperrow) %>">
</td>
<% else %>
<td width="<%= width/(2*colsperrow) %>" align="right">
<%= image_tag Person.find(@posts[(d*colsperrow)+c].person_id).avatar.url(:small) %>
</td>
<td width="<%= width/(2*colsperrow) %>" bgcolor="yellow">
<font face="arial" size="2">
<%= @posts[(d*colsperrow)+c].content %>
</font>
</td>
<% end %>
<% c+=1 %>
<% end %>
<% d+=1 %>
</tr>
<% end %>
</table>
<%= will_paginate @posts %>
```
Below is the controller (home_controller.rb) in charge of the pagination and filtering of posts:
```
class HomeController < ApplicationController
def index
@posts = Post.paginate(:per_page => 8, :page => params[:page], :order => 'updated_at')
@people = Person.find(:all)
respond_to do |format|
format.html # index.html.erb
format.js do
render :update do |page|
page.replace_html 'search_results', :partial => "search_results"
end
end
end
end
def filter_posts_by_person
@posts = Post.paginate(:conditions => ["posts.person_id = ?", params[:user_id]], :per_page => 8, :page => params[:page], :order => 'updated_at')
Rails.logger.debug params.inspect
render :partial => "search_results"
end
end
```
As you can see from the images above, the url of the pagination links changes whenever there is an ajax call made to filter the posts.
I don't really have an idea why pagination does not work anymore right after I select from the drop-down menu.
|
Pagination (will_paginate) Does Not Work After an Ajax Call
|
CC BY-SA 3.0
| null |
2011-06-06T04:34:12.947
|
2011-06-13T12:44:39.553
| null | null | 320,161 |
[
"ruby-on-rails",
"ajax",
"filter",
"pagination",
"will-paginate"
] |
6,247,908 | 1 | null | null | 1 | 255 |
I am working on a mac app. My setup is as follows -
Xcode 3.2.5
Mac OS X 10.6.6
and here are the target properties -

My Client is using PowerBook G4 12'. Here is his configuration -
```
Model Name: PowerBook G4 12'Model Identifier: PowerBook 6,1Processor Name: PowerPC G4 (3.3)Processor Speed: 867 MHzNumber of CPUs: 1L2 cache (per cpu): 256 KBMemory: 1.12 GBBus Speed: 133 MHzBoot ROM version: 4.5.5faSerial number: UV3132DTMRTHardware UUID: 00000000-0000-80000-000A956CD1C6
```
I think for PowerPC G4 I should include the ppc7400 in the "valid architectures" but client is getting this following error -

My Question is what settings are needed to run this app on PowerPC G4?
yes it runs well on my machine.
Here is the output of file command on executable.

Yes I am on xcode 3.2.5
client is only getting the error in popup.
V - 64 bit integer math is already disabled

|
why this app is not working on PowerPC G4
|
CC BY-SA 3.0
| null |
2011-06-06T04:58:07.083
|
2011-06-06T08:00:39.730
|
2011-06-06T08:00:39.730
| 303,073 | 303,073 |
[
"cocoa",
"macos",
"architecture",
"powerpc"
] |
6,248,058 | 1 | 6,271,215 | null | 4 | 3,447 |
I'm simply putting a marker on the map (after it's all set up and centered like in the sample code in the Google documentation) using geocoder and place an infoWindow on it like so:
```
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var marker = new google.maps.Marker({
position: results[0].geometry.location,
map: map,
title: title
});
google.maps.event.addListener(marker, 'click', function () {
console.log('openInfoWindow');
infoWindow.setContent(content);
infoWindow.open(map, marker);
});
};
});
```
`content` is just an HTML link, `address` is a valid address (since I have no problem showing the marker).
As you can see on this picture, I have a little graphical problem:

It's like the css sprite is all… messed up. I have no idea where this problem comes from, have been on it for a while now and I'm getting annoyed… any guess is helpful at this point. The screen capture is the same in Webkit (Safari & Chrome) and Firefox.
|
InfoWindow graphics "messed up" using Google Maps API v3
|
CC BY-SA 3.0
| null |
2011-06-06T05:20:23.450
|
2013-05-14T15:40:25.863
|
2012-03-16T16:25:16.853
| 21,234 | 757,781 |
[
"javascript",
"google-maps"
] |
6,248,200 | 1 | null | null | 1 | 808 |
I'm new to cakephp and I have found this [milesjohnson's upload plugin](http://milesj.me/code/cakephp/uploader#script) ,
and I kind of like it, mostly because it gives me the chance of renaming the file once uploaded.Unfortunately, I can't get it to upload any zip/rar files.
This is the action where I upload the file:
```
function add() {
if (!empty($this->data)) {
if ($data = $this->Uploader->upload('link_referencia', array('name' => date("dmYhis")))) {
debug($data);
$this->data['Publicacione']['link_referencia']=$data['name'];
}
$this->Publicacione->create();
if ($this->Publicacione->save($this->data)) {
$this->Session->setFlash(__('The publicacione has been saved', true));
//$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The publicacione could not be saved. Please, try again.', true));
}
}
$users = $this->Publicacione->User->find('list');
$this->set(compact('users'));
}
```
And this is the error I get everytime I attempt to upload any zip/rar file :
Full insert query:
```
INSERT INTO `publicaciones` (`vigencia`, `tipo`, `titulo`, `descripcion`, `fecha_publicacion`, `fecha_caducidad`, `link_referencia`, `modified`, `created`) VALUES (1, 'c', 'there\'s nothing you can\'t do', '
fsdfsdfsdf
', '2011-06-07', '2011-06-30', Array, '2011-06-07 16:47:23', '2011-06-07 16:47:23')
```
Does anyone have any ideas on what the problem might be?
Thanks in advance.
|
Problem when trying to upload zip/rar files with the milesjohnson's upload plugin
|
CC BY-SA 3.0
| 0 |
2011-06-06T05:47:59.033
|
2013-01-04T22:23:55.213
|
2011-06-07T21:51:00.187
| 530,911 | 530,911 |
[
"cakephp",
"plugins"
] |
6,248,235 | 1 | 6,451,923 | null | 0 | 354 |
My software depends on the [Indic script : 'Regional and Language Options' in control panel](http://en.wikipedia.org/wiki/Wikipedia:Enabling_complex_text_support_for_Indic_scripts#Windows_XP_and_Server_2003) (Unicode support) to be installed on windows pc
Using C# How do I check if the unicode is installed on the pc?

|
How to check if Regional Languages are installed on windows OS
|
CC BY-SA 3.0
| null |
2011-06-06T05:54:40.847
|
2011-06-23T09:26:30.110
|
2011-06-07T05:42:22.450
| 223,752 | 223,752 |
[
"c#",
"windows",
"unicode"
] |
6,248,299 | 1 | null | null | 0 | 111 |
I am working on a product which needs to display the site created on i-phone. However there is some content in the site which is causing the bad XML parsing error on I-Phone only. Is there any way to tell the I-Phone and other mobiles to ignore such type of errors .

|
Not well formed XML error on I-Phone
|
CC BY-SA 3.0
| null |
2011-06-06T06:02:35.200
|
2011-06-06T06:09:01.673
| null | null | 504,459 |
[
"iphone",
"xml",
"xhtml",
"wap"
] |
6,248,401 | 1 | 6,248,445 | null | 2 | 372 |
I'm am building a google app engine java based website.
I want to allow in only users who are logged in to google.
I chose Google Accounts API and went according to the instructions.
however when a user is not logged in with google it takes him to this silly log in page where he can chose (!) his google accounts email - not very secure.

What am i doing wrong?
|
Google App engine Authentication Issue (google accounts API)
|
CC BY-SA 3.0
| null |
2011-06-06T06:18:18.393
|
2011-06-06T06:31:23.577
| null | null | 172,815 |
[
"java",
"google-app-engine",
"authentication"
] |
6,248,419 | 1 | null | null | 0 | 843 |
Architecture of my "" application
Technology : ASP.NET
Language : C#
The asp.net pages are stored in the webserver.
A folder named is exist in the webserver. I do store the images (browsed, selected, and stored by users) in the . I could access all the attributes and content of the images stored in . I used to display images using control of ASP.NET.
Instead of storing the images in a folder of the webserver, I do setup a dedicated with the following credentials(say)
user name : my_name
password : wXy12Apl
I login to the system, access the folder where I stored the images, read the all attributes of the files. Then I added the file name to a dropdown list,so it will look ;like this

So on the event I tried to display the images using control of ASP.NET. But I could not. What will be the problem? I could access all the attributes of the files, but I could not read the of image.
For eg; When I select first image, the contol looks like

When I select second image, the contol looks like

|
ASP.NET C# File Access
|
CC BY-SA 3.0
| 0 |
2011-06-06T06:20:41.670
|
2011-06-06T18:58:05.580
|
2011-06-06T08:10:23.143
| 767,445 | 767,445 |
[
"c#",
"asp.net",
"permissions",
"filesystems"
] |
6,248,472 | 1 | null | null | 1 | 9,418 |
I am using jQuery Grid plugin(jQGrid) and i am wondering how could I achieve such behavior with jQGrid inline Edit Actions like on that sample [http://www.trirand.net/aspnetmvc/grid/EditRowInlineActionIcons](http://www.trirand.net/aspnetmvc/grid/EditRowInlineActionIcons)
Currently i setup my jQGrid with pager with edit actions:
```
.navGrid('#pager', { view: false, edit: true, add: true, del: true, search: false });
```
but i want to have inline Edit Actions like in the sample above, may be some one did something like
that.

Need help.
I put the property `editactioniconscolumn: true` but still din't get the Edit Actions
```
colNames: ['Id', 'FName', 'LName'],
colModel: [{ hidden: true, name: 'Id', index: 'Id', width: 50, align: 'left', editable: true },
{ name: 'FName', index: 'FName', width: 50, align: 'left', editable: true, editactioniconscolumn: true },
{ name: 'LName', index: 'LName', width: 50, align: 'left', editable: true, editactioniconscolumn: true }]
```
|
jQGrid display inline edit delete cancel buttons
|
CC BY-SA 3.0
| 0 |
2011-06-06T06:28:17.097
|
2012-10-31T20:15:29.800
|
2011-06-06T06:58:52.403
| 735,490 | 735,490 |
[
"asp.net-mvc-3",
"jqgrid"
] |
6,248,491 | 1 | 6,248,543 | null | 3 | 2,241 |
There is a Java Struts application running on Tomcat, that have some memory errors. Sometimes it becomes slowly and hoard all of the memory of Tomcat, until it crashes.
I know how to find and repair "normal code errors", using tests, debugging, etc, but I don't know how to deal with memory errors (How can I reproduce? How can I test? What are the places of code where is more common create a memory error? ).
In one question: Where can I start? Thanks
EDIT:
A snapshot sended by the IT Department (I haven't direct access to the production application)

|
How to debug Java memory errors?
|
CC BY-SA 3.0
| 0 |
2011-06-06T06:30:38.143
|
2011-06-07T07:36:43.803
|
2011-06-07T07:36:43.803
| 674,887 | 674,887 |
[
"java",
"performance",
"memory-leaks",
"profiling"
] |
6,248,541 | 1 | null | null | 0 | 1,197 |
I am converting a HTML in PDF using tcpdf using PHP.
Kindly view the output here for the below given content.

```
<div style="text-indent: -76.5pt; margin: 0in 54.9pt 0pt 76.5pt;"><strong><span style="font-size: small;"><span style="text-transform: uppercase;">Motion with Constant Acceleration</span></span></strong> </div>
<p style="text-indent: -76.5pt; margin: 0in 54.9pt 0pt 76.5pt;"><span style="text-transform: uppercase;">Overview<br />
</span><br />
The concepts of displacement, velocity, and acceleration are very important to master. The study of acceleration provides an important link between kinematics (the study of motion) and dynamics (the study of the causes of motion). The study of acceleration also plays a key role in understanding such concepts as gravity, circular motion, harmonic motion, electricity and magnetism. The simplest case of acceleration to analyze mathematically is that for an object moving with a constant acceleration. This is the situation for any object experiencing a constant force. </p>
<div style="text-indent: -76.5pt; margin: 0in 54.9pt 0pt 76.5pt;" class="rteindent1">
<div style="text-indent: -76.5pt;"><span style="font-size: 9pt;"> 1. You will measure the position of at various time intervals as it moves down an inclined track due to the force of gravity. A tape timer will be used to measure time intervals of 0.1 s and the corresponding displacement in position.</span></div>
<div style="text-indent: -76.5pt;"> </div>
<div style="text-align: justify; text-indent: -13.5pt;"><span style="font-size: 9pt;">2. Next, you will determine the average velocity and time for several points along the carts path of motion from the tape timer data.</span></div>
<div style="text-indent: -76.5pt;"> </div>
<div style="text-align: justify; text-indent: -13.5pt;"><span style="font-size: 9pt;">3. Finally, you will determine the acceleration of the cart down the track from a plot of the average velocity vs. time. Using trigonometric principles, you will verify that the acceleration is due to the force of gravity.</span></div>
</div>
```
Kindly see that . I find out that by `Even *if i give that style* content should not go out of the page`... Wat should be done to resolve this issue?
Thanks in advance....
|
TCPDF Setting Fixed Border
|
CC BY-SA 3.0
| null |
2011-06-06T06:36:42.373
|
2011-06-08T15:11:25.343
| null | null | 154,137 |
[
"php",
"html",
"tcpdf"
] |
6,248,754 | 1 | null | null | 0 | 953 |
I have a website in English. I am having a problem with the text of file upload control. I want to show its text in English to all users. But in chrome it shows message as per user's locale. If user's browser is set to display Google Chrome in danish it will show file upload text in danish.
Note: I know it is a stupid question as user has told chrome to show him in danish. But curious if there is any way. Because my all other page content is in English.
|
File upload control text language in google chrome
|
CC BY-SA 3.0
| null |
2011-06-06T07:04:05.683
|
2011-06-06T13:18:46.410
|
2011-06-06T11:47:46.597
| 357,318 | 357,318 |
[
"asp.net",
"html",
"google-chrome"
] |
6,248,771 | 1 | 6,248,877 | null | 0 | 186 |
I have a DB in which there are 4 tables.
A -> B -> C -> D
Current the way I have it is, the Primary Key of A is a foreign key in B. And B would have it's own Primary Key, which is a foreign key in C, etc etc.
However, C can't be linked to A without B.
The problem is, a core function of my program involve pulling matching entries from A and D.
Should I include the primary key of A in D too
Doing so will create unnecessary data duplication 'coz A->B->C->D are hierarchy.
see pic for what D would look like.
|
normalize or not?
|
CC BY-SA 3.0
| null |
2011-06-06T07:06:21.153
|
2011-06-06T07:21:19.717
| null | null | 763,600 |
[
"foreign-keys",
"normalization",
"hierarchy"
] |
6,248,840 | 1 | null | null | 0 | 1,678 |
i took the example from
[http://developers.facebook.com/docs/guides/mobile/](http://developers.facebook.com/docs/guides/mobile/) now whenever
i run the app...either it takes too long time to load the face book sign-up or it never loads...it stays in whit screen with heading

now what shall i do to load in a faster way...
`public class MyGreatActivity extends Activity {
```
Facebook facebook = new Facebook("20875929582353");
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
facebook.authorize(this, new DialogListener() {
@Override
public void onComplete(Bundle values) {
// TODO Auto-generated method stub
}
@Override
public void onFacebookError(FacebookError e) {
// TODO Auto-generated method stub
}
@Override
public void onError(DialogError e) {
// TODO Auto-generated method stub
}
@Override
public void onCancel() {
// TODO Auto-generated method stub
}
});
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
facebook.authorizeCallback(requestCode, resultCode, data);
}
```
}`
|
facebook app loading slow in android
|
CC BY-SA 3.0
| null |
2011-06-06T07:16:18.923
|
2011-06-06T09:33:59.530
| null | null | 598,084 |
[
"java",
"android"
] |
6,248,889 | 1 | 6,249,195 | null | 0 | 1,049 |
In a Ruby-on-Rails website, I want to create the following dialog, where a user is shown a list of colors and must choose 3 favorites and 3 least liked colors.
It works by dragging an item from the left and dropping it on the right.
What is the easiest and most maintainable library/method to implement this?

|
Which JavaScript framework for this drag-n-drop UI in a ROR3 website?
|
CC BY-SA 3.0
| null |
2011-06-06T07:23:39.653
|
2011-06-06T08:01:53.597
| null | null | 226,958 |
[
"ruby-on-rails-3",
"drag-and-drop",
"dhtml",
"javascript-framework"
] |
6,249,152 | 1 | null | null | 0 | 114 |
I am a newbie when compared to android development and i am just going through the sample projects to get a hang of it. I just tried to copy a style from Wikitionary( a sample app that comes with android SDK).
```
<style name="LookupTheme" parent="@android:style/Theme.Light">
<item name="android:windowBackground">@drawable/lookup_bg</item>
</style>
```
And specified this as the default theme in manifest file. This produced an effect, like this.
This is exactly what i wanted.. Now i have added a preference page to allow user to choose from a list of themes to be applied. Hence, i removed the theme attribute from manifest file(to use default theme) and i tried to apply theme programatically. Like this
```
SharedPreferences sPref = PreferenceManager.getDefaultSharedPreferences(act.getApplicationContext());
String themeid = sPref.getString("theme_pref", "1");
int themeID = Integer.valueOf(themeid);
if(themeID== 2){
Log.d(Constants.LOG_TAG, "Light theme have been choosen");
act.setTheme(R.style.LookupTheme);
}
```
Now the same theme gets applied programatically(as opposed to a declarative approach) and produces an effect like this.

Can someone explain what is wrong here?
|
Weird problem with android theming
|
CC BY-SA 3.0
| null |
2011-06-06T07:56:44.830
|
2011-06-06T08:25:44.157
| null | null | 378,101 |
[
"android"
] |
6,249,209 | 1 | 6,249,393 | null | 0 | 251 |
I want to replicate add contact like screen iPhone has. But I don't want to add contact in default phonebook instead I want to use the details in my app. Is it possible to open default add new contact screen and get all the data? If yes then how? A simple code snippet will be very helpful. Here is an image of add contact screen to better understand my question

|
Is it possible to open addContactScreen from native app?
|
CC BY-SA 3.0
| null |
2011-06-06T08:03:39.213
|
2011-06-06T08:27:08.243
| null | null | 83,905 |
[
"ios4",
"addressbook",
"contact-form"
] |
6,249,182 | 1 | 6,249,268 | null | 0 | 137 |
it's my first time in C# form and I dont know if what I am doing is correct.
below is my form workspace in C# and you can see that there's a lot of things there and it's messy...

i use the this.BackgroundImage = image; to change the background image of the form and i just turn the visible property of each control on whenever they are needed so that it look nice when i run the app (im still not finish with it though, it's hard to work in a form that's messy)

is there anyway i can work in an organized way like i could work with a lot of forms, instead of one, and just interconnect them like in powerpoint where you could have many slides and just use a hyperlink to point to other slides... please help...
and here's my code (sorry for the noob coding style)
```
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;
using System.Data.OleDb;
using Microsoft.VisualBasic;
namespace PProj1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
backfromaboutandhow.Visible = false;
nextbutton.Visible = false;
backfromreserve.Visible = false;
textBox1.Visible = false;
textBox2.Visible = false;
textBox3.Visible = false;
textBox4.Visible = false;
label1.Visible = false;
label2.Visible = false;
label3.Visible = false;
label4.Visible = false;
label5.Visible = false;
finish.Visible = false;
backtoreserve.Visible = false;
N1.Visible = false;
N2.Visible = false;
N3.Visible = false;
N4.Visible = false;
N5.Visible = false;
N6.Visible = false;
N7.Visible = false;
N8.Visible = false;
S1.Visible = false;
S2.Visible = false;
S3.Visible = false;
S4.Visible = false;
S5.Visible = false;
S6.Visible = false;
S7.Visible = false;
S8.Visible = false;
E1.Visible = false;
E2.Visible = false;
E3.Visible = false;
E4.Visible = false;
W1.Visible = false;
W2.Visible = false;
W3.Visible = false;
NW1.Visible = false;
NW2.Visible = false;
NE1.Visible = false;
NE2.Visible = false;
SW.Visible = false;
SE.Visible = false;
}
OleDbConnection con;
OleDbCommand cmd;
OleDbDataAdapter adapter;
DataSet ds;
private void pictureBox1_MouseHover(object sender, EventArgs e)
{
aboutoldtrafford.Location = new Point(16, 9);
}
private void pictureBox1_MouseLeave(object sender, EventArgs e)
{
aboutoldtrafford.Location = new Point(9, 9);
}
private void pictureBox2_MouseHover(object sender, EventArgs e)
{
howtogetthere.Location = new Point(16, 62);
}
private void pictureBox2_MouseLeave(object sender, EventArgs e)
{
howtogetthere.Location = new Point(9, 62);
}
private void pictureBox3_MouseHover(object sender, EventArgs e)
{
reserveaticket.Location = new Point(16, 113);
}
private void pictureBox3_MouseLeave(object sender, EventArgs e)
{
reserveaticket.Location = new Point(9, 113);
}
private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
{
Image image = Properties.Resources.about;
this.BackgroundImage = image;
aboutoldtrafford.Visible = false;
howtogetthere.Visible = false;
reserveaticket.Visible = false;
backfromaboutandhow.Visible = true;
}
private void pictureBox4_MouseHover(object sender, EventArgs e)
{
backfromaboutandhow.Location = new Point(566, 511);
}
private void pictureBox4_MouseLeave(object sender, EventArgs e)
{
backfromaboutandhow.Location = new Point(559, 511);
}
private void pictureBox4_MouseClick(object sender, MouseEventArgs e)
{
backfromaboutandhow.Visible = false;
Image image = Properties.Resources.oldtraffordwelcome1;
this.BackgroundImage = image;
aboutoldtrafford.Visible = true;
howtogetthere.Visible = true;
reserveaticket.Visible = true;
}
private void pictureBox2_MouseClick(object sender, MouseEventArgs e)
{
Image image = Properties.Resources.howto;
this.BackgroundImage = image;
aboutoldtrafford.Visible = false;
howtogetthere.Visible = false;
reserveaticket.Visible = false;
backfromaboutandhow.Visible = true;
}
private void pictureBox3_MouseClick(object sender, MouseEventArgs e)
{
Image image = Properties.Resources.reg1;
this.BackgroundImage = image;
aboutoldtrafford.Visible = false;
howtogetthere.Visible = false;
reserveaticket.Visible = false;
backfromaboutandhow.Visible = false;
textBox1.Visible = true;
textBox2.Visible = true;
textBox3.Visible = true;
textBox4.Visible = true;
label1.Visible = true;
label2.Visible = true;
label3.Visible = true;
label4.Visible = true;
nextbutton.Visible = true;
backfromreserve.Visible = true;
}
private void pictureBox5_MouseHover(object sender, EventArgs e)
{
nextbutton.Location = new Point(545, 463);
}
private void pictureBox5_MouseLeave(object sender, EventArgs e)
{
nextbutton.Location = new Point(539, 463);
}
private void pictureBox6_MouseHover(object sender, EventArgs e)
{
backfromreserve.Location = new Point(30, 463);
}
private void pictureBox6_MouseLeave(object sender, EventArgs e)
{
backfromreserve.Location = new Point(36, 463);
}
private void pictureBox6_MouseClick(object sender, MouseEventArgs e)
{
nextbutton.Visible = false;
backfromreserve.Visible = false;
Image image = Properties.Resources.oldtraffordwelcome1;
this.BackgroundImage = image;
aboutoldtrafford.Visible = true;
howtogetthere.Visible = true;
reserveaticket.Visible = true;
textBox1.Visible = false;
textBox2.Visible = false;
textBox3.Visible = false;
textBox4.Visible = false;
label1.Visible = false;
label2.Visible = false;
label3.Visible = false;
label4.Visible = false;
label5.Visible = false;
finish.Visible = false;
backtoreserve.Visible = false;
}
private void pictureBox5_MouseClick(object sender, MouseEventArgs e)
{
if (textBox1.Text != "" && textBox2.Text != "" && textBox3.Text != "" && textBox4.Text != "")
{
Image image = Properties.Resources.reg21;
this.BackgroundImage = image;
textBox1.Visible = false;
textBox2.Visible = false;
textBox3.Visible = false;
textBox4.Visible = false;
label1.Visible = false;
label2.Visible = false;
label3.Visible = false;
label4.Visible = false;
label5.Visible = false;
nextbutton.Visible = false;
backfromreserve.Visible = false;
finish.Visible = true;
backtoreserve.Visible = true;
N1.Visible = true;
N2.Visible = true;
N3.Visible = true;
N4.Visible = true;
N5.Visible = true;
N6.Visible = true;
N7.Visible = true;
N8.Visible = true;
S1.Visible = true;
S2.Visible = true;
S3.Visible = true;
S4.Visible = true;
S5.Visible = true;
S6.Visible = true;
S7.Visible = true;
S8.Visible = true;
E1.Visible = true;
E2.Visible = true;
E3.Visible = true;
E4.Visible = true;
W1.Visible = true;
W2.Visible = true;
W3.Visible = true;
NW1.Visible = true;
NW2.Visible = true;
NE1.Visible = true;
NE2.Visible = true;
SW.Visible = true;
SE.Visible = true;
}
else
{
label5.Visible = true;
}
}
private void Form1_Load(object sender, EventArgs e)
{
con = new OleDbConnection(@" provider=Microsoft.ace.Oledb.12.0; data source=C:\OldTrafford.accdb; Persist Security Info=False");
loaddata();
}
void loaddata()
{
adapter = new OleDbDataAdapter("select * from oldtraff", con);
ds = new DataSet(); //student-> table name in stud.accdb file
adapter.Fill(ds, "oldtraff");
ds.Tables[0].Constraints.Add("pk_ID", ds.Tables[0].Columns[0], true);//creating primary key for Tables[0] in dataset
//dataGridView1.DataSource = ds.Tables[0];
}
private void finish_MouseHover(object sender, EventArgs e)
{
finish.Location = new Point(545, 553);
}
private void finish_MouseLeave(object sender, EventArgs e)
{
finish.Location = new Point(539, 553);
}
private void backtoreserve_MouseHover(object sender, EventArgs e)
{
backtoreserve.Location = new Point(30, 553);
}
private void backtoreserve_MouseLeave(object sender, EventArgs e)
{
backtoreserve.Location = new Point(36, 553);
}
private void backtoreserve_MouseClick(object sender, MouseEventArgs e)
{
Image image = Properties.Resources.reg1;
this.BackgroundImage = image;
aboutoldtrafford.Visible = false;
howtogetthere.Visible = false;
reserveaticket.Visible = false;
backfromaboutandhow.Visible = false;
textBox1.Visible = true;
textBox2.Visible = true;
textBox3.Visible = true;
textBox4.Visible = true;
label1.Visible = true;
label2.Visible = true;
label3.Visible = true;
label4.Visible = true;
nextbutton.Visible = true;
backfromreserve.Visible = true;
finish.Visible = false;
backtoreserve.Visible = false;
N1.Visible = false;
N2.Visible = false;
N3.Visible = false;
N4.Visible = false;
N5.Visible = false;
N6.Visible = false;
N7.Visible = false;
N8.Visible = false;
S1.Visible = false;
S2.Visible = false;
S3.Visible = false;
S4.Visible = false;
S5.Visible = false;
S6.Visible = false;
S7.Visible = false;
S8.Visible = false;
E1.Visible = false;
E2.Visible = false;
E3.Visible = false;
E4.Visible = false;
W1.Visible = false;
W2.Visible = false;
W3.Visible = false;
NW1.Visible = false;
NW2.Visible = false;
NE1.Visible = false;
NE2.Visible = false;
SW.Visible = false;
SE.Visible = false;
}
}
}
```
|
organized workingspace in c# form
|
CC BY-SA 3.0
| null |
2011-06-06T08:00:36.797
|
2011-06-06T08:53:50.610
|
2011-06-06T08:53:50.610
| 754,438 | 782,252 |
[
"c#",
"forms",
"transition"
] |
6,249,486 | 1 | 6,249,779 | null | 8 | 7,435 |
How can I make it possible to add my app in the Settings tab of the iPad?
Like in here: 
As you can see there are 3 rows there. But I want my app in there as well.
How can I do this?
|
How can I add my app to the Settings of the iphone/ipad?
|
CC BY-SA 3.0
| 0 |
2011-06-06T08:38:52.473
|
2017-06-29T00:50:58.083
|
2017-06-29T00:50:58.083
| 4,284,627 | 741,232 |
[
"objective-c",
"ios"
] |
6,249,689 | 1 | 6,249,823 | null | 1 | 1,600 |
I am trying my hands on Spring tool suite. I observed that it when you right click on your spring project and select `run as` then there are many options available out which two are
`7 Maven build Alt+Shift+X,M`
`8 Maven build..`
For me it look like one and the same thing. Still I am not able to figure out the difference between it.

|
Why there are two 'run as maven build' options in Spring tool suite
|
CC BY-SA 3.0
| 0 |
2011-06-06T08:59:41.533
|
2011-06-06T09:11:26.413
| null | null | 705,773 |
[
"eclipse",
"spring"
] |
6,249,889 | 1 | 6,250,235 | null | 1 | 4,688 |
I have a query which returns some rows. Its column names are like: Age, Gender, DOB etc.
What I have to do is, to check how many rows are coming from DB of which Age.
e.g. See the image:

See the age subtotal, it means my query is returning 54 rows of age 0, 1 row of age 1 and so on.
This table of subtotal must display only those ages that are returned by the query. For example there is no Age 2 as it was not returned by query.
How can I sort this issue, if anyone has idea please share. Any help would be highly appreciated.
Thanks in advance.
EDIT: Here is my Stored Procedure:
```
ALTER PROCEDURE [dbo].[spGetClients]
(
@orderBy varchar(50),
@startAge int,
@endAge int,
@sex varchar(5),
@developmentalDisability varchar(200),
@staffId nvarchar(1024),
@statusId nvarchar(1024),
@ethnicityId nvarchar(1024),
@treatmentProviderId nvarchar(1024)
)
AS
BEGIN
SET NOCOUNT ON;
SELECT c.Id, dbo.GetClientFullName(c.FirstName, c.MiddleInit, c.LastName) AS ClientName,
c.DateOfBirth, dbo.GetAge(c.DateOfBirth, GETDATE()) AS Age, c.Sex,
dbo.GetClientStatus(c.Id, @statusId) AS Status, ca.Address, co.Phone,
dbo.GetEthnicity(c.Id, @ethnicityId) AS Ethnicity, dbo.GetDevelopmentalDisabilities(c.Id, @developmentalDisability) AS Disabilities,
dbo.GetClientStaffContacts(c.Id, @staffId) AS Staff, dbo.GetClientContacts(c.Id) AS Contact,
dbo.GetClientInsuranceProviders(c.Id) AS HealthProvider,
dbo.GetClientTreatmentProviders(c.Id, @treatmentProviderId) AS TreatmentProvider
FROM Client c
LEFT OUTER JOIN(
SELECT ca.ParentEntityId, ca.Address
FROM ContactAddress ca
INNER JOIN EntityName en ON en.Id = ca.EntityNameId AND en.Name = 'Client'
INNER JOIN GeneralLookup gl ON ca.glAddressTypeId = gl.Id AND gl.LookupItem = 'Primary'
) ca ON c.Id = ca.ParentEntityId
LEFT OUTER JOIN(
SELECT co.ParentEntityId, co.ContactData Phone
FROM ContactOther co
INNER JOIN EntityName en ON en.Id = co.EntityNameId AND en.Name = 'Client'
INNER JOIN GeneralLookup gl ON co.glContactTypeId = gl.Id AND gl.LookupItem = 'Home'
) co ON c.Id = co.ParentEntityId
LEFT OUTER JOIN GeneralStatus gs on gs.Id = c.StatusId
where gs.Name <> 'Deleted'
and (dbo.GetAge(c.DateOfBirth, GETDATE()) BETWEEN @startAge and @endAge)
and ((@sex = 'M' and c.sex = 'M') or (@sex = 'F' and c.Sex = 'F') or (@sex = 'Both' and (c.Sex in ('M', 'F', ''))))
and ((@staffId = '') OR (dbo.GetClientStaffContacts(c.Id, @staffId) is not null))
and ((@statusId = '') OR (dbo.GetClientStatus(c.Id, @statusId) is not null))
and ((@ethnicityId = '') OR (dbo.GetEthnicity(c.Id, @ethnicityId) is not null))
and ((@treatmentProviderId = '') OR (dbo.GetClientTreatmentProviders(c.Id, @treatmentProviderId) is not null))
ORDER BY
CASE
WHEN @orderBy = 'Consumer Name' THEN dbo.GetClientFullName(c.FirstName, c.MiddleInit, c.LastName)
WHEN @orderBy = 'Consumer Address' THEN ca.Address
END
END
```
|
Calculating Subtotals from SQL Query
|
CC BY-SA 3.0
| null |
2011-06-06T09:18:19.497
|
2011-06-06T10:00:42.060
|
2011-06-06T09:34:25.863
| 166,538 | 669,448 |
[
"sql-server-2008",
"subtotal"
] |
6,249,927 | 1 | 6,250,307 | null | 3 | 2,072 |
i have two tables which form part of my login/register system:
these are and
deals with incoming website login/registration

deals with incoming facebook connect login/first time registration

more details @ [http://net.tutsplus.com/tutorials/php/how-to-authenticate-your-users-with-facebook-connect/](http://net.tutsplus.com/tutorials/php/how-to-authenticate-your-users-with-facebook-connect/)
if a user however uses facebook connect to login - the system checks whether they have been registered onto the database and if not it creates a new record for the user:
```
if ($user){
// We have an active session, let's check if we have already registered the user
$query = mysql_query("SELECT * FROM userlogin_fb WHERE oauth_provider = 'facebook' AND oauth_uid = ".$user_profile['id']);
$result = mysql_fetch_array($query);
// If not, let's add it to the database
if(empty($result)){
$query = mysql_query("INSERT INTO userlogin_fb (oauth_provider, oauth_uid, username, email) VALUES ('facebook', {$user_profile['id']}, '{$user_profile['username']}', '{$user_profile['email']}')");
}
} elseif(isset($_SESSION['uid'])){
"";
}else{
// Anonymous user
header('Location: index.php');
}
```
upon site registration however if the same username/email address exists then it is not possible for that user to register (and create duplicate records)
```
//select all rows from our userlogin,userlogin_fb table where the emails match
$query = sprintf("SELECT 1
FROM userlogin
WHERE `email` = '%s'
UNION ALL
SELECT 1
FROM userlogin_fb
WHERE `email` = '%s' ",
$email, $email);
$res1 = mysql_query($query);
$num1 = mysql_num_rows($res1);
//if the number of matches is 1
if($num1 >= 1) {
//the email address supplied is taken so display error message
echo '<p class="c7">The <b>e-mail</b> address you supplied is already taken. Please go <a href="register.php">back</a> and provide a new one.<br><img src="resources/img/spacer.gif" alt="" width="1" height="15"></p>';
include_once ("resources/php/footer.php");
exit;
} else
//select all rows from our userlogin,userlogin_fb table where the usernames match
$query2 = sprintf("SELECT 1
FROM userlogin
WHERE `username` = '%s'
UNION ALL
SELECT 1
FROM userlogin_fb
WHERE `username` = '%s' ",
$username, $username);
$res2 = mysql_query($query2);
$num2 = mysql_num_rows($res2);
//if the number of matches is 1
if($num2 >= 1) {
//the username supplied is taken so display error message
echo '<p class="c7">The <b>username</b> you supplied is already taken. Please go <a href="register.php">back</a> and provide a new one.<br><img src="resources/img/spacer.gif" alt="" width="1" height="15"></p>';
include_once ("resources/php/footer.php");
exit;
```
now the problem i am experiencing is this. whenever the user registers via the website and uses facebook connect to login i have found out that a duplicate record is created regardless in the table.
as i don't want to have any duplicate usernames/email addresses across the two tables as well as "two different user login modes" each containing different sets of information pertaining to the user how can i integrate both?
preferably when the user logs in using facebook connect i would run a query checking the table to see if a duplicate username exists first of all and using those details
if a record exists with the same username/email in then a new record is not made in .
but if they do not exist i can create a new record for it.
then if the user tried to register an account using the same username/email i would redirect them to a feature "merge" both accounts.
but this is just a rough idea. please i would appreciate further insight into this question.
hopefully i have worded it well enough!
|
mysql table structure question (userlogin and userlogin_fb)
|
CC BY-SA 3.0
| null |
2011-06-06T09:21:53.893
|
2011-06-06T09:54:22.243
| null | null | 436,493 |
[
"php",
"mysql"
] |
6,249,963 | 1 | null | null | 5 | 10,432 |
So i use this command to convert an svg file to png :
```
convert ss.svg ss.png
```
But the output is a bit weird :

As you can see, xaxis and yaxis labels are on the top. Please help me output this image properly.
|
ImageMagick convert svg to png
|
CC BY-SA 3.0
| 0 |
2011-06-06T09:25:00.580
|
2013-01-29T13:01:48.623
|
2012-08-31T06:31:41.900
| 359,307 | 258,219 |
[
"imagemagick"
] |
6,250,117 | 1 | 6,250,253 | null | 3 | 5,652 |
I need to create shaded divs like those shown in the image below, using only CSS. Any idea about how to create them using less coding?
Thank you!

|
How to create shaded divs like this with CSS
|
CC BY-SA 3.0
| null |
2011-06-06T09:36:31.417
|
2016-03-18T21:29:11.263
|
2016-03-18T21:29:11.263
| 658,663 | 282,887 |
[
"html",
"css"
] |
6,250,214 | 1 | 7,276,913 | null | 4 | 3,227 |
Google docs app uses swipable gesture based tabs using which you can navigate to different tab/category.
How do we achieve this?

|
Android Sliding gesture based tabs
|
CC BY-SA 3.0
| 0 |
2011-06-06T09:45:40.403
|
2013-01-07T17:26:32.893
|
2011-06-07T06:08:23.010
| 389,161 | 389,161 |
[
"android"
] |
6,250,356 | 1 | 6,259,797 | null | 12 | 16,707 |
I have the exact same problem as [this post](https://stackoverflow.com/questions/4867338/custom-notification-layouts-and-text-colors). I want my custom notifications text style to match the default notifications (Im just going to add a few extra views). Unfortunately I don't fully understand the accepted answer. I think I am meant to add to the XML code but not sure exactly what...

The accepted answer says"
The solution is to use built-in styles. The style you need is TextAppearance.StatusBar.EventContent. Just apply this style and it will set the default text color for notifications (don't forget android: prefix, of course).
"
I cant get this to work! In my custom notification below the line "android:textAppearance="?android:attr/textAppearanceLarge" works (as it enlargens the text) but does not give the desired effect.
Here is my custom XML code...
```
<ImageView
android:id="@+id/notImage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_alignParentTop="true"/>
<TextView
android:id="@+id/notContentTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf ="@id/notImage"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/notContentText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below ="@id/notContentTitle"
/>
```
[Custom notification layouts and text colors](https://stackoverflow.com/questions/4867338/custom-notification-layouts-and-text-colors)
|
How to use default notification style?
|
CC BY-SA 3.0
| 0 |
2011-06-06T09:58:05.803
|
2011-09-02T04:57:54.933
|
2017-05-23T10:29:21.440
| -1 | 560,283 |
[
"android",
"notifications",
"styles"
] |
6,250,367 | 1 | 6,252,210 | null | 4 | 3,937 |
How can I get the original exception (occurred on the server) on the client side?
I am working with a self-hosted WCF service and C# 4 and trying to set up proper exception handling.
I have a client that looks like this
```
private ServiceResponse PerformRemoteAction(ServiceRequest request, ProcessOperations operation)
{
...
try
{
//remote call
switch (operation)
{
...
case ProcessOperations.VerifyAction: { response = client.VerifyAction(request); break; }
default: throw new NotImplementedException();
}
}
catch (Exception ex)
{
AppManager.LogException(ex);
}
return response;
}
```
And service implementation
```
public override ServiceResponse VerifyAction(ServiceRequest request)
{
RegisterRequest(request);
try
{
var chain = new VerificationChain();
Responce = chain.Run(request);
}
catch (Exception ex)
{
throw new FaultException<WcfException>(ExceptionFactory.Create(ex),
new FaultReason(ex.Message));
}
SetSuccessfulResponce();
return Responce;
}
```
Service web.config has
```
<behaviors>
<serviceBehaviors>
<behavior>
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
```
This is my original exception

And this is what I get on the client
If needed I can post full details on the client side, however the exception on the client does not have any reference to the original one.
This is my interface with defined
```
[ServiceContract]
public interface IServiceOperation : IOperation
{
...
[OperationContract(Action = "http://tempuri.org/ITestRunnerService/VerifyAction", ReplyAction = "http://tempuri.org/ITestRunnerService/VerifyAction")]
[FaultContractAttribute(typeof(WcfException), Action = "http://tempuri.org/ITestRunnerService/ExecuteRequestWcfExceptionFault", Name = "WcfException", Namespace = "http://schemas.datacontract.org/2004/07/TH.Core.Exceptions")]
ServiceResponse VerifyAction(ServiceRequest request);
}
```
And this is my class
```
[DataContract]
public class WcfException : Exception
{
[DataMember]
public string Title { get; set; }
[DataMember]
public new string Message { get; set; }
[DataMember]
public new string InnerException { get; set; }
[DataMember]
public new string StackTrace { get; set; }
}
```
|
WCF fault handling
|
CC BY-SA 3.0
| null |
2011-06-06T09:58:36.423
|
2011-06-06T12:45:19.670
|
2011-06-06T10:29:43.613
| 706,456 | 706,456 |
[
"c#",
"wcf",
"exception",
"wcf-faults"
] |
6,250,545 | 1 | 6,250,846 | null | 30 | 90,618 |
I'm implementing a feature that when the user press on any point in the row in a GridView the row will be selected instead of Select button.

To implement that, I'm using the following code:
```
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
// Set the hand mouse cursor for the selected row.
e.Row.Attributes.Add("OnMouseOver", "this.style.cursor = 'hand';");
// The seelctButton exists for ensuring the selection functionality
// and bind it with the appropriate event hanlder.
LinkButton selectButton = new LinkButton()
{
CommandName = "Select",
Text = e.Row.Cells[0].Text
};
e.Row.Cells[0].Controls.Add(selectButton);
e.Row.Attributes["OnClick"] =
Page.ClientScript.GetPostBackClientHyperlink(selectButton, "");
}
}
```
With the code above, there are the following problems:
- `EnableEventValidation``false`- `SelectedIndexChanged``Grid.DataBind()``Page_Load`
Am I doing something wrong? Is there a better implementation?
---
When `EnableEventValidation` is set to `true`, the following error will appear:
> Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
|
How to implement full row selecting in GridView without select button?
|
CC BY-SA 3.0
| 0 |
2011-06-06T10:13:07.560
|
2018-11-22T04:57:26.600
|
2011-06-06T11:13:11.487
| 322,355 | 322,355 |
[
"c#",
"asp.net",
"gridview",
"selectedindexchanged"
] |
6,250,685 | 1 | 6,250,814 | null | 13 | 24,363 |
I created a simple input field for an int variable. I want to add validation to it but, but i see no need to create my own validator for it, since the only thing i need is to avoid negative values and characters other than numbers.
So this is what i did:
```
<h:inputText id="price" value="#{placeAddControler.price}">
<f:validateLongRange minimum="0"/>
</h:inputText>
<h:outputText value="€" />
<br/>
<span style="color: red;"><b><h:message for="price"
showDetail="true" /></b></span>
```
When i try how it works this is the result for negative values:

And this is the result for characters:

Where in my project can i customize the text of those validation messages?
|
How to set a custom message for a standard validator in JSF?
|
CC BY-SA 3.0
| 0 |
2011-06-06T10:27:40.447
|
2019-05-15T10:03:05.697
|
2011-06-06T10:35:31.163
| 614,141 | 614,141 |
[
"java",
"validation",
"jsf",
"jakarta-ee",
"jsf-2"
] |
6,250,766 | 1 | 6,252,671 | null | 1 | 1,077 |
I have a UIScrollView (managed by a view controller) which I am using both full screen and as a subview. The full screen version works fine - the subview does not.
The subview is positioned so that it takes up about the bottom half of the screen, with a small - 20 pixels or so - margin at the bottom.
Initially it displays in the correct position but overwrites the bottom margin - even though the scrollview's frame is set to leave the margin.
When I scroll the view up by dragging it, the whole view moves upwards and obscures the top of the window. The frame stops moving when it hits the navigation bar at the top and starts scrolling like a normal scrollview. If I scroll it enough it eventually reveals the margin at the bottom of the screen.
I am at a loss to know what to do - I've tried every spring combination I can think of. I'm now looking at subview clipping.
Images below. The first shows the scrollview on initial page load, positioned correctly aside from lower margin overwrite. The scroll view has a white background.

The second image shows it scrolled up toward the top:

The third image shows it scrolled all the way up to the top - note that the lower margin has become visible.

|
ScrollView as subview does not respect frame boundaries
|
CC BY-SA 3.0
| 0 |
2011-06-06T10:34:14.270
|
2011-06-06T14:06:20.020
|
2011-06-06T13:34:40.743
| 536,355 | 536,355 |
[
"xamarin.ios",
"scrollview"
] |
6,251,109 | 1 | 6,251,362 | null | 6 | 9,663 |
How yo set listview background like this.
I want to appear when the number of record 0

|
How do I set an empty ListView's background image?
|
CC BY-SA 3.0
| 0 |
2011-06-06T11:07:14.343
|
2014-05-07T15:55:14.763
|
2014-05-07T15:55:14.763
| 864,358 | 768,311 |
[
"android",
"image",
"listview",
"background"
] |
6,251,326 | 1 | 6,251,467 | null | 1 | 1,515 |
I have a table, inside thead, tbody and tfoot. Thead and tfoot have a background image.
I try to apply rounded corners, and everything looks good until I apply any background (color or image).
Screen below:

Thead and tfoot have also border, so when I hide background, it's rounded like I want...
The problem appears in all browsers...
Is there any option to round this background (color or image)?
|
Border radius in thead and tfoot with background image
|
CC BY-SA 3.0
| null |
2011-06-06T11:26:34.863
|
2011-06-06T11:42:54.700
| null | null | 772,972 |
[
"html",
"css",
"background",
"border"
] |
6,251,517 | 1 | 6,361,232 | null | 0 | 1,271 |
Someone mentionned me sikuli [http://sikuli.org/](http://sikuli.org/) seems great.
I just try to go to yahoo with google chrome and it fails to paste the url at step 6 why ?

|
Functional Test: SIKULI doesn't work with basic Google Chrome
|
CC BY-SA 3.0
| null |
2011-06-06T11:43:31.110
|
2011-06-15T16:43:35.203
|
2011-06-06T12:20:05.897
| 310,291 | 310,291 |
[
"testing",
"functional-testing"
] |
6,251,674 | 1 | 6,251,773 | null | 2 | 1,471 |
I'm reading Michael Hartl's Ruby on Rails 3 Tutorials. I just came across my first example of code (HTML really) being long enough to wrap to a second line. Here's what it looks like in my TextMate...

The lines between the paragraph tags aren't lined up below the "a href" (as I'm thinking they should be).
Now here is the same code taken from Michael's tutorial...

In Michael's example the same lines are perfectly lined up under the "a href".
How can I properly indent my code in TextMate to look as neat as Michael's does here?
Thanks!
Eddie
|
How do I indent properly with TextMate?
|
CC BY-SA 3.0
| 0 |
2011-06-06T11:59:25.590
|
2012-05-24T21:16:43.350
|
2011-06-06T12:07:18.210
| 565,939 | 565,939 |
[
"ruby-on-rails",
"textmate",
"indentation"
] |
6,251,799 | 1 | 6,270,925 | null | 1 | 128 |
I want to make a search result page based on eBay/allegro, by that i mean:
1. left box -> category (with hit count)
2. center -> table with hits.
it should looks like that: (left box is most important)

And now, my current modules/Content types looks like that:
Content Types:
- taxonomy used with CCK. this is must have for me. My node types is based on that.
Modules (all for drupal 6.22):
- [Content Construction Kit (CCK)](http://drupal.org/project/cck)- [Views](http://drupal.org/project/views)- [fivestar](http://drupal.org/project/fivestar)[votingAPI](http://drupal.org/project/votingapi)- [Content Taxonomy](http://drupal.org/project/content_taxonomy)- [Hierarchical Select](http://drupal.org/project/hierarchical_select)- [Faceted Search](http://drupal.org/project/faceted_search)- [CCK Facets](http://drupal.org/project/cck_facets)- [Faceted Search Context](http://drupal.org/project/fs_context)
And i don't know what to do... I can't figure that out :|
Any ideas, would be great !
Thx
Lukasz
|
drupal, tree in search form
|
CC BY-SA 3.0
| null |
2011-06-06T12:11:25.303
|
2011-06-07T20:00:46.793
| null | null | 261,083 |
[
"drupal-6",
"drupal-modules"
] |
6,251,989 | 1 | 6,252,066 | null | 0 | 552 |
I have the following code which I post a bunch of JSON data to an ASHX file where I will process this data. Somehow the JSON is encoded and I have no clue what encoded it.
```
$.ajax({
url: '/save_objects_channels.ashx',
data: jsonParams,
contentType: 'application/json',
dataType: 'json',
success: function(data) {
},
error: function (xhr, ajaxOptions, thrownError){
},
complete: function() {
}
});
```
Here is my sample json that I posted (I generate this as string):
```
var jsonParams = '[ { objectID: 333, channelID: 3, supplierId: 2, checked: true },{ objectID: 444, channelID: 4, supplierId: 5, checked: true } ]';
```

|
Why is my json encoded?
|
CC BY-SA 3.0
| null |
2011-06-06T12:28:45.110
|
2011-06-06T13:02:16.503
| null | null | 34,096 |
[
"json",
"jquery"
] |
6,252,096 | 1 | null | null | 2 | 4,771 |
I know how to speed up rendering in 3d by simply rendering the nearest planes first.
But how do i get advantage of this type of method in 2d mode? I cant use depth testing because they are all in the same z-level.
So i was thinking if it could be speed up when i dont need to render the invisible parts of the layers "below". Is this possible?
Note that i am rendering in 3d mode, there may be 3d objects and 2d objects at the same time. So i cant switch to 2d render only, i always use 3d coordinates for everything. And i may rotate the camera as i wish, so camera-specific tricks arent acceptable.
i tried the method Ville suggested:

## ( http://img815.imageshack.us/img815/7857/zfighting.png )
but as you see, it will result in z-fighting.
The code i used for rendering that is here:
```
glDepthFunc(GL_LESS);
glEnable(GL_DEPTH_TEST);
glDisable(GL_TEXTURE_2D);
glDisable(GL_ALPHA_TEST);
glDisable(GL_POLYGON_OFFSET_FILL);
glColor4f(1,0,0,1);
DrawQuad(0, 0, 10, 10);
glColor4f(0,0,1,1);
DrawQuad(5, 5, 15, 15);
glDepthFunc(GL_LEQUAL);
```
|
OpenGL: How to optimize 2d rendering with multiple layers overlapping each other in 3d mode?
|
CC BY-SA 3.0
| 0 |
2011-06-06T12:36:31.607
|
2011-06-06T18:03:25.370
|
2011-06-06T18:03:25.370
| 759,532 | 759,532 |
[
"c++",
"opengl",
"3d",
"rendering",
"2d"
] |
6,252,123 | 1 | 6,252,173 | null | 6 | 7,749 |
Here is my problem. How to make text don't wrap?
I already tried to make text smaller. Didn't work. Tried to do `singleline="true"`. Here is what he do(2 screen shot 6-7 textview)
1 Screenshot) Here is I made it in the Eclipse
2 Screenshot) Here is how it showen in the emulator


|
Android TextView Wrap
|
CC BY-SA 3.0
| null |
2011-06-06T12:38:08.203
|
2011-06-06T12:54:59.497
|
2011-06-06T12:41:02.660
| 69,802 | 764,644 |
[
"java",
"android",
"android-activity",
"textview"
] |
6,252,200 | 1 | 6,252,244 | null | 0 | 486 |
i've developed an intranet application and implemented an custom ASP.NET Membership Provider with Forms-Authentication. I thought it would be a good idea to log all failed login attempts in DBMS. Hence i've created a table with following model:

Now my :
Is it good practise to store this for safety reasons or is it even forbidden due to data protection reasons(germany)? I'm storing the original passwords hashed in db but the wrong passwords(or correct pw with wrong username) in the log-table are in clear-text.
Somebody could argue that everybody with access to this table could get user's passwords not alone for this application but for others too, because people who have forgotten their passwords (or their username) might try out others as well.
|
Log wrong Username/Password attempts with IP good practice?
|
CC BY-SA 3.0
| null |
2011-06-06T12:44:49.373
|
2011-06-06T12:51:39.407
| null | null | 284,240 |
[
"asp.net",
"security",
"asp.net-membership",
"data-protection"
] |
6,252,257 | 1 | 6,252,521 | null | 0 | 477 |
I want to do something like the folowing image:

Everytime i click on Add, a new page is shown and i chose the name for a button to add. Every button, when is clicked, should pass a diferent params to the same controller (same controller for each button, what differs is the params list). The button name should come from my database. My problem is about having an each tag with the buttons inside.
I need help some help with this. I could use this code inside my each tag:
```
<g:form action="removeFavourite">
<g:submitButton name="add" value="Action 1" class="button small red"/><br><br>
</g:form>
```
a) I dont know how to pass params in the g:submitButton, neither if it is possible
b) Any better way of doing what i pretend ?
c) My main problem is using this code like this and still pass params to the controller. If it is possible to do, tell me how because then my question is solved :p
Thanks in advanced,
VA
|
Grails controllers each with multiple buttons
|
CC BY-SA 3.0
| null |
2011-06-06T12:50:12.820
|
2011-06-06T13:12:49.050
|
2011-06-06T13:01:43.007
| 768,676 | 768,676 |
[
"grails",
"button",
"controllers"
] |
6,252,368 | 1 | null | null | 30 | 29,650 |
When trying to deploy an ASP.NET application deployment package to IIS, I receive an error
> (The application pool that you are trying to use has the 'managedRuntimeVersion' property set to 'v2.0'. This application requires 'v4.0'.
I have taken these steps:
- - -
What is the root cause of this error, and how can it be solved?


|
Web deploy error to IIS - application pool managedRuntimeVersion
|
CC BY-SA 3.0
| 0 |
2011-06-06T12:58:10.033
|
2018-02-19T14:30:50.860
|
2016-11-02T06:24:39.547
| 483,408 | 606,519 |
[
"asp.net",
".net",
"iis",
"iis-7.5",
"microsoft-web-deploy"
] |
6,252,561 | 1 | 6,263,447 | null | 6 | 28,023 |
I am working on SSRS reporting services.
I have a table on which I applied group. Originally I had this data:

I changed something in my tablix and created a tablix and added a parent group of Age i.e. left column and then in the right column, I applied an expression: `=SUM(Fields!AgeTotal.Value, "Group1")`
which made the result like this:

Now I want 3,3,3 and 2,2 not to repeat and make them 1 row of each group.
Like this: 

|
SSRS Sum in table group
|
CC BY-SA 3.0
| 0 |
2011-06-06T13:16:10.400
|
2017-04-30T14:31:01.287
|
2017-04-30T14:31:01.287
| 1,905,949 | 669,448 |
[
"reporting-services",
"sum",
"ssrs-2008",
"ssrs-tablix"
] |
6,252,760 | 1 | 6,254,616 | null | 4 | 3,948 |
I currently develop an application that creates polygons from lines and I experience a small problem:
I have a set of points, representing a line. I would like to create a polygon that displays the line with a specific width (e.g. for a street). I have several ideas how to calculate the outer polygon points, but I think they are too complicated...
My best idea was the one pictured below: Every point of the line must be projected to at least two points: Both points must be 90° to the following line segment and have a distance half of the preferred polygon width.

This works good, as you can see at the end and start points of the pictured polygon. Now the complicated part: With this method, at a corner, each point gets four points. But these points are not correct for the outer polygon, because they are in the shape. The lines intersected and created an ugly polygon.
How can I find the correct points for such a polygon? I think my method is far too complicated for solving this problem.
Can anybody help me with this (propably very common) problem?
I tagged this with `openstreetmap` because renderer like Mapnik have this problem, too.
|
How to calculate Polygon points from a simple line for a specific width?
|
CC BY-SA 3.0
| 0 |
2011-06-06T13:31:30.930
|
2011-06-06T15:50:29.117
| null | null | 32,043 |
[
"language-agnostic",
"line",
"polygon",
"openstreetmap"
] |
6,252,805 | 1 | 6,267,032 | null | 1 | 2,705 |
I have a data model as follows:

A Customer has Products and Payment Methods. Each Product can be assigned any or all of the Customer's Payment Methods, with one set as default.
Foreign Keys are:
```
Customer.CustomerId => Product.CustomerId
Customer.CustomerId => PaymentMethod.CustomerId
Product.ProductId => ProductPaymentMethod.ProductId
PaymentMethod.PaymentMethodId => ProductPaymentMethod.PaymentMethodId
```
I want to customise this model for presentation purposes, Customer to have a collection of Payment Methods and a collection of Products. Products to have a collection of ProductPaymentMethods which inherit from PaymentMethod.
I deleted the association between PaymentMethod and ProductPaymentMethod, added an inheritence from PaymentMethod to ProductPaymentMethod and deleted PaymentMethodId from ProductPaymentMethod.
This is now my model:

When I save the model or build the project I get 2 errors:
> Error 3002: Problem in mapping
fragments starting at line
226:Potential runtime violation of
table ProductPaymentMethod's keys
(ProductPaymentMethod.ProductPaymentMethodId):
Columns
(ProductPaymentMethod.ProductPaymentMethodId)
are mapped to EntitySet
PaymentMethods's properties
(PaymentMethods.ProductPaymentMethodId)
on the conceptual side but they do not
form the EntitySet's key properties
(PaymentMethods.PaymentMethodId).
and
> Error 3003: Problem in mapping
fragments starting at line 226:All the
key properties
(PaymentMethods.PaymentMethodId) of
the EntitySet PaymentMethods must be
mapped to all the key properties
(ProductPaymentMethod.ProductPaymentMethodId)
of table ProductPaymentMethod.
What am I doing wrong?
Having done some further Googling, I have found several solutions, most of which don't quite fit this scenario. Most talk about inheritance requiring a 1-1 not 1-many relationship. However, because of the Customer to Product 1-many relationship, the model requires a 1-many between PaymentMethod and ProfilePaymentMethod. Is it not possible to do what I am attempting?
|
Entity Framework Error 3002 / 3003 - Inheritance / key mapping issue
|
CC BY-SA 3.0
| null |
2011-06-06T13:34:52.240
|
2011-06-07T14:45:37.807
|
2011-06-06T21:30:16.380
| 243,189 | 243,189 |
[
"entity-framework"
] |
6,253,209 | 1 | 6,253,231 | null | 4 | 1,176 |
I am trying to make a simple ball animation, that starts from 1 corner and goes to another corner of the panel. I have written a program for that.
When I run the program the `oval` or leaves the trail. What I mean to say is that it leaves it's 'color trail' when the program runs. In my program `timer` fires an event every 100 milliseconds.
```
void function() {
// in this there is a action listener timed accordingly to fire event of
// doing x++ every 100th miliseconds
}
public void paintComponent(final Graphics g) {
g.setColor(Color.black);
g.drawOval(x,y,width,height);
g.fillOval(x,y,width,height);
}
```

|
oval leaves the trail
|
CC BY-SA 3.0
| null |
2011-06-06T14:03:53.810
|
2011-06-06T14:27:26.587
|
2011-06-06T14:27:26.587
| 418,556 | 682,662 |
[
"java",
"swing",
"user-interface",
"graphics",
"2d"
] |
6,253,488 | 1 | 6,253,537 | null | 2 | 1,816 |
Friends,
I want to display a button in android like mentioned in screenshot.
Could anyone guide me through how to achieve this?

|
How to create button with image & text
|
CC BY-SA 3.0
| 0 |
2011-06-06T14:24:41.487
|
2011-06-06T14:37:42.470
|
2011-06-06T14:32:41.063
| 12,547 | 249,991 |
[
"android",
"imageview"
] |
6,253,229 | 1 | null | null | 1 | 406 |
i am experiencing a huge gab between the documentloaded and the onload event. Firebug net pannel tells me, that all of the content has been already loaded way before the onloadevent triggers. What is causing this gap and what can I do to close it? The document validates against html 4.01 transitional and has been served with disabled browser cache.
The screenshot of the timeline in firebug on firefox 4.0.1

Thank you for any hint on how to solve that.
Here is the code of the page:
```
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>demo</title>
<base href="http://snake.demo_de/">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Language" content="de">
<meta name="robots" content="index,follow">
<meta name="viewport" content="width = 800">
<meta name="google-site-verification" content="YlTcF8Ni3pAtunRAjFrOtCkzjkoeaiv3U-zgsOMWKT4"><link rel="shortcut icon" href="/g/p/favicon.ico">
<link rel="apple-touch-icon" href="/g/p/IC_iph.png">
<link rel="stylesheet" type="text/css" href="/app_global/dsp_layout.min.css?1307341134">
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="/app_global/dsp_layout_fixIE6.css?1306831142">
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://snake.demo_de/subapp_rss/new-classifieds.xml">
</head>
<body onload="" onunload="">
<a name="top"></a>
<div id="pagewidth" >
<div id="header" >
<a id="logo" href="http://snake.demo_de">
<img src="/g/p/BG_lg_de.gif" alt="demo" title="demo Kleinanzeigenmarkt Startseite" style="width:94px; height:40px">
</a>
<div id="search" >
<form id="search-form" action="/subapp_search/search.php" method="get" name="search">
<input type="text" name="q" id="fq" value="" maxlength="35" autocomplete="off">
<input type="hidden" name="at" value="">
<input type="hidden" name="df" value="">
<input type="hidden" name="pf" value="">
<input type="hidden" name="catid" value="">
<input type="hidden" name="pb" value="">
<input type="hidden" name="pe" value="">
<input type="submit" value="suchen" id="go">
</form>
<ul id="search-autocomplete"><li></li></ul>
</div>
<a id="post-classified" href="/kostenlos-inserieren.htm">Kostenlos inserieren</a>
<ul id="topnavi">
<li><a href="http://snake.demo_de/kostenfrei-registrieren.htm" title="Mehr Mökeiten als Mitglied" rel="nofollow" onclick="shouldShowUnloadInfo = false;">Registrieren</a></li>
<li><a href="http://snake.demo_de/kostenfrei-anmelden.htm" title="Mehr Möglichkeiten als Mitglied" rel="nofollow" onclick="shouldShowUnloadInfo = false;">Anmelden</a></li>
</ul>
</div>
<div id="content">
<p></p>
<h1 class="listtitle" style="display:inline;">Kostenlose Kleinanzeigen Deutschland. Günstige Angebote finden oder selbst kostenlos inserieren.</h1>
<p></p>
<table width="772" cellpadding="0" cellspacing="0" style="margin-bottom:15px" border="0">
<tr valign="top">
<td width="163" height="120">
<a href="/kleinanzeige/fewo-und-fezi-im-ostseeheilbad-zingst-magdeburg" title="FeWo und FeZi im Ostseeheilbad Zingst"><img src="/data/adpix/thumb/fewo-und-fezi-im-ostseeheilbad-zingst-549.jpg" width="120" height="90" alt="FeWo und FeZi im Ostseeheilbad Zingst" border="0"></a>
<br>
<a href="/kleinanzeige/fewo-und-fezi-im-ostseeheilbad-zingst-magdeburg" title="FeWo und FeZi im Ostseeheilbad Zingst">FeWo und FeZi im.</a><br>
Magdeburg 70€
</td>
<td width="163" height="120">
<a href="/kleinanzeige/die-zukunft-selbst-in-die-hand-nehmen-saarbruecken" title="Die Zukunft selbst in die Hand nehmen!"><img src="/data/adpix/thumb/die-zukunft-selbst-in-die-hand-nehmen-383376-0.jpg" width="120" height="90" alt="Die Zukunft selbst in die Hand nehmen!" border="0"></a>
<br>
<a href="/kleinanzeige/die-zukunft-selbst-in-die-hand-nehmen-saarbruecken" title="Die Zukunft selbst in die Hand nehmen!">Die Zukunft selbs.</a><br>
Saarbrücken
</td>
<td width="163" height="120">
<a href="/kleinanzeige/diese-lage-ist-einzigartig-oy-mittelberg" title="Diese Lage ist einzigartig!"><img src="/data/adpix/thumb/diese-lage-ist-einzigartig-438066-0.jpg" width="120" height="90" alt="Diese Lage ist einzigartig!" border="0"></a>
<br>
<a href="/kleinanzeige/diese-lage-ist-einzigartig-oy-mittelberg" title="Diese Lage ist einzigartig!">Diese Lage ist ei.</a><br>
Oy-Mittelberg
</td>
<td width="163" height="120">
<a href="/kleinanzeige/2-3-familienhaus-mit-2-einzelgaragen-darmstadt" title="2-3 Familienhaus mit 2 Einzelgaragen"><img src="/data/adpix/thumb/2-3-familienhaus-mit-2-einzelgaragen-416016-0.jpg" width="120" height="90" alt="2-3 Familienhaus mit 2 Einzelgaragen" border="0"></a>
<br>
<a href="/kleinanzeige/2-3-familienhaus-mit-2-einzelgaragen-darmstadt" title="2-3 Familienhaus mit 2 Einzelgaragen">2-3 Familienhaus.</a><br>
Darmstadt 425.000€
</td>
<td width="163" height="120">
<a href="/kleinanzeige/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-landshut" title="Ein bis Zweifamilienhaus in zentraler Lage von Landshut!"><img src="/data/adpix/thumb/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-415409-0.jpg" width="120" height="90" alt="Ein bis Zweifamilienhaus in zentraler Lage von Landshut!" border="0"></a>
<br>
<a href="/kleinanzeige/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-landshut" title="Ein bis Zweifamilienhaus in zentraler Lage von Landshut!">Ein bis Zweifamil.</a><br>
Landshut 195.000€
</td>
</table>
<table cellpadding="0" cellspacing="0" width="772" border="0">
<tr>
<td valign="top" width="180" style="//border-left: 1px solid #F0ECDB;">
<p class="heading">Willkommen bei demo</p>
<ul id="advantages_fx" >
<li><span class="sprites-1 sprite-IC_vf_1"></span>Kostenlos inserieren</li>
<li><span class="sprites-1 sprite-IC_vf_1"></span>Keine Verkaufsgebühren</li>
<li><span class="sprites-1 sprite-IC_vf_1"></span>Über 500.000 Besucher</li>
<li><span class="sprites-1 sprite-IC_vf_1"></span>Geprüfte Kleinanzeigen</li>
</ul>
<div class="wrapper">
<h2>Regionale Anzeigen</h2><br>
<img name="KarteDE150px" class="map" src="/g/p/Karte-DE-150-map.png" width="150" height="203" border="0" id="KarteDE150px" usemap="#m_KarteDE150px" alt=""><map name="m_KarteDE150px" id="m_KarteDE150px">
<area shape="poly" coords="125,63,127,69,117,70,117,63,125,63,125,63" href="http://berlin.demo_de/"title="Berlin" alt="Berlin" >
<area shape="poly" coords="57,33,61,40,67,42,74,43,82,46,86,50,91,54,88,56,84,56,79,59,84,74,82,78,77,79,78,91,74,91,63,97,62,91,60,89,58,89,54,79,51,73,52,70,52,68,49,70,46,68,45,67,41,70,43,72,43,77,35,77,34,71,30,68,26,69,24,73,21,73,21,67,16,67,18,63,21,62,25,49,22,41,23,39,24,37,27,36,33,36,36,37,37,39,37,43,40,45,41,42,42,39,46,42,47,40,46,38,45,36,45,33,47,33,52,33,57,33,57,33" href="http://niedersachsen.demo_de/" title="Niedersachsen" alt="Niedersachsen" >
<area shape="poly" coords="71,40,73,44,64,44,64,38,72,37,71,40,71,40" href="http://hamburg.demo_de/" title="Hamburg" alt="Hamburg" >
<area shape="poly" coords="58,8,59,7,61,6,64,6,65,9,67,12,65,17,68,17,69,18,70,20,70,18,73,18,78,21,83,19,83,24,78,27,79,30,79,33,80,35,82,37,76,45,72,42,71,39,70,35,66,37,63,39,60,36,57,33,54,31,51,30,53,27,49,20,51,17,53,15,51,12,49,10,49,6,58,8,58,8" href="http://schleswigholstein.demo_de/" title="Schleswig-Holstein" alt="Schleswig-Holstein" >
<area shape="poly" coords="113,19,120,24,123,25,127,31,129,33,133,34,134,41,131,42,127,39,120,44,113,49,101,45,89,51,85,48,83,46,78,45,82,38,80,35,79,33,81,30,84,29,86,30,88,31,91,28,93,25,102,21,110,19,113,19,113,19" href="http://mecpom.demo_de/" title="Mecklenburg-Vorpommern" alt="Mecklenburg-Vorpommern" >
<area shape="poly" coords="119,94,127,96,131,95,134,93,136,90,141,90,146,92,149,97,146,108,142,103,137,103,139,107,126,111,116,119,109,121,105,125,100,122,100,119,100,117,106,115,104,113,111,108,103,101,103,97,103,92,105,90,113,90,117,90,119,91,119,94,119,94" href="http://sachsen.demo_de/" title="Sachsen" alt="Sachsen" >
<area shape="poly" coords="103,59,101,65,102,67,103,68,102,72,103,75,108,79,115,81,117,83,119,87,103,91,102,96,105,106,103,107,97,105,91,101,92,99,91,96,86,96,83,93,78,88,78,79,84,79,85,74,80,59,93,55,103,59,103,59" href="http://sachsenanhalt.demo_de/" title="Sachsen-Anhalt" alt="Sachsen-Anhalt" >
<area shape="poly" coords="21,143,23,149,22,151,22,153,19,154,10,149,10,146,11,142,16,142,21,143,21,143" href="http://saarland.demo_de/" title="Saarland" alt="Saarland" >
<area shape="poly" coords="36,116,34,120,34,122,36,124,30,131,33,132,38,132,41,138,40,139,39,141,40,144,42,148,38,158,35,158,27,155,21,145,19,142,16,141,9,144,7,143,10,137,4,132,4,128,4,125,13,122,22,114,31,110,34,111,36,116,36,116" href="http://rheinlandpfalz.demo_de/" title="Rheinland-Pfalz" alt="Rheinland-Pfalz" >
<area shape="poly" coords="51,76,55,82,58,88,56,92,54,95,52,94,51,93,44,98,47,101,41,107,35,113,32,108,23,114,17,116,15,118,14,121,10,120,6,117,3,107,7,93,4,85,15,82,16,81,16,78,23,72,30,69,32,70,33,72,34,78,36,79,44,76,42,69,45,68,47,69,51,70,51,76,51,76" href="http://nrw.demo_de/" title="Nordrhein-Westfalen" alt="Nordrhein-Westfalen" >
<area shape="poly" coords="62,92,60,97,60,98,62,99,64,97,65,96,71,102,66,113,68,118,63,124,56,129,51,129,50,128,50,131,53,139,52,145,49,146,46,144,45,142,43,144,41,143,38,131,33,133,32,131,34,127,36,124,34,120,35,117,36,117,36,114,39,111,43,105,45,103,47,101,45,98,47,95,51,93,52,94,53,95,56,93,58,91,62,92,62,92" href="http://hessen.demo_de/" title="Hessen" alt="Hessen" >
<area shape="poly" coords="84,95,90,97,90,100,91,102,96,105,104,108,106,104,110,107,104,112,105,114,103,116,100,116,98,118,97,121,95,122,91,120,89,119,88,125,81,122,79,127,73,120,70,117,68,115,68,111,72,102,68,99,68,96,79,91,82,92,84,95,84,95" href="http://thueringen.demo_de/" title="Thüringen" alt="Thüringen" >
<area shape="poly" coords="64,140,64,144,66,146,70,146,69,149,72,156,75,163,72,170,69,172,67,175,68,178,70,182,70,192,62,195,57,193,52,189,50,190,52,192,48,193,42,189,38,195,36,193,34,195,27,195,26,187,27,177,31,168,41,151,42,145,45,144,47,145,47,147,49,147,58,140,61,140,64,140,64,140" href="http://bw.demo_de/" title="Baden Württemberg" alt="Baden Württemberg" >
<area shape="poly" coords="78,124,82,122,87,123,88,119,90,118,92,120,94,122,99,120,105,126,111,135,110,136,109,138,110,140,116,147,119,148,126,155,134,161,134,169,128,169,127,174,124,176,120,178,117,180,120,186,123,193,122,196,119,197,115,195,111,193,98,195,87,201,83,199,79,197,71,202,67,199,63,196,66,192,69,189,69,186,67,175,68,171,71,170,74,162,69,154,68,148,58,139,55,145,51,144,51,128,56,126,61,123,65,119,70,118,73,119,78,124,78,124" href="http://bayern.demo_de/" title="Bayern" alt="Bayern" >
<area shape="poly" coords="132,43,132,46,136,45,132,55,134,59,139,64,139,69,143,77,141,82,142,85,144,88,137,91,134,92,132,95,121,95,117,84,113,81,109,79,104,78,103,75,103,64,103,58,91,53,92,50,94,47,101,45,113,49,117,47,120,45,123,42,126,41,132,43,132,43" href="http://brandenburg.demo_de/" title="Brandenburg" alt="Brandenburg">
</map>
<ul class="list_popular"><li><a href="http://berlin.demo_de">Berlin</a></li><li><a href="http://hamburg.demo_de">Hamburg</a></li><li><a href="http://muenchen.demo_de">München</a></li><li><a href="http://koeln.demo_de">Köln</a></li><li><a href="http://stuttgart.demo_de">Stuttgart</a></li><li><a href="http://dortmund.demo_de">Dortmund</a></li><li><a href="http://essen.demo_de">Essen</a></li><li><a href="http://duesseldorf.demo_de">Düsseldorf</a></li><li><a href="http://bremen.demo_de">Bremen</a></li><li><a href="http://hannover.demo_de">Hannover</a></li></ul>
</div>
<br>
<h2 class="heading">Kostenlose Annoncen</h2>
Kostenlos inserieren und verkaufen im Kleinanzeigen­markt demo. Schnäppchen finden und direkt mit dem Verkäufer in Kontakt treten.
<p>
Täglich aktuelle Kleinanzeigen von privat und gewerblich. Annoncen gratis aufgeben.
</td>
<td width="20"><img src="/g/p/t.gif" width="20" height="1" alt=""></td>
<td align="left" width="322" valign="top">
<!--<h3 style="margin:0"> Kleinanzeigen in </h3>-->
<table width="322" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" width="161" nowrap>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/tiermarkt">Tiermarkt</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/fische" >Fische</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/hasen-nagetiere" >Hasen, Nagetiere</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/hunde" >Hunde, Welpen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/katzen" >Katzen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/pferdemarkt" >Pferdemarkt</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/reptilien-terrarien" >Reptilien, Terrarien</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/tiermarkt-sonstige" >Sonstige Tiere</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/voegel" >Vögel</a> </li>
</ul>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/marktplatz">Marktplatz</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/antiquitaeten-kunst" >Antiquitäten & Kunst</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/audio-hifi" >Audio & Hi-Fi</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/baby-kindersachen" >Baby & Kindersachen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/beauty-gesundheit" >Beauty & Gesundheit</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/bekleidung" >Bekleidung</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/buecher" >Bücher & Zeitschriften</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/computer-zubehoer" >Computer & Zubehör</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/eintrittskarten" >Eintrittskarten & Tickets</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/foto-camcorder" >Foto & Camcorder</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/handy-telefon-fax" >Handy, Telefon, Fax</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/haus-garten" >Haus & Garten</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/haushaltsgeraete" >Haushaltsgeräte</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/moebel-hausrat" >Möbel & Hausrat</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/modellbau" >Modellbau</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/musikinstrumente" >Musikinstrumente</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/sammeln" >Sammeln</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/software-spiele" >Software & Spiele</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/sonstiges" >Sonstiges</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/sportsachen" >Sportsachen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/tv-video" >TV & Video</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/uhren-schmuck" >Uhren & Schmuck</a> </li>
</ul>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/dienstleistungen">Dienstleistungen</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/betreuung-pflege" >Betreuung & Pflege</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/bueroarbeiten" >Büroarbeiten</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/finanzen-versicherungen" >Finanzen & Versicherungen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/handwerkliche-dienstleistungen" >Handwerk</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/haushaltshilfe" >Haushaltshilfe</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/kunst-events" >Kunst & Events</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/sonstige-dienstleistungen" >Sonstige Dienstleistungen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/umzug-transporte" >Umzug & Transporte</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/unterricht-seminare" >Unterricht & Seminare</a> </li>
</ul>
</td><td valign="top" width="161" nowrap>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/immobilienmarkt">Immobilienmarkt</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/ferienhaeuser" >Ferienhäuser</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/ferienwohnungen" >Ferienwohnungen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/gewerbeflaeche" >Gewerbefläche</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/grundstuecke" >Grundstücke</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/haueser-kaufen" >Häuser: Kauf</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/haueser-mieten" >Häuser: Miete</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/sonstige-immobilien" >Sonstige Immobilien</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/wohngemeinschaften" >Wohngemeinschaften</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/wohnungen-kaufen" >Wohnungen: Kauf</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/mietwohnungen" >Wohnungen: Miete</a> </li>
</ul>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/jobs">Stellenmarkt</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/ausbildungsplaetze" >Ausbildungsplätze</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/minijobs-400-euro" >Minijobs (400 Euro)</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/nebenjobs" >Nebenjobs</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/praktikumsplaetze" >Praktikumsplätze</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/studentenjobs" >Studentenjobs</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/teilzeitstellen" >Teilzeitstellen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/vollzeitstellen" >Vollzeitstellen</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/weiterbildung" >Weiterbildung</a> </li>
</ul>
<span class="listtitle"><a href="http://snake.demo_de/kleinanzeigen/fahrzeugmarkt">Fahrzeugmarkt</a> </span>
<ul class="categories">
<li><a href="http://snake.demo_de/kleinanzeigen/autos" >Autos</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/autoteile" >Autoteile</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/boote" >Boote</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/fahrraeder" >Fahrräder</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/motorraeder" >Motorräder</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/motorradteile" >Motorradteile</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/motorroller" >Motorroller</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/nutzfahrzeuge" >Nutzfahrzeuge</a> </li>
<li><a href="http://snake.demo_de/kleinanzeigen/wohnwagen-wohnmobile" >Wohnwagen, -mobile</a> </li>
</ul>
</td>
</tr>
</table>
</td>
<td align="left" width="250" valign="top">
<h2 style="margin:0">Kleinanzeigen Deutschland.</h2><div class="listing_mini_container">
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/fewo-und-fezi-im-ostseeheilbad-zingst-magdeburg">FeWo und FeZi im Ostseeheilbad Zing.</a><br>
<a href="/kleinanzeige/fewo-und-fezi-im-ostseeheilbad-zingst-magdeburg"><img src="/data/adpix/thumb/fewo-und-fezi-im-ostseeheilbad-zingst-549.jpg" width="60" height="45" border=0 alt=""></a>
<strong>70€</strong> <small> in Magdeburg, Altstadt</small><br>
<p>Bieten im Seeheilbad Zingst an der Ostsee eine F...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/die-zukunft-selbst-in-die-hand-nehmen-saarbruecken">Die Zukunft selbst in die Hand nehm.</a><br>
<a href="/kleinanzeige/die-zukunft-selbst-in-die-hand-nehmen-saarbruecken"><img src="/data/adpix/thumb/die-zukunft-selbst-in-die-hand-nehmen-383376-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>230.000€</strong> <small> in Saarbrücken</small><br>
<p>Die Zukunft selbst in die Hand nehmen!Dieses, de...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/diese-lage-ist-einzigartig-oy-mittelberg">Diese Lage ist einzigartig!</a><br>
<a href="/kleinanzeige/diese-lage-ist-einzigartig-oy-mittelberg"><img src="/data/adpix/thumb/diese-lage-ist-einzigartig-438066-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>450.000€</strong> <small> in Oy-Mittelberg</small><br>
<p>Auch bei diesem Bauernhaus finden Sie die typisc...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/angebot-der-woche-sehr-geraeumiges-schmuckstueck-im-rottaler-baederdreieck-mit-schoenem-eingewachsenen-garten--malching">SCHNÄPPCHEN ! Sehr geräumiges SCHMÜ.</a><br>
<a href="/kleinanzeige/angebot-der-woche-sehr-geraeumiges-schmuckstueck-im-rottaler-baederdreieck-mit-schoenem-eingewachsenen-garten--malching"><img src="/data/adpix/thumb/angebot-der-woche-sehr-geraeumiges-schmuckstueck-im-rottaler-baederdreieck-mit-schoenem-eingewachsenen-garten--423148-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>189.000€</strong> <small> in Malching</small><br>
<p>Dieses schöne ehemalige "Lehrerhaus" ist etwas f...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/2-3-familienhaus-mit-2-einzelgaragen-darmstadt">2-3 Familienhaus mit 2 Einzelgarage.</a><br>
<a href="/kleinanzeige/2-3-familienhaus-mit-2-einzelgaragen-darmstadt"><img src="/data/adpix/thumb/2-3-familienhaus-mit-2-einzelgaragen-416016-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>425.000€</strong> <small> in Darmstadt, Arheilgen</small><br>
<p>Es handelt sich um eine große Immobilie mit stil...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-landshut">Ein bis Zweifamilienhaus in zentral.</a><br>
<a href="/kleinanzeige/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-landshut"><img src="/data/adpix/thumb/ein-bis-zweifamilienhaus-in-zentraler-lage-von-landshut-415409-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>195.000€</strong> <small> in Landshut, Achdorf</small><br>
<p>Es handelt sich um ein Ein- bis Zweifamilienhaus...</p>
</div>
<div class="listing_mini" onmouseout="this.style.backgroundColor='white';" onmouseover="this.style.backgroundColor='#F0ECDB';" style="border-bottom-color:#2A6EE4">
<hr>
<a href="/kleinanzeige/wohnen-zwischen-kur-und-festspielhaus-baden-baden">Wohnen zwischen Kur- und Festspielh.</a><br>
<a href="/kleinanzeige/wohnen-zwischen-kur-und-festspielhaus-baden-baden"><img src="/data/adpix/thumb/wohnen-zwischen-kur-und-festspielhaus-414142-0.jpg" width="60" height="45" border=0 alt=""></a>
<strong>2.400€</strong> <small> in Baden-Baden</small><br>
<p>Wohnen zwischen Kur- und FestspielhausIn zentral...</p>
</div>
</div>
<p>
<img src="/g/p/FX_BN_wohnung_gedemot.gif" width="250" height="250" alt="Kleinanzeigen Immobilien">
</td>
</tr>
</table>
</div>
<div class="footer">
<ul style="margin-bottom:5px;">
<!-- <li><a href="/seiten/werben.htm" rel="nofollow">Werbung</a></li>-->
<li><a href="/seiten/ueberuns.htm" rel="nofollow">Über uns</a></li>
<li><a href="/seiten/jobs.htm" rel="nofollow">Jobs & Karriere</a></li>
<li><a href="/presse/">Presse</a></li>
<li><a href="/hilfe/demo_kontaktieren.htm" rel="nofollow">Kontakt</a></li>
<li><a href="/seiten/impressum.htm" rel="nofollow">Impressum</a></li>
<li><a href="/seiten/datenschutz.htm" rel="nofollow">Datenschutz</a></li>
<li><a href="/seiten/nutzungsbedingungen.htm" rel="nofollow">AGB</a></li>
<li><a href="/hilfe/">Hilfe</a></li>
<li><a href="/seiten/sicher-handeln.htm" rel="nofollow">Sicherheit</a></li>
<li><a href="/seiten/weitersagen.htm" title="Berichten Sie Ihren Freunden von demo!" rel="nofollow">Weitersagen</a></li>
<li><a href="/beliebte-suchbegriffe/">Beliebte Suchen</a></li>
<li><a href="/subapp_rss/new-classifieds.xml"><span class="sprites-1 sprite-rss2" style="position:relative;top:2px;"></span></a></li>
</ul>
<ul style="margin-bottom:5px;">
<li>Andere Länder:</li>
<li><a href="http://snake.demo_ch">Schweiz</a></li><li><a href="http://snake.demo_at">Österreich</a></li><li><a href="http://snake.demo_es">Spanien</a></li>
</ul>
</div>
</div>
<script src="/app_global/jquery-1.6.1.min.js" type="text/javascript"></script><script src="/app_global/header.min.js?1307361841" type="text/javascript"></script><script src="/app_global/jquery.maphilight.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$.fn.maphilight.defaults = {
fill: true,
fillColor: 'FF6B02',
fillOpacity: 0.4,
stroke: true,
strokeColor: 'FF6B02',
strokeOpacity: 1,
strokeWidth: 1,
fade: true,
alwaysOn: false,
neverOn: false,
groupBy: false
}
$('.map').maphilight();
});</script>
</body>
</html>
```
|
Why is there a 200ms gap between onload and domcontentloaded?
|
CC BY-SA 3.0
| 0 |
2011-06-06T14:05:20.897
|
2011-07-25T12:07:09.430
|
2011-06-06T17:41:08.890
| 547,262 | 547,262 |
[
"html",
"performance",
"firebug",
"onload"
] |
6,254,090 | 1 | null | null | 2 | 609 |
How can do bulk operation on workflow states in drupal 6?
This photo is Views Bulk Operations snapshot and I install workflow and Views Bulk Operations but these actions is not appear in the drop down list
Take a look at [http://drupal.org/node/325506](http://drupal.org/node/325506)

|
How can do bulk operation on workflow states in drupal 6?
|
CC BY-SA 3.0
| null |
2011-06-06T15:09:18.897
|
2012-10-21T17:20:05.467
|
2012-10-21T17:20:05.467
| 597,607 | 460,891 |
[
"drupal",
"drupal-6",
"workflow",
"view",
"drupal-views"
] |
6,254,099 | 1 | 6,254,146 | null | 0 | 5,766 |
I am calling a servlet with params
```
window.location.href = "/csm/csminfo.jsp?CFG_ID="+cfgid+"&path="+path;
```
In the other csminfo on body load i am calling a function to retrieve these params
```
<body onload="getConfigDetails(<%= request.getParameter("CFG_ID") %>,<%= request.getParameter("path") %>)">
```
JS
```
function getConfigDetails(cfgid,path)
{
alert(cfgid+","+path);
}
```
But no alert gets popped up, what is the problem here?
I am using firefox, using error console i got this error

|
How to pass parameters in jsp page
|
CC BY-SA 3.0
| null |
2011-06-06T15:10:10.953
|
2011-06-06T15:43:35.177
|
2011-06-06T15:43:35.177
| 707,414 | 707,414 |
[
"javascript",
"jsp"
] |
6,254,199 | 1 | null | null | 1 | 188 |
I've been looking for a way to 'see' more accurately the results of a picture combined with text.
When I create some shapes:
```
g1 = Graphics[{White, EdgeForm[Directive[Thick, Black]] ,
Rectangle[{0, 0}, {19, 28}], LightGray,
Rectangle[{1, 19}, {9, 27}], Rectangle[{10, 19}, {18, 27}],
Rectangle[{1, 23}, {2, 27}]},
Epilog -> {
Inset[Text[Style["Information Here", FontSize -> 8]], {1,
25}, {Center, Top}, Automatic, {0, 1}],
Inset[Text[Style["some more stuff", FontSize -> 8]], {2,
25}, {Center, Bottom}, Automatic, {0, 1}]}]
```
it shows a scaled down version but the text doesn't fit into the rectangle.
However when I port it to pdf it fit's into the rectangle. Is there a way to view the output
more as is?

EDIT:
Here's the screenprint (with Windows Snipping Tool) after I changed the the environment to printout.

After this I convert g1 to final1:
```
final1 = Show[g1, AspectRatio -> Automatic,
PlotRange -> {{-0.5, 19.5}, {-0.5, 28.5}}]
```
This shows the same result and then I export to PDF.
```
Export["final1.pdf", Show[final1, ImageSize -> {20 cm, 29 cm}]]
```
I open the PDF (Adobe reader 9) and scale to 40% (for comparison). Here you can see what it looks like in acrobat and on paper.

This is with Adobe at 100%

As you can see there is a clear difference. I could even add a line of text.
EDIT2:
```
Following Alexey suggestion with code:
In[27]:= SetOptions[$FrontEndSession,
PrintingStyleEnvironment -> "Printout"]
In[28]:= Export["finalprintout1.pdf",
Show[final1, ImageSize -> {20 cm, 29 cm}]]
Out[28]= "finalprintout1.pdf"
In[29]:= SetOptions[$FrontEndSession,
PrintingStyleEnvironment -> "Working"]
In[30]:= Export["finalworking.pdf",
Show[final1, ImageSize -> {20 cm, 29 cm}]]
Out[30]= "finalworking.pdf"
```
It results in the same PDF's. I have no difference at all?
|
Graphics output and text
|
CC BY-SA 3.0
| null |
2011-06-06T15:18:06.340
|
2011-06-06T18:39:45.623
|
2011-06-06T18:39:45.623
| 777,614 | 777,614 |
[
"graphics",
"text",
"wolfram-mathematica"
] |
6,254,235 | 1 | 6,254,448 | null | 6 | 2,317 |
I'm looking the best way to create a group of four buttons.

Each button is an image. So, I think about just create a "big" square from four small images-buttons and then rotate them.
The question is: how to rotate layout in xml? Is it possible?
Is there any better way to create such group of buttons?
Thank you!
|
Android: custom shaped button
|
CC BY-SA 3.0
| 0 |
2011-06-06T15:20:45.740
|
2014-02-25T15:21:32.860
| null | null | 573,239 |
[
"android",
"button"
] |
6,254,580 | 1 | 6,254,960 | null | 0 | 763 |
```
@response = Typhoeus::Request.get(FOUR_SQUARE_API_SERVER_ADDRESS+'search?ll=' + current_user.altitude.to_s + "&query="+ params[:query] + FOUR_SQUARE_API_ACESS_CODE)
@venues = ActiveSupport::JSON.decode(@response.body)
@venues['response']['groups'][0]['items'].each do |venue|
venue['name'] //working
venue['name']['location'][0]['address'] //issues
venue['name']['categories'][0]['id'] //issues
end
```
Please check inline comments for issues.

|
Issue in parsing Json response in ruby
|
CC BY-SA 3.0
| 0 |
2011-06-06T15:47:59.243
|
2011-06-06T16:18:04.943
|
2011-06-06T16:10:15.420
| 357,344 | 357,344 |
[
"ruby",
"json",
"parsing"
] |
6,254,698 | 1 | 6,255,200 | null | 0 | 714 |
I have this iPhone app that has an array containing around 50 to 100 points. How do I calculate the smoothest curve that will fit the points? It can be bezier, cubic, quadratic, whatever. It just have to look smooth and fit as much as possible all points (obviously, as I did in my drawing, to create a smooth curve, some points have to be created out of the original set... no problem).
See picture:

|
iPhone - creating the smoothest curve
|
CC BY-SA 3.0
| 0 |
2011-06-06T15:56:41.123
|
2011-06-06T20:52:29.160
|
2011-06-06T20:52:29.160
| null | 316,469 |
[
"iphone",
"objective-c",
"cocoa-touch",
"math"
] |
6,254,850 | 1 | 6,255,205 | null | 2 | 1,479 |
I'm trying to implement a gauge animation using (+ and - buttons) on iphone, but i have no idea where to start? Any help is really welcome. See the image below (this is what I'm trying to do). Thanks for your help.

|
Gauge animation on iphone
|
CC BY-SA 3.0
| null |
2011-06-06T16:07:36.703
|
2011-06-07T08:25:30.363
|
2011-06-06T16:34:47.170
| 343,042 | 764,316 |
[
"iphone",
"animation",
"uibutton",
"gauge"
] |
6,254,987 | 1 | 6,255,044 | null | 0 | 995 |
What is the name of this round button in the bottom left corner of this image ? I would like to use only that little circle button.

|
What is the name of this Button?
|
CC BY-SA 3.0
| null |
2011-06-06T16:19:59.293
|
2011-06-06T16:49:14.063
|
2011-06-06T16:49:14.063
| 631,473 | 631,473 |
[
"iphone",
"objective-c",
"button",
"maps"
] |
6,254,991 | 1 | 6,258,548 | null | 2 | 896 |
Currently I'm executing the following:
```
SELECT SiteFeatures.SiteId, Blogs.FeatureInstance_Id as BlogId,
PageCollections.FeatureInstance_Id as PagesId,
Portfolios.FeatureInstance_Id as PortfolioId
FROM SiteFeatures
LEFT OUTER JOIN Blogs
ON SiteFeatures.FeatureInstanceId = Blogs.FeatureInstance_id
LEFT OUTER JOIN Portfolios
ON SiteFeatures.FeatureInstanceId = Portfolios.FeatureInstance_id
LEFT OUTER JOIN PageCollections
ON SiteFeatures.FeatureInstanceId = PageCollections.FeatureInstance_id
```
This returns a result set like so:
```
SiteId BlogId PagesId PortfolioId
1 1 NULL NULL
1 NULL 1 NULL
1 NULL NULL 1
2 2 NULL NULL
2 NULL 2 NULL
2 NULL NULL 2
```
Which means I am having to aggregate these within my application code. How can I change my query (with performance in mind) to return:
```
SiteId BlogId PagesId PortfolioId
1 1 1 1
1 2 2 2
```
As requested - my schema:

|
How to group this SQL outer join query
|
CC BY-SA 3.0
| null |
2011-06-06T16:20:16.807
|
2011-06-07T16:05:34.980
|
2011-06-06T21:51:17.033
| 231,216 | 231,216 |
[
"sql",
"sql-server",
"sql-server-2008"
] |
6,255,687 | 1 | 6,255,786 | null | 2 | 2,396 |
I have a listview of items that have a listview as a child. My problem is that the child listview does not expand to show all items.
Parent layout
```
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="0px"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/site_wallet_header"
style="@style/Home.ListHeader" />
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/site_wallet_list" />
</LinearLayout>
```
Child layout
```
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="@style/ListItem"
android:layout_gravity="center_vertical"
android:gravity="center">
<ImageView
android:id="@+id/bank_icon"
android:layout_height="wrap_content"
android:layout_width="0dip"
android:layout_weight="1" />
<TextView
android:id="@+id/bank_name"
android:layout_height="wrap_content"
android:layout_width="0dip"
android:layout_weight="4"
style="@style/ListItem.Text"/>
</LinearLayout>
```
Parent collection `ArrayAdapter`
```
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(resourceId, null);
}
AccountSummary account = accounts.get(position);
if (account != null)
{
TextView header = (TextView) v.findViewById(R.id.site_wallet_header);
header.setText(account.Name);
if (account.Banks.length == 0) {
//LinearLayout noBanks = (LinearLayout) context.getLayoutInflater().inflate(R.layout.no_banks, null);
} else {
ListView banksList = (ListView) v.findViewById(R.id.site_wallet_list);
//banksList.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
banksList.clearChoices();
banksList.setAdapter(new BankSummaryAdapter(context, R.layout.list_item_bank, account.Banks));
}
}
return v;
}
```
Child collection `ArrayAdapter`
```
public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(resourceId, null);
}
BankSummary bank = items.get(position);
if (bank != null)
{
TextView nameText = (TextView) v.findViewById(R.id.bank_name);
ImageView iconImage = (ImageView) v.findViewById(R.id.bank_icon);
nameText.setText(bank.DisplayName);
Resources res = context.getResources();
switch (bank.BankCode)
{
case 'V':
iconImage.setImageDrawable(res.getDrawable(R.drawable.ic_visa));
break;
case 'M':
iconImage.setImageDrawable(res.getDrawable(R.drawable.ic_mastercard));
break;
case 'D':
iconImage.setImageDrawable(res.getDrawable(R.drawable.ic_discover));
break;
case 'A':
iconImage.setImageDrawable(res.getDrawable(R.drawable.ic_american_express));
break;
default:
iconImage.setImageDrawable(res.getDrawable(R.drawable.ic_echeck));
break;
}
}
return v;
}
```
Here is what it is doing.

My goal here is to have these header lists that are loaded dynamically. This screen will be scrollable with the child lists always showing every item. No matter what I try, however, I can't seem to get the child list to expand completely. I really want to avoid building the entire thing in code.
|
Android - ListView within a ListView does not expand to show all items
|
CC BY-SA 3.0
| null |
2011-06-06T17:23:34.693
|
2011-06-06T18:11:06.930
|
2011-06-06T18:11:06.930
| 542,701 | 107,455 |
[
"android",
"android-layout",
"android-listview",
"android-arrayadapter"
] |
6,255,768 | 1 | 6,255,859 | null | 3 | 567 |
i'm working in a project where i need to read some values and send through socket connection.
This is format of the package that i must create:

i must read these values (i don't know what king of type it must be each value, int or string, etc):
type : type of operation (how get 4 bits only ? )
reserverd : i will fill with 0's
origin: who is sending the message
receiver: who is to receive the message
algorithm: which algorithm is goona to be used to encrypt the message
padding: use it in the encrypt algorithm
mode : which mode to encrypt
i must read this values and create this package that must have 7 bytes only.
how can i do that ?
it must be something like this i think:
```
byte[] r = new byte[]{
type+reserverd,
origin_1_byte, origin_2_byte,
receiver_1_byte, receiver_2_byte,
algorithm+padding,
mode};
```
UPDATE:
```
ByteBuffer buffer = ByteBuffer.allocate(100);
// read data into buffer
buffer.rewind();
buffer.order(ByteOrder.LITTLE_ENDIAN);
// 0xf and co mask off sign extension -> handle byte as unsigned
int type = (buffer.get() >> 4) & 0xf; // 15 in decimal
buffer.rewind();
buffer.put((byte)(type << 4));
System.out.println("type = " + type);
output : 0 (why ?)
```
Any ideas ?
|
Java: How create a package with bytes?
|
CC BY-SA 3.0
| null |
2011-06-06T17:31:12.093
|
2011-06-06T19:39:08.057
|
2011-06-06T19:02:42.693
| 523,168 | 523,168 |
[
"java",
"encryption",
"header"
] |
6,256,240 | 1 | null | null | 1 | 1,514 |
Can anyone please tell me why MFC applications are not displaying correctly in Windows 7 basic theme ?
EDIT: Is there anyone who can guess the problem ?
EDIT:
- -
.
```
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
```
- -
.
```
CDialog::OnInitDialog();
AfxInitRichEdit();
// And Create three more child windows.
```
-

But, it is working nicely when I changed to Windows Aero theme.

What should be the solution ?
EDIT: Anyone please ?
|
MFC controls hide on Windows 7 basic theme
|
CC BY-SA 3.0
| null |
2011-06-06T18:13:41.890
|
2013-07-22T07:06:23.020
|
2011-06-08T08:36:14.107
| 455,900 | 134,804 |
[
"c++",
"windows-7",
"mfc",
"themes"
] |
6,256,310 | 1 | null | null | 6 | 25,708 |
How can I format chart label?
I need to see only 2 digits after point.
I try `chart.ChartAreas.First().AxisY.LabelStyle.Format = "#.##";` and `0.00`
Also I try to set `Series[0].LabelFormat = "0.00"` and `#.##`
and without success.
What is wrong?

|
MSChart: Label format
|
CC BY-SA 3.0
| 0 |
2011-06-06T18:20:28.510
|
2013-10-02T18:06:18.370
| null | null | 320,047 |
[
".net",
"mschart"
] |
6,256,314 | 1 | 6,258,096 | null | 0 | 128 |
I have some misunderstanding how my objects should be represented in a relational db structure.
For example if I have a simple tables structure that looks like that:

And if I generate an Entity Framework model based on that, it would be look like:

As you can see it's many-to-many association. (Any Dish contains many Ingredients, any Ingredient can be used in many Dishes)
Now, what if I need some additional parameters, like quantity of the Ingredient in a Dish? (Of course it usually would be distinct number for each ingredient in any different Dish).
If I add some additional columns directly to `Dish_FooIngridient` table, it breaks nicety of automatic model generation, and then I have to fix associations manually in EF model designer and later use some cumbersome queries to operate with objects. Because it will be generated into something like this:

As you can see, now there are other redundant properties, which I don't need. Is there any better way to manage that? Maybe using complex properties or inherited entity, or something else?
|
How to prepare Database to generate EF model from it
|
CC BY-SA 3.0
| null |
2011-06-06T18:20:43.603
|
2011-06-06T21:14:41.163
|
2011-06-06T18:53:03.523
| 116,395 | 116,395 |
[
"sql-server",
"entity-framework",
"entity-framework-designer"
] |
6,256,483 | 1 | 6,257,931 | null | 6 | 24,515 |
I have a `JButton` that I would like to change the background color of to white. When using the Metal Look And Feel, I achieve the desired effect with `setBackground`:

Unfortunately, the concept of "background color" is different when using the Windows LAF; the background color is the color drawn around the button:

I would like to use the Windows LAF, but allow the button color of this `JButton` to be changed to white. How do I do this?
|
How to set the button color of a JButton (not background color)
|
CC BY-SA 3.0
| 0 |
2011-06-06T18:37:31.200
|
2013-09-18T08:27:37.143
| null | null | 758,201 |
[
"java",
"swing",
"jbutton"
] |
6,256,593 | 1 | null | null | 0 | 273 |
i want to make a table like that:

i have tried something like that but is not working...
```
<TableRow>
<TextView
android:textColor="#fed570"
android:text="days"
android:padding="3dip"
android:textStyle="bold"/>
<TextView>
<TableRow>
<TextView
android:textColor="#fed570"
android:text="1"
android:padding="3dip"
android:textStyle="bold"/>
<TextView
android:textColor="#fed570"
android:text="2"
android:gravity="center"
android:padding="3dip" android:textStyle="bold"/>
//..more days
</TableRow>
</TextView>
</TableRow>
</TextView>
</TableRow>
```
Is that possible to be created?
|
how to add a tableRow in a tableRow?
|
CC BY-SA 3.0
| null |
2011-06-06T18:47:35.903
|
2011-09-13T20:24:51.820
| null | null | 754,503 |
[
"android",
"tablelayout"
] |
6,256,759 | 1 | 6,795,693 | null | 2 | 966 |
I am creating a custom dialog in my app and it looks fine in the Layout Editor, but is not the right size on the device. Here's the layout for the dialog:
```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/dialog_border"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerHorizontal="true"
android:padding="10dp"
android:src="@drawable/wifi" />
<TextView
android:layout_height="wrap_content"
android:id="@+id/heading"
android:layout_below="@+id/image"
android:layout_width="wrap_content"
android:layout_margin="10dp"
android:layout_alignLeft="@+id/cancel_button"
android:layout_alignRight="@+id/continue_button"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/lost_connection"
android:layout_centerHorizontal="true" />
<TextView
android:layout_height="wrap_content"
android:id="@+id/description"
android:layout_width="wrap_content"
android:layout_below="@+id/heading"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_centerHorizontal="true"
android:layout_alignLeft="@+id/cancel_button"
android:layout_alignRight="@+id/continue_button"
android:gravity="center"
android:layout_margin="10dp"
android:text="@string/try_again" />
<Button
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/cancel_button"
android:layout_below="@+id/description"
android:layout_centerHorizontal="true"
android:id="@+id/dismiss_button"
android:text="@string/dismiss" />
</RelativeLayout>
```
This is what it looks like in the Layout Editor:

But this is what it looks like on the device:

It has that weird bit of extra space at the top and right side and the button is compress vertically.
|
Android 3.1 Dialog not the right size
|
CC BY-SA 3.0
| 0 |
2011-06-06T19:04:08.867
|
2012-03-13T21:53:28.013
| null | null | 236,136 |
[
"android",
"dialog",
"android-3.0-honeycomb"
] |
6,256,822 | 1 | 6,256,910 | null | 2 | 1,266 |
I would somehow assume that something like that has been asked but can't find anything.
1. At the beginning, all students are in the left list.
2. User can move students to the right list by clicking on the arrow
3. User can move students back to the original list
4. If group of students is too large, user can search with autocomplete
5. Pressing add (or enter) adds shifts the autocompleted student from left to right

I'm lost with where and how to start. What I've done so far.
Autocomplete works, there is no 'add' button yet.
The left list is populated.
What are good ways for:
- -
I'm not troubled by the serverside parts (PHP/mysql), but I rarely use js/jQuery and would be glad for any hints on how to approach this.
|
Move list elements between two containers, combine with autocomplete
|
CC BY-SA 3.0
| null |
2011-06-06T19:09:30.613
|
2011-06-06T19:28:49.343
|
2017-02-08T14:32:24.397
| -1 | 11,995 |
[
"javascript",
"jquery",
"ajax"
] |
6,256,853 | 1 | 6,259,098 | null | 2 | 2,092 |
I just completed an [MVC tutorial](http://www.asp.net/mvc/tutorials/mvc-music-store-part-1), but some of my webpages don't look right. This is mine: 
But it's supposed to look like this:
The code for this page is:
```
@model MvcSuper.Models.MusicStore.Genre
@{
ViewBag.Title = "Browse Albums";
}
<div class="genre">
<h3><em>@Model.Name</em> Albums</h3>
<ul id="album-list">
@foreach (var album in Model.Albums)
{
<li>
<a href="@Url.Action("Details",
new { id = album.AlbumId })">
<img alt="@album.Title"
src="@album.AlbumArtUrl" />
<span>@album.Title</span>
</a>
</li>
}
</ul>
</div>
```
The left menu (partial view):
```
@model IEnumerable<MvcSuper.Models.MusicStore.Genre>
<ul id="categories">
@foreach (var genre in Model)
{
<li>@Html.ActionLink(genre.Name,
"Browse", "MusicStore",
new { Genre = genre.Name }, null)
</li>
}
</ul>
```
Entire CSS:
```
{
margin: 0px;
padding: 0px;
border: none;
}
body
{
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
background-color: #FBF9EF;
padding: 0px 6%;
}
#container
{
float: left;
}
#header
{
float: left;
width: 100%;
border-bottom: 1px dotted #5D5A53;
margin-bottom: 10px;
}
#header h1
{
font-size: 18px;
float: left;
background: url(/content/Images/logo.png) no-repeat;
padding: 45px 0px 5px 0px;
}
#promotion
{
height: 300px;
width: 700px;
background: url(/content/Images/home-showcase.png) no-repeat;
}
ul li a
{
font-size: 16px;
}
#main
{
overflow: hidden;
padding: 0 0 15px 10px;
float: left;
}
ul
{
list-style-type: square;
margin-left: 25px;
font-size: 14px;
}
ul#album-list
{
list-style: none;
margin-left: 0px;
}
ul#album-list li
{
height: 130px;
width: 100px;
float: left;
margin: 10px;
text-align: center;
}
ul#album-list li a, ul#album-list li .button
{
font-size: 13px;
float: left;
}
ul#album-list li a span
{
color: #9b9993;
text-decoration: underline;
}
#cart
{
float: right;
}
#update-message
{
color: #F6855E;
font-weight: bold;
}
.button, input[type=submit]
{
clear: both;
display: inline-block;
padding: 5px;
margin-top: 10px;
border: 1px;
background: #5e5b54;
color: #fff;
font-weight: bold;
}
.button a
{
color: #fff !important;
}
#footer
{
clear: both;
padding: 10px;
text-align: right;
border-top: 1px dotted #8A8575;
border-bottom: 1px dotted #8A8575;
font-family: Constantia, Georgia, serif;
}
/******************** Top Navigation ************************/
ul#navlist
{
float: right;
}
ul#navlist li
{
display: inline;
}
ul#navlist li a
{
border-left: 1px dotted #8A8575;
padding: 10px;
margin-top: 10px;
color: #8A8575;
text-decoration: none;
float: left;
}
ul#navlist li:first-child a
{
border: none;
}
ul#navlist li a:hover
{
color: #F6855E;
}
/********************* End top navigation ***************************/
p
{
margin-bottom: 15px;
margin-top: 0px;
}
h2
{
color: #5e5b54;
}
h2, h3
{
margin-bottom: 10px;
font-size: 16px;
font-style: italic;
font-weight: bold;
}
h3
{
color: #9B9993;
}
#header h1 a, h3 em
{
color: #5E5B54;
}
a:link, a:visited
{
color: #F6855E;
text-decoration: none;
font-weight: bold;
}
a:hover
{
color: #333333;
text-decoration: none;
font-weight: bold;
}
a:active
{
color: #006633;
text-decoration: none;
font-weight: bold;
}
/***************************** sidebar navigation ****************************/
#categories
{
font-family: Constantia, Georgia, serif;
list-style-type: none;
border-right: #5d5a53 1px dotted;
padding-right: 10px;
margin: 0 25px 0 0;
float: left;
}
#categories a:link, #categories a:visited
{
color: #9B9993;
text-decoration: none;
}
#categories a:hover
{
color: #F46739;
}
div#album-details p
{
margin-bottom: 5px;
color: #5e5b54;
font-weight: bold;
}
p em
{
color: #9b9993;
}
/* Form styles */
legend
{
padding: 10px;
font-weight: bold;
}
fieldset
{
border: #9b9993 1px solid;
padding: 0 10px;
margin-bottom: 10px;
clear: left;
}
div.editor-field
{
margin-bottom: 10px;
}
input[type=text], input[type=password], select
{
border: 1px solid #8A8575;
width: 300px;
}
/* Styles for validation helpers */
.field-validation-error {
color: #ff0000;
}
.field-validation-valid {
display: none;
}
.input-validation-error {
border: 1px solid #ff0000;
background-color: #ffeeee;
}
.validation-summary-errors {
font-weight: bold;
color: #ff0000;
}
.validation-summary-valid {
display: none;
}
/* Tables */
table
{
border: 1px solid #000;
border-collapse: collapse;
color: #666666;
min-width: 500px;
width: 100%;
}
tr
{
border: 1px solid #000;
line-height: 25px;
}
th
{
background-color: #9b9993;
color: #000;
font-size: 13px;
text-align: left;
}
th, td
{
padding-left: 5px;
}
tr:hover
{
background-color: #fff;
}
```
I did download the source code (the author's finished version), and it turned out like mine when I ran it. The top most screenshot is from FF4 on XP, but it looks the same in IE8 on XP. Any ideas?
|
ASP.Net MVC Music Store Tutorial CSS Layout issue
|
CC BY-SA 3.0
| null |
2011-06-06T19:12:47.937
|
2012-02-09T09:29:18.937
|
2012-02-09T09:29:18.937
| 124,966 | 759,705 |
[
"css",
"asp.net-mvc"
] |
6,256,976 | 1 | 6,310,112 | null | 7 | 803 |
I'm using OpenGL to draw in 2D. I'm trying to overlay textures with alpha. I have done this:
```
glDisable(GL_DEPTH_TEST);
glDepthMask(GL_FALSE);
glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
```
And then I draw in reverse z-order. However, I'm getting strange discolorations. Here's an example of something that should smoothly fade from one image to another (in fact, the images are seamless in this particular case, but that won't always happen (so, no, I can't just not have alpha)):

See the grey patch in the middle? That patch is in neither of the source PNGs. Does anyone know what's causing this and how to fix it? Perhaps a completely different alpha strategy?
EDIT: For reference, here are the two textures being blended:

|
Discoloration in OpenGL
|
CC BY-SA 3.0
| null |
2011-06-06T19:28:01.697
|
2011-06-12T02:06:11.563
|
2011-06-08T21:23:55.300
| 151,471 | 151,471 |
[
"opengl",
"colors",
"2d",
"alpha",
"alphablending"
] |
6,257,543 | 1 | null | null | 7 | 5,899 |
I'm trying to add CSS, PHP, JS and HTML file types to the "New" right click menu in Windows 7. I know how to add the file types to the menu with ShellNew entries in the registry. But Windows doesn't give you any control over the display names of the new items - according to [this](http://msdn.microsoft.com/en-us/library/cc144101%28v=vs.85%29.aspx#new) the name's always taken from whatever application you've assigned to open the doc. I've set Notepad++ to open all of these file types, so I'm going to end up with several identical "Notepad++ document" entries in the menu, like this:

Does anybody know if there's a way out of this stupid situation without installing any tweak utilities?
Thanks all!
Fred
|
Adding new filetypes to Windows 7's New context menu
|
CC BY-SA 3.0
| 0 |
2011-06-06T20:19:10.427
|
2019-04-21T03:25:08.227
| null | null | 678,834 |
[
"windows",
"windows-7"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.