Posts

Showing posts with the label how to

Simple apache service on top of Docker - Basic commands - Example

We can get base images form the docker hub repository Tip: you can make customer images in docker hub (you will have to log in to docker-hub and then push the image you customised) We can download the docker image from the centre repository. Let’s download a ubuntu latest image from the repository. docker pull ubuntu Then, you can see the image by typing in terminal, docker images ubuntu After, If you want to run the docker image you can execute following command in the terminal docker container run -it web-application -p 80:80 -d ubuntu Here, the Ubuntu image is started with assigned name “web-application” and port forward is done with assigning 80:80 as host port : container port Then you will see the container id under when it is started. After, let’s install a apache service in the ubuntu container we created. To log in to the container, type docker exec -it web-application bash And then you will be in the container.Now we are going to install apache  a...

Note - Internet and HTTP

Internet     A global systems of interconnected computer networks and tangible network of computers sharing/exchanging information with the help of PROTOCOLS Internet Protocols     -Protocol is a form of etiquette. prescribed guide for conduct or action     -usually specifies:                    -The format of the messages         -How to handle the errors OSI Model Upper Layers         Application - HTTP, FTP, SMTP     Presentation - JPEG, GIF, MPEG     Session - Apple talk, winSock     Lower Layers         Transport - TCP, UDP, SPX     Network - IP, ICMP, IPX (router)     Data Link - Ethernet , ATM (Switch, Bridge)     Physical - Ethernet, Token Ring (hub, repeater)...

Note - Google cookies

1.Preference            Most Google will have preference cookie called "NID"  in their browser. A browser sends NID to Google sites and there is an ID in it. and it helps to keep a track of the languages we use and some activities we do.   2.Security            Security cookie for authenticate users and prevent fraudulent use of login and protect user data from unauthenticated parties. 3.Process            Make website work and deliver services that website visitors expect. 4.Advertising            Help to customize ads on Google properties.  5.Session state 6.Analytics            Google's analytics tool that helps website and app owners to understand how their visitors engage with their properties. content - Google_cookies

Note - Networking

Networking      Involves connecting computers to create a local area network. For sharing information and resources For sharing hardware and software For Provide centralized administration and support There are two major types of network LAN           In LAN there are several topologies. They are, Mesh topology Star topology             Advantages to the star topology are                     -central wiring hubs ease the task of managing moves , additions and changes                    -central cabling points provide faster troubleshooting                    -independent point to point links prevent c...

Badges in Sololearn

Image
In sololearn mobile application which is a coding platform for learners who like to learn about languages is providing some badges to whom achieves some regarding tasks in this application: profile

Target 8 - Ruby tutorial

Image
Ruby tutorial was finished and a certificate was issued in www.sololearn.com

Target 5

Image
I finished python 3 tutorial in www.sololearn.com  and a certificate was issured 21 August 2016.While studying though I have no more experience, I felt like that "What a programming languadge PYTHON is...!!!!"..I think there are some similarities of java and ..I think even if we think of python as a pebble,but is a giant rock in programming world...!!!

Target 3-finished:)

Image
PHP tutorial was done in  www.sololearn.com  and it makes me very exited to know about new stuff. A certificate was issued on 17 August 2016. I feel like that I am so curious to know these things as they are new things to my world as a beginner..

Target 2-finished

Image
 I finished my second tutorial, java tutorial course in  www.sololearn.com  on 27 July 2016 and a certificate was issued. And it was exited to know about new languadges.

Simple Tasks on numbers - C programming

Task 01 Write a program to read two integers with the following significance. The first integer value represents a time of day on a 24 hour clock, so that 1245 represents quarter to one mid-day, for example. The second integer represents time duration in a similar way, so that 345 represents three hours and 45 minutes. This duration is to be added to the first time, and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45. #include <stdio.h> int main(){ int time,duration,end_time; printf("Enter the start time: "); scanf("%d",&time); printf("Enter the duration: "); scanf("%d",&duration); int count=0; if(duration>60){ while(duration>60){ duration=duration-60; count++; } } int hours,minutes; hours=(time/100+count)*100; //(duration/60); minutes=time%100+duration; end_time=hours+minutes; if(end_time>=2400){ end_tim...