Olson CloudWorks 🚀

: All Posts

Prevent browser from loading a drag-and-dropped file

Prevent browser from loading a drag-and-dropped file

Im adding an html5 drag and drop uploader to my page When a file is dropped into the upload area everything works great However if I accidentally drop the file

Read more →

Printing test execution times and pinning down slow tests with pytest

Printing test execution times and pinning down slow tests with pytest

I am running unit tests on a CI server using pytest Tests use external resources fetched over network Sometimes test runner takes too long causing test runner

Read more →

Proper use of errors

Proper use of errors

Im using TypeScript for a reasonably large project and am wondering what the standard is for the use of Errors For example say I hand an index out of bounds

Read more →

Purpose of installing Twitter Bootstrap through npm

Purpose of installing Twitter Bootstrap through npm

Question 1 What exactly is the purpose of installing Twitter Bootstrap through npm I thought npm was meant for server side modules Is it faster to serve the

Read more →

Python - TypeError Object of type int64 is not JSON serializable

Python - TypeError Object of type int64 is not JSON serializable

I have a data frame that stores store name and daily sales count I am trying to insert this to Salesforce using the Python script below However I get the

Read more →

Questions every good NET developer should be able to answer closed

Questions every good NET developer should be able to answer closed

As it currently stands this question is not a good fit for our QampA format We expect answers to be supported by facts references or expertise but this

Read more →

Regular expression for matching HHMM time format

Regular expression for matching HHMM time format

I want a regexp for matching time in HHMM format Heres what I have and it works 02030509 This matches everything from 0000 to 2359 However I want to change it

Read more →

Select last row in MySQL

Select last row in MySQL

How can I SELECT the last row in a MySQL table Im INSERTing data and I need to retrieve a column value from the previous row Theres an autoincrement in the

Read more →

Setting a system environment variable from a Windows batch file

Setting a system environment variable from a Windows batch file

Is it possible to set a environment variable at the system level from a command prompt in Windows 7 or even XP for that matter I am running from an elevated

Read more →