Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
list |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,773,393 | 1 | 4,859,812 | null | 4 | 1,287 | This is quite a daunting project to a Protovis newcomer, but maybe you could help me split it into digestible chunks?
What I would like to build is an "interactive Area chart", as sketched here: 
First of all, it's the data ...
I have data for provinces in Excel:
For each province and year, I would like to be able to draw an area chart:
```
vis.add(pv.Area)
.data(data.ProvinceA[1970])
.bottom(1)
.interpolate("basis")
.left(function(d) x(d.x))
.height(function(d) y(d.y))
.fillStyle("rgb(21,173,210)")
.anchor("top").add(pv.Line)
.lineWidth(3);
```
Then I would like to add 2 types of interactivity:
1. Selection of Province
2. Time slider
Together, the selection checkboxes and the time slider determine which areas are visible at any given time.
If, for example, Province A is selected and the year is 1984, only that area is displayed. If the time slider is now dragged, the corresponding years are now displayed for Province A. If another Province is checked, the areas are overlayed and both areas are redrawn when the time slider moves.
Protovis questions:
1. How do I format the data (province, year, x, y) for this application?
2. How do I achieve the binding of checkboxes to area?
3. How do I implement the time slider? Within Protovis or like an external component with listeners that trigger re-rendering of the graph?
| Interactive area chart using Protovis | CC BY-SA 3.0 | 0 | 2011-01-23T10:42:26.787 | 2015-11-15T23:17:05.017 | 2015-11-15T23:17:05.017 | 4,370,109 | 104,059 | [
"javascript",
"json",
"visualization",
"protovis"
]
|
4,773,597 | 1 | null | null | 0 | 168 | 
How do I solve this problem ? I use Visual Studio .NET 2010.I installed DirectX 9.
| Exe give a error and it is closing. OGRE 3D Library | CC BY-SA 3.0 | null | 2011-01-23T11:40:08.423 | 2013-01-04T22:50:43.887 | 2011-12-21T03:37:58.787 | null | 586,309 | [
"c++",
"ogre3d"
]
|
4,773,620 | 1 | 4,792,059 | null | 4 | 1,496 | I'm writing application for Android 2.1. with Google Maps. Everything works fine except one detail: there is a white square box on the bottom left corner of devices screen. (like on the screenshot below). This is independent on my location - always bottom left corner is blank.
Here is java code, where I create mapView:
```
mapView = new MapView(activity,"myCorrectApiCode");
// Configure the map display options
mapView.setBuiltInZoomControls(false);
mapView.setSatellite(true);
mapView.setStreetView(true);
```
Any idea to exclude this blank square?

code details:
my main activity xml file:
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/LinearLayoutMain"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:gravity="center">
<LinearLayout
android:background="@drawable/mapback"
android:id="@+id/LinearLayoutMainUp"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="80sp" android:gravity="center">
<TextView android:textColor="#000000" android:gravity="center" android:id="@+id/TextViewResultTxt" android:layout_height="wrap_content" android:text="@string/result_txt" android:layout_width="wrap_content"></TextView>
<TextView android:textColor="#000000" android:textStyle="bold" android:layout_height="wrap_content" android:id="@+id/myLocationText" android:singleLine="true" android:gravity="center" android:layout_width="fill_parent" android:text="@string/hello"></TextView>
<TextView android:textColor="#000000" android:textStyle="bold" android:layout_height="wrap_content" android:id="@+id/myLocationTextDist" android:singleLine="true" android:gravity="center" android:layout_width="fill_parent" android:text="@string/waiting_for_gps"></TextView><TextView android:text="" android:id="@+id/timerTextView" android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
</LinearLayout>
```
mapView I'm adding dynamic:
```
LinearLayout l = ((LinearLayout) activity.findViewById(R.id.LinearLayoutMain));
l.addView(mapView);
```
| Blank square in Google Maps | CC BY-SA 2.5 | 0 | 2011-01-23T11:49:00.047 | 2011-01-25T09:58:13.647 | 2011-01-24T23:42:04.900 | 301,556 | 301,556 | [
"java",
"android",
"google-maps"
]
|
4,773,865 | 1 | 4,773,881 | null | -4 | 197 | 
I open jQuery script and I see one line without enter and look hard for edit
what about tool/software to view easy look thank
| How to auto indent and enter code from one line coding? | CC BY-SA 3.0 | null | 2011-01-23T12:46:53.780 | 2016-05-09T05:42:28.737 | 2016-05-09T05:42:28.737 | 13,302 | 427,855 | [
"javascript",
"jquery"
]
|
4,774,172 | 1 | 4,774,298 | null | 21 | 25,133 | In a 3D engine I'm working on I've succesfully managed to draw a cube in 3D. The only method to fill the sides is using either a solid color or gradient as far as I'm concerned. To make things more exciting, I'd really love to implement texture mapping using a simple bitmap.
The point is that I can hardly find any articles or code samples on the subject of image manipulation in JavaScript. Moreover, image support in HTML5 canvas seems to be restricted to cropping.
How could I go about stretching a bitmap so that a rectangular bitmap can fill up a unregular cube face? In 2D, a projected square cube face is, due to perspective, not of a square shape, so I'll have to stretch it to make it fit in any quadrilateral.
Hopefully this image clarifies my point. The left face is now filled up with a white/black gradient. How could I fill it with a bitmap, after it has been texture-mapped?

Does anyone have any tips on perspective texture mapping (or image manipulation at all) using JavaScript and HTML5 Canvas?
I got it working, thanks to 6502!
It is, however, rather CPU intensive so I'd love to hear any optimization ideas.
[Result using 6502's technique](https://i.stack.imgur.com/Uwb86.png) - [Texture image used](http://farm4.static.flickr.com/3593/3491018590_866b089479_z.jpg?zz=1)
| Image manipulation and texture mapping using HTML5 Canvas? | CC BY-SA 3.0 | 0 | 2011-01-23T13:54:42.717 | 2017-12-15T00:47:09.433 | 2011-08-24T15:54:28.980 | 514,749 | 514,749 | [
"javascript",
"html",
"3d",
"texture-mapping",
"html5-canvas"
]
|
4,774,596 | 1 | 4,775,131 | null | 1 | 5,283 |
I'm trying to print the data retrieved from the database on a list view. For a while my application print for each data in the database, a row on the list view. So if there are 10 data in the database, the app prints 10 rows, corresponding to each row of the database. Here is a view of how it is being printed.
The new image of how it looks now:

But, it is not printing the data as I want. I want to print a column of the row in a specific text view, but it doesnt show anything.
So the activity RatedCalss calls the method `selectTopCalls()` and makes a List receive the list that this method returns. And then I pass this list to the listAdapter.
Well I have this activity named :
```
public class RatedCalls extends Activity {
private static final String LOG_TAG = "RatedCalls";
private CallDataHelper cdh;
private ListView listview;
private ArrayList<String> ratedCallsList;
private MyListAdapter listAdapter;
private View view;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Log.i(LOG_TAG, "calling from onCreate()");
cdh = new CallDataHelper(this);
startService(new Intent(this, RatedCallsService.class));
setBasicContent();
}
public void setBasicContent() {
listview = (ListView) findViewById(R.id.list_view);
ratedCallsList = this.cdh.selectTopCalls();
Log.i(LOG_TAG, "ratedCallsList size: " + ratedCallsList.size());
listAdapter = new MyListAdapter(this, this, R.id.list_view, ratedCallsList);
listview.setAdapter(listAdapter);
}
}
```
I have this class, a ListAdapter class named :
```
public class MyListAdapter extends ArrayAdapter { //--CloneChangeRequired
private ArrayList mList;
private Context mContext;
private Activity mActivity;
private int selectedPos = -1; // init value for not-selected
private ArrayList<String> ratedCallsList;
private CallDataHelper cdh;
public void setSelectedPosition(int pos){
selectedPos = pos;
notifyDataSetChanged();
}
public int getSelectedPosition(){
return selectedPos;
}
public MyListAdapter(Context context, Activity activity, int textViewResourceId, ArrayList list) {
super(context, textViewResourceId, list);
this.mList = list;
this.mContext = context;
this.mActivity = activity;
}
public View getView(int position, View convertView, ViewGroup parent){
View view = convertView;
try{
if (view == null) {
LayoutInflater vi = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
view = vi.inflate(R.layout.list_item, null); // --CloneChangeRequired(list_item)
}
// setting STRIP BG
if(position == selectedPos){
view.findViewById(R.id.rlt_main).setBackgroundColor( Color.rgb(062, 076, 120) );
}else if(position%2==0){
view.findViewById(R.id.rlt_main).setBackgroundColor( Color.rgb(226, 231, 239) );
}else{
view.findViewById(R.id.rlt_main).setBackgroundColor( Color.rgb(200, 210, 223) );
}
setViews(position, view);
}catch(Exception e){
//Log.i(MyListAdapter.class.toString(), e.getMessage());
}
return view;
}
public void setViews(int position, View view) {
cdh = new CallDataHelper(mContext);
if(mContext.getClass().equals((RatedCalls.class))){
ratedCallsList = this.cdh.selectTopCalls();
Log.i("MYLISTADAPTER", "size " + ratedCallsList.size());
if (ratedCallsList != null) {
((TextView) view.findViewById(R.id.contact_name)).setText(ratedCallsList.get(0));
((TextView) view.findViewById(R.id.phone_number)).setText(ratedCallsList.get(1));
((TextView) view.findViewById(R.id.duration)).setText(ratedCallsList.get(2));
((TextView) view.findViewById(R.id.date)).setText(ratedCallsList.get(3));
}
}else if(mContext.getClass().equals(RatedContacts.class)){
final PublishersBO listPublisher = (PublishersBO) mList.get(position);
if (listPublisher != null) {
//--setting list_item views
((TextView) view.findViewById(R.id.contact_name)).setText(listPublisher.getName());
((TextView) view.findViewById(R.id.phone_number)).setText(listPublisher.getEmail());
//--onClickListener
view.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
Intent myIntent = new Intent(mContext,RatedContacts.class);
myIntent.putExtra("NAME", listPublisher.getName());
myIntent.putExtra("ACTIVITY_NAME", mContext.getClass().toString());
mContext.startActivity(myIntent);
mActivity.finish();
}
});
}
}
}
}
```
The method that retrieve the data from the database is in a separated class that deals with SQLite function. This is the method:
```
public ArrayList<String> selectTopCalls() {
ArrayList<String> list1 = new ArrayList<String>();
Cursor cursor = this.db.query(TABLE_NAME, null, null, null, null, null,
"duration desc");
if (cursor.moveToFirst()) {
do {
//if (cursor.getString(2) != "") {
cdObj = new CallData();
list1.add(cursor.getString(2));
list1.add(cursor.getString(4));
list1.add(cursor.getString(5));
list1.add(cursor.getString(6));
} while (cursor.moveToNext());
}
if (cursor != null && !cursor.isClosed()) {
cursor.close();
}
return list1;
}
```
And here is the xml file for the view named :
```
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="67px"
android:id="@+id/rlt_main"
android:layout_toRightOf="@+id/iv_forward">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:id="@+id/iv_forward"
android:src="@drawable/icon"
android:layout_alignParentLeft="true">
</ImageView>
<TextView
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/phone_number"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@+id/iv_forward"
android:layout_alignBottom="@+id/iv_forward">
</TextView>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/duration"
android:layout_alignBottom="@+id/phone_number"
android:layout_alignRight="@+id/phone_number"
>
</TextView>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/date"
android:layout_alignBottom="@+id/contact_name"
android:layout_alignRight="@+id/contact_name"
>
</TextView>
<TextView
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:id="@+id/contact_name"
android:textSize="20px"
android:layout_toRightOf="@+id/iv_forward"
android:layout_alignParentTop="true">
</TextView>
```
So I'd like to print the data in the text views in the activity, but I dont know where to set the text, in what class, if in the MyListAdapter class or if in the activity.
Thanks.
| How to print data in a ListView using ListAdapter | CC BY-SA 2.5 | null | 2011-01-23T15:32:03.847 | 2011-01-23T17:15:02.530 | 2011-01-23T16:36:54.107 | 399,459 | 399,459 | [
"android",
"android-layout",
"android-listview",
"android-adapter"
]
|
4,774,804 | 1 | 4,775,613 | null | 6 | 1,863 | I'm trying to create a faceted dotchart in ggplot2 but cannot get the within-facet
categories to appear in the order that I want. The code for plotting the dotchart is:
```
g <- ggplot(df2, aes(x=Y, y=label)) + geom_point()
g <- g + facet_grid(incentive ~ ., scale="free")
g <- g + geom_errorbarh(aes(xmax = Y + se, xmin = Y - se))
g <- g + geom_vline(xintercept=1/6, linetype=2, colour="red")
g <- g + opts(title="% Subjects Choosing Non-Focal Image",
strip.text.y = theme_text()
) + xlab("%") + ylab("Groups")
print(g)
```
The problem with the plot is that within the "Money only" facet, the 1 cent and 5 cent categories are in the wrong order. The problem does not seem to be the order of the factors themselves, as:
```
> levels(df2$label)
[1] "0" "1" "1 cent" "5 cent" "6"
>
```

: ordering the factor does not appear to change the plot order, i.e., plotting with label3 where:
> df2$label3
[1](https://i.stack.imgur.com/faH0b.png) 0 1 1 cent 5 cent 6
Levels: 0 < 1 < 1 cent < 5 cent < 6
```
>str(df2$label3)
Ord.factor w/ 5 levels "0"<"1"<"1 cent"<..: 1 2 3 4 5
```
The actual data frame:
```
df2 <- structure(list(Y = c(0.0869565217391304, 0.148148148148148, 0.172413793103448,
0.384615384615385, 0.5625), group = c(0L, 1L, 5L, 3L, 6L), se = c(0.0856368459098186,
0.079039229753282, 0.0762650540661762, 0.0805448741815074, 0.0726021684593052
), nudged = c(FALSE, TRUE, TRUE, TRUE, TRUE), incentive = structure(c(1L,
2L, 3L, 3L, 4L), .Label = c("Default behavior", "Imbalance only",
"Money only", "Money & Imbalance together"), class = "factor"),
label = structure(1:5, .Label = c("0", "1", "1 cent", "5 cent",
"6"), class = "factor"), plot_order = c(0, 1, 2, 3, 4)), .Names = c("Y",
"group", "se", "nudged", "incentive", "label", "plot_order"),
row.names = c("as.factor(group)0",
"as.factor(group)1", "as.factor(group)5", "as.factor(group)3",
"as.factor(group)6"), class = "data.frame")
```
| Plotting order within a faceted dotchart in ggplot2 | CC BY-SA 2.5 | 0 | 2011-01-23T16:12:41.910 | 2011-01-23T18:35:26.270 | 2011-01-23T16:42:55.000 | 271,844 | 271,844 | [
"r",
"ggplot2"
]
|
4,774,964 | 1 | 4,775,112 | null | 1 | 441 | Ok I have a site design that uses the standard 2 column layout. In the left column of the OUTER layout I want to place an inner 2 column layout. So basically a two column layout nested within a column of an outer 2 column layout.
Here is an example of my code that is not working. The example at the top just shows my outer 2 column layout that works fine. Below that is my nested 2 column layout that is broken. What am I doing wrong?
[jsFiddle Example](http://jsfiddle.net/UJssV/1/)
Here an image of basically what I want to do

| CSS 2 column layout within left column of outer layout | CC BY-SA 2.5 | null | 2011-01-23T16:40:23.880 | 2011-01-23T17:11:49.787 | 2011-01-23T16:58:23.960 | 428,632 | 428,632 | [
"html",
"css"
]
|
4,775,164 | 1 | 4,784,411 | null | 22 | 12,549 | I have a chart, that displays bars which represent rainfall in 24h. Now the first problem I had, was the default 1px width for bars in flot, see this example:

I searched for a solution and found that specifing barwidth like this:
```
bars: {
show: true,
barWidth : 60*60*1000 //1h
}
```
solves the problem. Now that actually works, but with one bad result. On my example (chart that displays 24 rainfall discretly every one hour) now this happens:

As you can see from first example, where bars are 1px width, the time goes from 13:00 previous day to 13:00 next day. Now when bar width are fixed, the time goes from 13:00 to 14:00 for some reason. Now I have tried diffrent barWidth setting, for example 50*60*1000, but that does not scale right plus the margin starts to appear beetwen each bars.
Now I would like to know how to fix this issue, that the timeline would go as in first example and the bars would have 1 hour width?
| Bar width problem in flot | CC BY-SA 2.5 | 0 | 2011-01-23T17:20:15.407 | 2014-06-19T17:47:26.700 | null | null | 535,661 | [
"flot"
]
|
4,775,293 | 1 | 4,775,310 | null | 1 | 325 | i have a table row maded by these elements:

1 - image view (the calendar)
4 - uilabel (month, day, title, description)
on `cellForRowAtIndexPath` i fill labels in this way (the image is the same and is inserted by interface builder):
```
@try {
newsRow = ((NewsRowController *)[tableView dequeueReusableCellWithIdentifier:@"cell"]);
if (newsRow == nil) {
if (IS_IPAD)
[[NSBundle mainBundle] loadNibNamed:@"NewsRow_ipad" owner:self options:nil];
else [[NSBundle mainBundle] loadNibNamed:@"NewsRow" owner:self options:nil];
if ([tableArray count] > 0) {
[newsRow setCellDataWithName:[tableArray objectAtIndex:indexPath.row]
andDate:[descArray objectAtIndex:indexPath.row]
day:[dayArray objectAtIndex:indexPath.row]
month:[monthArray objectAtIndex:indexPath.row]];
}
}
}
@catch (NSException * e) {
NSLog(@"fail.");
}
return newsRow;
```
Now, `tableArray`, `descArray`, `dayArray`, `monthArray` are NSMutableArray populated on `viewDidLoad`.
Why on iPhone device (my test is with 3G) is too slow to scroll up/down?
What i need to remove to speed up table?
This is all of my code, but i don't able to find a better solution...

I don't able to set identifier... i don't see it...
and my News Row Controller is an:
```
@interface NewsRowController : UITableViewCell
```
Any idea from the world of iphonist??? :)
thanks,
A
| How to speed up table row scroll? | CC BY-SA 2.5 | 0 | 2011-01-23T17:38:40.900 | 2011-01-23T18:32:05.937 | 2011-01-23T18:12:49.380 | 88,461 | 88,461 | [
"iphone",
"objective-c",
"ipad",
"uitableview"
]
|
4,775,341 | 1 | null | null | 4 | 9,206 | First note that I'm new to EE and particulary to Eclipse (I'm seriosly working with Eclipse for the second time in my life :) ).
Then I have opened Eclipse project that was created by somebody else. It is using Java EE (some EJB, Persistence API...). Cannot run this project, there are compile errors - I cannot get it to use EE libraries - it look like this:

No Anotations are known to it and there is no quick fix. Also the project contains Maven dependencies (I have managed to install Maven plugin for Eclipse) and all the classes from dependencies show warnings in the code. Like this:

How do I set up Eclipse to work with this EE project to be able to compile and run it ?
Thank you for answers.
I'm using Eclipse 2.0.0.2 and I have to use it - its the Rational Team Concept version of Eclipse and version above 2.0.0.2 are not compatible with RTC server.
| Set up Eclipse to work with Java EE | CC BY-SA 2.5 | 0 | 2011-01-23T17:48:31.750 | 2016-05-17T08:53:34.813 | 2011-01-23T18:56:19.713 | 311,865 | 311,865 | [
"java",
"eclipse",
"maven-2",
"jakarta-ee",
"maven-plugin"
]
|
4,775,356 | 1 | 4,775,399 | null | 1 | 1,314 | Hey all. I'm working on a little flash game, that is a top down game. Your character is placed in a 600x800 pixel area, and you can use the arrow keys to walk around (in 8 directions). The object of the game is to avoid getting eaten by the enemy.
To make the game more interesting, I want to create a "fog of war" effect, so you can't see the entire map, but rather, only a small area around your character. I'm thinking of keeping things very basic, what I'm looking for is the entire map to be blacked out, but a "circle of visibility" around your character. Like this:

Of course, as the player moves around the map, the circle of visibility would move with him. If there were obstacles, they would come "into view" as the player moved toward them.
I am not sure where to begin on implementing this feature. I'm using actionscript 3 and would really appreciate your help on giving me ideas on how to implement it! Thank you!
| How to create basic "fog of war" effect in Actionscript 3? | CC BY-SA 2.5 | 0 | 2011-01-23T17:51:06.870 | 2011-01-23T18:00:06.507 | null | null | 200,567 | [
"flash",
"actionscript-3"
]
|
4,775,884 | 1 | 4,780,807 | null | 1 | 785 | I'm getting a dumb exception on `nunit.exe` launch attempt:
> System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.

The version of NUnit is `2.5.9`, installed from MSI package, i.e. different versions! Putting the library into executable's root didn't helped. (The same error for `2.5.5`).
How can it be??
| NUnit 2.5.8 requries NUnit.Framework 2.5.5 to run. How can it be?! And what for? | CC BY-SA 2.5 | null | 2011-01-23T19:21:14.187 | 2013-07-30T10:57:26.070 | 2012-11-22T00:11:42.983 | 41,956 | 41,956 | [
".net",
"exception",
"nunit",
"nunit-2.5",
"nunit-2.5.9"
]
|
4,775,866 | 1 | 4,787,509 | null | 0 | 890 | I would like have a way how "hide" grid columns when a user decreases width of window.
For example I have simple grid 4 columns and rows.
Code is very simple:
```
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="172" Width="775">
<Grid ShowGridLines="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0" Margin="20,5,20,5" FontSize="25">0.0</TextBlock>
<TextBlock Grid.Column="0" Grid.Row="1" Margin="20,5,20,5" FontSize="25">0.1</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="0" Margin="20,5,20,5" FontSize="25">1.0</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="1" Margin="20,5,20,5" FontSize="25">1.1</TextBlock>
<TextBlock Grid.Column="2" Grid.Row="0" Margin="20,5,20,5" FontSize="25">2.0</TextBlock>
<TextBlock Grid.Column="2" Grid.Row="1" Margin="20,5,20,5" FontSize="25">2.1</TextBlock>
<TextBlock Grid.Column="3" Grid.Row="0" Margin="20,5,20,5" FontSize="25">3.0</TextBlock>
<TextBlock Grid.Column="3" Grid.Row="1" Margin="20,5,20,5" FontSize="25">3.1</TextBlock>
</Grid>
</Window>
```

Now user start decreasing window width.
I would like first "hide" column number 3 then 2 then 1 and as last column number 0.



I thinking about use converter on columns width and bind width of window.
In converter I can calculate column width.
I don’t that this is suitable way. Have you any idea? Thank
| Decrease width of grid column when is decreasing window width | CC BY-SA 2.5 | null | 2011-01-23T19:19:33.207 | 2011-01-24T21:44:01.283 | 2011-01-23T21:43:11.710 | null | null | [
"wpf",
"grid"
]
|
4,776,086 | 1 | 4,776,120 | null | 0 | 172 | I with could re-write the question better, but can someone tell me where I can learn what is happening in this piece of azure code?

| How do I learn this "any ... func" code? | CC BY-SA 2.5 | null | 2011-01-23T19:54:26.183 | 2011-01-23T19:59:29.203 | null | null | 420,003 | [
"c#",
"c#-4.0",
"extension-methods",
"func",
"any"
]
|
4,776,330 | 1 | null | null | 1 | 396 | Has anyone created a web calendar with similar features to Outlook or iCal for Mac?
Enclosed is a mockup of the ideal calendar with Day, Week and Month.
Many thanks!

| Reskin or develop an outlook lookalike calendar as a web version | CC BY-SA 2.5 | null | 2011-01-23T20:35:15.840 | 2011-01-25T20:13:48.233 | 2011-01-25T16:45:45.973 | 405,015 | 467,936 | [
"javascript",
"jquery",
"html",
"layout",
"calendar"
]
|
4,776,263 | 1 | 4,776,349 | null | 1 | 14,174 | Why does this VBA code not work?:
```
Sub AllToGeorgia12()
Selection.Font.Size = 12
Selection.WholeStory
Selection.Font.Name = "Georgia"
End Sub
```
This code is meant to turn all the text into Georgia font of size 12
---
:
(This edit is my answer to supporters and ):
I am sorry: I didn't notice right away that the code with the first two lines swapped (just as you have suggested) works fine on its own. However, it doesn't change the font and size when I attach it to another piece of code:
```
Sub code()
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "jio"
.Replacement.Text = ChrW(1105)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "zh"
.Replacement.Text = ChrW(1078)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ja"
.Replacement.Text = ChrW(1103)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ju"
.Replacement.Text = ChrW(1102)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "aj"
.Replacement.Text = ChrW(1072) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ej"
.Replacement.Text = ChrW(1077) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ij"
.Replacement.Text = ChrW(1080) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "oj"
.Replacement.Text = ChrW(1086) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "uj"
.Replacement.Text = ChrW(1091) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ey"
.Replacement.Text = ChrW(1101)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "yj"
.Replacement.Text = ChrW(1099) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ju"
.Replacement.Text = ChrW(1102)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ja"
.Replacement.Text = ChrW(1103)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ChrW(1105) & "j"
.Replacement.Text = ChrW(1105) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ChrW(1101) & "j"
.Replacement.Text = ChrW(1101) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ChrW(1102) & "j"
.Replacement.Text = ChrW(1102) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ChrW(1103) & "j"
.Replacement.Text = ChrW(1103) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "jj"
.Replacement.Text = ChrW(1098)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "q"
.Replacement.Text = ChrW(1098)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " j"
.Replacement.Text = " " & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "j"
.Replacement.Text = ChrW(1100)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "b"
.Replacement.Text = ChrW(1073)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "v"
.Replacement.Text = ChrW(1074)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "g"
.Replacement.Text = ChrW(1075)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "d"
.Replacement.Text = ChrW(1076)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "z"
.Replacement.Text = ChrW(1079)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "k"
.Replacement.Text = ChrW(1082)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "l"
.Replacement.Text = ChrW(1083)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "m"
.Replacement.Text = ChrW(1084)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "n"
.Replacement.Text = ChrW(1085)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "p"
.Replacement.Text = ChrW(1087)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "r"
.Replacement.Text = ChrW(1088)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "t"
.Replacement.Text = ChrW(1090)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "f"
.Replacement.Text = ChrW(1092)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "x"
.Replacement.Text = ChrW(1093)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "ch"
.Replacement.Text = ChrW(1095)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "sh"
.Replacement.Text = ChrW(1096)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "s"
.Replacement.Text = ChrW(1089)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "c"
.Replacement.Text = ChrW(1094)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "w"
.Replacement.Text = ChrW(1097)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "y"
.Replacement.Text = ChrW(1099)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "e"
.Replacement.Text = ChrW(1077)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "i"
.Replacement.Text = ChrW(1080)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "u"
.Replacement.Text = ChrW(1091)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ChrW(1054) & ChrW(1049)
.Replacement.Text = ChrW(1086) & ChrW(1081)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = " " & ChrW(1071)
.Replacement.Text = " " & ChrW(1103)
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
' AllToGeorgia12:
Selection.WholeStory
Selection.Font.Size = 12
Selection.Font.Name = "Georgia"
End Sub
```
The code above is changing Latin letters to Cyrillic. The font-and-size-changing code is attached at the very end of it, right before the last `End Sub` line
---
:
(This edit is my answer to )
Here is what I have before running the code:

And here is what I get as a result:

As you can probably see here, only the third letter of text, letter "o", has been converted into font "Georgian".
| MSWord: Change font and font-size | CC BY-SA 3.0 | 0 | 2011-01-23T20:22:11.627 | 2020-07-06T16:54:28.067 | 2020-07-06T16:54:28.067 | 100,297 | 206,857 | [
"vba",
"fonts",
"ms-word",
"font-size"
]
|
4,776,646 | 1 | 4,778,343 | null | 1 | 256 | I cannot decide, how to define a graph in C++.
Right now, i have 2-dimensional array:
```
A - B,D
B - A
C - D
D - A,C
```

But my troubles comes when i want to switch some "members" of the graph (e.g. D and A). I know i need something like this (which i can manually recognize from the graph):
```
A - C,D
B - D
C - A
D - A,B
```

But i actually don't know, how to write the algorithm, which will be able to change order of the 2-D array as it's not so simple as reordering 1D array.
| Graph theory - switching tree members | CC BY-SA 2.5 | 0 | 2011-01-23T21:29:59.683 | 2011-01-24T11:05:57.277 | 2011-01-23T21:43:25.293 | 335,717 | 335,717 | [
"c++",
"arrays",
"graph-theory"
]
|
4,776,829 | 1 | null | null | 7 | 18,389 | I am attempting a design that would float a series of divs, all the same class, to the left. I want the divs to fit into rows, where in each row the divs are the same height so that there is no breakage between the rows and the design elements line up. Is there a way to make this happen, or do I essentially have to preset each div's height?
I'm floating to the left because I want the rows to be shorter if the browsers width is skinnier.
I think that's confusing. Attached is an image of what I'm trying to do.

| Floating divs left, make all divs height equal the tallest div in it's row? | CC BY-SA 2.5 | 0 | 2011-01-23T21:58:00.400 | 2016-05-25T03:04:05.287 | null | null | 285,147 | [
"html",
"css"
]
|
4,777,203 | 1 | 4,777,987 | null | 3 | 3,389 | I'm pasting an image from the game im building.
the matrix of empty cells you see are made of PictureBox[][].
I wan't whenever I drop a coin to one of the columns... I want it to go down but the purple stuff will hide the falling coin and the gray color you see wont hide it.
How do I make this effect?
please notice that in each PictureBox control I have set the BG Image as you can see

| Animation Effects in WinForms/C# | CC BY-SA 2.5 | 0 | 2011-01-23T23:11:04.113 | 2011-03-26T00:22:27.230 | null | null | 585,639 | [
"c#",
"winforms"
]
|
4,777,243 | 1 | 4,789,678 | null | 2 | 1,660 | I want to load a number of images from harddrive and place them on a larger white background. And I want to do it in Python. I am wondering what is the best way of doing that. I am using a windows machine and I can use any library I want. Any pointer to a webpage or a sample code that can point me to a good direction would be appreciated.
Something like this:

| Adding multiple images to one canvas in Python | CC BY-SA 2.5 | 0 | 2011-01-23T23:19:33.387 | 2013-08-11T16:04:42.067 | 2013-08-01T15:38:43.563 | 2,550,395 | 55,362 | [
"python",
"image"
]
|
4,777,540 | 1 | 4,777,590 | null | 3 | 717 | 
| How to make this kind of text UI? | CC BY-SA 2.5 | 0 | 2011-01-24T00:27:12.960 | 2011-03-19T12:40:39.120 | null | null | 170,931 | [
"user-interface",
"text"
]
|
4,777,677 | 1 | 4,778,495 | null | 15 | 4,865 | Well after much work regarding vehicle plate detection, I've decided that simply finding a 'pattern' of yellow pixels within an image would be a sufficient method of finding the location of a license plate within an image. Currently I use various graphic filters and detect white pixel patterns, however this is proving to be more and more problematic.
Now for the question, I'm aware that the 'yellow' are a license plate is based on numerous factors such as brightness, environment.


Insight of this I would need a range to compare to, for example:
if(FindIfYellow(GetPixel(x, y)))
However I don't know if to use RGB values, specifically individual RGB values to determine if the color is a shade of yellow. Finally is there a website or information of some sort defining these ranges? I know
R: 255
G: 255
B: 0
Is the purest of yellow, but in terms of range I have no idea. Anyway hopefully it's a resonable idea, and the reason I post is to ensure I haven't overlook something, as I have been doing frequently :).
| License Plate Recognition - Determining Color Range For Pixel Comparison | CC BY-SA 2.5 | 0 | 2011-01-24T00:58:34.617 | 2014-01-16T16:53:08.950 | 2011-12-02T05:57:23.517 | 15,290 | 408,757 | [
"c#",
"image",
"image-processing",
"colors",
"automatic-license-plate-recognition"
]
|
4,777,727 | 1 | 4,777,763 | null | 0 | 1,252 | I've a big problem with the iPhone application that I'm developing.
When you run the application you see a image-stream from different users.
Actually, when you start my app or you click the refresh button you see a modal round rectangle with "Refreshing..", when finish the refreshing, you can see all images. But this takes too times, specially for slow connections.
Now checkout this screenshot from different apps:
 

The applications are Nuji, Picplz and Instagram.
When you run these application you see instantaneously the stream and when you scroll down and the other images get focus, the image start loading and you see an Activity Indicator.
I want something like this, I want an activity indicator while images loading and maybe, for increase application speed, start loading images on focus and stop loading the others.
I hope I explain myself well.
Please if you can help me.
Thank you very much and sorry for my english.
Bye.
| Activity indicator while loading images [iphone] | CC BY-SA 2.5 | 0 | 2011-01-24T01:11:05.507 | 2011-01-26T04:42:06.513 | null | null | 545,004 | [
"iphone",
"image",
"uiactivityindicatorview"
]
|
4,777,824 | 1 | 4,777,853 | null | 2 | 2,237 | I am using Google Maps in a lazy fashion (not using their API).
```
<iframe height="250" frameborder="0" scrolling="no" width="335" src="http://maps.google.com.au/maps?f=q&hl=en&geocode=&q=23+Project+Avenue, Noosaville, 4566, Queensland, Australia&output=embed" marginwidth="0" marginheight="0"></iframe>
```
Here, I just echo the `urlencode()` of the address and let Google Maps figure it all out.

[Example.](http://jsfiddle.net/STTzp/)
I was wondering if there was any GET param I can use to stop the automatic bubble from appearing?
Thanks.
| Can I hide the bubble when showing a Google map lazily using an iframe? | CC BY-SA 2.5 | null | 2011-01-24T01:32:22.830 | 2011-01-24T01:44:37.387 | null | null | 31,671 | [
"google-maps"
]
|
4,777,916 | 1 | 4,777,943 | null | 3 | 7,812 | I was wondering, what is the best way (using html, css, and graphics) to create a web page whose top header section appears to be beveled, as opposed to straight across? Please see the below image as an example:

I'm not sure how to use images in a way such that they would expand/contract in accordance with different browser sizes/resolutions...
Can anyone offer me some help? Or perhaps point me to a resource?
Thanks!
| Help creating HTML page with curved header section | CC BY-SA 2.5 | null | 2011-01-24T01:54:42.770 | 2016-12-27T12:58:01.543 | 2014-11-09T21:26:15.777 | 1,811,992 | 123,891 | [
"html",
"css",
"graphics",
"css-shapes"
]
|
4,778,271 | 1 | 4,778,300 | null | 6 | 917 | I've got the following Problem (or maybe just a thinking barrier):
I've got a table (actually a view from a table) with the following columns and data:

Now i want to Group this data by the column "Customer" and get the "CompetitorName" with the highest "CompetitorCount".
Of course i can create a query like this:
`SELECT Customer, MAX(CompetitorCount) FROM MyTable GROUP BY Customer`
This will return two rows:
```
Foo; 12
Bar; 7
```
But i wont be able to get the CompetitorName that way. If I include it into the group by section, the "Customer" will show up multiple times. Otherwise I have to use an aggregate function to select which "CompetitorName" I want to use, but of course MAX doesnt work.
I'm sure this can be done somehow, but at the moment i've got no idea how.
Thanks in advance for any help.
| T-SQL Group By Problem | CC BY-SA 2.5 | 0 | 2011-01-24T03:14:06.250 | 2011-01-24T03:34:25.117 | 2011-01-24T03:31:59.567 | 573,261 | 213,341 | [
"sql",
"sql-server",
"tsql",
"group-by",
"aggregate-functions"
]
|
4,778,836 | 1 | 4,779,496 | null | 0 | 8,395 | Am tyring to pass a parameter in a local report using a ReportViewer control in VS2010. The user clicks on a merchant, and there is a button press (not shown) which then renders the report.
I've tried using this video : [How-to Pass Parameter to Report Viewer - YouTube](http://www.youtube.com/watch_popup?v=sXJmRHgSAS8&vq=medium)
Code doesn't work - near xxxx at the bottom I can't figure out what should be in there
I would love to get rid of this code and use linqtosql or something simpler.

```
protected void Page_Load(object sender, EventArgs e)
{
DataSet1TableAdapters.MerchantNamesTableAdapter merchantNamesTableAdapter = new DataSet1TableAdapters.MerchantNamesTableAdapter();
ddlMerchants.DataSource = merchantNamesTableAdapter.GetDataAllMerchants();
ddlMerchants.DataTextField = "Name";
ddlMerchants.DataValueField = "MerchantUID";
ddlMerchants.DataBind();
ReportViewer1.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
ReportViewer1.Visible = true;
var newDataSet = new DataSet();
SqlConnection sqlConnection = new SqlConnection("Data Source=.;Initial Catalog=myDataBase;Integrated Security=True");
SqlDataAdapter sqlDataAdapter = new SqlDataAdapter();
SqlCommand sqlCommand = new SqlCommand();
sqlCommand.Connection = sqlConnection;
sqlCommand.CommandType = CommandType.Text;
sqlCommand.CommandText = "select * from merchant where merchantUID = @MerchantUID";
sqlCommand.Parameters.AddWithValue("@MerchantUID", ddlMerchants.SelectedValue);
sqlDataAdapter.SelectCommand = sqlCommand;
sqlDataAdapter.Fill(newDataSet);
ReportDataSource datasource = new ReportDataSource(xxxx, newDataSet.Tables(0));
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(datasource);
ReportViewer1.LocalReport.Refresh();
}
```
| Passing a Parameter - ReportViewer local mode | CC BY-SA 3.0 | null | 2011-01-24T05:04:36.893 | 2013-07-22T18:50:05.190 | 2013-07-22T18:50:05.190 | 1,275,574 | 26,086 | [
"c#",
"sql",
"reporting-services",
"reportviewer"
]
|
4,778,885 | 1 | 4,779,049 | null | 3 | 1,119 | I have a pick list to select a day and a text field to show the selected date. It will be like this...

If i choose any date, it will be like this....

The cross symbol in text field is acheived by the code....
```
textField.clearButtonMode=UITextFieldViewModeAlways;
```
Now my problem is, while clicking on this cross button, a keyboard was displayed. This is like....

But i want the cross button only for erase the text field. The keyboard should not come. Is it possible?
| How to resign or hide the keyboard? | CC BY-SA 4.0 | 0 | 2011-01-24T05:15:53.453 | 2020-07-09T10:18:07.017 | 2020-07-09T10:18:07.017 | 8,422,953 | null | [
"iphone",
"uitextfield",
"uikeyboard",
"uipicker"
]
|
4,779,190 | 1 | null | null | 1 | 532 | I am having a problem with tkinter.ttk on mac. I am using macports and python3.1. When I try to use tkinter.ttk I get very old looking gui elements.
eg: I get this

Instead of this:

The code I used is:
```
from tkinter import *
from tkinter import ttk
root = Tk()
button = ttk.Button(root, text="Hello World").grid()
root.mainloop()
```
I would be happy to provide any information from my computer needed to answer this question. As I am a novice programer please tell me where to find said information.
> After a bit of digging I found this:
Python 3.1.2 (r312:79147, Jan 16 2011, 08:02:01) [GCC 4.2.1 (Apple
Inc. build 5664)] on darwin Type
"help", "copyright", "credits" or
"license" for more information.```
->>> import tkinter.test.test_ttk.test_style
```
Traceback (most recent call last):
File "", line 1, in
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/tkinter/test/test_ttk/test_style.py",
line 8, in
requires('gui') File "/opt/local/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/test/support.py",
line 215, in requires
raise ResourceDenied(msg) test.support.ResourceDenied: Use of
the `gui' resource not enabled ->>> The error I have has something to do with the fact that "Use of the`gui' resource is not
enabled".
I have a Macbook 5,2 with Snow Leopard installed. Any help would be appreciated.
Thanks, Marlen
| How to enable the use of the gui resources on mac | CC BY-SA 2.5 | null | 2011-01-24T06:19:51.893 | 2011-01-30T20:03:09.250 | 2011-01-30T20:03:09.250 | 488,331 | 488,331 | [
"user-interface",
"python-3.x",
"tkinter",
"macports",
"ttk"
]
|
4,779,392 | 1 | 4,781,396 | null | 1 | 271 | I have 3 objects, each one is an instance of 3 other classes which inherits or extends the same super class. All 3 objects have same functions() like say ViewA, ViewB, ViewC, ViewD.
My question is . Should it be like in image given below, where each function is a submenu of the main object menu.

Should I use Menu as shown in below image where each function is a main menu. For Example when user opens ViewA he can Filter the displayed items according to Obj1, Obj2, Obj3 or Obj1 and obj2 combined. In below menu Obj1Menu, Obj2menu,Obj3Menu are used just to manage objects.

Let me know if you didn't understand my question.
| UI: Which one is better Menu hierarchy for better Usability | CC BY-SA 3.0 | null | 2011-01-24T06:50:48.433 | 2017-05-27T14:29:40.157 | 2017-05-27T14:29:40.157 | 2,125,837 | 517,525 | [
"user-interface",
"web-applications",
"usability"
]
|
4,779,603 | 1 | 4,779,872 | null | 5 | 2,434 | I've created some avatars from vector artwork and saved them as transparent PNGs. If I place the PNGs in interface builder, the quality is perfect. When I place them using code, the edges are horribly jagged, as if the AA has been removed, yet it's the same image. Is there any way to place them with code and maintain nice smooth edges?
I've attached a screenshot below with the iphone ver on the right.

Thanks,
Chris
| PNG quality looks horrible on iPhone | CC BY-SA 2.5 | 0 | 2011-01-24T07:28:43.797 | 2011-01-24T08:12:14.090 | null | null | 393,880 | [
"iphone",
"xcode",
"image",
"png"
]
|
4,780,110 | 1 | null | null | 5 | 4,361 | I have a series of graph coordinates and I need to find the shortest one-way path through them all. I have no predetermined start/end but each point must only be touched once and returning to the optimal origin is NOT required.
I've tried a couple TSP approaches, but they all seem to be based on returning to the origin at the end which gives terribly inefficient results in this case.
Example
1, 13
3, 0
3, 7
2, 21
2, 11
3, 12
1, 19
3, 6
would resolve to
3, 0
3, 6
3, 7
3, 12
2, 11
1, 13
1, 19
2, 21
Notes:
Yes I tried the search function, there is a basically identical question
[Algorithm: shortest path between all points](https://stackoverflow.com/questions/2501732/algorithm-shortest-path-between-all-points)
however the only real answer is a TSP, which once again, closed circuit is inefficient for this.
It does not need to be 100% accurate, I already have a permutations method but its far too slow, I need to handle at least ~25-30 points, settling with a good approximation works for me
Thanks in advance.
Edit to clarify, TSP tends to solve as in img #1, my desired result is img #2
img 3 is the above sample solved via a TSP and img #4 is the desired (x coords shifted back -.5 for visibility)




Couple more for good measure #1 = TSP, #2 = desired


Basically i want the shortest chain connecting n points, using whichever start and end point is most efficient
| Shortest One-Way Path Through Multiple Nodes | CC BY-SA 2.5 | 0 | 2011-01-24T08:50:38.943 | 2011-01-24T10:53:57.900 | 2017-05-23T11:48:25.477 | -1 | 587,231 | [
"php",
"algorithm",
"shortest-path"
]
|
4,780,641 | 1 | 4,785,004 | null | 0 | 1,628 | I always set my drivers Imagepath directly.(C:\Windows\System32\drivers\abc.sys)
But I just knew many device drivers set their ImagePath to

This is Lanmanworkstation driver's registry hive.
I guess Lanmanworkstation driver's image file is mrxsmb.sys
But they didn't put 'System32\drivers\mrxsmb.sys'. Why.
What does mean?
Even though there is no certain path, StartService function works well.
How does Service Manager(? i'm not sure) find the driver's image path?
Is there an advantage using this?
What if I decide to use this way, are there my driver codes should modify?
| Device Driver's ImagePath | CC BY-SA 2.5 | null | 2011-01-24T09:54:49.587 | 2011-01-25T00:49:17.143 | 2011-01-25T00:21:03.550 | 761,503 | 252,047 | [
"windows",
"windows-services",
"device-driver",
"smb"
]
|
4,780,745 | 1 | 4,780,818 | null | 0 | 50 | I am developing the small question-answer application in asp.net mvc 2 with c#. my scenario is this :

in my action I am having chapterId as a parameter, this field is exist in the Question Table. I want to get the all test masters objects of chapterId. one chapter can have multiple tests. where as in test mater details I am keeping the question id of that particular chapter.
how to get List here ? bu LINQ - to- sql query?
| how to build query for this scenario in Linq | CC BY-SA 2.5 | 0 | 2011-01-24T10:05:12.307 | 2011-01-24T10:34:04.633 | 2011-01-24T10:08:01.853 | 255,756 | 165,309 | [
"linq-to-sql"
]
|
4,780,896 | 1 | 7,250,036 | null | 12 | 37,181 | We're finding the the iPad is displaying thin grey/black lines on our site. It seems to be some form of scaling-artefact on mobile Safari. I've provided two snippets of pages below, with the contrast tweaked to highlight the issue, unfortunately because the iPad display is quite good, these lines are quite noticeable.
They seem to come and go as the page is zoomed, and look like divs/images are being scaled with rounding issues at the edges, causing the edge pixel to be blended with black.
Has anyone found a workaround or fix for this?
Thanks


| Thin gray/black lines on web page viewed with iPad | CC BY-SA 2.5 | 0 | 2011-01-24T10:23:01.640 | 2022-07-13T20:18:18.000 | null | null | 56,219 | [
"html",
"css",
"ipad",
"mobile-safari"
]
|
4,780,914 | 1 | 4,782,643 | null | 0 | 199 | I'am trying to write a grid Class:

take first cell for example, It's class attribute will be "cell r1 c1",r1 means first row and c1 means first column, then I use such code to control a whole row:
```
gridContainer.getElements('.r1').addClass('selected');
```
so my question is :
| mootools: how about performance when walking DOM by using css class | CC BY-SA 2.5 | null | 2011-01-24T10:25:17.627 | 2011-01-24T13:46:31.580 | null | null | 570,813 | [
"mootools"
]
|
4,781,097 | 1 | 4,789,312 | null | 2 | 899 | I want to have a custom design for my categories like we can see in the picture :
- a banner in one column in the top, and under it (2 columns): the right column and the products in center.

How can I do that ? And how to remove the category name ?
Thanks a lot.
| Magento - custom category design | CC BY-SA 2.5 | null | 2011-01-24T10:49:52.023 | 2011-01-25T02:05:44.227 | 2011-01-24T11:07:33.440 | 21,234 | 536,116 | [
"magento",
"magento-1.4"
]
|
4,781,087 | 1 | 4,782,772 | null | 3 | 2,333 | I have made my first android app. It works fine locally. But when I upload it to the market, somehow people have problems with it. I cannot figure out what went wrong. Even when I have the stack trace:
```
java.lang.RuntimeException: Unable to instantiate application com.jphellemons.koopzondag.Koopzondag: java.lang.ClassNotFoundException: com.jphellemons.koopzondag.Koopzondag in loader dalvik.system.PathClassLoader[/data/app/com.jphellemons.koopzondag-2.apk]
at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:715)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4615)
at android.app.ActivityThread.access$3000(ActivityThread.java:136)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2223)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:5068)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.jphellemons.koopzondag.Koopzondag in loader dalvik.system.PathClassLoader[/data/app/com.jphellemons.koopzondag-2.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.Instrumentation.newApplication(Instrumentation.java:945)
at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:706)
```
Please let me know if i have to show the manifest and/or source code? I really have no idea
I will update this thread if I have the answer!
I have read about this issue here: [java.lang.ClassNotFoundException on working app](https://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app/3781299#3781299)
So I guess that my fault is a setting in this window: can someone help me out with that?

Edit: I changed the first class from helloandroid.java to koopzondag.java and now i have the classcastexception. so I renamed the complete project. but now it can't launch the resource?
: Looks like this is the issue: but how do I resolve it? [http://androidforums.com/application-development/216707-classcastexception-starting-activity.html#post1905263](http://androidforums.com/application-development/216707-classcastexception-starting-activity.html#post1905263)
| Trouble debugging Android application: ClassNotFoundException | CC BY-SA 2.5 | null | 2011-01-24T10:48:50.250 | 2011-01-26T08:27:58.270 | 2017-05-23T10:30:23.117 | -1 | 169,714 | [
"java",
"android",
"debugging"
]
|
4,781,077 | 1 | null | null | 604 | 480,794 | There is enough information about HTML5 on the web (and also on stackoverflow), but now I'm curious about the "best practices". Tags like section/headers/article are new, and everyone has different opinions about when/where you should use these tags. So what do you guys think of the following layout and code?

```
1 <!doctype html>
2 <head>
3 <title>Website</title>
4 </head>
5
6 <body>
7 <section>
8 <header>
9 <div id="logo"></div>
10 <div id="language"></div>
11 </header>
12
13 <nav>
14 <ul>
15 <li>menu 1</li>
16 <li>menu 2</li>
17 <li>menu 3</li>
18 <li>menu 4</li>
19 <li>menu 5</li>
20 </ul>
21 </nav>
22
23 <div id="main">
24 <div id="main-left">
25 <article>
26 <header><h1>This is a title</h1></header>
27
28 <p>Lorem ipsum dolor sit amet, consectetur
29 adipiscing elit. Quisque semper, leo eget</p>
30
31 <p>Lorem ipsum dolor sit amet, consectetur
32 adipiscing elit. Quisque semper, leo eget</p>
33
34 <p>Lorem ipsum dolor sit amet, consectetur
35 adipiscing elit. Quisque semper, leo eget</p>
36
37 <p>Lorem ipsum dolor sit amet, consectetur
38 adipiscing elit. Quisque semper, leo eget</p>
39 </article>
40 </div>
41
42 <div id="main-right">
43 <section id="main-right-hot">
44 <h2>Hot items</h2>
45 <ul>
46 <li>Lorem ipsum</li>
47 <li>dolor sit</li>
48 <li>...</li>
49 </ul>
50 </section>
51
52 <section id="main-right-new">
53 <h2>New items</h2>
54 <ul>
55 <li>Lorem ipsum</li>
56 <li>dolor sit</li>
57 <li>...</li>
58 </ul>
59 </section>
60 </div>
61 </div>
62
63 <div id="news-items">
64 <header><h2>The latest news</h2></header>
65
66 <div id="item_1">
67 <article>
68 <header>
69 <img src="#" title="titel artikel" />
70 <h3>Lorem ipsum .....</h3>
71 </header>
72 <p>Lorem ipsum dolor sit amet,
73 adipiscing elit. Quisque semper, </p>
74 <a href="#">Read more</a>
75 </article>
76 </div>
77
78
79 <div id="item_2">
80 <article>
81 <header>
82 <img src="#" title="titel artikel" />
83 <h3>Lorem ipsum .....</h3>
84 </header>
85 <p>Lorem ipsum dolor sit amet,
86 adipiscing elit. Quisque semper, </p>
87 <a href="#">Read more</a>
88 </article>
89 </div>
90
91
92 <div id="item_3">
93 <article>
94 <header>
95 <img src="#" title="titel artikel" />
96 <h3>Lorem ipsum .....</h3>
97 </header>
98 <p>Lorem ipsum dolor sit amet,
99 adipiscing elit. Quisque semper, </p>
100 <a href="#">Read more</a>
101 </article>
102 </div>
103 </div>
104
105 <footer>
106 <ul>
107 <li>menu 1</li>
108 <li>menu 2</li>
109 <li>menu 3</li>
110 <li>menu 4</li>
111 <li>menu 5</li>
112 </ul>
113 </footer>
114 </section>
115 </body>
116 </html>
```
line 7. `section` around the whole website? Or only a `div`?
line 8. Each `section` start with a `header`?
line 23. Is this `div` right? or must this be a `section`?
line 24. Split left/right column with a `div`.
line 25. Right place for the `article` tag?
line 26. Is it required to put your `h1`-tag in the `header`-tag?
line 43. The content is not related to the main article, so I decided this is a `section` and not a `aside`.
line 44. H2 without `header`
line 53. `section` without `header`
line 63. Div with all (non-related) news items
line 64. `header` with h2
line 65. Hmm, `div` or `section`? Or remove this `div` and only use the `article`-tag
line 105. Footer :-)
| HTML5 best practices; section/header/aside/article elements | CC BY-SA 3.0 | 0 | 2011-01-24T10:48:00.580 | 2022-03-09T23:18:44.033 | 2017-01-25T00:16:24.490 | 825,924 | 263,621 | [
"html",
"header",
"article"
]
|
4,781,144 | 1 | 4,816,430 | null | 2 | 1,200 | i used all the examples and source code out there for displaying application content to external VGA display. while playing video in inside of the application am getting bellow thing in external device. any suggestion.... am i missing somthing.. but in device it showing actual window in fine way..

| iphone, ipad VGA External Display - tvOutManager | CC BY-SA 2.5 | null | 2011-01-24T10:55:22.683 | 2011-11-09T09:03:41.013 | 2011-01-24T11:01:01.977 | 474,442 | 474,442 | [
"iphone",
"objective-c",
"ipad",
"vga",
"television"
]
|
4,781,243 | 1 | 7,343,577 | null | 4 | 795 | Sometimes when I use a textbox it is not possible to scroll all the way down to see the last words.
I've included an example with three textboxes with identical content, but different widths. The one to the left does not show all words.
Move to the end of a textbox by selecting it and then press 'ctrl'+'end'. When I do this for the textbox to the left ('_tb1'), I cannot see the cursor and I cannot see the last words. It seems as the cursor and words are 'below' the textbox. I can though mark and copy the text that is not shown. The last word should be "si+", see code below. I've verified that the 'Text' property of the textbox contains all text.
This has so far only happened when I use 'TextWrapping="Wrap"' and for certain widths.
Any suggestions on how to fix it?

```
<UserControl x:Class="Silverlight4TextBoxProblem.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid Width="500" Height="150">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox Name="_tb1" Grid.Column="0" TextWrapping="Wrap"
FontFamily="Arial" FontSize="12"
VerticalScrollBarVisibility="Visible"
Width="100"/>
<TextBox Name="_tb2" Grid.Column="1" TextWrapping="Wrap"
FontFamily="Arial" FontSize="12"
VerticalScrollBarVisibility="Visible"
Width="75"/>
<TextBox Name="_tb3" Grid.Column="2" TextWrapping="Wrap"
FontFamily="Arial" FontSize="12"
VerticalScrollBarVisibility="Visible"
Width="150"/>
<Button Grid.Column="3" Click="ButtonClick" Content="Assert _tb1"/>
</Grid>
</UserControl>
```
Code-behind
```
public partial class MainPage : UserControl
{
private readonly string ErrorText = @"Lorem ipsum dolor sit amet+++," + Environment.NewLine
+ "consectetur adipisicing elit, sed do eiusmod" + Environment.NewLine
+ "tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam," + Environment.NewLine
+ "quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo" + Environment.NewLine
+ "consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse" + Environment.NewLine
+ "cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non" + Environment.NewLine
+ "proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem" + Environment.NewLine
+ "ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor" + Environment.NewLine
+ "incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis" + Environment.NewLine
+ "nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." + Environment.NewLine
+ "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu" + Environment.NewLine
+ "fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in" + Environment.NewLine
+ "culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit" + Environment.NewLine
+ "amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore" + Environment.NewLine
+ "et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation" + Environment.NewLine
+ "ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor" + Environment.NewLine
+ "in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla" + Environment.NewLine
+ "pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui" + Environment.NewLine
+ "officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet," + Environment.NewLine
+ "consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et" + Environment.NewLine
+ "dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco" + Environment.NewLine
+ "laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in" + Environment.NewLine
+ "reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." + Environment.NewLine
+ "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia" + Environment.NewLine
+ "deserunt mollit anim id est laborum. Lorem ipsum dolor si+";
public MainPage()
{
InitializeComponent();
_tb1.Text = ErrorText;
_tb2.Text = ErrorText;
_tb3.Text = ErrorText;
}
private void ButtonClick(object sender, RoutedEventArgs e)
{
MessageBox.Show(_tb1.Text.Last().ToString());
}
}
```
| Silverlight 4 textbox does not show all content | CC BY-SA 2.5 | null | 2011-01-24T11:06:46.753 | 2011-09-08T06:35:32.840 | 2011-01-24T12:36:33.247 | 584,680 | 584,680 | [
"silverlight",
"silverlight-4.0",
"textbox"
]
|
4,781,524 | 1 | 4,849,843 | null | 2 | 489 | I have installed and configured MS WebDeploy 2.0 on a (test) server so that WebMatrix and Visual Studio 2010 users can use this to upload their applications to our Windows 2008R2 environments.
This works well with WebMatrix but I encountered a problem deploying an application from Visual Studio 2010. If I click publish and use the WebDeploy method, Visual Studio reports an error and nothing gets published:

So I turned on Failed Request Tracing for the Web Management Service and I see this:

> 53 AspNetModuleDiagErrorEvent Uri /MsDeploy.axd eventData Tracing
deployment agent exception. Request ID
''. Request Timestamp: '01/22/2011
00:18:54'. Error Details:
System.UnauthorizedAccessException:
Access to the path 'd:\' is denied.
at System.IO.__Error.WinIOError(Int32
errorCode, String maybeFullPath) at
System.IO.DriveInfo.get_DriveFormat()
To facilitate use of the WebDeploy feature the site's delegated management user is granted Full Control of a site's web folders. This is covered in this article:
> [Configure the Web Deploy Component on the Web Server](http://learn.iis.net/page.aspx/984/configure-web-deploy/)
No other permissions are mentioned. Given the nature of the error I tried giving the site's delegated management user `Read Attribute` permission on `D:\` and limited it to `This Folder Only` and immediately Visual Studio 2010 is able to publish the application using WebDeploy.
Do I really need to assign read permissions to the root of the drive where a website is hosted to get Web Deploy 2.0 to work with Visual Studio 2010?
| WebDeploy 2.0 component on IIS7 - drive root permissions | CC BY-SA 2.5 | null | 2011-01-24T11:39:08.410 | 2011-01-31T10:49:52.443 | null | null | 419 | [
"asp.net",
"visual-studio-2010",
"iis-7",
"msdeploy"
]
|
4,781,659 | 1 | null | null | 2 | 796 | Ok I can't find a sample anywhere.
I've done the notepad tutorial on Google's Android site, but I would like to know how to add more fields to the list, in columns. At the moment I can add the columns no problem, but they're not aligned like you would a normal table on the layout:
```
john smith
heinrich cilliers
will peck
```
I would like the first names and last names aligned proportionately, as you would in an html table.
It works if I use a constant value for the layout_width parameter (100dip etc), but I would prefer to use a relative percentage. However it's becoming clear that each row is on it's own, and does not know how to alighn itself with the row above.
Any pointers?
UPDATE: I've reached an experienced Android developer which advised me to use WeightSum, which brings me closer, but vertical alignment is stil not happening:

| Android DB List Adapters: multiple columns, aligned? | CC BY-SA 2.5 | 0 | 2011-01-24T11:54:52.847 | 2012-01-28T10:33:51.663 | 2011-01-25T08:04:13.943 | 181,098 | 181,098 | [
"android"
]
|
4,781,812 | 1 | 8,134,519 | null | 2 | 2,153 | I have problem that how to change text inside the progressdialog (basically having STYLE_HORIZONTAL as in figure) (Using Android 1.6)

to text shown in figure.

Please help out in this case.
My code about the progressdialog refers like this:-
```
mProgressDialog = new ProgressDialog(PDFActivity.this);
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
mProgressDialog.setTitle(R.string.msgDownloadingWait);
mProgressDialog.setMessage(getResources().getString(
R.string.msgDownloading));
// User is not allowed to cancel the download operation.
mProgressDialog.setCancelable(false);
mProgressDialog.setMax(serverFileCount);
mProgressDialog.show();
```
Thanks in advance.
| Changing Text Alignment in ProgressDialog | CC BY-SA 2.5 | null | 2011-01-24T12:13:20.697 | 2011-11-15T10:02:09.683 | 2011-01-24T12:18:29.127 | 24,054 | 536,148 | [
"android",
"progressdialog",
"text-alignment"
]
|
4,782,069 | 1 | 4,782,111 | null | 2 | 8,594 | I am trying to apply rounded corners to a Stackpanel that is located inside a grid cell. I'm using a tag with CornerRadius. Instead of having the border surround the stackpanel, it instead stretches to surround the parent grid cell. Like this:

I use the following XAML:
```
<Border Grid.Row="0" Grid.Column="1" BorderBrush="#FF252A30" CornerRadius="5,5,5,5" BorderThickness="2,2,2,2">
<StackPanel Grid.Row="0" Grid.Column="1" x:Name="stackpanelContactlist" Height="336" Margin="0,113,43,113" Background="#FF252A30" d:LayoutOverrides="Width">
Content of Stackpanel
</StackPanel></Border></Grid>
```
I'm quite new to WPF, so I'm betting it's something simple - Anyone have any suggestions on how to fix this, so the rounded borded gets applied to the child stackpanel instead of the parent grid cell?
Thanks on advance.
| Border on stackpanel inside grid cell | CC BY-SA 2.5 | null | 2011-01-24T12:41:16.267 | 2011-01-24T12:44:55.853 | null | null | 231,387 | [
"wpf",
"xaml",
"grid",
"stackpanel"
]
|
4,782,565 | 1 | 4,782,766 | null | 3 | 2,315 | Picture a core data model with images in it. These images are stored in an object called OImage. There are several other objects that 'contain' images, so they all have a one to many relationship with the OImage object. One example is the OLocation object from the image.

As you can see, OLocation has a one to many relationship with OImage. Because there is no need for it, there is no inverse relationship from the OImage pointing back to OLocation. All according to plan.
Yet when I build my project, XCode keeps warning me about the lack of the inverse relationship:
>
Is it illegal to create a one-to-many relationship without the inverse? Or is this warning something that I can somehow turn off?
Cheers, EP.
| XCode warns about missing Core Data relationship, but is it really bad? | CC BY-SA 2.5 | 0 | 2011-01-24T13:31:25.883 | 2011-01-24T13:52:30.040 | null | null | 432,782 | [
"objective-c",
"xcode",
"core-data",
"entity-relationship"
]
|
4,782,573 | 1 | 4,783,120 | null | 0 | 505 | I am writting an application that display a listView (with an image and some texts). I wrote my adapter, I recyle view and use a viewholder, all is working nice (but not very smoothly).
But by just having the listview displayed I can see in LogCat thousand and thousand of objects freed by the gc (~12000 every 3s )
It doesn't seems very normal too me.

Is there a way to know what is the class of the most gced object or some kind of logs (or stats) of the gc ? For me to understand why my application is spamming new objects that are immediately gced ?
| android garbage collector information | CC BY-SA 2.5 | 0 | 2011-01-24T13:32:23.467 | 2011-01-24T14:27:19.870 | null | null | 336,657 | [
"android",
"listview",
"garbage-collection"
]
|
4,782,925 | 1 | 4,784,832 | null | 14 | 15,121 | Guys, I need to put some buttons in a jscrollpanel, but the JScrollPane won't create a scroll vertically. I'm using a JPanel inside the JScrollPane which is using the simple FlowLayout layout. How can I make the JScrollPanel to scroll only in the vertical??
Problem:

Desired Solution:

| How do I force JScrollPane to only scroll vertical? | CC BY-SA 2.5 | 0 | 2011-01-24T14:10:28.253 | 2014-03-07T10:57:08.807 | 2011-01-24T14:26:09.853 | 513,838 | 196,886 | [
"java",
"swing",
"jscrollpane"
]
|
4,783,263 | 1 | 4,784,232 | null | 3 | 3,689 | The main idea is kind of like this I have a div with position relative and set width (40px) and an input with `width:100%`. The problem is that instead of 40px with on input its width is 100px.
As you can see in the last image the input appears to be unfinished.
I can't figure it why so here are some prints with the structure:



| Indpu with width:100% inside a div with position relative and width 40px has 100px | CC BY-SA 4.0 | null | 2011-01-24T14:38:39.037 | 2019-09-07T12:51:32.527 | 2019-09-07T12:51:32.527 | 10,607,772 | 569,872 | [
"css",
"ckeditor",
"width"
]
|
4,783,607 | 1 | 4,786,593 | null | 5 | 5,318 | I have successfully used the jQuery [:nth-child()](http://api.jquery.com/nth-child-selector/) selector to remove the right margin from every fourth element in a long list of div's. It looks like this:
```
$(".myDivClass:nth-child(4n+4)").css("margin-right", 0);
```
But the page is also open for user interaction (via jQuery) and one of the things that the user can do is hide/show elements. When an element is hidden, its style is set to "display:none". The elements are floated so if you remove one element in the middle of a row, an element from the row below will jump up, like this:

My first thought was to redo the whole thing by first adding a margin to all elements and then remove it from every fourth element; something like this:
```
$(".myDivClass").css("margin-right","20px");
$(".myDivClass:visible:nth-child(4n+4").css("margin-right", 0);
```
But the second row does nothing and I don't think you can stack pseudo selectors like in the example above(?)
Thanks in advance!
/Thomas
| Remove right margin on every fourth VISIBLE element using jQuery? | CC BY-SA 2.5 | 0 | 2011-01-24T15:16:00.290 | 2011-01-24T20:06:31.623 | null | null | 176,484 | [
"jquery",
"element",
"margins",
"css-selectors"
]
|
4,783,658 | 1 | 4,873,167 | null | 7 | 26,749 | I am experiencing an authorization error for an asmx web service that I developed. The web service itself does not require any user credentials, but it seems like the web service is configured to enforce that, although I tried to set the configuration such as to allow for anonymous access:
I have set the corresponding web site in IIS to allow for anonymous access:

Further I have included the following lines in the `web.config`:
```
<configuration>
...
<system.web>
...
<authorization>
<allow users="*"/>
</authorization>
...
</system.web>
...
</configuration>
```
When trying to call the web service from a test client, I get this error message:
> The HTTP request is unauthorized with
client authentication scheme
'Anonymous'. The authentication header
received from the server was 'NTLM'.
The line of code calling the web service looks like this:
```
string message = new ServiceReference1.Service1SoapClient().HelloWorld();
```
And the code of the web service:
```
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
```
Some important points:
- - - - -
---
I also tried and put the authorization tag within a location tag pointing to the web service:
```
<location path="Service1.asmx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
```
This is how the configuration (app.config) looks like (please note that as mentioned above, I can't even access the service using a web browser, so I dont' consider the client configuration relevant):
```
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Service1Soap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://name.of.the.server.example.org/Service1.asmx"
binding="basicHttpBinding" bindingConfiguration="Service1Soap"
contract="ServiceReference1.Service1Soap" name="Service1Soap" />
</client>
</system.serviceModel>
</configuration>
```
Any Ideas?
---
Update: I found the following file:
```
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\web.config
```
Does it have any relevance to a custom web application, and if yes, don't the settings of my own web.config override the settings of that file?
Contents of that file:
```
<configuration>
<system.web>
<membership>
<providers>
<add name="WebAdminMembershipProvider" type="System.Web.Administration.WebAdminMembershipProvider" />
</providers>
</membership>
<httpModules>
<add name="WebAdminModule" type="System.Web.Administration.WebAdminModule"/>
</httpModules>
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
<identity impersonate="true"/>
<trust level="Full"/>
<pages validateRequest="true"/>
<globalization uiCulture="auto:en-US" />
</system.web>
</configuration>
```
Though there is another file:
```
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\config\web.config
```
And I think that rather this one is the system-wide web.config file. This file in fact access to all users:
```
<system.web>
<authorization>
<allow users="*"/>
</authorization>
```
| ASMX web service to allow anonymous access | CC BY-SA 2.5 | 0 | 2011-01-24T15:21:37.003 | 2011-02-02T10:17:10.687 | 2011-01-28T12:54:14.623 | 55,787 | 55,787 | [
"asp.net",
"web-services",
"authentication",
"asmx"
]
|
4,783,703 | 1 | 4,786,141 | null | 1 | 2,430 | I was able to color specific rows of a ExtJS grid with the code below which I got from [this answer](https://stackoverflow.com/questions/4782276/how-to-change-the-text-color-of-only-one-row-in-an-extjs-grid/4782425#4782425):

However, in the actual application, the exact same code does not show the colors:

The difference is that in the second example, the code is being loaded via AJAX into a larger application, and so it is difficult to debug it with Firebug.
I'm sure execution gets inside the function since I can put an alert in there and see that it is executed but the `g.getView().getRow(2).style.color='red';` is not being executed for some reason (or is being reset for some reason).
The `myData` variable is the same in the second example as in the first (not being loaded from an external source), the applicatoin simply builds this javascript code with PHP.
```
var myData = [
['newfile.csv', 'CSV', 15313, '2011-01-24 09:49:55', 'newfile', '2011-01-24 14:40:21', 'auf letztem Stand'],
['test333.csv', 'CSV', 15313, '2011-01-24 09:49:56', 'test333', '2011-01-24 14:40:19', 'auf letztem Stand'],
['test.xls (sheet1)', 'XLS', 7168, '2011-01-24 09:49:56', 'test__sheet1', '2011-01-24 14:40:23', 'auf letztem Stand'],
['test.xls (sheet2)', 'XLS', 7168, '2011-01-24 09:49:56', 'test__sheet2', '2011-01-24 14:40:25', 'auf letztem Stand'],
['test.xls (Tabelle3)', 'XLS', 7168, '2011-01-24 09:49:56', 'test__Tabelle3', '2011-01-24 15:35:07', 'auf letztem Stand']
];
var myReader = new Ext.data.ArrayReader({}, [{
name: 'name',
type: 'string'
}, {
name: 'kind',
type: 'string'
}, {
name: 'file_size',
type: 'int'
}, {
name: 'when_file_copied',
dateFormat: 'Y-m-d H:i:s',
type: 'date'
}, {
name: 'table_name',
type: 'string'
}, {
name: 'when_table_created',
type: 'string'
}, {
name: 'status',
type: 'string'
}]);
var grid = new Ext.grid.GridPanel({
region: 'center',
style: 'margin: 10px',
store: new Ext.data.Store({
data: myData,
reader: myReader
}),
columns: [{
header: 'Worksheets zum importieren',
width: 300,
sortable: true,
dataIndex: 'name'
}, {
header: 'Typ',
width: 50,
sortable: true,
dataIndex: 'kind'
}, {
header: 'Größe (bytes)',
sortable: true,
dataIndex: 'file_size'
}, {
header: 'Wann Datei kopiert',
width: 150,
sortable: true,
renderer: Ext.util.Format.dateRenderer('Y-m-d H:i:s'),
dataIndex: 'when_file_copied'
}, {
header: 'MySQL Tabellenname',
width: 300,
sortable: true,
dataIndex: 'table_name'
}, {
header: 'Wann Tabelle erstellt',
width: 160,
sortable: true,
dataIndex: 'when_table_created'
}, {
header: 'Status',
width: 300,
sortable: true,
dataIndex: 'status'
}],
viewConfig: {
},
title: 'Gültige Dateien (.csv und .xsl/.xslx unter 4MB) in Importverzeichnis (webdev: /data/storage/test/original_excel)',
width: 1300,
listeners: {
'rowdblclick': function(grid_smart_worksheets, index, rec){
var id = grid_smart_worksheets.getSelectionModel().getSelected().json[0];
replace_region_with_uri_content('backend/application/importmanager/single', targetRegion, 'id='+id);
},
'viewready' : function(g) {
g.getView().getRow(0).style.color="red";
g.getView().getRow(2).style.color="#aaa";
}
},
autoHeight: true,
frame: true
});
```
# Answer
Gajahlemu's code below works well as it is in my demo but in my application I had to modify the CSS applying it to the inner `TD` to avoid conflicts with other styles, so this works for example:
```
.grid-row-highlight td {
background-color: yellow;
color: red;
font-weight: bold;
}
```

| What would be causing g.getView().getRow(0).style.color="red" not to function in ExtJS Grid? | CC BY-SA 2.5 | null | 2011-01-24T15:26:20.623 | 2011-01-25T09:18:26.713 | 2017-05-23T12:13:26.330 | -1 | 4,639 | [
"extjs",
"formatting",
"grid"
]
|
4,783,857 | 1 | 4,784,487 | null | 4 | 1,698 | i've been working on a webapp. i got stuck here in a problematic issue.
i'll try to explain what im trying to do.
here you see first big image which has green shapes in it.
what i want to do is to crop those shapes into different png files and make their background transparent like the example cropped images below the big one.




The first image will be uploaded by user and i want to crop into pieces like the example cropped images above.it can be done with GD library of php or by a server-side software written in python or c#. but i dunno what this operation called so i dunno what to google to find information. it is something to do with computer vision detecting blobs and cropping them into pieces etc.
any keywords,links would be helpful.
thanks for helps
| how to detect blobs and crop them into png files? | CC BY-SA 2.5 | 0 | 2011-01-24T15:41:43.990 | 2011-01-24T16:38:12.043 | 2011-01-24T16:08:10.100 | 401,006 | 401,006 | [
"c#",
"python",
"opencv",
"gd",
"computer-vision"
]
|
4,784,035 | 1 | 4,807,105 | null | 0 | 2,182 | Have review(for adding review or comments) component in my application.
When add review, that `p:dataTable` is updated with ajax.




jsf:
```
<h:form onsubmit="return commValidator();">
<h:inputText value="#{comment.commentator}"/>
<h:inputTextarea value="#{comment.body}";"/>
<p:commandButton value="send" action="#{showProducts.addComment}" update="comms"/>
<p:dataTable id="comms" value="#{showProducts.comments}" var="com">
<p:column>#{com.commentator}(
<h:outputText value="#{com.postDate}">
</h:outputText>):
</p:column>
<p:column>#{com.body}</p:column>
</p:dataTable>
</h:form>
```
The problem is `p:dataTable` component is displayed twice on page.
After new review been added, that newly created `p:dataTable` displayed.
How to make `p:dataTable` displayed already after go to page and once time?
Thanks.
| Primefaces dataTable is duplicated on page | CC BY-SA 2.5 | null | 2011-01-24T15:57:53.863 | 2013-09-12T14:32:32.420 | null | null | 170,830 | [
"datatable",
"jsf-2",
"primefaces",
"duplication"
]
|
4,784,255 | 1 | 4,784,313 | null | 0 | 7,454 | I'm trying to understand where I'm making the mistake on this code, but I can't. Works fine on Firefox and IE, but in Chrome the inner cells are not centered like the code seems to do.
```
<table cellpadding="0" cellspacing="0" style="width: 100%">
<tr>
<td rowspan="7"></td>
<td style="width: 600px; height: 100px;"> </td>
<td rowspan="7"></td>
</tr>
<tr>
<td class="style1" valign="top"><?php echo($title); ?></td>
</tr>
<tr>
<td class="style2" valign="top"><?php echo($subtitle); ?></td>
</tr>
<tr>
<td class="style3" valign="top"><?php echo($content); ?></td>
</tr>
<tr>
<td class="style4"><?php echo($endtitle); ?></td>
</tr>
<tr>
<td style="width: 600px; height: 30px"></td>
</tr>
<tr>
<td style="width: 600px; height: 100px" class="style5" valign="top"></td>
</tr>
</table>
```
Style1 and 2 and so are simple as:
```
.style1 {
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 32px;
color: #2B2B2B;
width: 600px;
}
```
With only some fonts diferents
The firts image shows how google chrome renders it, and the second how firefox do it:

| Table's formats on Google Chrome (pure html) | CC BY-SA 3.0 | null | 2011-01-24T16:16:38.840 | 2017-11-10T23:19:47.383 | 2017-11-10T23:19:47.383 | 4,370,109 | 310,648 | [
"html",
"html-table"
]
|
4,784,366 | 1 | null | null | 1 | 816 | I have the following code:
```
<div style="overflow: scroll; width: 75px; background-color: Black; ">
<table style="background-color: Red">
<tr>
<td>
<input type="button" id="btn1" value="1" />
</td>
<td>
<input type="button" id="Button1" value="2" />
</td>
<td>
<input type="button" id="Button2" value="3" />
</td>
</tr>
</table>
</div>
```
Which will be disabled like the following:

How can I know:
- - -
Note: Recommended using JQuery.
| How to know if a control is visible in a container with scrolls | CC BY-SA 2.5 | null | 2011-01-24T16:27:05.613 | 2011-01-24T16:45:32.843 | 2020-06-20T09:12:55.060 | -1 | 322,355 | [
"javascript",
"jquery",
"html"
]
|
4,784,550 | 1 | 4,784,645 | null | 4 | 313 | I came across this page a long time ago [Steve A Baker](http://2600connection.atari.org/baker.html) And he mentions how one of the images on an earlier video game he created was done using a simple adder and math.

How do you do this kind of thing? It would be really cool to create images mathematically.
I have wondered (and googled) but only found descriptions about fractals. But I don't think this is a fractal. Thanks.
| Are there mathematical methods to creating graphics? | CC BY-SA 2.5 | 0 | 2011-01-24T16:43:49.383 | 2012-03-04T23:13:32.260 | null | null | 585,585 | [
"math",
"graphics"
]
|
4,784,564 | 1 | 4,784,581 | null | 2 | 1,879 | I'm trying to write a "Hello, World" variant program in Eclipse, and I can't seem to be able to run my program.
Here's the code:
```
/**
*
*/
package GreeterPackage;
/**
* @author Raven Dreamer
* Prints out "Hello, World" in three languages:
* English, French, and Spanish.
*/
public class GreeterProg {
/**
* returns "Hello, World" three times, once
* in English, once in French, and once in
* Spanish.
*/
public static void Main(String[] args){
/** instances of the three greeter
* classes so the non-static methods
* can be called.
*/
EnglishGreeter eng = new EnglishGreeter();
FrenchGreeter fre = new FrenchGreeter();
SpanishGreeter spa = new SpanishGreeter();
System.out.println(eng.greet());
System.out.println(fre.greet());
System.out.println(spa.greet());
}
}
```
And here's my code for SpanishGreeter (French and English greeter are identical, currently)
```
/**
*
*/
package GreeterPackage;
/**
* @author Raven Dreamer
* Returns "Hello, World!" but in Spanish!
*/
public class SpanishGreeter extends greeter {
/**Spanish string of "Hello, World!"
*/
private String GREET = "¡Hola, World!";
/**
* returns "Hello, World" in Spanish
*/
public String greet() {
return GREET;
}
}
```
The code compiles fine with no errors, but when I try to run the program as a java application, I get the following error:

So I am left baffled as to what, exactly, the problem is. Am I missing something salient in terms of how I set the project up in the first place?
| Eclipse not recognizing my "Main" method | CC BY-SA 2.5 | null | 2011-01-24T16:45:02.583 | 2011-01-24T16:46:50.303 | null | null | 355,682 | [
"java",
"eclipse",
"compiler-errors"
]
|
4,784,704 | 1 | 4,784,803 | null | 0 | 168 | I'm using the code below to build a table, but because the values in my database table are constantly incrementing, I'm doing some math to work out differences in values (numerically) but this has screwed up the table layout somehow. I've included a screenshot so you can see that the first row beneath the table header is just not right.
`$column` is a `$_GET` value from the user.
```
$sql = "select * from (select * from mash order by tstamp desc limit 10) s order by s.id";
$result = mysql_query($sql);
$previous = 0;
$firstRun = true;
echo "<table id='dataTable' border='1'>";
echo "<tr><th>Date</th>
<th>Value</th></tr>";
while($row = mysql_fetch_array($result)){
$difference = $row[$column] - $previous;
if (!$firstRun)
echo "<tr><td>" . date("G:i:s", strtotime($row["tstamp"])) . "</td>";
echo "<td>" . $difference . "</td></tr>";
$previous = $row[$column];
$firstRun = false;
}
echo "</table>";
```

My question: Can anyone spot from the code, why the first row would come out like this?
| PHP built html table | CC BY-SA 3.0 | null | 2011-01-24T16:57:30.350 | 2017-10-29T16:20:02.510 | 2017-10-29T16:20:02.510 | 4,370,109 | 478,144 | [
"php",
"html",
"math",
"html-table"
]
|
4,784,722 | 1 | 4,797,710 | null | 1 | 1,532 | 
I have an excel sheet that shows the height-weight acceptable by underwriting class (insurance). I would like to load it into a relational database table with the following columns - underwriting_class, height and weight. Is there a way to do the transformation thru' SQL
| How to load multi dimensional data from Excel into relational database | CC BY-SA 2.5 | 0 | 2011-01-24T16:59:33.893 | 2011-01-25T19:04:04.597 | null | null | 251,946 | [
"sql",
"database",
"excel"
]
|
4,784,769 | 1 | 4,786,911 | null | 1 | 2,269 | I have written a custom `AuthorizeAttribute` having an override of `HandleUnauthorizedRequest`. This override conditionally sets the response status code to 404 with:
```
var response = filterContext.HttpContext.Response;
response.StatusCode = 404;
response.ContentType = null;
response.End();
```
The problem is that the full response is:
```
HTTP/1.1 404 Not Found
Server: ASP.NET Development Server/10.0.0.0
Date: Mon, 24 Jan 2011 16:43:08 GMT
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 2.0
Cache-Control: private
Connection: Close
```
when I would like to send back the default 404 page. Something like:
---

---
How do I do that?
| How to output the default 404 page within HandleUnauthorizedRequest | CC BY-SA 2.5 | 0 | 2011-01-24T17:03:43.577 | 2011-01-24T20:38:40.370 | null | null | 196,844 | [
"c#",
"asp.net-mvc-2",
"http-status-code-404",
"authorize-attribute"
]
|
4,784,824 | 1 | 4,786,554 | null | 5 | 3,066 | I've a MapView, and I want to add it a dropshadow, but the method I tried doesn't work:
```
- (void)viewDidLoad {
[super viewDidLoad];
mapView.layer.shadowColor = [[UIColor blackColor] CGColor];
mapView.layer.shadowOffset = CGSizeMake(10.0f, 10.0f);
mapView.layer.shadowOpacity = 1.0f;
mapView.layer.shadowRadius = 10.0f;
}
```
I get this:

Am I doing something wrong?
| Adding Shadows to MKMapView | CC BY-SA 2.5 | 0 | 2011-01-24T17:10:00.297 | 2011-08-31T14:08:55.433 | null | null | 169,274 | [
"iphone",
"ios",
"mkmapview",
"shadow"
]
|
4,785,093 | 1 | 4,786,395 | null | 3 | 1,182 | In my project, I use the Facebook API "three20": [https://github.com/facebook/three20/](https://github.com/facebook/three20/)
Now, I need to customize the TTPhotoViewController.
In the gallery, there's an "auto zoom". The complete width and height are always used:

The disadvantage is that you can not see the complete photo and important information could be cut off / cropped.
How can I deactivate the automatic zoom?
Thanks!
---
## EDIT 03-Mar-2011:
Roman's answer seems to be good, but unfortunately it doesn't helps me. Yes, the content mode `UIViewContentModeScaleAspectFill` is the problem:
> Scales the content to fill the size of
the view. Some portion of the content
may be clipped to fill the view’s
bounds.
But there's no other content mode that solves my problem. I think, I have to look deep inside three20 and scale the images by myself. But I need your help to do this! So, I'll start a new "bounty" today (03/03/2011)...
Thank you very much!!
---
## EDIT 07-Mar-2011:
Finally I got it!! roman's answer is right, I have to use `UIViewContentModeScaleAspectFit`.
The problem was: I use a wrong size in my `Photo`-Object! 320x480 worked for me:
```
NSMutableArray *photos = [NSMutableArray new];
for (Information *info in allImages) {
NSString *binaryId = info.binary;
NSString *fileName = [NSString stringWithFormat:@"documents://img/%@.jpg", binaryId];
Photo *photo = [[[Photo alloc] initWithCaption:info.name
urlLarge:fileName
urlSmall:fileName
urlThumb:fileName
size:CGSizeMake(320, 480)] autorelease];
[photos addObject:photo];
}
self.photoSource = [[PhotoSet alloc] initWithTitle:@"Photos" photos:photos];
```
| TTPhotoViewController: deactivate gallery auto zoom | CC BY-SA 2.5 | 0 | 2011-01-24T17:35:18.840 | 2019-06-09T12:20:26.087 | 2011-03-07T09:24:34.593 | 509,535 | 509,535 | [
"iphone",
"objective-c",
"ios",
"three20",
"ttphotoviewcontroller"
]
|
4,785,156 | 1 | null | null | 2 | 382 | Currently we are designing a new configuration front-end for our application. In order to have the application running as a XBAP in the browser we don't want to use modal dialogs. I don't want discus the user interface design itself but i would like to ask some technical question if our approach is good from the technical side. Most of use are new to WPF in detail but we are familiar with the MVVM pattern and one of our main goals is to separate the most code out of the GUI and mainly use xmal for UI definition.
Ok now to our sketch.
The "Mainmenue": should be some Outlook like treeview to select the configuration section the user wants to edit
The "Context depending Menue": should a Menue depending on the the Item selected in the "Mainmenue" e.g. a ribbon bar. That provides functions like "add new entry" "or remove entry" But also having a Application wide function like "load config file"
The "Context": should be the Data behind the entry selected in the "Mainmenue" e.g. a grid of the config entries in the selected category.
Ok actual concept was having a page split into two frames and having one "Mainmenue" page loaded into the left and a second on loaded to the right. The right one is exchanged when the user selects something in the menue. But not it is a pain to make new context view as we can't inherit from xaml ui difinitions. I tried the workaround described here [2](http://svetoslavsavov.blogspot.com/2009/09/user-control-inheritance-in-wpf.html) but that doesn't very well. And we don't want to define our UI in C# that would be another workaround for the problem.
Now we created a new sketch in order to refactor our layout. Now we want to split the main page into three frames one for the "mainmenue" one for the "context" and one for the "context depending menue".
In fact the every context view has its own ViewModel we thought about having each Viewmodel a property like "menue entries" and binding this to the "context depending menue" that should display the menue for the context. And having the application wide function programmed only once.
Now may question is do you see any downside of this approach? I know some things will be a bit tricky with Databinding.

| WPF Application Layout | CC BY-SA 2.5 | null | 2011-01-24T17:41:05.947 | 2011-01-24T17:57:23.917 | null | null | 524,236 | [
".net",
"wpf",
"layout",
"mvvm"
]
|
4,785,296 | 1 | 4,785,354 | null | 1 | 1,378 | I've been coding PHP with Notepad++ for years now, but today I downloaded Eclipse IDE. One of its features is auto-completing certain "syntax-patterns", such as comments. I've seen a lot of different ways to implement comments and documentation into php-files, so now I started wondering, should I follow the syntax Eclipse suggests.
Here's a snap of what I mean:

What do you think?
Martti Laine
| Most common/liked syntax for in-code documentation (comments)? | CC BY-SA 2.5 | 0 | 2011-01-24T17:54:55.890 | 2011-01-24T18:05:18.033 | null | null | 239,527 | [
"php",
"eclipse",
"syntax",
"comments"
]
|
4,785,422 | 1 | 4,799,666 | null | 15 | 43,663 | I have a few instances where I place image within a link. Normally if you set border="0" there line under a link does not apply to the image. However, I had to specify DOCTYPE to be and now in FF I see the line under all images.
I still would like to have my links underlined, but not the images within.
```
<a href="link.php"><img src="img.png" height="16" width="16" border="0"> link</a>
```
I've tried to solve it with CSS by adding
```
a img {
text-decoration:none
}
```
Unfortunately it did not work. I also tried:
```
a img {
border:0
}
```
IE does not "underline" my images within a link... Any suggestions would be highly appreciated.
[Example Link](http://www.jsfiddle.net/UtKYn/6/)

I still would like to have my links underlined, but not the images within.
| Remove line under image in link | CC BY-SA 2.5 | 0 | 2011-01-24T18:05:56.923 | 2018-07-06T15:54:09.530 | 2011-01-24T18:54:41.283 | 434,218 | 434,218 | [
"html",
"css"
]
|
4,785,659 | 1 | 4,785,697 | null | 19 | 16,728 | In a model UIViewController I have the following implementation of loadView (everything is created programmatically):
```
- (void)loadView {
// Add Basic View
UIView *myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 540, 620)];
myView.backgroundColor = [UIColor clearColor];
self.view = myView;
[myView release];
// Add NavigationBar
// Add a BG image
// Add Table
UITableView *tbView = [[UITableView alloc] initWithFrame:CGRectMake(30, 80, 480, 250) style:UITableViewStyleGrouped];
tbView.dataSource = self;
tbView.delegate = self;
tbView.scrollEnabled = NO;
tbView.backgroundColor = [UIColor clearColor];
[tbView reloadData];
[self.view addSubview:tbView];
[tbView release];
// some more code
}
```
As you can see I set backgroundColor to clearColor, yet when I compile and run the code I always see a gray background behind the table:

I don't understand what I am doing wrong (sounds stupid, I know), I used to have the very same code and it worked perfectly fine. I am compiling with iOS SDK 4.2.1
| UITableView background color does not change | CC BY-SA 2.5 | 0 | 2011-01-24T18:31:39.150 | 2021-02-01T09:14:44.467 | null | null | 250,880 | [
"iphone",
"cocoa-touch",
"uitableview"
]
|
4,785,756 | 1 | 4,786,732 | null | 0 | 938 | `.nivo-controlNav` does center itself inside the slider, but i can't get to center `.nivo-controlNav span` inside `.nivo-controlNav`.

```
.nivo-controlNav {
margin: 0 auto;
text-align: center;
width: 200px;
}
.nivo-controlNav span {
text-align: center;
}
.nivo-controlNav a {
display: block;
float: left;
width: 22px;
height: 22px;
background: url(images/bullets.png) no-repeat;
text-indent: -9999px;
border: 0;
margin-right: 3px;
margin: 0 auto;
}
.nivo-controlNav a.active {
background-position: 0 -22px;
}
.nivo-directionNav a {
display: block;
width: 30px;
height: 30px;
background: url(images/arrows.png) no-repeat;
text-indent: -9999px;
border: 0;
}
a.nivo-nextNav {
background-position: -30px 0;
right: 15px;
}
a.nivo-prevNav {
left: 15px;
}
.nivo-caption {
text-shadow:none;
font-family: Helvetica, Arial, sans-serif;
}
.nivo-caption a {
color:#efe9d1;
text-decoration:underline;
}
.shadow-top {
height: 10px;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#111), to(#333));
background: -moz-linear-gradient(#111, #333);
-pie-background: linear-gradient(#111, #333);
}
.shadow-bottom {
height: 10px;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#333), to(#111));
background: -moz-linear-gradient(#333, #111);
-pie-background: linear-gradient(#333, #111);
}
.shadow-slider {
margin: 0 auto;
overflow: hidden;
width: 940px;
height: 10px;
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#999), to(#FFF));
background: -moz-linear-gradient(#999, #DDD);
-pie-background: linear-gradient(#222, #000);
}
#slider img {
float: left;
width: 958px;
height: 458px;
}
```
(I managed to center the div, but now `.nivo-controlNav a` loses its width and height because is not floating left).
How to solve this?
```
#slider-wrapper {
float: left;
height: 500px;
}
#slider {
float: left;
border: 1px solid #DDD;
position:relative;
background:url(images/loading.gif) no-repeat 50% 50%;
}
#slider img {
position:absolute;
top: 0px;
left: 0px;
display: none;
}
.nivo-controlNav {
margin: 480px auto 0;
overflow: hidden;
text-align: center;
width: 200px;
}
.nivo-controlNav span {
}
.nivo-controlNav a {
width: 22px;
height: 22px;
background: url(images/bullets.png) no-repeat;
text-indent: -9999px;
border: 0;
margin-right: 3px;
}
.nivo-controlNav a.active {
background-position: 0 -22px;
}
.nivo-directionNav a {
display: block;
width: 30px;
height: 30px;
background: url(images/arrows.png) no-repeat;
text-indent: -9999px;
border: 0;
}
a.nivo-nextNav {
background-position: -30px 0;
right: 15px;
}
a.nivo-prevNav {
left: 15px;
}
.nivo-caption {
text-shadow:none;
font-family: Helvetica, Arial, sans-serif;
}
.nivo-caption a {
color:#efe9d1;
text-decoration:underline;
}
```
| <span> elements inside a slider that are impossible to center? | CC BY-SA 2.5 | null | 2011-01-24T18:39:00.193 | 2011-01-24T20:20:35.990 | 2011-01-24T18:54:39.640 | 122,536 | 122,536 | [
"css",
"html"
]
|
4,785,845 | 1 | 4,787,489 | null | 0 | 690 | I listed out the installed packages I have just in case I installed something that would cause this conflict but everything else is unaltered.


When I go to create a file or folder in the media section, I get the following error:
At /umbraco/webservices/TreeDataService.ashx?rnd=2ff1d740390747b1bb041eac478be535&id=-1&treeType=media&contextMenu=true&isDialog=false&rnd2=14.4 (Referred by: [http://umbraco/umbraco/umbraco.aspx](http://umbraco/umbraco/umbraco.aspx)):
Then when I go to that URL, I get
No Document exists with Version 'blah blah blah'
Has anyone seen this before?
| Umbraco 4.6. Can not create file in Media Section. "No Document exists with Version " | CC BY-SA 3.0 | null | 2011-01-24T18:47:48.387 | 2017-12-13T16:39:51.943 | 2017-12-13T16:39:51.943 | 1,033,581 | 192,604 | [
"umbraco"
]
|
4,785,856 | 1 | 4,787,935 | null | 3 | 6,695 | Here's my current GUI layout for my checkers game:

As you can see, it consists of a Menu along the top, a Canvas on the left where I draw the checkerboard, a toolbar (Frame) on the top right where I have various formatting/navigation buttons, and a Text widget that is used to annotate moves. Currently, I am using a grid layout for the widgets.
Here's what I need to do:
1. Be able to show/hide a scrollbar in the Text widget when the amount of text grows larger than the widget size. (This seems to require the grid layout, according to this article.)
2. Change the font and/or size of the text in the Text widget [via a Preferences dialog] and not leave weird gaps around the Text widget. (This seems to require a pack layout because the Text widget can only be given a width and height in characters not pixels ... that means the Text widget grows or shrinks when I change the font or size, and the window won't adjust to fit with a grid layout. I've been trying to use Font.measure to adjust the Text widget size according to the font selected, but I still get gaps because I can't resize the widget down to the exact pixel.)
3. My final solution needs to be cross-platform (both Windows & Linux, and hopefully Mac).
Which layout can I use to meet my requirements? If neither will work completely, which layout (grid or pack) will get me closest to my goal? Thanks!
| How do I achieve the following Tkinter GUI layout with either pack or grid? | CC BY-SA 2.5 | null | 2011-01-24T18:48:47.683 | 2011-01-24T23:01:10.217 | 2011-01-24T18:54:25.047 | 28,916 | 28,916 | [
"python",
"layout",
"grid",
"tkinter",
"pack"
]
|
4,786,059 | 1 | 4,786,093 | null | 0 | 1,723 | I want to change the origin of my OpenGL origin. Pictures will explain:
This is how it is now:


Current code
```
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL10.GL_PROJECTION);
gl.glLoadIdentity();
GLU.gluPerspective(gl, 45.0f,
(float)width / (float)height, 0.1f, 100.0f);
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();
```
| Change OpenGL origin | CC BY-SA 2.5 | null | 2011-01-24T19:11:51.740 | 2011-01-24T19:46:48.223 | 2011-01-24T19:46:48.223 | 44,729 | 386,562 | [
"java",
"android",
"opengl-es"
]
|
4,786,064 | 1 | 18,324,250 | null | 12 | 16,619 | I have created a UserControl which is a ring by superposing 2 circles the small circle being blank and the second behind the smallest being colored.
In my WPF app, I want to put several rings but the small circle does hide other rings. I'd like to see through it and also capture mouse event for ring behind other rings otherwise it's not real rings. Is it possible ?
I tried OpacityMask for small ellipse as pointed by answer to [http://social.msdn.microsoft.com/forums/en-US/wpf/thread/551201d1-c5b3-4e17-ae63-625cfbb8bcc4](http://social.msdn.microsoft.com/forums/en-US/wpf/thread/551201d1-c5b3-4e17-ae63-625cfbb8bcc4) but still can't see ring behind hole:
```
<UserControl x:Class="MyUserControls.MyRing"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="150" d:DesignWidth="150" SizeChanged="UserControl_SizeChanged">
<Grid Height="150" Name="Grid" Width="150" MouseMove="ellipse1_MouseMove">
<Ellipse Fill="Red" Height="150" Width="150" HorizontalAlignment="Left" Margin="0,0,0,0" Name="ellipse1" Stroke="Black" VerticalAlignment="Top" >
<Ellipse.OpacityMask>
<RadialGradientBrush>
<GradientStop Color="#FFB94444" Offset="0.496"/>
<GradientStop Color="#00FFFFFF" Offset="0.491"/>
</RadialGradientBrush>
</Ellipse.OpacityMask>
</Ellipse>
<Ellipse Fill="White" Height="100" Width="100" Margin="25,25,25,0" Name="ellipse2" Stroke="Black" VerticalAlignment="Top" />
</Grid>
</UserControl>
```

| How to create a circle with a hole in a circle in WPF? | CC BY-SA 3.0 | 0 | 2011-01-24T19:12:16.853 | 2013-08-19T22:39:19.073 | 2013-01-15T05:16:28.727 | 305,637 | 310,291 | [
"wpf",
"user-controls",
"wpf-controls"
]
|
4,786,223 | 1 | 4,786,286 | null | 2 | 1,365 | I'd like to expose certain methods of my service layer as a WCF service. If I make my whole service layer as wcf methods, would the calls from my web app be slowed down because I'm converting to and from xml for no reason? As shown in this image:

How would my project be layered or structured?
| WCF wrapping the service layer for asp.net mvc | CC BY-SA 2.5 | null | 2011-01-24T19:31:28.007 | 2011-01-24T19:38:01.343 | null | null | 400,861 | [
"asp.net-mvc",
"wcf"
]
|
4,786,377 | 1 | 4,786,491 | null | 10 | 9,791 | I have an image that is a depth heatmap that I've filtered out anything further away than the first 25% of the image.
It looks something like this:

There are two blobs of color in the image, one is my hand (with part of my face behind it), and the other is the desk in the lower left corner. How can I search the image to find these blobs? I would like to be able to draw a rectangle around them if possible.
I can also do this (ignore shades, and filter to black or white):

| Detecting a blob of color in an image | CC BY-SA 2.5 | 0 | 2011-01-24T19:46:19.067 | 2018-11-09T22:21:45.130 | 2011-01-24T19:54:03.870 | 12,243 | 12,243 | [
"c#",
"image-processing",
"nui"
]
|
4,786,380 | 1 | null | null | 3 | 2,085 | 
I have three scripts that are in a google docs spreadsheet. In this spreadsheet, in `column H` (or `column 8`), if I type an `x`, the script changes it into that days date.
After a few days, every date in `column H` has changed from a to just a . The numbers look like this: `40492, 40494, 40511`.
I am not sure what is causing this. Maybe it's something that is wrong in my script. I've pasted them below. Any ideas?
```
function onEdit(e) {
var colorA = "yellow";
var colorB = "#dddddd";
var colorC = "#dddddd";
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Purchase Orders");
var range = e.source.getActiveRange();
var sheetName = SpreadsheetApp.getActiveSheet().getName();
if (sheetName == "Purchase Orders") {
// 3 is column C
if (range.getColumn() == 7 && range.getValue() != "") {
var r = range.getRow() + 1;
sheet.getRange("A" + r + ":G" + r).setBackgroundColor(colorC);
}
}
var col = e.source.getActiveRange().getColumn();
if(col == 8 || col == 7) {
var rows = sheet.getMaxRows();
//column C
var rangeC = sheet.getRange("H1:H"+rows);
var valuesC = rangeC.getValues();
//column H range
var rangeH = sheet.getRange("G1:G"+rows);
var colorH = rangeH.getBackgroundColors();
var valuesH = rangeH.getValues();
//iterate over each row in column C and H
//then change color
for (var row = 0; row < valuesC.length; row++) {
//check for columnC and column H
var hRow = colorH[row];
if (valuesC[row][0] != "" && valuesH[row][0] == "") {
hRow[0] = colorA;
} else if (valuesH[row][0] != "") {
hRow[0] = colorB;
}
}
sheet.getRange("G1:G" + rows).setBackgroundColors(colorH);
}
}
```
```
function onEdit(e) {
var colorA = "yellow";
var colorB = "#dddddd";
var colorC = "#dddddd";
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Purchase Orders");
var range = e.source.getActiveRange();
var sheetName = SpreadsheetApp.getActiveSheet().getName();
if (sheetName == "Purchase Orders") {
// 3 is column C
if (range.getColumn() == 3 && range.getValue() != "") {
sheet.insertRowAfter(range.getRow());
var r = range.getRow() + 1;
sheet.getRange("A" + r + ":H" + r).setBackgroundColor(colorC);
}
}
var col = e.source.getActiveRange().getColumn();
if(col == 3 || col == 8) {
var rows = sheet.getMaxRows();
//column C
var rangeC = sheet.getRange("C1:C"+rows);
var valuesC = rangeC.getValues();
//column H range
var rangeH = sheet.getRange("H1:H"+rows);
var colorH = rangeH.getBackgroundColors();
var valuesH = rangeH.getValues();
//iterate over each row in column C and H
//then change color
for (var row = 0; row < valuesC.length; row++) {
//check for columnC and column H
var hRow = colorH[row];
if (valuesC[row][0] != "" && valuesH[row][0] == "") {
hRow[0] = colorA;
} else if (valuesH[row][0] != "") {
hRow[0] = colorB;
}
}
sheet.getRange("H1:H" + rows).setBackgroundColors(colorH);
}
}
```
```
function onEdit(e) {
var ss = e.source.getActiveSheet();
var r = e.source.getActiveRange();
//1 is A, 2 is B, ... 8 is H
if (r.getColumn() == 8 && r.getValue() == "x") {
r.setNumberFormat("MM/dd/yyyy")
r.setValue(Utilities.formatDate(new Date(), "MST", "yyyy-MM-dd"));
}
}
```
| Google Docs Date Changing | CC BY-SA 3.0 | null | 2011-01-24T19:46:33.137 | 2017-10-27T21:18:03.443 | 2017-10-27T21:18:03.443 | 8,272,952 | 511,077 | [
"google-apps-script",
"google-sheets"
]
|
4,787,094 | 1 | 5,289,696 | null | 3 | 1,727 | Is there a way to determine whether or not a Word document (specifically 2007, if that matters) contains a restricted font using VBA?
I don't necessarily need a way to the font, just to determine whether or not the document contains an restricted font. Also, if there's only a way to check for an font, that's acceptable, because in my case, it will almost always be a restricted font.

| Determine whether a Word document contains a restricted font using VBA | CC BY-SA 2.5 | 0 | 2011-01-24T20:58:41.473 | 2015-02-25T00:28:30.127 | 2015-02-25T00:28:30.127 | 3,204,551 | 233,098 | [
"vba",
"ms-word",
"embedded-fonts"
]
|
4,787,332 | 1 | 4,788,102 | null | 112 | 394,973 | I've got some multivariate data of beauty vs ages. The ages range from 20-40 at intervals of 2 (20, 22, 24....40), and for each record of data, they are given an age and a beauty rating from 1-5. When I do boxplots of this data (ages across the X-axis, beauty ratings across the Y-axis), there are some outliers plotted outside the whiskers of each box.
I want to remove these outliers from the data frame itself, but I'm not sure how R calculates outliers for its box plots. Below is an example of what my data might look like.

| How to remove outliers from a dataset | CC BY-SA 4.0 | 0 | 2011-01-24T21:23:51.713 | 2022-12-14T21:56:51.463 | 2022-03-11T02:35:08.147 | 792,066 | 575,059 | [
"r"
]
|
4,787,665 | 1 | 4,787,724 | null | 2 | 140 |
[http://www.jsfiddle.net/dougrchamberlain/nMkxE/](http://www.jsfiddle.net/dougrchamberlain/nMkxE/)
See how it all falls apart. the width of the id=middle should span the entire remaining center `#left:width - #wrapper:width = #middle:width`
if #right contains any content then
`(#left:width + #right:width) - #wrapper:width = #middle:width`
Just for everyon's information. The image below was created in MSpaint. No HTML used at all.
This is not supposed to be a trick question. plus please only consider html4 as an option. apparently I missed the HTML4 tag. Also, are you all considering the fact that the right pane should be collapsed when empty.

Not including any nested divs for the actual features, ie menus content areas etc...
My count is 6???
| What is the fewest number of divs that could be used to create the following page layout? | CC BY-SA 2.5 | null | 2011-01-24T21:57:09.407 | 2011-01-26T21:11:48.730 | 2011-01-26T21:11:48.730 | 564,083 | 564,083 | [
"html",
"css",
"stylesheet",
"html4"
]
|
4,787,715 | 1 | 4,787,967 | null | 1 | 232 | All we get when publishing our ASP.Net MVC 3 app is this:

You may also [relive the error here](http://v2.presenta.nu/).
There's no error message or anything. We've seen this once before, when the connection-string was invalid. This time however, we're sure that is not the problem.
How should we procceed to "debug" this app? It works fine on the dev server.
| How to find the error when there is no error-information (problem hosting an ASP.Net MVC 3 App) | CC BY-SA 2.5 | null | 2011-01-24T22:01:30.467 | 2011-01-24T22:29:42.983 | null | null | 93,222 | [
"asp.net",
"asp.net-mvc",
"iis",
"asp.net-mvc-3"
]
|
4,787,720 | 1 | 4,787,741 | null | -1 | 93 | I have to implement the following dropdown box. The first item in the list can't selected and the data will be populated dynamically.

| Idea needed for dropdown implementation | CC BY-SA 3.0 | null | 2011-01-24T22:01:50.027 | 2017-10-03T11:24:37.210 | 2017-10-03T11:24:37.210 | 1,033,581 | 219,823 | [
"menu",
"drop-down-menu"
]
|
4,787,789 | 1 | null | null | 0 | 431 | Here is my experiment:
1.
What I would like to do is to manage my app navigation manually so I set
```
[self.navigationController setNavigationBarHidden:YES];
```
2.
I created a MyFormControllerView which is a contact form actually and will be used for adding and editing contacts. Now when adding a contact my custom navigation bar will have different buttons then that when editing thus I created also AddMyFormControllerView and EditMyFormControllerView.
3.
Here goes the fun part. I would like from AddMyFormControllerView and EditMyFormControllerView to display a custom header (in this case some buttons) and beneath I would like to show MyFormControllerView.
I assume that I should connect/include MyFormControllerView with/into other controllers through a UIViewController but I don't have luck. How can I do it? Note please that I would like to use the Interface builder as much as possible.
And yes... I know there is no need to have two additional controllers to achieve that. My question is only how can I connect views together.

| iPhone - connect UIView and sub UIViewController | CC BY-SA 2.5 | null | 2011-01-24T22:09:26.367 | 2011-01-25T02:52:27.013 | 2011-01-25T00:22:23.000 | 132,257 | 132,257 | [
"iphone",
"uiviewcontroller",
"interface-builder"
]
|
4,787,829 | 1 | 4,787,998 | null | 6 | 9,734 | I've got a 2D game that I'm working on that is in 4:3 aspect ratio. When I switch it to fullscreen mode on my widescreen monitor it stretches. I tried using two viewports to give a black background to where the game shouldn't stretch to, but that left the game in the same size as before. I couldn't get it to fill the viewport that was supposed to hold the whole game.
How can I get it to go fullscreen without stretching and without me needing to modify every position and draw statement in the game? The code I'm using for the viewports is below.
```
// set the viewport to the whole screen
GraphicsDevice.Viewport = new Viewport
{
X = 0,
Y = 0,
Width = GraphicsDevice.PresentationParameters.BackBufferWidth,
Height = GraphicsDevice.PresentationParameters.BackBufferHeight,
MinDepth = 0,
MaxDepth = 1
};
// clear whole screen to black
GraphicsDevice.Clear(Color.Black);
// figure out the largest area that fits in this resolution at the desired aspect ratio
int width = GraphicsDevice.PresentationParameters.BackBufferWidth;
int height = (int)(width / targetAspectRatio + .5f);
if (height > GraphicsDevice.PresentationParameters.BackBufferHeight)
{
height = GraphicsDevice.PresentationParameters.BackBufferHeight;
width = (int)(height * targetAspectRatio + .5f);
}
//Console.WriteLine("Back: Width: {0}, Height: {0}", GraphicsDevice.PresentationParameters.BackBufferWidth, GraphicsDevice.PresentationParameters.BackBufferHeight);
//Console.WriteLine("Front: Width: {0}, Height: {1}", width, height);
// set up the new viewport centered in the backbuffer
GraphicsDevice.Viewport = new Viewport
{
X = GraphicsDevice.PresentationParameters.BackBufferWidth / 2 - width / 2,
Y = GraphicsDevice.PresentationParameters.BackBufferHeight / 2 - height / 2,
Width = width,
Height = height,
MinDepth = 0,
MaxDepth = 1
};
GraphicsDevice.Clear(Color.CornflowerBlue);
```
The image below shows what the screen looks like. The black on the sides is what I want (and is from the first viewport) and the second viewport is the game and the cornflower blue area. What I want is to get the game to scale to fill the cornflower blue area.

| Going fullscreen without stretching in an XNA game | CC BY-SA 2.5 | 0 | 2011-01-24T22:14:40.983 | 2012-06-25T20:33:35.390 | 2011-01-24T23:07:11.760 | 166,031 | 166,031 | [
"c#",
"xna"
]
|
4,787,818 | 1 | 4,791,596 | null | 0 | 179 | So I have a lot of UI problems, as you can see here in this snapshot:

Fields are all over the place, spacing BETWEEN fields is bad, length of the fields don't line up with one another. Is there CSS I could place on the page that will at least fix the control length, spacing, and those sort of things so the page is at least better to look at? And what would the CSS be?
I'm bad at this stuff =/ Thanks!
EDIT:
For example, the section titled "Input your Economics details" is using this markup
```
<div id="economicDetails">
<table id="table4" cellpadding="4" cellspacing="0">
<tr id="tr5">
<td id="td6">
</td>
<td id="td7" style="text-align: right;">
Indication Nickname
</td>
<td id="td8" colspan="3">
<%= Html.TextBoxFor(m => m.STPData.ProjectName, new { @class = "economicTextBox", propertyName = "STPData.ProjectName", onchange = "UpdateField(this);" })%>
</td>
</tr>
<tr id="tr9">
<td id="td10" style="width: 80px">
<%= Html.LabelFor(m => m.EffectiveDate) %>
</td>
<td id="td11">
<%= Html.TextBox("EffectiveDate", Model.EffectiveDate.HasValue ? Model.EffectiveDate.Value.ToString("dd-MMM-yyyy") : "", new { @class = "economicTextBox", propertyName = "EffectiveDate", onchange = "parseAndSetDt(this); ", dataType = "Date" })%>
</td>
<td id="td12">
<%= Html.LabelFor(m => m.Notional) %>
</td>
<td id="td13" style="width: 350px">
<span>
<%= Html.DropDownListFor(m =>
m.ActiveProduct.CurrencyID,
DropDownData.CurrencyList(), "",
new { @class = "economicTextBox", propertyName = "ActiveProduct.CurrencyID", onchange = "UpdateField(this);" })%>
</span>
<%= Html.TextBoxFor(m => m.Notional, new { @class = "economicTextBox", propertyName = "Notional", onchange = "FormatAsMoney(this, 10000000000, true); UpdateField(this);" })%>
</td>
</tr>
<tr id="tr14">
<td id="td15">
<%= Html.LabelFor(m => m.MaturityDate) %>
</td>
<td id="td16">
<%= Html.TextBox("MaturityDate", Model.MaturityDate.HasValue ? Model.MaturityDate.Value.ToString("dd-MMM-yyyy") : "", new { @class = "economicTextBox", propertyName = "MaturityDate", onchange = "parseAndSetDt(this); ", dataType = "Date" })%>
<%= Html.DropDownListFor(m => m.AmortizationComponent.MaturityBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "AmortizationComponent.MaturityBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
<td id="td17" style="width: 76px">
Value Date
</td>
<td id="td18" style="width: 218px">
<%= Html.TextBoxWithPermission("RateTimeStamp", Model.RateTimeStamp.HasValue ? Model.RateTimeStamp.Value.ToString("dd-MMM-yyyy") : "", new string[] { PERMISSIONS.hasICAdvanced }, new { @class = "economicTextBox", propertyName = "RateTimeStamp", onchange = "parseAndSetDt(this);", dataType = "Date" })%>
<br />
<%= Html.CheckBoxForWithPermission(m => m.Current, new string[] { PERMISSIONS.hasICAdvanced }, new { @class = "economicTextBox", propertyName = "Current", onchange = "UseCurrent();UpdateField(this);" })%>
Current
</td>
</tr>
<tr id="tr19">
<td id="td20">
Holiday Cities
</td>
<td id="td21">
<table id="table22">
<tr id="tr23">
<td id="td24">
<div id="holidayCityLabel" style="color: Blue; text-decoration: underline; cursor: pointer" />
<div id="holidayCityList" style="overflow: auto" class="holidayCityList">
<%foreach (SelectListItem holiday in DropDownData.HolidayDays())
{ %>
<% bool holidaySelected = Model.Trx.TransactionHolidayCityCollection.Find(item => item.IsDeleted == false && item.HolidayCityID.Value.ToString() == holiday.Value) != null; %>
<input type="checkbox" name="Trx.TransactionHolidayCityCollection" id="Holiday<%= holiday.Value %>"
value="<%=holiday.Value%>" <%= holidaySelected == false ? "" : "checked=checked" %> />
<label id="HolidayLabel<%= holiday.Value %>" for="Holiday<%=holiday.Value%>">
<%=holiday.Text%></label>
<br />
<%} %>
</div>
</td>
<td id="td25">
<span validationFor="holidayCity" style='display:none'>
<img class='validation' src='<%= VirtualPathUtility.ToAbsolute("~/img/exclamation.gif")%>' />
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="div26" style="height: 10px" />
<table id="table27" cellpadding="2" cellspacing="0">
<tr id="tr28">
<td id="td29" style="width: 90px;">
</td>
<td id="td30" style="width: 225px;" class="leftRightBorder componentHeader">
Fixed Component
</td>
<td id="td31" style="width: 15px;">
</td>
<td id="td32" style="width: 100px;">
</td>
<td id="td33" style="width: 350px;" class="leftRightBorder componentHeader">
Floating Component
</td>
</tr>
<tr id="tr34">
<td id="td35">
Fixed Rate
</td>
<td id="td36" class="leftRightBorder">
<div id="div37" class="componentCell" style="font-style: italic">
Calculated
</div>
</td>
<td id="td38">
</td>
<td id="td39">
Index
</td>
<td id="td40" class="leftRightBorder">
<table id="table41">
<tr id="tr42">
<td id="td43">
<%= Html.DropDownListFor(m => m.FloatingComponent.IndexID, DropDownData.IndexDropList(), "",
new { propertyName = "FloatingComponent.IndexID", onchange = "UpdateField(this, false); FillIndexDescription();UpdateResetEnabled();" })%>
</td>
<td id="td44">
<span id="indexDetailsDescription" propertyName="IndexOptions" style="padding-left: 15px; color: Blue; text-decoration: underline;
cursor: pointer" />
</td>
</tr>
</table>
</td>
</tr>
<tr id="tr45">
<td id="td46">
</td>
<td id="td47" class="leftRightBorder">
</td>
<td id="td48">
</td>
<td id="td49">
Reset Day
</td>
<td id="td50" class="leftRightBorder">
<span id="resetLabel" propertyName="ResetLabel" class="componentCell" style="color: Blue; text-decoration: underline;
cursor: pointer" />
</td>
</tr>
<tr id="tr51">
<td id="td52">
</td>
<td id="td53" class="leftRightBorder">
</td>
<td id="td54">
</td>
<td id="td55">
Reset Convention
</td>
<td id="td56" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.ResetDayComponent.ResetBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "ResetDayComponent.ResetBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
</tr>
<tr id="tr57">
<td id="td58">
Frequency
</td>
<td id="td59" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FixedComponent.PaymentFrequency, DropDownData.FrequencyDropList(), "", new { propertyName = "FixedComponent.PaymentFrequency", onchange = "UpdateField(this);" })%>
</td>
<td id="td60" />
<td id="td61">
Frequency
</td>
<td id="td62" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FloatingComponent.PaymentFrequency, DropDownData.FrequencyDropList(), "", new { propertyName = "FloatingComponent.PaymentFrequency", onchange = "UpdateField(this);" })%>
</td>
</tr>
<tr id="tr63">
<td id="td64">
Payment Day
</td>
<td id="td65" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FixedComponent.PaymentDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FixedComponent.PaymentDay", onchange = "UpdateField(this);" })%>
<%= Html.DropDownListFor(m => m.FixedComponent.PaymentBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FixedComponent.PaymentBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
<td id="td66" />
<td id="td67">
Payment Day
</td>
<td id="td68" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FloatingComponent.PaymentDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FloatingComponent.PaymentDay", onchange = "UpdateField(this);", disabled="disabled" })%>
<%= Html.DropDownListFor(m => m.FloatingComponent.PaymentBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FloatingComponent.PaymentBusinessDayConvention", onchange = "UpdateField(this);", disabled="disabled" })%>
</td>
</tr>
<tr id="tr69">
<td id="td70">
Roll Day
</td>
<td id="td71" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FixedComponent.RollDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FixedComponent.RollDay", onchange = "UpdateField(this);" })%>
<%= Html.DropDownListFor(m => m.FixedComponent.RollBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FixedComponent.RollBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
<td id="td72" />
<td id="td73">
Roll Day
</td>
<td id="td74" class="leftRightBorder">
<%= Html.DropDownListFor(m => m.FloatingComponent.RollDay, DropDownData.DaysOfMonthList(), "", new { propertyName = "FloatingComponent.RollDay", onchange = "UpdateField(this);", disabled = "disabled" })%>
<%= Html.DropDownListFor(m => m.FloatingComponent.RollBusinessDayConvention, DropDownData.BusinessDayConventionList(), "", new { propertyName = "FloatingComponent.RollBusinessDayConvention", onchange = "UpdateField(this);" })%>
</td>
</tr>
<tr id="tr75">
<td id="td76">
First Roll Date
</td>
<td id="td77" class="leftRightBorder">
<%= Html.TextBox("FixedComponent_FirstRollDate", Model.FixedComponent.FirstRollDate.HasValue ? Model.FixedComponent.FirstRollDate.Value.ToString("dd-MMM-yyyy") : "", new { @class = "economicTextBox", propertyName = "FixedComponent.FirstRollDate", onchange = "parseAndSetDt(this); ", dataType = "Date" })%>
</td>
<td id="td78" />
<td id="td79">
First Roll Date
</td>
<td id="td80" class="leftRightBorder">
<%= Html.TextBox("FloatingComponent_FirstRollDate", Model.FloatingComponent.FirstRollDate.HasValue ? Model.FloatingComponent.FirstRollDate.Value.ToString("dd-MMM-yyyy") : "", new { @class = "economicTextBox", propertyName = "FloatingComponent.FirstRollDate", onchange = "parseAndSetDt(this); ", dataType = "Date" })%>
</td>
</tr>
<tr id="tr81">
<td id="td82">
Long Last Stub
</td>
<td id="td83" class="leftRightBorder">
<%= Html.CheckBoxFor(m => Model.LongLastStub, new { propertyName = "LongLastStub", onchange = "UpdateField(this);" })%>
</td>
<td id="td84" colspan="2" />
<td id="td85" class="leftRightBorder">
</td>
</tr>
<tr id="tr86">
<td id="td87">
Day Count
</td>
<td id="td88" class="leftRightBorder bottomBorder">
<%= Html.DropDownListFor(m => m.FixedComponent.DayCountConvention, DropDownData.DayCountDropList(), "", new { propertyName = "FixedComponent.DayCountConvention", onchange = "UpdateField(this);" })%>
</td>
<td id="td89" />
<td id="td90">
Day Count
</td>
<td id="td91" class="leftRightBorder bottomBorder">
<%= Html.DropDownListFor(m => m.FloatingComponent.DayCountConvention, DropDownData.DayCountDropList(), "", new { propertyName = "FloatingComponent.DayCountConvention", onchange = "UpdateField(this);" })%>
</td>
</tr>
</table>
</div>
</div>
```
The other parts are basically in the same format. Thanks!
| Fixing my UI problems with maybe CSS? | CC BY-SA 2.5 | null | 2011-01-24T22:13:15.473 | 2011-01-25T09:06:26.623 | 2011-01-24T22:26:17.293 | 534,101 | 534,101 | [
".net",
"html",
"css",
"asp.net-mvc-2",
"alignment"
]
|
4,787,885 | 1 | 4,788,185 | null | 1 | 1,000 | Why must IE be so difficult?
Building site on ASP.NET MVC platform. Email page has a border around the form (set by div). IE makes a mess of things.
Screenshot of page rendered in IE8:

Screenshot of page rendered in Firefox 3.6:

Screenshot of page rendered in Chrome 8:

I think I have narrowed down the problem, here is the code of the email page (the css 'hack' was my failed attempt at hiding it):
```
#CallBackForm
{
margin-top:65px;
padding:10px 10px 15px 10px;
background-color:#eef7ff;
border:1px solid #ccc;
height:260px;
overflow:hidden;
}
/** html .centerform
{
background-color:white!important;
border:1px solid white!important;
display:none;
visibility:hidden;
height:0;
}*/
.centerform
{
margin-left:auto;
margin-right:auto;
width:360px;
}
```
---
```
<div id="CallBackForm">
<div class="centerform">
<p>Please fill out the following form and Perri Building will contact you shortly!</p>
<% using (Html.BeginForm("CallBack","Home", FormMethod.Post, new {@id="CallBack"})) {%>
<%= Html.ValidationSummary(true) %>
<div class="grid_3">
<%= Html.LabelFor(model => model.FName) %>
</div>
<div class="grid_6">
<%= Html.TextBoxFor(model => model.FName) %><%= Html.ValidationMessageFor(model => model.FName) %>
</div>
<div class="clear"></div>
<div class="grid_3">
<%= Html.LabelFor(model => model.LName)%>
</div>
<div class="grid_6">
<%= Html.TextBoxFor(model => model.LName)%><%= Html.ValidationMessageFor(model => model.LName)%>
</div>
<div class="clear"></div>
<div class="grid_3">
<%= Html.LabelFor(model => model.Phone)%>
</div>
<div class="grid_6">
<%= Html.TextBoxFor(model => model.Phone)%><%= Html.ValidationMessageFor(model => model.Phone)%>
</div>
<div class="clear"></div>
<div class="grid_9">
<%= Html.GenerateCaptcha() %>
</div>
<div class="grid_8" style="text-align:right;"><input type="submit" value="Send" /></div>
<% } %>
</div>
</div>
```
I found out if I put text here in the code, I'd get these results:
```
<div id="CallBackForm">
<div class="centerform">
<% using (Html.BeginForm()) { %>
//.....
<% } %>
test1
</div>
test2
</div>
test3
```

So for some reason IE assumes I want every div inside of container `CallBackForm` to have the same style applied to it.
Any suggestions?
# EDIT:
It is something with the form generated by MVC. I commented out the contents of the form, double box in IE still. Commenting out the entire form (between the `<% %>` tags) results in one box in all browsers. Will continue experimenting.
## CSS:
```
@import 'reset.css';
@import 'text.css';
@import '960_24_col.css';
/* 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;
}
/* Styles for recaptcha
-----------------------------------------------------------*/
.recaptchatable .recaptcha_image_cell, #recaptcha_table {
background-color:transparent !important; /*reCaptcha widget background color*/
}
#recaptcha_table {
border-color: transparent !important; /*reCaptcha widget border color*/
}
#recaptcha_response_field {
border-color: #abadb3 !important; /*Text input field border color*/
background-color: white !important; /*Text input field background color*/
}
#recaptcha_logo , #recaptcha_tagline
{
display:none !important;
}
/* Styles for front page layout
-----------------------------------------------------------*/
#top_border
{
height:1px;
margin-bottom:2px;
border-bottom:1px solid #42699d;
}
#bottom_border
{
height:1px;
margin: 2px 0px 2px 0px;
border-bottom:1px solid #42699d;
}
#layout_main
{
margin-top:15px;
}
#top_nav
{
display:block;
height:54px;
}
#side_ads
{
margin-left:-10px;
}
#side_ads .first
{
margin-top:3px;
margin-bottom:2px;
}
#side_ads .second
{
margin-top:10px;
margin-bottom:10px;
}
#side_ads .third
{
margin-top:2px;
}
#testimonials
{
margin-left:5px;
background-image: url("images/page_curl.png");
background-repeat: no-repeat;
display:block;
height:338px;
}
#testimonials .content
{
margin-left:20px;
margin-top:30px;
width:225px;
}
#testimonials h2
{
font-weight:bold;
font-size:14px;
}
#testimonials p.body
{
display:block;
height:175px;
}
#testimonials p.by
{
font-style:italic;
text-align:right;
width:200px;
}
#testimonials .buttons
{
margin-top:110px;
}
#bottom_links
{
margin-top:10px;
text-align:center;
}
#bottom_links p
{
margin:0px;
color:#9a081b;
}
#bottom_links a
{
color:#42699d;
text-decoration:none;
}
#bottom_links a:hover
{
border-bottom:1px solid #42699d;
}
/* Styles Product Pages
-----------------------------------------------------------*/
#side_img
{
margin-left:-10px;
margin-top:3px;
}
#product_content
{
padding:0px 5px 5px 5px;
display:block;
width:639px;
height:185px;
background-color:#dcd2c3;
border:1px solid black;
}
#product_content h2
{
margin-bottom:0px;
font-weight:bold;
color:#970016;
font-size:24px;
}
#product_content p
{
text-align:justify;
margin-top:0px;
width: 515px;
font-size:12px;
}
#product_content #content_image
{
position:relative;
top:58px;
float:right;
display:block;
width:112px;
height:92px;
}
/* Styles Mailing Pages
-----------------------------------------------------------*/
#mail_ads
{
}
#mail_ads .first
{
margin-top:3px;
margin-bottom:2px;
}
#mail_ads .second
{
margin-top:10px;
margin-bottom:10px;
}
#mail_ads .third
{
margin-top:2px;
}
/*#mail_content
{
display:block;
}*/
#CallBackForm
{
margin-top:65px;
padding:10px 10px 15px 10px;
background-color:#eef7ff;
border:1px solid #ccc;
height:260px;
overflow:hidden;
}
.centerform
{
margin-left:auto;
margin-right:auto;
width:360px;
}
```
HTML Source (as rendered by IE):
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Request a Callback
</title>
<link href="/Content/Site.css" type="text/css" rel="Stylesheet" />
</head>
<body>
<form name="aspnetForm" method="post" action="CallBack" id="aspnetForm">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTEwNTM3NTY3MTNkZIccQzHp+0a2l4J4rJdeDfOAYoCO" />
</div>
<div class="container_24" id="layout_main">
<div class="grid_10" id="logo">
<a href="/"><img alt="Perri Building &amp; Renovations" src="/Content/images/logo.png" /></a>
</div>
<div class="grid_14" id="top_nav">
Navigation stuff goes here
</div>
<div class="clear">
</div>
<div class="grid_24" id="top_border"></div>
<div class="grid_7" id="mail_ads">
<a href="/Product/Windows"><img alt="Perri Windows" class="first" src="/Content/images/windows_ad.jpg" /></a>
<a href="/Product/Siding"><img alt="Perri Siding" class="second" src="/Content/images/siding_ad.jpg" /></a>
<a href="/Product/Roofing"><img alt="Perri Roofing" class="third" src="/Content/images/roofing_ad.jpg" /></a>
</div>
<div class="grid_12" id="mail_content">
<div id="CallBackForm">
<div class="centerform">
<p>Please fill out the following form and Perri Building will contact you shortly!</p>
<form action="/Home/CallBack" method="post">
<div class="grid_3">
<label for="FName">First Name:</label>
</div>
<div class="grid_6">
<input id="FName" name="FName" type="text" value="" />
</div>
<div class="clear"></div>
<div class="grid_3">
<label for="LName">Last Name:</label>
</div>
<div class="grid_6">
<input id="LName" name="LName" type="text" value="" />
</div>
<div class="clear"></div>
<div class="grid_3">
<label for="Phone">Phone Number:</label>
</div>
<div class="grid_6">
<input id="Phone" name="Phone" type="text" value="" />
</div>
<div class="clear"></div>
<div class="grid_9">
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'clean',
tabindex : 0
};
</script><script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6Lc608ASAAAAAPi_2PD2wK1P_o3r2daH0j1B26Eu">
</script><noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=6Lc608ASAAAAAPi_2PD2wK1P_o3r2daH0j1B26Eu" width="500" height="300" frameborder="0">
</iframe><br /><textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea><input name="recaptcha_response_field" value="manual_challenge" type="hidden" />
</noscript>
</div>
<div class="grid_8" style="text-align:right;"><input type="submit" value="Send" /></div>
</form>
</div>
</div>
</div>
<div class="grid_24" id="bottom_border">
</div>
<div class="grid_8">
<a href="/Product/Windows"><img alt="Perri Windows" src="/Content/images/windows.jpg" /></a>
</div>
<div class="grid_8">
<a href="/Product/Roofing"><img alt="Perri Roofing" src="/Content/images/roofing.jpg" /></a>
</div>
<div class="grid_8">
<a href="/Product/Siding"><img alt="Perri Siding" src="/Content/images/siding.jpg" /></a>
</div>
<div class="clear" style="margin: 5px 0px 5px 0px;"> </div>
<div class="grid_8">
<a href="/"><img alt="Perri Insulation" src="/Content/images/insulation.jpg" /></a>
</div>
<div class="grid_8">
<a href="/"><img alt="Perri Gutters" src="/Content/images/gutters.jpg" /></a>
</div>
<div class="grid_8">
<a href="/"><img alt="Perri Patio Doors" src="/Content/images/patio.jpg" /></a>
</div>
<div class="clear">
</div>
<div class="grid_14 push_5" id="bottom_links">
<p><a href="/Product/Windows">Windows</a> | <a href="/Product/Roofing">Roofing</a> | <a href="/Product/Siding">Siding</a> | <a href="#">Insulation</a> | <a href="#">Gutters & Gutter Protection</a> | <a href="#">Patio Doors</a></p>
<p><a href="#">Kitchens</a> | <a href="#">Bathrooms</a> | <a href="#">Additions</a> | <a href="#">Decks</a> | <a href="#">Doors</a></p>
</div>
</div>
</form>
</body>
</html>
```
Image composite from IE Dev tools:

| CSS quirk with IE8, any suggestions? | CC BY-SA 2.5 | null | 2011-01-24T22:21:14.243 | 2011-01-24T23:48:12.790 | 2011-01-24T23:47:12.073 | 25,515 | 25,515 | [
"css",
"asp.net-mvc",
"internet-explorer-8"
]
|
4,788,032 | 1 | 4,792,256 | null | 2 | 2,870 | I am running the following command to draw a few X,Y points in gnuplot:
plot "Output.tsv" using ($2+3):($3+3):1 with labels, "Output.tsv" using 2:3
Some of the data points are very close to each other and it makes the label unreadable. Is there a way to ask gnuplot to eliminate/reduce the overlap between labels?

| How to prevent labels to overlap | CC BY-SA 2.5 | 0 | 2011-01-24T22:36:43.433 | 2011-01-25T10:17:38.300 | null | null | 42,024 | [
"gnuplot"
]
|
4,788,105 | 1 | null | null | 2 | 142 | I did this layout here: [http://www.2xfun.com/](http://www.2xfun.com/)
It uses some css3 effects and stuff which are not supported in every browser, but if they dont work its fine.
The thing is that i really tried to keep the essentials working in old browsers.
I didnt use any negativ margins, which i know of make problems in IE 6 etc
But if i look at it in IE 6 the layout gets messy. The elements are completely garbled.
Where did I fail so terribly? I don't need an analysis of all my errors because i know its by far not perfect. But what positioning css directives are so wrong that they cause IE6 to mess everything up?
So my question is:
- -
addendum:
this is how the page looks like in ie6

and after Šime Vidas's javascript fix

and this is how it should look like and looks like in modern browsers

| What did I do wrong in this CSS Layout? | CC BY-SA 2.5 | null | 2011-01-24T22:47:16.737 | 2011-01-25T02:35:24.800 | 2011-01-25T00:09:21.333 | 413,910 | 413,910 | [
"html",
"css",
"layout"
]
|
4,788,137 | 1 | 4,788,180 | null | 2 | 1,556 | I'm trying to dynamically create a datatemplate for a listbox. This is for a Custom UserControl. This UserControl has a which accepts any types of .
This works fine... But the Output is always
- -
if the objects contains 2 Properties. But i want that the properties are arranged side by side. Like:
Object 1:
-
Object 2:
-
So where am i wrong ? i'm making first a Stackpanel and in the Stackpanel, Dockpanels which contain the Labels.
Here is a little preview how it looks at the moment.
So this is my code to create the datatemplate:
```
DataTemplate _NewData = new DataTemplate();
FrameworkElementFactory _template = new FrameworkElementFactory(typeof(StackPanel));
foreach (var _FProperty in view.CurrentItem.GetType().GetProperties())
{
FrameworkElementFactory _firstTemplateChild = new FrameworkElementFactory(typeof(DockPanel));
FrameworkElementFactory _childOneForDock = new FrameworkElementFactory(typeof(Label));
_childOneForDock.SetValue(Label.ContentProperty, _FProperty.Name);
_firstTemplateChild.AppendChild(_childOneForDock);
FrameworkElementFactory _childTwoForChild = new FrameworkElementFactory(typeof(Label));
_childTwoForChild.SetBinding(Label.ContentProperty, new Binding(_FProperty.Name));
_firstTemplateChild.AppendChild(_childTwoForChild);
_template.AppendChild(_firstTemplateChild);
}
_NewData.VisualTree = _template;
ListBoxInPopUp.ItemTemplate = _NewData;
```
| C# WPF Programatically created DataTemplate Dockpanel in Stackpanel has no effect | CC BY-SA 2.5 | 0 | 2011-01-24T22:51:16.943 | 2011-01-24T23:07:44.120 | null | null | 424,226 | [
"c#",
"wpf",
"custom-controls",
"datatemplate",
"frameworkelement"
]
|
4,788,211 | 1 | 4,956,872 | null | 2 | 3,192 | I'm trying to work out how to create the layout for a gridview for my game. I have a gridview which will be the level selector. At the moment I have each gridview item as a TextView, just showing the Level Number (1, 2, 3, etc).
I would like to add 3 imageviews over the top of the textview and be able to manipulate the image shown in the views. The 3 image views are stars, showing what difficulty the level was completed on.
I figure I need to write my own Adapter and inflate the XML layout when creating the views for the grid items but I'm stuck with how to create the actual layout for this, the overlapping part has me scratching my head?
Here's a mockup of what I've tried to describe, and what I want to create:

PS. I know I could use 4 images and set the textview background to one of those images but I wondered if there was a more technical way of creating the layout.
| Android custom gridview layout (textview with imageview on top) | CC BY-SA 2.5 | 0 | 2011-01-24T23:00:56.510 | 2011-02-10T12:08:16.190 | null | null | 563,718 | [
"android",
"gridview",
"layout"
]
|
4,788,256 | 1 | 4,880,380 | null | 3 | 606 | following code:
```
self.dataTableViewController = [[DataTableViewController alloc] initWithStyle:UITableViewStylePlain];
CGRect tableViewRect = self.dataTableViewController.view.frame;
tableViewRect.origin.x = 0.0f;
tableViewRect.origin.y = 91.0f;
//tableViewRect.size.width = 320.0f;
//tableViewRect.size.height = 613.0f;
self.dataTableViewController.view.frame = tableViewRect;
[self.view addSubview:self.dataTableViewController.view];
```
my tableviewcontroller shows up and everything is working, its also positioned on the right position.
but the size of my table is not correct. if i uncomment my two lines of code for the size property, the tableview disappears from my uiview and i have no idea why.
some ideas?
okay there's a strange behavior.
my viewcontroller where my tableview gets displayed is in a splittableviewcontroller (left side)
`self.contentSizeForViewInPopover = CGSizeMake(320.0, 704.0);` does not have any effect on my popovercontroller. i left it default, from the splittableviewcontroller template. its always the full height if i'm in portrait mode.
uncommenting `tableViewRect.size.height = 613.0f;` works, uncommenting the width not. setting my height to 613px i get a tableview which is 313px high. What!? Setting my height to `913.0f` works, its perfect in landscape AND portrait. what i don't understand is, in landscape it should only be 613px high. and i would like to set the height of my popover to the same height as my viewcontroller in landscape, so that my tableview is always 613 high. no idea whats happening there.
my tableview with 913px:


| tableview disappears after changing view size | CC BY-SA 2.5 | 0 | 2011-01-24T23:08:59.937 | 2011-02-02T21:59:24.993 | 2011-01-25T21:24:54.340 | 253,288 | 253,288 | [
"iphone",
"objective-c",
"ipad",
"uitableview",
"positioning"
]
|
4,788,339 | 1 | 4,788,363 | null | 2 | 1,785 | I am trying to figure out why is there empty space at the bottom of my table? How can I delete that space?

Here is the code:
```
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#CDD2FF">
<tr>
<td style="vertical-align:bottom">
<ul>
<li>
<a href="x.php">Item</a>
</li>
<li>
<a href="x.php">Item</a>
</li>
<li>
<a href="x.php">Item</a>
</li>
</ul>
</td>
</tr>
</table>
```
| How can I delete empty space at the bottom of my table? | CC BY-SA 2.5 | null | 2011-01-24T23:19:49.743 | 2011-01-24T23:24:23.600 | null | null | 1,267,363 | [
"html"
]
|
4,788,604 | 1 | null | null | 2 | 2,238 | Take my navigationItem usercontrol:
```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Uboldi.Helpers;
namespace Uboldi
{
public partial class NavigationItem : UserControl
{
public bool IsSelected { get; set; }
public string Text { get; set; }
public NavigationItem()
{
InitializeComponent();
RefreshDisplay();
}
private void RefreshDisplay()
{
if (IsSelected)
this.BackColor = CustomizationHelper.GetSecondaryColor();
else
this.BackColor = CustomizationHelper.GetPrimaryColor();
}
}
}
```
In Visual Studio I can see the IsSelected property, but not the Text property.

Any reason why?
| Why are certain control properties shown in the Visual Studio designer, and others not? | CC BY-SA 2.5 | 0 | 2011-01-24T23:58:18.607 | 2011-01-25T02:24:42.280 | 2011-01-25T00:01:25.610 | 189,516 | null | [
"c#",
"visual-studio",
"designer",
"propertyeditor"
]
|
4,788,865 | 1 | 4,790,338 | null | 1 | 1,410 | I have developed a custom webpart which is being displayed correctly and has some external parameters and being supplied when it is used in the page.
There is a problem in displaying that webpart in edit mode. In edit mode it is not visible as the page footer comes up and only little portion of the webpart is being displayed. To see the whole webpart I need to scroll through. This problem is happening only when the web part is in edit mode.
In Display mode it is Fantastic.
The Way it looks on the Page in Edit Mode is:

Could anyone point me whats being missed and why it is happening?
Thank You
Hari Gillala
| Sharepoint webpart- edit mode Display | CC BY-SA 2.5 | null | 2011-01-25T00:40:08.663 | 2011-01-25T05:34:32.370 | null | null | 424,611 | [
"sharepoint-2007"
]
|
4,789,099 | 1 | null | null | 6 | 713 | OS: WinXP
VS2010
The default setting for Visual Studio tabs is when mouse over it, the window will popup. This is annoying sometimes when I don't want the window displayed. Is there any way to disable this auto popup and just display when I click it? Please advise, thanks.

| Disable mouse over Visual Studio bottom tabs to popup | CC BY-SA 2.5 | 0 | 2011-01-25T01:24:25.880 | 2011-01-25T10:33:05.833 | null | null | 248,430 | [
"visual-studio-2010"
]
|
4,789,295 | 1 | 4,791,244 | null | 2 | 9,343 | I have this:

I would like the highlight and the border around the options box not to be blue, which seems to be the system default. Is there a way to style the select options via CSS, or does the system control this?
As you can see, I was able to style the background and the font, it's just the annoying blue colour that bugs me.
I'm not interested in jQuery solutions (already using jQuery Uniform and I'm quite happy with it). I don't care about it looking the same across all browsers. Even if only certain browsers (Firefox & Chrome) can be targeted, I'll be satisfied.
| Styling select options | CC BY-SA 2.5 | 0 | 2011-01-25T02:02:15.113 | 2022-08-31T16:06:15.297 | 2022-08-31T16:06:15.297 | 1,007,220 | 244,727 | [
"html",
"css",
"html-select"
]
|
4,789,479 | 1 | 4,886,969 | null | 29 | 3,735 | I'm making a Java Application on Linux that uses sytray [using Java 6 and Swing](http://download.oracle.com/javase/tutorial/uiswing/misc/systemtray.html). The app looks great (uses the system look and feel) but the systray looks awful. I mean the systray menu looks like old widgedts (Motif?). I wonder if there is a way to set a look and feel or something to make prettier.
Heres a screenshot of the tray:

| Make the java systray look prettier in Linux | CC BY-SA 2.5 | 0 | 2011-01-25T02:39:01.673 | 2020-02-10T14:57:36.910 | 2011-01-25T02:54:02.787 | 196,886 | 196,886 | [
"java",
"swing",
"systray"
]
|
4,789,485 | 1 | 4,789,506 | null | 3 | 1,054 | After running following codes, in 32bit process, the data converted automatically.
```
HKEY hSubKey;
DWORD dwState;
RegCreateKeyEx(HKEY_CURRENT_USER, L"TestKey", NULL, NULL,
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hSubKey, &dwState);
std::wstring data = L"%ProgramFiles%";
RegSetValueEx(hSubKey, L"TestValue", NULL, REG_EXPAND_SZ,
(BYTE*)data.c_str(), (DWORD)(data.size() * sizeof(WCHAR)) + sizeof(WCHAR));
```

<-
What the hell. Who expands it?
I don't want to convert the data. -But I have to use type .
How do I do?
| 64bit windows registry - why is %ProgramFiles% converted to %ProgramFiles(x86)%? | CC BY-SA 2.5 | 0 | 2011-01-25T02:40:04.663 | 2011-01-25T03:48:53.960 | 2011-01-25T03:48:53.960 | 252,047 | 252,047 | [
"windows",
"winapi",
"registry",
"wow64"
]
|
4,789,518 | 1 | 4,789,575 | null | 1 | 511 | I am trying to implement something like Yahoo Avatars where there is a fixed background image and then I arrange several items in the foreground creating an avatar.

What I am doing now is creating a lot of combination image patterns. Then assign every image pattern a binary number. On website I generate the binary number using some data and refer the image specific to the number.
This does the job but takes a lot of space and the work becomes redundant if I have to change some image pattern. I can of course automate the Fireworks exporting slices process but I want to know if there is some better way I can implement this.
I can may be implement this using transparent PNGs, CSS z-index and absolute positioning but this will require a lot of tweaks to make it compatible across all browsers.
Is there some way this can be using SVG/Javascript or may be ActionScript/Flex or some other way? Can somebody suggest some options for this?
| How to display avatar like images with layers on a webpage | CC BY-SA 2.5 | null | 2011-01-25T02:46:47.653 | 2011-01-25T03:11:54.583 | null | null | 206,613 | [
"css",
"svg",
"z-index",
"css-position"
]
|
4,789,693 | 1 | 4,789,728 | null | 0 | 61 | Here's a screenshot of my application:

Basically, depending on what option is selected I'd like to show another 'content' which can be a buttons, or forms or whatever.
What would be the best choice for this? Using MDI? I'm really new to this type of thing.
| What would be the best course of action for display different form in a single Winform? | CC BY-SA 2.5 | null | 2011-01-25T03:28:13.080 | 2011-01-25T03:38:59.700 | null | null | null | [
"c#",
"winforms"
]
|
4,789,787 | 1 | 4,789,896 | null | 0 | 342 | I need print two words: "" and "" using java 2D
font size = 100;
"" font family: Bodoni MT Poster Compressed
"" font family: Arial
I writed below codes to do it:
```
BufferedImage image = new BufferedImage(400, 300, BufferedImage.TYPE_INT_RGB);
Graphics g = image.getGraphics();
{//fill bg color
g.setColor(new Color(255,255,255));
g.fillRect(0, 0, image.getWidth(), image.getHeight());
}
int FONT_SIZE=100;//set font size
{//print A
g.setColor(new Color(0,0,0));
g.setFont(new Font("Bodoni MT Poster Compressed", Font.PLAIN ,FONT_SIZE));
g.drawString("A",0,FONT_SIZE);
}
{//print B
g.setColor(new Color(0,0,0));
g.setFont(new Font("Arial", Font.PLAIN ,FONT_SIZE));
g.drawString("B",FONT_SIZE,FONT_SIZE);
}
g.dispose();
```
I get the result image: 
but I need like this (make by PhotoShop):
I think the question at `g.drawString("B",FONT_SIZE,FONT_SIZE);`
How can I get the font X offset width?
thanks for help :)
| how can I get Font X offset width in java2D? | CC BY-SA 2.5 | null | 2011-01-25T03:47:59.713 | 2011-01-25T04:12:40.300 | 2020-06-20T09:12:55.060 | -1 | 165,589 | [
"java",
"java-2d"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.