What is the difference between Tomcat and TomEE, TomEE and TomEE Plus

This is functions comparison matrix between Tomcat, TomEE and TomEE+: (Source: http://tomee.apache.org/comparison.html) 1. Tomcat vs TomEE Tomcat is servlet container that supports servlet and JSP technology. TomEE is more extensive than Tomcat supporting many other Java EE technologies (specificed by JSR-xxx). 2. Compare TomEE vs TomEE+ TomEE contains: CDI – Apache OpenWebBeans EJB – Apache … Read more

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

There are many possible answers for this problem. The most common and most likely is that you’re running another program which is blocking port 80 or 443. If you’ve installed Skype, then you’ve found your problem! Change apache’s port settings to 81 and apache will work. There’s a good tutorial on that To check this … Read more

Set subdirectory as website root on Github Pages

There is a detailed gist with all the required steps. The gist is here: https://gist.github.com/cobyism/4730490 From the gist Deploying a subfolder to GitHub Pages Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or … Read more

How to measure server response time for Python requests POST-request

The Response object returned by requests.post() (and requests.get() etc.) has a property called elapsed, which provides the time delta between the Request was sent and the Response was received. To get the delta in seconds, use the total_seconds() method: response = requests.post(url, data=post_fields, timeout=timeout) print(response.elapsed.total_seconds()) Note that requests.post() is a synchronous operation, which means that … Read more

What exactly is Werkzeug?

Werkzeug is primarily a library, not a web server, although it does provide a simple web server for development purposes. That development server is what’s providing that Server: header. To go into more detail: First, let’s talk about WSGI. There are a bunch of web servers out there, like Apache, Nginx, Lighttpd, etc. There are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)