[JAX-RS] Access-Control-Allow-Origin as a Filter

So if you’re getting the Access-Control-Allow-Origin error in chrome. Then you need to be sending those headers with the response from the server. One solution would be to put it in the Response in each method. A better (and more scalable) solution is to use a filter. Then don’t forget to disable it in production.

[SOLVED] ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

If you’ve just installed mysql community server (in my case on Fedora 23) and you’re getting:

The only thing that helped was:

After that you’ll be able to do:

and type the new password. Then: mysql> use mysql; mysql> UPDATE user SET password=PASSWORD(“YOUR NEW PASSWORD HERE”) WHERE User=’root’; mysql> flush privileges; mysql>…

[SOLVED] Netbeans: Activation failed: Not all requested modules can be enabled:

If you’ve just installed Netbeans (8.1 in my case) and try to create a Web Project, you might get this: Activation failed: Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.java.kit jarFile: …. SOLUTION: install full JDK either edit <netbeans-IDE-installation>/etc/netbeans.conf unmark netbeans_jdkhome link to JDK location e.g. /usr/local/share/java/jdk1.6.0_07/ or use –jdkhome command-line option e.g. ./bin/netbeans –jdkhome…

[SOLVED] How to capture localhost traffic on Windows

Most tools, like Wireshark and Netmon aren’t able to capture data that didn’t actually go out on the wire. Until now. Message Analyzer is the eventual replacement to Network Monitor and offers lots of new capture features.  This is the download link: Download the tool. And this is the blog explaining: http://blogs.msdn.com/b/winsdk/archive/2014/08/15/rejoice-we-can-now-capture-loopback-traffic.aspx