They really are the enemy of the poeple

https://gunfreezone.net/wp-content/uploads/2016/01/cropped-gfz-ico.png

Tell me why the AP was in a building that Hamas was using to store weapons.

Oh yeah, because the AP were acting as human shields for Hamas, assuming that Israel wouldn’t strike their offices while Hamas hid rockets in the basement.

Everything the Left criticizes people for is projection.

They accuse Israel of war crimes because they were using media offices to protect terrorist weapons caches.

Friday Funnies

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

 

 

 

 

 

 

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

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

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

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

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

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

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 Exercise All Those Little Muscles in Your Feet That You Forgot (and Why You Should)

https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/3a244b6516ee43cce8e9e4f81501c850.jpg

Photo: New Africa (Shutterstock)

It’s easy to exercise the muscles you can see—your biceps, your quads—but there are more muscles in your body than just the big ones. We’ve talked before about the muscles in your hands and forearms, which help to give you a strong grip, and today I’d like to bring your attention to your feet.

Your feet contain more little muscles than you probably realize, including four separate layers of them on the bottom of your feet. These “intrinsic” muscles help support your arch, move your toes, and more.

If you engage in a variety of exercises, the muscles of your feet and lower legs will probably get plenty of work. But it doesn’t hurt to take a few minutes to give them some special attention—and if you’re a runner, or if you need extra support for your feet in exercises like yoga, you might find that some foot exercises help you with your other activities.

Try some foot yoga

Yoga can provide a mindful focus on the way our body works, strengthening and stretching muscles in ways we don’t normally think about. Fortunately, Adriene (of Yoga With Adriene) has a yoga flow for the feet, so you can follow along and get to know all those little foot muscles.

G/O Media may get a commission

Do a strength routine for your feet

If yoga isn’t your style, you can do foot exercises in sets and reps. This video from PodiumRunner will show you a few. One that might blow your mind if you never thought about your arch as a muscle: stand with your feet flat on the ground, then pull your arch upwards, making your footprint shorter and your instep taller. You have a muscle that does this! You can contract it on purpose! Amazing.

Scrunch a towel

One exercise not mentioned above is the towel scrunch. Set a dish towel on the ground, place your toes on it, then (sitting or standing) scrunch your toes to bunch the towel up. Repeat until the whole towel is in a heap under your feet.

This is a fun one because you can actually load it. Put a small weight, like a water bottle, on the opposite end of a towel, to make it harder to pull toward you.

Run on uneven ground

The real function of our feet is to support us as we do other things in life, so don’t think you’re limited to just doing focused foot exercises on their own. Going out for a trail run, or even jogging on sand or grass, will constantly challenge your feet to support you at a variety of angles and positions. If you have a place you can safely run barefoot, give that a try as well.

 

Lifehacker