text
stringlengths
8
267k
meta
dict
Q: Android: possible to access kernel modules directly without rooting the phone? Can Android apps access /dev or /sys without rooting the device? I have permission problems when doing this from an Activity. Can it work and the native layer? A: Can Android apps access /dev or /sys without rooting the device? AFAIK, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adobe Flash CS3 sound in movieclip There's an animation (MovieClip) in my scene. There's a sound accompanying animation. I inserted it into the first frame of the animation. I want this animation to be inactive initially. I plan to activate it when some button is pressed. I don't know how to set it "inactive" from w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clearing items in Combobox if user selection changed I am developing an windowsform application . It consists of a combobox with list of servernames and one more for list of databases for selected servername and one more for list of tables for selected database . when user selects servername and clicks button it dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drop down selection control I have a nice little UserControl that is a draggable box with some text in. To the right hand side of the control is a little clickable arrow, which when clicked, I'd like to get a few options pop out of the right of the control. I have already got a PopoutWindow class, which inherits Too...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scope issue on a try catch statement I have a n00b/basic issue about the try catch on java. Ini myIni; try { myIni = new Ini(new FileReader(myFile)); } catch (IOException e) { e.printStackTrace(); } myIni.get("toto"); and the error message that follows : variable myIni might not have been initialized I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to change visibility in dynamically generated content Javascript and PHP Hi Everyone so here's the problem, I think it's mostly a little problem with my lack of knowledge in Javascript but here's what I did: JS Code: function mostrarResul(idFold, Id) { if($(idFold).css(visibility) == "none") { $...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to show nested json data/ extjs4? i have a function that return 7 values, i used a tuple to return them since they dont have the same type then i serelizes it so i can read my resulted json in my js script , and i can access it via ItemN take a look at the code: public JArray getJsonData( ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Associative array in CouchDB keys? I haven't seen any mention of this around, but is there any way to deal with an associative array key in CouchDB?: map: function(doc) { if (...) { emit({ one: doc.one, two: doc.two, ... }); } } I have a need for some rather dynamic and complex queries, this would help solve that p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Web Service return arraylist of different object types I got a problem when I tried ASP.NET WebService to return arraylist of several object types. Suppose I have a Book object and a Table object. I added Book and Table objects to an ArrayList. After that I return that arraylist in webservice. It does not al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android finish Activity and start another one I'm curious about one thing. How can I finish my current activity and start another one. Example : MainActivity --(starts)--> LoginActivity --(if success, starts)--> SyncActivity --(if success start)--> MainActivity (with updated data). So I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Site not working header Sorry for my English. I editing site in asp and I have a problem, the header is not visible http://edusf.ru/project/default1.aspx But the normal version, with a working header http://edusf.ru/project/ I can not understand the problem. Here is the code page default1.aspx <%@ Page Language=...
{ "language": "ru", "url": "https://stackoverflow.com/questions/7599956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit testing LINQ to SQL CRUD operations using Moq I've had a look around at other questions, but nothing really matches what I'm looking for... mainly because I'm not 100% certain on what it is I'm looking for! Basically I'm working on a new project at the moment, I've created my abstraction layer for DB entities a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the meaning of the HTTP header Vary:* As far as I know, the HTTP Header Vary specifies a comma separated list of HTTP headers that need to be considered by caches together with the URL when deciding if a request is a cache hit or miss. If that header is omitted, means that only the URL will be considered. Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Changing Text in Javascript I am not asking anybody to code for me. Please just tell me what I am missing or what I have done wrong with my codes. My javascript program should run like this: * *Upon pressing a button, a simple multiplication table should appear and overwrite the words "The Table should be here...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cake php, how to populate a drop down selection based on another drop down selection? I have a table something like this: id test attr dim 1 test1 a1 d1 2 test2 a2 d2 3 test3 a1 d3 4 test3 a1 d2 I am creating a drop down field that shows the attr as having only two options a1 and a2. Bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android ActionBar Tab Navigation I am following http://www.youtube.com/watch?v=gMu8XhxUBl8 example. Setting up the tabs is working fine. On each tab, I am using a cursor to get the data from SQLite and display it. where should I write that code ? In TabActivity ? In AFragmentTab ? A: In your AFragmentTab Im sure t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do join with multiple conditions in mysql How can i it in single query Get mID for uID(1) (33,34,35) select text where mID (33,34,35){based on the above result} select Name where uID(user id of mID in table b (5,6)){based on the above result} Output txt1 user5 txt3 user6 The only id I know is uID. How to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I unit test a Grails controller when using a custom property editor? I'd like to use the technique described here: Grails bind request parameters to enum to automatically bind the String representation of an enum to a domain instance. The technique works fine, but my existing controller unit tests fail becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSInternalInconsistencyException when using KVO I'm trying to use a KVO example I got from an iPhone tutorial book, but get this exception Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<UINavigationController: 0x139630>: An -observeValueForKeyPath:ofObject:change:context: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XSLT Transformation value of select - Blank output? Please advise, noob to XSLT transformation. What am I missing from the following XSLvalue-of? I have the following XML data. Then in my transformation listed below I am referencing these elements but I get empty fields in my output. I must be using the incorrect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ListBox with hyperlink -> selection changed I want to do with xaml bindings such feature: Listbox contains hyperlinks. When hyperlink clicked - we go to another frame But also SelectedItem must changed, and on another frame we show info about selected item. I want it without subscribing click/selected events. Only d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL Server Compact does not support calls to HasRows property if the underlying cursor is not scrollable." What does this actually mean? I am stepping through some code and when I look at the properties of my datareader under the locals window in vs2010, the DR.HasRows shows an error: HasRows '(DR).HasRows' threw an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: String formatting with CSS I have a string with multiple lines as below separated by multiple spaces (or sometimes with single space): "word1 word2 word3 word4 word5 word same6 word7 word8" In my Javascript I am able to split using \n, but when I display the same in a CSS div, it ends up in a weird ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there a way to preload code in php in the Apache parent? I want to run some code in Apache at initialization before PHP requests are handled in the Apache child processes. This would have to happen in the Apache parent. It would setup some new global variables. When the child runs, there would be these new variab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I set the local port of a WCF simplex channel? I'd like to connect to a server through a certain local port (presumably, 80). Is this possible in a simplex scenario?
{ "language": "en", "url": "https://stackoverflow.com/questions/7600017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP7 Isolated Storage Text Document Read Line Is there a way using Isolated storage ie a Text document, to grab the text on a certain line. I would like to save variables to a text document on my settings page of my app. Then go back to the main page and read the variable saved on line 3. I already know how to save t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to generate Serial numbers +Add 1 in select statement I know we can generate row_number in select statement. But row_number starts from 1, I need to generate from 2 and onwards. example party_code ---------- R06048 R06600 R06791 (3 row(s) affected) I want it like party_code serial number ---------- -----------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to interact with web application from android application? I have a Java based web application which is developed using JSP/Servlets running on Tomcat server. This application is developed for customer support. A customer can directly login to the application with his credentials and raise any complaints reg. a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maven : error in opening zip file when running maven [ERROR] error: error reading C:\Users\suresh\.m2\repository\org\jdom\jdom\1.1\jdom-1.1.jar; error in opening zip file [ERROR] error: error reading C:\Users\suresh\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar; error in opening zip file [ERROR] e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Is it possible to have dynamic values in tiles.xml in Struts2 Is it possible to pass dynamic values in tiles.xml as we do in struts.xml in Struts2? I have used ${parameter} to get dynamic values in config file but it doesnt seem to work. Any ideas? A: You can pass wildcards to tiles from your struts actions, I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Easy clock simulation for testing a project Consider testing the project you've just implemented. If it's using the system's clock in anyway, testing it would be an issue. The first solution that comes to mind is simulation; manually manipulate system's clock to fool all the components of your software to believe th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: deleting delegate on dealloc without an instance variable so i start a ASIFormDataRequest on my [viewDidLoad] in a UIViewController. ASIFormDataRequest *detailRequest = [ASIFormDataRequest requestWithURL:url]; detailRequest.delegate = self; [detailRequest startAsynchronous]; If my UIViewController gets released bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to store Mobile Numbers in asp.net Membership c# and SQL I have a web application which stores customer details like username, firstname and email address ... etc...etc.. I am using Asp.Net Membership, also my web page where i will allow customers to register I'm using CreateUserWizard. I would like to know ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gnuplot missing data with expression evaluation I want to use the plot command in gnuplot with expression evaluation, i.e. plot "-" using ($1):($2) with lines 1 10 2 20 3 ? 4 40 5 50 e But I want it to ignore the missing data "?" in such a way that it connects the line (and doesn't break it between 2 and 4). I trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why are my CSS and Javascript files not being found by my HTML file rendered in UIWebView? Here is the code that is successfully loading the HTML into UIWebView: - (void)viewDidLoad { [super viewDidLoad]; NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Player" ofType:@"html"]; NSData *htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add the 256 value only to negative numbers?Result i get from modorg is the same as modulus //arrays modulus and modrog byte[] modulus ={-30, 0 , 25, 70,-25,-3,-2}; byte[] modorg=new byte[7]; //the loop that counts the elements for (int j = 0; j < modulus.length; j++) { if (modulus[j] < 0) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript FB.init oauth parameter for October 1st switchover I am wondering if the OAuth parameter in the FB.init call in the Javascript SDK will start defaulting to true after the October 1st deadline. The current documentation wasn't clear on this point. Obviously you can opt-in now by using oauth: true, however ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++: What are R-Value references on a technical level (ASM)? Possible Duplicate: What is the difference between r-value references and l-value references? (CodeGen) I was wondering, can anyone explain what R-Value references are on a technical level? By that I mean: What happens on assembler level when R-Value re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: jQuery .offset(position) not working properly Ok, continuing my adventure with this page. Now I have this in my page (some of the things are placeholders for now): $(document).ready(function() { $(":input") .focus(function() { var localOffset = 20; var hint = $(this).attr("name")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: When selecting all rows from android sqlite database for an application, it is returning the last entry for all the entries I am currently working on an android application. I have a sqlite database that stores text (that I just use as strings in my application) in four columns. I am trying to return all of the row...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: i got an error 'System.Collections.Generic.IEnumerable' does not contain a definition how can i Pass multiple model to controller and bind the data to viewpage i have list page in that page contains two tabs, one for active list and another one In active list. how can i create a model and bind the data to viewpage. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Surface View Appears Black while the associated audio is playing in the background(android) I am basically running a set of video tracks using a custom media player. Every thing works fine until I press home button or go to any other screen, then on after returning to the video play screen I can only hear the audio ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling a dialog in Dynamics 2011 and passing multiple recordIDs to it I want to allow the user to select one or many contacts from the contact entity, and then launch a dialog that accepts the record IDs. The idea is to add some custom configuration to the contacts. I've currently got a custom action on a ribbon bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: how to draw an interaction diagram I have 10 classes. I want to diagram out how they interact for my fellow developers. What diagram type is the best for this? IE class 1 requests data object a from class 2 etc A: A final answer does not seem to be possible. I recommend to create one (or more) sequence diagram(s)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In JQGrid, Is it possible to use different formatter on grouping summary cell other than column formatter? is it possible to use different formatter for the data rows and the summary row? forexample, I want to add a summary info (summaryType= count) to a checkbox formatted column, summary value is shown as a checked...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Updating number of columns in TableModel i use a DataModel which extends an AbstractTableModel for my Jtable. When i use the constructor JTable main = new JTable(model); everything works fine but when i add columns to my DataModel and call this.fireTableStructureChanged() the number of columns does not update as can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unrecognized selector sent? I've been mucking around with MonoTouch and the Xcode interface builder from some sample code which had an interface defined already. After adding a button and giving it a click callback I found one of the buttons was no longer responding to clicks and instead crashing out: 2011-09-30 01...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a hot key available or configurable in Xcode for the "back button"? The backbutton in Xcode is super useful for me, especially when I CMD+CLICK to see a declaration, but I always have to use the mouse to click the arrow back button. Is this configurable to hot key? Thanks!!! A: ^⌘← unless I redefined that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I pass more than 2 parameters or an array with onCommand event in asp.net? the question is above and it is short. I am trying to pass more parameters through a button in a repeater itemtemplate A: The CommandArgument property takes a string. So you could put several values into that property in a comma separate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.InvalidOperationException: The type Database cannot be constructed I have been looking into refactoring some old code into a new WCF service, based on net 4.0 and have into a little difficulty with what should be a simple exercise! The scenario; WCF Service hosted over HTTP, implementing our ServiceContract, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Streaming text logfiles into RabbitMQ, then reconstructing at other end? Requirements We have several servers (20-50) - Solaris 10 and Linux (SLES) - running a mix of different applications, each generating a bunch of log events into textfiles. We need to capture these to a separate monitoring box, where we can do a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rolling dice application for iPhone apps I am making an iPhone dice application and I wanted to create a button so that if I click it, it will generate a random number between 1 and 6 on the UITextField. Can anyone help me out and give me a mathematical formula to generate such number? Thanks A: If you are using Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CALayerInvalid crash on resume I am seeing a CALayerInvalid crash every time my App resumes but only one a specific device. It's a 3rd Gen iPod Touch. Works fine on a 4th Gen or an iPad 1 or 2. I've read some things about finding zombies but the debugger/instruments never seem to attach to the process earlier enoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Streaming : how to reduce to multiple outputs?(its possible with Java though) I read Hadoop in Action and found that in Java using MultipleOutputFormat and MultipleOutputs classes we can reduce the data to multiple files but what I am not sure is how to achieve the same thing using Python streaming. for exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MS CRM 2011 Install Failure "Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed." I'm trying to install MS CRM 2011, and I continually get the "Action Microsoft.Crm.Setup.Server.InstallConfigDatabaseAction failed.--->System.Security.Authentication.AuthenticationException: Logon failure: unknown use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Better Control over test suites in SenTesting Kit/OCUnit It seems that adding a class to my Xcode 4 Testing project that begins with test... automatically adds it to the testing run, but is there a way for me to have the test suites I want to run defined in a class so I can easily toggle them on and off? I would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lost on membership provider I'm confused in the proper time to use SQLMembershipProvider vs my own custom provider. I'm building a system where users can create accounts; and then create objects in our system. When a user logs in, he should be able to see and edit the objects that he created. Now, can I do this by u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does NSRegularExpression not honor capture groups in all cases? Main problem: ObjC can tell me there were six matches when my pattern is, @"\\b(\\S+)\\b", but when my pattern is @"A b (c) or (d)", it only reports one match, "c". Solution Here's a function which returns the capture groups as an NSArray. I'm an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to guarantee that app contains no memory leaks? How can one guarantee (or at least come reasonably close) that one's app contains no memory leaks? What are the specific steps one should follow please? I tried Product -> Analyze, which actually found a leak, however both before and after i fixed it Product -> Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the Declare function equivalent in a PHP database query? I'm rewriting some existing stored procedures in PHP but i'm not 100% sure what the DECLARE section of the stored procedure does. What is the PHP equivalent to this? A: DECLARE just (go figure) declares variables and their types for use in the stored ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP trace for Form post A little background, I have a client that has a legacy php site that has been converted to python/django in the last 12 months. However they are still using the php site while phasing it out. Some new data is gathered in the old system and database structure from users still, but the client...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Blackberry optimization - background image from disk or RAM? I'm curious if anyone has information on whether or not this is an actual optimization or unnecessary bloat. I have some screens that are pushed and popped from the stack via user interaction and all of them have the same background image. Instead of loadi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Server.MapPath in MVC3 I have the code string xsltPath = System.Web.HttpContext.Current.Server.MapPath(@"App_Data") + "\\" + TransformFileName It returns C:\inetpub\wwwroot\websiteName\SERVICENAME\App_Data\FileName.xsl Why am I getting the path to the ServiceController, SERVICENAME? I want the path to App_Da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: PHP5-ldap and LDAPS under Apache2 (not working) vs CLI (working) I'm trying to connect to an LDAPS server using Apache2, PHP5.3, with the php5-ldap package. When I set the code off using PHP-CLI, it works fine. When I execute the same code under Apache2, the bind always fails. I've set TLS_REQCERT to NEVER, hence th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using RegEx for Data Transformation We have a requirement to transform the application specific XML data to a target XSD format specified by government agency. The government agency specifies the pattern using regular expression. Please see below for the sample <! -- Date Type in the format of YYYY-MM-DD --> <xsd:s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Outlook 2010 addin Access is denied Im trying to create an outlook 2010 addin. I just created the standard project, when trying to run it i get the following error... Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ***** Exception Text ******* System.UnauthorizedAccessException: Access is den...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to have maven build my project with all the dependencies in a separte folder, ready to package? How do I create a package of a Maven project that contains the jar with my classes, plus a directory like "lib" with all the needed dependencies? I'm using netbeans ... A: You can copy required libs into a folder usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: FFMPEG and CPU utilization Is there a way to either set a maximum CPU utilization for ffmpeg, or (preferably) to run ffmpeg at a lower priority so that it still runs at 100% but gives up CPU to other processes as needed? I am not sure if this is something I could set in ffmpeg itself or if I need to run some sort of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery - What can I do to make this work? http://jsfiddle.net/piezack/X8D4M/5/ I need the change created by clicking the button to be detected. At the moment you have to click inside the field and then outside for it to detect any change. Thanks guys. The code for the button CANNOT be altered. Good tries so far thou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Executing POST_BUILD commands based upon file dependencies I have a DLL POST_BUILD step that copies the DLL to directory A. Suppose I then delete the file from directory A. I then hit F5 inside Visual Studio and the file is not copied. What are my options here? How do I specify that there is a set of operations t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ordering and Ordered and comparing Options Given: case class Person(name: String) and trying to do: scala> List(Person("Tom"), Person("Bob")).sorted results in a complaint about missing Ordering. <console>:8: error: could not find implicit value for parameter ord: Ordering[Person] List(Person("Tom"), Person("Bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Jquery Selectors + Syntax I am trying to use a jQuery selector (this) to get an image nested on the same level. Just a syntax error, any help would be appreciated. Thanks! $(this).addClass('on'); $(this img).slideUp('fast'); $(this img.accordionButtonActive).slideDown('fast'); http://jsfiddl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to grab the last 12 months from cygwin "date" and use the months for git sync I'm trying to compare the trees of a repo as they were at the end of the month for the past 12 months, to see what changed. I am a newb - so far my code basically looks like this: for month in Jan Feb Mar Apr May Jun Jul Aug Sep git c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is sparse matrix-vector multiplication available in Simulink/xPC? I am trying to make my control algorithm more efficient since my matrices are sparse. Currently, I am doing conventional matrix-vector multiplications in Simulink/xPC for a real-time application. I can not find a way to convert the matrix to a spars...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IBM Filenet P8 Integrated windows Auth A colleague of mine is trying to consume an intranet web service that's configured to use Integrated Windows Auth and he believes there's no way to configure IBM Filenet P8 to perform integrated Windows Auth. I am very doubtful of that but everything I see in Google seems to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why Database is not used with 3D and Drawing softwares (to store points and other primitive shapes)? My question is why Databases are not used with Drawing, 3D Modelling, 3D Design, Game Engines and architecture etc. software to save the current state of the images or the stuff that is present on the screen or is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Specify CSS's for webkit/IE without separate CSS For IE I can use this: .content { *padding: 10px; padding: 10px } By doing so, the *-part will only be used for IE. Is there a tric like this for webkit browsers too? (Whitout having them called to a special .css for webkit browsers?) A: There's not such a hac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento stock getting overwritten to 0 on some products I'm seeing an issue in our Magento 1.5.0.1 store where the stock is getting overwritten to 0 on some products. This seems to be happening automatically and I can't figure out why. I recently installed Lightspeed and SpeedBooster from Tinybrick, which may have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AVFoundation AudioPlayer I'm trying to use the AudioPlayer class that's included in Apple's AVFoundation framework. The problem is xcode for some reason won't properly import the AVFoundation framework. I can't use the #import <AVFoundation/AVFoundation.h> to include the namespace, it won't work, and I don't know wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Raphael and IE. Mouseout workaround I've run into an issue using Raphael for SVG effects on an IE browser. When I mouseover an object, the animation occurs as expected. On mouseout, however, the mouseout action is never called, so the object(s) are stuck in their mouseover state. I've seen others complain about thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: securing a WCF service for consumption by iphone I have a WCF service that needs to be secured to be consumed by an iphone app. I would like to know what my options are. I looked around the net and found that using SSL or api key or username/password over SSL is an option but I wasn't able to find any links about ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Outlook Object Model - Hooking to the Conversation Cleanup Feature Outlook 2010 has a feature called Convesation Cleanup. This feature is implemented using the Conversation Header Outlook Object Model. I would like to hook to this call and perform an action when triggered, yet I can't figure out how to catch it/hoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Design pattern import files alters behaviour I am developing an application where the program can do a number of operations. It relies on a XML file being imported and DB connection established. However, some of the functions can work without an xml file imported, and some can work only if the XML is imported or onl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use mod_rewrite to remove a query string withing a CMS I'm using a CMS that sends all requests to an index.php file using the following RewriteRule RewriteRule .* index.php [L] However in the news section of the site the CMS is generating news links like this: /news?month=201106 I want my news links...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: bash - determine a substring in one variable when an associated substring is known in another variable Assuming I had two strings, one acts a string of space delimited keys, and another acts as the associative space-delimited values for each of the keys in the first: KEYS="key_1 key_2 key_3" VALS="value1 aDifferentV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting z-index in draggable start and stop events I want to fix this problem with the z-index of a draggable div. I have been setting the z-index to be around 99999. But this causes problems for other elements on the page. Instead of having a fixed z-index, it occurred to me that a better way could be to set the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get automatic dependency resolution in my scala scripts? I'm just learning scala coming out of the groovy/java world. My first script requires a 3rd party library TagSoup for XML/HTML parsing, and I'm loath to have to add it the old school way: that is, downloading TagSoup from its developer website, and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: BlackBerry - JavaLoader error when using the "screencapture" option Possible Duplicate: BlackBerry screen shot utility - from a desktop computer I am attempting to use the JavaLoader tool to capture some screen shots of my Tourch 9850 ... the built-in screencapture cammand. I receive the following error: "Ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi Memory Issue (FastMM4) Working on a project which uses factories to construct objects. I keep the pointers to the factory functions in vars globally (bad I know) and register them on initialization. I recently was interested in seeing if the project had memory leaks so decided to download FastMM4 and have a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JSF multiple @ViewScoped and @ManagedBeans on same page results in null injection I have two classes as follows: @ManagedBean( name = "randomBar") @ViewScoped public class Soap { private List<Cat> cats; //getter/setter pair } @ManagedBean ( name = "marioPaint") @ViewScoped public class Hous...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom UINavigationController I'm beginner in IOS I'm try create custom animation for UINavigationController Tell me please Apple reject this code or not???? CATransition *transition = [CATransition animation]; transition.duration = 0.5; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Use custom ASP.NET MVC IValueProvider, without setting it globally? I want to be able to grab keys/values from a cookie and use that to bind a model. Rather than building a custom ModelBinder, I believe that the DefaultModelBinder works well out of the box, and the best way to choose where the values come from would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: add link of custom module to user dashboard magento can someone tell me how to add a link of custom module to user dashbord left navigation in magento. I tried to add <customer_account> <reference name="left"> <block type="customer/account_navigation" name="customer_account_navigation" before="-" templa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: User CRUD in web application that handles registration and login with Devise I am currently working on application that is build on rails 3.0.9. All of a sudden the client decided that there should be a place to create a user and edit a user in the admin section of the website. Now here is the case. The authenticat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: decrypt function - not showing readable string I have created this function for decrypt a password and its working but is showing strange characters like this ��5d[���������. I'm using oracle xe 10g create or replace function decrypt (val VARCHAR) return varchar2 is input_string varchar2(2048) := val; key_string VA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3.0.9 Model attributes are lost on database query If i open the console and type in the following code, my model looses attributes. In all cases only the first attribute after the id is accessable. I had this problem on one server. My old server is working fine with the same code and same versions. Here the ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to delete cache programmatically? I want to delete the cache files in my application programmatically. How do i go about doing this in code? I want to launch a service (which i already have set up to do this). FYI - IDK why my acceptance rate is low. Ive accepted most or all of my answers. A: I assume you're ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iphone voip application exit code I'm implementing a voip application but I'm having a small problem with autorestart: - the app is automatically started when the device is turned on BUT: - the app does not restart after the user kills it from the bottom bar. Am I doing something wrong, or is there any way to force ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How i can get hit test with image on canvas? I create image in this way: var orc = new Image(); orc.src = "./orc.png"; I use image in objects like this: function Character(hp, image){ this.hp = hp; this.image = image; }; I call it in several times, like: unit245 = new Character(100, orc); And I dr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Getting the endpoints of sets across a range For the life of me, I can't see how to do this. I need to collect the non-overlapping endpoints of several sets within a range of numbers with python. For example the user could input a range of 10 and two sets 2 and 3. I need to get the end points of these sets within th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }