Dumbo

1

votes
2

answer
25

views

Can I compare fields from another line in the same table

I have a table where the quantity of the line is generated increasingly per Order. So instead of having Qty per box I have : Qty Box 2 = Qty Box1+Qty Box2 Qty Box 3 = Qty Box2+Qty Box3, etc... I found a way to calculate Qty per box in Excel with this formula: = IF(Line2(Order)=Line1(Order) THEN (Li...
Dumbo
1

votes
0

answer
222

views

How to disable “RewardedVideoAd” closing while the ad is not finished?

I started to get interested in Google mobile ads. Right now I am testing RewardedVideoAd functionality with Google given testing ad. Everything works fine, but I can't find the way how to disable ad closing while the ad is not finished. Below is my abstract code which shows how I am using the Reward...
Dumbo
1

votes
1

answer
707

views

How properly download multiple files from Firebase Storage on Android?

I have a problem with file download from Firebase Storage on Android application. I know the method how to download one image and display it on ImageView. But I have a problem when I need to download more than one image in single activity. I have the names of the files in the List and they are for e...
Dumbo
1

votes
1

answer
23

views

Trying to create new tuple column on pandas [duplicate]

This question already has an answer here: How to form tuple column from two columns in Pandas 3 answers I'm trying to create a new column, a tuple based on two existing columns: dff['net_sys']= dff[['network', 'syscode']].apply(lambda x: (x['network'], x['syscode']),axis=1) I'm getting an error:...
Dumbo
2

votes
1

answer
176

views

How to create XML file without external libraries in Java 9?

How to create XML file without external libraries in Java 9? Currently I am using javax.xml.bind.JAXBContext and javax.xml.bind.Marshaller classes to do that, but on Java 9 these classes does not exist any more. So while using Java 9 I am getting an exception: java.lang.NoClassDefFoundError: java...
Dumbo
3

votes
1

answer
1.3k

views

Running Docker on Mac, build works, run errors: : /bin/sh: 1: [: missing ]

Running Docker on Mac, I can build my image, but on running, I get the following error: /bin/sh: 1: [: missing ] I create the image in a local directory with a dockerfile, requirements.txt and a python script file. - 3 files- using docker build Dockerfile: FROM python COPY 'requirements.txt' RUN...
Dumbo
3

votes
3

answer
502

views

Hibenate enum casting and converter mapping

I' m working with enums and I want to store code from enum body in database. I' m using hibernate 5.2.11.. For the entity mapping I'm using .hbm.xml files. What I'm doing wrong? Why I can't store the enmus code. It keeps storing enum name or bytearray. MyEntity.java public class MyEntity { private L...
Dumbo
6

votes
2

answer
2.1k

views

How to increase message size in grpc using python

I am using grpc for message passing and am testing a simple server and client. When my message size goes over the limit, I get this error. grpc._channel._Rendezvous: How do I increase the message size on the server and client side?
Dumbo
1

votes
1

answer
734

views

How to audit just part of superclass in hibernate?

I want to ask how to audit just a part of a superclass of entity, using hibernate annotations such as @AuditOverride, @Audited or else. Right now, I am using hibernate 5.2.12 version. The annotations I can use only in a sublcass, because the superclass is in other module which shouldn't know anythin...
Dumbo
2

votes
1

answer
199

views

Gulp command isnt working for laravel

Initially I have installed node.js and npm. And using npm I have installed gulp: sudo npm install -g gulp Here's the output: /var/www/html/laravel$ gulp Error: Cannot find module 'process-nextick-args' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25)...
dumbo
24

votes
2

answer
39.2k

views

PostgreSQL MAX and GROUP BY

I have a table with id, year and count. I want to get the MAX(count) for each id and keep the year when it happens, so I make this query: SELECT id, year, MAX(count) FROM table GROUP BY id; Unfortunately, it gives me an error: ERROR: column 'table.year' must appear in the GROUP BY clause or be us...
Project Dumbo Dev
2

votes
2

answer
249

views

minimize euclidean distance from sets of points in n-dimensions

Let's look at m points in n-d space- (A solution for 4 points in 3-d space is here: minimize distance from sets of points) a= (x1, y1, z1, ..) b= (x2, y2 ,z2, ..) c= (x3, y3, z3, ..) . . p= (x , y , z, ..) Find point q = c1* a + c2* b + c3* c + .. where c1 + c2 + c3 + .. = 1 and c1, c2, c3, .. >= 0...
Dumbo
2

votes
1

answer
833

views

Don't know whats going wrong while training dataset. Keras Model Fit

I have just started using Keras and was trying to train a model using Keras deep learning kit. Works till the epochs are runned but crashes just after it. np.random.seed(1778) # for reproducibility need_normalise=True need_validataion=True nb_epoch=2#8 #Creating model model = Sequential() model.ad...
dumbo