text
stringlengths
8
267k
meta
dict
Q: Android custom WebView is failing to find javascript functions defined in loaded HTML I have an Android WebView. I pass HTML to it (as a String). This HTML contains some basic javascript. Upon load, the HTML attempts to call a javascript function (defined in the <head></head>). This works fine in my browser desktop ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Prime numbers iterator I wrote a piece of code to print n prime numbers: class PrimeGen: def __init__(self): self.current = 2 def genPrime(self, num): for i in range(num): while 1: for j in range(2, self.current/2 + 1): if self.current % j == 0:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript - accessing elements from an unopened page My question is somewhat difficult to explain. What I am trying to do is, I have a button on a certain page. When I press that button, I must be able to access elements of a form that is located on another page (without having the other page open). Pressing that b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate is ignoring my persist calls? i have one weird problem. No matter what i do, i cant put new record in database via hibernate. I'm using Hibernate with Tapestry and MySQL. Please someone help me! I have UserDAO class with this piece of code: @CommitAfter public boolean saveUser(User user){ try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to make cursor move backward/forward in QT? I am with an input method project by QT on meego. here is a case: if user input "(" in inputing widgets, a ")" should displayed too. you know, at that moment, cursor is in the position after ")", but it should be between brackets. what should I do ? with QT A: OK, I f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to build Android kernel to use DS-5 streamline? I am tying to use ARM DS5 Streamline for Android. To use Streamline with your Android target, you must build the Gator driver, gator.ko and place it in the same directory as the Gator daemon, gatord, on the target file system. Transfer the gator driver module sou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any SMS gateways for only sending messages that don't require buying a short code? I need to send SMS messages from my app to users with status updates, but I don't like the "send an email to their phone numbers" route because the messages typically includes lots of cruft (like "FRM" and "MSG" and other ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fetching multiple rows with specific IDs? I want to fetch some specific rows from MySQL database using multiple ids, for example if I have to select only rows 201,567,991 etc... like this $sql_query = "SELECT * from tbl_name WHERE id = '201', '567', 'id-etc.'"; is it possible in MySQL? A: IN() should do the trick....
{ "language": "en", "url": "https://stackoverflow.com/questions/7536666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple hasMany relationships to same domain class in Grails I'm using Grails, and I have a domain model with multiple hasMany attributes to the same domain class, which looks like this: static hasMany = [ posts : Post, likes : Post, dislikes : Post ] The problem that I'm running into is that when I add something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Data Frames in R - NA values I'm trying to remove all the rows from my data frame in which the 3rd column is NA: new.frame <- data[(!is.na(data$z)),] But I'm getting an error. Warning message: In is.na(data$z) : is.na() applied to non-(list or vector) of type 'NULL' How can I accomplish this? A: Reproducible exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php url error code I define encoding in php file: header("Content-Type:text/html;charset=utf-8"); Now I write a link in my template file ( smarty ) <a href="http://www.test.cn/maternal_and_child/lists/中文测试">Link</a> By the way, '中文测试' is chinese.But when I click the link, it return error like this: The requested U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core Java and Advance Java (what's the difference?) I was googling Java tutorials and related news to Java, until I saw this "Core Java" now I am wondering what really is core Java? And what's the difference with Advanced Java? Is that another Java programming language? What are the topics under Core Java? And Ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Recommended method to load application drop down / look ups / reference data in Spring What method do you recommend to load application data such as list of medications or countries or states or other typically reference data into a database? Currently I'm using spring and an in memory database (HSQL) however, I wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AS3: Cannot type in an input TextField with an embedded pixel font In order to use a pixel font in my textfields, I have created a font class in the Flash IDE. Then, I created a TextField instance with the font embedded with the anti aliasing set to bitmap. I export an SWC with all those things. I created a class wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extjs store.save() not recognize update I follow instruction in writer to create grid with CRUD ability, but the problem is when I edit existing row and save() it recognize that dirty row as create, I think the problem may lie in my idProperty as in link, but can't figure out how. Here is my code Column model var xs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: problem with an abstract type as class member variable I try to use a abstract class type as a member variable in my class definition, but somehow it has some problem. Here is the abstract class type: class POINT{ public: virtual int point_dim() = 0; /*other virtual functions...*/ } And here is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Php MP3 Tag Processing I have a php script that I want to provide a list of music from. The files are named 01.mp3 02.mp3 and 03.mp3 and so on. They all have tag info. My question is how do I access that in my php script. A: You need a script to parse the mp3 file to acces to the data. From google: http://getid3.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FetchedResultsController-problem i've got a problem, that drives me crazy. I guess it should be fairly easy to solve, but i don't get it... I'm trying to setup a tableview with a fetchedResultsController, but for some reason the frc is returning a section-count of zero. Here is my code for the frc: - (NSFetchedResul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to install bitly on heroku running rails 2.3.5 I added this to environment.rb config.gem 'bitly' And I added this to .gems bitly But when I do "git push heroku" I get this error: -----> Installing gem bitly from http://gemcutter.org, http://rubygems.org ERROR: Error installing bitly: multi_json...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting BAD ACCESS error when trying to insert an int into NSMutableArray I have this method here that turns integer inputs from two UITextFields into binary code: //assume anything that isn't allocated here has been taken care of in the header file -(IBAction)valuesChanged { while ((![input1.text isEqualToStrin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ringtone is playing the default ringtone This has been changed from the original post. Basically what is happening is I have gotten this to display the ringtone in the ringtone list on the phone. It also selects it. In this code it plays the ringtone after it has been selected (I have taken it out to reduce the size...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to add domain users to Sql Server login I have configured SQL Server 2008 R2 for mixed mode authentication on a Windows Server 2008 R2 box. I have logged in using domain administrator account into Windows as well as into Sql Server. Now I am trying to add another domain user account as a new login but I am ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does my [HttpPost] method not fire? I have created one page in MVC 3.0 Razor view. Create.cshtml @model LiveTest.Business.Models.QuestionsModel @*<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A script im robot with xmpppy of python, how to detect network failure? I am using xmpppy libary to write a XMPP IM robot. I want to act on disconnects, but I don't know how to detect disconnects. This could happen if your Jabber server crashes or if you have lost your internet connection. I found the callback, Regi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android pick random images? How can i load a random image out of 2 ? I tried this code final Random rgenerator = new Random(); Integer [] mImageIds = { R.drawable.mantrans, R.drawable.womentrans, }; Integer q = mImageIds[rgenerator.nextInt(mImageIds.length)]; gBall1 = BitmapFactory.decodeResource(getResourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fastest way to display mysql db records I have slow query problem, may be i am wrong, here is what i want, i have to display more than 40 drop down lists at a single page with same fields , fetched by db, but i feel that the query takes much time to execute and also use more resources.. here is an example... $sql_qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide a div if user clicks anywhere but a link and the div itself using jQuery? Ok, so simple question. I have a link which when clicked shows a div. If the user blurs off that link the div is hidden. This is good, but I don't want the div to be hidden if the user clicks on it. So if the user clicks anywhere o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSPredicate with multiple comparisons for one query string I was wondering if there is a way to simplify an NSPredicate that takes in a single query string for multiple comparison targets. I'm searching multiple attributes of a core data entity for the same query string. My current query looks something like this......
{ "language": "en", "url": "https://stackoverflow.com/questions/7536750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does monotouch support WinForms and DataGridView Virtual Mode? I currently have a WinForms application that downloads large amounts of data from a WCF service. To display the data quickly, I use DataGridView Virtual Mode with Just-In-Time Data Loading. Being new to IPAD development, monotouch seems like a good optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: delete 2 rows 1 Sql statement mysql I want to delete 2 distict rows, but with simular data. 3 colums, 1 is unique, and the other 2 are switched around. I was using something like this but it only delete 1. DELETE FROM Table WHERE Column1 = 'a' AND Column2 = 'b' OR column1 = 'b' AND Column2 = 'a' This only dele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Storing specific XML node values with R's xmlEventParse I have a big XML file which I need to parse with xmlEventParse in R. Unfortunately on-line examples are more complex than I need, and I just want to flag a matching node tag to store the matched node text (not attribute), each text in a separate list, see the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Regular expression for matching HH:MM time format I want a regexp for matching time in HH:MM format. Here's what I have, and it works: ^[0-2][0-3]:[0-5][0-9]$ This matches everything from 00:00 to 23:59. However, I want to change it so 0:00 and 1:00, etc are also matched as well as 00:00 and 01:30. I.e to make the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "243" }
Q: How to reverse an array of strings recursively? supposed to reverse an array of strings recursively. having trouble implementing this. if i was using a for loop i would just start it at the end of the array and print out the array starting with the last element and ending with the first. I'm not too sure how to do i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing Clojure and Java simultaneously I'm developing a library that contains both Clojure and Java code, using Eclipse + Maven to manage the project. I have a good set of JUnit tests that cover the Java portion of the code base, and also have a separate set of Clojure tests written using the standard clojure.test ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Call same method from different threads For example we have 5 running threads. Each of them call the same method. When the methods is called, it will run on the current thread? That means that the same method will run separately on the different threads in the (relatively) same time? Example: public string GetHhmlCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make a paired input box using autocomplete i need to make an autocomplete that will fill the other input boxes as soon as the user selects a account#...i'm using this http://code.google.com/p/jquery-autocomplete/ because it has many features that other autocomplete doesn't have.....i'm using the following par...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set Lion built-in FTP Server auto run off I set FTP Server by using Rumpus Server application. But Lion's built-in FTP Server is running on the front. So if I try to connect my FTP Server out of my LAN, I can only connect to the built-in FTP Server despite I wanted to connect Rumpus FTP Server. It can be solv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to search and replace in a line using sed I have a file content like this select b.id as cli_id,b.login as cli_login, b.pname as cli_name, b.cname as cli_company, b.phone as cli_phone, b.email as cli_email, (select (value / 1048576) from Limits where limit_name='disk_space' and id=b.limits_id) as Client...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Request size vs Server load I was writing the spec on how to organize the query parameters that are sent in a HTTP Request, and I came up with the following: All parameters a prefixed with the entity to which they belong, an example "a.b", which is read "b of entity a", that way each parameter would be clearly mappe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to refer obfuscated public fields from other .dlls I obfuscated all the public and private fields in some dlls, but problem is, when I use these dlls in my project, other dll not able to refer obfuscated fields in obfuscated dll. Is there any way to access obfuscated fields. Please help me... (I obfuscated dll u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android: how to elegantly set many button IDs I have many buttons in my activity (only a subset of which are visible at a time). I currently have something ugly like this: buttonID[0] = R.id.buttonr1b1; buttonID[1] = R.id.buttonr1b2; buttonID[2] = R.id.buttonr1b3; buttonID[3] = R.id.buttonr1b4; ... buttonID[35] = R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Practice Regarding Types When Programming Windows? I'm currently learning Windows programming through the Win32 API using Petzold's book as a resource and I was wondering if I should use the types defined in the API instead of the standard C types (ie. char instead of CHAR, DWORD instead of unsigned long). I un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing long string of HTML in SQLite database causes unknown error I am storing some HTML in an SQLite3 database in Python. When I go to insert some HTML into my SQL table I get an error that I don't understand what's wrong & more importantly how to fix the issue. Error string: Exception General: You must not u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing Facebook PHP SDK (3.1.1) without $_SESSIONs I'm using Facebook as an option for logging into my website, and then am doing Graph API requests on behalf of them. I'm upgrading to both the new JavaScript SDK and the PHP SDK to use their latest oAuth stuff before the October 1 deadline. The PHP SDK now com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Deploying SQL Server Stored Procedure to multiple servers I manage several SQL Servers 2000, 2005 and 2008; I maintain several scripts in the form of stored procedures and functions for may daily activities; as the need arise I do changes to my local copies of those scripts then I need to apply those changes to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grabbing digits at end of URL using PHP On a page of mine, I have a GET as a URL of a website. mypage.com/page.php?=URLHERE On this URL, I need the ID at the very end of the URL mypage.com/page.php?url=http://www.otherwebsite.com/something.php?id=%%%%%%% These numbers are sometimes different amount of digits, so h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2008 Question, table adapters connections string issue I have a data source that I use for creating reports in my programme. I've recently changed the connection string to the table adapters created by the wizard(ConString1), because I wanted to make that connection string available to every other clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement a "click-anywhere-to-continue" event on my android activity? Is this possible? I would display an activity that shows a welcome page, and that welcome page doesn't have any Views where I can attach an onClickListener. EDIT: ok, the reason for this welcome kind of welcome page, is that this applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using java.io.File class When you make a File object instance in a java program, is it possible for a concurrently running program to also have access to the file for writing? So like if I had a File object with a path to example.txt, can another program be writing in that example.txt file while I have my File objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it a bad idea to keep a subtotal field in database I have a MySQL table that represents a list of orders and a related child table that represents the shipments associated with each order (some orders have more than one shipment, but most have just one). Each shipment has a number of costs, for example: * *It...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What does this perl regex match? I've started learning regex but this has so many elements in it. What does it match? $x =~s/\.?0+$//; A: It matches zero or one literal dot, followed by one or more zeros, then the end of string. \. #A literal dot ? #Zero or one of the previous character 0+ #One or mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how do I push a branch in git to a remote I am trying to do a Rails 3 upgrade. So what I did is a created a branch -b rails-3 I've been working in that branch I want to push it into a remote repository (just in case something goes down on my local machine) How do I do that? If I do git push it says everything is up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate on client side Work on C# asp.net. My gridview has five columns. Input on my Quantity column need to calculate the Item Total and Total column value. A: Bind the event onkeyup in quantity Textbox that triggers a javascript function from where you can calculate and enter the value in Item Total col...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot get Android Market to exclude small-screen phones for this app This app was originally released erroneously supporting all screen sizes due to a manifest error. That has now seemingly been cleaned up, but there is still a continuous parade of angry users with Samsung Intercepts or similar LDPI, small-screen d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set image's height as much as the text content In my page I show posts from feeds. A post-preview has an image and the content. The width of the image is fixed at 150px but I want the image to have height equal to content's height. A post-preview content may have less than 450 chars, that means that the heigh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to decide the rank of N horses with M tracks? Providing N horses and M(M <= N) tracks but no timer, all you could get from one round is the order of M horses. The questions how many rounds at least, if you want to get the rank of all horses? e.g. N=3, M=3, Round=1; N=3, M=2, Round=3; N=4, M=3, Round=3; what is R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Master Page is adding additional text in TextBox ID I have a master page which has a content section with the id cpMainContent. I am using this master page on every webform I am creating for college project. One of such form is frmSearchPersonnel. The purpose of frmSearchPersonnel is to ask user last name of the pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to make buttons on UIAlertView displaying in multiple lines? I want to display a message using UIAlertView and there will be two buttons. As one of the buttons has a long name, It's not appropriate to display both of them in one line. I know that when there are more than two buttons, all of them will be displaye...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embedding PHP commands in WordPress editor HTML tab I am using Wordpress and I want to have some PHP commands executed on my page. After I paste my HTML with embedded PHP (in HTML tab of WordPress editor), the PHP codes are automatically converted to comments!! Below is the example: What I enter in HTML tab: <div c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to merge two collections into one I have two collections created within Silverlight each collection is created at separate times by different methods. Method 1 creates a List<> titled person ( contains fields first name, last name age) Method 2 created a List<> titled Phone ( contains phone number, cell numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML Horizontal Menu Layout I have a Hortizontal Menu at this URL - http://www.balibar.co/main.php I'm happy with the look but I'm finding 2 things * *it doesn't take up the entire space... there is a little white space at the end. *If I change the screen size (eg: hold Ctrl & use the Mouse Wheel to change the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using AJAX Response to Terminate a Concurrent Request Suppose I make an AJAX HTTP Request from jQuery to a back-end PHP script that does some querying on MySQL server. While the request is made, I want to regenerate a new request and terminate the current one on the server end. Script front-end.php contains this: fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload my application in App Hub I can't upload my application in App Hub,When i submit a application then it shows an error message "Error occurred connection to server" Please you help me ! Thank you very much ! A: I had a similar problem. The AppHub is Silverlight based, try cleaning up your cache of your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is edit_post_path from a Ruby standpoint Learning Ruby and Rails. In following the getting started guide if I invoke rails generate scaffold Post name:string title:string content:text it generates among other things code like the following in index.html.erb: <% @posts.each do |post| %> <tr> <td><%= post...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How would I package and deploy Python application like Mercurial hooks? In this case, the application consists of one or more Python files, plus a settings.ini file. Now the Python files when being installed need to be installed in ~/.hg (as default) or prompted where the user want them installed. The installation a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android java Add a textView I have a java file that its setContentView is to another java file... Here is the first java file package dalton.metzler.occupied; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.TextView; public class PlayActivity ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: REST Web Service usage in Android I have got a tutorial on "Build RESTful web services with the Spring 3 MVC HttpMessageConverter feature" here : http://www.ibm.com/developerworks/webservices/library/wa-restful/index.html But I am not sure if android supports this? If yes, how can i call these web services in my an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to modify a bound texture in OpenGL ES 1.1 My platform is iPhone - OpenGL ES 1.1 I'm looking for the tutorial about modifying or drawing to a texture. For example: I have a background texture: (Just blank blue-white gradiant image) and a object texture: I need to draw the object to background many times so to o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: uiprogressview jumps to 99% then 100% using ASIFormDataRequest I'm trying to implement a UIProgressView for an image upload so I set it up with uploadProgress = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault]; [uploadProgress setFrame:CGRectMake(85, 19, 150, 9)]; imageRequest = [[ASIFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode 4 Templates—How to add license to beginning of file? I've spent hours trying to figure this out. In my custom Xcode 4 template, I have a checkbox option to include the zlib/libpng license at the top of each source file. Trouble is, no matter what I do I can't make it tack it on to the beginning of the file A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does window.postMessage guarantee the order of events? window.onmessage = ... window.postMessage('1', '*'); window.postMessage('2', '*'); Does postMessage (http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#queue-a-task) guarantee the order of events? A: window.postMessage() only triggers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: JSON variable returning correct but value is undefined? Here is my success function for my ajax request via jquery, success: function(response) { if (response.error == undefined) { alert(response); } $('#' + id).after('<div id="emailMsg" class="error">' + response.error + '</div>'); } Because the val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why am I getting a NameError for authlogic method after upgrade to Rails 3 I am doing an upgrade to Rails 3 and had originally been using authlogic. I now get a NameError: NameError (undefined local variable or method `require_no_user' 'require_no_user" is a method for authlogic that is put into the UserSessions Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get Exact Time format using select query I'm using below query to get the time as AM/PM format eg:- if time is 2011-10-10 13:10:10 in database it will return as 1:10 PM I just want to fetch like 01:10 PM I used below query to fetch the above result SELECT SUBSTRING(CONVERT (varchar,FromDateTime,100),...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use EXCLUDED_SOURCE_FILE_NAMES in XCode 4 (iOS) I've found several references to a build setting in XCode called EXCLUDED_SOURCE_FILE_NAMES - the pattern below hints at how it works. But I can't figure out how to use this option in XCode (4.02). "EXCLUDED_SOURCE_FILE_NAMES[sdk=iphoneos*][arch=*]" = ... The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: HTML5 Mobile App that accesses Java library? I am working on HTML5 mobile app, that needs a Java library to be complete. So I want to know exactly how to invoke java method from within javascript? The HTML5 will be wrapped in a WebView or something in Android app. I need to know exactly how to invoke the java libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Graph API Explorer won't POST scores According to Facebook documentation: "Create or update a score for a user You can post a score or a user by issuing an HTTP POST request to /USER_ID/scores with the app access_token as long as you have the publish_actions permission." So I obtain the app access token fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: subdomain htaccess redirect I have searched Google for this thing but nothing found I would like to redirect any sub-domain to new page which is located in new directory example: if people write http://subdomain.example.com it will automatically redirect to http://subdomain.example.com/newdirectory/new-index.php A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL - Views - Super slow query This is a weird one. I am trying to use Views in MySQL (I'm reasonably new to MySQL with more experience with Sybase and SQL Server). Any way this new project we are using MySQL as it seems to have good performance. However to make querying for a web front end simpler we decided to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: FTSearch in Domino not working for Domino 851 server however it works fine for Domino 8 I have two Domino servers one having the version Domino 8 and the other having Domino 851. FTSearch API works fine with Domino 8 server(French server) and doesn't work fine with the Domino 851. The query is like "[_CreationDate] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I set session timeout so that it never expires? How can I set session timeout so that it never expires? It's for a Java EE web application. A: Specify a negative time. <session-config> <session-timeout>-1</session-timeout> </session-config> The benefit is however questionable. The webapp will leak memo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Solr not loading a custom filter I have written a custom KeepWord filter factory and have put the resultant jar under solr/lib directory. But when starting solr I am getting this error SEVERE: org.apache.solr.common.SolrException: Error loading class 'org.custom.solr.analysis.MyKeepWordFilterFactory' at org.apac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cacheing Drawables on a large ListView of images If I have a ListView with heaps of images, I obviously can't have all the images stored in memory at once (too large). These images are downloaded from the internet as you move through the list, so removing an image from memory if it leaves the screen and re-downloadi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring - setter injection method modifier Totally basic question, but what type of modifier is allowed for doing Spring setter injection. I am using Spring Proxy AOP and notice that only public methods are proxied and so thought about switching my setters methods in my classes to protected/package...would setter in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: div height needs to grow based on div next to it Here's the url to the page: http://whiterootmedia.com/test I need the right brown div to grow when the grey div content expands. I'm vertically repeating a background image in the brown div. <body style="margin: 0px; min-width: 700px; height: 100%;"> <div class="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASPxNavBar state not being persisted I am using the ASPxNavBar on the master page of my sharepoint site (Sharepoint Foundation 2010). I have succefully integrated the control so that it functions properly however i am have a problem that the state of the navbar (which groups are open) is not being persisted) Here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGL ES 2.0 Shader best practices I've been searching for examples of shaders in OpenGL and I've seen some varying styles. Some shaders specifically use the built in types (ie. gl_Vertex) to transfer data to and from the application code and the shader. Some shaders use the varying types to transfer data from vert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Using the identifier of an object to change settings in flex well i want this actually <s:Button x="240" id="anything" y="80" label="User 4" click="click_Handler(event.currentTarget.id)" /> protected function click_Handler(s:String) { s.width ="xx" ; } Well in this code of course s.width cant be done. any ideas ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reset PHP Array Index I have a PHP array that looks like this: [3] => Hello [7] => Moo [45] => America What PHP function makes this? [0] => Hello [1] => Moo [2] => America A: If you want to reset the key count of the array for some reason; $array1 = [ [3] => 'Hello', [7] => 'Moo', [45] => 'America' ]; $ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: uiscrollview textured background is compressed after frame animation I have a UIScrollView which is resized when the keyboard is presented (to stay above the keyboard as it slides in from the bottom.) To make the animation work right I have to specify UIAnimationOptionBeginFromCurrentState. If I don't specify this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multi-page registration system: How to maintain state along the way? I built a system to allow new members to join an organisation last year when I was just starting out as a programmer. It's a multi-step process across several pages that concludes after a successful credit card transaction. Part of the complication...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Game center takes forever to show disconnected When game center has a match running and one player disconnects it takes at least 30 seconds for the disconnect method to get called. Any ideas on how to make the disconnect method called as soon as the opponent quits the applications. (void)match:(GKMatch *)theMatch p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JAXB marshalling and unmarshalling CDATA I have a requirement in which i have XML like this <programs> <program> <name>test1</name> <instr><![CDATA[ some string ]]></instr> </program> <program> <name>test2</name> <instr><![CDATA[ some string ]]></instr> </program> </programs> My...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: drupal mutisite we develop two sites in drupal both sites have different urls and different drupal instance but some pages in the both site have common. If we edit one page (common) in the both site.we need to login to both sites and edit them.instead of doing like this if edit one site its automatically reflect in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 2D array object in Google Cloud Datastore I was just wondering if we are able to add a 2D array object into Google Cloud Datastore. Will the following code for adding using persistence manager be able to work? TwoDArray is a 2 Dimension object. Below is a method in my Data Manager. Thanks! public static void add(St...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Java make bitmapfactory images clickable Alright so how can I do this.. I have 2 classes PlayActivity.java and Play.java PlayActivity's setContentView is play.java In play.java I have this: gBall1 = BitmapFactory.decodeResource(getResources(), R.drawable.mantrans); gBall2 = BitmapFactory.decodeResource(getRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparing 2 arrays of symbols I'm new to ruby, and I've been googling for hours, but I can't figure this one out. It looks like it should be really easy so I'm getting pretty frustrated. I'm working in ruby and need to compare 2 arrays of symbols for a true or false return. array1 = [:a, :c] array2 = [:a, :b, :c] T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android app out of memory issues - tried everything and still at a loss I spent 4 full days trying everything I can to figure out the memory leak in an app I'm developing, but things stopped making sense a long time ago. The app I'm developing is of social nature, so think profile Activities (P) and list Activities ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: How can I filter a Javascript array and maintain it's indices? Here is what I have currently: var myArray = []; myArray[15] = 2; myArray[6323] = 1; myArray[349022] = 3; myArray = myArray.filter(function(i,v,a){return ! (typeof v == 'undefined')}); myArray = myArray.sort(function(a,b){return (a - b)}); When I consol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Multiplying Two Columns in SQL Server How can I perform operations such as Multiplying and Subtracting two columns in SQL Server? Payment PK - PaymentID FK - PaymentTypeID FK - OccupiedApartmentID **- InitalPayment - MonthlyRate - Balance** - PaymentDate A: In a query you can just do something like: SE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7536996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }