Latest From My Blog

Showing posts with label Knowledge. Show all posts
Showing posts with label Knowledge. Show all posts

Knowledge: Some good computer tricks 2

1. Some trick for Gmail users

To open only unread emails , just type is:unread in search box.
You can also open is:starred , is:read , is:muted , is:chat.


if you want to open unread emails from inbox only then type
is:unread label:inbox  in search box.




For other labels just use label:spam , label:chats e.t.c  and You can combine the keywords according to use.

2. How to enable GodMode on Windows. 

This is a very simple trick.
a. In any drive of your computer create a New Folder and rename it as GodMode.


b. Now append the string (without quotes) “.{ED7BA470-8E54-465E-825C-99712043E01C}” after the name of the folder so that the resultant string looks like “GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}”

c. Once you renamed the folder, the icon of the folder will change automatically and the name will be changed to GodMode.

PS: Note that any changes that you make on the God Mode will be made directly to the system so don’t make any major changes unless you are very sure about it.
You may rename it i.e. instead of GodMode any other name can be used.

GodMode contains list of all computer settings.


Below are the two screenshot of the settings. Apart from that there are many more settings you will find in GodMode (all categorized and accessible from one folder- GodMode)


More to come.. Stay tuned.. :)

Knowledge: Some good computer tricks

1. Finding Windows Product Key

Assuming you can boot your computer without any problems, you can easily create a simple VBscript that will read the value out of the registry and then translate it into the format that you need for reinstalling.

Copy and paste the following into a Notepad window:


Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
 
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

You’ll need to use File -> Save As, change the “Save as type” to “All Files” and then name it productkey.vbs or something similar ending with the vbs extension. We’d recommend saving to the desktop for easy access.


Once you’ve saved it, you can just double-click and the popup window will show you your product key.

Note :- If you use CTRL + C when the popup window is active, it will copy the contents of the window to the clipboard, and then you can paste it into Notepad or somewhere else.

2. Locate Your Android Phone Easily

It is very common situation when you can't find your phone. Then you start looking for it , searching in places like under the pillow , in some jeans pocket, bag etc, or may be that you left it in some place which definitely  you don't recall. Then you find some one who could make a call , but you realize that its on silent mod.


There are some apps available but what if you are just like me and a lot of us who don't have it installed. Here comes a Giant to save you all and search your android Phone in minutes. You don't need to find some other phone to ring your to find or to find the location of the phone if it is lost/stolen. The Giant named Google has it all figured out.

on Google just search  "find my phone" 
Baam!, There you go.
Google will now locate your phone.

  • You can now Ring you phone for 5 min in full volume even if it was in silent mod. It actually schedules a ring if the phone cannot be reached instantly.
  • You can in worst case erase your phone, helpful when phone gets stolen and sensitive data is there.
  • You can now be little more careless.
3. Create your own wifi hotspot on Windows 7 or 8 without using any external applications


You don't need "Connectify" or any other software for it. Also, you can save yourself from that 90 minutes counter in connectify. 

All you need to do is run the following two commands in cmd - 

Open cmd with Run as Administrator.

1) netsh wlan set hostednetwork mode=allow ssid=wifiname key=wifipassword
2) netsh wlan start hostednetwork

Best solution - Make a batch file of it and just run the file every time when you start the pc. 

To make a batch file -
First write the commands on a notepad


Then save it with the extension bat.  e.g. wifi.bat

Your batch file is made and now execute the file with Admin Privileges.

Important - For this to work, your sharing should be on in network properties for  the network/ethernet connection that you want to share through your  wifi:

Go to Open Network and Sharing Centre ->Change Adapter Settings(On left panel)\
Your wifi hotspot would be Microsoft Hosted Network Virtual Adaptor in the Network Connections.

Go to the properties of the LAN/ethernet/WiFi connection and make the changes accordingly.



Your wifi hotspot would be ready. :)

To stop the wifi hotspot - 
Write the following in command prompt (or create a batch file similar to above) : netsh wlan stop hostednetwork.

More coming soon.. :)

[Knowledge]: How are images displayed on screen by code ?

First, a little about how we perceive images and then the details about how it is displayed on the computer screen.

Every object's color we see is a composite of Red, Green and Blue components. The mixture of these primary colors in different proportions produces the entire spectrum of colors we can see. There are two ways we can understand this - One is the additive color system and the second is the subtractive color system.

In an additive color scheme, we understand colors as a mixture of primary colors - Red, Green and Blue (RGB). For example, Yellow is an equal mixture of Red and Green colors. White is an equal mixture or red, green, blue components.


In the subtractive scheme, we understand colors based on what quantities of primary colors are absorbed by an object and what is reflected off of it. For example, an object in white light that absorbs no wavelengths of the visible light spectrum appears white because it reflects everything. Similarly, an object appears black because it absorbs everything and reflects nothing. 

How colors are represented in a computer and rendered on the screen:

In a computer, the primary colors Red, Green and Blue are represented by bits. These bits are rendered by tiny display units called pixels. The display unit is a huge grid of individual pixels and each pixel can display a mixture of primary colors. Now if you have one bit for each color RGB, how many different colors could be represented with it? The answer is 2^3=8 colors. Each bit can take a value 0 or 1.

R G B                           R G B               R G B                           R G B
0  0 0    = Black            1  0 0  = Red    0  1 0 = Green               0 0  1 = Blue

R G B                            R G B                  R G B               R G B   
1  1  1   = White             1  1 0 = Yellow   0  1 1 = Cyan   1  0  1  = Magenta

Computers usually deal with 8 bits of information for every color for each pixel. So each component R,G or B can take 256 different values. That's 256 different shades of Red, Green and Blue or 256^3 = 16 million different color combinations that can represent virtually any color possible.


An image file like bitmap (.bmp) consists of color data for each pixel and color in a grid called the raster. You can visualize the raster as follows:


Each square represents a pixel and for each pixel, the image file holds the exact mixture of Red, Green and Blue colors. On a monitor, there are thousands of pixels close to each other. They are so tiny that the human eye cannot spot them. This is the secret of producing a life like image on screen. Because the pixels are so densely packed (On a 15 inch screen with resolution of 1366x768, there are 104 pixels per inch (PPI), the human eye cannot distinguish between individual pixels.

This raster data is then mapped to the screen where it is displayed. Each pixel takes the color corresponding to it's position in the raster data. See the image below. On the left side is the image that you normally see. But when you zoom in, you can see individual pixels taking different colors.


How are pixels actually rendered on screen?

This depends on the type of monitor. In the old days, we had the Cathode Ray Tube (CRT monitor).


In a CRT monitor, there exists a device called the electron gun which shoots electrons onto a phosphor screen. Phosphor is a fluorescent material and glows when electrons bombard them. The color produced by the phosphor element depends of the energy of the electrons which is controlled by the electron gun.

The electron gun shoots electrons and the trajectory of electrons is controlled by magnetic deflections. Based on the raster data, the electron gun starts at the top left and shoots electrons line by line at the desired energy based on the color that is to be produced at that point. Once it reaches the bottom of the screen, it goes back up and repeats. This process is called scanning and the rate at which it happens is called the refresh rate.


We have come a far way from CRTs and now have TFT LCD (Thin film transistor Liquid Crystal Display) screens. These screens work very differently. They rely on a special property of Liquid Crystals in the presence/absence of an electric field. Liquid crystals in a twisted nematic state reorient polarized light.

In a LCD display, the liquid crystal is sandwiched between two polarizers that are 90 degrees out of phase (1 and 5 in the figure below are polarizers).


When light passes through the first polarizer, it gets horizontally oriented. When there is no electric field, the Liquid crystal reorients this light and brings it in phase with the second polarizer. When an electric field is applied, the molecules in the liquid crystal align with the field and untwist. In this state, it doesn't reorient the light. Since the light is 90 degrees out of phase with the second polarizer, it cannot pass through it. White light source is used to illuminate the panel and filters are used to produce color.


In a  TFT LCD, the electric field is controlled by thin silicon transistors arranged in a grid. Each pixel in the grid has a liquid crystal element sandwiched between two capacitive plates supplied by the transistors. By turning the transistors on and off, we can control the intensity and color produced by the pixels.


The hardware takes care of rendering the image and the device drivers know how to communicate the raster to the hardware (it's hardware specific). The only thing left is to create the image file. There are different formats, but they all contain the RGB information about pixels.

fffeewww.... Thats huge... Hope now you know how these things actually work. This article has been contributed by someone on quora so I thought its useful..

Later, people.... :)
+