complex Spinner SetSelection() how to?
Vote count: 0 I have a spi er, pupulate with this way, i wish selected item; whith method spi er.setSelection, which it is the best way to get the position of the item I require??? List<Map<String, String>> tablelist = new ArrayList<>(); SQLiteDatabase db = openOrCreateDatabase("database", MODE_PRIV...
Unable to send SMS message in Android from variable
Vote count: 0 When I use this code: String numberToSendFor = "21987654321"; SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(numberToSendFor, null, "Test Message", null, null); The SMS Message is sent normally (and goes to sent messages list in my phone). But, when I use this: String nu...
Run-time error 1004 - Range of object failed - VBA 2013
Vote count: 0 I'm getting a run time error 1004, Method 'Range' of object '_Worksheet' failed. This code worked before I changed some UserForm names... none of the named ranges or worksheet names have changed. Please help! Private Sub UserForm_Initialize() 'Set Variables to populate combobox Dim gPr...
Javascript - and infinite loops
Vote count: 0 I have this snippet of tracking (below) I was looking at why it's possibly making 4 calls each time you click "addToCart.gif". i added "console.log()" to each if case - and noticed it's looping. Is this because it's calling the same function before the function has ended? is there a be...
Android - Send SMS without user's assent
Vote count: 0 i am making a WEB Java application. I would like to insert a button which can instantly send an SMS without the user's assent skipping the "Send SMS GUI" (the user will use the mobile browser to access the service). Pseudocode Example : If(condition) { sendSMSWithNoAssent(); } asked 26...
SQL: Return '0' for a row if it doesn't exist
Vote count: 0 So I have an SQL Query which displays: count, date, and time. This is what the output looks like: And below is my SQL Query: select count(*), to_char(timestamp, 'MM/DD/YYYY'), to_char(timestamp, 'HH24') from MY_TABLE where timestamp >= to_timestamp('03/01/2016','MM/DD/YYYY') group by t...
Routing Symfony 2 404 profiler debug toolbar
Vote count: 0 In a fresh installation of Symfony 3, the debug toolbar not showing, when I have the apache 2.4.7 configuration file: <VirtualHost *:80> ServerAdmin info@enterprise.cl ServerName dev.enterprise.cl #ServerAlias www.domain.tld DocumentRoot /var/www/html/gestion/web DirectoryIndex app_dev...
Instantiate C++ object from C using operator new
Vote count: 0 I have created a C++ program and class, and plan to compile it to a library. I have found several websites explaining how to create and use wrappers to access the C++ class methods. My environment is IAR EWARM which in my case I need to use standard C. To create class instantiated obje...
3 months rolling average for 3 columns
Vote count: 0 Need help Input Date A B C 2015-10-31 1.49 3.7 7.8 2015-11-30 1.45 3.6 7.6 2015-12-31 1.41 3.7 8.0 2016-01-31 1.33 3.7 8.3 2016-02-29 1.29 4.1 8.6 2016-03-31 1.46 4.4 9.7 CREATE TABLE dbo.ThreeMonth(RDate DATE,A FLOAT,b FLOAT,C FLOAT) INSERT into dbo.threemonth ( RDate , a , b,c) VALUE...
Adding data dynamically from SQLite to top of recyclerview
Vote count: 0 I Am trying to implement swipe to refresh in my app. When swipe to refresh is triggered first all the data is fetched from JSON and than store in database. after storing the data all the new data will be added to top of the recyclerview. I read few articles and only get the detail abou...
Angular Url Provider and mmenu doesn't work together
Vote count: 0 I am trying to show sidebar menu on the website. However, it doesn't appear. App code: appModule.config([ '$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { // Default route (overrided below if user has permission) $urlRouterProvider.otherwise("/hom...
Writing in a file in the server with HttpURLConnection
Vote count: 0 Community, I have this problem. I'm trying to write a content in a file in the server with HttpURLCo ection, but it gives me error. This is the code: protected void onPostExecute(String result) { try { url = new URL("http://tmtsite.altervista.org/Agata/in.txt"); HttpURLCo ection client...
How to documentate Zend framework applications
Vote count: 0 I have written a couple of big web applications based on zend frameword, now I need to provide the source code of one application well documented and provided as html reference. Usually I use phpdocumentor2 integrated in netbeans ide to generate documentation for my projects. I know th...
Cookie destroy not working in CakePHP
Vote count: 0 Quite straight forward: public function demo(){ $this->Cookie->delete('Auth.User'); $this->Cookie->destroy(); if($this->Cookie->check('Auth.User')){ echo "yes"; }else{ echo "no"; } die(); } Getting "yes" all the time. Using CakePHP 2.7.3 asked 8 secs agoAlvaro Let's block ads! (Why?)
Generic type inference for extension methods in C#
Vote count: 0 I've been coding some exception- and type-safe retrieval-extensions for various generic collections when I stumbled acrross - at least for my understanding - odd behaviour of the c# compiler. Let's say we have: var sgDict = new Dictionary<string, object> { ["a"] = "x", ["b"] = 6 }; The...
Given a pile of items, split them into groups by comparison
Vote count: 0 Given that I have a 'pile' of items that need to be split in groups, and given that I can express how much these items differ, relative to eachother, in a number, a score if you will, how would I separate this input into meaningful groups? I recognise that this is a bit of an abstract ...