Posts

Showing posts from 2013

Google maps are slow! //well not exactly :)

Image
The new Google Maps are here. New, improved maps, it's an eye candy! But as you may have noticed if your machine isn't powerful enough the google maps is going to be slow and sluggish. The reason for this is that the new google maps use WebGL technology to render everything locally on the browser. WebGL tries to use your GPU to render things. If your browser does not support WebGL or your GPU isn't powerful enough then you can use Google Maps Lite mode. In order to enable Lite mode use the following link:       https://www.google.com/maps/preview/?force=canvas To go back to full mode use this link:       https://www.google.com/maps/preview/?force=webgl source: Google Help Update 25/10/2013 Google has added a message in their help page that they use by default Lite mode in Firefox: "We currently default to Lite mode on Firefox while we work on improving the 3D experience."

Convert Outlook EntryID to EwsID Exchange Web Services

I found myself trying to find an email in Exchange the other day, based on the EntryID I could retrieve from the email in Outlook (Exchange account). I was using Exchange Web Services EWS to access the mailbox the email was stored in. In EWS you can retrieve an item by providing its ID Dim item As Item = item.Bind(service, New ItemId(entryid))   Well quickly I found out that the EntryID of the email in Outlook was not what I wanted. After some reading I discovered the ConvertId function that converts ids from one format to another. The available formats are  EntryId EwsId EwsLegacyId HexEntryId OwaId StoreId   So I went on to do the obvious, convert my ID from EntryId to EwsId. I wish! Microsoft.Exchange.WebServices.Data.ServiceResponseException "The specified object was not found in the store." was what I got to my surprise! What actually was wrong was that the EntryID was not in EntryId format but i n HexEntryId format . The code that gets the job don

Color picker extension for Visual Studio CSS editor

Image
Well I have been looking for this for quite some time! No more wondering which color is #808080 or going outside VS to find/convert a color. devColor is a Visual Studio extension that " underlines hex/rgb/named colors in stylesheets and XAML files with the correct color. It also includes a color picker. " Download it from here .

Freeze panes in BO Webi report like Excel

Image
Since the design of my first BO report a need kept coming up. The need for freeze panes. When there is a table that doesn't fit in the screen and you start scrolling, the moment the headers disappear you lose track of your data and start scrolling up and down, left and right again and again to see those headers. Well here it is what you need to do to add freeze pane capabilities to your report. For this example we have the crosstab table of the screenshots below: Headers disappeared The logic is quite simple. With the help of javascript we are going to move headers accordingly to the user's scrolling so as the user thinks the headers are pinned to the screen while the body of the table is moving. The problem is that if we see the structure of the crosstab it is actually an html table which means that we can not move header cells independently from body cells. HTML structure of the crosstab So we have to break the crosstab down to three independent

How to inject javascript into a Webi report

Image
Well it's quite easy! Let's say we want to display a message to the user every time he opens the report. Step 1 The javascript is easy Step 2 We open the document and add a blank cell somewhere in the report Step 3 With the blank cell selected we go to Properties --> Display --> Read cell content as... and select HTML. By doing this we tell BO to treat whatever we write inside the blank cell as HTML. By default it treats it as it was simple text. Step 2 and 3 Step 4 We select the blank cell and write to the Formula Editor: <script type="text/javascript">alert("Hello injection!!!");</script> Step 5 Then we press the validate button and save the report. Step 4 and 5 Step 6 Open the report (view) and the message we wrote in javascript appears! Aesthetic Tip Select the blank cell and remove the borders in order to make it "invisible" to the user's eye.

Windows updates KB2656351 and KB2600217 keep coming up in Windows Update

Image
The last 3 weeks 2 windows updates "Security Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64" KB2656351 and "Update for Microsoft .NET Framework 4 on XP, Server 2003, Vista, Windows 7, Server 2008, Server 2008 R2 for x64" KB2600217 kept coming up in Windows Update even though it said they were installed successfully. That was really frustrating! Those 2 had to do with .NET 4 so I even did a repair but with no luck. They kept coming up. Finally I found the solution in this forum thread . Basically what I had to do was:      - Uninstall the .NET 4 with the  help of  .NET Framework Cleanup Tool      - Install .NET 4 again      - Install windows updates Before you start: In some post I read that maybe antivirus may be meshing up with the installation of the upgrades. So deactivate your antivirus as a precaution before you start this procedure. I had Spybot Search & Destroy removed from my

Get full capacity from Raspberry Pi SD card

Image
I am the proud owner of a Raspberry Pi  ( Wikipedia ) :). After I installed and played for some time with Raspbian  I wanted to use my 8 GB SD card in a Windows laptop. So I connected the SD card to my Windows laptop which got me a message telling me to format the card. And that is what I tried to do. But to my surprise I could only select 64 MB capacity in the format program! Where was the rest of my card?!!! After some googling I found out that this was caused by the installation of Linux. Linux uses different file systems (ext2, ext3 etc) than Windows and creates its own partitions which Windows can not see. Only the 64 MB FAT32 partition is seen by Windows. So how do you get back the full capacity of your card? What you have to do is:      - Clean any partition information from the card using diskpart.      - Use SD Formatter to low format the card Instructions Step 0 This is the most important step of all! BE VERY CAUTIOUS MISTAKES COULD LEAD TO CO