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
5,569,441
1
null
null
1
102
I'am looking at a performance problem that showed up between two release (this is a windows app). What I observe is that the version that is slower is doing more I/O than the previous one ( I have observed this with process explorer (see graph below)) when the other one do none or very few, and the I/O are correlated with less cpu activity. So I am guessing that the performance loss come from the I/O. But as the code is quite big, and shared by different team, it's not easy to spot what as changed. Moreover the gap between the two version is also important. From what I'am concerned this two versions should still to the same kind of job... so knowing that this app is doing file + DB access, does anybody knows a way (or a tool) to spot which portion of code may be involved into a significant I/O activity ? I have try some profiler (ltprof) but without much luck so far. I have try to do some statistic debugging (pausing every few second) to see what the callstack is), but as the I/O seems to take a minor % of the process (say less < 15%), again I don't have find anything relevant so far. Any idea greatly appreciated. ![enter image description here](https://i.stack.imgur.com/6bFH8.png)
how to locate code that is doing I/O
CC BY-SA 2.5
0
2011-04-06T15:59:36.623
2011-04-06T23:35:13.253
null
null
51,386
[ "c++", "windows", "performance", "debugging" ]
5,569,657
1
5,569,658
null
0
218
I develop in .NET an application that draws some lines. In the middle of a line I need to draw the line direction array. Have: `(xA, yA, xB, yB)` or `(pA, pB)` - segment `AB` points `arrWidth, arrHeight` - arrow dimensions; `> B` - arrow direction. Need: 3 new points `pArr1, pArr2, pArr3` - points of the directional arrow, that should be situated in the middle of the segment `AB`. ![enter image description here](https://i.stack.imgur.com/6oHBQ.gif)
Identify triangle points around a point
CC BY-SA 2.5
null
2011-04-06T14:54:19.937
2011-04-07T16:00:40.400
2011-04-06T16:55:14.303
18,192
185,593
[ "c#", "geometry" ]
5,569,695
1
5,604,787
null
11
14,336
In iOS we have a feature to update the app icon with the new pending messages for the user by showing a small number on the right-top corner of the icon and similarly I would like to know if we have method to update a ImageView/ImageButton in android(Here I am not looking to update the icon on the home screen but inside my app). For example, the pic shows the red background icon with the number of messages pending to be read in red and if there are no messages it shows with a gray background. ![enter image description here](https://i.stack.imgur.com/5xdNP.jpg) Thanks,
Android: Is it possible to update a ImageView/ImageButton with a number to show the number of new messages?
CC BY-SA 2.5
0
2011-04-06T16:17:32.467
2014-01-16T09:02:02.197
null
null
402,637
[ "android", "android-imageview", "android-notifications" ]
5,569,816
1
5,569,917
null
2
158
Ok, so this is what i'm stuck with. ![View schema](https://i.stack.imgur.com/AEIjH.png) [Full size](https://i.stack.imgur.com/AEIjH.png) ``` SELECT dbo.InstellingGegevens.INST_SUBTYPE, dbo.InstellingGegevens.INST_BRON, dbo.InstellingGegevens.INST_INSTELLINGSNUMMER, dbo.InstellingGegevens.INST_NAAM, dbo.InstellingGegevens.INST_KORTENAAM, dbo.InstellingGegevens.INST_VESTIGINGSNAAM, dbo.InstellingGegevens.INST_ROEPNAAM, dbo.InstellingGegevens.INST_STATUUT, dbo.InstellingGegevens.ONDERWIJSNIVEAU_REF, dbo.InstellingGegevens.ONDERWIJSSOORT_REF, dbo.InstellingGegevens.DATUM_TOT, dbo.InstellingGegevens.DATUM_VAN, dbo.InstellingGegevens.VERBOND_REF, dbo.InstellingGegevens.VSKO_LID, dbo.InstellingGegevens.NET_REF, dbo.Instellingen.Inst_ID, dbo.Instellingen.INST_TYPE, dbo.Instellingen.INST_REF, dbo.Instellingen.INST_LOC_REF, dbo.Instellingen.INST_LOCNR, dbo.Instellingen.Opt_KalStandaard, dbo.InstellingTelecom.INST_TEL, dbo.InstellingTelecom.INST_FAX, dbo.InstellingTelecom.INST_EMAIL, dbo.InstellingTelecom.INST_WEB, dbo.InstellingAdressen.SOORT, dbo.InstellingAdressen.STRAAT, dbo.InstellingAdressen.POSTCODE, dbo.InstellingAdressen.GEMEENTE, dbo.InstellingAdressen.GEM_REF, dbo.InstellingAdressen.FUSIEGEM_REF, dbo.InstellingAdressen.FUSIEGEM, dbo.InstellingAdressen.ALFA_G, dbo.InstellingAdressen.PROVINCIE, dbo.InstellingAdressen.BISDOM, dbo.InstellingAdressen.ARRONDISSEMENT, dbo.InstellingAdressen.GEWEST, dbo.InstellingLogin.Inst_Gebruikersnaam, dbo.InstellingLogin.Inst_Concode, dbo.InstellingLogin.Inst_DirCode, dbo.InstellingLogin.DOSSNR, dbo.InstellingLogin.Instelling_ID, dbo.InstellingContPersDirecteurs.AANSPREKING, dbo.InstellingContPersDirecteurs.CONTACTPERSOON, dbo.InstellingContPersDirecteurs.FUNCTIE FROM dbo.InstellingGegevens RIGHT OUTER JOIN dbo.Instellingen ON dbo.InstellingGegevens.INST_TYPE = dbo.Instellingen.INST_TYPE AND dbo.InstellingGegevens.INST_REF = dbo.Instellingen.INST_REF AND dbo.InstellingGegevens.INST_LOC_REF = dbo.Instellingen.INST_LOC_REF AND dbo.InstellingGegevens.INST_LOCNR = dbo.Instellingen.INST_LOCNR LEFT OUTER JOIN dbo.InstellingTelecom ON dbo.InstellingGegevens.INST_TYPE = dbo.InstellingTelecom.INST_TYPE AND dbo.InstellingGegevens.INST_REF = dbo.InstellingTelecom.INST_REF AND dbo.InstellingGegevens.INST_LOC_REF = dbo.InstellingTelecom.INST_LOC_REF LEFT OUTER JOIN dbo.InstellingAdressen ON dbo.InstellingGegevens.INST_TYPE = dbo.InstellingAdressen.INST_TYPE AND dbo.InstellingGegevens.INST_REF = dbo.InstellingAdressen.INST_REF AND dbo.InstellingGegevens.INST_LOC_REF = dbo.InstellingAdressen.INST_LOC_REF LEFT OUTER JOIN dbo.InstellingLogin ON dbo.InstellingLogin.Inst_InstellingIKONType = dbo.Instellingen.INST_TYPE AND dbo.InstellingLogin.Inst_InstellingIKON_REF = dbo.Instellingen.INST_REF AND dbo.InstellingLogin.Inst_Loc_REF = dbo.Instellingen.INST_LOC_REF AND dbo.InstellingLogin.Inst_Loc_Nr = dbo.Instellingen.INST_LOCNR LEFT OUTER JOIN dbo.InstellingContPersDirecteurs ON dbo.InstellingGegevens.INST_TYPE = dbo.InstellingContPersDirecteurs.INST_TYPE AND dbo.InstellingGegevens.INST_REF = dbo.InstellingContPersDirecteurs.INST_REF AND dbo.InstellingGegevens.INST_LOC_REF = dbo.InstellingContPersDirecteurs.INST_LOC_REF WHERE (NOT (dbo.InstellingLogin.Inst_InstellingIKON_REF IS NULL)) ``` So here is the problem: the 'should be' PK is a 1 varchar 3 int's key. for every key there is supposed to be 1 row in each of the tables which you can see in the image. the 'parent' of those keys is the table `Instellingen`. This table is generated with a `distinct select` of `InstellingenLogin` the real problem is that there are about 10 doubles in `InstellingenLogin` (of about 5k records) and because of this, some rows return double in the view, with only the columns of `InstellingLogin` different. what i want is that if there are 2 or more rows in `InstellingLogin` with the same key, that only 1 will show (the first one,... doenst matter which one, just 1 will do). in short that means that for every record in `Instellingen` i want 1 record in this view. is there any way to do that?
View of multiple tables. Need to remove "doubles" defined by 1 table
CC BY-SA 2.5
null
2011-04-06T16:27:59.043
2011-04-06T17:12:18.130
null
null
275,990
[ "sql", "sql-server", "sql-server-2008", "distinct" ]
5,570,004
1
5,570,595
null
9
40,263
I am writing a program to automatically switch my proxy address based on the network I am connected to. I have so far got everything to work except the part that I have highlighted below. ![LAN Settings Dialog](https://imgur.com/FZFS8.png) Is there any way to change the automatic configuration script and the automatically detect settings in code? The solution can be either P/Invoke registry editing. I just need something that works.
How to change LAN Settings (proxy configuration) programmatically
CC BY-SA 3.0
0
2011-04-06T16:47:06.547
2016-07-06T14:36:32.290
2011-07-23T13:44:41.813
117,870
117,870
[ "c#", ".net", "windows", "vb.net", "networking" ]
5,570,232
1
5,736,395
null
1
3,470
I'm looking to create a multi-select dropdown listbox in GWT, but I'm not sure how to go about doing so. I'd like it to be similar to this: ![Multi-select Dropdown Listbox](https://i.stack.imgur.com/12jLE.png) Any suggestions? Should I take gwt ListBox code and adapt it to accept objects? Or should I forget their Listbox and try to make my own from scratch? Or should I go in a different direction completely? I'd really prefer not to include external libraries (like SmartGWT) if possible - I'm trying to stick with straight-up GWT. Please advise. Thanks!
GWT Multiselect Dropdown Listbox
CC BY-SA 2.5
0
2011-04-06T17:06:15.163
2011-05-21T06:10:01.220
2011-04-06T17:13:54.667
273,905
273,905
[ "gwt", "listbox", "drop-down-menu", "multi-select" ]
5,570,301
1
5,570,584
null
1
420
I have created Form and Grid Panel in Extjs now i want to display a form over a grid when i click on a "Add Record" button example ![enter image description here](https://i.stack.imgur.com/FZq4w.png)
render form over grid
CC BY-SA 2.5
null
2011-04-06T17:11:30.377
2011-04-06T17:34:46.250
null
null
405,383
[ "javascript", "extjs" ]
5,570,524
1
5,570,665
null
1
1,716
I have a dialog that setContentView on a layout. I have an editText and Button in the layout set width to match parent but that makes it only as wide as the setTitle. As I enter info into the editText, the dialog expands with each character. Is it possible to make the dialog look like below without setting a dp size for the width of the items? Some system standard? ![](https://i.stack.imgur.com/4CXmI.png)
Resize dialog to take up more screen
CC BY-SA 2.5
null
2011-04-06T17:30:56.040
2011-04-06T17:42:05.927
null
null
599,116
[ "android" ]
5,570,518
1
5,571,541
null
3
3,881
I'm a little confused by the following documentation for the [EditorGrid](http://dev.sencha.com/deploy/dev/docs/?class=Ext.grid.EditorGridPanel): > Editing is performed on the value of the field specified by the column's dataIndex in the backing Store (so if you are using a renderer in order to display transformed data, this must be accounted for). I'm not really sure how to "account for" my renderer in the following situation: ``` ... columns : [{ header : 'Foo', width : 100, dataIndex: 'foo', renderer: function(value, p, record) {return value? value.bar: ""}, editor : new Ext.form.TextField({ allowBlank : false }) }] ... ``` As you can see, this renderer is a really simple one, but this is clearly not going to work with a TextField. I understand why it will just display my foo object and not the bar property when the user edits. So how does one get around this? Should I be overwriting the `Ext.form.TextField` with a new `setValue` and `getValue`? I thought about using the events `beforeedit` and `afteredit`, but that seems like overkill. I feel like I'm missing something very simple here. In case I'm not being clear, here's a few screens of the result I'm getting: ![yay renderer](https://i.stack.imgur.com/Wp271.jpg) ![booo textfield](https://i.stack.imgur.com/GVUpW.jpg)
ExtJS EditorGridPanel and the column renderer
CC BY-SA 2.5
0
2011-04-06T17:30:25.497
2011-04-06T18:59:30.673
2011-04-06T17:49:55.867
205,543
205,543
[ "javascript", "extjs", "editor", "grid" ]
5,570,724
1
5,575,963
null
0
799
I need you to recommend me a JSF component that can help in the following scenario(I will first paste an image that will help me explain): ![enter image description here](https://i.stack.imgur.com/k9McE.png) This page that you see in the image is a registration page, each of the panels have different fields and gadgets, when the register button is clicked, a new user is saved into the database. The problem i have is in the show buttons. The buttons on top of each panel when clicked should display one panel and hide the other, but they must not trigger the field validation. I use field validation by the attribute "validator"(in combination with a backing bean method) that most of JSF input fields have. Currently everything that you see there is inside one h:form. -what should i do to display a panel and hide the other without triggering the validation of the panel that is hiding? -Is there another alternative to the h:commandLink or h:commandButton(they trigger the validation)? -Putting each panel in a different h:form can do the trick?(Is that permited?) -What do you think would be the best approach?
I need a button that performs an action but doesn't trigger validation or refreshes the page(JSF 2.0)
CC BY-SA 2.5
0
2011-04-06T17:46:54.903
2011-04-10T21:53:45.513
null
null
614,141
[ "java", "jsf", "jakarta-ee", "jsf-2", "java-ee-6" ]
5,571,002
1
5,571,740
null
8
5,170
For the question ["Ellipse around the data in MATLAB"](https://stackoverflow.com/questions/3417028/ellipse-around-the-data-in-matlab), in the [answer given by Amro](https://stackoverflow.com/questions/3417028/ellipse-around-the-data-in-matlab/3419973#3419973), he says the following: > "If you want the ellipse to represent a specific level of standard deviation, the correct way of doing is by scaling the covariance matrix" and the code to scale it was given as ``` STD = 2; %# 2 standard deviations conf = 2*normcdf(STD)-1; %# covers around 95% of population scale = chi2inv(conf,2); %# inverse chi-squared with dof=#dimensions Cov = cov(X0) * scale; [V D] = eig(Cov); ``` I don't understand the first 3 lines of the above code snippet. How is the scale calculated by `chi2inv(conf,2)`, and what is the rationale behind multiplying it with the covariace matrix? I also found that if I scale it with 1.5 STD, i.e. 86% tiles, the ellipse can cover all of the points, my points set are clumping together, at almost all the cases. On the other hand, if I scale it with 3 STD, i.e. 99%tiles, the ellipse is far too big. Then how can I choose a STD to just tightly cover the clumping points? Here is an example: The inner ellipse corresponds to 1.5 STD and outer to 2.5 STD. why 1.5 STD is tightly cover the clumping white points? Is there any approach or reason to define it? ![enter image description here](https://i.stack.imgur.com/LnEv4.jpg)
Scaling of covariance matrices
CC BY-SA 3.0
0
2011-04-06T18:10:41.943
2011-04-08T00:07:19.303
2017-05-23T10:32:35.693
-1
695,402
[ "math", "matlab", "ellipse" ]
5,571,072
1
5,573,673
null
9
9,681
Firstly I want mention that I have already read all articles on SO on subject, but still have no answer for my question. Also my question slightly different than others. Today a I have a look on Skype window. There is one extra button on it's title bar. But this button acts as native system button. Just look on glowing, . So I have the reasonable question. According to that we can see on the picture below, there is standard way to add extra button on title bar. But all answers on subj leads to hooking of `WM_NCPAINT` event and manual drawing of extra button. This approach is work but it could not yield such beautifull glowing as on the picture. Does anybody knows the way to add standartized button on window's title bar? Thanks in advance! ![enter image description here](https://i.stack.imgur.com/kWh5e.png)
How to add an extra button to the window title bar, so it will be work as standard?
CC BY-SA 2.5
0
2011-04-06T18:16:49.773
2011-04-14T00:45:23.883
null
null
592,835
[ "c#", "c++", "windows", "winapi", "user-interface" ]
5,571,309
1
5,571,721
null
0
562
hey I have two tables and Im looking to make a mysql sytax statement for insert: Table structure: ![enter image description here](https://i.stack.imgur.com/vn6T1.jpg) Im trying to insert userid and picturepath (which i can do) but how would I insert into flag in the user table aswell in the same insert syntax: ``` ("INSERT INTO Pictures (UserID, picturepath) VALUES (" + theUserId + ", '" + fileuploadpaths + "')", cn); ``` theuserid is set by a session so I can reuse the string for that to know which coloum to insert into the user.
join for insert statement mysql syntax
CC BY-SA 2.5
0
2011-04-06T18:35:13.117
2011-04-06T19:21:33.840
2011-04-06T18:42:04.237
477,228
477,228
[ "c#", "asp.net", "mysql", "sql", "html" ]
5,571,358
1
5,571,424
null
1
50
Not a pro at computer graphics. Is this pattern characteristic of a specific type of graphics bug? Or does it not give very much information at all? ![What's the Bug?](https://i.stack.imgur.com/oRo5Y.jpg)
Is this pattern characteristic of a specific type of graphics bug? - Screenshot
CC BY-SA 2.5
null
2011-04-06T18:41:49.043
2011-04-06T18:49:08.713
null
null
409,020
[ "debugging", "graphics" ]
5,571,350
1
5,571,441
null
0
805
Wonder if anyone can help me with this ive set a flag option within my user table wondering how to tie that up in an if statement before redirect? ``` protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { //database connection string OdbcConnection cn = new OdbcConnection("Driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=gymwebsite2; User=root; Password=commando; OPTION=3;"); cn.Open(); OdbcCommand cmd = new OdbcCommand("Select * from User where username=? and password=?", cn); //Select the username and password from mysql database in login table cmd.Parameters.Add("@username", OdbcType.VarChar); cmd.Parameters["@username"].Value = this.Login1.UserName; cmd.Parameters.Add("@password", OdbcType.VarChar); cmd.Parameters["@password"].Value = this.Login1.Password; //use asp login control to check username and password OdbcDataReader dr = default(OdbcDataReader); dr = cmd.ExecuteReader(); if (dr.Read()) { string theUserId = Convert.ToString(dr["UserID"]); Session.Add("UserID", theUserId); e.Authenticated = true; string flagoption = Convert.ToString(dr["flag"]); if (flagoption = 0) //error } //add some kind of if statement Response.Redirect("Uploadpicture.aspx"); { else { //if flag is set to 0 redirect to upload picture page: Response.Redirect("UserProfileWall.aspx"); // if flag is set to 1 redirect to to users profilewall: // Event Authenticate is true forward to user profile } } } } } ``` ![enter image description here](https://i.stack.imgur.com/zPB48.jpg)
get flag from database and set within authentication
CC BY-SA 2.5
null
2011-04-06T18:40:39.637
2011-04-06T19:26:47.280
2011-04-06T19:26:47.280
290,822
477,228
[ "c#", "asp.net", "mysql", "sql", "html" ]
5,571,414
1
5,571,520
null
5
12,437
![enter image description here](https://i.stack.imgur.com/GXtQG.png) Check the image I produced, but what I want to do is producing those rectangles with borders, and set the background colour to another. How can I do that? ``` glRectf(top_left_x, top_left_y, bottom_right_x, bottom_right_y)? if loop==0: ratio = 0.10 glBegin(GL_QUADS) while ratio <= 1.0: width = window_width/2 height = window_height long_length = width * ratio short_length = height* (1.0 - ratio) top_left_x = (width - long_length) / 2.0 top_left_y = (height - window_height * (1.0-ratio)) /2 bottom_right_x = top_left_x + long_length bottom_right_y = top_left_y + short_length glColor(1.0,1.0,1.0,0.5) glVertex3f(top_left_x, top_left_y, 0.0) glVertex3f(top_left_x + long_length, top_left_y, 0.0) glVertex3f(bottom_right_x,bottom_right_y, 0.0) glVertex3f(bottom_right_x-long_length,bottom_right_y, 0.0) ratio += 0.05 glEnd() ```
Open GL: draw rectangles with borders?
CC BY-SA 3.0
0
2011-04-06T18:47:42.777
2016-01-12T15:23:24.703
2016-01-12T15:23:24.703
4,798,397
469,652
[ "opengl" ]
5,571,733
1
5,572,543
null
0
547
I can't figure this one out. Why is this breaking down? My alert statements show me clearly that the elements are all coming in but if i replace them with the inner html line it stops after the first iteration. ``` while(i<6) { document.getElementById("cell-"+i).innerHTML = out[i] ; i++ ; } ``` below variation shows me that all elements come in and the cell names are correctly constructed: ``` while(i<6) { alert("cell-"+i) alert(out[i]) i++ ; } ``` ok judging from your feedback it's not a syntax or loop construction issue which i hoped could be easily fixed. Here's more background: I'm using this to populate a table with parsed data from an Ajax call. The data format is JSON. It's a little search engine for photos. IF my first search is for keywords that can be found the table is populated. If HOWEVER i first search for some gibberish (e.g.: dfadfasfad), no results are retrieved (so far so good). If i THEN search for a word that would retrieve results, the whole thing breaks down. So IT IS a Ajax problem after all? Sorry, the code is way too long to post here i think. If my problem rings a bell let me know. Else no worries. from Firebug: ``` document.getElementById( display(out=["Colorful Drinks by the ...a0c1a.jpg"><br /><br />", "Peru-100526-473<br /><i...f7908.jpg"><br /><br />", "AR6E0549<br /><img src=...8bfea.jpg"><br /><br />", 3 more...])AjaxUpdater.js (line 128) onResponse()AjaxUpdater.js (line 65) [Break On This Error] document.getElementById("cell-"+i).innerHTML = out[i] ; ``` ok i'm getting closer. it seems that the innerHTML assignments modify the page structure BEFORE ![enter image description here](https://i.stack.imgur.com/x8cc9.jpg) AFTER ![enter image description here](https://i.stack.imgur.com/0U2Ir.jpg)
javascript while loop and inner html
CC BY-SA 2.5
null
2011-04-06T19:15:00.453
2011-04-06T21:36:12.607
2011-04-06T21:36:12.607
null
null
[ "javascript", "ajax" ]
5,571,792
1
5,571,858
null
0
69
I have these check boxes that are created with a javascript function: ![enter image description here](https://i.stack.imgur.com/WX5Qe.png) I would like the text to appear to the right of the checkbox and all of the text to be on one line. Here is the javascript function and the html: ``` function receiveAnswer(response) { // var aSeats = document.getElementById("aSeats"); // aSeats.options.length = 0;// clear it out // // for (var i = 0; i < response.aSeats.length; i++) { // add the items back in // var option = aSeats.appendChild(document.createElement("option")); // option.value = i; // option.appendChild(document.createTextNode(response.aSeats[i])); // } var aSeats = document.getElementById("aSeats"); while (aSeats.childNodes.length > 0) { // clear it out aSeats.removeChild(aSeats.childNodes[0]); } for (var i = 0; i < response.aSeats.length; i++) { // add the items back in var input = aSeats.appendChild(document.createElement("input")); input.value = i; input.type = "checkbox"; var br = aSeats.appendChild(document.createElement("br")); input.appendChild(document.createTextNode(response.aSeats[i])); var br = aSeats.appendChild(document.createElement("br")); var br = aSeats.appendChild(document.createElement("br")); var br = aSeats.appendChild(document.createElement("br")); var br = aSeats.appendChild(document.createElement("br")); var br = aSeats.appendChild(document.createElement("br")); } } ``` html code: ``` <div name="aSeats" id="aSeats"> <input type="checkbox"> </div> ```
How to space my checkboxes and the text associated with them
CC BY-SA 2.5
null
2011-04-06T19:20:17.373
2011-04-06T19:27:34.127
null
null
474,980
[ "javascript", "html" ]
5,571,811
1
5,580,364
null
2
1,096
In SQL server 2008, I have below table. ![enter image description here](https://i.stack.imgur.com/jL6zW.png) I do not how to use Pivot without giving for value in ([val1],[val2],[val2],..) Any hep in this regard will be greatly appreciated. Thanks. ``` create table [VJ1].[dbo].[pivot] (class varchar(25) null, name varchar(25) null) insert into [VJ1].[dbo].[pivot] (class,name) values ('class1','Peter'), ('class1','John'), ('class1','Marry'), ('class1','Ana'), ('class1','Julie'), ('class1','Lydia'), ('class2','Ryan'), ('class2','Aaron'), ('class2','Jacques'), ('class2','Jaanu'), ('class3','Nita'), ('class3','Nina'), ('class3','Lili'), ('class3','Rose'), ('class3','Jack'), ('class3','Tom') ```
SQL Server 2008 Pivot without knowing for values
CC BY-SA 2.5
null
2011-04-06T19:21:27.650
2011-04-07T11:33:30.937
2011-04-07T04:48:47.890
13,302
219,628
[ "sql-server", "sql-server-2008", "pivot" ]
5,572,140
1
5,572,287
null
0
604
I want to make a panel in Interface Builder with buttons and stuff on it. Then I want to programmatically clone it and reposition the clones with affine transforms. I'm thinking of something like a MovieClip from Flash. ![enter image description here](https://i.stack.imgur.com/48jZv.png) And it isn't sufficient to just render the same UI element multiple times. For example, it should be possible to type something different in each text box. Any ideas?
iPad: how can I create a repeatable UI element using Interface Builder?
CC BY-SA 2.5
null
2011-04-06T19:48:46.013
2011-04-06T20:03:14.760
null
null
354,144
[ "ipad", "ios4", "interface-builder" ]
5,572,201
1
5,573,906
null
1
1,216
I have a full screen gallery with `setOnItemClickListener` and `setOnItemSelectedListener`. Over that gallery I have a linear Layout with 3 ImageViews. I have allready mde the imageviews clickable, but when I click on them, the `gallery.setOnItemClickListener` is what is activated. How can I get he ImageViews clickable?? Tha layout complete layot is verry complex so I'm putting an image of the relevant part. ![LayoutDescription](https://i.stack.imgur.com/5n8BC.png) In the code I have: ``` ImageView prev = (ImageView) findViewById(R.id.previousImage); ImageView play = (ImageView) findViewById(R.id.playAllImages); ImageView next = (ImageView) findViewById(R.id.nextImage); prev.setClickable(true); prev.setOnClickListener(new OnClickListener() { public void onClick(View v) { YADA YADA YADA ... } }); next.setClickable(true); next.setOnClickListener(new OnClickListener() { public void onClick(View v) { YADA YADA YADA ... } }); play.setClickable(true); play.setOnClickListener(new OnClickListener() { public void onClick(View v) { YADA YADA YADA ... } }); ``` I also have the listeners of the gallery: ``` _horizGallery.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View v, int position, long id) { YADA YADA YADA... } }); _horizGallery.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View view, int position, long id) { YADA YADA YADA... } public void onNothingSelected(AdapterView parent) { YADA YADA YADA... } }); ``` The xml is something like this (I took out some non relevant parts to make it smaller for practical use): ``` <?xml version="1.0" encoding="utf-8"?> ``` ``` <LinearLayout android:orientation="horizontal" android:layout_height="wrap_content" android:layout_width="match_parent" android:background="#11000000" android:layout_alignParentBottom="true" android:weightSum="1.0" android:id="@+id/layoutToScrollDown"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_weight="0.1" android:gravity="center"> <ImageView android:layout_width="30dp" android:layout_height="30dp" android:src="@drawable/icon" android:padding="1px" android:id="@+id/previousImage"> </ImageView> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_weight="0.4" android:gravity="center"> <ImageView android:layout_width="30dp" android:layout_height="30dp" android:src="@drawable/icon" android:padding="1px" android:id="@+id/playAllImages"> </ImageView> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_weight="0.1" android:gravity="center"> <ImageView android:layout_width="30dp" android:layout_height="30dp" android:src="@drawable/icon" android:padding="1px" android:id="@+id/nextImage"> </ImageView> </LinearLayout> </LinearLayout> <com.pixable.android.ModifiedGallery xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/com.pixable.android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/HorizontalGallery" android:gravity="center_vertical" android:spacing="2px"/> ``` It's all inside a relative view that for some reason is not beine shown.
ImageView over gallery not clickable
CC BY-SA 2.5
null
2011-04-06T19:53:40.450
2011-04-06T22:50:37.147
null
null
652,392
[ "android" ]
5,572,607
1
5,582,377
null
13
2,085
I am trying to make the jump from data-centric design and development into DDD and have read Evans and Nillson but am still having trouble wrapping my head around how I should structure my Domain Layer. I'm sure the nature of my current project isn't helping! The application is an internal solution to manage personnel assessments. HR personnel will create assessment "templates" that consist of a set of questions that team leads and managers are to complete for each of their direct reports. The answers are persisted for auditing and review. These assessments can be for a wide variety of things such as feedback for company initiatives, performance reviews, etc. Not to influence the solution but highlighting my data-centric mindset, I already have a vision for the database schema and include it here only for reference (since a picture says a thousand words): ![enter image description here](https://i.stack.imgur.com/fOLfC.png) The schema is, as would be expected, normalized and does not match how the data is handled in my application. And, I've left out lookup tables and the like to try and keep it to a minimum for the problem at hand. The first use case is to retrieve and display a list of assessments that a user needs to completed. This will be displayed when the user first signs into the application and at first it seems like it would be relatively easy, but there are two wrinkles: 1 - assessments are time-based so they may be required monthly, annually or every 'x' number of years based on the employee's Anniversary Date; and, 2 - users can save an assessment in-progress and complete them later. As a result, the list should contain assessments that are due as well as any that are in-progress. Next, when the user selects an assessment to perform, I need to retrieve all of the questions for that assessment (the current version) so that I can display them to the user. At any point during the assessment, the user may save the current results. Only after the entire assessment has been completed may it actually be 'submitted' - or committed. Third, HR needs a way to re-generate the assessment with the responses provided by the supervisor. Finally, HR is able to create and modify assessments - and they are versioned. So whenever someone modifies an assessment, a new version is created and that one becomes the template for any NEW assessments that are performed (any in-progress assessments continue using their original template). Working out of order, it makes sense to me that I will have an Assessment entity that is an Aggregate Root to satisfy the fourth use case. It will have a child collection of Section entities that will, in turn, have a child collection of Question entities. They are all entities because they have identity (yes?). The Assessment is the object that consuming code uses for persistence, validation, etc (although the Section and Question entities validate themselves and roll-up the status to the root Assessment). My goal is to make the versioning abstract from the consumer and implement it in the data persistance layer (good or bad idea?) This means that I will also have an AssessmentRepository that handles persistence for me and, possibly, an AssessmentFactory that creates a new Assessment when needed. The bigger issue comes with the other use cases. Do I have an EmployeeAssessment Aggregate root as well? Or is it simply an entity? Looking at the use cases, I need to use this information a couple of ways. First, when I am generating the list of assessments to display to the user, I have to not only evaluate the list of direct reports against the assessment frequency, but I also need to know if I've already started and/or completed an assessment for that employee. And that comes from the EmployeeAssessments table. The other case is when a user actually performs the assessment in which case, I am interacting with the EmployeeAssessments and Responses tables. From the UI perspective, when a user is performing the assessment, they know nothing of the internal data structure, etc. I need to supply the UI with the list of questions for that assessment to display and accept the list of responses to persist. Does this lead to a second root with accompanying repository, etc? The third use case is similar in that HR wants to be able to re-generate the assessment with responses at a later date. However, I'm thinking the same process used when performing the assessment can be used here because resuming an existing assessment would require the same data with the only difference being read/write capability versus read-only for HR. Okay, I've rambled on enough and think I've cleared my head of the cob webs. I appreciate any direction, suggestions, critiques, etc. As I said, I'm trying to make the jump and think I understand the concepts, now it's a matter of applying them. Thanks!!!
Real-World DDD: Structuring the Domain Layer
CC BY-SA 2.5
0
2011-04-06T20:35:51.523
2011-04-07T14:02:28.667
null
null
173,281
[ "domain-driven-design" ]
5,572,729
1
5,572,862
null
0
77
![enter image description here](https://i.stack.imgur.com/01bxz.png) I'm trying to get the "about 15 hours ago" text to the left, but can't seem to get it done. float left doesn't seem to work, and I can't decrease the margin left because then the "3 minutes ago" text will collide with the image. Here's the html(sorry for the big mess): ``` <div class="comment_column_narrow"> <div id="comment_title_39" class="comment_title"> Do you like this song? <a href="/comment_titles/39" class="comment_title_delete" data-method="delete" data-remote="true" rel="nofollow">x</a> </div> <div class="comment_content"> <a href="/profiles/45" class="comment_image"><img alt="Justin meltzer" src="/system/photos/45/tiny/Justin Meltzer.jpeg?1302075215"></a> <div class="textual_comment_content"> <div class="comment_text"> <span class="name_link"> <a href="/profiles/45" class="normal">Justin Meltzer</a> </span> Ok so this is what I think about this song: You need to switch back to your roots. You started as a rapper, and you need to remain a rapper. I respect you for your initiative to improve your flexibility but please stick to your roots. That's what makes you truly great. </div> <span class="comment_footer"> <ul> <li class="list_style">about 15 hours ago.</li> </ul> <span> </span></span></div></div></div> ``` And here's the corresponding CSS: ``` .comment_column_narrow { float: left; width: 295px; margin-right: 5px; } .comment_content{ clear:both; padding: 10px 5px; border-top:2px solid #E2E2E2; border-right:3px solid #E2E2E2; } .comment_text{ line-height: 120%; } .comment_image{ float:left; margin-right: 10px; } .comment_footer{ } .comment_footer ul{ margin-top: 5px; } .comment_footer ul li{ font-size: 10px; color:gray; float:left; margin-right:25px; } .list_style{ list-style:none; } .name_link{ margin-left:-3px; } ```
Can't get this text over to the left
CC BY-SA 2.5
0
2011-04-06T20:46:55.507
2012-05-23T14:23:25.153
2012-05-23T14:23:25.153
44,390
421,109
[ "html", "css", "positioning", "css-float", "styling" ]
5,572,786
1
5,572,940
null
16
17,010
How to create a rhombus:![rhombus](https://i.stack.imgur.com/sNXTG.jpg) (as shown in red) by transforming a square using css? Only points B and C must move. Original size of square is 25px by 25px. I'm trying to achieve this result and would later rotate it 45 degrees so that it would look like a diamond. I think this can be done using the transform:matrix(); P.S. I want to try as much as possible to not use explorercanvas, since I'm trying to minimize script tags in the html.
CSS Transform square into thinner rhombus
CC BY-SA 2.5
0
2011-04-06T20:51:57.210
2014-05-06T20:56:02.287
null
null
615,106
[ "css", "matrix", "transform" ]
5,572,924
1
5,573,066
null
2
6,981
In FlashBuilder's compiler options (Properties->Flex Compiler), under "Adobe Flash Player options" there is an option for "Use a specific version", where you can tell it what Flash Player to link against: ![enter image description here](https://i.stack.imgur.com/TeueV.png) How do I get this value at runtime? Note that I am not talking about the Flash Player version, but the version that the swf was linked against.
getting swf version info
CC BY-SA 2.5
null
2011-04-06T21:03:37.127
2014-06-03T13:53:37.403
null
null
89,218
[ "apache-flex", "flash" ]
5,572,954
1
5,573,299
null
2
3,609
I added a new model version, and I set the core data model to use that new version, but I get this error when the application tries to start. "The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store." ![enter image description here](https://i.stack.imgur.com/w2umq.png) I'm guessing the problem is that the current persistent store is the old version of the model. Is there a way to just delete it so it makes a new one? I don't care about saving any of that data.
Error after adding a new core data model version
CC BY-SA 2.5
null
2011-04-06T21:06:49.137
2011-09-08T14:07:10.790
null
null
20,134
[ "objective-c", "macos", "core-data" ]
5,572,958
1
5,573,106
null
1
62
Why does Eclipse try to always add my java files to the Proj/src directory instead of the one I'm trying to add it to? I mean, I get what it is trying to do, but I'd like to know how to override that behaviour. ## Edit Here is what I'm trying to do: ![enter image description here](https://i.stack.imgur.com/xXVjb.png) I have `trunk/src/acdc/ast` selected and I wish to add a java file to that folder. Yet when I try to add it, it adds it to `TTT`. (it added it first to `TTT/src` but since I've removed it from the build path it started adding it straight into `TTT`). ![enter image description here](https://i.stack.imgur.com/5A5hD.png) Thanks
Why does Eclipse try to always add my java files to the Proj/src directory instead of the one I'm trying to add it to?
CC BY-SA 2.5
0
2011-04-06T21:06:57.560
2011-04-06T21:45:43.927
2011-04-06T21:37:53.650
130,758
130,758
[ "java", "eclipse" ]
5,573,169
1
5,579,343
null
0
4,489
My admin folks have encountered a big problem, and I'm relaying their plight to SO: We have a legacy database application (written in Progress 4GL/OpenEdge) that invokes in order to generate a report. The path to the WordPerfect executable is hard-coded within the database app, as well as the location of scanned PDFs that are to be inserted into the database, . Most of our workstations have been successfully migrated from to , and the legacy application works fine UNTIL it tries to invoke WordPerfect, saying it can't find the executable (even with X3 installed in the exact same path used on WinXP) ... same with the scanned document folder. Any suggestions? --- I spent this morning helping my admin folks with the various suggestions you all provided ... we checked file permissions, looked at the compiled (.r) files with a Hex Editor (thanks @Tom and @Ernest), and did a inside all source code (.p) with Notepad++. the program is NOT invoking WordPerfect directly (), but instead is using DDE. Here's the error message that Progress 4GL produces: ![DDE INITIATE Failed. (3153)](https://i.stack.imgur.com/TPJN5.png) I am aware that there are issues with DDE and Win7, so I was wondering if there's a work-around, maybe registry keys that need to be modified or something to that affect. I'm including an excerpt from the source code below, hoping that somebody recognizes what's going on (I'm NOT familiar with Progress 4GL, so it's all greek to me): ``` /* setup DDE communicaiton with WordPerfect 12 */ /* and perform the merge of the various document */ DEFINE VARIABLE sys AS INTEGER NO-UNDO. DEFINE VARIABLE mline AS CHAR FORMAT "x(220)" NO-UNDO. DEFINE VARIABLE intResult AS INTEGER NO-UNDO. DEFINE VARIABLE err-status AS INTEGER. {GLOBVAR.I} DEFINE VAR C-Win AS WIDGET-HANDLE NO-UNDO. DEFINE FRAME FRAME-b WITH 1 DOWN KEEP-TAB-ORDER OVERLAY SIDE-LABELS NO-UNDERLINE THREE-D AT COL 13 ROW 4.1 SIZE 11 BY 2 TITLE "FRAMEWP". IF SESSION:DISPLAY-TYPE = "GUI":U THEN CREATE WINDOW C-Win ASSIGN HIDDEN = YES HEIGHT = 4 WIDTH = 20 MAX-HEIGHT = 4 MAX-WIDTH = 20 VIRTUAL-HEIGHT = 4 VIRTUAL-WIDTH = 20 RESIZE = yes SCROLL-BARS = no STATUS-AREA = no BGCOLOR = ? FGCOLOR = ? KEEP-FRAME-Z-ORDER = yes THREE-D = yes MESSAGE-AREA = no SENSITIVE = YES. IF SESSION:DISPLAY-TYPE = "GUI":U AND VALID-HANDLE(C-Win) THEN C-Win:HIDDEN = NO. VIEW FRAME DEFAULT-FRAME IN WINDOW C-Win. VIEW FRAME FRAME-b IN WINDOW C-Win. C-Win. ENABLE ALL WITH FRAME FRAME-B TITLE "". ASSIGN FRAME FRAME-B:VISIBLE = FALSE. OS-DELETE VALUE(pass-txtout). PAUSE 1 NO-MESSAGE IN WINDOW c-win. OS-DELETE VALUE(pass-mergedoc). pass-shelldoc = '"' + trim(pass-shelldoc) + '"'. pass-shelldoc = TRIM(pass-shelldoc). pass-txtfile = '"' + TRIM(pass-txtfile) + '"'. pass-txtfile = TRIM(pass-txtfile). pass-txtout = '"' + TRIM(pass-txtout) + '"'. pass-txtout = TRIM(pass-txtout). pass-mergedoc = '"' + TRIM(pass-mergedoc) + '"'. pass-mergedoc = TRIM(pass-mergedoc). DDE INITIATE sys FRAME FRAME FRAME-B:HANDLE APPLICATION "wpwin13_macros" TOPIC "COMMANDS". /* create a wp doc from the pass-txtfile just created */ mline = "Application (WordPerfect; " + '"WordPerfect"' + '; Default!; "EN")'. mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "FileNew ()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetFileName (Filename: " + pass-txtfile + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetSource (SourceType: ASCII!)". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetDestination (DestinationType: MergeData!)". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetSizeToFit (State: No!)". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetAsciiFieldDelimiter (FieldDelimiter: " + '"^"' + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetAsciiRecordDelimiter (RecordDelimiter: " + '"%"' + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetAsciiStrip (StripChars: " + '""' + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportSetAsciiEncap (EncapsulationChar: " + '"""' + '""' + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "ImportDoImport ()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "WAIT(10)". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "FileSave (Filename: " + pass-txtout + "; ExportType: WordPerfect_6_7_8!; yes!)". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "Close()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. /* perform the merge using sheldoc, pass-txtout and pass-shelldoc */ mline = "Application (WordPerfect; " + '"WordPerfect"' + '; Default!; "EN")'. mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "MergeRUN(Formfile!;" + pass-shelldoc + ";DataFile!;". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = mline + pass-txtout + ";TOFILE!;" + pass-mergedoc + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "CLOSE()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. IF substring(pass-mergedoc,16,3) = "D12" THEN. ELSE DO: mline = "FileOpen (Filename: " + pass-mergedoc + ")". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "AppMaximize ()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. mline = "APPRESTORE ()". mline = TRIM(mline). DDE EXECUTE sys COMMAND mline. END. DDE TERMINATE sys NO-ERROR. : : ```
Problem running legacy program in Windows 7 using DDE
CC BY-SA 3.0
null
2011-04-06T21:27:47.730
2011-04-08T13:15:15.457
2011-04-08T13:15:15.457
268,078
268,078
[ "windows", "windows-7", "dde", "progress-4gl", "openedge" ]
5,573,431
1
null
null
0
191
Trying to get: The top-20 PIs who have the largest total amount of awards along with the universities they are affliated with. Mysql: `SELECT award, pi, org FROM tbl WHERE groupby(award) LIMIT 20` ![Table](https://i.stack.imgur.com/jrEAD.png) It seems to not like my group by. Whats going wrong here?
Getting Top 20 mysql Query Error
CC BY-SA 2.5
null
2011-04-06T21:53:37.160
2011-04-06T22:35:50.667
null
null
700,070
[ "mysql" ]
5,573,631
1
5,605,622
null
2
1,981
I searched and found how to gain Administrator access level for my program ([This Link](http://delphi.about.com/od/delphitips2009/qt/delphi-vista-registry-run-on-startup.htm), [This Link](http://www.lnssoftware.ca/blog/?p=113), [This Link](http://msdn.microsoft.com/en-us/library/aa905330.aspx) and many other similar links), i did instructions step by step and think with no mistake, i checked every step for several times. After all when i finish the steps and want to compile my program, I receive this error: "unable to create process: the application has failed to start because its side-by-side configuration is incorrect. ..." ![enter image description here](https://i.stack.imgur.com/Ei1Mc.gif) Where is my problem? Thank you. --- Sorry for my delay, This is the manifest code i put beside my app (actually i copied and pasted it and just changed the "app.exe" name): --- ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.1.1.1" processorArchitecture="X86" name="MyApp.exe" type="win32"/> <description>elevate execution level</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </requestedPrivileges> </security> </trustInfo> </assembly> ```
Problem to get Administrator right for program?
CC BY-SA 3.0
null
2011-04-06T22:14:55.463
2022-02-28T13:54:02.470
2011-04-10T08:42:16.163
371,686
371,686
[ "delphi", "delphi-7" ]
5,573,740
1
null
null
-1
2,407
the Image shows how my tables are setup ![enter image description here](https://i.stack.imgur.com/8x4JV.png) I have a working reserve seat and add to booking table now. ``` // // POST: /Home/CreateBooking public ActionResult CreateBooking(String id, DateTime date, DateTime time) { ViewData["username"] = User.Identity.Name; ViewData["performanceDate"] = date; ViewData["Venue"] = id; BookingCreate model = new BookingCreate(); model.Seats = (from c in _db.Seat where c.venue == id select c); return this.View(model); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult CreateBooking(BookingCreate bookingCreate, IList<String> seatNumber) { Customer theCustomer = (from c in _db.Customer select c).First<Customer>(c => c.username == bookingCreate.customer); //performance details for the performance selected by the user Performance thePerformance = (from p in _db.Performance select p).FirstOrDefault<Performance>(p => p.performanceDate == bookingCreate.performanceDate || p.performanceTime == bookingCreate.performanceTime || p.venue == bookingCreate.venue); //performance details for the performance selected by the user Performance seatbooking = (from p in _db.Performance select p).FirstOrDefault<Performance>(p => p.performanceDate == bookingCreate.performanceDate || p.performanceTime == bookingCreate.performanceTime || p.venue == bookingCreate.venue); var now = DateTime.UtcNow; var bookingToCreate = new Booking(); bookingToCreate.bookingDate = now; bookingToCreate.bookingTime = now; bookingToCreate.bookingType = "Web"; bookingToCreate.collect = true; bookingToCreate.Customer = theCustomer; bookingToCreate.Performance = thePerformance; _db.AddToBooking(bookingToCreate); _db.SaveChanges(); var bookingnumber = (from p in _db.Booking select p.bookingNo); foreach (var displaySeat in seatNumber) { Seat theseat = (from c in _db.Seat select c).FirstOrDefault<Seat>(c => c.seatNumber == displaySeat); var seatBooking = new SeatBooking(); seatBooking.Booking = bookingToCreate; seatBooking.Seat = theseat; _db.AddToSeatBooking(seatBooking); _db.SaveChanges(); } return RedirectToAction("ShowsIndex"); } ``` The code ensures that the correct venue's seats are displayed and that the logged in user and selected performance is chosen. What i am stuck with is.. I am currently outputting the seats as checkboxes with ``` BookingCreate model = new BookingCreate(); model.Seats = (from c in _db.Seat where c.venue == id select c); ``` But I would like for the checkboxes to show what seat number they relate to (at the moment they are just a blank checkbox) And also how to stop showing seats that have been booked to stop duplication. Thanks
Seat Reserving system
CC BY-SA 3.0
null
2011-04-06T22:29:14.863
2011-04-11T03:04:58.803
2011-04-11T03:04:58.803
685,978
685,978
[ "asp.net-mvc", "ado.net" ]
5,573,966
1
5,574,724
null
2
2,274
I have a UITabBarController in which the first UITabBarItem title is not getting displayed. I have it set in Interface Builder and have tried to set it programmatically, but the title area stays blank. ``` [[tabBarController.tabBar.items objectAtIndex:0] setTitle:@"Test1"]; [[tabBarController.tabBar.items objectAtIndex:1] setTitle:@"Test2"]; ``` ![UITabController view](https://i.stack.imgur.com/EOqzM.png) (The Item 2 is set through Interface Builder, which is where that title is coming from, just to test that the IB titles are working as well -- except for the first one) I have a feeling this is the odd result of adding the UITabController to the project and dragging the existing view into the first spot, but don't know how to fix it. Here's the view in Interface Builder: ![enter image description here](https://i.stack.imgur.com/D092F.png) Moving the ViewController that's in the first spot to the second spot yields the result you'd expect -- the second spot becomes blank and the first gets set with "Test1", meaning it's not something funny with just the first spot.
UITabBarItem title not displayed
CC BY-SA 2.5
null
2011-04-06T22:59:56.317
2013-01-22T10:31:15.280
null
null
560,942
[ "iphone", "objective-c", "interface-builder", "uitabbarcontroller" ]
5,573,962
1
5,574,194
null
0
125
I am having unexpected results with my application. I am using a settings bundle, and I want to the default switch to turn on. The switches are off when I start my application. But the sound and the shake are working. I just want the switch to be one when my application loads, and the sound and the shake to be enabled. ``` - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Set the application defaults NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"YES" forKey:@"enableSound"]; NSDictionary *appDefaults2 = [NSDictionary dictionaryWithObject:@"YES" forKey:@"enableShake"]; [defaults registerDefaults:appDefaults]; [defaults registerDefaults:appDefaults2]; [defaults synchronize]; return YES; } ``` Here is part of the code for the sound button: ``` NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; enabledSound = [defaults boolForKey:@"enableSound"]; ``` Here is part of the code where I dectect the shake: ``` NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; enabledSound = [defaults boolForKey:@"enableSound"]; enabledShake = [defaults boolForKey:@"enableShake"]; ``` ![enter image description here](https://i.stack.imgur.com/RNNwF.png)
iPhone Strange Settings Problem
CC BY-SA 2.5
null
2011-04-06T22:59:49.493
2011-04-06T23:31:07.547
null
null
597,775
[ "iphone", "objective-c", "ios4", "iphone-sdk-3.0" ]
5,574,105
1
5,588,988
null
4
2,619
i need to create a block View with a search box attach to the header in order to search nodes for one specific content type. I don't know how to achieve this, so i ask for your help. Something like the attached photo. ![enter image description here](https://i.stack.imgur.com/yyWXU.png)
Drupal Search in Block View
CC BY-SA 3.0
0
2011-04-06T23:18:46.687
2014-01-16T17:13:00.310
2013-05-30T23:40:59.040
225,647
258,863
[ "drupal", "drupal-blocks" ]
5,574,104
1
null
null
3
1,063
I've been playing around with `NSTextView` and have applied some paragraph styles to certain lines. However, when I type enter and get a new line, the attributes that I applied to one line are bleeding into the next. I want to be able to apply a paragraph style to one line and have the next line be formatted in the default way. You can see what I mean from the screenshots. When I add some spacing between paragraphs via `NSParagraphStyle`, the same spacing applies to the newline, which makes the whole thing look pretty shotty. Basically, I am looking for a way to reset the paragraph style for an empty line. I have tried `[MyTextView resetTypingAttributes:theAttributes]` to no avail, since you first have to start typing for the new attributes to apply. Just to be clear, the line below the text in the screenshot is the cursor, which is really far down there as a result of the paragraph spacing. Screenshot: --- ![Screenshot](https://i.stack.imgur.com/0gQGV.png) ---
NSTextView paragraph style of newline
CC BY-SA 2.5
0
2011-04-06T23:18:35.620
2013-06-13T17:25:34.540
2011-04-07T07:51:22.547
603,977
502,746
[ "cocoa", "nstextview" ]
5,574,214
1
5,574,232
null
0
126
Hi Guys I have this website: [http://www.godfreysammut.com](http://www.godfreysammut.com). As you can see in the image attached when the window is reduced in height, I am not able to scroll towards the left. ![Scroll Problem, as you can see I cannot scroll further on the left.](https://i.stack.imgur.com/YuEm1.png)
Website not able to scroll towards the left side of the Page while the windows is small
CC BY-SA 2.5
null
2011-04-06T23:33:53.143
2011-04-06T23:50:57.583
2011-04-06T23:35:39.867
658,809
658,809
[ "html", "css" ]
5,574,212
1
null
null
70
48,087
Is there any way to define the clip region of a ViewGroup in android (Honeycomb)? For example, I have a ListView with an image background that has rounded corners. As I scroll through the list, the children stick out past the corners of the background - I would prefer them to clip within the rounded corners. ![Left: unclipped, Right: clipped](https://i.stack.imgur.com/2kmt6.png) The left image is what it is currently doing, and the right is what I'd like. I was looking at ClipDrawable, but it seems that this may only be used for progress bars? Also, I'm trying to do this in a widget. So I cannot use a custom view and override onDraw for masking. Thank you!
Android View Clipping
CC BY-SA 3.0
0
2011-04-06T23:33:45.457
2021-07-01T04:50:20.260
2018-04-14T08:02:55.253
null
695,785
[ "java", "android", "xml", "android-layout", "clip" ]
5,574,285
1
5,574,325
null
7
12,980
I am new to hibernate and i am having trouble with specifying the location of the mapping file in hibernate.cfg.xml file. I have created an Event object in org.hibernate.tutorial.chapter1.domain.Event.java package with its corresponding Event.hbm.xml file in the same location. I am trying to specify the location in the hibernate.cfg.xml mapping tag but I am getting an InvalidMappingException (). I have added to the post: the exception, the mapping from the mapping file and the project file structure. any advice would be great. > 484 [main] ERROR org.hibernate.util.xml.ErrorLogger - Error parsing XML (1) : cvc-elt.1: Cannot find the declaration of element 'hibernate-mapping'. 495 [main] ERROR org.hibernate.util.xml.ErrorLogger - Error parsing XML (2) : cvc-elt.1: Cannot find the declaration of element 'hibernate-mapping'. Initial SessionFactory creation failed.org.hibernate.InvalidMappingException: Unable to read XML ``` <!-- Names the annotated entity class --> <mapping resource="org/hibernate/tutorial/chapter1/domain/Event.hbm.xml"/> ``` ![see below the project structure](https://i.stack.imgur.com/uxJPj.png)
Mapping problem with Hibernate
CC BY-SA 2.5
0
2011-04-06T23:43:51.550
2015-02-24T15:12:05.323
null
null
162,345
[ "java", "hibernate", "configuration", "hibernate-mapping" ]
5,574,321
1
12,153,673
null
2
658
Is it possible to display an icon on the AIR Application Installation Screen? I downloaded an AIR application, and I was surprised to see an icon on the second installation screen. ![screenshot](https://i.stack.imgur.com/ppCO3.png)
Displaying an icon on the AIR Application Installation Screen
CC BY-SA 2.5
0
2011-04-06T23:47:58.283
2012-08-28T06:13:37.057
2011-04-06T23:55:42.810
225,647
633,511
[ "installation", "air", "windows-installer" ]
5,574,377
1
null
null
-1
218
I want to do a calculation between selectbox values. The problem with my code is that the first part of the calculation only gives me `0`, which Motherboard valuequantity. My formulas is `motherbord*Quanity+chassis*quantity`. Here is my code: ``` function calculate() { var parsedMotherboard = parseFloat(document.calcform.Motherboard.value || 0); var parsedQuantity = parseFloat(document.calcform.Quantity.value || 0); var parsedChassis = parseFloat(document.calcform.Chassis.value || 0); var parsedQuantity1 = parseFloat(document.calcform.Quantity1.value || 0); document.calcform.total.value = (parsedMotherboard * parsedQuantity + parsedChassis * parsedQuantity1); } ``` ![interface](https://i.stack.imgur.com/LnHKt.jpg)
selectbox value calculation
CC BY-SA 2.5
null
2011-04-06T23:59:38.820
2011-04-07T22:19:56.990
2011-04-07T00:15:49.073
684,871
684,871
[ "php", "javascript" ]
5,574,678
1
5,574,774
null
-2
296
Our XML validation keeps falling over on a special character that appears throughout a block of text. It looks like a square with four F's inside it. (see shot below). I am using CDATA tags. I could strip it out if I just knew what it was. ![enter image description here](https://i.stack.imgur.com/05cG3.gif) ``` <?xml version="1.0" encoding="UTF-8" ?> ``` Any ideas? Paul
Special character in XML
CC BY-SA 2.5
null
2011-04-07T00:55:16.350
2011-04-07T01:29:25.093
2011-04-07T01:29:25.093
460,114
460,114
[ "xml" ]
5,574,775
1
5,574,793
null
0
3,171
Trying to find: Show the top-20 PIs who have the largest total amount of awards along with the universities they are affliated with. ``` SELECT max(award), pi, org FROM iis LIMIT 20; ``` ![pic2](https://i.stack.imgur.com/3us6v.png) ![table](https://i.stack.imgur.com/WCpYc.png) Anyone??
Trying to get top 20 mySQL
CC BY-SA 2.5
null
2011-04-07T01:10:10.820
2011-04-07T10:19:57.807
null
null
700,070
[ "mysql" ]
5,574,910
1
5,575,190
null
0
899
I have an image that has the title of the field I want and a little box where I want to display a number. Is it possible to hover a textview on top of an image view button? So it looks like the following: ![enter image description here](https://i.stack.imgur.com/k5Kpj.png)
Is it possible to hover a TextView above an ImageButton?
CC BY-SA 2.5
null
2011-04-07T01:28:24.170
2011-04-07T02:12:57.133
null
null
569,594
[ "android", "textview", "imagebutton" ]
5,575,073
1
null
null
3
663
I have designed this navigation bar in Photoshop and am lost as to how I could convert it to a pure css navigation bar, would anyone have any ideas ? TIA. ![Navigation Bar Image](https://i.stack.imgur.com/loB3M.jpg) [Link to bigger image](http://dl.dropbox.com/u/243540/navbar-round.jpg)
How can I make this navigation bar using css?
CC BY-SA 2.5
0
2011-04-07T01:54:19.447
2011-04-07T02:57:05.907
2011-04-07T02:57:05.907
66,580
695,925
[ "css", "html", "navigationbar" ]
5,575,164
1
5,575,197
null
1
63
If using an HTML whitelist and HTMLPurifier, are there any a malicious user can execute if `<a></a>` is allowed? For atmosphere: ![Shenanigans!](https://i.stack.imgur.com/dgk7T.jpg)
link shenanigans?
CC BY-SA 2.5
null
2011-04-07T02:07:57.333
2011-04-07T02:15:47.750
null
null
188,930
[ "html", "hyperlink", "whitelist" ]
5,575,399
1
5,575,493
null
0
380
My certificate had expired, so I renewed the certificate and created the new provisioning profile with same app bundle id(app identifier). I added the certificate file to 'keychain access' and added the provisioning profile to 'xcode'. I could see the new provisioning profile in Organizer ![enter image description here](https://i.stack.imgur.com/guhBh.png) but when I installed the ad hoc version to my ipod, it still reported provisioning profile expired :-( ![enter image description here](https://i.stack.imgur.com/WjprR.png) Welcome any comment Thanks
renewed certificate and app provisioning profile, but it still said provisioning profile expired
CC BY-SA 2.5
null
2011-04-07T02:49:59.153
2011-04-07T03:09:40.323
2011-04-07T02:56:13.767
629,453
629,453
[ "iphone" ]
5,575,649
1
5,577,689
null
0
222
i have a program made in flash who runs well, the actions on the .fla file are empty, it has a class who makes all the the work: ![enter image description here](https://i.stack.imgur.com/1JfJz.jpg) This is the content of the class: ``` package { import flash.events.Event; import org.papervision3d.objects.parsers.DAE; [SWF(width=640, height=480, backgroundColor=0xCCCCCC, frameRate=30)] public class Earth extends PV3DARApp { private var _earth:DAE; public function Earth() { addEventListener(Event.INIT, _onInit); init('Data/camera_para.dat', 'Data/flarlogo.pat'); } private function _onInit(e:Event):void { _earth = new DAE(); _earth.load('model/minecraft.DAE'); //_earth.addEventListener(Event.OPEN,imageLoaded); _earth.scale = 1.5; _earth.rotationX = 90; _markerNode.addChild(_earth); //addEventListener(Event.ENTER_FRAME, _update); } private function imageLoaded(e:Event):void { trace("HOLA"); } private function _update(e:Event):void { _earth.rotationZ -= 1 } } } ``` I want to pass all the script from the class to the acctions on the main timeline, i mean, i dont want to use the class, but i have no idea how to do this, eliminating the "private" string in all the functions and eliminating some other logical thinks like "package {" and others is not enough. So please, how can i code the same program using only the actions tab from flash? Thanks!
How to copy the script from a ".as" file into the main timeline of flash?
CC BY-SA 2.5
null
2011-04-07T03:35:32.897
2011-04-07T07:51:34.370
null
null
310,648
[ "flash", "actionscript-3" ]
5,575,731
1
null
null
10
11,131
> [Slow Android emulator](https://stackoverflow.com/questions/1554099/slow-android-emulator) I'm running on Eclipse Helios on Windows 7 x64. I have a Core 2 Duo 2.0 Ghz with 4.0 GB which I think should be enough, since I've never have any performance problems with developing tools. When I run my first app on the Android Emulator (both 2.3.3 and 3.0) it took at least 5 minutes to load the OS and at first it didn't even run the HelloAndroid app. Even when I managed to run the application, the performance was unbareable. The strange things is that is not a OS performance issue. This is the CPU and Memory status while executing: ![CPUPerformanceWhileRunning](https://i.stack.imgur.com/8xFgL.jpg) I've tryed various things to improve the performance, but no major improvement is shown. I think I'm missing something. Things I have tryed: On AVD Manager 1. Device RAM size to 512. 2. Resolution to 640 x 480. 3. Snapshot enabled. On Project preferences\Android 1. \Launch\ -cpu-delay 0 -no-boot-anim -cache ./cache -avd Android3 Things I can't tryed: - Deploying on a device (don't have any). By the way, I've had the same problem on a MAC Mini 2.66 Ghz 2 GB but these settings made the difference. Anyone can give any tips to improve this lame performance?.
Improve Android Emulator Performance on Windows 7 x64
CC BY-SA 3.0
0
2011-04-07T03:48:38.410
2014-05-25T08:50:49.307
2017-05-23T12:26:29.837
-1
547,948
[ "android", "performance", "android-emulator" ]
5,575,784
1
null
null
1
5,050
I have a method like this: ``` void sendSMS{ if ([MFMessageComposeViewController canSendText]) { MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; picker.recipients = [NSArray arrayWithObject:@"0933660805"]; [picker setBody:@"Message body"]; picker.messageComposeDelegate = self; [self.navigationController presentModalViewController:picker animated:YES]; //[picker release]; return; } } ``` Message composer open but recipients and message body are empty (image below). Anybody know how can i fix it :( ![enter image description here](https://i.stack.imgur.com/OtKju.png)
Can't set recipients of MFMessageComposeViewController?
CC BY-SA 2.5
null
2011-04-07T03:57:07.767
2016-10-03T07:16:17.060
null
null
122,456
[ "iphone", "objective-c", "ios" ]
5,575,821
1
5,578,538
null
54
79,809
> [How to add background image on iphone Navigation bar ?](https://stackoverflow.com/questions/1692487/how-to-add-background-image-on-iphone-navigation-bar) iOS - How did the NY Times do this custom top navigation bar styling? And for that matter, the bottom one? ![ny-times](https://dzwonsemrish7.cloudfront.net/items/212Y3n2f0F3f3D364037/Screen%20shot%202011-04-06%20at%209.59.42%20PM.png)
Custom nav bar styling - iOS
CC BY-SA 4.0
0
2011-04-07T04:03:49.670
2019-05-18T05:48:13.240
2018-10-06T17:32:08.447
1,033,581
75,877
[ "objective-c", "cocoa-touch", "ios", "uinavigationbar" ]
5,575,820
1
5,616,258
null
1
12,173
I have this jqplot bar graph. The current display of the bars are shown vertically, I wanted to display it horizontally. How do I set the jqplot properties so I can make the graph disply horizontally and preserve the output with the percent values? I hope you help me do this. Thanks :) Here is the code ``` <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]--> <script src="../jquery-1.4.4.min.js" language="javascript" type="text/javascript" ></script> <script src="../jquery.jqplot.js" language="javascript" type="text/javascript" ></script> <script src="../plugins/jqplot.categoryAxisRenderer.js" language="javascript" type="text/javascript" ></script> <script src="../plugins/jqplot.dateAxisRenderer.js" language="javascript" type="text/javascript" ></script> <script src="../plugins/jqplot.barRenderer.js" language="javascript" type="text/javascript" ></script> <script src="../plugins/jqplot.pointLabels.js" language="javascript" type="text/javascript" ></script> ``` ``` $(document).ready(function(){ $.jqplot.config.enablePlugins = true; line1 = [20, 0]; plot2 = $.jqplot('chart2', [line1], { seriesColors: ["#82BC24","#363636"], seriesDefaults: { renderer: $.jqplot.BarRenderer, rendererOptions:{barMargin: 25}, yaxis:'y2axis', shadow: false }, axes: { xaxis:{ ticks:[2010, 2040], renderer:$.jqplot.CategoryAxisRenderer, tickOptions:{markSize:0} }, y2axis:{ticks:[0, 100], tickOptions:{formatString:'%d\%'}} } }); }); ``` ``` <div id="chart2" class='plot' style="margin-top:20px; margin-left:20px; width:200px; height:200px;"> </div> ``` ![The Result I wanted](https://i.stack.imgur.com/WkI6A.png)
Render Jqplot Bar Graph Horizontally
CC BY-SA 2.5
0
2011-04-07T04:03:43.690
2013-03-21T12:53:28.500
null
null
249,580
[ "jquery", "jqplot" ]
5,575,851
1
5,581,433
null
0
1,003
I have some query about my code, I am using and I have a question using TimerControl... The user will first Login[] and then the and must recognize whether it is or . Once it was recognized as , the user will be redirected to the and if not, he will be redirected to after the Timer[]/Progressbar[] . I'm just perplexed because I am using database with two tables[ & ]. Each Table has an index: for and for ... I don't know where to insert the conditional statement... Please help me out, once it was resolved, it will be my rule for the further problem that I might encounter... Thanks in advance. Here is my code ``` Private Sub cmdContinue_Click() Dim boolLogedIn As Boolean If Me.txtUserID.Text = "" And Me.txtPassword.Text = "" Then Me.lblWarning.Caption = "*User ID and Password must not be a null." Me.tmLoginformSize.Enabled = True Me.txtUserID.SetFocus Beep ElseIf Me.txtUserID.Text = "" Then Me.lblWarning.Caption = "*User ID must not be a null." Me.tmLoginformSize.Enabled = True Me.txtUserID.SetFocus Beep ElseIf Me.txtPassword.Text = "" Then Me.lblWarning.Caption = "*Password must not be a null." Me.tmLoginformSize.Enabled = True Me.txtPassword.SetFocus Beep Else Do Until datLogin.Recordset.EOF With datLogin.Recordset If Me.txtUserID.Text = !empid And Me.txtPassword.Text = !Password Then boolLogedIn = True Exit Do Else datLogin.Recordset.MoveNext End If End With Loop If boolLogedIn = True Then Me.tmLogin.Enabled = True Me.lblConnecting.Visible = True Me.lblLoginPercent.Visible = True Me.pbLogin.Visible = True Else Me.lblWarning.Caption = "*User ID and Password did not match." Me.datLogin.Recordset.MoveFirst Me.tmLoginformSize.Enabled = True Beep End If End If End Sub Private Sub tmLogin_Timer() With Me.pbLogin Me.pbLogin.Value = Me.pbLogin.Value + 1 Me.lblLoginPercent.Caption = Str(Me.pbLogin.Value) + "%" If Me.pbLogin.Value >= 1 And Me.pbLogin.Value < 50 Then Me.lblConnecting.Caption = "Connecting..." ElseIf Me.pbLogin.Value >= 50 And Me.pbLogin.Value < 100 Then Me.lblConnecting.Caption = "Logging in..." Else Me.lblConnecting.Caption = "Done..." frmLogin.Hide frmEmployee.Show Me.tmLogin.Enabled = False End If End With End Sub ``` ...Here is my screenshots ![my tables](https://i.stack.imgur.com/x7Iky.jpg) ![my frmLogin](https://i.stack.imgur.com/tZGKw.jpg)
Question about Timer Control in VB6
CC BY-SA 2.5
null
2011-04-07T04:07:50.727
2011-04-08T05:16:25.560
null
null
661,719
[ "vb6" ]
5,576,893
1
5,577,009
null
25
108,989
I have 2 `<div>`s with ids `A` and `B`. div `A` has a fixed width, which is taken as a sidebar. The layout looks like diagram below: ![Layout](https://i.stack.imgur.com/ms73e.jpg) The styling is like below: ``` html, body { margin: 0; padding: 0; border: 0; } #A, #B { position: absolute; } #A { top: 0px; width: 200px; bottom: 0px; } #B { top: 0px; left: 200px; right: 0; bottom: 0px; } ``` I have `<a id="toggle">toggle</a>` which acts as a toggle button. On the toggle button click, the sidebar may hide to the left and div `B` should stretch to fill the empty space. On second click, the sidebar may reappear to the previous position and div `B` should shrink back to the previous width. How can I get this done using jQuery?
How to toggle (hide / show) sidebar div using jQuery
CC BY-SA 4.0
0
2011-04-07T06:26:58.343
2021-01-05T22:52:39.723
2021-01-05T22:52:39.723
4,370,109
484,082
[ "javascript", "jquery", "css", "jquery-events" ]
5,576,991
1
5,577,130
null
1
11,665
Here is my code: ``` @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this; AlertDialog alertChoice = new AlertDialog.Builder(context).create(); alertChoice.setTitle("Title"); alertChoice.setView(ViewDialogScreen("Test")); alertChoice.show(); } private View ViewDialogScreen(String strText) { LinearLayout llay = new LinearLayout(context); llay.setLayoutParams(new LayoutParams(320, 400)); TextView tv = new TextView(context); tv.setText(strText); llay.addView(tv); return llay; } ``` ![enter image description here](https://i.stack.imgur.com/qaX2Q.png) I got the output like the above. 1. I need to show the AlertDialog in full screen / 95% of the Screen size. 2. I need to handle more fields in the Dialog. 3. How do I enable the HorizontalScrollview in the AlertDialog?
How to set Alert Dialog height and width in Android?
CC BY-SA 2.5
0
2011-04-07T06:39:46.280
2013-09-11T09:35:12.877
2011-04-07T09:43:31.363
419
548,435
[ "android", "fullscreen", "android-alertdialog", "horizontal-scrolling" ]
5,577,018
1
5,577,080
null
0
51
If you pop open the clock application and set the alarm you get a nifty pop-up with the time that you can modify using + and - buttons. I'm wondering if there's that's a standard and, if so, if there's an easy way to access it so that it pops up when clicking on an element in a ListView? ![plus/minus dialog](https://i.stack.imgur.com/H7xYB.png)
How to access the +/- dialog to modify a number (like when setting the time)
CC BY-SA 2.5
null
2011-04-07T06:42:24.983
2011-04-07T16:48:43.163
null
null
558,840
[ "android" ]
5,577,599
1
5,577,672
null
0
244
I have a server with multiple threads. Here is my server connection: ``` while (true) { client = this.tcpListener.AcceptTcpClient(); sThread a = new sThread(form1, listaThreads); lock(Program.lockThreads) { listaThreads.Add(a); } Thread clientThread = new Thread(new ParameterizedThreadStart(a.HandleClientComm)); clientThread.Start(client); } ``` In my sThread class I have the following code: ``` public void HandleClientComm(object client) { String a = ""; try // nu uita sa pui inapoi! { tcpClient = (TcpClient) client; clientStream = tcpClient.GetStream(); sr = new StreamReader(clientStream); sw = new StreamWriter(clientStream); a = sr.ReadLine(); ... ``` But in some cases I get an error at `a = sr.ReadLine();` that says the following: ![screenshot](https://i.stack.imgur.com/3lzkY.jpg) What can it be?
Network stream problem
CC BY-SA 2.5
null
2011-04-07T07:42:52.247
2011-04-07T07:50:11.860
2011-04-07T07:46:22.660
377,270
476,024
[ "c#", ".net" ]
5,577,807
1
8,517,063
null
4
6,426
I have a page that has a static maps URI in the form of [http://maps.google.com/maps/api/staticmap?size=600x240&markers=icon:http://100procentjan.nl/tweakers/punaise.png|shadow:false|52.369010925293,4.8560848236084&sensor=false&zoom=15&center=52.369010925293,4.8560848236084](http://maps.google.com/maps/api/staticmap?size=600x240&markers=icon:http://100procentjan.nl/tweakers/punaise.png|shadow:false|52.369010925293,4.8560848236084&sensor=false&zoom=15&center=52.369010925293,4.8560848236084) . When I visit this page from any browser it shows up just fine, but not when I use it through a Blackberry that is connected through our BES (but same wireless network!). Then this image shows up: ![Argh](https://i.stack.imgur.com/gENxw.jpg) Does anyone know what this image means?
Google Maps Static API returns weird image
CC BY-SA 2.5
0
2011-04-07T08:03:01.947
2013-04-23T18:28:32.783
null
null
107,642
[ "google-maps" ]
5,577,833
1
null
null
1
301
I want to develop a tree based on Level priority. Please look at the below image. How to generate this with all lines(relations) using jquery. ![enter image description here](https://i.stack.imgur.com/rjbAS.png) Please suggest me any plugins which are nearest functioning to it. Thank You
Jquery Plugin to Generate Tree based on Level priority
CC BY-SA 2.5
null
2011-04-07T08:05:45.443
2011-08-25T05:41:42.740
2011-04-07T08:18:40.723
510,435
510,435
[ "jquery", "jquery-plugins", "treeview" ]
5,578,371
1
5,579,596
null
0
335
> [iTunes-style NSWindow subclass?](https://stackoverflow.com/questions/4304186/itunes-style-nswindow-subclass) I want to create nswindow like itunes min status. like: ![ituens](https://i.stack.imgur.com/rUaSo.png) but when I create the nswindow it like this: ![nswindow i create](https://i.stack.imgur.com/Sv4kf.png) I want a panel like itunes that show at up picture.so I can put my custom view in it. but i have no idea how to do it.I am new for mac design. Any suggestion is welcome or can any one remmend same useful books for me.
I want to create a nswindow like itunes min status,but I have no idea
CC BY-SA 2.5
0
2011-04-07T08:48:49.933
2011-05-20T02:30:09.307
2017-05-23T10:32:35.693
-1
622,423
[ "cocoa", "macos", "interface-builder" ]
5,578,537
1
5,585,705
null
1
7,492
For example I have function that creates matrix 2x2 : [1 2; 3 4] I have such simple function: ``` function[result] = Rho(x) // I've tried and so: result = [1 2; 3 4]; // And so: result(1,1) = 1; result(1,2) = 2; result(2,1) = 3; result(2,2) = 4; ``` In Matlab window i see right result: ``` >> Rho(1) ans = 1 2 3 4 ``` But in Simulink I always get [1;2;3;4]. Where is my mistake? ![enter image description here](https://i.stack.imgur.com/C1kcy.png) P.S. I forgot to remove argument x of function, because in real function I make matrix depending on argument x. But it doesn't play role in our example
Can't output multidimensional matrix in Matlab function in Simulink
CC BY-SA 2.5
null
2011-04-07T09:01:34.730
2017-08-09T04:13:49.133
2017-08-09T04:13:49.133
52,738
547,242
[ "matlab", "function", "matrix", "simulink" ]
5,578,599
1
5,579,799
null
1
6,809
I want to change the of every i have instead of displaying the of the app I tried `InitAppointmentDisplayText` event but it only changes the toolTip of the app ``` private void schedulerControl1_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e) { e.Text = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString()); e.Description = string.Format("Schedule: {0}, Time: {1}", e.Appointment.Description, e.Appointment.Start.ToShortTimeString()); } ``` ![enter image description here](https://i.stack.imgur.com/IYyjO.png)
XtraSchedule to display custom appointment caption
CC BY-SA 2.5
0
2011-04-07T09:06:05.193
2011-04-07T13:39:27.567
null
null
480,107
[ "c#", "devexpress", "schedule" ]
5,578,715
1
5,578,904
null
3
1,454
When I try to restore a backup from sqlserver 2008 R2 to sqlserver 2008, I have the following error: ![enter image description here](https://i.stack.imgur.com/VXVkO.png) There's a way to make a compatible backup ?
Error restore backup SQLSERVER 2008R2 to SQLSERVER 2008
CC BY-SA 3.0
null
2011-04-07T09:14:55.833
2020-02-25T20:22:11.393
2011-04-10T21:09:25.183
294,884
564,672
[ "sql-server", "sql-server-2008", "backup", "sql-server-2008-r2" ]
5,578,960
1
5,582,244
null
1
3,032
![enter image description here](https://i.stack.imgur.com/Scupf.jpg)
FullCalendar - is it possible to change the position of the end time?
CC BY-SA 2.5
null
2011-04-07T09:35:37.870
2011-04-07T14:46:49.367
null
null
286,295
[ "javascript", "jquery", "css", "fullcalendar" ]
5,579,071
1
5,579,680
null
1
5,679
I want to display latitude and longitude my current location.. For this rather than searching in Google, i searched in SO. I just want to display my current location latitude and longitude. See my code below : ``` public class LocationGetter extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); LocationManager mlocManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener mlocListener = new LocationManagerHelper(); mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 100,mlocListener); if (mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { tv.append("Latitude:- " + LocationManagerHelper.getLatitude() + '\n'); tv.append("Longitude:- " + LocationManagerHelper.getLongitude() + '\n'); Log.i("MyLocation1",Double.toString(LocationManagerHelper.getLatitude())+" "+Double.toString(LocationManagerHelper.getLongitude())); } else { tv.setText("GPS is not turned on..."); } /** set the content view to the TextView */ setContentView(tv); } /* Class My Location Listener */ public static class LocationManagerHelper implements LocationListener { private static double latitude; private static double longitude; @Override public void onLocationChanged(Location loc) { latitude = loc.getLatitude(); longitude = loc.getLongitude(); Log.i("MyLocation",Double.toString(latitude)+" "+Double.toString(longitude)); } @Override public void onProviderDisabled(String provider) { } @Override public void onProviderEnabled(String provider) { } @Override public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } public static double getLatitude() { return latitude; } public static double getLongitude() { return longitude; } } } ``` I have also added permission in manifest file : ``` <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission> ``` See the output i am getting : ![enter image description here](https://i.stack.imgur.com/SqNHO.jpg) Where i am going wrong ? I dont understand, its a simple code and why its not working ?
Problem in Getting the Current Location in Android
CC BY-SA 2.5
0
2011-04-07T09:43:56.627
2014-09-26T16:49:14.123
null
null
610,940
[ "android", "android-layout", "gps", "android-maps" ]
5,579,191
1
5,579,270
null
6
5,336
I created simple window and applied style to it. Now, when I run application background is black: ![enter image description here](https://i.stack.imgur.com/8WOA3.png) In XAML it looks normal: ![enter image description here](https://i.stack.imgur.com/15FNF.png) What is causing this? Here is XAML code: ``` <Window SizeToContent="WidthAndHeight" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WPFTest.MainWindow"> <Window.Style> <Style TargetType="Window"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate TargetType="Window"> <Grid Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="0"> <ContentPresenter /> </Grid> <StatusBar Name="statusBar1" Height="23" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Row="1" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Style> <Grid> <Grid Height="114" HorizontalAlignment="Center" Margin="1,0,557,622" Name="grid" VerticalAlignment="Bottom" Width="466"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="100*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="25*" /> <RowDefinition Height="25*" /> <RowDefinition Height="25*" /> <RowDefinition Height="25*" /> </Grid.RowDefinitions> <Label Content="Label4" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Left" Margin="3,0,3,0" MinHeight="16" MinWidth="97" Name="xResourceLabel4" VerticalAlignment="Bottom" /> <Label Content="Label1" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" Margin="3,0,3,0" MinHeight="16" MinWidth="98" Name="xResourceLabel1" VerticalAlignment="Bottom" /> <Label Content="Label2" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3,0,3,0" MinHeight="16" MinWidth="114" Name="xResourceLabel2" VerticalAlignment="Bottom" /> <Label Content="Label3" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3,0,3,0" MinHeight="16" MinWidth="80" Name="xResourceLabel3" VerticalAlignment="Bottom" /> <TextBox Background="#FFFFFF99" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="120,0,189,0" MinHeight="23" MinWidth="157" Name="tbREGNR" VerticalAlignment="Bottom" /> <TextBox Background="#FFFFFF99" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Center" Margin="0,0,189,0" MinHeight="23" MinWidth="157" Name="tbFaFabnr" VerticalAlignment="Bottom" /> <ComboBox Background="#FFFFFF99" DisplayMemberPath="" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" Margin="0,0,189,0" MinHeight="24" MinWidth="157" Name="cb" SelectedValuePath="" VerticalAlignment="Bottom" /> <TextBox Background="#FFFF99CC" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center" Margin="0,0,175,0" MinHeight="23" MinWidth="171" Name="tbComp" VerticalAlignment="Bottom" /> </Grid> </Grid> </Window> ```
Black background of WPF Window
CC BY-SA 2.5
null
2011-04-07T09:53:32.630
2021-08-18T16:11:11.830
null
null
676,389
[ "c#", "wpf", "controltemplate" ]
5,579,388
1
5,580,208
null
0
802
I dont Know Why I am getting this extra white space on my grid, I have checked the file from where I am reading to database and cant find anything wrong. Anyone has got a clue of why I am getting this?(3rd row )Seems like is adding extra space when I have more than 1 row in file ![Extra white space](https://i.stack.imgur.com/bKtTq.png) Thanks in Advance
Extra White Space on my DataGrid WPF
CC BY-SA 2.5
null
2011-04-07T10:09:27.520
2011-04-07T11:20:29.150
null
null
565,530
[ "c#", "wpf", "file", "datagrid" ]
5,580,075
1
5,580,864
null
0
1,329
i want to add a "register" link into the apache authentication popup. ![enter image description here](https://i.stack.imgur.com/S0txi.png) i would also like to change the error message page that is called when you press cancel. i looked into directory www/error where i found some files but it seem none of those files is the error page that is called. how can i find the Authorization Required page that is called ? so i can change it.
customizing apache tomcat authentication Required popup
CC BY-SA 2.5
null
2011-04-07T11:06:56.550
2011-04-07T12:17:02.040
null
null
486,209
[ "apache", "authentication", "tomcat" ]
5,580,243
1
5,580,665
null
0
3,001
I have created a stackpanel in a treeviewitem. I'm trying to get my picture next to my checkbox and the text next to my picture box but I don't know how to do that. Currently this is happening: ![http://img854.imageshack.us/i/naamloosl.png/](https://i.stack.imgur.com/XP9CS.png) This is my code: ``` ComboBoxItem tempComboItem = comboBox1.SelectedItem as ComboBoxItem; CheckBox cbox = new CheckBox(); StackPanel panel = new StackPanel(); panel.Width = 260; Label labelTitle = new Label(); Label labelStatus = new Label(); Image newImage = new Image(); newImage.Source = new BitmapImage(new Uri(imageTextBox1.Text)); newImage.Width = 85; newImage.Height = 65; panel.Children.Add(newImage); labelTitle.Content = itemTextBox1.Text; panel.Children.Add(labelTitle); labelStatus.Content = "Beschikbaar"; panel.Children.Add(labelStatus); labelStatus.Foreground = Brushes.Lime; cbox.Content = panel; TreeViewItem newChild = new TreeViewItem(); newChild.Header = cbox; ``` Can someone help me out. I want the checkbox and image and text to be horizontal. I can do with: `panel.Orientation.` the two text labels on the right, I want them vertical, one below the other. How do I do this?
C# WPF Stackpanel layout
CC BY-SA 2.5
null
2011-04-07T11:23:41.617
2018-02-19T21:00:24.420
2018-02-19T21:00:24.420
563,088
696,701
[ "c#", "wpf", "xaml" ]
5,580,743
1
5,580,787
null
1
242
Can someone tell me what would be the math required for moving around the small ball in the bar(meter) according to the touch motion.... I needed a clear idea on the logic.. ![enter image description here](https://i.stack.imgur.com/PJYCr.png)
Android UI Mathematics required for the implementation
CC BY-SA 2.5
null
2011-04-07T12:06:56.997
2011-04-07T12:11:13.007
null
null
448,005
[ "opengl-es", "vector-graphics", "android" ]
5,580,863
1
null
null
7
3,945
I currently have 3 tables storing information about all the main cities in the world, each region/state that corresponds to those countries, and each city that is in those states/regions. ![City, States and Countries](https://i.stack.imgur.com/r4srf.png) Now I have about 6 other tables in my database e.g. the Users or Organisations tables which need the exact same 5 columns: address, suburb, city, state/region, country. So I was wondering if it was 'good' normalization practice to perhaps use a 'Location' table which stores those 5 pieces of information, then the Users or Organisations table would have a location_id to reference back to. ![Cities, States and Countries with Location table](https://i.stack.imgur.com/yCX5r.png) Good idea or bad idea? I'm also considering using a 'Contacts' table in the same principle which would contain home_phone, business_phone, mobile_phone, email_address rather than have those same 5 columns in each of the 6 tables. Any advice appreciated. Many thanks!
Normalization question regarding address,city,country data
CC BY-SA 2.5
null
2011-04-07T12:16:56.220
2011-04-07T12:35:27.810
null
null
569,447
[ "mysql", "database", "database-design", "normalization", "denormalization" ]
5,580,979
1
5,581,226
null
0
2,315
I am creating Windows Forms application using C# .NET in Visual Studio 2010. I populate data to a ListView from a Excel file. Now I wanted to select a particular cell or list of adjacent cells vertically. I have attached a sample image here: ![enter image description here](https://i.stack.imgur.com/ZzwD0.png) I wanted do something like this inside a ListView. I need suggestion from you to understand the methodology (like what are events I should use, what properties of the ListView I should change to do this, etc.) I appreciate any help you can give.
Select cell values inside a Listview - Details View
CC BY-SA 2.5
null
2011-04-07T12:26:03.903
2011-04-07T14:12:50.467
2011-04-07T14:12:50.467
366,904
441,628
[ "c#", ".net", "winforms", "listview", "c#-4.0" ]
5,581,039
1
null
null
6
1,114
I'm looking for a way of implementing a sort of inset caption before a set of tabs, something like this: ![enter image description here](https://i.stack.imgur.com/ooSb1.png) The tab set is not supposed to be multi-line, will only be horizontal and laid out at the top. However it should be correctly scrollable when there are too many tabs. I fear I'm going to be restricted here with regard to using third-party controls, but I could use subclassing on the standard TTabControl to add the necessary changes to the standard looks and behaviour. (I don't need it to be TPageControl, because it's only the specific arrangement of the tabs that I am interested in.) Maybe there's some way of implementing this with craftily arranged combination of standard controls, which, despite my endevours, has escaped me. Basically, any ideas or pointers are welcome. Oh, and additional requirement is, it should blend well with desktop themes.
Caption for TTabControl
CC BY-SA 2.5
0
2011-04-07T12:30:14.693
2018-01-15T22:42:08.290
2011-04-07T12:54:42.300
297,408
297,408
[ "delphi", "delphi-2010", "tabcontrol", "customization", "caption" ]
5,581,034
1
5,581,085
null
312
282,287
Is there a way to have a child DIV within a parent container DIV that is wider than its parent. The child DIV needs to be the same width as the browser viewport. See example below: ![enter image description here](https://i.stack.imgur.com/MRgm9.gif) The child DIV stay as a child of the parent div. I know I can set arbitrary negative margins on the child div to make it wider but I can't work out how to essentially make it 100% width of the browser. I know I can do this: ``` .child-div{ margin-left: -100px; margin-right: -100px; } ``` But I need the child to be the same width as the browser which is dynamic. ## Update Thanks for your answers, it seems the closest answer so far is to make the child DIV `position: absolute`, and set the left and right properties to 0. The next problem I have is that the parent has `position: relative`, which means that left and right properties are still relative to the parent div and not the browser, see example here: [jsfiddle.net/v2Tja/2](http://jsfiddle.net/v2Tja/2) I can't remove the `position: relative` from the parent without screwing everything else up.
Is there a way to make a child DIV's width wider than the parent DIV using CSS?
CC BY-SA 4.0
0
2011-04-07T12:30:05.497
2022-11-16T04:04:54.883
2022-04-05T13:09:23.083
5,264,501
248,848
[ "css", "html" ]
5,581,095
1
5,585,080
null
11
8,508
In Sharepoint 2010, is there any way to change the category where custom web parts created in VS2010 to be placed. VS2010 is putting the custom web part in "Custom" category by default. I'm curious that, is there any way for us to change it, for example "MyCustomWebParts" category. incase I couldn't made myself clear: ![here](https://i.stack.imgur.com/bCQqm.gif)
Change the Category for Web Part to be displayed
CC BY-SA 2.5
null
2011-04-07T12:34:56.037
2011-04-07T18:01:24.163
2011-04-07T13:30:04.480
284,420
284,420
[ "sharepoint-2010", "web-parts" ]
5,581,505
1
5,584,801
null
1
459
I want to write a custom Plugin for the "Check In" window in VS. It should be a new point in in the menu and replace the view on the right. To make it more clear I've attached an image. I don't want do write a new policy and the Check-in notes are not customizable enough for me, I've already looked into that. Any help is appreciated Thanks! Simon ![enter image description here](https://i.stack.imgur.com/rE715.png)
Visual Studio & TFS: How to add a custom tab on Check In
CC BY-SA 2.5
null
2011-04-07T13:02:13.933
2011-04-09T13:11:51.080
2020-06-20T09:12:55.060
-1
604,526
[ "visual-studio", "plugins", "tfs", "add-in" ]
5,581,536
1
5,581,698
null
2
118
How make a framed Image?? i.e. put a frame around a bitmap Image?? the sample image is attached.. I have different frames. I want to put these frames around bitmap Images.. any suggestion will be helpful... ( I am developing an Image Processing application and want to put framed effect) ![enter image description here](https://i.stack.imgur.com/AyCwL.jpg)
How make a framed Image?
CC BY-SA 2.5
0
2011-04-07T13:04:25.150
2011-04-07T13:16:37.573
null
null
528,459
[ "java", "android", "image-processing" ]
5,581,777
1
5,582,263
null
1
725
I have a school project. Please see the following picture implemented under Android. Someone in stackoverflow told me that Cocos2d is easy to use compared with opgl es and quartz 2d. But I still don't know where to start. I just got a book Cocos2d for Iphone 0.99 Beginner Guide. But seems not related to my project. My project is just draw lines and give different areas for different colors. Any suggestions? Thanks! ![enter image description here](https://i.stack.imgur.com/8U8N2.png)
Can Cocos2d draw this graphic?
CC BY-SA 2.5
null
2011-04-07T13:22:22.643
2011-04-07T13:55:09.257
null
null
null
[ "iphone", "graphics", "cocos2d-iphone", "draw" ]
5,581,935
1
5,582,004
null
0
815
While creating test in vb.net i found it pretty annoying when you start typing and autocompleet changes a class to something similar looking even it is a class you don't want. Image to illustrate : ![Controller not created yet](https://i.stack.imgur.com/wfc9I.png) In the picture you can see I am trying to setup a controller (this controller does not exist at the moment) so when i press the spacebar i will get DienstControllerFacts. How do you disable this sort of auto-correction?
How to disable autocompleet intellisence when pressing spacebar in vb.net
CC BY-SA 2.5
null
2011-04-07T13:33:26.167
2011-04-07T13:40:35.097
null
null
520,265
[ "vb.net", "visual-studio-2010", "unit-testing", "intellisense" ]
5,581,960
1
5,586,824
null
1
704
I am trying to model a notification system where an event occurs during a time period (start date and end date). If the time period has been exceeded, the user is required to either update the time period or set a flag that the event has been i) cancelled, ii) completed, or iii) closed. If today is one day past the event's scheduled completion date, the manager is emailed. If two days, the manager and their supervisor is emailed. If > two days, the manager, their supervisor, and the company owner is emailed. Every day after that it emails the three of them that the event is delinquent. Events can be scheduled any time in the future so the process needs to simply track when the event is Pending, Active, Delinquent (past the end date), Cancelled, Closed, or Complete. I have started building workflow as a WorkFlow Service application hosted in Windows Server AppFabric because it appears that that is the best way to persist this long-running workflow. I have also started using the WF State Machine Activity Pack CTP 1 as it seemed the best way to model these different event states. I am uncertain how to model this process as well as get the process to persist and continue running in the background to monitor the event's state and behave as outlined above. I think I have all the states modeled correctly in the state machine. I am still trying to figure out the transitions from one state to another Any guidance is appreciated. ![Current State Machine as Modelled](https://i.stack.imgur.com/PszWb.jpg)
Modelling a Notification System
CC BY-SA 2.5
null
2011-04-07T13:34:23.233
2011-04-07T19:55:38.573
null
null
366,462
[ "workflow-foundation-4", "state-machine" ]
5,582,106
1
5,585,851
null
1
416
I am trying to build a generic repository using Entity Framework 4.0 using a legacy MS SQL database I have inherited. A pretty familiar scenario. I need to add category information to a fairly long list of existing items. The items can belong to several categories at the same time so I created an mapping table called ![Database Diagram](https://farm6.static.flickr.com/5264/5597417399_a529174281_b.jpg) Unfortunately is not unique and cannot be made into a Foreign Key (FK) in the database. I have tried to add my own partial class to the DefinitionSchema entity but as it's not indexed, this has a severe performance hit. : ``` public partial class DefinitionSchema { private MyEntities context; public IQueryable<Category> Categories { get { context = new MyEntities(); var categories = context.Categories .Where(c => c.CategoryMappings .Where(m => m.SchemaDefinitionCode == this.SchemaDefinitionCode).Any()); return categories; } } } ``` I can then call a list of items like so: ``` var q = context.SchemaDefinitions .Where(s => s.Categories .Where(c => c.Name == category) .Any() ); ``` How can I link my tables and mapping in the most efficient manner without wiping out the existing database structure?
Entity Framework 4.0 Many-Many relationship Using Non-Primary Key
CC BY-SA 2.5
null
2011-04-07T13:44:45.293
2011-04-07T18:34:19.100
2017-02-08T14:31:55.087
-1
222,942
[ "sql-server", "entity-framework-4", "legacy-database" ]
5,582,564
1
5,583,505
null
35
21,050
On the maps app in the IPad when you tap a pin you get a normal annotation with an "i" instead of a disclosure indicator. A further tap on the "i" reveals a popover view controller like this. ![map popover example](https://i.stack.imgur.com/v0vq7.png) Is there a way to easily achieve this?
How do I display a UIPopoverView as a annotation to the map view? (iPad)
CC BY-SA 3.0
0
2011-04-07T14:16:51.853
2015-08-14T01:52:51.537
2012-03-07T15:57:20.383
242,848
296,446
[ "ios", "ipad" ]
5,582,720
1
9,345,122
null
3
1,195
I'm at a bit of a loss with this one, I have a nine patch drawable (See attached) which works in the draw9Patch tool, has no bad patches, works fine on initial loading of the application for ldpi, mdpi, hdpi 1.6 - 2.3.3. But on each screen size if I go to another activity and then back to the original screen containing the button with the nine patch drawable as it's background, the image is cropped at the top (looks as though it's occurring at the repeatable area). I've gone through the layout an altered any nine patch drawable used to ensure it's not one rogue nine patch causing the issue with the rest. I've ensured that each density pixel screen has it's own set of resources and I'm about to try moving the xml state selectors for the button into each of the respective drawable folders as well. The frustrating thing is that even if the nine patches draw incorrectly, rotating the screen seems to fix the problem, it's only when I move from a new activity back to the problem activity, the nine patches clip 50% of the time. The Drawable is: ![Problem Nine Patch](https://i.stack.imgur.com/4hkO0.png) The left portion of the resulting image is as follows (Notice there is no rounded edge): ![Rendered problem nine patch](https://i.stack.imgur.com/ZUUzB.png) If you actually zoom in on the rendered image, it appears to have the top of the nine patch (above the scaled pixel) overlapping the drawable underneath (zoom in and you see the round corner). The layout for the button has nothing unusual about it: ``` <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:text="@string/some_text"></Button> ``` I can set the layout_height to a fixed height (i.e. 50dp) and this seems to stop the nine patch collapsing on itself / clipping. If anyone has any ideas at all as to what the problem could be please let me know. Cheers, Matt Solution: My problem was to do with the following boolean parameters in the state list selector: android:constantSize="true" android:dither="false" android:variablePadding="false" I'm not sure what caused the behaviour, but I assume it causes some form of caching or some optimisation that introduced this intermittent bug.
Nine Patch Drawable Being Clipped
CC BY-SA 2.5
0
2011-04-07T14:28:58.640
2018-08-20T12:06:06.973
2011-04-07T14:59:19.657
295,996
295,996
[ "android", "drawable" ]
5,582,768
1
5,582,797
null
0
372
Say I have a HTML page that looks like this: !["Välj Fil" means Upload File](https://i.stack.imgur.com/w1omt.png) That was created with this code: ``` <body> <input type="file" name="uploadFile" id="uploadFile" /> </body> ``` Is there some way to make the textfield for the file path longer, so that I can read the entire path? I've seen solutions such as [this](http://www.quirksmode.org/dom/inputfile.html), but it seems waaay to advanced for my needs.
HTML File Upload - Longer textfield for selected filepath?
CC BY-SA 2.5
null
2011-04-07T14:33:10.293
2011-04-07T14:42:24.847
null
null
463,833
[ "html" ]
5,583,054
1
5,583,658
null
1
2,095
Greetings All I went back and used [resample](http://www.mathworks.com/help/toolbox/signal/resample.html) (from the signal processing toolbox) and repmat, but I'm noticing that on some of the values the rows aren't the same as the sample rate, see image link below. notice the top image value for rows says 1000 and the bottom image says rows = 1008. This happens when I change the values of resample and repmat (freq_new) but only for certain values. How can I fix this correctly? I could just delete everything after 1000 but I'm not sure if this is a bug or just the way resample/repmat works. PS: using matlab/octave ![http://dl.dropbox.com/u/6576402/questions/rows_different.png](https://i.stack.imgur.com/0USR5.png) Here's the test code I used to test this ``` %resample_repmat signal clear all, clf Fs = 1000; % Sampling rate Ts = 1/Fs; %sampling interval t=0:Ts:1-Ts; %sampling period freq_orig=1; y=sin(2*pi*t*freq_orig)'; %gives a short wave freq_new=9; y2=resample(y,1,freq_new); %resample matrix y3=repmat (y2,freq_new,1); %replicate matrix [r_orig,c_orig] = size(y) %get orig number of rows and cols [r_new,c_new] = size(y3) %get new number of rows and cols subplot(2,1,1),plot(y),title('Orginal signal') title(['rows=',num2str(r_orig),' cols=',num2str(c_orig)]) subplot(2,1,2),plot(y3),title('New signal') title(['rows=',num2str(r_new),' cols=',num2str(c_new)]) ```
Increasing frequency of signal
CC BY-SA 2.5
null
2011-04-07T14:51:28.713
2011-04-07T15:40:36.223
2011-04-07T15:25:31.343
134,830
676,430
[ "matlab", "signal-processing", "octave" ]
5,583,169
1
5,583,359
null
0
95
I'm going nuts over trying to achieve this simple design with divs and spans instead of tables, tds and trs (I got it working with tables so far) ![enter image description here](https://i.stack.imgur.com/9Gjw8.png) Simple design: - - - I was kinda of hoping this would be easy to write but I found it excruciatingly difficult. The `float` tag cancels the `vertical-align` tag and I can't get it to work for no combination of styles/divs/spans. TnX For The Help...
How to achieve this design in html
CC BY-SA 2.5
null
2011-04-07T14:59:09.003
2011-04-07T15:43:13.053
null
null
128,076
[ "html" ]
5,583,280
1
5,583,869
null
1
190
For the last few hours I have been searching high and low for a real table look-a-like component for the iPhone. Unfortunatly I'm still a newbie in iPhone land (more Android myself :P). I haven't found anything yet that comes even close. There is one example picture I found that exactly describes what I am looking for. Shame that it's made using the iUI html library: (See [here](http://www.k10design.net/articles/iui/)) ![iTunes styled table](https://i.stack.imgur.com/FNZnx.png) My question of course is wether anyone has ever seen such a table component somewhere. If it weren't for my extreme lack of iPhone knowledge I would have tried to create it myself (as I did on the android lol). Pointing me in the right direction would seriously help, as this is the last hurdle for finishing the iPhone version of the app I am making.
Real table component for iPhone
CC BY-SA 3.0
null
2011-04-07T15:06:10.783
2016-11-20T17:24:25.230
2016-11-20T17:24:25.230
4,370,109
553,317
[ "ios", "iphone", "uitableview", "components" ]
5,583,788
1
5,584,741
null
1
2,366
I installed Zend Studio 8.0 and ZendServer-php-5.3.5-5.1.0-Windows_x86.exe. But I am having problem running a PHP code. I tried to run the default template DebugDemo.php. It loads the url [http://localhost/ExampleProject/DebugDemo.php](http://localhost/ExampleProject/DebugDemo.php) I clicked on the icon (Open Zend Server Event list in Browser) It opens up a web page where at the bottom it states: ![Error](https://i.stack.imgur.com/yHQhs.jpg)
Problem running PHP code in Zend Studio
CC BY-SA 2.5
0
2011-04-07T15:41:19.623
2011-04-07T16:56:00.717
2011-04-07T16:41:58.680
248,065
646,093
[ "configuration", "zend-studio", "application-settings", "zend-server-ce" ]
5,583,886
1
5,584,054
null
2
578
I have two tables: ![enter image description here](https://i.stack.imgur.com/Qwu9v.png) I want to fill an ASP.NET server control drop down list with all of the authors that have books assigned to them and additionally append the number of items for each author to the list. I have successfully done so. However it is slow with just this one and I plan to add 3 or 4 more drop down lists doing the same thing. Is there a better way to reform the following code? ``` using (myDataContext db = new myDataContext()) { //ddlAuthors var authors = db.Authors.OrderBy(x=> x.text).Select(x => new { authorText= x.text, authorId = x.authorID, authorCnt = x.ItemAuthors.Count() }); ddlAuthor.DataSource = authors; ddlAuthor.DataTextField = "authorText"; ddlAuthor.DataValueField = "authorId"; ddlAuthor.DataBind(); foreach (ListItem item in ddlAuthor.Items) { foreach (var n in authors) { if(item.Value == n.authorId.ToString()) item.Text += string.Format(" ({0})", n.authorCnt); } } } ```
Fill drop down list and append assigned product count to each
CC BY-SA 2.5
0
2011-04-07T15:49:55.677
2011-04-07T16:11:08.710
null
null
445,303
[ "c#", "asp.net", "linq-to-sql" ]
5,584,152
1
5,584,720
null
6
3,021
I have started working on a project in MonoDevelop lately, and unlike in VS2010, there is no keyboard shortcut to toggle the comments, and i really liked that shortcut. Luckily, in OS X you can create custom keyboard shortcuts for any application in System Preferences, like this: ![Keyboard Shortcuts in System Preferences](https://i.stack.imgur.com/br1Gx.png) I have put it in All Applications because putting it directly on MonoDevelop.app doesn't work. And by seeing how MonoDevelop doesn't use the OS X UI, but one that looks like Linux, I'm guessing it's not running natively. As expected, the shortcut was bound to MonoDevelop as well as all the other applications, and it does show up in the menus : ![enter image description here](https://i.stack.imgur.com/qVKqO.png) Everything looked fine until I tried to execute this shortcut, and nothing happened. This is a problem. Does anyone know why the shortcut appears, but is not working? (This only happens in MonoDevelop, I have tried making shortcuts in other applications, and they work.)
: Custom keyboard shortcuts not working?
CC BY-SA 2.5
null
2011-04-07T16:10:55.883
2011-04-07T16:54:29.220
null
null
675,430
[ "macos", "keyboard-shortcuts", "monodevelop" ]
5,584,202
1
5,584,261
null
0
3,096
Now i done the ADD /Remove Elements How to add/remove elements dynamically, pease find the image attachment, which shows the better understand, ![enter image description here](https://i.stack.imgur.com/zA5UJ.jpg) category which populate records from database category table, and when user select the particular category than sub category will populate from datbase sub category table, am looking one jquery or some open which do this same work, refer some good plugins, How to add the element when i click the ADD Elment, please chekc my code below ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" > $(document).ready(function(){ var hdn_add_element_cnt = $("#hdn_add_element_cnt").val(); hdn_add_element_cnt = parseInt(hdn_add_element_cnt); var app_str = "<div id=element_"+hdn_add_element_cnt+">New Element "+hdn_add_element_cnt+" <a href=\"#\" onclick=\"delete_element("+hdn_add_element_cnt+")\">Delete</a></div>"; $('#element_area').append(app_str); $("#add_element").click(function(){ var hdn_add_element_cnt = $("#hdn_add_element_cnt").val(); hdn_add_element_cnt = parseInt(hdn_add_element_cnt); hdn_add_element_cnt = hdn_add_element_cnt+1; var app_str = "<div id=element_"+hdn_add_element_cnt+">New Element "+hdn_add_element_cnt+" <a href=\"#\" onclick=\"delete_element("+hdn_add_element_cnt+")\">Delete</a></div>"; $('#element_area').fadeIn(10000).append(app_str); //Increment Elemenet ID Count +1 document.getElementById("hdn_add_element_cnt").value = hdn_add_element_cnt; }) }) function delete_element(element_id_no){ var get_element_hidden_cnt = $("#hdn_add_element_cnt").val(); $("#element_"+element_id_no).fadeOut(100).remove(); } </script> </head> <body> <div style="width:500px; height:200px; background-color:#FF0000;"> <div id="add_element" style="width:400px; height:75px;"> ADD Element </div> <div id="element_area"> </div> </div> <input type="hidden" id="hdn_add_element_cnt" value="1" /> </body> </html> ```
Add / Remove Elements Dynamically
CC BY-SA 3.0
null
2011-04-07T16:14:07.783
2011-04-08T02:30:00.593
2011-04-08T02:30:00.593
246,963
246,963
[ "jquery-plugins", "jquery" ]
5,584,355
1
5,584,482
null
0
5,391
Could someone explain me what's going on with this small piece of HTML ? [http://jsbin.com/akome5](http://jsbin.com/akome5) On most of current browsers (FF4, Chrome10, IE9, IE8, Opera 11), the layout of the element looks like this : ![enter image description here](https://i.stack.imgur.com/9xYM2.png) Meh?! I don't understand why ?! Why aren't the height and width as big as the visible box (orange+red spaces) ? Adding a "display:inline-block;" to the element doesn't seems to really fix it. How can I fix it ? Thx!!
Anchor (<a>) dimensions with only inline-block spans inside
CC BY-SA 3.0
null
2011-04-07T16:26:11.440
2011-04-08T08:25:54.977
2011-04-08T08:00:00.153
435
435
[ "layout", "anchor", "html", "css" ]
5,584,380
1
5,598,532
null
8
7,620
I am creating a desktop app that needs to install an SDF file to the `SpecialFolder.CommonDocuments` folder (`C:\Users\Public\documents` in Win 7). In a Visual Studio desktop Deployment Project, how do I specify this folder in the File System Editor? I tried creating a custom folder in the File System Editor and pointing it to the CommonDocuments folder in the Properties pane, like this: ![Properties pane screenshot](https://i.stack.imgur.com/SpXN2.png) Unfortunately, that specification won't build. I don't want to hard-code a folder path, since it varies between Windows versions. So, how do I specify the CommonDocuments folder in the FileSystem Editor? Thanks for your help.
Visual Studio Installer: How to Target Windows Public Documents Folder?
CC BY-SA 2.5
0
2011-04-07T16:28:12.313
2013-06-10T15:25:26.367
2011-04-07T21:40:19.357
93,781
93,781
[ "visual-studio", "deployment", "installation" ]
5,584,500
1
5,899,208
null
33
14,720
I have an `<ol>` (ordered list) and in FF, Safari, Chrome it is rendered correctly. However in IE9 it is showing all zeros. It is not a spacing/padding issue because I am able to see the zeros. My HTML is as follows: ``` <ol> <li>Enter basic company information</li> <li>Select from our portfolio of products</li> <li>Attach your employee census</li> <li>Review your selections and submit your request.</li> </ol> ``` Anyone run into that problem and hopefully a solution? ![ol issues](https://i.stack.imgur.com/AIL9x.png)
Ordered list showing all zeros in IE9
CC BY-SA 3.0
0
2011-04-07T16:37:15.867
2017-08-13T08:15:26.373
2017-08-13T08:15:26.373
4,220,785
328,186
[ "html", "internet-explorer-9", "html-lists" ]
5,584,787
1
5,585,280
null
0
4,801
I want to dynamically load the graphic of the button into an mc inside each frame of the button (up and over). Inside each frame I have a movie clip (canvas and canvas_over) The green box is the button object (header_btn): ![The green box is the button object (header_btn)](https://i.stack.imgur.com/9I8tK.png) This is my code: ``` var hLoader:Loader = new Loader(); hLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, hLoaded); hLoader.load(new URLRequest("http://django.liveproject.is/misc/current_flash_header/image.png")); function hLoaded(event:Event):void { var image:Bitmap = new Bitmap(event.target.content.bitmapData); header_btn.canvas.addChild(image); } var hoLoader:Loader = new Loader(); hoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, hoLoaded); hoLoader.load(new URLRequest("http://django.liveproject.is/misc/current_flash_header_over/image.png")); function hoLoaded(event:Event):void { var image:Bitmap = new Bitmap(event.target.content.bitmapData); header_btn.over_canvas.addChild(image); } ``` The error I get is: ``` TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-78() TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-77() ``` ## Edit - Solved: `header_canvas` and `header_canvas_over` are placed on stage. `header_canvas_over` is placed over `header_canvas`. Code: ``` var context:LoaderContext = new LoaderContext(); context.checkPolicyFile = true; var hLoader:Loader = new Loader(); hLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, hLoaded); hLoader.load(new URLRequest("http://django.liveproject.is/misc/current_flash_header/image.png"), context); function hLoaded(event:Event):void { var image:Bitmap = new Bitmap(event.target.content.bitmapData); header_canvas_up.addChild(image); } var hoLoader:Loader = new Loader(); hoLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, hoLoaded); hoLoader.load(new URLRequest("http://django.liveproject.is/misc/current_flash_header_over/image.png"), context); function hoLoaded(event:Event):void { var image:Bitmap = new Bitmap(event.target.content.bitmapData); header_canvas_over.addChild(image); header_canvas_over.visible = false; header_btn.addEventListener(MouseEvent.MOUSE_OVER, onHover); function onHover(event:Event):void { header_canvas_over.visible = true; } header_btn.addEventListener(MouseEvent.MOUSE_OUT, onOut); function onOut(event:Event):void { header_canvas_over.visible = false; } } ``` It would be nice though if as3 allowed for buttons to contain objects. :/
How to access a movie clip object inside a button object in as3 (flash cs4)
CC BY-SA 2.5
null
2011-04-07T16:59:57.743
2011-04-07T18:37:14.640
2011-04-07T18:37:14.640
412,252
412,252
[ "flash", "actionscript-3" ]
5,584,888
1
5,726,047
null
2
6,338
I have just started using [Visual Leak Detector for Visual C++ 2008/2010](http://vld.codeplex.com/) When i run it on small app (just few line with undeleted allocations) it works just fine. Now I want to run it into my bigger app (wxWidgets app, 2 threads), but when I include ``` #include <vld.h> ``` my app does not completely start up. It starts cycling when Gui is created. Somethimes app load completely, but again, stuck when I for example press some button... When I hit pause button, to see which code is being processed I see just ![stack: ntdll, kernel...](https://i.stack.imgur.com/gxQyr.png) Is anybody run into similar problem? Is there any way to make it work?
Visual Leak Detector does not work
CC BY-SA 2.5
0
2011-04-07T17:08:32.700
2017-01-30T15:27:13.807
2017-01-30T15:27:13.807
61,505
680,031
[ "c++", "visual-studio-2010", "memory-leaks", "memory-leak-detector", "visual-leak-detector" ]
5,585,083
1
5,590,418
null
1
921
I'm confused here. I am trying to stylize various cells of this listview but the results are odd. my code to create the listviewitem is as follows: ``` lvi = new ListViewItem(); lvi.Text = row["Size"].ToString(); lvi.SubItems.Add(row["Item"].ToString()); lvi.SubItems[0].Font = new System.Drawing.Font(lvi.Font, FontStyle.Underline); lvi.SubItems[1].ForeColor = Color.Blue; listAvailableSizes.Items.Add(lvi); ``` So, in theory my first subitem should be underlined and my second one should be blue (these are just arbitrary styles). And the immediate window confirms that this should be the case: ``` listAvailableSizes.Items[0].SubItems[0].ForeColor "{Name=WindowText, ARGB=(255, 0, 0, 0)}" A: 255 B: 0 G: 0 IsEmpty: false IsKnownColor: true IsNamedColor: true IsSystemColor: true Name: "WindowText" R: 0 listAvailableSizes.Items[0].SubItems[1].ForeColor "{Name=Blue, ARGB=(255, 0, 0, 255)}" A: 255 B: 255 G: 0 IsEmpty: false IsKnownColor: true IsNamedColor: true IsSystemColor: false Name: "Blue" R: 0 listAvailableSizes.Items[0].SubItems[0].Font.Underline true listAvailableSizes.Items[0].SubItems[1].Font.Underline false ``` According to this, subitem position 0 has regular colored text and an underline, position 1 has blue text and no underline, however, this is how it displays: ![listview](https://i.stack.imgur.com/S23Gk.jpg) As you can see both are underlined and neither is blue. Am I missing something?
Inconsistent listview subitem properties
CC BY-SA 2.5
0
2011-04-07T17:26:10.450
2011-04-08T04:26:13.833
2011-04-07T17:44:39.907
90,475
594,058
[ "c#", "winforms", "listview" ]
5,585,162
1
5,586,227
null
2
329
I am manually adding a notify icon to the task bar of a form based application using c#. The menu is added ok but when I right click the icon the list appears below the task bar as default. How do I get it to appear in the location you would normally expect? ``` NotifyIcon notfiyIcon = new NotifyIcon(); ContextMenu contextMenu = new ContextMenu(); MenuItem menuItem = new MenuItem(); menuItem.Text = "Exit"; menuItem.Click += new System.EventHandler(this.btnLogOut_Click); contextMenu.MenuItems.Add(menuItem); contextMenu.MenuItems.Add("hello"); notfiyIcon.ContextMenu = contextMenu; notfiyIcon.Text = "Property Sales"; Icon icon = new Icon("icon.ico"); notfiyIcon.Icon = icon; notfiyIcon.Visible = true; ``` ![enter image description here](https://i.stack.imgur.com/0z9sQ.png) This is what where i would like it to appear. ![enter image description here](https://i.stack.imgur.com/4u3Is.png)
Menu Item appears on task bar rather than above it
CC BY-SA 2.5
null
2011-04-07T17:32:33.503
2011-04-07T20:03:38.787
2011-04-07T17:58:32.670
266,405
266,405
[ "c#" ]
5,585,195
1
5,601,968
null
0
1,168
I have read many answers both here and on other places on the net, but I'm still unable to build / run a small hello world like application using VS2010 and the latest Qt opensource (4.7.2) for VS2008. Here are the steps I've done, and of course restarted where needed: 1. installed VS2010 2. installed VS2010 SP1 3. downloaded and installed qt-win-opensource-4.7.2-vs2008.exe 4. downloaded and installed qt-vs-addin-1.1.9.exe In VS2010 now I have the project templates for Qt. I selected QT Application, accepted defaults and created one. First it didn't find the QTDIR folder. So I've run c:\Qt\4.7.2\bin\qtvars.bat as administrator, and now VS2010 have no problem with building the project / finding the include files. And thats where my knowledge stopped, I still cannot run the exe files created from the build. When starting the created exe files from Total Commander, it says: ![problem2](https://i.stack.imgur.com/LvWOd.png) and when starting them from within VS2010 it says: ![problem](https://i.stack.imgur.com/cXTle.png) Can you help me what is causing this problem and what is a possible solution for this? But I've read it on many places that it should work well. I would like to create minimalistic OpenGL applications using Qt, what is the appropriate way to configure Qt in this case?
how to build a hello word like application using Qt and VS2010
CC BY-SA 2.5
0
2011-04-07T17:35:14.113
2011-04-09T00:08:49.207
null
null
518,169
[ "c++", "visual-studio", "visual-studio-2010", "qt", "build" ]
5,585,319
1
5,585,525
null
2
273
![enter image description here](https://i.stack.imgur.com/aGo0h.png)![enter image description here](https://i.stack.imgur.com/4sAPI.png) ``` CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; CTCarrier *carrier = [networkInfo subscriberCellularProvider]; NSString *currentCountry=[carrier isoCountryCode]; [networkInfo release]; ``` I am using this piece of code in my application to determine the country of user.I am getting leaks because of this and instruments shows the responsible library as foundation.I am using IOS 4.1 for testing.How can this be fixed.
Foundation Library Causing Leak in application
CC BY-SA 3.0
0
2011-04-07T17:45:25.340
2011-04-08T04:36:21.867
2011-04-08T04:36:21.867
25,646
495,277
[ "iphone" ]
5,585,377
1
5,623,425
null
0
1,141
When the compiling of a project is complete (or at least when it says it does), I receive no window, no error message, or anything; VC++ freezes up and my computer basically stops responding altogether. After about five minutes, Task Manager finally pops up and I'm able to close the program. Upon doing that, I see this: ![](https://i.stack.imgur.com/hb8LU.jpg) I'm going to take a guess here and say something is wrong with the image above. On a side note, the process' (`MSBuild.exe`) don't (seem) to open all at once, but that may only seem that way because the computer becomes frozen multiple times until I shutdown vc++. Is this a known issue and if so what should I do so I can compile programs without this issue once again? : - - - -
VC++ hangs and freezes computer upon completion of compilation
CC BY-SA 2.5
null
2011-04-07T17:51:42.270
2011-04-11T15:13:12.823
null
null
464,257
[ "c++", "visual-c++", "compiler-construction", "windows-forms-designer" ]