Posts
-
Quick and simple Drupal upgrade using FTP only
Running Drupal on a shared host usually imply you only have access to the webserver through FTP, i.e. no Drush or SSH to ease the upgrade process. The official upgrade instructions assumes you have shell access to your server.
-
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 isALT + 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
FeatureId
attribute to the ListInstance element, if theTemplateType
attribute 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.