Categories
code diy

playing with colors

Today I decided I wanted to have a little “old school” fun, so instead of working on some WordPress theme/plugin, I went for the “lemme write some php from scratch” approach.

I was having a look at some color palettes for **I’m not gonna tell ya**, and it was quite hard for me to mix them together in my mind and decide which color goes where and how to use it, so after thinking about it for a while, I decided I’d narrow my options to 6 colors per palette, and in order to better visualize them, I wrote a small php page to help me.

It’s actually very simple, there’s a large preview where you can modify each color on the fly, and then you can send them to a fake page preview. that’s it.

I put it on github, just in case you want to give it a look.

Let me know what you think about it. Cheers 😉

Categories
blogging code diy WordPress

New WordPress plugin: danixland contact form

I even made a cool looking banner for the plugin’s page on WP.org

And here we are. Another WordPress plugin is coming to life.

This time I was looking for a simple contact form to use on a customer website, and after a little testing I decided it would have been much more interesting to build one myself so, after just a couple of weeks, my contact form is ready to hit the Plugin Directory on WordPress.org.

It’s actually waiting for review but if everything goes well it should be out in the wild in the next few hours.

Categories
blogging code

software development process

Categories
diy slackware

syncing sbopkg repository to local copy

I’m having a few problems with my nas and file permissions on a samba mount, I’m keeping a copy of the sbopkg repository for Slackware 14.1 on the nas and I have that as a samba shared folder mounted on my pc. Everything is working fine, except that the repository update fails because of rsync not being able to work owner/permissions out trough samba.

The problem could easily be solved if I had the opportunity to install sbopkg on my nas, but since that is not an option, I had to figure out how to update my repository in a different way.

What I did was simple, I’ve launched sbopkg -r in one screen tab, and ps axu | grep rsync in another tab, then I copied the rsync command and run it inside the shell on my nas, which has rsync installed. Easy as that is, now I can sync my local repository anytime I want.

To go one step further, I’ve added that same command as a cron job on the nas, and now my local repository is synced once a day at 5am without having to worry about it anymore. Isn’t that cool?!

Just as a reminder to myself, the full rsync command is:

rsync --archive --delete --no-owner --exclude=*.sbopkg --verbose --timeout=30 slackbuilds.org::slackbuilds/14.1/ /mnt/HD/HD_a2/sbopkg/repo/SBo/14.1/

Cheers.

Categories
nature

sunset in Siderno

my first video, an experiment with a GoPro Hero+ LCD and Kdenlive.

enjoy!

Categories
code diy fotografia

gify.sh – back to bash scripting

gif image created using gify.sh

Today I’ll present you a useful script that will help you create amazing gifs from your still photos using a couple tools from the IMAGEMAGIK suite, so without further ado, here it is, straight from github’s gists.

download in zip format

what the code does is quite simple, it takes a few arguments and helps you resize your images while keeping the original proportions. Put the code in your path and let’s put it to work.

Categories
blogging musica

my latest favourite playlist

Lately I found myself in need of some relaxing music while I’m working on my projects, and after browsing a few playlists on Spotify, I found this one wich is still working for me after weeks of continuous play. Impressive 🙂

so here you go, enjoy and let me know what you think about it..

Categories
life

life lesson #2

Most of what I really need to know about how to live, and what to
do, and how to be, I learned in kindergarten. Wisdom was not at the top
of the graduate school mountain, but there in the sandbox at nursery school.
These are the things I learned: Share everything. Play fair.
Don’t hit people. Put things back where you found them. Clean up your
own mess. Don’t take things that aren’t yours. Say you’re sorry when you
hurt someone. Wash your hands before you eat. Flush. Warm cookies and
cold milk are good for you. Live a balanced life. Learn some and think
some and draw and paint and sing and dance and play and work every day
some.
Take a nap every afternoon. When you go out into the world, watch
for traffic, hold hands, and stick together. Be aware of wonder. Remember
the little seed in the plastic cup. The roots go down and the plant goes
up and nobody really knows why, but we are all like that.
[…]
Think of what a better world it would be if we all — the whole
world — had cookies and milk about 3 o’clock every afternoon and then lay
down with our blankets for a nap. Or if we had a basic policy in our nation
and other nations to always put things back where we found them and cleaned
up our own messes. And it is still true, no matter how old you are, when
you go out into the world, it is best to hold hands and stick together.
— Robert Flughum

and one thing I learned a bit later, is to always keep fortune activated in your shell, you never know what gem you’ll read today…

Categories
code WordPress

I found out about asciinema + a new WP plugin

Yesterday I was looking at a website, and noticed they had some animated .gif going on showing some bash commands, so I started looking around for ways to record my shell while I use it, and that’s how I found out about asciinema.org,

Categories
life

life lesson

It’s always worth it starting from zero again, as long as you’re alive
— Pepe Mujica