Olson CloudWorks 🚀

: All Posts

What is the curiously recurring template pattern CRTP

What is the curiously recurring template pattern CRTP

Without referring to a book can anyone please provide a good explanation for CRTP curiously recurring template pattern with a code

Read more →

What is the difference between OptionalflatMap and Optionalmap

What is the difference between OptionalflatMap and Optionalmap

Whats the difference between these two methods OptionalflatMap and Optionalmap An example would be

Read more →

What is the difference between single and double square brackets in Bash

What is the difference between single and double square brackets in Bash

Im reading bash examples about if but some examples are written with single square brackets if f param then fi others with double square brackets if ne 0 then

Read more →

What is the easiest way to use SVG images in Android

What is the easiest way to use SVG images in Android

I have found a myriad of libraries in order to use SVG images in Android and avoid the frustrating creation of different resolutions and dropping files for

Read more →

What is the point of interfaces in PHP

What is the point of interfaces in PHP

Interfaces allow you to create code that defines the methods of classes that implement it You cannot however add any code to those methods Abstract classes

Read more →

Whats quicker and better to determine if an array key exists in PHP

Whats quicker and better to determine if an array key exists in PHP

Consider these 2 examples key jim example 1 if issetarraykey example 2 if arraykeyexistskey array Im interested in knowing if either of these are better Ive

Read more →

Whats the best way to make a d3js visualisation layout responsive

Whats the best way to make a d3js visualisation layout responsive

Assume I have a histogram script that builds a 960 500 svg graphic How do I make this responsive so on resize the graphic widths and heights are dynamic

Read more →

Where can I find the sha256 code of a docker image

Where can I find the sha256 code of a docker image

Id like to pull the images of CentOS Tomcat using their sha256 code like in docker pull myimagesha2560ecb2ad60 But I cant find the sha256code to use anywhere I

Read more →

Why is processing a sorted array slower than an unsorted array

Why is processing a sorted array slower than an unsorted array

I have a list of 500000 randomly generated Tupleltlonglongstringgt objects on which I am performing a simple between search var data new

Read more →