All Questions

Ask Question
6894981 questions
1

votes
0

answer
602

views

How to use ng2-file-upload to post a request without the file?

I come across a question about ng2-file-upload, If I use it to upload at least a file, it works well. But if I do not select any file, it will crash and reload, and I can't get any error. Anyone know how to use ng2-file-upload to post a request without the file? This is my code: Upload: uploader...
ZhangXu
1

votes
2

answer
179

views

how to expand child on particular Button click in Expandable List View [duplicate]

This question already has an answer here: ExpandableListView expand only on a specific Button? 3 answers How to expand child on particular Button click in Expandable List View rather than Group click
Kavya
1

votes
0

answer
33

views

How to set preference for one of duplicating sections in man pages?

I see the following question every time I open man pages for git commands: -> man git-log Man: find all matching manual pages * git-log (1) git-log (1+) Man: What manual page do you want? After that I have to wait till the first section is opened automatically or choose it manually. The question is...
Maxim V.
1

votes
1

answer
311

views

How to set custom font with specific size to Web View in iOS?

I am trying to set Open sans with size 15 to a UIwebview. But i am not able to implement that successfully. This is what i have been trying so far let content = '' + jsonObject.stringValue + '' self.webViewOutlet.loadHTMLString(content, baseURL: nil) Can someone help to implement this Thanks in ad...
Jobins John
1

votes
0

answer
299

views

Which SSML Tags are supported by Android TTS default engine

I have searched a lot unable to find any solid solution for, which are valid ssml tags supported by Android TTS default engine. could any one please update me. Will these tags support on all the android devices.
Manmohan Soni
1

votes
1

answer
264

views

Not able access multiple data sources in Spring boot

I am new to Spring & Spring boot and I am trying to access two data sources but am I able to connect to only one data source. when I try to call a function accessing 2nd data source the call goes to the first data source and I get the below error, com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExce...
Arigato Manga
1

votes
0

answer
858

views

How to integrate Tinymce with angular 4.0

I am getting error that SimpleTinyComponent is not an NgModule Copied the sample code from 'https://www.tinymce.com/docs/integrations/angular2/' Created one component for tinymce where I based the basic setup code of TinyMCE then on Basic component HTML used the selector of tinymce. Basic.component...
Kunal Vashist
1

votes
0

answer
44

views

how to display a pdf file as a download link from mysql without path directing way in php?

I tried to display pdf files from mysql in the webpage without any path directory. is it possible to do that? I tried this:
saisun7
1

votes
0

answer
218

views

Url loads via SafariViewController but not via WKWebView in iOS

I am running a demo project on iOS 11 device. There is a certain url which i am loading in SafariViewController using below code, which works fine. NSURL *url = [NSURL URLWithString:@'https://myCustomUrlHere']; SFSafariViewController *svc = [[SFSafariViewController alloc] initWithURL:url]; svc.deleg...
iPhoneDeveloper
1

votes
0

answer
92

views

Singularity error when doing Tobit regression

I'm trying to estimate a standard tobit model which is censored left at zero. Variables are Dependent variable: Happiness Independent variable: City(Chicago,New York), Gender(Man,Woman), Employment(0=Unemployed, 1=Employed), Worktype(Unemployed, Bluecolor, Whitecolor), Holiday(Unemployed, 1day a wee...
Daniel Cho
1

votes
1

answer
117

views

Converting a VPython program to an exe using cx_Freeze

I have coded a VPython simulation but I can't compress it into an exe using cx_Freeze. I think it is because of VPython module since cx_Freeze works when I compress other programs that don't use VPython. Detailed steps: This is my test simulation program: from vpython import * ### Simulation ### def...
Momo 6aye3
1

votes
0

answer
25

views

Protocol buffer to SWIFT message conversation

Sorry if this question look very vague. My requirement is to to generate swift MT543 message from incoming Google protocol buffer message format. Just want to understand if we have any existing framework for GPB which can help here like we have xslt for xml. I tried googling around it but couldn't...
himanshu singh
1

votes
2

answer
760

views

Chartjs - Add backgroundColor for labels radar chart

>>> Radar chart labels with background color Hi there, I just want to ask for an option to add the background color (a rounded rect with bg color) for labels (individually) in Chartjs. Is there any callback that I can apply for changing this, any help is appreciated with best regards! This is the cu...
spideyinf
1

votes
0

answer
150

views

How to prevent npm install from installing my dependency's devDependencies?

I was using Node 9.3.0 and npm 5.6.0 I developed a library (let's call it Foo) which was hosted on GitHub. In its package.json, it has several devDependencies, but doesn't have any dependencies. Then I created a new project called Bar and run npm install my-github/Foo. Instead of the single package...
obfish
1

votes
0

answer
167

views

Error loading wikidata on local blazegraph

I have installed locally wikidata and blazegraph following the instruction here : https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-started.md The .munge get me 424 files as 'wikidump-000000001.ttl.gz' in data/split When I try to load one file on blazegraph I get an error :...
Thomas Scialom
1

votes
1

answer
52

views

Solr Query with hyphen return Zero Result

I have a index document that look like this: {'id:'abcde-efgr-jhik','domain': 'http://www.play-bugs.com/index.com} on the Domain field, I use text_general as data type. I trying to query this document use q=domain:play-bugs it wont return any result, however if I use q=domain:play-bugs.com it give m...
david
1

votes
1

answer
273

views

Kettle PDI how to pass multiple parameters not used in Table Input

I'm converting data from one database to another with a slightly different structure. In my flow at some point I need to read data from the first database filtering on the id coming from previous steps. This is the image of my flow: In the step 'ZtlBus note' the query is: SELECT e.*,UNIX_TIMESTAMP(v...
drenda
1

votes
1

answer
584

views

Expand collapse a layout in recycler view

I have a recycler view which has header element and child element at starting time the visibility of child element is gone. I want that when I clicked on header element suppose position zero child elements of that position should be visible (mean expand) I achieve this successfully. The only problem...
Abhishek Bhardwaj
1

votes
2

answer
839

views

How to use spread operator on object create-react-app?

I am new with react-redux concept and I tried to use spread operator. Below is my code: This is my store(createStore.js): import { createStore } from 'redux'; import reducer from './reducers'; const store = createStore(reducer); export default store; with my reducers using redux combineReducers(only...
LearnToCode
1

votes
1

answer
61

views

How the sender can see its own messages too with socket.io?

I'm using socket.io and I want to send a message to a specific user by its socket.id and that the sender will see its own message too. I get the socket.id and sending the message by: socket.to(msg.id).emit('chat message', msg.message); which msg.id is the socket.id of the recipient. I found out tha...
zb22
1

votes
1

answer
356

views

How to get url Cloudfront CDN in Laravel

I am using FileStorage from Laravel to store uploaded files. To get the url of a file I am using: $url = Storage::url('/test/image.jpg'); It does return the url of the file on Amazon S3, however I want it to return the url of the file on CDN CloudFront. How can I achieve this? Thanks all!
Quy Nguyen Vu
1

votes
1

answer
91

views

Loading Avro Data into BigQuery via command-line?

I have created an avro-hive table and loaded data into avro-table from another table using hive insert-overwrite command.I can see the data in avro-hive table but when i try to load this into bigQuery table, It gives an error. Table schema:- CREATE TABLE `adityadb1.gold_hcth_prfl_datatype_accepten...
Vishwanath Sharma
1

votes
2

answer
1.8k

views

Glide v4.4 disable memory cache and disk cache failure

The image file is downloaded from the server and always save to the same file name. So in earlier version of glide, i have been tested with Uri uri = Uri.fromFile(new File(downloadPath)); GlideApp.with(this) .load(uri) .diskCacheStrategy(DiskCacheStrategy.NONE) .skipMemoryCache(true) .into(mDownlo...
rodent_la
1

votes
1

answer
335

views

@page css rule alternative for safari

How can I use write alternatives for these rules in safari? I am using angularPrint directive for adding print functionality to some of my pages, which adds some helper classes to my document and also use @page directive, everything works fine in all browsers except safari, I found that these rules...
Rathma
1

votes
2

answer
851

views

Tell pylint what the return type of a method is

To give details: this is a constrained environment with Python 2.7.14, Pylint 1.8.1, and Astroid 1.6.0 and various other modules, but I can't easily install new modules such as mypy (not even with virtualenv) or make major changes to the codebase. Due to https://github.com/PyCQA/pylint/issues/400 I'...
MadScientist
1

votes
0

answer
32

views

sheets add-on giving 1-hr trigger error, even when there are no triggers installed

I wrote my first google app script with simple menu & sidebar; it works fine from script-editor but when I publish it as a 'sheets add-on' then 1. one of the textbox's in sidebar is missing 2. sidebar's submit/cancel buttons are not working Further more, on executing other menu items ... I keep on...
Deepak Kumar
1

votes
3

answer
142

views

Find a tangent between line segment and circle

I have a line segment A (x1, y1), B (x2, y2) and a circle with the center C (x3, y3). Also I have radius of the circle. How do I get tangents? These tangent lines should always be parallel to line segment. P.S. Sorry if it is doesn't make sense to you, I am very very bad at math. Ask me any questi...
boshetoonmai
1

votes
0

answer
1.3k

views

Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher

I am working on android project and every thing works fine, but when I started a new cordova project then it throw error Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher. I search on google and in most of answer says change in ANDROID_PATH. My current AN...
Vivek
1

votes
0

answer
37

views

How to run a timer on multiple selenium windows? (Selenium Java)

The goal of my program is it to open two firefoxdriver windows and have them both click a button at a certain time (11am for example) How can I achieve this? This is what I have so far, but it doesnt work and I'm not sure how to fix it. public class Timetest { public static void main(String[] args)...
hypecode
1

votes
1

answer
67

views

Odoo error after installing xls report

I added xls engine and webkit addons. I am using Windows 2008 server. When I try to print ledger reports, it gives the following error: Required report does not exist: account.account_report_general_ledger_xls ,Required report does not exist: account.account_report_general_ledger_xls,
tajwali khan
1

votes
0

answer
91

views

Split main.bundle.js angular starter

I am using https://github.com/gdi2290/angular-starter for my project and I want to split main.bundle.js in multiple files with predefined names. For example: main.bundle.1.js main.bundle.2.js main.bundle.3.js main.bundle.4.js Is it possible to make this kind of configuration?
Jovica Madzevic
1

votes
1

answer
70

views

Editing possibility in queries

LibreOffice 5.1.6.2 I have saved some queryes and I'd like to allow users to use them directly (without any reports). Reason: there are filters thare, they are convenient. My users are sophisticated ones, so queries are ok. The problem is a possibility to edit data when looking at the results of the...
Michael
1

votes
0

answer
185

views

Cannot use react devtools & redux devtools in build version of CRA

Using create-react-app with redux, and having both extension installed in chrome, I'm able to debug my app with these two. However, after building my app npm run build the two extensions are not working. Loading the redux devtools is with: const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_C...
galah92
1

votes
0

answer
190

views

Got error while migrating to Android Studio 3.1 Canary 5 Build?

I tried following steps: 1.changed to classpath 'com.android.tools.build:gradle:3.1.0-alpha05' maven { url 'https://maven.google.com/' name 'Google' } and added google() android.enableAapt2=false in gradle.properties 4. android { compileSdkVersion 27 buildToolsVersion '27.0.1' defaultConfig { appli...
Swapnil
1

votes
0

answer
249

views

Krajee's file input only upload last selected image

I'm working with this plugin in Codeigniter as I want to upload multiple files (either it can be multiple images, videos or files) and as mentioned there I have done the following code HTML Script $('#attachment').fileinput({ uploadUrl: '#', uploadAsync: false, showCaption: false, fileActionSettings...
Mr. Pyramid
1

votes
1

answer
48

views

How to acquire the object ID?

I want to dynamically create images to a screen, but later when I touch them, I would like to get the object ID which I touch, in order to delete or manipulate it. I am posting the code which I am dynamically creating the images. Any help on how to acquire the images(object) ID? this.i = this.i + 1...
PetePan
1

votes
2

answer
533

views

Can't be upload an image in Firebase Storage in android

I'm learning to upload the an image in Firebase Storage but when i run / open my app and select an image to upload there is no any image to upload in firebase storage please help me where i mistake to write code . Androidmanifest.xml: MainActivity.java: package com.fireapp.newfireapplication; import...
LearnToProgram
1

votes
1

answer
45

views

How to keep pie menu in background?

I have an page layout which cover all components const PageLayout = ({ children, navBar }) => { return ( {children} © 2017. {settings.app.name}. ); }; And each page have prototype look like this class SecuritySystemPage extends Component { render() { return ( {//some thing to display here} ) } } Re...
tuan.tran
1

votes
0

answer
43

views

Gradle and library issues while importing a project into Android Studio.

I am importing an old project into android studio, getting gradle and library issues. Project imported. After solving gradle issue am getting below error message Error:Execution failed for task ':mergeDebugResources'. [declare-styleable/CircularImageView] /home/appristine/Aks_Projct/Bazaaralosra/re...
test appristine
1

votes
0

answer
47

views

How to load a specific view controller in KIF tests?

Currently, am navigating through all view controller to reach a specific view controller for testing. But is there a way that I can load a specific view controller for testing that particular page?
fAiSaL

View more questions