General Keyboard Shortcut
|
|
---|---|
F1
|
Display Help
|
Ctrl+C
|
Copy the selected item
|
Ctrl+X
|
Cut the selected item
|
Ctrl+V
|
Paste the selected item
|
Ctrl+Z
|
Undo an action
|
Ctrl+Y
|
Redo an action
|
Delete
|
Delete the selected item and move it to the Recycle
Bin
|
Shift+Delete
|
|
F2
|
Rename the selected item
|
Ctrl+Right Arrow
|
Move the cursor to the beginning of the next word
|
Ctrl+Left Arrow
|
Move the cursor to the beginning of the previous
word
|
Ctrl+Down Arrow
|
Move the cursor to the beginning of the next
paragraph
|
Ctrl+Up Arrow
|
Move the cursor to the beginning of the previous
paragraph
|
Ctrl+Shift with an arrow key
|
Select a block of text |
Thursday 31 July 2014
Window 7 Shortcut Keys
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 25 July 2014
Window 7 Basic and Tutorial
The desktop (overview)
The desktop is the main screen area that
you see after you turn on your computer and log on to Windows. Like the top of
an actual desk, it serves as a surface for your work. When you open programs or
folders, they appear on the desktop. You can also put things on the desktop,
such as files and folders, and arrange them however you want.
The desktop is sometimes defined more
broadly to include the taskbar. The taskbar sits at the bottom of your screen.
It shows you which programs are running and allows you to switch between them.
It also contains the Start button, which you can use to access programs,
folders, and computer settings.
Icons are small pictures that represent
files, folders, programs, and other items. When you first start Windows, you'll
see at least one icon on your desktop: The Recycle Bin (more on that later).
Your computer manufacturer might have added other icons to the desktop. Some
examples of desktop icons are shown below.
Double-clicking a desktop icon starts or
opens the item it represents.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 21 July 2014
How to Find a Computer's MAC Address (Windows 7 and Vista)
A media access control address (MAC address) is a unique identifier assigned to network interfaces for communications on the physical network segment. MAC addresses are used as a network address for most IEEE 802 network technologies, including Ethernet. Logically, MAC addresses are used in the media access control protocol sublayer of the OSI reference model.
You can see your mac address by using following steps
open start menu and Type ncpa.cpl into the search box and press ENTER as in image.
Right-click your Local Area Connection and select Status or just double click on Local Area Icon
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 17 July 2014
Compare date in php
It’s really a horrible thing to work on date to being a
programmer. If language is PHP then it’s too hard to achieve but don’t worry I have
a best trick to solve it just take a look on following lines.
In PHP Date store in string format internally and time is
store integer internally. You just have to change date into its equivalent time
integer value and compare their integer as we work on number.
function compare_date($d1,$d2)
{
$date1=strtotime($d1);
$date2=strtotime($d2);
if($date1>$date2)
echo "First Date is greatest one";
else
echo "Second Date is greatest one";
}
I am using function for implement your logic you can work it where you want without using function
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 9 July 2014
First Things of Computer world
First Email Message
Ray Tomlinson |
The first email was sent by Ray Tomlinson to himself in 1971. "The test messages were entirely forgettable. . . . Most likely the first message was QWERTYIOP or something similar," he said.
First Domain
The first domain registered in 15-March 1985 named symbolics.com
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 5 July 2014
Which is better between LCD screen and LED Screen
The differences between LED and LCD TV to a consumer as well as from the technical point of view are as follows:-
1. The viewing angle of LCD TV is less than that of LED TVs. LCD TVs are best viewed directly from in front and at the same plane as the screen i.e. a good view is not possible if viewed from the sides or from above or below the TV screen. LED TVs, on the other hand, has greater viewing angle.
2. LCD TVs can not be viewed under bright environment whereas LED TVs can be viewed even under direct sunlight. This is so because, the screen of LCD TVs made up of liquid crystals which changes color on passing current though it. Unlike LCD TVs, LED TV screens are made up of Light Emitting Diodes. Therefore, each tiny dot of light (pixel) on LED TV screen is like a light bulb and its glow is visible even under direct sunlight. For example, LCD TVs have the same screens as mobile phones and is not clearly visible under bright sunlight. You must have noticed that some mobile phones have light (a mobile torch).This torch is made up of an LED and thousands of such 'torch' form the LED TV screen.
1. The viewing angle of LCD TV is less than that of LED TVs. LCD TVs are best viewed directly from in front and at the same plane as the screen i.e. a good view is not possible if viewed from the sides or from above or below the TV screen. LED TVs, on the other hand, has greater viewing angle.
2. LCD TVs can not be viewed under bright environment whereas LED TVs can be viewed even under direct sunlight. This is so because, the screen of LCD TVs made up of liquid crystals which changes color on passing current though it. Unlike LCD TVs, LED TV screens are made up of Light Emitting Diodes. Therefore, each tiny dot of light (pixel) on LED TV screen is like a light bulb and its glow is visible even under direct sunlight. For example, LCD TVs have the same screens as mobile phones and is not clearly visible under bright sunlight. You must have noticed that some mobile phones have light (a mobile torch).This torch is made up of an LED and thousands of such 'torch' form the LED TV screen.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 1 July 2014
Working With Document Versions
When you store a version of your document using the versions feature, you can access previous versions, delete any of the versions stored with your document, and recover document versions to a new file.
To view a version of your document
1. Select Versions… from the File menu
2. In the Versions dialog box, highlight the version you would like to open
3. Click Open
1. Select Versions… from the File menu
2. In the Versions dialog box, highlight the version you would like to open
3. Click Open
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Captcha Using PHP
CAPTCHA which stands for “Completely Automated Public Turing test to tell Computers and Humans Apart” is a type o f challenge-response test to ensure that the response is only generated by humans and not by a computer.
In simple words, CAPTCHA is the word verification test that you will come across the end of a sign-up form while signing up for Gmail or Yahoo account. The following image shows the typical samples of CAPTCHA.
You can make captcha using PHP. Here I am making number
captcha which is achieved by an image. This image text is dynamically create by
php and stored in session. A user can verify whether valid captcha has been
entered or not.
Save this code in named captch.php
<?php
session_start();
$text = rand(10000,99999);
$_SESSION["vercode"] = $text;
$height = 25;
$width = 65;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 16 June 2014
What is the Difference Between Electronic and Electric?
In a number of instances, people tend to use the terms electronic and electricinterchangeably. While both terms are commonly employed when discussing electronics, there is a subtle difference between the correct usage of each word. Here is what you should know about the proper way to make use of both electronic and electric when speaking or writing.
Electric has to do with the general concept of electricity. It is generally acceptable to use the terms electric and electrical interchangeably. Essentially, the word "electric" will function as a way of qualifying the flow of electricity as it relates to a specific event. For example, if a fire starts due to a problem with wiring in a building, the event can be described as an electric or electrical fire, caused by the electric or electrical wiring. The use of electric identifies a source of power that serves to create a logical effect when conducted through a process or device.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 8 June 2014
Time Measurement Unit
Units for measuring time
half-hour
NOUN
a period of 30 minutes
hour
NOUN
a period of time that consists of 60 minutes. 30 minutes is usually called half an hour, 15 minutes can be called a quarter of an hour,and 45 minutes can be called three-quarters of an hour
hr
ABBREVIATION
hour
m
ABBREVIATION
minute
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 5 June 2014
Shannon Channel Capacity
In 1944 Claude Shannon introduce a formula to determine the
theoretical highest data rate for a a channel
C=B log 2(1+S/n)
In this formula, B is the bandwidth of the channel. S/N is
the signal to noice ratio and C is the capacity (Shannon Capacity) in BPS.
We can calculate the theoretical highest bit rate of regular
telephone.
A Telephone line normally has a bandwidth of 3000Hz. The signal
to noise ratio is usually 3162-(35db) for this channel capacity is
C=B log 2 (1+S/N)
C=3000 log2 ((1+3162)
C=3000 log2 (3163)
C=3000*1162
C=34860 BPS
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 28 May 2014
TCP/IP or OSI - Which one came first
The TCP/IP model, which is realistically the Internet Model, came into existence about 10 years before the OSI model.
History of TCP
From 1973 to 1974, Cerf's networking research group at Stanford worked out details of the idea, resulting in the first TCP specification. A significant technical influence was the early networking work at Xerox PARC, which produced the PARC Universal Packet protocol suite, much of which existed around that time.In March 1982, the US Department of Defense declared TCP/IP as the standard for all military computer networking. In 1985, the Internet Advisory Board (later renamed the Internet Architecture Board) held a three-day workshop on TCP/IP for the computer industry, attended by 250 vendor representatives, promoting the protocol and leading to its increasing commercial use.
In 1985, the first Interop conference focused on network interoperability by broader adoption of TCP/IP. The conference was founded by Dan Lynch, an early Internet activist. From the beginning, large corporations, such as IBM and DEC, attended the meeting. Interoperability conferences have been held every year since then. Every year from 1985 through 1993, the number of attendees tripled
Location:
Varanasi, Uttar Pradesh, India
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 27 May 2014
Lempel–Ziv–Welch Compression
Lempel–Ziv–Welch (LZW) is a universal lossless data compression algorithm created by Abraham Lempel, Jacob Ziv, and Terry Welch. The algorithm is simple to implement, and has the potential for very high throughput in hardware implementations. It was the algorithm of the widely used Unix file compression utility compress, and is used in the GIF image format.Its works like index backside of our notebook.
- I am taking string pattern for elaboration to show compression.
- Make your choice that how much character you want to take, I am taking 4 character maximum for dictionary entry
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 25 May 2014
Algorithms
Upper and Lower bound of a function
Upper Bound : Proving an upper bound means you have proven that the algorithm will use no more than some limit on a resource.Lower Bound : Proving a lower bound means you have proven that the algorithm will use no less than some limit on a resource.
Upper and lower bounds have to do with the minimum and maximum "complexity" of an algorithm (I use that word advisedly since it has a very specific meaning in complexity analysis).
Take, for example, our old friend, the bubble sort. In an ideal case where all the data are already sorted, the time taken is f(n), a function dependent on n, the number of items in the list. That's because you only have to make one pass of the data set (with zero swaps) to ensure your list is sorted.
In a particularly bad case where the data are sorted in the opposite to the order you want, the time taken becomes f(n2). This is because each pass moves one element to the right position and you need npasses to do all elements.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 23 May 2014
Huffman Compression and Huffman Tree
Hi folks
We used ASCII code for represent character inside of
computer. there are two types of ASCII 7 bit and 8bit.8bit ASCII is known as
extended ASCII.
In 7 bit ASCII if represent text following manner
ABCDACDCAB (Each
character takes 7 bit)
Total Bit = No. of
character * 7
Total Bit = 10*7
Total Bit = 70
If consider frequency of character then we’ll find
Frequency of A = 3
Frequency of B = 2
Frequency of C = 3
Frequency of D = 2
In 7 bit ASCII we can represent 127 characters but it’s not
always necessary that each character appeared in string as in our example
string. There is only four characters which are repeated so if we used 3 bit for code then we’ll
save some bit
i.e. A=000
B=001
C=100
D=101
Now total bit required 10*3 which is 30 instead of 70.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 20 May 2014
Database Key
Database is a
repository of any organization data. It takes data save it and provides many types of sophisticated
services for record insert, update, delete, backup and many more. Here I am
interested to explain many types of key.
Database : Database is a collection of related table.
Table : A Table is a collection of related records.
Record : A record is a collection of related fields
Field : A fields or attribute is a smallest individual unit of
table.
NULL : NULL is a systematic approach treat blank value which is
not available current but might be appear in future.
Key : Key is use to identified a record between records set.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 19 May 2014
How to make Gmail Signature and confidential Message
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 13 May 2014
Functional Dependency and Normalization
Purpose of Normalization
Normalization is a technique for producing a set of suitable relations that support the data requirements of an enterprise.
Characteristics of a suitable set of relations include:- the minimal number of attributes necessary to support the data requirements of the enterprise;
- attributes with a close logical relationship are found in the same relation;
- minimal redundancy with each attribute represented only once with the important exception of attributes that form all or part of foreign keys.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 29 April 2014
Data Communication and Networking
Line Configuration
A network is a combination of more than one devices which connect from some medium (wire , wireless) called channel line configuration refer physical communication channel access method . Three types of access method are follows..
- Point to Point
- Multi Point
Point to Point
Communication line is not shared in point to point line configuration. A separate link used to connect each device in network. Advantage of point to point line configure is no congestion. Highly and sophisticate security implementation is possible.
The entire capacity of the channel is reserved for transmission between those two devices. Most point-to-point line configurations use an actual length of wire or cable to connect the two ends, but other options, such as microwave or satellite links, are also possible.
Multipoint
Multipoint (Multidrop line configuration) Communication link is shared between all connected nodes from the network. Two types of multipoint line configuration are follows
Spatial Sharing: If several devices can share the link simultaneously, its called Spatially shared line configuration
Temporal (Time) Sharing: If users must take turns using the link , then its called Temporally shared or Time Shared Line Configuration
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 27 April 2014
Gray Code | Binary to Gray Code and that to Binary Conversion
Binary to gray code conversion
1. The M.S.B. of the gray code will be exactly equal to the first bit of the given binary number.
2. Now the second bit of the code will be exclusive-or of the first and second bit of the given binary number, i.e if both the bits are same the result will be 0 and if they are different the result will be 1.
3. The third bit of gray code will be equal to the exclusive-or of the second and third bit of the given binary number. Thus the Binary to gray code conversion goes on. One example given below can make your idea clear on this type of conversion.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Computer Generation
We have study history subject in our school days in those
time history was common for all student but in college level its get divided on
behalf of time like Ancient, Middle and Modern history. The Topic computer generation
is also dividing on time. We read what type of hardware was used on time to
time in computers .So Generation is computer history based on hardware. There are
five generation
First Computer
There is no easy answer to this question because of all the different classifications of computers. The first mechanical computer created by Charles Babbage doesn't really resemble what most would consider a computer today. Therefore, this document has been created with a listing of each of the computer firsts starting with the Difference Engine and leading up to the types of computers we use today. Keep in mind those early inventions that helped lead up to the computer such as the abacus, calculator, and tablet machines are not accounted for in this document.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 10 April 2014
Graph Tutorial
Bipartite Graph
A Graph G is
divided into two finite Set U,V such that each vertex of U is connected to each
vertex of V in such a manner where no vertex is adjacent of same, i.e. U set
vertex will not connected of any other vertex of U.
In bipartite
graph it is necessary that each vertex must be connect with different color
otherwise graph is not bipartite
Complete bipartite graph
In regular bipartite
graph G(U,V) ,each Vertex U(n) and V(n) connected each other
A complete bipartite graph is a graph whose vertices can be partitioned into two subsets V1 and V2 such that no edge has both endpoints in the same subset, and every possible edge that could connect vertices in different subsets is part of the graph. That is, it is a bipartite graph (V1, V2, E) such that for every two vertices v1 V1 and v2 V2, v1v2 is an edge in E
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 4 April 2014
Database Model
Hierarchical
A hierarchical database model is a data model in which the data is organized into a tree-like structure. The structure allows
representing information using parent/child relationships: each parent can have
many children, but each child has only one parent (also known as a 1-to-many relationship). All
attributes of a specific record are listed under an entity type.
Example of
a hierarchical model
In a database an entity type is
the equivalent of a table. Each individual record is represented as a row, and
each attribute as a column. Entity types are related to each other using 1:N mappings, also known as one-to-many relationships. This model
is recognized as the first database model created by IBM in the 1960s.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 3 April 2014
Microsoft Office Shortcut Keys
Word
To do this Press Key As follows
Switch to the next window.
|
ALT+Tab
|
Switch to the previous window.
|
ALT+SHIFT+Tab
|
Close the active window.
|
CTRL+W or CTRL+F4
|
Restore the size of the active window after you
maximize it.
|
ALT+F5
|
Move to a task pane from another pane in the
program window (clockwise direction). You may have to press F6 multiple
times.
|
F6
|
Move to a task pane from another pane in the
program window (counterclockwise direction).
|
SHIFT+F6
|
When more than one window is open, switch to
the next window.
|
CTRL+F6
|
Switch to the previous window.
|
CTRL+SHIFT+F6
|
Maximize or restore a selected window.
|
CTRL+F10
|
Copy a picture of the screen to the Clipboard.
|
PRINT SCREEN
|
Copy a picture of the selected window to the
Clipboard.
|
ALT+PRINT SCREEN
|
Research
|
Alt + Click
|
Macros
|
Alt + F8
|
Auto Text
|
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 26 February 2014
How to show swf(Flash) file in power point
Hi Folks Flash is an ultimate software nowadays for making
animation. Mainly people used flash animation file in websites in swf format.
If we could use these swf file in any other application like power point then
it’ll make our world easier just take a look on following section and don’t
tell me thanks……
For insert swf file in power point you need to show
developer tab in ribbon control which doesn't visible by default.
- Click office button· Select power point option· Select Popular tab· Check show Developer tab in the ribbon
-
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 17 February 2014
Save Flash(SWF) file from a website
Swf file is an abbreviation for shockwafe Flash object which
is animated file run by flash player in browser window. Many times we want to
save any website swf on our local PC for offline uses or any other personal
uses. Here I am showing a way front of you that how can you download swf file its
very simple just take a look.
In chrome
You must open chrome in developer mode for save swf file you
can open this mode using Cntl+Shift+I or as in figure..
When you’ll click on developer tools following windows will
be open
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 7 November 2013
File Upload in PHP
Hi there
Uploading file on server is a process of getting data from user.
you cannot ignore it and every web developer needs upload file.php has some
built in function which helps to upload file take a look on following line..
Control
File up loader
Submit button
Code
<?php
$msg="";
if(isset($_POST['submit'])
{
if($_FILES['file']['name']!="")
{
$extnsn=end(explode(".",
strtolower($_FILES['file']['name'])));
if($extnsn=="rtf" ||
$extnsn=="doc" || $extnsn=="docx" ||
$extnsn=="txt" || $extnsn=="pdf")
{
if(($_FILES['file']['size']/1024)>1024)
{
$msg="Sorry
! Maximum upload file size is 1024 KB";
}
else
{
move_uploaded_file($_FILES['file']['tmp_name'],"resume/".$r[0].".".$extnsn);
$msg="Thanks
for uploading file";
<?php
echo $msg;
?>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 12 October 2013
PHP form tutotial
An HTML form is a section of a document containing normal content, markup, special elements called controls (checkboxes, radio buttons, menus, etc.), and labels on those controls. Users generally "complete" a form by modifying its controls (entering text, selecting menu items, etc.), before submitting the form to an agent for processing (e.g., to a Web server, to a mail server, etc.)
Methods
The method attribute specifies how to send form-data (the form-data is sent to the page specified in the action attribute).
The form-data can be sent as URL variables (with method="get") or as HTTP post transaction (with method="post").
Notes on GET:
- Appends form-data into the URL in name/value pairs
- The length of a URL is limited (about 3000 characters)
- Never use GET to send sensitive data! (will be visible in the URL)
- Useful for form submissions where a user want to bookmark the result
- GET is better for non-secure data, like query strings in Google
Notes on POST:
- Appends form-data inside the body of the HTTP request (data is not shown is in URL)
- Has no size limitations
- Form submissions with POST cannot be bookmarked
How to Cancel PHP form submission using javascript
<?php
$msg="";
if(isset($_POST['submit']))
{
$msg="ok";//put your code here
}
?>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 30 September 2013
Save Image in Ms-Access 2003 and 2007 Using VB6.0
Hi There
I was my dream to save
image in access I tried many website and books but didn’t do that.
Then I consider about memo field in access database. Memo data type is use to
hold long amount of data in textual or binary format. Memo field become
solution of my problem. I hope my work will help you just, do it in my way….
Design
window
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 2 August 2013
Data Structure Using C++
#include<iostream.h>
#include<conio.h>
class node
{
int data;
node *next;
public:
node()
{
next=NULL;
}
friend class list;
};
class list
{
node *start;
public:
list()
{
start=NULL;
}
#include<conio.h>
class node
{
int data;
node *next;
public:
node()
{
next=NULL;
}
friend class list;
};
class list
{
node *start;
public:
list()
{
start=NULL;
}
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
PHP Tutorial
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 29 July 2013
How to Add SWF (Flash) File in Your Blogger
Hi folks
When I learned Flash i want to show it on my Blog but blogger doesn't accept swf format. then
I find a solution form net.
</embed>
</object>
When I learned Flash i want to show it on my Blog but blogger doesn't accept swf format. then
I find a solution form net.
- Upload your swf file online (On your domain) or any other free flash hosting site
- Then copy the url
- You need to go in html update mode
- Click on html as showed in picture place the following code and update
<object height="350px" width="400px">
<embed src="http://www.basantgroupofinstitution.org/swf/butterfly.swf" height="400px" width="400px"></embed>
</object>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 14 July 2013
Flash Tutorial
You can make animation using
flash very easily just take a look on following Lines and images
What do you think movies are
really includes moving object? No!
Movies are a collection of changing
images, which plays more than one picture at a time. Being a Human we’re not
able to see that differences.
Flash used this basic for
make animation you have to work on frame which includes different types of image and run it more than one image
at a time.
Face Moving Expression
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 14 June 2013
Save Record on php server
Hi....
<html>
<head>
<title>Girfa Saving Record on PHP Server</title>
<?php
if($_GET['name1'])
demo();
function demo()
{
$con=mysql_connect("localhost","girfa","12345") or die("Could not open the database ");
mysql_select_db("basant_bsw",$con);
$roll=$_GET['roll'];
$nm=$_GET['name'];
$ct=$_GET['city'];
$quary="insert into stu values('$roll','$nm','$ct')" or die("error in making sql");
mysql_query($quary,$con) or die("unable to run sql quary");
}
?>
</head>
<body>
<form name="form1" method="get" action="<?php $_PHP_SELF ?>">
Roll : <input type="text" name="roll" /><br />
Name : <input type="text" name="name" /><br />
City : <input type="text" name="city" /><br />
<input type="submit" value="save" name="name1" />
</form>
</body>
</html>
I spend lot of time to achieve this. I Searched many website but didn’t
find a proper way which help me to do this. Then I use php manual which help me
to find my solution.
Mostly we use mysql_connect("localhost","root","")
this will work on client side where you develop your application. You just have
to change the format of mysql_connect() function and rest of the thing will be same as
you used to on your client.
mysql_connect("localhost","Girfa","12345")
Girfa is your user name and 12345 is password of your website. Which
you got when launch your website.
<html>
<head>
<title>Girfa Saving Record on PHP Server</title>
<?php
if($_GET['name1'])
demo();
function demo()
{
$con=mysql_connect("localhost","girfa","12345") or die("Could not open the database ");
mysql_select_db("basant_bsw",$con);
$roll=$_GET['roll'];
$nm=$_GET['name'];
$ct=$_GET['city'];
$quary="insert into stu values('$roll','$nm','$ct')" or die("error in making sql");
mysql_query($quary,$con) or die("unable to run sql quary");
}
?>
</head>
<body>
<form name="form1" method="get" action="<?php $_PHP_SELF ?>">
Roll : <input type="text" name="roll" /><br />
Name : <input type="text" name="name" /><br />
City : <input type="text" name="city" /><br />
<input type="submit" value="save" name="name1" />
</form>
</body>
</html>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 3 May 2013
File Read/Write Using VB 6.0
Dim filenm As Integer
filenm = FreeFile
Open "d:\demo.txt" For Input As filenm
Dim str As String
Do While Not EOF(filenm)
Input #filenm, str
Label1.Caption = Label1.Caption + vbCrLf + str
Loop
Open "d:\readme.txt" For Output As #1
Print #1, Text1.Text
Close 1
Open "d:\readme.txt" For Append As #1
Print #1, Text1.Text
Close 1
filenm = FreeFile
Open "d:\demo.txt" For Input As filenm
Dim str As String
Do While Not EOF(filenm)
Input #filenm, str
Label1.Caption = Label1.Caption + vbCrLf + str
Loop
Open "d:\readme.txt" For Output As #1
Print #1, Text1.Text
Close 1
Appending text in a file without overwriting content
Open "d:\readme.txt" For Append As #1
Print #1, Text1.Text
Close 1
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 10 April 2013
Connect VB 6.0 with Oracle and SQL Server
Hi...
Database is the heart of any business application. When we make any software then most of the things floats near of database. As we know oracle is the most popular database in the world connecting oracle to your VB application is very simple simple. take a look on following and please don't tell me thanks..
Dim con As New ADODB.Connection
con.Open "Provider=MSDAORA.1;User id=scott;password='tiger';Persist Security Info=False"
con.BeginTrans
con.Execute "insert into vb values(110,'niraj','lanka')"
con.CommitTrans
MsgBox "Saved"
Database is the heart of any business application. When we make any software then most of the things floats near of database. As we know oracle is the most popular database in the world connecting oracle to your VB application is very simple simple. take a look on following and please don't tell me thanks..
- Import a class reference for Project > References
- Add Microsoft ActiveX Data Objecs 2.8 Library from references
- Make an object of ADODB.Connection
- Open DB Connection Consider the connection string
- Rest of the things are same as you do with access database
Dim con As New ADODB.Connection
con.Open "Provider=MSDAORA.1;User id=scott;password='tiger';Persist Security Info=False"
con.BeginTrans
con.Execute "insert into vb values(110,'niraj','lanka')"
con.CommitTrans
MsgBox "Saved"
SQL Server
Table Name Stu(Roll number,Name varchar2(20),City varchar2(20)), Import Microsoft Active Data Objects 2.0 from Project>References
Save Button Code
con.Open "Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=bsw"
con.BeginTrans
con.Execute "insert into stu values(" & Text1.Text & ",'" & Text2.Text & "','" & Text3.Text & "')"
con.CommitTrans
Labels:
connect oracle with vb6.0,
connect vb with oracle,
oracle connection with vb,
oracle tutorial,
VB Connection With Oracle,
vb with database
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Friday 5 April 2013
Photo Shop Tutorial
I love photoshop because its provide wing to my imagination. I am taking lots of advantage of powerful tools of photoshop.You can enhance quality of your designing using this tutorial . I do not have any specific degree about photoshop I just make this tutorial which help you to make some type innovative graphics.Now Get start.....
Text Effect
Text Effect with hole
- Type your text
- Add a layer up side of text layer
- Click on text layer and newly added layer border with alt key. It’ll merge text and normal layer. Now you can use brush tool for color (Because brush tool can not be apply directly on text layer)
- Apply shadow and other effect using Layer style by double click on text layer
- Apply mask on text layer
- Choose brush make high percentage of hardness and opacity
- Move brush on text
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 12 March 2013
How to stop mouse right click on a webpage
There are many cases when we don't allow users to see our source code.Enabling source code by right click provide option to users to load images of our site and see logic we you used to make your website.You can disable right click using java script paste the following code on your head section and see the magic
Paste this code on header section
Paste this code on header section
<SCRIPT LANGUAGE="JavaScript"> <!-- Disable function disableselect(e){ return false } function reEnable(){ return true } //if IE4+ document.onselectstart=new Function ("return false") document.oncontextmenu=new Function ("return false") //if NS6 if (window.sidebar){ document.onmousedown=disableselect document.onclick=reEnable } //--> </script>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 4 March 2013
How to use Google Translater on your web page
Google Translator provide a efficient way to translate your page in many language which make your webpage able to read person who wish to see your web page on his own language. Google provides some steps and translator will appear on your page follow the steps
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)