#Basic knowledge of Java
Basic knowledge of Java
java
static final int a=0xff;;
static final int a=067;
static final int a=126;
Decimal form 12.37F,-0.423D
boolean length 1 byte
Basic data type, reference data type
toString() converts objects to character
Conversion between String type and basic type
java+java filename ...
Posted by RussellReal on Thu, 31 Oct 2019 09:35:23 -0700
Assembler - 2 (recursive Caller - factorial)
This is also the school's curriculum, which deals with the factorials of 0-9.
Why only deal with factorials of 0 -- 9? Ha ha, because in hexadecimal notation, 9! The factorial of can be put down by DX: AX, and it's only the factorial of one digit (single character input). If there's more, we have to think about circular calling. It's a bit tro ...
Posted by IThinkMyBrainHurts on Mon, 28 Oct 2019 10:59:34 -0700
Java self study - I/O Chinese problems
Coding Chinese in Java
Step 1: coding concept
The computer can only store numbers, and all characters will be converted into different numbers.
Just like a chessboard, different words are in different positions, and different positions have different numbers.
Some chessboards are very small, only numbers and English can be put
Some are bigger, ...
Posted by Deposeni on Sun, 27 Oct 2019 21:44:42 -0700
Make way upstairs, RoarCTF2019 Writeup
The author's original Qftm release: https://xz.aliyun.com/t/6576
Misc
Sign in problem
RoarCTF {check in!!! }
Six years of gold
There is a section of base64 at the end of the file, which can be seen as a compressed package when decoded to hexadecimal.
Password required to open compressed pack ...
Posted by cbesh2 on Sat, 26 Oct 2019 21:44:16 -0700
Python 3 reads mail content
Preface
Mail collection mainly includes pop (mainly used for remote management of mail on the server on the client) and IMAP (interactive mail access protocol). The relevant modules poplib and imaplib are provided in the corresponding Python. Although POP3 is widely supported, it is outdated, and the implementation of POP3 servers varies grea ...
Posted by dr4296 on Mon, 14 Oct 2019 12:46:10 -0700
File Processor-sed
sed workflow
Sed is an online, non-interactive editor that processes one line of content at a time. When processing, the currently processed rows are stored in a temporary buffer, called pattern space, and then the contents of the buffer are processed with sed command. After processing, the contents of the buffer are sent to the screen. Then ...
Posted by risi on Fri, 11 Oct 2019 03:13:46 -0700
java Foundation (23): Byte Stream, Character Stream
1. Byte stream
In the previous learning process, we have been operating files or folders, and did not write any data to the file. Now we're going to start writing data to a file, or reading data from a file.
1.1 byte output stream
OutputStream, an abstract class, is a superclass representing all classes of the output byte stream. The data ...
Posted by sheen4him on Fri, 11 Oct 2019 02:46:51 -0700
HDU 6629 (Hangzhou Electricity Fifth Field 1007, 2019) Permutation 2 (Extended kmp)
Question: Seek strings s[i... Len_1] and s[0... Comparisons of len_1]i>0 for the longest common prefix length
Solution: At that time, the AC automaton was directly used and then the fail pointer was used. As a result, the input character was ASCII, which was super memory. The sum of the longest c ...
Posted by alexanae on Wed, 09 Oct 2019 12:16:58 -0700
Custom sharing laraverl framework, separation of the front and back the wrong signature invalid 63002
<?phpclass JSSDK {private $appId;private $appSecret;private $url; // If the front and back end are separated, it is an interface request, you must customize the current page address to send it, otherwise the signature error 20190905public function __construct($appId, $appSecret,$url) {$this->appId = $appId;$this->appSecret = $appSecre ...
Posted by piet123 on Sat, 05 Oct 2019 17:07:19 -0700
Python - Send mail
SMTP Send Mail
Send mail
import smtplib
from email.mime.text import MIMEText
from email.header import Header
# Configuring Mailbox Server
smtpserver = "smtp.163.com"
# User/password
user = "admin@163.com"
password = "123456"
# Sender mailbox
sender = "admin@163.com"
# Receiver mailbox
receiver = ...
Posted by ESCForums.com on Sat, 05 Oct 2019 03:39:22 -0700