Today i had to program a little script, in perl, and had to manipulate some dates. To convert the AM/PM part i used this previously written function (here).
But then i need to do some delta operation on the dates, for whom i new packages like Date::Calc.
The surprise was that i couldn't install new packages in the server, it is a remote server and the less problems one causes, the better... because the server is shared, there was no gcc, bla, bla..
I found this package:
use Date::Manip;
Which seems to be included with Perl. I couldn't confirm it but it saved the day, here is an example:
my $ffin = &DateCalc("$startdate", "+8 days", \$err);
my ($y, $m, $d) = $ffin =~ m/([0-9]{4})([0-9]{2})([0-9]{2}).*/g;
More about it:
http://snowhare.com/utilities/perldoc2tree/example/Date/Manip.html
[SOLVED] Docky issue in Mint/Ubuntu: How to enable compositing?
Having a docky / Avant window navigator (AWN) gives a cool look to the desktop. From the day I started using Linux, I have always preferred to have a docky. My desktop with the AWN docky helps me to access all the common programs I need at one place, plus CPU user in the dock tells me how much CPU I am using at any point in time. Auto-hide feature doesn't shrink my desktop as well.
All in
Review: Linux Mint 13 "Maya" with Mate 1.2 desktop and Gnome 2
On 16th May, 2012, Clement Lefebvre has announced the availability of the release candidate for Linux Mint 13 - in MATE and Cinnamon flavours: "The team is proud to announce the release of Linux Mint 13 RC 'Maya'. Available in two editions, Linux Mint 13 features the choice between a productive, stable and mature MATE 1.2 desktop and the brand new, modern-looking and exciting Cinnamon 1.4. These
Review: BackBox linux 2.05 - the ethical hacking tool
From distrowatch I found about this Ubuntu derivative and a little bit of research actually tempted me to download and test the distro. I know it won't be a fair review from my side as I am no where even close to ethical hacking business. But, it may interest the readers of this blog - hence, a review.
Look and feel-wise, it is similar to Xubuntu, as both share the XFCE window manager.
You can have Ubuntu, Xubuntu, Kubuntu and Lubuntu all in the same computer
Human nature seeks variety. Ubuntu may be the most fascinating of the 4 variants but I like Xubuntu, Kubuntu and Lubuntu as well - for different reasons. However, if you have installed one, you won't be able to install other overwriting the older one. And a new installation means tons of downloads (Ubuntu first update downloads about 300-400 mb every time) and reinstallation of your favorite
[SOLVED] Problem of Logitech webcams and Ubuntu 12.04 LTS
In my PC, Ubuntu 12.04 LTS, primarily the Cheese app, was unable to recognize the Logitech webcam attached. In Ubuntu Natty, Cheese worked without any fuss with the same webcam.
However, I found another app which recognizes the Logitech webcam without any problem and manipulation. The app is Guvcview, it captures photos and videos from the webcam and has a very high rating the Ubuntu Software
Subscribe to:
Posts (Atom)