Just a quick tip in case you’re not using a major desktop environment like KDE. I’m using LXQT at the moment and as a screensaver it uses xscreensaver. It has no default shortcut to lock the screen, so I looked around a little bit and I found this command:
which will fire up the screensaver locking the screen.
to set it up just open the lxqt settings and add a new global shortcut (mine is Win + L) and save. That’s it, now everytime you need to lock your screen just hit the shortcut and voilà..
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 ;)
The software development process
i can’t fix this
*crisis of confidence* *questions career* *questions life*
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:
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.
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.
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…
all our dreams can come true if we have the courage to pursue them
The heart has its reasons of which reason knows nothing.