Posts

Showing posts from June, 2017

GIT: FETCH AND MERGE, DON’T PULL

[In https://longair.net/blog/2009/04/16/git-fetch-and-merge/] GIT: FETCH AND MERGE, DON’T PULL 2009-04-16   MARK 118 COMMENTS This is too long and rambling, but to steal a joke from  Mark Twain   Blaise Pascal  I haven’t had time to make it shorter yet.  There is  some discussion of this post on the git mailing list , but much of it is tangential to the points I’m trying to make here. One of the git tips that I find myself frequently passing on to people is: Don’t use  git pull , use  git fetch  and then  git merge . The problem with  git pull  is that it has all kinds of helpful magic that means you don’t really have to learn about the different types of branch in git. Mostly things Just Work, but when they don’t it’s often difficult to work out why. What seem like obvious bits of syntax for  git pull  may have rather surprising results, as even a cursory look through the manual page should convince you. The other problem is that by both fetching and merging in one

How Do I Enable Remote Access To MySQL Database Server?

How Do I Enable Remote Access To MySQL Database Server? From [ https://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html ] B y default remote access to the MySQL database server is disabled for security reasons. However, some time you need to provide remote access to database server from home or a web server. This post will explain how to setup a user account and access a mysql server remotely on a Linux or Unix-like systems. Task: MySQL Server Remote Access You need type the following commands which will allow remote connections to a mysql server. Step # 1: Login Using SSH (if server is outside your data center) First, login over ssh to remote MySQL database server. You may need to login to your MySQL server as the root user: ssh user @ server1.cyberciti.biz ### login as the root using su or sudo ## su #sudo -s OR directly login as root user: ssh root @ server1.cyberciti.biz Step # 2: Edit the my.cnf file Once c

Using D-Link DIR-615 as WiFi repeater

http://www.dd-wrt.com/wiki/index.php/Repeater_Bridge D-Link DIR-615 D4 The forums are full of people having issues with getting this to work on the DIR-615 HW rev: D4. I was able to get this working very easily using the latest brainslayer firmware (v24-sp2). Less steps are needed for it also. Restore Factory Defaults on Secondary (DD-WRT) Router Do a proper HARD 30-30-30 Reset on the router. Go to 192.168.1.1 and log in. Go to the wireless tab. Choose Repeater Bridge under wireless mode. Match your SSID and channel settings exactly to the main router you will be connecting to. Make sure bridged is selected. Click Save. Go to the Wireless Security tab. Match these settings to your main router exactly. Click Save. Go to setup>basic setup. Choose a local IP in the same subnet that is not being used as your main router. If your main router is 192.168.1.1 then as long as it is not in use 192.168.1.2 will work. Assuming your ip is in this range the subnet will be

Mysql Joins quick breakdown

Image
From https://stackoverflow.com/questions/6294778/mysql-quick-breakdown-of-the-types-of-joins