Compiler Explorer – An online tool to test compilers

The compiler explorer is a very handy tool for testing compiler behaviors and the generated assembly code online. It was created by Matt Godbolt (and others).

An instance of the compiler explorer is hosted here https://godbolt.org/.

You can also host it on your own if you wish. Grab its sources from GitHub.

You might also like:

One theory about why numbers are written the way they are

Many years ago, I was reading in Thiaoouba Prophecy book by Michael Desmarquet. A very nice book.

Anyway, in that book, there was a mention about numbers and why they are written the way they are. The alien in the book explains that the numbers are written like this because of the number of angles each number have:

You might also like:

Online Chatting and The 4 Magic Questions

Back in the days, when I was learning PUA techniques from pickup artists, I ran into “The Magic Questions pattern” by Jack Ellis (the author of “Forbidden Patterns”). The purpose of these questions is to have a nice and fun topic to talk to women whom you just approached in a public setting. Women like it when men talk about them, compliment them or do anything thing that make them feel special.

The Magic Questions

Here are the magic questions, ask them in any order:

  1. Visualize yourself in a white room. You’re in a bed and everything is white. How do you feel?
  2. What is your favorite animal? What qualities do you see it as having?
  3. What is your favorite color? How does it make you feel when you think about it?
  4. Imagine yourself on a beach. Nobody is around and the ocean is right in front of you. What do you do?

Take mental note of the answers because you will have to interpret the answers back to them.

What the answers mean

After you finish asking the questions and taking notes, it is time to interpret the answers back to the interviewee. The meaning of each question is as follows:

  1. This is how they view death and dying
  2. This is how their friends view them
  3. This is how they view themselves
  4. This is how they view sex

Putting it into practice

Let me give you an example. You meet a random girl that you want to approach and talk to. You can use the four magic questions as a nice conversation opener: Continue reading “Online Chatting and The 4 Magic Questions”

The keyboard with the “damn it!” key!

That’s a keyboard I saw in my colleague’s office. Note the white “Damn it” key. I can imagine when all fails and you cannot find the bug / give up, you just press this magic button! 🙂


You might also like:

The 8 methods of teaching – By Sri Aurobindo

biography-of-sri-aurobindo-method-of-teaching

Sri Aurobindo was an Indian nationalist, philosopher, yogi, guru, and poet. Aurobindo studied for the Indian Civil Service at King’s College, Cambridge, England. After returning to India he took up various civil service works under the maharaja of the princely state of Baroda and began to involve himself in politics. He was imprisoned by the British for writing articles against British rule in India. He was released when no evidence was provided. During his stay in the jail he had mystical and spiritual experiences, after which he moved to Pondicherry, leaving politics for spiritual work. — Wikipedia

In this article, I am going to discuss my thoughts about his teaching methods and how much they resonate with my own teaching methods. Continue reading “The 8 methods of teaching – By Sri Aurobindo”

Batchography: Embedding an executable file in a Batch script

batchography-good-resIn this blog post, I am going to share with you a recipe from the Batchography book that illustrates and explains in details how to embed executable files in the Batch file script and execute them after they are dropped.

This technique does not rely on using a polyglot Batch file where its first part is actually a Batch script and the other part is a VBS or JScript script. If you want to learn more about how to write polyglot Batch scripts, please refer to Chapter 4 in the Batchography book.

flower separator

Get the book from Amazon: the print editionbtn-buy-on-amazonor the e-book editionbtn-buy-on-amazon

flower separator

Continue reading “Batchography: Embedding an executable file in a Batch script”

Amazon.com – Freelance mode

Amazon.com has always been my favorite online bookstore, nonetheless shipment cost was always a big problem for me since all my orders are delivered by international shipment.

What would be nice to see is a new mode in Amazon.com called “Freelance mode” in that mode you can buy single items or more and ship them almost anywhere in the world **for free**.

By slightly and intelligently increasing the price of each item when in “Freelance mode”, Amazon.com would be able to cover the shipment cost of the items.

Amazon.com can also improve its shopping cart system and lessen pages reloads when one deletes an item or moves an item to the shopping list.

And if “Freelance mode” is ever implemented, a nice feature would be to add an option so that Amazon store, intelligently, sends you the next book (you queued in your shopping list) on time just before you finish reading the current book (it does that by teaching it how fast you read, and how much time the books usually take to arrive to your destination).

Of course, in the advancement of electronic books it is useless to introduce such modes.