Installing New Comodo Positive SSL Certificate on Apache and OpenSSL on Centos, Fedora and RedHat

Hello, I had to buy a certificate and install it on my new server I was issued with a new certificate by Comodo under Comodo Positive SSL. To start with I think it doesn't matter which certificate you choose, end of the day they all follow pretty much same standards and the only thing that make a certificate expensive is a company or issuing authority such as thwate (expensive). I personally always choose a cheapest certificate on market. Anyway with latest certificate I received 4 files in an archive as shown below You could just install a certificate by adding [crayon-5417e51af2179426923098/] and it will work on some browsers but you would need intermediate cert as well. Here is what always gets me. With latest PositiveSSL They give us 3 files which we need to combine and feed it to [crayon-5417e51af218b399905069/] So to do that you will run this command [crayon-5417e51af2196996759799/] Considering that all you files are under /home/crt/2014 folder our final VirtualHost confg will look like this   [crayon-5417e51af21a1737886395/] Once you made above change, don't forget to restart your apache service generally located as /etc/init.d/httpd restart on Centos and Red Hat OS If you have any comment or would like to point out any error please leave your comments. … [Read more...]

Rackspace Cloud FIles Bulk Delete objects prefixed/* wildcard php sdk

Hi Guys   Rackspace cloud files is an awesome file storage system, We upload a file and can make it publicly available through their CDN. While I use Cloud files in pretty much all my projects at work or personal stuff, one thing that I did today was to delete objects with specific prefix e.g. Lets say I have these objects under container "jcorg" hello hello1 hello2 anothervaluableobject and I want to delete all objects whose name starts with hello Here is a code snippet that will be handy for you Language: PHP API link: and of course you can use equivalent code in other language SDKs too     Code Snippet [crayon-5417e51af3741124200695/] Let me give you a brief overview to you First we are creating a connection to Rackspace server, depending on which region you are in you will use either RACKSPACE_US or RACKSPACE_UK to authenticate your request. [crayon-5417e51af3752141475408/] Then we are connection to our object store [crayon-5417e51af375d889333828/] Then we are getting hold of object list where name or an object starts with "hello" [crayon-5417e51af3768824346980/] Finally we are iterating on objects found and deleting them. You can check object name here to just to filter them out before you process them for deletion [crayon-5417e51af3773278381354/] I hope this makes sense, but just in case if you have a question, do leave your comment.     … [Read more...]

How to make xml_split, xml_merge, xml_pp, xml_grep, xml_spellcheck under XML-Twig tools work on Windows

Large XML files could sometimes lead to overall slowness of your program. Thus it makes sense to sometimes split them to rearrange contents within to optimize querying your XML files. This post will touch base on how to split a large XML file on windows OS and I will use a cool tool written by Michel Rodriguez. XML-twig is presumably an open source library that works on large XML files. Notable tools includes XML Grep XML merge XML pretty printer XML spell check XML split Our focus is to build this library on windows so that we can use it from windows command prompt Download XML-Twig Get this library from cpan websites. Here is the URL Download the XML-Twig-3.48.tar.gz file and extract it under c:\devtools Here is a screenshot of what it looks like on my machine   Lets leave it there for the time being and install prerequisites Pre-requisites There are a couple of pre requisites that you will want to install. Perl. As this library is written in perl so you would want to install Perl on your system. ActiveState perl is something that I sometimes use and is a good option by far on Windows computers. Download for your processor arch 32 bit or 64 bit from the URL below I installed it under c:\perl64 Visual studio Express 2010 for tool called "nmake" I've got Visual studio 2012 but you can get an express edition of "Express 2013 for Windows Desktop" from URL below Now that perl is available from command prompt You may also want to run this command ppm install MinGW64 Above will install dmake as a perl module too just in case if you want to use that. But in this article I will use name.   That's it for the pre requisites and I hope that you would have installed both of the above so that we can move on to next … [Read more...]

Google MarkerClusterer Handling Multiple Markers On Same Geo Location

When you are dealing with addresses on Google Maps there are times when you have multiple addresses for a same location. For example if you live in a building with 200+ apartments, building address remains the same but you also add apartment number to your address to precisely locate you. Here are couple of address examples 1/991 Buleen Road 2/991 Buleen Road From the example above its clear that 991 buleen road is building address, 1 and 2 are apartment numbers. I would just use InfoWindow to go with MarkerCluster to show details of multiple points. Lets check out the code below   [crayon-5417e51b008b1646862192/] And that's pretty much it. Here is a working example of above code Two things to remember while doing above code You have to instantiate MarkerClustere [crayon-5417e51b008ca713294875/] While creating Markers, you can add any custom property to your marker, or hell of an amount of data, so when you create your info window, you have that data available. Also you can have a look at another way of handling it I hope this helps or at least gives you a pointer what you should be doing for multiple markers for same location. Cheers,   … [Read more...]

How to clear DNS Cache in Windows small business server 2011 or windows 2008 r2

G'day While I do not write on Windows server too often but here is that once in a blue moon article or you can assume a quick tip on how to clear DNS cache, Reason can be any but sometimes we have to do it. Locally we will just use [crayon-5417e51b00fd1746003940/] to flush local DNS issue but on the server side here is how its done Step 1 Goto Start > Administrative tools > DNS You will see all your zones including forwards, reverse lookups and conditional forwards. To view Cached lookup goto View > Advanced Now you will see an entry called Cached lookups appear as shown in image below Gobind is my server name. Step 2 (Clear DNS cache) From here on there are 2 ways you can clear your cache. Either select Cached lookups entry and then Goto Action > Clear cache  as shown below OR Right click on Cached lookups entry and then left click Clear cache from cotext menu as shown below   You don't have to restart your DNS service. You can then Right click > Refresh to see if caches are gone, they will :) I hope this helps, In case you would like to leave your input, do so by leaving your comments.         … [Read more...]

Google Maps How to do a KML Layer overlay fill

Hi Guys, Now that I am experimenting with Google Maps I thinks its about time to write a few articles. This is the first one in the series to follow in coming weeks. This post covers how to draw a KML Layer overlay using Google Maps. Good thing is that as of version 3 there is no external library is needed to do what we are going to do. KML that I am going to use can be downloaded from the link provided at the end of this post. Final result will look like below Code Snippet You would have a clue how to use Google Maps API to draw simple maps so I am not going to explain line by line but you can use the code snippet to extend it   [crayon-5417e51b01662409237634/]   This will produce a nice KML Layer with a polygon created from the coordinates supplied from the KML data. To change the colors of the line and highlighted area you can change color value under style element values as shown below [crayon-5417e51b01674813729888/]   Remember color property is not your typical HEX color. Its defined as aabbggrr (alpha, blue, green, red)   Download Demo KML You are able to download the KML file from the link below That's about it actually.  Most of the power is in your polygon data and GM API take care of the rest. I hope this helps Cheers, … [Read more...]

How to download JW Player flash mp4 flv movies

To start with let me tell you that this method works most of the time, and I will use our friendly browser Firefox to do the hard bit i.e. downloading. You can also utilize other browsers too, I haven't personally tried those. There are many other tools available, no doubt about that. But I love to keep things simple for myself so just sharing my approach here. Leave your comments if you think you have a better way to do this, because this will help others including myself. First of all let me touch base on the reasons why we may want to download videos Many video tutorials authors record their videos and won't publish them on Youtube so you can't really use "view it later" function like pro video sites offers. Browser bookmarking can get really messy in no time unless you use some online bookmarking sites, so its easier to maintain a video library locally on your machine You may want to keep a copy to view those when you are not connected to the Matrix, I mean Internet Or you are just a download freak. i.e. you download stuff just for the fun of downloading as your ISP offer massive amount of monthly download quota for you to consume. Anyway lets not waste more time and see what can be done Step 1: Download Firefox Just in case you don't have FireFox then get it here   Step 2: Launch Firefox Launch Firefox and goto Firefox > Addons as shown below   Now in the search field type "Flash Video Downloader" You will see a result that looks like this Click the Install button and once its installed, Restart your Firefox, do not forget this Once FF restarts you will observe that there is a new Icon next to the address bar as shown below Step 3 Goto the URL where video is hosted Type the URL which is hosting video of your interest played by JW Player. Click on the Play button, this will enable our Add-on to detect which file player is getting video data from. You will notice that the Add-on button with … [Read more...] – A Free reminder service using twitter’s direct message

Hi Guys, Well, based on some of the thing I have lately been worried about, one amongst those iss forgetting some of the key dates such as my wedding anniversary I decided to do something about it. I wrote a fun online tool called The sole purpose of this site is Reminders sent using Twitter's Direct messages system. What that means is that on a given time you will get a Message directly in your twitter Inbox Now this is good because based on your preference if someone sends you a direct message it will sort of delivered to you twitter phone app as a Message more in form of SMS. I hope I am making sense here. Bottom line is that you will be alerted on web, on your phone, on your tablet at the same time Features Here are some key features for this web application Set Reminders in your own TimeZone  Seems weird but trust me that if I talk GMT or UTC very less people will be able to One, understand it. Two, have to make complex calculation in their brain to get the time right just in case they do understand GMT and stuff  Remind not only yourself but send a Direct Message to your friend too  Yes I Know that they can take care of their own reminders but sometimes its good if you can send a Message to their inbox when - It's their Birthday - It's their wedding anniversary - or Just remind them if they've got an exam on that date - and stuff like that Check your upcoming and sent reminder  You have full control on your Reminders. What I mean to say is that you are able to Create and Delete your reminders, Just in case you want to delete your delivered ones, you are able to do that too. Unlike others, I don't really care of data being removed from my server. Your privacy and what you write is kept private "All the freakin time" Its as simple as that Mobile and Tablet friendly  This is important because we all use phones and/or tablets nowadays and making your web application not … [Read more...]

LinkedIn Share button with Callback

Hi Guys, In previous few post we discussed about many social button including Google +1, Twitter, Facebook Like, In this post I will show you how to create a LinkedIn button with a callback. So without wasting much time and me explaining why callbacks are necessary, lets jump straight to the point 1st step Write this function and place somewhere in your HEAD tag [crayon-5417e51b01ceb396543462/] [crayon-5417e51b01cf9971308198/]   2nd step Include this script somewhere in you HEAD tag [crayon-5417e51b01d03690341915/] [crayon-5417e51b01d0d765997008/]   This will make LinkedIn JavaScript API available to your webpage. Final Step [ltu]   The final step is to include this bit to where you want your share button to appear [crayon-5417e51b01d18716809296/]   Well I know what you are gonna say. I was surprised too to why LI won't use a DIV or similar container and make use of script tag, let me tell you what each of the above attributes actually implies type: Custom type used as is data-url: This is the URL that people will share. Generally you will use location.href here data-counter: Where would you like your share counter to appear. 3 possible values are top, right or blank data-onsuccess: This is the important bit where we place our callback function. Make sure that your callback function is available on your page. [/ltu] That's pretty much it and you are able to create a LinkedIn share button with a custom callback. I hope that this helps Cheers,   … [Read more...]

Tweet button with a callback – How to?

Hi Guys, While I was working on a plugin for WordPress I have to write fair bit of code to get the social stuff happening. Callbacks are necessary from all the major Social buttons that users interact with. Be it Facebook, Google Plus, Twitter or LinkedIn. In this post I will show you exactly how to add a Twitter's Tweet button with a callback  in your page that will print "Tweet successful" on Javascript Console once user tweets. 1. The Markup Everything that I will show here is from Twitter [crayon-5417e51b02511203753727/] You should change all the data values in the code as per your requirements Next steps is to include twitter Javascript API     2. Twitter API Put this code somewhere in your body tag [crayon-5417e51b02520745266397/] [crayon-5417e51b0252c258246339/] Now that we have window.twttr object available its time to bind some events supported by twitter [ltu] 3. Event Handler Place this code before the body end tag and after the above code, but that's just me saying that [crayon-5417e51b02537713755447/] [/ltu] As you can see that its that simple. I can go on and explain other events stuff here too but its just me re-writting what Twitter documentation already have for you. So just go and check it out here I hope that this helps     … [Read more...]