Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Blogs
User Name



New file name generator script/function, to avoid overwrites w/o user input

Posted 03-27-2016 at 07:11 PM by the dsc (linux-related notes)

Usage examples:

cp/mv/ln/etc file11.txt $(newname "/some/path/file11.txt")

cp/mv/ln/etc file11.txt $(newname "/some/path/whatever.txt")

If there's a file11.txt or whatever.txt already there, it will rename automatically to file11(1).txt or whatever(1).txt, and (N+1) from then on.

The whole path/name must be between quotes because of spaces and such things.

May be dangerous and somehow make you lose files...
Posted in Uncategorized
Views 425 Comments 0 the dsc is offline

Python & Gtk: virtualvenv (Test Post Ignore)

Posted 03-27-2016 at 02:30 PM by taupist
Updated 03-27-2016 at 02:34 PM by taupist

I'm thinking about writing a series of blog posts about my experience with Python and Gtk programming. For this post I'm going to get started by telling you how to set up a basic virtual environment for project development.
Okay, so if you don't already have a Projects directory, then you should create one in your Home folder. The path should look like this;
Next, you should open a terminal and navigate to that folder, and enter this command;
Posted in Uncategorized
Views 479 Comments 0 taupist is offline

Apparent bug with KDE/plasma file associations

Posted 03-27-2016 at 01:22 PM by the dsc (linux-related notes)
Updated 03-29-2016 at 05:40 PM by the dsc

At least in Ubuntu wily, it doesn't seem to allow you to chose the default application to open a file type. You try to do it, but it "magically" restores the previous default association before your eyes. Even if you chanced the config file, somehow. (I'm assuming it's mimeapps.lst, but I'm not sure. It seems that it's cool nowadays to have cryptic, hidden config files, avoiding to mention them unless strictly necessary, pretending it's all magic and config files don't exist)
Posted in Uncategorized
Views 521 Comments 0 the dsc is offline

Can you guess the game?

Posted 03-26-2016 at 07:08 PM by ardvark71
Updated 03-26-2016 at 07:14 PM by ardvark71

Hi everyone

The Lord has been directing me to an entry in another one of my devotionals* entitled "A High Calling" that has to do with the teachers we've had in our lives, the battle against ignorance that they wage, the lack of appreciation overall for their profession as opposed to others (in our society) and to give God thanks for those that have taught us and for "the lifelong value of their investment in you."

In my prayer time with God,...
LQ Veteran
Posted in Uncategorized
Views 585 Comments 0 ardvark71 is offline

So spring is here, really??

Posted 03-25-2016 at 01:26 PM by onebuck


Been home for three weeks today and spring is in the chilly air! Played some senior golf with other members on some warmer days. It's 40 F outside and a bit cold to be on the course.

I have been trying to get things ready for the season. I took my Cub into the shop for some warranty work. Turns out the shop said 'The trans-axle had to be replaced. To much work to just replace the seals and that the time spent would exceed the money earned from the Cub warranty.'...
Posted in Uncategorized
Views 635 Comments 5 onebuck is online now


All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration