WP-No-Format WordPress Plugin (Prevent HTML Code Formatting/Modification)

For the ones used to work with WordPress editor’s HTML mode and hate when it creates <p>s and reorganize <br/>s on its will (among other things), I’ve made this plugin.

I’ve been searching a lot for this kind of functionality and, since I couldn’t find any plugin which let you decide which parts of the code you’d want to leave “unformatted”, I started to write my own…

WP-No-Format

It’s very simple to use. After activating it, you can just type:

<!-- noformat on -->

on the WordPress editor, just before the part you want to protect, and from that point on, WordPress won’t touch the HTML code you write.

If you want to resume the standard “formatting” you have to type:

<!-- noformat off -->

And that’s all!

GNU GPL v3 WP-No-Format is licensed under the GNU GPL v3 (attached)…

Update (version 1.1): added convert_chars function support. Before, some characters got converted to HTML entities (for example, when writting “&&” appeared as “&#038;&”). [Update recommended]

Here is the change log.

Latest WordPress version tested with: 2.8.4

UpTime (How much time has the computer been powered on)

With this tiny tool, you can know how much time has the computer been powered on…

UpTime

GNU GPL v3 UpTime is licensed under the GNU GPL v3 (attached)…

As usual, here are the links…

For the ones who want to easily read the relevant code:

DWORD dwMilliseconds = GetTickCount();

int nSeconds = (dwMilliseconds/1000)%60;
int nMinutes = (dwMilliseconds/1000/60)%60;
int nHours = (dwMilliseconds/1000/60/60)%24;
int nDays = dwMilliseconds/1000/60/60/24;

char pszStr[256];
sprintf_s(pszStr, 256, "%d days, %d hours, %d minutes and %d seconds", nDays, nHours, nMinutes, nSeconds);

MessageBox(NULL, pszStr, "UpTime 1.0 by NeoEGM <http://www.neoegm.com/software/uptime/>", MB_ICONINFORMATION);

Guitar Trainer

Guitar Trainer is a program I’ve written to make easier the learning of the position of the different notes in the guitar fretboard. There are lots of features pending to be implemented (including sound, different scales, guessing game by position and by sound, etc.), but it’s quite useful with its current functionality.

GuitarTrainer_FullFretboard

Keep reading…

The smart right foot

Some days ago, I got an e-mail which stated that there was a challenge which couldn’t be beaten.

The instructions were quite simple:

1- While sitting at your desk, lift your right foot off the floor and make clockwise circles with it.
2- Now, while doing this, draw the number “6” in the air with your right hand. Your foot will change direction!

After breaking my mind for some attempts, I finally found that if you try starting from very low speeds, you can master it!

Anyway I found it quite interesing to be shared :)
As always: practice makes perfect… (Without getting maniac, of course!)

Now start trying!

PHP random password generator

As a new sequel to the Excel random password generator and the Random password generator, I’ve made a PHP random password generator service…

You can call it this way (if you hover the parameter values, you’ll get an explanation):

http://www.neoegm.com/services/random_password.php?length=8&upper=1&lower=1&numbers=1

So, for example, to generate a 10 characters numeric password you could access:

http://www.neoegm.com/services/random_password.php?length=10&upper=0&lower=0

Want the source code?

Random password generator

As an easy and quick to use alternative to the Excel random password generator, I’ve made this online Javascript adaptation of the random password generation function code… You can watch its source code below…

Characters


Uppercase Lowercase Numbers

Random Password


GNU GPL v3The code is licensed under the GNU GPL v3



Just in case you want to see the function code without looking into the source code:

/*************************************************************************************************
Random Password Generator by NeoEGM

Copyright (C) 2009 Ezequiel Gastón Miravalles

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*************************************************************************************************/

/*************************************************************************************************
Software: Random Password Generator by NeoEGM
Author: Ezequiel Gastón Miravalles
Website: http://www.neoegm.com/software/random-password-generator/
License: GNU GPL v3 (read above)
*************************************************************************************************/

function RandomPassword(Length, Upper, Numbers, Lower)
{
	Upper = typeof(Upper) != 'undefined' ? Upper : true;
	Numbers = typeof(Numbers) != 'undefined' ? Numbers : true;
	Lower = typeof(Lower) != 'undefined' ? Lower : true;
	
    if (!Upper && !Lower && !Numbers)
		return "";

    var Ret = "";
    var Num;
    var Repeat;

    Chars = 26 * 2 + 10;	//26 (a-z) + 26 (A-Z) + 10 (0-9)
	//a-z = 97-122
	//A-Z = 65-90
	//0-9 = 48-57

    for (i = 1; i <= Length; i++)
	{
        Repeat = false;

        Num = Math.floor(Math.random()*Chars);

        if (Num < 26)
            if (Lower)
                Ret = Ret + String.fromCharCode(Num + 97);
            else
                Repeat = true;
        else if (Num < 52)
            if (Upper)
                Ret = Ret + String.fromCharCode(Num - 26 + 65);
            else
                Repeat = true;
        else if (Num < 62)
            if (Numbers)
                Ret = Ret + String.fromCharCode(Num - 52 + 48);
            else
                Repeat = true;

        if (Repeat)
            i--;
	}

    return Ret;
}

Excel random password generator

Sometimes you may have to generate automatically different random passwords. This could be a very easy task if you just had an Excel function like “RandomPassword”, so you could write:

=RandomPassword(8)

And get something like:

e8NwB9Bi

Well, this is exactly the idea of the Add-In I’ve made…

Random Password

If this isn’t what you’re looking for, as an alternative, you can visit the online random password generator.

Keep reading…

El Gigantesco Show (The Giant Show)

This is the last song I wrote (almost 2 months ago) and I’m leaving it with lyrics and music for you to hear.

The recording is not final, but it’s clear enough by now to be shared.

If you want it, at the bottom there’s the link to download it.

Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.

Ezequiel Miravalles – El Gigantesco Show

Alguien puso las reglas
Y yo las acepté
Me dijeron que era una actuación
Pero que me la iba a creer

Que cada tanto lo iba a intuir
Aunque volvería a caer
En una carrera ascendente
Por volver a ver

No tengas miedo, animate
Hacé lo que sentís
Porque solamente eso
Te puede hacer feliz

No te tomes tu papel en serio
No lo dejes que te consuma por dentro
Olvidate lo que “deberías” hacer
Jugá, probá, si fallás, continuá

Tus padres, tus tíos, tus abuelos, tus primos
Tu novio, tu amigo, compañero y vecino
Todos te imaginan un camino
Hacete caso a vos y definí tu destino

Que no te importe el qué dirán
Que digan lo que quieran
No te tiene que afectar
Pocos pueden afirmar
Que viven como quieren
Y te pueden ayudar

Cuántas veces te enojaste
Te quejaste, gritaste
Lloraste y odiaste
Por creer que tu vida
Sólo iba a la deriva

No vivas el día, anotando cosas perdidas
Cosechá libertades y verás novedades
Probá, probá, probá… no tengas miedo a equivocarte
El camino se acomoda, vos sólo…
Mirá la proa

Tus padres, tus tíos, tus abuelos, tus primos
Tu novio, tu amigo, compañero y vecino
Todos te imaginan un camino
Hacete caso a vos y definí tu destino

[Sólo]

No existen los errores
Siempre y cuándo
Todo lo que hagamos
Sea porque lo deseamos

Preguntate todo el tiempo
Si te contenta tu vida
Si la respuesta no es “sí”
Pensá más cuando decidas

Si ansiás hacer algo
Y temés los resultados
Sólo confiá y animate
No renunciés sin intentarlo

Tus padres, tus tíos, tus abuelos, tus primos
Tu novio, tu amigo, compañero y vecino
Todos te imaginan un camino
Hacete caso a vos y definí tu destino

Tus padres, tus tíos, tus abuelos, tus primos
Tu novio, tu amigo, compañero y vecino
Todos te imaginan un camino
Hacete caso a vos y definí tu destino

Si te vieras como un actor
Parte de un gigantesco show
Podrías improvisar
Sin ningún miedo a fallar

The Inner Power

This is a short story in Spanish I wrote when I was 16 years old, but yet it still has a touch that makes it worthy to be shared.

It has clear influences of lots of Metaphysics books from Conny Méndez, Saint Germáin and others I read by that time; that, by the way, I recommend…

It’s not too lengthy (15 A4 sheets), but I leave it to be downloaded in Word format for your convenience.

cMemDbg – Easy to use C memory leak detection library

After some time working with C, I decided to develop a very easy to use library which can help you to detect and track memory leaks.

There are lots of solutions for this on the net, but this one has the particularity of being really simple to implement.

Keep reading…