Home Blog Page 3
Matplotlib Basemap

Install matplotlib basemap on virtualenv

5
I am using Python3.6 and MacOS 10.13.2(Beta) but should work with similar setups. First create and activate your virtual environment, by default mine is created on top of Python3.6. ~ ❯❯❯ mkvirtualenv basemap-virtualenv Installing setuptools, pip, wheel...done. (basemap-virtualenv) ~ ❯❯❯ cd Desktop (basemap-virtualenv) ~/Desktop ❯❯❯ curl https://codeload.github.com/matplotlib/basemap/tar.gz/v1.1.0 -o basemap-v1.1.0.tar.gz Note that I am using the...
Web development stack I've built quite a few websites for clients, friends, family and for myself too in the last few years, some examples are: kunstwinder.com, southcitysmile.com or this very blog. Over time, I've polished the tool and techniques, to speed up development, and to increase the quality. At this point,...
I had a problem recently on a website using Wordpress and the Enfold theme. A YouTube video that was initially marked as private, but later updated to public (embeddable) was still only showing the link, and not the actual video player. Other videos however in the same page, where showing...

Python Stripe Signature Verification Error

1
Building a Django + Stripe integration today I kept hitting the SignatureVerificationError. According to their webhook's documentation, they recommend something like this: @csrf_exempt def my_webhook_view(request): payload = request.body sig_header = request.META event = None try: event = stripe.Webhook.construct_event( payload, sig_header,...

Repair experience OnePlus 3t

0
After many months of use without a case, I finally managed to crack the screen of my One Plus 3t. I researched online to try a repair on my own, but eventually, and from my previous experiences in which self-repairs don't end up as nicely as you might think,...

Android RNE App

0
Spanish Radio and TV (RTVE) is a government funded entity that since 1956 has been broadcasting several TV and Radio channels. Living abroad from home is thought but the radio programs from RTVE are a great companion for those missing home moments. I use the official app from Google Play...
Django works great when you are running in local, but the moment you decide to move onto production, the headaches begin... Since a few months ago I deploy everything using Docker, the result is something much cleaner and easier to maintain, so when moving my Django app to production, I...

Redshift UDF Phone Number to Country

0
Redshift's UDFs (User Defined Functions) permit to execute, with some limitations, certain Python libraries and custom code. In my case, I wanted to find a way to extract the country code from a phone number in E.164 format. UDFs are a perfect fit for this, the implementation in SQL would most...

DD-WRT Remote SSH Access behind VPN

0
SSH access doesn't work when OpenVPN client is enabled on DD-WRT. Packages do arrive at the router if you try to SSH against the WAN IP, however, because all OUTPUT  traffic is diverted through the VPN (interface tun0) SSH won't succeed. What's missing is an OUTPUT rule on iptables to route...

Redshift Force Drop User

0
Ever tried dropping a user in Redshift only to discover that user "user_1" cannot be dropped because the user has a privilege on some object. That's not of great help Redshift. Luckily for us, there is a solution. Kamlesh Gallani posted a response about revoking permissions for tables and schemas...