Archive for labs
Creating a custom WordPress admin
Have you ever try to customize the wordpress dashboard? I’m sure that you think about it at least once if you made any development with wordpress. Luckily, WordPress’ flexible nature allows for almost every part of it to be easily changed, Dashboard inclusive. The easy way is to create a plugin for it, so let’s take look on how we can creat a plugin first.
Continue Reading
HTML5: old school vs. new school
A time ago post a JavaScript snipet. It was simple snipet that provides a hint that describes the expected value of an input field. So, when text input get focus, the default value disappears and allows the user to write, but if the user doesn’t type anything, the default value returns to the input text when the input lose the focus. But the last week I was reading the book HTML5: Designing Rich Internet Applications, and I found some great new attributes.
JavaScript Global Functions
In my last post, where I wrote about the Javascript problems with the float point numbers, I told that I would be writing about the JavaScript Global Functions. So here we are. This time I will talk about a few global functions that I think that could be useful and I hope that it will give you curious enough to investigate further.
Floating point numbers in JavaScript
A few weeks ago, I was doing a freelance for my friends of Gruponat when I got with this JavaScript problem. I was doing the following arithmetical function: “0.9 + 0.1″. To my surprise, the result wasn’t “1″ as I spected.
Numbers are represented in binary as IEEE-754 Doubles, which provides an accuracy to about 14 or 15 significant digits. Integers up to just over 9e15 are precise, but few decimal fractions are. Because they are floating point numbers, they do not always exactly represent real numbers, including fractions. Given this, arithmetic is as exact as possible, but no more. Operations on integers are exact if the true result and all intermediates are integers within that range.
Text input default value recover jQuery snippet
dreamyTip, a jQuery tooltip plugin(comming soon)
As I have announced a few days ago on Twitter(by the way, if you want to follow me, here is my user:@andres_314, the only thing is that I usually write in Spanish and not many important things). Two weeks ago, I was working on a web project and I needed to use a tooltip to show some comments from the users of the site. As I was already using jQuery in the project, I decided to search a plugin to help me with that task. But after being spending a lot of time searching something useful for the project without success, decided to do my own plug-in. Continue Reading
Scroll it! a new release it’s out!
It’s been a while since the first version, but now I’m glad to announce that the new release it’s finally out. There is no documentation yet, but the it’s explained in the file. You can see a demo page or download the demo of the plugin here.
If you only want to download the plugin you can download here the full version or here the minified version.
As soon as I can I will update this post with the documentacion.
If you need help, just let me know.
