10 ENGLISH IDIOMS WITH SURPRISING ORIGINS

Idioms are figures of speech that become fixed in a language. Usually, an idiom is figurative in modern contexts but once had a literal meaning. These literal meanings, or idiom origins, can help a learner of English to understand where a phrase originated.

1. Straight from the horse’s mouth

Meaning: getting information directly from the most reliable source

Origin: This one is said to come from the 1900s, when buyers could determine a horse’s age by examining its teeth. It’s also why you shouldn’t “look a gift horse in the mouth,” as inspecting a gift is considered bad etiquette.

2. Let the cat out of the bag

Meaning: To reveal a secret, unwittingly or otherwise

Origin: First seen in several London publications in the 1700s, its origin dates well before that and refers to a then-common street fraud. Market scamsters apparently attempted to replace pigs (valuable) with cats (not so much); if the cat was let out of the bag, the gig was up. That's related to why you don't want to buy "a pig in a poke" (i.e., a small bag): You might not be getting the real item.

3. Butter someone up

Meaning: to praise or flatter someone, usually to gain a favor

Origin: A customary religious act in ancient India included throwing butter balls at the statues of gods to seek good fortune and their favor.

4. Pulling someone’s leg

Definition: Joking or fooling with someone.

Origin: To pull someone’s leg had much more sinister overtones when it first came in use. It was originally a method used by thieves to entrap their pedestrians and subsequently rob them. One thief would be assigned ‘tripper up’ duty, and would use different instruments to knock the person to the ground. Luckily, these days the saying is much more friendlier, though being on the end of a joke might not always be fun.

5. Wolf in sheep’s clothing

Meaning: someone who is pretending to be something they are not, usually to the detriment of others

Origin: This one’s attributed to the Bible (Matthew 7:15). The Bible also gave us “rise and shine” (Isaiah 60:1), “seeing eye to eye” (Isaiah 62:8), and a “broken heart” (Psalm 69:20).

6. Hands down

Meaning: without a lot of effort

Origin: Winning “hands down” once referred to 19th-century horseracing, when a jockey could remove his hands from the reins and still win the race because he was so far ahead.

7. Riding shotgun

Meaning: riding in the front seat of a vehicle next to the driver

Origin: In the Wild West, the person who sat next to the driver was often equipped with a shotgun to kill any robbers that might happen upon the coach.

8. Barking up the wrong tree

Meaning: pursuing a misguided course of action

Origin: Likely referring to hunting, this saying explains when a dog would literally bark at the bottom of the wrong tree after the prey in question moved to the next branch.

9. Flying off the handle

Meaning: suddenly becoming enraged

Origin: This one is said to come from poorly made axes of the 1800s that would literally detach from the handle. Yikes!

10. Cost an arm and a leg

Meaning: extremely expensive

Origin: The story goes that this phrase originated from 18th-century paintings, as famous people like George Washington would have their portraits done without certain limbs showing. Having limbs showing is said to have cost more.

September 12, 2018by Mkots
16
0

CDN


A content delivery network (CDN) refers to a geographically distributed group of servers which work together to provide fast delivery of Internet content. A CDN allows for the quick transfer of assets needed for loading Internet content including HTML pages, javascript files, stylesheets, images, and videos. The popularity of CDN services continues to grow, and today the majority of web traffic is served through CDNs, including traffic from major sites like Facebook, Netflix, and Amazon.

A properly configured CDN may also help protect websites against some common malicious attacks, such as Distributed Denial of Service (DDOS) attacks.

Is a CDN the same as a web host?

While a CDN does not host content and can’t replace the need for proper web hosting, it does help cache content at the network edge, which improves website performance. Many websites struggle to have their performance needs met by traditional hosting services, which is why they opt for CDNs. By utilizing caching to reduce hosting bandwidth, helping to prevent interruptions in service, and improving security, CDNs are a popular choice to relieve some of the major pain points that come with traditional web hosting.

What are the benefits of using a CDN?

Although the benefits of using a CDN vary depending on the size and needs of an Internet property, the primary benefits for most users can be broken down into 4 different components:

  1. Improving website load times - By distributing content closer to website visitors by using a nearby CDN server (among other optimizations), visitors experience faster page loading times. As visitors are more inclined to click away from a slow-loading site, a CDN can reduce bounce rates and increase the amount of time that people spend on the site. In other words, a faster a website means more visitors will stay and stick around longer.
  2. Reducing bandwidth costs - Bandwidth consumption costs for website hosting is a primary expense for websites. Through caching and other optimizations, CDNs are able to reduce the amount of data an origin server must provide, thus reducing hosting costs for website owners.
  3. Increasing content availability and redundancy - Large amounts of traffic or hardware failures can interrupt normal website function. Thanks to their distributed nature, a CDN can handle more traffic and withstand hardware failure better than many origin servers.
  4. Improving website security - A CDN may improve security by providing DDoS mitigation, improvements to security certificates, and other optimizations.

How does a CDN work?

At its core, a CDN is a network of servers linked together with the goal of delivering content as quickly, cheaply, reliably, and securely as possible. In order to improve speed and connectivity, a CDN will place servers at the exchange points between different networks. These Internet exchange points (IXPs) are the primary locations where different Internet providers connect in order to provide each other access to traffic originating on their different networks. By having a connection to these high speed and highly interconnected locations, a CDN provider is able to reduce costs and transit times in high speed data delivery.

Beyond placement of servers in IXPs, a CDN makes a number of optimizations on standard client/server data transfers. CDNs place Data Centers at strategic locations across the globe, enhance security, and are designed to survive various types of failures and Internet congestion.

Latency - How does a CDN improve website load times?

When it comes to websites loading content, users drop off quickly as a site slows down. CDN services can help to reduce load times in the following ways:

  • The globally distributed nature of a CDN means reduce distance between users and website resources. Instead of having to connect to wherever a website’s origin server may live, a CDN lets users connect to a geographically closer data center. Less travel time means faster service.
  • Hardware and software optimizations such as efficient load balancing and solid-state hard drives can help data reach the user faster.
  • CDNs can reduce the amount of data that’s transferred by reducing file sizes using tactics such as minification and file compression. Smaller file sizes mean quicker load times.
  • CDNs can also speed up sites which use TLS/SSL certificates by optimizing connection reuse and enabling TLS false start.

Explore all the ways a CDN helps websites load faster

Reliability and Redundancy - How does a CDN keep a website always online?

Uptime is a critical component for anyone with an Internet property. Hardware failures and spikes in traffic, as a result of either malicious attacks or just a boost in popularity, have the potential to bring down a web server and prevent users from accessing a site or service. A well-rounded CDN has several features that will minimize downtime:

  • Load balancing distributes network traffic evenly across several servers, making it easier to scale rapid boosts in traffic.
  • Intelligent failover provides uninterrupted service even if one or more of the CDN servers go offline due to hardware malfunction; the failover can redistribute the traffic to the other operational servers.
  • In the event that an entire data center is having technical issues, Anycast routing transfers the traffic to another available data center, ensuring that no users lose access to the website.

Learn more about how a CDN helps keep websites online

Data Security - How does a CDN protect data?

Information security is an integral part of a CDN. a CDN can keep a site secured with fresh TLS/SSL certificates which will ensure a high standard of authentication, encryption, and integrity. Investigate the security concerns surrounding CDNs, and explore what can be done to securely deliver content. Learn about CDN SSL/TLS security

Bandwidth Expense - How does a CDN reduce bandwidth costs?

Every time an origin server responds to a request, bandwidth is consumed. See how a CDN cuts down on origin requests.

via cloudFlare & inxycom

September 11, 2018by Mkots
9
0

Wordpress in Docker

  1. Скачать Docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

Возможно, потребуется установка curl

sudo apt install curl

2. Дать права на исполнение

sudo chmod +x /usr/local/bin/docker-compose

3. Протестировать

docker-compose --version

4. Создать папку под проект и перейти в нее

sudo mkdir ~/wordpress && cd ~/wordpress

5. Создать файл docker-compose.yml и добавить в него конфиг

sudo nano docker-compose.yml


version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
volumes:
    db_data:

6. Собрать и поднять контейнер

sudo docker-compose up -d

7. Установить Wordpress

Перейти на http://127.0.0.1:8000

July 13, 2018by Mkots
14
0
Show more