Skip to main content

Posts

Showing posts from 2017

Running c and c++ code on windows

Steps : 1.visit google 2. search code blocks 3. select downloads 4.select download the binary release 5.Select OS windows 6.Select codeblocks- mingw -setup.exe 7.click on source forge.net for download 8.after download open setup file. 9.click    next    I agree    next,    next or change path,    no(bcz we don't want to run right now)    next,    finish 10.go to downloaded path      C:\Program Files (x86)\CodeBlocks\MinGW\bin      copy this path in which all c and cpp files are there. 11.Right click on my computer      Properties      advanace system settings      select environment variable      select path      click on edit button      leave content as it is type semicolon and paste copied path.      i.e.      C:\Program Files (x86)\CodeBlocks\MinGW\bin 12.click ok three times. 13.Open command prompt    A. For C :      type start notepad hello.cpp #include<stdio.h> void main() { printf("hello world"); }     Compile

Running C programs on windows using command prompt.

To run c programs on windows we have to follow following steps: 1.Visit google 2.Search tdm gcc compiler (see image)    then select tdm-gcc:news option 3.Download TDM bundle.  or click here download 4.Run downloaded exe file. 5.Select following options:    create,    32/64 as per your OS,    next,    installation directory path-next,    next,    install,    next,    finish.    here,installed successfully.........then 9.open command promt 10.Type:   start notepad hello.c 11.yes 12.type code: #include<stdio.h> void main() { printf("hello world"); } 13.save code 14. open command prompt and type : gcc -o hello hello.c   this will compile then hello    this will run code. Output will be : hello world Thank you so much. download
Steps to run JAVA code using command prompt: pc right click properties advance system settings environment variable system variable path C:\Program Files\Java\jdk1.8.0_144\bin click three times 'ok'. go to command promt (start+r+cmd) type javac -version start notepad hello.java yes type code javac hello.java java hello  done😊 /////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ a.java class a { public static void main(String a[]) { System.out.println("hello world"); } } /////////////////////////////////////////// compile it using javac a.java run it using java a then you will get output. (my intension is to use windows like fedora.....)                                                                                                                  Thank you so much............
PL/SQL : 1.Hellow world program Begin Dbms_output.put_line(‘Hellow world!!!!!!’); End; / Output : Hellow world!!!!! * note :-this may not show you direct output so type à set serveroutput on ; 2.Display 2 variables Declare X number; Y number; Begin X:=10; Y:=20; Dbms_output.put_line(x); Dbms_output.put_line(y); End; / Output : 10 20 OR Declare X number; Y number; Begin X:=10; Y:=20; Dbms_output.put_line(‘x=’); Dbms_output.put_line(x); Dbms_output.put_line(‘y=’); Dbms_output.put_line(y); End; / Output : X= 10 Y= 20 3. Addition of two number Declare X int; Y int; Z int; Begin X:=10; Y:=20; Z:=X+Y Dbms_output.put_line(z); End; / Output : 30 4.Arithm  declare   x int;     y int;     z int;     begin     x:=100;     y:=200;     dbms_output.put_line('addition');     dbms_output.put_l

Nextbit Robin Bend Test FAIL - Durability test

Google Glasses

Google Glass : Statement: Google Glass is a wearable computer.   Essentially , Google Glass is a wearable Android-powered computer built into spectacle frames so that you can perch a display in your field of vision, film, take pictures, search and translate on the go as well as run specially-designed apps. This is designed to be easily seen without obstructing your view . Current versions of Glass offer a 640 x 360 display. display is "the equivalent of a 25-inch high definition screen from eight feet away." There is a 5 megapixel camera built-in to the frame that can also capture video at 720p resolution. There's 16GB of flash memory built into the device, although only 12GB is currently available for user storage. Summarized   Statement : Google Glass runs a version of Android, so developers can easily create apps that take advantage of its unique   display and input methods. The early   Google Glass apps provide a neat glim- p se into the

Hyperloop Tech

Hyperloop Technology: This is one of the transportation technology. It is also called as HTT i.e. hyperloop transport technology. It is envisioned by  Elon Musk  in 2013. This is new technology which is considered as per our todays need. This tech may reduce our time and we can travel as far as we want. This is newest mode of transportation after plains,trains,cars and boats. Structure: online videos ..                                                                                                                 Thank you....
MongoDB To start mongodb in fedora : ->service mongod start ->systemctl start mongod.service  ->mongo Output : MongoDB shell version: 2.4.6 connecting to: test To see all databases : > show dbs; output : > show dbs local    0.078125GB neha    0.203125GB sunny    0.203125GB vishakha    0.203125GB > Create collections: > db.createCollection("mycollection") output : { "ok" : 1 }
Install MongoDB On Ubuntu 14.04: 1. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 2.echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list 3.sudo apt-get update 4.sudo apt-get install -y mongodb-org 5.done
How to Install MySQL on Ubuntu 14.04 1. check your hostname hostname or hostname -f 2. Update your System sudo apt-get update then sudo apt-get upgrade 3.Install Mysql sudo apt-get install mysql-server then enter password for root as an root  or anything else. see......done.... 4.For secure installation sudo mysql_secure_installation   5.Root login mysql -u root -p     6.Exit.