Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
4,789,968
1
5,234,938
null
1
296
I'm having some trouble figuring out the appropriate FluentNHibernate mapping syntax for the following data model and domain objects. Here's the data model I'm working against: ![enter image description here](https://i.stack.imgur.com/vYkAG.jpg) And I'm trying to map the following domain objects to that model: ``` namespace FluentNHibernateSandbox.Entities { public abstract class EntityBase { public virtual long Id { get; set; } } } namespace FluentNHibernateSandbox.Entities { public class Attribute : EntityBase { public virtual string Name { get; set; } public virtual string Label { get; set; } public virtual string Description { get; set; } public virtual int SortOrder { get; set; } public virtual Group Group { get; set; } public virtual Editor Editor { get; set; } } } namespace FluentNHibernateSandbox.Entities { public class Group : EntityBase { public virtual string Name { get; set; } public virtual string Label { get; set; } public virtual string Description { get; set; } public virtual int SortOrder { get; set; } public virtual IList<Attribute> Attributes { get; set; } } } namespace FluentNHibernateSandbox.Entities { public class Editor : EntityBase { public virtual string ViewName { get; set; } public virtual string WorkerClassName { get; set; } } } ``` In general, what I ultimately want doesn't seem like it should be all that hard to do, but I after having tried just about every combination of mappings I can think of, I still can't seem to get it right. I just need my Attribute to have a reference to the Group that it belongs to and a reference to the Editor assigned to it, and each Group should have a collection of the Attributes that are part of it. The couple of many-to-many join tables are what seem to be giving me fits. Particularly the APPLICATION_ATTRIBUTE table. Ultimately I only want the Attributes that my application is concerned with, in this case, those with an APPLICATION_ID of 4. Any help would be greatly appreciated. Thanks.
FluentNHibernate mapping syntax help needed
CC BY-SA 2.5
null
2011-01-25T04:24:20.533
2011-03-08T15:58:45.907
2011-01-26T18:58:24.160
18,831
18,831
[ "nhibernate", "fluent-nhibernate" ]
4,790,025
1
4,790,125
null
0
548
![what I start off with](https://i.stack.imgur.com/3lpOD.png) For whatever reason.. when I move past it (go down), the slider gets weird and it graphically changes and doesnt retain a value. ![What I end up with](https://i.stack.imgur.com/pqL1G.png) Notice you can see a shadow of where it was. Any help is greatly appreciated.
UISlider not holding values in UITableView
CC BY-SA 2.5
null
2011-01-25T04:35:07.000
2013-02-16T00:16:38.037
2011-01-25T04:53:24.247
15,541
499,027
[ "iphone", "uitableview", "uislider" ]
4,790,593
1
null
null
0
2,537
This is my down loader controller. First time it works properly. it opens save as popup and able to download required file, But next time it shows direct directory listing. ![enter image description here](https://i.stack.imgur.com/06xoR.png) ``` <?php class Download extends Controller { function Download(){ parent::Controller(); $this->load->helper('download'); echo "I am in constructor"; } function index(){ $file = realpath("download")."\\profile.doc"; echo "I am in index."; exit; if (file_exists($file)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=' . basename($file)); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); exit; }else{ // File Not Found echo "File not found"; } } } ?> ```
Unable to download file using codeigniter
CC BY-SA 4.0
0
2011-01-25T06:26:04.727
2018-06-01T01:19:30.023
2018-06-01T01:19:30.023
1,033,581
187,570
[ "php", "codeigniter" ]
4,790,659
1
4,790,942
null
10
10,654
I have this wierd problem with my table 1. i Have about 20 cells to display 2. Each cell is about 84px in height 3. When i click no the cell, i have set a background colour 4. The first 4 cells are ok, but when i scroll down and click on the 5th cell, the content of each cell starts to overlap with some other content, usually content from 1st 4 cells. I belive its some cell reusability or drawing issue. Am not sure how to solve it, i have checked through my code, but i am not changing the cell's content on touch. Here is my code and will add some pics too ![Cell with overlapped content](https://i.stack.imgur.com/N5cTm.png) ``` - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 104; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [stores count]; } -(UITableViewCell *)tableView:(UITableView *) tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; CGRect Label1Frame = CGRectMake(5, 5, 250, 30); CGRect Label2Frame = CGRectMake(6, 42, 220, 20); CGRect Label3Frame = CGRectMake(6, 62, 220, 20); CGRect Label4Frame = CGRectMake(240,56, 70, 12); UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease]; }else{ // a cell is being recycled, remove the old edit field (if it contains one of our tagged edit fields) UIView *viewToCheck = nil; viewToCheck = [cell.contentView viewWithTag:1]; if (!viewToCheck) { [viewToCheck removeFromSuperview]; DebugLog(@"View removed"); } } //cell.selectionStyle=UITableViewCellSelectionStyleNone; [cell setSelectedBackgroundView:bgView]; NSInteger row=indexPath.row; UILabel *lblTemp; [[cell contentView] clearsContextBeforeDrawing]; //Line 1 lblTemp=[[UILabel alloc] initWithFrame: Label1Frame]; lblTemp.tag=1; lblTemp.text=[[stores objectAtIndex:row] objectAtIndex:0] ; lblTemp.numberOfLines=2; lblTemp.font = [UIFont boldSystemFontOfSize:13]; lblTemp.adjustsFontSizeToFitWidth=YES; lblTemp.minimumFontSize=12; lblTemp.textColor = [UIColor grayColor]; [cell.contentView addSubview:lblTemp]; [lblTemp release]; //Line 2 lblTemp = [[UILabel alloc] initWithFrame:Label2Frame]; lblTemp.tag = 2; lblTemp.text=[[stores objectAtIndex:row]objectAtIndex:1]; lblTemp.font = [UIFont systemFontOfSize:12]; lblTemp.textColor = [UIColor grayColor ]; lblTemp.textAlignment=UITextAlignmentLeft; lblTemp.adjustsFontSizeToFitWidth=YES; lblTemp.minimumFontSize=12; [cell.contentView addSubview:lblTemp]; [lblTemp release]; //Line 3 lblTemp = [[UILabel alloc] initWithFrame:Label3Frame]; lblTemp.tag = 3; lblTemp.text=[[stores objectAtIndex:row]objectAtIndex:2]; lblTemp.font = [UIFont systemFontOfSize:12]; lblTemp.textColor = [UIColor grayColor ]; [cell.contentView addSubview:lblTemp]; [lblTemp release]; //Phone button UIButton *phoneButton=[[UIButton alloc] initWithFrame:CGRectMake(240,16,30,30)]; [phoneButton setBackgroundImage:[UIImage imageNamed:@"phone.png"] forState:UIControlStateNormal]; [phoneButton setTag:row]; [phoneButton addTarget:self action:@selector(dialNumber:) forControlEvents:UIControlEventTouchUpInside]; [cell.contentView addSubview:phoneButton]; //ANnotation button UIButton *annotation=[[UIButton alloc] initWithFrame:CGRectMake(274,16,30,30)]; [annotation setTag:row]; [annotation setBackgroundImage:[UIImage imageNamed:@"tab.png"] forState:UIControlStateNormal]; [annotation addTarget:self action:@selector(openMap:) forControlEvents:UIControlEventTouchUpInside]; [cell.contentView addSubview:annotation]; [annotation release]; //Distance label //Line 3 lblTemp = [[UILabel alloc] initWithFrame:Label4Frame]; lblTemp.tag = 4; lblTemp.text=[[stores objectAtIndex:row]objectAtIndex:5]; lblTemp.textAlignment=UITextAlignmentCenter; lblTemp.font = [UIFont systemFontOfSize:13]; lblTemp.textColor = [UIColor grayColor ]; [lblTemp setAdjustsFontSizeToFitWidth:YES]; [cell.contentView addSubview:lblTemp]; [phoneButton release]; [lblTemp release]; [cell setNeedsLayout]; [cell setNeedsDisplay]; return cell; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell=[tableView cellForRowAtIndexPath:indexPath ]; for(UILabel *lbl in cell.contentView.subviews){ if([lbl isKindOfClass:[UILabel class]]){ lbl.textColor=[UIColor whiteColor]; } } //UITableViewCell *cell1; //NSString *row=[NSString stringWithFormat:@"%d",indexPath.row]; svm = [[storesMapView alloc] initWithNibName:@"storesMapView" bundle:nil]; [svm initWithXML:stores:indexPath.row]; CGRect theFrame = svm.view.frame; theFrame.origin = CGPointMake(self.view.frame.size.width, 0); svm.view.frame = theFrame; theFrame.origin = CGPointMake(0,0); theFrame.size=CGSizeMake(320,355); [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.3f]; svm.view.frame = theFrame; [UIView commitAnimations]; [subView addSubview:svm.view]; backButton.hidden=NO; } ```
UITableViewCell - overlapping with previous cells contents
CC BY-SA 2.5
0
2011-01-25T06:38:14.423
2016-03-03T16:13:57.280
null
null
164,601
[ "cocoa-touch", "uitableview" ]
4,791,114
1
null
null
0
3,240
Greetings By using library, I want to write data to a MSSQL database however I encounter encoding issues. Here is my sample code to write to the DB: ``` # -*- coding: utf-8 -*- import _mssql .... Connection info data here .... def mssql_connect(): return _mssql.connect(server=HOST, user=USERNAME, password=PASS, database=DB, charset="utf-8") con = mssql_connect() INSERT_EX_SQL = "INSERT INTO myDatabsae (Id, ProgramName, ProgramDetail) VALUES (1, 'Test Characters ÜŞiçÇÖö', 'löşüIIğĞü');" con.execute_non_query(INSERT_EX_SQL) con.close() ``` Sadly the data that was written to DB is corrupted: ![enter image description here](https://i.stack.imgur.com/K5qaD.png) The Collacation of my mssql db is: `Turkish_CI_AS` How can this be solved?
python to mssql encoding problem
CC BY-SA 2.5
null
2011-01-25T07:57:33.000
2012-11-25T13:17:44.170
null
null
151,937
[ "python", "sql-server", "character-encoding", "pymssql" ]
4,791,163
1
5,801,025
null
3
2,269
![enter image description here](https://i.stack.imgur.com/cRH9y.png) My objective is to make ProgressView border colored like with green, red etc as mentioned in above screenshot. I am using Custom classes provided by this url. But there is no such border coloring format provided there [http://pwiddershoven.nl/blog/2009/01/04/colored-uiprogressview.html](http://pwiddershoven.nl/blog/2009/01/04/colored-uiprogressview.html) Developer's please suggest Thanks
How to change ProgressView borderColor
CC BY-SA 2.5
0
2011-01-25T08:05:11.253
2015-09-17T13:59:11.160
2011-01-25T09:38:41.863
213,532
213,532
[ "iphone", "objective-c", "border", "uiprogressview" ]
4,791,437
1
null
null
2
246
I'm trying to start the GroomDroid web server in Android but when it starts, a black window is shown. ![enter image description here](https://i.stack.imgur.com/0B23j.png) I'd like to start this app in the background without that screen being shown. I'm starting this app in the following way: ``` Intent webServer = new Intent(); webServer.setClassName("net.allory.groom","net.allory.groom.GroomDroid"); startActivity(webServer); ``` I also tried with `startService(webServer);` but it doesn't seem to work. Can anybody help me with that ?
Run application in the background
CC BY-SA 2.5
0
2011-01-25T08:47:49.333
2011-04-12T09:55:56.437
2011-01-25T08:57:10.897
418,183
588,729
[ "java", "android" ]
4,791,639
1
null
null
4
5,659
I want to avoid from decimal numbers in my Axis, how can I do that ? ![enter image description here](https://i.stack.imgur.com/r4XCW.png) XAML: ``` <Charting:Chart VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch"> <Charting:Chart.Axes> <Charting:LinearAxis Orientation="Y" Minimum="0" Title="" Location="Left" /> </Charting:Chart.Axes> <Charting:Chart.Series> <Charting:ColumnSeries ItemsSource="{Binding Persons}" DependentValueBinding="{Binding Count}" IndependentValueBinding="{Binding Category}"> </Charting:ColumnSeries> </Charting:Chart.Series> </Charting:Chart> ```
LinearAxis without decimal numbers
CC BY-SA 3.0
null
2011-01-25T09:11:29.060
2014-07-07T07:44:35.857
2011-08-31T14:00:04.233
546,730
138,627
[ "wpf", "silverlight", "data-visualization" ]
4,791,675
1
4,792,245
null
1
1,405
When I connect my iPod to MacBook I get this dialog window: ![this dialog window](https://i.stack.imgur.com/BKuPp.png)
iOS versions on device do not match supported versions by Xcode
CC BY-SA 2.5
null
2011-01-25T09:16:09.707
2011-01-25T10:16:50.287
null
null
41,761
[ "xcode", "ios" ]
4,791,674
1
null
null
1
115
I'm looking for a JS control that provides a similar experience to the datepicker on Google Analytics ![GA screenshot](https://i.stack.imgur.com/jeA3b.jpg)
Is there a good JS ranged datepicker control out there?
CC BY-SA 2.5
null
2011-01-25T09:16:08.780
2011-01-25T09:25:22.347
null
null
1,228,206
[ "javascript", "html" ]
4,791,832
1
4,792,005
null
1
1,147
I have been trying to learn web2py for use on App Engine. However I cannot seem to be able to access the admin interface. (The default page loads, when I access it from 127.0.0.1:8080. To access the admin interface, the url used should be 127.0.0.1 (by default)) ![homepage of web2py](https://i.stack.imgur.com/aMCQ1.png) However when I click the admin interface link all I get is this page ![error admin page web2py on local gae](https://i.stack.imgur.com/dgMIN.png) Logging in with any email id does not work. I have been through the tutorial at [http://wiki.web2py.com/Deploying_web2py_on_Google_App_Engine_GAE_](http://wiki.web2py.com/Deploying_web2py_on_Google_App_Engine_GAE_) however, it does not talk about setting a password to access the admin interface on the local App Engine environment.(And I think it is out of date) I have also been through the [web2py book](http://web2py.com/book/default/chapter/03) which talks about setting up a password to access the admin environment (when using the web2py server, this chapter does not talk about app engine) Do I have to set a password to access the admin interface while it is deployed on the local app engine server? If yes, how? If not, How do I access the admin interface? Finally, Can I access the admin interface when the app is deployed on the remote GAE servers?
Web2py on App Engine Local Environment: Cannot access admin interface
CC BY-SA 2.5
null
2011-01-25T09:37:00.173
2011-01-26T02:24:02.357
null
null
405,861
[ "python", "google-app-engine", "web2py" ]
4,792,041
1
4,792,219
null
1
1,376
I'm building an addon ASP.net set of pages ontop of an old classic ASP system. The new pages are in the folder `newversion/` this is the only folder I need rebuilding when I make changes, at the moment it attempts to build the entire site which results in a lot of errors. Can you exclude all other folders from the build configuration? Please note, the other pages are still going to be edited (all the classic ASP ones) so exlcuding them from project etc really doesn't help Here's a screen shot from VS ![enter image description here](https://i.stack.imgur.com/jKNVe.gif)
Visual studio exclude folders from rebuild
CC BY-SA 2.5
null
2011-01-25T09:56:16.330
2015-08-28T13:53:46.963
2015-08-28T13:53:46.963
1,743,880
356,635
[ "visual-studio", "visual-studio-2008", "compiler-construction", "compilation" ]
4,792,185
1
4,798,148
null
0
480
I want if checkbox1 in gridview is checked then the label1 text in gridview is Block if checkbox1 in gridview is unchecked then label1 text n gridview is unblock ... i want to do this because is want .... to block unblock user in ASPNETDB.MDF membership table. .. ![enter image description here](https://i.stack.imgur.com/Ooh1F.png) ``` Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim linkbutton1 As LinkButton = Me.GridView1.SelectedRow.FindControl("LinkButton1") Dim chk As CheckBox = Me.GridView1.SelectedRow.FindControl("CheckBox1") If chk.Checked = True Then linkbutton1.Text = "Block" Dim user As MembershipUser = Membership.GetUser(GridView1.SelectedRow.Cells(1).Text.ToString) 'To block a specific user: user.IsApproved = False Membership.UpdateUser(user) Else linkbutton1.Text = "UnBlock" Dim user As MembershipUser = Membership.GetUser(GridView1.SelectedRow.Cells(1).Text.ToString) 'To block a specific user: user.IsApproved = True Membership.UpdateUser(user) End If End Sub ```
how to change the label1 text to block n unblock if checkbox in gridview1 is checked?
CC BY-SA 2.5
null
2011-01-25T10:11:52.807
2011-01-25T19:52:26.183
null
null
583,181
[ "asp.net", "vb.net", "visual-studio-2008", "gridview", "aspnetdb" ]
4,792,492
1
4,792,563
null
0
2,905
I want to do this ![CSS Cylinders](https://i.stack.imgur.com/kvb8m.png) How to do these with CSS? How do I align the cylinders on the same bottom, and how do I add the caption below them?
How to CSS two vertical cylinders
CC BY-SA 2.5
0
2011-01-25T10:42:15.217
2019-08-08T13:37:01.113
2011-01-25T12:19:32.400
243,782
243,782
[ "html", "css" ]
4,792,641
1
4,797,543
null
6
1,829
Title might be a bit confusing, I'll try my best to explain what I need to achieve. Basically I have the following elements to a particular webpage: 1. Header - always visible above content 2. Content - background image covers the entire content area - this is the key part 3. Sub-footer - information about the content always visible below it 4. Footer - standard company footer, visible if window height is a certain size, otherwise need to scroll down to see it As I mention above, the content portion of the page is maybe the trickiest part. I need a big image to be in the background that covers the entire area. css-tricks has an [excellent guide in the ways to do full page background images](http://css-tricks.com/perfect-full-page-background-image/). So I'm hoping this can be achieved easily. The issue is how to make the sub-footer stay at the bottom if the window is <720px with the footer underneath it below the fold (needing you to scroll to it). A window >720px should show both the sub-footer and the footer with no scrollbars. I won't even worry at this point about a minimum height the content needs to be (possibly necessitating scrollbars on the content `<div>` or making both the sub-footer footer go below the fold). Here are image mockups of what I'm trying to achieve: First - a window <720px tall where the footer needs to be scrolled to: ![<720px tall window where the footer needs to be scrolled to](https://i.stack.imgur.com/3pASa.png) Second - a window <720px tall that has been scrolled down to see the footer: ![enter image description here](https://i.stack.imgur.com/j824l.png) Finally - a tall window >720px that has no scrollbars because everything is visible: ![enter image description here](https://i.stack.imgur.com/s404L.png) I'm using jQuery and don't care about IE6. Can I achieve this in CSS? Do I have to use jQuery to dynamically adjust things? Full page backgrounds are easily done with css3, I'm happy to use css3 or html5 to do what I need.
Background image covering browser window minus header and footer below the fold
CC BY-SA 2.5
null
2011-01-25T10:58:58.367
2011-01-25T18:55:00.797
2011-01-25T17:55:50.737
326,389
326,389
[ "jquery", "html", "css" ]
4,792,861
1
null
null
4
1,041
Simplifying a business example, I have the following situation: Some objects should be distributed in a graph in most "linear" way possible for a given "thermometer". Say, a voyager visits some cities. Several cities are visited multiple times. So, we have list of cities in ordinate axis (that may be duplicated), and Time in abscissas one. Now, for a given path, say we should display a line, in the "most linear way possible". ![enter image description here](https://i.stack.imgur.com/Bnk9R.jpg) By eg. in the image above, the line is optimal one but there could be multiple possible outputs (1 > 2 > 1 > 4 > 5) (1 > 2 > 3 > 4 > 5) (1 > 2 > 6 > 4 > 5) (3 > 2 > 1 > 4 > 5) (3 > 2 > 3 > 4 > 5) (3 > 2 > 6 > 4 > 5) (6 > 2 > 1 > 4 > 5) (6 > 2 > 3 > 4 > 5) (6 > 2 > 6 > 4 > 5) Is there some algorithms helping in such situations?
Sample algorithm to "linearize" a graph
CC BY-SA 2.5
0
2011-01-25T11:19:42.143
2011-01-25T17:13:03.440
2011-01-25T17:13:03.440
185,593
185,593
[ "algorithm" ]
4,792,873
1
null
null
4
2,518
I got a transparant 9patch image which has the 9patch lines showing trough. This is the output: ![enter image description here](https://i.stack.imgur.com/Du8Mq.png) Obviously I don't want the horizontal lines to be visible. This is how I created the 9patch: ![enter image description here](https://i.stack.imgur.com/Zli7o.png) This is the final image that is used in the application: ![enter image description here](https://i.stack.imgur.com/IwOAw.png) AFAIK the 9patch is correct. What do I need to change in order for the horizontal lines to disappear?
Transparent 9patch image: line showing through
CC BY-SA 3.0
0
2011-01-25T11:21:32.023
2012-05-29T12:11:08.230
2011-05-11T22:57:47.807
3,333
123,048
[ "android", "nine-patch" ]
4,792,942
1
4,792,967
null
0
1,123
I have an array of radio button from where i am creating radio buttons dynamically in my layout. Here what i want, when i check one radio button then other radio buttons should be unchecked. How to manipulate this using radio button array? Please some body help! Here is the image. Radio Buttons does not unchecked automatically. ![enter image description here](https://i.stack.imgur.com/aeZcq.png)
Radio button in android
CC BY-SA 3.0
null
2011-01-25T11:28:06.570
2013-01-09T10:15:39.713
2013-01-09T10:15:39.713
1,471,203
489,762
[ "android", "radio-button" ]
4,792,947
1
4,792,995
null
0
115
i am trying to do a program to upload a document in one page and want to navigate to another page with that document name. i wrote code like this ``` <%@ Page Title="Home Page" Language="VB" %> <html> <head> <style type="text/css"> .style1 { width: 100%; } .style3 { width: 185px; } .style4 { width: 129px; } </style> <script language="javascript"> function doc_save() { document.forms[0].submit; action = "mynew_page.aspx"; } doc_save(); </script> <script language ="vbscript " runat ="server" > Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Call save_click() End Sub Public Sub save_click() Response.Write("Saving...") End Sub </script> </head> <body> <form id="form1" runat="server"> <table class="style1"> <tr> <td class="style4"> <asp:Button ID="back" runat="server" Text="Back" /> </td> <td class="style3"> <asp:Button ID="save" runat="server" Text="Save" onClick="doc_save()" /> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label1" runat="server" Text="File Name"></asp:Label> </td> <td class="style3"> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> </tr> <tr> <td class="style4"> <asp:Label ID="Label2" runat="server" Text="Description"></asp:Label> </td> <td class="style3"> <textarea id="txtarea" name="txtarea" runat ="server" ></textarea></td> </tr> <tr> <td class="style4"> <asp:Label ID="Label3" runat="server" Text="File Upload"></asp:Label> </td> <td class="style3"> <asp:FileUpload ID="FileUpload1" runat="server" Width="330px" /> </td> </tr> </table> </form> </body> </html> ``` when i run the program it is showing error like below. of course this code is not yet complete, can u please help to finish this one. ![enter image description here](https://i.stack.imgur.com/7CNWC.png)
While writing the asp.net code it is showing error
CC BY-SA 2.5
null
2011-01-25T11:28:41.757
2013-11-25T10:06:50.093
null
null
526,095
[ "asp.net" ]
4,792,956
1
4,793,092
null
1
1,040
![enter image description here](https://i.stack.imgur.com/nXRK7.gif) Three boxes, a container, left box and main box. ``` /* Left menu */ .leftMenu{ width: 200px; border:2px solid green; height:100px; float:left; min-height:100%; } /* Main Content area */ .mainBox{ border:2px solid red; min-height:100%; } .mainWrapper{ border:2px solid white; } ``` With the HTML: ``` <div class="mainWrapper"> <div class="leftMenu"> left </div> <div class="mainBox"> main<br /><br /><br /><br /><br /> </div> </div> ``` My question is, why is the green box (left menu) overflowing outside the wrapper?
CSS min-height not behaving as expected
CC BY-SA 2.5
null
2011-01-25T11:29:22.013
2013-03-22T22:45:05.930
2011-01-25T11:36:00.190
356,635
356,635
[ "css" ]
4,793,201
1
4,793,403
null
1
9,526
![enter image description here](https://i.stack.imgur.com/Jq1LW.gif) ``` /* Left menu */ .leftMenu{ width: 200px; border:2px solid green; float:left; background-color:#c0c0c0; } /* Main Content area */ .mainBox{ border:2px solid red; background-color: #ffffff; } .mainWrapper{ border:2px solid white; } ``` With ``` <div class="mainWrapper"> <div class="leftMenu"> left </div> <div class="mainBox"> main<br /><br /><br /><br /><br /> </div> <div class="clear"></div> </div> ``` How the blazes do I get the left menu to extend to the bottom? Please note I've tried faux columns but they just don't work as the white main box just is at the front for some reason.
Major problem with 100% height div
CC BY-SA 2.5
0
2011-01-25T11:57:29.517
2015-07-16T06:03:44.387
2011-01-25T12:04:42.733
405,015
356,635
[ "css", "height" ]
4,793,482
1
4,794,036
null
2
1,607
I'm having a strange problem which I cannot figure out for the life of me. I'm loading an OBJ model file from Maya and rendering it an OpenGL environment. This appears to go well and in my independent model viewer, they display correctly. However, when loaded into the game environment (with a somewhat strange projection matrix that I have no control over), the model does NOT display correctly. The vertices SEEM to be in the correct place in that rotating the model gives the correct sense of 3D. However, depending on the depth function, different parts of the model appear (incorrectly). For example, in a model of a person, when the person is walking from left to right (e.g. the right side of the model is visible to the camera); if the depth function is set to `GL_LEQUAL`, you are unable to see the right arm of the person when it is in front of the torso. However, when the mode is set to `GL_LESS`, you are able to see the left arm through the torso. This is one of those things that are easier to see with pictures so here we go: `GL_LESS` or `GL_NOTEQUAL`: ![enter image description here](https://i.stack.imgur.com/3rxIS.png) ![enter image description here](https://i.stack.imgur.com/utPzw.png) `GL_LEQUAL` or `GL_ALWAYS`: ![enter image description here](https://i.stack.imgur.com/VoUu7.png) ![enter image description here](https://i.stack.imgur.com/6G2gw.png) ![enter image description here](https://i.stack.imgur.com/raAGD.png) It should be noted that nothing is displayed with any other depth function. In the first picture of the GL_LEQUAL series, you can just about see the left arm is partially obscured by the torso when it shouldn't be. Here is the code used to render the model: ``` gl.glDisable(GL.GL_BLEND); gl.glMatrixMode(GL.GL_MODELVIEW); gl.glPushMatrix(); gl.glLoadIdentity(); layerTextureShader.updateShader(gl, projection, disparityTop, disparityBottom, fieldMask, 1); // gl.glDepthFunc(GL.GL_NEVER); // 512 // gl.glDepthFunc(GL.GL_LESS); // 513 // gl.glDepthFunc(GL.GL_EQUAL); // 514 // gl.glDepthFunc(GL.GL_LEQUAL); // 515 // gl.glDepthFunc(GL.GL_GREATER); // 516 // gl.glDepthFunc(GL.GL_NOTEQUAL); // 517 // gl.glDepthFunc(GL.GL_GEQUAL); // 518 // gl.glDepthFunc(GL.GL_ALWAYS); // 519 gl.glDepthFunc(currentGlComparison); gl.glEnable(GL.GL_DEPTH_TEST); gl.glClear(GL.GL_DEPTH_BUFFER_BIT); gl.glDepthMask(true); gl.glDepthRange(0, 0.01); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, getVertexBufferObject()); gl.glBufferData(GL.GL_ARRAY_BUFFER, getNoOfVertices() * 3 * 4, getVertices(), GL.GL_STREAM_DRAW); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, getTexCoordBufferObject()); gl.glBufferData(GL.GL_ARRAY_BUFFER, getNoOfVertices() * 2 * 4, getTexCoords(), GL.GL_STREAM_DRAW); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, getIndicesBufferObject()); gl.glBufferData(GL.GL_ELEMENT_ARRAY_BUFFER, getNoOfIndices() * 4, getIndices(), GL.GL_STREAM_DRAW); gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, 0); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, getColorBufferObject()); gl.glBufferData(GL.GL_ARRAY_BUFFER, getNoOfVertices() * 4 * 4, getColors(), GL.GL_STREAM_DRAW); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); gl.glEnable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE0); layerTextureShader.use(gl); gl.glEnableClientState(GL.GL_VERTEX_ARRAY); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, getVertexBufferObject()); gl.glVertexPointer(3, GL.GL_FLOAT, 0, 0); gl.glEnableClientState(GL.GL_COLOR_ARRAY); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, mask ? getMaskColorBufferObject() : getColorBufferObject()); gl.glColorPointer(4, GL.GL_FLOAT, 0, 0); gl.glClientActiveTexture(GL.GL_TEXTURE0); gl.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, getTexCoordBufferObject()); gl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0); gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, getIndicesBufferObject()); final int count = getNoOfIndices(); gl.glDrawElements(GL.GL_TRIANGLES, count, GL.GL_UNSIGNED_INT, 0); gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, 0); gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); gl.glDisableClientState(GL.GL_VERTEX_ARRAY); gl.glDisableClientState(GL.GL_COLOR_ARRAY); gl.glDisableClientState(GL.GL_TEXTURE_COORD_ARRAY); layerTextureShader.release(gl); gl.glDisable(GL.GL_TEXTURE_2D); gl.glDisable(GL.GL_DEPTH_TEST); gl.glEnable(GL.GL_BLEND); gl.glPopMatrix(); ``` Thanks to anyone for any help, this has had me stumped for quite a few days now.
Strange depth/blending in OpenGL drawing models
CC BY-SA 2.5
null
2011-01-25T12:28:52.407
2011-01-25T13:26:16.297
2011-01-25T12:58:20.427
28,169
410,921
[ "opengl", "models", "depth-buffer" ]
4,793,624
1
4,793,691
null
0
918
I am developing app using the jquerymobile framework. I have to set the background image in my all the screen. But the image size is differ from mobile to mobile. I have image based on the iphone screen size. how to set the width and height of the images ,controls based on the browsers resoultion ? how to detect the screen resolution of the browser at run time? I tried to the but that also did not work. I dont want to use repeat attribute Please help me.. Please refer the attachment. THanks in advance ![enter image description here](https://i.stack.imgur.com/LL1lG.png) ![enter image description here](https://i.stack.imgur.com/DpfRb.png) ![enter image description here](https://i.stack.imgur.com/wRoRK.png) ![enter image description here](https://i.stack.imgur.com/Qn0JU.png)
background Images
CC BY-SA 2.5
null
2011-01-25T12:41:51.213
2011-01-25T12:48:03.927
null
null
430,278
[ "jquery", "jquery-mobile" ]
4,794,503
1
null
null
5
7,369
In Visual Studio there are several "Setup and Deployment" projects, one of these is "". ![http://i55.tinypic.com/21cxaoi.png](https://i.stack.imgur.com/mrHlP.png) But I actually want a simple "ZIP Project" which enables me to add some folders + dll's from my solution and package this all in a zip file for easy distribution on the web. - Is there such a project type ?- When I want to create this by myself, what resources and references should I use to build this ? @Cheeso I created a dummy 'class library' project which has dependencies on all the sub projects. In this dummy project I used the post-build event to zip the dll's using 7-zip. But I was hoping that there was a better solution for this.
Is there a "ZIP project" in Visual Studio?
CC BY-SA 2.5
0
2011-01-25T14:17:59.140
2020-01-15T13:51:53.087
2020-01-15T13:51:53.087
1,016,343
255,966
[ "visual-studio", "msbuild", "zip", "project", "cab" ]
4,794,910
1
4,795,548
null
0
1,533
I have a gridview with certain boxes that are highlighted in green. These boxes should fill the entire box, but I can't seem to trash this 1px border around the edges. I'm using IE7, but FF does it too. ![GridViewSS](https://i.stack.imgur.com/VQPeZ.png) ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> </title><link href="Style/StyleSheet.css" rel="stylesheet" type="text/css" /><link href="App_Themes/Contoso/Style.css" type="text/css" rel="stylesheet" /></head> <body> <form name="form1" method="post" action="GridViewColoring.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODIyMTgxMzQxZBgBBQh0ZXN0R3JpZA88KwAMAQgCAWR6Qz5BuXEoalr4HjsTfYqqKPrdwd2ICIXpeNacwdi46w==" /> </div> <div> <div> <table class="cssTable" cellspacing="0" rules="all" border="1" id="testGrid" style="border-collapse:collapse;"> <tr> <th scope="col">Description</th><th scope="col">Serial#</th> </tr><tr style="background-color:Yellow;"> <td class="NoMargin NoPadding" style="font-size:Smaller;"> <span id="testGrid_ctl02_descriptionLbl">Some desc 1/25/2011 9:51:27 AM</span> </td><td style="font-size:Smaller;"> <span id="testGrid_ctl02_serialNumberLbl" class="NoMargin NoPadding MaxHeightAndWidth NoBorder" style="display:inline-block;height:100%;width:100%;">0</span> </td> </tr><tr style="background-color:Yellow;"> <td class="NoMargin NoPadding" style="font-size:Smaller;"> <span id="testGrid_ctl03_descriptionLbl">Some desc 1/25/2011 9:51:27 AM</span> </td><td style="font-size:Smaller;"> <span id="testGrid_ctl03_serialNumberLbl" class="NoMargin NoPadding MaxHeightAndWidth NoBorder" style="display:inline-block;background-color:#CCFFCC;height:100%;width:100%;">1000</span> </td> </tr><tr style="background-color:Yellow;"> <td class="NoMargin NoPadding" style="font-size:Smaller;"> <span id="testGrid_ctl04_descriptionLbl">Some desc 1/25/2011 9:51:27 AM</span> </td><td style="font-size:Smaller;"> <span id="testGrid_ctl04_serialNumberLbl" class="NoMargin NoPadding MaxHeightAndWidth NoBorder" style="display:inline-block;background-color:#CCFFCC;height:100%;width:100%;">2000</span> </td> </tr> </table> </div> </div> </form> </body> </html> ``` ``` body { } .NoMargin { margin:0 0 0 0; } .NoPadding { padding:0 0 0 0; } .BgColor { background-color:Aqua; } .MaxHeightAndWidth { height:100%; width:100%; } .NoBorder { border:0px; } ``` ``` <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridViewColoring.aspx.cs" Inherits="WebApplication1.GridViewColoring" %> <!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 runat="server"> <title></title> <link href="Style/StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView id="testGrid" runat="server" CssClass="cssTable" AutoGenerateColumns="False" OnRowDataBound="SetStatusColors" > <Columns> <asp:TemplateField HeaderText="Description" SortExpression="description" ItemStyle-CssClass="NoMargin NoPadding"> <ItemTemplate> <asp:Label ID="descriptionLbl" runat="server" Text='<%# Bind("description") %>'></asp:Label> </ItemTemplate> <ItemStyle Font-Size="Smaller" /> </asp:TemplateField> <asp:TemplateField HeaderText="Serial#" SortExpression="serial"> <ItemTemplate> <asp:Label ID="serialNumberLbl" runat="server" Text='<%# Bind("serial") %>' CssClass="NoMargin NoPadding MaxHeightAndWidth NoBorder" Height="100%" Width="100%"></asp:Label> </ItemTemplate> <ItemStyle Font-Size="Smaller" /> </asp:TemplateField> </Columns> </asp:GridView> </div> </form> </body> </html> ``` ``` using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; namespace WebApplication1 { public partial class GridViewColoring : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { testGrid.DataSource = MakeTable(); testGrid.DataBind(); } protected void SetStatusColors(object sender, GridViewRowEventArgs e) { for (int i = 0; i < testGrid.Rows.Count; i++) { string serialNumber = ((Label)testGrid.Rows[i].FindControl("serialNumberLbl")).Text; if (serialNumber != "0") { //GREEN HIGHLIGHTS ((Label)testGrid.Rows[i].FindControl("serialNumberLbl")).BackColor = System.Drawing.Color.FromArgb(204, 255, 204); } testGrid.Rows[i].BackColor = System.Drawing.Color.Yellow; } } //mock db private DataSet MakeTable() { var table = new DataTable("ParentTable"); DataColumn column; DataRow row; // Create new DataColumn, set DataType, // ColumnName and add to DataTable. column = new DataColumn(); column.DataType = System.Type.GetType("System.Int32"); column.ColumnName = "serial"; column.ReadOnly = true; // Add the Column to the DataColumnCollection. table.Columns.Add(column); //// Create second column. column = new DataColumn(); column.DataType = System.Type.GetType("System.String"); column.ColumnName = "description"; column.AutoIncrement = false; column.Caption = "Description"; column.ReadOnly = false; column.Unique = false; // Add the column to the table. table.Columns.Add(column); // Instantiate the DataSet variable. var dataSet = new DataSet(); // Add the new DataTable to the DataSet. dataSet.Tables.Add(table); // Create three new DataRow objects and add // them to the DataTable for (int i = 0; i <= 2; i++) { row = table.NewRow(); row["serial"] = i * 1000; row["description"] = "Some desc " + DateTime.Now; table.Rows.Add(row); } return dataSet; } } } ``` Changed the Serial# template's itemstyle and it fixed the problem. I have no idea why, but thanks to your tips, I was able to reduce the problem down enough to try it: ``` <ItemStyle Font-Size="Smaller" CssClass="NoMargin NoPadding" /> ```
Gridview column color doesnt fill entire box
CC BY-SA 2.5
null
2011-01-25T14:53:41.243
2011-01-25T16:44:36.253
2011-01-25T16:18:33.370
87,796
87,796
[ "asp.net", "css" ]
4,794,962
1
4,797,510
null
14
8,133
Can somebody please shed some light on how to get rid of the mysterious padding on the left? I've tried numerous properties but none seem to affect. ![Padding on the left](https://i.stack.imgur.com/8Zq0f.jpg)
wpf remove datagrid left padding
CC BY-SA 2.5
0
2011-01-25T14:58:13.143
2011-01-25T18:41:50.327
null
null
448,232
[ "wpf", "wpf-controls", "wpfdatagrid" ]
4,794,982
1
4,795,044
null
2
99
I've getting this warning `warning: 'BNColor' may not respond to '+beInit'` I'm not sure why. Any ideas ? ![enter image description here](https://i.stack.imgur.com/lMhR9.jpg)
Obj-C, Puzzled by this xcode warning, warning: 'BNColor' may not respond to '+beInit'?
CC BY-SA 2.5
null
2011-01-25T15:00:19.743
2013-11-03T13:09:08.120
null
null
450,456
[ "objective-c", "xcode", "compiler-warnings" ]
4,795,126
1
4,795,147
null
0
2,254
hope you can help me out with this problem, i have a web apps(JSF 2.0) in eclipse helios, i have created a class that uses apache.commons.validator because i need to validate a Url and some IPs addresses, everything compiles just find a launch it quite nicely but when it ccame the time to actually use the [UrlValidator](http://commons.apache.org/validator/apidocs/org/apache/commons/validator/UrlValidator.html) ``` java.lang.NoClassDefFoundError: org/apache/commons/validator/UrlValidator at com.outboundfactory.bean.validator.UrlConverter.getAsObject(UrlConverter.java:34) at com.icesoft.faces.renderkit.dom_html_basic.BaseRenderer.getConvertedValue(BaseRenderer.java:91) at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1023) at javax.faces.component.UIInput.validate(UIInput.java:953) ``` So a workaround that i found is to put the jakarta-oro and the apache-commons-validator into tomcat libs directly but thats no a solution either. Does anyone know if there is a special configuration to put the libs in Eclipse. Here is a shot of how i have configured it ![enter image description here](https://i.stack.imgur.com/mOgCp.png)
Eclipse Java Build Path does not find jars when launch with eclipse Helios
CC BY-SA 2.5
null
2011-01-25T15:13:02.763
2011-01-25T15:25:46.453
null
null
382,920
[ "eclipse", "jsf-2", "tomcat7", "java" ]
4,795,377
1
null
null
0
7,897
wondering how to create such app like Microsoft Expression Blend 4, with the modern design. ![enter image description here](https://i.stack.imgur.com/KIUZD.png) Very interested with the scroll and tab panel. The scroll is modern look, small and thin, unlike those wide scroll bars normally found in Windows Explorer.
Modern UI desktop design using .NET
CC BY-SA 2.5
0
2011-01-25T15:33:00.433
2011-07-03T15:33:37.957
2011-07-03T15:33:37.957
21,234
589,223
[ "c#", "user-interface", "desktop" ]
4,795,562
1
4,795,788
null
1
2,659
Ok, now this is my SimpleAdapter's getView function: ``` @Override public View getView(int position, View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); view.setBackgroundColor(R.drawable.color1); return view; } } ``` And this is my color1.xml file, in res/drawable-lpi folder: ``` <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:color="#FFFF00FF"/> <!-- pressed --> <item android:state_selected="true" android:color="#FF0000FF"/> <!-- selected --> <item android:state_focused="true" android:color="#FF0000FF"/> <!-- focused --> <item android:color="#FFFFFFFF"/> <!-- default --> </selector> ``` Why i still get this? ![enter image description here](https://i.stack.imgur.com/k2cuA.png)
Android - I set a custom background for a listView, and the highlight has gone
CC BY-SA 2.5
null
2011-01-25T15:47:40.750
2011-01-26T09:12:24.823
2011-01-26T09:12:24.823
396,133
396,133
[ "android", "listview", "background" ]
4,795,716
1
5,035,432
null
1
4,554
I like to generate a simplified version of the following static image in pure JavaScript. It should work with 2010 vintage browsers, so I can't wait for Firefox 4 and WebGL. I do not need any fancy textures - the task is just to visualise how to stack some boxes. ![Packing Order](https://i.stack.imgur.com/7qacS.png) BTW: the current image is generated with POV-Ray which is overkill for the job - and does not run in the browser ;-)
How to generate simple 3D images in JavaScript
CC BY-SA 2.5
0
2011-01-25T15:59:07.750
2011-02-19T21:40:43.990
2011-01-25T16:02:30.913
313,758
49,407
[ "javascript", "canvas", "3d", "rendering" ]
4,795,816
1
4,795,882
null
0
335
I have a problem styling my form. Everything works fine except the checkboxes. They look very strange. Have a look at the small rectangle, this is how it looks like when I place a checkbox in my html: ``` <input id="check" type="checkbox" name="test" value="test"/> ``` ![enter image description here](https://i.stack.imgur.com/b1XmW.png) The strange thing is, if I remove my css it does not change. Is there a basic css configuration for a checkbox to make it look like a standart checkbox? I tried things like ``` #check{background: white !important} ``` but it does not work. Any other advice?
Clear/Overwrite css for a input element
CC BY-SA 2.5
0
2011-01-25T16:07:00.070
2011-01-25T16:23:05.617
2020-06-20T09:12:55.060
-1
401,025
[ "html", "css", "checkbox" ]
4,796,304
1
7,181,507
null
4
2,036
I'm using the `UINavigationController` toolbar. Before I display it, I resize my views so that they don't get blocked by the toolbar (I set the frame of the current view controller's view to the rect spanning from the bottom of the `navigationBar` to the top of the `toolbar`. But not all of my view controllers have `toolbarItems`. So, when switching from a view controller that has items (controller A) to one that doesn't (controller B), I want to hide the toolbar. However, when I call `setToolbarHidden:animated:` in B's `viewWillAppear:animated:` method, the toolbar animates down during the push transition and shows the `UIWindow` background behind it. This also happens in the reverse direction: when transitioning from B to A (via the back button), I want the toolbar to animate in to show A's `toolbarItems` again, but since A's view doesn't extend to the bottom of the screen, the `UIWindow` is visible during the pop transition. That might not have been the best description, so here's a screenshot: ![Cmd-shift-3 rapid-fire FTW](https://i.stack.imgur.com/ht3JU.jpg) I have tried updating A's frame in its `viewWillDisappear:animated:` method, but it does strange things, since it seems to be called within the `UINavigationController` push animation block. Any insight would be appreciated. : I tried hiding the toolbar in B's `viewDidAppear:animated:` instead, but the results weren't ideal. Using this solution, the toolbar doesn't get dismissed until the push transition completes. Since B doesn't have any `toolbarItems`, A's items get pushed to the left during the transition, leaving an empty toolbar on the screen before it disappears. Also, when going back to A, the `UIWindow` background will be visible unless I set the toolbar to visible in B's `viewWillDisappear:animated:`, which would mean that B has to know that A has `toolbarItems`.
How to resize view when using UINavigationController setToolbarHidden:animated:
CC BY-SA 2.5
0
2011-01-25T16:44:35.533
2011-08-24T19:59:13.360
2011-01-25T19:17:36.290
452,816
452,816
[ "iphone", "ios", "uiviewcontroller", "uinavigationcontroller" ]
4,797,166
1
4,797,210
null
8
43,102
I want to have a password field which says "Password" in it before a user enters their password (so they know what the field is) I'd rather just use Javascript, importing jQuery for this alone seems wasteful, but I have no idea how to. The images explain quite clearly: ![enter image description here](https://i.stack.imgur.com/E8mnp.gif) ![enter image description here](https://i.stack.imgur.com/LnY61.gif) It's only a very simple website and the most basic of logins (has no validation etc) Any ideas? ``` <input id="username" name="username" class="input_text" type="text" value="Username" /> <input id="password" name="password" class="input_text" type="password" value="Password" /> ```
Set default value of a password input so it can be read
CC BY-SA 2.5
0
2011-01-25T18:04:40.980
2015-06-19T22:35:58.003
null
null
311,074
[ "javascript", "html", "forms" ]
4,797,213
1
4,839,618
null
1
407
I am trying to create a TitleAreaDialog using WTL or Windows SDK (please no MFC). From the google I am able to find these two links: 1. http://www.codeproject.com/KB/dialog/dialogheader.aspx (MFC article) 2. http://www.codeproject.com/KB/dialog/taskdialogs.aspx (doubtful.. how to use it) The desired output is like the eclipse JFace TitleAreaDialog (see the below image). ![Title Area Dialog](https://i.stack.imgur.com/gaFuk.gif) Kindly suggest a way to do this using sing WTL or Windows SDK (with c++). Thanks
How to create TitleAreaDialog using WTL or Windows SDK (no MFC)?
CC BY-SA 2.5
null
2011-01-25T18:09:12.513
2011-01-29T21:40:41.833
null
null
373,861
[ "c++", "windows", "sdk", "dialog", "wtl" ]
4,797,236
1
4,801,470
null
39
14,278
![enter image description here](https://i.stack.imgur.com/UEEdq.png) On the above shown asking popup window on Mac, how can I select another button (left button) by using keyboard. Without clicking mouse button, I want to make left button highlighten. Is there any shortcuts?
How can I make another button highlighten on popup window on Mac by using Keyboard
CC BY-SA 2.5
0
2011-01-25T18:10:59.740
2020-10-30T22:17:57.947
null
null
360,057
[ "macos", "keyboard", "popup", "shortcut" ]
4,797,238
1
4,804,316
null
1
915
I am currently working on the implementation of a slideshow control in an iPad application. I would like to manage different kinds of transitions between the images, particularly the . My ViewController's xib is composed of two superposed , with a over the two UIImageViews in order to give the user a play/pause control. Here is how it looks like : ![enter image description here](https://i.stack.imgur.com/Zk8dL.png) I today face the problem that when the CurlUp transition occurs between my two , I see the (which is normally over the two other views) animate as well : ![enter image description here](https://i.stack.imgur.com/vMXTg.png) Here is how my transition code looks like : ``` if ([slideshow.images count] <= 1) { return; } currentImageIndex = ((currentImageIndex + 1) >= [slideshow.images count]) ? 0 : currentImageIndex + 1; //imageStackView contains the two UIImageViews bound as IBOutlets from my xib UIImageView *loadingImageView = [imageViewStack objectAtIndex:1]; loadingImageView.image = [slideshow.images objectAtIndex:currentImageIndex]; UIImageView *currentImageView = [imageViewStack objectAtIndex:0]; [UIView transitionFromView:currentImageView toView:loadingImageView duration:slideshow.duration options:UIViewAnimationOptionTransitionCurlUp completion:^(BOOL finished) { UIImageView *swap = [imageViewStack objectAtIndex:0]; [self.view bringSubviewToFront:toolbar]; [imageViewStack removeObjectAtIndex:0]; [imageViewStack addObject:swap]; [self scheduleNextAnimation]; }]; ``` Please let me know if you have any idea about this ! Thanks in advance !
UIImageView CurlUp transition below a toolbar
CC BY-SA 2.5
null
2011-01-25T18:11:06.693
2011-01-26T11:59:18.447
null
null
321,248
[ "ios", "uiview", "transition", "uitoolbar" ]
4,797,439
1
4,797,452
null
4
4,365
I'll cut right to the point. Here's the output: ![enter image description here](https://i.stack.imgur.com/MhJ94.png) (now some optional code - read only if you really want to ;)) Here's the markup: ``` <a href="/" id="logo_wrapper"> <span class="logo logo_normal"></span> <span class="logo logo_hover"></span> </a> ``` Here's the CSS (shortened only to the relevant stuff, for your reading pleasure): ``` #logo_wrapper { position:relative; } #logo_wrapper .logo { display:block; width:260px; height:80px; background-image:url(logo.png); position:absolute; } #logo_wrapper .logo_normal { background-position:0 0; } #logo_wrapper .logo_normal:hover { opacity:0; filter:alpha(opacity=0); } #logo_wrapper .logo_hover { background-position:0 -80px; opacity:0; filter:alpha(opacity=0); } #logo_wrapper .logo_hover:hover { opacity:1; filter:alpha(opacity=100); /* THIS IS THE OFFENDER! */ } ``` Just to clarify: I'm aware I can get away with a single `span` and just switching the logo's `background-position` on hover, but the full CSS features cute CSS3 transitions for real browsers that aren't supposed to scroll the logo up and down. OK, so, it's a PNG with 32 bit colour depth and, of course, transparency. All is fine in IE8 when I use no alpha filter at all or `filter:alpha(opacity=0)`. But with the opacity set to 100, the mere use of the filter causes IE8 to go crazy and make all not entirely transparent pixels 100% opaque. Not that this particular image looks all that bad with this effect, but it's still annoying :D. Now, I'm well aware IE8 is notorious for transparent PNG problems, with the troubles dating back to IE6 and its hideous solid cyan fill of the transparent areas. That one could be fixed with some IE behaviour black magic.
IE8, transparent PNG and filter:alpha
CC BY-SA 2.5
null
2011-01-25T18:32:48.143
2014-12-07T15:54:47.927
null
null
244,727
[ "css", "internet-explorer-8", "filter", "opacity", "alpha" ]
4,797,493
1
4,798,132
null
0
203
i have translated a plugin in german. membership 1.x i took the language.pot file and translate all lines. after that a changed the Information: ![enter image description here](https://i.stack.imgur.com/esz02.png) i have uploaded the file to server and replaced the old one... but it stil in english... blog is in german "de_DE" can someone help me?!
Translate Wordpress Plugin
CC BY-SA 2.5
null
2011-01-25T18:39:52.680
2011-01-25T19:50:36.080
null
null
290,326
[ "wordpress" ]
4,797,686
1
4,797,725
null
28
75,215
I have several columns in my databases with similar names. How do I select those based on the word they start with? Here's an example table layout: ![enter image description here](https://i.stack.imgur.com/8NW2X.png) I tried selecting all info for a particular thing (food kind in this example) using ``` $Food = "Vegetable"; mysql_query("SELECT `" . $Food . " %` FROM `Foods`"); ``` but it didn't seem to work. Any help would be appreciated :-)
Selecting all columns that start with XXX using a wildcard?
CC BY-SA 2.5
0
2011-01-25T19:01:25.467
2019-06-04T23:22:57.373
2020-06-20T09:12:55.060
-1
408,089
[ "php", "mysql", "select", "wildcard" ]
4,797,746
1
4,797,833
null
0
958
I am reading a book and going through the examples, unfortunately i keep getting an error if i leave a field empty when i submit the form. I checked the errata and there was nothing, i tried posting on the books forums but I didn't get any responses. I believe that maybe i have to declare the variables first but that would take away from the variables being automatically generated. Any help would be greatly appreciated, i am a rookie trying to learn php. per request, here is the $required and $expected. Thanks! ``` $expected = array('name', 'email', 'comments'); $required = array('name', 'email', 'comments'); <?php foreach ($_POST as $key => $value){ //assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); //if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)){ $missing[] = $key; } elseif(in_array($key, $expected)){ //otherwise, assign to a variable of the same name as $key ${$key} = $temp; } } <?php include('./includes/title.inc.php'); $errors = array(); $missing = array(); //Check to see if the form has been submitted if (isset($_POST['send'])){ //email processing script $to = '[email protected]'; //use your email address $subject = 'Feedback from Japan Journey'; //list expecting fields $expected = array('name', 'email', 'comments'); //set required fields $required = array('name', 'email', 'comments'); include('./includes/processmail.inc.php'); } ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8"> <title>Japan Journey<?php if (isset($title)){echo "&#8212;{$title}";} ?></title> <link href="styles/journey.css" rel="stylesheet" type="text/css" media="screen"> </head> <body> <div id="header"> <h1>Japan Journey</h1> </div> <div id="wrapper"> <?php include('./includes/menu.inc.php'); ?> <div id="maincontent"> <h2>Contact Us</h2> <?php if ($missing || $errors){ ?> <p class="warning">Please fix the item(s) indicated.</p> <?php } ?> <p>Ut enim ad minim veniam, quis nostrud exercitation consectetur adipisicing elit. Velit esse cillum dolore ullamco laboris nisi in reprehenderit in voluptate. Mollit anim id est laborum. Sunt in culpa duis aute irure dolor excepteur sint occaecat.</p> <form id="feedback" method="POST" action=""> <p> <label for="name">Name: <?php if ($missing && in_array('name', $missing)){ ?> <span class="warning">Please enter your name</span> <?php } ?> </label> <input name="name" id="name" type="text" class="formbox"<?php if ($missing || $errors){ echo ' value="' . htmlentities($name, ENT_COMPAT, 'UTF-8') . '" '; } ?> /> </p> <p> <label for="email">Email: <?php if ($missing && in_array('email', $missing)){ ?> <span class="warning">Please enter your email address</span> <?php } ?> </label> <input name="email" id="email" type="text" class="formbox"<?php if ($missing || $errors){ echo ' value="' . htmlentities($email, ENT_COMPAT, 'UTF-8') . '" '; } ?> /> </p> <p> <label for="comments">Comments: <?php if ($missing && in_array('comments', $missing)){ ?> <span class="warning">Please enter your comments</span> <?php } ?> </label> <textarea name="comments" id="comments" cols="60" rows="8"><?php if ($missing || $errors){ echo htmlentities($comments, ENT_COMPAT, 'UTF-8'); } ?></textarea> </p> <p> <input name="send" id="send" type="submit" value="Send message"> </p> </form> <pre> <?php if ($_POST && $missing) {print_r($_POST);} ?> </pre> </div> <?php include('./includes/footer.inc.php'); ?> </div> </body> </html> ``` ![enter image description here](https://i.stack.imgur.com/GKXAH.jpg)
Rookie PHP, receiving an undefined variable error
CC BY-SA 3.0
null
2011-01-25T19:08:04.303
2015-06-06T10:55:52.383
2015-06-06T10:55:52.383
1,331,425
435,317
[ "php" ]
4,798,267
1
4,798,351
null
4
2,979
This seems like a really basic task, but after a lot of searching and research, still haven't found a clear answer. I found GridView, but not sure this is how you're supposed to do it. I've found several apps that have UI elements similar to what I need, for example the top buttons of the android market. ![here's an example of what I'm talking about](https://i.stack.imgur.com/kneNO.png)
How do I create a panel of buttons with a simple divider line, or no dividers, in Android?
CC BY-SA 2.5
null
2011-01-25T20:06:41.567
2011-01-25T20:16:12.897
null
null
372,528
[ "android", "user-interface" ]
4,798,313
1
4,800,198
null
3
1,105
With respect to how node.js fits in with clients and web servers, is my description below correct? - - - So in the flow, the client (A) will request some resource from node.js (B) which will in turn dispatch this request (with all it's async and evented i/o goodness) to a service (C) which might go and get some customer information and returns it to node.js (B) via callback and then in turn node.js returns that response to the client. 1.Is this correct? Two related questions: 2.How does node.js know which service to dispatch a request to? Do you have to create api "stubs" in node.js that mirror the service APIs, since the client isn't talking directly to the services? 3.How is session state handled in this architecture? ![](https://i.stack.imgur.com/sqi2j.png)
Where does node.js sit in the client <--> web server flow?
CC BY-SA 2.5
0
2011-01-25T20:12:14.343
2011-01-26T05:40:22.717
null
null
133,247
[ "javascript", "asynchronous", "node.js", "serverside-javascript", "evented-io" ]
4,798,388
1
4,798,606
null
2
1,492
I would like to understand a few basics about Assemblies and Namespaces. I've reproduced an NHibernate tutorial, and everything works fine. But I'm not sure if I agree on what classes go where. So look at Solution Explorer image attached.. and (with classes in folders) are . And here both are in the ...DAL assembly. 1. Is there any logical reason to put it there? Product is a POCO class. Shouldn't that more naturally belong outside the DAL assembly? 2. Is it correct to put IProductRepository in the Domain namespace? And if you suggest to move the POCO classes, would you also move the IProductRepository? 3. What would I need to do if I wanted to make the DAL usable by both C# and VB.NET projects? ![enter image description here](https://i.stack.imgur.com/U1oV3.png)
Assembly, Namespace, DAL; What classes belongs where?
CC BY-SA 2.5
0
2011-01-25T20:20:05.420
2011-01-25T20:43:52.940
2011-01-25T20:23:44.400
445,533
445,533
[ "c#", ".net", "namespaces", "data-access-layer" ]
4,798,502
1
5,086,825
null
12
19,724
I've just started using [knockout](http://knockoutjs.com/) and I'm running into trouble with DateTime Serialization and Deserialization using the JavaScriptSerializer. I've updated the gifts model in Steves [koListEditor](http://blog.stevensanderson.com/2010/07/12/editing-a-variable-length-list-knockout-style/) example from his blog to include a Modified DateTime field: ``` public class GiftModel { public string Title { get; set; } public double Price { get; set; } public DateTime Modified { get; set; } } ``` Then I updated the Index.aspx to include the new field: ``` <asp:Content ContentPlaceHolderID="MainContent" runat="server"> <h1>Gift list editor</h1> <p>You have asked for <span data-bind="text: gifts().length">&nbsp;</span> gift(s)</p> <form class="giftListEditor"> <table> <tbody data-bind="template: { name: 'giftRowTemplate', foreach: gifts }"></tbody> </table> <button data-bind="click: addGift">Add Gift</button> <button data-bind="enable: gifts().length > 0" type="submit">Submit</button> </form> <script type="text/html" id="giftRowTemplate"> <tr> <td>Gift name: <input class="required" data-bind="value: Title, uniqueName: true"/></td> <td>Price: \$ <input class="required number" data-bind="value: Price, uniqueName: true"/></td> <td>Modified: <input class="required date" data-bind="value: Modified, uniqueName: true"/></td> <td><a href="#" data-bind="click: function() { viewModel.removeGift($data) }">Delete</a></td> </tr> </script> <script type="text/javascript"> var initialData = <%= new JavaScriptSerializer().Serialize(Model) %>; var viewModel = { gifts : ko.observableArray(initialData), addGift: function () { this.gifts.push({ Title: "", Price: "", Modified:"" }); }, removeGift: function (gift) { this.gifts.remove(gift); }, save: function() { ko.utils.postJson(location.href, { gifts: this.gifts }); } }; ko.applyBindings(document.body, viewModel); $("form").validate({ submitHandler: function() { viewModel.save() } }); </script> </asp:Content> ``` However when the JavaScriptSerializer serializes the Model ``` var initialData = <%= new JavaScriptSerializer().Serialize(Model) %>; ``` the Modified Date is coming out like this: ![DateTime problem](https://i.stack.imgur.com/DER5J.png) Also when using UK Dates I.e. 25/01/2011 the JavaScriptSerializer.Deserialize throws the following exception: > 25/01/2011 is not a valid value for DateTime. Although i'm having 2 problems here the main question is has anyone successfully used [knockout](http://knockoutjs.com/) from MVC 2 and got the JavaScriptSerializer working with DateTimes? I realise I could write my own JavaScriptSerializer but I was hoping there was a ready made solution out there :) Here's the code for the updated version of Steve Sanderson's koListEditor: [Code on my skydrive](http://cid-836b15b2b35822e3.office.live.com/embedicon.aspx/Code/updatedkoListEditor.zip) Thanks Dave
Binding DateTime to knockout view model with default JavaScriptSerializer
CC BY-SA 2.5
0
2011-01-25T20:32:33.660
2012-12-06T01:48:03.980
2011-01-26T08:13:36.533
30,317
30,317
[ "javascript", "json", "datetime", "knockout.js", "javascriptserializer" ]
4,798,670
1
4,799,079
null
0
170
You can see everything in the picture (CSS, the behavior and divs). The lower part of the p letter and g letter are hidden by the div. [http://img573.imageshack.us/img573/3553/screenshot3m.png](http://img573.imageshack.us/img573/3553/screenshot3m.png) ![enter image description here](https://i.stack.imgur.com/OedpL.png) style.css: ``` /* Structure */ .container { margin: 0 auto; overflow: hidden; width: 960px; } #header, #intro, #tagline, #content { background: url(images/bg.png) top center repeat; } #branding, .content, .content-block, .posts, #footer a { margin-left: 10px !important; margin-right: 10px !important; } #intro h2, #content h2, #nav li a { text-shadow: 0 1px 0 #FFF; } /* Header */ #header { } #header a { color: #333 } #header a:hover { color: #28A } #branding { float: left; margin: 10px 0 10px; width: 940px; } #header h1, #lang { margin: 20px 0 12px; width: 280px; } #header h1 { float: left; width: 280px; } #nav { float: left; margin: 32px 0 10px; } #nav li { float: left; } #nav li a { font-size: 14px; font-weight: 400; margin: 0 40px 0 0; } #lang { float: right; } #lang li { float: left; } #lang li a { font-size: 10px; margin: 0 0 0 30px; } /* Intro */ #intro, #intro2 { background: #333; padding: 30px 0; } #intro { height: 400px; } #intro2 { background: #333; padding: 30px 0; } #intro2 h2 { color: #DDD; } ... ```
Text is not completely being displayed inside a div?
CC BY-SA 2.5
null
2011-01-25T20:52:33.510
2011-01-25T21:52:05.470
2011-01-25T21:52:05.470
122,536
122,536
[ "text", "html" ]
4,798,679
1
42,442,101
null
6
854
When using the search functionality in Eclipse, especially, for example, a Java method or field, the 'reference in workspace'. (Control+Shift+G) when the the cursor is on some method, say. How do you have the search results show you the one line preview. (Think -- like every other search tool I've used can offer, from grep to Visual Studio?) If I search on 'bit of text' (without the benefit of the scope parsing provided by the 'references' search, it offers it), but can't seem to figure out how when search for references.? (Which, for, say, some class variables like `public double x`, is just absolutely critically useful vs. the sea of false listing that come up searching on something like 'x ') # ////////////////////////////////////////////////////// Clarifying my question by example: In the screen shot1 attached, there are 111 references to the method `getHeight()`. But, without pop-pop-pop, jumping from entry to entry to entry, there's no way to see them? --- Screenshot A: ![Screenshot A](https://i.stack.imgur.com/VyKdU.jpg) ( not letting me include directly due to some weird, kinda dumb annoying, account restriction thing...) --- Whereas, if I search ( in the workspace) for `getHeight()` using "File Search" as 'raw text' (case filtered, and filtering for `*.java`) note seeing now 560 matches, or 449 "false positives" relative to the scope I'm actually interested in. Yet, see how the Search dialog view now at least! (yeah). Offers me the quick "line preview" of each entry. --- . And screenshot B here: ![screenshot B](https://i.stack.imgur.com/gyiCL.jpg). --- How do I get the line preview offered in screenshot B, but for those 111 matches (the ones I care about in this example) in the 'scope filtering' search 'Java Search' tab in the 'Search' dialog box? ///////////////////////////////////////////// I've looked and looked, tried extensions, dug through preferences settings, and can't seem to figure out how to 'enable' that line preview for searches where it's "Limited To" 'References'
How do I get line previews in Eclipse's context intelligent 'Java Search' (vs. context unaware 'File Search')
CC BY-SA 3.0
0
2011-01-25T20:53:09.653
2017-02-24T15:15:16.837
2011-06-03T06:23:35.920
471,481
155,631
[ "java", "eclipse", "search" ]
4,798,815
1
4,798,853
null
2
5,510
My Windows Form application (created in Visual Studio 2008 using C#) is distributed across our company and runs on 50+ PCs with no issues. Yesterday, I had to install it on an old PC running WinXP. My Visual Studio 2008 Setup project prompted to install the .Net Framework 3.5 SP1. We installed that, rebooted, then continued the installation. After installation, I turned the old machine off, waited about 5 seconds, then turned it back on. When I attempted to run the application, I got the Unhandled exception: ... blah, blah, blah. ![Screen Shot of error](https://i.stack.imgur.com/DPile.png) 1. Why didn't the 3.5 SP1 install the DateTimeOffset feature? 2. Why is the application trying to load this from mscorlib version 2.0? 3. I did a search for the keyword DateTimeOffset, but it does not exist anywhere in my project. Is this a part of DateTime (i.e. DateTime.Now.AddDays(1))? Here's a copy of the full blown exception:
'System.DateTimeOffset' from assembly 'mscorlib, Version=2.0.0.0
CC BY-SA 2.5
null
2011-01-25T21:05:59.903
2013-05-28T09:42:34.787
null
null
153,923
[ "winforms", "datetimeoffset" ]
4,799,419
1
4,799,452
null
3
122
How do you make DIVs very short in IE6? No matter if I use 0.3em or 3px, IE6 forces a minimum of 13px. ![IE6](https://i.stack.imgur.com/N5Kkk.png) (looks quite similar in all other modern browsers) ![FF](https://i.stack.imgur.com/bdiKW.png) ``` <div id="fileProgressBar" style="display:none"> <div id="fileProgressFill"></div> </div> ``` ``` #fileProgressBar { height: 0.3em; background: #444; background: -moz-linear-gradient( top, #333, #666 ); background: -webkit-gradient( linear, left top, left bottom, color-stop(0, #333), color-stop(1, #666) ); border-top: 1px solid #000; } #fileProgressFill { height: 100%; width: 0; background: #0088cc; background: -moz-linear-gradient( top, #0099e5, #006699 ); background: -webkit-gradient( linear, left top, left bottom, color-stop(0, #0099e5), color-stop(1, #006699) ); } ``` Javascript reveals the file progress bar at appropriate times and updates the file progress fill as the movie is playing. But this bug is not a JS issue, so I won't post the JS code.
How do you make a <div> less than 13px tall in IE6?
CC BY-SA 2.5
null
2011-01-25T22:09:29.497
2011-01-25T22:52:01.750
2011-01-25T22:52:01.750
20,578
459,987
[ "css", "internet-explorer-6" ]
4,799,555
1
null
null
0
337
I am having problem in restricting search result page number in php page. I am using 3 fields to select user input and displaying search results at the bottom . Whenever I select all fields, the page number goes on increasing at the bottom which equals to total number of pages in DB and hence stretches the page wide and hence changes the page layout. What if I only want like 10 or 15 pages to display and rest of them to be shown by next-> which i m currently using for changing from page 1 to page 2. Image below 34 result which are total number of entries and I want only 15. ![enter image description here](https://i.stack.imgur.com/F5pOi.png) I am using following code: ``` $Nav=""; If($page > 1) { $Nav .= "<A HREF=\"search.php?page=". ($page-1)."&countryCode=". urlencode($country)."&linkageType=". urlencode($linkage)."&college=". urlencode($college) . "\"><< Prev</A>"; } For($i = 1 ; $i <= $NumberOfPages ; $i++) { If($i == $page) { $Nav .= "&nbsp;<B>$i</B>"; }Else{ $Nav .= "&nbsp;<A HREF=\"search.php?page=". $i."&countryCode=" .urlencode($country). "&linkageType=".urlencode($linkage). "&college=".urlencode($college)."\">$i</A>"; } } If($page < $NumberOfPages) { $Nav .= "&nbsp;<A HREF=\"search.php?page=". ($page+1)."&countryCode=".urlencode($country). "&linkageType=".urlencode($linkage)."&college=". urlencode($college) . "\"> Next>></A>"; } Echo "<BR><BR>" . $Nav; echo "</center>"; ``` --- what I am looking for is just Search results restricting to 15 pages instead some extra pages followed by next button tab.
How to restrict Search page numbers on bottom of search result page-php?
CC BY-SA 3.0
null
2011-01-25T22:25:26.780
2011-09-29T13:39:25.687
2011-09-29T13:39:25.687
267
454,368
[ "php", "mysql", "html" ]
4,799,602
1
4,812,102
null
0
552
We would like to use the WrapPanel to display a varying number of buttons (actually Usercontrols that behave like buttons). Inside each WrapPanel is an ItemsControl with its items. Oftentimes the WrapPanel doesn’t display all the items—if there are four you only see one or two. The behavior is not consistent. Is there something we’re doing wrong? Are there any known issues with using a WrapPanel like this? For XAML, this is the UserControl in our main window: ``` <UserControl x:Name="ucCatalogContent" Grid.Row="2"> <local:Catalog_CategoryView /> ``` This is the CategoryView markup. This has the ItemsControl. Its items are other UserControls with a WrapPanel inside them: ``` <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:local="clr-namespace:Catalog;assembly=Catalog" x:Class="Catalog.Catalog_CategoryView" > <UserControl.Resources> <DataTemplate x:Key="CategoryDT" > <local:Category /> </DataTemplate> </UserControl.Resources> <ScrollViewer x:Name="scvCatalogCategoryView" HorizontalScrollBarVisibility="Disabled"> <!-- This is the item that should be bound to the collection of categories --> <ItemsControl x:Name="icCategories" ItemTemplate="{StaticResource CategoryDT}" > <local:Category x:Name="item1" /> <local:Category x:Name="item2" /> <local:Category x:Name="item3" /> </ItemsControl> </ScrollViewer> ``` And this is the individual Category, where the WrapPanel is used: ``` <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:custom="clr-namespace:CustomControlResources;assembly=CustomControlResources" xmlns:local="clr-namespace:Catalog;assembly=Catalog" x:Class="Catalog.Category" > <UserControl.Resources> <ItemsPanelTemplate x:Key="CategoryItemPanel"> <toolkit:WrapPanel VerticalAlignment="Top" HorizontalAlignment="Stretch" /> </ItemsPanelTemplate> <DataTemplate x:Key="OfferingDT" > <local:OfferingTile x:Name="offeringTile" /> </DataTemplate> </UserControl.Resources> <Grid x:Name="LayoutRoot" Style="{StaticResource ContentRootStyle}"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <custom:BlockExpander x:Name="expCategoryExpander" Title="access [bind me]"> <custom:BlockExpander.BlockExpanderContent> <ItemsControl x:Name="icServiceOfferingsList" ItemsPanel="{StaticResource CategoryItemPanel}" ItemTemplate="{StaticResource OfferingDT}" > <local:OfferingTile /> <local:OfferingTile /> <local:OfferingTile /> <local:OfferingTile /> </ItemsControl> </custom:BlockExpander.BlockExpanderContent> </custom:BlockExpander> </Grid> ``` In this screenshot, there should be a title on each expander header (by the blue triangle), and each group should contain four items: ![wrappanels not showing all items](https://i.stack.imgur.com/tUPIY.png)
Silverlight WrapPanel not displaying items consistently
CC BY-SA 2.5
null
2011-01-25T22:30:07.900
2011-01-27T02:27:18.563
null
null
389,809
[ "silverlight", "user-controls", "itemscontrol", "toolkit", "wrappanel" ]
4,799,733
1
4,799,967
null
3
185
i have following query ``` SELECT *, count(jx_commissions.commission_amount) AS summe FROM jx_members INNER JOIN jx_commissions ON jx_commissions.mid = jx_members.mid WHERE jx_commissions.date > '2011-01-01' GROUP BY jx_commissions.mid ORDER BY summe DESC LIMIT 1, 20 ``` field Date have a date format and all dates have the right format Y-m-d but if i use this query i do not get any results... if i change date to a nother one, i get wrong results... i think he compare a string... but how can i search for a date?? ![enter image description here](https://i.stack.imgur.com/uuNxG.png) ![enter image description here](https://i.stack.imgur.com/Ywydf.png)
mysql query problem WHERE date <
CC BY-SA 2.5
null
2011-01-25T22:47:10.937
2011-01-25T23:30:10.700
2011-01-25T23:30:10.700
290,326
290,326
[ "mysql" ]
4,800,065
1
4,800,179
null
1
376
I have a block of text I'm trying to interpret in java (or with grep/awk/etc) looking like the following: ``` Somewhat differently, plaques of the rN8 and rN9 mutants and human coronavirus OC43 as well as the more divergent were of fully wild-type size, indicating that the suppressor mu- SARS-CoV, human coronavirus HKU1, and bat coronaviruses tations, in isolation, were not noticeably deleterious to the HKU4, HKU5, and HKU9 (Fig. 6B). Thus, not only do mem- -- able effect on the viral phenotype. A potentially related obser- sented for the existence of an interaction between nsp9 vation is that the mutation A2U, which is also neutral by itself, nsp8 (56). A hexadecameric complex of SARS-CoV nsp8 and is lethal in combination with the AACAAG insertion (data not nsp7 has been found to bind to double-stranded RNA. The ``` And what I'd like to do is split it into two parts: left and right. I'm having trouble coming up with a regex or any other method that would split a block of text obviously visually split, but not obvious to a programming language. The lengths of the lines are variable. I've considered looking for the first block and then finding the second by looking for multiple spaces, but I'm not sure that that's a robust solution. Any ideas, snippets, pseudo code, links, etc? ## Text Source ![enter image description here](https://i.stack.imgur.com/wl1cx.jpg) The text has been ran as follows through pdftotext `pdftotext -layout MyPdf.pdf`
Splitting up visual blocks of text in java
CC BY-SA 2.5
null
2011-01-25T23:35:03.010
2011-01-26T00:08:58.357
2011-01-26T00:00:01.590
347,368
347,368
[ "java", "text-processing" ]
4,800,189
1
4,800,209
null
3
722
I am using NetworkInformation namespace to list all the network devices. ``` NetworkInterface.GetAllNetworkInterfaces(); ``` When I get the list, there are some weird unknown devices: ![enter image description here](https://i.stack.imgur.com/NZX9H.jpg) What are they? And should I, and if, then how, get rid of them? In theory it should show only Local Area Connection and Wireless Connection. Under Network Connections I can't find anything like that installed either.
Weird network devices
CC BY-SA 2.5
null
2011-01-25T23:54:54.823
2011-01-25T23:59:24.800
null
null
473,539
[ "c#", ".net", "networking", "device" ]
4,800,218
1
null
null
2
4,211
``` <table> <tr> <th><img src="image.jpg" /></th> <td>row1 column2</td> <td>row1 column3</td> <td>row1 column4</td> </tr> </table> ``` If the height of the img is equal to 10px, the height of all cells in that row equals 10px. Adding a border to the td's results in the td's looking taller then the img. Note: the img is contained in a th because I do not want a border around the img, only the td's. ![Link to image](https://i.stack.imgur.com/ykFgE.png) As displayed in the image above, the height of the td's should be adjustable so that their top and bottom borders can be aligned with the img. Using CSS to specify a height on the td's only works if the height is larger then the height of the img (in other words, the td's cannot be smaller then the img). Additional research indicates that this is just the way tables work.
Variable HTML table cell height?
CC BY-SA 3.0
null
2011-01-26T00:00:49.483
2017-11-10T23:18:12.777
2017-11-10T23:18:12.777
4,370,109
589,922
[ "html", "html-table" ]
4,800,261
1
4,801,040
null
0
1,473
**I'm building dojo tree using the following code: ![enter image description here](https://i.stack.imgur.com/4YZdV.jpg) The tree is displayed as expected. The problem that I have is that the onClick event is only fired on leaf nodes. When I click on the root level node(I have several root level) it is just open showing child nodes. How can I add "extra" onClick functionality to the root nodes?
dojo tree event on root nodes
CC BY-SA 2.5
null
2011-01-26T00:08:03.420
2011-01-26T02:51:30.263
2011-01-26T00:16:31.300
560,014
560,014
[ "javascript", "html", "dojo" ]
4,800,303
1
4,801,981
null
4
11,802
I want to adjust the appearance on same controls on the website which I am working on, but it seems that is not going good. I want to use CSS to properly align the controls. I want to have the checkbox and the label aligned left and then little bit room, then textbox is coming. Also I want all the textboxes to be aligned same vertically. How can I do that with css without using tables. ![enter image description here](https://i.stack.imgur.com/1U7rB.jpg) Thanks in advance for your help, Laziale
Align controls properly
CC BY-SA 2.5
0
2011-01-26T00:16:11.810
2011-01-26T06:46:55.560
null
null
362,479
[ "asp.net", "css", "dreamweaver" ]
4,800,579
1
4,800,704
null
0
1,397
Here is what a regular `RadButton` might look like: ![Regular RadButton](https://i.stack.imgur.com/CoB7Q.jpg) However, we want a larger button... something that might look like: ![enter image description here](https://i.stack.imgur.com/3HzPA.png) The icon should stay the same. The color and text formatting is probably negotiable, but I really need a 'RadBigButton' kind of thing.
Can I hack the Telerik RadButton to make a 'Big Icon Button'?
CC BY-SA 2.5
null
2011-01-26T01:11:58.557
2011-01-26T01:43:43.903
null
null
43,792
[ "c#", "asp.net", "telerik" ]
4,801,119
1
4,801,132
null
1
985
I am using jCarousel to make a image slider of logos. In that the image should not be used as background it should be with in the image tag, thats the requirement. So placed all images with in li tag. and the jCarousel is working fine. But here i have to show only half of the picture(sprite image [default,mouse over image]) by default and on the mouse over another part. In css how to set up image position to show only half of the picture and on the mouse over another half. See the screenshot. ![enter image description here](https://i.stack.imgur.com/vOL7H.png) Thanks
setting image visible area in css
CC BY-SA 2.5
null
2011-01-26T03:09:23.850
2011-05-30T11:09:20.147
null
null
172,376
[ "jquery", "css", "image-manipulation" ]
4,801,271
1
6,020,216
null
1
1,565
My client would like a youtube embed that has a playlist style sidebar (though she wants it to be the channel... not a playlist). Example: ![enter image description here](https://i.stack.imgur.com/f3oDc.png) (yes, it must be Youtube)
Youtube Channel Embed with a sidebar?
CC BY-SA 2.5
0
2011-01-26T03:52:49.080
2012-02-09T11:01:44.027
null
null
375,793
[ "wordpress", "youtube", "embed", "youtube-channels" ]
4,801,407
1
4,864,398
null
1
743
I am a newbie in windows phone 7. I want to do some demo within XML but I can't find the XMLDocument class (like what I do on Windows Form). I can't find the namespace Linq, XPath... in System.Xml also (see below picture). ![enter image description here](https://i.stack.imgur.com/4MPqE.png)
XML on windows phone 7
CC BY-SA 2.5
null
2011-01-26T04:26:55.417
2011-02-05T01:03:28.337
2011-02-05T01:03:28.337
1,755
523,325
[ "xml", "windows-phone-7", "isolatedstorage" ]
4,801,538
1
4,801,569
null
1
323
This is driving me crazy! I'm trying to get to a namespace for a thrid party control called: HotDocs.Server.Session. My namespaces start with CCE.HotDocs.IO and CCE.HotDocs.Test. When I type "HotDocs." I get my namespaces that start with CCE.HotDocs ? WTF? I should be getting HotDocs.Server What am I missing? I captured a couple of screen snippets to show what I mean... the second screen snippet is what is driving me crazy. ![Namespace Conflict](https://i.stack.imgur.com/fdqov.png) ![Namespace Conflict 2](https://i.stack.imgur.com/pkyUn.png)
Namespace issue
CC BY-SA 2.5
null
2011-01-26T05:03:30.313
2011-01-26T05:11:11.747
null
null
176,338
[ "c#", "namespaces" ]
4,801,900
1
4,804,969
null
3
3,246
When i merge two images as one background and the other as target image. I m using pngs. When I rotate the target image and then merge, yes everything is fine except that the edges of rotated image becomes zigzag i means not smooth. How to make the edges smooth using php GD??? ![Normal Image](https://i.stack.imgur.com/4Azoj.jpg) ![After Rotation](https://i.stack.imgur.com/fJYtl.jpg) The code I am using: ``` <?php // Create image instances $dest = imagecreatefrompng('bg.png'); $src = imagecreatefrompng('text.png'); $width = imagesx($src); $height = imagesy($src); imageantialias($src, true); $color = imagecolorallocatealpha($src, 0, 0, 0, 127); $rotated = imagerotate($src, 40, $color); imagesavealpha($rotated, true); // $trans_colour = imagecolorallocatealpha($rotated, 0, 0, 0, 127); // imagefill($rotated, 0, 0, $trans_colour); imagepng($rotated, 'shahid.png'); $new_img = imagecreatefrompng('shahid.png?'); $width = imagesx($new_img); $height = imagesy($new_img); // imagecopymerge($dest, $new_img, 50, 50, 0, 0, $width+60, $height+60, 100); imagecopymerge_alpha($dest, $new_img, 0, 20, 0, 0, $width, $height, 100); // Output and free from memory header('Content-Type: image/png'); imagepng($dest); imagedestroy($dest); imagedestroy($src); function imagecopymerge_alpha($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct) { if (!isset($pct)) { return false; } $pct/= 100; // Get image width and height $w = imagesx($src_im); $h = imagesy($src_im); // Turn alpha blending off imagealphablending($src_im, false); // Find the most opaque pixel in the image (the one with the smallest alpha value) $minalpha = 127; for ($x = 0; $x < $w; $x++) for ($y = 0; $y < $h; $y++) { $alpha = (imagecolorat($src_im, $x, $y) >> 24) & 0xFF; if ($alpha < $minalpha) { $minalpha = $alpha; } } // loop through image pixels and modify alpha for each for ($x = 0; $x < $w; $x++) { for ($y = 0; $y < $h; $y++) { // get current alpha value (represents the TANSPARENCY!) $colorxy = imagecolorat($src_im, $x, $y); $alpha = ($colorxy >> 24) & 0xFF; // calculate new alpha if ($minalpha !== 127) { $alpha = 127 + 127 * $pct * ($alpha - 127) / (127 - $minalpha); } else { $alpha+= 127 * $pct; } // get the color index with new alpha $alphacolorxy = imagecolorallocatealpha($src_im, ($colorxy >> 16) & 0xFF, ($colorxy >> 8) & 0xFF, $colorxy & 0xFF, $alpha); // set pixel with the new color + opacity if (!imagesetpixel($src_im, $x, $y, $alphacolorxy)) { return false; } } } // The image copy imagecopy($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h); } ?> ```
PHP Image quality issue on rotating and merging
CC BY-SA 2.5
0
2011-01-26T06:30:14.653
2013-11-14T21:25:01.857
2013-11-14T21:25:01.857
null
562,417
[ "php", "image", "gd" ]
4,802,079
1
4,812,903
null
3
8,874
This is the same question as in: [How to change text alignment in QTabWidget?](https://stackoverflow.com/questions/3607709/how-to-change-text-alignment-in-qtabwidget) I tried to port that python code into C++ but it doesn't seem to work. Here is header file: ``` #include <QTabBar> class HorizontalTabWidget : public QTabBar { Q_OBJECT public: explicit HorizontalTabWidget(QWidget *parent = 0); protected: void paintEvent(QPaintEvent *); QSize sizeHint() const; }; ``` Here is source file: ``` void HorizontalTabWidget::paintEvent(QPaintEvent *) { for(int index = 0; index < count(); index++) { QPainter * painter = new QPainter(this); painter->begin(this); painter->setPen(Qt::blue); painter->setFont(QFont("Arial", 10)); QRect tabrect = tabRect(index); painter->drawText(tabrect, Qt::AlignVCenter | Qt::TextDontClip, tabText(index)); painter->end(); } } QSize HorizontalTabWidget::sizeHint() const { return QSize(130, 130); } ``` I use it by creating NewTabWidget class that inherits QTabWidget. In the constructor of NewTabWidget I use: ``` setTabBar(new HorizontalTabWidget); ``` This is done just to be able to use that tabWidget because setTabBar is protected. Here is what I get: ![enter image description here](https://i.stack.imgur.com/6fKps.png) What am I missing? What I want to create is this but with icons on the top and the labels under the icons (as in Qt Creator): ![enter image description here](https://i.stack.imgur.com/QBuJ7.png)
How to change text alignment in QTabWidget in C++?
CC BY-SA 2.5
0
2011-01-26T07:00:54.867
2016-02-15T12:10:47.583
2017-05-23T12:01:17.083
-1
288,422
[ "c++", "qt", "qt4", "qtabwidget" ]
4,802,089
1
null
null
3
6,193
At debug time I would like to see what are the keys in my InitParams collection - I can't seem to be able to list them. ![InitParam](https://i.stack.imgur.com/OzrVN.png) EDIT: As Jon suggests below, this might be a bug within the Silverlight debugger. To reproduce, just create a new Silverlight Application within Visual Studio 2010 ![bug silverlight](https://i.stack.imgur.com/tbebU.png) and just edit code ``` { public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); var dictionary = new Dictionary<string, string> {{"A", "1"}, {"B", "2"}, {"C", "3"}}; } } } ```
enumerate keys in in a System.Collections.Generic.Dictionary<string,string>
CC BY-SA 2.5
0
2011-01-26T07:01:37.863
2011-01-26T07:42:24.273
2011-01-26T07:42:24.273
375,814
375,814
[ "c#", "asp.net", "silverlight", "dictionary" ]
4,802,240
1
4,805,046
null
1
140
in each frame (as in frames per second) I render, I make a smaller version of it with just the objects that the user can select (and any selection-obstructing objects). In that buffer I render each object in a different color. When the user has mouseX and mouseY, I then look into that buffer what color corresponds with that position, and find the corresponding objects. I can't work with FBO so I just render this buffer to a texture, and rescale the texture orthogonally to the screen, and use glReadPixels to read a "hot area" around mouse cursor.. I know, not the most efficient but performance is ok for now. Now I have the problem that this buffer with "colored objects" has some accuracy problems. Of course I disable all lighting and frame shaders, but somehow I still get artifacts. Obviously I really need clean sheets of color without any variances. ![Screenshot here](https://i.stack.imgur.com/BLOdk.jpg) Note that here I put all the color information in an unsigned byte in GL_RED. (assumiong for now I maximally have 255 selectable objects). Are these caused by rescaling the texture? (I could replace this by looking up scaled coordinates int he small texture.), or do I need to disable some other flag to really get the colors that I want. Can this technique even be used reliably?
Using a buffer for selectioning objects: accuracy problems
CC BY-SA 2.5
null
2011-01-26T07:32:30.817
2011-01-26T13:25:03.087
null
null
472,139
[ "opengl" ]
4,802,321
1
4,802,373
null
1
1,403
I have been at this for a day and a bit now, trying to figure out how to best model the database (MySQL) for an app I'm developing for a friend who owns a bakery. The assumptions are as follows: - `Bakers``Products`- `BakersProducts`- So the front-end UI must be able to allow the manager to purely choose the products she would like in the order, and then present her with a list of Bakers to choose from for each product in the order. In other words, `Orders_has_Products` should also include a reference to `BakersProducts.bpID`. I'm sure though that if I do this, then I would create a circular reference (of sort) to `Products`. ![enter image description here](https://i.stack.imgur.com/9bgn0.png) Im sure I've gone about this the wrong way, and would really appreciate anyone's advice as to how I can restructure my design to acccommodate the chosen Product Price - ie. to include `BakersProducts.bpID`. Thank you!
Database design issue - trying to avoid circular reference
CC BY-SA 2.5
null
2011-01-26T07:48:06.787
2011-01-26T07:59:17.417
null
null
435,332
[ "mysql", "database-design", "circular-reference" ]
4,802,366
1
4,802,396
null
0
548
I would like to add a button to the combobox ItemTemplate, that allows the user to click it and remove the clicked item. This is what i have so far: ``` <dxe:ComboBoxEdit Name="cboUserCustomReports" Width="300" Height="Auto" Margin="0,5,0,5" ItemsSource="{Binding Path=UserReportProfileList,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" EditValue="{Binding Path=UserReportProfileID,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ValueMember="UserReportProfileID" DisplayMember="ReportName" PopupClosed="cboUserCustomReports_PopupClosed"> <dxe:ComboBoxEdit.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="23"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding XPath=ReportName}" VerticalAlignment="Stretch" HorizontalAlignment="Left"/> <Button Grid.Column="1" Width="23" Height="23" VerticalAlignment="Center" HorizontalAlignment="Right"> <Button.Template> <ControlTemplate> <Image Source="/RMSCommon;component/Resources/Delete.ico"></Image> </ControlTemplate> </Button.Template> </Button> </Grid> </DataTemplate> </dxe:ComboBoxEdit.ItemTemplate> </dxe:ComboBoxEdit> ``` My problem is that my Displaymember is not showing in the TextBlock and only the image of the button template is showing. Here is a picture of what it looks like: ![ComboBox](https://i.stack.imgur.com/hO0OA.png) How do i solve my problem? Thanks
Combo Box with a button in the Items Template
CC BY-SA 2.5
null
2011-01-26T07:58:14.887
2011-01-26T08:11:07.240
null
null
393,879
[ "wpf", "combobox", "datatemplate" ]
4,802,418
1
null
null
1
4,806
The following ExtJS grid worked until I put the checkbox column in it, now I get this error: ![Cls error](https://i.stack.imgur.com/bhuWZ.png) I based the checkbox column code on [this code](http://dev.sencha.com/deploy/dev/examples/grid/edit-grid.js). ``` var myData = [ [4, 'This is a whole bunch of text that is going to be word-wrapped inside this column.', 0.24, true, '2010-11-17 08:31:12'], [16, 'Computer2', 0.28, false, '2010-11-14 08:31:12'], [5, 'Network1', 0.02, false, '2010-11-12 08:31:12'], [1, 'Network2', 0.01, false, '2010-11-11 08:31:12'], [12, 'Other', 0.42, false, '2010-11-04 08:31:12'] ]; var myReader = new Ext.data.ArrayReader({}, [{ name: 'id', type: 'int' }, { name: 'object', type: 'object' }, { name: 'status', type: 'float' }, { name: 'rank', type: 'boolean' }, { name: 'lastChange', type: 'date', dateFormat: 'Y-m-d H:i:s' }]); var grid = new Ext.grid.GridPanel({ region: 'center', style: 'margin: 10px', store: new Ext.data.Store({ data: myData, reader: myReader }), columns: [{ header: 'ID', width: 50, sortable: true, dataIndex: 'id', hidden: false }, { header: 'Object', width: 120, sortable: true, dataIndex: 'object', renderer: columnWrap }, { header: 'Status', width: 90, sortable: true, dataIndex: 'status' }, { xtype: 'checkcolumn', header: 'Test', dataIndex: 'rank', width: 55 }, { header: 'Last Updated', width: 120, sortable: true, renderer: Ext.util.Format.dateRenderer('Y-m-d H:i:s'), dataIndex: 'lastChange' }], viewConfig: { forceFit: true, getRowClass: function(record, rowIndex, rp, ds){ if(rowIndex == 2){ return 'red-row'; } else { return ''; } } }, title: 'Computer Information', width: 500, autoHeight: true, frame: true, listeners: { 'rowdblclick': function(grid, index, rec){ var id = grid.getSelectionModel().getSelected().json[0]; go_to_page('edit_item', 'id=' + id); } } }); ```
Why doesn't this checkbox column work in this ExtJS grid?
CC BY-SA 2.5
0
2011-01-26T08:08:26.423
2013-05-18T14:11:16.707
null
null
4,639
[ "javascript", "extjs" ]
4,802,502
1
4,802,553
null
1
2,292
I have a very odd Problem: I use one of my base classes: IEventlistener() which gets implemented by many other classes. Most of the time the system works. But now a very strange problem occured. Once class (CGUIService) implements the interface, one method (VGetListenerName) works as expected the other one (VHandleMessage) gets a pure call when I check the callstack and I don't understand why -.- (seems as if the vtable gets somehow overwritten or out of bounds ...) I made a screenshot so you can see variable before I call the VHandleMessage, which of course leads to a debug assertion R6025 - pure virtual function call because somehow the implemented method isn't entered in the vtable of the IEventlistener(). Highres: www.fantasyhaze.com/cb/Error_purecall.png ![www.fantasyhaze.com/cb/Error_purecall.png](https://i.stack.imgur.com/kiqOo.png) I hope someone can give me a hint :) Edit1.) So just to explain it a little bit more I have created a new screenshot which shows the same process, but now I have included 2 more virtual function which are not pure and have a implementation (becuase of time reasons, I have not the time to implement all methods again in each class which uses the interface) The purple ones are the new ones, The red one is the one which does not work The orange one is the method which was there before and which worked and still works You can see on the left side, that the VGetListenerName,VHandleEvent1,VHandleEvent2 work (debugpoint + current position) and that those 3 are in the vtable ... but not the important one (red) highres: www.fantasyhaze.com/cb/Error_purecall2.png ![vtable problem 2](https://i.stack.imgur.com/kiqOo.png) Edit2.) SOLUTION: The main problem was, that CGUIService inherites from IBase. To have access to the Service I used a Service Locator which stores each service. Therefore it performes a static_cast in the Instance Getters Service::GetServiceInstance() and a static_cast was also performed to store the service as IBase. But IEventListener was not implemented in IBase furthermore the Service was cast back to IBase witout IEventListener and the vtable wasn't ok. Now IBase implements IEventListener and it works because the static_cast casts IEventListener correctly :) Thx for the hints guys :)
__purecall problem in VS2010 using virtual function - once method gets a purecall
CC BY-SA 2.5
0
2011-01-26T08:22:17.733
2011-01-29T20:31:43.157
2011-01-26T11:14:56.080
null
null
[ "c++", "visual-studio-2010", "vtable", "pure-virtual" ]
4,802,705
1
4,802,787
null
1
1,240
This is what i have so far: ``` <dxe:ComboBoxEdit Name="cboUserCustomReports" Width="300" Height="Auto" Margin="0,5,0,5" ItemsSource="{Binding Path=UserReportProfileList,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}" EditValue="{Binding Path=UserReportProfileID,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ValueMember="UserReportProfileID" DisplayMember="ReportName" PopupClosed="cboUserCustomReports_PopupClosed"> <dxe:ComboBoxEdit.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="100*"/> <ColumnDefinition Width="20"/> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Text="{Binding ReportName, Mode=Default}" VerticalAlignment="Stretch" HorizontalAlignment="Left"/> <Button Name="btnDelete" Grid.Column="1" Width="20" Height="20" VerticalAlignment="Center" HorizontalAlignment="Right" Click="btnDelete_Click"> <Button.Template> <ControlTemplate> <Image Source="/RMSCommon;component/Resources/Delete.ico"></Image> </ControlTemplate> </Button.Template> </Button> </Grid> </DataTemplate> </dxe:ComboBoxEdit.ItemTemplate> </dxe:ComboBoxEdit> ``` First, i want the two columns to be stand alone. The user must be able to select or delete the item. Second, i would like to make my button in the ItemTemplate to be click-able. What do i need to add to get this behavior? This is what it looks like at the moment: ![enter image description here](https://i.stack.imgur.com/lUmVM.png)
How to have a click-able button in my combo-box ItemTemplate?
CC BY-SA 2.5
0
2011-01-26T08:56:27.693
2011-01-26T09:08:14.743
null
null
393,879
[ "wpf", "combobox", "datatemplate", "items" ]
4,802,916
1
null
null
0
563
Hey Guys, this is really bugging me now so if you could help me out that would be amazing. I'm using jQuery and YUI and I'm trying to send a multidimensional array via json to php but for some reason I can't grab text to put in the array from an a span! Go figure! No matter how I try I can't seem to add it. If I manually add test data into WeekDays[0](https://i.stack.imgur.com/uttws.jpg) = and that works but for some reason it wont grab the text from the span! The alert on click works and outputs the information out of the span but i can't seem to set an Array value ``` function checkDay(checkbox) { var checked = '0'; if ($('#' + checkbox).is(':checked')) { checked = '1'; } else { checked = '0'; } return checked; } var WeekDays = new Array(7); WeekDays[0] = new Array(); WeekDays[0][0] = checkDay('chxMonday'); WeekDays[0][2] = $('#results22Monday').text(); WeekDays[1] = new Array(); WeekDays[1][0] = checkDay('chxTuesday'); WeekDays[1][3] = new Array(); WeekDays[1][4] = $('#results22Tue').text(); WeekDays[2] = new Array(); WeekDays[2][0] = checkDay('chxWednesday'); WeekDays[2][5] = $('#results22Wednesday').text(); WeekDays[3] = new Array(); WeekDays[3][0] = checkDay('chxThursday'); WeekDays[3][6] = $('#results22Thursday').text(); WeekDays[4] = new Array(); WeekDays[4][0] = checkDay('chxFriday'); WeekDays[4][7] = $('#results22Friday').text(); WeekDays[5] = new Array(); WeekDays[5][0] = checkDay('chxSaturday'); WeekDays[5][8] = $('#results22Saturday').text(); WeekDays[6] = new Array(); WeekDays[6][0] = checkDay('chxSunday'); WeekDays[6][9] = $('#results22Sunday').text(); WeekDays = YAHOO.lang.JSON.stringify(WeekDays); $('#btnUpdateSettings').click(function () { alert($('#results22Tue').text()); $.ajax({ data: { contactID: d.act_contactID, apiCPolicy: $('[name=txtCpolicy]').val(), apiNewRegistrations: $('[name=rdoRegister]').val(), apiInterval: $('[name=cboBooking]').val(), apiMaxDate: $('[name=cboMaxDate]').val(), apiTimes: WeekDays, method: 'updateWebBooking', dataType: 'json' }, success: function () { console.log("welldone, you've updated!"); }, error: function () { alert("ooooppps!"); } }); }); ``` When I check the console logo I get the screen below, showing the array is empty. ![enter image description here](https://i.stack.imgur.com/uttws.jpg) I've marked the space where I want the text to appear but its not there! Its so infuriating. The same goes for all the other array results Any ideas you'd be really helping me out UPDATE the alert does work and outputs as show below, but its just not added to the array! ![enter image description here](https://i.stack.imgur.com/e6UlB.jpg) So I'm still non the wiser its not being added. UPDATE That's really weird, I do have the index set to the one below but when I pasted my code into the question the first time the index was change! Odd! Anyway, its not working when the array indexes are correct! ``` var WeekDays = new Array(7); WeekDays[0] = new Array(); WeekDays[0][0] = checkDay('chxMonday'); WeekDays[0][1] = $('#results22Monday').text(); WeekDays[1] = new Array(); WeekDays[1][0] = checkDay('chxTuesday'); WeekDays[1][1] = new Array(); WeekDays[1][1] = $('#results22Tue').text(); WeekDays[2] = new Array(); WeekDays[2][0] = checkDay('chxWednesday'); WeekDays[2][1] = $('#results22Wednesday').text(); WeekDays[3] = new Array(); WeekDays[3][0] = checkDay('chxThursday'); WeekDays[3][1] = $('#results22Thursday').text(); WeekDays[4] = new Array(); WeekDays[4][0] = checkDay('chxFriday'); WeekDays[4][1] = $('#results22Friday').text(); WeekDays[5] = new Array(); WeekDays[5][0] = checkDay('chxSaturday'); WeekDays[5][1] = $('#results22Saturday').text(); WeekDays[6] = new Array(); WeekDays[6][0] = checkDay('chxSunday'); WeekDays[6][1] = $('#results22Sunday').text(); ``` UPDATE Ok I feel I need to give you guys a more comprehensive question to fill you in on what I'm trying to do as there is probably a much more eloquent way so achieving this. the images below are probably the best way to show this. When I press the update table button It populates the blank area on the right with a table which includes check boxes which are at certain increments set earlier on in the form. Its these check boxes I want to save along with whether the check box for that day has been checked. If the day is unchecked I want the table to be cleared so no data is sent to the database for that day. Thats why I wanted to save then in a multidimensional array and then serialize them, but I can' get it to work ![enter image description here](https://i.stack.imgur.com/T8nJJ.jpg) ![enter image description here](https://i.stack.imgur.com/6wdNG.jpg) ![enter image description here](https://i.stack.imgur.com/JzYpc.jpg) ![enter image description here](https://i.stack.imgur.com/iemuM.jpg) ![enter image description here](https://i.stack.imgur.com/7MJeO.jpg)
Submitting a multi dimensional array with jQuery and YUI
CC BY-SA 2.5
0
2011-01-26T09:22:07.753
2011-01-27T09:06:07.197
2011-01-27T09:06:07.197
493,847
493,847
[ "jquery", "multidimensional-array", "yui" ]
4,803,029
1
5,008,842
null
1
12,297
I am creating a menu for the MVC music store application. Currently it looks like this ![As you can see I have the index view CSS selected not the About view](https://i.stack.imgur.com/t0yDn.png) As you can see I have the Home sub level menu selected when in fact I am on the About View. I used Darins example for the main menu and created a helper class which looks like this. ``` public static MvcHtmlString MenuLink(this HtmlHelper helper, string linkText, string actionName, string controllerName) { string currentAction = helper.ViewContext.RouteData.GetRequiredString("action"); string currentController = helper.ViewContext.RouteData.GetRequiredString("controller"); //modified this to work whenever a view of the controller is selected //if (actionName == currentAction && controllerName == currentController) if (controllerName == currentController) { return helper.ActionLink( linkText, actionName, controllerName, null, new { @class = "active" }); } return helper.ActionLink(linkText, actionName, controllerName); } ``` Note I did slightly change the code as I wasn't interested in action name. I found this limited me and the main menu wouldn't add the active CSS state where I wanted. So that works perfect for the top level menu however I am a little stuck with the sublevel menu. My html consists of 2 UL tags like ``` <nav id="main-nav"> <ul> <li>@Html.MenuLink("Home", "Index", "Home")</li> <li>@Html.MenuLink("Store", "Index", "Store")</li> <li>@Html.MenuLink("Cart", "Index", "ShoppingCart")</li> <li>@Html.MenuLink("Admin", "Index", "StoreManager")</li> </ul> </nav> </div> <div id="page-subheader"> <div class="wrapper"> <nav id="sub-nav"> <ul> <li>@Html.SubMenuLink("Home", "Index", "Home")</li> <li>@Html.SubMenuLink("About", "Index", "Home/About")</li> @* <li class="active"><a href="@Url.Content("~")">Index</a></li> <li><a href="@Url.Content("~/Home/About")">About</a></li>*@ </ul> </nav> <input placeholder="Search..." type="text" name="q" value="" /> </div> </div> ``` Pretty standard HTML I have also tried to create another helper like: ``` public static MvcHtmlString SubMenuLink(this HtmlHelper helper, string linkText, string actionName, string controllerName) { string currentAction = helper.ViewContext.RouteData.GetRequiredString("action"); string currentController = helper.ViewContext.RouteData.GetRequiredString("controller"); if (controllerName == currentController) { return helper.ActionLink( linkText, actionName, controllerName, null, new { @class = "active" }); } return helper.ActionLink(linkText, actionName, controllerName); } ``` But I don't really know what to do next. If I put a break point on the code I can see `currentAction` is been returned as `About` and `currentController` is been returned as `Home`, I'm just a little unsure how to add the logic apply the active CSS class to the submenu. Can some please help?
MVC main menu and selected submenu
CC BY-SA 3.0
0
2011-01-26T09:36:54.227
2011-11-23T21:29:16.197
2011-11-23T21:29:16.197
1,027,198
293,545
[ "asp.net-mvc-3" ]
4,803,095
1
4,803,734
null
0
158
I have got the following scenario. In my SL application, I am getting some data using RIA. ON the first load of the application, the data gets pulled out correctly and I bind the data to the front end. Then I change some filter parameters and only one field in the data returned changes. I've traced it and it's definitely not a problem with my query which in fact returns the right data. So, I've put some breakpoint on the DomainService class generated. The data is set correctly as shown here: ![Set value of 285.8333](https://i.stack.imgur.com/yj1Ul.png) However, when it comes to getting the data back out, it is pulling out the data on the first page load as shown here: ![Get value of 215.83333](https://i.stack.imgur.com/olUB0.png) Can anyone advise as to what I might be doing wrong?
Silverlight 4 value getting set but "wrong" value is being retrieved
CC BY-SA 2.5
null
2011-01-26T09:44:04.953
2011-01-26T13:56:04.367
null
null
509,727
[ "silverlight-4.0", "ria" ]
4,803,624
1
4,804,762
null
1
3,512
I am trying to add custom field to a bug in TFS. I opened the but i have to enter the RefName as show in the image below. Does any body know how can create Custom RefName ![](https://i.stack.imgur.com/htatI.png) I tried to do as Ewald Hofman said, i got the below error![enter image description here](https://i.stack.imgur.com/O0S8u.png)
TFS Bug template + Adding custom fields
CC BY-SA 2.5
null
2011-01-26T10:46:03.757
2011-01-27T02:18:05.570
2011-01-26T13:11:15.380
512,030
512,030
[ "visual-studio", "tfs" ]
4,803,679
1
4,803,725
null
1
61
[jsFiddle](http://jsfiddle.net/pHd77/) In this jsFiddle I've got two images and then some text. I want it to appear like this: ![enter image description here](https://i.stack.imgur.com/jwX2g.png) note: the images and text should be sitting on the same horizontal axis, the text is not supposed to be higher So what I'm trying to do is make the text appear over multi-lines within a box with a width of 150. How can I do this?
How can I put text into a defined box?
CC BY-SA 2.5
null
2011-01-26T10:52:09.867
2011-01-26T10:56:52.187
null
null
173,634
[ "html", "css" ]
4,803,722
1
4,803,897
null
0
106
![enter image description here](https://i.stack.imgur.com/9KcMq.png) I have these four table assume that ring table consist of five fields(jewelry_id,ring_id,image,type,brand_id) Note that brand table have its foreign key in ring table and ring and style both have foreign keys in ring_style table. now i want to retrieve the following data from these four table (ring_id, image,type, brand,style) but did't get the query any help will be greatly appreciated.
retrieve data from 4 tables
CC BY-SA 3.0
null
2011-01-26T10:56:43.677
2016-12-24T19:32:23.417
2016-12-24T19:32:23.417
1,033,581
501,751
[ "php", "mysql" ]
4,803,857
1
8,791,134
null
3
874
im working on a web app. project and i need to change intersection region color for transparent objects. to set it darker i mean the intersection region color only the intersection region not the whole object. ![enter image description here](https://i.stack.imgur.com/xEYhS.png) intersection will not always be rectangular. there will also be intersection with the image based svg objects. so... creating an overlay object by calculating intersection region is quite impossible. the only solution left is to interfere with render process of svg. is there possible way to do this?? :/ and please tell me if this is not possible.
changing intersection region color of transparent object on raphaeljs svg?
CC BY-SA 2.5
null
2011-01-26T11:08:49.057
2012-01-09T15:51:13.033
2011-01-26T13:03:36.867
401,006
401,006
[ "javascript", "silverlight", "svg", "raphael" ]
4,803,912
1
4,804,009
null
1
1,282
i need to download large pdf from web and i created a progress bar controller. ![enter image description here](https://i.stack.imgur.com/S2lk9.png) But, how i set max progress value it i don't know the pdf size before downloading? Is there a way to get file size and use it to increment progress bar? I'm using ``` myPDFremoteUrl = "http://www.xasdaxxssxx.pdf"; - (float) getFileSize { NSFileManager *man = [[NSFileManager alloc] init]; NSDictionary *attrs = [man attributesOfItemAtPath: myPDFremoteUrl error: NULL]; UInt32 result = [attrs fileSize]; return (float)result; } ``` but i don't able to check remote size in this way... any idea? Thanks
How to get remote file size to increment progress bar?
CC BY-SA 2.5
null
2011-01-26T11:14:37.740
2011-01-26T11:43:45.453
null
null
88,461
[ "iphone", "objective-c", "ipad", "pdf", "uiprogressview" ]
4,804,186
1
4,804,221
null
0
391
When I try to run the following C++ program: (Updated code since the past link had some errors): [http://pastie.org/private/pdpfpzg5fk7iegnohebtq](http://pastie.org/private/pdpfpzg5fk7iegnohebtq) I get the following: ![enter image description here](https://i.stack.imgur.com/bcb5c.png) The errors that arise now are as follows: ![enter image description here](https://i.stack.imgur.com/R70QB.png) Any ideas on that? Thanks.
UPDATE: C++ undefined reference
CC BY-SA 2.5
null
2011-01-26T11:47:01.530
2011-01-26T12:31:57.173
2011-01-26T12:11:32.823
588,855
588,855
[ "c++", "undefined-reference" ]
4,804,204
1
4,804,245
null
0
750
``` div.task_finished { background-color:#6b86a6; } div.task_pending_execute { background-color:#93b8e2; } div.task_cancelled { background-color:#ff9966; } div.task { background-color:#ffffcc; } ``` Now I want to print this ``` <div class="legend-container"> <div class="legend"> <div class="task_pending_execute"></div> <div class="legend-text">Executing</div> </div> <div class="legend"> <div class="task_cancelled"></div> <div class="legend-text">Finished</div> </div> ... </div> ``` ![here what I've got](https://i.stack.imgur.com/TT5Tl.png) For IE graph is rendered as image. User browser set not to print `background-color` by default, but that's inacceptable in this concrete situation I still don't want to subsitute 'color' div's here by images. What css property should I use instead?
printing graph legend
CC BY-SA 2.5
null
2011-01-26T11:48:46.077
2011-02-15T20:18:04.963
2011-02-15T20:18:04.963
72,530
72,530
[ "css", "printing", "internet-explorer-8" ]
4,804,411
1
4,804,575
null
2
237
I'm embedding a Colour Picker into a Context Menu using the Windows.Forms.ToolStripControlHost class. The picker displays fine and handles all mouse events properly: ![enter image description here](https://i.stack.imgur.com/rkPxn.png) The problem arises when one of the channel sliders is double clicked. This causes the control to add a Windows.Forms.TextBox into the parent control with the same dimensions as the slider so users can enter numeric values. When Enter is pressed while the TextBox has focus, it should assign the value and hide the textbox (which it does), but it also closes the entire menu structure. So, how do I keep the menu alive? ![enter image description here](https://i.stack.imgur.com/wxQt0.png) There's an awful lot of code involved but I'll post it if needed.
How to prevent Enter press from closing menu
CC BY-SA 2.5
null
2011-01-26T12:11:25.800
2011-01-26T12:31:50.937
null
null
81,947
[ "winforms", "menu", "custom-controls" ]
4,804,430
1
5,583,556
null
0
419
I have a Reflection-created dialog that looks like below. When the date is clicked, the popover changes shape and renders the datepicker squished, see below too. My Class is below for reference. ![enter image description here](https://i.stack.imgur.com/i5p7P.png) ![enter image description here](https://i.stack.imgur.com/f6F7j.png) ``` [Preserve(AllMembers = true)] public class EventEntity { [Section("Date of Measurement", "")] [Indexed] [Date] public DateTime Date ; [Section("Measurement Details", "")] [Caption("Height")] [Entry(Placeholder= "Centimeters",KeyboardType = UIKeyboardType.PhonePad)] public string HeightCM ; [Caption("Weight")] [Entry(Placeholder= "Kilograms",KeyboardType = UIKeyboardType.PhonePad)] public string WeightKG ; [Caption("Head Circumference")] [Entry(Placeholder = "Centimeters", KeyboardType = UIKeyboardType.PhonePad)] public string HeadCircumferenceCM; [Skip] public int ChildFK ; [Skip] [PrimaryKey, AutoIncrement] public int PK; } ```
MonoTouch.Dialog: ContentSizeForViewInPopover changes in Date
CC BY-SA 2.5
null
2011-01-26T12:14:07.010
2011-04-07T15:25:41.743
2011-01-30T09:39:01.730
572,076
172,861
[ "xamarin.ios", "monotouch.dialog" ]
4,804,490
1
null
null
2
1,595
How can I highlight other pieces (columns, bars etc.) in a chart created with wpf toolkit. I am using a control template to style my own chart. So far I used a trigger to get a fading effect on the element on which the mouse is residing. I want to invert this; to fade other elements (a popular charting visual gimmick) on to which mouse is not pointing. Following image shows the selected column Faded, I want it to be the other way around![column faded](https://i.stack.imgur.com/lnib3.jpg).
Wpf Toolkit Chart Invert Highlighting
CC BY-SA 2.5
0
2011-01-26T12:22:16.963
2011-01-28T08:13:40.490
null
null
557,022
[ "wpf", "wpftoolkit", "charts" ]
4,804,594
1
null
null
0
65
I have a custom silverlight control, which exposes a property with DataGridLength type. Now I want that property to have the same editor as a common DataGridColumn's Width property, with the combobox and everything, like this: ![enter image description here](https://i.stack.imgur.com/2tkgI.png) instead, I only get a simple TextBox, with "Auto" written in, with no way to set to SizeToCells and so on. I assume I need a DesignTime attribute, but none of the ones I found in ComponentModel namespace even came close...
Reusing property editors for Blend 4
CC BY-SA 2.5
null
2011-01-26T12:33:31.163
2011-01-26T13:45:50.597
null
null
571,536
[ "silverlight-4.0", "expression-blend" ]
4,804,653
1
4,805,000
null
2
4,021
I'm looking for a C++ object persistence library to replace the [Eternity library](http://sourceforge.net/projects/eternity-it/) that I've been prototyping with for about a day. The Eternity library came up short. I've created an object hierarchy similar to this: ![object heirarchy](https://i.stack.imgur.com/I0djo.png) I have an `std::list` of `ArchiveJob*`'s that I'd like to persist and restore in XML format. Each `ArchiveJob` has various child objects, some allocated on the stack, some on the heap. Eternity did a good job of persisting these objects correctly, but it failed when restoring them. (for those familiar with Eternity, the following "restore" operation failed to read any data from the XML file) ``` xml_read( sequence<pointers>(), *pList, pList->begin(), xml, "ScheduleList" ); ``` This call allocated memory for the `ArchiveJob` object, but all its children were uninitialized. Can someone recommend an object hierarchy persistence solution that: 1. Can persist / restore STL containers 2. Is windows developer friendly (e.g. if it needs built, does it have a VS200x solution file) 3. Can handle complex object hierarchies Should I spend time learning [XML serialization with boost](http://www.boost.org/doc/libs/1_43_0/libs/serialization/example/demo_xml.cpp)? How does it handle complex object hierarchies stored in a master object in an STL container?
C++ object persistence library similar to eternity
CC BY-SA 2.5
null
2011-01-26T12:39:34.823
2011-01-26T14:52:32.687
2011-01-26T13:26:59.390
214,671
null
[ "c++", "windows", "serialization", "object-persistence" ]
4,804,761
1
5,473,677
null
1
564
All, I am using Websphere AS 7.0 along with my RAD 7.5. When I try to use the Admin console from with in RAD ([http://localhost:9061/ibm/console](http://localhost:9061/ibm/console)) and from a different browser (IE/Firefox), I get the following two options: Option 1: Log out the other user with the same user ID. You can recover changes made during the other user's session. Option 2: Return to the Login page and enter a different user ID ![See image](https://i.stack.imgur.com/x29wB.jpg) ![My IBM console screen](https://i.stack.imgur.com/T9QkV.jpg) I wanted to know if there is any setting in WAS7 that I can tweak so that I can access the console from with in RAD and different browser (on local system as well as remote)? Thanks.
Websphere AS 7.0 login
CC BY-SA 2.5
null
2011-01-26T12:51:20.323
2011-03-29T13:54:26.140
null
null
326,439
[ "websphere" ]
4,804,787
1
4,813,070
null
2
338
Using the amazing MonoTouch.Dialog tool set, how can I ensure that Backing fields are not show. When I assign an [Entry] attribute to a get;set; property, I get the following rendered: ``` [Caption("Weight")] [Entry(Placeholder = "Kilograms", KeyboardType = UIKeyboardType.PhonePad)] public string Weight { get; set; } ``` ![enter image description here](https://i.stack.imgur.com/dAB5c.png)
Monotouch.Dialog: Backing Field Exclusion
CC BY-SA 2.5
null
2011-01-26T12:55:22.607
2011-01-27T05:31:15.460
null
null
172,861
[ "xamarin.ios", "monotouch.dialog" ]
4,805,080
1
4,805,184
null
2
728
I'm stumped on what I assume must be a trivial problem. I've got a panel, which contains a datagrid (expected to fill up the majority of the realestate fluidly), and a handful of buttons and text fields pinned to the bottom edge of the panel. Its a classic datagrid+search combo. What I'm stuck on, is that while the datagrid will grow into large 'viewport' just fine, after I shrink down to about 600 pixels or so, the height of the datagrid stops shrinking, pushing the bottom-pinned content off-screen. I've played with various settings of minHeight, and while larger settings work (also, curiously, overlaying the bottom-pinned stuff where it belongs, instead of off-screen). the smaller settings are apparently ignored or overwritten for some reason. It seems as if there must be another setting of some sort that I need to make, but I've been messing with this now for hours, and I'm just hoping one of you knows exactly what the issue is. My problem now is that I don't know what else to try! Here's a few screenshots, first the design preview, second, the browser rendering. You can see how the bottom row of buttons gets cut off, and, if I shrink the window even more, I'll cut off parts of the datagrid as well. ![The 'design' preview](https://i.stack.imgur.com/9eeuN.jpg) ![the browser rendering](https://i.stack.imgur.com/sd1gL.jpg) Thanks! EDIT: here's code to my test app, where all the behavior is what it should be...and the hierarchy exactly mimics whats going on in my test app (copy/pasted directly from) . ``` <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"> <fx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable]private var _data:ArrayCollection; ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Group width="100%" height="100%"> <s:BorderContainer width="100%" height="100%" backgroundColor="silver" cornerRadius="8" borderStyle="inset" borderWeight="1" > <!--Main application viewstack--> <mx:ViewStack width="100%" height="100%" > <s:NavigatorContent width="100%" height="100%"> <!--sub-application viewstack--> <s:Group width="100%" height="100%"> <mx:ViewStack id="vs" width="100%" height="100%" x="0" y="0" > <s:NavigatorContent width="100%" height="100%"> <s:Group width="100%" height="100%"> <s:Panel minHeight="170" title="Order Entry—Customer [Search for existing contacts...]" height="100%" width="100%"> <s:Scroller width="100%" height="100%"> <s:Group clipAndEnableScrolling="true"> <mx:DataGrid id="dgSelect" dataProvider="{_data}" sortableColumns="false" resizableColumns="true" draggableColumns="false" doubleClickEnabled="true" allowMultipleSelection="false" minHeight="68" top="4" bottom="70" left="4" right="4"> <mx:columns> <mx:DataGridColumn headerText="Last Name" dataField="LName" width="100" /> <mx:DataGridColumn headerText="First Name" dataField="FName" width="100" /> <mx:DataGridColumn headerText="Address" dataField="Address1" width="250" /> <mx:DataGridColumn headerText="City" dataField="City" width="100" /> <mx:DataGridColumn headerText="State" dataField="State" width="50" /> <mx:DataGridColumn headerText="Zip" dataField="Zip" width="50" /> <mx:DataGridColumn headerText="Email" dataField="EMail" /> </mx:columns> </mx:DataGrid> <s:Group bottom="40" left="4" width="100%" height="21"> <s:Label text="Last" width="41" height="22" verticalAlign="middle"/> <s:TextInput id="txtSearchLast" maxChars="9" width="100" left="41"/> <s:Label text="First" width="36" verticalAlign="middle" left="185" height="21"/> <s:TextInput id="txtSearchFirst" maxChars="9" width="100" left="220"/> <s:Label id="lblSearchError" color="#FF0000" fontSize="10" left="336" right="158"/> <mx:Spacer width="100%"/> <s:Button id="btnSearchSelect" label="Select" right="80"/> <s:Button id="btnSearchEdit" label="Edit" right="4"/> </s:Group> <s:Group bottom="10" height="21"> <s:layout > <s:HorizontalLayout paddingLeft="10" paddingRight="10"/> </s:layout> <mx:Button id="btnCancel" label="Cancel" /> <mx:Spacer/> <mx:Button id="btnStartOver" label="Start Over" /> <mx:Spacer/> <mx:Button id="btnExpressContact" label="Express Contact"/> <mx:Button id="btnExpressCart" label="Ω" /> <mx:Spacer/> <mx:Button id="btnCustomerNew" label="New Customer" /> <mx:Spacer/> <mx:Button id="btnNext" label="Next" /> </s:Group> </s:Group> </s:Scroller> </s:Panel> </s:Group> </s:NavigatorContent> </mx:ViewStack> </s:Group> </s:NavigatorContent> </mx:ViewStack> </s:BorderContainer> </s:Group> </s:Application> ```
datagrid and minHeight property
CC BY-SA 2.5
null
2011-01-26T13:29:43.687
2011-01-26T14:46:56.100
2011-01-26T14:46:56.100
216,160
216,160
[ "apache-flex", "user-interface" ]
4,805,298
1
4,807,156
null
0
2,590
I'm trying to code a layout somewhat similar to SO. It has a centered container with typical blocks: header, navigation, content area and footer. This blocks have different background-color. The problem is, I want the background to be 100% of the screen width. You can see this in SO's userbar at the top of the screen. Also I made an example picture. Note, that there shouldn't be any vertical borders, they're just to show the content area. ![enter image description here](https://i.stack.imgur.com/n12AQ.png) I've checked SO's html source but it didn't tell me anything So, what are my options? My first idea was to make a wrapper div for each section which handles the background, and another div inside of it with width:950px and margin:0 auto But it seems to me very inefficient. Is there a nicer way to make it?
Centered fixed-width layout with fullscreen-width backgrounds
CC BY-SA 2.5
null
2011-01-26T13:53:54.997
2011-01-26T16:36:51.160
2011-01-26T13:56:26.653
139,459
519,295
[ "css", "layout", "html" ]
4,805,392
1
5,361,192
null
3
563
I'm brand new to phpunit testing. Can anyone help me on how to test the lines below in the image. ![Img example](https://i.stack.imgur.com/4xOkl.png) So far my test is: ``` public function testCanSendEmail() { $formData = array( 'subject' => 'test subject', 'email' => '[email protected]', 'message' => 'test message', 'name' => 'test name'); $this->request ->setMethod('POST') ->setPost($formData); $this->dispatch('/contact'); $this->assertAction('win'); ``` I was under the impression that if the validation succeeded it would follow through the whole action? Can anyone please explain what is happening here, and also what a correct test would be for such an action.
PHPunit test not following through after ZF form validation
CC BY-SA 2.5
null
2011-01-26T14:04:17.460
2011-03-19T09:42:00.413
2011-01-26T14:15:43.460
208,809
184,379
[ "php", "zend-framework", "phpunit" ]
4,805,504
1
null
null
0
892
I am facing a weird situation. I have a tab bar application,where i am showing a custom alertbox in a particular view.The problem is that the alertbox always display on top rather than middle of screen. I am currently using Xcode 3.2.5 & build it on iPhone simulator 4.2 ![enter image description here](https://i.stack.imgur.com/6fgPp.png) ``` -(void)createAlertbox{ alertView = [[UIAlertView alloc] init]; [alertView setDelegate:self]; [alertView setTag:1]; [alertView setTitle:@"sample"]; [alertView setMessage:@" "]; [alertView addButtonWithTitle:@"Enter"]; CGAffineTransform moveUp = CGAffineTransformMakeTranslation(0.0,60.0); [alertView setTransform: moveUp]; ageTextField = [[UITextField alloc] initWithFrame:CGRectMake(20.0, 45.0, 245.0,25.0)]; [ageTextField setBackgroundColor:[UIColor whiteColor]]; [ageTextField setPlaceholder:@"Enter your Current Age"]; ageTextField.keyboardType=UIKeyboardTypeNumberPad; ageTextField.delegate=self; [alertView addSubview:ageTextField]; [alertView show]; [alertView release]; [ageTextField release]; } ```
Custom alertview showing on top?
CC BY-SA 2.5
0
2011-01-26T14:15:40.357
2011-04-01T11:37:42.953
2011-01-26T14:23:39.480
159,997
159,997
[ "iphone", "ios4", "uialertview" ]
4,806,364
1
4,806,578
null
0
1,265
I can control 8 pins in LPT using inpout.dll. I want to control some LPT device but I need to use more than 8 pins. How to do it? ![example](https://i.stack.imgur.com/NtMaR.jpg) It can be COM or NET dll. I have no idea how to control more than 8 pins.
c# LPT Control all pins. Not 8
CC BY-SA 2.5
null
2011-01-26T15:30:58.357
2011-01-26T15:49:45.347
null
null
465,408
[ "c#", ".net", "dll", "hardware", "lpt" ]
4,806,691
1
4,817,033
null
3
738
I'm running a series of PHPunit tests and have a controller that is reporting 100% coverage. In the coverage report however, only 5 of its 84 lines of code are marked "green" I'm wondering what factors might be causing this issue? One interesting point that be causing it is 'indirect calls'. This particular controller is the parent of a number of other controllers, and since so many other objects inherit from it maybe the code gets called for elsewhere... but then wouldn't it turn green? As it stands the only method that is turning green is the `__construct` method. I don't know if that's actually enough to go on, but if anyone has a bit more knowledge of how Unit Testing determines coverage I'd love to hear it. Edit in response to `Gaurav's comment: The phpunit command line is `phpunit --configuration admin.xml` and admin.xml reads ``` <phpunit bootstrap="./admin/applications/admin/bootstrap.php" colors="true"> <testsuite name="AdminTestSuite"> <directory suffix=".php">./admin/applications/admin/</directory> <directory suffix=".php">./admin/applications/shared/</directory> </testsuite> <filter> <whitelist> <directory suffix=".php">../admin/applications/admin/controllers</directory> <directory suffix=".php">../admin/applications/shared/controllers</directory> <directory suffix=".php">../admin/applications/shared/helpers</directory> <directory suffix=".php">../admin/lib/controllers</directory> <directory suffix=".php">../admin/lib/helpers</directory> <directory suffix=".php">../admin/lib/models</directory> <directory suffix=".php">../admin/lib/utils</directory> </whitelist> <blacklist> <file>../dm_admin/applications/shared/controllers/DashboardController.php</file> <directory suffix=".php">../admin/lib/crons</directory> </blacklist> </filter> <logging> <log type="coverage-html" target="/projects/ut/admin/" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/> <log type="testdox-html" target="/projects/ut/admin/testdox.html" /> </logging> </phpunit> ``` In response to jakenoble: the helper is reading 100% coverage ![The report reading 100% coverage on the helper](https://i.stack.imgur.com/QVsEd.png) but inside we see ![Some text at the top of one of the methods - 1099 lines in all](https://i.stack.imgur.com/HNgTK.png) It goes on for 1099 lines, with the occasional green... but no red.
Code coverage report incorrectly indicating 100% coverage of a controller
CC BY-SA 2.5
0
2011-01-26T15:58:52.543
2012-05-28T12:03:59.993
2011-01-27T16:25:13.370
398,055
398,055
[ "php", "unit-testing", "testing", "phpunit", "code-coverage" ]
4,807,001
1
4,807,217
null
1
3,331
hi how can i transparent Label over another label in C# ? like this![Image](https://i.stack.imgur.com/32sbH.jpg)
Transparent Label Over Label
CC BY-SA 2.5
null
2011-01-26T16:24:13.987
2011-01-26T16:57:58.270
null
null
369,161
[ "c#", ".net", "winforms", "label" ]
4,807,074
1
null
null
1
413
I have a div that is 100% wide by 180px tall - the header. Underneath that I want a div that stretches right to the bottom with a white background - the content div). The way I have implemented at the moment is that the content div is ALWAYS 180px underneath the browsing window (almost like a 180px scroll-down no matter the browser window size). Previously I have tried turning overflow:hidden on, but for the actual content, it MAY have to scroll down so I don't want to disable this functionality. Below is a drawing of what I want: ![enter image description here](https://i.stack.imgur.com/2jq8u.jpg) Does anyone know a way to counteract this? EDIT: Apologies for not being clear. I want the content div to stretch to the bottom of the window in all circumstances but setting the value to 100% does not do me any good as it's then 180px below the viewport because the header pushes it down.
Tricky positioning and sizing of div
CC BY-SA 2.5
null
2011-01-26T16:29:03.820
2011-01-27T15:28:01.130
2011-01-26T16:41:35.907
418,146
418,146
[ "css", "html" ]
4,807,183
1
4,807,224
null
0
208
Good day to all. I have a dropdown menu (a div actually with display:none at onclick event on the searchbar it appears) placed inside a div with the following style: ``` background-image: url("/whatever.png"); height: 80px; position: relative; top: 60px; width: 100%; ``` The div that appears (the dropdown) has: ``` background: none repeat scroll 0 0 #FFFFFF; border: 1px solid; height: 185px; left: 140px; padding-top: 3px; position: absolute; top: 25px; width: 134px; z-index: 25; ``` Now... here is the problem (I had to hide some elements sorry about that also I can not provide an online copy sorry about that too): ![enter image description here](https://i.stack.imgur.com/o1pgn.png) The red line is a div on the same level as the container of the dropdown with style: ``` top: 140px; width: 100%; ``` The blue bar (is a div placed inside 2 other divs with position: relative and float: left, nothing else) has: ``` background: url("blue.png") repeat scroll 0 0 #00FF00; color: #FFFFFF; float: left; font-size: 12px; font-weight: bold; height: 22px; margin-top: 20px; padding-top: 5px; position: relative; text-align: center; text-transform: uppercase; width: 210px; ``` This only occurs on IE 7 and 6. Is ok on all other browsers. Any help would be appreciated.
CSS - IE 7 z-index problem
CC BY-SA 2.5
null
2011-01-26T16:39:50.790
2011-01-26T16:42:42.487
null
null
569,872
[ "css", "internet-explorer-7", "internet-explorer-6", "z-index" ]
4,807,822
1
4,809,922
null
0
141
I have a mysterious problem with a custom subclass of `UITableViewCell`. The cell subclass is doing some relatively complex layout of `UIControl` instances, and then storing its height (based on the layout of those controls) in an ivar. I am performing zero custom drawing (I'm not overriding `drawRect:` at all). For some reason, there is this strange rounded-corner-looking thing drawing at the top of the cell no matter what the height. I'm not changing the height of the cell's frame itself or anything; I'm just using `tableView:heightForRowAtIndexPath:indexPath` in my table view delegate. Everything else about the cell renders fine—it's just this one strange part. Has anyone ever seen anything like this happen before? I am using iOS 4.2. ![image of mysterious arc](https://i.stack.imgur.com/aBV0U.png)
Mysterious rounded line appears at top of custom UITableViewCell
CC BY-SA 2.5
null
2011-01-26T17:33:56.717
2011-01-26T20:55:17.043
2011-01-26T19:37:16.643
102,529
102,529
[ "iphone", "cocoa-touch", "ios", "ios4", "drawing" ]
4,807,824
1
null
null
0
237
I am facing a weird problem on some of the pages on my website. I get this screen for sometime and the issue gets resolved by itself after sometimes. Any idea what might be causing the issue. Screenshot as seen on Chrome: ![enter image description here](https://i.stack.imgur.com/zkB4f.jpg) Here is the response header for the request: ``` Request URL:http://www.badmintonbuddy.com/Create Request Method:GET Status Code:500 Internal Server Error Request Headers Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8 Cache-Control:max-age=0 Connection:keep-alive Cookie:__utmz=14266660.1293156873.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=badmintonbuddy; __utma=14266660.1914068399.1293156873.1296024615.1296061789.13; __utmc=14266660; __utmb=14266660.7.10.1296061789 Host:www.badmintonbuddy.com Referer:http://www.badmintonbuddy.com/Create User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10 Response Headers Cache-Control:private Content-Length:1194 Content-Type:text/html; charset=utf-8 Date:Wed, 26 Jan 2011 17:30:52 GMT Server:Microsoft-IIS/7.0 X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET ``` and here is the HTML of the page ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> Submit a Club </title> <meta name="description" content="Badminton, Badminton Clubs, Play Badminton, Badminton courts " /> <meta name="keywords" content="Badminton, Badminton Clubs, Play Badminton, Badminton courts" /> <link href="Content/Site.css" rel="stylesheet" type="text/css" /> <!-- For LOCAL> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAATcytSR8mvGpZGALaUc8OOhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQElXY6qUXmKmYpeVwhVtW50LGAQQ"></script--> <!--For PROD--> <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAATcytSR8mvGpZGALaUc8OOhSZOUWVEB7juxYWb997FACJmh8mbhSnemR4drJ-L8ZQftUNHVhtn9Ph4g"></script> <!-- jQuery UI Components--> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/humanity/jquery-ui.css" rel="stylesheet" type="text/css" /> <!-- jQuery UI Components--> </head> <body> <div class="wrapper"> <div class="page"> <div id="header"> <div id="menucontainer"> <a href="/"> <img class="logo" src="../../Content/logo.jpg" alt="BadmintonBuddy"/> </a> <ul id="menu"> <li><a href="/">Home</a></li> <li><a href="/Create">Submit a Club</a></li> <li><a href="/Feedback">Feedback</a></li> <li><a href="/About">About</a></li> </ul> </div> </div> <div id="main"> <script src="../../Scripts/Map.js" type="text/javascript"></script> <script src="http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjax.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { addWatermark(); $('input:submit, input:button').button(); $('a #locate').click(function() { loadLocation(); }); $('#Country').autocomplete({ source: "GetCountry", minLength: 0 }); $('#State').autocomplete({ source: function(request, response) { $.ajax({ url: "GetState", dataType: "json", data: { term: request.term, country: $('#Country').val() }, success: function(data) { response(data); } }); }, minLength: 2 }); $('#City').autocomplete({ source: function(request, response) { $.ajax({ url: "GetCity", dataType: "json", data: { term: request.term, state: $('#State').val() }, success: function(data) { response(data); } }); }, minLength: 2 }); $('#optional').accordion({ collapsible: true, animated: 'bounceslide', active: false }); $('.mapoptions').dialog({ autoOpen: false, show: 'blind', width: 600, height: 500, resizable: false, title: "Preview Club Location", buttons: { "Cancel": function() { $(this).dialog("close"); }, "Add": function(event, ui) { fillAddress(); $(this).dialog("close"); } } }); $('#preview').click(function() { loadLocation(); return false; }); $('#submit').click(function() { //watermark puts all the fields with some text //hence MVC validation would not work, //check mandatory fields and then submit if everything is good. if (rgbToHex($('#ClubName').css('color')) == '#aaaaaa') { $('#ClubName_validationMessage').html("Please enter Club Name").css('color', 'red'); ; $('#ClubName_validationMessage').show(); return false; } else if (rgbToHex($('#Address').css('color')) == '#aaaaaa') { $('#Address_validationMessage').html("Please enter Address for the Club").css('color', 'red'); ; $('#Address_validationMessage').show(); return false; } $('input:text').each(function() { if (rgbToHex($(this).css('color')) == '#aaaaaa') { $(this).val(""); } }); $('textarea').each(function() { if (rgbToHex($(this).css('color')) == '#aaaaaa') { $(this).val(""); } }); $('#ClubName_validationMessage').hide(); $('#Address_validationMessage').hide(); return true; }); }); </script> <div id="submitdiv"> <div id="clubform"> <form action="/create" id="form0" method="post"> <div class="editor-label"> <b class="req">*</b><label for="Club Name">Club Name</label> </div> <div class="editor-field"> <input class="padding5" id="ClubName" name="ClubName" size="50" type="text" value="" /> <span class="field-validation-valid" id="ClubName_validationMessage"></span> </div> <div class="editor-label"> <label for="Country">Country</label> </div> <div class="editor-field"> <input class="padding5" id="Country" name="City.State.Country.CountryName" size="50" type="text" value="" /> <span class="field-validation-valid" id="City_State_Country_CountryName_validationMessage"></span> </div> <div class="editor-label"> <label for="State">State</label> </div> <div class="editor-field"> <input class="padding5" id="State" name="City.State.StateName" size="50" type="text" value="" /> <span class="field-validation-valid" id="City_State_StateName_validationMessage"></span> </div> <div class="editor-label"> <label for="City">City</label> </div> <div class="editor-field"> <input class="padding5" id="City" name="City.CityName" size="50" type="text" value="" /> <span class="field-validation-valid" id="City_CityName_validationMessage"></span> </div> <div class="editor-label"> <b class="req">*</b><label for="Address">Address</label> </div> <div class="editor-field"> <input class="padding5" id="Address" name="Address" size="50" type="text" value="" /> <span class="field-validation-valid" id="Address_validationMessage"></span> <div id="locatemap"> <a href="javascript:loadLocation();"><img src="../../Content/map_icon.jpg" alt="Locate on map" height="40px" width="40px"/> <p>Locate on Map</p></a> </div> </div> <div class="editor-label"> <label for="Number of Courts">Number of Courts</label> </div> <div class="editor-field"> <input class="padding5" id="City" name="Courts" size="50" type="text" value="" /> <span class="field-validation-valid" id="Courts_validationMessage"></span> </div> <div class="editor-label"> <label for="CourtSurface">CourtSurface</label> </div> <div class="editor-field"> <select name="Surface"> <option value="1">Wooden</option> <option value="2">Syntetic</option> <option value="3">Cement</option> <option value="4">Cement with Mat</option> <option value="5">Others</option> </select> <label id="lblSurface">Please Specify</label> <input display="none" id="Others" name="Others" type="text" value="" /> </div> <div class="editor-label"> <label for="Website">Website</label> </div> <div class="editor-field"> <input class="padding5" id="Website" name="Website" size="50" type="text" value="" /> <span class="field-validation-valid" id="Website_validationMessage"></span> </div> <div class="editor-label"> <label for="Email">Email</label><label for="(">(</label><a href="javascript:showHelp();"> Why?</a><label for=")">)</label> </div> <div class="editor-field"> <input class="padding5" id="Email" name="Email" size="50" type="text" value="" /> <span class="field-validation-valid" id="Email_validationMessage"></span> </div> <input id="Owner" name="Owner" type="checkbox" value="true" /><input name="Owner" type="hidden" value="false" />I am the owner of the club. <!--All optional would go in this collapsable UI--> <div id="optional"> <h3><a href="#">Add more details</a></h3> <div id="optionalfields"> <div class="editor-label"> <label for="PhoneNumber">PhoneNumber</label> </div> <div class="editor-field"> <input class="padding5" id="PhoneNumber" name="PhoneNumber" size="50" type="text" value="" /> <span class="field-validation-valid" id="PhoneNumber_validationMessage"></span> </div> <div class="editor-label"> <label for="Fees">Fees</label> </div> <div class="editor-field"> <input class="padding5" id="Fees" name="Fees" size="50" type="text" value="" /> <span class="field-validation-valid" id="Fees_validationMessage"></span> </div> <div class="editor-label"> <label for="Timings">Timings</label> </div> <div class="editor-field"> <input class="padding5" id="Timings" name="Timings" size="50" type="text" value="" /> <span class="field-validation-valid" id="Timings_validationMessage"></span> </div> <div class="editor-label"> <label for="Description">Description</label> </div> <div class="editor-field"> <textarea cols="40" id="Description" name="Description" rows="5"> </textarea> <span class="field-validation-valid" id="Description_validationMessage"></span> </div> </div> </div> <!--End of optional collapsable fields--> <div id="captcha"> <div class="editor-label padding5 detailshead"> <label>Security Check:</label> <label>Type both words seperated by space below</label> </div> <script type="text/javascript"> var RecaptchaOptions = { theme : 'red', tabindex : 0 }; </script><script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6LfDnr8SAAAAAAj6KZ0E99d_-vtwgUiOxByyzV1x"> </script><noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=6LfDnr8SAAAAAAj6KZ0E99d_-vtwgUiOxByyzV1x" width="500" height="300" frameborder="0"> </iframe><br /><textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea><input name="recaptcha_response_field" value="manual_challenge" type="hidden" /> </noscript> <div id="captchaerror" class="error">Sorry! Those aren't the correct words. Please verify again.</div> </div> <p> <input type="button" id="preview" value="Preview it on Map"/> <input type="button" id="create" value="Submit" onclick="javascript:validateCaptcha('form0');"/> <input type="button" value="Clear" onclick="this.form.reset()" /> </p> </form><script type="text/javascript"> //<![CDATA[ if (!window.mvcClientValidationMetadata) { window.mvcClientValidationMetadata = []; } window.mvcClientValidationMetadata.push({"Fields":[{"FieldName":"ClubName","ReplaceValidationMessageContents":true,"ValidationMessageId":"ClubName_validationMessage","ValidationRules":[]},{"FieldName":"City.State.Country.CountryName","ReplaceValidationMessageContents":true,"ValidationMessageId":"City_State_Country_CountryName_validationMessage","ValidationRules":[]},{"FieldName":"City.State.StateName","ReplaceValidationMessageContents":true,"ValidationMessageId":"City_State_StateName_validationMessage","ValidationRules":[]},{"FieldName":"City.CityName","ReplaceValidationMessageContents":true,"ValidationMessageId":"City_CityName_validationMessage","ValidationRules":[]},{"FieldName":"Address","ReplaceValidationMessageContents":true,"ValidationMessageId":"Address_validationMessage","ValidationRules":[]},{"FieldName":"Courts","ReplaceValidationMessageContents":true,"ValidationMessageId":"Courts_validationMessage","ValidationRules":[{"ErrorMessage":"The field Courts must be a number.","ValidationParameters":{},"ValidationType":"number"}]},{"FieldName":"Website","ReplaceValidationMessageContents":true,"ValidationMessageId":"Website_validationMessage","ValidationRules":[]},{"FieldName":"Email","ReplaceValidationMessageContents":true,"ValidationMessageId":"Email_validationMessage","ValidationRules":[]},{"FieldName":"PhoneNumber","ReplaceValidationMessageContents":true,"ValidationMessageId":"PhoneNumber_validationMessage","ValidationRules":[]},{"FieldName":"Fees","ReplaceValidationMessageContents":true,"ValidationMessageId":"Fees_validationMessage","ValidationRules":[]},{"FieldName":"Timings","ReplaceValidationMessageContents":true,"ValidationMessageId":"Timings_validationMessage","ValidationRules":[]},{"FieldName":"Description","ReplaceValidationMessageContents":true,"ValidationMessageId":"Description_validationMessage","ValidationRules":[]}],"FormId":"form0","ReplaceValidationSummary":false}); //]]> </script> </div> <div class="mapoptions"> <p><b>Move marker(<img alt="marker" src="http://www.google.com/mapfiles/marker.png" height="15" width="15" />)on the map to change the location.Click Add once done.</b></p> <div id="mapDiv" style="height:350px"> </div> </div> </div> </div> <div id="footer"> <!-- Custom for Project --> <script src="../../Scripts/Map.js" type="text/javascript"></script> <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> <script type="text/javascript" src="../../Scripts/Captcha.js"></script> <script src="../../Scripts/Main.js" type="text/javascript"></script> <!-- Custom for Project --> </div> </div> </div> </body> </html> ```
Weird rendering issue
CC BY-SA 2.5
null
2011-01-26T17:34:14.623
2011-01-28T04:47:03.163
2011-01-28T04:47:03.163
540,158
540,158
[ "html", "asp.net-mvc-2" ]
4,807,981
1
4,817,271
null
0
506
All my googling returned only information related to how to add additional right click features. I swear somewhere I saw screenshots of MSS2010 being used where right clicking provided the menu to do various operations, versus having to use the ribbon, or worse that awful menu pictured here. ![enter image description here](https://i.stack.imgur.com/opZ1X.jpg) I was expecting this to all be drag drop... :( I'm really disappointed with the lack of ajaxy-ness built into mss2010. I can't believe every save/apply reloads the whole page.
Does Sharepoint 2010 out of the box have rich right click context menus
CC BY-SA 2.5
null
2011-01-26T17:48:13.290
2013-05-07T02:25:02.723
null
null
564,083
[ "sharepoint-2010" ]