- Access the following file
$ vi /etc/postgresql/9.3/main/pg_hba.conf
- Add the any ip range at the end:
host all all 192.168.123.0/24 trust
- Go to
$ vi /etc/postgresql/9.3/main/postgresql.conf
- Modify this line
/* | |
Theme Name: TwentyThirteen Child | |
Description: My modification of TwentyThirteen | |
Author: Alvaro Bolaños Rodriguez | |
Version: 1.0 | |
License: The MIT License (MIT) | |
License URI: http://opensource.org/licenses/MIT | |
Template: twentythirteen | |
*/ |
# Append this code to the .bashrc file | |
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
NO_COLOR="\[\033[0m\]" | |
UPDATE Alternative solution by @pdcmoreira: | |
I found a VERY SIMPLE way to make it work without touching any file in the accepted answer! | |
Install and run this file: https://www.virtualbox.org/attachment/ticket/14040/VBox-Win10-fix-14040.exe (leave it running in the background) Go to the C:\Program Files\Oracle\VirtualBox folder, right click on VirtualBox.exe, go to compatibility, check the "Run in compatibility mode" checkbox and choose Windows 7. Click OK to close the window. Repeat step 2. for VBoxManage.exe and VBoxHeadless.exe Run cmd and do homestead up. There you go! It should work! | |
After all is done and working, close the program opened in step 1. | |
Source: https://laracasts.com/discuss/channels/general-discussion/windows-10-vagrant-virtualbox-homestead/?page=5 |
sudo apt-get install mysql-server
sudo apt-get install phpmyadmin
Add this if it is not working in localhost/phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/sites-enabled/001-phpmyadmin && sudo service apache2 restart
sudo mysql -u root -p
This is the format of /etc/crontab:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
In your client machine: create a new private/public key using ssh-keygen
command, tt will create both keys in your .ssh
folder.
Or use puttygen:
click generate
save the private key
copy the public key from the text box (don't save the public key from puttygen). you can reopen the private key and see its public-key later
In the server copy the public key text into .ssh/authorized_keys
file
configure putty to use your created private key in connection->ssh->auth Or use:
ssh -i privatekeypath user@server.com
InputMethodManager imm =(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); | |
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0); | |
/** | |
* Also you can add this to the Manifiest file: | |
* android:windowSoftInputMode="stateVisible" | |
* inside of the <activity> you want | |
* / |
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (weak, nonatomic) IBOutlet UITextField *waterTextField; | |
@property (weak, nonatomic) IBOutlet UITextField *ratioTextField; | |
@property (weak, nonatomic) IBOutlet UITextField *coffeeTextField; | |
- (IBAction)calculateButtonPressed:(id)sender; |