Samuel L Jackson reads “Stay the F at home”

See the original posting on Boing Boing

You know what you’re gonna get and the master delivers. The recital begins at 6:08.

While Jimmy is in quarantine, he checks in with the great Samuel L. Jackson at his home. Sam talks about canceling his trip to Italy with Magic Johnson, Jimmy wanting to be a part of their annual vacation, watching “Tiger King” with his daughter, the go-to meal he likes to cook himself.

Read the rest

Car crash footage with one of the vehicles digitally removed

See the original posting on Boing Boing

This is a compilation of security- and dash-cam footage of auto accidents with one of the vehicles digitally removed, thereby becoming “invisible”. It is remarkably creepy and unsettling, like one of those science fiction blockbusters that starts with an ingenious and terrifying disaster/invasion/escape scene but then becomes normal and boring for the rest of the movie. Read the rest

Server-Side Pagination Using ASP.NET Core and Angular 8 – Part Three

See the original posting on DZone Python

Introduction

In this article, we will learn how to create server-side paging, which is very useful whenever we have to display a large number of records. 
This article will be the final part of our three-part series. You can check out the first and second parts by clicking on the below links:

In the second part, we implemented a previous and next button. In this last part, we are sorting our data on click on headings in ascending and descending order. 
So here, we are displaying the number of records. With that, our program will calculate the number of pages, but in one page, we can see only the selected records, so rather than fetching all the records at one time, we are going to fetch records based on pages. This will increase our performance.

How Will it Work?

In Part 2, we were working on the Prev and Next button and their logic. Here we are sorting the records based on ascending and descending order, so when we click on the header column name it will get the related number of records in order by column name.

Back End

We will do the back-end code using SQL server. In the first part, we already have created a database and necessary tables, so no need to create it again. However, we will make a small change in the stored procedure. So we are sorting the data ascending or descending after we click on table headings on the screen. For that, I am using case statements so that it will manipulate records according to column name.
SQL

xxxxxxxxxx
1

42

 

1

USE [Company]  

2

GO  

3

/****** Object:  StoredProcedure [dbo].[Usp_GetAllCompanies]    Script Date: 1/17/2020 11:05:09 PM ******/  

4

SET ANSI_NULLS ON  

5

GO  

6

SET QUOTED_IDENTIFIER ON  

7

GO  

8

ALTER Proc [dbo].[Usp_GetAllCompanies]  

9

 @PageNo INT ,  

10

 @PageSize INT ,  

11

 @SortOrder VARCHAR(200)  

DeepMind’s Agent57 AI agent can best human players across a suite of 57 Atari games

See the original posting on TechCrunch

Development of artificial intelligence agents tends to frequently be measured by their performance in games, but there’s a good reason for that: Games tend to offer a wide proficiency curve, in terms of being relatively simple to grasp the basics, but difficult to master, and they almost always have a built-in scoring system to evaluate […]

Using colored paper, help a neighbor with “Isolation Communication”

See the original posting on Boing Boing

Nova Scotia resident Glynis Mullen shared a simple, but brilliant, way that we can all employ to look out for our neighbors in real life, “Our neighbour is older and lives alone so I gave her three colour pieces of paper for her window which face our kitchen window. Green is for I’m OK, yellow (is) for need(ing) help with an errand, and red for emergency. I call it isolation communication.”

Surrey Now-Leader:

She and her neighbour often communicate through her kitchen window and said the tri-colour paper system is a “really good visual comfort that everything is okay. When it’s yellow, I know I should call and we can arrange something.”

screengrab via Glynis Mullen/Facebook Read the rest

Samsung offers 50-percent buy-back guarantee on the Galaxy S20

See the original posting on The Verge

Photo by Brennan King / The Verge

Samsung phones are notorious for dropping in price quickly — the S20, for example, went on sale for $200 below its MSRP within weeks of its first release. Perhaps as a way to mitigate that reality, Samsung has introduced an unusual buy-back program for its own store (via Droid Life) that gives customers 50 percent of the value of an S20-series phone if it’s returned within two years.

That could be a pretty great deal given the usual market for used Samsung phones two years after their launch. A refurbished Galaxy S9, for example, can easily be found on Amazon for under $270 right now, though it cost $720 upon release. If you’re buying a $1,400 128GB Galaxy S20 Ultra today, then, the prospect of getting $700 back in 24 months probably…

Continue reading…

1 70 71 72