Getting TypeScript, RequireJS, and Jasmine to play nice together in Visual Studio
Getting TypeScript, RequireJS, and Jasmine playing nicely together in Visual Studio turned out to be a bit harder than I had hoped.
SharePoint’s formula syntax can change depending on a sites regional setting
Sometimes very simple formulas like
=IF([Column1]<=[Column2], "OK", "Not OK")can result in the unhelpful “The formula contains a syntax error or is not supported” error message, even though the formula in the example is perfectly valid according to the documentation, it still wont accept it.
Windows 8 + Hyper-V does not diable speedstepping
After enabling Hyper-V on my laptop running Windows 8, I noticed that Task Manager and Resource Monitor always showed the processor as running at full speed, as if Speedstepping was suddenly disabled. This is however not the case. What is really happening is that Hyper-V is virtualizing the CPU for the host OS (Windows 8) as well. Opening up CPU-Z reveals the real clock speed and multiplier of the CPU.
Hope this helps.
How to: Different keyboard layout for each program in Windows 8
Here is a quick tip for all of us who write and program a lot in one language, e.g. English, but also write in one or more languages, in my case, Danish. It is easy to switch between installed keyboard layouts, just hit the
Windows Key + SPACE(in Windows 7 it is
ALT + LEFT SHIFT).
Computer running slowly – it might not be Windows’ fault – it could just be your CPUs thermal protection
Conventional wisdom says that when a PC starts to run slowly and angry screaming at the computer screen ensues, it is time to reinstall Windows or remove some of the crap-ware that’s been building up on the PC. However, it could be a hardware issue; it could be the computers cooling system that is unable to dissipate heat from the processor probably, causing the processors to lower its speed to 50% or more (see Intel’s description of this processor feature for more details).
Remember the FeatureId when creating a custom ListInstance in SharePoint 2010
When creating a list instance manually in a SharePont 2010, it is important to remember to add the right
FeatureIdattribute to the ListInstance element, if the
TemplateTypeattribute points to a list template which is not in the same feature as the one you are creating the list instance in. If you forget, you will get some very vague error messages.
SharePoint 2010: Easy registration of Event Receivers to a Content Type during Feature deployment
When registering a custom event receiver to a content type during a feature deployment using the SPEventReceiverDefinition class, you need the full assembly name and the full class name. However, during development, it can be tedious to keep track of the assembly names, so to make things easier we can just grap it using the typeof operator. This small reusable helper method makes this easy:
Get background image to resize with browser window using CSS and jQuery
Using a photo as a background for a web page can look pretty good, but making that photo fill out the entire browser window no matter its size and proportions is not straight forward, if you also want to keep the photo in its original aspect ratio. Not clear what I mean – check out the demo page to see the effect in action (try resizing it).
CSS trick: Semi transparent CSS background that works in all browsers
This simple CSS class will create a semi transparent background, letting whatever is underneath the element shine through. It works across all browsers, that means Internet Explorer 6.0 as well. The newest browsers will use the
background:rgba(0,0,0,.75);setting, the rest (IE6-IE8) will use the gradiant filter to achieve the same effect.
Why platforms should be the pillar of every product
A few days ago Googler Steve Yegge accidently posted an internal memo to the world about Google’s struggles with building products. As embarrassing for Steve as it might have been (it has now been taken of his Google+ page), it is a very interesting read that gives a good candid insight into a two of the biggest companies in our industry, Amazon and Google. Steve compares Google’s product-first to Amazon’s platform-first approache; he argues strongly for the platform-first approach, for eating your own dog food, for not being so arrogant as to try to deliver a product that is right for everyone, and why a platform cannot be developed as an afterthought.