complex Spinner SetSelection() how to?
◷
تاریخ انتشار: 1395/4/10 | ساعت: 6:43
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...
How I can force a website to use the latest version of CKEditor.js with a Userscript?
◷
تاریخ انتشار: 1395/4/10 | ساعت: 4:28
Vote count: 0 I'm new to CKEditor and relatively new to JavaScript. I'd like to make a script/Userscript to force some sites that already use CKEditor to use the latest version of ckeditors.js to be able to use the new features. A good example is http://www.pageorama.com which use the old 3.6.2 vers...
Unable to send SMS message in Android from variable
◷
تاریخ انتشار: 1395/4/10 | ساعت: 4:28
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 4:28
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 3:24
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 3:24
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 3:24
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 1:01
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 1:01
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
◷
تاریخ انتشار: 1395/4/10 | ساعت: 1:01
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...
Authentication is required to obtain an access token (anonymous not allowed)
◷
تاریخ انتشار: 1395/4/9 | ساعت: 23:26
Vote count: 0 I try to modify existing example - Tonr2 and Sparklr2. Also I viewed this tutorial based on Spring Boot Spring Boot OAuth2. I try to build application like in Tonr2 example but without first login (on tonr2). I just need one Authentication on Sparklr2 side. I do this: @Bean public OAut...
Adding data dynamically from SQLite to top of recyclerview
◷
تاریخ انتشار: 1395/4/9 | ساعت: 23:26
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
◷
تاریخ انتشار: 1395/4/9 | ساعت: 23:26
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
◷
تاریخ انتشار: 1395/4/9 | ساعت: 22:11
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
◷
تاریخ انتشار: 1395/4/9 | ساعت: 22:11
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
◷
تاریخ انتشار: 1395/4/9 | ساعت: 22:11
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#
◷
تاریخ انتشار: 1395/4/9 | ساعت: 21:07
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...
Is this the right approach to using DynamoDB where the only Query field is of KeyType Boolean?
◷
تاریخ انتشار: 1395/4/9 | ساعت: 21:07
Vote count: 0 I have data that requires two types of access: a unique identifier to retrieve a single row the retrieval of a batch of rows by a field equalling False The main table can contain many fields (e.g., 100). In DynamoDB I have a schema defining a primary key and a Global Secondary Index de...
Given a pile of items, split them into groups by comparison
◷
تاریخ انتشار: 1395/4/9 | ساعت: 21:07
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 ...
jspdf in Chrome packaged app : document.writeln() not available
◷
تاریخ انتشار: 1395/4/9 | ساعت: 19:47
Vote count: 0 I'm developing a Chrome App, and i would like to allow the user to export as a PDF a few HTML Table. I made some research and i found jsPdf as the plugin i needed. And now comes my issue. jsPDF and its function "fromHTML" use the method "document.writeln()" which is not available in Ch...