How much will Pokemon Go cost you?

Screen Shot 2016-07-06 at 15.36.48.png

 

License

Creative Commons License

Pokemon(TM) is owned by Nintendo.

Some people really need a punch in the face by Marco Leong is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

This image is created under fair-use: Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.

So Pixelated!

So Pixelated! (Pokemon Pixelmon Meme)

Pokemon Pixelmon.png

License

Creative Commons License

Pokemon(TM) is owned by Nintendo.

Some people really need a punch in the face by Marco Leong is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

This image is created under fair-use: Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use.

PDF password recovery free

There is always this password, this pdf, being secured by you. In fact too secured that you can never remember the password. Instead of move the PDF to trash there some way to recover the password.

There are a bunch of PDF password recovery/cracking software charging a few to tens of dollars. While in the wonderful work of Unix/Linux you, this kind of tool is free. There is one that I found recently:

 

To install, on Ubuntu

sudo apt-get install pdfcrack

on OS X, install brew and:

brew install pdfcrack

You will be prompt to enter password to install the tool

To start the recovery, simply:

pdfcrack "/usr/jonsnow/Download/birthcert.pdf"

To save use control-C to exit the tool, the tool will attempt to save.

The recovery process may takes hours to days depends on the security setting of the PDF. You will be prompted with the recovered password in command prompt upon succeed.

 

Let me know if it saved your day 🙂

* Be sure you have the right to perform recovery, i.e. you own the file but forget the password. Any wrong doing will still be wrong doing, so don’t do it.

* For Windows users, make friend with unix/linux people. They are like dentists, scary but really helpful.

pdfcrack [Official link]

 

[Latex] Remove “Cited by” from bib

Problem:

Sometimes .bib generated contains useless contents which make their way to your references, see Figure 1. you cloud have 10 or 300 citations depend on the article that you are working on. Here how to clean it up in a few key strokes.

Before

before

Figure 1, some .bib generated include “cite by …”

 

 

Solution:

Make a copy of your .bib file. Get sublime -> use replace function -> enable regular express as shown in Figure 2. – > use regular express:

.* \{cited by.*

.* means to match anything, so this regular express match anything before an after “{cited by”.

Replace it with nothing.

  • You can search to see if the replacing is what you expected before actually hitting the replace button. See Figure 2.

 

Make good use of Sublime

regex

Figure 2, enable, use regular expression search in Sublime 2

 

Figure 3 shown the result. Just do the compilation normally and it is all cleanup.

After

after

Figure 3, cleaned up 🙂

 

Other thoughts

  • alternatively, a shell script can be written to do the something, but sublime works on Linux, OS X and Windows.
  • this trick can be used for other unwanted content in .bib or even for other type of file.
  • remember  to make a copy of the original file before you make the changes.

 

[Thoughts] We as moral human being, makes the best choice out of the limited power we have. The choice are still the best regardless of the outcome.

We as moral human being, makes the best choice out of the limited power we have. The choice are still the best regardless of the outcome.

The fact is, even we as normal people, cannot foresee the future. The worse thing is that we can’t even perceive all the present condition around us. We, however, need to make choices on a daily base. Within this limited options we have, we should make the best choice we could given the limited information we have. Life with constraints like this is to search of the best option so that we will still be happy along the journey. The choices made are always the best choice, regardless of the outcome.

Sol, Luna, Steorra

Moon

The sun was rising, shining through the vertical blinds.
Waking up from a deep sleep,
showered to flush away the sandman of sweet.
Dreamt about climbing mountain,
stars failing like grow dust and landed everywhere in the scene, entertaining the children.
Life is like a fairytale as our ancestors glazing the magic lights in the night skies,
composed beautiful bed time story, anticipated by innocent eyes.

Oh mine! Cooking a breakfast with an egg look just like the morning sol;
Rushing back to Stressville, that’s the place we go.
Lunar eclipse at evening! the moon shall show and vanish, just like blinking!
Darkness it comes, here it rains;
Doesn’t break my mood, as the imagination is stronger than what we understood.

 

by Marco Leong

[Frozen – IMDB]
[Egg – Marcello Barenghi]
[Lunar eclipse – Gizmodo]