Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
6,501,417
1
6,512,193
null
3
969
In my Delphi 2009 application, I have this window: ![enter image description here](https://i.stack.imgur.com/kU91P.gif) It has a TPageControl that has a TTabSheet on it as well as buttons at the bottom that operate on all sheets. On the left of the TTabSheet is a TElXTree (a tree/grid component by LMD) and on the right of the TTabSheet is a TPanel containing buttons specific to just this sheet. When I have a row selected in the TElXTree, and I click on any button in either set of buttons, the buttons all work fine. Now within the TElXTree, the column labelled "Text" is editable with an Inplace-Editor supplied with TElXtree. When I click on the Text, it goes into edit mode. When in edit mode, when I click anywhere in the TElXTree (e.g. on the checkbox), it will exit the editor AND process the command (i.e. check or uncheck the checkbox). However, when in edit mode, when I click on any button in either set of buttons, it will simply exit the inplace-editor and NOT process the button. I then have to click on the button again to process that button. Is there something simple that I am not doing or not understanding here that would allow me to click on one of those buttons and allow it to both exit my inplace editor AND process the button? --- Followup: Thanks to @NGLN's answer, I got my workaround. I used his Application.OnMessage method, which I was previously using anyway for some Drag and Drop code. I had to make some changes though, and this is what I came up with: ``` procedure TMainForm.AppMessageHandler(var Msg: TMsg; var Handled: Boolean); var P: TPoint; begin if Msg.message = WM_LBUTTONDOWN then if Screen.ActiveControl <> nil then if Screen.ActiveControl.ClassNameIs('TElInpEdit') then begin GetCursorPos(P); { When in the inplace editor, I need to go to its parent ElXTree } { because the ElXTree does not have the problem. } { Only components outside the ElXTree do } with Screen.ActiveControl.Parent do if not PtInRect(ClientRect, ScreenToClient(P)) then begin { The WM_Killfocus didn't work for me, but it gave me this idea: } { 1. Complete the operation, and 2. Simulate the mouse click } InplaceEdit.CompleteOperation(true); Mouse_Event(MOUSEEVENTF_ABSOLUTE or MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); Mouse_Event(MOUSEEVENTF_ABSOLUTE or MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); { Then skip the regular handling of this WM_LBUTTONDOWN } Handled := true; end; end; end; ```
How Can I Exit My Inplace-Editor AND Process the Button in Delphi?
CC BY-SA 3.0
null
2011-06-28T04:08:34.217
2011-07-08T03:15:54.743
2011-07-08T03:15:54.743
30,176
30,176
[ "delphi", "button", "inplace-editing" ]
6,501,538
1
null
null
4
515
Using the example from [Hadley's website](http://had.co.nz/ggplot2/scale_continuous.html): `> (m <- qplot(rating, votes, data=subset(movies, votes > 1000), na.rm = T))` Which creates: ![example figure](https://i.stack.imgur.com/LRiN6.png) Is it possible to determine what the ticks marks after creating the plot object? (I want to remove the first auto-generated breakpoint) In the above plot, one can clearly see that the x-axis breaks are at 2 through 9. To obtain this manually, use: `m + scale_x_continuous( breaks = c(2:9) )` But I would like to determine, from the figure, what the tick marks are so that I can remove some of them. In other words, is there a function which will return the tick marks: `myBreaks <- tickMarks(m)` So that I can subsequently call: `m + scale_x_continuous( breaks = myBreaks[-1] )` where I've removed the first break from the array.
R { ggplot2 } Is it possible to query what the tick marks are for a plot?
CC BY-SA 3.0
null
2011-06-28T04:25:47.213
2011-06-28T06:42:28.123
null
null
317,773
[ "r", "ggplot2", "axis-labels" ]
6,501,968
1
9,802,202
null
15
20,399
Given I have a background drawable to create bulletpoints for TextViews like this: ![Example of what I want](https://i.stack.imgur.com/LpRkn.png) Then my XML code looks like this: ``` <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:right="235dp"> <shape android:shape="oval"> <padding android:left="10dp" /> <size android:height="5dp" android:width="5dp"/> <solid android:color="@color/my_pink"/> </shape> </item> <item android:left="10dp"> <shape android:shape="rectangle"> <solid android:color="#ffffff"/> <padding android:left="10dp" /> </shape> </item> </layer-list> ``` But once I use the code shown above, my bullet points look like this: ![Result of the XML shown above](https://i.stack.imgur.com/ejsHP.png) It seems the `<size>` tag is ignored completely. How would you solve this problem? Using a 9patch, yes I know.. perhaps that's the easiest to do.. but in fact I was hoping to find a XML solution as it's more flexible in the future. Custom drawing is also out of the question.
<size> attribute not useful when using layer-list?
CC BY-SA 3.0
0
2011-06-28T05:30:38.500
2015-06-09T19:03:57.917
null
null
375,209
[ "android" ]
6,502,495
1
null
null
0
175
I have one Web Application along with its set up and One Console Application. Please let me know what shall be possible options where One installer includes both these Applications. facing error ![enter image description here](https://i.stack.imgur.com/GMXWs.jpg)
Web-Application and windows applications together
CC BY-SA 3.0
null
2011-06-28T06:35:19.160
2011-06-28T12:11:39.530
2011-06-28T12:11:39.530
554,828
554,828
[ "c#", "asp.net", "web-applications", "windows" ]
6,502,502
1
6,502,745
null
10
698
The label and the field are easy; we have `<label>` and then the relevant input field. But what is the most semantically-correct HTML element to use for the smaller informational text that goes under the field? ![enter image description here](https://i.stack.imgur.com/fuEjj.png)
What is the most semantically-correct HTML element for a form field hint/note?
CC BY-SA 3.0
null
2011-06-28T06:35:47.133
2011-06-28T09:07:32.350
null
null
98,389
[ "html", "forms", "semantics" ]
6,502,770
1
6,516,439
null
2
2,020
I am trying to install EGit from [this](http://www.vogella.de/articles/EGit/article.html#eclipseinstallation) tutorial. It says to add the plugin url in Help -> Install New Software. Put In my Case I am not getting the add button on Install New Software dialog (see Image)![Install New Software Dialog](https://i.stack.imgur.com/K9kBx.png). My eclipse version is ![enter image description here](https://i.stack.imgur.com/Q3pjC.png)
Unable to Install EGit in Eclipse
CC BY-SA 3.0
0
2011-06-28T07:00:07.367
2011-06-29T06:15:00.057
null
null
236,639
[ "eclipse", "git", "eclipse-plugin", "egit" ]
6,502,847
1
6,503,469
null
0
677
I try to add a date picker in action sheet , also give another button It looks like the image ![enter image description here](https://i.stack.imgur.com/LS0eL.png) I can get the time when I roll the picker But that small Done button not work... I can't even to touch it. This is my code ,not too much ... I can't figure why the button not working ? ``` - (IBAction)selectDate:(id)sender{ menu = [[UIActionSheet alloc] initWithTitle:@"Select Date" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil]; [menu setActionSheetStyle:UIActionSheetStyleBlackTranslucent]; startPickerView = [[UIDatePicker alloc] init]; startPickerView.datePickerMode = UIDatePickerModeTime; [menu sendSubviewToBack:startPickerView]; [menu showInView:self.view]; [menu setBounds:CGRectMake(0,0,320,460)]; CGRect pickerRect = startPickerView.bounds; pickerRect.origin.y = -60; startPickerView.bounds = pickerRect; [startPickerView addTarget:self action:@selector(timeChange:) forControlEvents:UIControlEventValueChanged]; UISegmentedControl *closeButton = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObject:@"Done"]]; closeButton.momentary = YES; closeButton.frame = CGRectMake(260, 7.0f, 50.0f, 30.0f); closeButton.segmentedControlStyle = UISegmentedControlStyleBar; closeButton.tintColor = [UIColor blackColor]; [closeButton addTarget:self action:@selector(dismissActionSheet:) forControlEvents:UIControlEventTouchUpInside]; [menu addSubview:startPickerView]; [menu addSubview:closeButton]; [closeButton release]; [menu release]; [startPickerView release]; ``` } Many thanks for any reply~ Webber
Why the button in the action sheet is not work?
CC BY-SA 3.0
null
2011-06-28T07:07:56.903
2011-06-28T08:17:08.737
null
null
437,132
[ "objective-c", "ios", "uidatepicker", "uiactionsheet" ]
6,503,031
1
null
null
1
424
![interface ](https://i.stack.imgur.com/3Kbyh.png) ![enter image description here](https://i.stack.imgur.com/bFQIR.png) hello every one i am facing a problem . i have a list view in which i am displaying the items retrieved from the file my file is my file each line of file contain tab separated entries (sample file attached) but when i display it in my list view, item didnt appear aligned.here is the code ``` void list_load(QStandardItem * root) { FILE * f; f=fopen("/home/cv/mod2an3run/output/mod3run/sample.txt","r"); if(f==NULL) { printf("not open"); root->appendRow(new QStandardItem("ash")); } QString buffer =""; char ch = ' '; while (ch!=EOF) { ch = fgetc(f); if(ch!='\n') { buffer = buffer+ch; } if(ch=='\n') { QString status= range(prob); buffer = buffer +"\t"+ status ; root->appendRow(new QStandardItem(buffer)); buffer=""; } } //while end fclose(f); }// func end ``` i have attached my interface and sample file out put kindly help me to align my list box items
list box alignment problem
CC BY-SA 3.0
null
2011-06-28T07:27:06.403
2011-06-28T09:22:51.837
2011-06-28T07:52:30.850
428,857
816,821
[ "c++", "linux", "qt" ]
6,503,035
1
6,503,981
null
4
13,594
I'm having a bit of trouble with some CSS, and am seeking some help from this wonderful community. I am trying to build a layout containing the following elements: 1) A header area 2) A footer area 3) A left hand pane 4) A content area I have come up with the following CSS, but I do not believe this is the best way of doing what I need. Please find below an image of what I am looking for, with all the details. Additionally, below is my current CSS and html. CSS: ``` * { margin: 0; } html, body { height: 100%; overflow: hidden; } #wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -100px; } #leftbar { float: left; width: 350px; background-color: #EAEAEA; height: 100%; position: absolute; z-index: -1; } #rightbar { } #footer { height: 100px; } #header { height: 100px; } ``` HTML: ``` <div id="wrapper"> <div id="header"> </div> <div id="content"> <div id="leftbar"> </div> <div id="rightbar"> </div> </div> </div> <div id="footer"> </div> ``` Desired layout: ![enter image description here](https://i.stack.imgur.com/5V1BE.jpg) Please note that although I don't mind using jQuery and javascript to accomplish this, I'd like to avoid it. Any help will be greatly appreciated. Thanks!
Variable content div height using css with fixed header and footer
CC BY-SA 3.0
0
2011-06-28T07:27:27.177
2012-11-22T10:00:57.323
2011-06-28T08:14:21.587
818,691
818,691
[ "javascript", "jquery", "html", "css" ]
6,503,057
1
6,503,127
null
1
6,071
hwo can I change the default selection behaviour of tables, I want to make a cell selected when user click it and make it editable when user double click it. with @nonty 's help, I get what I want. ![enter image description here](https://i.stack.imgur.com/eDBZV.jpg) here is my cell highlighter implemention: ``` package com.amarsoft.rcputil; import org.eclipse.jface.viewers.ColumnViewer; import org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter; import org.eclipse.jface.viewers.ViewerCell; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Color; public class DefaultCellFocusHighlighter extends FocusCellOwnerDrawHighlighter { public DefaultCellFocusHighlighter(ColumnViewer viewer) { super(viewer); } protected boolean onlyTextHighlighting(ViewerCell cell) { return false; } protected Color getSelectedCellBackgroundColor(ViewerCell cell) { return cell.getControl().getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE); } protected Color getSelectedCellForegroundColor(ViewerCell cell) { return cell.getControl().getDisplay().getSystemColor(SWT.COLOR_WHITE); } protected Color getSelectedCellForegroundColorNoFocus(ViewerCell cell) { return cell.getControl().getDisplay().getSystemColor(SWT.COLOR_WHITE); } protected Color getSelectedCellBackgroundColorNoFocus(ViewerCell cell) { return cell.getControl().getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE); } protected void focusCellChanged(ViewerCell newCell, ViewerCell oldCell) { super.focusCellChanged(newCell, oldCell); } } ``` the code to use it : ``` TableViewerFocusCellManager focusCellManager = new TableViewerFocusCellManager(tv,new DefaultCellFocusHighlighter(tv)); ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(tv) { protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) { return event.eventType == ColumnViewerEditorActivationEvent.TRAVERSAL || event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION || (event.eventType == ColumnViewerEditorActivationEvent.KEY_PRESSED && event.keyCode == SWT.CR) || event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC; } }; TableViewerEditor.create(tv, focusCellManager, actSupport, ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION); ``` but I got new problem : ![enter image description here](https://i.stack.imgur.com/3Klus.jpg) when I double click on cell to edit it's value, there is a little area at the left side of the cell is still highlighted with dark blue color I know why : still seeking for fixing...
eclipse rcp :how to select a single cell in tableviewer?
CC BY-SA 3.0
0
2011-06-28T07:30:08.393
2015-09-15T11:36:21.403
2011-06-28T13:51:03.340
703,261
703,261
[ "eclipse-rcp" ]
6,503,088
1
6,512,765
null
0
367
I am trying to overrride the banner in my custom wix ui. I have successfully done this using The banner normally looks like this: ![enter image description here](https://i.stack.imgur.com/KNaxx.png) When I build the MSI and run it the banner is replaced but there are weird artifacts in it like this: ![enter image description here](https://i.stack.imgur.com/Pwy3G.png) The edges seem to have gone all jagged (note the white up the top was me blanking out product name) Is there a reason why the image goes like this and possible a way to avoid it? Irfanview shows the following for the image properties: ![enter image description here](https://i.stack.imgur.com/NsfQ5.png)
wix override ui banner causing artifacts
CC BY-SA 3.0
null
2011-06-28T07:32:49.770
2011-06-29T00:36:12.287
null
null
351,614
[ "user-interface", "wix", "banner" ]
6,503,098
1
null
null
2
396
I've got a Java Enterprise Web Application which uses Tomcat6+Struts+Hibernate+MySql. at the time being it's publicly up and running on a single server. In order to performance issues we should move the application to a clustered environment. Anyhow I wanna use Tomcat6 clustering as below: - - - - something like this ![this](https://i.stack.imgur.com/2fncN.jpg) The load balancer machine receives all the requests and depending on the balancing algorithm redirects them to the respective tomacat6 machine. After doing the business part, the response is returned to the webserver and at the end to the user. In this scenario the front-end machine processes all the requests and responses so it'd be a bottleneck point in the application. In Apache Tomcat clustering, is there a way to load balancing mechanism and web servers? I mean putting a load balancer in the front end and leave the request/response processing part to multiple web servers.
Clustering Apache Tomcat6
CC BY-SA 3.0
null
2011-06-28T07:33:25.893
2012-01-15T12:23:07.133
2012-01-15T12:23:07.133
1,060,350
413,832
[ "java", "apache", "tomcat6", "mod-proxy", "cluster-computing" ]
6,503,319
1
6,503,357
null
1
228
I basically have the folder structure like this: ![enter image description here](https://i.stack.imgur.com/UARra.png) Is it safe to share the folder (Optimate) or will it compromise the push username/password I have stored for this repository?
Where is this username / password stored?
CC BY-SA 3.0
null
2011-06-28T07:54:34.923
2011-06-28T16:59:55.593
null
null
390,330
[ "mercurial", "tortoisehg" ]
6,503,368
1
null
null
4
2,294
I have a scrollview and in each row I load a picture plus text (the picture path and text are loaded from database). The problem is that if the picture has a very high resolution, the application moves very slow, and when I scroll, it takes a while until it loads, but when I resize the picture, the scrolling becomes fluid. So, the question is: how can I make the app faster? should I load a thumbnail of the picture and load the thumbnail instead of the actual image? ![scroll image](https://i.stack.imgur.com/TyOt9.png)
Why is scrollview and app moving slow (lagging)
CC BY-SA 3.0
0
2011-06-28T08:00:11.450
2017-03-25T15:36:58.397
2017-03-25T15:36:58.397
1,033,581
700,088
[ "android", "database", "image", "scrollview", "lag" ]
6,503,435
1
6,508,758
null
2
1,650
![TableViewCell](https://i.stack.imgur.com/8D26N.png) The above is a UITableViewCell containing two UILabels. The cell has a transparent background using [UIColor clearColor] and the background pattern () is set on the UITableView using UIColor's initWithPatternImage. What I'd like to be able to do is blend the text with the background pattern so that the text has the texture coming through. The only thing is I'm not sure of is the best way of achieving this. I know I can use NSString instead of UILabels and draw the text directly into an image, but can this then be blended with the background even though it's not being drawn in the same drawRect ()? The other way is to create an image mask from the text, have another image which is already textured () and then use that to draw the text, as outlined [in this Cocoa with Love tutorial](http://cocoawithlove.com/2009/09/creating-alpha-masks-from-text-on.html). Whilst I can obviously use the tutorial to achieve the second implementation, I'm more inclined to explore the first as it'd use no external images and may be more efficient. Your thoughts, links and code examples will be greatly appreciated.
Blending with Quartz 2D
CC BY-SA 3.0
0
2011-06-28T08:07:15.363
2011-06-28T20:19:26.483
2011-06-28T17:16:00.880
null
null
[ "iphone", "objective-c", "ios", "core-graphics", "quartz-2d" ]
6,503,505
1
null
null
0
2,958
I need to create round volume control, which should looks like this sample: ![sample](https://i.stack.imgur.com/HvMxo.jpg) [http://dmonzon.com/2011/04/16/free-tabletphone-user-interface-professional-set-v-7/](http://dmonzon.com/2011/04/16/free-tabletphone-user-interface-professional-set-v-7/) Are there any tutorials or ideas which way is better for things like this?
How can I create round volume control in android?
CC BY-SA 3.0
null
2011-06-28T08:14:17.403
2011-12-11T05:10:58.173
2011-12-11T05:10:58.173
234,976
818,760
[ "android", "controls", "volume", "rounding" ]
6,503,771
1
6,504,137
null
3
6,070
I have created an array of buttons for my app. Now I am not able to manage the layout of these array of buttons. As a result of this, whenever I add image or change width of the buttons it's going out of the horizontal screen of the device. So is there any way to manage these Array of buttons so that they can fit in any screen size. Here is my code: ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:id="@+id/liVLayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> </LinearLayout> <LinearLayout android:id="@+id/liVLayout1" android:orientation="vertical" android:layout_below="@+id/liVLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TextView android:text="All Contacts" android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textColor="@android:color/black" android:background="#808080"> </TextView> </LinearLayout> </RelativeLayout> ``` ``` public class CalenderForm extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); createCalender(); } public void createCalender() { RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams ( RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT ); LinearLayout layoutVertical = (LinearLayout) findViewById(R.id.liVLayout); LinearLayout rowLayout=null; Button[][] buttons = new Button[6][7]; int count=43; for (int i = 0; i<6; i++) { if(count%7==1) { rowLayout = new LinearLayout(this); layoutVertical.addView(rowLayout,p); count=count-7; } for(int j=0;j<7;j++) { buttons[i][j]=new Button(this); buttons[i][j].setBackgroundResource(R.drawable.icon); rowLayout.addView(buttons[i][j], p); } } } ``` } Snapshot before inserting image: ![enter image description here](https://i.stack.imgur.com/uNgP7.png) Snapshot before inserting image: ![enter image description here](https://i.stack.imgur.com/dPcem.png)
How to layout Array of buttons to fit in any screen size
CC BY-SA 4.0
null
2011-06-28T08:37:22.347
2020-06-19T08:03:42.543
2020-06-19T08:03:42.543
13,363,205
806,106
[ "android" ]
6,503,972
1
6,526,936
null
2
1,719
I am looking to make a selection rectangle in Wpf items control just as in MS Excel.I have looked at decorators and adoners but got little help.I need the thick border around the cells that i select using mouse(check screenShot) ![enter image description here](https://i.stack.imgur.com/Asuq8.png)
Excel like drag selection in Wpf itemscontrol
CC BY-SA 3.0
null
2011-06-28T08:53:59.447
2020-07-03T08:25:16.827
2011-06-29T13:12:00.177
217,880
217,880
[ "c#", "wpf", "drag", "itemscontrol" ]
6,504,117
1
null
null
0
255
I have a content slider with multiple html tags which represent each tab. And within each tab has a form. Say, when I submit a form from tab2 , it reloads the page and goes back to first tab. What I would like to see is it should redirect back to where the form was submitted. Need Help :-) First Tab ![first tab](https://imgur.com/eTQDW.png) Second Tab ![second tab](https://imgur.com/xj1Ua.png)
How to handle multiple form submissions within content slider js?
CC BY-SA 3.0
null
2011-06-28T09:08:19.540
2011-06-28T09:13:56.813
null
null
523,027
[ "javascript", "html" ]
6,504,313
1
6,504,924
null
0
587
i want to index my contact with alphabets but i am not getting the correct result, suppose if i click a, b or c in each section it showing all of the contacts ? how can i make sure that contact name starts with A will be indexed only in A section. and others in there respective sections, thanks in advance. ``` -(NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section { // Normal table if (aTableView == tableView) return self.contacts.count; } - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // return self.contacts.count; return self.contacts.count; } ``` Iam using Abcontact class. also attached image for more clarification. ![repetition of same contacts](https://i.stack.imgur.com/kbE5b.png)
iphonesdk contact listing indexing problem
CC BY-SA 3.0
null
2011-06-28T09:24:30.473
2011-06-28T10:17:48.270
2011-06-28T09:59:44.540
428,240
428,240
[ "iphone", "ios4", "ios-simulator", "contacts", "addressbook" ]
6,504,433
1
6,504,474
null
0
370
I have the following: ``` using System; using System.Text; using System.Text.RegularExpressions; using System.Threading; using NUnit.Framework; using Selenium; using System.Collections.Generic; ``` but still can not get `CollectionAssert` which I found on [CollectionAssert (NUnit 2.4)](http://www.nunit.org/index.php?p=collectionAssert&r=2.4.1) The printscreen: ![in my VS2008](https://i.stack.imgur.com/BUlpT.jpg)
What is the namespace of NUnit CollectionAssert?
CC BY-SA 3.0
null
2011-06-28T09:34:34.090
2011-06-28T09:42:06.103
2011-06-28T09:42:06.103
707,580
707,580
[ "c#", "nunit" ]
6,504,720
1
null
null
4
2,576
I have gridview and I load an image in the grid and a check box to select that image. I use a .9 image as background to show borders for each image. The image and checkbox are inside a relative layout. Now I have tried everything but the checkbox wud not align itself with the border. There is always space b/w the border and the checkbox. This is the view which is loaded in the grid for each image ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/imageLayout" android:gravity="top" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/back" android:layout_gravity="center"> </ImageView> <CheckBox android:id="@+id/checkbox" android:button="@xml/checkbox" android:background="@xml/checkbox_background" android:layout_alignRight="@id/imageLayout" android:layout_alignParentRight="true" android:layout_height="wrap_content" android:layout_width="wrap_content" > </CheckBox> </RelativeLayout> ``` Is there a way I can do it. Attaching screenshot along ![](https://i.stack.imgur.com/dBMvv.png) Edit: the background image I am using is set to the imageview background
Align checkbox inside a relative layout
CC BY-SA 3.0
0
2011-06-28T09:59:27.327
2011-06-28T10:28:27.213
2011-06-28T10:09:16.327
92,837
707,627
[ "android", "gridview", "checkbox", "android-relativelayout" ]
6,504,897
1
6,646,011
null
12
4,344
The screenshot below displays my problem. The first `EditText` shows a hint in Arabic which is shifted upwards, now the second `EditText` is just for reference which shows the English version completely fine. Same goes for the `Button`. I have declared the string in `strings.xml` like this: ``` <string name="ar_login">دخول</string> ``` ![screenshot of the problem](https://i.stack.imgur.com/uKIQd.png) This is how I set the EditText's hint: ``` UserName.setTypeface(ArabicFont); String hint = getString(R.string.ar_HintUserName); .... UserName.setHint(hint); ``` I used this, but of no use: ``` UserName.setGravity(Gravity.CENTER_VERTICAL); ``` But with this, Text moved a little down; but i guess its not generic: ``` UserName.setPadding(0,15,0,0); ``` With `Padding`, `English` words move to downwards. Originally arabic texts are separated; means they are shown letter by letter. So to join them, i was using this [Arabic Reshaper](http://www.java2s.com/Open-Source/Android/UnTagged/al-qalam/org/amr/arabic/ArabicUtilities.java.htm). To Download Code, Check this [link](http://blog.amr-gawish.com/110/arabic-reshaper-goes-open-source-codename-barbetter-arabic-reshaper/) Now when i reshape the arabic text and then set on `TextView` or as `EditText's` Hint, it got shifted upwords but without reshaping it is fine. So i guess, whether i have to change the reshape class OR make my textview to not split the word. But dont know where to go?
Text align problem when using Arabic font
CC BY-SA 3.0
0
2011-06-28T10:15:42.657
2011-07-11T07:25:41.090
2011-07-11T07:25:41.090
578,215
578,215
[ "android", "android-edittext", "arabic", "text-alignment" ]
6,504,869
1
6,505,224
null
1
659
In a windows service I know I have a memory leak. How I know is outside the scope of this question but you can see the initial question [here](https://stackoverflow.com/questions/6494434/how-can-i-work-out-why-my-net-service-is-chewing-up-memory) I have a windows service with some classes: ``` public partial class VLSService : ServiceBase { ReportedContentProcess reportedContent; protected override void OnStart(string[] args) { //when a user reports a video reportedContent = new ReportedContentProcess(); reportedContent.ProcessTimer.Elapsed += new ElapsedEventHandler(ReportedContentTimer_Elapsed); } void ReportedContentTimer_Elapsed(object sender, ElapsedEventArgs e) { reportedContent = new ReportedContentProcess(); reportedContent.Process(); reportedContent.ProcessReinstated(); } } public class ReportedContentProcess : ProcessBase { //location on the library string libraryArchivedFilePath; string libraryRealHiFilePath; string libraryRealLoFilePath; string libraryFlashHiFilePath; string libraryFlashLoFilePath; //location on the reported folder string reportedContentArchivedFilePath; string reportedContentRealHiFilePath; string reportedContentRealLoFilePath; string reportedContentFlashHiFilePath; string reportedContentFlashLoFilePath; string reportedContentFolderPath; static EmailSettings emailSettings; /// <summary> /// This process will move reported content out of the 'real' and 'flash' mounted folders on the /// hard drive/ storeage location so they cannot under any circumstances be got to by any users /// of the library. /// </summary> public ReportedContentProcess(): base(1021) { DirectoryInfo arciveFolderPathInfo = new DirectoryInfo(fileSystemReferencesForService.ArchiveDir); DirectoryInfo contentFolder = arciveFolderPathInfo.Parent; reportedContentFolderPath = contentFolder.FullName.ToString() + @"\ReportedContent\"; emailSettings = settingsManagerForService.GetEmailSettings(); } public override void Process() { if (!EnumsAndConstants.ApplicationLocks.ReportedContentProcessRunning) { EnumsAndConstants.ApplicationLocks.ReportedContentProcessRunning = true; videosToProcess = contentManagerForService.GetReportedVideos(false); //get the reportedvideo object for this video CreateReportedVideoContentFolder(); ReportedVideo reportedVideo; foreach (Video v in videosToProcess) { string flashVideoExt = string.Empty; if (v.IsAudio) { flashVideoExt = ".mp3"; } else { flashVideoExt = ".mp4"; } //library location of each file for video libraryArchivedFilePath = fileSystemReferencesForService.ArchiveDir + v.LocalFile; libraryRealHiFilePath = fileSystemReferencesForService.RealDir + v.Url.ToString() + "_hi.rm"; libraryRealLoFilePath = fileSystemReferencesForService.RealDir + v.Url.ToString() + "_lo.rm"; libraryFlashHiFilePath = fileSystemReferencesForService.FlashDir + v.Url.ToString() + "_hi" + flashVideoExt; libraryFlashLoFilePath = fileSystemReferencesForService.FlashDir + v.Url.ToString() + "_lo" + flashVideoExt; //new location for file to go to reportedContentArchivedFilePath = reportedContentFolderPath + v.LocalFile; } } /// <summary> /// A base class that holds all the Global objects for any process that operates under the /// service. This process works with /// </summary> public abstract class ProcessBase { public Timer processTimer; public Timer ProcessTimer{get{ return processTimer;}set{processTimer=value;}} protected SqlConnection connection; protected VlsContent contentManagerForService; protected VlsSecurity securityManagerForService; protected VlsSettings settingsManagerForService; protected FileSystemReferences fileSystemReferencesForService; protected List<Video> videosToProcess; protected ExeReferences exeReferenecesForService; protected GeneralSettings generalSettingsForService; public abstract void Process(); //sets up all the common objects public ProcessBase() { connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Db"].ToString()); contentManagerForService = new VlsContent(connection); settingsManagerForService = new VlsSettings(connection); securityManagerForService = new VlsSecurity(connection); fileSystemReferencesForService = settingsManagerForService.GetFileSystemReferences(); exeReferenecesForService = settingsManagerForService.GetExeReferences(); generalSettingsForService = settingsManagerForService.GetGeneralSettings(); } //This constructor will call the default constructor ^ protected ProcessBase(long intervalArg) : this() { processTimer = new Timer(intervalArg); processTimer.Enabled = true; } ``` } After profiling this code it seems that this is causing a memory leak. What im wondering is why? Im thinking that the problematic line is: ``` reportedContent = new ReportedContentProcess(); [located in the event handler] ``` But I cant really see why. Surely it will creat pointer in memory called 'reportedContent' then when the above is called it will place actual value on the heap with new values for the members of ReportedContentProcess(). Then when the event handler is run again after about 1 second it will then just replace the GC root pointer 'reportedContent' with a new allocated heap item for the ReportedContentProcess() class. Then the old one (and all of its now abandoned child objects will be garbaged collected as their root is no longer referenced by the call stack..? This should just happen over and over again (out with the old in with the new) style. Hope some can help I sort of hope this is the problem so I can fix it but want to check before I start re-factoring code. The profile is here: ![enter image description here](https://i.stack.imgur.com/xCDzH.jpg)
Why is this code (possibly event handler) causing a memory leak in my c# windows service?
CC BY-SA 3.0
null
2011-06-28T10:12:54.177
2011-06-28T11:15:09.740
2017-05-23T12:13:29.270
-1
223,863
[ "c#", "memory-leaks", "windows-services", "garbage-collection" ]
6,505,400
1
6,505,783
null
4
1,968
I'm trying to draw a static graph based on an Array of Numbers. This graph should be nice smooth sinus-like. The bottom values should be always zero, the upper values are specified in an Array of Numbers. ![sample](https://i.imgur.com/yXuFP.jpg) I've been trying to achieve this effect with curveTo(), but without any luck. EDIT: Values are like: 10, 15, 40, 28, 5, 2, 27 etc. Can anyone help please?
How to draw sinusoidal line-graph?
CC BY-SA 3.0
null
2011-06-28T11:02:08.593
2011-06-28T14:30:36.713
null
null
557,311
[ "flash", "actionscript-3", "graph", "drawing" ]
6,505,402
1
null
null
0
60
I got a design of a wordpress website, and need to build the menu as the attached image. I thought of having repeated background of the black "/" and the categories/pages names with white background, but I think it won't look good. I thought of having a function that fills the black "/", but have no idea how to start. Any idea will be much appreciated. Thanks ! (please ignore the blue lines). ![enter image description here](https://i.stack.imgur.com/fkvta.jpg)
need help in displaying wordpress menu in a creative way
CC BY-SA 3.0
null
2011-06-28T11:02:12.780
2011-06-30T10:02:40.830
null
null
154,978
[ "php", "css", "wordpress" ]
6,505,495
1
6,505,601
null
0
1,152
I am developing an application that has a view as shown in image. I am having a table view. My problem is how will I show my chat boxes cell some right to the original Table viewcell frame. ![ ](https://i.stack.imgur.com/h39x2.png) Like The white box is some right to the original table view cell code:- ``` - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; int row = [indexPath section]; UITableViewCell *startCell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(10, 0, 200, 50) reuseIdentifier:CellIdentifier] autorelease]; UITableViewCell *durationCell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(50, 0, 200, 100) reuseIdentifier:CellIdentifier] autorelease]; UITableViewCell *radiusCell = [[[UITableViewCell alloc] initWithFrame:CGRectMake(100, 0, 200, 150) reuseIdentifier:CellIdentifier] autorelease]; startCell.textLabel.text = @"Start:"; durationCell.textLabel.text = @"Duration:"; radiusCell.textLabel.text = @"radius"; if (row == 0) { return startCell; } else if (row == 1) { return durationCell; } return radiusCell; } ```
TableView cell frame problem
CC BY-SA 3.0
null
2011-06-28T11:11:00.953
2011-06-28T11:20:10.347
2011-06-28T11:18:57.663
633,676
633,676
[ "iphone", "objective-c", "uitableview" ]
6,505,729
1
null
null
0
285
I am not able to set path of resource dictionary.... ``` <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/SilverlightOrganization;component/Styles/BlueStyles.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> ``` I also tried it ... ``` <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/BlueStyles.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> ``` What can be issue help please.... ![enter image description here](https://i.stack.imgur.com/pVdhT.png)
Can't set style for path in resource dictionary
CC BY-SA 3.0
null
2011-06-28T11:31:10.727
2011-06-28T12:11:05.807
null
null
389,200
[ "silverlight-4.0", "resourcedictionary" ]
6,506,021
1
6,506,881
null
0
1,083
I receive the following message after login in to linkedin in my Iphone App.It cant access the contacts or any other information from linked in.Just give the following message.![enter image description here](https://i.stack.imgur.com/0gTWf.png) Successfully Authorized (App name) Application and enter the following security code to grant access. (I dnt see any security code) Thanks in advance.
Problem accessing LinkedIn from an iOS app
CC BY-SA 3.0
null
2011-06-28T11:54:52.700
2011-06-28T18:21:39.533
2011-06-28T18:21:39.533
41,116
805,601
[ "iphone", "objective-c", "ios4", "iphone-sdk-3.0", "linkedin" ]
6,506,035
1
null
null
3
2,120
Thanks in advance. I want to create a view with customizing camera view.Like this![enter image description here](https://i.stack.imgur.com/RurId.png) To do this in one view controller I have created the instance of another view controller and in the second viewcontroller i am creating UIImagepickerController like this: ``` -(void)showCamera { camController = [[UIImagePickerController alloc]init]; if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { camController.sourceType = UIImagePickerControllerSourceTypeCamera; } camController.showsCameraControls = NO; camController.navigationBarHidden = YES; camController.toolbarHidden = YES; camController.wantsFullScreenLayout = NO; camController.cameraViewTransform = CGAffineTransformScale(camController.cameraViewTransform, 2.0f, 2.0f); // Edited //[self presentModalViewController:camController animated:YES]; } ``` and in the first view controller : ``` cam = [[CamController alloc]init]; cam.view.frame = CGRectMake(5, 50, 310, 300) ; [cam showCamera]; [self.view addSubview:cam.view]; //Edited [self.cam presentModalViewController:self.cam.camController animated:NO]; [self performSelector:@selector(setFrame) withObject:self afterDelay:1.0]; [self.cam.camController.view setFrame:CGRectMake(10, 50, 300, 250)]; ``` This is not working actually. Is it correct process. Can any one help me .
Customize the camera view in iphone
CC BY-SA 3.0
null
2011-06-28T11:56:06.293
2011-09-20T06:11:49.283
2011-06-29T07:05:31.873
345,936
345,936
[ "iphone", "camera" ]
6,506,249
1
6,516,058
null
0
671
Hi I have created a relative layout. and align the imageview to the right of relativelayout. I set the background of relativelayout using selector. if i select thye relativelayout its color wil be green otherwise its color will be white. Now I want to set the image depending on the selection of scrollview. If scrollview is selected then i want to show imge1 if not then i want to show image2. How can I achieve this? ``` <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/selector"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/arrow_right" android:layout_alignParentRight="true" /> </RelativeLayout> ``` ``` <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/grbk" /> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/grbk" /> <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/grbk" /> <item android:drawable="@drawable/whbk" /> </selector> ``` Thanks Sunil![enter image description here](https://i.stack.imgur.com/cZRJ0.png)
what is the best way to set image to imageview
CC BY-SA 3.0
0
2011-06-28T12:17:06.480
2011-12-27T08:17:19.543
2011-06-28T12:25:57.267
111,988
111,988
[ "android", "android-layout" ]
6,506,280
1
6,506,312
null
1
6,473
I am having very little luck configuring my spring config file for Hibernate Annotations. I have been looking at other posts and I'm not sure what I am missing. I shouldn't need to define a config file since I am using HibernateProperties in my session factory correct? I`m getting the following error: # Error Message ## Error creating bean with name 'HibernateSessionFactory' Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.AnnotationConfiguration at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965) # Spring Configuration ``` <!-- Defines the hibernate session factory to be used by the hibernate support dao classes --> <bean id="HibernateSessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" > <property name="dataSource" ref="webDataSrc" /> <property name="annotatedClasses"> <list> <value>ca.test.Foo</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.show_sql">true</prop> <prop key="debug">true</prop> <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop> <prop key="hibernate.cglib.use_reflection_optimizer">false</prop> </props> </property> </bean> ``` ![enter image description here](https://i.stack.imgur.com/aA3AL.png)
Spring 3 with Hibernate 3 Annotations - Session Factory Configuration
CC BY-SA 3.0
null
2011-06-28T12:19:10.350
2011-06-28T12:25:10.557
2020-06-20T09:12:55.060
-1
771,861
[ "java", "hibernate", "spring" ]
6,506,338
1
null
null
1
1,587
I have a curious problem with a managed object in unmanaged code. I have this C++/CLI module that bridges C++ and C# code. I have a structure like this: ``` template <class T> struct ManagedReference { gcroot<T^> addonHost; } ``` Now, at some point I create an instance of this managed reference and set the addonHost. All is well, I am able to use the handle. ![enter image description here](https://i.stack.imgur.com/6Jm0Q.png) However, in some cases (would require to much contextual description I'm afraid) the value cannot be evaluated: ![enter image description here](https://i.stack.imgur.com/nmEed.png) In this case, calling a method with addonHost results in a "Entry point for found" exception. As you can see from the screenshots, it is not two difference instances, two different handles. It's the very same. I don't understand how come in some situation the "value" is not evaluated. And maybe how I could catch that. Because it's not null. What I should also mention is that I have several `gcroot<T>` and all of them have this problem, except one that is a `gcroot<System::String>`. UPDATE Here is what debugger shows during execution. The object is created and available, then at some point, the value is 'vanishing', and at the next call it's still there. But this is very reproducible. It's not random. ``` handle 0x0E1618EC void* value 0x106396d8 { m_host=0x10638e04 } <-- object is available here handle 0x0E1618EC void* value 0x1020e558 { m_host=0x1020e4f0 } <-- object moved in memory handle 0x0E1618EC void* value <-- no value here handle 0x0E1618EC void* value 0x1020e558 { m_host=0x1020e4f0 } <-- object 'is back' ```
gcroot has no value
CC BY-SA 3.0
null
2011-06-28T12:24:57.000
2015-03-11T00:59:38.753
2015-03-11T00:59:38.753
3,204,551
648,078
[ "exception", "visual-c++", "c++-cli", "handle", "mixed-mode" ]
6,507,220
1
6,507,287
null
1
212
In our application,we provide the online map like google map: show the map tiles in a div(the container),when user drag/move the container,new map tiles(in fact,they are images) will be downloaded. However unlike google map,we provide more than one layers in the container,for exmaple,in the following tile: ![enter image description here](https://i.stack.imgur.com/klWTJ.png) It is just one image,but in our case,it maybe more than 5 transprant images overlayed together. So,once user drag or move the container,we will download 5 times amount of images than before. Which will cause the "mouse drag operation" so slowly,so I wonder if there is any way to improve it? In my opinion this is caused by the http Parallel Downloads. In common,we will download about 6(6 tiles in the current map view,see the image below)*5(layers)=30 images per operation by user. This is a big requrement. I read this paper: [Performance Research, Part 4: Maximizing Parallel Downloads in the Carpool Lane](http://www.yuiblog.com/blog/2007/04/11/performance-research-part-4/) The author provide a way "using additional aliases" to increase the parallel downloads in our pages,it seems a good idea. But our application run in the intranet network without the Internet,user often browse the site use this url : ``` http://servername/app ``` And Our tiles are saved at: `http://servername/app/tiles/...../xx.png` So I do not know if we can add aliases like : ``` http://img1.servername/app/tiles/...../xx.png http://img2.servername/app/tiles/...../xx.png ? ``` I do not think so. :( So in my case,any idea to improvement the Performance?
speed the image download time
CC BY-SA 3.0
null
2011-06-28T13:29:38.237
2011-07-04T17:42:07.787
null
null
306,719
[ "javascript", "performance", "http", "parallel-processing" ]
6,507,350
1
6,508,869
null
2
11,134
I'm using PrimeFaces 3.0 and JSF 2.0. In my webapp, I display a modal dialog over the page when the user's browser has been idle for a certain length of time and this triggers a session invalidation on the server side via an Ajax call. On the browser, the modal dialog displays a simple message that the session is terminated due to exceeding the idle time limit. This all works fine (see screenshot). ![enter image description here](https://i.stack.imgur.com/Ys50j.jpg) Here is the code from my Facelet page: ``` <p:idleMonitor timeout="#{initParam[clientSideIdleThreshold]}"> <p:ajax event="idle" listener="#{logoutBean.idleListener}" oncomplete="idleDialog.show()" /> <p:ajax event="active" listener="#{logoutBean.activeListener}" /> </p:idleMonitor> <p:dialog header="Session Exceeded Idle Limit" widgetVar="idleDialog" modal="true" fixedCenter="true" closable="false" draggable="false" resizable="false" appendToBody="true" height="200" width="400"> <h:outputText value="Session Terminated" /> </p:dialog> ``` I'm hoping that this can be accomplished by putting some CSS in the right place because I would like to avoid writing any JavaScript to accomplish this. The target browsers for the user environment are IE 6 and 7.
PrimeFaces 3.0 - How do I override the default opacity of a dialog overlay?
CC BY-SA 3.0
0
2011-06-28T13:38:47.387
2011-08-17T11:09:20.847
2011-08-17T11:09:20.847
346,112
346,112
[ "java", "css", "dialog", "jsf-2", "primefaces" ]
6,507,374
1
6,509,917
null
1
2,321
[Graphicriver](http://graphicriver.net/) uses a "Thumbnail hover popup" technique on it's thumbnails. When you hover on a thumbnail a bigger image is displayed as you can see on my screenshot below: ![http://i.imgur.com/IO6ua.png](https://i.stack.imgur.com/oBRlF.png) I believe they are using this: [http://plugins.jquery.com/project/thumbnail_hover_popup](http://plugins.jquery.com/project/thumbnail_hover_popup) Demo: [http://home.comcast.net/~littlemoe85/thumbhover/index.html](http://home.comcast.net/~littlemoe85/thumbhover/index.html) How can I achieve this on my wordpress blog? Any ideas guys? Thanks in advance
Thumbnail hover popup on wordpress
CC BY-SA 3.0
null
2011-06-28T13:40:46.473
2011-06-28T16:35:42.010
null
null
632,152
[ "wordpress", "hover", "thumbnails" ]
6,507,467
1
6,507,495
null
0
253
How do I get rid of the configure icon shown in attached screenshot ? It opens up the windows taskbar area icon configure window where you config all the icons shown in the taskbar. Cannot find any property to disable this. What is this called so I can google for this ? Nothing on msdn. thanks ![enter image description here](https://i.stack.imgur.com/eJSlP.gif)
c# vb notifyicon disable hide configure option
CC BY-SA 3.0
null
2011-06-28T13:48:02.543
2011-06-28T14:00:58.927
2011-06-28T14:00:58.927
666,490
666,490
[ "c#", "vb.net", "winforms", "winapi", "user-controls" ]
6,507,511
1
6,508,450
null
7
11,401
I try to draw a round rectangle with `drawRoundedRect` method directly in a `QPixmap` (no render engine involve here exept pure Qt one ...), I double check the size of the rectangle versus the size of my pixmap : ``` Pixmap : QSize(50, 73) Rectangle: QRect(0,0 48x11) ``` See plenty of space ... EDIT: some code ``` pixmap = QPixmap(50,73); //example size that match my case QRectF rect(0,0,48,11); QPainter painter(&pixmap); painter.setRenderHint(QPainter::TextAntialiasing); painter.setWorldMatrixEnabled(false); painter.setPen(QPen()); //no pen painter.setBrush(QBrush(color)); painter.drawRoundedRect(rect, 2.0, 2.0); ``` - - - - But it always ends with a rectamgle with 4 diferent corners ! Like that : ![Radius = 3.0 in x and y](https://i.stack.imgur.com/uYdw4.png) I directly ouptut the pixmap to a file to be sure I wasn't scraping it during the display ... same shape. Anyone know about Qt round rectangle with small radius ? I saw somthing about it a long time ago but I don't remenber how to deal with it !
Qt round rectangle, why corners are different?
CC BY-SA 3.0
0
2011-06-28T13:51:03.697
2015-12-09T16:18:24.297
2011-06-28T14:13:27.970
659,003
659,003
[ "c++", "qt", "qt4", "rasterizing" ]
6,507,662
1
6,508,588
null
3
949
I was reading [http://www.orchardproject.net/docs/Creating-1-n-and-n-n-relations.ashx](http://www.orchardproject.net/docs/Creating-1-n-and-n-n-relations.ashx) and could not get the idea, if it is possible to easily make master detail editing, to give you concrete example i've attached screenshot from wordpress: ![enter image description here](https://i.stack.imgur.com/aufM7.png) So there is post and post contains set of custom fields, simple 1:N relationship, everything edited in one page - you can add/edit custom field without leaving post page. May be someone saw similar example for Orchard on internet, or could shortly describe path to achieve this by code, would be really helpful (I hope not only for me, because this is quite common case I think).
Orchard and master detail editing
CC BY-SA 3.0
0
2011-06-28T14:01:02.103
2011-06-28T15:03:38.503
null
null
212,121
[ "asp.net", "asp.net-mvc-3", "orchardcms" ]
6,507,813
1
6,507,892
null
0
321
I'm trying to just get this to run: [http://fstoke.me/jquery/window/](http://fstoke.me/jquery/window/) () My code: ``` <html> <head> <title>Example of Windows</title> <link rel="stylesheet" type="text/css" href="window.css" /> <script type="text/javascript" src="jquery.js"> </script> <script type="text/javascript" src="window.js"> </script> </head> <body> <script type='text/javascript'> $.window({ showModal: true, modalOpacity: 0.5, icon: "http://www.fstoke.me/favicon.ico", title: "Professional JavaScript for Web Developers", content: $("#window_block2").html(), // load window_block2 html content footerContent: "<img style="vertical-align:middle;" src="img/star.png"> This is a nice plugin :^)"; }); </script> <div id="example2" class='example_block'> <h3>Demo</h3> <div class='demo'> <div id='window_block2' style='display:none;'> <div style='padding:10px;'> <div style='font-size:24px; font-weight:bold; margin-bottom:10px; color:#44aaff;'>Introduction</div> <img style='border:0; float:left; margin:10px;' src='http://lh5.ggpht.com/_W-5oCUN3-sQ/TNUfmAY_mFI/AAAAAAAADwc/Dav33v1iBlY/s144/Professional%20JavaScript%20for%20Web%20Developers.jpg'/> <div> If you want to achieve JavaScript's full potential, it is critical to understand its nature, history, and limitations. This book sets the stage by covering JavaScript from its very beginning to the present-day incarnations that include support for the DOM and Ajax. It also shows you how to extend this powerful language to meet specific needs and create seamless client-server communication without intermediaries such as Java or hidden frames. </div> </div> </div> <input type='button' value='Click Here to Create Window' onclick='createWindowWithHtml();'/> </div> </div> </body> </html> ``` Error: When I click the button, it does nothing! Anyone see any problems here? I feel like it might have to do with the embedded script. Page now loads... just looks like this as if its firing the event when you onload, instead of when you click the buttton is something out of order here? ![img](https://i.stack.imgur.com/cBrGy.jpg) Anyone?!
Why isn't this jquery window working?
CC BY-SA 3.0
null
2011-06-28T14:10:25.177
2011-06-28T14:49:26.390
2011-06-28T14:26:24.580
700,070
700,070
[ "javascript", "jquery" ]
6,508,051
1
null
null
1
1,063
I have an application in WPF and I want see in my textboxes only the end of the string. ![enter image description here](https://i.stack.imgur.com/pUhta.png) XAML: ``` <Grid Height="109" Width="126"> <Grid.RowDefinitions> <RowDefinition Height="166*" /> <RowDefinition Height="145*" /> </Grid.RowDefinitions> <TextBlock Text="10000004" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" Width="40" Background="LightBlue"/> <TextBlock Text="10000005" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" Width="40" Grid.Row="1" Background="LightGreen"/> </Grid> ```
Text trimming in the beginning of the string
CC BY-SA 3.0
0
2011-06-28T14:25:56.420
2011-08-31T13:55:09.557
2011-08-31T13:55:09.557
546,730
138,627
[ "wpf", "silverlight" ]
6,508,071
1
6,508,160
null
0
185
I'm trying to follow [this tutorial](http://www.marcofolio.net/webdesign/a_fancy_apple.com-style_search_suggestion.html), but I'm hitting a strange css issue. I am getting a text overflow issue, and I don't know why. Also the last `span` element is not being shown. I am not a web designer, so any information why this is happening and how to fix it would be awesome. Thanks! ![enter image description here](https://i.stack.imgur.com/vsOUT.png) ``` <div id="suggestions" style="display: block; "> <p id="searchresults"> <a href="/benefits/1" id="1"> <img src="/system/images/benefits/images/1/thumb_download.png?1309194040"> <span class="searchheading">Eric's Awesome Gym</span> <span> At this great gym we strive to make friends. &nbsp;Located in the middle of the grenage village, we are a great location woth tons of resutarnts near by. </span> </a> <span class="seperator"><a href="search?q=eric">Load More Results</a></span> </p> </div> ``` ``` #suggestions{ position: absolute; right:73px; width:320px; display:none; } #searchresults { border-width:1px; border-color:#919191; border-style:solid; width:320px; background-color:#a0a0a0; font-size:10px; line-height:14px; margin: 0;} #searchresults a { display:block; background-color:#e4e4e4; clear:left; height:56px; text-decoration:none; } #searchresults a:hover { background-color:#b7b7b7; color:#ffffff; } #searchresults a img { float:left; padding:5px 10px; } #searchresults a span.searchheading { display:block; font-weight:bold; padding-top:5px; color:#191919; } #searchresults a:hover span.searchheading { color:#ffffff; } #searchresults a span { color:#555555; } #searchresults a:hover span { color:#f1f1f1; } #searchresults span.seperator { float:right; padding-right:15px; margin-right:5px; } #searchresults span.seperator a { background-color:transparent; display:block; margin:5px; height:auto; color:#ffffff; } ```
Text overflow in search results box
CC BY-SA 3.0
null
2011-06-28T14:27:28.980
2011-06-28T14:47:49.793
null
null
127,629
[ "html", "css" ]
6,508,087
1
6,508,152
null
0
96
Hi guys i am very eager to know that how we can make a view like in this application having different icons calling different viewcontrollers and edit button to add shorcuts to tab bar at the bottom. Any tutorial link will be appreciated . ![enter image description here](https://i.stack.imgur.com/SuF2b.jpg)
Make a home view for application
CC BY-SA 3.0
null
2011-06-28T14:28:38.990
2011-06-28T14:33:28.543
null
null
671,247
[ "iphone", "ios", "uicontrol" ]
6,508,381
1
6,508,818
null
0
15,195
I have created a GUI in Matlab and this is how it looks: ![enter image description here](https://i.stack.imgur.com/5d0hW.jpg) I need to know if I can change the row and column names of the table during runtime and not some static name. Is there any way to do this or alternatively how can I do this in other way?
How to change row and column names of a table in Matlab
CC BY-SA 3.0
null
2011-06-28T14:47:56.060
2017-06-23T18:51:46.673
2016-11-18T17:59:17.180
4,370,109
556,011
[ "matlab", "user-interface" ]
6,508,510
1
6,508,885
null
0
857
I have two pair of arrays. In each pair one array contains the index values referring to another result array while 2nd array contains the score. These are sorted, so that for example in pair one, i can select the 3 best high scores from Array-2 and they will correspond to indexes no 3,7 and 4 respectively. Now the idea is to combine such pairs e.g Pair-1 and Pair-2, sort them and then select 3 best values. Like if you see the picture below, in the sorted value array in result the first two highest values correspond to index number 1&6 in array from Pair-2 while 3rd value correspond to index 3 of array from Pair-1. ![enter image description here](https://i.stack.imgur.com/B9k2d.png) It would be nice if you could give me some idea about how can i keep track of index numbers of respective arrays in the sorted result. I know how to sort them but really don't know how to go about keeping track of these individual arrays.
combining two sorted arrays while keeping track of individual indexes in java?
CC BY-SA 3.0
null
2011-06-28T14:58:06.863
2011-06-28T15:22:40.217
null
null
750,965
[ "java", "arrays", "multidimensional-array", "sorting" ]
6,508,551
1
null
null
1
326
i have this structure in my project![Structure](https://i.stack.imgur.com/akfHs.jpg) I have this page 27.html, so i have to find the CSS file, so i think the correct path was : ``` <link href="../../../css/style.css" rel="stylesheet" type="text/css" /> <link href="../../../css/inner.css" rel="stylesheet" type="text/css" /> ``` But it's not working, so i wonder why this happens.. Any idea ? UDPATE: Hi guys, this is my URL: /web/blog/2011/june/27.html I'm trying ``` <link href="/css/style.css" rel="stylesheet" type="text/css" /> ``` But still not applying the css in the page. Best regards, Valter Henrique.
Web: What's the correct path to CSS?
CC BY-SA 3.0
null
2011-06-28T15:00:30.550
2011-06-28T15:09:16.640
2011-06-28T15:09:16.640
523,168
523,168
[ "html", "css" ]
6,508,575
1
6,508,601
null
0
771
I'm working on a navigation like the image below. ![enter image description here](https://i.stack.imgur.com/FXhAY.jpg) The whole nav is the width of the browser window, but the items are centered to the design. I haven't worked with any code in quite some time now, and am having difficulty getting this together. Should I use a body image to repeat horizontally and then position my list where it needs to be? Or Should I use a div to span the whole width of the browser window and position the list elements where they need to be? Thanks
CSS Horizontal Nav, IMG or DIV?
CC BY-SA 3.0
null
2011-06-28T15:02:19.440
2012-06-03T21:17:03.493
2012-06-03T21:17:03.493
480,659
133,059
[ "html", "css", "html-lists", "nav" ]
6,508,834
1
6,508,960
null
4
11,964
I have installed latest [Team Foundation Server MSSCCI Provider 2010](http://visualstudiogallery.msdn.microsoft.com/bce06506-be38-47a1-9f29-d3937d3d88d6) [Microsoft Visual Studio Team Explorer 2010 - ISO](http://www.microsoft.com/download/en/details.aspx?id=329) But having issue with finding the way how VB6 works with TFS2010. There is no any menu that is referencing TFS in VB6 IDE. Could someone gave me a direction. Thanks I have missed one thing, installing VSS 6.0d after installing VB6; It looks like MSSCCI is only replacing existing VSS menu in VB6 IDE. Now I have this menu available. ![vb6 tfs menu](https://i.stack.imgur.com/kMDzq.png)
How to work with TFS 2010 from VB6
CC BY-SA 3.0
0
2011-06-28T15:19:12.913
2011-06-28T19:04:11.033
2011-06-28T19:04:11.033
666,654
666,654
[ "vb6" ]
6,508,874
1
6,522,025
null
5
7,438
I'm trying to set the following values with the powershell COMAdmin.COMAdminCatalog but I can't find the setting for the below in red. Any help would be appreciated. ![Value looking to set](https://i.stack.imgur.com/EJM61.png) Thanks
Powershell COM+ settings
CC BY-SA 3.0
0
2011-06-28T15:21:53.947
2012-08-02T21:49:39.813
null
null
128,537
[ "powershell", "com+" ]
6,508,975
1
6,509,046
null
0
5,439
I am just starting out on iOS(from Android) and I am having trouble figuring out how to pass data between views in tabs. I've included pictures to describe my question in a little more detail; how can I get the map type to change when one of the selectors is changed or the user location to appear/disappear when the boolean switch is ticked? One tab is a map tab: ![Map](https://i.stack.imgur.com/XbJXY.png) The Other is a selector: ![Selector](https://i.stack.imgur.com/iGdmw.png)
Pass data between views in tabs iOS
CC BY-SA 3.0
0
2011-06-28T15:28:17.727
2011-06-28T16:10:59.410
null
null
354,247
[ "iphone", "objective-c", "ios" ]
6,509,024
1
null
null
0
108
This query was working perfectly fine and fast to complete when I almost have 500 rows in Member_Contact_Edges table. But now, I have nearly 1.000 rows in this table and this query takes 20-30 seconds to complete. I couldn't figure out where the problem is. I tried Clustered and Non-Clustered index. I tried every combination of indexes but no success. ``` ;WITH transitive_closure(member_a, member_b, distance, path_string) AS (SELECT member_a, member_b, 1 AS distance, CAST(member_a as varchar(MAX)) + '.' + CAST(member_b as varchar(MAX)) + '.' AS path_string FROM Member_Contact_Edges WHERE member_a = @source AND contact_durum=1 -- source UNION ALL SELECT tc.member_a, e.member_b, tc.distance + 1, CAST(tc.path_string as varchar(MAX)) + CAST(e.member_b as varchar(MAX)) + '.' AS path_string FROM Member_Contact_Edges AS e JOIN transitive_closure AS tc ON e.member_a = tc.member_b WHERE tc.path_string NOT LIKE '%' + CAST(e.member_b as varchar(MAX)) + '.%' AND e.contact_durum=1 ) SELECT distance, path_string FROM transitive_closure WHERE member_b=@target AND distance <= 3 -- destination ORDER BY member_a, member_b, distance; ``` This is how I call Stored Procedure: ``` Exec Contacts_KacinciDerece @source = 30284, @target=24688 ``` The output: (It's what I expected and this query creates this) ![Expected output but takes so much time to create](https://i.stack.imgur.com/foZ6L.png) Thanks.
This transitive_closure query takes 20 seconds to complete! Why?
CC BY-SA 3.0
null
2011-06-28T15:32:42.377
2011-06-29T10:59:48.957
2011-06-29T10:58:36.647
235,555
235,555
[ "sql-server", "optimization", "transactions", "performance" ]
6,509,256
1
null
null
2
1,058
This is a DevExpress Reporting/XtraReports question. I'm using DevExpress 2011 Vol 1 for Win Forms. I'm trying to format an XRPivotGrid to get rid of all borders and to change the background color of the cells. At the moment I'm handling the print events of the control as follows: ``` private void xrPivotGrid1_PrintHeader(object sender, CustomExportHeaderEventArgs e) { e.Appearance.BackColor = Color.LightBlue; e.Brick.Sides = BorderSide.None; } private void xrPivotGrid1_PrintFieldValue(object sender, CustomExportFieldValueEventArgs e) { e.Appearance.BackColor = Color.ForestGreen; e.Brick.Sides = BorderSide.None; } private void xrPivotGrid1_PrintCell(object sender, CustomExportCellEventArgs e) { e.Appearance.BackColor = Color.PaleVioletRed; e.Brick.Sides = BorderSide.None; } ``` But this isn't enough. As you can see from this image, the header cells with the background color don't get reached (ie, these events aren't fired when they're painted for printing). ![enter image description here](https://i.stack.imgur.com/iXfjX.jpg) Anyone know the correct way to do this? Again I want to get rid of the borders and change the BackColor:s of those grey blocks. Thanks
How can I format XRPivotGrid headers?
CC BY-SA 3.0
null
2011-06-28T15:47:34.830
2011-07-27T18:16:53.707
null
null
706,063
[ "c#", ".net", "reporting", "devexpress", "xtrareport" ]
6,509,471
1
6,509,612
null
2
221
Considering : ``` preferred ={{1, 1, 63}, {2, 1, 44}, {3, 1, 27}, {4, 1, 33}, {5, 1, 33}} frmWidth = 20.9067; frmHeight = 15.68; ``` I am displaying 5 types of stimuli 2 by 2. Subjects must choose the one they prefer. Each type of stimuli is displayed 80 times so : {1,1,63} indicates that the stimuli Cond 1 was preferred 63 times out of the 80 times it was displayed. {3, 1, 27} indicates that the stimuli Cond 3 was preferred 27 times out of the 80 times it was displayed. Cond1 refers to center of the screen Cond2 refers to Top-Left Quadrant Cond3 refers to Top-Right Quadrant Cond4 refers to Bottom-Left Quadrant Cond5 refers to Bottom-Right Quadrant I would like to express this showing results. This is what I have done : ``` Graphics[{ Black, EdgeForm[{Thin, LightGray}], Rectangle[{-1, -1}, {frmWidth + 1, frmHeight + 1}], PointSize[0.03], Yellow, Point@Tuples[{Range[0, frmWidth/2, frmWidth/19], Range[0, frmHeight/2, frmHeight/14]}][[;; preferred[[5, 3]]]], Red, Point@Tuples[{Range[frmWidth/2, frmWidth, frmWidth/19], Range[0, frmHeight/2, frmHeight/14]}][[;; preferred[[4, 3]]]], Green, Point@Tuples[{Range[frmWidth/2, frmWidth, frmWidth/19], Range[frmHeight/2, frmHeight, frmHeight/14]}][[;; preferred[[3, 3]]]], Orange, Point@Tuples[{Range[0, frmWidth/2, frmWidth/19], Range[frmHeight/2, frmHeight, frmHeight/14]}][[;; preferred[[2, 3]]]], Blue, Point@Tuples[{Range[frmWidth/4, 3/4 frmWidth, frmWidth/19], Range[frmHeight/4, 3/4 frmHeight, frmHeight/14]}][[;; preferred[[1, 3]]]] }] ``` ![enter image description here](https://i.stack.imgur.com/UOrKe.png) Consider the following : ``` Graphics[{ White, EdgeForm[Thick], Rectangle[{0, 0}, {frmWidth, frmHeight}], Orange, Opacity[.5], Rectangle[{0, frmHeight/2}, {frmWidth/2, frmHeight}, RoundingRadius -> 3], Green, Rectangle[{frmWidth/2, frmHeight/2}, {frmWidth, frmHeight},RoundingRadius -> 3], Red, Rectangle[{frmWidth/2, 0}, {frmWidth, frmHeight/2}, RoundingRadius -> 3], Yellow, Rectangle[{0, 0}, {frmWidth/2, frmHeight/2}, RoundingRadius -> 3], Blue, Rectangle[{frmWidth/4, frmHeight/4}, {3/4 frmWidth, 3/4 frmHeight}, RoundingRadius -> 3] }] ``` ![enter image description here](https://i.stack.imgur.com/fGeG3.png) Now I would like to fill those edge rounded rectangles with the points but have the density changing rather than the part of the rectangles that are filled. Below is something very ugly I draw in PPT : ![enter image description here](https://i.stack.imgur.com/NCwHe.png) Please let me know alternative ideas.
Uniformly distribute Points within an object using Graphics in Mathematica
CC BY-SA 3.0
0
2011-06-28T16:03:03.467
2012-05-06T11:57:57.070
2012-05-06T11:57:57.070
1,140,748
769,551
[ "graphics", "wolfram-mathematica", "point" ]
6,509,619
1
null
null
1
1,296
First, an entry in the database: ![enter image description here](https://i.stack.imgur.com/ahcr5.png) I have an input form that writes start date, start and end times (in hour and minute) of working days plus lunch break in minutes (in the example dato=date, modetime=start hour, modeminut=start minute, fyrtime=end hour, fyrminut=end minute). I need to do several calculations: - - - Can it be done directly and automatically in the database (if yes, how) or do I need some PHP to do it (and again, if yes, how)? I know its a tall order but I have not been able to find much information on date/time calculations that made much sense on my low level of knowledge. Any link to a comprehensive guide on date/time calculation in MySQL or PHP would also be greatly welcomed.
MySQL time/date calculation
CC BY-SA 3.0
null
2011-06-28T16:12:55.930
2011-06-28T16:41:26.700
2011-06-28T16:15:56.210
135,152
368,438
[ "php", "mysql", "sql", "date", "time" ]
6,509,716
1
6,510,032
null
5
2,693
...well, to an incomplete circle. I have a draggable slider that looks like this: ![Arc Slider](https://i.stack.imgur.com/ai0m1.png) The blue bar has the instance name `track` and the pink dot has the instance name `puck`. I need the puck to be constrained within the blue area at all times, and this is where my maths failings work against me! So far I have the puck moving along the x axis only like this: ``` private function init():void { zeroPoint = track.x + (track.width/2); puck.x = zeroPoint-(puck.width/2); puck.buttonMode = true; puck.addEventListener(MouseEvent.MOUSE_DOWN,onMouseDown); } private function onMouseDown(evt:MouseEvent):void { this.stage.addEventListener(MouseEvent.MOUSE_MOVE,onMouseMove); this.stage.addEventListener(MouseEvent.MOUSE_UP,onMouseUp); } private function onMouseUp(evt:MouseEvent):void { this.stage.removeEventListener(MouseEvent.MOUSE_MOVE,onMouseMove); } private function onMouseMove(evt:MouseEvent):void { puck.x = mouseX-(puck.width/2); //need to plot puck.y using trig magic... } ``` My thinking is currently that I can use the radius of the incomplete circle (50) and the mouseX relative to the top of the arc to calculate a triangle, and from there I can calculate the required y position. Problem is, I'm reading various trigonometry sites and still have no idea where to begin. Could someone explain what I need to do as if speaking to a child please? The fact that the circle is broken shouldn't be an issue, I can cap the movement to a certain number of degrees in each direction easily, it's getting the degrees in the first place that I can't get my head around! I'm trying to follow Bosworth99's answer, and this is the function I've come up with for calculating a radian to put into his function: ``` private function getRadian():Number { var a:Number = mouseX - zeroPoint; var b:Number = 50; var c:Number = Math.sqrt((a^2)+(b^2)); return c; } ```
Constrain MovieClip drag to a circle
CC BY-SA 3.0
null
2011-06-28T16:19:51.590
2014-03-25T17:27:08.093
2011-06-28T17:08:09.183
665,800
665,800
[ "actionscript-3", "trigonometry" ]
6,509,750
1
6,515,339
null
5
3,186
Trying to find a solution to this, we have our LMS Server, and content servers all across the US, so the user gets their content from the closest location. ![Current Scenario](https://i.stack.imgur.com/FZADo.jpg) I've come across a solution using SCO-Fetcher, mentioned in these two links below and illustrated below, but I cannot find any information on how to implement a similar solution. here: [http://elearningrandomwalk.blogspot.com/2006/08/sco-fetcher.html](http://elearningrandomwalk.blogspot.com/2006/08/sco-fetcher.html) and here: [http://www.adlnet.gov/Technologies/scorm/SCORMSDocuments/SCORM%20Resources/ADL_CrossDomainScripting_1_0.pdf](http://www.adlnet.gov/Technologies/scorm/SCORMSDocuments/SCORM%20Resources/ADL_CrossDomainScripting_1_0.pdf) ![Solution](https://i.stack.imgur.com/RX0ta.jpg) If anyone has any thoughts or information regarding this, it would be most appreciated.
SCORM Cross Domain, SCO-Fetcher, or any other solution
CC BY-SA 3.0
0
2011-06-28T16:22:29.993
2011-09-29T02:30:57.973
null
null
560,128
[ "cross-domain", "scorm", "scorm1.2" ]
6,509,791
1
6,510,098
null
17
22,451
My end-goal is to have an application that runs a block of code when it (the application, not the activity) is opened up after being left ( back from home screen, etc... ) According to the Activity Lifecycle, this should be the `onRestart()` event on a per activity basis ( at least how I interpret it ) Both `onRestart()` and `onResume()` are being called whether I am returning to the Activity within the application (back button) AND when the app is called back up. Given this diagram ![enter image description here](https://i.stack.imgur.com/kTfQV.png) I am interpreting it this way: - - Is my understanding incorrect? (Clarifying specific use case) I'm attempting to use onRestart() to replicate some security logic (PIN Validation) found in onCreate(), but it's being called even when I press the back button inside the application...
OnRestart vs. OnResume - Android Lifecycle Question
CC BY-SA 3.0
0
2011-06-28T16:25:32.613
2015-01-12T07:12:04.510
2020-06-20T09:12:55.060
-1
555,384
[ "android", "events", "lifecycle" ]
6,509,956
1
null
null
2
2,361
UPDATE: Thank you all very much for your answers. As Jesse Hall suggested, it looks like it is a driver (or hardware) problem. I tried the same app on other configurations and it worked as expected. I tested the app on other computers which share the same GPU (ATI 4800 HD) but different versions of the driver and they all showed the same erroneous behavior (what seems to be a double gamma correction on write). On these computers, if have to set D3DRS_SRGBWRITEENABLE to false to fix the display. Anyone knows if this is a known bug on this hardware? Even more strange is that I get the same end results with these two configurations: - - In the pixel debugger, I see that linearization is applied properly in case 1 but (automatic) correction on write gives the same output as case 2 (which performs no conversion at all)... // -- END OF UPDATE I'm having some trouble fixing the gamma correction of a DirectX9 application. When I enable texture linearization in the samplers (D3DSAMP_SRGBTEXTURE) and sRGB write for output (D3DRS_SRGBWRITEENABLE), it looks like gamma correction is applied twice. Here is my setup. I used the following texture (from [here](http://altdevblogaday.org/2011/06/02/yet-another-post-about-gamma-correction/)) to draw a fullscreen quad: ![enter image description here](https://i.stack.imgur.com/rfXVs.png) The results were visually too bright on the right side of the picture. I used PIX to debug one of those grey pixels and, if everything was set up properly, I would have expected an output value of 0.73 (=0.5^(1.0/2.2)). Unfortunately, the output of the pixel shader was 0.871 (which looks like it could be a gamma correction applied twice ?). I stepped inside the pixel shader with the debugger and the texture fetch returned a value of (0.491, 0.491, 0.491), which should mean linearization on read worked properly. ![enter image description here](https://i.stack.imgur.com/44iv7.png) When I disable D3DRS_SRGBWRITEENABLE, the output of the pixel shader is 0.729 which looks much more correct to me. ![enter image description here](https://i.stack.imgur.com/tXnc8.png) ![enter image description here](https://i.stack.imgur.com/LqAwU.png) Any idea where does this conversion come from (in the debugger the pixel shader output was 0.491)? What other flags/render states should I check? Thank you very much for your help!
(DirectX9) Gamma correction applied implicitely
CC BY-SA 3.0
0
2011-06-28T16:38:42.420
2019-11-25T19:55:14.197
2011-07-08T06:44:03.833
529,915
529,915
[ "directx", "direct3d", "directx-9", "direct3d9", "gamma" ]
6,510,086
1
null
null
0
114
I surfed the web and found something similar to what I want but it does not execute...help please My tables have the following structure: ``` TABLE team id integer autoincrement primary key, name varchar, pointsfavor integer, pointscontra integer TABLE game id integer autoincrement primary key, team1_id integer, team2_id integer, score1 integer, /*score for team1*/ score2 integer /*score for team2*/ ``` I have this update statement until now: ``` UPDATE team INNER JOIN game g1 ON (team.id = g1.team1_id) INNER JOIN game g2 ON (team.id = g2.team2_id) SET pointsfavor = pointsfavor + IF(g1.score1 > g1.score2, g1.score1 - g1.score2, 0) + IF(g2.score2 > g2.score1, g2.score2 - g2.score1, 0) , pointscontra = pointscontra + IF(g1.score1 < g1.score2, g1.score2 - g1.score1, 0) + IF(g2.score2 < g2.score1, g2.score1 - g2.score2, 0) WHERE g1.id = 1; ``` When I put it in my sql it executes the function but it does not alter my 'pointsfavor' and 'pointscontra' fields from team... so it says, affected rows (0).... Look: ![my current query](https://i.stack.imgur.com/jAN5I.png) Here are the values that I entered in table (score1 & score2): ![game table](https://i.stack.imgur.com/joagC.png) and here is the table after I excecute the code...is stays the same: ![team table](https://i.stack.imgur.com/f22nq.png) Please Help.
Adding numbers from one table to another using INNER JOINs - help!
CC BY-SA 3.0
null
2011-06-28T16:46:44.270
2011-06-28T20:07:42.423
2011-06-28T20:07:42.423
297,408
783,027
[ "php", "sql", "join", "inner-join", "sql-update" ]
6,510,091
1
6,513,477
null
0
598
Considering the following List : ``` answers = { {{1, 2}, {7, 3}}, {{1, 3}, {6, 4}}, {{2, 1}, {2, 8}}, {{2,3}, {8, 2}}, {{3, 1}, {1, 9}}, {{3, 2}, {3, 7}} } ``` ![enter image description here](https://i.stack.imgur.com/rueyV.png) Within the context of a task where subjects are sequentially presented 2 stimuli, having to choose the one they prefer, the first sublist : ``` {{1, 2}, {7, 3}} ``` can be read as {{Cond1,Cond2}, {Cond1 Preferred Count,Cond2 Preferred Count}} So when choosing 10 times between Cond1 & Cond2 when Cond1 is presented first, Cond1 is preferred 7 times out of 10. ** > I need to conditionally extract and/or sum part of the list. ** What I have been doing thus far: To extract lists where Cond1 is presented first : ``` Select[answers, #[[1, 1]] == 1 &] ``` = {{{1, 2}, {7, 3}}, {{1, 3}, {6, 4}}} And to get the total of count for one condition against all others : ``` Plus @@ Select[answers, #[[1, 1]] == 1 &][[All, 2]] ``` ={13, 7} `{{{1, 2}, {7, 3}},{{2, 1}, {2, 8}}}` would be the output `{{2,3}, {8, 2}}`
Conditional selection in sublist using Select in Mathematica
CC BY-SA 3.0
null
2011-06-28T16:46:56.967
2011-06-29T20:14:35.453
2011-06-29T20:14:35.453
615,464
769,551
[ "select", "wolfram-mathematica", "conditional-statements" ]
6,510,265
1
null
null
2
2,532
I am trying to achieve this type of effect where a barbutton is pressed and uikeyboard pops up and right above it brings a uitextfield with it. Please see image attached. Can someone point me to the right about how I can do this? Thanks. ![enter image description here](https://i.stack.imgur.com/sf2cc.jpg)
UIkeyboard popup with uitextfield on top (pic included)
CC BY-SA 3.0
null
2011-06-28T16:58:47.947
2011-06-28T22:12:13.187
null
null
635,064
[ "objective-c", "ios", "cocoa-touch", "uitextfield", "uikeyboard" ]
6,510,485
1
null
null
1
217
I'm trying to build a Hadoop development environment on my Windows XP 32bit environment. When I try to run one of the utilities I get an error message (see screenshot below). I'm pretty sure that the reason why it cannot find the right directory must be an incorrectly specified path - somewhere in the config file. (relevant portion shown below as well). What is the correct way to specify the location of the JDK & Jars on a Win32 platform? ![Command line error](https://i.stack.imgur.com/2aX7c.png) ![Configuration file](https://i.stack.imgur.com/5DYTp.png)
How can I get the Hadoop command-line scripts working on Win32?
CC BY-SA 3.0
null
2011-06-28T17:16:49.887
2011-06-30T21:50:29.303
null
null
46,411
[ "java", "windows", "winapi", "hadoop" ]
6,510,897
1
6,510,926
null
4
818
![enter image description here](https://i.stack.imgur.com/x1D5E.jpg) If this is a Complete Binary Tree, why the following is not? ![enter image description here](https://i.stack.imgur.com/wo6Ad.jpg)
Is this a Complete Binary Tree?
CC BY-SA 3.0
null
2011-06-28T17:51:23.117
2012-09-19T10:27:29.110
2011-08-03T11:01:35.493
688,653
159,072
[ "algorithm", "data-structures", "binary-tree" ]
6,510,972
1
6,514,867
null
3
1,348
I have wpf a user control that accepts input gestures to perform various commands. In the example image below, the user can press to execute the `New` command to create a new item in the `TreeView`. ![enter image description here](https://i.stack.imgur.com/PV77t.jpg) When this user control is hosted within a WPF application, the user can create a new item using when the focus is on the `TreeView`, and when the user presses when the focus is elsewhere in the application, the application level `New` command is executed. When this user control is hosted within a VSPackage ToolWindow, the VS Shell level `New` command to create a new file is executed when the user presses , regardless of focus on the `TreeView`. How do you prevent the VS Shell from getting priority on key/command bindings?
How do you prevent the VS Shell from getting priority on key/command bindings in a VSPackage ToolWindow?
CC BY-SA 3.0
0
2011-06-28T17:57:25.077
2018-08-02T08:10:14.420
2011-12-02T19:22:59.933
305,637
305,637
[ "wpf", "key-bindings", "commandbinding", "vs-extensibility", "vspackage" ]
6,510,979
1
6,512,270
null
1
263
I am using Google Search Application for our website search feature. I am getting the search results in an XML format and i have included the default XSLT file in my application for formatting of the search results. I want to display the XMl results in our search page instead of directing to the search page on the Google Mini Search Server. I am able to display the results in the search page. However, when I try to move to the next page for the search, the links point to the search page on the Google Mini Search server. I need to update the default XSLT file as it contains a couple of variables which point to the search page on the server. ![enter image description here](https://i.stack.imgur.com/3pXMg.jpg) All i want to is replace the search? with Search.aspx? in the XSLT file. I dont want to do it in XSLT, as XSLT file may change and dont want to update it with search template. Is there a way I can do it with C#/ASP.net in code behind. If it were an XMl file, we could read it in a char array and then create a string out of it and then use Replace method to update the values. Can something similar be done with XSLT file too or any other solution. Thanks.
Replacing variable text in XSLT file
CC BY-SA 3.0
null
2011-06-28T17:58:05.017
2011-06-28T19:48:49.490
null
null
757,992
[ "asp.net" ]
6,511,180
1
6,512,032
null
17
26,380
Is it possible to know the current item's Index in a ItemsControl? This works! ``` <Window.Resources> <x:Array Type="{x:Type sys:String}" x:Key="MyArray"> <sys:String>One</sys:String> <sys:String>Two</sys:String> <sys:String>Three</sys:String> </x:Array> </Window.Resources> <ItemsControl ItemsSource="{StaticResource MyArray}" AlternationCount="100">     <ItemsControl.ItemTemplate>         <DataTemplate>             <StackPanel Margin="10"> <!-- one -->                <TextBlock Text="{Binding Path=.,                      StringFormat={}Value is {0}}" /> <!-- two -->                 <TextBlock Text="{Binding Path=(ItemsControl.AlternationIndex),                      RelativeSource={RelativeSource TemplatedParent},                      FallbackValue=FAIL,                      StringFormat={}Index is {0}}" /> <!-- three -->                 <TextBlock Text="{Binding Path=Items.Count,                      RelativeSource={RelativeSource FindAncestor,                          AncestorType={x:Type ItemsControl}},                      StringFormat={}Total is {0}}" />             </StackPanel>         </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> ``` It looks like this: ![enter image description here](https://i.stack.imgur.com/Dnysv.png)
WPF ItemsControl the current ListItem Index in the ItemsSource
CC BY-SA 3.0
0
2011-06-28T18:14:34.090
2016-04-21T09:05:13.670
2011-08-04T22:21:25.727
265,706
265,706
[ "wpf", "indexing", "itemscontrol" ]
6,511,610
1
null
null
1
1,045
The code bellow reproduces a behavior I've come across today that's pretty strange (). On hover, Firefox colors the `checkbox` with a black border. As seen on the image. ![the black border should not exist](https://i.stack.imgur.com/T1tIV.png) All other browsers (chrome, safari and all IE's) don't experience similar effect. Any idea on how I can (keeping the `height` attribute) make Firefox behave? ``` <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> #c-box { height: 20px; } </style> </head> <body> <input id="c-box" type="checkbox"> <label for="c-box">this is a checkbox</label> </body> </html> ```
Firefox 5 styling checkbox strange background
CC BY-SA 3.0
0
2011-06-28T18:50:53.313
2011-11-25T06:01:59.350
2011-06-28T23:39:32.853
67,945
67,945
[ "css", "windows", "firefox", "firefox-5" ]
6,511,700
1
6,511,758
null
0
762
I want to show a pop-up kind of webpage on another webpage by darkening it as a background as shown in below images. Can you please help me understanding how this can be achieved? Thanks! Example 1: ![The background webpage is darkened](https://i.stack.imgur.com/9KUEa.png)
How to darken a webpage and show another webpage over it (images attached)?
CC BY-SA 3.0
0
2011-06-28T18:57:37.363
2011-06-28T19:06:13.133
null
null
722,531
[ "javascript", "html", "css", "web" ]
6,511,969
1
6,527,409
null
2
496
This is daunting me and I can't see the way to go. This is the first time I put a question here, so correct me if I´m not following protocol. Thanks!!! I need the background of the menu to change according to the selected item so when active, the items to the left will show in orange while keeping the items on the right in gray. Also, the triangle separating the colors have to keep to the right of the active menu item. For the first element, is easy, but the second and forward, I cant make the code work as it cuts on the boundaries of the menu. For example, I have [individuos] [empresas] [corredores] [proveedores] When empresas is active, individuos and empresas should be orange while corredores and provedores should be gray. If corredores is selected, then individuos, empresas and corredores should be orange while proveedores is gray. I wanted to post an image to illustrate but as newbie I am not allowed. ``` #navigation { position: absolute; line-height: 40px; padding: 0; margin: 0; margin-left: 210px; width: 730px; background-color: #757373; } #navigation ul li a { text-decoration: none; float: left; padding: 0 40px 0 10px; } #navigation .empresas .active { background: url(images/the-background.png) no-repeat right; } ``` This one is good ![First active element appears correctly](https://i.stack.imgur.com/gvaNH.png) This one is not, see that INDIVIDUOS should be orange ![Second element is missing orange on the left for first element](https://i.stack.imgur.com/W42FD.png)
How to have a changing background on a menu depending on selected item
CC BY-SA 3.0
0
2011-06-28T19:20:41.290
2011-06-29T21:21:36.510
2011-06-29T21:19:56.837
819,831
819,831
[ "css", "menubar" ]
6,512,547
1
6,512,654
null
0
167
So, I had a UINavigationItem with a value for the "prompt" property (which shows the smaller text along the top of the bar). I decided I didn't like the text, so I removed it. But the extra space remains. Obviously I can just recreate this view... but I was wondering if anyone has seen this before, and if there is a simple fix (something akin to pressing ctrl-0 in SQL Management Studio to insert a null instead of an empty string). ![UINavigationItem with too much space](https://i.stack.imgur.com/R2llS.png)
UINavigationItem - Removed "prompt", but extra space for prompt still appears
CC BY-SA 3.0
0
2011-06-28T20:14:23.900
2011-06-28T20:25:30.880
null
null
355,583
[ "ios", "cocoa-touch", "interface-builder", "xcode4", "uinavigationitem" ]
6,512,838
1
6,538,949
null
2
3,926
I have this test fixture I want to run with Fitnesse and it involves using Spring. I haven't been able to load the spring application context with the ClasspathXmlApplicationContext, and I'm sure is a classpath configuration thing that I just haven't figured it out. So here's my setup. ![Project contents](https://i.stack.imgur.com/8cCEs.png) As you can see, the fitnesse.jar is inside the project, so I can run the fitnesse server and the tests anywhere I have a working copy of the project (all the wiki files are inside the FitNesseRoot folder). The is the output folder of the project (where all the .class are). Now, the code: (wiki page from Fitnesse, notice the declarations) ``` !define TEST_SYSTEM {slim} !path ../bin !path ../web/WEB-INF/lib/**.jar |import | |com.softclear.inventario.test.fitnesse| |Query:listar status | |id|nombre|entidad|descripcion| ``` (the text fixture invoked by Fitnesse) ``` public class ListarStatus { private ServicioStatus serv; private ClassPathXmlApplicationContext ctx; //fitnesse calls the constructor public ListarStatus(){ ctx = new ClassPathXmlApplicationContext(new String[] { "applicationContext-ListarStatus.xml", "applicationContext-dao.xml", "applicationContext-hibernate.xml"}); //performs dependency injection of DAO and HibernateSession serv = (ServicioStatus) ctx.getBean("servicioStatus"); } //and the query method is the test public List<Object> query() { List<Status> lista = serv.listarStatus(); QueryResultBuilder builder = new QueryResultBuilder(Status.class); QueryResult result = builder.build(lista.iterator()); return result.render(); } } ``` I run fitnesse with java -jar from the working copy of my project. And when I run the test, this is the command that fitnesse executes: ``` java -cp fitnesse.jar;../bin;C:\Dev\WS\softclear\SistemaInventario\fitnesse\..\web\WEB-INF\lib\ajax\AjaxFileUpload-0.03.jar;%the.rest.of.the.web-inf/lib.jars...% fitnesse.slim.SlimService 8086 ``` And all that produces this error in the test: ``` java.io.FileNotFoundException: class path resource [applicationContext-ListarStatus.xml] cannot be opened because it does not exist ``` As fas as I understand, the in the wiki should indicate all the subfolders and stuff to be included in the classpath (the java -cp call), but apparently it doesn't... Any ideas? Thanks a lot for your time!
How to load Spring's application context with a Fitnesse test fixture?
CC BY-SA 3.0
null
2011-06-28T20:42:34.387
2011-06-30T19:13:37.603
2011-06-30T17:52:17.577
55,037
55,037
[ "java", "spring", "automated-tests", "fitnesse" ]
6,513,067
1
6,515,701
null
8
30,378
I'm trying to build a site that works best at fairly high resolutions, but also slides as far left as possible when the resolution gets lower. I'm not even sure what code to copy in here, so the link is: [projects.thomasrandolph.info](http://projects.thomasrandolph.info) What I need is for the left side of `#page` to stop sliding left at the right side of `#logo` plus a few pixels. It's `13.25em` from the left of the page. I've set the left margin of `#page` to `13.25em`, which looks correct, but at higher resolutions, the page looks strange because it's not centered. I want to retain the centering but also stop it sliding at a certain point. So I want the left side to go no farther left than this: ![left alignment](https://i.imgur.com/rfGYv.png) I would VASTLY prefer If I could do this with pure CSS on the two elements I've noted here, but I can add HTML as necessary. I've been struggling for a long time with how to even ASK this question, so please ask me questions, or edit this question to improve the clarity of the question. # Update: Here are images of how it looks at two resolutions: ## 1920 ![1920 res](https://i.imgur.com/tqTcv.png) ## 1280 ![1280 res](https://i.imgur.com/GOSXl.png) Here's an image of how it look at resolutions below approximately `1540`: ![min left margin](https://i.imgur.com/rfGYv.png) Any resolution higher than ~`1540` would slide smoothly to the right, as it currently does.
Enforce a "min-margin" for a fluid layout
CC BY-SA 3.0
0
2011-06-28T21:05:01.757
2016-04-28T18:16:55.810
2011-06-28T21:23:23.367
597,122
597,122
[ "html", "css", "layout", "fluid-layout" ]
6,513,472
1
6,513,668
null
3
81
In my drawable folders i have my icon image, and when testing i use it as a temp picture. I added 2 other images and a XML file and when ever the app loads the imageviews with the icon set to it has different images.. this is what it is meant to be be.. ![enter image description here](https://i.stack.imgur.com/tzj7X.png) but this is what it is when i add other images to the drawable folder ![enter image description here](https://i.stack.imgur.com/aSMmA.png) And no, the names of the files are not the same. The icon is called 'icon.png' - thats what it should be instead it is 'ic_menu_compose.png' - a completely different name. Also the files i'm adding are called: 'buttonnormal.png' 'buttonclicked.png' and a XML file - 'buttonselector.xml' Even if i dont use these images any where within my app the problem still occurs. Any help would be much appreciated. Thanks! :) [EDIT] ![enter image description here](https://i.stack.imgur.com/qrP0p.png)
Android images affecting each other
CC BY-SA 3.0
null
2011-06-28T21:47:34.203
2011-06-28T22:15:35.667
2011-06-28T21:56:49.257
720,394
720,394
[ "java", "android" ]
6,513,464
1
6,513,501
null
1
298
Am having some SQL () issues I was getting the following error: There was an error parsing the query. ``` (1) ERROR:> [Token Line number = 1, Token Line offset 853, Token in error = @clID] ``` from the following SQL line: ``` mySQLCommand1.CommandText = "INSERT into clientSubjectiveComplaints (clientSubComplaintCreated,clientSubComplaintModified,clientSubComplaintAge,clientSubComplaintWeight,clientSubComplaintHeight,clientSubComplaintConfirmation,clientSubComplaintEnviorment,clientSubComplaintFood,clientSubComplaintPresentComplaint,clientSubComplaintHistoryofPresentComplaint,clientSubComplaintPastMedicalHistory,clientSubComplaintMedication,clientSubComplaintLastDentalCheckUp,clientID) VALUES (@ClientSubComplaintCreated, @ClientSubComplaintModified, @ClientSubComplaintAge, @ClientSubComplaintWeight, @ClientSubComplaintHeight, @ClientSubComplaintConfirmation, @ClientSubComplaintEnviorment, @ClientSubComplaintFood,@ClientSubComplaintPresentComplaint, @ClientSubComplaintHistoryofPresentComplaint, @ClientSubComplaintPastMedicalHistory, @ClientSubComplaintMedication, @ClientSubComplaintLastDentalCheckUp, @clID"; ``` This was when I was trying to insert into the table . ![enter image description here](https://i.stack.imgur.com/5Wfpk.png) NOTE: The above db Validates ok. Assuming after reading around the internet a bit that it might be a Private Key Foreign Key issue but I am not entirely sure. I changed some of the table to 1:1 relationships (see image below) as it makes more sense anyways but then stated reading that if you have a 1:1 relationship then it expects the Primary Key to be the same for the tables. [See Here](https://stackoverflow.com/questions/1761362/entity-framework-one-to-one-mapping-issues/1761403#1761403) : What was meant by the original error (1) and why was i getting the Token error? And Secondly: Assuming the PK key issue in the [See Here](https://stackoverflow.com/questions/1761362/entity-framework-one-to-one-mapping-issues/1761403#1761403) is correct then what is the correct procedure for making 1:1 relationships. Thanks. ![enter image description here](https://i.stack.imgur.com/LHkYM.png)
Foreign Keys, Private Keys MSSQL 1:1 and 1:Many issues
CC BY-SA 3.0
null
2011-06-28T21:46:25.843
2011-06-28T21:50:05.737
2017-05-23T12:19:48.617
-1
758,323
[ "c#", "mysql", "sql", "sql-server-ce" ]
6,513,498
1
6,513,548
null
1
698
CSS is defaulting to input[type="text"] style. How can I make the .wideTextBox take precedence? ``` @Html.TextBoxFor(model => model.ConsumerBatchInVM.OptInSmsMessage, new { @class = "wideTextBox" }) .wideTextBox { width: 400px; } input[type="text"] { width: 300px; border: 1px solid #CCC; } ``` ![enter image description here](https://i.stack.imgur.com/7yOsn.png)
CSS precedence textbox bigger MVC3
CC BY-SA 3.0
null
2011-06-28T21:49:48.357
2011-06-28T21:54:36.710
null
null
26,086
[ "css", "asp.net-mvc-3" ]
6,513,634
1
6,513,700
null
1
880
I've got a problem with this plugin [http://odyniec.net/projects/imgareaselect/](http://odyniec.net/projects/imgareaselect/) I think that image describes it all. ![enter image description here](https://i.stack.imgur.com/p5ah8.png) I've got selected whole image, but thumb shows only part of it. It does appear so bad even on bigger images. my code ``` function preview(img, selection) { if (!selection.width || !selection.height) return; var scaleX = 100 / selection.width; var scaleY = 100 / selection.height; $('#preview img').css({ width: Math.round(scaleX * 300), height: Math.round(scaleY * 300), marginLeft: -Math.round(scaleX * selection.x1), marginTop: -Math.round(scaleY * selection.y1) }); } $(function () { $('#photo').imgAreaSelect({ aspectRatio: '1:1', handles: true, fadeSpeed: 200, onSelectChange: preview }); }); ``` I tried jcrop but it does the same
Jquery image cropping problem - showing another part of image than selected
CC BY-SA 3.0
null
2011-06-28T22:03:36.343
2013-06-10T17:33:13.203
null
null
764,846
[ "javascript", "jquery", "jquery-plugins", "image-processing", "crop" ]
6,513,831
1
null
null
3
89
I'm just a newbiee with profiling web apps.Given a profile log file what info could I get? and how do I know where I need to work on to make my app faster. I have this sample zend application's index page profile that I don't know how to interpret: ![enter image description here](https://i.stack.imgur.com/qYHDz.jpg)
How do I interpret profiling logs of my zend web app?
CC BY-SA 3.0
null
2011-06-28T22:29:31.147
2011-06-30T17:44:09.537
2011-06-28T22:32:05.157
142,162
717,694
[ "php", "zend-framework", "profiler" ]
6,513,903
1
6,514,172
null
1
2,303
i have a youtube video and a like button on top of it. The problem occurs when i click the like button and the 'leave comment' dialog opens. it goes underneath the video. ``` <div> <div class="like_like"> <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=211607088882&amp;xfbml=1"></script> <fb:like href="http://www.xxx.com/tpain.php" layout="button_count" show_faces="false" width="240" height="40" action="like" colorscheme="light"></fb:like> </div> </div> <div class="insidde_video"> <iframe width="300" height="200" src="http://www.youtube.com/embed/CNmCOTBsAwQ" frameborder="0" allowfullscreen></iframe> </div> ``` ![enter image description here](https://i.stack.imgur.com/PYW1Z.jpg) any ideas? ## thanks the solution is to add `?wmode=opaque` on the youtube iframe src. ex: `<iframe width="300" height="200" src="http://www.youtube.com/embed/-oQFSfuRy24?wmode=opaque" frameborder="0" allowfullscreen></iframe>` thanks all
facebook and css, how to place a like comment dialog on top of a video?
CC BY-SA 3.0
null
2011-06-28T22:37:36.727
2011-07-07T23:08:07.683
2011-07-07T23:08:07.683
10,936
642,022
[ "css", "facebook" ]
6,514,259
1
null
null
0
469
Here is the issue I have: I'm trying to make the layout as in the the picture: ![http://i53.tinypic.com/szack0.jpg](https://i.stack.imgur.com/PjIdY.jpg) Of course I would prefer a div only version, but my affords so far have gone in vain. I have come up with a combination of tables and divs to make it work in Firefox, but in IE8 (possibly other IE versions) it is not showing the background images 2 and 4. Any ideas on how to make this work in IE as well? PS: No time to wait for CSS3 and I have tried quirks mode and the background is showing, but many other issues immerse then. I would prefer to keep the 'transitional' mode. HTML: ``` <table id="middletable" class="bg"> <tr><td class="left" width="*"> <table class="bg"> <tr><td id="leftimg">&nbsp;</td></tr> </table> </td> <td width="84"> <div class="middle"> CONTENT </div> </td> <td class="right" width="*"> <table class="bg"> <tr><td id="rightimg">&nbsp;</td></tr> </table> </td></tr> </table> ``` CSS: ``` table.bg { width: 100%; height: 100%; border-collapse:collapse; } #middletable { background: #fff; } #middletable td.left { background: url('http://www.budowastrony.pl/fantom/images/site/middle-bg-left-rx.jpg') repeat-x top #ff0000; text-align: right; vertical-align: top; } #middletable td.right { background: url('http://www.budowastrony.pl/fantom/images/site/middle-bg-right-rx.jpg') repeat-x top #ff0; text-align: left; vertical-align: top; } #leftimg { height: 100%; width: 100%; background: url('http://www.budowastrony.pl/fantom/images/site/bg-middle-left-nr.jpg') no-repeat top right #ccc; } #rightimg { height: 100%; width: 100%; background: url('http://www.budowastrony.pl/fantom/images/site/bg-middle-right-nr.jpg') no-repeat top left #000; } ```
IE showing only 1 background image div inside div
CC BY-SA 3.0
null
2011-06-28T23:31:16.160
2017-12-26T11:23:59.973
2017-12-26T11:23:59.973
4,370,109
820,137
[ "html", "css", "image", "html-table" ]
6,514,310
1
6,514,504
null
0
144
I am trying to modify a JQuery Content Slider that Im currently using to have the Thumb pics appear at the bottom instead of appearing at the side: Here is the current Content Slider that has the Thumb Pics on the side: [http://jsfiddle.net/NinjaSk8ter/6WXkM/](http://jsfiddle.net/NinjaSk8ter/6WXkM/) ![enter image description here](https://i.stack.imgur.com/fAcRp.jpg) This is my implementation where I have moved the Thumb Pics at the bottom: [http://jsfiddle.net/NinjaSk8ter/QaLg2/](http://jsfiddle.net/NinjaSk8ter/QaLg2/) As you can see the problem is that my Arrow Pointer has dissappeared. Does anyone know why is this occurring? ![enter image description here](https://i.stack.imgur.com/TXaKq.jpg)
CSS Style Issue with Content Slider Pointer
CC BY-SA 3.0
null
2011-06-28T23:41:01.817
2011-06-29T01:08:15.803
2011-06-29T01:08:15.803
598,931
598,931
[ "css" ]
6,514,334
1
6,519,249
null
1
108
Today is the day i (with little hesitation) mavenized my project. All is well, things compile, but OMG .. what happened to my project layout? "src" is repeated twice, one is a source folder the other one is not. I seem to be missing sub-folders under src down below ... it's a mess. Could someone please let me know where it all went wrong? ![enter image description here](https://i.stack.imgur.com/NNNEC.jpg)
Project after Mavenizing
CC BY-SA 3.0
null
2011-06-28T23:45:10.353
2011-06-29T10:33:53.233
null
null
359,862
[ "maven", "project" ]
6,514,431
1
6,514,466
null
3
3,809
My last 'if' statement is rendering as text. How can i fix that? See how the grey highlighting for the 2nd 'if' statement completes on the end of the last 'if' statement? ![My Printscreenieeeee](https://i.stack.imgur.com/FGjGb.png) thanks
Razor View if statement incorrect
CC BY-SA 3.0
null
2011-06-29T00:07:21.880
2013-02-18T10:40:28.953
null
null
511,438
[ "asp.net-mvc-3", "razor" ]
6,514,716
1
6,514,729
null
2
313
I want to create a UI like the on in Mint.com app. Is it a UIScrollView with UITableView cells in it? Notice how each block/cell has multiple data values in it. ![enter image description here](https://i.stack.imgur.com/2I1RT.png)
How To Replicate This User Interface Design?
CC BY-SA 3.0
0
2011-06-29T01:00:32.983
2012-01-14T07:53:15.547
2012-01-14T07:53:15.547
544,050
815,767
[ "iphone", "objective-c", "ios", "xcode", "user-interface" ]
6,514,768
1
7,955,438
null
3
675
I'm trying to add custom Display Items to the Fonts and Colors dialog. I can successfully save and retrieve colors using the [IVsFontAndColorStorage](http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivsfontandcolorstorage.aspx) service but the items do not appear in the list of Display Items. I have tried following this blog [post](http://blogs.msdn.com/b/dr._ex/archive/2005/06/03/425099.aspx) about adding a custom category. My category appeared but only with the default display items. My real goal is to add my custom colors to the "Text Editor" category. ReSharper does a similar thing. ![Fonts and Colors Dialog](https://i.stack.imgur.com/cEbnl.png) Have anyone had experience with this? Is there a nice tutorial out there?
VS2010 SDK - Adding Display Items to the Fonts and Colors options dialog
CC BY-SA 3.0
null
2011-06-29T01:10:55.723
2011-11-17T00:12:02.823
null
null
13,688
[ "visual-studio-2010", "resharper", "visual-studio-sdk" ]
6,514,808
1
6,514,854
null
0
292
I was able to style button to my liking with pure XML (no image). Here is how it looks: shape_button_normal_blue.xml ``` <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:radius="7dip"/> <gradient android:startColor="@color/blue_start" android:endColor="@color/blue_end" android:angle="270" /> <stroke android:width="1dip" android:color="#80036990" /> <padding android:left="5dip" android:right="5dip" android:top="7dip" android:bottom="7dip"/> </shape> ``` Similar to that I described other shapes for pressed/disabled/etc Here is my selector_button_blue: ``` <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_window_focused="false" android:state_enabled="true" android:drawable="@drawable/shape_button_normal_blue" /> <item android:state_window_focused="false" android:state_enabled="false" android:drawable="@drawable/shape_button_disabled" /> <item android:state_pressed="true" android:drawable="@drawable/shape_button_selected" /> <item android:state_focused="true" android:state_enabled="true" android:drawable="@drawable/shape_button_focused_blue" /> <item android:state_enabled="true" android:drawable="@drawable/shape_button_normal_blue" /> <item android:state_focused="true" android:drawable="@drawable/shape_button_normal_blue" /> <item android:drawable="@drawable/shape_button_disabled" /> </selector> ``` And finally my style: ``` <style name="MyBlueButton" parent="@android:style/Widget.Button"> <item name="android:background">@drawable/selector_button_blue</item> <item name="android:layout_marginLeft">1dp</item> <item name="android:layout_marginRight">1dp</item> <item name="android:layout_marginTop">5dp</item> <item name="android:layout_marginBottom">5dp</item> <item name="android:textColor">@color/white</item> <item name="android:textSize">18dp</item> <item name="android:textStyle">bold</item> <item name="android:layout_height">wrap_content</item> <item name="android:layout_width">fill_parent</item> </style> ``` I'm using those buttons just fine with text. Happy and proud :) Now I need to put icon on them. I see there is drawingTop/Bottom/Left/Right but it doesn't do what I need. What do I miss here? How do I make it nice and centered? ``` <Button style="@style/MyBlueButton" android:layout_marginTop="0dp" android:text="" android:layout_width="0dp" android:layout_weight="0.15" android:drawableTop="@drawable/ic_accept"/> ``` ![enter image description here](https://i.stack.imgur.com/dt0mf.png)
Styled my buttons. Now what? I need to add icon
CC BY-SA 3.0
null
2011-06-29T01:18:52.837
2011-06-29T01:27:17.007
null
null
509,600
[ "android", "android-layout" ]
6,515,123
1
6,515,452
null
0
193
I tested my app with instruments: ![enter image description here](https://i.stack.imgur.com/BOTKa.png) When scrolling table views, it's around 20-50 fps, (more like 25 average). Is that good enough? I've reused the table view cells and did quite a lot of optimisations.
How many FPS is good for a non gaming iphone app?
CC BY-SA 3.0
null
2011-06-29T02:23:44.390
2011-06-29T03:28:18.613
null
null
361,247
[ "iphone", "performance", "xcode-instruments" ]
6,515,494
1
null
null
1
327
I have a requirement hope i can get answer here. I am using a theme in my web application. That will style the Table as By the default table rows will have colors alternatively as shown below. ![enter image description here](https://i.stack.imgur.com/Nz5Lr.png) The color will be changed whenever i click on any of that Checkbox or radio buttons(Assumes we are clicking on checkbox means we are clicking on ).But if i change the property of checkbox programatically (with exclusive buttons), style is not effecting on that as below. ![enter image description here](https://i.stack.imgur.com/bna3X.png) for that i have written a code to manually fire Click event. But it is not working.. Please someone help me. Below is my code.I can't paste HTML, Sorry. ``` $('TABLE TBODY TR TD INPUT').change(function() { if($(this).prop('checked')) { S(this).parents('TD').click(); } }); ```
Changing the background of a <td> by firing a click event is not working
CC BY-SA 3.0
null
2011-06-29T03:37:41.137
2011-06-29T19:46:22.060
2011-06-29T05:09:35.427
791,523
791,523
[ "jquery" ]
6,515,704
1
6,515,758
null
0
1,313
This is one my first ventures into the world of iOS development. I am trying to make a simple app where a big ball pushes around a little ball. I have been reading a couple tutorials and I am stuck at the very first point. Please let me know if I'm doing anything crazy (which I probably am). Any suggestions at all will be hugely appreciated. The following code is located in my init function: ``` CGSize winSize = [[CCDirector sharedDirector] winSize]; CCSprite *player = [CCSprite spriteWithFile:@"player.png" rect:CGRectMake(0, 0, 40, 40)]; player.position = ccp(player.contentSize.width/2 + 10, winSize.height/2); [self addChild:player]; CCSprite *ball = [CCSprite spriteWithFile:@"ball.png" rect:CGRectMake(0, 0, 20, 20)]; ball.position = ccp((player.contentSize.width/2 + 10)+ball.contentSize.width/2, winSize.height/2); [self addChild:ball]; ``` The player is the bigger ball of course. I would guess that this code should put both balls in the vertical center of the screen. But what I get is this: ![enter image description here](https://i.stack.imgur.com/Ae5rC.png) Why is the second ball's center lower than the bigger ball's center? It was my understanding that you should consider the dead center of the sprite to be the point at which you position the sprite and that winSize.height / 2 should put both sprites in the vertical middle. I am defining the sizes (I think) as 40x40 and 20x20, I made sure that these images are exactly this size. If you see anything on an unrelated note about my code, please suggest a better / more efficient way of doing things. Thanks!
Simple Element Positioning in Objective C
CC BY-SA 3.0
null
2011-06-29T04:18:43.767
2011-06-29T10:11:46.697
2011-06-29T04:25:44.783
667,648
242,934
[ "objective-c", "xcode", "ipad", "cocos2d-iphone" ]
6,515,756
1
6,515,880
null
3
732
Please have a view of the attached image. I use VLCJ to build this application. However, it is unexpected that the item in combobox is hidden by the Canvas (which is used in VLCJ player). How to solve it? ![Screenshot](https://i.stack.imgur.com/2cqGW.png)
ComboBox items are overlapped
CC BY-SA 3.0
null
2011-06-29T04:28:27.067
2011-08-06T16:05:08.617
2011-08-06T16:05:08.617
418,556
809,565
[ "java", "swing", "user-interface", "combobox", "vlcj" ]
6,515,902
1
6,516,798
null
9
1,584
Has anyone come across a tutorial to create documentation for functions you create in ? I'm trying to organize some functions that I have written but so far I'm doing a terrible job. I would really like to have a file explicitly for the functions and one for the documentation and somehow add a path to the Mathematica documentation so that Mathematica can also search for it. Take the documentation for the `Sin` function for instance: ![doc](https://i.stack.imgur.com/F7WA1.png) When you click on the arrows it opens a notebook with information on the `Sin` function. I tried copying the contents of that notebook and pasting in a fresh notebook so that I can edit it but I can't modify the contents. I really like Mathematica's format for the documentation and I would like to document my functions in the same way for future reference. Does any one know how to document functions the same way Mathematica does?
Mathematica: Function Documentation
CC BY-SA 3.0
0
2011-06-29T04:53:06.690
2011-06-30T21:56:42.827
null
null
788,553
[ "documentation", "wolfram-mathematica" ]
6,516,052
1
6,516,878
null
4
852
I have one NSTextView containing formatted text and embedded images like following. ![NSTextView with formatted text and embedded image](https://i.stack.imgur.com/xuRBH.png) I want convert above into plain text like following: ``` Hi this is test data (...picture...)This is colored text. ``` Thanks
How to convert NSTextView RTFD data to plain text in cocoa
CC BY-SA 3.0
null
2011-06-29T05:16:13.610
2011-06-29T07:02:55.393
null
null
324,112
[ "nstextview", "nsattributedstring", "string-conversion" ]
6,516,120
1
6,517,195
null
7
2,375
I've got a user control with a control template to show validation errors, validation template: ``` <ControlTemplate x:Key="TextBoxPropertyValidationTemplate"> <StackPanel> <Border BorderBrush="Red" BorderThickness="1"> <AdornedElementPlaceholder x:Name="MyAdorner" /> </Border> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Image Grid.Column="0" MaxHeight="16" MaxWidth="16" Source="{Binding Source={StaticResource ValidationIcon}, Converter={StaticResource UriConverter}}" Margin="1" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Center" HorizontalAlignment="Center" /> <TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Text="{Binding ElementName=MyAdorner, Path=AdornedElement.(Validation.Errors)[0].ErrorContent}" TextWrapping="Wrap" Grid.Column="1" FontSize="10" Foreground="Red" /> </Grid> </StackPanel> </ControlTemplate> ``` And I can't seem to get around a rather irritating problem which looks like this: ![validation](https://i.stack.imgur.com/qYDcX.png) I've been trying to play around with margins on the user control and on the template also some Height=Auto etc but all these don't really help. Any ideas anyone? If that helps the main user control (which nests the ones with validation) is in a TabItem with a AdornerDecorator. Any help appreciated.
WPF Validation Control Template overlapping
CC BY-SA 3.0
0
2011-06-29T05:25:50.257
2018-01-17T12:20:58.830
null
null
674,581
[ "wpf", "validation", "controltemplate", "adorner" ]
6,516,509
1
6,516,553
null
0
375
I am working on MVC3 asp.net. this is my sr=tatement in controller:- ``` ViewBag.rawMaterialRequired = (from x in db.RawMaterial join y in db.ProductFormulation on x.ID equals y.RawMaterialID where y.ProductID == p select new { x.Description, y.Quantity }); ``` this is my code in View:- ``` @foreach(var album in ViewBag.rawMaterialRequired) { @album<br /> } </div> ``` this is my output:- ``` { Description = Polymer 26500, Quantity = 10 } { Description = Polymer LD-M50, Quantity = 10 } { Description = Titanium R-104, Quantity = 20 } ``` this is my desired output:- ![enter image description here](https://i.stack.imgur.com/xrtsf.png)
how can print value of two columns of a table
CC BY-SA 3.0
null
2011-06-29T06:24:18.027
2011-06-29T06:52:35.910
2011-06-29T06:51:54.363
29,407
887,872
[ "asp.net-mvc", "asp.net-mvc-2", "asp.net-mvc-3", "razor" ]
6,516,718
1
null
null
6
6,526
I need to reset collation for all columns in all tables in the database: ![enter image description here](https://i.stack.imgur.com/06Z5D.jpg) I want to use default collation of database I tried to change it under database properties: ![enter image description here](https://i.stack.imgur.com/dKcDg.jpg) but collation already setted in columns and it mean that i cannot overwrite it anybody has script that can do it for me?
how do I reset collation for all columns in the database?
CC BY-SA 3.0
0
2011-06-29T06:45:32.863
2016-03-20T18:56:40.613
2011-07-29T13:56:43.933
665,800
2,246,271
[ "sql", "sql-server", "collections" ]
6,516,860
1
null
null
0
639
I have one console application.The application calls WCF on server. The application runs perfectly in Visual Studio 2008. error: ![enter image description here](https://i.stack.imgur.com/KAmmE.jpg) ![enter image description here](https://i.stack.imgur.com/FuBvf.jpg) I used an installer project in Visual Studio. I make an installer give primary output to the Application. It cannot connect to WCF on server. What steps are necessary to make an installer which has an console (Application)exe, which in turn uses WCF. My Scope Initialization starts from initScopeInfo. ``` private void initScopeInfo() { DBSyncProxy.SqlSyncProviderProxy client = null; ScopeConfigHandler scopeHandler = null; try { //Providing the Config file name('db_config_new.xml') stored in static variable. DBSyncXMLUtil.setXPathDocument(DBSyncConstants.DB_SYNC_CONFIG_FILE_NAME); //DBSyncXMLUtil.setXPathDocument(filepath); string endpoint = DBSyncXMLUtil.getSystemParameter(DBSyncXMLUtil.getDocumnetRoot(), "ServiceURL"); ``` In setXpathDocument ``` public static void setXPathDocument(string uri) { public static XPathDocument doc = null; doc = new XPathDocument(uri); } public static string getSystemParameter(XPathNavigator docroot, string key) { string value = null; try { string xpath = DBSyncConstants.XPATH_SYSTEM_PARAMETER; xpath += "[@key='" + key + "']"; Console.WriteLine("DBSyncXMLUtil :: getParameter() :: XPATH =="+xpath); Probably Error on below mentioned line XPathNavigator node = getDocumnetRoot(doc).SelectSingleNode(xpath); if (node != null) value = node.Value; else Console.WriteLine("Invalid XPATH"); } catch (Exception ex) { Console.WriteLine("DBSyncXMLUtil :: getSystemParameter() :: Exception ==" + ex.ToString()); } return value; } ```
How to make Installer using WCF
CC BY-SA 3.0
null
2011-06-29T06:59:58.510
2011-06-29T10:24:26.403
2011-06-29T10:24:26.403
554,828
554,828
[ "c#", "asp.net", "wcf" ]
6,516,929
1
6,517,018
null
-1
226
I m creating an app in that app i want to invisible this Mr. bla bla two line when i clicked on chat image. any suggestion will be appriciate. thanks in advance. this is my xml file. ``` <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/task_list_frag_list_message_layout" android:background="#EBEBEB" android:layout_marginBottom="10dp" android:descendantFocusability ="blocksDescendants" android:layout_marginTop="10dp" android:layout_below="@+id/task_list_text" android:layout_marginLeft="80dp" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/task_list_chat_persion1" android:text="Mr. Test : " android:textSize="18dp" android:layout_marginTop="13dp" android:textColor="@color/sky_blue_color" /> <TextView android:textColor="@color/black_color" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/task_list_chat_text1" android:text="A send you a data file kindly get it." android:textSize="18dp" android:layout_marginTop="13dp" android:layout_toRightOf="@+id/task_list_chat_persion1" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/task_list_chat_persion2" android:text="Mr. me : " android:textSize="18dp" android:layout_marginTop="13dp" android:layout_below="@+id/task_list_chat_persion1" android:textColor="@color/sky_blue_color" /> <TextView android:textColor="@color/black_color" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/task_list_chat_text2" android:text="I got the data file and i have some doubt in them" android:textSize="18dp" android:layout_marginTop="13dp" android:layout_below="@+id/task_list_chat_persion1" android:layout_toRightOf="@+id/task_list_chat_persion2" /> </RelativeLayout> ``` this two lines are ij relative latout.![enter image description here](https://i.stack.imgur.com/mg3eC.png)
How to invisible line in list view for android Honey comb
CC BY-SA 3.0
null
2011-06-29T07:07:19.530
2011-06-29T07:17:00.180
null
null
785,775
[ "android" ]
6,516,968
1
6,781,390
null
0
864
I have a Facebook [application](https://www.facebook.com/pages/Cody-Style/159581120745430?sk=app_225554037471298) with multiple Like buttons on it. When you click on some Like, the box is not showing the proper content, seams empty, and the count is not saved. Try randomly a few on the linked page. The Facebook [linter](https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ffreeforall.epixhd.com%2Fcalendar%2Fview%2F3) on that URL is reporting everything fine. I have setup the meta tags in the page, as you can see [here](http://freeforall.epixhd.com/calendar/view/3). The empty box looks like this: ![enter image description here](https://i.stack.imgur.com/80yqt.png)
why Facebook Like box showing empty content, and count is not saved
CC BY-SA 3.0
null
2011-06-29T07:11:41.933
2011-08-15T20:35:52.397
2011-08-15T20:33:56.390
95
243,782
[ "php", "html", "facebook", "facebook-like" ]
6,517,176
1
13,100,038
null
4
8,613
``` <asp:TemplateField HeaderText="Select One"> <ItemTemplate> <asp:RadioButton ID="RadioButton1" runat="server" /> </ItemTemplate> </asp:TemplateField> ``` aspx.cs ``` protected void Button1_Click(object sender, EventArgs e) { foreach (GridViewRow di in GridView1.Rows) { RadioButton rad = (RadioButton)di.FindControl("RadioButton1"); if (rad.Checked&&rad!=null) { s = di.Cells[1].Text; } } Response.Redirect("applicants.aspx?form=" +s); } ``` I'm selecting the rows that are selected with this but I have a problem here I want user to be able to select only one `radiobutton` but its allowing all the `radiobutton`s to be selected at once.Can you help me in removing this problem please. please.![enter image description here](https://i.stack.imgur.com/uHqQ1.png)
Mutually exclusive selection of Radiobutton in gridView.ASP.NET C#
CC BY-SA 3.0
0
2011-06-29T07:32:23.207
2015-03-27T12:29:31.180
2011-06-29T07:56:57.587
541,761
541,761
[ "c#", "asp.net", "gridview", "radio-button" ]
6,517,256
1
6,572,252
null
0
155
I've seen such diagrams on many websites, including [HgInit](http://hginit.com/02.html) and I like the looks of them. ![img](https://i.stack.imgur.com/TQGOf.png)
Does anyone knows what's the name of the tool this diagram is written in?
CC BY-SA 3.0
0
2011-06-29T07:40:41.203
2011-07-04T13:35:48.687
null
null
1,178,669
[ "diagram" ]
6,517,328
1
null
null
0
96
I want hide a contact form after sent msg. Only show msg successfully.![enter image description here](https://i.stack.imgur.com/1mGK8.jpg)
How to hide a contact from in joomla1.5
CC BY-SA 3.0
null
2011-06-29T07:48:22.217
2011-07-01T02:43:31.580
null
null
820,267
[ "php", "forms", "joomla1.5", "contacts" ]