New design

I’m currently implementing my new design … at a slow pace :)

I’ve been working on this design for more than a year (!!!!), but mainly because I didn’t work on it that often and I was focusing on other stuff of my life.

There’s still a lot of work to be done  (the single page, archives, tags & categories, …), so it’s normal that some stuff doesn’t work right now. I hope to finish everything in the coming week though.


Tags :

short and sweet … 10 days

So,

It had to happen, my in-laws are in town. They’re from Vancouver and came on a 10 days vacation in Montréal to see their 2 sons … one of them being my boyfriend.

We’ve just moved in a new and huge apartment this past Sunday, earlier than supposed to, so we could accommodate his parents.

To be honest, I was really stressed when I learned they were coming to stay with us … then I wasn’t that much for a week or two … then I almost had a panic attack, just before the arrived last night :/

All this stress is mainly because :

  • it’s my first time meeting them
  • we just moved to a new place, so no walls are painted and there’s boxes everywhere (actually, it’s not as bad as it sounds)
  • they learned about my existence as the boyfriend less than a month ago.

An explanation is necessary,  no? Let’s just say that because of their religious beliefs, it wasn’t easy to tell them that their son was in a relationship with another guy and, on top of that, living with him.

But since the unveiling of our relationship was well received by both parents (way better than how my boyfriend and I thought it would), I know I shouldn’t be to stressed.

Proof of that : They arrived last night and were more than pleasant. In the end, there was no weird conversation or awkward moment (yeahhhh!).

We’ll see how those 10 days will go (wish me luck)!


Javascript:number_format()

Here’s a little javascript to format numbers like the PHP function “number_format” :

function number_format (number, decimals, dec_point, thousands_sep){
	if (isNaN(number) || number=='') number = 0;

	var decimals 		= decimals != undefined ? decimals : 2,
		dec_point		= dec_point != undefined ? dec_point : '.',
		thousands_sep	= thousands_sep != undefined ? thousands_sep : ' ',
		negative		= number<0;

	if (negative) number *= -1;

	var left 	= parseInt(number, 10),
		right	= Math.round(parseFloat(number.toString().replace(/^\d+./, '0.')) * Math.pow(10, decimals));

	left  = left.toString().split('').reverse().join('')
			.match(/\d{3}|\d{1,2}/g)
			.join(thousands_sep)
			.split('').reverse().join('');

	right = (right / Math.pow(10,decimals)).toString().replace(/^\d+./, '').toString();

	if (right.length < decimals) for (var iRight=right.length; iRight < decimals; iRight++) right += '0';

	return (negative?'-':'')+left+dec_point+right;
}

UPDATE : There was a bug in the code. The zeros to the left in the decimals (if there was any) were erased.
UPDATE 2 : There was a second bug, when the number was under 0. Fixed now :)


A nice day

I was at Kilo café today programming and drawing for hours before noticing that I had spent more than 6 hours there, hehehe.

I was working on a small script for the new version of my blog (I hope I’ll finish it soon, I’m soo tired of my present design) and I got really into it (yes, I’m a geek and don’t mind it). After a while, I felt like I needed to draw and that’s exactly what I did. It was funny, because Daniel (a guy who works there) was really amazed by my tabletpc with the touch screen. He wants to work in 2D animation and really liked the idea of the touch screen (and I totally agree with him, I LOVE my laptop).

I think I only have 2 or 3 more little scripts I need to do and fix some bug with my new design and soon it will be online.

For my drawings, here’s the two I did today :

Me, Maxime LefrancoisCute doggy!


Tags :

New design coming up!

Soo, I’m almost finished with my new blog design. It’s going to be ….. orange! I might end up making more than one version of the site (you’ll be able to change the main color), but I’ll try to keep it as simple as I can.

I’m quite happy with what I came up, I just need to fix one or two things and then I can start integrating the design.

soon soon soon!! I can’t wait!!

After the new design is up, I’ll start adding content on a regular basis for real this time.


Tags :

Nouveau design à venir

Bon, je suis pas totalement content sur mon design présent, donc je vais complètement le changer. Ça va être beaucoup plus simpliste.

L’idée de base est d’utiliser une couleur principale (en l’occurence, ce sera l’orange) et de donner au contenu beaucoup d’espace. Déjà, les premières ébauches sont plutôt intéressantes et je crois que je vais être beaucoup plus satisfait avec le nouveau design que celui que j’ai pour l’instant.


Tags :

J’oublie tout le temps

Hier je suis allez à la plage du lac l’Achigant pour une belle journée entre amis. Nous avions rien oublié à emmener (costume de bain, frisbee, petit lunch, crème solaire, …) et la journée était parfaite.

En gros, il y a eu un peu de “shopping” aux Wallmart (bon j’avoue, j’avais oublié mes sandales), un peu de soleil, un peu de baignade, un peu de frisbee, une bonne poutine à 4, du mini-pot et finalement une bonne crème glacé.

La seul chose que j’ai oublié dans tout ça (et que j’oublie tout le temps), c’est que comme je conduis la voiture et que j’accote mon bras sur le rebord de la fenêtre, je ne pense jamais à me mettre de la crème solaire! Donc, l’été est finalement arrivé et les coups de soleil aussi … malheureusement.

Du moins, j’espère que tout le monde a profité pleinement de leur fin de semaine!