Fix Bash Error in Docker
I really enjoy working with Docker because it gives me more insight into creating and maintaining your own environments, mostly from scratch. I instantly gained a greater appreciation for Ops engineers, package creators, and other engineers who work on low level software. I think what I'm trying to say is that I've made a whole bunch of mistakes and completed an insane amount of Google searches for help.
One of the more basic errors I've recently encountered was trying to run a bash script within the container, only to get the following error:
env: can't execute 'bash': No such file or directory. I was under the impression that bash was always a given in Linux machines, but apparently not in
alpine images. The fix was adding the following to my
RUN apk update && apk add bash
Or if you're in the machine, just run:
apk update && apk add bash
That command installs bash and your bash scripts should then work!
It's no secret that Facebook has become a major traffic driver for all types of websites. Nowadays even large corporations steer consumers toward their Facebook pages instead of the corporate websites directly. And of course there are Facebook "Like" and "Recommend" widgets on every website. One...
Since we've already figured out how to create TinyURL URLs remotely using PHP, we may as well create a small AJAX-enabled tiny URL creator. Using MooTools to do so is almost too easy.
The XHTML (Form)
We need an input box where the user will enter...
Overflow with text is always a big issue, especially in a programmatic environment. There's always only so much space but variable content to add into that space. I was recently working on a table for displaying user information and noticed that longer strings were...