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

Glock 44: In-Depth Review of Glock’s First .22 LR on TFBTV

Glock 44: In-Depth Review of Glock’s First .22 LR on TFBTV

https://ift.tt/38GFm0B

In this episode of TFBTV, @James Reeves brings you a FULL REVIEW of the NEW Glock 44 direct from the Glock Factory in Deutsch-Wagram, Austria. Here’s the complete rundown and range session.

Read more at: https://www.thefirearmblog.com/blog/2019/12/16/glock-44/

See also this FAQ shamelessly lifted from TFB Editor Pete’s article on the G44 @ https://ift.tt/2rzllYP

The GLOCK G44 is designed to mimic a full powered combat handgun while shooting a low recoil, inexpensive round that allows for an increased amount of training time. All without sacrificing functionality. These features in a real defensive pistol represent the holy grail for new shooters, trainees and anyone else looking for an enjoyable shooting experience.

Q: What’s a good G44 size comparison?

A: It’s a compact handgun. The G44 is indistinguishable in size from a Gen 5 G19.

Q: What is the G44 slide made of?

A. The G44 Slide is a hybrid steel polymer design (steel rails, polymer slide body).

Q. What is the GLOCK 44 magazine capacity?

A. These two G44’s use 10 round magazines, although there have been whispers of possible 15 round magazines in the future.

Q. Are there GLOCK 44 threaded barrel versions available?

A. Factory G44 threaded barrels will be available on the commercial launch date.

Q. GLOCK 44 ammunition recommendations?

A. While standard and high velocity ammunition might be somewhat preferable, outside of some ammo with manufacturing irregularities (velocity fluctuations) most quality ammo runs great in the G44.

Q. What does the GLOCK 44 trigger feel like?

A. The G44 trigger feels exactly like a Gen 5 G19.

Q. Tell me about the GLOCK 44 disassembly process.

A. The G44 field strips for cleaning and maintenance like any other commercially available GLOCK pistol.

Q. What GLOCK G44 holster and magazine carrier options are available?

A. Any holster or carrier designed for the Gen 5 G19 will work with the G44.

Q. What GLOCK G44 light and laser combinations are currently available.

A. Any weaponlight or laser designed to work with current accessory rail-equipped GLOCK pistols will work on the GLOCK 44.

Q. How much does the GLOCK G44 cost?

A. At the time of this writing, the unconfirmed MSRP of the G44 is $400 USD.

Q. What about GLOCK G44 sights?

A. The GLOCK 44 comes standard with basic polymer sights but can use any sights designed for the Gen 5 G19 pistols.

Q. What is the official GLOCK G44 website?

A. GLOCK USA G44 – https://ift.tt/36pGFz4

Q. Where is the GLOCK G44 manufactured?

A. The GLOCK 44 is made at GLOCK USA headquarters and factory in Smyrna, Georgia.

Q. What about a GLOCK G44 manual safety?

A. No, the GLOCK 44 uses the same Safe Action features found on their centerfire firearms.

««« 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 44

««« 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 #TFBTV



We are committed to finding, researching, and recommending the best products. We earn commissions from purchases you make using the retail links in our product reviews.

Learn more about how this works

.

guns

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

December 16, 2019 at 06:00PM

Scrum Poster Walkthrough

Scrum Poster Walkthrough

https://ift.tt/2PNxvpa

Earlier this year, I released the complimentary Scrum Poster with the goal to give Scrum Teams around the world a medium to see the Scrum Guide in visual form. Beside the guide itself, many text documents and presentations have flooded the various platforms and I felt a picture can express so much more. I also felt transparency was best supported by shipping the actual paper version so show support of Scrum in a team area. Beside the initial intend of making the rules, artifacts, events and roles visible, the poster became a learning tool in recent months during my Scrum classroom trainings. The poster triggered conversations among students, very often during breaks, that might otherwise been missed. We also began using the poster during Retrospectives and released a retrospective technique, called Scrum Value Pairs that makes use of the poster as well as the icons of the scrum values.

Today, I am releasing a very short 5-Min video, that aims to provide a quick walkthrough of the poster hitting the events, artifacts and roles within Scrum. A red dot symbolizes a you are here orientation while I am talking about the framework. I hope that this voice over video will provide an additional learning tool for everyone new to Scrum, or for teams that would like to watch an animated walkthrough alongside with the poster. 

scrum/agile

via Scrum.org Blog https://ift.tt/2TTJdzo

December 16, 2019 at 07:27AM

Glitter Bomb Trap 2.0

Glitter Bomb Trap 2.0

https://ift.tt/35ooiKJ

Glitter Bomb Trap 2.0

Link

After building an ingenious device to befuddle porch package thieves, Mark Rober is back with a new and improved version. Like the original, it shoots video of the thief, fires off glitter and fart bombs, but with a little help from his friend Sean Hodgins and Home Alone star Macaulay Culkin, this version is better in every way.

fun

via The Awesomer https://theawesomer.com

December 15, 2019 at 12:45PM

[VLOG] What Are the Scrum Product Owner Accountabilities

[VLOG] What Are the Scrum Product Owner Accountabilities

https://ift.tt/2rJG9gr

Hey awesome people. The Product Owner role is often underestimated. When an organisation is transitioning to use Scrum, it is not rare to see people perceive Product Owner as the business analyst or requirements engineer just managing the Product Backlog. It is also not rare to see the Product Owner who are just focused on the project lifecycle and delivering on time, on scope and on budget. And the Product Owner role is perceived as a low level tactical role because theScrum Guide does not explicitly write down other activities the Product Owner should do outside of Scrum, it is not rare to see an additional layer on top of the Product Owner called the Product Manager.

In today’s vlog, I share what is the Product Owner role is about and what is the broad accountabilities of the Product Owner. Being a Product Owner is not easy and as a Scrum Master I will do my best to serve the Product Owner so that they can do outstanding job as a Product Owner. Hopefully today’s vlog is helpful for those of you who are new to Scrum and Product Owner role.

 

 

scrum/agile

via Scrum.org Blog https://ift.tt/2TTJdzo

December 13, 2019 at 08:02PM

The 6 Best Websites to Find Guitar Chords for Songs

The 6 Best Websites to Find Guitar Chords for Songs

https://ift.tt/35jp3oh

Playing guitar is a fantastic way to relax and de-stress. One of the best things about the guitar is the sheer number of songs you can play with a few chords. All you need now is a good website with all the guitar chords and lyrics to your favorite songs.

Luckily for you, the internet is full of awesome options.

We’ve pulled together the best websites to find free guitar chords and lyrics to all the most popular songs. Let’s start playing!

1. Ultimate Guitar: The Largest Song Library Available

Ultimate Guitar home page

Ultimate Guitar benefits from a huge community of guitarists who contribute chords and tabs to the website. You will also find several different versions of the songs to practice with too.

Search for songs using the track name or artist, or click the chord button in search bar to search for particular chords. That way, if you’re new to guitar, it’s super easy to find songs you can already play by searching the chords you already know.

Users can rate the guitar chords and tabs out of five, making it clear which version is the best. What’s more, sign up to Ultimate Guitar Pro to get access to professional guitar chords and lyrics, which are always accurate.

Ultimate Guitar also features music news, reviews, articles, and interviews. Take a look at the most popular recent guitar chords and tabs or browse through the top 100 tabs of all time to start learning some classics.

Guitar Chords for “You and I” on Ultimate Guitar

Ultimate Guitar website with You and I Guitar Chords

Let’s walk you through an example of finding guitar chords and lyrics on Ultimate Guitar. Get started by searching for the song you want to learn. In this example, we searched for “You and I” by One Direction.

Filter your search results with the Chords button, then sort them by High rated. If there are several different versions for your song, start with the highest rated one.

When you click the version you want, you should see a combination of guitar chords, tabs, and lyrics. Sometimes there’s also an explanation for how to play the song. In the “You and I” version we chose, there was a link to a performance on YouTube as well.

Hover your mouse over each chord name to see a diagram showing how to play it. You can hear how it should sound and even use the arrow button to see alternate fingerings. If you want to sing along, transpose the song to a key that’s comfortable for you.

When you’re ready to play, click the Auto-scroll button at the bottom of the screen.

2. Chordify: Play Along With the Recording

Chordify home page

Sometimes, you want to learn a particular song even if you don’t know how it goes that well. Chordify is perfect for those situations. This website features a super clean interface with large chord diagrams that update as the song plays in real-time.

Hit the play button and grab your guitar. Chordify loads a YouTube video in the corner and starts playing the actual recording. The display in the center of the screen shows a square box for each bar and tells you when to change to the next chord.

If anything, it’s all a little bit too simple. There’s no information about strumming patterns and Chordify doesn’t offer alternate chord fingerings, even if the song needs them. There are no lyrics too. But it’s a great place to get started.

Also, if you sign up for a monthly subscription, you can unlock tools to change the tempo, volume, and pitch of the song as you play along with it.

Guitar Chords for “Can’t You See” on Chordify

Chordify page showing Can't You See Guitar Chords

Let’s find guitar chords for the song “Can’t You See” by the Marshall Tucker Band.

Search the song or artist you want to play, then click the song from the list of results. There’s only one version available for each song, which is nice and simple. But not all songs are “Chordified” which means you might not be able to play along.

On the next screen, take a look at the chords you need for the song. When you’re familiar with them, click the Play button and Chordify starts playing the song over YouTube and scrolling through the chords in time.

3. Songsterr: Interactive Tabs or Clean Chords

Songsterr home page

There are two versions of the Songsterr website. The newer version features an interactive player with tabs for over 500,000 songs. Many of the songs on here even let you choose from multiple instrument parts to play.

However, if you’re looking for guitar chords and lyrics to popular songs, rather than tabs, click the button to visit Old Songsterr instead. From here, enter the song title or artist you want to search for, then click the song you want to learn from the results.

Each song on Songsterr has one of three different icons, to show what’s available:

  • The Play button signifies an interactive tab that uses Flash Player.
  • The T indicates a tab written out in text form, which is often trickier to read.
  • And the Chord icon shows songs with the lyrics and chords.

Click the Chord icon to reveal a clean interface with lyrics running down the page and all the chords you need to know on the right. Click each chord to see alternate fingerings.

Guitar Chords for “Just What I Needed” on Songsterr

Songsterr page with Just What I Needed guitar chords

For this example, we’re going to play “Just What I Needed” by The Cars. Search the song name from Songsterr’s old website, then click the Chord icon next to that song from the list of results.

Take a moment to get familiar with the chords in the song, clicking each one to find alternate fingerings if you need them. When you’re ready, follow the lyrics to play the song, changing the chord whenever it’s indicated.

There’s no auto-scroll, backing track, or strumming patterns in Songsterr. So you need to know how the song goes. If you want, find the best audio interface to record yourself with so you can review your performance afterward.

4. Chordie: Search for Chords or Lyrics to Find Songs

Chordie home page

At Chordie, you can search for the song name, artist, lyrics, or chords you want to play. It doesn’t have as big a catalog of free guitar chords as Ultimate Guitar, but Chordie presents chords and lyrics in a super clean interface.

Chordie is built from another community of guitarists, who contribute their time to upload guitar chords and lyrics to different songs. What’s nice about Chordie is there’s only one version of each song, so you don’t need to work through five bad versions first.

When you open a song on Chordie, the chords you need are displayed in the top-right corner. You don’t need to go flipping through a guitar book every time you forget how to play an F chord, just scroll back to the top of the page.

Chordie also gives you simple tools to change the font size, transpose to a different key, adjust the chords based on your capo placement, and auto-scroll while you play along. The clean interface includes a tab section for important riffs as well.

Guitar Chords for “This Is It” on Chordie

Chordie page showing This Is It guitar chords

Now, play the song “This Is It” by Ryan Adams. If you don’t remember the name of a song, just search for any of the lyrics you can remember. We searched “She kisses when she sleeps” to find our song.

Click the song you want from the search results and get familiar with the guitar chords. Take a moment to learn any tabbed out sections of the song. Then use the tools to transpose to a key that’s easy for you to sing in.

When you’re ready to play, click the scroll button and choose a speed to auto-scroll at.

5. E-Chords: A Simple Interface With Lots of Tools

E-Chords home page

The E-Chords home page features video lessons, new tabs, tutorials, and highlighted blogs. Search for songs, artists, or lyrics to find the free guitar chords you’re looking for. Then open them up into a clean page with lots of useful tools running down the left side.

You can customize how the songs look by choosing simplified chords, changing the color of links, and even clicking and dragging chords to where you want them beside the lyrics. Hover your mouse over a chord name above the lyrics to see how to play it.

The verses and choruses are separated, making it easy to learn the structure of a song with just a quick glance. All the chords you need are listed at the bottom of the page as well, so spend a moment there to learn the song before you get started.

Guitar Chords for “The Greatest Show” on E-Chords

E-Chords page showing The Greatest Show Guitar Chords

Let’s find chords to “The Greatest Show” from the soundtrack to The Greatest Showman. Search for the song name or any of the lyrics to get started. Then hover your mouse over the instrument icons in the results to check if guitar chords are available for that song.

Click the song and start learning the chords from the bottom of the page. If you ever forget one, just hover over the chord name again to see a chord diagram. You can even pin diagrams beside certain lyrics and display them while you play along.

Use the tools on the left of the screen to set your scroll speed, change the font size, change the color, or simplify the chords to your liking.

6. Heartwood Guitar: Accurate Curated Chord Charts

Heartwood Guitar home page

Heartwood Guitar doesn’t feature a giant library with thousands of guitar chords and lyrics, but it does have a curated selection of accurate guitar chords and lyrics to the most popular songs.

In fact, the site has a lot of free resources for learning how to play the guitar well.

Major kudos to Rob Hampton of Seattle for creating this impressive and useful online resource. There are over 600 free guitar chord charts available or you can subscribe to get access to tutorial videos and exclusive lessons.

Click on Chord Charts to see an alphabetical list of the available songs. Each one has accurate lyrics and guitar chords, with loads of detail explaining how to play the song. It may look intimidating at first, but before long you’ll be playing like a pro.

These chord listings are nicely laid out with chord and strumming information listed at the top of the page. There aren’t fancy tools like auto-scroll or transcribe, but you don’t need them when you’ve got such an accurate chord chart to follow instead.

Guitar Chords for “Space Oddity” on Heartwood Guitar

Heartwood Guitar chord chart for Space Oddity

For our last song, let’s learn to play “Space Oddity” by David Bowie. Click the Chord Charts button then scroll down to the B section to find Bowie. Click Space Oddity and brace yourself to learn an awesome song.

The chord chart opens with information about the chords you need to use along with how to play the strumming pattern. Take a moment getting familiar with this before scrolling down to see the guitar chords and lyrics together.

Chords appear above the lyrics. If you need to, play the song from Apple Music or Spotify to learn how it’s supposed to sound.

Find the Right Apps to Improve Your Playing

You’ve got an entire world of popular songs to learn the guitar chords and lyrics for, and you can do it all for free. But don’t stop there, put your technology to good use and find the best apps to improve your guitar playing as well.

Read the full article: The 6 Best Websites to Find Guitar Chords for Songs

non critical

via MakeUseOf.com https://ift.tt/1AUAxdL

December 13, 2019 at 10:50AM

How a Tesla Valve Works

How a Tesla Valve Works

https://ift.tt/2YJC3Rn

How a Tesla Valve Works

Link

Invented by Nikola Tesla, this ingenious type of valve uses a series of teardrop-shaped channels to restrict the flow of gases going one direction, by allowing smooth flow the other direction. NightHawkInLight built one such valve and demonstrates how it works by igniting propane gas flowing through it.

fun

via The Awesomer https://theawesomer.com

December 12, 2019 at 12:34PM

In The Witcher’s Final Trailer, a World Prepares for Magic and War

In The Witcher’s Final Trailer, a World Prepares for Magic and War

https://ift.tt/2EbSBrT

That coat is made for looking fabulous… and fighting baddies.
Image: Netflix (YouTube)

Trailer FrenzyA special place to find the newest trailers for movies and TV shows you’re craving.

The great war is about to begin, but all that matters is one girl.

The final trailer has arrived for Netflix’s The Witcher, bringing Geralt of Rivia (Henry Cavill) and Yennefer the sorceress (Anya Chalotra) into the fray as they battle monsters and humans alike to protect a young woman who might be the key to saving or destroying them all.

The latest and final trailer focuses on a massive war being waged by Nilfgaard, a large and thriving country that built a global empire throughout the world of The Witcher by invading and taking over foreign countries, establishing them as provinces of the great Nilfgaardian Empire.

As the North struggles to fight back, there’s also the matter of protecting Ciri (Freya Allan), a princess with strange abilities that could change the course of the world. It’s up to Geralt and Yennefer to protect her from Nilfgaard and any other foes that could threaten her safety—but first they’ve got to find out where she’s gone. Through all that, one thing is clear: Don’t touch Roach.

The Witcher debuts its first eight-episode season on Netflix December 20. It’s already been renewed for season two, which arrives sometime in 2021.


For more, make sure you’re following us on our Instagram @io9dotcom.

geeky,Tech

via Gizmodo https://gizmodo.com

December 12, 2019 at 11:36AM

Episode 752 Scott Adams: Let Me Tell You How Much I HATE My Government Today, IG Report, Impeachment

Episode 752 Scott Adams: Let Me Tell You How Much I HATE My Government Today, IG Report, Impeachment

https://ift.tt/38m7DcF


My new book LOSERTHINK, available now on Amazon https://tinyurl.com/rqmjc2a

Content:

  • FBI was massively incompetent…but unbiased, per IG Horowitz
  • President Trump comes down hard on FBI Director Wray
  • The impeachment proceeding is complete BS, here’s why
  • ONLY Rep Crenshaw found the SIMPLE narrative
  • Matt Gaetz annihilates Goldman for his tweets
  • Berke’s intentionally misleading, out of context video
  • dismissing each article of impeachment with a tweet-sized sentence

If you would like my channel to have a wider audience and higher production quality, please donate via my startup (Whenhub.com) at this link: 

I use donations to pay for the daily conversions of the original Periscope videos into Youtube and podcast form, and to improve my production quality and search results over time.

The post Episode 752 Scott Adams: Let Me Tell You How Much I HATE My Government Today, IG Report, Impeachment appeared first on Scott Adam’s Blog.

thinkers

via Scott Adam’s Blog https://ift.tt/2ke54Vz

December 10, 2019 at 11:55AM