The usage of File in jieshenzhi Java

1.effect: a.Operation file b.Operations folder c.Path to action file 2.Construction method a.File(String pathname);Create a new pathname by converting the given pathname string to an abstract pathname File example. b.File(String parent,String child); according to parent Pathname strings and child Pathname string crea ...

Posted on Mon, 04 May 2020 08:00:43 -0700 by root

android TextView set neon effect

TextView set neon effect TextView is one of the most commonly used controls in android, and it is also a very simple control. Here, a simple demo is made by using TextView to familiarize yourself with TextView, which is suitable for android novice partners to have a look. The whole process is to use threads to send messages every other time ...

Posted on Mon, 04 May 2020 08:01:18 -0700 by cscheuble

ASP.NET HttpWebRequest and HttpWebResponse

The HttpWebRequest and HttpWebResponse classes are the best choices for sending and receiving HTTP data. They support a range of useful properties.   Simulated Yilong travel website login If you want to simulate login, first clear up the process 1. Capture relevant data through the F12 developer tool of 360 browser (IE, Firefox, etc.) 2. G ...

Posted on Sun, 03 May 2020 12:45:25 -0700 by 2705ap

How to assign different DB to different crawler items instead of just using db0

How to assign different DB to different crawler items instead of just using db0 1. Background By default, redis will generate 16 dB: db0 ~ db15. When writing a scrape redis distributed crawler, db0 will be used by default to store the de duplication, seed queue and item data. But in general, we don't have only one crawler project. If we put ...

Posted on Sun, 03 May 2020 03:16:03 -0700 by TheFilmGod

SlidingUpPanelLayout simple to use

SlidingUpPanelLayout simple to use SlidingUpPanelLayout is an open source library on github https://github.com/umano/AndroidSlidingUpPanel , the main effect is to slide up or click to expand the panel with animation: First, add dependency package implementation 'com.sothree.slidinguppanel:library:3.4.0' Step 2: add page layout &lt ...

Posted on Sat, 02 May 2020 23:50:02 -0700 by cgraz

Generate invoice assistant QR code

I heard about the invoice assistant before we had a meal. It can generate a two-dimensional code of the invoice header, and scan the code to make an invoice. Official also has a small program of [tax invoice assistant], wechat search this name is OK. I'm going to try it in my own small program. I thought it would be better if I spliced it to ge ...

Posted on Sat, 02 May 2020 23:11:22 -0700 by pliant

Grabbing the dynamic loaded profile page

preparation Using the language python Required library requests, re, math Get dynamic links Open the profile home page, recommend Firefox and Chrome, right-click to view the elements, select network options, then swipe the page, load new content, and find the links and request headers as shown in the following figure. Get load link Link a ...

Posted on Sat, 02 May 2020 19:48:29 -0700 by squimmy

sqlalchemy foreign key Association

1, Create two tables and associate foreign keys Import ForenginKey module # -*- coding: UTF-8 -*- from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, DATE, Enum from sqlalchemy import ForeignKey from sqlalchemy.orm import sessionmaker engine = create_eng ...

Posted on Sat, 02 May 2020 16:05:45 -0700 by Kisses

Upload image quick preview HTML5 FileReader + Window.URL method

In web pages, it is often necessary to upload pictures and preview them. In most cases, images are uploaded to the back-end through ajax, and then the upload status and results are fed back to the front-end for preview. Here we introduce two quick upload image preview methods, which can quickly preview the image without ...

Posted on Sat, 02 May 2020 15:44:42 -0700 by ciaran

IOS UnionPay payment

Official SDk download address https://open.unionpay.com/ajweb/index Test Demo: http://pan.baidu.com/s/1kUKMaqz 1. Import the official SDK. Directly drag into the project 2. Add system package: Target - > build phases - > link binary with libraries add 4 packages: CFNetwork.framework, SystemConfiguration.framewo ...

Posted on Sat, 02 May 2020 08:05:01 -0700 by leafface