Tips N TRIKS

Tips N TRIKS
  • Home
  • Top 10
  • _Top10 Mobiles
  • _Top10 Games
  • _Top10 Software
  • Mobiles
  • _Android
  • _IOS
  • Games
  • _Racing
  • _Shooting
  • _OpenWorld
  • OS
  • _Windows
  • _Macintosh
  • _Linux
  • Learning
  • _Android
  • _JAVA
  • Thursday, 30 November 2017

    DON'T Buy The iPhone X??Do iPhone X Worth It

    IPhone X November 30, 2017 0
    DON'T Buy The iPhone X??Do iPhone X Worth It


    DON'T Buy The iPhone X??Do iPhone X Worth It

    Continue Reading
                                          
    Posted by Unknown at November 30, 2017 No comments:
    Labels: Apple IPhone X, IPhone X

    Saturday, 5 August 2017

    Write program in which server listens on port for incoming connection from client program. When server connects to a client it reads one line of text from client, reverse chars in a line and sends them back to the client.

    reverse chars August 05, 2017 0
    Write program in which server listens on port for incoming connection from client program. When server connects to a client it reads one line of text from client, reverse chars in a line and sends them back to the client.
    Source Code:
    Client side:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class tcpclient
    {
          public static void main(String args[]) throws Exception
          {
                      Scanner sc=new Scanner(System.in);
                      System.out.println("Enter Port:");
                      int port=sc.nextInt();                                
                      Socket soc=new Socket(InetAddress.getLocalHost(),port);
                      InputStream in=soc.getInputStream();
                      OutputStream out=soc.getOutputStream();            
                      System.out.println("Give your data:");
                      String str;
                      str=sc.next();                      
                      byte buf[]=str.getBytes();
                      out.write(buf);                   
                      int c;
                      str="";
                      byte buff[]=new byte[100];
                      c=in.read(buff);
                      for(int i=0;i<c;i++)
                                  str = str+(char)buff[i];
                      System.out.print("Reverse string received from server is : "+str);                     
          }
    }

    Server side
    import java.net.*;
    import java.io.*;
    import java.util.*;
    class tcpserver
    {
          public static void main(String args[]) throws IOException
          {
                      Scanner sc=new Scanner(System.in);             
                      System.out.println("Enter Port:");
                      int port=sc.nextInt();                    
                      ServerSocket ss=new ServerSocket(port);
                      System.out.println("Waiting for Client...");
                      Socket soc=ss.accept();               
                      InputStream in=soc.getInputStream();
                      OutputStream out=soc.getOutputStream();            
                      String str = " ";
                      byte buf[]=new byte[100];
                      int n=in.read(buf);
                      for(int i=0;i<n;i++)
                                  str = str+(char)buf[i];
                      System.out.println("Received: "+str);             
                      String str1 = " ";
                      for(int i = str.length()-1;i>=0;i--)
                                  str1 = str1+str.charAt(i);
                      byte buff[] = str1.getBytes();
                      System.out.println("Writing to client");
                      out.write(buff);
          }
    }  


    Output:


        
    Continue Reading
    Posted by Unknown at August 05, 2017 No comments:
    Labels: connection from client program, javalearning, listens on port for incoming, reads, reverse chars

    Sunday, 25 June 2017

    Implement TCP Server for transferring files using Socket and ServerSocket.

    transferring file June 25, 2017 0
    Implement TCP Server for transferring files using Socket and ServerSocket.
    Source Code:

    Continue Reading
                                          
    Posted by Unknown at June 25, 2017 No comments:
    Labels: javalearning, ServerSocket, Socket, tcp, TCP Server, transferring file

    Friday, 21 August 2015

    Windows-10

    windows 10 August 21, 2015 0
    Windows-10






    The best hidden features tips and tricks of Windows - 10


    Start Menu Clip Windows 10

    And if you’re a computer nut like me, tweaking the OS is always the fun part. Discovering and implementing power user tips are my favorite part of getting a major new version of an OS. I still remember back when DOS 5.0 came out, and I was running DOS 3.3, and I got to try all these new things to optimize my 286.
    Continue Reading
                                          
    Posted by Unknown at August 21, 2015 No comments:
    Labels: os, tips, triks, windows, windows 10

    Saturday, 7 March 2015

    iPhone 6

    top 10 March 07, 2015 0
    iPhone 6

    Key Features: 4.7-inch screen; Apple A8 processor; Up to 128GB storage; NFC; iOS 8, Touch ID




    Continue Reading
                                          
    Posted by Unknown at March 07, 2015 No comments:
    Labels: Apple, iphone 6, Mobiles, top 10

    Sunday, 14 September 2014

    Android 02

    toast September 14, 2014 0
    Android 02

    Today we will learn to display message with new things. for example you will write your name in edittext you will het hie name...
    •  to make this thing we need a..
      • Button for click
      • edittext to write your name
      • toast for display message

    About application:
    • this simple app contain.when you write your name on edittext it will display message with hie.
    Names :
    • java file::MainActivity.java
    • xml file::activity_main.xml

    STEP 1:: activity_main.xml

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".MainActivity" >

        <EditText
            android:id="@+id/txt1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="42dp"
            android:ems="10" />

        <Button
            android:id="@+id/bnt1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/txt1"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="38dp"
            android:text="clickme" />

    </RelativeLayout>

    STEP 2:: MainActivity.java


    package com.example.athome;

    import android.os.Bundle;
    import android.app.Activity;
    import android.view.Menu;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.Toast;

    public class MainActivity extends Activity implements OnClickListener{
    Button bnt1;
    EditText txt1;
    String str;


        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            txt1=(EditText) findViewById(R.id.txt1);
            bnt1=(Button)findViewById(R.id.bnt1);
            str=txt1.getText().toString();
            bnt1.setOnClickListener(this);
            
            
        } 


        @Override
        public boolean onCreateOptionsMenu(Menu menu) {
            // Inflate the menu; this adds items to the action bar if it is present.
            getMenuInflater().inflate(R.menu.main, menu);
            return true;
        }


    @Override
    public void onClick(View v) {
    // TODO Auto-generated method stub
    if (v.getId()==R.id.bnt1) 
    {
    Toast.makeText(this,"hie "+txt1.getText(), Toast.LENGTH_LONG).show();
    }

    }
        
    }


    Here ends our 2 lesson.if you like then comment it. 
    Continue Reading
    Posted by Unknown at September 14, 2014 No comments:
    Labels: Android Learning, button click, edittext, toast

    Saturday, 13 September 2014

    Android 01

    message display September 13, 2014 0
    Android 01
                 How to make your first application on android

    • Thinks you required :
      1. sdk
      2. eclips
    IF you r complete setup you can develop first application:
    • this appellation contain 
      • using of java
      • using of xml file
    About application:
    • this simple app contain.when you click on button message is displayed as given in below picture.


    Names :
    • java file::MainActivity.java
    • xml file::activity_main.xml
    STEP 1:: activity_main.xml

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".MainActivity" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="While click message displayes.." />

        <Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/textView1"
            android:layout_below="@+id/textView1"
            android:layout_marginTop="15dp"
            android:text="Button" />

    </RelativeLayout>

    STEP 2:: MainActivity.java


    package com.example.myfirstapp;

    import android.os.Bundle;
    import android.app.Activity;
    import android.view.Menu;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.Toast;

    public class MainActivity extends Activity implements OnClickListener {
    Button b1;
    @Override
    protected void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    b1=(Button)findViewById(R.id.button1);
    b1.setOnClickListener(this);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
    }

    @Override
    public void onClick(View v) {
    // TODO Auto-generated method stub
    Toast.makeText(this, "I am button which you clicked", Toast.LENGTH_LONG).show();
    }

    }



    Here ends our 1 lesson.if you like then comment it. 
    Continue Reading
    Posted by Unknown at September 13, 2014 No comments:
    Labels: Android Learning, button click, message display

    Wednesday, 23 July 2014

    10. Motorola Moto X Review

    top 10 July 23, 2014 0
    10. Motorola Moto X Review
    Moto gets the mid-range right

    Motorola Moto X


    Continue Reading
                                          
    Posted by Unknown at July 23, 2014 No comments:
    Labels: Mobiles, Moto X, Motorola, top 10

    9. LG G2 Review

    top 10 July 23, 2014 0
    9. LG G2 Review

    LG G2









    Continue Reading
                                          
    Posted by Unknown at July 23, 2014 No comments:
    Labels: G2, Mobiles, top 10

    8. Sony Xperia Z1 Compact Review

    Z1 Compact July 23, 2014 0
    8. Sony Xperia Z1 Compact Review
    The right way to go compact

    1.jpg


    Continue Reading
                                          
    Posted by Unknown at July 23, 2014 No comments:
    Labels: Mobiles, top 10, Xperia, Z1 Compact

    7. Samsung Galaxy S5 Review

    top 10 July 23, 2014 0
    7. Samsung Galaxy S5 Review
    Samsung Galaxy S5 Active goes official

    The Galaxy S5 Active is water, dust and shockproof with IP67 and MIL-spec 810G certifications. 




      Continue Reading
                                            
      Posted by Unknown at July 23, 2014 No comments:
      Labels: Mobiles, s5, top 10
      Older Posts Home

      Subscribe!

      Judul Blog

      TR

      Our blog is cool because of it's simple look. We focus on quality not quantity. We hope you will enjoy our blog visit experience.

      Contributors

      • Unknown
      • Unknown

      Popular

      • DON'T Buy The iPhone X??Do iPhone X Worth It
        DON'T Buy The iPhone X??Do iPhone X Worth It
        DON'T Buy The iPhone X??Do iPhone X Worth It
      • HOW ANONYMOUS MAILING USING PHP SCRIPT WORKS?
        EMAIL SPOOFING: HOW ANONYMOUS MAILING USING PHP SCRIPT WORKS? Hi friends! Few weeks back I have got few mails asking me to write on t...
      • Huawei Ascend Y530 Review
        Huawei Ascend Y530 Review
        Key Features : 4.5-inch IPS screen; Snapdragon 200 CPU Manufacturer: Huawei
      • INTRODUCTION TO PROXY SITES
        INTRODUCTION TO PROXY SITES Basic idea about how proxy works! Hey guys, today I will share about Proxy sites, what it is and its us...
      • EE Kestrel review
        EE Kestrel review
        Key Features : 4.5-inch 960 x 540 pixel screen ; Android 4.2 with EmotionUI 2.0; Quad-core 1.2GHz Snapdragon 400 CPU

      FB

      Categoreis

      • email (3)
      • error (7)
      • facebook (3)
      • fake (3)
      • fake mail (1)
      • macintosh (1)
      • malware (1)
      • message display (1)
      • mobile (83)
      • website (6)
      • windows 8.1 (4)

      About

      authorHello, my name is Jack Sparrow. I'm a 50 year old self-employed Pirate from the Caribbean.
      Learn More →

      Total Pageviews

      Instagram

      • Home
      • Shortcodes
      • About
      • Contact
      • 404
      Crafted with by Templatesyard | Distributed By Gooyaabi Templates