Deploy your own ngrok in 7 minutes

Deploy your own ngrok in 7 minutes Article Background Pre-preparation Install software Article Background Recently, to develop the WeChat Public Number, we need to use the external network ip. However, the free version on the Internet is either slow or changing IP regularly, so we decided to dep ...

Posted by baze on Thu, 16 Jan 2020 18:00:42 -0800

How easy is the Android floating window to implement?This is easy to do with kotlin!

Starting with business applications, this paper abstracts a floating window tool class from scratch that can be used to display floating windows on any business interface.It can manage multiple floating windows at the same time, and floating windows can respond to touch events, can be dragged, and have side animations. The sample code is writt ...

Posted by mrdave on Wed, 15 Jan 2020 10:33:32 -0800

Solve cross domain -- postMessage

Principle and implementation of postMessage In order to solve the problem of cross domain, HTML5 introduces a new API: Cross Document Messaging. This API adds a window.postMessage method to the window object to allow cross window communication, regardless of whether the two windows are homologous or ...

Posted by l053r on Wed, 15 Jan 2020 03:27:45 -0800

python. No3

New year's Day is coming. Let's not talk about it. I'd like to give you a new year's Eve Recently, the IOS students next to me asked for leave to stay at home. Hey, hey, I was left alone in the corner shivering. Although the air conditioner of the company was turned on to 28 ℃, it still couldn't melt my ...

Posted by sribala on Wed, 15 Jan 2020 01:11:47 -0800

Implementation of TextBox with empty button (WPF)

Abstract: This blog post is for the crowd: WPF novice. Blog content: make TextBox Style template including empty Button through Style, and empty TextBox content by introducing additional attributes of custom class into Style.Purpose of the blog: to help new WPF developers or those in need to quickly und ...

Posted by aldernon on Tue, 14 Jan 2020 21:35:21 -0800

007. Producer consumer queue (read and write first and last)

The so-called producer consumer queue is the queue that a thread reads and a thread writes What we have implemented here is an unlocked producer consumer queue. The key points of the algorithm are as follows: 1.pop only modifies the head node, and push only modifies the tail node 2. Ensure that head and ...

Posted by naskoo on Tue, 14 Jan 2020 02:05:27 -0800

01 tensorflow linear regression

Article directory Preparation Important concepts Graph and Session Computation flow Data preparation Prepare the placeholder Initialization parameters / weights Calculate forecast results Calculate loss value Initialize optimizer Specify the number of iterations and execute graph in the session Oper ...

Posted by mapleshilc on Mon, 13 Jan 2020 23:12:46 -0800

How to add a browser tab icon (favicon) to a website?

I've been working on the site and I want to add a small icon to the browser tab. How do I do this in HTML and where do I need to put it in my code (such as a title)? I have a. png logo file that I want to convert to an icon. Relevant: HTML set image on browser tab . #1 building I have successfully done this for my website. The ...

Posted by soianyc on Mon, 13 Jan 2020 05:50:32 -0800

c++ new feature: regular expression

After c++11, regular expressions are formally included in the standard library, including the function modules of regex [match], regex [search] and regex [replace]. Through regular expressions, you can easily complete the operation of serializing sequence of specific patterns. Before using regular expre ...

Posted by LHBraun on Mon, 13 Jan 2020 05:46:38 -0800

ch05 code reuse for function writing

Article directory Code reuse and function writing Benefits of code reuse cost reliability Uniformity Use the require() function and the include() function require() function -- introduce code require() function -- making web site template Use auto prepend file and auto append file Using PHP func ...

Posted by MrSheen on Mon, 13 Jan 2020 03:47:13 -0800