Eli Segev·Apr 28, 2022Get a file extension from a URL in GolangI 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…
Eli Segev·Apr 16, 2022Druid complex Lookup using other dimensions, with native query or GolangLookups in Apache Druid are a way to replace values by keys in datasources, without needing to actually change anything in the datasources…
Eli Segev·May 21, 2021ElasticSearch scripted field: subtract Epoch timestamp and ISO datetimeElasticSearch allows putting data into date-time fields in different formatting. You may have one field that was put as a numeric Epoch…
Eli Segev·Dec 2, 2020Running PHP-FPM in CLIThe standard for running an NGINX webserver for PHP is with PHP-FPM — PHP FastCGI Process Manager(see nginx docs, digitalocean docs). I…
Eli Segev·Aug 21, 2019Couchbase N1QL WHERE…INCouchbase 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…
Eli Segev·Dec 16, 2018Don’t just create Setter methods, try creating operation methodsIn Java, I come across a lot of unused “setter” and “getter” methods. Creating setters and getters often strikes roots with developers…
Eli Segev·Jul 3, 2018Running tests and creating code coverage reports for React / NodeJS project continuously with…The foundation for a healthy project is a high standard of automated tests. When your code is well tested, with tests that cover actual…A response icon6A response icon6
Eli Segev·Mar 15, 2018Run prettier in WebStorm or IntelliJ on WindowsPrettier can format your code, and one can have JetBrains WebStorm or IntelliJ do that from within the IDE.A response icon3A response icon3
Eli Segev·Aug 6, 2017Build/Create Docker Images Continuously with JenkinsWhen using Docker to deploy an application, it is best to rebuild the application continuously — for example whenever the application is…A response icon2A response icon2