Wednesday, September 24, 2014

Sansri Literary Trust Just created

The website ww.sansri.org is created just now. This website main objective are simple and straight
  • A Literary Trust
  • List of Journals
  • Various activities in the field of Literature
  • Common place for literature section
This website is hosted in a speedhost network. Hope a fruitful result.

Monday, September 15, 2014

GATE 2015 Online Test Conducted by CIT Kokrajhar

Every department of CIT Kokrajhar is Conducting free online test targetted for GATE 2015. Every quiz sample you can be able to find at http://quiz.gitspot.com

GATE is a national level entrance exam conducted by IITs and IISc to test engineers fit for doing masters or research.

Most of the PSUs and Private sector companies considers GATE for screening the candidate.

GATE is mandatory to Join M.Tech/ME/MArch etc in IITs, IISc and NITs or in CFTIs institutes.

You can find more about GATE here http://gate.iitk.ac.in

Sunday, August 31, 2014

The Alayaran.com a platform for discussion, questions and answers

The www.alayaran.com is a new website for discussion of polical or technological issues opinion and various kinds of categories. Using this website you ask for help, help other by replying the answers to the user topic or you can use it as a general website.

The website is good in design and is viewable in small devices also. It is waiting for more user to use. The advertisement is yet not allowed. But they may include it soon.

A good startup we wish a good luck.

Tuesday, June 24, 2014

The war between Gamer and Game Developer

Game is not a new term for everyone. People like to play games whether you are a young kid, a girl, a boy or an elderly person still they like to play games. There are many types of games ranges from Indoor to Outdoor or electronically. You can choose from a range of Outdoor games or choose from a range of Indoor games. If you want to play for the electronic games there are also many, that may include pc games, console games or even in phone games. Depending on your requirement you can be able to play games on either on smartphones or in PC/Consoles. Since almost all of the Indoor or Outdoor games have alternative to play in Electronic also. The demand for electronic game business is much higher than that of Real Game.

Now consider about a Outdoor game Football where almost twenty two payers actively take part in the game. If you dont have enough friends you may not be able play the real game football. But if you prefer to play the same football game in PC that may be easier or you can be able taste the football match even sitting in front of a PC. To play in the real football you may have to be physically fit but for electronic play the requirement is less. Because of this may be there are many user base in electronic world.

So we know that there are many user base, now how you are going to provide your service as a programmer. You know that if you build good game you will be huge. Since if you study about the game industry they earn billions of money using a single game. Like electronic arts earn billion using EA FIFA. So if you stress on what people are like to play and which have not much in the electronic market you can be able to make a good start; and earn a lots.

Monday, October 28, 2013

Telegram a Secure SMS Application an Open Source alternative to whatsapp

Telegram is an open source implementation of secured SMS application. It is like SMS, but more powerful. You can send messages, photos and videos to people who are in your phone contacts (and have Telegram). You can also create groups for up to 100 people.

telegram an open source alternative to whatsapp


Unlike WhatsApp a popular instant messaging service and free SMS service, Telegram is cloud-based, decentralized and heavily encrypted. As a result, you can access your messages from several devices and store an unlimited number of photos and videos in the cloud. Thanks to decentralization and encryption, Telegram is also faster and way more secure. On top of that, Telegram is free and will stay free — no ads, no subscription fees, forever.

Telegram is currently available for iPhones (iOS 5 and above) and Androids (2.2 and up). It support tablets and smartphones alike, as well as iPods (they don't have a dedicated iPad app yet, but Telegram works well on iPads too). Their also have an open API for developers, should you want to build your own applications for other platforms. In the meantime, get your best friends to switch back to iPhones and Androids.

It is Very secure. It is based on a new protocol, MTProto, built by their own specialists from scratch, with security in mind. At this moment the biggest security threat to your Telegram messages is your mother reading over your shoulder. They said they will took care of the rest.

The code available for Telegram is available on github.com. You can be able to download it from here https://github.com/DrKLO/Telegram or have a look at http://www.telegram.org their main home page.

Monday, April 1, 2013

MySQL Database Connection at OpenShift Redhat Cloud using PDO Class

I was very unhappy when my code was correct but could not connect to my mysql database in openshift. But after trying some tricks it got to work. So I will share some tips that you can also put to your PHP MySQL application in openshift.
First thing to be noted is that when you create a PHP Application in OpenShift you will get some environmental variable. Which you can view them by using echo $ENV_NAME in the shell.
Some of MYSQL DB Environmental variables in openshift clouds are follows.
OPENSHIFT_MYSQL_DB_HOST
OPENSHIFT_MYSQL_DB_PORT
OPENSHIFT_MYSQL_DB_USERNAME
OPENSHIFT_MYSQL_DB_PASSWORD
OPENSHIFT_MYSQL_DB_SOCKET
OPENSHIFT_MYSQL_DB_URL
          
You can Find more about it here OpenShift Variables

Considering we have database name 'gitspot' and have a table name having demo where there is a field 'name' and has a record 'RedHat Openshift'
Now create a php file conf.php which contains all the Database Host Port etc and the way to connect using PDO Class.
<?php
        define('DB_HOST', getenv('OPENSHIFT_MYSQL_DB_HOST'));
        define('DB_USER',getenv('OPENSHIFT_MYSQL_DB_USERNAME'));
        define('DB_PASS',getenv('OPENSHIFT_MYSQL_DB_PASSWORD'));
        define('DB_BASE','gitspot');
        define('DB_PORT',getenv('OPENSHIFT_MYSQL_DB_PORT')); 
function mysqlConnector(){
    $dsn = 'mysql:dbname='.DB_BASE.';host='.DB_HOST.';port='.DB_PORT;
    $dbh = new PDO($dsn, DB_USER, DB_PASS);
    $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    return $dbh;
}
         ?>

Now include that in your app.php

<?php
 try {
                require_once 'conf.php';
                $conn = mysqlConnector();
                $stmt = $conn->prepare('SELECT * FROM demo');
                $stmt->execute();

                while($row = $stmt->fetch()) {
                        print_r($row);          
                }


        } catch(PDOException $e) {
                echo 'ERROR: ' . $e->getMessage();
        }


?>

The result of https://app-appname.rhcloud.com/app.php

Array ( [name] => RedHat Openshift [0] => RedHat Openshift ) 


That is all how you can connect to mysql database in RedHat OpenShift cloud.

Sunday, October 14, 2012

Open Source Search Engine Apache Lucene/Solr Gets Big Update: Apache Lucene Solr 4.0 releases

On 12th October 2012 the Apache Foundation released a major update to the open source search engine building tools Lucene and Solr. Version 4.0  adds several new features aimed at making Solr easier to use, more scalable and more customizable.

Although they’re jointly developed, Lucene and Solr are actually two different things. Lucene is just a Java library, not a stand alone search engine. Solr is a search engine server built with Lucene as its core.

Lucene was created in 1999 by Doug Cutting, better known as the creator of Apache Hadoop, and has been used both companies like AOL and LinkedIn to power search features. Solr was created by Yonik Seeley in 2004. It can be used as a custom search engine, or be used to power search for a separate application.

Scalability was the Solr/Lucene team’s biggest focus for today’s release, according to Search Engine Hub — particularly scaling out as opposed to scaling up.

Web companies like Google and Amazon.com have popularized scaling out in recent years. To over simplify: when you scale up, you replace your existing servers with more powerful ones when you need more capacity. When you scale out you add more servers to your environment to add capacity. This approach is generally seen to provide more bang for the buck, but clusters of servers can be difficult to setup and manage, and distributing data across a cluster introduces a number of challenges.

To address these issues version 4.0 introduces a collection of tools designed to make it easier to build and manage Solr server clusters, including a new indexing system designed to deliver near real-time search results in a distributed environment.

These features will help Solr compete with ElasticSearch, an open source, Lucene-based search engine server that has long focused on distributed environments.

Other new features in 4.0 include a new web based UI, a spell checker and better support for spatial data (which will be useful for anyone doing geographic searches). The new version will also give users more customization and control.
LucidWorks, a company founded by Seeley, offers commercial support for the Solr.
To download Apache Solr visit here http://www.apache.org/dyn/closer.cgi/lucene/solr/4.0.0.
Apache Solr 4.0 admin screenshot