Replacing JSON with MsgPack protocol in Phoenix WebSocket
Why MsgPack?
MsgPack is lighter and less traffic than JSON
MsgPack's own date time type (always UTC)
MsgPack comes with binary data type (it's convenient to transfer a picture or something)
MsgPack supports custom types
The standards of MsgPack are open source and well documented
Phoenix.Socket.Serializer module
In the Phoenix framework, ther ...
Posted by shmoo525 on Mon, 27 Apr 2020 04:11:12 -0700
Linux server memory monitoring - check every hour & over send mail & restart the most expensive Java program
Introduction and advantages
Using this script, you can judge whether the system memory usage exceeds the set percentage
It can restart the program when the warning value is exceeded
It can record the restart process and send the specific LOG mail to the designated addressee
Crontab schedule can be set to run every other period of time
prepara ...
Posted by iamthebugman on Mon, 27 Apr 2020 02:17:59 -0700
Open source distributed task scheduling system ScheduleMaster-v2.0 under. NET Core
It's almost 4 months since the first public introduction of this project in January, during which some repairs have been made and there is no major change in the whole. 2.0 is the first major version update since its release. It brings many new features and fixes some known bug s. Thank you for your comments on blogs, issues and QQ groups, as w ...
Posted by srdva59 on Sun, 26 Apr 2020 19:06:26 -0700
Android development template code (1) -- simply open the gallery and select photos
First, post the sample code
//Check permissions
public void checkPermission() {
if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
...
Posted by perfume on Sun, 26 Apr 2020 08:15:21 -0700
Design of CIC filter based on FPGA
Theory and design of single-stage CIC filter
Project brief
Multi rate signal processing
extract
Interpolation
Fractional multiple extraction and interpolation
CIC filter
Theoretical derivation of CIC filter
Single stage CICI filter
Multistage CICI filter
FPGA implementation of CIC filter
CIC de ...
Posted by highjo on Sat, 25 Apr 2020 19:56:40 -0700
Powershell EWS API delete mixed deployment Office365 and Exchange messages
Environment requirements: Powershell 5.0, plus domain computer
Install EWS API to default locationhttps://www.microsoft.com/en-us/download/details.aspx?id=42951
For permission configuration, add the ApplicationImpersonation role in the Exchange management center of Office365 and the Exchange management center and administrator role, and add ...
Posted by darkfunkel on Sat, 25 Apr 2020 08:09:23 -0700
C ා basic knowledge series - 13 introduction to common class library
0. Preface
One foreword for each article, introduce the content of this article. The previous contents are all for the introduction of some knowledge points. This article introduces some commonly used classes and namespaces in actual development. This is a series. There are about three or four episodes. Well, that's it.
1. System namespace
Syst ...
Posted by danger2oo6 on Fri, 24 Apr 2020 11:05:32 -0700
Note 6: array of compound types
What is an array
An array is an ordered sequence of elements, a collection used to store data of the same type.
Definition of array
1. Declaration formula (one dimension)
1. Static array
typeName arrayName[arraySize];
2. Dynamic array
typeName* arrayName = new typeName[arraySize];
2. Explanation of array terms
Array name
There will be a set n ...
Posted by SlimSlyk on Fri, 24 Apr 2020 09:41:27 -0700
Summary -- several methods of generating unique id in JS
Occasionally in development, when it is necessary to generate a unique id, such as adding, deleting or modifying any item of the array many times, it is necessary to add a unique identifier to each item to distinguish. The following are various methods of generating unique identification collected from the network, which are summarized here for ...
Posted by fesan on Fri, 24 Apr 2020 07:13:11 -0700
The java thread pool ThreadPoolExecutor class uses
In the Alibaba java Development Manual, it is pointed out that thread resources must be provided through thread pools, which do not allow the creation of threads displayed by the application itself. On the one hand, the creation of threads is more standardized and the number of open threads can be reasonably controlled. On the other hand, th ...
Posted by pesoto74 on Thu, 23 Apr 2020 18:10:16 -0700