If you’ve been in web development for any amount of time, eventually you’ll run into the challenge of shortening the amount of text that is on your website. This will apply for certain areas on your pages and no matter what your software stack is, it seems like the first area to tackle truncating text is on the back-end. I would urge everyone to strongly reconsider not doing this server side because most of the time it is a client-side view’s concern and I’ll explain why…
CSS Z-Index Issue
Up until very recently my blog had a z-index issue where you couldn’t click on
my top banner to go back to the root. The canvas was at a higher z-index than
the hgroup
which holds my text bits of the banner image. I tried all kinds of
tricks to get it forward but nothing worked. A big thanks to
Dave from work for helping me with this
fix. It turns out this is the css I needed to make to get it going:
|
The position relative is the magic sauce in this incantation… not fully sure how; but this explains what I cannot: Z-Index Blog.
Jenkins Build With Tags
Today I learned how to set your build process to work off of git tags for builds versus commits into master.
Just a Ten Minute Fix…
At one point or another, we’ve all been there. You run across a seemingly small problem that can be fixed in a jiffy. Under the surface to your problem; however, lays a sinister set of traps to more problems. Just as you begin to solve one problem, your solution reveals more magnificent issues.
Vim Bindings in Bash
About a month ago I found out that you could configure inputs to work similar to that of Vim. This of course was a happy find and I would like to share what I did to get it as close to what I use.
To get it up and going if you don’t have an .inputrc
file you’ll need to make
one and add the following lines…
|
This enables vim bindings with bash, and others that use readline such as irb
.
When you are in insert
mode you will see a +
symbol at the far left side of
the screen and :
if you are in normal mode. I have added a bit extras for
myself, namely jj
as a binding for esc in insert mode:
|
One thing I would love to figure out but haven’t had success with yet is
modifying the visuals for when you are in insert mode versus normal mode. I
would love to change the color of my $PS2
to yellow or something like that
when I am in normal mode.
Restarting My Elixir Journey
Several years ago when I was still living in Austin I originally set out to learn Elixir. It’s infancy back then was annoying to say the least for me so I gave up on it at the time. While waiting for 1.0 to sink in I’ve learned up on Erlang, as that was one of the areas I felt I would need to know pretty solid anyway if I wanted to get back into Elixir with any serious intent later.
Here are the books I want to knock out and get running with:
- Programming Elixir: Functional |> Concurrent |> Pragmatic |> Fun
- Metaprogramming Elixir: Write Less Code, Get More Done
I hope by the end of this month I’ll have some serious headway so stay tuned for posts on what I learn as I revisit this language I’ve lost touch with!
Refilling Your Motivational Tank
It’s never fun, that feeling of getting to work and not being motivated to get started. The smallest tasks turn into feats of willpower and leave you more empty than before. How does one pick themselves up and break the cyclical feeling of defeat?
Multiple Returns With Ruby
I’ve been looking through a fair amount of code lately where the author has
elected to use return
with multiple values. For those who haven’t seen this
witchery, it looks something like this:
|
I am not a big fan of this and try to avoid it when I write code. To me it
hides what is really happening, which is the fact that an array is being
constructed that has heavy importance on the order of each value. It also
forces you to use the return
keyword, which I prefer not to have at all
when I can avoid it. (+10 for Erlang not having return
)
My Wife Is My Backbone
The last week or so has been a challenging time for me. The one thing I’ve always been able to rely on is my wife Cassandra. She is there supporting me when the world feels like too much to take on. I feel incredibly lucky to have her by my side; doing her best to keep patient during my moments of absent minded blundering.
Rails Precompile Failure With Bower Packages
I work with a team where we use bower packages in the
vendor/assets/javascripts
. Nothing to out of the ordinary, but to compile
them for production we use the following block in our config/application.rb
:
|
All was well with this up until a package was added that had a bower.json
file
in it. The package in our case was requirejs-plugins
. After adding this
package in, during an asset compile we were greated with the following error: