Klairvoyant infosolution's Blog

Android apps on a PC


If found some problem with androdid app on your phone.

if wished to work from pc instead of going to phone all time


How to do?  

we will send you the solution by email when Requested using following button



Read more

CSS Buttons


1) in css file

.button, .button:visited{
background: #222 url(overlay.png) repeat-x;
display: inline-block;
padding: 5px 10px 6px;
color: #fff;
text-decoration: none;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
border-bottom: 1px solid rgba(0,0,0,0.25);
position: relative;
cursor: pointer
.small.button, .small.button:visited{ font-size: 11px}
.button, .button:visited,.medium.button, .medium.button:visited
font-size: 13px;
font-weight: bold;
line-height: 1;
text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
.large.button, .large.button:visited
font-size: 14px;
padding: 8px 14px 9px;
.super.button, .super.button:visited
font-size: 34px;
padding: 8px 14px 9px;
.pink.button, .pink.button:visited{ background-color: #6b32b2; }
.pink.button:hover{ background-color: #44177c; }

<a class=”super button pink”>Pink Button</a>
<a class=”large button...

Read more

paypal sandbox error:- This transaction cannot be processed due to an invalid merchant configuration.



while creating test merchant account select account type as “Website Payments Pro” instead of “seller”

Read more

Forms in rails, different ways


1) Method 1

a) input.html.erb

<form action=”/look/at”>
<input type=”text” name=’text1′>
<input type=”checkbox” name=”checkbox1″>
<input type=”radio” name=”radio1″ value=”red”>Red
<input type=”radio” name=”radio1″ value=”green”>Green
<input type=”radio” name=”radio1″ value=”blue”>Blue
<select name=”select1″>
<option value=’green’/> Green
<option value=’Blue’/> Blue
<option value=’Red’/> Red
<option value=’Orange’/> Orange
<select name=”select2[]” multiple size=”3″>
<option value=’AC’/> AC
<option value=’Music system’/> Music Syatem
<option value=’Heater’/> Heater
<option value=’auto...

Read more

Amazon Product Advertising API Interface in Rails


1) In gem file add the following and bundle it.

gem ‘amazon_product’


configure the request object in controller

a) req = AmazonProduct['us']

b)req.configure do |c|
c.key    = ‘YOURKEY’
c.secret = ‘YOURSECREAT’
c.tag    = ‘YOURTAG’

get your key,secret etc…  from


c) req << {
:operation    => ‘ItemSearch’,
:search_index => ‘All’,
:Keywords => ‘Book’,
:response_group => ['ItemAttributes','Images'],
:Version=> ‘2011-08-01′

3) get the results
@resp = req.get

code in view

<% @resp.each(‘Item’) do | item |%>
<%#*http://www.amazon.com/dp/<%= item['ASIN'] %>

<%g =item['MediumImage'].nil? %>

<% if g==false %>
<%item['MediumImage'].each  do | img|%>
<% if img[0]==”URL” %>

Read more