Work in Depth: Use every piece of brain power

            Impressiveness has become a widespread social phenomenon. It is very easy to judge whether a person is impetuous and to see how many times a day he actively picks up the phone. According to TED speakers, this value is 50 times, and in addition to eight hours of sleep, […]

Using Automapper in ASP.NET Core to map between Entity and Resource

directory Install Automapper from NuGet Add Entity Class and Resource Class Add a Profile file to configure mapping relationships Register Automapper in Startup Mapping with Automapper in your project Install Automapper from NuGet When using Automapper, the core packages are PM> Install-Package AutoMapper PM> Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection Add Entity Class and Resource Class Add the […]

httpclient get/postrequest

public static String HpPost (String url, JSONObject json) {String RespContent = null; try {HttpPost HttpPost = new HttpPost (url); CloseableHTTPClient Client = HttpClients.CreateDefault (); // json way StringEntity entity = new StringEntity (JSON.ToString (), “utf-8″); // solve Chinese garbled problem entity.SetcontentCoding (“UTF-8″); entity.setContentType (“application/json”); HttpPost.Setentity (entity); System.out.println (); HTTPponse resp = client.execute (HttpPost); if (Resp.getStatusLine […]

Usage of Beanutils.CopyProperties ()

I. Introduction: Beanutils provides packaging for Java reflection and introspection APIs. Its main purpose is to use reflection mechanisms to handle JavaBean’s properties. We know that a JavaBean usually contains a lot of properties, and in many cases the processing of JavaBean results in a lot of get/set code stacking, increasing the length of the […]

MyCat Tutorial Six: Global Serial Numbers – Self-growth of Global Primary Keys

We introduced MyCat’s library table operation, then the data in the same table will be stored in different databases, then this involves the maintenance of primary key. At this time, we can definitely not use the self-increment of the id in a single database, then we can use several kinds of growth provided in MyCat […]

Python3 Simple Crawler Crawl Web Pictures

Now there are a lot of instances of crawler crawling web images written by python2, but not for newcomers (newcomers all use python3 environments, not compatible with python2), so I wrote an instance of simple grabbing web images in Python3 syntax, hoping to help everyone, and hope everyone’s criticism is correct. 1 import urllib.request 2 […]

grub windows boot

BEGIN /etc/grub.d/30_os-prober menuentry ‘Windows Boot Manager (on /dev/sdb1)’ –class windows –class os $menuentry_id_option ‘osprober-efi-E7AB-605C’ { insmod part_gpt insmod fat set root=’hd1,gpt1′ if [ x$feature_platform_search_hint = xy ]; then search –no-floppy –fs-uuid –set=root –hint-bios=hd1,gpt1 –hint-efi=hd1,gpt1 –hint-baremetal=ahci1,gpt1 E7AB-605C else search –no-floppy –fs-uuid –set=root E7AB-605C fi chainloader /EFI/Microsoft/Boot/bootmgfw.efi } set timeout_style=menu if [ “${timeout}” = 0 ]; then […]

Model Training Competitive Collections – Ali

Alibaba PAI 1. Introduction Alibaba Cloud Machine Learning Platform (Platform of Artificial Intelligence) provides a one-stop service for traditional machine learning and deep learning from data processing, model training, service deployment to prediction. PAI DSW (Data Science Workshop) is a cloud-based deep learning development environment for algorithmic developers. It includes visual modeling of Notebook and […]