Open in app

Sign In

Write

Sign In

Artem Dracontis
Artem Dracontis

8 Followers

Home

About

Jan 2, 2022

Never experiment and use Google Cloud Platform

This is a cautionary tale that cost me only ~80$. I’ve had an experience running images on private cloud managed by OpenShift, so I decide it would be nice to learn public clouds like AWS or GCP. I had a simple plan: To assemble a Spring Boot image using jib…

Google Cloud Platform

3 min read

Never experiment and use Google Cloud Platform
Never experiment and use Google Cloud Platform
Google Cloud Platform

3 min read


Aug 2, 2020

Sending multipart/form-data with Kotlin and Java 11 HttpClient

While building up my own library for Telegram Bot API, I’ve run across the need to transmit files via multipart/form-data. Old established libraries like OkHttp or Apache Http Client already has classes for multipart data, but there is nothing like this in Java 11 new http client. I’ve discovered a decent collection of recipes for Java 11 http client, and then I’ve used it as the foundation for this article.

Kotlin

1 min read

Kotlin

1 min read


Feb 4, 2019

Could you use Javascript objects as keys to another object?

No, you can’t. I’ve got an example for you: var a={}, b={key:'b'}, c={key:'c'}; a[b]=123; a[c]=456; console.log(a[b]); console.log(a[c]); Output of both console.log statements will be 456. To understand why it it so, we should use base Object method toString() on both objects. We will see following output: > b.toString(); < "[object Object]" > c.toString(); < "[object Object]" So when you use object as a key of another object it internally converts to string with value [object Object]. So this is all equal calls:

Java Script

1 min read

Java Script

1 min read


Feb 4, 2019

Variable declaration and hoisting

Javascript Baseline pt. 1 — Recently I’ve dived into ECMA-262 (9th Edition / June 2018) specification and in this article I will try to explain variable hoisting using LexicalEnvironment and VariableEnvironment. This article mainly summarise answers to several StackOverflow questions and my understanding of the specification. What's the difference between using "let" and "var" to declare a variable in JavaScript? ECMAScript 6 introduced the let statement. I've heard it described as a "local" variable, but I'm still not quite sure…stackoverflow.com

Java Script

4 min read

Variable declaration and hoisting
Variable declaration and hoisting
Java Script

4 min read


Sep 1, 2018

First steps into Data Science

Story about inferential statistics project This story won’t be a step by step guide to becoming Data Scientist, because I have no idea what should I do after completing following project. So I decide to write a story each time I have some accomplishments on my way. Something about my…

Data Science

8 min read

First steps into Data Science
First steps into Data Science
Data Science

8 min read


Jul 23, 2018

Yet another Prefect Agile Team setup

When I was a student, I’ve got first acquaintance with banking sector and it was awful experience. A lot of software developers sit in narrow open space and they’ve got only one point to access Internet — laptop with mobile wi-fi. I was scared of banks since then. Several years…

Agile

4 min read

Yet another Prefect Agile Team setup
Yet another Prefect Agile Team setup
Agile

4 min read


Jun 23, 2018

nginx as proxy for weblogic (with SSL)

Recently, I’ve encountered interesting task. I should create proxy with apache or nginx for weblogic application. So this article will be about it. Overall configuration is following: worker_processes 1; error_log logs/error.log; error_log logs/error.log notice; error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream;

Nginx

2 min read

Nginx

2 min read


Jun 23, 2018

How to: connect Ebean with existing table?

While waiting for the project from outsource company, I’ve started to investigate information about Java Play 2 Framework. And it’s really impressive modern tool, which can be used to create amazing web applications. It also has powerful tool to create REST services. Outsourced application has Angular.js, Gulp, Node.js on front-end…

Play 2

3 min read

Play 2

3 min read


Jun 23, 2018

How to: manage MEDIA and STATIC files in Django?

This is very important question, because it take a lot of time when you met Django for first time. This guide is for setting up Django MEDIA and STATIC files for development environment and it will be more compact then official guide, though I'll give a reference to it. Configuration of settings.py and urls.py First…

Django

1 min read

Django

1 min read


Jun 23, 2018

Multiple count in one select query

I need fast and effective method to get three count from one table for statistic on my current personal project. And then I’ve found easy and elegant way to do so: select count(*) Total, sum(case when is_approved = 't' then 1 else 0 end) PendingCount, sum(case when is_rejected = 't' then 1 else 0 end) RejectedCount from project_project You could add group by statement so this code will show you counts for groups. This code I’ve tested in PostgresSQL. I’ll try to test it with Oracle DB and will write an update.

Sql

1 min read

Sql

1 min read

Artem Dracontis

Artem Dracontis

8 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech