Install Archidroid v3.0.0 experimental ROM on the Galaxy S3 (GT-I9300)

XDA-forums original Archidroid thread for Samsung Galaxy S3 (GT-I9300): [ROM] [4.4.4] [CyanogenMod] [Linaro 4.9] [Excellent] [06/09/14] ArchiDroid V2.5.3

Currently the stable version is version 2.3.5, and I wanted to go with the 3.0.1 experimental version, and here’s how to do just that:

1. Go to the Archidroid’s github repository: i9300-cm-experimental

2. And download the repository zip: direct download zip of i9300-cm-experimental

3. After the download is finished, unzip the archive.

4. Download 7zip from here: 7zip.org

5. After you’ve extracted the i9300-cm-experimental zip archive, go into the directory, select everything (Ctrl+A shortcut) and right click and select 7zip > Add to archive… and select Compression Level: Fastest and the Compression method: Deflate and click ok. Continue reading

Delete a Github forked repository

Navigate to the repository you want to delete.

In the repository action bar, click Settings.

repo-actions-settings

Under Danger Zone, click Delete this repository.

repo-delete

Read the warnings.

To verify that you’re deleting the correct repository, type the name of the repository you want to delete.

repo-delete-confirmation

Click I understand the consequences, delete this repository.

BMI-Calories.com – a free heath and fitness calculator index

Global Average BMI value for both men and women

Global Average BMI value for both men and women

BMI Calories  is a small index off free health and fitness calculators mainly designed to be universally applicable for worldwide usage (each one has a metric system and a standard US measuring system).

The above picture is a screenshot of the interactive geo-chart-map, which displays the average BMI values in 177 countries for both men and women and can be found on the bmi calculator page.

Other calculators available on the site:

  • BMR calculator – for figuring out your basal metabolic rate (or resting metabolic rate, as it is sometimes referred to)
  • A Calorie intake calculator – for figuring out how many calories a day the body requires depending on the physical activity level you undergo. The nice thing about it is that it also has a section with a table of physical activities that span over ~300 or so different types of activities and their associated calorie consumption / expenditure values.
  • Body Fat percentage calculator – the name says it all, however what’s nice about it is that, aside from the actual body fat percentage value calculated, it also provides some insights into fat and lean mass,  body adiposity index (also known as BAI), and a value of the body fat extracted using the BMI – for adults and children alike.

Like with the interesting information from the global average BMI, all other calculators come with a plethora of additional information related to the actual calculation, which makes it a great resource for whenever you need to calculate these values, but also have some time to browse around.

sleep-calculator.com – Calculates the Best Time to Go to Sleep So You Wake Up Refreshed

Sleep Calculator web app

Waking up refreshed and comfortable consists of getting to bed at the right time. Sleep-calculator.com is a webapp that makes decisions based on our sleep cycles and calculates when you should fall asleep / wake up.

Punch in when you need to wake up and you’ll get 4 best times to fall asleep.

Other scenarios are available as well:

  1. Depending on your situation you might want to know when to go to sleep to wake up at a specified time (in this case go for Scenario 1)
  2. You might want to decide the best times to wake up after having gone to sleep at a specified time (in this case go for Scenario 2)
  3. You might want to simply know the best times to wake up if you were to go to sleep this instant (in this case go for Scenario 3)
  4. If plan to take a power nap it will give you the best time at which you should wake up (in this case go for Scenario 4)

Give it a try to see if you can time your sleep for the best rest.

Sleep-Calculator.com

Nginx Error – 413 Request Entity Too Large Fix

If you’re getting 413 Request Entity Too Large errors trying to upload files to your webserver, you need to increase the client body size limit in your nginx.conf configuration file.

Add ‘client_max_body_size xxM’ inside the server section, where xx is the size (in MB) that you want to allow for files upload to your webserver.

The client_max_body_size directive assigns the maximum accepted body size of client request, indicated by the line Content-Length in the header of request.

To edit your nginx configuration, in your terminal type the following:

sudo nano /etc/nginx/nginx.conf
or
sudo nano /usr/local/nginx/conf/nginx.conf
and set the
# set client body size to 2M #
client_max_body_size 2M;

as per the example below:

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
client_max_body_size 2M;
listen 80;
server_name localhost;

# Main location
location / {
proxy_pass http://127.0.0.1:8000/;
}
}
}

WordPress theme upload error “PCLZIP_ERR_BAD_FORMAT (-10)”

While trying to install a wordpress theme that was packaged as an .rar archive I got the following error:

The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

This is because I’m trying to unpack a .rar archive and the server doesn’t have rar archive support installed, however you can get around this issue quite easily.

All you need to do is unpack the .rar archive and re-pack it as a .zip archive and re-try the upload. Everything will work as expected after that.

Git – How to delete a local branch or remote

Git – delete a local branch:

git branch -d some_example_local_branch

Git – delete/remove a remote branch:

git push origin : some_example_remote_branch

In case of error after trying to remove remote branch, run:

git fetch -p

This is what the error message would look like:

error: unable to push to unqualified destination: some_example_remote_branch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@repository_name'

and this is caused due to the fact that perhaps anyone else has already deleted the branch and you need to synchronize your branch list.

Install Sublime Text 3 on Ubuntu Linux

In order to install Sublime Text 3 on Ubuntu, we first need to add a repository to our sources.

Before we add the required repository to our sources, we need to make sure to have the add-apt-repository package available. If you don’t start with step1, otherwise proceed to step2.

Step 1: install the add-apt-repository packages providing the command:

for Ubuntu version <= 12.04

sudo apt-get install python-software-properties

for Ubuntu version >= 12.10

sudo apt-get install software-properties-common

Step2:

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer

First the repository is added, then a update to find the new packages is made and finally you’re installing sublime text 3.

Clear Cache and Cookies shortcut for Firefox, Internet Explorer and Chrome Browsers

This is how you clear your cache and cookies on all major browsers without navigating through the entire menu and options to find the caching section.

Typically on most Firefox versions the caching & cookies section is under:

Firefox Menu > Options > Options > Privacy Tab > clear your recent history (link) but that’s too many clicks.

In Chrome:

Customize and Control Google Chrome button > Tools > Clear Browsing data.

In Internet Explorer:

Tools > Internet Options > General tab > Browsing history section > Delete

So, here’s the only Windows keyboard shortcut you need: CTRL+SHIFT+DELETE – this brings up the Clear All History window on all browsers.

If you’re running Windows on a mac pc, then the shortcut would be: CTRL+SHIFT+FN+DELETE – same result as above.

The CTRL+SHIFT+DELETE shortcut works on all versions of Firefox, perhaps most Internet Explorers and Google Chrome.

Install MRI 2.1.0 on Ubuntu 13.04

MRI – Matz’s Ruby Interpreter

1. We need curl on a fresh install if it so happens that it is not present:

sudo apt-get update
sudo apt-get install curl

2. Download and run the RVM installation script

2.1 Installing the stable release version:

user$: curl -sSL https://get.rvm.io | bash -s stable

2.2 To get the latest development state:

user$: curl -sSL https://get.rvm.io | bash

3. Reopen terminal and run:

rvm install ruby-2.1.0

or paste this in the current terminal and then install ruby: source ~/.rvm/scripts/rvm

4. If you’re getting the “RVM is not a function” message you need to enable login shell (optional):

With the the terminal window open go to:

Terminal > Edit > Profile Preferences > Title and Command > Run command as a login shell (make sure this check-box is enabled)