Posts

Showing posts from August, 2013

TinyMCE :clicking on icon downloads htm file

TinyMCE is a light weight elegant WYSIWYG editor. I have been using it very often, and its perfectly fine for my purpose. Yet sometimes, when I move a working copy of my website to some servers, then tinymce just breaks down. What happens is, when ever I want to use the visual editor, a htm file gets downloaded. Clicking on HTML icon, or any icons in the visual editor downloads a htm file. To solve this issue, I added the following lines to my .htaccess file in the root web directory. AddType application/x-httpd-php .html AddType application/x-httpd-php .htm AddType text/html .html .htm

Get the length of a video file using ffmpeg with php

Image
FFmpeg is complete, cross platform solution to record, convert, stream audio and video. It has the leading libavcodec library. The good part is its an open source software. Here in this post, I am sharing you a php snippet which will use FFmpeg to get the length of a video file. If you have not installed FFmpeg then you can download from  http://www.ffmpeg.org/download.html . This script should be easy to understand. It uses ffmpeg -i file.mp4  to extract the information of the video file and then uses regex to get the video length from the extracted information. The complete script is as follows:

Magestic SEO Newsletter system compromised

Image
Magestic SEO has been a great tool of all SEOs and webmasters. But their newsletter system has been compromised by a third party system and is possible that many emails and display names would have been compromised too. Here the email I got as it was sent by  security@majesticseo.com . We regret to inform you that a third party system that Majestic has used to manage newsletters was recently compromised. We believe that your Email address and possibly your Majestic display name were on this systems database. No other personal data, passwords or card details were compromised, but we would ask you to be wary of phishing emails using your display name. You can change your display name at https://www.majesticseo.com/ ac count/my-details If you have forgotten your password, you can generate a new one from our site at  https://www.MajesticSEO.com  . We have outlined the extent of the breach at http://blog.majesticseo.com/ ge neral/security/  with further securi...

Google Chrome Frame is retiring

Image
Google Chrome Frame is a plugin for Internet Explorer. This plugin enables IE browsers to use the features of open web HTML5 apps. This plugin enables IE with Chrome Browser capabilities in terms of rendering. And It was just today, I used Google Chrome Frame and then I found this blog  http://blog.chromium.org/2013/06/retiring-chrome-frame.html  . Though I did not have much a time with Google Chrome Frame, this one single trick saved alot of my time. <meta http-equiv =" x-ua-compatible " content =" IE=Edge,chrome=1 ">  This particular line made my website/webapp to be rendered using chrome frame. Thus I didn't have to worry about IE. As IE was now being treated as Chrome browser. It's really a great plugin for web developers who have to build websites/webapps for users using IE too. This plugin is retiring in January 2014. In the meantime you can test this plugin if you want. It will not be available for download after January 2014 and won'...

Content Delivery Networks [ CDN ]

Image
Content Delivery Networks [ CDN ]are high performance network for files and video distributions which operate as an application service provider. It is a efficient and economical way to increase the scale, reach and performance of a startup or company. The CDN's can be used to serve static files, dynamic files and stream video files too. Operation of Content Delivery Networks: The files we want to serve using CDN's are stored in various CDN servers by replicating the files in different geographical areas where the CDN has its data centers. The CDN data servers are around the world. For any request to a served file to a CDN, the request is routed to the nearest edge location of CDN available from the visitor. And thus the files from the nearest server is sent to the visitor. This increases the performance and speed. Where to use: CDN's are used to : serve download files at a high speed stream media files e.g. video on demand serving static and dynamic fil...