What is the point?

I like to run, walk, cycle. I also sometimes write software. Pipe to null is somewhere to dump my thoughts.

Book - The Seven Habits of Highly Effective People

by Stephen R. Covey

NOTE: At time of writing I have only read a small amount of the book, I intend to write a little as I read each section, really for my own reference. A colleague, who I respect and who has become a friend, recommended this book – not directly to me but I was heard him recommend it. Shortly after, I saw someone reading it on a flight to Copenhagen. I have a natural aversion to anything “aspirational” within the realm of business and self improvement. [Read More]

Book - Surrounded by Psychopaths, Thomas Erikson

My thoughts on this book. Overview Contains a simplified pop-psyche style personality profile where people are divided into “colours”, which actually could be quite useful for dealing with different types of people. It does acknowledge that the types are not a perfect description and also most people do not fit into one category. Interesting description of psychopaths and how we can mistake different personalities as being psychopathic. Talks about manipulation techniques people use and how to combat them, pointing out that it’s not just psychopaths who use these techniques, but psychopaths will likely be skilled at many of these techniques. [Read More]

Implement "From" Trait

Learning Rust

Implement “From” trait… Basic implementation of From trait to create “MyStruct” from type: i32 struct MyStruct{ word: String, number: i32 } impl From<i32> for MyStruct{ fn from(num: i32) -> MyStruct { MyStruct { word: "notset".to_string(), number: num } } } fn main() { let m = MyStruct::from(25); let n: MyStruct = 30.into(); println!("Struct m: word={}, number={}.", m.word, m.number); println!("Struct n: word={}, number={}.", n.word, n.number); } Notice that I can run 30. [Read More]

Rust "Classes" -> struct + impl

Learning Rust

Q: How do I write a class in Rust? A: Use a struct and “impl” some functions. struct MyStruct{ word: String, number: i32 } impl MyStruct{ pub fn new(s: String, i: i32) -> MyStruct { return MyStruct{ word: s, number: i } } pub fn set_word(&mut self, w: String) { self.word = w; } pub fn set_number(&mut self, n: i32) { self.number = n; } pub fn word(&self) -> String { self. [Read More]

Rust Traits

Learning Rust

Rust Traits, what are they? This concept is interesting and I wanted to write it down as I learned it. I’ve just started learing Rust and will have the terminology wrong! Traits can be added to types to allow them to do something, as if these were classes in C++ that already had methods implemented. In this scenario, I’m imagining that it’s very importand to check if a number is divisible by seven, and if it actually is the number seven. [Read More]

Walker's Haute Route, failed

Started 21 June 2024

On 21st June 2024, I set off hoping to run/hike the “Walkers Haute Route”. It didn’t exactly go to plan. Days one and two went without any real issue, but I was finding snow at around 2500m. The route crosses the grain of the Swiss mountains, with 7 passes close to 3000m and a significant time above 2500m. There are no real alternatives as the valley routes would be huge detours. [Read More]