SMTP realizes mail sending

Mailbox configuration Open the settings and enable the IMAP/SMTP service Enable POP3/SMTP service Get the authorization code and save it Introduce Pom dependencies <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> </dependency> Supported servers POP3 server address: (port: 110) SMTP server address: (port: 25) sinaVIP: POP3 server: (port: 110) SMTP server: (port: 25) […]

NotificationSend a notification

<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”” xmlns:app=”” xmlns:tools=”” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical” tools:context=”.MainActivity”> <Button android:text=”General notification” android:onClick=”normal” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”group notification” android:onClick=”groupNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”progress bar notification” android:onClick=”progressNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> <Button android:text=”custom notification” android:onClick=”divNotify” android:layout_width=”match_parent” android:layout_height=”wrap_content”/> </LinearLayout> package com.bawei.day3_notificationdemo; import; import; import; import; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.view.KeyEvent; […] regularly sends emails and udp watches

Imports Quartz Imports System.Net.Mail Imports System.Text.RegularExpressions ”’ <summary> ”’ material information automatic synchronization task ”'</summary> <DisallowConcurrentExecution> Public Class Cls_DsxxtsMESJob Implements IJob Private JobName As String = “Scheduled message push” Private Shadows smtpClient As New SmtpClient() Public Sub Execute(context As IJobExecutionContext) Implements IJob. Execute Dim strSql As String = String. Empty Dim strBody As String = […]

About using C# to call Win32API, grab third-party handles, simulate mouse clicks, and send keyboard events

Because the recent work needs to be used, I sorted out the basic knowledge The following examples, Win32 and self-encapsulated libraries are all in the project file Link: Extraction code: 6666 –Sharing from Baidu Netdisk Super Member V1 1 Install handle grabber SPY++ The tool I use is SPY++ If you don’t have this […]

About sending local notifications before IOS10

Reference link: IOS4-IOS9 uses UILocalNotification to send local notifications, and IOS10 uses UNNotification. Difference: UILocalNotification and UNNotification are classes used to send local notifications and remote notifications in iOS, and there are some differences and different characteristics between them. Variations supported by iOS version UILocalNotification was introduced in iOS 4 and remained until iOS […]

[LitCTF 2023] Click on the Flag to send it! (cookie forgery)

Just enter a name try admin But we found something in the cookie session: “eyJuYW1lIjoiYWRtaW4ifQ.ZGs1vw.7ikpuOhUtXxyB2UV-FH7UGIZkaE” Think of session forgery Let me talk about the role of session first: Since the http protocol is a stateless protocol, that is to say, the first request and the second request of the same user are completely irrelevant, but […]

STM32H723ZGT6 CAN1 CAN2 send and receive

Note: Discuss each other, if there is any reference, please do not use it for profit. 1. Connected to the document, this document only focuses on CAN 2. Stm32CubeMX configuration 2. Code Note: Discuss each other, if there is any reference, please do not use it for profit. /* Includes ——————————————– ———————-*/ #include “fdcan.h” /* […]

ZYNQ sdk lwip configures UDP multicast to send and receive data

1, vivado build Check the configuration of the PS network port or PL network port, and import the SDK, create a new lwip routine library, and it can be pinged. 2. SDK environment configuration Create a new lwip echo server routine, add system.mss->modify BSP’s Settings in the bsp environment lwip202->iggmp_options->true 3, main.c #include <stdio.h> #include […]

RocketMQ message sending, message class

1. Message sending 1.1 Single producer and single consumer message sending (OneToOne) 1. Create a new maven project reccketmqtest 2. Import RocketMQ client coordinates <dependency> <groupId>org.apache.rocketmq</groupId> <artifactId>rocketmq-client</artifactId> <version>4.8.0</version> </dependency> 3. Producer package com.liming.base; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.apache.rocketmq.client.producer.SendResult; import org.apache.rocketmq.common.message.Message; /** * @author dawn * @version 1.0 * producer * @date 2023/5/21 9:08 */ public class […]

RocketMQ message sending

Sample code for message sending: public static void main(String[] args) throws MQClientException, InterruptedException { DefaultMQProducer producer = new DefaultMQProducer(“please_rename_unique_group_name”); producer.setNamesrvAddr(“”); //naseServer address producer.start(); for (int i = 0; i < 1000; i ++ ) { try { //information Message msg = new Message(“TopicTest” , “TagA”, (“Hello RocketMQ” + i).getBytes(RemotingHelper.DEFAULT_CHARSET) /* Message body */ ); //message […]