Tag Archives: remove

How to Delete a YouTube Video CodeUnit 01 JUN 2012

Of course, the ability to delete videos that you uploaded is a must, and so, YouTube gives you the necessary tools to achieve this – though that said, I couldn’t figure it out the first time around, meaning a short trip to Google would have to solve it for me. And now that I know, I may as well record it here for future reference.

How to delete a YouTube video.

First, log in to YouTube and then click on your username in the upper right corner of any YouTube page. From the resulting drop-down menu, click on the Video Manager menu option. Identify the videos that you wish to delete from the list of videos, and mark the checkbox for each corresponding video to delete.

Now click on the Actions button at the top of the page and from this resulting drop-down menu, select Delete.

One confirmation screen later and you will be good to go, your YouTube footage now lost forever in the mists of abandoned digital pixels…


Joomla 1.5: Remove Copyright Info from the Bottom of the Page Footer Tips, Tricks and Tutorials 19 AUG 2010

Most Joomla sites, with or without snazzy templates applied, all carry a pretty standard Powered by Joomla! footer text.

Now while most people should be in favour of keeping this in, there are a lot of us out there who simply don’t want it spoiling our tight site design, and so digging around the web revealed the two simplest ways of removing this line of text from your website.

First, you could actually edit the core files of your Joomla 1.5 installation directly. To do this, go to the core files, navigating through core files >> Languages >> en-GB.mod_footer.ini.

Opening this file you will see the lines:

FOOTER_LINE1=Copyright © %date% %sitename%. All Rights Reserved.
FOOTER_LINE2=Joomla! is Free Software released under the GNU/GPL License.
THIS MODULE SHOWS THE JOOMLA! COPYRIGHT INFORMATION=This Module shows the Joomla! Copyright information

Simply change the data to what you would like to display and voila – you are done! :)

A second way is to modify your template file located at yourtemplate/index.php – scroll to the bottom, locate the lines below and change accordingly:

<a href="http://www.joomla.org">Joomla!</a> <a href="http://validator.w3.org/check/referer">XHTML</a>  <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>

And that is literally that. Nifty.

Ubuntu: Delete Files Older than a Certain Number of Days via the Terminal CodeUnit 10 AUG 2010

For example, let’s say you currently do non-incremental backups of your data on a daily business. If you don’t keep an eye on it, pretty soon your backup folder will run out of space and your system would come crashing down – so maybe it isn’t such a bad idea to run a cron in the background that deletes unnecessary files that are older than a specified number of days.

So how do we do this?

Well one solution is to make use of the powerful little find utility that comes with pretty much any variant of Linux. What this littly beauty does is offer you a whole lot of useful arguments, one of the most interesting being that of specifying a command to run on each file found!

Leveraging this functionality, we will first use the find command to locate our files older than a nuber of days and then use the rm command to delete them.

So how would the syntax for this look then?

find /path/to/files* -mtime +7 -exec rm {} ;

(Note the spaces between rm, {} and ;)

The first argument is the path to the files, it being either a path, directory or even a wildcard as indicated above. Full path is probably the safest though!

The second -mtime argument is used to specify the number of days old a file needs to be in order to qualify for the search. If you enter +7 like we have, then find will return all files older than 7 days.

Finally, the -exec attribute allows us to pass our command (like rm) to the find function and apply it against each of the located files. The {} ; at the end is simply a control sequence to terminate the command.