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!
One of the web components I've always loved has been Facebook's modal dialog. This "lightbox" isn't like others: no dark overlay, no obnoxious animating to size, and it doesn't try to do "too much." With Facebook's dialog in mind, I've created LightFace: a Facebook lightbox...
attachEvent. Times have changed but there are still a few functions each developer should...
Theming has become a big part of the Web 2.0 revolution. Luckily, so too has a higher regard for semantics and CSS standards. If you build your pages using good XHTML code, changing a CSS file can make your website look completely different.
Modern browsers are nice in that they allow you to style some odd properties. Heck, one of the most popular posts on this blog is HTML5 Placeholder Styling with CSS, a tiny but useful task. Did you know you can also restyle the textarea resizer in WebKit...