Sometimes we need to open MySQL for remote connection. To do this, we can create file “/etc/my.cnf” or modified it if exists.
The key here is:
bind-address = 0.0.0.0
And you need to access your MySQL console and grant remote user by:
GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'YOUR_PASSWORD' WITH GRANT OPTION;
And last step is restart the MySQL services by “sudo service mysqld restart”
When running Tornado web server, we must doing restart for every changes that has been maded. This tedious works for sure. Are you newbie? Yes, I just download Tornado just today and I’m a new comers for this web-framework. If you follow Tornado documentation, it only showing how to running webserver in non-autoreload way. Wait, did you mean Tornado actually have module or function to make it autoreload everytime changes has been made? Yes!
Here is example how to using tornado.autoreload to reload server everytime changes has been made. It’s also “update” if files in templates (HTML) being changed as well.
It’s suddenly pop-out on my head which what the one-liner solution for creating alphabet (A-Z) in Python and reversed them. Then, the first thing is using built-in python function like ord() and chr(). Then, I can use list comprehension to make it compact.
[chr(x) for x in range(ord("a"), ord("z") + 1)]
I’m trying to make a jump in learning Java and Banking. Because I’m interesting with the big problem there.
So, here are the results that what I’m looking for the problem that faced in Bank and Java implementation.
Because there are some domain knowledge in bank that also I need to know, so I put some website that related with Bank.
In my previous post, I was doing experiment by blocking crawler from Incapsula with NGINX “deny” which actually it’s doesn’t give solution for me. I don’t know if my code is wrong or NGINX can’t doing subnet blocking correctly. Because I was going into NGINX documentation and follow the article but that drive me into some unlikely result.
So, I try with more familiar way called “iptables”. I use debian for this example. So, basically iptables is available for Linux Distros. Just make sure your server have it installed. Then here is the list:
I have subscribe Incapsula services about one years and i’m feel great and bad with their services. First thing, I like to see that their system protecting my websites very good. But, “overprotecting” is the only way i complain to them since a years ago and it’s doesn’t fixed till now.
What is it? It’s about “Incapsula Monitoring Bot / Incapsula Uptime Monitor” that flooding my server which make 2-3 request in every SECOND! For example:
This is always happen when you working with different environment like Production, Staging, Release Branch, etc.
To make some particular file being ignored for temporary, we can use “git update-index”.
Here is to disable tracking:
git update-index --assume-unchanged <file>
Then to enable track updates on this particular file:
git update-index --no-assume-unchange <file>
There will be a need when we want to create a new branch in local based on remote branch (not master) in repository. For instance, we have three branch:
This “New-branch” already exist in our remote git repository. Then, we need to make sure if we can see this remote repository in our local.
1. Compare local and remote branches repository
When you’re doing “git branch -a” but you don’t see the same things in remote repository, then something wrong here.
This mean our remote repository doesn’t detected in our local. Try with: