Android: Show a Canvas on a View
Vote count: 0 I am trying to create a Canvas, draw stuff on it, and then show it on a View. My code below runs with no errors, but the Canvas doesn't show. All I see is a blank, black screen. I know there are other ways to do this example, but what I am actually trying to do is draw a bunch of stuff...
AWS Mobile Hub Device token APNS
Vote count: 0 Got the certificate and provisioning and the app to download. But it doesn't work because it mentions device token invalid when I checked the logs. How do I get the correct device token ? I just want to test out push notification on AWS Mobile. I read somewhere it changes everytime you...
mysql remove dupe from query e select last insert
Vote count: 0 qith a query I nedd to join 2 table and from result to remve dupe records but I need to show last insert (is.pr). I try this, but not work : $query="SELECT is.cf, is.ps, is.pr, is.pn, dati.ma, dati_uni.age, dati_uni.code FROM (SELECT * FROM is ORDER BY is.pr DESC) as temp INNER JOIN da...
Lambda calculus - evaluating these lazy parameters
Vote count: 0 I'm reading about lambda calculus. From the end of section 2.1 here http://www.toves.org/books/lambda/: (λx.(λx.λy.x × y) 3 ((λz.x + z) 2)) 1 ⇒ (λx.λy.x × y) 3 ((λz.x + z) 2) where x = 1 ⇒ (λy.x × y) ((λz.x + z) 2) where x = 3 ⇒ x × y where x = 3 and y = (λz.x + z) 2 ⇒ x × y where x = ...
Populating an array using user input(JAVA)
Vote count: 0 So I have made a 'Student' class which has some data members,and methods....What I want to do is get input from the user using a form and then initialize a student object using the values entered by the user. I used the following code but somehow every Student object has the same value...
Azure connection timeout with Saving Attachments
Vote count: 0 My application is hosted on azure, and it is having issues when uploading large files,I'm saving the files to sql sever, It works great if it is small files, but if the size is around 40MB it fails with transaction timeout. I have increased the timeout of the co ection to 180. asked 38...
How to make angularJS controller be active at all times?
Vote count: 0 I am developing an angularJS application where my geocordinates from the device are taken and sent to my REST service every few seconds. Code for geo coordinates sending is located in just one controller. It means that geolocation is only updated in my server if the template page for t...
Complex array in AutoCompleteTextView
Vote count: 0 I have a list of the countries stored into XML, as follows: <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="nation_array"> <item>Afghanistan</item> <item>Albania</item> <item>Algeria</item> <item>American Samoa</item> <item>Andorra</item> <item>Angola</item> <ite...
between query on mongodb
Vote count: 0 i have this collection { "_id" : ObjectId("57b8277cd48b97d6e38d9eb2"), "student_id" : "326598", "sem" : "sem1", "marks" : [ { "title" : "english", "from" : 2, "to" : 15 }, { "title" : "maths", "from" : 5, "to" : 18 }, { "title" : "science", "from" : 10, "to" : 20 } ] } { "_id" : Object...
How to add actions to my notification's button?
Vote count: 0 Here is my code for notification:- public void showNotification(String Name, String Rate, int Image_Source, int PandP, int Repeat) { RemoteViews remoteview = new RemoteViews(getPackageName(), R.layout.notification_layout); PendingIntent pi = PendingIntent.getActivity(this, 0, new Inten...
Updating Google Calendar and Contacts from Google Ford
Vote count: 0 I'm not a programmer of mode languages, I graduated from college with a > programming degree in 1987 but got employment in computing hardware not > software. I slightly modified the following code to update my calendar from a google > form. The code works great but now I'd like to add ...
php shell_exec() change user or navigate to user folder
Vote count: 0 I would like to know if it was possible to use shell_exec as an other user. The point is to access directly to the user folder (in home/user/) Or, is it possible to navigate from var/www/ to home/user/ folder using shell_exec? Thank you for your help! asked 1 min agoorugari Let's block...
python iterate over dictionary emptys it
Vote count: 0 I have some code I'm analyzing. But I've found that iterating over a dictionary empties it. I've fixed the problem by by making a deepcopy of the dictionary and iterating over that in some code that displays the values, then later use the original dictionary to iterate over that to ass...
Referer is insecure while host is secure
Vote count: 0 My site works fine locally, but on the staging server, I get the following error: "Referer checking failed - Referer is insecure while host is secure." Settings files are identical in both environments. Possibly should not be, but I'm not sure what needs to be tweaked. The only other q...
Bypassing Shadow DOM on modal insertion
Vote count: 0 Trying to make an extension that inserts an overlay over the entire page, making it more grey colored, but so that you can still see the page. However there are some pages that have shadow DOM's that interfere with the insertion process and leave a chunk of white space at the top of th...