Upgrading Android on a rooted Nexus 4 without wiping

Nexus Root Toolkit

If you’re running Android 5 Lollipop and you have rooted it you may fail to update whenever an OTA update is available.

Nexus Root Toolkit

The Nexus Root Toolkit is the best tool you will ever need for your Nexus device.

This great piece of software will simplify anything you want to do such as:

  • Flashing a bootloader or a ROM;
  • Making a backup of your device;
  • Fixing bootloop and bricks;
  • Make tea, pour and stir it.

Flashing the updated stock ROM

In my case I’m running the stock ROM of Android 5 Lollipop since I’m mad at Cancérigènemod Cyanogenmod for failing at making my phone work as a phone.

disclaimer: I’m not responsible for any of your actions in case something goes wrong.

To update without wiping or resetting the device to factory settings you can follow these easy steps:

  • Enable USB debugging in your dev settings;
  • Connect your device to your computer;
  • In the Nexus Root Toolkit you must select “Flash Stock + Unroot” with “Device is on/Normal” selected;
  • Select “Automatically download”;
  • Tick “No wipe”;
  • Tick “Force Flash”;
  • UnTick “Post-Flash Factory”;
  • Then follow the instructions.

Source: http://redd.it/37dxt3

Can’t attach files in GMail with Firefox

UPDATE 2020/03/04: This issue is no longer relevant, ignore this post.

So recently I needed to attach several files in mails to send, while Google Drive is great for large files I felt that I shouldn’t have to use Google Drive for a few PDFs.

  • In Firefox type about:config in the address bar;
  • Click the button stating you’ll be careful;
  • Search for network.http.spdy.enabled and toggle it to false;
  • Try attaching files in GMail.

There a several reasons I prefer Firefox over Google Chrome right now so this fix was needed.

Show Me Your Gists

UPDATE 2021/03/04: After reviewing some posts (like this one) I’ve come to the conclusion that this is a pretty dumb idea, don’t use it. Instead use Enlighter.

Update 17/02/2016: Looks like I had to change some CSS again.

Update 12/05/2015: It seems that some themes don’t work well with this plugin. The I recommend the default Twenty Eleven WordPress theme if you need to use this plugin. If you have a fix for other themes don’t hesitate to send a pull request.

As a hot fix you can add the following CSS rule:

.gist .blob-num {
	width: 35px !important;
}

Show Me Your Gists is a simple plugin I wrote to embed Gists links as widgets.

Imagine you want to directly embed this link: https://gist.github.com/SenpaiSilver/0f775a6dac4807c4e97a

Imagine that you can do it just like you embed a YouTube video by pasting a link on a line by itself. Now you can and this is what it looks like.

https://gist.github.com/SenpaiSilver/0f775a6dac4807c4e97a

SMYG is all about easy embedding without even needing to copy and paste the embed link and going out of the visual view to write some HTML.

Brackets

UPDATE 2021/03/04: After reviewing some posts (like this one) I’ve come to the conclusion that Adobe Brackets was ahead of its time, now I’m a VSCode guy.

Brackets is a modern editor that is really great for web design as it updates you page in a live view without having to Alt-Tab out of your editor.

As for any editor it is possible to write any languages in it and even enhance the experience with plug-ins. All the plug-ins can be downloaded in the Extension Manager built-in.

Continue reading Brackets

Python web development with Flask

flask

Flask is a microframework for Python for web development. It’s BSD licensed and is really easy to use for a personnal web project or even for scalable apps for Heroku.
It requires at least Python 3.3, so if you’re running Debian 7 “wheezy” at the time of writing then you might run into problems.

To setup Flask run this command as root:

# pip install Flask

If you’re missing pip and you are on Windows you should get the lastest version that includes pip.
Then to test if everything went well, you will need to run a script such as this one:

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return ("Hello World!")

if (__name__ == "__main__"):
    app.run()

Run it as a simple Python script and you should be greeted with a message saying that it’s running:

* Running on http://localhost:5000/

Now you can start your first webapp by reading the documentation.
If you’re serving web pages with Apache 2, you might want to read this.

No gamepad in Evoland ?

Evoland 2014-05-13 15-10-51-29

Evoland is a journey through the history of action/adventure gaming. You unlock technologies, gameplay systems and graphics upgrade as you progress through the game.

For some people the game won’t detect gamepads. I’m running Windows 8.1 and this is how I resolved my issue:

  • Navigate to Evoland’s folder: \Steam\steamapps\common\Evoland\;
  • Rename dinput8.dll as _dinput8.dll;
  • Launch pad.exe to see if your gamepad is detected;
  • Enjoy the game.