If you're running a web server in a Docker container on a remote server, you might want to map a port on your computer to the web server within the Docker container. This tutorial breaks down the process into two steps.
May 4, 2017 - docker, ssh tunnel, port forward, forwarding, container
Sometimes you need to access GitHub directly from its IP address. For example, on Oct. 21, the Dyn DNS service went out, and GitHub's domain no longer resolved to the IP. This tutorial walks you through editing your hosts file.
October 21, 2016 - hosts, dns, github, dyn, outage
Setting up Flask varies depending on the operating system. In this example, I walk through how to set up an Apache server, and then a Flask server in Python on Red Hat Enterprise Linux (RHEL). The same principles apply to other Linux distros.
October 16, 2016 - flask, red hat, rhel, python, aws
LaTeX, and the macOS distribution MacTeX, can save you a significant amount of time, but the MacTeX download is huge. BasicTeX is a lightweight alternative that offers many of the same benefits. You can easily get started with this tutorial.
While SSH and the EB CLI are fast, sometimes you want visual feedback when accessing your EC2 instance with Elastic Beanstalk. Using sshfs, you can access the EC2 filesystem and mount it onto your local machine, despite having an unreliable IP address.
April 15, 2016 - elastic beanstalk, finder, sshfs, amazon web services, ssh
When configuring Amazon Web Services, Elastic Beanstalk is a great option. At the same time, you don't want to pay an absurd amount for emails or HTTPS. In this tutorial, we find an affordable way to seamlessly forward emails and redirect users to your site.
April 14, 2016 - elastic beanstalk, amazon web services, custom domain, route 53, email forwarding
The Facebook SDK 4 documentation for PHP is vague and doesn't fully explain how to get started. With this tutorial you'll use the Facebook SDK and gain an understanding of how to get data you need. In the example we fetch the user's most recent photo.
July 8, 2014 - facebook sdk, php, tutorial, sdk 4, simple, example, permissions
So many websites fail to provide developers with APIs, and those that do sometimes neglect to update them. One of the ways to get the data that you need is by directly scraping the HTML files themselves. This is accomplished with PHP, cURL and the HTML DOM.
May 18, 2014 - web scraping, php, indexing, web harvesting, search spider, big data
There are plenty of ways to get the response from a server in PHP. If you want the flexibility of sending POST data and easy error reporting, cURL is the way to go. This method is especially useful when working with APIs or sending data to an external form.
Calendars are tricky. While you definitely need a robust calendar, an attractive design can leave a lasting impression on a user. With jQuery and the plugin Pretty Calendar, you can easily generate beautiful calendars in just a few logical lines of code.
While the most important design consideration is generally usability, it initially seems like it is too exhausting to maintain a solid elastic or fluid layout. With a few tricks and CSS rules, however, we can make the maintenance of elastic designs a piece of cake.
The most effective way of getting more likes is to post when your audience is active. This Chrome extension tracks how many of your Facebook friends are active and generates a graph of the results. You can easily see trends and time your posts accordingly.
April 5, 2014 - best time to post, facebook, what is the best time, most users active
Frequently we need to get data online in iOS development. When working with XML especially, it's often useful to have your own parsing algorithm. This post demonstrates how we can format online data in an iOS app, using the Lettuce app as an example.
The UITableView is fairly easy to use and customize through XCode. But sometimes more detailed customization is necessary for each cell. By implementing the UITableViewCell class we can make cells look exactly as we want them with Objective C.
Numbering lines and displaying code on your website can be tricky. With the help of CSS and a few JS libraries we can easily present inline or block code on a website. We use Prettify and jQuery to style our code and automatically escape HTML tags when necessary.
March 28, 2014 - jquery, pretty-print, pre tag, code
March 27, 2014 - php, proxy, fetch website, jquery fetch
Page 1 - 4
All code that is referenced or shown in this blog is covered under the MIT License unless otherwise stated.