LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Replace trash-cli with kioclient move $@ trash:/ for cross-partition trashing

Posted 03-27-2016 at 09:17 PM by the dsc (linux-related notes)
Tags trash

However arguable, some people want to trash by moving into another partition's trash folders. The linux/unix/whatever trash specifications theoretically prohibit that, but KDE's implementation doesn't. So a linked or bind-mounted trash into a different partition will behave normally, except it will move the file across, obviously.

If you also use trash-cli, which won't work with such hacks, it can be replaced with the kioclient command, that in turn can be scripted or perhaps even...
Member
Posted in Uncategorized
Views 68 Comments 0 the dsc is offline
Old

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...
Member
Posted in Uncategorized
Views 94 Comments 0 the dsc is offline
Old

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;
Code:
/home/your_username/Projects/
Next, you should open a terminal and navigate to that folder, and enter this command;
Code:
virtualenv
...
Member
Posted in Uncategorized
Views 174 Comments 0 taupist is offline
Old

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)
...
Member
Posted in Uncategorized
Views 90 Comments 0 the dsc is offline
Old

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,...
Senior Member
Posted in Uncategorized
Views 136 Comments 0 ardvark71 is online now

  



All times are GMT -5. The time now is 04:56 PM.

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