Category: IT Stuff
Posts about IT
Posts about IT
Undisputed leader for WP cron debugging is WP-Crontrol plugin. You can easily see a list of all cron actions scheduled or running now. Also you can simply add new or run existing task. Sometimes however you may prefer debugging WordPress cron via command line. For example if you don’t want another plugin installed in your […]
How to block IP address via .htaccess file? Apache 2.4 – block specific IP addresses
1 2 3 4 5 |
<RequireAll> Require all granted Require not ip 1.1.1.1 Require not ip 2.2.2.2 </RequireAll> |
Apache older than 2.4 – block specific IP addresses
1 2 3 4 |
Order allow,deny Deny from 1.1.1.1 Deny from 2.2.2.2 Allow from all |
How to allow specific IP addresses to access the site via .htaccess file? Apache 2.4 – allow specific IP addresses only
1 2 3 4 |
<RequireAny> Require ip 1.1.1.1 Require ip 2.2.2.2 </RequireAny> |
Apache older than 2.4 – allow specific IP addresses […]
It’s been an issue for me for a long time. Firefox, even the latest version was lagging, slow. Changing between tabs was very long, even 3-5 seconds even if I had two tabs only (!). Scrolling was not smooth and using it was painful. It did not happen always, but mostly. I use Firefox for debugging sites […]
I had this problem with Maps Marker Pro recently – my map did not load on the page, I saw “loading map – please wait…” only instead. I followed this guide from plugin’s author. It turned out, that in my template JS code I had something like this:
1 2 |
// first set the body to hide and show everyhthing when fully loaded ;) document.write("<style>body{display:none;}</style>"); |
Removing that code solved my issue! P.S. […]
This might be helpful in many cases:
1 |
preg_replace('/^[\p{Z}\s]+|[\p{Z}\s]+$/u','',$str); |
Some alternative methods on stackoverflow.