Recently, I am finding a good solution to protect the uploaded media files against non authorized downloading. I am especially concerned about downloading media file direct access through browser and hotlink prevention. The uploaded media files (mp3 files) stored in 'media' directory under document root in my server.


Observations:

To prevent hotlink prevention and downloading media files direct access through browser can be controlled using .htaccess file under the 'media' directory. That is,

(a) The user cannot download the media files directly from the browser like http://www.domain.com/media/mj_heal_the_world.mp3

(b) The prevention of bandwidth theft or "hotlink" (direct linking to a web site's files)

-> . htaccess
<FilesMatch "\.(mp3|MP3)$">
order deny,allow
deny from all
</FilesMatch>
The above code worked well for prevention of hotlink and restriction of downloading media file directly from the browser. But the following functionalities were not working due to the above code implementation.

(a) The embed player does not play mp3 files

(b) The flash player does not play mp3 files.

(c) The authenticated users not able to download the mp3 files

Please note that my website have both embed player and flash player for playing mp3 files. Since the both player source code pointed to the actual mp3 files location and due to above .htaccess code the player failed to play the appropriate mp3 files.

How to avoid conflict (as explained above) and make sure the player functions and keep up the .htaccess? - Here I have given a solution for embed player.

Initially, the embed code looks like below:

-> embed.php
<?php
<embed src=
"http://www.domain.com/media/mj_heal_the_world.mp3">
?>
The above embed player does not work due to above explained .htaccess code implementation. Now this HTML code should be changed in to little bit and pointed to a intermediate PHP script that would get the filename as a parameter and then read the file content immediately. This solution is another way of serving content to the user.

Finally the embed.php code should be:

-> embed.php

<?php
<embed src="http://www.domain.com/play.php?filename=mj_heal_the_world.mp3">
?>

-> play.php

<?php
# get file name
$fileName = $_GET['filename']
# assemble file path
$file = '/var/www/domain.com/public_html/media/'.$fileName;
$fileSize=filesize($file);

header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
header("Content-Type: audio/mpeg");
header("Content-Disposition: attachment; filename=\"" . $fileName . "\"");
header("Content-Length: " . $fileSize);
readfile ($file);
?>
Now the embed player would be working without any trouble. Similarly, you can able make sure the required tweaks for flash player and downloading media files to the authenticated users.

Mostly I don't have enough time to read when I see/browse any nice & interesting news, technical tips & review, blog etc during office hours due to busy schedule. At that time, I thought about any tool that converting web page in to PDF and save locally. Later it would be helpful for me to read saved web page with more attention in offline mode.

Why can’t save web page as HTML? Why PDF conversion Firefox add-ons?

Of course, we have the option called "Save page as" from the web browser menu and save the pages in to HTML format. But it would be always not comfortable and annoying to read web pages in offline mode. Since the saved page source rely on the external site references especially when you talking about the loading images and advertisements in the browser. As a result, when you open saved page, the loading of page would be very slow, getting lot of broken images/ads banners and content presentation getting affected.

The converting web page in to PDF option is very smart and easy to view web page as it is and then save, share, print or archive them. Control PDF files in Firefox. Stop crashes and get the upper hand on Web-based PDF files by automating and controlling how your Firefox or Flock browsers deal with them.

How to convert web pages in to PDF?

The converting web page in to PDF is very easy. There are two Firefox add-ons available. Just check it out the below URLs and install it.



PDF Download

After installing PDF download Firefox add-ons & restart Firefox browser, open your favorite URL on your browser and do mouse right click button in any section of the page, then you would be getting properties window and have the menu called “Save Page As PDF...”. Using this menu, you can easily convert your favorite web page in to PDF format. Also you can control over the various great options/preferences available for this add-ons. Look at the below screen shots.





PDFIT

After installing PDFIT Firefox add-ons & restart Firefox browser, open your favorite URL on your browser and do mouse right click button in any section of the page, then you would be getting properties window and have the menu called “Pdf It!”. Using this menu, you can easily convert your favorite web page in to PDF or image file. Also you can control over the various great options/preferences available for this add-ons.



PDF Download Features

(a) Convert web page in to PDF. The conversion may take couple of minutes.
(b) Convert your PDF in to HTML format.
(c) The PDF output settings can be configurable.
(d) Either you can save the page as PDF or email to specified email address.



PDFIT Features

(a) Convert web page in to PDF or Image file. Additionally you can save either partial visible area or whole page.
(b) There are many image generation preferences that you can control it.
(c) When you save the PDF, you can able to control (such as the page size & split PDF pages settings) how the PDF should be stored locally.





Observations:

The both add-ons are mainly focusing on converting web page in to PDF format. However I wanted to show there is one main difference that I have observed. That is, during the conversion of PDF format - "PDF download" convert the web page as it is. But "PDFIT" conversion looks like, converting web page in to image and then finally PDF format. As a result, if any source links (href) in the web page would be disabled and can't be seen any href link in the "PDFIT" add-ons.

The below screen shot that involving PDF conversion using "pdf download" add-ons and you can able to see source href links.



The below screen shot that involving PDF conversion using "pdfif" add-ons and you can't able to see any source href links.



I personally think that "PDF download" is absolutely the best add-ons for converting web page in to PDF format. I have been using this add-ons since the PDF conversion process works as it as in the web page and easy as well.

URL shorteners, such as bit.ly (bit.ly) and tinyurl, are services that help take longer URLs (which can be over a hundred characters long) and transform them into manageable links that almost never exceed 20 characters.

You can simply fit more links and content in less space with URL shorteners. A tweet can describe and then link to a webpage in under 140 characters, while a full URL might not even come with an explanation.

Even more important is the rise of mobile smartphones, texting, and mobile Internet – it’s far easier to text in a short URL than a long one. As Twitter, social media, and mobile Internet become more popular, the need to make sharing web content easier will increase. Shorter URLs are becoming more and more integral to that cause.

Magento is a feature-rich eCommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their eCommerce store. Magento’s intuitive administration interface features powerful marketing, search engine optimization and catalog-management tools to give merchants the power to create sites that are tailored to their unique business needs. Designed to be completely scalable and backed by Varien's support network, Magento offers companies the ultimate eCommerce solution.

The Magento Community Edition is available as a free download under the open source OSL 3.0 license.

Features List: http://www.magentocommerce.com/product/features

A demo is available at http://www.magentocommerce.com/demo

Google SMS Channels is a service that enables channels/groups on SMS. It's a free service that enables you to get premium content published by Google publishing partners, Google popular products (Google News, Blogger and Google Groups) and websites with RSS/Atom support for free. SMS Channels allows you to create your own channel(s) to publish content that other users can subscribe to. You can also create groups over SMS to communicate with your friends, family, and co-workers.

This service is currently available to users in India and requires an Indian mobile number.

Knowlege Base: Learn more about Google SMS Channels

For subscribers - http://labs.google.co.in/smschannels/help#subscribe

For channel owners - http://labs.google.co.in/smschannels/help#create_channel

Do you want to subscribe SMS alert for this site: geekswami.blogspot.com

popuri.us is web site is used to check the popularity of your blog/web site.

A tool to check at-a-glance the link popularity of any site based on its ranking (Google Page Rank, Alexa Rank, Technorati etc.), social bookmarks (del.icio.us, etc), subscribers (Bloglines, etc) and more! Remember that a domain with the "www."

prefix will show different results than the same domain without it. You should try both.

Factors Considered here are

* Google Page rank
* Alexa Rank
* Compete Rank
* Google Back links
* Yahoo Back links
* MSN Back links
* Technorati Links
* Delicious Bookmarks
* Bloglines Subscribers

Ring2Skype is a new free service that allows you to receive phone calls on your Skype from the phone network! Once you sign up, you will get a phone number and a private extension. All calls to your extension ring at your Skype. That’s it. SIMPLE, RELIABLE AND FREE.

Also you can configure various private extensions through control panel easily after creating an account with Ring2Skype.

Mozilla has today announced a directory, appropriately called the Open Web Tools Directory, specifically for those freely available tools used by web developers across the web.

There are an immense number of tools that have been created to help web developers. Unfortunately, you might never know this; there’s no central index of these tools. It turns out that keeping up with all the development in this space is really difficult–even for folks like us who have been tracking it every day for years.

We aware that a number of tools are missing, you can make a start by adding any tools immediately via a form that can be found here.

You can use the subversion dump and load commands to perform simple backups and restores of your repository.

To back up a subversion repository, issue the following command:

svnadmin dump /usr/local/MyRepository > /home/charlie/svnBackupFile

Here you pass the dump command to the svnadmin utility. As a parameter, you pass in the name of the repository you want to backup. I then redirect that backup to a file.

To restore the repository from the dump file, you should first create a new repository to hold the data you want to restore:

svnadmin create /home/charlie/foo/bat

To restore the data, enter this command:

svnadmin load /home/charlie/foo/bar < /home/charlie/svnBackupFile

When the repository is restored, you can use the standard command line commands to check files out from it:

svn --username MyName --password MyPassword co svn://home/charlie/foo/bar/CodeFez

How do I change/set the nick name?
/nick {nickname}
Example: /nick sriram

How do I register my nick name and email address?
/nick {nickname}
/NickServ REGISTER {password}
/NickServ set email {email address}

Example:
/nick sriram
/NickServ REGISTER foo
/NickServ set email foo@foo.com

How to Identification to the server
/NickServ IDENTIFY {password}

How do I connect the server?
/server {servername}
Example: /server irc.gnu.org

How do I join the Channel?
/join #{channel name}
Example: /join #chatterbox

How can I receive private messages from unregistered users?
/msg nickserv set unfiltered on

How to manually killing your registrated nickname in case of take-over or Connection Lost?
/nickserv RECOVER Nickname NicknamePassword
OR
/nickserv RELEASE Nickname NicknamePassword

How to set the auto OP status to the nickname?
/cs OP #channelname ADD nickname
Example: /cs OP #techtalks ADD srirams

How to setup the cron job if the script needs to be run with http protocol?

Example 1:

If you don't care much about the web page output, then
30 3 * * * /usr/bin/lynx --dump http://www.domain.com/script.php

Example 2:

Some time your script required authentication. If so, then it should be like the below entry in the cron job.

0 1 * * * /usr/bin/lynx -dump -cookies=on -auth=scott:tiger > /dev/null http://www.domain.com/script.php

GoView made screen recordings easy. You can start recording your computer’s screen and audio with just two clicks. Then instantly share your recording online. It's quick. It's easy. And it's free!

An excellent short film. Don't miss it.



Sometime we feel bit pain when the client complaint about the various browser compatibility, different versions and platforms. Practically it is very difficult to testing different browser version and platforms. To be resolving this scenario, browsershots can help you. It makes screen shots of your web design in different browsers. It is a free open-source online service.

When you submit your web address, it will be added to the job queue. A number of distributed computers will open your website in their browser. Then they will make screen shots and upload them to the central server of browsershots

Don't miss it. Technology is Amazing. Really a brilliant job by MIT student Pranav. Doesn't really matter that it works completely and at this point a great prototype.



In Linux, when your entire system freezes, there are plenty of safe ways to exit and get back on track immediately. Alt + SysRq + will do the magic trick. Note: 'SysRq' key is equivalent to the 'Print Screen' key.

Alt + SysR + K
Kill all processes (including X), which are running on the currently active virtual console.

Alt + SysRq + E
Send the TERM signal to all running processes except init, asking them to exit.

Alt + SysRq + I
Send the KILL signal to all running processes except init.

Alt + SysRq + L
Send the KILL signal to all processes, including init.

Alt + SysRq + S
Run an emergency sync (cache write) on all mounted filesystems. This can prevent data loss.

Alt + SysRq + U
Remount all mounted filesystems as read-only. This has the same effect as the sync combination above, but with one important benefit: if the operation is successful, fsck won't have to check all filesystems after a computer hardware reset.

Alt + SysRq + R
Turn off keyboard raw mode. This can be useful when your X session hangs. After issueing this command you may be able to use .

Alt + SysRq + B
Reboot immediately without syncing or unmounting your disks. Using this, you will likely end up with filesystem errors, so this is not highly recommended.

Alt + SysRq + O
Shut the system off right away.

If all these ‘Alt + SysRq’ keyboard combo are hard to remember, you can press Alt + SysRq + H to display a helpful list of the shortcuts above.

Minify is a PHP5 app that can combine multiple CSS or Javascript files, compress their contents (i.e. removal of unnecessary whitespace/comments), and serve the results with HTTP encoding (gzip/deflate) and headers that allow optimal client-side caching.

Minify is distributed under the New BSD License, which means that you’re free to use, modify, and redistribute Minify or derivative works thereof, even for commercial purposes, as long as you comply with a few simple requirements. See the License file for details.

This plug-in was inspired by the extJS border-layout, and recreates that functionality as a jQuery plug-in. The UI.Layout plug-in can create any UI look you want - from simple headers or sidebars, to a complex application with toolbars, menus, help-panels, status bars, sub-forms, etc.

Links : Home | Demos

Many hands, many hearts and many minds generally contribute to anyone's notable achievement. Never doubt that a small group of thoughtful people can change the world.


"Talent wins games, but teamwork and intelligence wins championships."
-- Michael Jordan

"Teamwork is the ability to work together toward a common vision. It is the fuel that allows common people to attain uncommon results."
-- Andrew Carnegie

"It is amazing what can be accomplished when nobody cares about who gets the credit."
-- Robert Yates

"The way a team plays as a whole determines its success. You may have the greatest bunch of individual stars in the world, but if they don't play together, the club won't be worth a dime."
-- Babe Ruth