Related Posts
Function callbacks in C
Ever since I started programming in Javascript, and doing asynchronous function calls, I’ve found myself to be addicted to passing functions as parameters. I do it a lot in python and php, it’s very easy to do this on all these dynamic typed languages. I never had this concept of passing functions as parameters, or […]
Create Base32 SHA1 hashes out of files in PHP 5
LimeWire and other Gnutella clients uniquely identify files by creating a SHA1 hash of the files. I thought that it might be useful to the gnutella network to have regular webservers sharing legal files. Usually regular Joe webmasters don’t have permissions to run java programs or have tcp ports open due to their webhosting contracts, […]
The difference between a Slice and an Array in Rust
In Rust, a slice is a reference to a contiguous section of a larger data structure, such as an array or a vector. It is represented using the syntax &[T], where T is the type of the elements in the slice. A slice does not own the data it refers to, it just provides a […]
