Posts

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...

Why doesn't Amazon Cloudfront stream don't play for some videos?

Image
Today I am writing about a small issue I faced while working with Amazon CloudFront. I use this for streaming videos saved in Amazon S3. CloudFront gives me an rtmp url like rtmp://saqiu28r4l5ke.cloudfront.net/cfx/st and then my clip url becomes mp4:video.mp4 . This works completely fine with FlowPlayer I have used along with Flash RTMP Player that I use for a quick check. But  I was thinking of naming my video files with date and time so I changed the name to video-2013-07-29-12:39.mp4 . And eventually, Amazon CloudFront stopped streaming the video. The issue with such a filenaming was the ':' colon character. And I replaced that colon character with a period character, and the video stream worked fine again. So what I learnt from here that having colon in the filename of the file to be streamed will stop the stream. Its because it bring ambiguity for clip to stream as we have the streaming clip url as mp4: video.mp4. Having two colons causes this issue.  ...

Twitter Bootstrap updated from 2.3.2 to 3RC1 & available in CDNs

Image
Twitter Bootstrap has been updated from version 2.3.2 to version 3 now. Twitter Bootstrap version 3 RC1 is the latest version now. Now boostrap is available in a new home page. Its now available in a CDN hosted network to make loading faster.The CDN hosted files can be linked using the following lines. <link href= "//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" > <script src= "//netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/js/bootstrap.min.js" ></script> Its better to update your websites to the new CDN hosted latest files for faster loading. The older version is still available at  http://twitter.github.io/bootstrap/2.3.2/ . Key change in this new version is that " the version 2 was desktop browser first design." but now version 3 is mobile first design. That is developing with version 2 was to build for desktop and then ultimately for mobile devices. But the recent version 3 is mobile first design develo...