jQuery 2.0 drops support for legacy IE (IE6, IE7, IE8)

jQuery upgrades may not be as reverse compatible as you may think. Starting from version 2 of jQuery, IE6, IE7 and yes also IE8 will no longer be supported. These are now considered legacy browsers. You will need to stop any upgrades to jQuery until your SLA states that IE8 is no longer supported and remain in jQuery 1.9.

Some of the reasons for not supporting IE8 and before:

- Remove all the code clutter in the jQuery library with code that has to deal with IE browser compatibility issues between IE6, 7 and 8 and the newer IE versions, the latter being more compliant.
- IE6 and 7 may have fallen to below 2% generally, that does not mean that that is true for your client base. In the oil and gas industry some clients are years behind and you may have 50% or more of clients remain on IE8 or older for the foreseeable future.
- The difference between browser engines has become almost negligible, as it should be. So one of the greatest goals of jQuery to abstract that out for developers is no longer needed, for most part anyway. 
- CSS3 features like animations basically replace the need for jQuery’s 2.0 animations and effects.

If the need is still there to support IE8 or before, but you also want to upgrade, then use conditional comments:
<!--[if lt IE 9]>
    <script src="jQuery-1.9.0.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
    <script src="jQuery-2.0.0.js"><</script>
<!--<![endif]-->

LINQ Contains Case Insensitive

Goal: Search for content in the database via LINQ to ENTITIES or LINQ to SQL that is case-insensitive (case-agnostic).

Example:

var con = BusinessContext.Create();
var owners = con.Shipments.Where(s =>                                       
                                          s.Dispatches.All(x => x.DriverLBCompany.Contains("(exempt)")
                                          ).Select(x => x);

This will fetch all dispatches where the DriverLBCompany contains the word “(exempt)”. You do not have to be concerned about the case as SQL Server is case-agnostic when it performs filtering. The sql being generated by this statement is:

FROM [dbo].[Shipment] AS [Extent1]
WHERE  NOT EXISTS (SELECT 
    ….

    FROM [dbo].[Dispatch] AS [Extent2]
    WHERE (( NOT ([Extent2].[DriverLBCompany]
    LIKE '%(exempt)%'))
    OR (CASE WHEN ([Extent2].[DriverLBCompany] LIKE '%(exempt)%')
    THEN cast(1 as bit) WHEN ( NOT ([Extent2].[DriverLBCompany] LIKE '%(exempt)%'))
    THEN cast(0 as bit) END IS NULL))
)

Top 10 Browser Productivity Tips

You don’t have to be a geek to be a productive browser user. The tips below have been selected by actions users take most of the time picture007

to navigate a web-site but use long-standing keyboard or mouse actions to get them done, when there are keyboard short-cuts you can use instead. Since you hands are already on the keyboard it is almost always faster to sue a keyboard shortcut to get something done that you usually used the mouse for. For example right-clicking on something to copy it and then doing to same for pasting something is very time consuming, keyboard shortcuts have been created that simplify the task. All it takes are a few memory brain cells to remember them.

Here are the tips, in no particular order:

 

Tip 1

Hold down the spacebar on your keyboard to page to the end of your web page rather than using your mouse. This is really a slow way of doing it. If you want to page one page at a time, hit the spacebar once, and again to page again. But if you want to page all the way to the end of the web page simply hit Ctrl+End (that is hold down the Ctrl key and hit the End button on your keyboard).

To get to the top of your web page, simply hit Ctrl + Home to go all the way to the top of your web page.

Tip 2

Where are my downloads? Some folks run downloads again-and-again because they do not know where the last one went and they do not see the popup, or browser note on their web page in the footer, etc. Simply hit Ctrl+J. Works in most browsers.

Tip 3

Selecting a US state from a drop down box. Don’t use the mouse, takes just way too long to scroll. When you tab to the drop down box or click on it with your mouse, simply hit the first character of the state and it will be selected. For Texas for example hit the letter “T” twice on your keyboard to get to it. The same concept can be applied to any drop down box that is alphabetical or numerically sorted.

Tip 4

Fixing spelling errors. All modern-day browsers support this now. You see the red wavy lines underscoring a word, yes it is a spelling error. How do you fix it? Don’t overtype it or try and fix it manually, fist right-click on it and a list of suggestions comes up. If it does not show up, like my name “Renso” and you know how to spell your name as in this example, look further down the list of options (the little window popup that appears when you right click) and you should see an option to “Add to Dictionary”. Be warned, when you add it, it only adds it to the browser you’re using’s dictionary. If you use Google Chrome, Firefox and IE, each one will have their own list.

Tip 5

So you have trouble seeing the text on the screen. Or you are looking at a photo, for example in Facebook. You want to zoom in to read better or zoom into a photo a bit more. Hit Ctrl++ (hold down Ctrl key and hit the plus key – actually it’s the equal key but it is easier to remember that it is plus for bigger). Hit the minus to zoom out. Now you can’t remember what the original size was since you were so excited to hit it 20 times, or was that 21… Simply hit Ctrl+0 (that is zero) and it will reset it to the default.

Tip 6

So you closed a couple of tabs in your browser. Suddenly you remember something you wanted to double-check something on one of the tabs, you cannot remember the URL ad the tab is gone forever, or is it? Simply hit Ctrl+Shift+t and it will bring back your tabs one by one each time you click the T. This has also been a great way for me to quickly close some tabs because I don’t want my boss to see I’m shopping and then hitting Ctrl+Shift+t to quickly get it back and complete my check-put and purchase. Or, for parents, when you walk into your daughter’s room and you see she quickly clicks and closes a window/tab in here browser. Not to worry my little darling, daddy will Ctrl+Shift+t and see what boys on Facebook you were talking too…

Tip 7

The web browser is frozen on your PC/Laptop/Whatever, in this example it may be your Internet Explorer browser. I don’t mention Firefox or Chrome here because it probably never happens in their world. You cannot close it, it won’t respond to anything you have done s far except for the next step you are about to take, which is throw your two-day old coffee on your keyboard. This happens especially on sites that want to force you to complete a purchase order. Hit Ctrl+Alt+Del on your keyboard on any version of windows, select TASK MANAGER. In the  First Tab, which is the Process Tab, look for the item in question. In this example you should see Internet Explorer. Right-click it and select “End Task”. It will force the thread out of memory and terminate that process. You can of course do this with any program running under your account.

Tip 8

This is a personal favorite of mine. To select words in the paragraph without using the mouse. You don’t want to select one character at a time like when you use the Ctrl+arrows as it can be very slow if you want to select a lot of text. You also want to select whole words. Simply use the Ctrl+Shift_arrow (right or left depending which direction you want to go.

Tip 9

I was a bit reluctant to add this one, but being in the professional services industry still come across many-a-folk that simply can’t copy-and-paste them-all text or images that reside on them screens, y’all. Ctrl+c to copy and Ctrl+v to paste it. Works a lot faster than using the mouse. You may be asking: “Well why in the devil did they not use Ctrl+p for paste…. because that is for printing. This is of course not limited to the browser world, it applies to almost any piece of software running on PC or Mac. Go try it on an image on your browser, right-click it and select copy. Open a word document and Ctrl+v to paste the image in there. Please consider copyright laws.

Tip 10

Getting rid of annoying ads. Now this only works when you load a web page, meaning when you get back to the same page later you will have to do this again and you will need to learn a tool to do it, WELL WORTH IT. For example, I use GrooveShark to listen to music but I don’t like the ads they show. Install a tool like Firebug for Firefox or use the Ctrl+Shift+I on Chrome to bring up the developer toolbar. Shows at the bottom of the page. With Firefox, once you have installed Firebug as an add-on, a yellow bug should appear on the top right-hand-side of your browser, click on it to display the developer toolbar. You will need to learn how to use it, but once you know how to select an item/section on the window (usually just right-click the add you don’t want to see and select “Inspect Element”, the developer toolbar will appear (if not already there)) and then simply hit delete and it will remove the add from the screen. If you don’t know HTML you may need to play with it a bit, but once you understand how it works can open up a whole new world for you on how web pages actually work.

If you can think of any others that have saved you a ton of time please let me know so I can add them to a top 99 list.

Top 10 Cloud Backup Services

Although there may be many reasons to keeping your work documents safe, your personal files, images and videos in a safe place, it is also becoming more-and-more important to easily share those files and be able to sync them between devices like PC, MAC, mobile devices and external hard drives. There have been many advances in this space and a plethora of backup solutions to choose from. It can be difficult to make a selection between all of the options and find the one (or more) that fits your needs best. 

Here are the top ten that are available as of this post:
  1. Backblaze
  2. CrashPlan
  3. Carbonite
  4. SpiderOak
  5. IDrive
  6. Mozy
  7. SOS Online Backup
  8. Bitcasa
  9. AltDrive
  10. SugarSync
I found this great blog post the summarizes the pros and cons for you.

Carbonite vs Dropbox: Pros and Cons

You may have different goals when we talk about Carbonite and Dropbox. The former was really just a backup solution and did not support file sharing and syncing, which the latter has been known for. Carbonite has invaded and in some ways overtaken Dropbox file sharing and syncing abilities.

Before I say too much, here is a great post by Lee from CloudStorageBuzz: 

In  my opinion if your data is below 2GB you don't have to fork out anything. However, remember that Carbonite is a backup solution where you can schedule backups of you data on your PC or server. Dropbox is seentially just a file sharing and syncing solution.

Let me know what your experiences are.
Twitter