Category Archives: davidwalsh

Get Python Requirements Package Hashes

Python’s (pip’s) requirements.txt file is the equivalent to package.json in the JavaScript / Node.js world.  This requirements.txt file isn’t as pretty as package.json but it not only defines a version but goes a step further, providing a sha hash to compare against to ensure package integrity:

read more

Protect Sensitive Data in Docker


Developing authentication code for open source repositories can be a scary task; you’re scared that hackers can find loopholes in your code but you’re also petrified of accidentally committing sensitive credentials to a public repository.  I’ve seen unintentional credential commits happen and the panic that ensues throughout an organization will make your eyes water.

read more

Powerful Tips and Tools for UX and UI Designers (Sponsored)

Although they are separate entities, UX and UI design are often done by the same individual. This is usually the case with a freelance web designer.

Most designers however, are focused on the UI when building a website. This would seem to make sense, in that UI design is digital-oriented and focuses on creating a website by constructing it page by page. It’s a website’s UI that determines how it will visually present itself, and how it will present its look and feel to its users.

A website’s UX focuses on its usability, and its ability to provide customer satisfaction. Good designers should take their website’s UX requirements into account at the beginning of a project, rather than at the end. While some of the UX design activities revolve around user testing and client feedback, designer and clients should know up front whether a given brand or product is marketable.

read more

currencylayer: Simple, Effective Currency Conversion

Every developer that’s maintained an eCommerce site will tell you that being responsible for properly handling currency will tell you it can be a very stressful task.  If you write buggy or insecure code, you’re going to cost either your employer or the user money.  An added complication for developers can be currency conversion if the app caters to an international audience.  The last thing developers need is a complicated API, especially one that aids them in handling currency.  That’s where currencylayer comes in:  a simple, comprehensive API for currency conversion for your web and native apps!

Quick Hits

Here are a few of the highlights of currencylayer’s offering:

  • Trusted by Disney Pixar, FedEx, Lyft, and MetLife
  • Supports dozens of currencies
  • Supports bitcoin currency conversion
  • Provides HTTPS API usage
  • Currency value updates every 60 seconds
  • Clear documentation with numerous code samples (cURL, PHP, jQuery, etc.)
  • Very competitive pricing

Using currencylayer

currencylayer offers free signup with a generous request allotment for testing.  After you sign up you’ll be given an API key to kick off development.  Armed with an API key and the documentation, it’s time to use currencylayer’s API endpoints to experiment with currencies!

Tips for All currencylayer Requests

  • All requests must be GET requests
  • The access_key parameter, which represents your API KEY, is required for all requests
  • You can add format=1 to any request to request currenclylayer format the JSON response (nice!)
  • You can add source={code} to change the source currency from USD to whichever language you’d like
  • You can add currency={currencylist} to specify which currencies you want information for
  • currencylayer provides extensive code samples in their documentation

Getting a Currency Listing

A good first step is using the currency listing endpoint to see which currencies are supported by currencylayer:

# The "list" endpoint provides a basic list of supported currencies
// Response:
      "AED":"United Arab Emirates Dirham",
      "AFN":"Afghan Afghani",
      "ALL":"Albanian Lek",
      "AMD":"Armenian Dram",
      "ANG":"Netherlands Antillean Guilder",
      "AOA":"Angolan Kwanza",
      "ARS":"Argentine Peso",
      "AUD":"Australian Dollar",
      "BTC":"Bitcoin", // Yay bitcoin!
      // ...
      "USD":"United States Dollar",
      "UYU":"Uruguayan Peso",
      "UZS":"Uzbekistan Som",
      "VEF":"Venezuelan Bol\u00edvar Fuerte",
      "VND":"Vietnamese Dong"

read more

Chris Coyier: Some Amazing Work on CodePen III

I’m back! David asked me to rope up some of my favorite stuff on CodePen again, which I both love doing, and wince at the thought of having to pick so few favorites. I like a ton of stuff on CodePen. It’s kind of a hobby of mine. Here’s some things that appeal to my particular tastes 😉

3D Hamburger Transformicon

There are no shortage of hamburgers on CodePen, but this one by Bennett Feely (a transformation of a Dribble Shot by vlbrsk) is exceptionally clever. Bennet is always doing really clever stuff!

See the Pen 3D Hamburger Transformicon by Bennett Feely (@bennettfeely) on CodePen.

read more