Guy Rutenberg

Keeping track of what I do

Archive for the ‘JavaScript’ Category

LaTeX for TiddlyWiki – A MathJax Plugin

with 24 comments

Some time ago I came across MathJax, a nifty, Javascript based engine for displaying TeX and LaTeX equations. It works by “translating” the equation to MathML or HTML+CSS, so it works on all modern browsers. The result isn’t a raster image, like in most LaTeX solutions (e.g. MediaWiki), so it’s scales with the text around it. Furthermore, it’s quite easy to integrate as it doesn’t require any real installation, and you could always use MathJax’s own CDN, which makes things even simpler.

TiddlyWiki with the MathJaxPlugin

A tiddler with LaTeX equations.

Read the rest of this entry »

Written by Guy

June 25th, 2011 at 5:05 pm

Posted in JavaScript,LaTeX,Tips

Tagged with , ,

A JavaScript DOS Attack

with 15 comments

In this post I will present a way of creating a JavaScript based DOS attack that utilizes the bad implementation of tabs in most (if not all) web-browsers. The attack will make the browser unresponsive and force the user to kill its process. This attack is based on the following JavaScript code:
Read the rest of this entry »

Written by Guy

November 23rd, 2007 at 12:30 am

Posted in JavaScript

Tracking MediaWiki External Links Statistics using Google Analytics

with 10 comments

When you track MediaWiki statistics, you usually track only internal page statistics, but tracking external links which leads out of your site is not some thing you can ignore. Unfortunately we probably can’t put actual tracking code in the pages linked to by our site’s external links. Fortunately we can track the actual clicks on those links that lead out of the site, and it’s quite easy to do when tracking statistics with Google Analytics. If you don’t already use Google Analytics with your MediaWiki site, open a new account in Google Analytics and see my previous post: Track MediaWiki Statistics using Google Analytics.

Read the rest of this entry »

Written by Guy

July 16th, 2007 at 7:06 pm