how to convert single array into multiple nested array format for slice method use

I got the one-dimensional array list and wanna remake it like this below. data = [[0,1,2,3,4,5,6,7,8],[9,10,11,12,13,14,15,16,17], … ,[88,89,90,91,92,93,94,95,96]] and then, I want to pick each of nested data[i] and slice the elements inside by 3, 6. For last, I want to make new two arrays by pushing the sliced array. e.g data[0]= [0,1,2,3,4,5,6,7,8] new_data1 =…

Details

Java on repl.it java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it

Before I get into the problem, since I am not using a Linux machine or anything like that and I am using repl.it, the generic solution of export DISPLAY=:0.0 or setenv DISPLAY :0.0 will not work. This is simply a java file on repl.it. So basically, I have a program that writes custom user-defined information…

Details

How to connect from outside to MongoDB Atlas under VPC peering?

I have: MongoDB Atlas Cluster VPC Peering between GCP. When I tried connect to DB from my home laptop: mongo “mongodb+srv://hello-dev-x53pa.gcp.mongodb.net/test” –username myuser I received an error: 2020-01-09T15:32:33.697+0200 W NETWORK [ReplicaSetMonitor-TaskExecutor-0] Failed to connect to 192.168.240.4:27017 after 5000ms milliseconds, giving up. 2020-01-09T15:32:33.698+0200 W NETWORK [thread1] Failed to connect to 192.168.240.2:27017 after 5000ms milliseconds, giving up.…

Details