text
stringlengths
8
267k
meta
dict
Q: Android Launcher Icon not working I have an Android app that I am currently developing. I have created icons (.png) and placed them in the /res/drawable-hdpi (and ldpi & mdpi) folders. In my manifest I have <application android:icon="@+drawable/icon" android:label="@string/app_name"> my icons are all named icon.png...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: dropdown menu stops working after page jump My head is about to explode as I try to figure out the reason why my dropdown menu stops working as soon as the page jumps to an anchor. There is some JS involved in the jump, too, but the same problem existed even with a plain html anchor jump. The page is at http://minco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are people using for html form generation? There is a similar question from 2009 which mentions Wufoo and FormAssembly services. Are there any other services you would recommend for generating html forms? I simply want to generate the code for the forms (some with a lot of fields) for my php application. I don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: switched to ssl and devise tokens are invalid We just switched our rails 3 app over to SSL, and later noticed that password recovery tokens aren't working in production any longer. It says "invalid token" when a user tries to reset their password using the emailed link. I'm using rails 3.0.0, devise 1.3.4, and our u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing parameter to load data from DB after login with Django Auth App I am new user of Django. I want to use the built in Django Auth app for secure login. However, once a user logs in, based upon the username, I want to load it's data on the first page (lets call it welcome or home page). If I write my own login,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does -[NSURL length]: unrecognized selector sent to instance 0x1001c0360 mean I've been trying to get some example code interfaced with a Cocoa interface(It had been written using Carbon); however, when I attempted to replace err = ExtAudioFileCreateNew(&inParentDirectory, inFileName, kAudioFileM4AType, inASBD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Different glob() results from local to server (Windows vs Linux) I'd like to select only files that starts with a number or a letter: $files = glob($xsl_dir_path . "/[^a-zA-Z0-9]*.xsl"); $files = array_map('basename', $files); There are 3 files: a.xsl, b.xsl, _functions.xsl. I don't want to select _functions.xsl fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with symfony2 schema yaml: unable to get relationships working I have two entities: User and Student. Following is the yaml schema: ABC\UserBundle\Entity\User: type: entity table: abc_user id: id: { type: integer, generator: { strategy: AUTO } } fields: username: { type: string,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image equalisation I have an image. I would like to equalize histogram using histeq. But, I want only certain portion of the image be equalized and the rest part be displayed as it is. I could display the whole image and equalized image in two different plots but I want them to be in the same image such that certain...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: css overflow - only 1 line of text I have div with the following css style: width:335px; float:left; overflow:hidden; padding-left:5px; When I insert, into that div, a long line of text, it's breaking to a new line and displays all the text. What I want is to have only one line of text that will not line-break. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: Moving Picture Box depending on monitor size? C# I am using a picture box in my C# application, I want it to cover a certain portion of the web browser (the username part on youtube). I have a 21.5" monitor and this is what it looks like to me: But then this is what it looks like to one of my users with a 24" monit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sorting string array in Java There is an example in my textbook for how to sort string arrays, but I am having a hard time understanding the logic of the code. We have the following array: String[] words = {"so", "in", "very", "every", "do"}; The method itself is as follows: public static void sortArray(Comparable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ For loop problem I have a loop that takes two inputs, a last name and an ID, then converts it to a user id. The code looks like this: void User::setUserid(string ln, string id){ string temp = "0"; string temp2 = "0"; for (int k = 0; k < 6; k++){ temp += ln[k]; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What exactly is a monkey doing messing with my Android phone? Looking through the Android apis I found a method call isUserAMonkey(), says it returns true if the phone is being messed with by a monkey. Is this a joke, or what is it used for? A: Look at monkeyrunner, it will give you the answer. Quote from the docum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: how to put search functionality in dataGridView in vb.NET How can I select a single cell from selected row in datagridView and after selecting that I want to put simple search functionality (like we have in our windows folders-typing any characters and search should work)? A: I do not really understand your questio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can Google's Dart get better performance? I've read the article about Google's upcoming DASH/DART language, which I found quite interesting. One thing I stumbled upon is that they say they will remove the inherent performance problems of JavaScript. But what are these performance problems exactly? There aren't a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: javascript/html: Replacing embedded videos memory leak? I was wondering how to best replace embedded videos on a webpage. I have a bunch of video files (avi) that a visitor will be able to select and watch. I am pretty new to javascript and html, but what I am currently doing is embedding the videos on the webpage...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Running a "rundll32.exe" process at Win7 Logon, Lock, & Switch User screens? Before I start, another post for something similar to this request for help is located at Running a process at the Windows 7 Welcome Screen, but the responses were not quite what I believe I am looking for, and the post is over a year old s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use a header function in 'int main'? I am working on a project that has a class (Time) defined in a header file and the objective is to use that class in my main function to determine the difference between two times. I have gone over this is class and yet cannot wrap my head around the concept of using the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a Boolean value for whether an Object partially matches (Java) I think this is an easy question, if I could figure out search terms to describe it. It's similar to Finding all objects that have a given property inside a collection except I just want a Boolean "is it there" result. Say I have a sorted TreeSet of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding description to RestEasy's web service parameters? Is there some way/annotation by which I can add the description to the parameters of a RestEasy web service? I went through the api-doc of the annotations, but found nothing there. This is in order to add the descriptions so that they are reflected in the REST...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extend WhitespaceTokenizer? I need to use a tokenizer that splits words on whitespace but that doesn't split if the whitespace is whithin double parenthesis. Here an example: My input-> term1 term2 term3 ((term4 term5)) term6 should produce this list of tokens: term1, term2, term3, ((term4 term5)), ter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery qTip2 not displaying or linking properly I'm using jQuery qTip2 for tooltips in my Rails app. I want the tooltip to display a link, but I can't get that (or the tooltip itself) to show properly. Here's my application.js qTip jQuery: $(document).ready(function() { $('.article span[alt]').qtip({ pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically creating a new user on Mac OS using Objective-C or any Cocoa API? I'm trying to create new user within my Application. I know that is possible using dscl and NSTask.But does anyone know how it is possbile to do with any Cocoa API , or programmaticaly using objective-c? within code , not using bash c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Pass data from popup to the opening form in rails 3.1 and jQuery I have a form to create a new post and inside this form I have a button that opens a popup form that create a new client. The popup is a jquery dialog. I want to do 2 things when I close the popup: 1) save the new client in the database. 2) re-render t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OAuth 2.0 cookie not set with FB.ui on Page tab I am using FB.ui to authorize with application Facebook tab using simple: FB.init({ appId : '<%= Facebook::APP_ID %>', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ERROR/LocationManagerService(64): java.lang.IllegalArgumentException: provider=network I am create a simple web service. but it generate an error like that shown below 09-25 20:42:56.732: ERROR/LocationManagerService(64): requestUpdates got exception: 09-25 20:42:56.732: ERROR/LocationManagerService(64): java.lang.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CultureInfo for Latin language I develop an app for working with multi-language resources. In database, when I need colomn with language identifier, I use language LCID. Now I need to add new language - Latin. It's LCID - 1142. But when I try to create new CultureInfo(1142) - exception thrown. Is there any way to so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get the contents after logging In in Java I want to login to a site(yahoo mail - https://login.yahoo.com/config/login?.src=fpctx&.intl=us&.done=http%3A%2F%2Fwww.yahoo.com%2F) using HttpClient and after logging in I want retrieve the contents. (java). what's wrong with my code? public class TestHttpClient { public s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the REST response message in ExtJs 4? I'm building upon RESTFul Store example of ExtJs 4. I'd like my script to display errors provided by the REST server, when either Add or Delete request fails. I've managed to obtain the success status of a request (see the code below), but how do I reach the message p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to get value of the slider, when touchend or mouseup events are used? $('.ui-slider-handle').live('touchend', function(){ // how can I get slider's value here? }); $('.ui-slider-handle').live('mouseup', function(){ // and here? }); I don't want to use .change since it is called even when sliders are moving. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: On start-up of google tv, show live tv? Start service on boot? I am pretty new at android development and am working on an android app for google tv. my current hurdle is that i want to start the Live TV app as soon right after the GTV starts. I am thinking that it would be a Service that loads on startup that tell...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is Spring MVC so called, when it is not an MVC framework? MVC describes when the Observer pattern is used to allow a model to notify the views about changes. This is not how Spring MVC works. Spring MVC is a Model2 framework because it doesn't notify the views from the model - the controller simply passes the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get Employee's Attendance History on Crystal Report I have table with the following fileds: AttendanceID bigint EmployeeID bigint AttendanceDate datetime FiscalMonthID int TimeIn datetime TimeOut datetime TimeIn1 datetime TimeOut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IOS: test app-purchase don't work I'm testing app purchase for my app. I create an app in itunes-connect and I add an id for apppurchase ex: com.mycompany.puzzle.tree then when I try my code I have the alert that ask me apple id and password, but aftera a few of seconds I have an other alert that say it's not possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing margin of a div with javascript I'm making a webpage that contains a picture gallery. I've written a javascript function to display a larger version of an image when you click on the miniature. What the function does is that it changes the search path of an img tag within a div that is hidden. It then chang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: interview question printing a floating point number What's the output of the following program and why? #include <stdio.h> int main() { float a = 12.5; printf("%d\n", a); printf("%d\n", *(int *)&a); return 0; } My compiler prints 0 and 1095237632. Why? A: The memory referred to by a holds a pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: case insensitive NSPredicate with single result in CoreData Here is my current NSPredicate: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"UPC==%@ OR ItemID==%@", aUPCCode,aUPCCode]; How can I make this case insensitive? And I do not want to do any partial matching. Example if they enter 123 for aU...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to open a page and activate specific JS? I have a jplayer on a website, which embeds several playlists. To activate these playlists, I use this function : jQuery("#playlist_french_baroque").click(function() { ... }); This works very well. Now, on other pages on the same website I want to load a specific playlis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine if the requested directory is writable? Possible Duplicate: How do you check for permissions to write to a directory or file? I'm trying to figure out if it is possible to determine if a requested file directory is writable and the current user have the right permissions to write into that folder...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get first empty cell in a column? Google Spreadsheets API Hi is there a fast way (csharp) to get the first empty cell in a column in a Google Spreadsheet file? Is there any alternative to scanning the entire column? How long (ms) would it ~ take to scan about 200 one word columns?
{ "language": "en", "url": "https://stackoverflow.com/questions/7546499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSON-WSP or JSON-RPC We're about to implement a webservice using JSON objects as the mode of transportation. We have an intent of having third-party organizations to connect to our network and for that we are planning to use a standarized protocol to ease integration in the future. For JSON, there's two specificatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: iOS Developer Programs Specifics plus Unity3d export I have a few general questions about the iOS developer programs. Please, accept these from a point a view of a small company with about 4 developers: * *We've purchased an iPad, and developed a iOS application using Xcode and have been testing it using the simu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem managing two activities in Android What I am trying to do is very simple. I created two classes A and B. I created a click handler in A which calls a function in B which in turn calls a function in A. In the called function in A I am create a button. My programs is being forced close when I try to push th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why this JQuery Ajax won't be cached Here's my script. I want the result to be cached but it keeps sending requested requests if my mouse enters it again. $('.poplist li').mouseenter(function(){ t=$(this).parent().attr("rel"); i=$(this).attr("rel"); $.ajax({ url:"/j/place", data:{"t":t,"t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the proper location for libraries in an ASP.NET MVC project? If I create a custom routing class, what's the typical convention for where it's located in an ASP.NET MVC project? (Note that these are not domain-specific libraries as they are implementations of ASP.NET MVC's interfaces to hook the lifecycle.) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Missing XML Elements in an XML file I am trying to read XML files from different machines, some of these files may have data elements that others don't have. Currently, I am using a Try-Catch block to handle these situations but I was wondering if there was a better way of doing this, any thoughts? XmlDataDocument x...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use my actionsciprt 3.0 flash animation as a facebook application? I tried to make a facebook app, but I failed. I have no idea how to use my flash content. I tried to make a new app with Fbook Developers, I uploaded the animation as an HTML file on my server, but it's not working. All i see is a blank page. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swapping array rows and printing, c this is something that's been bugging me for the past two hours. I'm trying to swap two rows in a two dimensional array. This is not a problem, but I want to do it with a swap function that gets pointers. Here's what I have so far: #include <stdio.h> #include <stdlib.h> void swap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL - Cannot add foreign key to table I have a database using MySQL 2005. I have two tables, Enrolment and AlertMsg. The primary keys for enrolment are two columns, UnitCode and StudentID. Both these two columns are foreign keys to another table. The primary keys for AlertMsg are three columns, UnitCode, StudentID...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use PrimeFaces Captcha? I went through the user guide and the showcase but couldn't find a way to get the Captcha evaluation result in the backing bean. I can see the result on the top message bar on the UI but how to get the result in the backing bean? A: I don't think that it has any result for your beans....
{ "language": "en", "url": "https://stackoverflow.com/questions/7546542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Joomla Seminar Component customisation I am using the Joomla Seminar component , http://extensions.joomla.org/extensions/calendars-a-events/events/events-registration/8426 I would like to retrieve the query to return the organiser's name, thus search the query across the component files. I get stuck at this functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to call MessageDigest.reset() before using it? The question is simple: when should I call the reset() function on the java class MessageDigest? The question mainly comes from the OWASP reference, where in a code sample, they do: MessageDigest digest = MessageDigest.getInstance("SHA-1"); digest.reset(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: css opacity - internet explorer i'm working with opacity today and from some reason it wont work on internet explorer here is my CSS : .box_1{opacity:0.4;filter:alpha(opacity=40)}; .box_1:hover{opacity:1.0;filter:alpha(opacity=100);} and here is my HTML: <div class="box_1"> <img src="abc.png"/> </div> the HOVE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I append data retrieved via Ajax correctly to the DOM? I insert several(array) value with json_encode in one row from database table, now want echo they as order with jquery. This is output from my PHP code with json_encode: [{ "guide": null, "residence": [{ "name_r": "jack" }, { "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Analytics is not recording navigation using anchors despite inclusion of setAllowAnchor in the script I am struggling to get google analytics to track navigation using anchor tags. I've read that all I need to do is include: _gaq.push(['_setAllowAnchor', true]); However this is still not working. I have a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript - jQuery interval I am using JavaScript with jQuery. I have the following script to alert hi every 30 seconds. $(document).ready( function() { alert("hi"); setInterval(function() { alert("hi"); }, 30000); }); I want to alert hi when the page loads (when document / page gets completely loaded) and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: User scores Object and App scores Object With the new Scores and Achievements roll-outs I have the following questions * *Is there a difference between the user's scores object and the app's scores object for the user? *Does setting one affect the other? *In setting a scores object is it overwritten or aggregat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building a query string based on variable values. Where is the mistake? I am trying to create a query string based on GET values passed to common vars: if isset, gTipo = $_GET['tipo'] and others like this. So, here is the code that is not working: $sqlLista = 'SELECT * FROM produtos'; if($gTipo <> 0 || $gLinh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if iPad is in silent mode Possible Duplicate: Detect Silent mode in iOS5? i have used the code below to check if silent mode is on, it works as expected on the iPhone but on the iPad it returns speaker regardless. CFStringRef state; UInt32 propertySize = sizeof(CFStringRef); AudioSessionInitialize(NULL, NUL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: wkhtmltopdf vs fpdf and questions regarding use and performance (HTML to PDF) I have not been able to find answers to my questions on the several posts about the same topic, that is why I will be asking more specific questions here. My questions are about wkhtmltopdf and fpdf. I need one of those to create 1 page in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reverse numeral input I'm trying to get my code to print out the reverse of whatever integer is input. No errors, just not printing out correctly. What am I doing wrong? #include<iostream> #include<conio.h> using namespace std; int num, n; int reverse(int); int main() { cout << "Enter a number less than 1000 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AS2 call function inside movieclip I have a movieClip with a few animations and a layer for actionscript code. What I need to do is to call a function that is defined in MovieClip from "Scene 1". I've tried many combination without success: _root.mc1.teste(); mc1.teste(); this.mc1.teste(); parent.mc1.teste(); At thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I incorporate iAd into my Flash application? I was working on a simple game app using Xcode, but when I saw that image manipulation is much easier using the Flash SDK, I reprogrammed the game using Flash. Unfortunately, I don't know how to incorporate iAds into my Flash iOS app. I tried searching on Google, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android thread not working In this code snippet, the application sleeps for the interval, but instead of appending TEXT to textStatus(TextView variable), it displays an error that Something went wrong and application is closing. Thread time_manager = new Thread(){ public void run(){ int inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help in trying to convert number into character code I am using irb/ruby1.9.1/windows7. I need to convert the letter "M" into character code. I wrote the code below: >M I expected the result to be 77. But the result was "M". How can I make the letter into character code? A: Try method ord 'M'.ord in orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Operator new initializes memory to zero There is such code: #include <iostream> int main(){ unsigned int* wsk2 = new unsigned int(5); std::cout << "wsk2: " << wsk2 << " " << *wsk2 << std::endl; delete wsk2; wsk2 = new unsigned int; std::cout << "wsk2: " << wsk2 << " " << *wsk2 << std::endl; return 0; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "97" }
Q: How do you automatically update a string variable when a user types in a UITextView? I have a string variable and UITextView, when a user type something in the UITextView, the string must be updated automatically, so that it's value changes as UITextView's does. What I mean is this code should automatically change t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: explicit specialization of template class member function I have this : template<class T, class U> class A { template<size_t N> void BindValues(); } template<class T, class U> template<size_t N> inline void A<T, U>::BindValues() { conn->setValue<N-1>( std::get<N-1>(m_Tuple) ); BindValues<N-1>(conn);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Jquery - load cookie data Consider a list of thumbnails from which the user clicks one to change the background image. The following scripts lets the user choose a background image and apply it. $(function() { $('.themes li a img').click(function() { var image = 'imgs/someimage.jpg'; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS3 cross browser linear gradient What will be Opera and IE alternatives of following code? background-image: -webkit-gradient(linear, right top, left bottom, from(#0C93C0), to(#FFF)); background-image: -moz-linear-gradient(right, #0C93C0, #FFF); Note, I've tested following rules. All browsers supports them. But t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: make windows form Title at The middle of the tittle bar In My windows form application I want to make the title of the form in the middle of it's bar ( Title bar ) for example : if you are on windows xp and open your my computer you will find it in the left of the title bar I want for example to make my title in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C string split problem I am writing small IRC Bot, and i need to split incoming messages for easier handling. I wrote a function get_word, which should split string. According to gdb and valgrind, problem is that function sometimes returns invalid pointer, and program fails when trying to free that pointer. Here is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mac OSX / cocoa - getting location path string with raw data for a NSPasteBoard item I have an app which allows me to drag items from my web browser to the app dock icon. When I drag an image from the web and get is raw data with [pBoardItem dataForType:NSPasteboardTypePNG]; I get the raw image data which I need but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IPad Web App. Javascript, load all content in or switch page? We are working on a protoype web application, targeted at the IPAD. We have made great use of HTML5 and the app is working well. Part of the requirement is to allow the app to switch between "Pages" in a fluid motion just like a native app. So one of our...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pause page before redirecting back I'd like to make a certain WordPress page pause for a few seconds before redirecting back to the page the visitor was on. The scenario is a redirect page after successful submission of a form. It will say 'form submitted successfully' or the like for a few seconds, and then redirec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calendar showing wrong date and time final Calendar c = Calendar.getInstance(); Toast.makeText(alarm.this, " "+c.DAY_OF_MONTH+ " " +c.MONTH+ " " +c.YEAR , Toast.LENGTH_LONG).show(); this code is showing 05-02-01 as the date, instead of todays date (25-08-2011) Can anybody t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory leak using QVector QVector<cLibraryRecord> Library; ... Library.push_back(cLibraryRecord(ReaderFullName, BookGenre, BookTitle, AuthorsFullName, IssueDate, ReturnDate)); ... Library.remove(i); QVector::remove() does not clear the memory. How can I clean the memory? Thanks in advance. A: QVector.remove() alwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE7 CSS Mega Menu Issue The following code for a navigation menu works brilliantly with IE8 and Firefox, Chrome etc. However, I am getting a error with IE7. My megamenu dropdown can't display over an image. Notice in IE7 how the image (google search image) appears higher in the z-index when I hover over the yellow a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C: EXC_BAD_ACCESS when adding annotation to map I have the following Objective-C code: NSString *urlStr=[[NSString alloc] initWithFormat:@"http://www.prestocab.com/driver/ajax/getFriendsOnMap.php"]; NSURL *url=[NSURL URLWithString:urlStr]; __block ASIFormDataRequest *request=[[ASIFormDataRequest a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: URL file-access is disabled in the server URL file-access is disabled in the server - is the error I'm getting with Short URLs. I'm no PHP coder, so if you could post the code I should be using I would appreciate it! How do I rewrite the path? In functions: //////////////////////////////////////// Custom templates...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use DotNetOpenAuth to log into Google, and get user profile I just want to login with google and want access logged in user's general profile like photo, email address and name, to display on my site. Is it possible with DotNetOpenAuth? A: That's trivially easy. Use OpenID to "just login", instead of OAuth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Subreport parameters and grouping with Reporting Services First, I'll lay out the structure: The main report is a table variable from sql server giving form type, form number, previous date (hidden), current date (hidden, though the parent grouping is using this), the difference in times, person's id (hidden), and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Camera working without camera permission? In one of our applications we use the camera intent to take pictures. This works on real devices - without the camera permission. Is this correct or should I add it to this apps Manifest? ContentValues contentValues = new ContentValues(); contentValues.put(MediaStore.Images....
{ "language": "en", "url": "https://stackoverflow.com/questions/7546695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Install PHP CodeSniffer with Netbeans 7.0.1 on Windows 7 64 bits I'm trying to install PHP_CodeSniffer with Netbeans in my computer with Windows 7 64 bits. So far... 1) I've downloaded from https://github.com/beberlei/netbeans-php-enhancements/downloads the file de-whitewashing-php-cs-1.1.1.nbm, 2)installed the pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Use a section of a UIImage to create a new UIImage I'm fairly new to Ios programming and was hoping someone can help me here or point me in the right direction. How I would I create a new image from part of an existing one? For example, if I have an UIImage in a UIImageView, that is 100 pixels(or points) square, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem Django on IIS 7.5 - PyISAPIe Error was: 'module' object has no attribute 'argv' I have some problem when I run the Django App on IIS 7.5.. Just follow the steps introduced by [this][1]. I successful run the project on IIS 7.5. But, it show some problems.. like this.. Request Method: GET Request URL: http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: word count problem I wanna count words from text files which contain data as follows: ROK : ROK/(NN) New : New/(SV) releases, : releases/(NN) + ,/(SY) week : week/(EP) last : last/(JO) compared : compare/(VV) + -ed/(EM) year : year/(DT) releases : releases/(NN) The expressions like /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data Mining/Statistical Analysis options for a Heroku Rails app? I have a rails app that is hosted on Heroku for which I want to incorporate some live data analysis. Ideally, I'd love to figure out a way to run a generalized boosted regression model, which I know is available in both R (http://cran.r-project.org/web...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Populate radio buttons with values from database two Qs in one day... I'm trying to get the right radio button checked when I pull data from a mysql database to display in an edit form. Have tried all kinds of code but get the same result each time: the last value is always the one checked. Mystified. My code is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: unable to apply a function on every img within a div i'm trying to blur every image within a DIV, but for no reason, it just doesn't work <div id="textarea" >random HTML with imgs</div> <script type="text/javascript"> var arraysOfImgs = $('#textarea').find('img')...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: activity indicator only animates once i have created a custom "load more" cell at the bottom of my table view. And am trying to animate a activity indicator while the table is being populated with 5 more rows. Because the data loads too quickly, i have put a 2 sec timer to delay the process and want to show the indi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A keyword to reference the current object as a generic type I have a simple generic delegate: delegate void CommandFinishedCallback<TCommand>(TCommand command) where TCommand : CommandBase; I use it in the following abstract class: public abstract class CommandBase { public CommandBase() { } publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Everyauth, first login works, second fails Using everyauth, the first time a user login, a profile is added to my mongodb via mongoose and the session works well. The second time a user tries to login, the server crashes with the following error: /mnt/ws/users/guiomie/70543/node_modules/everyauth/lib/modules/everym...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CMake ExternalProject_Add() - Building with customized CMakeLists.txt I am building lua as an external project and I want to use my own CMakeLists.txt instead of the bundled Makefile. This is what I have in my main CMakeLists.txt: include(ExternalProject) set(lua_RELEASE 5.1.4) ExternalProject_Add( lua-${lua_REL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Set BizTalk to work with remote SQL Server I'm trying to configure BizTalk to use remote SQL Server. I open BizTalk Server Configuration utility, check Basic configuration. Then I need to provide Database server name in Database section, but I don't know what to enter. I have a sql server name, username and password...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails3.1 autoloading failure I am trying to add a module to my Rails 3.1 app, I've been able to do this before, but it is not working now with the latest module I've added. Any thoughts greatly appreciated in application.rb # Custom directories with classes and modules you want to be autoloadable. config.au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse : how can we know the implementation classes for an interface in Eclipse I am using Eclipse IDE I have a interface in my workspace called as Service . Please tell me , how can i know the implementation classes for this interface ?? A: Use "Open Type Hierarchy" or press F4 when your cursor is on the interfa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inline admin ignores max_num and extra if an instance exists I've extended the standard Django User model with a UserProfile, and created a OneToOne relationship from the UserProfile to the User, like so: class UserProfile(models.Model): user = models.OneToOneField(adminmodels.User) about = models.TextField(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL random value in UPDATE In MYSQL db, I need to UPDATE table "people" with a random number between 8 and 120, but if the value is between 103 and 109, I want it to become 110. How would I do such a query? UPDATE people SET column1 = '________random expression_________' A: I haven't tested, but perhaps it should ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7546752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }