Olson CloudWorks 🚀

: All Posts

Efficient method to generate UUID String in Java UUIDrandomUUIDtoString without the dashes

Efficient method to generate UUID String in Java UUIDrandomUUIDtoString without the dashes

I would like an efficient utility to generate unique sequences of bytes UUID is a good candidate but UUIDrandomUUIDtoString generates stuff like

Read more →

Enums in Javascript with ES6

Enums in Javascript with ES6

Im rebuilding an old Java project in Javascript and realized that theres no good way to do enums in JS The best I can come up with is const Colors RED

Read more →

Error on renaming database in SQL Server 2008 R2

Error on renaming database in SQL Server 2008 R2

I am using this query to rename the database ALTER DATABASE BOSEVIKRAM MODIFY NAME BOSEVIKRAMDeleted But it shows an error when excuting Msg 5030 Level 16

Read more →

Expected validator to return Promise or Observable

Expected validator to return Promise or Observable

Im trying to do a custom validation on Angular 5 but Im facing the following error Expected validator to return Promise or Observable I just want to return an

Read more →

Extract a part of the filepath a directory in Python

Extract a part of the filepath a directory in Python

I need to extract the name of the parent directory of a certain path This is what it looks like Cstuffdirectoryineedsubdirfilejpg I would like to extract

Read more →

Force DOM redrawrefresh on ChromeMac

Force DOM redrawrefresh on ChromeMac

Every once in a while Chrome will render perfectly valid HTMLCSS incorrectly or not at all Digging in through the DOM inspector is often enough to get it to

Read more →

Getting the error Missing  inserted in LaTeX

Getting the error Missing inserted in LaTeX

I try to write the following in latex beginitemize item textbfinsertelementtext inserts the element or text passed at the start of the selection item

Read more →

Given a number find the next higher number which has the exact same set of digits as the original number

Given a number find the next higher number which has the exact same set of digits as the original number

I just bombed an interview and made pretty much zero progress on my interview question Given a number find the next higher number which has the exact same set

Read more →

How can I animate the drawing of text on a web page

How can I animate the drawing of text on a web page

I want to have a web page which has one centered word I want this word to be drawn with an animation such that the page writes the word out the same way that

Read more →