Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Development

VSCode ESLint howto fix parsing error: ‘import’ and ‘export’ may only appear at the top level

NOTE: The Code is working, only ESLint is giving me an error which i want to fix!! When doing a dynamic import: if (true) import x from ‘y’; //Parsing error: ‘import’ and ‘export’ may only appear at the top level my .eslintrc { “root”: true, “extends”: “eslint:recommended”, “env”: { “es6”: true, “node”: true, “browser”: true […]

Categories
Development

‘serving_default’ : Classification input must be a single string Tensor

I’m building a very simple Classifier. The input data has the following features job object marital object education object default int64 housing int64 loan int64 contact object dayofmonth object month object duration int64 campaign int64 pdays int64 previous int64 poutcome object First version of the serving function def serving_input_receiver_fn(): feature_spec = { ‘job’ : tf.placeholder(dtype […]

Categories
Development

No Factor variable contain one level still getting Error “contrasts can be applied only to factors with 2 or more levels”

I am trying to run logistic regression model and getting below error. model1 <- glm(state~. -LanID, data = deliq, family = “binomial”, maxit = 50) Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels I know this error normally appears when you have […]

Categories
Development

Client closed connection while waiting for request In supervidord when trying to log with monolog in Lumen

Im trying to show the php-fpm7 logs into the stdout running throught nginx and supervisord. The supervisord stdout show the message: web_1| 2019-11-22 21:52:30,742 DEBG ‘nginx’ stdout output: web_1| 2019/11/22 21:52:30 [info] 10#10: *1 client closed connection while waiting for request, client: 10.11.12.13, server: 0.0.0.0:80 web_1| 2019-11-22 21:52:31,481 BLAT read event caused by <POutputDispatcher at […]

Categories
CSV Development HTML

Issue Converting HTML Table into CSV Format

Trouble converting a series of HTML Tables into a single CSV document. Everything works fine until I get to a multi-line in my html. The converter takes: ” Restarted the following servers for maintenance: -Car Care: CarCareServer -DWA: DWAHost, Server-1, Terminal -Homemasters: Homemasters, SRV0 -Monolith: Monolith, Server “ And converts it into: 5 new CSV […]