Posts

Server - Database

Image
Shared Hosting: Multiple Web Site in a single server which is the functionality of web server application, uses different http folder for each site. Virtual Private server: Web Server is differnent for each web app with own OS. Single Machine has can have multiple OS through virtualization or may have different Machine which is connected with a Proxy server. Proxy server decides which request forward to which machine or which vm machine same. Load Balancing: A load balancing setup includes a load-balancing virtual server and multiple load-balanced application servers. The virtual server receives incoming client requests, uses the load balancing algorithm to select an application server, and forwards the requests to the selected application server. Concurrent Request This is configurable by selecting multi-process or mutli-thread. where number of max thread can be selected. After reaching that max number of thread, new process will be created. Also, queue mechanism can ...

Computer Vision

Image
Global Feature &  Local Feature Global features (e.g., color and texture) aim to describe an image as a whole and can be interpreted as a particular property of the image involving all pixels.  While, local features aim to detect keypoints or interest regions in an image and describe them. In this context, if the local feature algorithm detects  n  keypoints in the image, there are n  vectors describing each one’s shape, color, orientation, texture and more.  The use of global colour and texture features are proven surprisingly successful for finding similar images in a database, while the local structure oriented features are considered adequate for object classification or finding other occurrences of the same object or scene . Meanwhile, the global features can not distinguish foreground from background of an image, and mix information from both parts together. Additionally, local feature descriptors are proven to be a good choice ...

Opengl-es Buffer

Image
Framebuffer A  Framebuffer  is a collection of buffers that can be used as the destination for rendering. OpenGL has two kinds of framebuffers: the  Default Framebuffer , which is provided by the  OpenGL Context ; and user-created framebuffers called  Framebuffer Objects  (FBOs). The buffers for default framebuffers are part of the context and usually represent a window or display device. The buffers for FBOs reference images from either  Textures  or  Renderbuffers ; they are never directly visible. Default Framebuffer The Default Framebuffer is the Framebuffer that OpenGL is created with. It is created along with the OpenGL Context. Like Framebuffer Objects , the default framebuffer is a series of images. Unlike FBOs, one of these images usually represents what you actually see on some part of your screen. Framebuffer Object FBO contains a collection of rendering destinations; color, depth and stencil buffer. These logical buff...

GPU Pipeline

Image
Graphics Pipeline Geometry and primitives Typically, An application is the place where we want to define the geometry that we want to render to the screen. This geometry can be defined by points, lines, triangles, quads, triangle strips... These are so called  geometric primitives.  These points will then reside in system memory.  Your application will use the 3D API to transfer the defined vertices from system memory into the GPU memory.  Vertices So we'll have a vertex that contains location, as well as color information. Vertex shaders A "pass-through" vertex shader will take the shader inputs and will pass these to its output without modifying these: the vertices P1, P2 and P3 from the triangle are fetched from memory, each individual vertex is fed to vertex shader instances which run in parallel.  Vertex processing computes the  normalized coordinate space position  of vertices.  The outputs from the vertex shaders are fed ...

CPU Pipeline

Image
History of CPU Pipeline The original 8086 processor has 14 CPU registers which are still in use today. Four are general purpose registers -- AX, BX, CX, and DX. Four are segment registers that are used to help with pointers -- Code Segment (CS), Data Segment (DS), Extra Segment (ES), and Stack Segment (SS). Four are index registers that point to various memory locations -- Source Index (SI), Destination Index (DI), Base Pointer (BP), and Stack Pointer (SP). The instruction pointer’s job is to point to the next instruction to be run. First, they follow the instruction pointer and decode the next CPU instruction at that location. After decoding, there is an execute stage where the instruction is run. Some instructions read from memory or write to it, others perform calculations or comparisons or do other work. When the work is done, the instruction goes through a retire stage and the instruction pointer is modified to point to the next instruction.  In 1982 an instructi...