| #!/usr/bin/env -S rust-script -c | |
| //! ```cargo | |
| //! [dependencies] | |
| //! jiff = "0.1" | |
| //! ``` | |
| // | |
| // Links for next releases: | |
| // - https://releases.rs/ | |
| // - https://github.com/rust-lang/rust/milestones | |
| // - https://doc.rust-lang.org/edition-guide/rust-2024/index.html |
Because of this bug the libnet1 dpkg installation fails.
$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb
dpkg-deb: error: archive '/var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/libnet1_1.1.6+dfsg-3.1build2_amd64.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.
--
What happened after 2010?
Disclaimer: I have no professional education in Compulational Fluid Dynamics, these are various notes on what I found/learned when trying to learn a bit on the topic. Some of the notes lack sources as I wrote them up later often just remembering some StackExchange answer. Some things I might have misinterpreted.
| use std::str; | |
| fn main() { | |
| // -- FROM: vec of chars -- | |
| let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
| // to String | |
| let string1: String = src1.iter().collect::<String>(); | |
| // to str | |
| let str1: &str = &src1.iter().collect::<String>(); | |
| // to vec of byte |
In Path to Rust Audio I briefly mentioned that the repos are in a variety of states of maintenance - here I'll give my own impression of the current state of each of the repositories.
ogg and lewton - active I believe both were started by est31, both seem to be actively used and worked on.
coreaudio-sys and coreaudio-rs - active I started these to add audio I/O support to CPAL a few years ago. I have since moved to Linux as my daily machine and don't often get the chance to test for them anymore, however Rhuagh has kindly taken over testing and reviews. I still try to review code when I can.
deepspeech-rs - seems active
| trait Field { | |
| type ValueType; | |
| } | |
| use std::marker::PhantomData as Marker; | |
| struct X<T>(Marker<T>); | |
| struct Y<T>(Marker<T>); | |
| struct Z<T>(Marker<T>); |
| /* | |
| XoroshiroNOT PRELIMINARY BETA RELEASE v0.10 (for testing only, as defects unknown to the author may exist, thus all below claims must be independently verified). | |
| XoroshiroNOT Pseudo-Random Number Generator, © Christopher Rutz, All Rights Reserved. Contact information below. | |
| XoroshiroNOT is an extrapolation of xoroshiro++, by S. Vigna and D. Blackman. | |
| XoroshiroNOT may also be referred to as Xoroshiro++- or Xoroshiroppm. | |
| XoroshiroNOT purports to improve upon their work by over-provisioning the underlying xoroshiro state by 50% and flipping the rotate/shift direction, thus providing these many features and characteristics: | |
| 1. Near-ideal pseudo randomness within a given period that is (perhaps uniquely) explicitly defined by, but greater than that inherent in, the underlying (xoroshiro) base generator randomness and period: | |
| A. Randomness period = wordsize^2 - 1, which is easily testable with 8-bit byte and 16-bit word size versions. | |
| B. 16-bit word, 32-bit dword and 64-bit qword versions pass TestU01 BigCr |
| If your thinkpad T460 is somehow stuck in a reboot cycle | |
| * right after a storm | |
| * even though your SSD / peripherals work fine on other laptops | |
| * even after trying everything forums & youtube has to offer | |
| * even after buying a non functional motherboard from Moldavia from [this guy](https://www.ebay.com/usr/goodwinflat) | |
| * even after expecting that previous idea would work somehow | |
| well then try disabling anything you can in your BIOS. | |
| If you can't even get to BIOS you have bigger issues. Maybe power? Probably motherboard. | |
| Turns out, for me, disabling the Intel Trusted execution things (TPM, TXT, ...) solved it! |