Adobe’s Black Friday Sale

They made me an offer I couldn’t refuse.

I’d been humming and hawing about upgrading my Creative Suite to CS5 for a bit. Adobe currently has a 20% off Creative Suite upgrade promotion going until the end of December. I figured I’d see how Christmas went and if I had some extra money – go for it finally. The most I’d ever seen off previously from Adobe was 10% … so 20% is a good deal.

Then I got the Black Friday Sale email from Adobe, and they upped the ante offering 30% off the upgrade of Creative Suite for this weekend. I just had to do it! Other software packages are on sale as well, including $150 off Photoshop.

Adobe Black Friday deals end November 29th.
http://www.adobe.com/products/discount-software-coupons.html?promoid=JNWOS

Posted in Miscellaneous | Comments Off

Knocking at the Deadhouse Gates

I’ve just finished the second book in the Malazan Book of the Fallen series: Deadhouse Gates written by Steven Erikson. I’ve got to say it was pretty awesome! It’s a long book and with my hour a day for reading it took me about 2 months to get through it, but I have to say it was well worth it. So many emotions at the end, this book has great heart! Plot-lines twist and converge and always keep you on your toes. If you’re curious start with Gardens Of The Moon, I’m moving on to Memories Of Ice.

Posted in Miscellaneous | Comments Off

The Tea Party in Winnipeg

image

After a 7 year vacation The Tea Party is back! We went to see them last night at the Burton Cummings Theatre. It was a rocking good time! Hopefully we’ll get a new album from them soon!

Posted in Miscellaneous | Tagged , , , | Comments Off

Welcome Dylan

image

A big welcome to my new nephew Dylan born November 15, 2011 @ 4:57 am. Dylan was a few weeks later than expected and weighed in at.a.whopping 7 lbs 10 ounces. Shannon and Dylan are healthy and happy and expected home later today.

Posted in Miscellaneous | Comments Off

Game of Thrones – This Sunday (HBO)

For the last year or so I’d seen an ambiguous trailer for what appeared to be a new fantasy series called Game of Thrones with the hook “Winter Is Coming”. Ominous but the trailer didn’t provide a lot of information about what it was.  Then, a few months ago,  I was chatting with a girlfriend online and she mentioned the upcoming show and told me that is was based on her favorite series of books, ‘A song of ice and fire’ by George R. R. Martin, the first book titled Game of Thrones.

With her endorsement I went out and picked up the first book and haven’t stopped reading them since. My goal was to finish Game of Thrones before the show aired (this Sunday) but I find myself well into the third book now and still loving them. Game of Thrones is an epic fantasy story, set in the fictional land of Westeros and the lands beyond. It chronicles the violent struggles among noble families for control of the Iron Throne with a little bit of magic thrown in. What separates these books from other high fantasy books that I’ve read is that the stories aren’t about good vs evil, black vs white, every character is a different shade of gray. Just when you think its going to be okay, he changes things up and turns the world of the characters upside down.

Luckily, you wont’ have to wait entirely until tomorrow because a few weeks ago HBO aired the first 15 minutes of the pilot in the Game Of Thrones “Exclusive” Sneak Peek available on youtube. Watch it now – and get excited!

Posted in Miscellaneous | Comments Off

Portfolio Spotlight: Assiniboia Surgical Centre

I’ve just launched a new website for the Assiniboia Surgical Centre. If you find you’re in need of Oral & Maxillofacial Surgery visit http://www.drwalton.ca

Posted in Miscellaneous | Comments Off

TinyMCE HTML Character Count

I was working on an application recently, integrating the tinyMCE (wysiwyg) editor into all the text areas. We ran into a problem though because the application was using a MS SQL 2000 database which has a maximum row size of 8060 bytes. Which means that regardless of field type we can only enter up to approximately 8000 characters. In this instance I had 2 text areas i needed to limit to 2500 and 3000 characters respectfully, to ensure a safe buffer when adding the record to the database with the additional form data.

Examples provided by other users on the TinyMCE website with similar problems were patchy or overcomplicated for what I wanted to do:

  • Display an HTML character count for the user
  • Diplay the character count in the location where the HTML path indicator was located.
  • Turn the counter bold and red when the user has exceeded the allowed number of characters.

I muddled of it together myself referencing examples on the forum, but ran into a hurdle when I needed to set different editors with different character limits. Luckily I must have caught the TinyMCE developer in a good mood because he helped me polish off my solution.

You can read the thread here:

Below you’ll find a stripped down version of the TinyMCE editor with my custom function for doing the above. I’ve commented it alot so hopefully you’ll be able to read though this simple resolution and work out a version for yourself!

tinyMCE.init({
// General options
mode : "textareas",
...
theme_advanced_path : false, //hide the path info
charLimit : 3000, // this is a default value which can get modified later
//set up a new editor function 
setup : function(ed) {
 //peform this action every time a key is pressed
 ed.onKeyUp.add(function(ed, e) {
 //define local variables
 var tinymax, tinylen, htmlcount;
 //manually setting our max character limit
 tinymax = ed.settings.charLimit;
//grabbing the length of the curent editors content
 tinylen = ed.getContent().length;
//setting up the text string that will display in the path area
 htmlcount = "HTML Character Count: " + tinylen + "/" + tinymax;
 //if the user has exceeded the max turn the path bar red.
 if (tinylen>tinymax){
  htmlcount = "<span style='font-weight:bold; color: #f00;'>" + htmlcount + "</span>"
 }
 //enable to override the limit for various editors here
 //tinyMCE.editors["mytextarea1"].settings.charLimit = 3000; 
 //this line writes the html count into the path row of the active editor
 tinymce.DOM.setHTML(tinymce.DOM.get(tinyMCE.activeEditor.id + '_path_row'), htmlcount);  
 });
}
Posted in Miscellaneous | Comments Off

Ye Old Birthday Wishlist

I always treat my birthday like the epic holiday it should be and proudly post my birthday wishlist. I’m employed this year, and although I won’t get the luxury of calling in ‘older’ into my new job I won’t be asking for money! Okies so down to business – my birthday wishes in no particular order and no concern for your budget!

1. Sewing machine – The Brother Project Runway Special Edition
2. A chest of drawers (6 or 9 depending on size or configuration – cherry)
3. Art supplies, canvases, acrylic paints, acrylic paint brushes
4. A small photo backdrop (smooth plastic curve), necklace presentation stand, a foam head
5. Owl Stuff
6. Fairy Stuff
7. Drawing Books, Fantasy Illustration Books (Kustom Kulture has some cool ones), 3D Modelling / Texturing
8. Sweaters all kinds – its fall there’s lots of selection – dark colors please!
9. Socks (we can always use more)

That’s it for now – my ocd won’t let me add 10 because my bullets will cease to left align – and with that I bid you adieu!

Posted in Miscellaneous | Comments Off

Florence & The Machine – Dog Days Are Over

The commercials for Eat Pray Love have been airing for a week or two and the music caught my ear. The song from the commercial is Florence & The Machine – Dog Days Are Over. I’ve linked to this version on youtube because it lets you have a listen and the video version is blocked from linking and/or contains advertising – but the video is pretty cool too so its worth checking out if you’ve go the time.

They’ve got a pretty groovy website too: http://florenceandthemachine.net/

Posted in Miscellaneous | Comments Off

WordPress Login Not Working – False Redirect

So I had this problem occurring on several wordpress sites I was maintaining. I would access the admin login, enter the username and password, the site appeared to accept them, but instead of directing me to the dashboard, redirected me back to the login page. It would often take 2-3 login attempts before it finally “caught” and i was able to access the dashboard.

I did a bit of googling and determined it has something to do with the plugins (although I have no idea what exactly) Anyhow, eventually I found a tiny snippet which finally fixed the problem. Add the following line to the bottom of the first group of definitions of your wp-config.php file.

/*added to try and fix login loop*/
@define('ADMIN_COOKIE_PATH', '/');

WordPress Admin Login works like a charm now.

Posted in Miscellaneous | Comments Off