text
stringlengths
8
267k
meta
dict
Q: Website Redirection Suppose that the user is currently located http://www.example.com/folder1/folder2/. I would like to be able redirect them to the home page at http://www.example.com/. The catch is, I don't know I'm two folders deep and I don't know what the domain name is. To do this, what should the href be i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating a simple pdf I'm trying to create a PDF on the iPhone for practice. I'm not sure why it doesn't work. I get the error: 2011-09-21 21:35:00.412 CreatePDF[869:b303] -[CreatePDFViewController createPDFDocumentAtURL:] CreatePDF[869] <Error>: CGDataConsumerCreateWithFilename: failed to open `/Users/jon/Libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java - where to store extra resources files My code require one PNG file. Where should I put it ? I saw some people put them along with .java, then use getClassLoader().getResourceAsStream. Personally, I feel it is not clean to mix resource files with source code. Is this a OK approach ? A: That is a very common...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: pass 2 variables from 1 function to another in jquery OK, I'm getting the results of a PHP form from JSON to do a login validation. I want to check to see if their account is activated, which I do just fine. If it's not I show a jQuery error but I want the ability to let them resend the activation email. I can pass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make an action by clicking on ScrollView in Tableview Customcell I have a tableview and i'm using CustomCell for that tableview. I have imageview, label, and ScrollView in that customcell. But my problem is, after clicking image or label that particular cell is selected and then navigating to the detailView. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way in android to get the area (a collection of points) of my finger Is there a way in android to get the area (a collection of points) of my finger when i touch the screen. Usually, the return is one point location. I need to get the several points which can represent the area of my touching. Any one kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to arrange a daily time log entry form in Microsoft Access 2007 with Weekdays & Dates in the column headings The objective is to create a weekly form, in Microsoft Access 2007, that allows employees to select their name from a list, the date of the first day of the week, and then create all daily time longs for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When should I stop training neural network for classification using Cross Validation Method I am now implementing neural network for classification. I use backpropagation algorithm to train. I use Cross validation method. But I am not clear when should I stop training the neural network. Next one is how to check ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mySQL order by certain values & then DESC? Say I have a mySQL table which has a field named "name" This field contains one name per row. There are 10 rows: Apple Pear Banana Orange Grapefruit Pineapple Peach Apricot Grape Melon How would I form a query so I select from the table, I want the details to show like thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: XMPP / Jingle Voice Library for Android I'm looking for a Jingle library (or app code) that exists on android and supports Voice for Gtalk or any xmpp in general. I don't really want to write JNI for libjingle. I would prefer something in java /android. A: Check this repo it should help. webrtc-jingle-client A: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Connect Credit card reader I want to develop application like this : http://itunes.apple.com/us/app/paypodd/id341546114?mt=8 I am going to develop one application for credit card reader but i have no idea for connect external device to iPhone. right now i am using ExternalAccessory Class for find connected device bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to take a picture using command line on webOS on HP touchpad? on webos, I have openssh running and would like to take a picture using the command line script. I suspect this is going to include some luna-send command, or alternatively a gst-launch But I am not having any luck with the docs. webos doesn't have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: nginx /admin /login wordpress I want to setup simpler urls in nginx to login into wordpress i.e. /admin /login in nginx I have tried multiple ways of tackling this with no luck. any ideas? A: The preferred method is to use NO IF-STMTS: # Login Short Cut location ~* /login/ { rewrite ^/login/(.*)? /wp-admin/$1;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: cant make it resizable to make it more easy i will put this code have same proplem <style> p { color:red; margin:5px; cursor:pointer; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $("p.good").click(function () { $(".res").css("background-color","yellow");...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Working out total from sub total and amount I have a table with purchased orders data. Each row contails the amount of certain item purchased, cost per item and the order number group. Each different item purchased is a new row with same order number. I basically want to return the total cost for that order. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can't access content of iframe injected via google chrome content script using jquery so I'm creating this chrome extension by injecting a content script into the body: this is my javascript: test.js: $(document).ready(function(){ Url = chrome.extension.getURL('etc.html'); link = '<iframe src="' + Url + '" id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nginx-gridfs connection failure I have nginx version 1.0.6 with nginx-gridfs module v0.8 installed. I have a testing account on mongohq as mongodb://:@staff.mongohq.com:20127/Test I set the location attribute in my conf as location /gridfs/ { gridfs Test field=_id type=objectid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having problems in Playing mp3 files in android I am getting problems in playing audio(mp3) files this music files are like click sounds its residing at the raw folder, the problem is if there are many clicks at random intervals it throws an exception of nullPointer. It occurs anywhere when the click is done and any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java check to see if a variable has been initialized I need to use something similar to php's isset function. I know php and java are EXTREMELY different but php is my only basis of previous knowledge on something similar to programming. Is there some kind of method that would return a boolean value for whether or n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: SSL in Tomcat 7 I am attempting to follow the instructions for setting up SSL in Tomcat 7 for a local app. I don't really understand what I am doing here, so please excuse the n00biness of my approach. I create a key store, as so: keytool -genkey -alias tomcat -keyalg RSA Enter keystore password: changeit Re-enter ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: sum linked list I need to sum a variable inside of my linked list. I've got the following function but I'm getting errors on the line noted. I also think that I may not have finished the if statement correctly to return the summed value to the function. int print_nodeprice1 (node *headptr, int num) { int sum = 0; no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decrypt / Encrypt connection string in web.config in ASP.NET I have a connection string in web.config which custom-encrypted. I would like to decrypt this during application start (the first page is Login page which is based on a Master page. The login credentials are verified using the encrypted connection string) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TTouchKeyboard: send keystroke to other program? How do I use TTouchKeyboard in Delphi, so it could send keystrokes to other program. For example, I want to type password in a browser using TTouchKeyboard component. I have no idea how make the browser stay focus while I'm clicking on my keyboard. A: TTouchKeyboard ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does a textbox lose its disabled attribute on postback but not its value attribute? This is my program <script src="Scripts/jquery-1.6.4.js" type="text/javascript" language="javascript"></script> <script type="text/javascript" language="javascript"> function one() { $(document).ready(function () { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: help parsing xml string in perl I'm having trouble doing a match for this xml string in perl. <?xml version="1.0" encoding="UTF-8"?><HttpRemoteException path="/proj/feed/abc" class="java.io.FileNotFoundException" message="/proj/feed/abc: No such file or directory."/> I want to place a condition on FileNotFoundExce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to draw a Number to an Image Delphi 7 I have a requirement to draw a number to a image.That number will changes automatically.how can we create an image dynamically in Delphi 7 ? .If any one knows please suggest me. Yours Rakesh. A: You can use the Canvas property of a TBitmap to draw a text in a image chec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Increase the stack size of Application in Xcode 4 I want to increase the stack size of an ipad application to 16MB .I have done it in xcode build setting "-WI-stack_size 1000000 to the Other Linker Flags field ". but getting build error of i686-apple-darwin10-gcc-4.2.1: stack_size: No such file or directory i686-ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to backup the installed application's .apk file? How to take backup the installed application's .apk file in device or emulator which we're using by programmatically. Thanks in Advance. A: I am sure this kind of programming not possible (May be possible for rooted phone), because just consider if this is possi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Java MySQL - Named Pipe connection throws warning on close I am connecting to MySQL in Java with Connector/J using Named Pipes. My connection and query are successful, but I am receiving a warning when I try to close the connection. I would like to know what I should do to fix whatever is causing the warning other t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the user name and password from my app? I want to get the user name and password from my devise as shown in the attached image.Can somebody please give me any suggestions. A: You should use Settings Bundle. A: I assume that you have created setting bundle in your application. then just write: [[NSUserD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get the nodes containg an attribute with a certain value in XML in XPath i want to find nodes containg an attribute with a certain value in XML . I tried with a certain Xpath expression but it wont work.. String expression = ".*[@*[starts-with(., '"+search+"')]]"; Here the search is the variable which contains the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Initial VoiceOver selection I'm adding VoiceOver support to my app. So far, so good, but I'd really like to be able to specify which element is the first one spoken after a UIAccessibilityScreenChangedNotification. I haven't seen a way to do this. Making something the summary element doesn't really seem to do it. Am...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I clear the page content after a form is submitted? I currently have this code in my project: require_once('mysql.inc.php'); session_start(); if (!isset($_SESSION['username']) && !isset($_SESSION['uid'])) { login_sequence(); } else { login_check($_SESSION['username'], $_SESSION['uid']); } func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compile C++ source to a .dll I am trying to create a simple example with JNI. I am having trouble compiling the .cpp source file. I will give all the steps that I have done/tried below. I am trying to follow the tutorial found here: http://java.sun.com/docs/books/jni/html/start.html#27008 I have a Java program calle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MsTest, DataSourceAttribute - how to get it working with a runtime generated file? for some test I need to run a data driven test with a configuration that is generated (via reflection) in the ClassInitialize method (by using reflection). I tried out everything, but I just can not get the data source properly set up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: OpenCV: cvWarpAffine unhandled exception The code is: CvMat *rotMapMat = cvCreateMat(2, 3, CV_32SC1); cv2DRotationMatrix(center, angle, 1, rotMapMat); cvWarpAffine(image, dst, rotMapMat); First problem: The cv2DRotationMatrix is not correctly computing the matrix. Then I've changed that function by my version cv2D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hide the pointstyle displayed at bottom of chart I am using achartengine-0.7.0.jar in my project.. By default it displays pointstyle("Diamond","X","Point","Square",etc) at the bottom-left corner of chart (which shows which point style is used) But I don't want to show this in my chart.. Is there any method For hidin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: selecting drop-down value in xsl How to select the drop down value ? Am trying to display some data whenever I select some value in a drop-down in xsl. For example, If A is selected in the drop-down, details pertaining to A will be displayed in a table. Similarly, if B is selcted, only details relevant to B will be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google map - Multiple marker I am trying to set multiple markers, getting address fetching from database and storing it to javascript array variable, then by running a loop trying to set markers in my map, but its not working. This is my working URL : http://projects.pronixtech.net/kindcampaign/kind-country/ Please ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to increase length of a String in mysql while mapping using JPA I'm having some trouble in JPA. I would be really thankful if someone could provide a solution. WIth JPA (I'm using MySQL DB), lets say, I have a class mapped as follows: @Entity class Employee{ int id; String employeeName; /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Multiple Membership Provider in web.config I've a WCF web the config file which requires multiple membership provider due to reason below: 1. One membership for WCF which uses application A. e.g. <add name="MySqlMembershipProvider1" connectionStringName="ApplicationServices" applicationNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Batch editing without rebing Telerik MVC Grid We are currently using Telerik MVC Grid and we are using the batch editing. Everything works fine from updating, paging, sorting, filtering and grouping what I dont understand is that why when you update something the whole data is refreshed (grid is expecting data to w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP explode string by html tag Suppose string $a holds <p>Phasellus blandit enim eget odio euismod eu dictum quam scelerisque. </p><p>Sed ut diam nisi.</p><p>Ut vestibulum volutpat luctus.</p> How can I explode this into this array Array( [0] = '<p>Phasellus blandit enim eget odio euismod eu dictum quam sceleri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Converting ArgoUML to SQL I was wondering if there any program that can convert ArgoUML files into sql code? Thanks A: Try argouml-db. It uses this plugin for argo.
{ "language": "en", "url": "https://stackoverflow.com/questions/7509775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in Window application when it will call WCF I have developed window application and in that i am calling WCF at particular time interval however there is no error in inserting data into database through WCF but in log entry i am getting one error regarding WCF Endpoint as per below 2011-22-09 10:16>>Error: Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java GridBagLayout automated construction I designed a GUI using GridBagLayout and GridBagConstraints. It contains a variable number of rows, each with one of a few possible column layouts. To test the code, I comprised the GUI of panels with different colors that illustrate the location and resizing behavior of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Java code to mimic a 2 Keystroke sequence (to perform a device screenshot) I have been trying to get a bitmap screenshot of a SurfaceView for days but the more I look into it, there doesn't seem to be a solution at present for Android OS 2.3.4 based OSs my device from HTC. So on to Plan B, where I just found...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set Background image for iphone app in phonegap I am new in phonegap development and i am developing one project for iphone application with use of phonegap framework. I am setting http://www.wallpaperbase.com/wallpapers/computer/mac/mac_8.jpg image as a background of my iphone application but its showing pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to arrange downloaded information to fit into rows? SqlConnection connection = new SqlConnection(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=PSeminar;Integrated Security=true;Trusted_Connection=Yes;MultipleActiveResultSets=true"); SqlCommand Command = connection.CreateCommand(); SqlDataReader SQLRD; Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User and ROles (how can i handle this?) In my view, I'd like to add a User to a role using checkboxes. I list all the roles then check two or three to add the user to that role. How do I handle this? A: You could do something like this in your post... [HttpPost] public ActionResult UserDetails(UserClass user, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to click the popwindow in the actionbar? I have created action bar.in that when i click on one of the menu a pop window should be displayed.I have done that.But after the pop up window displays i am not able to perform other function in my action bar.howw can i acheive that.I have posted my code. public void onC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stig JSON library parse error: How do you accommodate new lines in JSON? I have some xml that is coming back from a web service. I in turn use xslt to turn that xml into json (I am turning someone else's xml service into a json-based service). My service, which is now outputting JSON, is consumed by my iphone app u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display notification using C#? I am developing an application to monitor changes to files within a folder (eg.add files, delete files, update files). I'd like to display information about detected changes in a notification similar to the one displayed by Skype. Can anyone suggest how this could be implemented...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Android MediaPlayer - Sometimes No Video is Played Even Though Audio Plays I am developing an Android App and I'm using the Android SDK's MediaPlayer to play some videos in my app. When I play the video in my app, about one out of five times, the audio plays without video. It's not a simple coding error because most...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to send custom value to facebook iframe I m working on a facebook iframe application. Facebook $_REQUEST response is as bellow: Array ( [signed_request] => some value [PHPSESSID] => somevalue [fbs_251034681599274] => somevalue ) but i want one more parameter to its REQUEST so i want its response lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery-UI Thickbox not working properly I have a query on the behaviour of the jquery-ui component ThickBox. The issue is, Im using the thickbox in my master page. The login page of my website contains few asp controls where 'causesvalidation' property of the asp controls are set to 'true'. When the link associated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Highlighting the 'All' category in wp_list_categories I have given the following arguments in the wp_list_categories function. <?php wp_list_categories('show_option_all=All&hide_empty=0&title_li=&current_category=All'); ?> I want the 'All' option to be visible in any category listing. However, since by default, all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Voice command for screen unlock android I want to use voice command to screen unlock an android phone. I have tried the voice recognition sample code from android, but how do i integrate it to achieve this feature? I have some doubts, 1) would i have to use service for this feature? 2) when the phone screen is locke...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to Hide/Show button in android home screen widget I am a beginner of android development. Current, I am working on creating a small home screen widget that is changing wallpaper of the mobile on click the button. The setting wallpaper is working fine but I want to make a clickable small picture (ImageView) to al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: alternative for the deprecated __proto__ Granted I'm a javascript noob (at best). The following code seems to work fine. Any ideas how to keep the same "initializer" approach and make it work without using __proto__ and without converting everything to constructor functions? var Employee = { paygrade: 1, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: eclipse rcp : help to create a customized StyledText widget I want a customized StyledText widget which can accept a keyword list,then highlight these keywords! I found it's very hard to implement it by myself. A: God damned! after spent hours searching the web, I finally found some sample code from the book The De...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery replacing spaces not working in IE I'm sort of new to jquery so I hope somebody can help me with this problem. I'm working on grails, and I have this jQuery object: var tableIds = $("#myTable tbody tr td:first-child").text().toString() when I alert() this, it has the id's some info (first column) of every...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing URL with parameter I am passing url with some string value and NSInteger value in this url but when I put breakpoint on this and I tab on trace then it show me this message exc-bad-access in url I given bold please see that 'bold' I want to pass there value: [ NSInteger day,NSInteger day1,NSString *fromDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculate size in Hex Bytes what is the proper way to calculate the size in hex bytes of a code segment. I am given: IP = 0848 CS = 1488 DS = 1808 SS = 1C80 ES = 1F88 The practice exercise I am working on asks what is the size (in hex bytes) of the code segment and gives these choices: A. 3800 B. 1488...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to put CheckBoxPreference on pop out dialog like ListPreference I have several preferences items that a user can choose from and wanted to have them on a CheckBoxPreference widget. Since its a list of over 7 Items; on a preference activity with other options, it may lead to an unsightly scrolling IMHO. So I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SpicIE toolbar, SHDocVw.IWebBrowser2 execScript problem? I'm developing an addon for IE8+. Main function: - when I click the toolbar, it will display a box inside every single page, ex: google.com, bing.com, codeproject.com... by using execScript to execute jQuery. Therefore, what Im doing is run javascript in the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phpbb3's slow indexing of new messages I try to found solution to improve phpbb3 new message indexing. I have about 10000 messages on my forum, and each new message adds VERY long time (20-30 sec). I've checked mysql_slow.log and found long queries there which is actually adding message into phpbb3's index. Do someo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How access HTML5 video methods with jQuery? I'm writing an HTML5 app and I'm trying to access native video methods (play, pause, etc...) and use jQuery. I don't want to use any other plugins. var movie = $('#video_with_controls'); $('#buttonX').click(function() { movie.play(); }); But when I exec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I find what locks are involved in a process I am running a SQL transaction with a bunch of statements in it. The transaction was causing other processes to deadlock very occasionally, so I removed some of the things from the transaction that weren't really important. These are now done separately before the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to capture XUL Panel Element in javascript I am trying to access XUL Panel Element through javascript to open and close it dynamically. <?xml version="1.0"?> <?xml-stylesheet type="text/css" href="chrome://global/skin/" ?> <?xml-stylesheet type="text/css" href="chrome://textareaautocomplete/skin/browserOve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java with Oauth for Google and facebook authontication i wont to implement authentication using google and facebook in my application any one share example that work for authentication in java webapp without any java framework i try with socialaut its using struts and spring framework but i not use that framework i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Most idiomatic way to write batchesOf size seq in F# I'm trying to learn F# by rewriting some C# algorithms I have into idiomatic F#. One of the first functions I'm trying to rewrite is a batchesOf where: [1..17] |> batchesOf 5 Which would split the sequence into batches with a max of five in each, i.e: [[1; 2; 3;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: css float not behaving in IE7 Hi I know IE7 css float issues have been asked here a few times but I still can't resolve my issue. Please have a look at this page. I'm using IE9 in IE7 mode and have changed the widths of the divs and the items inside them, checked the clear:lefts and the heights but the main div won'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OnMouseOver DIV trouble Ok so my basic problem is as follows. I have an image that causes everything else on the page disable using a blank div with a z-index. This is during a mouseover event of the image. Next the code goes into setting the z-index on the div that I want to be able to click or mouseover. Also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MapView throwing IllegalArgumentException - Wrong Image Size: 192 192 I'm getting excessive crash reports from users on a Samsung Vibrant Galaxy S. After searching around for solutions to this issue, the only thing I came across was an open issue over at Google Code: http://code.google.com/p/android/issues/detail?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: android- usage of SP I have doubts regarding the following ones. please clarify it. 1. What is the problem if i set the text of text view in xml file instead of java file(String.xml)? 2. What is the usage of SP? Give me one example.can anybody helpme. thanks A: Regarding your first question: strings.xml file is us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I enable spell check feature in HTML text area? I want to enable spell check feature in HTML text areas. I am using ColdFusion. Is this possible? A: You could try to enable native spellcheck support for input forms, like this: <input type="text" size="50" spellcheck="true"> <textarea spellcheck="true"></text...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Install apk file via code forcibly I have a scenario where I have to install an apk file through code and I dont want the user to have option either install or cancel it. For ex, I want to create an app similar to the android market. In that app, I will display list of my applications and display an install button f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternative to using Thread.current in API wrapper for Rails I've developed an application that allows our customers to create their own membership protected websites. My application then connects to an outside API service (customer specific api_key/api_url) to sync/update/add data to this other service. Well, I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Changing the Value of a MySQL ENUM Value, Throughout a Table I'm wondering if it is possible to change an ENUM value throughout a table, so that in all the rows where said ENUM value is represented, the change is made as well. A: If you want to change the value of an enum: Suppose your old enum was: ENUM('English...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: 'Freezing' Arrays in Javascript? Since the ECMA-262 specifications Javascript has gained the Object.freeze() method, which allows for objects, whose properties can not be changed, added or removed. var obj = {'a':1, 'b:2'}; Object.freeze(obj); Object.isFrozen(obj); // returns true obj.a = 10; /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Possible to control frame of a MovieClip that's in a Scroll Pane component? Is there a way to control the frames of a movieclip that's in the scroll pane component? On my stage I've got four buttons setup. I've got the following actionscript but get an error. import flash.events.MouseEvent; scrollPane.source = pm_m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a custom object to NIB in XCode 4.1 is way too much complicated compared to 3.2 In XCode 3.2, IB has a Classes tab in the Library to let you add your own class to nib file. But in XCode 4.1 that tab is disappeared. There is an item called "Custom Objects" in object library but I never figure out how to use it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java.lang.StackOverflowError while using a RegEx to Parse big strings This is my Regex ((?:(?:'[^']*')|[^;])*)[;] It tokenizes a string on semicolons. For example, Hello world; I am having a problem; using regex; Result is three strings Hello world I am having a problem using regex But when I use a large input st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Dynamic highlight color in ListView How can I make background highlight color dependent on some property of ListViewItem? A: This is an issue that people often ask for. Actually, for some reasons, when an item is selected in a ListView or ListBox, the Background color is not the one that is changed. It is a bit mor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I create a custom assignment using a replacement function? I have defined a function called once as follows: once <- function(x, value) { xname <- deparse(substitute(x)) if(!exists(xname)) { assign(xname, value, env=parent.frame()) } invisible() } The idea is that value is time-consu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Foreach loop repetition problem This code gives four 4's and I only want one 4.. Can anyone identify the problem?? $value1 = "0"; $entries = array($var1_1a>$var1_1b, $var1_2a>$var1_2b, $var1_3a>$var1_3b, $var3_1a>$var3_1b, $var3_2a>$var3_2b, $var3_3a>$var3_3b); if (count($entries) == 0) echo "0"; else fore...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery problem with HTML entities I use this code to receive data from an php file $.ajax({ url: "includes/cpf.inc.php", type: "POST", data:{p_request:"1bdd249a5d673a721be31d7444af81af1af4c5b6", p_userid:"<?php echo $dbu_userid; ?>", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the Telerik MVC Grid columns dynamically on client-side I would like to show my table data in grid. The table has more than 50 columns. By default they are displayed fine but I need a way to hide/show columns which are not required on screen. So is there any way to achieve this? I think right clicking on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BST Insert C++ Help typedef struct treeNode { treeNode* left; treeNode* right; int data; treeNode(int d) { data = d; left = NULL; right = NULL; } }treeNode; void insert(treeNode *root, int data) { if (root == NULL) { cout << &root; root = new treeNode(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detect USB tethering on android Is there any way to know (pro grammatically) in your Activity/Application that the user has enabled USB tethering on his phone? A: you can also use reflection to access the hidden function for setting usb tethering. Here is my code. ConnectivityManager cm = (ConnectivityM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C Build error when getting the value of sin() I have recently started learning C as a side project. I am working under OpenSuse with the latest NetBeans using the GCC as toolset for compiling. One of the very first programs that I made was this: #include <stdio.h> #include <stdlib.h> #include <math.h> /* * */ in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android :how to set Fixed no(5 ) of Rows shows in ListView then after Scroll? how to set Fixed no of Rows shows in ListView ? i want to set 5 Rows only show in Listview not all Rows. so how can i achive this Goal? A: yes, you can achieve via adapter class, Try with following code in your adapter class. public int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: startActivityForResult is undefined for class CustomizeDialog extends Dialog I am working in android. i want to make a custom dialog in which i want to add a paypal button. this is the code for my program:- public class CustomizeDialog extends Dialog implements OnClickListener { Button close; String TAG="Customize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load EToken Certificate in ANY Browser I am working on an applicaion which does authentication based on EToken (Specifically we are using aladdin eTokens). Previously we are using just normal (File Certificates) certificates to which were added in clients browser, and its working well with Mozilla and Internet Explo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to open a download ebook file via iBook? I got a question, which is, what if I can download a ebook file, eg .epub or PDF, then I list this file on a tableview, now I select one of the books. Can I open via iBook? Or I need to implement a reader to open the file? Also got another question , I download...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ">" character when import post from blogger to wordpress When I import the posts from my blogger account, I get all of posts have ">" character at first. So example my correct post : Lorem Ipsum Dolor This is the post content. Lorem Ipsum Dolor Sit Amet But, at import result it gets like this : >Lorem Ipsum Dolor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP mysql : possible to check if a link is open? Imagine the simple snippet below: <? mysql_close(); ?> This will obviously output the following warning (may look different depending on what version of php_mysql(i) you are using): mysql_close(): no MySQL-Link resource supplied in ..... As there is no link open. Is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Copying an instance of a PHP class while preserving the data in a base class? I have the following three classes: class a { public $test; } class b extends a { } class c extends a { function return_instance_of_b() { } } As you can see, both classes b and c derive from a. In the return_instance_of_b() function ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: awk command to check whether the SSH connection to peerIP is success The command ssh -q -o "BatchMode=yes" user@host "echo 2>&1" && echo "OK" || echo "NOK" will help in checking whether the SSH connection to peer IP is a success or not. But I am having only Peer IP so ssh -q -o "BatchMode=yes" peerIP 2>&1" && ech...
{ "language": "en", "url": "https://stackoverflow.com/questions/7509957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }