Skip to content

javahacker.com

The Java Hacker – Peter Jaric's Blog

  • About

Programming

Mathemancy.js – a Framework for Natural Language Arithmetic in JavaScript

November 24, 2016November 25, 2016 Peter JaricProgramming

A while ago, while I was riding my bike to work, I thought: “Would it possible to make one.plus.two.times.three evaluate to 7 in JavaScript?” I wanted to see if it was possible, and with some invaluable help from Mathias Bynens […]

Read more

Using window.onerror to Brute-force Cross Domain Data (updated)

November 13, 2014November 14, 2014 Peter JaricProgramming, Security

Update: If you haven’t read the post before, please read the original post below. I got a lot of interesting comments on Twitter about this post, and among them the obvious problem that this approach is slow. Then it hit […]

Read more

A JavaScript challenge for Nordic.js

September 19, 2014November 2, 2014 Peter JaricProgramming

Today and yesterday I’ve been visiting Nordic.js, a Scandinavian JavaScript conference. To celebrate the occasion I made a little JavaScript challenge that I announced at Twitter: I had a specific solution in mind, which I didn’t receive, but I got […]

Read more

Agessa’s World – a game where the interface consists of only alert(), confirm() and prompt()

July 23, 2013November 2, 2014 Peter JaricGames, Programming

A while ago I asked myself: who uses alert() for anything but debugging in web applications nowadays? It didn’t take long to go from that question to the idea that I should make something that uses only native dialogs, just […]

Read more

The Sea Surfer – a Simple Tool for CSRF Vulnerability Detection and Proof-of-Concept Creation

May 23, 2012November 2, 2014 Peter JaricInternet, Programming, Security

Lately I have taken an interest in web application security, as covered by OWASP. One common vulnerability in web applications is to be sensitive to CSRF attacks. I have made a small tool in the form of a bookmarklet to […]

Read more

Fun with JavaScript: count parentheses

April 19, 2012November 2, 2014 Peter JaricProgramming

Yesterday, I wrote a JavaScript function that returned another function. At one place I wanted to call the returned function immediately, resulting in code looking somewhat like this: When seeing that code, I asked myself: would it be possible to […]

Read more

Matching combined results in jQuery – ordered correctly

November 24, 2009November 2, 2014 Peter JaricProgramming

Today I used the “selector1, selector2, selectorN” selector in jQuery and was confused that, in some cases, when looping over the results I got them in the order of the selectors and not in the order of the elements in […]

Read more

Ripping sound from closed applications to files with reasonably good names

January 28, 2009 Peter JaricProgramming

The idea Some applications that play sound do not allow the user to save those sounds for later listening. However, it is possible to tap into the audio playing through the sound card and record it to file (see here […]

Read more

Maximizing windows in Mac OS X

January 20, 2009 Peter JaricProgramming

Since December I am a Linux-only user at home, but previously I had a mac. One of my main problems was that it was up to the applications if it would be possible to maximize their windows. There is a […]

Read more

Modules in Javascript

January 20, 2009 Peter JaricProgramming

JavaScript does not have modules builtin, but since it is such an open language, it is possible for the developer to create a custom module system. Looking around on the web, it is soon obvious that there are several ways […]

Read more

Posts navigation

Older posts

javahacker.com

  • About
Powered by WordPress | Theme: Astrid by aThemes.