How Highlighters Are Made

How Highlighters Are Made

https://ift.tt/2t0qZ6B

How Highlighters Are Made

Link

As we’ve moved away from print and towards digital reading, highlighters aren’t as popular as they once were. But these fluorescent pens are still pretty cool for making art. Science Channel’s How It’s Made shows the process of molding the plastic bodies, filling their nibs with ink, and testing them for smooth flow.

fun

via The Awesomer https://theawesomer.com

December 23, 2019 at 04:02PM

S&W M&P 2.0 Subcompact Review and Glock 26 Comparison

S&W M&P 2.0 Subcompact Review and Glock 26 Comparison

https://ift.tt/34QHDmL

S&W M&P 2.0 Subcompact Review and Glock 26 Comparison

Posted in Concealed Carry, Pistols, Semi-Auto, TFBTV by with No Comments
Tags: , , ,

In this episode of TFBTV,  @James Reeves takes a look at the new S&W M&P 2.0 Subcompact, which is the smallest doublestack of the M&P line of pistols, and it now features the full suite of S&W M&P 2.0 upgrades including the upgraded trigger, grip texture, and slide work. James compares it to the Glock 26 for those of you looking for your next doublestack subcompact.

««« GUN AND GEAR GIVEAWAYS »»»

PLEASE check out our Patreon and Subscribe Star pages if you enjoy our program, and consider helping us at TFBTV out! We give away hundreds of dollars of gear a month to our supporters! https://ift.tt/20aijRh https://ift.tt/2mNjr43 NOTE: These giveaways are not affiliated with, associated with, or in any way endorsed by YouTube and TFBTV is solely responsible for the giveaways mentioned in this video and this description. No purchase required for gear worth over $250.

««« FOLLOW US ON SOCIAL MEDIA »»»

https://ift.tt/2Ny4xaJ

https://ift.tt/2wqXNET

https://ift.tt/2THAj8m

««« GUNS IN THIS VIDEO »»»

Glock 26

S&W M&P 2.0 Subcompact

SIG P365XL

««« SPONSORS »»»

Please Support Them! They help make our videos possible. – Ventura Munitions – Federal Premium – Building the industry’s widest variety of ammunition and offering leading products for every facet of the shooting sports. https://ift.tt/P4n5jx -Blue Alpha Gear: https://ift.tt/2hKMfnu

««« TFB CHAT ROOM »»»

Want to join the TFBTV chat room? Use our Discord Invite: https://ift.tt/2t6R69l

guns

via The Firearm Blog https://ift.tt/2JX8W99

December 23, 2019 at 02:00PM

MySQL 8.0 & PHP on RedHat, CentOS and Fedora

MySQL 8.0 & PHP on RedHat, CentOS and Fedora

https://ift.tt/2EGGjbo

As you could read in this previous post, PHP 7.4 is now completely supporting MySQL 8.0 and the new default authentication plugin.

I wanted to make a summary table providing and overview of all PHP versions and how they supported MySQL 8.0 and the different authentication plugins.

As I am a RPM based distribution user, I’m using the famous repository of remi since a lot of years, and I use it then also to install PHP 7.4.0 and 7.4.1

I created a new user to test to connect with PHP and then… I was surprised to see that I could not connect to MySQL using caching_sha2_password. Of course I tried to see if my credentials were correct using the MySQL client… and I could connect… Then I tried again my PHP script and new surprise, I could connect !?!

I could connect because the password was cached. If I run FLUSH PRIVILEGES, then the PHP script could not connect anymore.

The error was:

Trying with caching_sha2_password....
PHP Warning:  mysqli::__construct(): (HY000/1045): Access denied for
user 'fred_secure'@'mysql-dc1-2' (using password: YES)

I discussed this with my colleagues. They tried ith the same PHP version and they could not reproduce my error… but they were using Ubuntu.

What’s wrong ?

So I decided to compile from scratch PHP 7.4 on my CentOS 8 box… and… it worked as expected !

After a lot of debugging, testing many openSSL versions and compilation more than 10 times PHP… I was able to find the difference and compile a rpm based on Remi‘s spec file.

The problem was in mysqli.so.

I don’t explain yet why this is a problem, and I already reported this to my colleagues, but the difference between Ubuntu packages and my compiled from scratch version and the one installed from Remi’s repo, is the absence of value for mysqli.default_socket:

mysqli.default_socket => no value => no value

So, I’ve rebuild Remi’s package removing --with-mysql-sock=%{mysql_sock} \ and it worked !

I will now wait for feedback from the developers to understand the reason and see if this is a bug. However, if you want already to use PHP 7.4.1 and MySQL 8.0 on any RedHat based distribution, you will need to have a new php74-php-mysqlnd package.

You can download this one for el8 (RedHat, Oracle Linux and CentOS):

The package is built in way that you don’t need to update all PHP 7.4 packages, but only the mysqlnd one, like this:

rpm -Uvh php74-php-mysqlnd-7.4.1-2.el8.remi.x86_64.rpm
 Verifying…                          ################# [100%]
 Preparing…                          ################# [100%]
 Updating / installing…
    1:php74-php-mysqlnd-7.4.1-2.el8.rem################# [ 50%]
 Cleaning up / removing…
    2:php74-php-mysqlnd-7.4.1-1.el8.rem################# [100%]

I hope this can help you if you faced some authentication issue with PHP 7.4 and MySQL 8.0.

technology

via Planet MySQL https://ift.tt/2iO8Ob8

December 22, 2019 at 07:17PM

I Turned Garth Brooks’ Breakfast Bowl Into a Casserole and I Would Do It Again

I Turned Garth Brooks’ Breakfast Bowl Into a Casserole and I Would Do It Again

https://ift.tt/2ECurXE

Will It Casserole?Will It Casserole?The column where we take your delicious concepts and re-imagine them as casserole creations

Some life-changing events are preserved in perfect detail, like insects trapped in amber; some weasel their way into your consciousness so thoroughly that you’ll never again know for certain what life was like before. I couldn’t tell you where I was when I first learned about Garth’s Breakfast Bowl, but I do know that I’ve thought about it roughly once a week for what feels like my entire life.

If this is your first time reading the words “Garth’s Breakfast Bowl,” the details will either make or ruin your day, depending on your stance on carbs and pork. It’s bacon, eggs, cheese, sausage, tater tots, and tortellini layered on top of each other in a big bowl like a parfait. As legend has it, this is what best-selling solo artist of all time and Chris Gaines alter-ego Garth Brooks loves most in the world for breakfast. I am obsessed with it.

I strongly recommend taking 4 minutes and 11 seconds of your Friday afternoon to watch Trisha Yearwood and her daughter prepare The Bowl; it’s an experience you won’t soon forget. In the video, as she drops garlic and cheese tortellini into boiling water, Trisha states very matter-of-factly that “[this]”—which is to say, garlic and cheese tortellini, specifically—“is what Garth requires.” I’ve watched it dozens of times, with each viewing inspiring new questions. How did Garth Brooks come to require garlic and cheese tortellini in his Breakfast Bowls? (I have nothing but respect for this; breakfast pasta is a legitimate life choice. I’m just curious.) Whence the namesake Bowl? Why not serve the components individually? And, because I truly don’t know what’s good for me—where the hell is the gravy?

This last question, the newest and by far the most perverse, set me on a dangerous path. The only thing better than a pile of breakfast meats and carbs, I reasoned, is that same pile covered in sausage gravy. Before long, I’d schemed up a cross between my cousins’ absolutely banging sausage-and-canned biscuit casserole and the Yearwood-Brooks Ritual Breakfast Pile—but with gravy. The world does not need this; I made it anyway, and I refuse to apologize.

It should not come as a shock that Garth’s Breakfast CasserBowl is very, very good. The canned refrigerated biscuits and sausage gravy tie the disparate parts together into something like an extremely fucked up, deep-dish breakfast pie. It’s a rich, cheesy, pervasively porky carb smorgasbord—exactly what you need to survive the most brutal hangover season of the year. And, true to the spirit of the original, it’s extremely easy to put together.

Should you choose to make this affront to God, man, and everything good in this world, you will need:

  • 1 pound bacon
  • 1 pound pork breakfast sausage
  • 1/3 cup all-purpose flour
  • 3 cups whole milk
  • 1 can refrigerated biscuits
  • 10-12 ounces pre-shredded cheddar cheese (or more—no such thing as too much cheese, I say)
  • 10-12 ounces garlic and cheese tortellini, thawed if frozen (you could use another flavor, but Garth will be upset)
  • 10 eggs
  • 1 – 1 1/2 pounds frozen tater tots
  • Salt and pepper, to taste

Cook the bacon until super-crispy using your favorite method. I arranged mine on a rack set inside a foil-lined sheet pan and baked it for about 30-40 minutes at 375ºF. You absolutely will not need any extra grease here, so pour off the fat as it accumulates, reserving it for another use if desired.

Next, make the gravy. Cook the sausage over medium heat in your biggest, deepest ovenproof skillet until crisp and cooked through, about 8-10 minutes. Scoop out one big slotted spoonful and reserve it for the topping. Add the flour to the skillet and stir for a minute, then gradually stir in the milk. Simmer for five minutes until smooth and thick; season with salt and pepper to taste. Pour the gravy into a separate bowl, leaving a thin layer on the bottom of the skillet.

When the bacon and gravy are ready, it’s assembly time. Take half the canned biscuits and tear them into smallish chunks. Scatter those across the bottom of the gravy skillet.

Crumble all but a handful of the bacon over the top, then sprinkle on half the cheese. Dollop half of the gravy over that. Spread the tortellini evenly over the first layer of gravy, then pour the remaining gravy on top. Add more cheese, reserving a handful or two for the topping.

If you’d like, tear the remaining biscuits into strips and press them around sides of the skillet. (This will make for a more solid, pie-like casserole; skip it if you prefer your breakfast piles on the gooey side.) Whisk the eggs together with a splash of milk and lots of salt and pepper, then pour into the skillet. Press a piece of parchment onto the surface of the casserole and wrap tightly with foil.

Bake the covered casserole on a sheet pan for 35-40 minutes at 350ºF, then remove the parchment and foil and arrange the tater tots over the surface of the casserole. Increase heat to 425ºF. Top with the reserved cheese, bacon, and sausage, return the skillet to the sheet pan, and bake for another 15-20 minutes, until the tater tots are golden brown and the casserole is bubbling hot.

Cool for about 10 minutes if you can stand it. Serve in slices or scoops, topped with lots of hot sauce and maybe another sprinkle of cheese. Now is not the time for restraint.

geeky,Tech,Database

via Lifehacker https://lifehacker.com

December 20, 2019 at 12:05PM

Eloquent HasManyDeep Package

Eloquent HasManyDeep Package

https://ift.tt/35HJziH

Eloquent HasManyDeep Package

The Laravel Eloquent HasManyDeep Package is an extended version of Laravel Eloquent’s HasManyThrough that allows relationships with unlimited intermediate models. It includes support for many-to-many and polymorphic relationships.

As an example of how this package is useful to pretend you have a setup where you want to get all comments for all posts, by users in a specific country. It might look something like this:

Country → hasMany → User → hasMany → Post → hasMany → Comment 

Granted this gets pretty complicated, but with this package, you can define the relationship like the following:

class Country extends Model { use \Staudenmeir\EloquentHasManyDeep\HasRelationships; public function comments() { return $this->hasManyDeep('App\Comment', ['App\User', 'App\Post']); } } 

Then you’ll be able to call Country::first()->comments to get all the comments which keeps the familiar Laravel syntax.

To take this a step further, Povilas Korop from Laravel Daily also created a review video covering this package:

If you’d like to find out more visit the staudenmeir/eloquent-has-many-deep on Github and the readme contains the full documentation.


Filed in: News


Enjoy this? Get Laravel News delivered straight to your inbox every Sunday.

No Spam, ever. We’ll never share your email address and you can opt out at any time.

programming

via Laravel News https://ift.tt/14pzU0d

December 20, 2019 at 11:01AM

Working Protosaber Blade

Working Protosaber Blade

https://ift.tt/2ECDaJC

Working Protosaber Blade

Link

While the idea of a real-world lightsaber sounds awesome, the amount of power required makes the idea impractical. But to celebrate the release of Star Wars: Jedi Fallen Order, The Hacksmith came up with the next best thing, a battery-powered version of the predecessor of the weapon, known as a Protosaber. Demo at 14:03.

fun

via The Awesomer https://theawesomer.com

December 19, 2019 at 05:49PM

G44: A Review of Glock’s First Rimfire Pistol as It Relates to the G19

G44: A Review of Glock’s First Rimfire Pistol as It Relates to the G19

https://ift.tt/2Z3KCqF

Would it be a single-stack .45 ACP? Maybe a commercial version of the Glock 47 Border Patrol variant? There was even buzz on forums that it would be — wait for it — an AR-style firearm. Then there were those who predicted it would be a .22 LR. My only guess is that it would be a Glock 44, but I had no idea about the caliber. My gut told me the model 44 would be next. After all, Glock is up to the G48 model. Why bypass the model 44? And so here we are, with the G44 pistol … a rimfire?

Chambered in .22 LR, the Glock 44 is billed as a gun for the entire family.

RELATED STORY

Glock 44: Manufacturer Unveils First-Ever Pistol in .22 LR

Glock G44 Details

With all the fanfare of a new product launch, Glock teased up the event with an email to its subscribers, telling them to tune in on Dec. 10. I received the same email — no doubt millions of other Glock website subscribers did too — but I also received a prior email from Glock’s marketing team. Was I interested in attending an event, they asked? A bit. The next thing I knew I was sitting front row, center stage.

In fact, it was the G44 that was announced on Dec. 10. And, to my surprise, Glock chambered it in .22 LR. Yep, Glock is now manufacturing rimfire pistols. Glock introduced the new pistols with the concept of “Adventure Awaits and the Legacy Continues.”

When I asked Dr. Gunter Gigacher, President of Glock, Inc., about the manufacturer moving from a provider of military and law enforcement pistols to producing pistols for the commercial market, he said, “It is the next step and the natural progression for the company. It has been a long road to develop and we won’t produce a product until it is completely ready.”

While the Glock 44 is very unique from a Glock perspective, it is also very much the same. It’s the same size as G19 and with other features you expect in a Glock pistol: striker-fire trigger, polymer frame, polymer magazine, and plastic sights. The G44 is super-lightweight at just 15.94 ounces unloaded. If this isn’t a 21st century “kit gun,” I don’t know what is.

Familiar Glock Design

The operating system is a simple blow-back mechanism similar to the G25 and G28 .380 Auto pistols built for foreign markets. All other Glocks, except for the G46, are short recoil-operated, locked-breech semi-automatic pistols. The power of the .22 LR is by far less than the centerfire calibers chambered by Glock. A blow-back system makes sense and all other .22 LR rimfire pistols on the market use a blow-back system. The engineering challenge is reducing the slide mass to reliably operate with .22 LR loads. Think for a minute about how many different .22 LR cartridges are available.

There are cartridges with at least 15 different bullets weights, ranging from 20 grains up to 60 grains. Let’s not forget the cartridges. Ever look at Aguila’s line of .22 LR ammo? Aguila corners the market in niche loads from subsonic 20-grain Colibri rounds to 60-grain Sniper subsonic rounds. Then include all the inexpensive plinker ammo, target and high velocity loads.

The slide is unique on the G44 since it is a combination of polymer and steel, which offers light weight and strength as well as the correct slide mass to cycle all the different types of .22 LR cartridges.

G19 Sized for Training

At the event, Glock had G19 Gen5 pistols on-hand so we could compare the the two pistols side by side. They are both 7.28 inches in length and are 5.04 inches height. The G44 is slightly less width at 1.26 inches; the G19 is 1.34 inches wide. I field-stripped the two pistols and tried to swap slides on frames and it was a no go. I later heard from William Carmichael, Manager of technical Services at Glock: “Very few of the internal components are the same between the G44 and G19. Most of the internal firing mechanism is unique to the G44 due to the 22 rimfire caliber.”

The magazine is also unique and with good cause. Since the G19 and G44 are nearly identical, so are the magazines. G44 magazines incorporate ridges on the back side of the magazine body. G19s have a smooth magazine body except for the witness holes. Those ribs offer the user a tactical feel, which immediately tells the user this is a rimfire magazine, not a centerfire magazine.

At the range we fired CCI Blazer 40-grain LRN ammo through the G44s. The magazines have a 10-round capacity, so those users in states with restrictive magazine capacity laws will exhale a sigh of relief.

Rounds Downrange

It’s hard to concentrate when you have Team Glock shooters like Shane Coley and Ashley Rhueark shooting next to you. Both of them show their mastery of the sport with a sure grip and stance. And they ran the G44s as fast as they could with little muzzle bounce due to recoil. In hand the G44 is super-lightweight. I pick it up and think G19, but the weight tells me different.

At 10 yards I was able to hit the 4.5-inch-by-3.5-inch reactive hit zone on a steel target in rapid fire. I have nowhere near the level or speed of Coley and Rhueark, but I was having fun. Steel targets — round and square shaped — were set out at 50 yards, which is well plinking range, and I was able to hit them once I was zeroed in. The trigger was typical Glock striker-fire, which is boringly consistent. And you don’t bust your thumb loading the magazine like you can with other .22 LR pistol magazines.

Glock has a new plinker, and my gut tells me this will also make a great, low-recoil training pistol. When moving up to the 9mm G19, the only thing users will noticed is increased recoil. Other than that the experience will be the same. My sample pistol is already at my dealer. All I need now is lots of inexpensive .22 ammo and few empty soda cans. For more information, visit glock.com.

The post G44: A Review of Glock’s First Rimfire Pistol as It Relates to the G19 appeared first on Personal Defense World.

guns

via Personal Defense World https://ift.tt/2Arq2GB

December 19, 2019 at 11:31AM

Refactoring To Lookup Tables

Refactoring To Lookup Tables

https://ift.tt/34tfvph

Caleb Porzio returns this week to provide an in depth review of lookup tables. Lookup tables are a lesser known, but extremely versatile and powerful little pattern. We’ll use them to clean up some long conditionals, and then explore how they can help us share backend business logic with the frontend.

View the source code for this episode on GitHub.

Published on Dec 17th, 2019.

programming

via Laracasts https://ift.tt/1eZ1zac

December 17, 2019 at 04:15PM

Learn and Practice SQL With This Game

Learn and Practice SQL With This Game

https://ift.tt/2r1cSxn

Ever tried to learn SQL, the query language that lets you poke at the innards of databases? Most tutorials start by having you create your own database, fill it with nonsense, and then run queries that will make your eyes glaze over (hooray, we can simulate the accounting department for a widget factory). The Knight Lab’s SQL Murder Mystery, however, makes things a bit more fun.

In the game, you know that a murder was committed, but you lost the police report describing it. Knowing only the date and location, can you sift through the information in the police database to figure out who the murderer was?

The scenario is a bit contrived, but it works as a puzzle because you have a question compelling you to dive through the data. My SQL is a bit rusty, so I immediately googled a bit of the syntax I’d forgotten, and started poking away. This is how we solve coding problems in real life, after all: Figure out what tools you need to answer the question you actually care about.

In the game, you start by getting your bearings—what tables are in this database?—and as you do, you find clues to follow up on. For example, it’s easy to find an entry for the police report, but it doesn’t mention the suspect; instead it just references two witnesses. In another table you can find witness interviews, and then follow up on clues (one witness remembers part of the culprit’s license plate, for example.)

I’ve worked with SQL databases before, and at first I was annoyed at how the database was set up. (I would have done it differently.) Then again, in real life you often have to extract information from a database that is oddly organized. There’s also no in-story explanation of why the police database also contains useful but disconnected information, like the local gym’s member check-ins. But while it may not make sense to encounter all of these things in the same database in the real world, it does give you an idea of how a piece of information (a license plate, a sighting at the gym) can get you access to a whole trove of further information if you can just find the right data source.

This game will take you maybe 10-15 minutes if you’re already good with SQL, or you can use it to guide a longer session if you’re still learning. (There is an accompanying walkthrough that teaches you as you go.) A bonus level at the end challenges you to find out who hired the hitman, and to do so with a three-table join (or at least that’s how I did it). Because if you really want to learn how to use a tool, you need to figure out how to ask and answer your own questions, not just run through a textbook.

geeky,Tech,Database

via Lifehacker https://lifehacker.com

December 17, 2019 at 01:08PM