Categories
Bitcoin Cryptocurrency Mastering Development

Can the forked be unforked? :)

So….BTC, BCH, BTG and BSV all trade at different prices/values. All have forked off from BTC and have different development teams, theories, practices, technology, etc. I noticed that when you look at the amount of coins mined on sites like coinmarketcap.com, it shows the following circulating supplies for each: BTC = 18,287,125 BCH = 18,351,063 […]

Categories
Mastering Development

Duplicate Messages Published on Kafka Topic Using Spring-boot

I am very new to Springboot and Kafka. Working on a school assignment where using a Springboot app we need to publish Json data on a Kafka topic. My publishing .java file looks as follows: import org.springframework.beans.factory.annotation.Autowired; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.CMPE172.kafka.springbootkafkaproducerexample.model.User; @RestController @RequestMapping(“kafka”) public class UserResource { […]

Categories
Development

how to create two independent drill down plot using Highcharter?

I’m working on shiny app that contains two drill down charts, both read from same data file the only difference is the first chart excute summation, while the second one gets averages, the issue is whatever the change I make both charts still conflicting , here is the used code cate<-c(“Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”drinks”,”drinks”,”groceries”,”groceries”,”groceries”,”dairy”,”dairy”,”dairy”,”dairy”,”groceries”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”groceries”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”drinks”,”drinks”,”groceries”,”groceries”,”groceries”,”dairy”,”dairy”,”dairy”,”dairy”,”groceries”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”groceries”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”drinks”,”drinks”,”groceries”,”groceries”,”groceries”,”dairy”,”dairy”,”dairy”,”dairy”,”groceries”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”groceries”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”Furniture”,”drinks”,”drinks”,”groceries”,”groceries”,”groceries”,”dairy”,”dairy”,”dairy”,”dairy”,”groceries”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”technology”,”groceries”) Sub_Product<-c(“nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”nov”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”oct”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”sept”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”,”aug”) Main_Product<-c(“outdoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”outdoor”,”n&o”,”n&o”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”n&o”,”outdoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”outdoor”,”n&o”,”n&o”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”n&o”,”outdoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”outdoor”,”indoor “,”indoor “,”indoor “,”indoor “,”outdoor”,”outdoor”,”n&o”,”n&o”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”n&o”,”outdoor”,”indoor”,”outdoor”,”indoor”,”indoor”,”outdoor”,”indoor “,”indoor “,”indoor “,”indoor “,”outdoor”,”outdoor”,”n&o”,”n&o”,”indoor”,”indoor”,”indoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”indoor”,”outdoor”,”outdoor”,”indoor”,”outdoor”,”n&o”) Product<-c(“abc”,”def”,”ghh”,”hig”,”lmn”,”opk”,”cba”,”dfw”,”ewr”,”csad”,”wer”,”casd”,”were”,”csad”,”rt”,”hgf”,”qeq”,”hgf”,”qer”,”qer2″,”erqerq”,”qdq”,”dwqer”,”qerqe”,”erqererq”,”e2342″,”ererq”,”qewrw”,”qrerqr”,”qreqw”,”qerqe”,”abc”,”def”,”ghh”,”hig”,”lmn”,”opk”,”cba”,”dfw”,”ewr”,”csad”,”wer”,”casd”,”were”,”csad”,”rt”,”hgf”,”qeq”,”hgf”,”qer”,”qer2″,”erqerq”,”qdq”,”dwqer”,”qerqe”,”erqererq”,”e2342″,”ererq”,”qewrw”,”qrerqr”,”qreqw”,”qerqe”,”abc”,”def”,”ghh”,”hig”,”lmn”,”opk”,”cba”,”dfw”,”ewr”,”csad”,”wer”,”casd”,”were”,”csad”,”rt”,”hgf”,”qeq”,”hgf”,”qer”,”qer2″,”erqerq”,”qdq”,”dwqer”,”qerqe”,”erqererq”,”e2342″,”ererq”,”qewrw”,”qrerqr”,”qreqw”,”qerqe”,”abc”,”def”,”ghh”,”hig”,”lmn”,”opk”,”cba”,”dfw”,”ewr”,”csad”,”wer”,”casd”,”were”,”csad”,”rt”,”hgf”,”qeq”,”hgf”,”qer”,”qer2″,”erqerq”,”qdq”,”dwqer”,”qerqe”,”erqererq”,”e2342″,”ererq”,”qewrw”,”qrerqr”,”qreqw”,”qerqe”) sum1<-c(43,90,135,125,87,4,23,120,4,127,70,68,129,63,131,90,67,110,90,119,81,68,15,29,49,11,76,82,65,83,25,43,90,135,125,87,4,23,120,4,127,70,68,129,63,131,90,67,110,90,119,81,68,15,29,49,11,76,82,65,83,25,43,90,135,125,87,4,23,120,4,127,70,68,129,63,131,90,67,110,90,119,81,68,15,29,49,11,76,82,65,83,25,43,90,135,125,87,4,23,120,4,127,70,68,129,63,131,90,67,110,90,119,81,68,15,29,49,11,76,82,65,83,25) […]

Categories
Development Linux

Awk Script to Check Every Line in a File

I’m having some trouble trying to create an awk script that checks and possibly corrects every line in a text file. Consider the example: $ cat employee.txt “100”,”Thomas”,”Sales”,”5000″ “200”,”Jason”,”Technology”,”5500″ “300”,”Mayla”, “Technology”,”7000″ “400”,”Nisha”,”Marketing”,”9500″ “500”,”Randy”,”Techno logy”,”6000″ “501”,”Ritu”,”Accounting”,”5400″ As you can see, some of the lines appear to be broken at the wrong point. The pattern should follow […]

Categories
Development

Iterate JSON in Python

I am attempting to pull data from an API that returns data as a JSON object. I have the API call which returns data that looks like this (shortened here for brevity’s sake) “status”:”OK”, “copyright”:”Copyright (c) 2017 Pro Publica Inc. All Rights Reserved.”, “results”:[ { “num_results”: 10, “offset”: 0, “bills”: [ { “bill_id”: “hr2739-113”, “bill_type”: […]

Categories
Development

How to use ! in mentioned query?

I have data in below format (‘CA-2014-118892’, ‘8/18/2014’, ‘Tom Prescott’, ‘Furniture’, ‘Chairs’, 4416.174, -630.882), (‘US-2012-163825’, ‘6/16/2012’, ‘Lena Creighton’, ‘Office Supplies’, ‘Binders’, 3050.376, 1143.891), (‘CA-2012-114811′, ’11/8/2012’, ‘Keith Dawkins’, ‘Technology’, ‘Machines’, 4643.8, 2229.024) Now when i try to use wildcard [!T]% on third value/column which is name, I was hoping it would give me the other two(Lena […]

Categories
Development

How to randomly assigned employees from the list to 4 different groups

I have an employee class and I need to randomly assigned employees to a different groups (total 4) I never used random class before any ideas how to implement it. public class EmployeeTest { public static void main(String[] args) { Random random = new Random(); int group_num = random.nextInt(30); int max = 0; if(max > […]

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : Me and my girlfriend have complete opposite hobbies and it’s led to a lot of disagreement as far as dates go. How do you share hobbies?

She likes cars, Formula 1, snowboarding, long walks in the city streets, cooking, anime, horror movies, Manga. I like beer, sports, technology, beach, country music, cookouts, skiing, and exercise.