A Beautiful “Observation Tower” as Countryside Escape Home

A Beautiful “Observation Tower” as Countryside Escape Home

https://ift.tt/2UOAqSh

After purchasing a parcel of land in the Tennessee hills, the new owners built this beautiful, and relatively small "countryside observation tower…the first in a series of structures on the property," according to Style Blueprint, a female-run and female-targeted digital media community. In this time when many of us could use a little escapism and eye candy as well, this structure is well worth a look.

"The idea was to have a small getaway for the owners," says Jamie Pfeffer of Pfeffer Torode Architecture, the firm that designed it, "and to have a place where they could entertain and enjoy the natural setting."

Pfeffer collaborated with Ben Page of Page|Duke Landscape Architects, who points out that they "used native, indigenous materials and were particularly careful to make sure the existing tree canopy was essential to the final design."

The structure itself is pretty compact: With 680 square feet spread over three storeys, we estimate that it sits on a footprint that’s roughly 10′ x 20′. But if the downstairs appears tight…

…"all of the compression that was emphasized below is relieved" when you reach the top storey, Pfeffer states.

I…want to go to there.

fun

via Core77 https://ift.tt/1KCdCI5

April 6, 2020 at 12:36PM

Attend the Trump 2A Election Workshop

Attend the Trump 2A Election Workshop

https://ift.tt/39T2jwY

Attend the Trump 2A Election Workshop
by Dean Rieck

If left-leaning Presidential candidates have made one thing crystal clear, it’s that they intend to seek revenge on gun owners if they win the White House in November of 2020.

Multiple candidates have revealed their intention to dramatically curtail Second Amendment rights with draconian gun bans, gun confiscation, and other infringements. It’s not about safety. It’s now about striking back after many years of losing in the legislature and in the courts.

And don’t be fooled by those who say the gun grabbers will stay home this election because of the coronavirus shutdowns around the country. By all reports, the left is out there doing what they do best, organizing to get their people to vote at all costs. And with many election activities moving from in-person events to online, the gun grabbers have a serious advantage because they have been using online tools, such as social media and webinars, for many years.

If ever there was a time for Second Amendment patriots to step up the fight, that time is NOW!

There are many activities moving online, including President Trump’s campaign efforts. That’s why I invite you to attend this short, 1-hour workshop to discover what YOU can do to help keep the gun-grabbers out of the White House.

When:
Thursday, April 16, 2020
7:30pm – 8:30pm

Where: 
ONLINE
You can attend via any computer or device

Representatives from the Trump Campaign will show you how to play a key role in the upcoming 2020 election, including how to promote voter registration to fellow gun owners and how to encourage other freedom-loving Ohioans to get out and vote.

And yes, most of it you can do from the comfort and safety of your own home, whether you’re under a stay-at-home order or not. How much or how little you do is entirely your choice. But every little bit helps. Anyone can participate. You don’t need any special skills or equipment.

All you need is a burning desire to preserve the freedom and liberty we enjoy in America and stop the gun grabbers in their tracks as they seek to take over the White House and launch their attack on the Second Amendment.

This may be the most vital election of our lifetime. Our rights hang in the balance. The America of tomorrow depends entirely on the action we take today.

Attendance for this event is limited to just 100 people. So please register NOW.

CLICK HERE to register for this FREE ONLINE event.

Dean Rieck is Executive Director of Buckeye Firearms Association, a former competitive shooter, NRA Patron Member, #1 NRA Recruiter for 2013, business owner and partner with Second Call Defense.

guns

via Buckeye Firearms Association https://ift.tt/2h9uK1x

April 6, 2020 at 07:44AM

Desktop Helicopter Rotor

Desktop Helicopter Rotor

https://ift.tt/2RgNJbT

Desktop Helicopter Rotor

Link

While we’re perplexed by Liberman’s musical selections, we are impressed with what he was able to construct on his workbench. Watch as he puts together a working model of a helicopter rotor from plywood, rulers, popsicle sticks, and off-the-shelf hardware. We love how it even can adjust the angle of its blades.

fun

via The Awesomer https://theawesomer.com

April 6, 2020 at 08:00AM

A simple script used to deploy Laravel applications easily

A simple script used to deploy Laravel applications easily

https://ift.tt/2RgqIWD

A simple script for deploying Laravel applications easily

About

While there are numerous powerful continuous integration tools out there such as Jenkins, the following script automatizes some burdensome tasks of deploying Laravel applications.

Major benefits

  1. As the Laravel programmers know, deploying Laravel applications, they must copy almost all the application’s folders to the public folder of web server for security reasons. This makes changes to the index.php file of Laravel applications necessary so that it points to the correct paths. The provided script performs the task whenever the programmer deploys their applications.

  2. Another deoployment concern of Laravel programmers is to clear previous cache settings in their development environment and set them in the server appropriately. The script does the task as well.

  3. The script finally utilizes a composer package to remove any unnecessary package used by Laravel to improve the application performace as much as possible.

  4. As I mentioned, the script is easy to use, and it can be executed with minimum software and hardware requirements.

How to use

To use the script, you must set a couple of variables at the beginning of the script once. Then, whenever you would like to deploy your Laravel application, you should issue the command:

Since the script has been written in bash, the user has to use terminals that support bash if they want to utilize it in Windows operating system. I myself use it in Git bash without any problem.

Contact

Feel free to contact me should you have any question or feedbak via the address: habibseifzadeh at yahoo dot com. Your feedback would definitely be very valuable to imrove the script.

programming

via Laravel News Links https://laravel-news.com/links

April 6, 2020 at 09:00AM

The James Bond Pistol Returns – Walther PPK & PPK S back to the shelves

The James Bond Pistol Returns – Walther PPK & PPK S back to the shelves

https://ift.tt/2JOhD2Z

In 2017 TFB visited the exhibition “James Bond in Motion” at the London Film Museum.

Do you want a little ‘James Bond’ in your life and your firearms collection? Well, Carl Walther from Germany now has a series of four ‘new’ Walther PPKs for you.

They are all chambered in 9mm short, or .380 ACP, which is perhaps the more commonly named.

The magazine capacity is 6 rounds for the PPK and 7 rounds for the PPK/S.

James Bond PPK

In Walther’s words:

REVIVAL OF A LEGEND – THE WALTHER PPK / PPK S

The Walther PPK is a true prime example of branch-leading innovation. At the time of its creation, more than 80 years ago, it created the foundation for a new category of handguns. Pistols for concealed carrying. The current PPK combines a timeless concept with state-of-the-art features.

We have for instance the Walther PPK Stainless, 9mm short:

Walther PPK 2020

WALTHER PPK

Walther’s industry-leading innovation takes the spotlight with their PPK model handguns. At the time of its invention over 80 years ago, the PPK inspired an entirely new category in the firearm industry, now widely known as the concealed carry pistol.

It is chambered in .380 ACP, the PPK provides all the power needed in a self-defense pistol without sacrificing on critical functionalities. It features a single-action/double-action trigger that decocks when rotating the safety down into the safe
position, first introduced by Walther.

To this day, the PPK is still one of the most sought after concealed carry pistols on the market. This demand serves as a testament to Walther’s long-enduring legacy of excellence and unparalleled performance. The timeless design and superior engineering make the PPK a true legend amongst firearms.

And the Walther PPK/S, 9mm short:

WALTHER PPK/S

An evolution of the classic PPK, the PPK/S maintains the timeless features, essence and the elegance of the original with an additional extended grip allowing for added capacity and improved ergonomics. To execute this revolutionary concept, the Police Pistol Kriminal took all the modern advancements available at the time and combined them into one performance leading pistol.
It features a single-action/double-action trigger that decocks when rotating the safety down into the safe position, first introduced by Walther. Few guns have withstood the test of time like the brilliantly designed PPK.

For the latest Walther handguns check here: https://www.carl-walther.com/products/defense-guns/pistols.html

You can find Walther USA here: https://waltherarms.com/

What do you think of the Walther PPK revival? Would you consider a little James Bond in your pocket? Black or Stainless? Do you think the PPK is a suitable gun for self-defense? 

Let your 007 out in the comments below!

guns

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

April 6, 2020 at 09:20AM

Oral Arguments heard in California Magazine Ban Appeal at Ninth Circuit ~ VIDEO

Oral Arguments heard in California Magazine Ban Appeal at Ninth Circuit ~ VIDEO

https://ift.tt/2X6HBXC

Stack Pile Ammunition Gun Magazines High Capacity Standard
Stock Pile Ammunition Gun Magazines High Capacity Standard

U.S.A.-(Ammoland.com)- On 2 April, 2020, a three-judge panel from the Ninth Circuit heard oral arguments in the Duncan v. Becerra case. The District Court had decided the outright ban of magazines with a capacity of more than 10 rounds violated the Second Amendment. The opinion, by Judge Roger T. Benitez, was brilliant and extremely well written.

The video lasts over an hour, with strong questioning by the judges. Judge Consuelo Callahan presides and does most of the questioning. Judge Kenneth K. Lee asks some pointed questions, and Judge Barbara M. Lynn asks a few questions.

The appealing attorney for the State of California was John Darrow Echeveria.

The plaintiffs’ attorney for Duncan and the Second Amendment was Erin E.  Murphy.

The State of California did its best at attempting to reduce the Second Amendment right to the minimum possible under the Heller ruling. The argument made was essentially, if California residents had access to some effective means of self-defense in the home, then Heller was satisfied, and the State could ban and regulate almost anything they wished to do.

When asked if the ban could be extended from a 10 round ban to a 1 round ban, Echeveria thought that might be unconstitutional.

This argument was specifically rejected in Heller as being off the table, but the Ninth Circuit has worked hard to forward it.

The attorney representing Duncan and Second Amendment supporters, generally, simply reiterated the Heller and McDonald decisions. Weapons in common use which are used for lawful purposes are protected by the Second Amendment. In particular, a complete ban is off the table.

When asked if the ban violated the “takings clause” of the Constitution, Murphy said it was primarily an issue of compensation.

The State made the claim that limiting magazine capacity was merely reasonable regulation that did not impact the Second Amendment.  It relied on several court cases from other circuits.

This is what happens when the Supreme Court refuses to enforce its previous rulings. Several appellate courts are adamantly hostile to the exercise of Second Amendment rights. They have relegated the Second Amendment to a second class right, as noted by Justice Thomas.

The oral arguments are interesting. They probably make little difference. The finding of the three-judge panel will not be final.

The Ninth Circuit has shown, again and again, Second Amendment rulings will go to an En Banc court.

The makeup of the Ninth Circuit has changed considerably under President Trump. Once a bastion of leftist ideology, which was the most reversed Circuit in the United States, it now has nine judges appointed by President Trump. The Circuit has 29 judges. The Circuit now has a three-judge majority appointed by Democrats.

Not all judges appointed by Republicans are originalist and textualists. They tend in that direction. The Ninth Circuit now has some balance, instead of being overwhelmingly leftist.

One of the judges on the three-judge panel, Judge Lee, was appointed by President Trump.

Shop all our money-saving magazine deals in one place!


About Dean Weingarten:

Dean Weingarten has been a peace officer, a military officer, was on the University of Wisconsin Pistol Team for four years, and was first certified to teach firearms safety in 1973. He taught the Arizona concealed carry course for fifteen years until the goal of Constitutional Carry was attained. He has degrees in meteorology and mining engineering, and retired from the Department of Defense after a 30 year career in Army Research, Development, Testing, and Evaluation.

The post Oral Arguments heard in California Magazine Ban Appeal at Ninth Circuit ~ VIDEO appeared first on AmmoLand.com.

guns

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

April 3, 2020 at 02:52PM

Laravel Excel import-export

Laravel Excel import-export

https://ift.tt/2RbEUAi

Importing data from Excel sheet into our database and export data from the application into an Excel sheet are most often asked feature for a web application. These features enable us to perform batch import/export data by our web application. In Laravel, we can make excel import/export features easily with laravel maatwebsite/excel package. If you are looking for a step by step tutorial on how you can make excel import/export features in your application then it’s for you. In this post, I’ll show you a step by step guide for making excel import/export features in Laravel by using maatwebsite/excel laravel package with validation.

 

Steps for Laravel Excel Import-Export

  1. Install a new Laravel Framework instance
  2. Setup the database config & model.
  3. Install Laravel maatwebsite/excel package
  4. Make an Import class for import data.
  5. Make an Export class for export data
  6. Make a controller for handle excel data import or export

 

Install a new Laravel Framework instance

The first step, we need a fresh Laravel Framework instance. If you have already an application installed then skip this step. Let’s do that by composer command.

composer create-project laravel/laravel laravel-import-export

 

Setup the database config & model

In this step, we’ll set up our database configuration in the .env file.

DB_CONNECTION=mysql
 DB_HOST=127.0.0.1
 DB_PORT=3306
 DB_DATABASE=laravel-import-export
 DB_USERNAME=root
 DB_PASSWORD=

 

Now make a model. Here we’ll make a contact model for our contacts table. Our contacts table contains id, name, phone, email fields.

<?php namespace App;
 
 use Illuminate\Database\Eloquent\Model;
 
 class Contact extends Model {
 public $timestamps = false;
 protected $fillable = ['name', 'phone', 'email'];
 } 

 

Install Laravel maatwebsite/excel package

Now install the Laravel maatwebsite/excel version 3.1 package via composer command.

composer require maatwebsite/excel

This package has auto-discovery features so you don’t need to add the service provider manually.

 

Make an Import class for import data.

Now we have to make an Import class for importing data into our database from Excel sheet via our contact model. The maatwebsite/excel package provides useful command to make the class easily. Let’s do that.

php artisan make:import ContactsImport --model=Contact

with this command, a Contact import class will create in the app/Imports directory.

<?php
 
 namespace App\Imports;
 
 use App\Contact;
 use Illuminate\Support\Facades\Hash;
 use Maatwebsite\Excel\Concerns\ToModel;
 
 class ContactsImport implements ToModel
 {
 /**
 * @param array $row
 *
 * @return Contact|null
 */
 public function model(array $row)
 {
 return new Contact([
 'name' => $row[0],
 'phone' => $row[1], 
 'email' => $row[2]
 ]);
 }
 }

 

Make an Export class for export data

For export data from our database to Excel sheet, we need to make an Export class via command line.

php artisan make:export ContactsExport --model=Contact

By this command, a class file will create in app/Exports directory.

<?php
 
 namespace App\Exports;
 
 use App\Contact;
 use Maatwebsite\Excel\Concerns\FromCollection;
 
 class ContactsExport implements FromCollection
 {
 public function collection()
 {
 return Contact::all();
 }
 }

 

Make a controller for handle excel data import or export

Now the final part where we’ll handle how we’ll export or import data and what will be the logic goes to. Let’s make a controller by artisan make command.

php artisan make:controller ContactController

 

Handle Excel data import

To import data from excel sheet, make an import method inside the contact controller. In this import method, we’ll validate our request file and code for import the excel sheet data.

<?php
 
 use App\Imports\ContactsImport;
 use Maatwebsite\Excel\Facades\Excel;
 use App\Http\Controllers\Controller;
 
 class ContactsController extends Controller 
 {
 public function import(Request $request) 
 {
 $this->validate($request, [
 'file' => 'required|file|mimes:xls,xlsx'
 ]);
 
 $file = $request->file('file');
 Excel::import(new ContactsImport, $file);
 return redirect()->back()->with('success', 'All data successfully imported!');
 }
 }

 

Handle Excel data export

With the data export feature, we can export our table data into an excel sheet very easily. For that, make an export method inside the contact controller and do code for model data export into an excel sheet.

<?php
 
 namespace App\Http\Controllers;
 
 use App\Exports\ContactsExport;
 use Maatwebsite\Excel\Facades\Excel;
 
 class ContactController extends Controller 
 {
 
 public function export() 
 {
 return Excel::download(new ContactsExport, 'contacts.xlsx');
 }
 }

 

Hopefully, this step by step tutorial post will help you to add excel data import/export features in your laravel application. If this post helpful to you then please share with others so that they get helped.

programming

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

April 3, 2020 at 08:00AM

Fisher Clutch Space Pen

Fisher Clutch Space Pen

https://ift.tt/3aINu1e

Fisher Clutch Space Pen

 | Buy

Made from black anodized aluminum, Fisher’s Clutch Space Pen has a bold and substantial look. Its hexagonal barrel provides a confident grip, and won’t roll off your desk. With its pressurized ink cartridge, it has no trouble writing upside-down, or in extreme temperatures, and can even write underwater.

fun

via The Awesomer https://theawesomer.com

April 2, 2020 at 10:31AM

Laravel send e-mail A to Z

Laravel send e-mail A to Z

https://ift.tt/2w6CjjC

Sending e-mail is an important part of our application. Laravel made it easy with simple e-mail sending API. You can send email from STMP, Gmail, Webmail, Mailgun, Amazon SES, SendGrid, Mailtrap and etc with the same API. If you are looking for sending an email in Laravel framework via SMTP, Gmail, Mailgun, Amazon SES, Webmail, SendGrid or any email service then this post will help you by providing the complete guide on how to send an e-mail via Laravel 6. By following this post you can do exactly the same thing in Laravel 5 or Laravel 6. By completing this post, We’ll learn below.

  • How to send test e-mail for confirming all are ok via MailTrap.
  • How to send an email with Webmail SMTP in Laravel
  • How to send an email with Gmail in Laravel
  • How to send an email with SendGrid SMTP in Laravel
  • Laravel Send Mail without a view
  • Recommendations

 

Step 01: E-mail View

We have to make an e-mail template for sending the email content to our recipients. For that, Here I’m creating a simple HTML email template in resources/views/emails/template.blade.php with the content below.

<div>
 <h3>Hi, </h3>
 <p><p> 
 </div>

Look, In this template, we will pass $name and $msgBody variable data and send it to our recipients. With this simple e-mail template, I’ll show you how to send an e-mail via Mailtrap, SMTP, Gmail, Webmail etc.

Important Note Do not pass any variable name with message. If you do then it’ll conflict and you will get an exception.

 

Step 02: Define Route

We need to define a route in web.php file for sending an e-mail. Let’s do that.

Route::get('/send-mail','HomeController@sendMail');

 

Step 03: Controller Code

Now we need to code in sendMail function for sending our email.

// HomeController.php
 
 use Illuminate\Support\Facades\Mail;
 
 public function sendMail()
 {
 $data = [
 'name'=>'Jhon Smith',
 'msgBody'=>'Welcome to Laravel Article'
 ];
 
 Mail::send('emails.template',$data,function($mail){
 $mail->from('info@example.com');
 $mail->to('jhon@example.com');
 $mail->subject('Welcome E-mail');
 });
 
 return 'Successfully send';
 }

 

First testing E-mail with MailTrap

Here first we’ll send e-mails via Test mail sending sandbox service name Mailtrap. Mailtrap is really awesome for testing email before sending with our actual email sending credentials. We are doing this for confirming that our email is sending correctly with the correct content. Sometimes from Webmail, Gmail STMP are not work as we expected for some miss-configuration. If we succeed with MailTrap then we can ensure that our sending process ok we have to focus on other things.

  • Login to Mailtrap account and goto Demo Inbox.
  • From the integrations dropdown, select laravel
  • Now copy the env configuration and paste into your env file

  mailtrap-integration.png

Now, start the server php artisan serve and hit URL http://localhost:8000/send-mail

test-email-snap.png

 

2. How to send an e-mail with Webmail SMTP in Laravel?

– Do login into cPanel and create a Webmail.

– Collect mail client configuration for your webmail.

– Update configuration in your project env file.

MAIL_DRIVER=smtp
 MAIL_HOST=mail.example.com
 MAIL_PORT=465
 MAIL_USERNAME=info@example.com
 MAIL_PASSWORD=your_webmail_password
 MAIL_FROM_ADDRESS=from@example.com
 MAIL_FROM_NAME=Example

and finally, do exactly the same as step 1, 2, 3

Now, start the server php artisan serve and hit URL http://localhost:8000/send-mail

 

3. How to send an email with Gmail in Laravel?

Important: Sending e-mail using Gmail, first you need to enable less secure apps settings from your Google Account. If you do not enable this option then you will not able to send email using Gmail from your Laravel application.

– After enabling the less secure apps option, update the env file.

MAIL_DRIVER=smtp
 MAIL_HOST=smtp.gmail.com
 MAIL_PORT=587
 MAIL_USERNAME=your_gmail_address
 MAIL_PASSWORD=your_gmail_password
 MAIL_ENCRYPTION=tls

and finally, do exactly the same described in step 1, 2, 3

Now, start the server php artisan serve and hit URL http://localhost:8000/send-mail

 

4. How to send an email with SendGrid SMTP in Laravel?

Login to your SendGrid account.

Do sender authentication from Settings > Sender Authentication

Goto Settings > API keys and Create an API key by enabling Restricted Access ( Only send email )

sendgrid-api-key.png

 

Now update the env file with configuration.

MAIL_DRIVER=smtp
 MAIL_HOST=smtp.sendgrid.net
 MAIL_PORT=587
 MAIL_USERNAME=apikey
 MAIL_PASSWORD=your_api_secret
 MAIL_ENCRYPTION=tls

N.B: Keep exactly MAIL_USERNAME=apikey

and finally, do exactly the same described in step 1, 2, 3

Now, start the server php artisan serve and hit URL http://localhost:8000/send-mail

 

5. Laravel Send Mail without a view

For sending email without view in Laravel, you have to use the raw method of Laravel Mail facade. Just follow the steps below.

– Simply define a route.

Route::get('/send-mail','HomeController@sendMail');

– Setup mail credentials in env file from one of these ( Webmail, Gmail, SendGrid, Mailtrap etc)

– Do code in the sendMail method

// HomeController.php
 
 use Illuminate\Support\Facades\Mail;
 
 public function sendMail()
 {
 
 Mail::raw('Hi, welcome to laravelarticle.com!', function ($mail) {
 $mail->from('info@example.com');
 $mail->to('jhon@example.com');
 $mail->subject('Welcome E-mail');
 });
 
 return 'Successfully send';
 }

 

Recommendations

Use your credentials in the env file only local development. On the production side, do not put credentials in the env file, keep your credentials in the config/mail.php file.

 

Hope this post will help you to send email in Laravel framework with confidently. If this post helps you to learn how to send email in Laravel framework then please share this post with others.

programming

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

April 2, 2020 at 08:18AM