$ curl -s -H "X-Something: yeah" localhost:8000 > /dev/null
$ python serv.py
ERROR:root:User-Agent: curl/7.37.1
Host: localhost:8000
Accept: */*
X-Something: yeah
$ curl -s -H "X-Something: yeah" localhost:8000 > /dev/null
$ python serv.py
ERROR:root:User-Agent: curl/7.37.1
Host: localhost:8000
Accept: */*
X-Something: yeah
After the successful installation of Ubuntu(or other linux distro) on your windows machine, you may encounter a lot many issues setting up the Ruby on Rails project and it could be any or all of the below mentioned one:
Error: Could not find database.yml file / issue related to postgres In this case check that you have installed postgresql properly or not on your machine first. Once after confirmation, u may still face the same issue then u may have to find 'pg_hba.conf' file and follow the instructions given in this page https://stackoverflow.com/questions/10845998/i-forgot-the-password-i-entered-during-postgres-installation
We may have to replace the word 'peer' everywhere inside 'pg_hba.conf' file with 'trust' and then save it, restart the psql service and then try to start the rails server again. But before that we have to find the location of 'pg_hba.conf' file. This link might be helpful for the same - https://askubuntu.com/questions/256534/how-do-i-find-the-path-to-pg-hba-conf-from
function is_Palindrome(str1) { | |
var rev = str1.split("").reverse().join(""); | |
return str1 == rev; | |
} | |
function longest_palindrome(str1){ | |
var max_length = 0, | |
maxp = ''; |
1.Write a program to input a welcome message and print it. | |
2.Program to obtain three number and print their sum. | |
3.program to obtain length and breadth of a rectangle and calculate its area. | |
4.write a program to input a number and print its cube. | |
5.write a program to input two numbers and swap them. |
.App { | |
font-family: 'Arial', sans-serif; | |
text-align: center; | |
margin: 20px; | |
} | |
h1 { | |
color: #333; | |
} |