text
stringlengths
8
267k
meta
dict
Q: no more postback after file download in asp.net After downloading a file from a webpage, I can't do anything on that page. It is like the page is not working anymore. When I click on other button, there is no post back. Here are my codings. filename= "test.txt" Response.AppendHeader("content-disposition", "attachmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Twitter Bootstrap / Twipsy I like the idea of the Twipsy plugin that is bundled as part of Twitter Boostrap, but it doesn't seem to work correctly. Here's a jsfiddle: http://jsfiddle.net/burlesona/DUPyR/ As you can see, using the default settings as prescribed by the docs, the tooltip appears when you hover over the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set the brightness of the screen on WP7 How to set the brightness of the screen on WP7 to its maximum using silverlight/xna? <Canvas x:Name="light" Background="White" Width="480" Height="800" /> I used this code .Have any other way? A: You can't set the brightness from a 3rd party application. There's no pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Weird MEX-file behavior Something weird is happening. I created a MEX-file with MATLAB R2011, and I compiled it with Visual Studio 2010. I'm able to use the MEX-file in the workspace correctly. Then, I'm using the MEX-file inside a MATLAB m-file (calls the MEX-file several times). When I try to run it, MATLAB crash...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ScrollView over the tabhost I am creating a page that has tabhost (main) and each tabweight also has tabhost (child) but when I put tabhost (child) inside scrollview its scroll works fine but it start from below the tabweight not from top of the page. I also try sView.fullScroll(ScrollView.FOCUS_UP); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Compile error with inner class (bracket expected) I have an inner listener class in my program. The compiler signals an error at the first line below and says '{' expected. I can't figure out what's wrong. I revised all my brackets and there's no problem. Here's my inner class: private class Listener implements Acti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: spring aop not firing for annotation I am using an annotation on a method. and whenever that annoation is present I want to intercept it using aop. What am i missing. <bean id="emailAdvice" class="com.merc.spring.aop.advice.MultiThreadEmailAdvice"/> <aop:config> <aop:aspect ref="emailAdvice"> <aop:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to define a function by intervals in Mathematica? How can I define a function f(x) in Mathematica that gives 1 if x is in [-5, -4] or [1, 3] and 0 otherwise? It's probably something simple but I just can't figure it out! A: The basic construction you want is Piecewise, in particular the function you were asking...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to create optimized ruby? I read a tweet http://twitter.com/#!/bjschaefer/status/120519670515249152 saying about "Optimized ruby". Wondering how to create it? A: As always when optimizing * *Measure *Tweak *Validate *Repeat Nothing special with optimizing Ruby and there are no hidden one click "optimiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Periodictask not being executed In my WP7 app I am using a periodic task. Whe I use the code for debugging to launch the Periodic Task it runs as expected i.e. ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(60)); However when I just add it to the action service it will not execute i....
{ "language": "en", "url": "https://stackoverflow.com/questions/7631150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Lua: getting the latest line in external txt file I am having a lua function to reading and writing a txt file, I need every time lua write in at a new line instead of replacing the previous write in. How do I do that? Do I need to read in and get the lines 1st every time before I write in? Here is my code: local fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT-GIN Multiple Implementations? I have the following code public class AppGinModule extends AbstractGinModule{ @Override protected void configure() { bind(ContactListView.class).to(ContactListViewImpl.class); bind(ContactDetailView.class).to(ContactDetailViewImpl.class); } } @GinModul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to insert/update an RDF file using Jena? I want to insert a node in my RDF file. I know that there is SPARQL insert/update syntax, but how to do this using Jena. An example will be of great use. A: Are you sure that you need to use SPARQL update? In Jena, nodes (resources or literals) aren't in the Model by th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Response in the same PHP file I have a one single PHP file in which first part: Server generates some output. Second Part:uses the server generated output and submits the information. what i have done: File Name: abc.php <?php //first part based on the information here server generates some output say: 111 suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dealing with display objects on the stage I think there are 2 different practices with dealing with display object on the stage. * *You draw all the objects on the stage and then manipulate the "visible" attribute to show or hide them. *You use addChild and removeChild to manipulate the visiblity How do you thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: COCOS2D: how to animate falling bricks into a grid I'm trying in the beginning of the game to animate 41 bricks to fall into a grid that is 6x7 from the top of the screen but so far I've just been able to make the bricks to fall down at the same position. If I remove the animation part then all bricks appear on the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Opening documents inside a website I want to know is there any flash viewer which i can embed on my website, for opening word, pdf files? or is there anything else that i can put on my php website, that can view the document A: You can embed Google's docs Viewer: https://docs.google.com/viewer It can handle most Of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using CSS3 instead of images to achieve desired results I am trying to use CSS3 instead of images to code the menu in http://www.cssmania.com/ . My code so far (& the images+styles) can be found here: http://sarahjanetrading.com/js/j I tried using CSS3 to achieve the border shadow and the menu li a background to mat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dynamic programming algorithm during an interview This question was asked to me in an interview and it embarrassingly exposed my shortcomings on dynamic programming. I will appreciate if someone can help me crack this one. Also, it would be very helpful to me (and others) if you can explain your thinking process alo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Why is CDATA needed for html in jQuery AJAX response? I have an ajax function that returns an xml. In the xml there is one html table and some other xml elements. I tried a few ways to extract the html table for inserting into the page, but was told that I need to wrap the table with CDATA. Then I can use the $conta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Print tomcat version and path I have a requirement to print the base dirctory of tomcat in which it is installed using java. my tomcat is installed in c:\apache-tomcat\. In other words I want to print the catalina.home directorty using Java. System.out.println("print tomcat directory"); A: System.out.println(S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can TSizeGrip be used to move and resize components at runtime (within FireMonkey)? FireMonkey's predecessor advertised that it could be used to create CAD and GIS programs. I've been exploring FireMonkey and thinking about how to create a simple CAD program. A basic function is to move shapes around on the screen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is Asp.Net MVC not searching for a view in my Shared directory? In my /Views/Shared/ folder I created an EntityNotFound.cshtml razor view. In one of my controller actions I have the following call: return View(MVC.Shared.Views.EntityNotFound, "Company"); This causes the following exception: System.InvalidOper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit Testing highly interdependent code So I have some challenging code I would like to refactor. The challenge is that it depends on Database queries, EJB and Java serverFaces. Not simultaneously but close to it. A good example would be a geocoder. Getting meaningful results depending on multiple queries to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to insert a list of students details in to WP7 Mango database I have a list of students: List<student> std How can I insert this list into a WP7 Mango database using LINQ To SQL? Is there any mechanism present in LINQ To SQL for inserting the entire list to the database table without iterating one by one? A: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intellij IDEA - Webservices client from WSDL with certificates I am somewhat new to SSL/TLS and Java trust/keystores. I am attempting to generate a client to consume a web service from a IIS-hosted WSDL file. This worked fine before the service was configured to require certificates. I now receive a Wsdl url connect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javascript and function prototype assignment I've always assumed that the prototype of a function was shared among all the objects, in a sense by reference. So if you change the value of a property of the prototype, all objects that share that prototype have the values change for them as well. So for instance below...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Asterisk1.6 no such command originate I installed Asteisk1.6 I tried to use "originate" and I got the no such command error. I typed "core show help" then no have "origiante" command in list How can I solve this? or I missing something at the config. Please tell me. Thanks. A: In the Asterisk console, type "manage...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SOAPHeaderElement required help to write Java code to create SOAPHeaderElement or Element object for the following structure using JAX-WS 2.2.5 (Metro) Metro provides WSBindingProvider to create header within Header tag but, how to create a nested header is the question (putting user and password within Auth tag). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Fetch image from gallery without user interaction I want to fetch a picture, if present, from the gallery without having user to select picture from the gallery. I want to do this programmatically. I have tried following approach: String[] projection = { MediaStore.Images.Media.DATA }; Cursor c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integrating a 1-10 voting system effectively without common pitfalls I'm planning on integrating a reasonable ranking/voting system into an existing application. I'm familiar with how the traditional 5 star rating systems work and know the common pitfalls/problems associated with them therefore was wondering if ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AForge.NET -> AVIWriter Adding Images as Frames I want to make a video from images, and each image should stay for one second. The AVIWriter has 25 frames rate, so i have to add one image 25 times to make it stay for one second. I tried changing the frame-rate, but it is not working. Can anyone suggest a workaroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET MVC - Can't bind array to view model I have a view model with a from that includes a set of checkboxes. I need the check boxes to map to an array when binding in the post back method of my controller. Here's the view model. @model TMDM.Models.TestSeriesCreateViewModel @{ ViewBag.Title = "Create"; } <h2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: pushViewController does not cause new controller to draw view Preface: I am not using *.xib files. I instantiate a UINavigationController in a class that effectively serves as my 'rootViewController'. This 'rootViewController' also has two UITableViewController members that are drawn on different sections of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: facebox cancel event Im using facebox for delete data (conformation) from MySQL. i like to know how to use a cancel button in the window. when the user click cancel facebox have to unload. Here is the code im using in facebox. Are You Sure You Want To Delete This URL? <?php include ('../db.php'); $id = $_GET['id'];...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - Find next select element What I am trying to do is populate data in a select element. I'm using the following code, where a user selects a SubjectCategory from one drop down, which then should populate the next select element's html. The handler itself is working just fine, it returns the correct html I nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: find a regular expression for strings containing the substring aba over the alphabet {a, b}? (formal language theory) The questions asks to find a regular expression for strings containing the substring aba over the alphabet {a, b}. Does this mean anything can precede/procede aba so that the regular expression would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I bind the width property of a WPF Datagrid column? In a loop which sets up my WPF DataGrid columns, I want to bind the column width to member 'i' in my 'WidthList' with the following code: var bindingColumnWidth = new Binding(string.Format("WidthList[{0}]", i)); customBoundColumn.Width = bindingColumnWidth; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: How to determine waiting threads? Want to create a unit test for android library project. I need to test if the given thread is waiting (synchronized object.wait() was called) or not. Is it possible to determine it? A: A common way to write unit tests to see if a method is called is to create a mock object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient domain filtering using regex in ruby I'm building a rack server app that has to filter domains that can access the data. This is currently how i do that and it works fine: authorized_domains = /domain1.com|domain2.com|domain3.com/ return [417, {"Content-Type" => "text/html"}, ["Expectation Failed"]] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to download a file from server using ftp and how to save that file in my local folder this is my code but this is not working whats a problem in this code.u have any another code.give me idea to download a file from server using ftp.i am trying this code in my localhost also in my own server. $curl = curl_init()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to play sound after calling recorder and than animation start and than play sound? I have to task to develop an application which plays sound after user blow candles and than the sound should play. For blowing candle I have used AVAudioRecorder that catch user blow and than its starts animation of stopped candle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP cheapest way how to check if remote image exist I want to check if a remote image exist. Currently using CURL and based on its response to i can determine if the file exist. However, this takes a fare bit amount of time depending on the image file size also. Is there a safest and cheapest way of doing a check ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ssl(certificate based authentication) complete working and understanding in wp7 I am trying to understand the concept of ssl in wp7. I learnt that public key is installed in the phone. And how the private key will synchronize with the public key? Is there any code needed? In my scenario is that i have a username ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would I convert regular expression to finite automata? How would I change the following regular expression to finite automata? (abUb)(bUaaa)b*b((a*b)*Ub)* note: U means union in this case A: There are five top-level concatenated components of this regex. According to the algorithm recoverable from a part of K...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if a Document Library (SPDocumentLibrary) supports a particular ContentType I have a SharePoint 2010 site set up locally for debugging with the following topography: Main (SPSite) -> Toolbox (SPWeb) -> MyTool (SPWeb) I have created and deployed the following to Main: * *Custom Field "RequestedB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sybase ULtralite DB and iOS Core Data Is it possible to use Sybase ULtralite DB as the storage medium for Core Data instead of SQlite? A: It is possible, although it might not be worth the effort: Atomic Store Programming Topics A: You can do it using either the Atomic store or the new Incremental Store. As @sosbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iphone sdk save drawings without whole context I want to capture screen of my view from my iPhone app. I have white background view and on that I draw a lines on that view's layer using this method . - (void)draw { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSaveGState(context); if (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is this a normal occurrence in backbone.js? I seem to be writing something like this when rendering views... _.each @model.nestedcollection.models, (nestedmodel) -> and I feel at some point i'll probably need to write something like... _.each @model.nestedcollection.models, (nestedmodel) -> _.each nestedmodel.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass in a SelectList and use associative select to get name from id? Given the following code how can I select a list item in my view to get the name via an id? I just want to get the name value from the list via a local @id variable that maps to the lists id range. This really has nothing to do with dropdow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to copy/update resources, frameworks or plugins to the (Mac OS X) "app bundle" with Qt Creator or qmake I've been reading for a couple days on how to copy/update external resources, plugins or frameworks to my App's Mac Bundle using Qt creator or qmake. Right now I have found two main solutions. One is to use qm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: previous button jquery I have these two elements in my page: <input type='button' value="undo" style="display:none" onClick = "undoFunction()"/> <input type='checkbox' onClick = "ajaxFunction()"/> I want when ever I click checkbox, undo button appears. I have used jquery but something is wrong. it doesn't work. t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot debug Thrust CUDA in Visual Studio I've compiled a simple CUDA project in VS10 (and it works), but strangely I cannot put a breakpoint or step-over some parts of the code, namely those involving Thrust call, not even host-side thrust. Having been through nvcc, with the debug keys specified: -D_NEXUS_DEBUG -g ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: reading a plist file in Cocoa I have a plist that looks as below. Whats the preferred method to read a plist into and how do I read this into an array ? I can create a NSMutableDictionary, load the contents of this plist, load the keys into an Array and then use a for loop to read the top 2 keys - SomeData and MoreD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rake error: Stack level too deep I know this is a common question, but I just started a project with the new Rails 3.1.0 and Ruby 1.9.2 p290 On my first migrations I had already this error and I am not sure why. Aurelien$ rake db:migrate --trace /Users/Aurelien/.rvm/gems/ruby-1.9.2-p290@rails3/gems/rake-0.9.2/lib/r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: creating directory using PHP I need to create a directory using php with write permission...currently am using the following code $folder_name = $this->input->post('foldername', true); $path = '/home/temp/workspace/My_folder/documents/'.$folder_name; mkdir($path,'0222'); But this is not working... A: Does your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect subdomain to subdirectory - trailing slash I want to redirect [abc].apps.example.com to the following apps.example.com/[abc] but still showing the using the [abc].apps.example.com in the url. [abc] an be anything eg. calendar.apps.example.com books.apps.example.com etc With a bit of digging around and tweak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Array splitting ending / beginning I'm looking to split an array into two, one containing the beginning and one containing the ending. If their is an odd number of array items I want the first to contain the extra one. $array = array('1','2','3','4','5','6','7'); $beg = array('1','2','3','4'); $end = array('5','...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate Automatic Versioning I have developed a customer maintenance application. Users can alter the customer details via web interface. I want to handle the following scenario: * *User 1 loads customer1 details. *User 2 loads customer1 details. *User 1 changes and saves customer1's name. *User 2 only chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Pointer to Pointer with argv Based on my understanding of pointer to pointer to an array of characters, % ./pointer one two argv +----+ +----+ | . | ---> | . | ---> "./pointer\0" +----+ +----+ | . | ---> "one\0" +----+ | . | ---...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to push a view controller onto navigation stack AFTER executing popToRootViewController I am trying to push a new view controller onto a navigation stack only after I pop the stack to rootviewcontroller //Select the tab I want to go to self.tabBarController.selectedIndex = FEEDPAGE_INDEX; //Retrieve the navcon ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CakePhp: Form validation on several fields? I've some conditions to a form to be valid that has to be on several fields instead one, how to do this. Some example for a registration: enterprise or firstName+lastName filled mobile phone number OR static phone number filled How to do this? Is there an implemented way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to store multiple DataTables into single DataSet in c#? I have the code below which has multiple DataTables with results and I need to pass a single DataSet with all DataTable values. MySqlCommand cmd = new MySqlCommand(getLikeInfo, con); MySqlDataAdapter da = new MySqlDataAdapter(cmd); DataTable dt = new DataTa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Replacing specific Unicode characters in strings read from Excel I am attempting to replace some undesirable characters in a string retrieved from an Excel spreadsheet. The reason being that our Oracle database is using the WE8ISO8859P1 character set, which does not define several characters that Excel "helpfully" i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to destroy my application? My application is always showing in Task Manager when I exit from my application. How do I destroy it? I used the onDestroy() method, but still it is running. I am using alarm manager and some database operations; is that the problem? A: Android does not destroy applications unless i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to determine is_home in wordpress if query a category? I need to query a category in home page. in index.php file I used this script $all_featured_posts = query_posts(array('category_name'=>'featured-programs')); Then in the header.php file I need to change the title <title> <?php if ( is_home() ) { e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BigNum Class String Constructor Error So i am implementing a BigNum Class to deal with large integers and am currently trying to fix my string constructor class. I have to be able to read Strings such as "-345231563567" in an array with the numbers being read in backwards (i.e. 765365132543). The first part of the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop Background Music Playing when Song Download in iPhone I am downloading song with asihttp request My problem is when i click on url to download song, song start playing in my view How do i stop this, I dont want song should play when downloading Please Help A: obj.tagvalue=[sender tag]; NSString * tmp =[NSSt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create three buttons in UINavigationbar in iPhone programmatically? I'm developing a small application. I need to create three buttons in a subclass. One button is add, another one is search and the last one is back. I also create left and right buttons. But I can't create search button in the center of the n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correct use of JSON for a simple restaurant menu description I would like to know whether this JSON script example I made is well formatted and whether it does make sense to put the information like this. {"menu": { "drinks": [ {"coke": "20"}, {"pepsi": "20"}, {"water": "20"} ], "junk-food": [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Invalid usage of aggregate function Mean() and Type: String My Code is DataTable dtNew = new DataTable(); object o2 = dtAll.Compute("MIN(Price)", string.Empty); object o1 = dtAll.Compute("AVG(Price)",string.Empty); Min returns minimum.. thats work fine. but avg generates error "Invalid usage of aggregate functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I make my app run in background on the iPhone? How can I create an iPhone app that runs in the background and receives data from a web service and produces push notifications? A: For iOS app running in the background, you need to specify it in the info.plist. required background modes = app plays audio, web ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ASIHTTPRequest giving me problems I have a code that sends POST data to a PHP website. Code: request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/Testing/Testing.php"]]; [request setPostValue:targettype forKey:@"targettype"]; [request setPostValue:targetmethod forKey:@"t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to convert an Integer param in JAXB? I am creating a SOAP service using JAX-WS and JAXB. There is a count param. How can I using a costomize DataTypeConvert to convert it? I want to convert an Integer(not a POJO) param object by my costomisze DataTypeConvert. Because if the SOAP message contain "count" tag, this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appended row in table view of mobile application must retain permanently (titanium) I am using titanium for developing Android application. I am using following code for displaying data and using table view.When I click on comment_btn a new row get appended in table view.it works fine.But when I click back button or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I tell if I'm at the last result when using WHILE so that I can omit a comma from my output? I know I can do what I need to do by getting a total records count and if I'm at the last record, don't display a comma but there has to be a better way. I'm trying to build an SQL statement programatically using val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: number of elements in Tuple<...> Just wondering if there's an easy way to know how many elements are contained in a Tuple class eg. var a = new Tuple<int,int>(1,2); but how many elements are there? Perhaps we don't care if we try to cast via the as keyword var a1 = a as Tuple<int> if(a1!=null) var a2 = a as T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: java application distribution with extension api I am planning to write some java application & planning to distribute in free & commercial versions.Basically my idea is to get some money from out of it from corporate users. I would like provide extension API which other user can write some jar & include in the prod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: integrating boost with numerical recipes 3 code i get a bunch of errors when i use both nr3.h and boost library. I use ubuntu 10.04 with libboost1.40 and code from http://www.nr.com/ (3rd edition) try.cc: #include "nr3.h" #include <boost/algorithm/string/predicate.hpp> int main(void) { return 0; } i compile the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fastest way to draw a bitmap? I'm working on a timelapse application and that requires drawing new frame every 30ms. Frames are stored in isolated storage (they are 640x480). I tried loading them into MemoryStream first, and then convert to BitmapImage and assign as a Source for the Image control. But it's too long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery ui dialog - open when page loads if browser is ie I have a jQuery UI dialogue but need it to open as soon as the page is loaded if the browser is ie (Internet Explorer). I have made the dialogue, but cannot seem to find anywhere in the API Documentation to open a dialogue on load. A: Just attach a normal $(w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery script not working on divs fetched after page load So I have the jquery code here: $(document).ready(function(){ $("div.post.photo").hover(function () { $(this).children("div.show").slideToggle("fast"); }); }); It effects the html code here: <div class="post photo"> <img src="source" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Cocoa-Touch Framework, is there any modal view in iPad like this? Is there any model view like this on the iPad? A: Yes, there is: UIModalPresentationFormSheet The width and height of the presented view are smaller than those of the screen and the view is centered on the screen. If the device is in a landscap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mouse Over Movie Clip is Buggy...It has text boxes on top that cancel the effect can I bypass this? So I have a movieclip in my flash that has an event listener that calls it to pull up when the mouse is over and go down when the mouse is out. Kinda like a menu. But this object that I am accessing has text over it. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using htaccess to redirect host urls but not when they contain paths or parameters What I would like to do is use htaccess to redirect (301, Permanent Redirect) simple host only urls to another domain but only when the url contains no path or parameters. For example: http://www.mydomain.com should redirect to http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I register more than one BroadcastReceiver for an Activity in an Android Programming? I implemented a sample application which Shows the Phone Information, Battery Information of an Android application. I created two different Class files for two activities. There is no issue in getting the phone related informa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the 'reactor' when the twisted application is started by twistd? My application uses the 'twisted.web.client.Agent' to get web content. But the Agent class requires a 'reactor' instance to initiate. If I start my application using the 'twistd', there will be no 'reactor.run()' at all. So how can I get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: OpenLayers Refresh Strategy Problems I'm developing an application, part of which uses OpenLayers (calling a Geoserver-served WMS) displaying some frequently updated data (a vessel track - or more specifically, a series of points). I would like to have this vessel track updated at a set interval - OpenLayers.Strateg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: display default as first option in select box without changing order Is it possible to have a default option displayed in select box without changing the order of the other options? <select> <option> 1 </option> <option> 2 </option> <option> 3 </option> <option> 4 </op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uninstalling Sync Framework without breaking Visual Studio Not strictly programming-related, but I do not know where else to post this question: Is Sync Framework a truly indispensable component of Visual Studio 2010? From what I read about the Sync Framework, it is a tool that helps developers "synchronize data acr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: compiler optimizes away a final field added to a serialized class This is a strange one, am wondering if this is by design or a compiler bug. Am using Sun Java 6 on a PC, but also seen with Sun Java 5 on a linux box. Suppose I have a file on disk containing a serialized class. I then add a final field to the class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Irrlicht - Using SMesh, SMeshBuffer and SceneManager->AddOctreeSceneNode(...) I need to draw a very large number of 3d lines. If I use driver->draw3dLine(...), the performance drops very badly. I heard that using the Octree we can optimize the drawing by displaying only what we need to see but I'm confused as to ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to use wsdl web service in iphone? Hello every one..... I am using wsdl web service in my project.I don't know how to use it.But from the wsdl2objc i generate the wsdl into objective c form.And after that i implement it into my project.In my wsdl there are many methods like getCountryList,getCityList...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I set up different shipping options for different countries in Magento ? I sell my product internationally. I want to set up different shipping options for different countries. I have setup the FEDEX on my magento already. How to setup FedEx Int'l Economy or FedEx Int'l Priority based on country/location in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: remove selected (highlighted elements) on keyup function I have these two functions: var $mainEdit= $("#main-edit"); function getSelText() {     var txt = '';      if (window.getSelection)     {         txt = window.getSelection();              }     else if (document.getSelection) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can an HTML button be used to upload a file for use with the W3C File API? I have a thumbnail interface mockup, and I would like to add the ability to upload an image. According to my mockup, the interface looks like this: The intent was that the user would click on the "Add Icon" button, and a file dialog would p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Event vs. while(true) loop Background is the following: A Windows Service which is supposed to perform an action once per day at a given time. I have currently implemented this by creating a timer and added the ElapsedEventHandler. The event fires every t minutes and it is then checked that we are passed the configu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple Queries in different table (Also posted here.) So I have two tables, one is invalid table and the other is valid table. valid table: id status date invalid table: id status date I have to produce a report with this output: date on-time late total valid invalid1 invalid2 total rate --------- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Differentiate between the program setting a checkbox and the user clicking it I want to know if there is a way to differentiate between the user clicking a checkbox, in which case I would like the following event to trigger, and the program itself setting the checked state, in which case I would like it to do nothin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get XML node value in XSLT if we have got XML path in PARAM I am using XSLT 1.0 and have below sample code: In my XSLT, I have got a param which has my XML path <xsl:param name="sitespath"/> I know I can load it as document and then further get the values accordingly, like below <xsl:variable name="siteInf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }