Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

Thursday, 3 December 2015

How to install a SSL certificate to java keystore file?



First, before buying a certificate you need to create a CSR (Certificate Signing Reqest) which is to be given for buying one. So for that you need to create a private key with in the server. This private key is not supposed to be shared to any one, but you need to create one before generating the CSR.

Follow the below steps.

Generating Keystore file

Run Command

keytool -genkey -alias keyalias -keyalg RSA -keysize 2048 -keystore domain.keystore

This will create a keystore named domain.keystore . You need to replace the domain name with yours. When asked for name and other details, you need to enter domain name for name. If its wild card certificate you need to enter *.domainname as name

Creating CSR

Run Command

keytool -certreq -keyalg RSA -alias keyalias -file csr.txt -keystore domain.keystore

This will create file named csr.txt which needs to shared to purchase the SSL certificate.

Once you got the SSL certificate purchased from the certificate provider follow the below steps.

Installing Root and Intermediate certicates

Most of the SSL providers will share root and intermediatory certificates along with the main certificate. You need to install it one by one starting from ROOT.

Run command

keytool -import -keystore domain.keystore -alias root -file domainroot.ca-bundle

Here the file name domainroot.ca-bundle is the roor file

For intermediate file run command

keytool -import -keystore domain.keystore -alias intrim -file intrimca.crt

Here the file name  intrimca.crt  is the intermediate file

For installing main certificate run the below command.

keytool -import -keystore domain.keystore -alias keyalias -trustcacerts -file domain.crt

Here the file name  domain.crt  is the main certificate file. Here the most important thing to note is, you need to use the same alias name used when  generating the keystore file in the first step. In the example its keyalias

Hope this information helps people who try to find how to install SSL to a keystore file.




Tuesday, 28 January 2014

How to renew SSL (Secure Sockets Layer) certificate on a keystore?


Recently we have to renew the SSL certificate on our company's product website. So we thought of sharing the steps we followed.

Get the CSR (Certificate Signing Request) file
For buying the renewal certificate you have to submit CSR file to the SSL issuer. You can either use the existing CSR file you have used earlier to purchase the SSL initially or you can export it from your keystore.
The command to export is

keytool –keystore clientkeystore –certreq –alias client –keyalg rsa –file client.csr

Buy the SSL certificate from issuer
Buy your SSL from the any of the issuers like verisign , comodo, positivessl etc. You have to paste the contents of the CSR file you generated in the previous steps to buy one. The issuer might email you the certificates or give you an option to download them.

Renewing the primary certificate on to keystore.

The certificate issuer will give you ROOT certificate, intermediate certificate as well as domain specific certificate to you. As this is a renewal you only need the domain specific certificate. Only thing you have to do is to import the domain certificate to your keystore under the same alias name you have user earlier for the domain certificate. The command is

keytool -import -trustcacerts -alias mydomain -file mydomain.crt -keystore keystore.jks

This will ask for your keystore password and will overwrite your existing certificate. Hope this information was helpful to you. Do share your thoughts and questions with us.

Tuesday, 3 December 2013

Cool site for PDF management (conversion,edit,merge to all formats)



Today i found a wonderful site for all kind of services / tools required for managing pdf files. This saved me lot of time. It also saved me lot of printouts, yeah its good for environment too. This is a online free service that helps us do a lot of  actions like merging , conversion, editing files to PDF and backwards.
I think this will be useful for all kind of people so sharing.
The site is http://online2pdf.com/   Do check it out let me know if you find it useful.

Saturday, 13 July 2013

Why one should stay away from CCAvenue payment gateway?



Our recent experience in working with CCAvenue made me say this statement. Following are the reasons.

No sandbox testing

There is no way we can test the stuff in a test environment.  In their Integration kit doc it says they will white-list an IP for 15 days for testing. But when requested for it they say test it in production. Is it the way you test code?

Buggy code in integration kit

The integration kit they provide have java, jsp sample code which will not work.  The files was dated year 2012, so the bug was there for long time. So many people might have reported it, but didn't bother to correct.

It takes ages to setup an account end to end

Its been 5 months, yet the entire account activation process is not complete. That is getting money your clients payed to the gateway to your account.

Adding one more website is so tough
Say you have one CCAvenue gateway active and you want to enable gateay to your second website. Then the process you need to follow much of the same as getting it done for the first time. Will take more than 5 months.

Dummy cards with no real use
They have given dummy card details for testing the gateway. When you try to use it it will say max transaction per day is 5, So you cant do any more testing today.

So guys stay away from CCAvenue, if not be ready for a tough ride.





Monday, 6 May 2013

How to Increase Laptop Speaker Volume

Generally the speakers on laptop computers are usually not very loud.
Most consumer laptops are having this trouble.
This doesn’t mean nothing can do about it.
There are ways for you to increase the volume of your laptop a little more.

Most people use VLC player to play movies in laptops. VLC is the best player for laptops.
It is lightweight, portable, and can play almost any media format even videos downloaded
from Youtube.


You can increase the volume in your VLC player to 400% of its actual volume.

Hold CTRL+ and Keep Pressing the [UP] Key on your Keyboard.
You would see an image on the top right corner of your VLC player
The image would increase from 100% to 200% then to… 400% and increase the volume on your player.
This is quite enough to increase the laptop’s volume to the max.


Alternate Way
Cheap external USB speakers available in the market.
Buy one so that you can carry it easily in the laptop bag.
These cost around 1200 or less.

Wednesday, 18 July 2012

Don’t follow the leader



Marketers (and all human beings) are well trained to follow the leader. The natural instinct is to figure out what’s working for the competition and then try to outdo it – to be cheaper than your competitor who competes on price, or faster than the competitor who competes on speed. 

The problem is that once a consumer has bought someone else’s story and believes that lie, persuading the consumer to switch is the same as persuading him to admit he was wrong. And people hate admitting that they’re wrong.
Instead, you must tell a different story and persuade listeners that your story is more important than the story they currently believe.

If your competition is faster, you must be cheaper. If they sell the story of health, you must sell the story of convenience. Not just the positioning x/y axis sort of “We are cheaper” claim, but a real story that is completely different from the story that’s already being told.

Inspired by(Getting Real 37signals.com)

Saturday, 26 May 2012

How to handle a new feature request for your product?



The most common problem with product development / maintenance is on how to handle a new feature request for your product.

37signals.com answers this in the book "Getting Real"
The goal is to minimize the number of features and to make the features we choose to build, perfect ones.

For every new feature you need to...
1. Say no.
2. Force the feature to prove its value.
3. If “no” again, end here. If “yes,” continue...
4. Sketch the screen(s)/ui.
5. Design the screen(s)/ui.
6. Code it.
7-15. Test, tweak, test, tweak, test, tweak, test, tweak...
16. Check to see if help text needs to be modified.
17. Update the product tour (if necessary).
18. Update the marketing copy (if necessary).
19. Update the terms of service (if necessary).
20. Check to see if any promises were broken.
21. Check to see if pricing structure is affected.
22. Launch.
23. Hold breath.

What you guys think about this approach?

Friday, 16 March 2012

How to run your java application as a service in Linux?

This problem is faced by many. You may want to run a java server application in any Linux server, but the only way you know to initialize and run this app is from the ssh terminal console. The problem here is, the application will stop , the moment you close your ssh terminal.

Whats the solution?   Just append an & at the end of the command.

Eg: For running hsql db as a service, am using the below command


java -cp ../hsqldb/lib/hsqldb.jar org.hsqldb.server.Server --database.0 file:appcache --dbname.0 appcachedb &


Now go ahead and close you ssh console. You will see that your db server is still running.

If you have a better way of doing this, do let me know.

Ajith.

Monday, 6 February 2012

Connect to MySql via SSH tunnel

You have your Mysql database up and running in production. You are happy connecting to server by ssh and doing everything using console. Felt like you miss something here. Yes you miss a good mysql client here. As security is of prime importance you cant enable your mysql to accept connections from outside localhost.

So how to do this in a secure manner?  SSH tunneling is the answer. After following these instructions, you'll be able to connect to localhost on your workstation using your favorite MySQL management tool. The connection will be securely forwarded to your Cloud / server space over the Internet.

Friday, 4 November 2011

Social Media revolution - latest by Socialnomics


Social Media revolution - latest by Socialnomics



You need to install or upgrade Flash Player to view this content, install or upgrade by clicking here.

Thursday, 27 October 2011

Google Buzz is Retiring


First thing i saw after login to gmail account today was a message from Google saying Buzz is retiring.

Another Google initiative taken down. This time it's the Buzz. After the fall of  google wave , this came as a no surprise. Google Vice President Bradley Horowitz, one of the Google+ leaders, said the company plans to close down Buzz “in a few weeks.” He noted that Buzz users will be able to view the posts created on Buzz in their Google Profile, and download them using Google Takeout.


Google Buzz launched in February 2010 and got off to a rocky start, with users raising concerns over privacy issues. Initially, it was difficult to make the list of a user’s followers private. Those concerns led the Federal Trade Commission to press Google to agree to a “comprehensive privacy program” this past March. Privacy issues were only one problem Buzz had.

On Horowitz’s Google+ account, he went into more detail about the decision to kill Buzz. “We think the time has come for us to focus our energy on projects that will have the most impact to the most users,” Horowitz wrote. “With the majority of Buzz users now here on Google+, it became obvious that all of our attention should be focused on this community.”


R.I.P Google Buzz

Monday, 1 August 2011

Microsoft's latest Dig at Google - The Gmail Man

Microsoft's latest Dig at Google is this new video Gmail man. Here Microsoft is trying to say how Google is using your gmail content for targeted advertisements. This video is for selling Office 365 against Google Apps, and specifically, Gmail. In the video, Gmail man riffles through mail to find keywords for serving up ads. The message: Google cares more about advertising revenues than privacy.



Thursday, 2 June 2011

Upgrade GW620 to Android 2.2 Foryo.



I was having Gw620 with v10k firmware (android 1.5). Here am trying to explain the steps did to upgrade it to openetna firmware (Android 2.2). Please refer http://code.google.com/p/openetna/wiki/Installation for reference. Don't forget to watch the videos there in that guide. I will be explaining mainly the areas where i got stuck, and the steps i did to resolve it.



  1. Download the openetnaV6.3-rc7.zip from http://code.google.com/p/openetna/downloads/list 
  2. Download android sdk http://developer.android.com/sdk/index.html
  3. Download gapps zip gapps-mdpi-tiny-20101020-signed.zip (google it)
  4. Prepare it to ready for flasing as per the video on the installation guide.
  5. Copy gapps-mdpi-tiny-20101020-signed.zip file to your SD card
  6. Update USB Driver.  For windows, you need to add this to your android_winusb.inf in the android sdk usb driver in the [Google.NTx86] section for x86 
    ;LG eve%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_D00D%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_D00D&MI_01;LG GW620%CompositeAdbInterface%     = USB_Install, USB\VID_1004&PID_0C02&MI_01%SingleBootLoaderInterface% = USB_Install, USB\VID_18D1&PID_D00D
  7. Get your phone in fastboot mode.
           Here i got stuck. My phone dont have a fast boot mode. i tried hitting space again and again until i realized that my v10k firmware dont have a fastboot. (Yes i shouldn't have updated my phone earlier with the Lg update tool...they removed the fastboot with it). Now i want downgrade it to original stock one. 
I used LG-Util package for it and i used Image with fastboot for 900 Mhz 3G: http://csmg.lgmobile.com:9002/swdata/WEBSW/GW620/ANEUBB/V10g_00/V10G_00.kdz


For details on how to downgrade please refer http://www.yzmall.net/GT/view/id-25316.

The update was stuck at 4% , and it always crashed saying communication failure. Here i tried to switch my usb port and changed the compatabilty of the KP500-Utils-EN.exe file to win xp sp2. I was runnig on Win 7.
Then it worked and i successfully downgraded the firmware. (plz note i wasted a lot of time before this by  trying to flash  V10H_00.kdz file. i dont know why, it was not working for my phone)

8, Finally downgraded to v10G which have flash mode.
9. Now Get your phone in fastboot mode:

  • Remove battery
  • Slide out the keyboard
  • Plug in USB connector (still with the battery removed)
  • Press SPACE (or SPACE+MENU for newer firmwares) just when you see the screen slightly light up, untill the fastboot text appears on the screen.  
10. If the phone is not detected by windows correctly, i.e still listing it on Other devices section on Devie manager. Then you need to Update it's driver to the usb driver inside the android sdk folder. (mentioned on step 6)
11. Now take command promt (cmd), run it as administrator.
12. Change directory to sdk tools folder.
13, Run  fastboot -w
               Here i got a dll file missing error. So i added the folder named platform-tools which contained that dll to PATH of my laptop. 

14. Execute the below commands. 
fastboot flash boot boot.img
  fastboot flash system system.img
15. Wait until the commands finished
  1. Unplug the usb
  2. Reinsert the battery
  3. Poweron the phone
  4. Wait (On the first boot, the applications are optimized. This can take up to 10 minutes)
After the restart...install the google apps like Gmap,gmail,calender etc by taking the openetna app from the menu. This  will install the content from file gapps-mdpi-tiny-20101020-signed.zip
Enjoy Android 2.2 Foro...
Do post your questions and comments in the comments section below....

Thursday, 26 May 2011

Future of HTML5 and the web

Alex Russell and  Ian Fette are giving a session on the furure of HTML5 and web. Lets learn about the future of HTML5, CSS, DOM, and JavaScript that will help you build richer and better apps even faster.


Monday, 14 March 2011

Great usage of QR codes

We know, what QR codes is their advantages. And we were amazed at it's simplicity and the information it holds. I feel that the future of this technology is very promising. See what NewYorks Central Park did with QR codes in serving their customers.


Friday, 11 March 2011

Gmail getting smarter with smart labels


Smart Labels is the latest attempt by Google to provide its Gmail users with automated features and tools to deal with e-mail overload, a problem that by all accounts is worsening across the board for e-mail users in general.

Once Activated, Gmail will begin to automatically tag certain inbound messages as ‘Bulk’, ‘Notifications’, or ‘Forums’ and handle them accordingly. Notifications includes updates from Facebook, Twitter, Amazon shipping confirmations and other messages that may not be from someone you know but contain important information. And Forums consist of messages from any online message board you may take part in. Messages that appear to be sent as part of a mass mail list will probably be marked as ‘Bulk’ — by default these will skip the inbox, while Forums and Notifications will be kept in the inbox by default.

To enable the new feature, go to Gmail’s Labs section, Search for ‘SmartLabels’ in it and enable the same.    Smart Labels is still optional under Labs for the time being.

Thursday, 3 March 2011

Introducing the all new i-Pad 2


Apple debuted the new iPad 2 Wednesday March 2nd. Apple chief executive Steve Jobs, who is taking a leave of absence from the company, returned to unveil the product. He helmed the product roll-out wagon of Apple execs to show off the revamped tablet and take a few jabs at the competition.

Here come the details of the new iPad 2:

  • Dual-core A5 processor
  • Dimensions: 9.5 by 7.31 by 0.34 inches
  • 1,024x768 Resolution
  • 8.8mm thickness—33% thinner than original and thinner than an iPhone 4
  • Weight: 1.3 pounds (Wi-Fi-only), 1.33 pounds (Wi-Fi + 3G)
  • iOS 4.3 + Facetime & Photobooth
  • HDMI video-out
  • Rear and front facing cameras
  • Gyroscope technology
  • 10 hours of battery life
  • Available in black and white (white shipping from day 1)
  • Pricing is same as original: $499 for the 16GB version, $599 for the 32GB model, and $699 for the 64GB model. 3G-enabled models come at a $130 premium.
  • “Smart cover” that uses magnets available for $39 (plastic) or $69 (leather).
  • Release Date: March 11

Thursday, 24 February 2011

Satish Dharmaraj Forecasts the Cloud



Satish Dharmaraj–the founder of open-source email start-up Zimbra did one video on Cloud computing forecasts with GigaOM for their startup Sessions.







Friday, 11 February 2011

Nokia's new CEO comes with blazing guns


Nokia the mobile giant is facing huge issues. Their new chief executive Stephen Elopunveils a plan to reverse their fortunes. Elop says: "The industry's changed and now it's time for Nokia to change faster."

An internal Nokia memo from the CEO Elop to the company's employees was sent. Here's over to the letter which several analysts have termed 'brutually honest'.

Hello there,

There is a pertinent story about a man who was working on an oil platform in the North Sea. He woke up one night from a loud explosion, which suddenly set his entire oil platform on fire. In mere moments, he was surrounded by flames. Through the smoke and heat, he barely made his way out of the chaos to the platform's edge. When he looked down over the edge, all he could see were the dark, cold, foreboding Atlantic waters.

As the fire approached him, the man had mere seconds to react. He could stand on the platform, and inevitably be consumed by the burning flames. Or, he could plunge 30 meters in to the freezing waters. The man was standing upon a "burning platform," and he needed to make a choice.

He decided to jump. It was unexpected. In ordinary circumstances, the man would never consider plunging into icy waters. But these were not ordinary times - his platform was on fire. The man survived the fall and the waters. After he was rescued, he noted that a "burning platform" caused a radical change in his behaviour.

We too, are standing on a "burning platform," and we must decide how we are going to change our behaviour.

Over the past few months, I've shared with you what I've heard from our shareholders, operators, developers, suppliers and from you. Today, I'm going to share what I've learned and what I have come to believe.

I have learned that we are standing on a burning platform.

And, we have more than one explosion - we have multiple points of scorching heat that are fuelling a blazing fire around us.

For example, there is intense heat coming from our competitors, more rapidly than we ever expected. Apple disrupted the market by redefining the smartphone and attracting developers to a closed, but very powerful ecosystem.

In 2008, Apple's market share in the $300+ price range was 25 percent; by 2010 it escalated to 61 percent. They are enjoying a tremendous growth trajectory with a 78 percent earnings growth year over year in Q4 2010. Apple demonstrated that if designed well, consumers would buy a high-priced phone with a great experience and developers would build applications. They changed the game, and today, Apple owns the high-end range.

And then, there is Android. In about two years, Android created a platform that attracts application developers, service providers and hardware manufacturers. Android came in at the high-end, they are now winning the mid-range, and quickly they are going downstream to phones under €100. Google has become a gravitational force, drawing much of the industry's innovation to its core.

Let's not forget about the low-end price range. In 2008, MediaTek supplied complete reference designs for phone chipsets, which enabled manufacturers in the Shenzhen region of China to produce phones at an unbelievable pace. By some accounts, this ecosystem now produces more than one third of the phones sold globally - taking share from us in emerging markets.

While competitors poured flames on our market share, what happened at Nokia? We fell behind, we missed big trends, and we lost time. At that time, we thought we were making the right decisions; but, with the benefit of hindsight, we now find ourselves years behind.

The first iPhone shipped in 2007, and we still don't have a product that is close to their experience. Android came on the scene just over 2 years ago, and this week they took our leadership position in smartphone volumes. Unbelievable.

We have some brilliant sources of innovation inside Nokia, but we are not bringing it to market fast enough. We thought MeeGo would be a platform for winning high-end smartphones. However, at this rate, by the end of 2011, we might have only one MeeGo product in the market.

At the midrange, we have Symbian. It has proven to be non-competitive in leading markets like North America. Additionally, Symbian is proving to be an increasingly difficult environment in which to develop to meet the continuously expanding consumer requirements, leading to slowness in product development and also creating a disadvantage when we seek to take advantage of new hardware platforms. As a result, if we continue like before, we will get further and further behind, while our competitors advance further and further ahead.

At the lower-end price range, Chinese OEMs are cranking out a device much faster than, as one Nokia employee said only partially in jest, "the time that it takes us to polish a PowerPoint presentation." They are fast, they are cheap, and they are challenging us.

And the truly perplexing aspect is that we're not even fighting with the right weapons. We are still too often trying to approach each price range on a device-to-device basis.

The battle of devices has now become a war of ecosystems, where ecosystems include not only the hardware and software of the device, but developers, applications, ecommerce, advertising, search, social applications, location-based services, unified communications and many other things. Our competitors aren't taking our market share with devices; they are taking our market share with an entire ecosystem. This means we're going to have to decide how we either build, catalyse or join an ecosystem.

This is one of the decisions we need to make. In the meantime, we've lost market share, we've lost mind share and we've lost time.

On Tuesday, Standard & Poor's informed that they will put our A long term and A-1 short term ratings on negative credit watch. This is a similar rating action to the one that Moody's took last week. Basically it means that during the next few weeks they will make an analysis of Nokia, and decide on a possible credit rating downgrade. Why are these credit agencies contemplating these changes? Because they are concerned about our competitiveness.

Consumer preference for Nokia declined worldwide. In the UK, our brand preference has slipped to 20 percent, which is 8 percent lower than last year. That means only 1 out of 5 people in the UK prefer Nokia to other brands. It's also down in the other markets, which are traditionally our strongholds: Russia, Germany, Indonesia, UAE, and on and on and on.

How did we get to this point? Why did we fall behind when the world around us evolved?

This is what I have been trying to understand. I believe at least some of it has been due to our attitude inside Nokia. We poured gasoline on our own burning platform. I believe we have lacked accountability and leadership to align and direct the company through these disruptive times. We had a series of misses. We haven't been delivering innovation fast enough. We're not collaborating internally.

Nokia, our platform is burning.

We are working on a path forward -- a path to rebuild our market leadership. When we share the new strategy on February 11, it will be a huge effort to transform our company. But, I believe that together, we can face the challenges ahead of us. Together, we can choose to define our future.

The burning platform, upon which the man found himself, caused the man to shift his behaviour, and take a bold and brave step into an uncertain future. He was able to tell his story. Now, we have a great opportunity to do the same.

Stephen.



Source: Times of India