Tag:method

  • Comprehensive analysis of ES6 asynchronous mode

    Time:2020-6-30

    This article first appeared in my blog As we all know, JS is single threaded. This design allows JS to avoid various problems of multithreading, but it also allows JS to execute only one task at a time. If this task takes a long time to execute (such as an endless loop), JS will be […]

  • To explore the receiving parameters in spring boot and the client sending requests to transfer data

    Time:2020-6-30

    Refer to spring framework learning notes (9) – API interface design knowledge and specific coding implementation Many problems have been found when using spring boot to receive parameters. I have been very busy before. I have only had a little time to study this problem recently. Most articles on the Internet only talk about how […]

  • Use of Flink batch broadcast variable and ml mapwithbcvariable method

    Time:2020-6-29

    Method 1: using the Flink dataset API points.map (New selectnearestcenter). Withbroadcastset (current centers, “centroids”) // declares to broadcast the map operation import scala.collection.JavaConverters._ final class SelectNearestCenter extends RichMapFunction[DenseVector, (Int, DenseVector)] with Serializable{ private var centroids: Traversable[DenseVector] = null override def open(parameters: Configuration) { centroids = getRuntimeContext.getBroadcastVariable[DenseVector](“centroids”).asScala } def map(p: DenseVector): (Int, DenseVector) = { //use […]

  • Trampling record of Python 3.5 upgraded to 3.6 under ubuntu16.04

    Time:2020-6-29

    1. Sudo apt get update reports an error when Python 3.5 is upgraded to 3.6 The steps to install Python 3.6 are as follows: sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6 But in the403 Forbidden encountered during sudo apt get updateThere are two solutions:(1) Remove damaged and old PPA warehouse sudo add-apt-repository […]

  • How to solve the “headline news” when win10 starts up

    Time:2020-6-29

    When using the computer, it is inevitable that you will encounter various pop-up windows when you start the computer, for example, recently, there are WIn10 systemWhen users turn on the computer, they always find that the “headline news” advertising window will pop up. It’s very annoying to close it manually each time. Then how to […]

  • Method interworking between H5 and native app

    Time:2020-6-29

    Recently, I have done mixed development with app, and learned the method interworking between H5 and native app First, we define methods for app side to use (take Vue as an example) Define a method name in methods VContent() { console.log (“method for app”) }, Then we can mount this method to window in the […]

  • Implementation of bottom navigation bar of mainstream app based on uitabbarcontroller

    Time:2020-6-29

    preface When there are multiple controllers in the app, you need to manage these controllers. Use one controller to manage multiple other controllers, as shown in the figure: IOS uiview provides two special controllers, UINavigationController and uitabbarcontroller, to manage other controllers. Here is a simple example to illustrate the basic usage: Basic contents of UIWindow […]

  • Node.js Asynchronous iterators in

    Time:2020-6-29

    Author: J á NOS kubisch Crazy technology house Original text: https://blog.risingstack.com/… No reprint without permission From Node.js Since v10.0.0, asynchronous iterators are emerging, and they have become more and more attractive in the community recently. In this article, we’ll discuss the role of asynchronous iterators and address the question of what they might be used […]

  • JavaScript, CSS layout problem sorting (vertical horizontal center)

    Time:2020-6-29

    Source code link codesandboxJS code: parent package app export default function App() { return ( <div className=”Parent”> <div className=”App”> <h1>Hello CodeSandbox</h1> <h2>Start editing to see some magic happen!</h2> </div> </div> ); } Several implementations of centering Method 1, using margin: Auto to implement .Parent { height: 500px; width: 500px; border: 1px solid black; } .App […]

  • Some good debugging techniques of console

    Time:2020-6-29

    In our daily front-end development, the most frequently used is usingconsole.logPrint out the information we need to debug in the browser console, but most people may not be aware of it, just like me beforeconsoleexceptlogMethods, there are many practical methods, these methods can make our debugging process easier, also more intuitive, more colorful, let’s see […]

  • Tensorflow 2 installation succeeded import tensorflow as TF failed

    Time:2020-6-29

    tensorflow (tensorflow-2.2.0rc2-cp37-cp37m-win_ AMD64. Who) installed successfully,import tensorflow as ifThe error is as follows Traceback (most recent call last): File “C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, description) File “C:\ProgramData\Anaconda3\lib\imp.py”, line 243, in load_module return load_dynamic(name, […]

  • Mpvue learning notes – wechat data request encapsulation

    Time:2020-6-29

    brief introduction Mpvue produced by meituan has been open source for a long time. It has been said that it needs to be practiced. This is not the last time personal small program development has used it. Looking at the official data request module of wechat, request, and comparing the code of get and post […]