Olson CloudWorks 🚀

: All Posts

Emulating a do-while loop in Bash

Emulating a do-while loop in Bash

What is the best way to emulate a dowhile loop in Bash I could check for the condition before entering the while loop and then continue rechecking the

Read more →

Example of when should we use run let apply also and with on Kotlin

Example of when should we use run let apply also and with on Kotlin

I wish to have a good example for each function run let apply also with I have read mediumcom The difference between Kotlins functions let apply with run and

Read more →

From conda create requirementstxt for pip3

From conda create requirementstxt for pip3

I usually use conda to manage my environments but now I am on a project that needs a little more horsepower than my laptop So I am trying to use my universitys

Read more →

Get a random number focused on center

Get a random number focused on center

Is it possible to get a random number between 1100 and keep the results mainly within the 4060 range I mean it will go out of that range rarely but I want it

Read more →

Getting a list of associative array keys

Getting a list of associative array keys

I have an associative array in JavaScript var dictionary cats 12345 dogs 678910 How do I get this dictionarys keys Ie I want var keys cats dogs Just to get the

Read more →

Getting visitors country from their IP

Getting visitors country from their IP

I want to get visitors country via their IP Right now Im using this httpapihostipinfocountryphpip Here is my code ltphp if issetSERVERHTTPCLIENTIP realipadress

Read more →

git clone from another directory

git clone from another directory

I am trying to clone repo from another directory Lets say I have one repo in Cfolder1 and Cfolder2 I want to clone the work in folder1 into folder2 What would

Read more →

git log of a single revision

git log of a single revision

I have a commit c I want to get the changeset of that exact commit c metainformation and no other one Is there a simpler way than git log p cc to do

Read more →

Git Push error refusing to update checked out branch

Git Push error refusing to update checked out branch

I have solved some merge conflicts committed then tried to Push my changes and received the following error cProgram Files x86Gitbingitexe push

Read more →