Author: Moazzam

  • Opening Range Breakout

    This trade is executed right at market open. We wait for the 9:30am candle to close and buy it’s high. For this to have a high change of working out the stock has to be in play and relative volume more than 2 Entry Stop Loss Reasons2sell

  • G-Man Pullback

    G-Man Pullback

    This will be (hopefully) the first of many strategy posts I write. My primary motivation for this is to keep track of strategies I know and/or thinking of executing trades on. The reason I call this the G-Man pullback is because I read it in “The Playbook” and GMan (Gilbert Mendez) teaches this strategy to…

  • My experience with PHP/Zend certification

    This post has been sitting in my drafts since 2013. I figured it was time to finish and publish it. I passed PHP Certification exam. It felt nice. I had read about how people failed more than once so it was cool that I passed it on my first try. Registering for the test I’m…

  • Oaths in Islam – Part 2

    Since I posted an article on “Oaths in Islam”, I have gotten quite a few questions from readers (most of which I have not published) asking me to clarify if an oath they took is valid or something else related to oaths they took. I figured I would write another article providing examples to help…

  • 3D Printing

    The future is here – with 3D printing. If anyone has seen Star Trek, they will know about the synthesizer used in the show to make (synthesize) anything from coffee to costumes to anything else. This is how I felt when I first got my 3D printer and started making (printing) things with it. You…

  • Why Golang/Go is so awesome

    I have been working with Go for quite some time now and know more about it. My initial thoughts about it were accurate, I think with some variations. Go really can do almost everything. It can be run like any interpreted language for development and compiled for production This is something I love about Go…

  • Golang: Restart web server on file change

    A great feature of scripting languages like PHP, Python and Ruby is that you don’t need to re-compile the app or restart a web server every time you change something. With Go, you need to restart the web server for your changes to take affect. This can be a pretty daunting task. We can, however,…

  • Golang: Get the function caller’s name

    Problem Consider this code: package main import “fmt” func foo() { // foo() wants to know who called it fmt.Println(“HI”) } func main() { foo() } In the function foo, we want to get the name of the function (and preferably file name and number ) that called it. Solution We can get this information…

  • Golang: Connect to Postgres and selecting data from a table

    You will need to get the Postgres driver first. In the terminal type: go get github.com/lib/pq Connecting to Postgres package main import ( _ “github.com/lib/pq” “database/sql” “fmt” ) func main() { // Connect to the DB, panic if failed db, err := sql.Open(“postgres”, “postgres://user:password@localhost/dbName?sslmode=disable”) if err != nil { fmt.Println(`Could not connect to db`) panic(err)…

  • Earn more by learning Go!

    According to this article a friend forwarded to me, software developers who learn Go, Python or Scala (along with tech like Apache Spark) have found it easier to find jobs with better salaries. Learning Scala caused the highest boost and in the second place was Go. Learning python is a bit subjective in terms of…