text
stringlengths
8
267k
meta
dict
Q: unrecognized selector sent to instance (iOS) Possible Duplicate: unrecognized selector sent to instance Well... like so many others, I have gotten a "unrecognized selector sent to instance" error... The problem occurs when I press a button, e.g. in this case: -(IBAction)gotoTone:(id)sender { if(self.tone == n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trouble with if statement I'm a noob so please be patient I have to test an array, so that I check if it exists and to see if the numbers in it are ok. In every case a message must be put out...for example...if the array is full and the numbers are ok I should get a message like (Array is full, Num are ok). But I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Exception when accessing a class defined in library project from another project I have 2 projects in Eclipse. One is a library project (the base project) and one is the project that will be released as the free version of the app. The free project has only 1 activity in it: a LaunchActivity. Everything else is in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CGRectMake did not work perfectly in landscape mode? when I draw a UIView in landscape mode of ipad , it gives wrong width and wrong height,i have mentioned as follows - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation==UIInterfaceOrientation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Proxy Webservice with Adobe AIR/BlazeDS I am trying to call a webservice using proxy. My settings for proxy-config on blazeds side are as below: <destination id="ws-catalog"> <properties> <wsdl>http://feeds.adobe.com/webservices/mxna2.cfc?wsdl</wsdl> <soap>*</soap> </properties> <a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SVN: switch from nonexistent path? I have a repository which was moved, path renamed and then logs truncated. So I don't have old path in it. When I try to do svn switch https://new.repo/new/path svn complains "Cannot replace a directory from within". How do I avoid this? P.S. Recreating old path is not an option. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php gd GRAYSCALE i have a code in php with the GD library and it gives error here is the code : <?php header('content-type: image/png'); $image = imagecreatefrompng('a.png'); imagefilter($image, IMG_FILTER_GRAYSCALE); imagepng($image); imagedestroy($image); ?> and here is the error : the image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does CakePHP use this method name in a MySQL query rather than return the result? In applying the answer from a previous question, I tried overriding one of CakePHP's built-in pagination methods: function paginateCount($conditions = null, $recursive = 0, $extra = array()) { if (isset($extra['group'])) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery autocomplete with json input + rails3 $(function() { $('.autocomplete_address').autocomplete({ minLength: 0, delay: 600, source: function(request, response) { $.ajax({ url: "/welcome.js", dataType: "json", data: {search: request.search}, success: function( data ) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zend Framework - do not treat /public/directory as a controller Is it possible to request a directory over http in the Zend /public/ directory without it being treated as a controller? Eg, I have a directory, /public/facebook/ that contains facebook app data but Zend is (as default expected behaviour) giving "facebo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery template loaded from distant server I am using jquery templates on several projects. Thing is, in order to get a consistent feel, I was planning to put all the common templates on a CDN server, and then load them from different services with (in head): <script id="errorPage" src="http://www.mycdn.com/error-pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ssis execute package task showing as red, but child packages showing all green When running a package that contains multiple 'execute package tasks' the 'child' packages are automatically opened in vs.net (BIDS). All of the tasks in both of the first two (child) packages turn green i.e. success So why is the parent ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to do ajax or jquery with django1.3 I am absolutely new to django framework and new to web development and python. Currently I'm trying to implement ajax in my project. I am not able to find any working sample. I need help with putting ajax or jquery in a django1.3 project. Now I'm trying to implement ajax using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keeping a hidden input box name the same using c# I am trying to integrate with a payment gateway. They require a set of hidden input boxes to be posted to their gateway like: <input id="orderref" name="orderref" type="hidden" runat="server"/> I have added runat="server" so I can dynamically populate the boxes with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Library function capabilities of Mathematica I am trying to use CUSP as an external linear solver for Mathematica to use the power of the GPU. Here is the CUSP Project webpage. I am asking for some suggestion how we can integrate CUSP with Mathematica. I am sure many of you here will be interested to discuss this. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to embed tag in a list in a wiki I am trying to embed a <pre> tag in within an ordered list, of the form: # Some content #: <pre> Some pre-formatted content </pre> But it doesn't work. Can someone please let me know on how to achieve what I am trying to do? A: You can use a regular HTML list: <ol> <li>Some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get Current User from root mode? I am writing a login item and I am trying to find if its possible to get the current user. Lets say, I have logged in with user "Test" and when I execute the exe with root privileges and if I use char *user = getenv("USER"); user is "root". My expected answer is "Test". How can I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running Java application as a service We have a java application that's essentially a long running process. It's deployed on JBoss 6.1. We have to start it by going to the url http://ip.ip.ip.ip:8080/MyApp/Monitor Is there a way we could run it as a service via the cli with some ability to start / stop / restart as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can Google Checkout support the Parallel Payments like Paypal I have created a Event website and here registered user can create event and their tickets and when an event is created then other users purchases tickets. when customer pays for the tickets then the payment goes to the two person ie. 1(Ticket Owner),2(We...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: if else changing a text field I have this code and it is not working It is just for testing. HTML <a id="sp">test</a></li> JavaScript document.getElementById('sp').innerHTML = 'test1'; var a == 'undefined' IF (a == "undefined"){ document.getElementById('sp').innerHTML = 'inline'; }ELSE{ document.getElemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Problem with Navigation Property naming convention in EDMX My Foreign Key Name in SQL is FK_Employee_Departmemt_Source FK_Employee_Departmemt_Status but when i add Employee and Department table in EDMX, Entity Framework automatically change their names to Department Department1 I want it to be remain the same, Ki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use 9 patch images in android for different-2 densities(like mdpi,ldpi,hdpi).? I am creating an android application in which I want multiple screen support.For these I have used 9 patch images. But my question is this whether using 9 patch images will be enough for different-2 density's devices or I will nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Find out character at particular console location Is there any way to read a character from a specific location on the console? For example Read_Console_Char(10, 40);? A: I don't know if there is a standard way to do this, but in Windows environment you can do that. I've never read from arbitrary location, just wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to abstract from pycurl the correct way I would like to write a pseudo module that makes one do a GET request that keeps on going (pretty much like the one to consume the Twitter Streamming API), but making unnecessary to give in all the parameters everytime someone wants to call a function to make that same GET...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set listener for bitmaps in a canvas in my custom view...? I have a custom view in which i am drawing many bitmaps, Now i want to change image bitmap when user clicks on it. How to do this...? here is my onDraw method of custom view. public void onDraw(Canvas canvas) { super.onDraw(canvas); B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom date validator in asp.net mvc I have a problem ... I have a user registration form .. in this form I have 3 fields that represent the day, month and year of birth. I like to have 3 fields distinct (3 menus). how can I create a validator that allows me to check if a valid date? (not accept dates like 30/02/201...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extjs panel extend I have an extjs panel. I need to induce a drag and resizing property for this panel. This is the code for creating the panel: var childPanel = new Ext.Panel({ draggable: true, layout: 'fit', ................ }); I have achieved drag and resizing propertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rapidshare like site loading How can i make pages load like rapidshare without reloading window? for example: https://rapidshare.com/#!home if you browse through pages, browser window is not reloading, it just change last parameter of url like #!myrs_overview, #!buyrapids, #!help etc when i see it in firebug it is g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Combine DataView and Carousel Is there a way in Sencha Touch to create a DataView that loads data from a store and displays it as a Carousel (or at least behaves as a panel with layout: 'card'), where each item is an entry from the store? Obviously, that means that the number of items is always different. A: See th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JAXB2 Maven Plugin cannot generate annotations or inject-code I currently have an ant task that does a great job of generating my domain objects from xsd and xjb binding files. It creates the annotations and injects code where I need it based upon a custom Plugin. Now I'm trying to move all of this to Maven and whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do a HTTP post to a web service? I need to do a HTTP post to a web service.. If I place this into a web browser like this http://server/ilwebservice.asmx/PlaceGPSCords?userid=99&longitude=-25.258&latitude=25.2548 then is stores the values to our DB on the server.. In Eclipse, using Java programming for andro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails domain class: unique constraint for multiple columns Suppose a simple Grails domain class: class Account { String countryId; String userName; String password; static constraints = { ...???... } } It is required that user names are unique for a particular countryId, thus there m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Login Server Side Logic This question has more to do with how I am setting up my server side code for a simple login script. I'm interested in the best way to achieve my goal, which is of course to verify a users username and password against a database and present them with either a successful login, a registration...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data Entry Tracking (Database Design) I have developed a website (PHP) that allow staffs to add records on to our system. Staffs will be adding thousands of records into our database. I need a way to keep track of what record have been done and the process/status of record. Here a number of Teams I could think of:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem related to NSURLConnection today, I encountered a problem with NSURLConnection. I want to download the contents of the URL http://api.wunderground.com/api/fs3a45dsa345/geolookup/q/34.532900,-122.345.json. If I simply paste the URL into Safari, I get the correct response. However, if I do the same thing with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multimodule maven gwt project - dependency resolution in hosted mode problem Recently I've split my GWT 2.4 application into two maven modules: domain and webapp. Domain module (according to its name) contains domain classes and webapp contains all other GWT-related stuff. Webapp depends on domain. Everything is alm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why are the functions making Vector an instance of Functor, Monad, Applicative, Alternative, Foldable and Traversable slow? The changelog for version 0.8 of vector lists the following change with a warning: Functor, Monad, Applicative, Alternative, Foldable and Traversable instances for boxed vectors (WARNING: th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: PHP Contact Form - Image uploading to temp but not attatching to email I was just wondering if anyone could help out with what should be a fairly simple fix (obviously not for me) for a contact form with image upload. The image DOES get uploaded to the temporary folder, but doesn't appear when I receive the email in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Test type of NSNotification I need to check whether an object is an NSNotification. It is not enough to know if it is a subclass, as I want to differentiate between whether it is an NSNotification or a subclass of NSNotification. So to elaborate I need to differentiate between the following: * *An NSConcreteNotif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSON Object returns a null pointer I want to insert some items into the database. In the main activity, I retrieve information from the user and pass it to the another class to do some parsing. My JSONObject keeps showing up as NULL. I am sorry if I am not clear with the question . I've tried to explain it as much a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: plot stacked bar plot in R I would like to create histogram [stacked bar plot] in R with data like this: Period = c(1,1,2,2,3,3,4,4) Sample = c("A","B","A","B","A","B","A","B") Value1 = c(3,2,6,7,3,2,1,2) Value2 = c(1,0,5,2,2,0,2,5) x <- data.frame(Period,Sample,Value1,Value2) Is it po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What does this expression mean on the ipfiltering project? I have seen the expression: configuration.Filters.Select(f=> Create(f)).ToArray()); Im wondering what the f => Create(f) means? Is this a Lambda? And why is it in a Select clause? A: Yes, this is a lambda expression. It's in a select clause as a projection...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to handle multiple asynch downloads I recently moved my background synch downloads to a view controller and need some advice on how to best handle them asynch. I have written all the code to show a progressview as the download occurs but as you might have guessed it's not that simple. Here's how it works. user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 thread safety broken Or something like that. I've upgraded several apps from Rails 3.0 to Rails 3.1. They are are running on Thin with the multithreaded option enabled, they are all configured with threadsafe!. Worked great in Rails 3.0. But in 3.1, after a few requests, things start slowing down. After a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there any way to disable media queries under certain conditions? I am using the same stylesheet for the main site as well as a 'preview' of the site (NOT in an iframe because I need it to be interactive). The issues is, the preview does not take up 100% of the screen width, so when media queries are based on scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image Flow and Iframe I am using ImageFlow 9. I have an ImageFlow scroller script added in the Iframe. I want to have the images opened outside the iframe that is on the Parent page. Right now it is opening the images in the Iframe itself. What changes should I do and in which file? There is a .js file that has a f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this correct C++0x code? Tried this in GCC 4.6 and it compiles and links, but gives a "bus error" message on runtime on MacOS. VS2010 doesn't even compile it. But the question is, should this actually work in standard C++0x? #include <cstdio> int (*main)()=[]()->int{printf("HEY!\n");return 0;}; Yes, what it's tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to shutdown supervisor process correctly/completely? I am using supervisor to launch and manage a nginx process. So far this works perfectly. The problem I am having is shutting down the instance. I have tried using "supervisorctl -c shutdown [all]" and this shuts down the daemon and in the supervisorctl intera...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System.web.mvc.modelstatedictionary does not contain a definition for addruleviolations I am getting two errors when trying to build NerdDinner in DinnerController.cs. Here is what I currently have in DinnerController.cs. I am getting errors on the two lines with '**' using System; using System.Collections.Generic; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sort Excel data by Date in VB6 i wanna sort it by date which is the mid column of my worksheet. im getting my data from a db system but i cannot sort it in that system i need to sort the data which comes to me as this: | A FIELD | B FIELD | C FIELD | DATE FIELD | E FIELD | F FIELD | | Adata1 | Bdata | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open a .doc file stored in SD card in browser? I have a .doc file stored in the SD card. I have to open it using the browser. I used Intent intent = new Intent(); File file = new File("/sdcard/ValidateLibrary.doc"); intent.setDataAndType( Uri.fromFile(file),"text/html"); in the manifest file i wrote: <acti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirect to page and send custom HTTP headers I use the following code to redirect to a page in PHP. I need to set a custom HTTP headers to pass along with the redirect. header("Location: http://..."); How can I archive this? A: I'm afraid, all the answers are wrong and misleading! It's impossible to redirect to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Visual Basic 6: reset ImageList-Control following issue ... In my project I have to reset (delete all saved images and format) an ImageList that's bound to a ListView-control. At first I unbind the ImageList from the ListView with "ListView1.Icons = Nothing". Then I clear my ImageList with "ImageList1.ListImages.Cle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework and DDD Here's my problem: I use EntityFramework 4.1 Model first, and I have two assembly (Domain and Store) The domain contains all my business logic Store manages all persistence logic to the database So I do not want any entity framework query in my Domain. I use a repository to expose the Store....
{ "language": "en", "url": "https://stackoverflow.com/questions/7583474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AuthorizeAttribute and output caching in asp.net mvc 3 I'm thinking to write custom authorize attribute and I'm not sure about output caching. Attribute would look like this: public class AuthorizeWithAreasAttribute : AuthorizeAttribute { public override void OnAuthorization(AuthorizationContext filterC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: addEventListener doesn't work in an event listener I have an event listener, which listen to document load (this is "myExtension" and it's work correctly). And I want to put another listener into this listener, but it doesn't work. This is that listener: myExtension.$("#quicklink img").addEventListener("click", fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: onClickListener on TableLayout I faced with trivial problem but i don't know how to solve it. I have several ImageViews on my TableLayout how can i create one onClickListner for all of them. It should looks like this : public void onClick(View v) { switch(v.getId()) { case(R.id.imageStart): { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create mouseover highlight box in html 5? If I have a 600 by 400 grid, with 10 by 10 pixel squares like this: /** * draws grid to screen */ function drawgrid(context) { for(var x = 0.5; x < 600; x += 10) { context.moveTo(x, 0); context.lineTo(x, 400); } for(var y = 0.5; y < 40...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sqlite prepopulation How to prepopulate an sqlite database at development time? I found a tutorial how to use a prepopulated sqlite with android but I want to populate the database with data from a text file. Is it possible to write a java program that will read the data from a text file insert into sqlite database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: run picoC non-recursively as an iterated function I've been playing around with a few C interpreters and have found picoC to look like it meets all my needs. to kick off a script you call void PicocCallMain(int argc, char **argv); which recursively calls the internal parser etc.. Is it possible to recode picoC so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stroke and reveal a path slowly? For a scientific simulation, I need to stroke and reveal a path slowly over time, starting at the first point and traveling through all other points until reaching the last point. Like if you take a pencil and start slowly drawing a circle, spiral or triangle. How could I do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSH client and server in java Which are the popular libraries to use to implement both custom SSH client and server in java? I'm aware that Jsch (http://www.jcraft.com/jsch/) is a popular java ssh client, are there good and secure java ssh servers that have an open source license? A: Apache Mina server I haven't ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery need help to navigate/highligt elements on a complex list this is my hmtl list. <div class="bradius3 taggy-beans"> <div class="taggy-beans-search"><input type="text" id="search-tags" class="bradiusMax" style=""></div> <div class="pajinate-content"> <ul class="pajinate"> <li class="page1" style...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C library for email composition with UTF-8 characters I'm building a C app that must send email containing UTF-8 (accented) characters in the body. I found 285 related postings on stackoverflow but they don't address my specific questions: * *Is there a C library (not windows/platform specific) to help compose a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android OnTouch events numerous Objects ok I'm playing w/ ontouch events extending a view. what I've done is made a circle on touch.. the cirlce will follow as you move. As you move another circle is made and will sit in the postion decrementing the radius until it disappears.. (right now up to like 10 circles). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Character to Number in Oracle I have ColumnA in table. The data of each row is single character between A & H. I want my select query to return 1 for 'A', 2 for B .... 8 for H. My query always returns only one row. I can make a lookup table. Anyone has better ideas to achieve the same ? A: SELECT 1 +...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: access java synchronized method from native code I have a java class that has some (private static) synchronized methods which I want to call from native code as well. with some example code it becomes more clear what I mean public class SomeClass { private static synchronized void method() { //do something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Django BooleanField value I have a form field like so IS_EMPLOYED_CHOICES = ( ('1', 'yes'), ('0', 'no') ) class AddEmployee(forms.Form): is_employed = forms.ChoiceField(choices=IS_EMPLOYED_CHOICES) and the field in the model is a BooleanField is_employed = models.BooleanField() I am aware that a Boolea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Node.js to connect to Microsoft SQL Server 2008 (MSSQL) database Possible Duplicate: Connecting to a remote Microsoft SQL server from Node.js I'm looking for an up-to-date explanation of how to connect to a MS SQL Sever 2008 using Node.js (v0.5.7) I have tried both Node.js projects on GitHub here: https://g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to split youtube video ID? src="http://www.youtube.com/v/R5zKIOTvfwQ?version=3" and src="http://www.youtube.com/v/R5zKIOTvfwQ" How can I get the video ID alone from this src? Is there any predefined option available for that? A: The video ID is the string which is after the v/ and before the ? In your case ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating a Place's lat/lon co-ordinates? I have a Facebook Page which originally had one street address, but now has a new one. I can change the street address within Facebook itself, but when I come to query the Graph API for the Page, the latitude & longitude are & have been for some time stuck on the old co-ordin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I avoid getting "No peer certificate" error when connecting to this HTTPS site on Android? I am developing an Android application which needs to access QuickPay's service ("https://secure.quickpay.dk/form") through an Http-client. But I keep getting errors when accessing the page. More specifically I get a "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: string as object reference to object variable var string = 'object.data.path'; That's a string that resembles a path to variable. How can I return the corresponding variable from that string? Something like transforming the string into return object.data.path; The thing behind this is that the string could be much l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Naming Objects in JS How do I create dynamic names for objects in JS? I am pulling elements from a form (ex: First Name). I would either like to assign a number as the object name or just use the first name. A: I'm not sure about variable names, but you can do so with property names var string = "propertyName"; va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is StoreView1 and why is it being requested Hi all i am using c# and i'm being prompted to enter an out int storeview1 as a property of catalogProductCurrentStore(out int storeview1, string sessionID, string storeview). Can anyone tell me what this is? Thanks A: You can look this up yourself. The catalogProdu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to disable Home button without using the TYPE_KEYGUARD? i create a lockscreen application and i need to disable a home button, so if that phone is stolen, that phone can't be accessed.. my lockscreen is a fullscreen activity.. im use this code to disable a home button, but it gave me some bug. here's the code: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I deinterlace an image in Python? Let's assume the image is stored as a png file and I need to drop every odd line and resize the result horizontally to 50% in order to keep the aspect ratio. The result must have 50% of the resolution of the original image. It will not be enough to recommend an existing ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Searching for a concept like 'verbosity' in Modelica I'm struggling with the size of output files for large Modelica models. Off course, I can protect some objects in order to remove them completely from the result file. However, that gives rise to two problems: * *it's not possible to redeclare protected object...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get other property in class of bound property If I got a nested class that I am binding to, how could I retrieve that parent class. For example, I have bound to SecondClass.ImageSource. I now want to get the information of the SecondClass when I click on the Image, how can I achieve this? I would like to change the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Position absolute or something else? Hi I want to achieve the following: The following code works but I'm not sure if position: absolute for left upper "Name" is the wise way to do it or should I use float ? Here is the html <div class="bodyframe"> <div class="upperbodyframe"> <div id="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Export to Excel, PDF, CSV file doesn't support Arabic Language I have tomcat6 and use open report application in it. when i export any report as excel or pdf, it doesn't support arabic language. Please can anyone help me? you can find below jsp page code. <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib uri=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upload Video to Vimeo in Objective C on iPhone I am developing an app from which I want to upload Videos to Vimeo, Facebook and Youtube. Facebook and Youtube have pretty straightforward apis, Vimeo has a good developer documentation, but no Objective C framework. I have seen a couple of Apps which use Vimeo, so I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: what is the command object in spring framework Could you please explain about command object in spring frame work with an example? A: from Spring Documentation: * *Command Object - a JavaBean which will be populated with the data from your forms Think of Command Object as a POJO/JavaBean/etc.. that backs the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: strtotime() converts a non existing date to another date I am building a timestamp from the date, month and year values entered by users. Suppose that the user inputs some wrong values and the date is "31-02-2012" which does not exist, then I have to get a false return. But here its converting it to another date nea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert DateString in a particular format I have a problem that I have Date String in the format "2011-09-28T10:33:53.694+0000". I want to change this Date format in MM/DD/YYYY, don't know How? Please suggest me for right result. A: Something like this. Check the details for your "from" format. DateFormat from = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I associate file types in VS Setup project with a condition? I need to ask for user's permission to change video and audio file associations on their computer, so I added a checkbox UI to the setup project in VS2010. My problem is that I don't see a condition for file type associations in the relevant editor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I determine a new Reply/Forward message's parent MailItem in an Outlook 2010 C#.NET Add-in I am trying to develop an Add-in for Outlook 2010 that allows me to tag an email using an Outlook.MailItem's UserProperties collection. The fields are loaded from a database configuration and displayed in a task pane f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing an encrypted mail via Exchange Web Services I would like to send an encrypted EMail Message with Exchange WEb Services using C#. Is there any possibillity? Thanks Edit: My Mail body encrypter: public static byte[] encry(string body, ContentTyp typ, string to ) { X509Certificate2 cert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Start Different Keyboard for different activities My application has two requirements where one screen is an numeric entry and other has an search option. Since user has to use the numeric keyboard most of the time he has to change the input type of edit text and select the keyboard. Is there any way i could start a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Header-only linking Many C++ projects (e.g. many Boost libraries) are "header-only linked". Is this possible also in plain C? How to put the source code into headers? Are there any sites about it? A: You do not link headers. In C++ it's slightly easier to write code that's already better-off in headers than in sepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sub Process in its own Thread I'm wondering if the following class is sound. I'm using it to launch a bunch of simulators for each test in my test environment. class SubProcessInOwnThread(threading.Thread): def __init__(self, arguments, currentWorkingDirectory): self.arguments = arguments ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: making the checkbox to display div here am trying to display divs ClinicFieldSet and HospitalFieldset by selecting the given text boxes. If both are selected, both ClinicFieldset and HospitalFieldset should display and if one of the check box is selected it should show which div is selected. The problem with my scri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Move data from one table to another every night SQL server I have this scenario i have a staging table that contains all the record imported from a XML file .Now i want to move this data based on verification like if the record is already in the other table update the record other wise insert the new record. i want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start process on Mac I want to write command in Mac equivalent to "ffmpeg -i input.avi output.avi" in Windows. My code is: Process proc = new Process { StartInfo = new ProcessStartInfo { FileName = "ffmpeg.exe", Arguments = "-i /Users/John/Desktop/input...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are asynchronous RESTful web services possible? Reading RESTful documentation, it does not seem like it is possible to implement an asynchronous instance, but someone may know better on SO. What I mean here is I would like to execute service requests asynchronously: @Path("/helloworld", asyncSupported=true) public c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: CSS animations in Opera and IE Recently I have launched CSSload.net - CSS spinners and bars generator. The animations work perfectly in Firefox and Webkit browsers. Does anyone know if there is anyway to animate elements like this in Opera and IE? A: IE10 will support CSS3 animations without prefixes so the vendor ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is this a case for dynamic classes or ...? I'm not really sure even what to search for regarding this issue, so I figured I'd post it here. Let's say I have a bunch of interfaces like... /// <summary> /// All interesting classes will implement this interface /// </summary> interface IMasterInterface {} /// <summary...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: prevent the execution of function from double click when on button click this function is called save_edit: function() { this.do_save(); }, I am trying to disable a button once it is clicked to prevent double clicks. How can I do it within this function? A: $("#element").dblclick(function(){ return f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: need help to read file with specific formatted contents i'm using F#. I want to solve some problem that require me to read the input from a file, i don't know what to do. The first line in the file consist of three numbers, the first two numbers is the x and y for an map for the next line. The example file: 5 5 10 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set lower limit of number of stars shown in RatingBar Android With the RatingBar widget in android you can set the number of stars to be show, but is there a way of setting a lower limit on the number of stars that are always active. As an example rating a film or something where you cannot submit a rating of 1? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7583637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }