console.log Causing problems in Internet Explorer

Wow its been a long time since I have posted.

Today at Avella I found out that console.log() in my javascript was causing major problems on our site in IE. I use console.log() to debug javascript in chrome and firefox.

Upon commenting out the console.log()’s, the internet explorer display bug vanished. Here is the confusing part :

If you open the developer tools in IE the problem disappears, also if the cache is cleared the problem disappeared. However if you close and re-open the problem is present again. Overall very annoying and hard to track down.

As a rule remove or comment out all console logs before pushing to production.

irc.theiaian.com & hubot

I just setup irc.theiaian.com as an IRC server ( http://en.wikipedia.org/wiki/Internet_Relay_Chat ) and setup the github campfire robot ( hubot ) in my IRC server. It has been fun to setup and play with, my plan is to hack on it and come up with some funny additional functionality for my hubot.

To connect to the IRC server you will need an IRC client or to use a web based IRC client. On OS X I use Limechat. Try and pick a more modern IRC client so that it will render some of the images that hubot returns, that way you wont have to click on each link and view in a browser.

To connect :

  • IRC server : irc.theiaian.com
  • port : 6697
  • channel : #General

For additional help read over the IRC how to

Full list of current commands for hubot on irc.theiaian.com :

<keyword> tweet – Returns a link to a tweet about <keyword>
<user> is a badass guitarist – assign a role to a user
<user> is not a badass guitarist – remove a role from a user
animate me <query> – The same thing as `image me`, except adds a few
convert me <expression> to <units> – Convert expression to given units.
help – Displays all of the help commands that Hubot knows about.
help <query> – Displays all help commands that match <query>.
image me <query> – The Original. Queries Google Images for <query> and
map me <query> – Returns a map view of the area returned by `query`.
math me <expression> – Calculate the given expression.
mustache me <query> – Searches Google Images for the specified query and
mustache me <url> – Adds a mustache to the specified URL.
pug bomb N – get N pugs
pug me – Receive a pug
ship it – Display a motivation squirrel
show storage – Display the contents that are persisted in redis
show users – Display all users that knows about
translate me <phrase> – Searches for a translation for the <phrase> and then
translate me from <source> into <target> <phrase> – Translates <phrase> from <source> into <target>. Both <source> and <target> are optional
who is <user> – see what roles a user has
youtube me <query> – Searches YouTube for the query and returns the video

I will add to this list if I add any functionality! Come check out my hubot and chat with me @ irc.theiaian.com #General

Fixing mail send on home ubuntu server & residential internet connection

Since about November 12th of this year my server has been having trouble sending emails. I have been putting it off for long enough so I decided to start the fix. I did some initial digging around and using this command :”echo ‘this is a test’| mail -s test_email user@domain” and checking the /var/log/mail.log along with kickback messages.

I am not sure who started blocking me,comcast or google. Either way there is always a work around. This one is only intended for small scale email sending. The way I set mine up was to send though my domain’s google apps account, and ssmtp. It was much easier looking than the other methods I looked into using postfix or sendmail.

I used this walkthrough do get this done and it worked wonderfully : Ubuntu Send Email with ssmtp and Google apps or gmail

I need to get my code formatting css, and such setup so I can post some code..