Provide a valid path to the desired application bundle. Print: Entry, “:CFBundleIdentifier”, Does No

react-native-cli: 1.0.0react-native: 0.39.2I cloned a react native project. Then I ran npm install and then react-native run-ios. The project fails with the below error. Please not the project runs fine in xcode. Any thoughts?The follo

TensorFlow: Incompatible shapes: [100,155] vs. [128,155] when combining CNN and LSTM

ProblemI'm getting an incompatible shape error when trying to stack a Conv - Lstm - Fully connected layers for an audio regression task. I can't work out why I'm getting the error I'm getting - the graph builds fine then throws the error

how to discover serialVersionUID of serialized objects

Short question: how to discover the serialVersionUID of Objects that are in serialized form.Detail: I have some serialized versions of Objects in a session database for a web application. For some of these objects, I failed to specify a s

Return words with double consecutive letters

I'm trying to make a python program to return the words that have double consecutive letters, (e.g., door, ball, floor). My code until now is this the following, but it returns me all the words in the files divided in two-letter parts:def

ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context : while initializing Chrome bro

I am getting this error when I attempt to run code on 2 of 3 computers:[0502/155335.565:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context.Here is the code:from selenium import webdriverfrom selenium.webdriver.chrome.optio

Serving HTTP version of site to those who don't support HTTP2

I'd like to move my client's site entirely to HTTPS in order to allow HTTP2 to work, however I was wondering is it ok (in the eyes of search engines) to serve older traffic (of which there is a lot and which would otherwise suffer a perf hi

regex split string with two separators

Using JavaScript, Is there a way to split the string to an array with two separators: ':' and ','For var str = 21:223, 310:320; would like the Result to be: [21, 223, 310, 320];Thanks! 1:You could use a regular expression which looks fo

Warning: Can't call setState (or forceUpdate) on an unmounted component

getting this warning everytime i sign in, Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tas

Merge list of objects into consistent list based on common matching attribute in Python

I have a list of objects which I want to compress into a smaller list of objects based on a matching attribute (id) and optional class parameters.class Case: def __init__(self, id, formtype, age, fever=None, cough=None, gender=None):

Bot Dialog not waiting

Bot InfoSDK Platform: .NETSDK Version: 3.15.3Active Channels: N/ADeployment Environment: local development with EmulatorIssue DescriptionWhen testing with the emulator, the program does not wait for user input on the context.Wait nor when f

Excel Range in C# using interop.Excel. Range both empty and not empty?

I have a Excel sheet that looks like this.|A1|B1| BLANK |D1|E1|F1|I.e. only the first row is populated and the third column is blank. I parse this in C# using interop.excel in the following way: Excel.Application exApp = OpenExcel();

button is squeezed when it exceeds layout

In my code, I create buttons dinamically. When I create multiple buttons is the following problem:How do I get it when it happens the button is put down?My code: private void showGlossary(String ContentTab) { LinearLayout layout; L

Preset files are not allowed to export objects

I have a carousel file in which I want to get index.js and build block.build.js so my webpack.config.js is //webpack.config.jsvar config = { entry: './index.js', // Webpack output: { path: __dirname, filename: 'block.build.js',

Jasmine: Unit test http service error observable

I am pretty confused on how to mock that my http service catches an observable error. I have read through the angular documentation but I do not understand how I would structure the test. I would like to mock an error in my service, then ch

Zend Controller Action , get Helper in other class?

is there any way to get an Action Helper from an Service Class?I have the following Helper:class Helper_Host extends Zend_Controller_Action_Helper_Abstract{ /** * Return Hosturl with path * * @return string Hostname */

bookdown Error 'CTeX fontset `mac' is unavailable in current mode.' when using output

I'm using bookdown with Rstudio + tinyTex + pandoc to write a report in Chinese. Because I need to use cross reference, I have to set the output format to pdf_document2, but I got an issue about CTeX fontest. First, here is the YAML part:--

How to change the origin of the canvas to the center?

I'm new to html and JavaScript, I am writing a program dealing with points and lines in a coordinate system, but as you know the origin of a canvas for html5 is at the upper corner, I want to build a coordinate system with its origin at the

ng-bootstrap - ngbtooltip not working with [(ngModel)]

I'm new to angular 4 and bootstrap beta 2 and trying to use ngbtooltip to show tool tip text. Tooltip on the label is working fine when only input does not have [(ngModel)]. As soon as I used [(ngModel)] in input text control, tooltip is sh

missing required module 'SwiftShims' error generated by Xcode in project

i copied my project in running state but copied project didn't work for me and actual project is running fine. when i built my copied project its give me following error...Although i Clear my cache and derived data too but nothing is work f

Spring rest xml dateTime format

We use SpringBoot with Spring Rest and Jackson. We use Java 8 LocalDateTime.RestController.@RestController@RequestMapping(method = RequestMethod.GET, produces = {MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE})public clas

org.springframework.web.client.HttpClientErrorException: 400 null

I wrote test for FilterDataController. But I have the following error during execution test. When I send manually GET request I receive correct JSON. org.springframework.web.client.HttpClientErrorException: 400 null at org.springframewor

How do I use LINQ to get all the Items that have a particular SubItem?

My software is designed to encrypt and decrypt files. The user loads the files to be processed into a ListView control. In the control, each item is the file path with one subitem, the type of process (ENCRYPT or DECRYPT). I need to get a l

jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize

I've noticed that when using jQuery Isotope or Masonry with a fluid / responsive website, the elements overlap momentarily whilst the browser window is being resized. Please see the images below, which are screenshots from this demo. You ca

java.io.EOFException: End of input at line 1 column 1 path $ in Gson parser

I'm parsing a JSON string by using Gson and Retrofit. I have this JSON string:{message:[Email has already been taken]}I get the below exception still and don't know why:java.io.EOFException: End of input at line 1 column 1 path $ at com.

Effective Java Item 14: You can’t change the representation without changing the API

This is taken from Effective Java by Joshua Bloch-Item 14 (or Item 16 in the Third Edition): In public classes, use accessor methods, not public fields// Degenerate classes like this should not be public!class Point { public double x; pub

$_GET URL from ?url=http://google.com

I'm making a redirect script for my site, I use htaccess to rewrite the URL so it looks nicer.eg. http://localhost/r/http://google.com is the URL, but when I printing the value it shows up like this http:/google.com.One / is missing, how ca

c# - regex to find a string that comes after = [duplicate]

This question already has an answer here: regex to find a string that comes after = 6 answers So I asked this question before and said I wanted it in j

Your app(s) are using a content provider that contains a SQL Injection vulnerability

I have 2 apps. The second app interacts with the first app through content provider to get some credentials. Today while uploading my apk on playstore I got an error -SQL InjectionYour app(s) are using a content provider that contains a SQL

Spring Data Neo4j - Argument Type Mismatch

I used Neo4j 3.0.6, neo4j-ogm 2.0.5, Spring boot starter 1.4.1 RELEASE, Lucene 5.5.2This is my Machine and machineSectionSummary class (I only post the field, actually there are properties and constructors). When I call updateMachineSection

Circular dependency while pushing http interceptor

I am using http Interceptor to intercept each http request in my application.But I am getting Circular dependency found: $http - APIInterceptor - $http - $templateRequest - $compilehere is my Service code: mPosServices.factory('mosServi

Getting 'uninitialized constant' error when using delegate in belongs_to in model

I'm implementing a view on a model with three tables, one of them join table. Here are the tables:Recipe:class Recipe ActiveRecord::Base # validates :name, :presence = true # validates :directions, :presence = true # has_and_belong

How do I alternate colors in Flat List (React Native)

Trying to alternate colors in React Natives Flatlist. I believe I need rowID or something similar to do it. This is what I've got so far: let colors = ['#123456', '#654321', '#fdecba', '#abcdef'];View FlatList style={{backgroundColor

TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed v

I have read many questions similar to mine, but all of them are different with mine. for itr in xrange(MAX_ITERATION): train_images, train_annotations = train_dataset_reader.next_batch(batch_size)# train_images=tf.ima

In App Purchase functionality is not present in your binary

App store is rejecting my app for below reason but I am able to test with my test device and making purchase for app through sandbox environment . I have submitted this app to app store two time and I got rejection. I need someone to help m

Word 2010 combining INCLUDEPICTURE and IF

Using MS Word 2010 I am trying to place an INCLUDEPICTURE field into a block of an IF statement. While both the IF statement and the INCLUDEPICTURE work correctly separate, they do not work in combination.IF Statement:{ IF { MERGEFIELD cond

iPhone UIImagePicker Camera in Landscape Orientation

Is there any good way to set UIImagePicker to landscape orientation? I tried to call setStatusBarOrientation after presentModalViewController like following, [self presentModalViewController:picker animated:YES];[[UIApplication sharedApplic

Trigger events not working on ajax loaded html

Well After you edit in a row in this table i've created on focusout it suppose to reload the entire row with updated data, the thing is the trigger event stop working after the first load so any changes done after the first one doesnt get s

git describe: inexplicable commit count

Consider this excerpt of git log --oneline --decorate --graph:* 552485a (HEAD - master, origin/master) Finish v0.8.4|\| * c198066 (tag: v0.8.4) some commit message* | 343af72 Finish v0.8.3|\ \| |/| * 0267e30 (tag: v0.8.3) some commit m

OpenCV Python Error: error: (-215) (mtype == CV_8U || mtype == CV_8S) && _mask.sameSize(*psr

I'm trying to overlay an image of shirt on live video stream of myself using OpenCV Python. I'm stuck at this particular error since three days:error: (-215) (mtype == CV_8U || mtype == CV_8S) && _mask.sameSize(*psrc1) in function cv::binar

VBA userform toolbox additional controls dialogue window not showing

While using MS Excel (Outlook, Word, or Power Point as well apparently) and using VBA, I create a userform. The toolbox shows up showing controls tab and 16 icons representing various controls. When I right click in some empty space in th

python regex in pyparsing

How do you make the below regex be used in pyparsing? It should return a list of tokens given the regex.Any help would be greatly appreciated! Thank you!python regex example in the shell: re.split((\w+)(lab)(\d+), abclab1, 3) ['', '

Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found

With the version of spring-boot 2.0.0.M4 I have this issue: Description:Field userRepository in webroot.websrv.auth.service.JwtUserDetailsServiceImpl required a bean named 'entityManagerFactory' that could not be found.Action:Consider de

django server code not updating

I have an extensive program that is running on my server. The line with the error looks like the following:result[0].update(dictionary)result[0] looks like (label,{key:value,...}) so I got an error saying that a tuple does not have updatewh

Python 2.7 on OS X: TypeError: 'frozenset' object is not callable on each command

I have this error on each my command with Python:➜ /tmp sudo easy_install pipTraceback (most recent call last): File /usr/bin/easy_install-2.7, line 11, in load_entry_point('setuptools==1.1.6', 'console_scripts', 'easy_install')() Fi

No System image available when adding AVD in Android studio

Just installed Android Studio and was trying to add an AVD. When I reached the Select a system image there were some to choose from, and I picked one and it started installing. However, the installation failed because my harddrive ran out o

No server chosen by WritableServerSelector from cluster

As a newbie to MongoDB I'm trying to insert a simple document into my freshly installed mongoDB (v3.2.4). MongoDB Driver 3.2.2 is used.Here my minimized code:public classname(){ public static final String COLLECTION_NAME = logs; Mon

Android : Create an activity and use it many times with different data [closed]

My app goes like this: At the beginning i have the LoginActivity which leads to MainActivity which has 3 fragments. In the first fragment i have a listview with 8 items. Each item of the listview is clickable. I suppose that if i want i can

ModuleNotFoundError: No module named 'matplotlib'

I'm trying to run a python program that requires matplotlib, which I've already installed via pip. I am running Python 3.6 locally on my Mac, with my .bash_profile updated to reflect this. The import line in question is as seen below:import

Issues with PySerial: Port must be configured before it can be used

I am writing code (in python) to use serial communication with an Arduino, using the pySerial library, on Windows 7. However, I am having issues using the ports correctly. Here is my code: import serial #sets the connection parameters, relo

:app:transformClassesWithMultidexlistForDebug FAILED

I have tried the following linkshttp://developer.android.com/intl/es/tools/building/multidex.htmlUNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files definecom.android.build.transform.api.TransformException:app:t