I came across an interesting stack overflow that took input from scanf(“%lf”), and stored it into a buffer.Due to precision, you can’t simply encode an arbitrary unsigned integer into a float through decimal representation. Reading the source code of scanf, I came across an alternative encoding known as hex float. This encoding appeared to be…
All posts in Uncategorized
Using Emac’s Cider with Docker
If running cider-connect-cljs returns the following error: It means the port is open, but nrepl is failing to respond. Ensure nREPL is listening on the right port and address. Where your project is running, do netstat -nl. If nrepl is bound to 127.0.0.1 in a docker container, update it to 0.0.0.0.
Business Types
Brain dump of how I think about businesses types. Some businesses package multiple types for their offering. Businesses not need to be complex, but only need to offer value. Content Aggregation – These businesses do not focus on creating new content, but rather collecting and aggregating. Examples include News websites, Social Media, Conferences,Blockbuster. Monetization comes…
A note to my past self about stock market investing
Below is not investing / financial advice and may not be accurate. Read JL Collin’s book on a Simple Path To Wealth. It decomplexes investing. Max out employee 401k contributions. It’s free money. Do not try and beat the market. Stick with index tracking securities (VT,VTI, VXUS,VOO,BND,BNDX). Put money into the market every month. Setup…
On Emacs
Over the last 20 years I’ve used many environments for programming and editing files (vim, Emacs, Eclipse, NetBeans, PHPStorm, Visual Studio, just to name some). While I will use the right tool for the right job, I’m partial to Emacs. Emacs is easy to extend – You can modify Emacs while it’s running, within Emacs.…