Pages

Showing posts with label Oracle. Show all posts
Showing posts with label Oracle. Show all posts

Sunday 14 September 2014

`gets' function is dangerous how to solve this error and why gets function is dangerous?

  `gets' function is dangerous how to solve this error and why gets function is dangerous?







Never use gets(). Because it is impossible to tell without knowing the data in advance how many characters gets() will
read, and because gets() will continue to store characters past the end of the buffer, it is extremely dangerous to use.
It has been used to break computer security. Use fgets() instead.

so we can use fgets():
In the C Programming Language, the fgets function reads characters from the stream pointed to by stream.
The fgets function will stop reading when n-1 characters are read, the first new-line character is encountered in s, or at the end-of-file, whichever comes first. Then the fgets function will append a null character to the string.

Syntax

The syntax for the C Language fgets function is:

char *fgets(char *s, int n, FILE *stream);
  
s is the array where the characters that are read will be stored.

n is the size of s.

stream is the stream to read.

The fgets function returns s. The fgets function will return a null pointer if an error occurs while trying to read the stream or the end of the stream is encountered before any characters are stored.

In the C Language, the required header for the fgets function is:

#include 
 

#include 
char * fgets(char *restrict s, int n, FILE *restrict stream);
Frightening, no? That’s because fgets() is a file function, which reads text from a file, as in “file get string.” That’s how programmers talk after an all-nighter.
Because the operating system considers standard input like a file, you can use fgets() to read text from the keyboard.
Here’s a simplified version of the fgets() function as it applies to reading text input:
fgets(string,size,stdin);
In this example, string is the name of a char array, a string variable; size is the amount of text to input plus one, which should be the same size as the char array; and stdin is the name of the standard input device, as defined in the stdio.h header file.
THE FGETS() FUNCTION READS A STRING
#include 
int main()
{
  char name[10];
  printf("Who are you? ");
  fgets(name,10,stdin);
  printf("Glad to meet you, %s.\n",name);
  return(0);
}

Linux Error: strrev function is error ( undefined reference to `strrev' collect2: ld returned 1 exit status)




undefined reference to `strrev' collect2: ld returned 1 exit status

Functions like strupr, strlwr, strrev, which are available in ANSI C (Turbo C/C++) are not available in standard C (gcc).

That's because it quite probably *is not* included in the library.
I do not think the C standard library has ever included a function
called strrev(). Some implementation somewhere might provide one, but
it is not part of standard C.


I get linking error invoking this fucntion, as if it it not
 > inluded in the library.  Why?

 There are no function named strrev in the standard C
library. Furthermore, any implementation that defines a function with
a lovercase name starting with 'str' is non-conforming, as those names
are reserved.

...
 > /tmp/ccKGR6e9.o: In function `main':
 > /tmp/ccKGR6e9.o(.text+0x27): undefined reference to `strrev'
 > collect2: ld returned 1 exit status
 However, looking at my collection of non-standard header files, I
have a hunch that strrev() might be a MSVC-ism, so you might actually
have a chance to find some information about this extension in an
appropiate newsgroup like comp.os.ms-windows.programmer or similar.


Wednesday 11 June 2014

Latest Collection Of Best Blogger Templatees Download 2014

 Latest Collection Of Best Blogger Templatees Download

                  Dynamic Mag     downlaod and view demo

                                        click here

                  blogger mag       downlaod and view demo

 

                                        click here

                  gamer mag downlaod and view demo

 

                                        click here

                 famemag      downlaod and view demo

                                

 

                                         click here

                 ang amor downlaod and view demo

 

                                          click here

                 elite mina    downlaod and view demo

 

                                     click here

                  funkyzine  downlaod and view demo

 

                  

                                        click here

 

                   Simplo  downlaod and view demo

 

                                   click here

LATEST BEST COLLECTION OF ECOMMERCE BLOGGER TEMPLATES FREE DOWNLOAD

CLICK HERE  DOWNLOAD LIVE DEMO THE TEMPLATES:

1.Boutique shopping Responsive e-shopping Blogger Template Free Download 

                                

                              CLICK HERE

 

2.Johny Blackstore Responsive e-shopping Blogger Template Free Download

                           

                                CLICK HERE

 

3. johny mega store blogger ecommerce template download

                   

 

 

                                 CLICK HERE

 

4.johny jass store blogger ecommerce film template download

 

                                 CLICK HERE

 

5.shoppaholic cart ecommerce blogger template download 

 

                                     CLICK HERE

 

6.Johny Crott Ecommerce ekart Blogger Template Free Download 

 

                                CLICK HERE

 

7.BlogrShop Ecommerce ekart blogger template download

 

                             CLICK HERE

Thursday 3 April 2014

Free XUS Pc Lock Software Download here ( include crack)

XUS PC Lock offers a new and fun way for you to lock your computer. Before using XUS PC Lock, you have to define your lock pattern. The next time you will see the lock screen, You trace your mouse in the pattern you drew before and your computer will unlock. Any other pattern and in any other order will not unlock the computer. XUS PC Lock can lock the whole computer. This is the most feature rich lock computer application available today with lots of customization options. XUS PC Lock is the ultimate customizable lock computer application allowing you to pick custom images for the lock screen. XUS PC Lock can auto-lock the computer when windows startup and computer inactivity. XUS PC Lock allows you to set an alert mode when the incorrect pattern is entered a maximum times. If you want to lock your computer as lock a touch smartphone, Please try our XUS PC Lock. It is really awesome!

IMPORTANT REMINDER: 1. Please don’t forget your lock pattern! 2. It’s best if you’ll also set a password in your computer for maximum security.

Benefits & Features


* A new & fun way for you to lock your computer.
* Support Multiple Monitors.
* Anti Key-Logger. XUS Dynamic Password Technology makes your computer more secure.
* The funniest, most customizable way to lock your computer!
* Have 3 built-in patterns: 3x3, 4x4, 5x5 you can choice.
* Locking and Unlocking animation effect.
* Be able to disconnect internet access when system is locked.
* Back up pattern feature.
* Auto-lock the computer when Windows startup or in idle mode.
* Set a timer to turn off monitor automatically.
* Show Time and Date on locked screen.
* Make your computer has Windows 8's lock feature.
* Alert if the incorrect pattern is entered a maximum times. Completely customizable.
* Custom background image, and lots of customization options for the look of the locked screen.

click here download

Monday 16 December 2013

How to know my ports numbers with Which Devices are Connected to my USB Port

Open device manager
Start ->
    Control Panel ->System 
                      Hardware ->Device Manager
  Follow the below steps to see what devices are connected to your USB ports:
  1. Click View at the top of device manager and click Devices by Connection.
  2. Click the + next to ACPI Multiprocessor PC.
  3. Click the + next to Microsoft ACPI-Compliant System.
  4. Click the + next to PCI Bus.
  5. Click the + next to each one of the USB Universal Host Controller listings (See the screenshot below.  The exact controller listings can vary based off the controller manufacturer such as Intel, VIA, SIS, NEC, OpenHCD, etc.)
  6. Click the + next to USB Root Hub under each controller listing.
  7. You may have to expand all of the controller and root hub listings to find the USB Controller and Root Hub your device is connected to.  See the screenshot below for an example of what you should see.


how to boot[install] operating system via usb pendrive easily without any software

Bootable Usb Pen Drive

Bootable Usb Pen drive is simple and fast way to format your PC or Laptop. After formatting you can easily install windows in your system. Bootable usb pendrive has several advantage as like easy formatting, easy copy and past windows file and after that easy to installing windows. Now we are discussing some important step to make bootable pen drive.

Advantages :

    Installing process through bootable usb pen drive is much better then DVD.
    Easy to carrying.
    Easy to handle and no need to expert.
    Best option for all who haven’t DVD drive in his PC or Laptop.

Requirement :

    Blank (empty) Pen drive with minimum capacity of 4Gb.

Process :


Step 1 :

Plug-in your pen drive in Laptop.

Step 2 :

Go to Start  >> Type Cmd  (in search program and file)  [Press Enter]
After pressing Enter command prompt will open.

On your Caps lock

Step 3 :

Type  DISKPART   [Press Enter]

bootable usb pen drive

Step 4 :

Type  LIST  DISK    [Press Enter]
It will show all available disk in your system. Disk 0 is usually hard disk of your system. In my case Disk 1 is Usb pen drive (This can be different in your case so plz make sure )

Step 5 :

Type  SELECT  DISK  1  [Press Enter]
Step 6 :

Type  CLEAN  [Press Enter]
Step 7 :

Type  CREATE  PARTITION  PRIMARY   [Press Enter]
Step 8 :

Type  SELECT  PARTITION  1  [Press Enter]
Step 9 :

Type  ACTIVE  [Press Enter]
Step 10 :

Type FORMAT  FS=NTFS  [Press Enter]
Wait Until 100% complete.
Step 11 :

Type  ASSIGN  [Press Enter]
Step 12 :

Type EXIT [Press Enter]

Bootable Usb Pen driveNow bootable usb pen drive is ready to use. After making this copy and paste windows 7 or 8 in your pen drive. It is easiest way to install windows 7 or 8 in your  system.

When you want to install windows, plug-in bootable pen drive and restart the system and press boot function key as per different system (f1——-f12) .

Sunday 29 September 2013

INTRODUCTION TO JAVA AND JAVA EDITIONS AND NUMBER SYSTEMS IN JAVA


java

HISTORY OF JAVA AND DOWNLOAD(PDF)


what is java:
            java is a object oriented,platform independent programming language from sun micro system which is released into the marked on the name of development of the distributed applications.
 what is java slogan:
                      "Write Once Run Anywhere "(WORA)
java is a platform independent programming language.it means that program is written once and the program is executed irrespective of the operating system.
 why java is suitable for internet:
     security problems on internet are eliminated through java.java is a system independent,java is executable on any platform
JAVA HISTORY:
  IN 1990,sun microsystems inc., USA is developed software for remotes..in 1993,oak language is developed,by that time some company is registered oak name,for this reason they named as "java".
in 1995,sun world conference has given entire details of java.

javajavajava software all copy rights are purchased oracle



CLICK HERE DOWNLOAD PDF DOCUMENT 


java editions:


Sun micro systems provides ,with the advent of java,new versions had multiple configurations built for different types of platforms.those are
  • JSE
  • JEE
  • JME.
JSE:java platform,standard edition:
JSE stands for java platform,standard edition,it is specification used to develop fundamental
java application they may be standard or network.

JEE:java platform,enterprise edition:

 JEE stands for java platform, enterprise edition,it is specification used to develop business
solutions for network (or)JEE is specification that provides an environment to run the web components and the enterprise components.

 JME:java platform,micro edition:
JEE stands for java platform, micro edition,it is specification used for developing wireless and
embedded system.embedded system is software,which directly installed into hardware.
java software:
             java software is cotegorized in to two types
                JAVA=JDK+JRE
  JDK
           it stands for java development kit
JRE:
          it stands for java runtime environment 
          JRE=JVM+JAVA LIBRARY

if java programs have to run we required the jvm and java library.jvm will starts execution of java
program from main method only.
  • in java every statement must end with semi colon(;).
  • java is case sensitive programming language.
In this real world we have 4 types of number systems they are:
1.binary number system           [format:0,1]
2.octal number system             [format:0,1----7]
3.decimal number system        [format:0,1-----9]
4.hexa decimal system             [format:0,1---9,a,b,c,d,e,f ] 
genarally we use the decimal number system in any programming language.

  In java we can represent the binary values by giving ob infront of the number
ex: int ob10;(correct)
     int x=o4235;(wrong)

representation of the binary number feature is introduced in java 1.7


we can represent the octal values in java programming language by giving o infront of the number
ex: int i=o24;(correct)
        int k=o248;(wrong)[because octal range 0-7]

we can represent the hexa decimal values in java programming language by giving ox infront of the number
ex: int i=ox123;(correct)
        int k=ox245a;(wrong)
         int k=123a;(wrong)

note:JVM takes the binary data ,octal data,decimal data,hexa decimal data convert in the form of decimal format and give the output as adecimal
example programme:
  class ndemo
{
public static void main(String args[])
{
  int i=24;
int j=o72;
int k=ox2a;
int l=ob10;
System.out.println(i);
System.out.println(j);
System.out.println(k);
System.out.println(l);
}
}
note:this programme run java 1.7 or above versions because binary values format does not suppport java 1.7 below versions.
output:
24
58
42
2

Tuesday 30 July 2013

PROPERTIES OF RDBMS IN ORACLE

1.data should store in the form of a table.a table can be different as collection of rows&columns
A horizontal lines as Rows or Records/touples
A vertical lines are known as fields or attributes/columns
the intersection of  rows&columns is known as cell
                              a cell is a place where we can store or a data.the other name of table can be known as entity/object.
 table/entity/object:
             fields/attributes/columns

 rows/records/touples





2.table should not contain duplicate column
3.while do inserts the records the table user no need to follow any specific order.
4.data base should not contain duplicate objects 
5.while do defines columns in the table user follow no need to order

Monday 20 May 2013

C LANGUAGE INTRODUCTION

The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages:
Print the words:hello, world

In C, the program to print ``hello, world'' is
#include
main()
{
printf("hello, world\n");

}
Just how to run this program depends on the system you are using. 

complie the program click the alt+F9.and dispaly errors and warning.errors and warnings must be zero and next run the program click ctrl+F9 to display the output
As a specific example, on the UNIX operating system you must create the program in a file whose name ends in ``.c'', such as hello.c, then compile it with
the command
cc hello.c
If you haven't botched anything, such as omitting a character or misspelling something, the compilation will
proceed silently, and make an executable file called a.out. If you run a.out by typing the command
a.out
it will print
hello, world

ANOTHER EXAMPLE:
An example of simple program in C
#include
int main(void)
{
          printf(“HAI HOW ARE YOU\n”);
          printf(“FINE ”);
          printf(“you know the trick\n”);
          return(0);
 
The previous program will produce the following output on your screen 
 HAI HOW ARE YOU
 FINE you know the trick
 
a C program line begins with # provides an instruction to the C preprocessor
It is executed before the actual compilation is done.
Two most common directives :
#include
#define 
In our example (#include) identifies the header file for standard input and output needed by the printf().
 
Identify the start of the program
Every C program has a main ( )
'main' is a C keyword.  We must not use it for any other variable
 
Identify a segment / body of a program
The start and end of a function
The start and end of the selection or repetition block.
Since the opening brace indicates the start of a segment with the closing brace indicating the end of a segment, there must be just as many opening braces as closing braces  (this is a common mistake of beginners) 
 
Each statement in C needs to be terminated with semicolon (;) 

Each statement in C needs to be terminated with semicolon (;)