If you’re thinking without writing, you only think you’re thinking.
(Leslie B. Lamport)

Setting Up Your Cocoapods Libraries

target 'SimpleWeather' do pod 'Mantle', '~> 1.3.1' pod 'LBBlurredImage', '~> 0.1.0' pod 'TSMessages', '~> 0.9.4' pod 'ReactiveCocoa', '~> 2.1.7' end open SimpleWeather.xcworkspace/

php modules

php –modules

Reset a MySQL root password

Stop the MySQL service service mysql stop Connect to MySQL mysql -uroot Set a new MySQL root password use mysql; update user set password=PASSWORD(“mynewpassword”) where User=‘root’; flush privileges; quit Start the MySQL service service m…

Remove MySQL Completely from Linux System

yum remove mysql mysql-server mv /var/lib/mysql /var/lib/mysql_old_backup yum install mysql mysql-server

Apache2: Forbidden You don't have permission to access /dir/ on this server

sudo adduser username www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www

How to install GitEye on Ubuntu 14.04

1. Download GitEye for Linux 2. Extract GitEye.zip -> GitEye/ 3. Relocating GitEye sudo mv GitEye /opt/GitEye 4.Create a Symlink sudo ln -s /opt/GitEye/GitEye /usr/local/bin/GitEye 5.Then Launch GitEye

Get the SHA-1 fingerprint of the certificate

* To get the release certificate fingerprint: keytool -exportcert -list -v \ -alias <your-key-name> -keystore <path-to-production-keystore> * To get the debug certificate fingerprint: keytool -exportcert -list -v \ -alias androiddebugkey -keystore ~/.android/debug.keystore * Example:</path-to-production-keystore></your-key-name>…

Access a usb flash drive from the terminal

1.Find what the drive is called You'll need to know what the drive is called to mount it. To do that fire off: sudo fdisk -l You're looking for a partition that should look something like: /dev/sdb1. Remember what it's called. 2.Create a m…

Simple example of loader in android

User.java public class User { private String mName; public User(String mName) { this.mName = mName; } public String getmName() { return mName; } public void setmName(String mName) { this.mName = mName; } } DataLoader.java public class Data…

A deep dive into Android View constructors


Programmatically set the listSelector for a ListView to the default for the current theme

private static void setDefaultListSelector(ListView listView, Context context) { TypedArray typedArray = context .obtainStyledAttributes(null, new int[]{android.R.attr.listSelector}, android.R.attr.listViewStyle, 0); Drawable drawable = ty…

Tips and tricks for android material support library


Get application version name

adb shell shell@device-name:/ dumpsys package your-package-name | grep version