How to get cryptocurrency prices using Python (and various tools)

Here's another post based on a question from Quora: Can I export the contents of an HTML table to Excel or MySQL via Selenium/Python? No, you can’t export a table from HTML to Excel or MySQL using Selenium with Python. But you’re in luck! You just asked the wrong question. It’s like if you had … Continue reading How to get cryptocurrency prices using Python (and various tools)

Advertisement

A story of performance optimization and refactoring

Optimizing string to date format conversion in Go? Faster TIme Parsing in Go - a story in 3 acts - by Phil Pearl at Ravelin A great story of performance refactoring and profiling. But why go to the effort? Well, when you process billions of records in a NoSQL database and you made a decision … Continue reading A story of performance optimization and refactoring

Bitcoin doesn’t work – and what can we do about it?

Bitcoin doesn’t work. Two problems: Technical - Blockchain doesn’t scale.Social - Why should Bitcoin believers (and speculators) profit at the cost of everyone else. If Bitcoin was the solution then there would be no need of the FOMO. Everyone could adopt it when it is stable. But nobody interested in Bitcoin wants it to stabilize … Continue reading Bitcoin doesn’t work – and what can we do about it?

AWS CLI command completion in BASH

Sometimes you just have to do something simple in AWS -- launch an EC2 instance, create a S3 bucket, run a lambda expression, insert some data into DynamoDB, etc. You could do this via the AWS Management console -- but that means logging in and using the Amazon Web Services very user-unfriendly user interface. You … Continue reading AWS CLI command completion in BASH

Taking back the internet from the Behemoth

The internet has pretty much become a walled garden for a few major corporations such Google, Facebook, Amazon, etc. It takes luck (and skill) to find anything outside these gatekeepers. Whether it’s searching for news, videos, music, or products & services for sale… good luck finding content on your own. Independent voices are stifled (or … Continue reading Taking back the internet from the Behemoth

When should you use JavaScriptExecutor in Selenium?

When you want to execute JavaScript on the browser :) This was my answer to a question on Quora https://www.quora.com/When-should-I-use-JavaScriptExecutor-in-Selenium-WebDriver/answer/Aaron-Evans JavaScriptExecutor is an interface that defines 2 methods: in Java (and similarly in C#): Object executeScript(String script, Object... args) and Object executeAsyncScript(String script, Object... args) which take as an argument a string representing the JavaScript … Continue reading When should you use JavaScriptExecutor in Selenium?

Use Python @contextmanager decorator to start and stop WebDriver

One of the most frustrating simple annoyances with using Selenium is the need to manage the creation and destruction of your WebDriver instances. If your configuration isn't correct, it won't start. And if your test does not complete successfully (or if you forget to close it down properly) you will have an orphaned browser window … Continue reading Use Python @contextmanager decorator to start and stop WebDriver

Should employers require a college degree?

This was my response to a thread on Code Mentor about hiring developers without a degree. If a company requires a degree and you don't have one -- it seems like a mutually beneficial filter. Personally, I'd rather hire someone based on skills and ability to learn and contribute. And I'd rather work for somewhere … Continue reading Should employers require a college degree?