Monthly Archives: July 2013

Fourier Analysis of Boolean Functions under Random Restriction

Fourier Transform Consider a function \(f\colon \{0,1\}^n \to \{-1, 1\}\) on \(n\) boolean variables. This can be viewed as a transform of a boolean function \(g\colon \{0,1\}^n \to \{0, 1\}\) by letting \(f(x) = (-1)^{g(x)}\). For \(\alpha \in\{0,1\}^n\), define the

Tagged with: , ,
Posted in Theory

Select Random Records in MySQL

Selecting random records from a table is helpful when showing items with no preferences or testing different result sets. The following SQL defines a table holding images. Imagine that we wish to pick up 10 random rows from it. In

Tagged with: , , ,
Posted in MySQL, SQL

Detect Image Loading Error with jQuery

The following JavaScript code shows how to detect image loading error using jQuery. It uses bind to attach a handler to the “error” event for all image elements. Using ajax, we can log or handle such events. Suppose we have

Posted in JavaScript

Top 10 Java People in History

Here are the top 10 Java people you should know. They have built new languages, frameworks, products, or books that are largely adored by the Java community. 1. James Gosling: Father of Java James Gosling (born May 19, 1955) is

Tagged with:
Posted in Java