Study: 0% Of People Die From Getting Fingers Lodged In Bowling Ball And Being Dragged Down Lane

WASHINGTON—Saying the deadly mishap had no impact whatsoever on mortality rates in any demographic, a new Pew Research Center study released Tuesday found that zero percent of people die from getting their fingers lodged in a bowling ball and being dragged down the lane. “Our sample of 10,000 Americans found that on average, zero out of 100 people die from getting their fingers stuck in a bowling ball, being yanked onto the lane when they throw their arm forward, and launching headfirst into the pins,” said researcher Sarah Wheatman, noting that skull fractures and other head traumas resulting from such collisions were found on not a single occasion. “As no one has been carried the length of their lane into the pins by the momentum of their bowling ball, it is also necessarily true that not a single person left a 7-10 split after doing so. Our study also confirms that 0 percent of deaths resulted in the person’s body being cleared from the bowling lane by the sweeper before the pins were reset.” Wheatman went on to say, however, that approximately 50 percent of individuals suffer bruises and other minor injuries after their bowling ball pulls them halfway down the lane.

via The Onion
Study: 0% Of People Die From Getting Fingers Lodged In Bowling Ball And Being Dragged Down Lane

Today’s Solar Eclipse Left a Path of Nightmarish Traffic in Its Wake

GIF
Image: Google Maps/Gizmodo

For months, even years, amateur astronomers, photographers, and anyone wanting the best possible view of today’s solar eclipse have been planning trips into the phenomenon’s path of totality. Now that it’s over, all that’s left are millions of grainy Instagram photos—and a traffic nightmare that traces the same path as the eclipse’s shadow.

Twitter’s @dicktoblerone appears to have been the first to spot this fallout, which is clearly visible on Google Maps’ live traffic feature. The country’s most clogged asphalt arteries can currently be found in the Southeast, which would have been the last region to see the total eclipse in the sky. The traffic may have been equally awful in the Northwest a bit earlier, but it appears to have cleared up.

Advertisement

The next time a total solar eclipse will be visible in the United States is on April 8th, 2024, giving you plenty time to find a house somewhere near the shadow’s path, so you won’t have to deal with traffic nightmares like these seven years from now.

[Twitter @dicktoblerone via Twitter @lanewinfield]

via Gizmodo
Today’s Solar Eclipse Left a Path of Nightmarish Traffic in Its Wake

Miss the totality? Google Maps will make you feel better.

Enlarge (credit: http://ift.tt/2wxY9ui)

Earlier today, millions of Americans flocked to a strip of land about 70 miles wide, stretching from Portland, Oregon to Columbia, South Carolina, to view a once-a-decade total solar eclipse.

Now the totality is over, and everyone is trying to go home. And as these screenshots from Google maps demonstrate, it’s causing traffic jams on North-South interstates throughout the path of the totality:

Read on Ars Technica | Comments

via Ars Technica
Miss the totality? Google Maps will make you feel better.

How to Configure Aurora RDS Parameters

Aurora RDS Parameters

Aurora RDS ParametersIn this blog post, we’ll look at some tips on how to configure Aurora RDS parameters.

I was recently deploying a few Aurora RDS instances, a process very similar to configuring a regular RDS instance. I noticed a few minor differences in the way you configure Aurora RDS parameters, and very few articles on how the commands should be structured (for RDS as well as Aurora). The only real literature available is the official Amazon RDS documentation.

This blog provides a concise “how-to” guide to quickly change Aurora RDS parameters using the AWS CLI. Aurora retains the parameter group model introduced with RDS, with new instances having the default read only parameter groups. For a new instance, you need to create and allocate a new parameter group (this requires a DB reboot). After that, you can apply changes to dynamic variables immediately. In other words, the first time you add the DB parameter group you’ll need to reboot even if the variable you are configuring is dynamic. It’s best to create a new DB parameter group when initializing your clusters. Nothing stops you from adding more than one host to the same DB Parameter Group rather than creating one per instance.

In addition to the DB Parameter Group, each instance is also allocated a DB Cluster Parameter Group. The DB Parameter Group is used for instance-level parameters, while the DB Cluster Parameter Group is used for cluster-level parameters (and applies to all instances in a cluster). You’ll find some of the MySQL engine variables can only be found in the DB Cluster Parameter Group. Here you will find a handy reference of all the DB cluster and DB instance parameters that are viewable or configurable for Aurora instances.

To run these commands, you’ll need to have the “aws” cli tool installed and configured. Note that the force-failover option used for RDS instances doesn’t apply to Aurora. You should perform either a controlled failover or let Aurora handle this. Also, the group family to use for Aurora is “oscar5.6”. The commands to set this up are as follows:

aws rds create-db-parameter-group
    --db-parameter-group-name percona-opt
    --db-parameter-group-family oscar5.6
    --description "Percona Optimizations"
aws rds modify-db-parameter-group
    --db-parameter-group-name percona-opt
    --parameters "ParameterName=max_connections,ParameterValue=5000,ApplyMethod=immediate"
# For each instance-name:
aws rds modify-db-instance --db-instance-identifier <instance-name>
    --db-parameter-group-name=percona-opt
aws rds reboot-db-instance
    --db-instance-identifier <instance-name>

Once you create the initial DB parameter group, configure the variables as follows:

aws rds modify-db-parameter-group
    --db-parameter-group-name <instance-name>
    --parameters "ParameterName=max_connect_errors,ParameterValue=999999,ApplyMethod=immediate"
aws rds modify-db-parameter-group
    --db-parameter-group-name <instance-name>
    --parameters "ParameterName=max_connect_errors,ParameterValue=999999,ApplyMethod=immediate"
## Verifying change:
aws rds describe-db-parameters
      --db-parameter-group-name aurora-instance-1
      | grep -B7 -A2 'max_connect_errors'

Please keep in mind, it can take a few seconds to propagate changes to nodes. Give it a moment before checking the values with “show global variables”. You can configure the DB Cluster Parameter group similarly, for example:

# Create a new db cluster parameter group
aws rds create-db-cluster-parameter-group --db-cluster-parameter-group-name percona-cluster --db-parameter-group-family oscar5.6 --description "new cluster group"
# Tune a variable on the db cluster parameter group
aws rds modify-db-cluster-parameter-group --db-cluster-parameter-group-name percona-cluster --parameters "ParameterName=innodb_flush_log_at_trx_commit,ParameterValue=2,ApplyMethod=immediate"
# Allocate the new db cluster parameter to your cluster
aws rds modify-db-cluster --db-cluster-identifier <cluster_identifier> --db-cluster-parameter-group-name=percona-cluster
# And of course, for viewing the cluster parameters
aws rds describe-db-cluster-parameters --db-cluster-parameter-group-name=percona-cluster

I hope you find this article useful, please make sure to share with the community!

via MySQL Performance Blog
How to Configure Aurora RDS Parameters

How to Shoot a Bow and Arrow

For thousands of years, humans have used the bow and arrow for hunting and warfare. Today, you can buy bows equipped with devices and sights to help you aim accurately and hit a bull’s-eye almost every time they’re drawn. For example, with a fixed pin sight, an archer has a guide that shows how to adjust his aim to ensure he hits the target no matter the distance.

But ancient archers had to learn how to aim without sights. This skill — called instinctive shooting — requires years of trial and error to master. Through consistent practice, the body and mind intuitively learn how to adjust the aim of the bow to accommodate different shooting distances. Instinctive shooting is a lot like throwing a baseball or shooting a basketball. Once you’ve practiced these skills, you don’t really think about aiming when you throw a baseball to someone or shoot a basket. You just do it. Somehow your mind and body are able to calculate the right angle and force to throw the ball to ensure it hits your target, or at least gets very close.

Because of the mind-body connection inherent to traditional archery, ancient archers — particularly those from China — often used the bow as a philosophical metaphor. For example, Confucius was an archery teacher and used the practice as an analogy for wu-wei, or effortless action. To successfully shoot a bow and arrow intuitively, you’ve got to try not to try, because the moment you start trying too hard to aim, you end up missing the target completely. So it goes in life as well. 

The funny thing about instinctive bow shooting and this whole idea of trying not to try is that to get to that state, you’ve got to be intensely mindful and deliberate about it. You’ve got to try to try, before you can try not to try.

If instinctive archery sounds like something you could get into, but the last time you shot a bow and arrow was at summer camp as a kid, today we break down the steps of instinctively shooting a bow and arrow. With time and practice, your archery will hopefully hit a state of wu-wei, or effortless action.

How to Instinctively Shoot a Bow and Arrow

While it is possible to instinctively shoot a compound bow, the practice is most associated with traditional archery — that is, archery that uses recurve bows or longbows. For the purposes of this article, we’ll be showing how to instinctively shoot with a traditional bow.

Assume a Relaxed Stance

Stand with your shoulders perpendicular to your target with your feet shoulder-width apart. From here, you’ve got two options on how to place your feet. If you’re just starting out, a squared stance — in which both your feet are parallel to the shooting line — is the way to go, as it will ensure that you consistently set up in the same way.

After some practice, you might consider experimenting with an open/oblique stance. With an open stance, the lead foot points towards the target. This stance is good if you’re on uneven ground, and it helps prevent you from overdrawing your bow. The downside is that because it rotates your hips towards the target, when you do draw back, you have a tendency to just use your arms instead of your back muscles.

If you’re a rank beginner, go with the squared stance.

Nock the Arrow

 
Place the arrow shaft on the arrow rest of your bow. Attach the arrow’s nock — the plastic, grooved part at the arrow’s end — to the bow string. Your bow string should have 1-2 nock locators that indicate where the arrow should be placed, and ensure that you consistently nock your arrow at the same place each time you shoot. If your string has just one locator, nock your arrow just beneath the bead. If it has two locators, nock the arrow between the two beads.

Grip the Bow Correctly


Place the bow in your non-dominant hand. You want the grip of the bow to rest right on the pad of your thumb. This placement will ensure that you don’t squeeze the bow too tightly, which would cause it to torque inwards, throwing off accuracy, and would also place your forearm in-line with the string; if you’re not wearing an armguard, it’s going to hurt when you release it.

A good cue to know if your grip is right is to check to see if your knuckles create a 45-degree angle to the bow grip. If your hand is in that position, you likely have the bow placed on the pad of your thumb.

Squeeze the grip like you’re shaking a hand. Not too hard and not too lightly.

How to Grip the Bow String


With your arrow nocked, and your bow hand gripping the bow correctly, we’re ready to grip the bowstring.

There are different ways to grip a bowstring but for the purposes of this article, we’ll be highlighting the Mediterranean method, as it’s the easiest way for beginners.

With the Mediterranean grip, we’ll be using three fingers — index, middle, and ring — to pull the bowstring back. The bowstring should rest in the groove of your top knuckles. The arrow’s nock should be between your index and middle finger. If that’s uncomfortable for you at first, feel free to put all three fingers beneath the arrow’s shaft.

If you’re just starting out, pulling a bowstring back with your bare fingers can be uncomfortable and even painful. Consider using a finger tab, which is a piece of leather that protects your fingers from the bowstring. You can also wear gloves if you want.

Prep Your Draw

 
We’re almost ready to draw the bow back. But before we do, we want to make sure the bow is in the right place for the most efficient draw. To do so, simply lift the arm holding the bow so that the arm is at shoulder height. Once you’re there, it’s time to….

Draw the Bow String Back
  

When most folks draw a bowstring back, they want to use their arms. This will only tire you out and cause you to under-draw the string — that is, not pull it back far enough. When you draw a bowstring back, you want to use your back muscles. Imagine squeezing your shoulder blades together. That cue will help ensure you’re using your back muscles and not your arm or shoulder muscles to draw the bowstring back.

Anchor the String


How far should you draw your bowstring? To your anchor point. An anchor point is a reference point on your face that you draw the string to in order to ensure that you draw it the same way each time. There are a few anchor points you can create. Your anchor point could be a spot on your nose. If that’s the case, you draw the string until it touches that certain spot on your nose. Or your anchor point could be your index finger touching the corner of your mouth.

Whatever you decide to be your anchor point, fix it in stone and consistently draw your bowstring until you’ve reached that spot.

Aim
  

Aim the point of your arrow at your target. Don’t overthink the aiming. Remember wu-wei — try not to try. The harder you try, the more elusive your target becomes.

Release and Follow Through


Keeping your bow arm steady, simply push your fingers on the bowstring out of the way of the string. The string will snap forward and your arrow will start to fly.

But shooting an arrow doesn’t stop at the release. Just as you must follow through when throwing a baseball to accurately throw the ball, you need to follow through with your arrow release. After you’ve let the bowstring go, your draw hand should continue moving backwards until it reaches the bottom of your ears. This movement will also naturally cause the bow to tilt forward a bit. Let it. This follow-through ensures that all the energy in the bow is transferred cleanly to the arrow.

Practice, Practice, Practice

Well, there you go. The basics of instinctively shooting a bow and arrow. Like any skill, you’ll get better at it the more you work on it. With enough time, you’ll eventually reach a state of effortless action with your archery, and who knows, perhaps a little of this wu-wei will carry over to the rest of your life as well!

The post How to Shoot a Bow and Arrow appeared first on The Art of Manliness.


via The Art of Manliness
How to Shoot a Bow and Arrow

After “Game of Thrones” Capes Revaled to Be Ikea Rugs, Ikea Releases How-To Instructions

Here’s a 10-second clip of "Game of Thrones" costume designer Michele Clapton revealing where the capes of the Night’s Watch come from:

Apparently folks were titillated that Ikea rugs were the source material.

So too was someone at Ikea, who then had whomever’s in charge of producing Ikea’s assembly directions create one for the cape:

Yanks are out of luck; the Skold sheepskin rug pictured above isn’t available in the ‘States. (The image is from Ikea’s Australian website.)


via Core77
After “Game of Thrones” Capes Revaled to Be Ikea Rugs, Ikea Releases How-To Instructions

LDAP with auth_pam and PHP to authenticate against MySQL

In the quest to secure MySQL as well as ease the number of complicated passwords to remember, many organizations are looking into external authentication, especially using LDAP. For free and open source, Percona’s PAM authentication plugin is the standard option.

tl;dr is I go through how to compile php-cli for use with auth_pam plugin.

Background

There are two plugins that can be used. From the documentation, the two plugins are:

  • Full PAM plugin called auth_pam. This plugin uses dialog.so. It fully supports the PAM protocol with arbitrary communication between client and server.
  • Oracle-compatible PAM called auth_pam_compat. This plugin uses mysql_clear_password which is a part of Oracle MySQL client. It also has some limitations, such as, it supports only one password input. You must use -p option in order to pass the password to auth_pam_compat.

Percona’s MySQL client supports both plugins natively. That is, you can use auth_pam or auth_pam_compat and use the “mysql” tool (or “mysqldump”, or mysql_upgrade, etc.) and you are good to go. Given the choice, we would all use auth_pam, under which clients DO NOT use mysql_clear_password.

Not all clients support auth_pam, which is the main problem. Workarounds have called for using auth_pam_compat over SSL, which is a perfectly reasonable way to handle the risk of cleartext passwords – encrypt the connection.

However, what if you want to use auth_pam?

The problem with auth_pam

Back in 2013, Percona posted about how to install and configure auth_pam and auth_pam_compat. I will not rehash that setup, except to say that most organizations no longer use /etc/shadow, so the setup involves getting the correct /etc/pam.d/mysqld in place on the server.

That article has this gem:

As of now, only Percona Server’s mysql client and an older version of HeidiSQL(version 7), a GUI MySQL client for Windows, are able to authenticate over PAM via the auth_pam plugin by default.

So, if you try to connect to MySQL using Perl, PHP, Ruby, Python and the like, you will receive this error: “Client does not support authentication protocol requested by server; consider upgrading MySQL client.”

Fast forward 4 years, to now, and this is still an issue. Happily, the article goes on to explain how to recompile clients to get them to work:

The good news is that if the client uses libmysqlclient library to connect via MySQL, you can recompile the client’s source code to use the libmysqlclient library of Percona Server to make it compatible. This involves installing Percona Server development library, compiler tools, and development libraries followed by compiling and installing the client’s source code.

And, it helpfully goes step by step on how to recompile perl-DBD-mysql to get it working with LDAP authentication (as well as without – it still works for users who do not use LDAP).

But what if you are using PHP to connect to MySQL?

PHP and auth_pam

If you try to connect, you get this error:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

So let us try to mirror the perl recompilation process in PHP.

Step 1

“Install Percona yum repository and Percona Server development library.” This is not a problem, do what you need to do to install Percona-Server-devel for your version.

Step 2

Install a package manager so you can build a package – optional, but useful, if you ever want to have this new client without having to recompile. As in the example, I chose the RPM package manager, so I installed rpm-build.

Step 3

Download and install the source RPM for the client package. This is where I started running into trouble. What I did not realize was that PHP does not divide out its packages like Perl does. Well, it does, but php-mysqlnd is compiled as part of the core, even though it is a separate package.

Downloading the main PHP package

So I downloaded the source RPM for PHP at http://ift.tt/2i2s1cC, and installed it into the sources directory:
cd SRPMS
wget http://ift.tt/2fHR7Nh
cd ../SOURCES
rpm -Uvh ../SRPMS/php-7.0.22-2.remi.src.rpm

This unpacks a main file, php-7.0.22.tar.xz, plus a bunch of supplemental files (like patches, etc).

What it does NOT contain is a spec file, which is critical for building the packages.

Getting a spec file

I searched around and found one at http://ift.tt/2i2s20a – this is for 7.0.21, so beware of using different versions of spec files and source code. Once that was done, I changed the mysql lines to /usr/bin/mysql_config as per Choosing a MySQL library. Note that I went with the “not recommended” library, but in this case, we WANT to compile with libmysqlclient.

Compiling php-cli, not php-mysqlnd

In addition, I discovered that compiling php-mysqlnd with the new libraries did not work. Perhaps it was something I did wrong, as at that point I was still compiling the whole PHP package and every module in it.

However, what I *did* discover is that if I recompiled the php-cli package with libmysqlclient, I was able to get a connection via PHP using LDAP authentication, via a tool written by someone else – with no changes to the tool.

Final spec file

So here is the spec file I eventually came up with. I welcome any optimizations to be made!

Step 4

“Install compilers and dependencies”.
On my host I had to do a bunch of installations to get the requirements installed (your mileage may vary), including the Percona Server package for the /usr/lib64/mysql/plugin/dialog.so file:
yum install Percona-Server-server-55-5.5.55-rel38.8.el6.x86_64 libtool systemtap-sdt-devel unixODBC-devel

Step 5

“Build the RPM file”. Such an easy step, but it took about a week of back and forth with building the RPM file (which configures, tests and packages up everything), so I went between this step and updating the spec file a lot.

cd rpmbuild/SPECS/
rpmbuild -bb rpmbuild/SPECS/php-cli.spec

Then I installed my PHP file and tested it, and it worked!
# rpm -e php-cli –nodeps
# rpm -Uvh /root/rpmbuild/RPMS/x86_64/php70u-cli-7.0.22-2.ius.el6.x86_64.rpm –nodeps
Preparing… ########################################### [100%]
1:php70u-cli ########################################### [100%]

I hope you have similar success, and if you have updates to the spec files and lists of packages to install, please let me know!

via Planet MySQL
LDAP with auth_pam and PHP to authenticate against MySQL

Synology launches ‘budget-friendly’ 4-bay NAS that can handle up to 40TB of storage

Data storage solutions manufacturer Synology has added a new, lower-cost NAS to its DiskStation j line that has a maximum capacity of 40TB, and is aimed at the home user and photography enthusiast.

The DS418j has 4 disk bays, each of which can accommodate HDDs or SSDs of up to 10TB. Data is controlled via a new 64-bit dual-core processor and the device has been fitted with 1GB of DDR4 RAM—doubling the memory of the previous model.

Synology claims the DS418j can read at 112MB/s and write at 87MB/s encrypted and in RAID 5, providing fast data storage and retrieval, and allowing high resolution media streaming and synchronisation in domestic or small office environments. The case has a single RJ-45 1GbE LAN port and a pair of USB 3.0 sockets, and can support wireless access via a dongle.

The DS418j comes with a two-year warranty and is available now for £284/€312/$330. For more information see the Synology website.

Press Release

Synology® Introduces DiskStation DS418j

Powerful entry-level 4-bay NAS for home data backup and multimedia streaming

Synology® Inc. today launched the new DiskStation DS418j, a budget-friendly 4-bay NAS server designed to help home and individual users to manage, protect and share data effectively.

DS418j is powered by a brand-new 64-bit dual-core CPU and delivers an outstanding encrypted file transfer performance at over 112 MB/s reading and 87 MB/s writing under a RAID 5 configuration in a Windows® environment. Equipped with a 1GB DDR4 memory, which is twice the size of its predecessor, and over 40TB single volume raw capacity support, DS418j brings flexible storage management in addition to smooth performance.

"In the digital era, photos, videos, and digital assets are being generated faster than ever. For home and individual users, it is essential to have a private storage solution that can satisfy the needs for both large storage capacity and secure data sharing," said Michael Wang, Product Manager at Synology® Inc. "Combining hardware innovations and rich applications, the 4-bay DS418j allows users to enjoy cloud synchronization and multimedia streaming at a competitive price."

Designed with user experience and energy efficiency in mind, DS418j is equipped with adjustable front LED indicators, allowing users to precisely control and schedule the brightness in four levels. In addition, the model consumes only 21.22 watts in full operation and as little as 8.97 watts in HDD hibernation.

DS418j runs on DiskStation Manager (DSM), one of the most advanced and intuitive operating systems for network-attached storage devices which offers a wide range of applications from backup to multimedia for home and personal use. With DSM, Synology® has received numerous media accolades, including PC Mag Readers’ Choice for seven years in a row.

For more information, please visit http://ift.tt/2vHTgid

Availability
Synology DiskStation DS418j is available worldwide immediately.

via News: Digital Photography Review (dpreview.com)
Synology launches ‘budget-friendly’ 4-bay NAS that can handle up to 40TB of storage

Watch: Quick DIY PVC Bow Without Heat or Power Tools

This video gets right down to it, showing us one way to make a good, useful bow using PVC, some fiberglass rods, and some paracord — without any heat or power tools.

It’s super simple, and clearly works well. He uses fiberglass “driveway markers” slipped into the 3/4″ PVC to give it more strength and spring.

He says its draw weight is about 35 pounds.

After about the halfway point, he starts to wander and there’s nothing else about this bow build… so it really is a quick little video. Check it out.

The post Watch: Quick DIY PVC Bow Without Heat or Power Tools appeared first on AllOutdoor.com.

via All Outdoor
Watch: Quick DIY PVC Bow Without Heat or Power Tools

Nintendo faces lawsuit over the Switch’s detachable controllers

The Nintendo Switch certainly isn’t the first gaming tablet, but is it directly riffing on others’ ideas? Gamevice thinks so. The accessory maker is suing Nintendo for allegedly violating a patent for concepts used in the Wikipad, its gaming-oriented Android slate, as well as its namesake add-on controllers for phones and tablets. According to the suit, the Switch and its removable Joy-Con controllers are too close to Gamevice’s vision of a combination of detachable game controller and a device with a "flexible bridge section." Not surprisingly, the lawsuit calls for both damages and a ban on Switch sales.

Gamevice declined to comment on the lawsuit. We’ve reached out to Nintendo as well, and will let you know if it has a response.

In some ways, the lawsuit is an epilogue to a long-running story. The Wikipad team started out with grand plans for tablet gaming in 2012, when it promised elaborate features as glasses-free 3D and game streaming. However, it didn’t work out that way: delays and a rethink prompted a change in design, and while the Wikipad did receive some acclaim, Gamevice eventually dropped it in favor of its add-ons for phones and tablets. Although Nintendo’s Switch clearly has some differences (it’s intended more as a hybrid TV and portable console, for one thing), it’s effectively showing what could have been if the Wikipad had taken off.

Source: RPX Insight

via Engadget
Nintendo faces lawsuit over the Switch’s detachable controllers