Hitman’s Wife’s Bodyguard (Trailer)

https://theawesomer.com/photos/2021/05/hitmans_wifes_bodyguard_t.jpg

Hitman’s Wife’s Bodyguard (Trailer)

Link

Ryan Reynolds, Samuel L. Jackson, Salma Hayek, Antonio Banderas, and Morgan Freeman star in this action-comedy about a bodyguard who attempts to get out of the business and gets pulled back in to protect the wife of an unhinged killer. It looks like just the kind of madcap Summer romp we could use. In theaters 6.16.2021.

The Awesomer

Friday Funnies

https://gunfreezone.net/wp-content/uploads/2021/05/lock-downs-no-emotional-harm-the-shinning.jpg

 

 

 

 

 

 

Cheap, Highly Efficient New EV Motor Uses No Magnets

"An EV motor has been developed that uses no magnets, thus lessening the United States’ reliance on Chinese magnets (which make up 97% of the world’s supply)," writes Slashdot reader nickwinlund77, adding: "I wonder what the motor’s performance is like on high grade roads?" New Atlas reports: German company Mahle has just announced a new electric motor that sounds like it solves a lot of problems in a very tidy manner. The new Mahle design uses no magnets, instead using powered coils in its rotor. Unlike previous efforts, it transfers power to the spinning rotor using contactless induction — so there are basically no wear surfaces. This should make it extremely durable — not that electric motors have a reputation for needing much maintenance. The lack of expensive metals should make it cheaper to manufacture than typical permanent-magnet motors. Mahle says the ability to tune and change the parameters of the rotor’s magnetism instead of being stuck with what a permanent magnet offers has allowed its engineers to achieve efficiencies above 95 percent right through the range of operating speeds — "a level that has only been achieved by Formula E racing cars." It’s also particularly efficient at high speeds, so it could help squeeze a few extra miles out of a battery in normal use. The company says it’ll scale nicely from sizes relevant to compact cars up to commercial vehicles.
"Our magnet-free motor can certainly be described as a breakthrough, because it provides several advantages that have not yet been combined in a product of this type," says Dr. Martin Berger, Mahle’s VP of Corporate Research and Advanced Engineering. "As a result, we can offer our customers a product with outstanding efficiency at a comparatively low cost." Mass production is about two and a half years away, according to IEEE Spectrum, and Mahle has not yet nominated which auto manufacturers it’s dealing with, but test samples are already starting to circulate.


Read more of this story at Slashdot.

Slashdot

Holosun – How to Zero Your New Optic

https://www.ammoland.com/wp-content/uploads/2021/05/Holosun-Red-dot-500×334.jpg

Make Range Time Rounds Count with Holosun
Make Range Time Rounds Count with Holosun

U.S.A.-(AmmoLand.com)- One of the best things about some of the optics advancements in recent years has been the ability to incorporate them into all sorts of firearms, including pistols. This proves extremely beneficial for acquiring a target with as little effort as possible and takes the guesswork out of aiming. For a new and inexperienced marksman, this gives immediate results with little effort; that is, if it’s dialed in correctly.

Holosun offers a broad range of reflex sights that will work on properly equipped pistols. The 407, 507, 508 and 509 series come with all sorts of options. Mounting interface, reticle choice and color are the most obvious choices that need to be made. While these optics series are going to be different sizes, they are adjusted in remarkably similar ways.

When first using a reflex optic – let’s use the 508 series, for example – check to see if there are any specific items or tools necessary for adjustments. While the 508 series need a small flathead screwdriver, other brands may require custom tools and measurement systems. This is one significant benefit and testament to the consistency of Holosun products.

The Process:

Here’s a few basics before we begin on the overall process. Every optic will have a north-south knob for adjustment and an east-west knob for adjustment. Depending on where you aim and the location of the impacts, any changes to point-of-impact would be made using these knobs. Holosun includes a small tool that can be used for making these adjustments. Every time the knob is twisted, there will be a small ‘click’ sound. Each click is equivalent to a 1 MOA adjustment which may be unnecessary to know depending on your method for finding zero.

#1: With standard sight co-witness:

With some pistol optic installation, the ability to use the standard sights may still be possible. One method of zeroing a reflex optic is to line the dot from the optic over – or directly on – where the point of aim would normally be on the standard sights. There is some personal preference when it comes to co-witnessing. The next step would be as easy as heading to the range. From there, if the projectile is traveling too far in any direction, move the reticle an appropriate amount using the built-in knobs.

#2: Without co-witness:

A bit more complicated, this method can also be used even when co-witnessing. While you can eyeball it and waste ammunition in the process, a 10-yard zero target makes the process move without a hitch.

Pistol zero targets will most likely have an MOA measurement built-in. They are reliable if a target is set up at the proper distance. With an optic mounted and the target set up at ten yards, fire a group of 5 shots. From the shot group, find the center and estimate the MOA adjustments necessary to reach the bullseye. Using the dials on the side of the optic, adjust accordingly. Remember, Holosun pistol optic adjustment values are 1 MOA per click, so a 3 MOA adjustment would be three clicks.

Final Steps:

Following any adjustments, it’s recommended to do the same target process 3-5 times. After each group, continue making slight adjustments if necessary. This will do several things.

  • First, it will work out the user’s cobwebs and any flinching that might have happened during the first group shots.
  • Second, it will allow the settling in of any irregularities with the pistol, such as lack of lubrication or magazine difficulties.
  • Third, it will also test the consistency of the ammunition itself. Ammunition is one of the largest uncontrollable variables when finding zero and the accuracy of any firearm.

Conclusion:

So, there you have it! Two methods of zeroing your pistol-mounted optic. Promptly, find some inexpensive ammunition and get out to the range. The only thing standing in the way of an accurate pistol is you… and ammunition prices…


About Holosun Technologies

Holosun Technologies, located in City of Industry, California, was established in 2013 by one of the industry’s most successful OEM manufacturers. Holosun is committed to creating innovative optic, laser/IR technologies that benefit a broad range of shooting, hunting, law enforcement, and military needs.

Over the course of the past decade, Holosun has been at the forefront of developing new sight technologies to fulfill a variety of shooting needs. Our product line includes innovations such as; 50,000 hr battery life, solar options, the ability to change reticles with the press of a button and IR/Laser units that utilize the most recent advancements in laser and LED technology. At Holosun, we pride ourselves on producing cutting-edge equipment with a competitive price that astounds the customer and the competition.

For more information, please visit WWW.HOLOSUN.COM

Holosun logo

The post Holosun – How to Zero Your New Optic appeared first on AmmoLand.com.

AmmoLand.com

Mike Driscoll: Python 101: 2nd Edition is FREE for PyCon 2021!

https://www.blog.pythonlibrary.org/wp-content/uploads/2020/02/py101_kick-300×179.jpg

I am making Python 101: 2nd Edition free during PyCon 2021. This sale will end, Monday, May 17th, 2021. You can get the book free using the following links:

If you like the eBook and you’d like to get a paperback version, you can get it on Amazon.

Python 101 2nd Ed Kickstarter

The second edition of Python 101 is completely rewritten from the ground up. In this book, you will learn the Python programming language and lots more.

This book is split up into four sections:

  1. The Python Language
  2. Intermediate Topics
  3. Creating Sample Applications
  4. Distributing Your Code

The post Python 101: 2nd Edition is FREE for PyCon 2021! appeared first on Mouse Vs Python.

Planet Python

Laravel Livewire Fullcalendar Integration Example

https://www.mywebtuts.com/upload/blog/livewire-fullcalendar-main.png

Hi Friend,

In this example, I will learn you how to use fullcalendar with livewire example. We will explain step-by-step laravel livewire fullcalendar integration. you can easily make livewire fullcalendar integration in laravel. we will describe laravel livewire fullcalendar integration.

Here, I will give you full example for simply livewire fullcalendar integration in laravel native as bellow.

Step 1 : Install Laravel App

In First step, We need to get fresh laravel version application using bellow command. So Let’s open terminal and run bellow command.

composer create-project --prefer-dist laravel/laravel blog

Step 2 : Setup Database Configuration

After successfully install laravel app thenafter configure databse setup. We will open “.env” file and change the database name, username and password in the env file.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=Enter_Your_Database_Name
DB_USERNAME=Enter_Your_Database_Username
DB_PASSWORD=Enter_Your_Database_Password

Step 3 : Install Livewire

In this step, You will simply install livewire to our laravel application using bellow command:

composer require livewire/livewire

Step 4 : Create items Table and Model

In this step we have to create migration for items table using Laravel php artisan command, so first fire bellow command:

php artisan make:model Event -m

After this command you have to put bellow code in your migration file for create items table.

following path: /database/migrations/2021_04_10_102325_create_events_table.php

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateEventsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('events', function (Blueprint $table) {
            $table->id();
            $table->string('title');
            $table->string('start');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('events');
    }
}

Now we require to run migration be bellow command:

php artisan migrate

After you have to put bellow code in your model file for create items table.

following path:/app/Models/Event.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Event extends Model
{
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'title',
        'start',
    ];
}

Step:5 Create Route

In thi step,now, we need to add resource route for livewire fullcalendar integration in application. so open your “routes/web.php” file and add following route.

<?php

use Illuminate\Support\Facades\Route;
use App\Http\Livewire\Calendar;
use App\Models\Event;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::view('/', 'home');

Livewire::component('calendar', Calendar::class);

Step 6 : Create Component

Now, You can create livewire component using bellow command, So Let’s run bellow command to create calendar form component:

php artisan make:livewire calendar

Now they created fies on both path:

app/Http/Livewire/Calendar.php
resources/views/livewire/calendar.blade.php

Now first file we will update as bellow for Calendar.php file.

app/Http/Livewire/Calendar.php

<?php
namespace App\Http\Livewire;
use Livewire\Component;
use App\Models\Event;

class Calendar extends Component
{
    public $events = '';

    public function getevent()
    {       
        $events = Event::select('id','title','start')->get();

        return  json_encode($events);
    }

    /**
    * Write code on Method
    *
    * @return response()
    */ 
    public function addevent($event)
    {
        $input['title'] = $event['title'];
        $input['start'] = $event['start'];
        Event::create($input);
    }

    /**
    * Write code on Method
    *
    * @return response()
    */
    public function eventDrop($event, $oldEvent)
    {
      $eventdata = Event::find($event['id']);
      $eventdata->start = $event['start'];
      $eventdata->save();
    }

    /**
    * Write code on Method
    *
    * @return response()
    */
    public function render()
    {       
        $events = Event::select('id','title','start')->get();

        $this->events = json_encode($events);

        return view('livewire.calendar');
    }
}

Step 7: Create View

Here, we will create blade file for call fullcalendar route. in this file we will use @livewireStyles, @livewireScripts so let’s add it

resources/views/home.blade.php

<html>
<head>
    @livewireStyles
</head>
<body>
    <livewire:calendar />
    @livewireScripts
    @stack('scripts')
</body>
</html>

after,I will create calendar componet blade file.

resources/views/livewire/calendar.blade.php

<style>
    #calendar-container{
        width: 100%;
    }
    #calendar{
        padding: 10px;
        margin: 10px;
        width: 1340px;
        height: 610px;
        border:2px solid black;
    }
</style>

<div>
  <div id='calendar-container' wire:ignore>
    <div id='calendar'></div>
  </div>
</div>

@push('scripts')
    <script src='https://cdn.jsdelivr.net/npm/fullcalendar@5.3.1/main.min.js'></script>
    
    <script>
        document.addEventListener('livewire:load', function() {
            var Calendar = FullCalendar.Calendar;
            var Draggable = FullCalendar.Draggable;
            var calendarEl = document.getElementById('calendar');
            var checkbox = document.getElementById('drop-remove');
            var data =   @this.events;
            var calendar = new Calendar(calendarEl, {
            events: JSON.parse(data),
            dateClick(info)  {
               var title = prompt('Enter Event Title');
               var date = new Date(info.dateStr + 'T00:00:00');
               if(title != null && title != ''){
                 calendar.addEvent({
                    title: title,
                    start: date,
                    allDay: true
                  });
                 var eventAdd = {title: title,start: date};
                 @this.addevent(eventAdd);
                 alert('Great. Now, update your database...');
               }else{
                alert('Event Title Is Required');
               }
            },
            editable: true,
            selectable: true,
            displayEventTime: false,
            droppable: true, // this allows things to be dropped onto the calendar
            drop: function(info) {
                // is the "remove after drop" checkbox checked?
                if (checkbox.checked) {
                // if so, remove the element from the "Draggable Events" list
                info.draggedEl.parentNode.removeChild(info.draggedEl);
                }
            },
            eventDrop: info => @this.eventDrop(info.event, info.oldEvent),
            loading: function(isLoading) {
                    if (!isLoading) {
                        // Reset custom events
                        this.getEvents().forEach(function(e){
                            if (e.source === null) {
                                e.remove();
                            }
                        });
                    }
                }
            });
            calendar.render();
            @this.on(`refreshCalendar`, () => {
                calendar.refetchEvents()
            });
        });
    </script>
    <link href='https://cdn.jsdelivr.net/npm/fullcalendar@5.3.1/main.min.css' rel='stylesheet' />
@endpush

Now we are ready to run our example so run bellow command for quick run:

php artisan serve

Now you can open bellow URL on your browser:

http://localhost:8000/
Preview

Event Fullcalendar
Add Event Fullcalendar
Drag And Drop Fullcalendar

It will help you..

Laravel News Links

How to Insert at the First Position of a List in Python

https://blog.finxter.com/wp-content/uploads/2021/05/insert_list_first_pos.jpg

Problem Formulation: How to insert at the first position of a list in Python?

How to Insert at the First Position of a List in Python

Solution:

Use the list.insert(0, x) element to insert the element x at the first position 0 in the list. All elements j>0 will be moved by one index position to the right.

>>> lst = [5, 1, 3, 8, 7, 9, 2]
>>> lst.insert(0, 42)
>>> lst
[42, 5, 1, 3, 8, 7, 9, 2]

You create the list [5, 1, 3, 8, 7, 9, 2] and store it in the variable lst. Now, you insert the new element 42 to the first position in the list with index 0. Note that Python uses zero-based indexing so the first position has index 0. The resulting list has 8 elements instead of only 7. The new element 42 is at the head of the list. All remaining elements are shifted by one position to the right.

To dive deeper into the very important list.insert() method, I’d recommend you watch my full explainer video here:

Note that some people recommend to insert an element at the first position of a list like so:

>>> lst = [1, 2, 3]
>>> lst = ['new'] + lst
>>> lst
['new', 1, 2, 3]

While the output looks the same, this doesn’t actually solve the problem because the list concatenation operator list_1 + list_2 creates a new list with the elements of two existing lists. The original lists remain unchanged. Only by assigning it to the variable lst, you overwrite it. However, if another variable would point to the old list, this option based on list concatenation wouldn’t work because the old list remains unchanged.

>>> lst_1 = [1, 2, 3]
>>> lst_2 = lst_1
>>> lst_2 = ['new'] + lst_2

In this example, you create two lists lst_1 and lst_2 both referring to the same list object in memory. You try to insert the new element at the beginning of the list using the problematic method. And you obtain a clash—both lists refer to different objects in memory!

>>> lst_2
['new', 1, 2, 3]
>>> lst_1
[1, 2, 3]

Thus, the list.insert(0, 'new') method is superior to list concatenation to insert an element at a given position in the list.

>>> lst_1 = [1, 2, 3]
>>> lst_2 = lst_1
>>> lst_2.insert(0, 'new')
>>> lst_1
['new', 1, 2, 3]
>>> lst_2
['new', 1, 2, 3]

Both variables now refer to the same, changed list object.

The post How to Insert at the First Position of a List in Python first appeared on Finxter.Finxter

MySQL Workbench 8.0.25 has been released

Dear MySQL users,

The MySQL developer tools team announces 8.0.25 as our General Availability
(GA) for MySQL Workbench 8.0.

For discussion, join the MySQL Workbench Forums:
http://forums.mysql.com/index.php?152

The release is now available in source and binary form for a number of
platforms from our download pages at:

http://dev.mysql.com/downloads/tools/workbench/

Enjoy!

Changes in MySQL Workbench 8.0.25 (Not yet released, General
Availability)

   This release contains no functional changes and is published
   to align the version number with the MySQL Server 8.0.25
   release.

On Behalf of MySQL Engineering Team,
Prashant Tekriwal

The MySQL Workbench Developer Central Site

6 Mobile Apps to Help Dementia Patients and Their Caregivers

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2021/05/My_House_Of_Memories.jpg

While it’s no secret that mobile apps have ability to help us in different areas of our lives, you may be surprised to learn that there are a growing number of apps specifically designed to assist people with dementia. These vary from memory games to help slow down the progression of dementia, to reminder apps that can help dementia patients remain more independent.

In addition, there are apps aimed at supporting family members and caregivers too. Let’s take a look at some of the best apps for those with dementia, as well as their loved ones.

1. MemoClock

Image Gallery (3 Images)

Memo clock receiver
Expand
Memoclock app home screenshot
Expand
Memoclock app send message screenshot
Expand

MemoClock was created by Dan Mogenson after his father was diagnosed with Alzheimer’s disease. The app connects a caregiver with their friend or relative who has dementia and allows them to send reminders directly to the other person’s phone. For daily tasks, you can set repeat reminders that create an alert at the same time each day. The app can also receive pictures and voice messages.

Aside from assisting individuals with daily tasks and reminding them of appointments, the app also helps to tackle loneliness by providing a simple and direct line of communication. For MemoClock to work, both the sender and the receiver need a compatible smartphone; thankfully, most devices are supported.

Download: MemoClock for Android | iOS (Free, subscription available)

2. Train Your Brain

Image Gallery (3 Images)

Train your brain memory game options
Expand
Train your brain memory game how to
Expand
Train your brain memory game pairs
Expand

While brain games provide great mental stimulation for people of all ages, they’re particularly beneficial for older adults who are at high risk of, or are already living with, dementia.

Unlike other memory apps, Train Your Brain was specifically designed with seniors in mind. It has a very simple, yet stimulating, interface and a variety of different memory games to choose from. These include matching pairs of cards and memorizing short shopping lists.

There are plenty of free ad-supported games to choose from. Alternatively, you can pay a small fee to unlock more games and remove the ads.

Download: Train Your Brain for Android | iOS (Free, premium version available)

3. My House Of Memories


My House Of Memories was created by National Museums Liverpool, designed for individuals living with dementia or Alzheimer’s. However, it can also be enjoyed by anyone with an interest in history. The purpose of the app is to spark meaningful conversations and bring up positive memories.

While using the app, individuals and their families or caregivers can reminisce together about simple historic objects. They will also hear familiar sounds that encourage positive memories and promote wellbeing. If you like a particular object or find that it sparks a good memory, then you can store it for later and add it to a memory display.

Read more: How iPods and Old Songs Can Treat the Symptoms of Dementia

To help people with dementia remember their family, friends, and personal memories, there’s even the option to upload your own photos to a new or existing memory album.

Download: My House Of Memories for Android | iOS (Free)

4. Dementia Guide Expert

Image Gallery (3 Images)

Dementia Guide Home
Expand
Dementia Guide Article Example
Expand
Dementia Guide Medication Article
Expand

A dementia diagnosis can be extremely scary, but the more you know about the stages of dementia, the easier it is to plan for the future. National dementia experts designed this guide app to help support individuals with dementia, as well as their friends and families.

The app offers helpful tips to help you manage and understand dementia as a condition, while also providing access to a library of further information and linked resources. Although the interface may look outdated, the app contains a wealth of relevant information and is easy to navigate and explore.

Download: Dementia Guide Expert for Android | iOS (Free)

5. Medisafe

Image Gallery (3 Images)

Medisafe Medication Example
Expand
Medisafe schedule example
Expand
Medisafe manage appointments screen
Expand

Remembering to take your medication can be tricky at the best of times, let alone when you’re struggling with your memory. Medisafe is a free, award-winning pill reminder and medication tracking app. It’s designed to make it easier to stay on top of your medication and take it regularly each day.

Read more: The Best Medicine Reminder Apps

The app’s Medifriend functionality also allows family, friends, or caregivers to see what medication the user has taken each day. It can even give a report for you to share with your doctor. Whether you’re managing one prescription or several, the app helps you keep track of what to take and when to take it.

Download: Medisafe for Android | iOS (Free, subscription available)

6. Mojo

Image Gallery (3 Images)

Mojo Home page
Expand
Mojo notes page
Expand
Mojo Forum Page
Expand

Learning that someone you love has Alzheimer’s or any form of dementia can put stress on your relationship. The Mojo app is designed to help and support family members or friends as they learn how to become good caregivers for their loved ones. The app has a free advice center and a forum with articles designed to help you find moments of joy in a difficult time.

The app also has a wealth of resources designed to help you manage troublesome dementia behaviors, plus space to share experiences with other app users. You can also upload images of friends and family, track care reports, and make your own care notes and checklists from the homepage of the app.

When you sign up for the first time, you’re automatically given a 30-day free trial. After this, you need to upgrade to access additional premium features. At the time of writing, Mojo’s iOS app appeared to be unavailable.

Download: Mojo for Android (Free trial, subscription required)

Utilizing Phone Apps for Dementia Patients

There is a wide range of phone apps that people living with dementia can use to help improve their memory and manage their daily lives. There are also lots of apps whose aim is to provide support to caregivers and families. Using these apps may not cure dementia, but they can make living with the disease a little more bearable.

These are just a few of the available dementia care apps currently on the Play Store and App Store, but there are many others to consider. As more people begin using technology to help manage their dementia diagnosis, more of these apps should start to appear.

MUO – Feed

Elon Musk Finally Explains the Reason for His Bizarre Tweets

http://img.youtube.com/vi/FuaDWyCnJxs/0.jpg

Elon Musk, the CEO of Tesla, SpaceX, and other startups, provided an explanation for his bizarre tweets that have gotten him into trouble with regulators, customers and competitors.

Elon Musk’s Reason for Bad Tweets

During Musk’s controversial Saturday Night Live appearance, the CEO of Tesla and SpaceX admitted to posting strange things online, saying it’s how his brain is hardwired.

Look, I know I sometimes say or post strange things, but that’s just how my brain works. To anyone I’ve offended, I just want to say I reinvented electric cars, and I’m sending people to Mars in a rocket ship. Did you think I was also going to be a chill, normal dude?

Musk probably isn’t lying by blaming his bizarre or downright insulting tweets on his eccentricity. After all, we’re talking about the same guy who changed his job title to the "Technoking of Tesla" in a US Securities and Exchange Commission filing.

Now, one would be right to argue that PayPal’s former co-founder should know better than that. Indeed, there are plenty of examples of Musk’s aggressive and offensive tweeting.

The Most Bizarre Musk Tweets

In April 2020 during the height of the coronavirus pandemic when the US was reporting more than 20,000 new daily cases, the Tesla chief demanded that the government reopen the economy and "FREE AMERICA NOW."

Musk also caused quite a turmoil with a thinly-veiled threat in another tweet in which he announced that workers who unionized would lose their company-paid stock options. The National Labor Relations Board was unsympathetic, ordering Musk to delete that one.

Related: Must-Have Smartphone Apps for Electric Car Owners

Offending British cave explorer Vernon Unsworth by calling him a "pedo guy" in front of his millions of Twitter followers definitely isn’t one of Musk’s finer moments either.

"Funding Secured"

But the most famous Musk tweet has got to be a 2018 post in which he announced taking Tesla private at $420/share. Shares of Tesla tumbled following the "funding secured."

It was this tweet in particular that prompted the US Securities and Exchange Commission to sue Musk in federal court, charging the technology entrepreneur with committing securities fraud by manipulating stock prices with tweets. All in all, the "funding secured" tweet cost Musk a $20 million fine and a position as Tesla’s chairman of the board.

MUO – Feed