Posts

How to record video and upload to Youtube from your website

Image
This is the simplest method of using Youtube Widget in your website or blog. To upload vidoes to youtube. The code is as follows: <div id="widget" style="width:355px;"></div> <script>       var tag = document.createElement('script');       tag.src = "https://www.youtube.com/iframe_api";       var firstScriptTag = document.getElementsByTagName('script')[0];       firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);       var widget;       var player;       function onYouTubeIframeAPIReady() {         widget = new YT.UploadWidget('widget', {           width: 500,           events: {             'onUploadSuccess': onUploadSuccess,             'onProcessingComplete': onProcessingComplete           }   ...

How to install nodeJS in linux from source

Image
Since you are reading this post : 'How to install nodeJS in linux from source', my assumption is you are a linux user. and want to do some cool stuffs with nodeJS but you wonder how to start, how to install nodeJS. First thing to do is download nodejs source files from http://nodejs.org/dist/v0.10.9/node-v0.10.9.tar.gz  . This is the latest version of nodeJS available while writing this post. Also from command line you can do this:  wget http://nodejs.org/dist/v0.10.9/node-v0.10.9.tar.gz  Ok, now that we have downloaded nodeJS, we will extract the files, from console run the following command and go to the directory where the files are extracted as follows: tar -xvzf node-v0.10.9.tar.gz cd node-v0.10.9/ Now that we have extracted all files, make sure you have all the development tools installed. If not for fedora /centos/redhat users : sudo yum groupinstall 'Development Tools' Once the development tools are installed now, run the following commands: ./co...

Domain Name Resolution with Amazon's Route 53

Image
Domain Name Service of Amazon Web Services is know as Amazon Route 53. Its a great service to manage, domain names and load balancing on multiple servers. In this post, I am going how you can configure Route 53, so that your domain points to the EC2 instance you own. First of all you need to own a domain and have account on Amazon Web Services. Once you have these get ready to go for the configuration. Its not that hard to configure, but if you don't get it then you won't be able to have your domain resolved to your EC2 instance.  First thing you need to do is open you Amazon Console and go to Route 53 Services. There you can create a hosted zone. And you'll get about 4 name server details, that you need to update in your domain registrar.The hosted zone should have your domain as example.com. And now click on the hosted zone and create record sets. First record set should be an A record. For this name should be example.com and value should be the ip of your EC2 in...

GitHub introduces sudo mode

Image
GitHub, the Social Coding Web Platform is introducing a new concept. Its taken from the *nix systems: Unix /Linux. In the *nix systems, to avoid haphazard actions leading to cause there is a mode called sudo mode. In this mode, to makes changes or for any operation that can cause severe results, the systems asks for password before execution. This way many possible hazards are reduced. The very same concept is being introduced by GitHub for more security. Thus GitHub will be requiring to enter password for some actions that have severe effect. For example to list some of the activities that will require password are: Adding public keys Adding email address This is definitely a good step of GitHub. Yes, of course, it is not going to ask for password continuously for all the actions so that won't be bothering. 

Successful 10 years of WordPress

Image
WordPress is a very popular open source content management system. Not just a content management system but some also say it to be a PHP framework for web development. What ever, WordPress is very popular in the PHP community for developing simple blogging sites to enterprise and high scale e-commerce solutions. The great number of available plugins and themes make it a good choice for developers. WordPress was developed by    Matt Mullenweg  and  Mike Little  on 27th May of 2003. And now it is 10 years old already. It has a download of 21 million times. And the latest release till date is WordPress 3.5.1 downloadable from  http://wordpress.org/download/  . WordPress is in about 66 million websites to the date. The number is growing everyday. Its in 120 languages. WordPress communities around the world celebrate 27th May as WordPress Anniversary. This year it was the 10th Anniversary.

Google shutting down its services

Image
The giant Google has been doing upgrades and updates in many of its field. Its also retiring some of its services. This year on Google I/O, Google turned out to be enhancing most of its services for Android, Web, Music, Gaming, Google+ and more. But yes it is also discontinuing some of its services. Google one of the discontinued service is Google Checkout. Google Checkout has is going to be completely disabled now. The last date of Google Checkout would be November of this year. However, Google is enhancing it as Google Wallet. Though Google Checkout is discontinued, Google wallet is going to be more enhanced. So if you are using Google Checkout then you should think of it soon. Another discontinued service of Google is Google Buzz. Its going to be completely discontinued by Google. The existing contents will remain. But no new contents can be added now in Google Buzz. Its a farewell to Buzz. 

Date Converter - AD to BS and BS to AD

Image
Here in this post, we are going to learn to use a very useful PHP library for date Conversions . You can download the library from http://adf.ly/PXdXQ  . The file contains the library file nepali_calendar.php and an example file ' example.php ' zipped in. This library can be used for conversion of dates in AD to BS and vice-verse. Besides date conversion there are a few helper functions too like checking leap year, getting name of the month, getting day of the week and so on. However, the library has limitations. The limitation is on the range of date that can be converted. For AD to BS conversion the range is 1944 to 2022 and for BS to AD it is 2000 to 2089. You can also extend this library for yourself. A simple usage of the library is: <?php include 'nepali_calendar.php'; $cal=new Nepali_Calendar(); print_r($cal->eng_to_nep('2013','09','04')); //for ad to bs conversion print_r($cal->nep_to_eng('2070,'02','10'));//...