Open in app

Sign In

Write

Sign In

Eli Segev
Eli Segev

43 Followers

Home

About

Apr 28, 2022

Get a file extension from a URL in Golang

I am presenting a quick code snippet in case anyone else needs a safe way to get the file extension from a URL using Go (Golang). The issue with URLs is that they have many “parts” that using a regular expression might not be the best possible (and readable) way…

Go

1 min read

Go

1 min read


Apr 16, 2022

Druid complex Lookup using other dimensions, with native query or Golang

Lookups in Apache Druid are a way to replace values by keys in datasources, without needing to actually change anything in the datasources. This is extremely useful for repeatable data. Common examples are replacing a country-code with the country name, language-code with the language name, and so on. For me…

Druid

3 min read

Druid

3 min read


May 21, 2021

ElasticSearch scripted field: subtract Epoch timestamp and ISO datetime

ElasticSearch allows putting data into date-time fields in different formatting. You may have one field that was put as a numeric Epoch time (Unix / POSTIX time), and another that was put as an ISO datetime. fieldEpoch: 1621616091 fieldISO: 2021-05-21T15:04:05Z Then, you might want to create a field script that…

Elasticsearch

2 min read

Elasticsearch

2 min read


Dec 2, 2020

Running PHP-FPM in CLI

The standard for running an NGINX webserver for PHP is with PHP-FPM — PHP FastCGI Process Manager(see nginx docs, digitalocean docs). I experienced some major performance enhancements when switching from standard PHP on Apache HTTPD webserver to NGINX with PHP-FPM in my websites. PHP-FPM started as an independent project (many…

PHP

3 min read

Running PHP-FPM in CLI
Running PHP-FPM in CLI
PHP

3 min read


Aug 21, 2019

Couchbase N1QL WHERE…IN

Couchbase query language N1QL is very annoying when it comes to WHERE...IN clause. I find it very odd that it decided to go different than RBDMS SQL queries, and require square brackets ["value1", "value2"] instead of the round brackets that are so common pretty much in every tool (and for DB people: in RDBMS SQL). A full functioning example for Couchbase N1QL: SELECT fields FROM bucket WHERE field IN ["value1", "value2", ...]

Database

1 min read

Database

1 min read


Dec 16, 2018

Don’t just create Setter methods, try creating operation methods

In Java, I come across a lot of unused “setter” and “getter” methods. Creating setters and getters often strikes roots with developers that work with Hibernate and Lombok. …

Java

4 min read

Java

4 min read


Jul 3, 2018

Running tests and creating code coverage reports for React / NodeJS project continuously with Jenkins Pipelines, Jest & Cobertura or Jest-JUnit and push to Artifactory

The foundation for a healthy project is a high standard of automated tests. When your code is well tested, with tests that cover actual scenarios and user behaviors, modifying the code is not as risky task as it was otherwise. …

Java Script

8 min read

Running tests and creating code coverage reports for React / NodeJS project continuously with…
Running tests and creating code coverage reports for React / NodeJS project continuously with…
Java Script

8 min read


Mar 15, 2018

Run prettier in WebStorm or IntelliJ on Windows

Prettier can format your code, and one can have JetBrains WebStorm or IntelliJ do that from within the IDE. This guide assumes you installed prettier globally. Versions older than 2018.1 Go to File> Preferences (WebStorm) or Settings(IntelliJ) > Tools> External Tools. Click the Plus sign to add a new External Tool. Fill in the…

Intellij

2 min read

Run prettier in WebStorm or IntelliJ on Windows
Run prettier in WebStorm or IntelliJ on Windows
Intellij

2 min read


Aug 6, 2017

Build/Create Docker Images Continuously with Jenkins

When using Docker to deploy an application, it is best to rebuild the application continuously — for example whenever the application is rebuilt. This way, one’s integration servers can be automatically up-to-date, and run end-to-end tests on the latest code. Docker has great positive influence on development processes and continuous integration…

Docker

3 min read

Build/Create Docker Images Continuously with Jenkins
Build/Create Docker Images Continuously with Jenkins
Docker

3 min read

Eli Segev

Eli Segev

43 Followers

Java, Golang, PHP, JavaScript, Databases

Following
  • Addy Osmani

    Addy Osmani

  • Charlie Koster

    Charlie Koster

  • Gil Fink

    Gil Fink

  • Joe Lencioni

    Joe Lencioni

  • Eran Levy

    Eran Levy

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech