My name is Ayres Narita, I'm a web developer & designer for as-ter-isk... Here you can find some of my ideas, thoughts and even send me a note...

Our brand new site Som13

27 November, 2009

Take a look on our brand new website Som13.com

Be the first to comment on this article, click here to read more...

Favicon "ico" format on photoshop

30 March, 2009

I just found this nice plug-in for PhotoShop that enables you to save images in “ico” format.

It makes dead ease to make favicon.ico, that little icon resting on the left side of your browser’s address bar.

1 comment, click here to read more...

Get ImageMagick with PNG and JPG delegates installed on mac OSX Leopard without using MacPorts

21 March, 2009

I assume everybody knows how to install ImageMagick usin MacPorts.

MacPorts is a fantastic tool to easily install software in your mac, but sometimes the project you are working on requires the latest feature only available on the latest version of your software or library.

Most of the times MacPorts will have it, but… you better know how to build your software from source just in case.

Be the first to comment on this article, click here to read more...

Internet Explorer error validating file type, when uploading images using paperclip ( IE7, IE6 mine-type )

12 March, 2009

I assume that everybody already knows about “Paperclip” and also the “validates_attachment_content_type” method to validate the file type against the mine-type sent by the browser.

The problem starts when your customer calls you saying that he/she is not able to upload his images, and an error “Image is not one of the allowed file types” pops every time he/she tries.

Be the first to comment on this article, click here to read more...

Brazilian Portuguese imput with Mac OSX keyboard layout

7 March, 2009

This past week, I got a Brazilian customer and consequently I had to write the text in Brazilian Portuguese.

Because characters as “~” and “รง” between others are impossible to achieve by usual means, I made a little list of useful combination keys, to make it a little easier next time I need it.

Be the first to comment on this article, click here to read more...

Problem sending emails with the latest Rails at SliceHost and DreamHost

2 March, 2009

After upgrading my base application to Rails 2.2.2 I have notice 2 little things blocking me from sending emails while in production environment.

1 comment, click here to read more...

Paperclip on Mac OSX Leopard development environment fails silently when processing images

5 February, 2009

I had a very intriguing error using Paperclip on my development environment.

In my case I had, Mac OSX Leopard, Passenger and ImageMagick installed using MacPorts.

Every time I asked ImageMagick to crop my images on my model, Paperclip would only save the original version of the image and fail to save the cropped copy.

The intriguing part was that examining the logs, nothing related to the error could be found.

1 comment, click here to read more...

String manipulation with Ruby on Rails

15 January, 2009

I made a little list of the methods that I use the most, to serve as a quick guide to string manipulation for RoR.

I hope it can help you too…

1 comment, click here to read more...

How to get rid of the outline dotted border around your links

10 December, 2008

Have you ever notice? Sometimes when you have a logo on the top of your website that also serves as a “home button”, and when you click on it, a one pixel dotted border wraps around it?

That usually does not bother the regular “Joe”, but because your “OCD” can’t be easily controlled, it gets right under your skin.

Besides the looks, there is also that time you use a link to trigger an AJAX action, and there it is again, ruining your so perfectly designed website. ( some drama )

1 comment, click here to read more...

Compress Javascript XML CSS HTML before delivering the content on DreamHost

1 December, 2008

Gzip your content helps you achieving the Yahoo Performance Guidelines or Best Practices for Speeding Up Your Web Site. ( YSlow )

Be the first to comment on this article, click here to read more...