text
stringlengths
8
267k
meta
dict
Q: What is the difference between == and equals() in Java? I wanted to clarify if I understand this correctly: * *== is a reference comparison, i.e. both objects point to the same memory location *.equals() evaluates to the comparison of values in the objects A: String w1 ="Sarat"; String w2 ="Sarat"; String w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "759" }
Q: Flash SWF file cannot find XML data file when loaded into WebBrowser control (but works in IE9) Bit of a long explanation below, with a hopefully accurate short question summary here: Can a .NET WebBrowser control (Win7 64-bit, IE9, current Flash 10.3.183.7) load a SWF file into an <object> tag, where the SWF file i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ant rule/task that can forward a variable number of cmd line arguments to a task I want an ant task that includes command line passed arguments. The command line arguments can vary in number. Specifically, for the <java> task within ant. I would like to do this on the command line: $ ant run foo bar ... Ideally, "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Video making software for Android Tablet I wanted to make video demo of my application in order to present. How can i make my application video when it running and open on android Tablet. A: I've tried to come up with ways to do this to no avail. Best I've ever been able to achieve is stick your device in front o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to post to a user's wall while he is offline,renew his token(if expired) via my app. C# Facebook SDK I know how to use the token after the user successfuly logs in with FacebookLoginDialog(AppId, ExtendedPermissions); but what happens when my app wants to post at this user while he is offline? And how can i re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MPMoviePlayerViewController play movie from Documents directory - objective-c I have subfolder called "Video" in Documents folder. And there is somevideo.mp4 file. I have full path to this file but MPMoviePlayerViewController doesn't want to play video from local. Here is code: NSString *path = [[self getVideoFolder...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL Left Join Subselect I have a simple table of languages / template id's: language | template en, t1 en, t1 au, t2 ge, t3 en, t1 ge, t2 ge, t3 Template is always either t1,t2, or t3. In total there are 3 languages: en, au, ge. There is lots more information in the table, I am just showing what is relevant to thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What does self do in ruby on rails? I'm on railcasts just practicing some rails and have come across something I'm trying to understand. I didn't get what the "self" on the authenticate method was doing. So I deleted it and tested the login of my app to see if it would show an error and it did: error: **NoMethodErr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Texture wrap mode repeat is not working I am using the Android mobile platform, with OpenGL ES 2.0. When I make a texture like so, the textures in my scene draw correctly //Generate there texture pointer GLES20.glGenTextures(1, textureHandle, 0); // parameters - we have to make sure we clamp the textures to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to import and use another package I have my main project and I have created another on the side. The new one simply listens for a button click and then runs methods to update a users twitter status. What I am unable to do at the moment is use this in my original project. I could copy the code into every .java fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: capturing network packet in c This question might sound fool, because I know there are bunch of frameworks that does it for you. What I want is actually get in touch with low level C API deeply and able to write a program that sits on computer and intercepts packets between local machine and outer spaces. I tried to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: reloading url from an array in javascript I am working on the following code for a chrome extension. Basically I want it to check the page that initially loads and if it matches my website st.mywebsite.com it will execute the code. Right now it doesn't check and will execute any pages that loads. I am trying to get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copying an instance of a model and updating fields I'm trying to copy an instance of my Page model and set the new page's status to "draft." This code works perfectly in the Django shell, but in the admin action where it lives, a new instance is created but the status is not updated. for page in pages: page....
{ "language": "en", "url": "https://stackoverflow.com/questions/7520460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can contents of a namespace be made available to an entire project without generating Multiply Defined Symbol errors? I am attempting to make a fairly large video game, and my current method of handling mouse input is to pass mouseX, mouseY, and an enum mouseState as arguments to the update function of EVERY sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: missing lines while appending files I am new to both stackoverflow and python, so this might look obvious: In this procedure I want to create a new file named database out of a list of files generated by a previous procedure. The files in the list are quite big (around 13.6 MB). The goal is to have a single file wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript RegExp help for BBCode I have this RegExp expression I found couple weeks ago /([\r\n])|(?:\[([a-z\*]{1,16})(?:=([^\x00-\x1F"'\(\)<>\[\]]{1,256}))?\])|(?:\[\/([a-z]{1,16})\])/ig And it's working to find the BBCode tags such as [url] and [code]. However if I try [url="http://www.google.com"] it won't matc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Question regarding main activity and custom view I am working on an online handwriting recognition tool . I have a custom view which i am adding to linear layout . how can i get the coordinates in custom view and transfer them to main activity file for storing them in linked lists or array lists A: You could overri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting datetime to different timezones with javascript Im using the InstantAnswer source of the Bing API to retrieve flight status information in JSON format via jQuery.getJSON. This is an example of what im receiving: if(typeof SearchCompleted == 'function') SearchCompleted({"SearchResponse":{"Version":"2.2","Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Zend PDO_MYSQL error in application.ini file When in configure my website which is working on zend to mysql in application.ini resources.db.adapter = PDO_MYSQL resources.db.isDefaultAdapter = true resources.db.params.host = 67.227.236.194 resources.db.params.username = rdvscoin_rdvs resources.db.params.password = P@...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring MVC & UI Components I'm in the "technologies selection" phase of a small, single-page web application that will be heavily-based in AJAX, and which will report to a Java backend. In a previous question I posted several weeks ago, the SO community at large felt strongly that I would be better off going with a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Storing custom MySQL MetaData - best practices I have a fairly large database containing a number of different tables representing different product types (eg. cars; baby strollers). I'm using a website built with PHP to access the data and display it, and I allow users to filter the data (typical online product dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Live" get(x) and get(Y) values (for MotionEvents) ****UPDATE**** I was wondering how to get accurate, live get(x) and get(y) values for a MotionEvent? What is happening is that when I touch a specific area on the screen, I tell an action to happen. The problem is that once I touch the screen and take my finger off,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error deploying signed jar+jad to a blackberry 9300 curve 5.0 My setup is Eclipse, BB JRE 5.0, Blackberry application (not MIDlet). It works ok debugging it from eclipse on the aforementioned device. However, packaging it (firstly signs the cod files and then) produces some files which are manually copied under a fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: file upload to the wrong directory I try to use the copy() function in php to store two same files in the sever at one time, I have specified the directory for the copied file, but it doesn't go to the directory I specified which is "edituploads" folder, instead it goes to the current directory which the upload php ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a drop down in itemtemplate and populating value dynamically I have an item template in a GridView and I want to create a dropdown for each row and bind it to a value retrieved from the database.. but I am not sure how to do this.. this is what i have so far.. but not sure where to put the code to populate th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Helper Gem for Rest on Rails 3 I know that Rails has some tools on board to create a REST API. However, concepts like HATEOS aren't supported out of the box. I googled around for Gems that are filling the gap. The most complete Gem I found is Restfulie (https://github.com/caelum/restfulie). But I am not complete con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Site is calling same file multiple times but doesn't show in code? I am honestly not sure where the issue lays but here is my problem: I have a single file: card.gif. When I check firebug or Google pagespeed, I learn the file is called twice during the page fetch once as normal file name and a second time with a ran...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Node.js + Express without using Jade Is it possible to use express without any template engine? A: For anyone having the need to immediately use regular HTML without jade in a new express project, you can do this. Add a index.html to the views folder. In app.js change app.get('/', routes.index); to app.get('/',...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Call an Objective-C function non-virtually Is it possible to force Objective-C to call a specific instance of a virtual method, rather than going through the standard virtual message dispatch? I know this is generally a Bad Idea, but I'd like to know how to do it using the Objective-C runtime. For example, given cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: shell script wget not working when used as a cron job i have a function in a php web app that needs to get periodically called by a cron job. originally i just did a simple wget to the url to call the function and everything worked fine, but ever since we added user auth i am having trouble getting it to work. if i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery .css() property simply not functioning (no error)? As part of an upvote/downvote system (like on stackoverflow or Reddit) I'm using jQueries .css() property to change the background-position when an upvote or downvote arrow is clicked: jQuery code: $(document).ready(function() { $('#vpUp').click(function(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query to merge continuous temporal records I have a table like this: id START_DATE end_date 1 01/01/2011 01/10/2011 2 01/11/2011 01/20/2011 3 01/25/2011 02/01/2011 4 02/10/2011 02/15/2011 5 02/16/2011 02/27/2011 I want to merge the records where the start_date is just next d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use XPath 2.0 Methods in .NET 4.0? I am using .NET 4.0 and I would like to use XPath 2.0 methods such as ([Matches()][1], [upper-case()][2], [lower-case()][3]) when trying to find elements in a document. Example XPath: "/MyDocument/MyNode[matches(@MyAttribute, 'MyValue', 'i')]" I have tried using: * *Sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: comboBox selected value change I'd like to give the customer an option to choose a city from COMBOBOX, and once the city's chosen, a list of that city's streets should be in COMBOBOX2. I tried the following code and I got an error, during the first run, maybe someone can explain this to me? private void Search_by_Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confusion with pointers I am trying to learn C. The reading I've been doing explains pointers as such: /* declare */ int *i; /* assign */ i = &something; /* or assign like this */ *i = 5; Which I understand to mean i = the address of the thing stored in something Or Put 5, or an internal representation of 5, int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In mongodb is there a performance reason to separate collections into more than on database? I have an application using a MongoDB database and am about to add custom analytics. Is there a reason to use a separate database for the analytics or am I better off to build it in the application database? A: Here are the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery: pass parameter to function I want to pass a parameter into my function. The parameter will be a variable that representsa CSS class name. Based upon which checkbox was selected I will set the value of the variable (eg, if CheckBox1 was selected the value of the variable would be the class name '.list1'). T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to show JQuery-UI Dialog window beneath the radio button i have two radio button: radiobutton1 and radiobutton2 and when i hover over it i showed the jquery-ui dialog window... currently its showing the dialogue too far to the right... what i want to show the dialog window right underneath the radiobutton. as sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image replacement I have a large div with the site header/logo as the background image. Is there anything wrong with putting a h2 tag containing the site title behind this using z-index, so that it would show if the user couldn't/didn't get the image for some reason? I know this is different to a standard [backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate multiple users, dynamically changing There are technically two questions here, but are tightly coupled :) I'm using Hibernate in a new project. It's a POS project. It uses Oracle database. We have decided to use Hibernate because the project is large, and because it provides (the most popular) ORM capabili...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I set up my openGL blending so that I can draw on only the opaque areas on a CCRenderTexture using a CCSprite that has some transparency? I'm having trouble drawing to a CCRenderTexture with a texture that includes transparency due to the blending that I've used. The sprite that I am drawing with has a blendi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL: trigger/delimiter without SUPER Attempting to run this SQL: DELIMITER $$ CREATE TRIGGER crypt_f BEFORE INSERT ON c_data_test FOR EACH ROW BEGIN UPDATE c_data_test SET f_id = ENCRYPT(f_id, 'key'); END$$ DELIMITER ; Gives this error: ERROR 1227 (42000): Access denied; you need the SUPER privilege for this o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I show a PDF inside a DIV with a zoom function? I have a large PDF and I need to show it 50% reduced in size inside a div tag that is 600px 600px in size. I also need to offer the client a zoom function. Should I use the "object" tag? But can I reduce the pdf size inside an "object"? Is there a jquery example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't Route An MVC Controller I have tried routes.mapRoute but i can't figure a way in MVC 3 to use it make a root path route to an action. e.g mywebsite.com/party should redirect to mywebsite.com/events/party where events is the controller and party is the action. Is this even possible? A: Without seeing your exis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: issue with FB like, a new activity gets posted in profile When a user likes a post in my website http://thewittyshit.com it adds a new activity in their profile. I have used "og:type = article" meta content on the pages having like button. Can somebody enlighten me on how to stop my pages from being added to my user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resizing an element when the document resizes I'd like to resize an element when the document resizes. If a draggable div is moved around and causes the document to scroll. I want to resize an element like this $("#page").css('height','120%');. I do that in the onresize event for a div. Is that the right way? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can i disable error prompts on build for locked dll files (in other workspaces) in vs2010? Is there a way to disable the warning prompt that pops up when vs2010 finds a dll file locked by another user during a build? I'm using visual studio 2010 with TFS 2008. A: By default, TFS disables shared check-outs for bina...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple UIViewControllers - Best way to implement this I'm building an iOS application and I try to determine the best way to implement this : I have a main UIViewController (MainViewController) that displays a simple view. This view contains a button that let the user add an object (let's say a Circle) to the main...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert an NSData into an NSString Hex string? When I call -description on an NSData object, I see a pretty Hex string of the NSData object's bytes like: <f6e7cd28 0fc5b5d4 88f8394b af216506 bc1bba86 4d5b483d> I'd like to get this representation of the data (minus the lt/gt quotes) into an in-memory NSString...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Considerations for updating Android app using Android API to Google API I have an Android geolocation application released into the market named apna ilaka. It is using Android API level 2.1. In order to allow a user to add places I would like to display a Google map with which the user could find different location...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery module for price caculator? Ive made a website with a booking feature. When you make a booking you specify the distance in the booking form. What I need is for the price of the booking to be calculated from the rates below: Rates: 0-5 km $20/ mile 5-10 km $15/ mile 10-20 km $10/ mile 20-30 km $5/ mile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieving object data from multiple tables help Sorry if I'm not wording this too well, but let me try to explain what I'm doing. I have a main object of class A, that has multiple objects of classes B, C, D and E. such that: Class ObjectA { ObjectB[] myObjectBs; ObjectC[] myObjectCs; ObjectD[] myOb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python re module's cache clearing While reading the documentation on Python re module I decided to have a look on re.py source code. When I opened it, I found this: _cache = {} _MAXCACHE = 100 def _compile(*key): cachekey = (type(key[0]),) + key p = _cache.get(cachekey) if p is not None: return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Why is sizeof(array) different in these two cases? Possible Duplicate: Sizeof array passed as parameter Given the following code, the system I'm currently on (which seems to be 64-bit given the size of a pointer) prints: 32 4 Now, the size of an int should be 4 bytes on this system, so 8*4 = 32 makes sense. Als...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: closing jquery ui modal from within another function again. I have a script that is using the jQuery UI plugin to generate inline modal windows, as such: function openModal(src, width, title){ $("#" + src).dialog({ modal: true, width: width, title: title, resizable: false, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get days between dates I need to remove files that are older than 14 days from a directory that stores our backups. I can get the time of an individual file by using something like this: start = (os.path.getmtime(join(dirpath, name))/3600*24) But I'm getting confused with how I use timedelta to find th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Optimize contentProvider query for retrieve contact names and phones Currently, I'm using this code in order to get the contact name and the phone number: ContentResolver contentResolver = getContentResolver(); Cursor people = contentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Provisioning Profiles + Push Notifications + Production vs Development I'm building an iOS app that uses push notifications, and I'm finally ready to submit it. Before I do, I'd like to test out push notifications off the Production server, to make sure everything is working correctly. Thus far, the sandbox environm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: grails for each I am trying to use groovy to create a list of items that is three items across and n number of items down. right now, my script is just one item across and n items down. here is what i have so far: <g:each in="${Friends}" status="i" var="Friends"> <div style="position:relative; border:1px sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static array of method pointers I'm facing an error I dont understand. I try to create and use a static array of method pointers. The declaration in my class looks like this: static void (Client::*packetHandler[Op::handledOpcodeMax - Op::handledOpcodeMin + 1])(QByteArray &data); Initialization takes place in my .cp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Defining text selection highlight with CSS I'm having problems designing a CSS for a website I'm making. It's similar to the one shown in this pic: . How can I make it so that when a user selects and blocks the text, the areas on its right and left don't get selected as well? In my case, I've tried wrapping the tag-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: When updating Marking entity datetime property unchanged I have this entity service in my domain model with two datetime type properties entrydate and updatedon. When user in edit view make any changes and submit form back I want entrydate property of the postedback/modified object to be marked as unchanged so entry...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Corona sdk app runs great on emulator, but not when uploaded to Droid I have been working a platforming game for about three months. I had the game working fine, and it worked fine on the Droid when uploaded. Recently, I worked on using director.class and a display group and navigating from the menu to the game usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing child/nested movie clips with JSFL AS3 CS5.5 How can I access a movie clip's children (specifically child movie clips) in jsfl? I am already at the instance level from flash.documents[0].timelines[0].layers[0].frames[0].elements[0].instance I've found this documentation but not much else. Thanks in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Windows Forms: Is there a way to wait for all pending Invokes to a Control to end? I need to do this in order to solve a deadlock. My Windows Forms Control has a reference to a C++/CLI class which wraps a C++ native class. The native class makes callbacks to the C++/CLI class, which maps them to events handled by th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySql get updates since last NOW() asynchronous problem I am having trouble, I am trying to get updates from a messages table for my web chat. To do this I store the last datetime in a session and try to get messages sent between last datetime and now. However, it is missing some messages and I cannot figure out wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you yank X number of characters in vim? I know I can cut 5 characters in vim by typing 5x, and I often use this to copy and paste text by doing 5xu then pasting them somewhere else. I am lazy and would rather just yank the 5 characters so I don't have to undo the cut action. How can I do this? A: Found this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: load image after upload in asp.net 4.0 My question is image uploading , uploading and image load method are working perfect but im showing images below the upload control, after click upload button new image must be added to line.. what is the reason? this is uploading code: DirectoryInfo directoryInfo =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to get a custom control to display the correct language in the VS Editor when a different language is selected I know this sounds knit picky but I have several custom controls that have been translated. When I use those controls on a Form and then change the language they still display the default lan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IIS7 URL rewrite error This is my url: http://www.domain.com/advertenties/advertentie-delen/?id=23&t=1&url=ad-placed-for-simons-company-by-me With the rewrite rule below I get this error: "The page cannot be displayed because an internal server error has occurred" <rule name="share ad"> <match url="^advertenties/adv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: syntax error with KeyError in python 3.2 I'm a beginner using python 3.2 and i have a book whos code is all in python 2.6. i wrote part of a program and keep getting: Syntax Error: invalid syntax Then python's IDLE highlights the comma after KeyError in my code: from tank import Tank tanks = { "a":Tank("Alice"), "b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Include or require a vfsStream file Using vfsStream, am I able to require or include a virtual file? $structure = array( 'classes' => array('Foo.php' => '<?php class Foo {} ?>') ); \vfsStream::create($structure); require_once(\vfsStream::url('classes').DIRECTORY_SEPARATOR.'Foo.php'); The code above fails silen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: sed: Can my pattern contain an "is not" character? How do I say "is not X"? How do I say "is not" a certain character in sed? A: [^x] This is a character class that accepts any character except x. A: For those not satisfied with the selected answer as per johnny's comment. 'su[^x]' will match 'sum' and 'sun' but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Force StandardOutputEncoding to UTF8 I'm looking to parse UTF8 characters from the standard output stream of another application in my C# project. Using the default approach, characters outside of the ANSI spectrum are corrupted when read from the process' standard output stream. Now according to Microsoft, what I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Set custom attached property on StoryBoard I have a storyboard and would like to set the attached property VisualStateUtility.InitialState. I've tried various combinations, but the property never gets resolved. I get the following error: Cannot resolve TargetProperty (VisualStateUtility.InitialState) How can I se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the default database mapping type for a String in Grails? If I have a domain object that looks like this: class Note { Long id String content } What kind of datatype is "content" going to be mapped to in a database, by default? Is it a varchar? How many characters? A: varchar(255) is the default wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone - change UINavigationController's bar traslucent on stack view I'm trying to change the style of my navigation bar from a not-root view. How can I do that? I use the: self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; but doesn't work! A: This code is fine. It would have to be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ajax create action: partial doesn't update without a page refresh I have a text field in a form_tag on my index page that should create a new "gallery" with ajax. Unfortunatly my partial (which loops through all the galleries) doesn't update without a page refresh. If I submit two times the form it renders feed unt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: concurrent access to MySQL database using stored procedure I have a stored procedure that will read and then increment a value in the database. This particular procedure is used by many programs at the same time. I am concerned about the concurrency issues, in particular the reader-writer problem. Can anybody please...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I decompose a Predicate Expression into a query? I have the following class Person, with a custom Where method: public class Person { public string Name { get; set; } public int Age { get; set; } public string Where(Expression<Func<Person, bool>> predicate) { return String.Empty; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Opening links in Chrome Extension I have a very small Google Chrome Extension that uses Google Feed API to grab some data. But the problem is visitors are not able to click on any links. I'd love to get some ideas about how to fix this. Basically any links within the popup.html are not openning in a new tab. We have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bulk load data conversion error (truncation) I am getting this error Bulk load data conversion error (truncation) for row 1, column 12 (is_download) here is the csv...it only has one row 30,Bill,Worthy,sales,,709888499,bat@bat.com,,"Im a a people person., to work together for this new emerging env.HTTP://applesoft...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: MEF Not Importing Metadata So, I have exports decorated with metadata attributes but on the container it seems like the Metadata collection of these parts are empty thus not correctly importing a Lazy collection with metadata. Any thoughts why this is happening? A: Make sure you configure assemblies for MEF to prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is Google App Engine's Webapp Framework Open Source? Is it available outside GAE? Google App Engine includes this minimal framework called "webapp". Google Code does not list a project page for webapp. The only documentation/information from Google on webapp is in the Google App Engine documentation. Is webapp not u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Array multiplication puzzle in ruby I have an array: x = [1,2,3,4,5] I want to get: output = [1,2,6,24,120] Hope you see the pattern and what I want to accomplish here. x[1] is transformed into x[1]*x[0]. x[2] => x[2]*x[1]*x[0], etc. What's the most efficient way to do this in Ruby? A: You can use e.g. the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drop-down navigation menu being overlapped by lower div Stack, I'm having difficulty creating a good drop down navigation menu using only css. The menu is simple, it needs to only have a few things in it, and only needs to drop down (no need to go down and over etc). The menu is somewhat working, but whenever I hov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Get the value of a datatype from Class of Project2 to Class of Project1? - Visual Studio 2010 C# I have 1 solution consisting of 2 projects. 1 is Windows Application and the other is Class Library. In the class library, there's a class that the value of its datatype is needed by the Windows Application. I cam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use SAX on this xml file I have an XML file that I am trying to parse with Sax (this is my first time doing this). I've researched how to implement the parser, and that all makes sense, but I'm unsure of the best way to tackle this problem. I have scattered pieces of related data (two Facts are associated by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Enum type naming conventions in DTO's I'm creating an application facade in front of my domain model and using dto's for the exchanges between the consumer and the facade. In order to avoid having to fully qualify my namespaces where I'm mapping between dto's and the domain model, I've suffixed all my dto's with Dto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I apply classes to images based on their aspect ratio with PHP? I'm working on a drupal6 site and I've got a page that shows thumbnail images (linked to full node content). The images are currently allowed to have a dynamic width based on the parent div, and are both vertical and horizontal. the problem I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: xslt 1.0 string replace function I have a string "aa::bb::aa" and need to turn it in to "aa, bb, aa" I have tried translate(string,':',', ') but this returns "aa,,bb,,aa" How can this be done. A: A very simple solution (that will work as long as your string value doesn't have spaces): translate(normalize-space(tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Permission on facebook fan page I am a newbie with facebook applications. Ok. I should create a fanpage. This should connect to my Rails application. So If user is a fan I should show "fan page 1", else i should show "fan page 2". How could ask permissions on facebook fan page? Thanks in advance and excuse if you do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setBackgroundImage forBarMetrics image size? I am fairly new in iOS programming and I am creating my first app. I have been trying to use the following code to change the navigation bar background image (this is using the new iOS 5 method): [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL query to update list of records by looping through a table records and check some logic? I do not want to use cursors for performance reasons. Input Parameters for stored procedure: arg1, arg2,arg3 & arg4 For example: Table A > A1 Column and A2 Column, Table B > B1 Column (A.A1 <=>B.B1) foreign n primary key re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's a good architecture/pattern for developing server-side node.js? What's a good architecture/pattern for developing server-side node.js? I will be using a backbone.js MVC architecture on the front-end, transporting over websockets. Examples/explanations would be great! Thanks! A: MVC on the server-side works g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Send server multiple messages? C# I have a quick and dirty question. So as it stands, i have two clients and a server running. I can communicate messages from the clients to the server without any problem. my problem appears when i want to read two messages from the client - rather than just one message. The error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP MySQL max() function producing 5 I am working on a survey created by PHP and MySQL. So the issue is, I am trying to create a ResponseID, which is an ID specific for every person submitting the survey. So the code was created to add 1 to the existing max value from the ResponseID column. Here's the code: //Respo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - What does this syntax mean? I am looking at jquery.ui-1.8.11.js: $.extend(Datepicker.prototype, { /* Class name added to elements to indicate already configured with a date picker. */ markerClassName: 'hasDatepicker', /* Debug logging (if enabled). */ log: function () { if (this.deb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Google App Engine Java Task Queues can be used for mass scheduling for users? I am focusing GAE-J for developing a Java web application. I have a scenario where user will create his schedule for set of reminders. And I have to send emails on that particular date/time. I can not create thread on GAE. So I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error receiving data from a WCF Service i have a WCF with several methods: GetAccount, UpdateAccount, DeleteAccont and ListAccount, the first three work well, but ListAccount doesn't. I get an error: The ListAccount return a List of Account: [DataContract] public class Account { private int id; private Stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7520786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }