One Hell Named JSON

Today on my AWS Lambda Python function, its suffering from an error ValueError: Expecting property name: line 1 column 2 (char 1). This function receive a json events from AWS Kinesis and send it back to kafka. Apperently this is an error from json.loads if you have a json strings with a single quote >>> json_string = "{'name': rezha, 'ganteng': true}" >>> json.loads(json_string) # ValueError: Expecting property name: line 1 column 2 (char 1) To fix this, you could use ast....

April 3, 2017 · 1 min · Rezha Julio

Using Google URL Shortener with Your Domain! For Free!!

I sometimes feel like URL shorteners are some of the most understated tools in internet marketing, and there have been more than a few times that I wished I’d had someone share some advice on URL shorteners. For instance: What do you do with really long links? What if you want to track the results? What if the link—long and unwieldy—upstages the content? What if I am on a platform where every character count?...

March 19, 2017 · 4 min · Rezha Julio

Lightning Intro To Go

The Go Programming Language Go is a compiled programming language in the tradition of C and C++, with static typing, garbage collection, and unique language features enabling concurrent programming Latest Release: 1.8rc3 (1.8 will be out soon) Developed internally by Google to solve the kind of problems unique to Google (ie, high scale services/systems) Designers/developers of Go have deep ties to C/Unix (Ken Thompson, Rob Pike, Robert Griesemer, et al) Hello World in Go...

January 22, 2017 · 13 min · Rezha

Is Schemaless Databases Really Exists?

There’s no such thing as a schemaless database. I know, lots of people want a schemaless database, and lots of companies are promoting their products as schemaless DBMSs. And schemaless DBMSs exist. But schemaless databases are mythical beasts because there is always a schema somewhere. Usually in multiple places, which I will later claim is what causes grief. There Is Always A Schema We should define “schema” first. It comes from Greek roots, meaning “form, figure” according to my dictionary....

January 16, 2017 · 5 min · Rezha Julio

JS & Dom - Tips & Tricks #3

As you might already know, your browser’s developer tools can be used to debug JavaScript by utilizing breakpoints. Breakpoints allow you to pause script execution as well as step into, out of, and over function calls. Breakpoints are added in your developer tools by means of line numbers where you indicate where you want script execution to be paused. This is fine until you start changing your code. Now a defined breakpoint may no longer be in the place you want it to be....

January 13, 2017 · 2 min · Rezha Julio