Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
list
4,458,000
1
4,460,285
null
0
2,023
Is there any delegate method called the moment one swipe on table cell and delete button comes in from the right? I wanted to track the swipe and do some action there. Also, which delegate method gets called when you tap on "Delete" button in the cell. ![alt text](https://i.stack.imgur.com/tSb5A.png)
Delegate method on fingure swipe on a cell
CC BY-SA 2.5
0
2010-12-16T06:17:59.510
2015-09-14T16:44:02.523
2015-09-14T16:44:02.523
1,527,934
418,029
[ "iphone", "uitableview", "cocoa-touch", "uikit", "swipe" ]
4,458,030
1
null
null
2
3,173
![alt text](https://i.stack.imgur.com/OF7ij.png) I need to implement like above figure... How to add button to UISearch Bar. its for iphone. Please help me out. @ thanks in advance.
how to add button to UISearchBar
CC BY-SA 2.5
0
2010-12-16T06:23:54.580
2010-12-16T07:25:15.363
null
null
465,800
[ "iphone" ]
4,458,067
1
4,458,078
null
1
279
I renamed my Xcode project, now it is saying that I will lose changes if I close; I cant't figure out how to save the renamed Xcode project! ![alt text](https://i.stack.imgur.com/sL71n.png)
Rename project, Then what?
CC BY-SA 2.5
null
2010-12-16T06:31:09.410
2010-12-16T06:33:08.947
null
null
524,358
[ "iphone", "objective-c", "xcode", "rename" ]
4,458,099
1
4,459,297
null
1
1,374
I am creating virtual directory in IIS 6 using C#. I am able to create the virtual directory but the 'Application Name' field remains empty. ![alt text](https://i.stack.imgur.com/e6LKx.png) Here's the code I am using > DirectoryEntry iisRoot = new DirectoryEntry("IIS://" + Environment.MachineName + "/W3SVC");string webName = "1";string virdir = "TestApp1";string installpath = @"C:\MyWeb\Application\";``` try { string iisPath = string.Format("IIS://{0}/W3SVC/{1}/Root", Environment.MachineName, webName); Console.WriteLine(iisPath); iisRoot = new DirectoryEntry(iisPath); DirectoryEntry vdir = iisRoot.Children.Add(virdir, iisRoot.SchemaClassName); vdir.Properties["Path"][0] = installpath; vdir.Properties["AppFriendlyName"][0] = virdir; vdir.Properties["EnableDefaultDoc"][0] = true; vdir.Properties["DefaultDoc"][0] = "Login.aspx,default.htm,default.aspx,default.asp"; vdir.Properties["AspEnableParentPaths"][0] = true; vdir.CommitChanges(); vdir.Invoke("AppCreate", true); } catch (Exception e) { Console.Write(e.Message + "\n" + e.StackTrace); } ``` I have used 'AppFriendlyName' property but still it does not show up in virtual directory properties.
Application Name remain empty for virtual directory in IIS 6 using C#
CC BY-SA 2.5
null
2010-12-16T06:36:29.817
2010-12-16T09:43:10.137
2010-12-16T06:39:38.223
15,541
317,255
[ "c#", "iis-6", "virtual-directory" ]
4,458,135
1
4,459,154
null
1
2,261
I'm making a new OSX app and I'm trying to copy the flow that tons of apps use. I just need to know how to add a button on the right hand side of the application's title. Here's what I currently have ![alt text](https://i.stack.imgur.com/5k1lH.png) Here's the button I'm trying to get (right hand side) ![alt text](https://i.stack.imgur.com/Q34Ie.png) I don't know what it's called, but when I try to drag a sample push button, Interface Builder just ignores it. Thanks for any help in advance!
How to get this button on NSWindow
CC BY-SA 2.5
0
2010-12-16T06:43:04.980
2011-10-13T10:21:18.427
null
null
345,282
[ "cocoa", "macos", "nswindow" ]
4,458,567
1
4,458,688
null
5
3,387
I have a big polygon (`Pa`). Inside the polygon there are a lot of small "holes", as shown: ![](https://docs.google.com/drawings/pub?id=1byv-VpXd4A8yFY3-P4X68yZHcD9CmeOMMWQm5BMzSBA&w=960&h=720) Here are a few condition for the holes: 1. The holes cannot overlap one another 2. The holes cannot go outside the outer polygon 3. However, the holes can touch the outer polygon edge How to obtain the remaining polygon ( or the polygon list) in an efficient manner? The easiest way ( brute force way) is to take the `Pa`, and gradually computing the remaining polygon by subtracting out the holes. Although this idea is feasible, but I suspect that there is a more efficient algorithm.
Algorithm to compute the remaining polygon after subtraction
CC BY-SA 4.0
0
2010-12-16T08:00:50.617
2019-10-26T09:02:17.283
2019-10-26T09:02:17.283
3,834
3,834
[ "c#", "algorithm" ]
4,458,591
1
4,458,620
null
4
267
![alt text](https://i.stack.imgur.com/RnjXZ.png) I was wondering, what is the purpose of closing a branch. As for `issue-1` branch, I had already close. But - `issue1-1`- `issue1-1` So, what is the whole point of closing a branch?
What is the purpose of closing a branch
CC BY-SA 2.5
null
2010-12-16T08:05:19.000
2017-06-16T15:20:16.450
2010-12-16T08:10:36.827
368,070
72,437
[ "mercurial", "branch" ]
4,458,632
1
4,465,258
null
3
508
When I implement this method in my TTTableViewController: ``` - (id<UITableViewDelegate>)createDelegate { return [[[TTTableViewDragRefreshDelegate alloc] initWithController:self] autorelease]; } ``` I get the "pull down to update..." feature, , it's not displaying the date and time of the last update (like I see on the facebook and twitter apps). I'm sure this is because I'm not implementing some protocol method or something like that, but I'm not sure exactly which method(s) I need to implement. The table is displaying my data just fine, so I'm not sure what I'm missing. Any ideas? This is what I'm seeing: ![alt text](https://i.stack.imgur.com/tNfel.png) But this is what I want to see: ![alt text](https://i.stack.imgur.com/FMD6r.png)
Three20 "pull down to update" isn't showing last update time
CC BY-SA 2.5
0
2010-12-16T08:11:48.043
2010-12-16T20:51:04.467
null
null
478,460
[ "iphone", "objective-c", "three20" ]
4,458,709
1
4,458,738
null
4
1,018
I had an anonymous branch (branch without naming, in red rectangle) result from cloning. ![alt text](https://i.stack.imgur.com/KJ2wA.png) I realize I may provide name to the anonymous branch through `bookmarking` However, `bookmarking` is not permanent. I was wondering, whether I can make the anonymous branch to truly named branch? Is it too late to do so? Or I should do it in the very beginning of `1)Change calendar to dateTime.` change? Thanks.
Give name to an anonymous branch
CC BY-SA 2.5
null
2010-12-16T08:26:15.387
2022-02-26T15:12:24.173
null
null
72,437
[ "mercurial" ]
4,458,752
1
null
null
9
58,169
I know how to programatically get a gallery image (one by one). Now that the gallery is organised folderwise Is there a way to select and get the path of a folder in the gallery view... ![alt text](https://i.stack.imgur.com/qkfjV.jpg)
get the path of a Gallery Folder in Android
CC BY-SA 2.5
0
2010-12-16T08:32:44.630
2017-10-16T06:53:24.050
null
null
533,652
[ "android", "android-emulator", "gallery", "image-gallery" ]
4,458,932
1
4,459,340
null
4
32,847
How can I fix this error "missing; before statement" in javascript ? ![alt text](https://i.stack.imgur.com/74z8z.jpg) My HTML Page : [http://etrokny.faressoft.com](http://etrokny.faressoft.com) My Javascript Code : [http://etrokny.faressoft.com/javascript.php](http://etrokny.faressoft.com/javascript.php)
How can I fix this error "missing; before statement" in javascript?
CC BY-SA 2.5
null
2010-12-16T08:53:42.753
2010-12-20T09:58:55.277
2010-12-20T09:58:55.277
310,971
423,903
[ "javascript", "debugging", "firebug" ]
4,458,991
1
4,459,099
null
-1
769
i am trying to create an overlay like this when mouse move over image control. how to I do it using WPF ? please advice ![alt text](https://i.stack.imgur.com/IusLH.png)
WPF overlay help
CC BY-SA 2.5
null
2010-12-16T09:03:12.570
2014-01-03T11:53:58.393
null
null
192,901
[ "c#", "wpf" ]
4,459,178
1
4,459,222
null
0
1,926
this is a sample data to explain my case: ![alt text](https://i.stack.imgur.com/nfgHm.png) I want to get data , so only employees returned, and for the rest of columns what ever data returned it would be OK I planned to get distinct EMPLOYID first then get top 1 for each Employee but it seems need a loop, and in my case i restricted to only select query.
SQL Query: Get rows (all columns) from table basied on one distinct column
CC BY-SA 2.5
null
2010-12-16T09:28:35.733
2010-12-16T10:48:50.777
null
null
480,107
[ "sql", "distinct" ]
4,459,191
1
4,459,234
null
1
146
In my application I have a control that displays hex data: ![alt text](https://i.stack.imgur.com/ia7Mq.jpg) I want to color code the different bytes. Currently I use a `TextBlock` for displaying the hex data, I dont think it is possible to color the individual bytes differently with that. So my question is: Which control do I have to use to color code the text? Are there any other means to achieve such a color coding?
Text Control and colored background
CC BY-SA 2.5
null
2010-12-16T09:30:19.157
2010-12-16T11:04:08.140
null
null
451,540
[ "wpf" ]
4,459,678
1
null
null
11
5,908
I have a few fairly simple animations (moving text around, moving ellipses etc.) and running in full screen (1920x1080 minus the task bar) the WPF Performance Suite reports a good framerate around 50 FPS throughout the animation. Dirty Rect Addition is somewhere around 300 rect/s, the SW frames are between 0 and 4 and the HW frames are between 3 and 5. Video memory usage is around 80 MB. ![WPF Performance screen shot](https://i.stack.imgur.com/phfWd.png) Problem is that the animations stutters every other half second. It is definitely not fluid :-( My machine is a new Dell laptop XPS 15 with the GeForce GT 435 with 2GB memory. - The drivers are up to date. (The same behavior occurs on my netbook (in full screen) as well so I don't think it is hardware related.) If I make the window smaller the stutter goes away. The stutter occurs with the simplest of animations - even with just a couple of elements but adding more elements certainly makes it more noticeable. When I think of it, I have not actually seen any WPF animations which run smoothly in full screen. Is this even possible?
How to know why an animation stutters?
CC BY-SA 2.5
0
2010-12-16T10:25:10.550
2019-04-17T20:09:39.177
2011-02-08T07:50:31.593
10,779
10,779
[ "wpf", "performance", "animation" ]
4,459,852
1
4,460,033
null
-1
655
Consider the following tables : ``` account => ID, Login, Pass, Email, Level, IDNum, Name records => RID, Status, IDNum, Reason, Type, Amount, Date, SubmitterID ``` Now I join the tables with the following query: ``` SELECT account.Name FROM account, records WHERE records.IDNum = account.IDNum ``` In the query above the Name field would be joined based on matching IDNum, however if I want to get the Name field `WHERE account.ID = records.ID` and also `WHERE records.IDNum = account.IDNum` simultaneously, would that be possible? Question in short, joining the 2 queries below into one : ``` SELECT account.Name FROM account, records WHERE records.IDNum = account.IDNum SELECT account.Name FROM account, records WHERE records.SubmitterID = account.ID ``` I'm probably not clear enough, please check the example data below : ![alt text](https://i.stack.imgur.com/dnH9C.png) So obviously the `Name` field of the first query would return John, and return Chris for the second query. I want to display names in one query.
Joining Tables in MySQL with different where conditions on the same field?
CC BY-SA 2.5
null
2010-12-16T10:42:45.940
2010-12-16T13:11:44.680
2010-12-16T11:14:56.243
435,216
435,216
[ "mysql" ]
4,460,206
1
4,460,919
null
22
32,756
I have a static class with some static properties. I initialized all of them in a static constructor, but then realized that it is wasteful and I should lazy-load each property when needed. So I switched to using the `System.Lazy<T>` type to do all the dirty work, and told it to not to use any of its thread safety features since in my case execution was always single threaded. I ended up with the following class: ``` public static class Queues { private static readonly Lazy<Queue> g_Parser = new Lazy<Queue>(() => new Queue(Config.ParserQueueName), false); private static readonly Lazy<Queue> g_Distributor = new Lazy<Queue>(() => new Queue(Config.DistributorQueueName), false); private static readonly Lazy<Queue> g_ConsumerAdapter = new Lazy<Queue>(() => new Queue(Config.ConsumerAdaptorQueueName), false); public static Queue Parser { get { return g_Parser.Value; } } public static Queue Distributor { get { return g_Distributor.Value; } } public static Queue ConsumerAdapter { get { return g_ConsumerAdapter.Value; } } } ``` When debugging, I noticed a message I've never seen: > The function evaluation requires all threads to run ![enter image description here](https://i.stack.imgur.com/3pUzQ.jpg) Before using `Lazy<T>`, the values were displayed directly. Now, I need to click on the round button with the threads icon to evaluate the lazy value. This happens only on my properties that are retrieving the `.Value` of `Lazy<T>`. When expanding the debugger visualizer node of the actual `Lazy<T>` object, the `Value` property simply displays `null`, without any message.
Lazy<T>: "The function evaluation requires all threads to run"
CC BY-SA 3.0
0
2010-12-16T11:20:01.587
2018-09-05T21:32:27.480
2013-08-07T18:07:42.447
149,265
149,265
[ "c#", "visual-studio", "visual-studio-2010", "lazy-loading", "visual-studio-debugging" ]
4,460,500
1
4,460,651
null
1
1,493
I am creating a template. All xhtml/css work is done but a jquery image gallery. There are too many jquery galleries around and i do not know how to customize them according to situation This is a three column template..First column has navigation. second column will have image selected from thumbnails of 3rd column. Also there are up/down buttons in 3rd column that rotate thumbnails. ON clicking a thumbnail image should load in 2nd column's image div. Do i have to provide any more info? ![alt text](https://i.stack.imgur.com/1fpVZ.jpg)
custom jquery gallery
CC BY-SA 2.5
null
2010-12-16T11:56:24.437
2014-03-04T04:33:54.660
null
null
395,206
[ "jquery", "gallery" ]
4,460,757
1
4,461,051
null
1
2,605
I am using HtmlUnit in some programs and I always have the problem that whenever I use it, I have to add all the files (libraries) that I downloaded from HtmlUnit website so the jar file that I get is always 10 mb. These are the files that I add: ![alt text](https://i.stack.imgur.com/5qim8.jpg) But in most of my programs I only include this: ``` import com.gargoylesoftware.htmlunit.Page; import com.gargoylesoftware.htmlunit.RefreshHandler; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.html.*; ``` I usually only use WebClient and HtmlElements (HtmlForm, HtmlTable, etc.), so i find it strange that I need all of them. My question is if I could reduce the number of libraries included, or maybe better, how can I determine which libraries that I include are not being used at all.
Determine used libraries to reduce JAR file size
CC BY-SA 2.5
null
2010-12-16T12:29:52.010
2010-12-16T15:51:53.937
null
null
2,207,432
[ "java", "jar", "htmlunit" ]
4,461,085
1
4,461,480
null
1
552
I'm using Facebook like buttons on a website, they work perfectly. --- example image: ![alt text](https://i.stack.imgur.com/lgYnF.jpg) --- ### This is after trying display:block as Kyle suggested: ![alt text](https://i.stack.imgur.com/Ix7Og.jpg) ---
Facebook LIKE buttons are popping out of my divs - CSS
CC BY-SA 2.5
null
2010-12-16T13:12:15.353
2010-12-22T03:07:38.190
2020-06-20T09:12:55.060
-1
208,827
[ "html", "css", "internet-explorer", "facebook" ]
4,461,767
1
4,461,811
null
1
167
Can anyone tell me how to execute this layout with floats and clears? Ive been trying for 2 days with total failure ![alt text](https://i.stack.imgur.com/aScbW.jpg)
Floated Tableless Layout
CC BY-SA 2.5
0
2010-12-16T14:27:59.450
2010-12-16T14:40:22.270
2010-12-16T14:28:35.357
21,234
544,140
[ "css", "css-float" ]
4,462,035
1
4,462,719
null
10
5,287
I want to make my session cookie `HttpOnly`. Based on [this article](http://docs.cellblue.nl/2010/04/21/using-httponly-cookies-in-zend-framework-using-zend_session/), I added this to my `application.ini`: ``` resources.session.cookie_httponly = true ``` Unfortunately, when I look at the session cookie in [Firecookie](https://addons.mozilla.org/en-US/firefox/addon/6683/), it is marked as `HttpOnly` as I have specified. What step am I missing? ![alt text](https://i.stack.imgur.com/XrKZT.png)
Zend Framework, Sessions, and HttpOnly
CC BY-SA 2.5
0
2010-12-16T14:53:02.503
2013-04-27T10:25:26.010
2010-12-16T16:03:28.273
244,826
244,826
[ "php", "zend-framework", "session", "httponly" ]
4,462,168
1
4,462,230
null
2
732
I have a problem which has an solution that can be solved by iteration, but I'm wondering if there's a more elegant solution using regular expressions and `split()` I have a string (which excel is putting on the clipboard), which is, in essence, comma delimited. The caveat is that when the cell values contain a comma, the whole cell is surrounded with quotation marks (presumably to escape the commas within that string). An example string is as follows: ``` 123,12,"12,345",834,54,"1,111","98,273","1,923,002",23,"1,243" ``` Now, I want to elegantly split this string into individual cells, but the catch is I cannot use a normal split expression with comma as a delimiter, because it will divide cells that contain a comma in their value. Another way of looking at this problem, is that I can split on a comma if there is an number of quotation marks preceding the comma. This is easy to solve with a loop, but I'm wondering if there's a regular expression.split function capable of capturing this logic. In an attempt to solve this problem, I constructed the Deterministic Finite Automata (DFA) for the logic. ![alt text](https://i.stack.imgur.com/Y210D.png) The question now is reduced to the following: is there a way to split this string such that a new array element (corresponding to /s) is produced each time the final state (state 4 here) is reached in a DFA?
Split a string based on each time a Deterministic Finite Automata reaches a final state?
CC BY-SA 2.5
0
2010-12-16T15:05:34.977
2010-12-17T03:31:19.707
null
null
529,618
[ "regex", "string", "split", "finite-automata", "deterministic" ]
4,462,973
1
4,463,114
null
9
4,630
when I create a ListView in details view in VS2008, it creates a rather old looking listview. It doesnt have any of the fancy hover effects and cool blue border that (for example) the file explorer in WinVista and Win7 has. See image for example: ![alt text](https://i.stack.imgur.com/pv45T.png) So to summarise, how can I get a ListView in C# VS2008 look like the one in the picture above? (VS2008 listview on the right for comparison) Thanks
C# Windows7/Vista style ListView
CC BY-SA 2.5
0
2010-12-16T16:27:18.720
2013-08-18T12:20:33.957
2010-12-16T16:47:50.170
8,446
104,452
[ "c#", "winforms", "listview", "windows-7", "windows-vista" ]
4,463,478
1
null
null
1
68
I am sitting with a problem on how to structor a maven project. This is the structur on the project ![alt text](https://i.stack.imgur.com/3r3LS.jpg) So I am able to build every project like bbbbb/pom.xml and so on. Fx the bbbb/pom.xml has a parent that is in aaaaaa/parent/pom.xml. Then this has a parent in the root. But if I now want to build them all and add them all to a package how is that done?
Maven structor - how shall i make this the right way?
CC BY-SA 2.5
null
2010-12-16T17:14:03.603
2010-12-17T17:54:23.763
null
null
473,339
[ "maven-2", "maven", "pom.xml" ]
4,463,485
1
4,670,620
null
24
162,341
I must consume a PHP webservice which has a SSL certificate. My .net 3.5 Class library references the webservice with 'Add Service references' in Visualstudio 2010 (WCF right?). When calling the main method of the webservice I receive; I tried a lot, like ``` System.Net.ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult); public bool CheckValidationResult(Object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; } ``` But It wouldn't work. Also I have the certificate installed on my own machine. *Extra info; When I use the wsdl location in 'Add service reference' the same error occurs. Before I tried it, I worked with a static wsdl. ![alt text](https://i.stack.imgur.com/mMq3W.png)
Could not establish secure channel for SSL/TLS with authority '*'
CC BY-SA 3.0
0
2010-12-16T17:14:32.363
2022-05-27T12:21:03.687
2013-02-04T18:41:45.800
104,998
204,862
[ ".net", "wcf", "web-services", "ssl", "https" ]
4,463,481
1
4,502,610
null
4
4,230
I have some periodic data, but the amount of data is not a multiple of the period. How can I Fourier analyze this data? Example: % Let's create some data for testing: ``` data = Table[N[753+919*Sin[x/623-125]], {x,1,25000}] ``` % I now receive this data, but have no idea that it came from the formula above. I'm trying to reconstruct the formula just from 'data'. % Looking at the first few non-constant terms of the Fourier series: ``` ListPlot[Table[Abs[Fourier[data]][[x]], {x,2,20}], PlotJoined->True, PlotRange->All] ``` ![Mathematica graphics](https://i.stack.imgur.com/PWdsx.png) shows an expected spike at 6 (since the number of periods is really 25000/(623*2*Pi) or about 6.38663, though we don't know this). % Now, how do I get back 6.38663? One way is to "convolve" the data with arbitrary multiples of Cos[x]. ``` convolve[n_] := Sum[data[[x]]*Cos[n*x], {x,1,25000}] ``` % And graph the "convolution" near n=6: ``` Plot[convolve[n],{n,5,7}, PlotRange->All] ``` ![Mathematica graphics](https://i.stack.imgur.com/dZmLy.png) we see a spike roughly where expected. % We try FindMaximum: ``` FindMaximum[convolve[n],{n,5,7}] ``` but the result is useless and inaccurate: ``` FindMaximum::fmmp: Machine precision is insufficient to achieve the requested accuracy or precision. Out[119]= {98.9285, {n -> 5.17881}} ``` because the function is very wiggly. % By refining our interval (using visual analysis on the plots), we finally find an interval where convolve[] doesn't wiggle too much: ``` Plot[convolve[n],{n,6.2831,6.2833}, PlotRange->All] ``` ![Mathematica graphics](https://i.stack.imgur.com/ixddh.png) and FindMaximum works: ``` FindMaximum[convolve[n],{n,6.2831,6.2833}] // FortranForm List(1.984759605826571e7,List(Rule(n,6.2831853071787975))) ``` % However, this process is ugly, requires human intervention, and computing convolve[] is REALLY slow. Is there a better way to do this? % Looking at the Fourier series of the data, can I somehow divine the "true" number of periods is 6.38663? Of course, the actual result would be 6.283185, since my data fits that better (because I'm only sampling at a finite number of points).
Continuous Fourier transform on discrete data using Mathematica?
CC BY-SA 3.0
0
2010-12-16T17:14:21.957
2016-01-18T21:25:48.183
2016-01-18T21:25:48.183
4,370,109
null
[ "wolfram-mathematica", "fft" ]
4,463,517
1
null
null
0
195
I have encountered a condition where my app crashes with a particular dataset on Windows 7, 64-bit. All other platforms work fine on the same dataset. I have determined that my app is crashing in the BuildNotContainsExpression that many people have posted. Is there a way for the expression to be built using memory from the heap? Should I just break done my usersActive list and process smaller chunks at a time (like 1000)? Something else? ``` List<int> usersActive = myContext.myTable.Select(a => a.tableUsersSnapshot.id).Distinct().ToList(); // The code blows up (only on Win7 64-bit) on this line when usersActive is large ~4000 // (probably will blow up on all platforms if usersActive is sufficiently large) expTest = CustomExpressions.BuildNotContainsExpression<tableUsersSnapshot, int>(a => a.id, usersActive); List<tableUsersSnapshot> usersToDelete = myContext.myTableSnapshot.Where(expTest).ToList(); // Delete the objects in the delete list foreach(tableUsersSnapshot user in usersToDelete) { myContext.DeleteObject(user); } ``` Edit: Here's the BuildNotContains function - it is not recursive: ``` public static Expression<Func<TElement, bool>> BuildNotContainsExpression<TElement, TValue>(Expression<Func<TElement, TValue>> valueSelector, IEnumerable<TValue> values) { if (null == valueSelector) { throw new ArgumentNullException("valueSelector");} if (null == values) { throw new ArgumentNullException("values"); } ParameterExpression p = valueSelector.Parameters.Single(); // p => valueSelector(p) != values[0] && valueSelector(p) != ... if (!values.Any()) { return e => true; } var equals = values.Select(value => (Expression)Expression.NotEqual(valueSelector.Body, Expression.Constant(value, typeof(TValue)))); var body = equals.Aggregate<Expression>((accumulate, equal) => Expression.And(accumulate, equal)); return Expression.Lambda<Func<TElement, bool>>(body, p); } ``` Here's the applicable portion of my EDMX diagram: ![alt text](https://i.stack.imgur.com/3T8c6.png)
BuildNotContainsExpression causes System.StackOverflowException with large data set on Windows 7 -64-bit
CC BY-SA 2.5
null
2010-12-16T17:17:32.240
2010-12-17T15:39:07.667
2010-12-17T15:39:07.667
171,655
171,655
[ "c#", "linq-to-entities", "stack-overflow" ]
4,463,721
1
null
null
1
955
I have a question regarding failover with the JBoss application server (5.1) running JBoss ESB 4.9. I will begin with a diagram: ![diagram](https://i.stack.imgur.com/hBgwF.gif) We have a legacy application ("Legacy Producer") producing data on a legacy transport ("Legacy Transport"). We have written an ESB service ("Gateway") that listens on the legacy transport and puts the messages received on the ESB. The messages then follow several orchestration steps to be processed. This works correctly with one application server running. However, we wish to allow for the failure of an application server. A naive solution, then, is to stand up two such application servers (as shown), in a clustered configuration. However, since this would result in replicating the Gateway services, the result would be two copies of each message being published on the ESB and processed, an undesirable result. What is the correct way to implement this type of failover?
Failover of JBoss Application Server
CC BY-SA 2.5
0
2010-12-16T17:41:36.183
2012-01-15T12:42:57.170
2012-01-15T12:42:57.170
1,060,350
355,724
[ "jboss", "esb", "cluster-computing", "failover", "gateway" ]
4,463,724
1
4,464,476
null
0
701
I might be thickheaded but I can't seem to get the Janrain (former RPX) to work. I have done the following: - - - `var res = new Rpx("{myapi}", "http://{mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login");`- Whenever I try to call ``` var res = new Rpx("{myapi}", "http://{mysiteid}.rpxnow.com").AuthInfo("{mydomain.com/user/login") ``` I receive the error that the data is invalid on the following line: ``` doc.Load(dataStream); ``` ![alt text](https://i.stack.imgur.com/SF8bq.png) Does anyone know what I might be missing?
Janrain (RPX) basic setup
CC BY-SA 2.5
0
2010-12-16T17:41:52.667
2010-12-16T20:23:43.183
2010-12-16T20:23:22.840
79,465
79,465
[ "asp.net-mvc", "janrain", "rpxnow", "rpx" ]
4,463,774
1
4,465,366
null
3
5,745
i have a ListView set to Tileview. The ListView width is 300 and so is the tile width. This works fine when the number of tiles does not overflow resulting in a scrollbar. When it does overflow however, when the vertical scrollbar appears, a horizontal scrollbar also appears because the vertical scrollbar lowers the listview width for the tiles. Is there a way i can have the tiles autoresize to fill the listview? See example image: What currently happens: ![alt text](https://i.stack.imgur.com/i49en.png) What i want to happen: ![alt text](https://i.stack.imgur.com/PA2mO.png) I tried setting the width to 100% but that doesnt work. Any ideas?
C# ListView Tile Width 100%?
CC BY-SA 2.5
0
2010-12-16T17:47:39.243
2020-10-03T09:49:31.857
2020-10-03T09:49:31.857
2,854,140
104,452
[ "c#", "winforms", "listview", "tiles", "fluid-layout" ]
4,463,785
1
4,463,836
null
2
595
I want to place an image beside a text like this: ``` <div class="views">text<img src="..."></img></div> ``` This is the result: ![alt text](https://i.stack.imgur.com/s57LC.png) but it should look like: ![alt text](https://i.stack.imgur.com/C1w7q.png) any idea how to position the elements on one vertical line?
Position image and text on one vertical line
CC BY-SA 2.5
0
2010-12-16T17:49:03.387
2010-12-16T17:56:06.237
2010-12-16T17:56:06.237
128,165
401,025
[ "html", "css", "image" ]
4,463,795
1
4,658,280
null
6
2,798
I'm trying to render a world map shapefile on my Geoserver with a Mercator projection. I've tried declaring the SRS on Geoserver and defining EPSG projections of 3785 or 900913 in Openlayers with no success. I've also tried to reproject the shapefile using ogr2ogr but the result is slightly off. Original:![Original](https://i.stack.imgur.com/HOIiM.png) Converted: ![alt text](https://i.stack.imgur.com/D3q2M.png) Here's the command used: ``` ogr2ogr -t_srs EPSG:3785 target.shp source.shp ``` I'm new to this technology & mapping concepts. Any pointers would be greatly appreciated!
Mercator projection world map with Geoserver and Openlayers
CC BY-SA 2.5
null
2010-12-16T17:50:05.280
2011-02-26T17:42:34.153
2010-12-17T03:35:14.167
481,927
223,214
[ "openlayers", "shapefile", "geoserver", "proj4js", "mercator" ]
4,463,933
1
4,464,141
null
21
2,909
I want to visually join two circles that are overlapping so that ![AltText](https://i.stack.imgur.com/5SqXU.jpg) becomes ![alt text](https://i.stack.imgur.com/lNCnF.jpg) I already have methods for partial circles, but now I need to know how large the overlapping angle for earch circle is, and I don't know how to do that. Anyone got an Idea?
How to join overlapping circles?
CC BY-SA 2.5
0
2010-12-16T18:06:53.733
2011-07-11T12:47:04.267
null
null
522,479
[ "c#", "math", "opengl", "geometry", "opentk" ]
4,464,011
1
4,464,074
null
0
64
I'm getting this message when I try and attach to process. How do I fix this?: ![alt text](https://i.stack.imgur.com/n0oye.jpg)
Can't debug web app
CC BY-SA 2.5
null
2010-12-16T18:15:09.217
2010-12-16T18:21:50.753
null
null
534,101
[ ".net", "debugging" ]
4,464,315
1
4,514,138
null
0
413
I have a display problem with my extjs app that I need advice on how to resolve. I have a seemingly innocent Panels with buttons in the bottom toolbar dispersed on the different views of my app. The problem is that the buttons are not being fully displayed. Here's the way they should look: ![alt text](https://i.stack.imgur.com/Ydy19.png) And here's what is happening: ![alt text](https://i.stack.imgur.com/yi6oB.png) I've played around a little with doLayout(), but it still cuts the buttons off. Here's a good clue: resizing the browser window makes the page resize and the buttons display as they're supposed to. Subsequent visits to that page are fine. Any ideas? Here's (roughly) my panel nesting: ``` ViewPort --Card Panel (center) ----Card Panel ------Form Panel <-- mis-rendered bbar is here. ``` Thanks for any help on this one!
Panel BBar buttons being cut off
CC BY-SA 2.5
null
2010-12-16T18:50:53.363
2010-12-22T22:02:36.817
null
null
412,099
[ "layout", "extjs" ]
4,464,571
1
4,527,735
null
15
11,380
I am working on a website which uses multiple css3 gradients as overlay for a background tiled with texture image site url: currently for header i am using following css: ``` #header { background: #DBD6D3; height: 364px; background: -moz-radial-gradient(50% 0% 0deg,circle farthest-corner,#FFFFFF,#DBD6D3); background: -webkit-gradient(radial,50% 59,500,50% 0,40,from(#DBD6D3),to(#FFFFFF)); } #header .wrp{background:url('img/headerBg.png');height:100%;padding-top:40px;} ``` here headerBg.png is a semi-transparent texture of size 5x5 pixel, ad for body I need to create this background: ![alt text](https://i.stack.imgur.com/GTFu7.jpg) I need to know how to make this kind of radial background in CSS3, initially I had used same code as header but with rgba() for color, setting end of the gradient with 0 opacity but it created too much noise. tried few online generators as well for CSS3 radial background but none of them were good! This image i am using is taking up 280kbs and I want to reduce it as it significantly effects the performance! Help would be appreciated. update: Upload psd, can be downloaded from [http://ylspeaks.com/stackoverflow_css3.zip](http://ylspeaks.com/stackoverflow_css3.zip) and adding bounty
CSS3 Radial Gradients with RGBA()
CC BY-SA 2.5
0
2010-12-16T19:23:24.357
2011-10-20T05:02:56.863
2011-10-20T05:02:56.863
106,224
387,387
[ "css", "background", "textures", "radial-gradients" ]
4,464,910
1
4,465,232
null
2
964
I am relatively new Java developer that's been thrown in the deep end, my usual skillset lies in Microsoft products and C#. However I have managed to write a nice web service using Restlet and incorporating Toplink and doing some database CRUD stuff, etc etc. I developed this in Eclipse against Tomcat 5.5. I followed tutorials and examples and managed to throw something together that works. I had all my jar files in WebContent/WEB-INF/lib directory of my project - I soon realised that when I export this as a WAR file and deploy in Tomcat, it takes these jar files with it and stores them local to the application. Fine, but then when you try to undeploy the app, it only does it partially as Tomcat "holds on" to some of the jars it was using i.e. the Oracle JDBC, and Toplink ones. This makes sense as the web service was using these jars as there was a live Oracle connnection going on. So then I thought I should have all these jars in a common place where all deployed apps can access them, that folder I believe is: C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib (in my case). This made total sense, it's logical as you don't want loads of apps on Tomcat all referencing the same jars. So I removed all the jars out of my projects lib folder and put them in the common\lib directory. Now my app will not work properly - it can't find my source code in src, the custom bespoke code that I have programmed against these jars. It will only work if I jar up my source code and put in the directory stated above. Odd. I am obviously very confused with class paths and build paths and all of that stuff, and must have got this sort of stuff all wrong as I am no Java expert, as I readily admit I have pretty much hacked this together - so can anyone explain to me in laymans terms how I should structure my project to get it working with jars held in a common folder in Tomcat. Or are there any good resoureces on the web to help explain to me what I should do. Hope this all makes sense... Here is a pic of my current project: ![alt text](https://i.stack.imgur.com/bJgwL.jpg)
How do I properly deploy and structure projects in Eclipse against Tomcat?
CC BY-SA 2.5
null
2010-12-16T20:09:03.773
2010-12-16T21:07:56.393
2010-12-16T20:56:21.257
5,175
5,175
[ "java", "eclipse", "tomcat" ]
4,465,769
1
null
null
0
1,366
I'm new to Rational Software Architect 8 and OCL. I defined a profile that consists of two stereotypes, one applied to a class and another one applied to an association. See the figure for more detail. ![alt text](https://i.stack.imgur.com/cZWfb.png) Now, I'd like to express a constraint using OCL: if a class has the <> stereotype, then I want all the associations connected to that class to have the stereotype. It is worth noting that the classes stereotyped with will not have attributes or operations. I created a small example to test my OCL constraint. Here is the diagram, as well as the relevant bits of the corresponding xmi file, as produced by RSA. ![model](https://i.stack.imgur.com/P4buz.png) ``` <packageImport xmi:id="_dNGWEwhgEeCzvt5Jj9Wjpg"> <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/> </packageImport> <packagedElement xmi:type="uml:Class" xmi:id="_sUoV4AhgEeCzvt5Jj9Wjpg" name="ProfileClass"/> <packagedElement xmi:type="uml:Class" xmi:id="_LkpUwAkoEeCs_vLJf1t9eg" name="Perm1"> <ownedAttribute xmi:id="_PjkJ8Qk_EeCD2J3jYOsnVw" name="clas" visibility="private" type="_OWO0IAk_EeCD2J3jYOsnVw" association="_PjbAAAk_EeCD2J3jYOsnVw"> <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PjkJ8wk_EeCD2J3jYOsnVw" value="1"/> <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PjkJ8gk_EeCD2J3jYOsnVw" value="1"/> </ownedAttribute> </packagedElement> <packagedElement xmi:type="uml:Class" xmi:id="_OWO0IAk_EeCD2J3jYOsnVw" name="class1"> <ownedAttribute xmi:id="_PjbAAQk_EeCD2J3jYOsnVw" name="perm1" visibility="private" type="_LkpUwAkoEeCs_vLJf1t9eg" association="_PjbAAAk_EeCD2J3jYOsnVw"> <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_PjkJ8Ak_EeCD2J3jYOsnVw" value="1"/> <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_PjbAAgk_EeCD2J3jYOsnVw" value="1"/> </ownedAttribute> </packagedElement> <packagedElement xmi:type="uml:Association" xmi:id="_PjbAAAk_EeCD2J3jYOsnVw" name="gets" memberEnd="_PjbAAQk_EeCD2J3jYOsnVw _PjkJ8Qk_EeCD2J3jYOsnVw"/> ``` It seemes to me that an association end, when it is flagged as navigable, is a Property, just like an attribute. I tried the following constraint on the -stereotyped classes (and a few variations) but it doesn't seem to work correctly. You might have noticed that on the example I created, the association doesn't have the required stereotype, and therefore the verification should fail. However, it succeeds. ``` self.base_Class.getAllAttributes()->forAll(att:Property | att.association.getAppliedStereotype('testProfile::RPAssignment') <> null) ``` Am I missing something trivial here?
OCL constraint on a UML profile in Rational Software Architect 8
CC BY-SA 2.5
null
2010-12-16T21:57:46.333
2018-11-22T16:33:31.587
2018-11-22T14:07:02.807
787,480
null
[ "uml", "ocl" ]
4,465,802
1
4,465,830
null
16
9,101
Is there a way you can think of that yo can avoid Google chrome built in text are adjustment. See how ugly it looks: ![alt text](https://i.stack.imgur.com/ZYdbv.png) :) I know why it's there and I find it a very useful feature but in some design-oriented pages, you might want to remove it.
How to disable Google Chrome text area size adjustment
CC BY-SA 3.0
0
2010-12-16T22:02:43.090
2013-04-04T15:57:54.723
2013-04-04T15:57:54.723
463,065
463,065
[ "html", "css", "google-chrome", "resize", "textarea" ]
4,466,152
1
null
null
12
51,103
Hopefully this is an easy one. I have a series of charts in MS Excel that point to data on the same worksheet. The data on the worksheet is calculated using a VBA function. When the data is updated by the VBA function the new numbers are not reflected in the charts that are pointing to them. I tried calling Application.Calculate, but that didn't do the trick. Any thoughts? --- UDPATE: I was able to duplicate this issue on a much smaller scale. Here's how: - - - - Open the Summary sheet in the VBA editor and paste the following code:> ``` Private Sub Worksheet_Change(ByVal Target As Range) If Target.Parent.Range("worksheetDate") = Target Then Application.CalculateFull End If End Sub ``` - Create a new VBA module- Paste the following code into the new VBA module (I apologize - I can't get Stack Overflow to format this correctly for the life of me - this is the best I could get it to do): . ``` Function getWeekValue (weekNumber As Integer, valuesRange As Range) As Integer Dim aCell As Range Dim currentDate As Date Dim arrayIndex As Integer Dim weekValues(1 To 6) As Integer currentDate = ThisWorkbook.Names("worksheetDate").RefersToRange.Value arrayIndex = 1 For Each aCell In valuesRange If month(currentDate) = month(ThisWorkbook.Sheets("Data").Cells( _ aCell.Row - 1, aCell.Column)) Then weekValues(arrayIndex) = aCell.Value arrayIndex = arrayIndex + 1 End If Next getWeekValue = weekValues(weekNumber) End Function ``` . - Modify the Data worksheet to match the following image: ![alt text](https://i.stack.imgur.com/tuKwq.jpg) - - ![alt text](https://i.stack.imgur.com/xJYzO.jpg) - . ``` = getWeekValue(1, Data!$A$2:$M$2) ``` incrementing the first argument to the getWeekValue function by one for each week (e.g., pass 1 for Week 1, 2 for Week 2, 3, for Week 3, etc. - - - Oddly, after a period of time (several minutes) has elapsed, the chart finally updates. I'm not sure if this is because I have been performing other activities that triggered the update or because Excel is triggering an update after several minutes.
Charts Do Not Automatically Update When Data Changes
CC BY-SA 3.0
0
2010-12-16T22:50:47.250
2020-10-05T11:36:29.923
2018-07-09T18:41:45.953
-1
190,767
[ "excel", "excel-2007", "vba" ]
4,466,520
1
4,466,788
null
5
1,799
In order to specify some things first: The user should be able to create a graph by specifying 3 to 5 points on a 2D field. The first and the last points are always at the bounds of that field (their position may only be changed in y direction - not x). The derivation of the graph at these positions should be 0. The position of the 3rd and following points may be specified freely. A graph should be interpolated, which goes through all the points. However, this graph should be as smooth and flat as possible. (please apologize for not being mathematically correct) The important thing: I need to sample values of that graph afterwards and apply them to a discrete signal. Second thing: Within the range of the x-Axis the values of the function should not exceed the boundaries on the y-Axis.. In my pics that would be 0 and 1 on the y-Axis. I created some pics to illustrate what I am talking about using 3 points. Some thoughts I had: 1. Use (cubic?) splines: their characteristics could be applied to form such curves without too many problems. However, as far as I know, they don't relate to a global x-Axis. They are specified in relation to the next point, through a parameter usually called (s). Therefore it will be difficult to sample the values of the graph related to the x-Axis. Please correct me when I am wrong. 2. create a matrix, which contains the points and the derivations at those points and solve that matrix using LU decomposition or something equivalent. So far, I don't have in depth understanding of these techniques, so I might miss some great technique or algorithm I haven't known about yet. There is one more thing, that would be great to be able to do: Being able to adjust the steepness of the curve via the change of one or a few parameters. I illustrated this by using a red and a black graph in some of my pictures. Any ideas or hints how to solve that efficiently? ![alt text](https://i.stack.imgur.com/zljzA.png) ![alt text](https://i.stack.imgur.com/aA6vx.png) ![alt text](https://i.stack.imgur.com/8MA44.png)![alt text](https://i.stack.imgur.com/eZdLP.png)
Is there a simple way to compute a "smooth" function with the following characteristics in C/C++?
CC BY-SA 2.5
0
2010-12-16T23:54:05.487
2010-12-17T01:32:25.580
2010-12-17T00:06:56.527
473,950
473,950
[ "c++", "function", "math", "graph", "interpolation" ]
4,466,757
1
4,499,767
null
3
1,157
I am trying to layer these: ![gametile_masked_file](https://i.stack.imgur.com/1Oi9y.png) ![gamertile_masked_file](https://i.stack.imgur.com/KEDme.png) ![sanctum-background.png](https://i.stack.imgur.com/9fCNl.png) into this: ![alt text](https://i.stack.imgur.com/eMUB2.png) But what I keep getting is this: ![alt text](https://i.stack.imgur.com/oBffP.png) This is the relevant code, Im not sure what Im missing: ``` $sig_background = imagecreatefrompng("sanctum-signature.png"); imagealphablending($sig_background, false); imagesavealpha($sig_background, true); $sig_gamertile = imagecreatefrompng($gamertile_masked_file); imagealphablending($sig_gamertile, false); imagesavealpha($sig_gamertile, true); $sig_gametile = imagecreatefrompng($gametile_masked_file); imagealphablending($sig_gamertile, false); imagesavealpha($sig_gamertile, true); imagecopymerge($sig_background, $sig_gamertile, 175, 2, 0, 0, 64, 64, 100); imagecopymerge($sig_background, $sig_gametile, 342, 20, 0, 0, 64, 64, 100); ``` If any more information is missing, please let me know and Ill try to fill in the blanks. Thank you for your time. edit - here are links to the files (hosted on photobucket) [gamertile](http://i5.photobucket.com/albums/y195/gViscardi/misc/darkcollins-masked.png) [gametile](http://i5.photobucket.com/albums/y195/gViscardi/misc/1Wdsb2JhbC9ECgUNGgMfVlonL2ljb24vMC84MDAwAAAAAAAAAPpVSyA-masked.png)
How to merge PNGS with alpha channels into one larger image?
CC BY-SA 2.5
null
2010-12-17T00:39:56.663
2010-12-21T13:31:03.597
2010-12-17T02:14:26.077
18,953
18,953
[ "php", "transparency", "gd" ]
4,466,846
1
4,466,861
null
2
309
![alt text](https://i.stack.imgur.com/FAD0V.jpg) For some reason the labels for "Date From" and "Date To" are rendering strangely on their bottom edges. See how the datepickers are not rendered correctly because of this. Anyone know why this is occurring? It only occurs when I start the app from the exectuable. It doesn't happen in the IDE.
C#: strange rendering in WinForms
CC BY-SA 2.5
0
2010-12-17T01:00:50.610
2010-12-17T17:06:32.323
2010-12-17T01:14:52.447
541,415
541,415
[ "c#", "winforms", "label" ]
4,466,865
1
4,466,942
null
0
892
I have this problem in a production application where query string parameters are being added to the login redirect url. To reproduce this, create a new MVC project (I tested with both MVC2 and MVC3 R2). In the `HomeController` add the following action: ``` public ActionResult Break() { return new HttpUnauthorizedResult(); } ``` Launch the application and hit `/home/break?a=1&b=2`. So this should naturally redirect to `/Account/LogOn?ReturnUrl=/home/break%3fa%3d1%26b%3d2` but it actually adds the requested parameters (`&a=1&b=2`) to the end of the url as well: ![alt text](https://i.stack.imgur.com/7Revf.png) Why is this happening? There's no need for those parameters to be added since the encoded url in `ReturnUrl` has the required parameters. I thought it would be something in the production application, but if the steps above are followed, a default MVC application will reproduce this as well. Any thoughts on how to solve this are appreciated.
ASP.NET MVC UnauthorizedResult adding unwanted parameters to login url
CC BY-SA 2.5
null
2010-12-17T01:05:30.620
2010-12-17T01:24:34.677
2010-12-17T01:16:04.740
200,322
200,322
[ "c#", "asp.net-mvc", "asp.net-mvc-2", "asp.net-mvc-3" ]
4,467,091
1
4,467,705
null
1
1,238
I have a list of objects which will be accessible by many objects across many threads. To ensure thread safety I have made the list and its object read-only. My only concern is the iterators of the `List<>` object because I remember reading something about iterator thread safety issues. Do I have a problem? ![alt text](https://i.stack.imgur.com/MGsE4.png) For clarification: in the BarObservable class, the `List < Bar >` bar is read-only. The individual bars of the list are also read-only. The MarketDataAdaptor class uses BarService to add new bars to BarsObservable class. The diagram doesn't show this but the IBarObservers are passed a reference to the `List < Bar >` . They can't write to it but they do use the iterator of the List. Meanwhile the final bar is updated and once finalized a new bar is added to the end of the list.
Thread-safety accessing a List<> of read-only objects
CC BY-SA 2.5
null
2010-12-17T02:04:41.737
2010-12-17T04:31:48.380
2010-12-17T03:11:38.387
270,589
270,589
[ "c#", "multithreading", "thread-safety" ]
4,467,270
1
4,469,271
null
8
4,457
I used to use Pythia to obfuscate my D6 program. But it seems Pythia does not work anymore with my D2007. Here's the link of Pythia (no update since early 2007) : [http://www.the-interweb.com/serendipity/index.php?/archives/86-Pythia-1.1.html](http://www.the-interweb.com/serendipity/index.php?/archives/86-Pythia-1.1.html) From link above, here's what I want to achieve ![alt text](https://i.stack.imgur.com/4Enyf.png)
Is there a Delphi obfuscator that works for >= Delphi 2007
CC BY-SA 2.5
0
2010-12-17T02:54:45.773
2012-01-03T20:34:12.977
2010-12-17T04:00:33.480
91,299
457,067
[ "delphi", "obfuscation" ]
4,467,422
1
4,467,803
null
3
9,307
Sup fellas, so I have a navigation controller with a table view to which I am trying to add a tool bar, however, the way I have implemented it causes the very last row in the table to be hidden behind the tool bar. I will try to illustrate via pictures: Table view scrolled to the bottom without tool bar: ![alt text](https://i.stack.imgur.com/7vBWw.png) Table view scrolled to the bottom with tool bar(notice how the last "Vendor" row is concealed behind the tool bar): ![alt text](https://i.stack.imgur.com/8bWgl.png) I was following [this](http://www.eduoliveros.com/2009/02/navigation-controller-with-toolbar.html) guide and this is what I ended up doing for my implementation: ![alt text](https://i.stack.imgur.com/xlEXs.png) As you can see I have a "View" instead of "Window" to work with. Here is the code I have for displaying the tool bar: ``` - (void)viewDidLoad { [super viewDidLoad]; [self.view addSubview:self.navigationController.view]; [self.view addSubview:toolbar]; [self.navigationController.view setFrame:self.view.frame]; } ``` It seems to me that I need to adjust the frame of the navigation controller frame to compensate for the tool bar being at the bottom. This is where I am stuck. How would I go about doing this? Any help appreciated!
Adding Toolbar to Navigation Controller
CC BY-SA 2.5
0
2010-12-17T03:33:37.897
2012-11-01T12:03:58.560
2011-01-01T06:34:00.460
220,819
347,339
[ "objective-c", "cocoa-touch", "uitableview", "ios" ]
4,467,486
1
null
null
6
1,555
I am developing an Android app that will run as a service most of the time. The user would be able to control it via the status bar -- including the ability to stop the service altogether. Even though I am able to make a custom view and put buttons on the Notifications area [see Figure 1], I would like to be able to put it above the "Android"/Service Provider's name. Much in the same way as the Music Player app does this [see Figure 2]. That way, even if the user clears their notifications, my app's control panel will remain active as long as the service is running. What's the best way to do that, please? ![Figures 1 and 2](https://i.stack.imgur.com/kn2ZN.png) [Original Image Link](https://i.stack.imgur.com/EZV6j.png)
Add Buttons Above the Notifications Tab in the Status Bar
CC BY-SA 2.5
0
2010-12-17T03:46:03.543
2013-12-01T13:03:09.397
2010-12-17T16:32:47.333
212,275
545,590
[ "android" ]
4,467,890
1
4,469,447
null
1
2,687
I have windows 7 32 bit and IE 8 32 bit. When I try to run the tests using *iexplore, I get a blank window. However, when I run the tests in XP and IE 7, the tests execute perfectly. Please see the image below. ![alt text](https://i.stack.imgur.com/7Pnzd.jpg) Any remedies ? Thanks
Selenium can't start IE8 on Windows 7
CC BY-SA 2.5
null
2010-12-17T05:16:03.017
2011-06-24T21:10:57.400
2011-06-24T21:10:15.590
68,939
350,648
[ "internet-explorer", "selenium", "selenium-rc" ]
4,467,891
1
4,612,971
null
5
5,094
I am using the following for achieving rounded corners: ``` -moz-border-radius: 10px; border-radius: 10px; -webkit-border-radius: 10px; ``` This is working in all browsers (excluding IE though) except Chrome. Here is how it looks in Chrome: ![alt text](https://i.stack.imgur.com/NCf1j.jpg) but the same page is displayed fine in Safari. Being Webkit browsers why is there a difference in between these two browser displays? This is how it looks in Safari: ![alt text](https://i.stack.imgur.com/36lug.jpg) Why is this happening? Here is the mark-up I am using: html: ``` div#one1 { position: relative; border-bottom: solid 2px #2D2DFF; width: 800px; height: 100px; color: #FFF; -moz-border-radius-topleft: 10px; -moz-border-radius-topleft: 10px; border-radius-topleft: 10px; border-radius-topleft: 10px; -webkit-border-top-left-radius: 20px; -webkit-border-top-right-radius: 20px; box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 20px rgba(255, 255, 255, 0.25), inset 0 -15px 150px rgba(0, 0, 0, 0.3); -o-box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 20px rgba(255, 255, 255, 0.25), inset 0 -15px 150px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 20px rgba(255, 255, 255, 0.25), inset 0 -15px 150px rgba(0, 0, 0, 0.3); -moz-box-shadow: inset 0 0.5px rgba(255, 255, 255, 0.3), inset 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 20px rgba(255, 255, 255, 0.25), inset 0 -15px 150px rgba(0, 0, 0, 0.3); } ``` ``` <div id="one1"> this is one event that is going to happen..... <br />and then the other....... <br /> </div> ```
Rounded corners in Chrome not working
CC BY-SA 3.0
0
2010-12-17T05:16:07.283
2017-05-02T16:59:22.167
2017-05-02T16:59:22.167
472,495
522,058
[ "google-chrome", "css", "rounded-corners" ]
4,467,944
1
null
null
20
7,076
I recently enabled AppEngine's Datastore Admin. I do not understand the instructions on how to copy my data to another app. > Note: The target application must enable remote_api and must include this application’s ID in its HTTP_X_APPENGINE_INBOUND_APPID list.WARNING This application’s data is writable. We can only guarantee a consistent copy when the data being copied is read-only. Note: Blobs (binary data) will not be copied. To enable the remote_api I included the following in the app.yaml: ``` builtins: - remote_api: on ``` I have no idea what HTTP_X_APPENGINE_INBOUND_APPID is, and a Google search yields no results....any ideas? ![alt text](https://i.stack.imgur.com/ytWNM.png) ![alt text](https://i.stack.imgur.com/oJvRz.png)
How use AppEngine's Datastore Admin: Copy to Another App Feature
CC BY-SA 2.5
0
2010-12-17T05:26:36.017
2014-10-23T07:05:01.523
2010-12-17T19:04:43.790
322,765
322,765
[ "google-app-engine" ]
4,467,977
1
4,468,020
null
1
450
I have the following: ``` var parsed_contacts = jQuery.parseJSON(conts); $('#contacts > li > a').click(function(event){ target_id = event.target.id; //yields a Google App Engine entity key bound to a <a> id property. (e.g "agdldHJlYnVncg0LEgdDb250YWN0GFgM", with quotes) console.log(parsed_contacts[target_id]); //Yields undefined }); ``` And here's what i get from `console.log(parsed_contacts)` : ![alt text](https://i.stack.imgur.com/JHSM2.png) [Click for bigger image](https://i.stack.imgur.com/JHSM2.png) How should i proceed? Thanks in advance!
How to access a JSON key dynamically with jQuery
CC BY-SA 2.5
null
2010-12-17T05:33:08.700
2010-12-17T05:41:17.970
2010-12-17T05:41:17.970
313,194
313,194
[ "jquery", "json" ]
4,468,063
1
4,468,455
null
0
69
I am running a Java Program in command prompt The normal course is after successfully executing the program it comes back to prompt .. what are the possible reasons it will not come back to prompt after successfully executing the program why is it not coming back to prompt after execution ![alt text](https://i.stack.imgur.com/RiUpu.png) usually it comes back but sometimes it doesn't...
What are the possible reasons that even after successfull execution control doesnt come back to prompt?
CC BY-SA 2.5
0
2010-12-17T05:48:07.793
2010-12-17T07:22:30.490
null
null
392,315
[ "java" ]
4,468,158
1
null
null
1
283
I wish to replicate the effect I see in the iPad Twitter application, thus: ![alt text](https://i.stack.imgur.com/wLHtr.jpg) How?
How can I replicate the rotation and animation effects I see in the Twitter iPad app?
CC BY-SA 2.5
null
2010-12-17T06:07:11.223
2011-05-12T08:56:43.323
2010-12-17T06:12:17.053
23,897
524,984
[ "iphone", "xcode", "ipad", "animation", "twitter" ]
4,468,691
1
4,469,013
null
0
121
![alt text](https://i.stack.imgur.com/mlmKT.png) ``` Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim lab As Label = Me.GridView1.FindControl("Label1") If TextBox2.Text = "7" Then GridView1.SelectedRow.Cells(2).Text = "500" Else GridView1.SelectedRow.Cells(2).Text = "950" End If End Sub ``` The following error occurs :
what is wrong in my this vb.net code
CC BY-SA 2.5
null
2010-12-17T08:07:45.380
2010-12-17T09:09:14.583
2010-12-17T08:11:21.880
169,442
522,211
[ "asp.net", "vb.net" ]
4,468,967
1
4,469,170
null
6
2,665
I am using cygwin 1.77 on windows vista. I'm facing problems with the output from `sbt` in the shell. Some relevant environment vars: ``` TERM=cygwin CYGWIN=server LANG=C.UTF-8 ``` (1) When I type `sbt test` the shell contains a lot of unprintable characters: ![alt text](https://i.stack.imgur.com/EkvSA.jpg) How can I fix this ? My sbt shell script looks like this: ``` dir=`dirname $0` stty -icanon min 1 -echo > /dev/null 2>&1 java -Djline.terminal=jline.UnixTerminal -Xmx512M -jar `cygpath -w $dir`/sbt-launch-0.7.4.jar "$@" stty icanon echo > /dev/null 2>&1 ``` (2) The `sbt` command cannot find the `scalatest` jar & I don't know how to configure it to download it via ivy. It works if I drop the jar into the `lib` folder.
Two problems with sbt in cygwin / vista
CC BY-SA 2.5
0
2010-12-17T09:01:30.080
2010-12-17T09:32:54.403
null
null
450,278
[ "scala", "command-line", "windows-vista", "cygwin", "sbt" ]
4,469,026
1
4,469,182
null
1
898
I'm loading 3D objects (obj or 3ds or collada files) into my openGL application. The 3 environment is quite large (a few hundred metres in all axis'). My problem is that smaller 3D objects (i.e. in the order of ~< 1-2m ) don't appear to be depth-tested properly. Depending on the zoom of the camera, I can sometimes see the back face of the object (I have been using a simple cube for testing) or other faces becoming visible/invisible/torn. Please see the attached images for a better explanation. I am led to believe the problem is due to mipmapping being enabled. I would either like to disable mipmapping (can someone suggest a simple, fast way to do this) or set the resolution to be greater for the mipmapped objects. Or am I barking up the wrong tree completely? ![alt text](https://i.stack.imgur.com/Hu6dJ.png) ![alt text](https://i.stack.imgur.com/xHy44.png) ![alt text](https://i.stack.imgur.com/T9ccw.png) Thanks Chris
MipMapping problems in OpenGL
CC BY-SA 2.5
null
2010-12-17T09:11:16.650
2010-12-17T09:39:24.220
null
null
410,921
[ "opengl", "textures", "mipmaps", "tearing" ]
4,469,179
1
null
null
0
224
I have this site which was developed few years back. At that time it was developed keeping 1024x768 resolution in mind. Now a days people use much higher resolution. I was thinking if it is possible to open the site zoomed in automatically if the resolution of user's monitor is set considerably higher than 1024x768? Right now if I look my site on my macbook it looks like following: ![alt text](https://i.stack.imgur.com/4AXjw.png) I would like it to be opened up like following: ![alt text](https://i.stack.imgur.com/BUztg.jpg) I hope I have explained the question correctly.
Is it possible to open the site zoomed in based on resolution of user's monitor?
CC BY-SA 2.5
0
2010-12-17T09:33:25.953
2010-12-17T12:50:28.833
2010-12-17T09:38:27.267
168,177
70,730
[ "javascript", "html", "resolution" ]
4,469,342
1
4,520,007
null
7
1,139
![alt text](https://i.stack.imgur.com/2H7Hd.png) Above is a simplification of what my model looks like. My app has a `NSWindowController` object controlling two `NSViewController` objects for the and entities. When a user logs in to the app, they can modify user or account information by bringing up the relevant view controller. In the background I have the application periodically populating the user's logs in the application delegate on a separate thread. I am using a separate `NSManagedObjectContext` for the background thread and the application delegate's `NSManagedObjectContext` for data entry in the view controllers. I would like to know a few things: 1) is this good practice? Should I create a `NSManagedObjectContext` for each view controller and then merge the contexts whenever the user is done making changes? 2) Because the entity is created in the background thread, it has it's own `NSManagedObjectContext`. However, each log includes information from the and , which are created in the application delegate's `NSManagedObjectContext`. This is how I am fetching a user: ``` - (NSManagedObjectID*) fetchUser:(NSString*) userID { NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"user":inManagedObjectContext:self.managedObjectContext]; /** snip **/ } ``` This method is called by the background thread as follows: ``` NSManagedObjectID* userObjectID = [self fetchUser:userID]; NSManagedObject* userObject = [self.logsManagedObjectContext objectWithID:userObjectID]; ``` Is what I'm doing in `fetchUser` thread-safe? Do I need to lock the main managed object context while fetching a user in case one of the views is modifying the same user? From [this article](http://losingfight.com/blog/2006/10/14/core-data-and-multi-threading/) I understand (perhaps incorrectly) that I may have to do so. So far I haven't run into any problems but I don't want to leave a potential edge case. 3) When one of the view controllers makes changes to the application delegate's `NSManagedObjectContext` it posts a notification that is handled as follows: ``` - (void)contextDidSave:(NSNotification *)notification { SEL selector = @selector(mergeChangesFromContextDidSaveNotification:); [self.logManagedObectContext performSelector:selector onThread:backgroundThread withObject:notification waitUntilDone:NO]; } ``` Is this how I should handle the merge or should I be merging the application delegate's `NSManagedObjectContext` instead? I found that doing that (on the main thread) locked up the UI. Any help will be appreciated.
Help with multithreaded Core Data app design
CC BY-SA 2.5
0
2010-12-17T09:54:05.700
2010-12-23T16:34:17.567
2010-12-18T00:22:38.627
519,559
519,559
[ "objective-c", "multithreading", "core-data", "thread-safety" ]
4,469,433
1
null
null
0
793
how to add 'more' uibarbutton items in single uitoolbar or navigation bar. for ex have a look at below image here barbutton items are hidding in right corner instead of it i just want to add more button like tabbar application.... any suggestions n samples url....![ ](https://i.stack.imgur.com/N0mFw.png)
More uibarbutton items in single uitoolbar or navigationbar
CC BY-SA 2.5
null
2010-12-17T10:07:45.793
2010-12-17T10:14:02.133
null
null
474,442
[ "iphone", "objective-c", "ipad", "uibarbuttonitem", "uitoolbaritem" ]
4,469,519
1
4,469,985
null
17
3,847
At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator. To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target) So the procedure to duplicate once the emulator loads is press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait The view rotates to landscape, and then back to portrait, as expected the view rotates to landscape, and then nothing, it stays in landscape even the emulator is displaying the phone in landscape mode (see below) ![enter image description here](https://i.stack.imgur.com/VA8nJ.jpg) Has anyone else had this issue, or have I installed the emulator in some incorrect way - this hasn't been an issue with any of the previous emulators
why does the gingerbread emulator orientation get stuck in apps?
CC BY-SA 3.0
0
2010-12-17T10:19:07.057
2018-01-19T10:35:27.923
2013-04-16T14:59:20.060
2,273,628
516,951
[ "android", "android-emulator", "screen-orientation", "android-sdk-2.3" ]
4,469,780
1
4,470,350
null
2
995
According to [android 2.3](http://developer.android.com/sdk/android-2.3.html) some RTL languages such as Arabic is supported in this new version. However, emulator does not show the fount correctly. In code I have written: ``` public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView txt = (TextView) findViewById(R.id.myText); Typeface font = Typeface.createFromAsset(getAssets(), "Larabieb.ttf"); txt.setTypeface(font); txt.setTextSize(26); txt.setText("السلام علیک یا حبیبی"); } ``` but in the output it shows separated characters instead of connected characters. ![alt text](https://i.stack.imgur.com/bLpk3.png) How can I connect the characters?
Issue in custom font (RTL labguage)
CC BY-SA 3.0
0
2010-12-17T10:54:08.803
2014-03-21T19:45:00.430
2014-03-21T19:45:00.430
321,731
513,413
[ "android", "right-to-left" ]
4,470,483
1
4,470,504
null
3
220
a friend of mine complained that SQL managment studio express is prohibited by some security setting set by his system admin. i recommended to use OSQL ![alt text](https://i.stack.imgur.com/zLEGf.jpg) my question is i need some basic orders like best way to attach, detach and deal with SQL express databases. any ideas?
Does anyone has quick "cheat cheat" or "commandline reference" for OSQL?
CC BY-SA 2.5
0
2010-12-17T12:33:47.193
2010-12-17T13:53:28.283
2020-06-20T09:12:55.060
-1
521,066
[ "sql", "osql" ]
4,470,875
1
4,472,375
null
3
4,256
I've got two bars, one for inbound and one for outbound. They look like this: ![alt text](https://i.stack.imgur.com/CRGdB.png) Is there a way I could add some margin between them? Right now the values for them is ``` var d1 = [[0, 1], [3, 7], [6, 12], [9, 17]]; var d2 = [[1, 4], [4, 9], [7, 14], [10, 19]]; ``` and as you could see I'm skipping one for each period, but I would also want some margin between :D
Is there a way to add some margin between bars in a flot bar chart?
CC BY-SA 2.5
null
2010-12-17T13:29:29.793
2015-09-30T14:06:44.993
2010-12-17T14:05:24.173
6,144
286,289
[ "flot" ]
4,470,987
1
4,471,137
null
0
1,686
so I have a UIToolbar with a "label"(actually a UIBarButtonItem) on it like so: ![alt text](https://i.stack.imgur.com/ig4y2.png) To make it I used interface builder and placed a UIBarButton item in the tool bar and set the style to "plain". However, as the title says, I am trying to replicate the text at the bottom of the iPhone's mail app, so firstly I need to change the font size and font type. How would I go about that? Here is the relevant code: ``` - (void)viewDidLoad { [super viewDidLoad]; lastUpdateLabel.title = @"Last updated...";//lastUpdateLabel is of type UIBarButtonItem [self.view addSubview:self.navigationController.view]; [self.navigationController.view setFrame:self.view.frame]; } ``` I am aware that I will probably need three different labels side-by-side to account for the change in font thickness(bold/unbold?) in the Mail app's label. However, I would like to try modifying one to my liking before continuing. Also, I am wondering how to make the "label" unclickable. If I use setEnabled:NO the text gets greyed-out which is not what I want. All I want is for the clicking animation to not appear when the "label" is tapped. Thanks in advance! EDIT: So I have ended up creating a label with the following code: ``` UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 20.0f)]; label.text = @"last updated..."; label.textColor = [UIColor colorWithWhite:0.5 alpha:1.0]; label.font = [UIFont systemFontOfSize:13.0]; label.userInteractionEnabled = NO; [lastUpdateLabel initWithCustomView:label]; [label release]; ``` And it results in this: ![alt text](https://i.stack.imgur.com/QBqmN.png) However, I want the background of the label to not be white, more specifically I want the background to be clear so that the shades of grey of the tool bar shows through. However I didn't find any background attribute in the UILabel documentation. Anyone know of how to go about doing this? Thanks!
How To Create UIToolBar Latest Update Label Like That Found in the iPhone's Mail App
CC BY-SA 2.5
0
2010-12-17T13:44:04.703
2010-12-18T01:04:47.823
2010-12-18T00:03:07.620
347,339
347,339
[ "ios", "fonts", "ios4", "uibarbuttonitem", "uitoolbar" ]
4,471,158
1
4,471,708
null
2
1,083
I am currently redoing a groupBox's template. I would like the header to have rounded corner on top and "inverted" rounded corner at the bottom: ![alt text](https://i.stack.imgur.com/ClNQd.png) I managed the above template quite easily by rounding the top corners of the content part and putting the content on top of a "background" container having the darkest color as background. BUT... my specifications require that the content's background (lightgray on the picture) might be transparent (i.e.: it should be possible to see right through the content part without having to loose the header's background color). And this is where I'm stuck... I could easily split this control into two rows of a grid, one for the header, the other for the content and have pretty rounded corner at the top, but I would not be able to get those "inverted" rounded corner at the header's bottom, would I? so I would be really glad if somebody could either: - - thanks in advance
masking in WPF template (opacitymask reversed)
CC BY-SA 2.5
null
2010-12-17T14:03:27.823
2010-12-17T15:06:35.390
2010-12-17T14:27:30.370
479,384
479,384
[ "wpf", "templates", "masking" ]
4,471,192
1
4,474,205
null
2
793
Came into work this morning and found this new window popping up in my google maps api v3 data layer on openlayers. Does anyone know what it is or where it comes from? Seen it before? The code points to a bunch of images and classes labeled i-phone so i suspect one of these APIs thinks i'm on an iphone. This is the box that is popping up: ![alt text](https://i.stack.imgur.com/dUCi1.jpg) Here is the code that is generating the box: ``` <div style="position: absolute; font-family: Arial,sans-serif; z-index: 1100; overflow: visible; -moz-user-select: none; cursor: default; width: 300px; height: 180px;" class="olLayerGoogleCopyright olLayerGoogleV3"><img style="width: 300px; height: 180px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px; position: relative; opacity: 0.9;" src="http://maps.gstatic.com/intl/en_us/mapfiles/iphone-dialog-bg.png"><div style="font-weight: bold; color: white; text-align: center; padding: 5px; position: absolute; left: 0px; top: 0px; font-size: 16px; width: 290px;">Map Data</div><div style="position: absolute; font-family: inherit; bottom: 15px; cursor: pointer; background-color: transparent; border: 0pt none; padding: 0pt; margin: 0pt; font-size: 14px; left: 90px; width: 120px; height: 40px;"><img style="position: absolute; left: 0px; top: 0px; width: 120px; height: 40px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px;" src="http://maps.gstatic.com/intl/en_us/mapfiles/iphone-dialog-button.png"><span style="color: white; text-align: center; width: 100%; height: 100%; background-color: transparent; position: absolute; left: 0px; top: 0px; padding-top: 10px;">Close</span></div><div style="color: white; text-align: center; font-size: 14px; position: absolute; left: 25px; top: 45px; width: 250px;"></div></div> ```
Google Maps Or Open layers thinks i'm on IPHONE?
CC BY-SA 2.5
0
2010-12-17T14:07:11.857
2011-09-26T18:55:17.880
null
null
442,580
[ "google-maps-api-3", "openlayers" ]
4,471,213
1
null
null
2
197
This is the weirdest bug i have ever encountered. My triangle will not be drawn unless I Load the view matrix twice. What is going on? If i remove one of the gfxSetCamera(&camera->t); nothing is drawn. ``` void shipDraw() { glPushMatrix(); glMultMatrixf(ship->t.m); glBegin(GL_TRIANGLES); glColor3f(0,0,1); glVertex3f(0, 0, -1); glVertex3f(0, 1, 1); glVertex3f(0, -1, 1); glEnd(); glPopMatrix(); } //Draw loop while(!gfxUserQuit()) { entUpdateAll(); gfxPrepare(1,1); gfxSetCamera(&camera->t); //Have to call this twice!?!? gfxSetCamera(&camera->t); entDrawAll(); gfxPresent(); } //Graphics code void gfxPrepare(int clearColor, int clearStencil) { //TODO parse args glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); } void gfxPresent() { glfwSwapBuffers(); } void gfxSetCamera(transform *t) { float *m = t->m; float viewmatrix[16]={ m[0], m[4], m[8], 0, m[1], m[5], m[9], 0, m[2], m[6], m[10], 0, -(m[0]*m[12] + m[1]*m[13] + m[2]*m[14]), -(m[4]*m[12] + m[5]*m[13] + m[6]*m[14]), -(m[8]*m[12] + m[9]*m[13] + m[10]*m[14]), 1}; glLoadMatrixf(viewmatrix); } ``` ``` while(!gfxUserQuit()) { entUpdateAll(); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); float *m = camera->t.m; float viewmatrix[16]={ m[0], m[4], m[8], 0, m[1], m[5], m[9], 0, m[2], m[6], m[10], 0, -(m[0]*m[12] + m[1]*m[13] + m[2]*m[14]), -(m[4]*m[12] + m[5]*m[13] + m[6]*m[14]), -(m[8]*m[12] + m[9]*m[13] + m[10]*m[14]), 1}; float viewmatrix2[16]={ m[0], m[4], m[8], 0, m[1], m[5], m[9], 0, m[2], m[6], m[10], 0, -(m[0]*m[12] + m[1]*m[13] + m[2]*m[14]), -(m[4]*m[12] + m[5]*m[13] + m[6]*m[14]), -(m[8]*m[12] + m[9]*m[13] + m[10]*m[14]), 1}; glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glLoadMatrixf(viewmatrix2); entDrawAll(); glfwSwapBuffers(); } ``` If i remove the definition and initialization of 'float viewmatrix' nothing is draw to screen. If i restore it it renders as normal. Is this some memory corruption or something? How can i debug this? ![alt text](https://i.stack.imgur.com/MBYjg.png) I was calling glfwGetTime() without including the file. This is what was breaking it :O
Have to load view matrix twice. Don't know why
CC BY-SA 2.5
null
2010-12-17T14:09:30.333
2011-06-12T15:43:48.683
2010-12-17T20:43:51.077
null
null
[ "c", "opengl" ]
4,471,296
1
4,471,995
null
0
95
i have created a form in php that gets some data from the user.Then, as i press the btn "send",the form send xml messages to three other php files.this is the view when i press the send button. ![alt text](https://i.stack.imgur.com/3JVsq.png) i think there i a problem with my database!Please help(i m using xampp and i have uploaded my database in xampp!thanks)
Sending XML messages--Database problem?
CC BY-SA 2.5
null
2010-12-17T14:17:48.477
2010-12-17T15:30:31.257
2010-12-17T14:34:57.273
519,526
519,526
[ "php", "sql", "xml", "xampp" ]
4,471,479
1
4,471,536
null
0
185
As a followup to [this question](https://stackoverflow.com/questions/4462497/why-does-a-javascript-function-act-differently-upon-instantiation-than-execution) still trying to grok Javascript function anomalies, can someone explain why the following code works? My text (Javascript Patterns) states: > If you create a new function and assign it to the same variable that already holds another function, you’re overwriting the old function with the new one. Which would make me assume that in the following code, the variables `count` and `name` would be clobbered when the second definition of the function `test` is created. `count``name` ``` $(document).ready(function() { var test = function() { var name = 'The Test Function'; var count = 1; console.log(name + ' has been setup'); test = function() { console.log('Number of times ' + name + ' has been called: ' + count); count++; }; } test(); test(); test(); test(); test(); }); ``` ## Output: ![alt text](https://i.stack.imgur.com/PYNWm.png)
Why do function variables live on when function is redefined?
CC BY-SA 2.5
null
2010-12-17T14:36:49.610
2010-12-17T14:47:37.110
2017-05-23T10:32:36.017
-1
4,639
[ "javascript", "function" ]
4,471,761
1
null
null
0
146
I'd like to go from this COMPUTEDCOL1 = COL1 * COL1 / 7132 to this ![alt text](https://i.stack.imgur.com/5C4jC.gif) Is there anything that can parse SQL and render it as above? Thanks.
SQL Equation => Image?
CC BY-SA 2.5
0
2010-12-17T15:04:28.910
2010-12-17T17:42:11.437
2010-12-17T15:23:14.770
338,303
338,303
[ "sql", "latex", "mathml" ]
4,471,853
1
null
null
0
850
I'm trying to run a test case programatically using the internal Microsoft.TeamFoundation.TestManagement.Client methods but I found that almost all the methods are internal, so I cannot use them. Do you have an idean how can I use these class/methods? Of couse I'm referencing to these dll's in my project and I need to use them. I attached two images of the reflection of the dll. ![alt text](https://i.stack.imgur.com/w3Qg6.png) ![alt text](https://i.stack.imgur.com/S23vs.png) Thank you for your help Sebastian
(MTM) Microsoft Test Manager - Run Test Case Programatically
CC BY-SA 2.5
0
2010-12-17T15:14:31.540
2011-04-08T13:39:58.520
null
null
556,853
[ ".net", "testing", "reflection" ]
4,471,868
1
4,472,093
null
2
4,479
How can I make the multiline form field `Description` and its text? ![alt text](https://i.stack.imgur.com/nOGk5.png) ``` <script type="text/javascript"> clearExtjsComponent(regionContent); var panel_form = new Ext.FormPanel({ labelWidth: 100, frame:true, style: 'margin: 10px', title: 'Test Product ID#2', bodyStyle:'padding:5px 5px 0', width: 500, defaultType: 'textfield', items: [{ fieldLabel: 'ID', value: '2', name: 'id', disabled: true, width: 370, style: 'text-align: right', name: 'id', disabled: true, width: 50, },{ fieldLabel: 'Product', value: 'Envelope', name: 'product', width: 370, },{ fieldLabel: 'Description', value: 'Having a good idea about the functional requirements and client-side technology choices, the next step was to decide how things were going to be on the server side. To channel all communications with my web client I decided to use an http handler. For the articles repository, a binary file would go very well with my simplicity and short-construction-time requirements. Any data access and business logic would be placed inside class libraries.', name: 'description', width: 370, height: 100, },{ ... ``` When I try `xtype: 'textArea'`, I get the error `types[config.xtype || defaultType] is not a constructor`: ``` },{ fieldLabel: 'Description', value: 'Having a good idea about the functional requirements and client-side technology choices, the next step was to decide how things were going to be on the server side. To channel all communications with my web client I decided to use an http handler. For the articles repository, a binary file would go very well with my simplicity and short-construction-time requirements. Any data access and business logic would be placed inside class libraries.', height: 100, xtype: 'textArea', name: 'description', width: 370, },{ ```
How to top-align and word-wrap a form panel field in ExtJS?
CC BY-SA 2.5
0
2010-12-17T15:15:46.593
2010-12-17T16:10:04.910
2010-12-17T16:03:00.243
4,639
4,639
[ "extjs", "word-wrap", "formpanel" ]
4,471,895
1
4,472,204
null
0
2,042
i have a problem with rendering image on RDL file in reporting services (SQL 2008). I have embedded, external, database as a method of rendering images. In fact, I know those three option but... 1. I don't think it's a good idea to use embedded. if I have 200+ that use the same image as a report logo or something then it will be better if all report can use the same link to one image. so when i make change with image, I don't have to modify all of reports in my solution. 2. I couldn't use database as an image source because I couldn't create any table to store the images. 3. It seems that the only choice left is external the folder structure in solution will be something like below ![alt text](https://i.stack.imgur.com/8NB2G.jpg) So my question is 1. Can we load an images by writing some kind of c# library class to get path of those images in share folder? or any idea will be welcome. I'm at the dead end now. please advise me. Sorry for my poor English and Thank you in advance for your help vee
Can I load images for SSRS rdl file from another report project or another folder within solution?
CC BY-SA 2.5
null
2010-12-17T15:18:08.293
2010-12-19T07:45:19.563
2010-12-19T02:19:47.847
361,338
361,338
[ "visual-studio-2008", "image", "sql-server-2008", "reporting-services" ]
4,471,993
1
4,473,065
null
32
27,095
One example for curve is shown as below. The elbow point might be x=3 or 4. How to compute the elbow for a curve automatically and mathematically? ![alt text](https://i.stack.imgur.com/3ETM1.jpg)
Compute the 'elbow' for a curve automatically and mathematically
CC BY-SA 2.5
0
2010-12-17T15:30:24.497
2019-05-09T17:25:24.287
null
null
504,407
[ "math", "curve" ]
4,472,208
1
4,472,668
null
1
2,493
I'm searching for a library / framework / codesnippet that helps me build a really simple server / client. Both should be portable (linux/win/mac). A picture says more then a thousand words so: ![alt text](https://i.stack.imgur.com/jLGIQ.png) The server should be able to seperate diffrent clients. What I'm looking for is only a hint on how to do the transfere. I've little experience with languages other then c++, and it was mostly plain easy to create a server that stores all the clients connected in an array and interacts with each one of them once you got pointed in the right direction. What I looked into for C++ was RakNet and Boost.Asio. I don't want to use RakNet because I might sell the application at some point (you never know) and Boost.Asio seems way to complex for me to understand and way to low-level. All I really need is a simple send/recieve functionallity. The json will be handled by me (I already looked into jsoncpp). One message will have a maximum length of 2048 bytes. Any suggestions / hints / help on what to look into / what to use? I'm really looking for something easy and not so much low-level to use as I don't need the low-level functionallity. Thanks in advance, Robin.
Implementing a simple server / client concept in C++
CC BY-SA 2.5
0
2010-12-17T15:52:33.683
2010-12-17T16:43:07.147
null
null
388,987
[ "c++", "sockets", "network-programming", "cross-platform" ]
4,472,369
1
4,472,480
null
17
38,191
I'm writing a Function that pulls Records from a DataBase using LINQ to get an IQueryable. This LINQ statement will pull all of the records for Active users within a certain time period, and then spit the UserID, First Name, and Last Name out to a Telerik RadGrid. My problem lies within trying to get a Distinct Value on the UserID when pulling this Data. I have tried re-working this code to get my result. Here is the an example of the code that is pulling all of the Data, with the Distinct NOT working. ``` public static IQueryable GetActiveEmployees_Grid(string Period) { DataContext Data = new DataContext(); var Employees = (from c in DataSystem_Records where c.Period == Period orderby c.DataSystem_Employees.LName select c).Distinct(); return Employees; } ``` After applying the DataSource to my Grid, this returns the User 4 times, one instance for each Record for that Period. ![alt text](https://i.stack.imgur.com/cu8z4.jpg) Is there a way to apply Distinct to my LINQ Function to make this work the way I intend it to?
Returning a Distinct IQueryable with LINQ?
CC BY-SA 3.0
0
2010-12-17T16:07:17.417
2021-02-01T10:13:09.243
2017-01-22T12:21:28.893
3,375,713
537,172
[ "c#", "linq", "distinct" ]
4,472,826
1
null
null
1
1,014
sol have a standard self referencing employee table in sql 2005 and thought it would be cool to have an automated way to be able to build an org. chart like this ![link text](https://www.freeorgchart.com/interfaces/orgchart_800.jpg) i want somethign that can be scheduled to run daily because my company has a large team and things change frequently. as an aside, i am re-fleshing the employee table (1000) records daily from Active Directory.) anyone know a simple way to do this? visio/ vba? excel/ vba? winforms/ c#?
automatically build a org chart based on self-referencing sql employee table?
CC BY-SA 3.0
0
2010-12-17T16:51:44.613
2017-03-19T10:16:44.880
2017-03-19T10:16:44.880
1,033,581
352,157
[ "sql-server", "automation", "ms-office" ]
4,472,952
1
null
null
0
535
So I create a point cloud, in 3d with code like (flash 10.1 CS5): ``` import flash.display.Bitmap; import flash.display.BitmapData; var bmd:BitmapData = new BitmapData(400, 400, true, 0xFFCCCCCC); var xn:Number; var yn:Number; var zn:Number; var norm:Number; var c1:Number; var c2:Number; var c3:Number; var c4:Number; var counter:int; var color:uint while (counter < 100000) { xn = Math.random() * 600 - 200; yn = Math.random() * 600 - 200; zn = Math.random() * 600 - 200; norm = Math.sqrt(xn * xn + yn * yn + zn * zn); c1 = (1 - norm / 200) * 255; c2 = (1 - norm / 250) * 255; c3 = Math.abs(xn) / norm * 255; c4 = Math.abs(yn) / norm * 255; color = (c1 << 24 | c2 << 16 | c3 << 8 | c4); counter++; var pointGraphicData = new BitmapData(1,1,true,color) var pointGraphic:Bitmap = new Bitmap(pointGraphicData); pointGraphic.x = xn; pointGraphic.y = yn; pointGraphic.z = zn; addChild(pointGraphic); } ``` How to move and rotate camera that looks onto the screen in sphere like path ![alt text](https://i.stack.imgur.com/naZ4G.jpg) around created box?
How to rotate camera around group of objects? (not using 3d engines)
CC BY-SA 2.5
null
2010-12-17T17:07:53.877
2016-01-14T17:05:33.647
2010-12-17T17:13:02.230
13,895
434,051
[ "flash", "actionscript-3", "3d", "camera", "point" ]
4,473,262
1
4,475,998
null
5
900
For a computer game I'm developing, I'd like to draw very large (~500 px) graphics of planets slowly rotating. These graphics are meant to impress. What's the best way of doing this? - - - - Here's an example animated GIF of what I mean. (At 100x100 px and 60 frames, it's already pretty huge, sorry.) Imagine this much, much bigger, rotating much slower, and animated more smoothly: ![alt text](https://i.stack.imgur.com/Gk3JT.gif) But if this were 500x500 px and 10 x 25 = 250 frames, we'd be talking about hundreds of MB of data, so this straightforward approach doesn't work.
Large, slowly rotating planet graphics for game
CC BY-SA 2.5
0
2010-12-17T17:40:48.577
2013-06-20T16:11:28.190
2010-12-17T20:58:10.617
15,255
15,255
[ "graphics", "3d" ]
4,473,497
1
4,491,509
null
2
156
I have two stacked divs, where I want the content from the top div to flow over onto the bottom div. Using a negative bottom margin on the content wrapper, I was able to achieve this in all browsers except IE 7, where instead of flowing over the bottom div, the content gets cut-off/overlapped by it. I'm looking for an explanation of what exactly is happening here, and potential fixes. ``` <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Negative Margin Test</title> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css"> <style type="text/css"> .container { width: 800px; background: none; position:relative; } .container-mid{ background:#F00;/**/ border:dashed thick #090; width:100%; } .container-bottom{ background:#FF0;/**/ border:dashed thick #090; width:100%; height: 200px; } .container-inner{ width:100%; margin:0 auto; margin-bottom:-200px;/**/ } </style> </head> <body> <div class="container"> <div class="container-mid"> <div class="container-inner"> <div class="content"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sit amet bibendum tortor. Etiam at diam vitae mauris venenatis varius. Nam nec mauris ut ligula dictum fringilla a accumsan diam. Fusce ac mauris in lacus venenatis bibendum non eget nisl. In quis pretium dolor. In hac habitasse platea dictumst. Nam at quam et velit faucibus cursus. Aenean ut augue id augue suscipit condimentum sed eu est. Pellentesque commodo ipsum nec ligula aliquet a lobortis augue pharetra. Curabitur pretium luctus posuere. Proin id nisi sed lectus commodo porta. Fusce leo augue, lacinia eu tincidunt sed, faucibus at turpis. Aenean ut mi nulla. Duis orci urna, euismod quis mollis interdum, pharetra quis enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi gravida eleifend ante ac hendrerit. Nunc ultricies tellus mauris.</p> <br /> <br /> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sit amet bibendum tortor. Etiam at diam vitae mauris venenatis varius. Nam nec mauris ut ligula dictum fringilla a accumsan diam. Fusce ac mauris in lacus venenatis bibendum non eget nisl. In quis pretium dolor. In hac habitasse platea dictumst. Nam at quam et velit faucibus cursus. Aenean ut augue id augue suscipit condimentum sed eu est. Pellentesque commodo ipsum nec ligula aliquet a lobortis augue pharetra. Curabitur pretium luctus posuere. Proin id nisi sed lectus commodo porta. Fusce leo augue, lacinia eu tincidunt sed, faucibus at turpis. Aenean ut mi nulla. Duis orci urna, euismod quis mollis interdum, pharetra quis enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi gravida eleifend ante ac hendrerit. Nunc ultricies tellus mauris.</p> <br /> <br /> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam sit amet bibendum tortor. Etiam at diam vitae mauris venenatis varius. Nam nec mauris ut ligula dictum fringilla a accumsan diam. Fusce ac mauris in lacus venenatis bibendum non eget nisl. In quis pretium dolor. In hac habitasse platea dictumst. Nam at quam et velit faucibus cursus. Aenean ut augue id augue suscipit condimentum sed eu est. Pellentesque commodo ipsum nec ligula aliquet a lobortis augue pharetra. Curabitur pretium luctus posuere. Proin id nisi sed lectus commodo porta. Fusce leo augue, lacinia eu tincidunt sed, faucibus at turpis. Aenean ut mi nulla. Duis orci urna, euismod quis mollis interdum, pharetra quis enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Morbi gravida eleifend ante ac hendrerit. Nunc ultricies tellus mauris.</p> </div><!-- end .content --> </div><!-- end .container-inner --> </div><!-- end .container-mid --> <div class="container-bottom"></div> <!-- end .container --></div> </body> </html> ``` (Results same with Chrome/FFox/etc...) ![alt text](https://i.stack.imgur.com/maKI3.jpg) (Tested with IE8->Developer Tools->IE7 Mode) ![alt text](https://i.stack.imgur.com/mgNAM.jpg) As you can see, overflowing content gets overlapped by the yellow div. See my [live example](http://tests.appgrinders.com/negmargintest.html)
Why doesn't my negative margin work in IE7?
CC BY-SA 2.5
null
2010-12-17T18:10:36.663
2010-12-20T18:48:35.097
2010-12-20T16:14:20.443
165,673
165,673
[ "internet-explorer-7", "margin" ]
4,473,786
1
4,481,107
null
6
6,754
The use case: I am subclassing UIView to create a custom view that "mattes" a UIImage with a rounded rectangle (clips the image to a rounded rect). The code is working; I've used a method similar to [this question](https://stackoverflow.com/questions/4349400/how-can-i-remove-a-uiview-with-rounded-corners-from-its-parent-view). However, I want to stroke the clipping path to create a "frame". This works, but the arc strokes look markedly different than the line strokes. I've tried adjusting the stroke widths to greater values (I thought it was pixelation at first), but the anti-aliasing seems to handle arcs and lines differently. Here's what I see on the simulator: ![Uneven stroke image](https://i.stack.imgur.com/rXfyz.png) This is the code that draws it: ``` CGContextSetRGBStrokeColor(context, 0, 0, 0, STROKE_OPACITY); CGContextSetLineWidth(context, 2.0f); CGContextAddPath(context, roundRectPath); CGContextStrokePath(context); ``` Anyone know how to make these line up smoothly?
Core Graphics stroke width is inconsistent between lines & arcs?
CC BY-SA 2.5
0
2010-12-17T18:45:50.263
2010-12-19T18:05:31.190
2017-05-23T12:10:36.177
-1
277,918
[ "macos", "ios", "core-graphics" ]
4,473,822
1
4,474,637
null
1
2,885
For some reason neither SQL managment studio nor import and export wizard works on my friends network due to some security policy i asked a question about OSQL two days ago and StackOverflow guys told me it is going to be obselete and that i should use SQLCMD instead. now i am stuck with this screen and cant do anything :( ![alt text](https://i.stack.imgur.com/3sn5O.jpg) to cut long things short my question is very precise: using SQLCMD.. 1-need to import and export command from AND to MDB/MDF 2-need attach / detach commands
How to Import MicroSoft Access Database (mdb) into SQL Express File using SQLCMD?
CC BY-SA 2.5
0
2010-12-17T18:51:55.380
2010-12-17T21:13:14.657
2010-12-17T20:49:55.500
521,066
521,066
[ "asp.net", "sql", "sql-server-express", "sqlcmd" ]
4,474,464
1
4,474,935
null
0
727
I want to render particles with hexagons that fade out to the outside. I've used a TRIANGLE_FAN for each particle. However, the transparency doesn't look very nice. ``` glBegin(GL_TRIANGLE_FAN); glColor4f(c.x, c.y, c.z, particle.temperature / 100.0); glVertex3f(0, 0, 0); glColor4f(0, 0, 0, 0); glVertex3f(0.866025404 * H / 2, 0.5 * H / 2, 0); glVertex3f(0, 1 * H / 2, 0); // other vertices omitted glEnd(); ``` I get an output which is flickering and where the black transparent parts are drawn over opaque objects at some frames. How do I have to change my rendering routine to avoid this bugs? ![output](https://i.stack.imgur.com/0nz11.png)
Rendering particles as GL_TRIANGLE_FANs with transparency in OpenGL
CC BY-SA 2.5
null
2010-12-17T20:22:56.610
2010-12-17T21:34:55.800
null
null
151,706
[ "c++", "opengl", "graphics", "transparency", "alpha" ]
4,474,507
1
4,475,266
null
1
510
This question is already here: [Why doesn't Rails' "errors.full_messages" replace attribute and message variables?](https://stackoverflow.com/questions/4370503/why-doesnt-rails-errors-full-messages-replace-attribute-and-message-variables) ... but it hasn't been answered yet and I am sure it's because of the gem I18n -version "0.5.0". This error suddenly appeared for me and I'm just assuming it is because heroku is now using the latest gem version. How can I get the whole application to use the previous version '0.4.1' or fix how the error messages without having to change the .yml or if I have to how would I setup the en.yml. This is what is happening: ![alt text](https://i.stack.imgur.com/XBJzg.png) All error messages are now appearing like this with {{attribute}} {{message}} instead of the default which I would rather have.
I18n gem update causing error message crazyness in rails 2.3.8
CC BY-SA 2.5
0
2010-12-17T20:27:53.297
2010-12-17T22:19:09.937
2017-05-23T12:07:07.397
-1
225,727
[ "ruby-on-rails", "internationalization", "heroku", "rubygems" ]
4,474,636
1
4,476,242
null
8
9,534
Is it possible to achieve line-height consistency in all browsers? I have attached an image. You will notice a red rectangular box and a green rectangular box (both of the same width and height) which I have added via photoshop manually to aid in showing the the space/gap difference between the dotted lines (below the red box) and the "Followers: 3197179" text. It seems that Firefox is the only one that is displaying the elements differently. I notice this when I apply a line-height. Any way I can make this consistent with all browsers? I am using Firefox 3.6.13, Safari 5.0.3, Opera 10.63 and Chrome 8.0.552.231. ``` .clearfix, .container { display: block; } ul { margin: 0; padding: 0; list-style: none; } li { position: relative; margin: 0 0 0 0; padding: 12px 0; border-bottom: 1px dotted #E7E7E7; } li img { float: left; margin-top: 0; } li p { margin: 0 0 0 58px; padding: 0; font-weight: normal; border: none; font-size: 1em; line-height: 1.3em; } li p.name { position: relative; padding-top: 0; font-size: 1.1em; font-weight: bold; } ``` ``` <ul> <li class="clearfix"> <a href="#"><img width="50" src="http://localhost:3000/images/foobar.gif" alt="thumb"></a> <p class="name"> <a href="#">Jessica Simpson</a> </p> <p>Blurred out text here</p> <p>Followers: 3197179</p> </li> </ul> ``` ![alt text](https://i.stack.imgur.com/xhPpO.gif)
Is it possible to achieve line-height consistency in all browsers?
CC BY-SA 4.0
null
2010-12-17T20:48:25.370
2018-12-03T13:30:20.820
2018-12-03T13:30:20.820
7,059,945
501,171
[ "html", "css" ]
4,474,666
1
4,474,826
null
0
114
Requirement: Requirement is to (execute()) a set of data sources. The pulls are are , can be into small sub groups. Design: Each pull is abstracted as a Step. A subgroup is represented as a WaterFallStep because the pull of each of the data source in a group is conditional and follows waterfall model i.e. if 1st data source pull in the group is successful then I' break out of the group. Questions 1. Is this a good enough abstraction or i can do better? 2. How to represent this in JPA 2? I know we can use descriminators to map inheritance but my main concern is the 1-to-many relationship between WaterFallStep-to-BasicStep Thank you. ![alt text](https://i.stack.imgur.com/Fzf1D.gif)
Is this a good enough abstraction or I can do better?
CC BY-SA 2.5
0
2010-12-17T20:52:28.763
2010-12-17T21:18:27.200
null
null
127,320
[ "java", "oop", "jpa-2.0", "ooad" ]
4,474,843
1
null
null
4
2,815
I am trying to add Failed Request Tracing to my IIS 7/ASP.NET server. First, I create failed request tracing for "`all content, error codes 400-999`" because want to save all errors. Then, I try to create a trace for "`all content, time: 5 seconds`" because I want to trace all "long" requests. However, IIS 7 gives me an : "A failed request trace for this content already exists". How can I add this second trace for all content that takes > 5 seconds? ![alt text](https://i.stack.imgur.com/bGIH1.png)
IIS/ASP.net error for failed request tracing: "a failed request trace for this content already exists"
CC BY-SA 2.5
0
2010-12-17T21:20:53.900
2010-12-18T01:04:14.410
null
null
501,147
[ "asp.net", "iis", "iis-7", "request", "trace" ]
4,474,998
1
4,475,053
null
5
1,952
This is my goal. Angled tabs with transparency on top of the other. How would i build this without using jpgs or pngs, but only css? ![alt text](https://i.stack.imgur.com/ue6Kc.jpg)
How do I make an angled tab interface with just jquery and css3?
CC BY-SA 2.5
0
2010-12-17T21:45:13.760
2010-12-17T23:43:21.583
null
null
544,140
[ "jquery", "tabs", "css" ]
4,475,279
1
null
null
1
1,143
When I follow [this tutorial](http://rubyonwindows.blogspot.com/2007/05/adding-sound-to-your-ruby-apps.html) on Ruby 1.9.2 on Win 7, I get this error: ![alt text](https://i.stack.imgur.com/9xYda.png) Is there a simpler way to play a sound? (specifically, wav)
Playing sound in Ruby 1.9.2 on Windows 7?
CC BY-SA 2.5
0
2010-12-17T22:21:32.690
2010-12-18T00:06:02.960
null
null
139,089
[ "ruby", "windows", "audio", "winapi" ]
4,475,301
1
5,031,921
null
0
2,780
I have the following c# code in a web form: ``` protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { string url; string startdate; string enddate; string costcenter; string account; //url = "http://server/reportserver?/Finance/Cost Spending/Cost Center Details&rs:Command=Render&rc:Parameters=false"; url = "http://server/reportserver?/Finance/Cost Spending/Cost Center Totals&rs:Command=Render&rc:Parameters=false"; costcenter = "&costcenter=990"; startdate="&startdate=" + Convert.ToString(txtStartDate.Text); enddate = "&enddate=" + Convert.ToString(txtEndDate.Text); account="&account=" + Convert.ToString(GridView1.SelectedRow.Cells[1].Text); url =url + startdate + enddate + costcenter + account; //TextBox1.Text = Convert.ToString(GridView1.SelectedRow.Cells[1].Text); Response.Redirect(url, false); } ``` I've tested a very similer version of this code against another report, the only different being the costcenter parameter. The other report worked fine, but every time i run this code i get the error: "the 'costcenter' parameter is missing a value". The only thing i can think of that's significantly different between the two reports is that in the Cost Center Totals report the costcenter parameter is used to populate the accounts parameter (both are multi-select). Here's what the parameters page looks like: ![parameters](https://i.stack.imgur.com/ygXS1.jpg)
SSRS URL Parameter won't set
CC BY-SA 2.5
0
2010-12-17T22:25:57.557
2016-09-13T15:13:18.733
2011-02-17T16:16:00.083
95,710
95,710
[ "c#", "asp.net", "sql-server", "reporting-services" ]
4,476,117
1
4,476,855
null
0
264
how can I do something like this in an iPhone app? ![iphone app screenshot](https://i.stack.imgur.com/wMOuA.png) I need to input a number but I want something like this, not a simple UITextField. How? Thanks!
How to code a "numbers pad" like Call application
CC BY-SA 3.0
null
2010-12-18T01:35:33.120
2019-05-24T18:05:28.353
2016-03-22T03:14:09.760
1,091,386
545,004
[ "iphone", "numpad" ]
4,476,361
1
null
null
5
25,890
I recently have been asking questions pertaining to UIToolbars and what not, but now I discover I need to add items to it programatically, I have seen other people's methods on how to go about doing it, but when I try doing the same thing, nothing ends up appearing. Pinpointing this problem is what I need help with. Here are my connections in IB: ![alt text](https://i.stack.imgur.com/txZae.png) And here is the relevant code: Header file: ``` #import <UIKit/UIKit.h> @interface ParkingRootViewController : UIViewController { UINavigationController *navigationController; UIToolbar *toolbar; UIBarButtonItem *lastUpdateLabel; } @property(nonatomic, retain) IBOutlet UINavigationController *navigationController; @property (nonatomic, retain) IBOutlet UIToolbar *toolbar; @property (nonatomic, retain) IBOutlet UIBarButtonItem *lastUpdateLabel; - (IBAction)selectHome:(id)sender; @end ``` Implementation file: ``` - (void)viewDidLoad { [super viewDidLoad]; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 20.0f)]; label.text = @"last updated..."; label.textColor = [UIColor colorWithWhite:1.0 alpha:1.0]; label.backgroundColor = [UIColor clearColor]; label.textAlignment = UITextAlignmentCenter; label.font = [UIFont boldSystemFontOfSize:13.0]; label.userInteractionEnabled = NO; lastUpdateLabel = [[UIBarButtonItem alloc] initWithCustomView:label]; [label release]; [toolbar setItems:[NSArray arrayWithObject:lastUpdateLabel]]; [self.view addSubview:self.navigationController.view]; //[self.view addSubview:toolbar]; //[self.navigationController.view addSubview:toolbar]; [self.navigationController.view setFrame:self.view.frame]; } ``` Any help is greatly appreciated! EDIT: I removed whatever I had in the nib which would cause the toolbar to appear/be modified and I updated my code in viewDidLoad to the following: ``` self.navigationController.toolbarHidden = NO; //creating label in tool bar UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 20.0f)]; label.text = @"last updated..."; label.textColor = [UIColor colorWithWhite:1.0 alpha:1.0]; label.backgroundColor = [UIColor clearColor]; label.textAlignment = UITextAlignmentCenter; //label.highlightedTextColor = [UIColor colorWithWhite:0.5 alpha:1.0]; //label.highlighted = YES; label.font = [UIFont systemFontOfSize:13.0]; label.userInteractionEnabled = NO; UIBarButtonItem *lastUpdateLabel = [[UIBarButtonItem alloc] initWithCustomView:label]; //[lastUpdateLabel initWithCustomView:label]; //[label release]; //[toolbar setItems:[NSArray arrayWithObject:lastUpdateLabel]]; [self setToolbarItems:[NSArray arrayWithObject:lastUpdateLabel]]; ``` And I end up getting a blank toolbar showing up. I fire up the debugger and this is what I see: ![enter image description here](https://i.stack.imgur.com/GqLdv.png) Aha! lastUpdateLabel's view's _text field is out of scope! But why? And how would I remedy this? EDIT 2: I have been able to add labels and an NSActivityIndicator with the following code: ``` @synthesize refreshDataButton; //... self.navigationController.toolbarHidden = NO; UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20.0f, 0.0f, 80.0f, 40.0f)]; label.text = @"last updated..."; label.textColor = [UIColor colorWithWhite:1.0 alpha:1.0]; label.backgroundColor = [UIColor clearColor]; label.textAlignment = UITextAlignmentCenter; label.font = [UIFont systemFontOfSize:13.0]; label.userInteractionEnabled = NO; [self.toolbar addSubview:label]; // create activity indicator // dist frm lft, dist frm top CGRect frame = CGRectMake( 90.0, 11.0, 25.0, 25.0); UIActivityIndicatorView *loading = [[UIActivityIndicatorView alloc] initWithFrame:frame]; loading.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite; [loading sizeToFit]; loading.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin); [loading startAnimating]; [self.toolbar addSubview:loading]; ``` But when I try to add a UIBarButtonItem I have no luck (doesn't show up in the toolbar): ``` self.refreshDataButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:100 target:self action:@selector(refreshDataButtonTapped)]; [self setToolbarItems:[NSArray arrayWithObject:refreshDataButton]]; ``` Here is the header file: ``` #import <UIKit/UIKit.h> //#import <CoreData/CoreData.h> @interface ParkingRootViewController : UIViewController { UINavigationController *navigationController; UIToolbar *toolbar; UIBarButtonItem *refreshDataButton; //UIActivityIndicatorView *loading; } @property (nonatomic, retain) IBOutlet UINavigationController *navigationController; @property (nonatomic, retain) IBOutlet UIToolbar *toolbar; @property (nonatomic, retain) UIBarButtonItem *refreshDataButton; //@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *loading; @property (nonatomic, readonly) NSString *applicationDocumentsDirectory; -(IBAction)selectHome:(id)sender; -(void)testCoreData; -(void)refreshDataButtonTapped; @end ```
Adding Items to UIToolbar Programmatically Not Working
CC BY-SA 4.0
0
2010-12-18T02:58:40.847
2019-01-22T12:22:12.407
2019-01-22T12:22:12.407
1,033,581
347,339
[ "ios", "ios4", "uibarbuttonitem", "uitoolbar" ]
4,476,442
1
4,542,603
null
6
29,026
I have some data like this : (AT sql sERVER) ``` MemberID,ParemtID,Amt,OtherInfo 1, NULL, 200,dfdsf 2, 1, 300,DFDF 3, 1, 400,DFS 4, 3, 75,NULL ``` Now I want build [Tree](http://goo.gl/sogUr) like this : ![alt text](https://i.stack.imgur.com/HI9Mr.jpg) Only using JS. Above data can be passed in JSON / XML / CSV / Formatted Text How can i generate such dynamic tree in JS only ? Please don't suggest PHP / .NET solutions. I would prefer a JQuery.
How to generate a tree for MLM ( Multi-Level Marketing ) in JavaScript for either JSON / XML data
CC BY-SA 2.5
0
2010-12-18T03:24:26.830
2010-12-29T14:55:30.047
null
null
368,472
[ "javascript", "jquery", "dynamic", "tree", "hierarchy" ]
4,476,961
1
4,477,293
null
0
120
I made this left navigation bar, like the picture below I want in in both `Drummer` model and `Video` model, ![alt text](https://i.stack.imgur.com/veTmy.jpg) So I choose to use partial _drummers_list.html.erb ``` <div id="columnleft"> <img src="/img/alldrummerup.png" alt="" width="150" height="60" /> <% @drummer_list.each do |d| %> <%= link_to d do%> <%= d.first_name + ' ' + d.last_name %> <% end %> <% end %> <img src="/img/drummerdown.png" alt="" width="96" height="42" /> </div><!--columnleft--> ``` The problem is the @drummer_list instance variable only available in the drummer controller, so I have to write it again in the Video controller, because of the DRY principle, I think it make sense use some method only write @drummer_list once and use it everywhere I didn't spent too much time to learn the Ruby language, it's the foundation of Rails, I think that's why I can't figure it out.
partial in two different model's template
CC BY-SA 2.5
0
2010-12-18T06:32:39.493
2010-12-18T08:23:32.423
null
null
456,218
[ "ruby-on-rails" ]
4,477,768
1
null
null
4
1,575
I can't get markItUp editor to work. My HTML code is pretty simple and it's copied from documentation: ``` <script type="text/javascript" src="/jquery.js"></script> <script type="text/javascript" src="/skin/js/markitup/jquery.markitup.js"></script> <script type="text/javascript" src="/skin/js/markitup/sets/default/set.js"></script> <link rel="stylesheet" type="text/css" href="/skin/js/markitup/skins/simple/style.css" /> <link rel="stylesheet" type="text/css" href="/skin/js/markitup/sets/default/style.css" /> <script type='text/javascript'> $(function(){ $('textarea').markItUp(); }); </script> <textarea name='comment' id='comment-input' class='text'></textarea> ``` Everything should be working for now, but instead I get this strange picture: ![alt text](https://i.stack.imgur.com/wjuwy.png) So here's my original textarea with just one button for Bold text. No errors in Firebug, and same picture in all browsers (opera, ie, chrome, ff). Can't locate the problem. Please advise.
Can't get jQuery markItUp! to work
CC BY-SA 2.5
0
2010-12-18T11:05:33.840
2010-12-18T12:04:54.637
null
null
475,255
[ "jquery", "markitup" ]
4,477,967
1
4,481,270
null
8
14,010
I’m using paypal payment product. If you see the attached file i get 3 options. The first 2 work fine and are actually all i require. The last option Credit Card (save) doesn’t seem to work. Can someone explain what this option is, also how can i remove it. ![alt text](https://i.stack.imgur.com/LcJOq.png)
How do remove 'credit card (save)' Payment method from Magento?
CC BY-SA 3.0
0
2010-12-18T12:09:46.027
2013-07-10T04:42:48.750
2013-07-10T04:42:48.750
1,206,759
461,880
[ "magento" ]
4,478,078
1
null
null
10
18,619
How to draw a heart with pylab? I searched with google for ways to draw the picture but i want know how to draw it with pylab. Can someone help? The picture should look like [this](http://img3.douban.com/view/note/large/public/p95223116-2.jpg): ![3D Heart](https://i.stack.imgur.com/Xj5cZ.jpg)
how to draw a heart with pylab
CC BY-SA 2.5
0
2010-12-18T12:49:18.463
2015-02-23T17:32:05.523
2010-12-18T16:41:57.887
4,279
497,121
[ "python", "math", "numpy", "matplotlib" ]
4,478,105
1
4,580,272
null
2
3,000
I have selected some of the languages (like Hindi, English(India), English(United Kingdom) etc.) from `Input languages` option in `Android keyboard settings` in my emulator (Android 2.3 API). But the problem is that neither it is showing HINDI characters on Soft Keyboard nor displaying some of the Numbers on the keys `e y u i o`. Problem is exactly shown in below given screenshot: ![alt text](https://i.stack.imgur.com/5WlHw.png) Also it is displaying rectangular boxes instead of characters.
Problem with Hindi keyboard on Android 2.3 emulator
CC BY-SA 2.5
0
2010-12-18T12:55:33.627
2011-01-24T06:46:37.530
2011-01-24T06:46:37.530
457,982
457,982
[ "android", "keyboard", "android-sdk-2.3", "hindi" ]