Enterprise D Bridge Replica

Enterprise D Bridge Replica

https://ift.tt/3dcnv2y

Enterprise D Bridge Replica

Link

Geoff Collard takes us on a POV tour of his recreation of the bridge from the Starship Enterprise D on The Next Generation. It features an incredible level of detail, with light-up displays, and a viewscreen that plays videos of space. You can check out more pics of his impressive seven-year build on Facebook.

fun

via The Awesomer https://theawesomer.com

June 17, 2020 at 12:30PM

Hoppe’s Debuts “How to Clean” Gun-Cleaning Video Series

Hoppe’s Debuts “How to Clean” Gun-Cleaning Video Series

https://ift.tt/2BiKVWw

Hoppe's 9
Hoppe’s is more than just excellent cologne, it’s also a great gun cleaner. IMG Hoppe’s

U.S.A. -(AmmoLand.com)- Hoppe’s, the No.1 name in gun care products, announced today that it has added another new video to its popular “How to Clean” Series, which provides step-by-step cleaning instructions on some of today’s most popularly owned firearms. The 15-part video series is available for viewing on the Hoppe’s website, YouTube, and Facebook pages.

Developed to provide effective, yet easy-to-follow cleaning instructions for a variety of different firearms, the Hoppe’s video series is the perfect resource for first-time gun owners. The “How to Clean” series also serves as a valuable refresher course for any firearms enthusiast. Throughout the series, host Luke Williams, better known as Outdoors By Luke, provides simple and important tips on cleaning a myriad of firearms ranging from the popular Glock 17 pistol to the Ruger 10-22.

“As the industry welcomes more first time firearms owners than ever before, the need to provide helpful cleaning instructions has never been greater,” said Eliza Graves, Sr. Brand Manager for Hoppe’s. “Through our instructional video series, longtime and novice gun owners alike can easily find helpful tips that will keep their firearms running like new.”

To view the Hoppe’s new “How to Clean” series and to see the company’s full line of gun care products and accessories, be sure to visit www.hoppes.com


Hoppe's logoAbout Hoppe’s

In 1903, Frank August Hoppe mixed nine chemicals and created the world’s most effective gun cleaner. As a well-trained young soldier, Frank knew that gun care went far beyond just a clean rifle, but actually helped to ensure his safety while on the front lines of battle. Since that time, Hoppe’s has emerged as the leading gun care company, having grown along-side hunters, shooters, and soldiers who depend on their firearms every day. It has remained the most trusted name in gun care by advancing and evolving technologies to meet those needs. From the ever-popular and versatile No. 9 and the quick and easy BoreSnake, to the marvel of efficiency we call Gun Medic, Hoppe’s is the only name you need to know for firearm cleaning and protection.

The post Hoppe’s Debuts “How to Clean” Gun-Cleaning Video Series appeared first on AmmoLand.com.

guns

via AmmoLand.com https://ift.tt/2okaFKE

June 17, 2020 at 10:55AM

Laravel Intellisense Plugin for Visual Studio Code

Laravel Intellisense Plugin for Visual Studio Code

https://ift.tt/37pDYiy

Laravel Intellisense is a Visual Studio Code plugin by Mohamed Benhida that provides some nice auto-completion for things like Eloquent models, factories, config, and API resources.

The thing I appreciate about this plugin is support for things like config(), view(), and other areas of Laravel you’d typically not have auto-completion for in most editors, but could save a decent amount of time context switching between the database and code.

Here’s the full list of features:

  • Resource Autocompletion
  • Eloquent Autocompletion
  • Factory Autocompletion
  • View Autocompletion
  • Config Autocompletion
  • Route Autocompletion

What’s nice about this plugin is that it provides help for things unique to Laravel developers: editor help around your model data. The plugin provides auto-completion by using an app’s database connection to get model attributes.

For example, let’s say you need to write a factory for a newly created model. With the current version of Laravel, you need to reference database fields in a migration class, a database table, or perhaps a PHPDoc field names to see what’s available.

If Visual Studio Code isn’t for you, Blueprint might mitigate some of the need for this auto-completion by generating various files from a centralized configuration file. You could also benefit from using both Blueprint and Laravel Intellisense together, I just want to point out that there are multiple ways to manage the mundane parts of files and code around application data.

Another solution might be the Laravel Populated Factory plugin, but that only helps with factories.

I typically manage a list of @property-read values in the model class documentation (which serves as a helpful reference and auto-completion for model attributes), but that doesn’t help with auto-completion when trying to fill out factory array keys.

The View completion is another added benefit that allows you to avoid manually looking up files as often:

PhpStorm doesn’t provide auto-complete using the helper function, however, it does support auto-complete with the @include directive within Blade files.

Learn More

You can download this plugin by visiting laravel intellisense in the Visual Studio Marketplace. The source code is available on GitHub at simoebenhida/laravel-intellisense.

Filed in:
News
/
Editors
/
vscode

programming

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

June 12, 2020 at 09:08AM

How To Mount and Zero a Rifle Scope (With a Free Printable Target)

How To Mount and Zero a Rifle Scope (With a Free Printable Target)

https://ift.tt/3f6u6N7

By Kevin Wabiszewski You’re ready to throw that new glass on your rifle and see what damage you can do from afar. First, you’ll have to zero that scope. If you’ve never done that before, it’s important to learn exactly how to perform and replicate the process so that you can swap out future scopes […]

The post How To Mount and Zero a Rifle Scope (With a Free Printable Target) appeared first on The Truth About Guns.

guns

via The Truth About Guns https://ift.tt/1TozHfp

June 9, 2020 at 05:06PM

Detect AdBlocker With Javascript And Increase Website Ads Revenue

Detect AdBlocker With Javascript And Increase Website Ads Revenue

https://ift.tt/2YgQzjX

Hello fellas! In this article, I will show you how to detect if the browser has AdBlocker plugins enabled. If it’s enabled then how to request your website visitors not to block ads and increase your Ads Revenue.

Code is available in GitHub @ Detect AdBlocker

We will cover

  1. Don’t Add Too Many Ads In Between Content
  2. Don’t Block Whole Website Until They Disable AdBlock
  3. Implementing With Example

Prerequisites

Very basic knowledge of HTML & Javascript.


1) Don’t Add Too Many Ads In Between Content

Adding Ads might be the main income for you to run website, I totally understand. But keep in mind not to add too much Ads in between the content it might be very distracting or piss of your viewers.

Your content might be great but you will loose viewers who constantly come to your website.


2) Don’t Block Whole Website Until They Disable AdBlock

I have seen couple of websites where they totally block the content till the user doesn’t disable the ads which is totally not a good idea for website owners. I know I can feel your pain, but as wisely said “customer is the king” .

Instead you can show some alert text for your viewers to disable the ads. Believe me at least 80% of them will definitely support you if you really have good content for them 🙂


3) Implementing With Example

Oh! Boy enough blabbering. Lets get start with implementation.

Following is the project folder structure:

index.html
assets/
    js/
        blockadblock.js 
        checkads.js 

index.html – Here we will add normal content along with alert text when viewer uses adblocker

blockadblock.js (Not Required If We Use CDN link) – Its just the library file which is included locally as I use cache in my website. So need to pull too many times. Even we can use CDN over here to avoid including this file.

checkads.js – In this file we will detect the adblocker. Surely we can add it in index.html file but as your project increases it will be bit cumbersome to mange it.

Javascript Library Used

We are using FuckAdblock javascript library for implementation

CDN Usage

<script src="https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js" integrity="sha256-3zU5Lr4nIt3K/BgGOQMduajtZcPV9elIM/23RDXRp3o=" crossorigin="anonymous"></script>

If the above script doesn’t work for you then please use this URL to get the new script tag Fuck AdBlock.

index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AdBlocker Demo</title>


    <style>
        #adblock-alert{ display: none; }
        #adblock-alert .alert{ padding: 20px; background: red; border-radius: 4px; colour: #fff; }
    </style>
</head>
<body>
    <div id="adblock-alert">
        <div class="alert">
            Good content takes time and effort to come up with. <br><br>
            Please consider supporting us by just disabling your <strong>AD BLOCKER</strong> and reloading this page again.
        </div>
    </div>
    <p>This is simple page.</p>

    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js" integrity="sha256-3zU5Lr4nIt3K/BgGOQMduajtZcPV9elIM/23RDXRp3o=" crossorigin="anonymous"></script>

    
    <script src="./assets/js/checkads.js"></script>
</body>
</html>

We need to display adblock alert only when adblocker is detected. Hence hide the adblock alert content using display:none CSS.

Observe the following javascript code in above index.html file.

CDN Library

<script src="https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js" integrity="sha256-3zU5Lr4nIt3K/BgGOQMduajtZcPV9elIM/23RDXRp3o=" crossorigin="anonymous"></script>


<script src="./assets/js/checkads.js"></script>

checkads.js

function adBlockNotDetected() {
    var adContent = document.getElementById('adblock-alert');
    adContent.style.display = 'none';
}



function adBlockDetected() {
    var adContent = document.getElementById('adblock-alert');
    adContent.style.display = 'block';
}



if(typeof fuckAdBlock !== 'undefined' || typeof FuckAdBlock !== 'undefined') {
    
    
    adBlockDetected();
} else {
    
    var importFAB = document.createElement('script');
    importFAB.onload = function() {
        
        fuckAdBlock.onDetected(adBlockDetected)
        fuckAdBlock.onNotDetected(adBlockNotDetected);
    };
    importFAB.onerror = function() {
        
        
        adBlockDetected(); 
    };
    importFAB.integrity = 'sha256-xjwKUY/NgkPjZZBOtOxRYtK20GaqTwUCf7WYCJ1z69w=';
    importFAB.crossOrigin = 'anonymous';
    importFAB.src = 'https://cdnjs.cloudflare.com/ajax/libs/fuckadblock/3.2.1/fuckadblock.min.js';
    document.head.appendChild(importFAB);
}

We are enabling or disabling the adblock alert text with the following functions. You will be able to see it in the above code

function adBlockNotDetected() {
    var adContent = document.getElementById('adblock-alert');
    adContent.style.display = 'none';
}



function adBlockDetected() {
    var adContent = document.getElementById('adblock-alert');
    adContent.style.display = 'block';
}

Using blockadblock.js Instead Of CDN

Copy and paste this URL FuckAdblock in your browser. It will show the minified code, copy and paste this code in blockadblock.js file. Once you add it you need to include in your index.html file as follows

<script src="./assets/js/blockadblock.js"></script>


<script src="./assets/js/checkads.js"></script>

NOTE: Once you disable your adblock make sure to reload the page. Else the changes made wont take affect

The following is how your website looks when adblock is detected

When AdBlocker Is Detected In Browser

When AdBlocker Is Detected In Browser

The following is how your website looks when adblock is not detected

When AdBlock Is Paused And Page Reloaded

When AdBlock Is Paused And Page Reloaded


Conclusion

Hope you liked the article. Please share with your friends and keep following 🙂

Code is available in GitHub @ Detect AdBlocker

WHATS NEXT?

You might be interest to learn more on composer please find my whole article on it

Upload File From Frontend Server {GuzzleHttp} To REST API Server In PHP {Laravel}

Simple Way To Create Resourceful API Controller In Laravel

Move Uploaded Files From Local Computer Or Server To Amazon S3 Bucket In PHP

Why And How To Use PHP PDO With CRUD Examples

What Is Method Chaining In PHP?

Send Email In PHP With PHPMailer

How To Upload Multiple Files In PHP?

Proper Way To Validate MIME Type Of Files While Handling File Uploads In PHP

Happy Coding 🙂

programming

via Laravel News Links https://ift.tt/2dvygAJ

June 9, 2020 at 11:42AM

Data SRE – Building Database Systems Infrastructure for Performance and Reliability

Data SRE – Building Database Systems Infrastructure for Performance and Reliability

https://ift.tt/2AcYYwC

Data SRE – Building Database Systems Infrastructure Operations for Performance and Reliability


Recently ( on Friday, 5 June 2020 – 06:00 PM PDT to 06:45 PM PDT  ) our Founder and Principal ( Shiv Iyer ) did a webinar on building Database Systems Infrastructure Operations for Performance and Reliability. In this webinar, he discussed about capacity planning / sizing, observability & resilience, performance audit / health-check / diagnostics / forensics, performance optimization & tuning and building highly available / fault-tolerant / self-healing systems architecture. You can download the PDF of the webinar here . Thanks for joining the webinar and making it a success, Looking forward to seeing you all in the next webinar.

 

The post Data SRE – Building Database Systems Infrastructure for Performance and Reliability appeared first on The WebScale Database Infrastructure Operations Experts.

technology

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

June 7, 2020 at 12:25AM

A new item to add to your EDC

A new item to add to your EDC

https://ift.tt/37eit47

I purchased one of these in 12 inches, the ASP Protector concealable baton.

It is about the same size as a tactical flashlight the uses two CR123 batteries (Surefire 6P, Streamlight ProTac, etc), just under one inch in diameter and five inches long.

Clipping it into a pocket you’d think it was just a tactical flashlight.

In these uncertain times, it is a tool to fit between nothing and a gun.

You need to check your state laws to see if it legal in your area.  Alabama doesn’t care.  It is legal in Florida with a CWP (in Florida it is a Concealed Weapons Permit, so it’s good for more than just guns).

If it is legal in your state, I think it is a tool worth the $45 I found it for online.

Stay safe out there.

 

 

guns

via https://gunfreezone.net

June 6, 2020 at 08:30PM

And what after police has been banned? This!

And what after police has been banned? This!

https://ift.tt/2UhN0sy

I’m not gonna lie, this isn’t exactly what I expected — lying here in the hospital. I mean, it’s only a few broken bones, a punctured lung, and some stitches to the head, but I almost feel betrayed. Three weeks ago when I took the five-hour online course to become an unarmed rapid response social worker, I thought I was helping mankind. After all, with the police abolished, somebody had to be there to mitigate when people had inevitable disagreements.

I’m The Rapid Response Social Worker Who Replaced The Police

This is a hilarious and possibly prophetic article of what could happen if the Police Defunding/elimination were to happen.  Go rad the whole thing.

Another option I have seen bounced around is the elimination of qualified immunity and substitute it by some sort of insurance. I think this is even funnier and the unintended consequences would be just poetic. First, cops would not be able t pay the full premiums that insurance companies will ask. That means the force and the local government will have to step in and help out, just like it was Health Insurance. Group Legal and Liability Insurance for Local PD department will be established and premiums will go up an down for certain individuals depending on risk  just like in health insurance. A desk Sargent that never come out the precinct will have a low premium.  Billy Bob Doing Traffic control and Highway DUI patrols will pay like he was smoking 4 packs a day while taking X-rays unprotected.

And then, the first year will come around, the White Shirts will sit down with the insurance people and probably a conversation like this will occur.

“Thank you for seeing us, Chief. We need to address some issues with your coverage.”
“What issues?”
“Well, we checked the stats and we need to see how we drop some of the risks or unfortunately we will have to drop your coverage or raise the premiums at least 80%.”
“My God! We cannot afford that! Taxpayers are already pissed off that the county raised taxes to pay for the insurance.”
“I can certainly understand your problem. (pulls out a map of the city) So we had our people examine the data provided by your department and we found out that most of the complains and lawsuit originate in these two areas of town shaded in red. They are responsible for 71% of all the lawsuits and payments we had to issue.”
“Yes, these are troublesome spots. What do you propose?”
“Simply to stop sending officers there. No more patrols means no more contact between officers and probable plaintiffs there fore no lawsuits and no more payments to be made.”
“Are you crazy? The press would crucify us!”
“The press ain’t paying your policy. Taxpayers are.”
“And you understand the Mayor will raise hell. A lot of his voters live there.”
“That is politics which we are not interested in discuss. nor it is our purview.”
“Hmmm. It can be sold if the proper focus is given. These areas have made clear that they do not want cops. We can grant them their wish and we can continue to have coverage.”
“Again chief, that is politics and we don’t get involved on that stuff. we just shown you what we found and how much is going to cost you or not depending on how your department will adjust.”
“I understand. I want to thank you and I am sure we will continue to do business.”

Just saying…

guns

via https://gunfreezone.net

June 6, 2020 at 09:30AM

How to Use SketchUp for 3D Design

How to Use SketchUp for 3D Design

https://ift.tt/3eNuBf1

howto-sketchup

Sometimes you need to describe a building in a way that can’t easily be explained in writing. Often, these structures are of the 3D variety, such as architectural models or interior design.

If you’re already familiar with 3D modeling, then you’ll definitely be aware of this more “descriptive” need. However, what if you’re just a hobbyist who wants to create 3D objects for fun? If you fall under this category, you can try SketchUp. While SketchUp does have a paid version of its app, there is a free web version for casual enthusiasts, too.

In this article, we explain what SketchUp is, what the free version offers, and how to use SketchUp if you’re brand new to the program. This is 3D modelling for everyone, including absolute beginners.

What Is SketchUp?

Trimble SketchUp

SketchUp, formerly Google SketchUp, is a 3D modeling program that was released in the year 2000. It is now owned by a company called Trimble.

As a program that is devoted to 3D modeling, SketchUp is perfect for a wide range of uses. These uses vary, from architectural design and landscaping to film and game development. With pre-fab models that you can use in your designs, this app also acts as a collective engine where you can easily build 3D structures and render them.

The History of SketchUp

The story behind SketchUp is really cool, in that it was originally designed by @Last Software. SketchUp was acquired by Google in 2006, before being passed off to Trimble in 2012.

The company behind this app designed it with the expressed purpose of creating a program that was simple to use. This simplicity was much needed, as 3D modeling programs usually have a steep learning curve.

Unfortunately, that curve can also affect who is allowed to learn a program and how fast they learn it (not the general public on a budget).

In the current era, SketchUp and its parent company have stuck to the mandate of helping you “visualize your ideas.” The company encourages its users to use sustainable design practices in their creations, and through its app you can also share your designs within the 3D SketchUp community as a whole.

While all these features are very neat, they might not be something you need to explore if you’re still learning the basics. Fortunately, SketchUp has several different plans for users to choose from, including a free version that can be accessed through the web.

Is Google SketchUp Free?

Google SketchUp Download

Yes and no. While there is a free version of Trimble’s (Google) SketchUp, it is very pared down when you compare it to the professional paid version of the app.

SketchUp Free

  • With the basic version of SketchUp, the intent of the program is to help you “discover 3D modeling.”
  • This app is web-only, which means you can only use SketchUp online.
  • You have 10GB of cloud storage for your projects, along with community support via the forums.
  • The downside to the free version is that it does not allow you to use custom styles, custom materials, performance-based designs, or the style builder tool. You also cannot use the models you are creating in the free version of SketchUp for commercial intent.

SketchUp Shop

  • In comparison, SketchUp Shop, the paid version of SketchUp for personal use, allows for basic access to custom styles.
  • It also includes more features like unlimited cloud storage and email support.
  • While SketchUp Shop does have more features, it still doesn’t give you full access to the program. Still, if you end up really loving this program, it’s worth a shot for $119/year.

SketchUp Pro

  • If you want to have full access to the program, or if you’re a professional designer, then you need to use SketchUp Pro.
  • SketchUp Pro gives you access to all features. It can also be used on desktop or through the web.
  • However, this version of the program is the most expensive by far, sitting at $299/year without accounting for seasonal sales, as can be seen in the picture above.

Our Verdict: While SketchUp is not free to use if you’re a designer, if you’re just learning the basics, this free version will work just fine. Additionally, if you use it in conjunction with our beginner’s guide to 3D printing, you’ll have every angle of your 3D modeling hobby covered.

Let’s walk through the basic interface for SketchUp’s free app.

How to Use SketchUp: A Basic Introduction

Trimble SketchUp Free

The great thing about SketchUp is that when you sign up for the free app, you’re offered a guided tour. There are also accessible help forums that will guide you through your very first 3D project, with topics ranging from using SketchUp in comics, to sharing SketchUp projects with a friend.

When you open SketchUp, you should see a “working space” with a three-dimensional axis, a horizon line, and a 2D person for scale. On the left-hand side of your screen, you will see your Toolbar (shown here in red):

SketchUp Toolbar

This Toolbar contains the items that you will need to draw. Here, you’ll be able to locate your:

  • Eraser
  • Paint tools
  • Line tools
  • Push/Pull tools
  • Move tools
  • Tape Measure tools
  • Orbit controls

At the bottom of your screen, you’ll see your Status bar. The Status bar will help you learn how to use SketchUp by clicking on the Help button to access the app’s tutorials.

SketchUp Status Bar

Finally, on the right side of the screen, you will see your Panel section. Here, you can adjust your model using different materials, components, and layers.

SketchUp Panel

To Recap:

  • Draw in SketchUp using your left-hand Toolbar.
  • Adjust your drawing with your right-hand Panel.
  • Learn how to draw with your bottom Status bar.

Try SketchUp If You’re Interested in 3D Modeling

Now that you know all about SketchUp and how to use the basic interface, you can look into the free version of the program and try it out yourself. The best thing about SketchUp is that if you decide to upgrade from Free to Shop or Pro, you can do so easily.

If you’re looking for more information on the world of 3D modeling, check out our list of the best free 3D modeling software.

Read the full article: How to Use SketchUp for 3D Design

non critical

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

June 4, 2020 at 02:24PM

How to setup Specific Subdomain routing in Laravel

How to setup Specific Subdomain routing in Laravel

https://ift.tt/2zwdmjw

Hi all, this is Adi, again with another Laravel post. In one of my recent projects, I had to set up specific subdomain routing within the same Laravel application. This was something new to me because on most projects, I just work with one domain and everything is accessed / after it. I am going to share with you how I solved it, I hope it gives you some ideas when you are faced to do this too. Let’s get started.

What was my need

First, let’s explore my requirements for this project. My client wanted to access the admin portal from the admin.myapp.com domain, the marketing website from myapp.com, and the API from api.myapp.com. As you can see it defers from Laravel’s defaults. By default, Laravel exposes API routes in myapp.com/api url and everything else in myapp.com/ domain.

My Solution

Laravel routing provides a convenient way to setup subdomain routing but it works best only when you have a wildcard routing, this *.myapp.com works but to make specific subdomain to work, I had to do some config changes as well. Below is my routes\web.php file.

Routes File

My routes file
As you can see, you can use the domain method to mention the subdomain you want to capture, but it becomes complicated when you have multiple environments with different domains you need to use, that’s why I have added the SITE_URL variable to my .env file. So when I am developing locally I can set it to localhost, when in production I set the actual domain, and when in staging or testing I can set the relevant domains.

.env Config

My .env config file
It’s just another .env variable you set. Pretty simple.

Webserver Config

Now you have the routing configured but you need to make a few changes in the webserver setup also to be able to use multiple domain names for the same host. Let’s see how.

Local development

I use a windows PC for development, I had to change my hosts files in the system32 folder. I added these entries.
My Hosts file config
Now, if you go to any of these domains, it should be routed to your Laravel application, when it’s being served.

Conclusion

I hope this post helped you. It’s not daily that you come across a config like this, that’s why I decided to share it. If you would like me to cover a specific issue you have with Laravel, do let me know I’ll try to write a post about it.

Related Resources

Thank You
That’s all for now, this has been Adi.
If you are looking for a Freelance Web Developer you can contact me

programming

via Laravel News Links https://ift.tt/2dvygAJ

June 3, 2020 at 08:45PM