Born in 1993, I have been learning programming languages since 2008 and have expertise in developing websites, web services, specialized tools and Android applications. Moreover, I have become a heavy GNU/Linux user these days. In 2014, I established magiclen.org to share my knowledge and experience, and have written more than a thousand of articles related to various subjects.
Overall GPA is 3.89 / 4.00.
19080039
321160300000030
111140600000
120-021063
120-173814
E476009
173-103670
EntityTag
structure and functions to deal with the ETag header field of HTTP.concat!
macro in std
is useful to create a static string slice (&'static str
) from literals, it cannot set a separator for those. This crate therefore provides another concat!
macro to deal with that situation.Command
in order to execute programs more easily.wpautop
in Wordpress. It uses a group of regex replaces used to identify text formatted with newlines and replace double line-breaks with HTML paragraph tags.proxy_cache_purge
or fastcgi_cache_purge
for Nginx.String
in order to do in-place trimming.Debug
trait manually.RcU8Reader
, RcRefCellU8Reader
, ArcU8Reader
and ArcMutexU8Reader
structures to wrap Rc<T>
, Rc<RefCell<T>>
, Arc<T>
and Arc<Mutex<T>>
respectively where T is implemented AsRef<u8>
in order to let them have the Read
trait.tera_resources_initialize!
and tera_response!
to statically include Tera files from your Rust project and make them be the HTTP response sources quickly.<style>
, <script>
elements, and ignores the minification of <pre>
, <code>
and <textarea>
elements.This crate provides lazy_static_include_bytes
and lazy_static_include_str
macros to replace include_bytes
and include_str
macros.
lazy_static_include_bytes
and lazy_static_include_str
macros include data from files into the compiled executable binary file only when you are using the release
profile. Be careful when you distribute your program.
Path
and PathBuf
in order to get an absolute path and remove the containing dots.Path
and PathBuf
in order to parse the path which contains dots.accept-language
header.if-none-match
header.handlebars_resources_initialize!
and handlebars_response!
to statically include HBS (Handlebars) files from your Rust project and make them be the HTTP response sources quickly.static_resources_initialize!
and static_response!
to statically include files from your Rust project and make them be the HTTP response sources quickly.JSONResponse
and JSONResponseWithoutData
structs to response JSON format data with an additional code integer value.MagicLen (magiclen.org) is a series of websites built with Rust. It has a wide variety of original articles on its main site including software (especially open-source software), Internet, websites, operating systems, programming languages, travels, expedition, humanistic geography, science, food, entertainment, art, literature, natural languages, military and puzzles.
The sub-sites list:
In the wilderness of ice and snow, our lord commiserate this land, and he shines a ray of limelight. Like magic, the light gives this ground life.
There are four small snowmen, which wear hats of different color. They sing their own Christmas song to fight for lord's love and warm. That light is our lord's kindness of this world. That is life, and is future, too.
More importantly, that is the energy for eternal life. To live forever, snowmen will fight recklessly to grab the limelight, even push other snowman down.
Will they become the snowman that lord gives a true life to? It will up to you!