<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; delete</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/delete/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Can&#8217;t delete file on external hard drive &#8211; Mac</title>
		<link>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/</link>
		<comments>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 02:04:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[exteranl hard drive]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=627</guid>
		<description><![CDATA[I ran out of space on my external hard drive so I selected some folder file and pressed command-delete on my keyboard. They files looked as if though they were deleted but I notice the available space did not budge. &#8230; <a href="http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[I ran out of space on my external hard drive so I selected some folder file and pressed command-delete on my keyboard. They files looked as if though they were deleted but I notice the available space did not budge. I knew right than it was time to whip out the terminal to force the hard drive in to submission.

1) Type these command into Terminal window. MAKE SURE TO replace "disk" with the name of your external drive. If you have a problem creating a path to your external hard drive, type "cd" than a space and drag the icon of your hard drive to the terminal window. A path will be filled in automatically.

<strong>Code:</strong>
<em>
cd /Volumes/disk</em>

2) Type out the remove command on then hidden trash directory.

<strong>Code:</strong>

<em>sudo rm -rf .Trashes</em>

3) It will ask you for your password. You will not see your password as you type for extra security. Once you are done,  press enter.

<strong>Code:</strong>

Password:

If you have a lot of files that needed deleting (ex: over 20GB) you may notice a dalyed response. If so, just keep an eye on the drive's avalible memory and you will notice a gradual increase of space right before your vary eyes.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/cant-delete-file-on-external-hard-drive-mac/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Remove last character from string</title>
		<link>http://newsourcemedia.com/blog/php-remove-last-character/</link>
		<comments>http://newsourcemedia.com/blog/php-remove-last-character/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 01:55:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String Manipulation]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[character]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[end]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[last]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[update.]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=515</guid>
		<description><![CDATA[Want to remove the last character from your text. Just use Substr_Replace. This is how. PHP's substr_replace replaces text within a portion of a string. In this case we only want to replace the last character with nothing. Here is &#8230; <a href="http://newsourcemedia.com/blog/php-remove-last-character/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Want to remove the last character from your text. Just use Substr_Replace. This is how.<span id="more-515"></span>

PHP's substr_replace replaces text within a portion of a string. In this case we only want to replace the last character with nothing. Here is the code sample:

<pre lang="php">$old_string = "My-Category-";
// remove the last hyphen from the string
$new_string = substr_replace($old_string,"",-1);
echo $new_string;
// should now read "My-Category"
</pre>
This should replace the last character of a string with nothing.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-remove-last-character/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Php Remove Non-Alphanumeric Characters</title>
		<link>http://newsourcemedia.com/blog/php-remove-non-alphanumeric-characters/</link>
		<comments>http://newsourcemedia.com/blog/php-remove-non-alphanumeric-characters/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[String Manipulation]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[non-alphanumeric]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[preg match]]></category>
		<category><![CDATA[strip]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2006/12/27/php-remove-non-alphanumeric-characters/</guid>
		<description><![CDATA[How to strip all symbols and numbers from a string of alphanumeric text. This php code will help you delete, remove, strip and erase any non-alphanumeric characters, and then return the data without the unwanted characters. Need help removing un-wanted &#8230; <a href="http://newsourcemedia.com/blog/php-remove-non-alphanumeric-characters/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to strip all symbols and numbers from a string  of alphanumeric text. This php code will help you delete, remove, strip and erase any non-alphanumeric characters, and then return the data without the unwanted characters.<span id="more-178"></span>

Need help removing un-wanted characters from your php text form strings. Here's how to  strip a string of all symbols and characters other than alphanumeric letters and numbers from your file or database. This code will delete any non-alphanumeric characters specified between the brackets, and then output/return the clean version.
<h2>The code</h2>
<code><span style="color: #000000;">
<span style="color: #0000bb;">&lt;?php</span></span></code>

$string <span style="color: #007700;">= </span><span style="color: #dd0000;">"Here! is some text, and numbers 12345, and symbols !£$%^&amp;"</span><span style="color: #007700;">;</span>

<span style="color: #0000bb;">$new_string </span><span style="color: #007700;">= </span><span style="color: #0000bb;">preg_replace</span><span style="color: #007700;">(</span><span style="color: #dd0000;">"//"</span><span style="color: #007700;">, </span><span style="color: #dd0000;">""</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$string</span><span style="color: #007700;">);</span>

echo <span style="color: #0000bb;">$new_string</span>

?&gt;

The code should return this:

<code><span style="color: #000000;"><span style="color: #969696;">Here is some text and numbers 12345 and symbols</span></span></code>

One more thing. If you don't like to keep the blank white space in your text just reformat the preg_replace by removing the "\s" whitespace character types. This is good for use with user names and passwords. The code would now look something like this:

<code> <span style="color: #000000;"><span style="color: #969696;">Hereissometextandnumbers12345andsymbols</span></span></code>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/php-remove-non-alphanumeric-characters/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Remove Underline-Links</title>
		<link>http://newsourcemedia.com/blog/remove-underline-links/</link>
		<comments>http://newsourcemedia.com/blog/remove-underline-links/#comments</comments>
		<pubDate>Wed, 27 Apr 2005 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[links.]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[underline link]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2005/04/26/remove-underline-links/</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/remove-underline-links/"><img title="Remove Underline-Links" src="http://ecx.images-amazon.com/images/I/41-bZNqD7KL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg" alt="Remove Underline-Links" width="200" height="200" /></a></span><br/>Here is a quick and easy way to remove underline-links in your html links. There are times when hyperlink-underlines can get in the way. One example is when there is an underscore "_" in your link address (usually an e-mail &#8230; <a href="http://newsourcemedia.com/blog/remove-underline-links/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/remove-underline-links/"><img title="Remove Underline-Links" src="http://ecx.images-amazon.com/images/I/41-bZNqD7KL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg" alt="Remove Underline-Links" width="200" height="200" /></a></span><br/>Here is a quick and easy way to remove underline-links in your html links.
<span id="more-258"></span>

There are times when hyperlink-underlines can get in the way. One example is when there is an underscore "_" in your link address (usually an e-mail address), the underline can block the view of this underscore. This will lead some viewers to believe your address contains a space and not an underscore.

Here is the code to fix this problem.

<strong>For One Link:</strong>

The code may look something like this:

<em>&lt;a href="http://www.newflashmedia.com"&gt;newflashmedia&lt;/a&gt;</em>

Typing in the blue code " <span style="color: #6699ff;"><em>style="text-decoration:none"</em></span> ", will remove the hyperlink underline:

<em>&lt;a href="http://www.newsourcemedia.com" <span style="color: #6699ff;">style="text-decoration:none"</span>&gt;newsourcemedia&lt;/a&gt;</em>

In order to affect other links repeat the process shown above.

<strong>For All Links </strong>

To affect all links in an html document, you can add CSS to the header as follows:

&lt;style type="text/css"&gt;
a {
text-decoration: none;
}
&lt;/style&gt;

That's it. Have fun.

If you have any questions, please search or post a question to the forum.You
also may want to check out the book below on web development using Macromedia

Here are a few Dreamweaver Book and Tutorials I highly recommend to help in developing html web pages:

<a href="http://www.amazon.com/gp/product/0321509854?ie=UTF8&amp;tag=newsourcemedi-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321509854"><strong>Adobe Dreamweaver CS3 Hands-On Training (Paperback)
$36.26</strong></a>

<a href="http://www.amazon.com/gp/product/0321509854?ie=UTF8&amp;tag=newsourcemedi-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=0321509854"><img src="http://ecx.images-amazon.com/images/I/41-bZNqD7KL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg" alt="" /></a><a href="http://www.amazon.com/gp/product/1596713313?ie=UTF8&amp;tag=newsourcemedi-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=1596713313"><strong></strong></a>

<a href="http://www.amazon.com/gp/product/1596713313?ie=UTF8&amp;tag=newsourcemedi-20&amp;linkCode=xm2&amp;camp=1789&amp;creativeASIN=1596713313"><strong>
Dreamweaver CS3 Essential Training (DVD-ROM)
$149.95
</strong>
<img src="http://ecx.images-amazon.com/images/I/41Ibf3HbMlL._SL500_AA240_.jpg" alt="" /></a>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/remove-underline-links/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Delete Warning</title>
		<link>http://newsourcemedia.com/blog/delete-warning/</link>
		<comments>http://newsourcemedia.com/blog/delete-warning/#comments</comments>
		<pubDate>Sat, 28 Feb 2004 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascripts]]></category>
		<category><![CDATA[Navagation]]></category>
		<category><![CDATA[administration.]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[buttom]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[copy and paste]]></category>
		<category><![CDATA[custom message]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2004/02/27/delete-warning/</guid>
		<description><![CDATA[Javascript that alert users when clicking on sensitive links (like delete or update links). You can customize the message with option to continue or cancel. Works great with PHP, ASP, and Perl administration sites. Introduction: This javascript registers an event &#8230; <a href="http://newsourcemedia.com/blog/delete-warning/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Javascript that alert users when clicking on sensitive links (like delete or update links). You can customize the message with option to continue or cancel. Works great with PHP, ASP, and Perl administration sites.
<span id="more-217"></span><span class="contitle">Introduction:</span>
<p class="content">This javascript                        registers an event handler to a link on a page. When users                        click a link, the code executes a pop-up alert window asks                        them to confirm that this is the link they wanted to click.                        This is perfect for server side programs that delete files                        on a server or modify data in a database. (<a href="http://newsourcemedia.com/Tutorials/JS-Warning Link2.php">View</a> the test page.)</p>
<p class="contitle">Source Code:</p>

<span class="sourceCODE">&lt;script&gt;
function confirmDelete(delUrl,name_cat) {
if (confirm("Are you sure you want to delete \nrow                        number \""   name_cat   "\"\nfrom the                        database")) {
document.location = delUrl;
}
}
&lt;/script&gt;</span>

<span class="sourceCODE">&lt;!-- now the html link --&gt;</span>

<span class="sourceCODE">&lt;a href="javascript:confirmDelete('yourpage.php?delete=293','293')"&gt;Delete&lt;/a&gt;</span>
<p class="contitle">Adding it to your site:</p>

There are just a few areas you will need to change to customize                        the code for your use. Number one is the message inside                        of the javascript event handler (<span class="sourceCODE">"Are                        you sure you want to delete \nrow number \""                          name_cat   "\"\nfrom the database"</span>).                        Notice I used (<span class="sourceCODE">\n</span>) for a new                        line and (<span class="sourceCODE">\"</span>) for quotes.                        You can delete them if you like. You can also delete or                        move around the (<span class="sourceCODE">"   name_cat                          "</span>) inside the message.

The second thing you will have to modify is the link values                        (<span class="sourceCODE">'yourpage.php?delete=293','293'</span>).                        Change the file name to your serverside program file path                        and change the id row numbers (<span class="sourceCODE">'293'</span>)                        to the id row number of your database rows.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/delete-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
