Lambda Calculus Reduction steps

Lambda calculus Lambda calculus has a way of spiraling into a lot of steps, making solving problems tedious, and it can look real hard, but it isn’t actually that bad. In lambda calculus, there are only lambdas, and all you can do with them is substitution. Lambdas are like a function or a method – … Read more

repaint() Method in Java

The repaint() refreshes the view (component), so whenever you make any change on the component, you must call it. For instance, if you rotate the graphical component, you must make a call to repaint() in order to see the change on the containing component

++someVariable vs. someVariable++ in JavaScript

Same as in other languages: ++x (pre-increment) means “increment the variable; the value of the expression is the final value” x++ (post-increment) means “remember the original value, then increment the variable; the value of the expression is the original value” Now when used as a standalone statement, they mean the same thing: The difference comes when you … Read more

bit vectors in c++

Here is a very simple statically sized bit vector implementation. It requires C++11 to function since it relies on the <cstdint> header, but this header is fairly commonly found since it’s based on a C99 feature. In a pinch you can use the C <stdint.h> header and simply use types in the global namespace instead. Note: This was typed on-the-fly … Read more

How to ‘minify’ Javascript code

DIY Minification No minifier can compress properly a bad code. In this example i just wanna show how much a minifier does. What you should do before you minify And regarding jQuery… i don’t use jQuery.jQuery is for old browsers,it was made for compatibility reasons .. check caniuse.com, almost everything works on every browser (also … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)