Monday, 27 July 2015

Firefox have trouble adding attachments to emails using Gmail

Try to set the Boolean pref network.http.spdy.enabled to false on the about:config page.

Sunday, 22 December 2013

Mac O2 Wireless Box IV not able to connect external harddrive

Mac O2 Wireless Box IV not able to connect external hard-drive

I was not able to connect to Thomson Wireless box IV which came with O2.

The final answer is

Open Terminal

type in

sudo sysctl -w net.smb.fs.kern_deprecatePreXPServers=0

Then Open the finder.

You can see O2 There

username ::  Administrator

password :: the password back of your box

Thanks to


Sunday, 15 December 2013

I was wondering how to see the performance of GPU in mac Lion OSX

I was wondering how to see the performance of GPU in mac Lion OSX

Mac Activity monitor in utilities see ditn get me more inforamtion.

Than downloaded atMonitor.

If you want to release some ram, do a purge

$  purge

It works for me hope it helps others as well

Wednesday, 4 December 2013

Bitcoin Faucets

Here I am going to list the bit coin faucets which I have tried. You can drop in some bitcoins for me to text the working links

My Wallet

Bit coin    :: 195No4ADioPeXa5kL5H98y396EVpDfKSKf

Lite coin  ::

What is a Bitcoin faucet?

A faucet in the alternate currency world is basically a website that gives you a small amount of the coin for free, whether because of the advertising revenue they have on the site, various clicks they get, or because they are interested in promoting their crypto-currency & if someone has a stake in that crypto-currency then they are more likely to promote it. So then what is a Bitcoin faucet? A bitcoin faucet does every a faucet does except it gives you the crpyto-currency Bitcoin. Recently hitting a high of $395/bitcoin faucets now pay out more than ever. Bitcoin faucets are especially good for those with empty wallets whom want to see some coins in there - or those with a small number of coins. Check out the below links to get some free bitcoins!

1.Bitcoin Faucet 1

2.Bitcoin Faucet 2

3. Bitcoin Faucet 3

4.  Bitcoin Faucet4

5. Bitcoin Faucet 5

Friday, 18 January 2013

Resize the Ubuntu VDI

command to increase(resize) the virtual box, this command resize the current ubuntu.vdi to 20GB

>VBoxManage modifyhd ubuntu.vdi --resize 20480

Friday, 9 November 2012

sample mongodb

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.mongodb.Mongo;

public class SpringMongoConfig extends AbstractMongoConfiguration {

public @Bean Mongo mongo() throws Exception {

return new Mongo("localhost");

public @Bean MongoTemplate mongoTemplate() throws Exception {

return new MongoTemplate(mongo(),"blog","users");
} (Main)


import com.mongodb.BasicDBObject;

import com.mongodb.DB;

import com.mongodb.DBCollection;

import com.mongodb.DBCursor;

import com.mongodb.Mongo;

import com.mongodb.MongoException;

public class MongoApp {
public static void main(String[] args) throws UnknownHostException {
try {
// connect to mongoDB
Mongo mongo = new Mongo("localhost", 27017);
// if database doesn't exists, mongoDB will create it
DB db = mongo.getDB("blog");
// Get collection from MongoDB, database named "mydb"
// if collection doesn't exists, mongoDB will create it
DBCollection collection = db.getCollection("users");
// create a document to store attributes
BasicDBObject document = new BasicDBObject();
// save it into collection named "myCollection"
System.out.println( collection.find());

DBCursor cur = collection.find();
while(cur.hasNext()) {
// search query

} catch (MongoException e) {





public class User {
private String id;
private String password;

public User(){};
public User(String id, String password) {
super(); = id;
this.password = password;
public String getId() {
return id;
public void setId(String id) { = id;

     * @return the password
    public String getPassword() {
        return password;

     * @param password the password to set
    public void setPassword(String password) {
        this.password = password;

public String toString() {
return "User [id=" + id + ", firstname=" + password"]";


Just change the groupID by your package name

<project xmlns="" xmlns:xsi=""

<name>Spring Maven MILESTONE Repository</name>


<!-- Spring framework -->


<!-- mongodb java driver -->






Thursday, 8 November 2012

A new site for tutorial on Java ...

Today I was browsing the

I was going through one of the Java champion Lars Vogel is the founder and CEO of vogella GmbH

He has got very good tutorials for Java Based, Android based

Hope this helps someone ...