Sunshine blogger award

I have been nominated for this award by Murshid akram. He is a very nice blogger whose blog posts inspire the reader in all aspects of life. It is worthy to check out his blog.

The Rules:

  • Thanks the person who nominated you
  • Link the post back to them
  • Answer their questions
  • Display the picture on your post
  • Nominate 10 bloggers
  • Provide 11 questions to your nominees

Here are my answers to the questions which are asked:-

Q: Tell me something about your best friend?

A: My best friend is really the best. We were in school when we became good friends. Actually our friendship started when we joined the same tution coaching. She is as cute as a teddy bear pinching whose cheeks gives a lot of fun 😂 When we two meet even the devils get scard of us , in the sense we are soo naughty and troublesome….

Q: What are importance of your family in your life?

A: Family is something which is too lengthy to define. According to me, i can live qithout oxygen but not without my family. If my dad is the head of the house, then my mom is theheart of the house. Its impossible to even imagine my life without them.

Q: How do you feel when you see someone in need?

A: There is no use of only having feelings for the person in need. What i believe is helping the needy person is the best thing anyone can do. Helping a person in need, is the bonus of blessings we recieve from that person. With feelings we need to give a helping hand.

Q: What inspires you to write blog?
A: I was interested in becoming a writer , but due to some circumstances i had to let go off a dream to be a writer and i joined science and now im in a process to become a software engineer. My dream of becoming a writer inspires me to write blogs.

Q: What are your 5 goods and bad qualities?

A: I myself cant say what are my good qualities. People who deal with me can define my qualities both good and bad.

Q: What’s your aim in life?

A: My aim is to be a good person who makes evryone happy and contented. This sounds kiddish but yes its true. I cant see people crying i want to make every person happy.

Q: Which exercise you do or which sports you are interested in?

A: I do fitness exercise. From scool days i was a basket ball player so im interested in basketball. And seeing my male friend play football and i like football too

Q: According to you what are the best 5 qualities should everyone possess?

A: First and for most everyone must extend a helping hand for the one in need without any conditions. Every person must have a smiling face no matter what pain he has inside so that other person smiles by seeing his smile. Empathy – the ability to understand and sympathize with another’s emotions. Honesty – the quality of being truthful. Respectful – understanding that someone is important and should be treated appropriately. Everyperson must have these qualities for betterment of the society.

Q: What kind of suggestions you can give me for my best?

A: Your blog is really good. Keep working hard and inspire the world with your blogs.

Q: What’s your favourite dish?

A: A good question to the foody person.. Im reaaly foody i like different types of dishes but non veg food is the most favourite…

Q: What are your thoughts about different religions?

A: The only thing i would like to tell is that god is one and we have given it different names and we all the religions are together with love.

You had a good thought for asking questions thank you soo much.
My 10 nominees for this award are:

  1. Akashsoyanthone
  2. Thisisastha
  3. Jaksky
  4. Nandini jain
  5. Niharika sharma
  6. Priyanka bhowmick
  7. Refiltaai
  8. Simple Ula
  9. Sage
  10. Wakirawasim

My 11 questions to my nominees:

  1. What are you good at?
  2. Why did you start blogging?
  3. What is the role of a mother according to you?
  4. What is the most important thing you have in your life?
  5. What is the importance of having a pet?
  6. What good qualities you have?
  7. As a blogger what are you giving to the world though your writings?
  8. Is it easy to handle personal and professional life together?
  9. What are your feelings towards the needy person?
  10. How do you want this world to be?
  11. What would you give your mom in return for what she does to you?

Thank you!

Adobe photoshop-tips for beginners

The term Photoshop has become so integrated into our digital lives that we’ve even turned it into a verb to describe all altered photos… even if the outcome can be a little ridiculous at times.

Once regarded as a complicated secret weapon for graphic designers only, now nearly anyone with computer access can master this tool with nearly the same ease as creating a code-free website.

From a blemish removal to adding some impressive design elements, anyone can learn the basics of Photoshop. Here are some of our favorite simple tips and tricks for photoshop beginner.

Transform: Change the size of an image, rotate, flip or distort it!

Press Ctrl + T on your keyboard and a bounding box will then appear around the image, indicating transformation. This means you can now resize your image.

To flip your image vertically or horizontally press Ctrl + T and then right click your mouse. A popup window will appear with a few options for rotating and flipping the image. Select the action you want and when you are done press Enter.

To distort or skew an image press Ctrl + T and then place the cursor on whichever corner you want to distort. Press Ctrl while holding your mouse down on whichever corner of the image you’re looking to morph and drag it down to your desired point, finally press Enter to activate.

CHANGE THE UNIT OF MEASUREMENT:
Place your cursor on one of the rulers on your grid (press Ctrl + R to show or hide the rulers), and right click, then choose a new unit from the context menu. There you’ll find a wide variety of units, from centimeters to pixels, millimeters, points and even percents.

MAGNETIC LASSO TOOL:

Found in plain sight in your Photoshop tool-panel, the Lasso tool is basically man’s gift to photo editing.

This easy selection tool helps you trace and outline the exact part of an image that you’re looking to edit, and then separate it from the rest of your image in order to perform certain actions. For example, you can select and separate a product from its background. Nearly fool-proof, the magnetic lasso tool detects the edges of an object, so it works best when you have a bold contrast between an object and its background with well-defined edges.

To access the Magnetic Lasso, click and hold your mouse button down on the Lasso tool until a fly-out menu appears . The Magnetic Lasso is the last one with a small magnet on its icon. Select it and then go to your image and place your mouse on the edge of the part you want to alter. Click your mouse once, release and just go over the edges of the object you want to select (just like you do with scissors when you cut something out).

MAGIC WAND TOOL:

The Magic Wand is another selection tool, ideal for when you are working with a background that is more monotone and consistent (like a solid color or clear blue sky).

The Magic Wand tool is most often used to switch up backgrounds or large color blocks. To use it, choose the Magic Wand tool from the tools panel and click on the part of the image you want to select. Make sure that you toggled the “add to selection” option on the top bar (icon of two squares) so that you can move forward with switching up the colors and tones of your selection.

CUSTOM SHAPE TOOL:
you can also easily add shapes and design elements to your Photoshop creations. The Tool Panel has all of the basic shapes you need like square, line, circle, ellipse etc in addition to a whole slew of extended options. The Custom Shape tool is easy to find in the Options Bar, represented by an icon that kind of looks like a puzzle piece.

ADJUSTMENT LAYERS:
A truly stunning image generally has more to it than meets the eye. That’s what makes the Adjustment Layers tool so important. You will find Adjustment Layers in the bottom of the the Layers Panel (a black and white circle icon).

LAYER STYLES:

Layer Styles are special effects that can be quickly applied to individual layers of your image. All you have to do is double click on a layer and then choose the effect you like.

You can select from a whole variety of features, add a stroke or a glow, drop a shadow, and much more with just a click of the mouse.

SPOT HEALING BRUSH:
The spot header brush is that magic tool that we wish was around in our awkward teenage years to make pimples disappear from every picture. Just place the brush over the area you want to “fix”, make sure the brush is a bit bigger than the blemish and click. Photoshop automatically samples from around the retouched area to color match your image to perfection.

BLUR TOOL:
Sometimes all you need from Photoshop is to do away with some fine lines. That’s where the Blur tool comes in. This simple tool works wonders to remove small wrinkles by blurring them in just a bit. Use the Blur tool to smooth-out small imperfections like the wrinkles around the eye or mouth area and simply blur them into the background. Again, be gentle and remember not to overdo it or instead of improving your image or you can end up spoiling it.

Rederence: The wix blog.

A first simple program in java

The output of the above program is: hello world

  1. Compiling the program in jdk:
  • The name of the source file should be Simple.java
  • To compile the Simple program, execute the compiler, javac, specifying the name of the source file on the command line: C:\>javac Simple.java
  • The javac compiler creates the file called Simple.class that contains the bytecode version of the program.
  • The java bytecode is the intermediate representation of the program that contains instructions the java virtual machine will execute.
  • Thus, the output of the javac is not code that will be directly executed.
  • To run the program you must use java application launcher, called java. C:\>java Simple
  • When the program is run, the output will be displayed.

2. Explanation:

  •  class Simple {
    This line uses the keyword class to declare that a new class is being defined.
     Simple is an identifier that is the name of the class.
  •  The entire class definition, including all of its members, will be between the opening
    curly brace ({) and the closing curly brace (}).
     public static void main(String args[]) {
     This line begins the main( ) method. This is the line at which the program will begin
    executing. All Java applications begin execution by calling main( ).
     The public keyword is an access specifier, which allows the programmer to control the
    visibility of class members.
  • When a class member is preceded by public, then that member may be accessed by code outside the class in which it is declared.
     main( ) must be declared as public, since it must be called by code outside of its class when the program is started.
     The keyword static allows main( ) to be called without having to instantiate a particular instance of the class. This is necessary since main( ) is called by the Java Virtual Machine before any objects are made.
     The keyword void tells the compiler that main( ) does not return a value.
     String args[ ] declares a parameter named args, which is an array of instances of the class String.
     args receives any command-line arguments present when the program is executed.
     System.out.println(“This is a simple Java program.”);
     Output is actually accomplished by the built-in println( ) method, println( ) displays the string which is passed to it.
     System is a predefined class that provides access to the system, and out is the output stream that is connected to the console.

Java’s magic: The bytecode

The key that allows Java to solve both the security and the portability problems is that the
output of a Java compiler is not executable code. Rather, it is bytecode.
 Bytecode is a highly optimized set of instructions designed to be executed by the Java
run-time system, which is called the Java Virtual Machine (JVM).
 modern programming languages are designed to be compiled into executable code
because of performance concerns
 Translating a Java program into bytecode makes it much easier to run a program in a
wide variety of environments because only the JVM needs to be implemented for each
platform.
 Once the run-time package exists for a given system, any Java program can run on it.
 the JVM will differ from platform to platform, all understand the same Java bytecode.
 If a Java program were compiled to native code, then different versions of the same
program would have to exist for each type of CPU connected to the Internet. This is, of
course, not a feasible solution.
 Thus, the execution of bytecode by the JVM is the easiest way to create truly portable
programs.

The fact that a Java program is executed by the JVM also helps to make it secure.
 Because the JVM is in control, it can contain the program and prevent it from generating
side effects outside of the system.
 bytecode has been highly optimized, the use of bytecode enables the JVM to execute
programs much faster

Servlets: Java on the Server Side
 A servlet is a small program that executes on the server.
 Just as applets dynamically extend the functionality of a web browser, servlets
dynamically extend the functionality of a web server.
 Servlets are used to create dynamically generated content that is then served to the client.
 For example, an online store might use a servlet to look up the price for an item in a
database. The price information is then used to dynamically generate a web page that is
sent to the browser.
 Servlets increases performance.
 Because servlets (like all Java programs) are compiled into bytecode and executed by the
JVM, they are highly portable. Thus, the same servlet can be used in a variety of different
server environments

Java buzz words

Java buzz words are:

  1. Simple
  2. Portable
  3. Security
  4. Object oriented
  5. Robust
  6. Multithreaded
  7. Architecture-neutral
  8. Interpreted
  9. High performance
  10. Dynamic
  11. Distributed.

Let us explain each one of them

  1. Simple: Java was designed based on C and C++ languages which can be easily understood by the new programmers.
  2. Portable:Different computers and operating systems get connected to internet. Java program must be able to run on any computer connected to internet. The same applet must be able to download on all computers and opreating systems.
  3. Security: java achieved security by confining java applet to the java execution environment and not allowing it to accejavass other parts of computer.
  4. Object oriented: java is an object oriented programming language. Almost everything in java is in objects.
  5. Robust: To gain reliability, java checks the program for errors at early stage. It is strictly typed language, it checks the code during compilation time and also at runtime.
  6. Multithreaded: java programs can do many things simultaneously. The java run time system supports multiprocess syncronization that enabkes to construct smoothly running interactive systems.
  7. Architecture-neutral: A central issue for the Java design was that of code longevity and portability.
     As Operating system upgrades, processor upgrades, and changes in core system resources
    can all combine to make a program malfunction. (same program will not execute in
    different platforms)
     Java Virtual Machine in an attempt to alter this situation. The goal is “write once; run
    anywhere, any time, forever.”
  8. Interpreted and high performance: Java enables the creation of cross-platform programs by compiling into an intermediate
    representation called Java bytecode. This code can be executed on any system that
    implements the Java Virtual Machine.
     the Java bytecode was carefully designed so that it would be easy to translate directly
    into native machine code for very high performance by using a just-in-time compiler.
  9. Distributed: Java is designed for the distributed environment of the Internet because it handles TCP/IP
    protocols.
     Java supports Remote Method Invocation (RMI). This feature enables a program to
    invoke methods across a network.
  10. Dynamic:
     Java programs carry run-time type information that is used to verify and resolve accesses
    to objects at run time.
     This makes it possible to dynamically link code in a safe manner.
     This is crucial to the robustness of the Java environment, in which small fragments of
    bytecode may be dynamically updated on a running system.

INTRODUCTION TO JAVA

Java is the most important computer language used to build apps and also html tags.

Java is an object-oriented programming language developed by Sun Microsystems, a company
best known for its high-end Unix workstations.
• Java is modeled after C++• Java language was designed to be small, simple, and portable across platforms and operating
systems, both at the source and at the binary level
• Java also provides for portable programming with applets. Applets appear in a
Web page much in the same way as images do, but unlike images, applets are
dynamic and interactive.
The C# Connection
 Java’s innovative features, constructs, and concepts have become baseline for any new
language.
 C# is closely related to Java.Created by Microsoft to support the .NET Framework.
 Both languages share the same general syntax, support distributed programming, and
utilize the same object model.
 There are differences between Java and C#, but the overall “look and feel” of these
languages is very similar.
How Java Changed the Internet
 Applet changed the way the content can be rendered online.
 Java also addressed issues associated with the Internet: portability and security
Java Applets
 An applet is a special kind of Java program that is designed to be transmitted over
Internet and automatically executed by a Java-compatible web browser.
 If the user clicks a link that contains an applet, the applet will be automatically
downloaded and run in the browser.
 Applets are typically used to display data provided by the server, handle user input, or
provide simple functions, such as a loan calculator, that can execute locally, rather than
on the server.
 The applet allows some functionality to be moved from the server to the client.
 In a web page majorly two types of content is rendered.
 1
st passive information (reading e-mail,is viewing passive data)
 dynamic, active program( the program’s code execution)
 Applet is a dynamic, self-executing program on the client computer, yet it is initiated by
the server.

Dynamic, networked programs are serious problems in the areas of security and
portability. As program that downloads and executes automatically on the client
computer must be prevented from doing harm.
 It must also be able to run in a variety of different environments and under different
operating systems.
 Java solved these problems in an effective and elegant way.

Reference: java-the complete reference by herbet shield.

Basic functional units of a computer. 

A computer consists of five basic functional units i.e., memory, input, output, arithmetic and logic and the control. The input unit accepts the coded information from the human user or the electromechanical devices such as keyboards or from other computers.

  • INPUT UNIT:Computers accept the data through the input units provided by the user in the form of coded information. Whenever a key is pressed, it is converted into its binary code and transmitted over a cable either to the memory or to the processor. 
  • MEMORY UNIT: It is a unit where the programs and data are stored. There are two types of storage: primary and secondary. Primary memory is the fast memory that operates at electronic speeds. Programs must be stored in memory during execution. To provide access to any word in the memory, address is associated with a word location. Address is just a number to know where the word is situated in a location. Secondary memory is used to store huge programs. 
  • ARITHMETIC AND LOGIC UNIT: programs are executed in ALU. Any mathematical operations to be performed are done by the ALU.
  • OUTPUT UNIT: The processor has to  send the output with the help of output unit. 
  • CONTROL UNIT: It controls the input and output functions to be performed. 

      My article is completely for study purpose. Any students interested in computer knowledge can contact me any time in the comments.