Change Python Version
Python plays a major role at Mozilla; much of our website backends and tooling are written in the powerful language. Want to build Firefox? You'll need to make sure you have the proper Python version, which I recently found out had been upgraded.
Despite installing and verifying I had the version of python I needed, the default version was still an older version and the build was failing. I know that there are python version managers and symlinking tricks, but I wanted the easiest and most explicit possible way to set a default python version, and I did it with an entry to ~/.bash_profile
:
alias python='python3'
The directive above sends python
calls to python3
and thus I can specify the python version with this entry. There are many ways to accomplish this goal but this one works great for me!
![How to Create a Twitter Card]()
One of my favorite social APIs was the Open Graph API adopted by Facebook. Adding just a few META tags to each page allowed links to my article to be styled and presented the way I wanted them to, giving me a bit of control...
![Vibration API]()
Many of the new APIs provided to us by browser vendors are more targeted toward the mobile user than the desktop user. One of those simple APIs the Vibration API. The Vibration API allows developers to direct the device, using JavaScript, to vibrate in...
![MooTools Overlay Plugin]()
Overlays have become a big part of modern websites; we can probably attribute that to the numerous lightboxes that use them. I've found a ton of overlay code snippets out there but none of them satisfy my taste in code. Many of them are...
![MooTools Gone Wild: Element Flashing]()
If you're like me and lay awake in bed at night, you've flipped on the TV and seen the commercials: misguided, attention-starved college girls fueled by alcohol ruining their futures by flashing lame camera-men on Spring Break. Why do they do it? Attention...
Woah awesome idea. I will also go for it. Keep sharing such ideas to bring some awareness in users. Thank you