Test from my phone (video)

Nothing


Tags :

Test from my phone

image

Just trying out Wordpress for Android :)


Tags :

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 :