Apache can proxy, or hand off the API request for you while also injecting the CORS header Access-Control-Allow-Origin to that remote API response.
# Proxy for BaseServer
Header add "Access-Control-Allow-Origin" "*"
If you are using mod_rewrite along with this, you might need the [P] flag which tells mod_rewrite to handle the request with mod_proxy.
Edit your .bash_profile and add the line:
#For Java 7:
export JAVA_HOME="`/usr/libexec/java_home -v '1.7*'`"
#For Java 8:
export JAVA_HOME="`/usr/libexec/java_home -v '1.8*'`"
Animate.css is a wonderful CSS animation library.
On the website, animations are grouped by types – “Attention Seekers”, “Bouncing Entrances”, “Bouncing Exits”, etc.
What I present is a revised order with In’s and Out’s grouped next to each other. This gives a nice effect when cycling through all the animations.
Continue reading “An alternate animate.css animation order”
These are unofficial Master Controller lyrics I wrote and performed for the Pertino Summer party 2013:
Continue reading “Master Controller Lyrics”
A botnet of browsers
socket.io is an amazing library which makes it very easy to use websockets. This library gives us real-time communication ability in the browser with very little code.
This article is written for people already familiar with Linux, and Internet networking and security concepts.
Continue reading “A botnet of browsers – websocket command and control”
$ cat shh.sh
echo "[%lu] DISABLE_NOTIFICATIONS\n" $now > $commandfile
Enabling notifications across the board is similar:
$ cat enable-notifications.sh
echo "[%lu] ENABLE_NOTIFICATIONS\n" $now > $commandfile
Done in Barclay wood with acrylic paints
If you are testing ChromiumOS on VMware and the mouse is moving way to slow, try adding this to your VMWare vmx configuration file:
mouse.multiplier = "3"
mks.absoluteMouse = "TRUE"
mks.gamingMouse = "FALSE"
Simple instructions for creating Retina favicon:
Create a 16×16 PNG-24 for your low-res icon
Create a 32×32 PNG-24 for your high-res icon
Head over to http://convertico.org/Multi_Image_to_one_icon/ and upload those two icons together to create a dual-resource ico file which you rename to favicon.ico.
Upload that favicon.ico in the root of your webroot.
For some reason the meta tag <link rel=”icon” href=”favicon.ico”> seems to prevent the high-res version from working so I temporarily removed it. If you know the correct meta tag to be using for retina please let me know.
Here is what the difference looks like: