Programming, Day 1

Lost my May posts. So I don’t know how many days I’ve lost. But it’s been atleast three days of hectic work at building the blog. So I’ll count them as day 1 and start over again!

June 3, 2018 · Mario Jason Braganza

First Post on the new Static Blog

Starting anew with Nikola. After publishing this, have to figure a way to switch to Markdown

May 30, 2018 · Mario Jason Braganza

Numbers in Python

Or atleast my understanding of them.1 In Python, numbers are not really a single object type, but a category of similar types.2 They include Integer and Floating point objects Complex numbers Decimal: Fixed Precision Objects Fractions Sets Booleans Built-in functions (math, random) Post subject to revision as my understanding changes over time ↩︎ Lutz, Mark. Learning Python (5th Ed) ↩︎

May 23, 2018 · Mario Jason Braganza

MathJax on a Ghost Blog

*** Everything below is broken. Kept just for posterity *** Install this script into the footer in the Code Injection section <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-MML-AM_CHTML"> </script> (that should autoupdate MathJax versions or if it all breaks and goes to hell, get the latest install instructions here) If I’ve done this right, this little piece of LaTeX should give me the quadratic equation $$ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} $$ $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} $$ Et voila!

April 20, 2018 · Mario Jason Braganza

Booting CentOS into Graphical or Command Line Mode by default

Ok, now that I’ve installed CentOS, I decided to install X Windows. And like Rip Van Winkle, I learnt that a lot has changed in 20 years :) A windowing environment was easy to install … sudo yum groupinstall "Gnome Desktop" and the trusty old startx & gave me a Windowing Environment (which I have yet to explore) However, switching permanantly to graphics mode (or vice versa) wasn’t so easy. I wanted to set my command line as the default startup environment and so I went to look for the default runlevel. I coudn’t find it. That’s because they don’t exist anymore. No inittab of old, nothing. ...

March 13, 2018 · Mario Jason Braganza

Creating a bootable Linux USB installer disk from an ISO on the Mac

I got myself a new pc to learn Linux and do all my crazy experimenting on. What’d I use as my primary OS? Why CentOS, ofcourse. Two reasons … These are long term, slow stable releases, just the way I like my software to be. My last exposure to Linux was Red Hat Linux v5 & 6 way back when1. CentOS looks familiar enough to ease my apprehensions. First step on the way, was getting the OS installed on the machine. Slight hiccup though. I had the ISO and no optical drive! ...

March 11, 2018 · Mario Jason Braganza