Wednesday, 18 September 2013

How Google Chrome was built - Comic

Hi all it's been a while :). I came across a comic about how the Google Chrome Browser works and thought it'll be good to share it.

Friday, 23 August 2013

UPLOADING VERSUS DOWNLOADING

Hi Peeps, I have a open discussion here. From your experience, research and facts, let's talk about this two terms. One is usually faster than the other; which of them? and Why?

UPLOADING VERSUS DOWNLOADING

Wednesday, 14 August 2013

Socket Programming in Java

Here is a simple implementation of Client-Server in java programming (Code Snippet):

For client:

import java.net.*;
import java.io.*;

public class SimpleClient {

    public static void main(String[] args) throws IOException {
       
        //Open your connection to a server, at port 1234
        Socket s1 = new Socket("", 1234);
        //Get an input file handle from the socket and read the input
        InputStream s1in = s1.getInputStream();
        DataInputStream dis = new DataInputStream(s1in);
        String st = new String(dis.readUTF());
        System.out.println(st);
        //When done just close the connection and exit
        dis.close();
        s1in.close();
        s1.close();
       
       
    }
}



For Server:

import java.net.*;
import java.io.*;


public class SimpleServer {

   
    public static void main(String[] args) throws IOException{
        
         //Register service on port 1234
        ServerSocket s = new ServerSocket(1234);
        Socket s1 = s.accept();//wait and accept a connection
        //Get a connection stream associated with the socket
        OutputStream s1out = s1.getOutputStream();
        DataOutputStream dos = new DataOutputStream(s1out);
        //Send a string
        dos.writeUTF("Hi there");
        //close the connection but not the server socket
        dos.close();
        s1out.close();
        s1.close();
    }

}




Saturday, 3 August 2013

Ubuntu Tips 1

Hi there, this post goes to the current Ubuntu users and future users.
Ubuntu is an operating system based on the Linux kernel and the Linux distribution Debian, with Unity as its default desktop environment. It is distributed as free and open source software. It is named after the Southern African philosophy of ubuntu, which often is translated as "humanity towards others" or "the belief in a universal bond of sharing that connects all humanity". http://en.wikipedia.org/wiki/Ubuntu_(operating_system) 
One installing the OS you'll find out that a lot of things are different from the way they used to be on Windows, well this post is not to help create a Windows out of Ubuntu but to give tips on how to make the Ubuntu experience better.
So here goes

TIP #1
On launching Ubuntu one notices that the minimize, maximize and close buttons are on the left, well here's a linux command to move them to the right.

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Keep following this blog as more Ubuntu tweaks will be coming your way :)

Friday, 12 July 2013

Core i3 vs Core i5 vs Core i7

A lecturer asked me today how many cores my new HP ENVY DV4 Core i5 system has, I know you'd be like that's simple now: core i3 has three cores, i5 has 5 cores and i7 has 7 cores but to my amazement he told me that was wrong so I decided to check it out and found this:

Core i3, Core i5, Core i7 — the difference in a nutshell

If you want a plain and simple answer, then generally speaking, Core i7s are better than Core i5s, which are in turn better than Core i3s. Nope, Core i7 does not have seven cores nor does Core i3 have three cores. The numbers are simply indicative of their relative processing powers.
Image credit: Intel.
Their relative levels of processing power are also signified by their Intel Processor Star Ratings, which are based on a collection of criteria involving their number of cores, clockspeed (in GHz), size of cache, as well as some new Intel technologies like Turbo Boost and Hyper-Threading.
Core i3s are rated with three stars, i5s have four stars, and i7s have five. If you’re wondering why the ratings start with three, well they actually don’t. The entry-level Intel CPUs — Celeron and Pentium — get one and two stars respectively.
Note: Core processors can be grouped in terms of their target devices, i.e., those for laptops and those for desktops. Each has its own specific characteristics/specs. To avoid confusion, we’ll focus on the desktop variants. Note also that we’ll be focusing on the 2nd Generation (Sandy Bridge) Core CPUs.

Number of cores

The more cores there are, the more tasks (known as threads) can be served at the same time. The lowest number of cores can be found in Core i3 CPUs, i.e., which have only two cores. Currently, all Core i3s are dual-core processors.
Currently all Core i5 processors, except for the i5-661, are quad cores in Australia. The Core i5-661 is only a dual-core processor with a clockspeed of 3.33 GHz. Remember that all Core i3s are also dual cores. Furthermore, the i3-560 is also 3.33GHz, yet a lot cheaper. Sounds like it might be a better buy than the i5. What gives?
At this point, I’d like to grab the opportunity to illustrate how a number of factors affect the overall processing power of a CPU and determine whether it should be considered an i3, an i5, or an i7.
Even if the i5-661 normally runs at the same clockspeed as Core i3-560, and even if they all have the same number of cores, the i5-661 benefits from a technology known as Turbo Boost.

Culled from PCWORLD http://www.pcworld.idg.com.au/article/386100/what_difference_between_an_intel_core_i3_i5_i7_/

Tuesday, 9 July 2013

Localhost Problem in Emulator [Solved]

Hi there, we promised to keep posting useful IT info and that's what we'll do.

Ever tried to connect to your localhost i.e. either WAMP (Windows Apache Mysql Php) or XAMPP via an the Nokia emulator or Android and it refuses to connect, well this happens basically because the term Localhost "is that standard hostname given to the machine itself. 

Commonly represented by the IP address 127.0.0.1" Source: http://whatismyipaddress.com/localhost.
Since the localhost means the machine itself, this simply means that localhost from most emulators points to the phone itself.
//The Solution
Use http://10.0.2.2 instead of http://localhost to point to the localhost of the computer.  That's all.  

Monday, 8 July 2013

Hello World


The first lines of code written in every language by a programmer is usually if not always directed at outputting "Hello World!" through the standard output stream.

As this is now going to be the RealKoncept's standard output stream for posts on IT and more we'll like to say HELLO WORLD!

Do well to visit Our Official Website.

print("Bye!!!");