Android - Database Schema - unable to getContext and access schema
◷
تاریخ انتشار: 1395/5/2 | ساعت: 10:56
Vote count: 0 I'm following Android developers tutorial to set up a database but i'm having an issue . https://developer.android.com/training/basics/data-storage/databases.html This is my schema file : public final class ContactsDBSchema { public ContactsDBSchema(){}; public static abstract class Co...
Delphi ADO SQL Server connection when 2 servers running
◷
تاریخ انتشار: 1395/5/2 | ساعت: 9:41
Vote count: 0 I have SQL Server 2008 and SQL server 2016 ru ing on my server. How do I select which server the ADO Co ection string is looking at? The Data Source indicates the Server and the Initial Catalog indicates the Data Base, but I do not find a setting to indicate which SQL Server the co ect...
Use __float__ with non-float type
◷
تاریخ انتشار: 1395/5/2 | ساعت: 9:41
Vote count: 0 Per my question from earlier today (which was wonderfully answered, and I appreciate everyone's insight), I've extended that small class for the heck of it to almost all the operations we'd normally perform upon integers and floats. Now I'm not certain how to convert all the entries to...
Objc - Swift Interoperability: Objc API for Any type?
◷
تاریخ انتشار: 1395/5/2 | ساعت: 9:41
Vote count: 0 I've got an objective c API defined like this: - (instancetype)initWithItems:(NSArray *)items reuseIdentifier:(NSString *)reuseIdentifier configuration:(void(^)(id item, id cell, NSIndexPath *indexPath))configuration; This translates into Swift like this: public init!(items: [AnyObject...
Validation for a dynamically added dropdown
◷
تاریخ انتشار: 1395/5/2 | ساعت: 6:29
Vote count: 0 I have a dynamic dropdown but the city options don't behave like they should. When I select a state and then a city, the validation doesn't work for the city. The fields are supposed to become red when they don't validate and become whie again when they validate but the city dropdown d...
API send email and Password using CURL
◷
تاریخ انتشار: 1395/5/2 | ساعت: 6:29
Vote count: 0 I have written some code into a plugin for Wordpress that when the User hits the submit button their information is stored in the WP database and is also sent to a third party website with their email and password using JSON protocalls. this is the code I use: $url = "https://api.examp...
How to make the same Openstack Keystone authentication request in the V3 and V2 API?
◷
تاریخ انتشار: 1395/5/2 | ساعت: 6:29
Vote count: 0 I have a single machine installation of OpenStack Mitaka on a Fedora 24 server VM that includes Keystone and Swift. I went through the OpenStack installation instructions and got the v3 keystone API working but some other software I'm installing depends on v2. I am unable to authentica...
ios youtube embedded video frame issue
◷
تاریخ انتشار: 1395/5/2 | ساعت: 4:17
Vote count: 0 I am trying to embed a video from youtube with the following code: func setUpVideo() { let width = webView.frame.width let height = webView.frame.height let frame = 0 bmiWebView.allowsInlineMediaPlayback = true let videoUrl = "https://www.youtube.com/embed/GCALWdwKr48" let htmlUrl = "<...
How do I add a cycle style repeating image phase background to my website?
◷
تاریخ انتشار: 1395/5/2 | ساعت: 4:17
Vote count: 0 The question title says it all, I am not sure how to organize it in to my websites HTML due to the fixed menu bar, and its over all build. So to say, I want my website to have multiple backgrounds that fade in and out. I intend on adding more backgrounds over time. What I listed below ...
VM752:250 Uncaught TypeError: Cannot read property 'value' of undefined
◷
تاریخ انتشار: 1395/5/2 | ساعت: 4:17
Vote count: 0 I have a popup that contains kendoDropdownlists,and when I go to edit a selected record, for some reason it makes its own mind up whether a dropdown is going to be populated and have an item in it preselected. The steps that are taken is... 1) I navigate to a view that holds a grid and...
How to avoid evaluating the same calculated column in Hive query repetedly
◷
تاریخ انتشار: 1395/5/2 | ساعت: 0:58
Vote count: 0 Lets say I have a calculated column:- select str_to_map("k1:1,k2:2,k3:3")["k1"] as col1, str_to_map("k1:1,k2:2,k3:3")["k2"] as col2, str_to_map("k1:1,k2:2,k3:3")["k3"] as col3; How do I 'fix' the column calculation only once and access its value multiple times in the query? The map bei...
Responsive design shows different
◷
تاریخ انتشار: 1395/5/2 | ساعت: 0:58
Vote count: 0 I make a responsive web sites or I want :). But I have a big problem. My problem is devices show difference. I look for mobile/tablet on google resizer or another resizer sites, chrome addons etc. All of them shows good. But İf some devices showing good, some devices bad.İn my opinion,...
C++ std::function bind callback between libraries without exposing method API
◷
تاریخ انتشار: 1395/5/2 | ساعت: 0:58
Vote count: 0 I have looked at quite a few links before asking this question & read quite a lot around std::function, std:bind & callbacks in C++. As I understand, the concept is mostly for event handlers to notify listeners after a certain event has happened. But, I am struggling to find the right ...
Role names and their responsibility in large dynamic web based projects
◷
تاریخ انتشار: 1395/5/1 | ساعت: 23:57
Vote count: 0 Hi everyone, Now days i am developing a web based project. My project is dynamic means all navigation menus are coming from database based on a particular user role. But i am confusing and want to know that which roles should i use in this project? Admin, Super admin Or System admin? a...
HTML encoded characters and CDATA being lost after converting xml String to Document object then back to String. Is there any way to avoid?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 23:57
Vote count: 0 Lets say we have an xml like so: <item> <![CDATA[abc]]> </item> I have a method convertStringToDocument that converts this String xmlString into a Document (org.w3c.dom.Document). In order to digitally sign the xml. public static Document convertStringToDocument(String xmlString) { try...
Why are physical devices crashing my XCTest UI tests randomly?
◷
تاریخ انتشار: 1395/5/1 | ساعت: 23:57
Vote count: 0 Recently, when writing new tests and testing on physical devices, eventually (sometimes within a few times of ru ing tests or sometimes after hours of ru ing tests) each device will start crashing. The only solution I have found is to restart the device and then the tests start ru ing ...
Force git status to acknowledge a copy and a type change
◷
تاریخ انتشار: 1395/5/1 | ساعت: 22:56
Vote count: 0 How are the status codes 'C' and 'T' triggered in git? Can someone give me a really simple set of commands to run that will emulate the steps needed so that when i run git log --name-status i see the status codes above? If you know how to trigger a 'U' as well that would be helpful but...
Frequency percentages per group, not total R
◷
تاریخ انتشار: 1395/5/1 | ساعت: 22:56
Vote count: 0 I'm trying to make a grouped barplot with frequency (%) on the y-axis and depression_meds (N/Y) on the x-axis, grouped by another variable score (LOW/HIGH). My code so far: meds <- table(data2$depression_meds,data2$score)/sum(table(data2$score)) * 100 bp <- barplot(meds, beside=TRUE, a...
SwiftyGif - Gif doesn't animate unless using an outlet
◷
تاریخ انتشار: 1395/5/1 | ساعت: 22:56
Vote count: 0 So I am trying to add a gif to a UIImageView using SwiftyGif and I am stuck as to why it fails to animate the gif unless I am using an outlet. I programmatically created a UIImageView and used the .setGifImage function and all it does is display an image using the first frame of the gi...
How can a Simple.OData.Client read the maximum allowed page size for OData V2 APIs
◷
تاریخ انتشار: 1395/5/1 | ساعت: 20:28
Vote count: 0 I am using the Simple.OData.Client library to download entities from an OData V2 API. I know how to use the skip-flag to request the next page if server side paging is enabled. However, I could not find any way to determine if Server-Side paging has occurred. Is there any way to read t...