Tuesday, April 30, 2013

X-UA-Compatible for IE Older Browsers

I have used the X-UA-Compatible before, but I was not aware that by default the compatibility mode goes directly as far back as IE 7 rather than one off from IE 10 to IE 9.

After testing all the code, I clicked on the compatibility option and realize that, all my CSS Div tag float options at wrong positions.

I was a bit horrified that my code is broken even for the one off “IE 9” browser, but than I realize to open up the “Developer Tools” by pressing the “F12” key. It showed me that my default compatibility option is “IE 7” and not “IE 9”.

After researching few pages, testing multiple options, I came to agree on this meta tag. It has to be placed inside the “head” tag, otherwise it may not work well.

Basically I selected it to default to latest browser if possible (“edge”) or one off till it reaches “IE 8 Compatibility Mode”.

I have not tested if the versions needs to be placed from left to right in increment. For me it just makes it easy to update in future, like if I needs to add “IE 10” or “IE 11” in future.

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8;IE=8;IE=EmulateIE9;IE=9;IE=edge">

Friday, April 26, 2013

Firefox: Firebug: NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments

I started receiving this unknown error on Firefox’s Firebug developer tool, and for couple of hours, I could not figure out as to what this was, and I have a habit of switching gears and start working on something else if I hid road blocks in programming and when I looked closely at my script after some other work, I noticed that I had a variable defined twice, and strangely, because this issue was issue inside a function which was part of a jQuery Dialog and the function was attached to a button click function. All my try-catch functions were out the window and unable to capture this strange issue.

I thought this makes no sense, I have the programming helper plugins which will highlight, that I have defined a same name variable twice, but in this case, it seems those plugins fail to alert.

Try and Catch are good practices but they do not display clear messages specially when humans make silly mistakes Smile

Have a nice day!

Tuesday, March 19, 2013

Single Page With Protected Content

Today, I was working on a quick solution to secure content that will be only available for selected users. And with a quick search I came across the article by Jem on “Creating a Secure PHP Login Page”
http://girlswhogeek.com/tutorials/2006/creating-a-secure-php-login-page

The article is clear and easy to implement, with few tweaks, I was able to implement the quick solution to secure the content.

These mini projects which require totally different programming logic is always interesting, it’s fun to figure out on how to implement the task but than again what is search engines for Smile

Have fun programming.

SQL Saturday Detroit 2013

The SQL Saturday is a free one day training event for SQL Professionals. This was my first attendance in SQL Saturday event. Overall the event was action packed with lots of things new and interesting in the fields that I work in or am interested to work in. Not sure, how many or what features or technologies I will be able to apply in day to day operations or projects, but I gained lot of new knowledge.

I started off with Kevin Boles “Common T-SQL Mistakes”, even though I have worked with T-SQL for years, I felt the need to review the basics and sit through the common mistakes and see, if I am making any. The take away I got from this was to avoid “User Defined Functions” in store-procedures or queries as they tend to tax the hardware.

Second session I attended was the Dustin Prescott’s “Hacking SQL Server”, this seemed to be the most popular session of all the sessions I attended. The session was more about defensive measures rather than Hacking. Dustin mentioned about the popular products like “BackTrack” and “Kali Linux”.

I have attended some of the other sessions and one of the interesting fact was about what services NOT to run by default like “SQL Writer” and “SQL Auth”. SQL Writer is primarily for backup and unless a backup schedule is setup for automatic execution, there is no need for this service to run by default, it should be turned into a manual service.

The last session I attended before the price drawing, which I usually lose was, Colleen Morrow’s “So I started this blog…. now what?”. After all day of technical sessions, I was exhausted and it felt like a relief to sit in a non 100% technical session and besides all the other session were good to know but didn’t apply to my work, at least not yet.

Colleen’s session was very informative. Even though I have been blogging for a while, it’s nice to know the basics and common issues. Her agenda was “5 common roadblocks for new bloggers” and “5 ways to improve your blog”, and both of items seems to fill the gap that I feel are in my process of blogging.

Overall the SQL Saturday event was very informative and I am glad that I have attended it.

Wednesday, February 20, 2013

Spam Checking Tools and Tips: How to verify Newsletter Content

I have been recently assigned the task of verifying as to why our Newsletter is flagged as Spam. I am not a guy who knows the email marketing details, so I am learning as I go about reading this. Some have noted that I should avoid bounced emails and also look into double opt-in.

Interestingly many of the people on the list are people who receive our newsletter monthly. The issue also seems weird when the spam flag is being applied to the inboxes of people within the company as well.

Is there any way to know as to how the spam flag gets applied? Is it too many images, links or words or people just happen to report emails as spam even if they have opt-in to receive the newsletter?

I am reading up lot of blogs and articles, but nothing seems to giving me answers that I can report back and say this is it, correct this and the issue will go away.

Any advice?

Tuesday, February 5, 2013

How do I stop syncing a folder on Windows 8 Mail App?

I have setup my email on Windows 8 Mail app and I ended up clicking on get more emails on "All Mail" of a gmail account.

I would like to stop the syncing process of "All mail" as it shows the new mail account and it's irritating as not every mail is important and I don't want to feel the erg to click on the "All Mail" folder.

Anyone has any idea as to how to turn off or "unsync" the "Sync" feature of a folder in Windows 8 Mail App?

Thanks,
Wasay

Thursday, September 13, 2012

SQL Restore Dates

The below page gives a good example of DB Restored Log for all the databases from the database "msdb".

SQL Query from system database msdb to list Restore History of all databases

http://www.sqlusa.com/bestpractices2005/dateoflastrestore/