Unit editor - get all the windows in the unit editor and open the display for later editor expansion
Getting principle: all window interfaces of unity are inherited from the EditorWindow under the UnityEditor assembly. All editor windows are defined in the UnityEditor assembly, so we can get all the windows by getting the UnityEditor assembly through reflection.
Direct code:
using System;
using System.Collections;
using Syst ...
Posted by bkanmani on Mon, 16 Dec 2019 13:48:24 -0800
GO installation and operation of redis
1. Install redis and start redis service
windows installation tutorial:
linux Installation Tutorial:
2. Use go get to download redis extension package
Execute the installation command at the cmd command line:
go get github.com/garyburd/redigo/redis
After installation, the source package will be placed in the $GOPATHF/src/github.com d ...
Posted by jason102178 on Mon, 16 Dec 2019 06:25:12 -0800
Using idea to package spring cloud project and deploy it under tomcat
Note: there are three projects,
One provides eureka Service -- EHL eureka Server1,
A data interface service -- apps is,
A web service - appsweb
Use idea to make war package:
Build - > build artifacts -- > select all or single
Find the war package in the workspace, for example:
E:\workspace-mars\mps\mps-apps-is\target
Deploy to tomcat
Fr ...
Posted by santhosh_89 on Sun, 15 Dec 2019 11:40:32 -0800
Download APP1.0 for image of python crawler
Today, I'd like to give you a little bit of fun. Use python to crawl the pictures to the local area. The website is https://www.pexels.com/
This website is a foreign language network, so the search image should be in English. What we need to do today is search and download the image in python, and make a web APP.
Direct code
from b ...
Posted by Fingers68 on Sun, 15 Dec 2019 06:47:59 -0800
Top 250 music of bean petals of python reptiles
I've been home for a long time. I can't bear it. I want to climb up and play with some data. My notebook used to be a dual system of win7 plus ubuntu 16.04. I planned to write code in ubuntu, but when I came back home, it's always a purple screen. Baidu knows how to use it, but I can't solve it. A good brother can teach me. There's ...
Posted by maddogandnoriko on Sun, 15 Dec 2019 06:48:17 -0800
python crawler -- Distributed crawler
Scrapy redis distributed crawler
introduce
By using the set of redis, the request queue and items queue can be realized, and by using the set of redis, the request can be de duplicated, so that the scale of crawler cluster can be realized
Scratch redis is a scratch component based on redis
• distributed Crawlers
Multiple crawler insta ...
Posted by ravnen on Sun, 15 Dec 2019 03:44:35 -0800
Python crawler series - Preliminary Exploration: crawling travel review
Python crawler is currently based on the requests package. The following is the documentation of the package. It is more convenient to check some information.
http://docs.python-requests.org/en/master/
Crawling the product reviews of a tourism website, through analysis, it needs POST instructions to get json files. In short:
GET is to add the ...
Posted by newbiez on Fri, 13 Dec 2019 13:31:54 -0800
Using the subprocess module, running to. poll() always means that None causes the program to run abnormally
Problem: use subprocess in the server to monitor the running state of python and record the logs. The code can run normally on your own computer, but run to subprocess.Popen().poll() in the server and output None all the time, which causes the program to run abnormally.
Environment: windows server 2003+python2.7
Cause analysis: I checked some ...
Posted by Sekka on Fri, 13 Dec 2019 10:01:06 -0800
C ා change picture size according to screen resolution
Recently, we have encountered a problem that we need to change the size of the pictures in the program folder according to the resolution of the computer screen at this time
The following is the code implementation process:
1. Get the pictures in the folder. The name of this folder is exe, which is the same as the directory
//Read files in fol ...
Posted by DJ Unique on Thu, 12 Dec 2019 09:44:33 -0800
J.U.C Analysis and Interpretation 2 (Origin of AQS)
Preface
Previously, you showed how JDK implements exclusive and shared locks by implementing custom ReentrantLock and custom ReentrantReadWriteLock.
So how do ReentrantLock and ReentrantReadWritreLock in the actual JDK source work?Can our existing custom code go any further?
The answer is yes.Note that if you look at my two previous Lock friend ...
Posted by eddie21leeds on Wed, 11 Dec 2019 18:49:38 -0800