Minecraft server set up in Ubuntu and mount Mod

Recently roommate Ubuntu On the run MC,I helped take a moment,However, due to his own packageTo turn over,It may not be a specific process running GM,But the overall environment configuration is quite common。

Prepare the environment

MC is running in the first java Environment,To make it run more smoothly,We still have to be installed on UbuntuOracleThe java environment:

verification

Installed after,You can use this command to verify your j[……]

Click link to continue reading...

Python strings and arrays of bytes

When using Python to do network programming will inevitably encounter convert a string to the byte stream,Here we record the following commonly used methods:

First byte array to a string,That is str:

Then the string to a byte array:

Either the above two methods are possible。[……]

Click link to continue reading...

Use fail2ban Bind9 be used to prevent DNS amplification attacks

Foreword

Ali cloud I built for personal use dnsmasq server,DNS is used to make pollution-free,The recent disclosure of the IP,Sure enough, it was attacked - is actually being used DNS amplification attacks。

Since dnsmasq itself is not designed to provide external DNS service,So it is for security profile is not a lot (no!),But it's very easy to configure Resolution Policy (DNS resolution, such as Chinese white list),So I had the basis of,Plus a front-end to do security Bind9。[……]

Click link to continue reading...

Mac version of Thunder quietly collect user BT seeds

Just today,Small waiting six months for Mac version of Thunder finally updated again,A new version - although no new features,But finally dragged fixes a bug when running around the window。

but,Also encountered the problem can not be downloaded offline。With the help of the test while debugging,I found some other things:I accordance with the requirementsThunderComes debug tool to generate statistical information archive altogether 70M large!

At all events,So many log files - Well,Apple had a year Mail.app Log bug experience for me G[……]

Click link to continue reading...

Let TextWrangler key to optimize XML file format

TextWrangler Mac is the indispensable multi-purpose text editor,Excellent built-in code highlighting,Also supports regular expression searches ...... summary,For developers,It is necessary manpower。

but,TextWrangler for XML Not so smart - and often long after the opening line!

In short,The solution is simple,We can write a script to TextWrangler。

First of all

Open a new blank document TextWrangler ([……]

Click link to continue reading...

Optimization of WordPress comment reply notifications

in most cases,We are accustomed to using Wordpress comes with the comment system,Although it's not intended to make people - after all,,Third-party commenting system it is difficult to accept。

Relatively good third party to say it is disgusting;The foreign system several good reviews and very inconvenient to use China,In general,Wordpress comment system still comes with the best。

Then,Speaking of this commenting system that comes with Wordpress,E-mail notification may be its most important characteristic of the。Although externally Wordpress does not[……]

Click link to continue reading...

Strongly typed programming language、Weakly typed

in most cases,People use the programming language is implicitly convert data types to determine whether a languageWeakly typedLanguage,For example, C。

In fact,For in addition to the more classic foreign language,Most other common languages ​​Strong、Weak type could not tell - or,yesInconsistentof。So it will always be someone to argue。If we take as the basis for the concept of opening,Then the conflicts will appear:

Pascal had planned such as a strongly typed language,But on the whole gave the type of system introduces a vulnerability,So technically speaking it is weakly typed。[……]

Click link to continue reading...

Let go Homebrew Update Agent

Before we said,As the domestic network was further bad,use brew AlsoReplace domestic universities mirror source,But this method palliatives,An update is faster,But still the same download。

The result was the most updates need to download the source code and compiled locally,Luck almost altogether also download the source code is not down,Cancel every time and try again,Constantly repeated manual。

- If we can go proxy terminal command like。

Yes,You might think of what such proxychains-ng Such software,In fact, do not,Because b[……]

Click link to continue reading...

A complete picture - keeping a complete program

Write a program is never an easy thing,You often feel very satisfied with the work,Users say your program is simply a semi-finished products。You scratching,But always wondered。

Long before I was in college,I was an art student,Studied painting in Beijing。Time,Every day a lot of painting paintings,There have someone like gouache color sketch,Every time I drew strong three hours do not go,To sit and rest play phone。The teacher will come for:Only three hours,You have not yet unfinished,Continue to draw。

I did not understand the,Very puzzled,Obviously the others have,Why can not I simply said[……]

Click link to continue reading...