id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_12700
When I try to access the preferences (under Window - Preferences) then Android, the preference page displays the message "An error has occurred when creating this preference page." I also get a 'Problem Occurred' dialogue displaying the following:- Unable to create the selected preference page. An error occurred while ...
doc_12701
I have this if ([_username.text length] < 4){ _username.textColor = [UIColor redColor]; } else{ _username.textColor = [UIColor blackColor]; } But I don't know what I have to "put it inside of" (New to objective C - Don't know the lingo). I have tried this but it doesn't work properly as when you return to the ...
doc_12702
$(document).ready(function () { //Initiate DataTables ect.. } ) This code is firing on every page So I added the following inside of it. if ($('#page-specific_element').length > 0) { //Initiate Datatables ect. } My question being, is there a way to set rails to utilize only the javascript files necessary ...
doc_12703
I want this to be one input rather than Forename and Surname. Now is there any way of splitting this name? and taking just the last word from the "Sentence" e.g. name = "Thomas Winter" print name.split() and what would be output is just "Winter" A: An easy way to do exactly what you asked in python is name = "Thoma...
doc_12704
Thank you, David A: @Rodrigo Daruich Alvarez's answer got me in the right direction but the format wasn't quite right. The below worked for me concat('file',string(utcNow('yyyyMMdd'),'xls') the formDataValue didn't seem to work. documentation here A: you can add dynamic content on filename input: file logic apps ...
doc_12705
This is different from using the Sort function (for example, UsedRange.Sort Key1:=Range("A1"), Order1:=xlDescending) given Sort will keep the same order of appearance for entries that are linked to the same the same date. Thank you! A: Reverse Rows Option Explicit Sub TESTreverseRows() reverseRows ThisWorkbook.Wo...
doc_12706
For example when the simple Button can be pictured like: and advanced expected button like that: And in my case following conditions must be met: * *The Object must extends Button class. *Separated polygons (circle and triangle in pic) must have one common behavior - same up, down, hover styles, same click listen...
doc_12707
A: In their Maven repository? Before Maven I just had a directory hierarchy that suited my purposes and kept directories under each library for different versions. Basically like Maven, although I organized it differently.
doc_12708
The streams are captured live and there is some pre-processing before the actual capture, that adds different delays to the streams, so they reach the computer out of sync and gstreamer's internal synching doesn't help; I'm trying to re-synchronise them. I tried using the trick with queue's min-threshold-time property ...
doc_12709
So far, I've only written some small winforms application with a 'old-lookin' GUI. I'm thinking of something fresh, new looking like ribbon based design. The questions that come into my mind are: 1) Should I prefer WPF over Winforms for a ribbon based GUI(though I've never touched WPF before) 2) Are there any recommend...
doc_12710
A: <script language='Javascript'> __doPostBack('__Page', 'MyCustomArgument'); </script> or if you just strictly want a postback you can send a null argument <script language='Javascript'> __doPostBack('__Page', ''); </script> A: Jacobnlsn is correct. However, if you want to do custom handling of the postback on th...
doc_12711
targets -------------------------- | id | time | name | |-----|------ |----------- | 1 | 1.0 | target01 | | 2 | 1.1 | target01 | | 3 | 1.2 | target01 | | 4 | 1.3 | target01 | | 5 | 1.4 | target01 | | 6 | 1.5 | target01 | | 7 | 1.6 | target01 | | 8 | 1.7 | target01 | | 9 | 1.8 |...
doc_12712
If I put old dependencies { classpath 'com.android.tools.build:gradle:2.3.3' } everything works ok. Strange! Full stacktrace: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.mobidevelop.spl.widget.SplitPaneLayout Caused by: android.view.InflateExcept...
doc_12713
function shutdown(){ require '/includes/footer.php'; } register_shutdown_function('shutdown'); //More code extract($_SESSION); $_SESSION contains an array called "user", containing things like the user ID and their username. I extract $_SESSION simply so I can use $user["id"] rather than $_SESSION["user"]["id"]....
doc_12714
ROW COLUMN+CELL 1 column=brid:, timestamp=1470047093100, value=a1234 1 column=custid:, timestamp=1470046713207, value=811411 2 column=brid:, timestamp=1470047231583, value=a6789 2 column=custid:, timestamp=1470047156905, value=848727431 I am trying to read this data into Spark and then print the data inside th...
doc_12715
Eclipse though. I'm getting an error related to IPixelConverter (see below for full stacktrace). The version of Eclipse is 3.5.1 (SpringSource Tool Suite2.3.0) and version 2.1.0 of GWT Plugin installed from the 3.5 update site. Any ideas why it doesn't work? ** eclipse.buildId=2.3.0.200912171331-RELEASE java.version=1...
doc_12716
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="TM8DDJ5CWYG9E"> <table> ...
doc_12717
Note: QMainWindow takes ownership of the menuBar pointer and deletes it at the appropriate time. How can I get all my QMainWindows to share a single QMenuBar? Or is the simple and unfortunate answer "you can't"? A: Sorry for simply quoting the manual, but this question is really already covered on it. http://doc...
doc_12718
I thought I forgot to import the numpy library. However, when I run the script, it says that the issue is with the log base 2. I don't really know how to fix this. Any tips? import yfinance as yf import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np # Retrieve the stock data tick...
doc_12719
php DateTime or strtotime seem to only work with date-times like "12-07-13 10:30:00" what i really want is a generic time (no date) like "10:30pm" or "23:30 or "13-15" etc. should become something like "81000", "84600", "47700" A: Do you really need a built-in function to do: $seconds = strtotime('10:30 pm') - strto...
doc_12720
I have a table of (Payment_Type,Year,TotalMoney) I need to get sum of total grouping by payment_type(cash or credit) only and I need to select year in my query how can I do it? my query is: select Payment_Type,Year,SUM(TotalMoney) from table where 1=1 group by Payment_Type,Year I get an error message as: Year is n...
doc_12721
If I remove the query the map shows without markers. If I add the query the map disappears and tells me that initMap() is undefined. A var_dump shows that the query is working just fine. What am I doing wrong?? this is really weird. Thanks in advance for any help. I originally adapted the code from here var icon = ne...
doc_12722
Here is my attempt: if __name__ == '__main__': num_words = int(input('How many words would you like to turn backwards? ')) words = [] for i in range(num_words): word = input('please enter string:') if len(word.split()) >= 2: print('Please only enter one word', end ='') ...
doc_12723
I have a Microsoft BI file that has 175 worksheets, each of which is currently being exported to excel and saved by hand each day. Looking for some way to automate, and thought that if I could essentially read each file into Python and then save as an excel file it would save a tremendous amount of time. Also adding a...
doc_12724
There are already several questions about coverage tools and such, however this is a bit different than the usual ones (I hope). According to wikipedia there are several different kind of 'coverage' variations that affect several different aspects of the term 'coverage'. Here a little example: public class Dummy { ...
doc_12725
string="somestringthatstartsprogram" os.system(string) and then the program waits for input, so I need something like this: os.system(string, <<< "0") the input is always 0. <<< works in a bash script but I don't know how to do that in python. Searching for this problem gives a lot of answers for the other way roun...
doc_12726
Source: https://reactrouter.com/en/main/start/faq#what-happened-to-withrouter-i-need-it This is what I have: import { useLocation, useNavigate, useParams } from "react-router-dom"; function withRouter(Component: any) { function ComponentWithRouterProp(props: any) { const location = useLocation(); const navig...
doc_12727
How do I get the files in the files dictionary to be clickable links to open local files that will be in the same directory as the script? Thank you. This my first time coding. My goal is to build up my collection and have a way to recall, reuse, grow and master my coding as I go along. def print_big(word): # use this...
doc_12728
So, I have an input field and the user enters the zip code and what I want to make is if the user enters 3 digits I want to show the matched zip codes. For example,e if the user enters 123 I want to show 123, 1234, 1233 etc. Since I have no idea how to build this, I am looking for you helps. Any idea would be precious....
doc_12729
System: Raspbian GNU/Linux 10 (buster) Python version: Python 3.7.3 I have created code, that downloads chapters for novel from internet site protected by Cloudflare. Since downloading 400 sites with 5 seconds delay each time took over 1.5 hour i rewrote the code to use it with threading module. It was a success. With ...
doc_12730
Hey all, I am trying to accomplish something very simple yet getting an error and it's driving me nuts. here is what I am doing: Function 1: -(id)initWithText:(NSString *)text1 :(NSString *)text2 :(NSString *)text3 :(NSString *)text4 :(NSString *)text5 { here I do the assignment. I have not initialized the NSString ...
doc_12731
<li>Arial</li> <li>Arial Black</li> <li>Arial Narrow</li> However, there are over 500 fonts submitted to Google Fonts and even uploading a fraction of them, implementing them into my list with a preview of the font will take hours upon hours of repetitive behavior. Is there a way, using the likes of Javascript/JQuery/...
doc_12732
During my search, I didn't find any kind of specification regarding my problem. What steps do I follow at this stage? @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { for (Element annotatedElement : roundEnv.getElementsAnnotatedWith(NonNull.class)) { } ...
doc_12733
class AccountManager { static let sharedInstance = AccountManager() private init(){ print("init is done if this message shows up") } } Which I thought the init method would implement automatically once I have launch the app without invoking AccountManager.sharedInstance in some place first, but ac...
doc_12734
def __init__(self): self.window = gtk.Window() self.window.set_default_size(300, 300) self.vbox= gtk.VBox(False, 5) label = gtk.Label("Please plug the device") context = Context() monitor = Monitor.from_netlink(context) monitor.filter_by(subsystem='block',device_type='disk') observer =...
doc_12735
insert into New_Single_Order_Response (AveragePrice, BodyLength, CheckSum, ClOrdID, CumQty, Currency, ExecID, ExecTransType, ExecType, Fix_Protocol, LastShares, LeavesQty, MsgSeqNum, MsgType, OrdStatus, OrdType, OrderID, OrderQty, SenderCompId, SendingTime, Side, Symbol, TargetCompID, TransactTime) values (?, ?, ?, ?, ...
doc_12736
App ├── index.html ├── jsconfig.json ├── main.js ├── lib │ └── require.js └── js └── pet.js jsconfig: { "compilerOptions": { "target": "es6" } } pet.js: define(function () { var Pet = function(name) { this.name = name; this.getNameUpperCase = function(){ return ...
doc_12737
A: The CURRENT_TIMESTAMP() or CURRENT_TIMESTAMP are synonyms for NOW() which gives your current time. Edit2: After your additional comment I understood what you are asking. (I have deleted the first edit) which was incomplete and somewhat incorrect. The question is: "To explain inner workings of CURRENT_TIMESTAMP - up...
doc_12738
// +build !windows however cgo interprets this as c code to get compiled So what do I have to do? A: The build constraint must appear before your package declaration. Incorrect package mypackage // +build !windows // #include <header.h> // // ... import "C" Correct // +build !windows package mypackage // #includ...
doc_12739
The algorithm has an array m which will contain the sequence but in some conditions, it doesn't contain the exact sequence. So in such case, I record the index and value which needs to be changed. This algorithm is n(log n) Now, to find the actual sequence, I loop through the array m and replace the value recorded in a...
doc_12740
Basically the code is a complex object return: public teCIF getCif(int aCifId) { using (CIFContainer context = GetCifContext()) { var thing = context.teCIFs .Include("Product_TYPE") .FirstOrDefault(i => i.CIF_ID == aCifId); ...
doc_12741
This means that when I loop through the generator, I have to wait for the generator to find an element that meets all the conditions, then for my main function to process it, then rinse and repeat. I'd like to speed things up by having the next value available as soon as I need it. def generate(a, b): for stack in ...
doc_12742
Some additional details: * *It's a Centos 7 base docker image with our code layered on top. To keep the size down, we don't install the kitchen sink. Perhaps a package or two is missing? *The effect is observed no matter what I plot. *This is using matplotlib 2.0.2 installed via Conda. *The default backend (acco...
doc_12743
I need to calculate the cosine distances between each pair of samples very efficiently. I have been using sklearn pairwise_distances function with a subset of vectors in X which gives me a dense matrix D: the square form of the pairwise distances which contains redundant entries. How can I use sklearn pairwise_distanc...
doc_12744
I want to give some space to the text from the start of the darkblue background rectangle. I already tried but only can set start, center, end, top, etc; and I want to specify it numerically. How I can meet that goal? A: I think what you are looking for can be achieved by specifying the padding value on the TextView. ...
doc_12745
[[Crashlytics sharedInstance] crash]; which I think in Swift would be Crashlytics.sharedInstance.crash() but this does not seem to exist. (perhaps the docs are out of date and no longer apply since Fabric gobbled up Crashlytics?) I see that there is a Crashlytics.crash(self:Crashlytics) ...nevermind, friggin XCode's ...
doc_12746
I've tried adding classes that represent the current viewport width and using them similarly to media queries, however I can not deal with the font sizes not scaling properly, since using rems would use the page font size which itself doesn't scale. I even resorted to using transform: scale((window.innerWidth / window....
doc_12747
I've faced with problem in receive data from variable. My error content "Fatal error: Cannot use object of type Zend_Paginator as array in C:\xampp\htdocs\applications\quickstart\application\views\scripts\index\text.phtml on line 8" Text.php: class Application_Model_Text extends Zend_Db_Table_Abstract { protecte...
doc_12748
A: I think I have replicated a simple version of your problem with: q)t:([] a:`a`b`c`d`e`f; b:`M1`M4`M2`M21`M12`M11) q)`num xasc update num: "I"$1_'string b from t a b num --------- a M1 1 c M2 2 b M4 4 f M11 11 e M12 12 d M21 21 I just made a new column which extracts the integer of b and ascends the table usin...
doc_12749
-(NSArray*)parse_Data_From_URL:(NSString*)URL { NSURL *myURL = [[NSURL alloc]initWithString:URL]; // we'll receive raw data so we'll create an NSData Object with it NSData *myData = [[NSData alloc]initWithContentsOfURL:myURL]; // now we'll parse our data using NSJSONSerialization id myJSON = [NSJ...
doc_12750
{ "Pdf":"July 20.pdf" "Content":"Include any error messages" "Page no":6 } { "Pdf":"July 20, 2016.pdf" "Content":"Show what you’ve tried and tell us" "Page no":7 } But i need output like "Pdf":"July 20.pdf", "Content":"Include any error messages", "Page no":6 "Pdf":"July 20, 2016.pdf", "Content":"Show what you’ve trie...
doc_12751
A: Depending on what you mean, most likely like this: System.Windows.Browser.HtmlPage.Window.Navigate("url");
doc_12752
bad sphere The big problem though is that once I build and run it on my phone or just play the scene itself, the sphere simply fails to render. Could this be caused by the texture being the first frame? Or am I making some other sort of error? Many thanks. A: Movies in Unity are usually rendered as textures on objects...
doc_12753
Age=int(input("What is your age in years?")) if Age>20 and Age<150: print("You are an adult") elif Age>20 and Age>=150: print("Not a valid age") elif Age<20: print("still a teenager") If someone inputted £ as their age, is it possible for the message to print as "Invalid number. Please try again." ? ...
doc_12754
reps = 64; gradient = (1:reps); pattern = repmat(gradient,reps,1); threeD = zeros(reps,reps,reps); for c = reps threeD(:,:,c) = pattern; end A: Method 1: Using Loops The for-loop needed to loop from 1 to reps which is indicated by 1:reps. reps = 64; gradient = (1:reps); pattern = repmat(gradient,reps,1); thre...
doc_12755
Here's the code: import random a = [random.randint (1, 10) for c in range (20) ] print (a) d = int (input ('Input a number') ) a.count(d) while d in a: list.remove (d) print(a) A: you have to remove d from a so you would do a.remove(d) and not list.remove(d) list is an object of a class and not an instance of ...
doc_12756
Does someone know the WMI or CIM class which would contain the information found in the Device Information tab, particularly the Firmware Version?
doc_12757
exist another way to this? USE [Northwind] GO ALTER PROCEDURE [dbo].[ProductosDiscontinuos] -- Add the parameters for the stored procedure here @discont bit, @Unit INT, @priceUnit INT, @cName VARCHAR(30), @CONSULTA nvarchar(MAX), @tipoConsulta nvarchar(MAX) AS BEGIN SET NOCOUNT ON; SELECT p.ProductName, ...
doc_12758
String foo = cast("hi"); int bar = cast("1"); The cast() method is here: public static <T> T cast(Object value) { return (T) value; } Java seems to cast "hi" to a String, even if I didn't pass any hint that it would be a String, with the exception of the type. It does foo well, but fails on bar, because you can't...
doc_12759
select a.*, b.*, BTab.*, BTTab.* from tableA a join tableB b ON a.ID = b.UID join ***** left join ******* .... .... .... outer apply (SELECT TOP 1 * FROM biggestTable bt WHERE bt.id = a.id and a.id <> ...
doc_12760
I deleted and reinstalled MAMP PRO. I created a host to no avail The default "localhost" was working fine. For test purposes I placed my files overthere. Instead of showing the theme (with css loaded) I get a page with just the homepage content. When I try to access the dashboard it shows me a 404 (again without theme ...
doc_12761
clear all; clc; c0 = 0.8; c1 = 1.3; c11 = -6.1; c12 = -0.6; c2 = 1.7; c22 = -1.7; g = 0.05; d = 0.01; x1 = -9; x2 = 8; k = 1; kmax = 100; x1trace = [x1]; x2trace = [x2]; i = 2; while k < kmax gr1 = c1 + c12*x2 + 2*c11*x1; x1 = x1 + g*gr1 x1trace(i) = x1; x2trace(i) = x2; i = i + 1...
doc_12762
@using (Html.BeginForm("CheckCourses", "Home", new { programId = ViewBag.ProgramId }, FormMethod.Get)) { <p class="col-md-12"> Find by course or teacher name: @Html.TextBox("SearchString", ViewBag.CurrentFilter as string) <input type="submit" value="Search Course" class="btn-primary" /> </p> } ...
doc_12763
For Each Field In SDSRecordsets(i) Debug.Print (j) Debug.Print (Field.Value) fieldNames(j) = Field.Name If Field.Value = Null Then values(j) = "" Else values(j) = Field.Value End If j = j + 1 Next The first time this loop runs, the Debug.Print lines print out 0 and then the ...
doc_12764
The make error is: make[2]: *** No rule to make target '/home/idou/Documents/badpervisor/driver/cpuid_available.o', needed by '/home/idou/Documents/badpervisor/hypervisor.o'. Stop. Kbuild: obj-m := hypervisor.o hypervisor-y := driver/entry.o \ driver/cpu_checks.o \ driver/cpuid_av...
doc_12765
import requests url = 'mywebsitehere.com' source_code = 'print('Hello World') data = {'code': source_code, 'format': 'python'} r = requests.post(url = url, data = data) print(r.text) I'm trying to send some code and the format for the code in the post request, but I'm not sure how to handle the post request once i...
doc_12766
In order for you guys to properly test it I uploaded a rather large piece of code. You should be able to run it as is. The comments in the code should explain what I am trying to do here. Any help would be greatly appreciated. # -*- coding: utf-8 -*- import pandas as pd import numpy as np # Filling dataframe with dat...
doc_12767
import re from itertools import permutations url = "http://www.amazno.com/" brands = [...] # ^ this is a Set of 25,000 brand names in lowercase, retrieved from Alexa. # it has "google" and "amazon" in it, for example. for brand in brands: # get all permutations of this brand perms_list = ["".join(p) for p in p...
doc_12768
Error Code: 403 Message: CSRF verification failed. Request aborted. I tried to convert the in JSON using json.dumps() and sent the request, however I am getting the same error. I am not sure, what is missing. When I submit the form using UI, it works well. I intercepted the request using the Postman plugin as well ...
doc_12769
User is backed by devise and is responsible for authentication and has_one Client which holds the client details for a given user. This relation is always present as I ensure that a Client model is created whenever I create a User. For the administration area I am using ActiveAdmin. Now, when I try to create a User thr...
doc_12770
Here you can see the empty table in good shape: empty table When I fill it up with data DataTables doen't do any effect to the appearance anymore. full table All tables on other pages have the same problem. Many thanks to everyone who tries to solve the issue! Here is my Code: Gemfile: source 'https://rubygems.org' ge...
doc_12771
When we have something like: MINUS { ?s foaf:givenName "Bob" } We need to know in advance what we want to subtract. In my case, I don't know any property like the `foaf:givenName1, except that they belong to set A2. (That is a property thought). I am confused. Any ideas? EDIT WITH EXAMPLE FOR CLARITY: SELECT DISTINC...
doc_12772
return DefaultTabController( length: 2, child: Scaffold( backgroundColor: Colors.white, appBar: AppBar( backgroundColor: Theme.of(context).primaryColor, actions: [ IconButton( onPressed: () { openUrl("https://www...
doc_12773
I have a key named dismissGraphHelp in my localStorage. I am trying to remove it in the script, but it does nothing. getEval (with target) localStorage.removeItem('dismissGraphHelp'); How to achieve deleting the key? If it would be possible, I would love to purge everything the localStorage. A: OK, found it. To purge...
doc_12774
I'm trying to do something very basic and cannot comprehend why I'm getting the results I am. I would like to add a sidebar to the side of my content. I'm doing this by adding a 310px margin to my content and putting floating my side-content there. Easy! <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> ...
doc_12775
I've studied the code for VueRouter and read several other examples that use guards and prechecks to perform authentication (either by a cookie or session data token) to block certain routes unless the user has permission. I don't understand how this is safe? The VueRouter example blocks the dashboard page, but I can l...
doc_12776
Here's an example. We'd like it constrained inside the red box. document.addEventListener("DOMContentLoaded", function() { var myData = Handsontable.helper.createSpreadsheetData(200, 100), container = document.getElementById('example1'), hot; hot = new Handsontable(container, { data: m...
doc_12777
This is the url I am trying to load: http://soundcloud.com/gazebo-fm/likes function soundCloudTrackData(linkUrl) { var url = soundCloudApiUrl(linkUrl, soundcloudApiKey); $.ajax({ url: url, dataType: 'jsonp', cache: false }).done(function( data ) { console.log(data); }).f...
doc_12778
Note: I can't do this manually as there's like 7.5k lines of code. Hoping for .py with an outcome like (top 3 lines): Old> G1Y0.1S0 New> G1Y0.1S0 Old> G1X0.1S248 New> G1X0.1S55.8 Old> G1X0.1S795.3 New> G1X0.1S178.9 Example file Code: G1Y0.1S0 G1X0.1S248 G1X0.1S795.3 G1X0.2S909.4 G1X0.1S874 G1X0.1S374 G1X1.1S0 G1...
doc_12779
The refactoring needs to be done in a different place. It's not your function that sucks, it's the definition of CLMExplorerHistory. The internal data structure does not need to represent the structure of the CSV file in a 1:1 fashion. Just make sure you can read and write in a compatible way. I think that you're atte...
doc_12780
HashMap<String,Integer> hMap = new HashMap<String,Integer>(); String existsUser = "select NAME" +" from Details where MEMID =" + memid; rs = stmt.executeQuery(existsUser); This is the sample DB NAME: JACK JILL JOHN JACK I need to display the number of occurrences of each name separately, How do i do it ? eg: Jack-2 ...
doc_12781
program hello IMPLICIT NONE REAL,DIMENSION(10,10,2,1) :: tmp1=2 REAL,DIMENSION(10,10,2,1) :: tmp2=1 INTEGER,DIMENSION(2) :: myind=(/1,2/) This operations returns only one value Print *, sum(tmp1(:,:,itree,:)) While this returns the correct results, however I would expect the same result than the second opera...
doc_12782
fun bind(job: PrintJobData, listener: OnHistoryListFragmentInteractionListener?) { itemView.setOnClickListener { listener?.onListFragmentInteraction(job) } } interface OnHistoryListFragmentInteractionListener { fun onListFragmentInteraction(item: PrintJobData) } A: You should be able to use item...
doc_12783
docker run --name xx -d -p 80:80 nginx I can access nginx welcome page despite port 80 not being open in iptables: $ sudo iptables -S -P INPUT DROP -P FORWARD DROP -P OUTPUT DROP -N DOCKER -N DOCKER-ISOLATION-STAGE-1 -N DOCKER-ISOLATION-STAGE-2 -N DOCKER-USER -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A I...
doc_12784
Binary file is generated on webservice and I use following way to generate it and give to user. document.location.href = MyServiceUrl?req=someAction That works well, however when webservice requested it also generates some update in DB (in addition to file generation). When update is made I need to refresh data at my p...
doc_12785
This code open the LinkedIn app, but not in the url I need: UIApplication.sharedApplication().openURL(NSURL(string: "linkedin://profile/xxx_id_company_xxx")!) Can anyone help me? A: Swift 4 In your info.plist under LSApplicationQueriesSchemes add <string>linkedin</string>, then in your code just add let webURL = UR...
doc_12786
But when I try to normalise my images, the RAM drastically jumps up and then Colab just crashes: This is the code block which is causing colab to crash: import os import matplotlib.pyplot as plt import cv2 data = [] for emot in os.listdir('./data/'): for file_ in os.listdir(f'./data/{emot}'): img =...
doc_12787
<input id="dialog-input" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" \> This works perfectly fine and if I can get dialog content from the existing input like this: <input id="dialog-input" type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replac...
doc_12788
prac.sml:177.5-182.12 Error: right-hand-side of clause doesn't agree with function result type [tycon mismatch] expression: string option -> string * string -> unit result type: TextIO.elem option -> string * string -> unit Here is the function that gives the error. I don't understand exactly what could be causi...
doc_12789
template<class T> struct A { struct B{}; }; template<> struct A<char>::B{ void f(); struct C; struct D{}; // ok }; void A<char>::B::f(){}// ok in gcc5.1.0 and clang3.6.0 struct A<char>::B::C{};// error in gcc5.1.0, ok in clang3.6.0 int main() { return 0; } A: I think it is a bug, I have report...
doc_12790
My client wants me to integrate Microsoft's multi-factor authentication when signing resources, forms and other stuff. For now, the signing process is just a token that is generated and sent by email, so the users have to click a link to sign it. My goal here is to give users the possibility to also choose to sign what...
doc_12791
Persons user_id | user_name | email | 1 Jack ... 2 Annie ... favoriteColors user_id | color_name | 1 black 1 green 2 blue How can I display all favorite colors by user_name? How can I split these multiple values at fetching? Example for displaying: Jack:...
doc_12792
java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 error whenever the first message is sent. This then crashes the app.This seems to happen when the first message is sent.I have tired checking the size of messageList which is equalled to 1. So I am not sure what is wrong. public class MessageAdapter exte...
doc_12793
I mean, C# .net I suppose only have limited RAM for framework, what should be the cutoff for a file (though it depends on how much memory the application takes, just to arrive at a ballpark figure) ? ( i dont have a file of that magnitude, just want to handle it before a memory error) I suppose, what I need is actual ...
doc_12794
link My gradle sync fails with the following messages: Failed to resolve: support-fragment Failed to resolve: runtime My gradle file has a few warnings about newer versions of libraries. I have tried to add a few lines about repo's, but this did not change anything. apply plugin: 'com.android.application' apply plugin:...
doc_12795
How can I do so within NodeJS? I'm looking for something I can drop into the following code. console.log('Failed to find config file'); // This echoes to the console - how can I do the same thing without the echo? const password = prompt('Enter a password: '); I'm happy to install a dependency from NPM if required. A...
doc_12796
App.Views.MyView = Ember.View.extend({ init: function () { var self = this; // Add observer self.addObserver('App.Path.To.ItemsObject', self, self._itemsObserver); return this._super(); }, _itemsObserver: function(){ //Do something } }); A: Yes you have to...
doc_12797
Is there anyway to either convert a file to unicode using and objectoutput or input stream. If not, is there any other way to avoid getting question marks where kana or kanji should be? public class JavaApplication1 { /** * @param args the command line arguments */ Scanner scan = new Scanner(Sys...
doc_12798
the:textBoxes.i try to write as TextBox and hits me again an error.i have the Visual C# 2010 Express edition public Form1() { InitializeComponent(); private TextBox[] TextBoxes = {textBox1, textBox2, textBox3, textBox4, textBox5, textBox6}; private List<string> storeItems = new List<string>(); } private ...
doc_12799
public class MainActivity extends ListActivity { private List<String> item = null; private List<String> path = null; private String root; private TextView myPath; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);...