Messy desktop? Use Fence!

By Erik Nyberg at January 12, 2010 15:58
Filed Under: Fence, Windows 7

A friend recommended Fence not that long ago so I have now used it for a while and I like it a lot!
With Fence it is very easy to organize your computer desktop and arrange things in to modern looking windows.

image

image

And if you give a presentation or if you for other reasons want to hide all items on the desktop you can just double click anywhere on the desktop which will then hide all the objects:

image

Double click again to show them.

Also, creating a new window is easy, just drag a rectangle whilst holding in right mouse button, give it a name and hit ok. That’s it!

There is a free version and a pay version which you both can download from here: http://www.stardock.com/products/fences/

It is supported on: Windows XP, Windows Vista, and Windows 7 and hardly use any system resources!

Windows 7 – Protect your data with BitLocker

By Erik Nyberg at October 06, 2009 14:50
Filed Under:

One thing in Windows 7 that I use frequently is the BitLocker functionality to protect my USB sticks. It is so easy to use and I don’t have to worry about what would happened if I someone knicks it (well, ignore serious hacker attacks).

BitLocker has actually been around since Windows Vista but Windows 7 and Windows 2008 Server R2 supports encrypting removable drives.

 This is how easy it is to protect your USB stick:

1. Insert your USB stick in to the computer

2. Right click on the USB drive in Windows Explorer and choose “Turn on BitLocker…”

bitlocker1

3. This opens up a wizard that you have to step through.

The first step let you specify if you want to protect your USB stick with either a password or a smart card. I just type in a password (could be anything as long it is complex enough) and hit “Next”.

bitlocker2

4. In the next step you have to specify a way of saving a recovery file to the disk. This helps you to access the data in case you forget the password you specified in step 3. So you can either save the recovery key on a file or you can print the recovery key. Then hit “Next” again.

bitlocker3

5. That's all you have to do. Just hit “” and then you are done! Easy enough right!

bitlocker4

bitlocker5

Now when you insert the protected USB stick in to your computer you are required to enter the password in order to get the data on the USB stick:

bitlocker7

 

You can also do more BitLocker stuff if you go in to the BitLocker section in the Control Panel:
bitlocker6


Just remember that you need to make sure that the computer you will use your USB stick with has to support BitLocker so don’t take it with you to an important meeting and then realize you can’t access your data.
Also remember that if a serious hacker wants your data – he/she can get it anyway! But at least it keeps most people away from your important data.
You can also as an IT admin apply various Group Policies to control the protection of your data in a better way.

More information:
Bitlocker on wiki: http://en.wikipedia.org/wiki/BitLocker_Drive_Encryption
Good YouTube video: http://www.youtube.com/watch?v=yyYo4IPcykA
BitLocker on Microsoft.com: http://technet.microsoft.com/en-us/windows/aa905065.aspx

Develop a simple Windows 7 map gadget using ESRI JavaScript API

By Erik Nyberg at September 16, 2009 11:59
Filed Under:

One new feature in Windows 7 is that your desktop gadgets can be placed anywhere on your desktop (not just to the sidebar). I created a simple gadget that displays a map from ArcGIS Server using the ESRI JavaScript API.

Even though this example is really simple it is quite easy to think of areas where it can be useful to have a little gadget map application on the desktop that does something clever.

So this is how you create a gadget for Windows 7:
1. Open up this folder %USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets in Windows Explorer.
Note: you can either create a user gadgets or global computer gadgets. If you want to create the latter one you open up this location instead: %SYSTEM_ROOT%\Program Files\Windows Sidebar\Gadgets

2. Create a folder called MapGadget.gadget in the Gadgets folder:
mapgadget

3. Create a html file called MapGadget.html and paste in the following simple HTML code:

<html >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=Unicode" />
        <title>Hello World</title>
        <style type="text/css">
        body
        {
            margin: 0;
            width: 300px;
            height: 300px;
            font-family: verdana;
            font-weight: bold;
            font-size: 20px;
        }       
        </style>
       
<link rel="stylesheet" type="text/css" 
href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.4/js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.4">
</script>
    <script type="text/javascript">
      dojo.require("esri.map");
 
      function init() {
        var map = new esri.Map("map");
        var tiledMapServiceLayer = new 
esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer");
        map.addLayer(tiledMapServiceLayer);
      }
 
      dojo.addOnLoad(init);
    </script>
 
    </head>
    
    <body>
    <div id="map" style="width:300px; height:300px; border:1px solid #000;"></div>
 
    </body>
</html>

The code is just plain HTML/JavaScript code that adds a tiled ArcGIS Server mapservice to the page.
This code is just copied straight of the samples on ESRI resource center.

4. Create an XML file called gadget.xml and paste the following code:

<?xml version="1.0" encoding="utf-8" ?>
<gadget>
  <name>Map Gadget</name>
  <version>1.0.0.0</version>
   <author name="Erik Nyberg"> 
    <info url="http://www.eriknyberg.net" />
  </author>
  <copyright>&#169; Erik Nyberg.</copyright>
  <description>Map Gadget is a simple example on how to create a map gadget.</description>
  <hosts>
    <host name="sidebar">
      <base type="HTML" apiVersion="1.0.0" src="MapGadget.html" />
      <permissions>Full</permissions>
      <platform minPlatformVersion="1.0" />
    </host>
  </hosts>
</gadget>

This XML file is just containing information about the Gadget such as who wrote it, where to get icon from, where the html file is located etc.

5. This is all we have to do in order for it to work. Now we just need to add it to the desktop. So right click on the desktop and choose "Gadgets":

gadgetdesktop

6. You should now see your gadget in the list and you can just drag it out anywhere you like on the desktop. Done!

gadgetlist

 

You have all the map navigation controls here such as mouse scrolling, keyboard arrows etc. And it works performance wise very well on my computer as well.

 gadget

 

This is just a simple example on how to get started writing a Gadget for Windows 7. You can go from here and do more advanced stuff like:
-Create a settings file so that the user can customize the gadget
-Obviously build more mapping functionality to the gadget (query data, track data etc)
-You should probably move the styling to an external css file and the scripts to an external JS file
-You can also use Silverlight in your gadget which is pretty cool!
-Add an icon to the gadget instead of the default one (this is very simple to do, look in the reference list below)
-Deal with permission/security
-Package and distribute your gadget

Find more information here:
MSDN – Windows Sidebar
MSDN - Gadget platform in Windows 7
MSDN – Part 1 tutorial
MSDN – Part 2 tutorial
MSDN – Part 3 tutorial
MSDN – User Experience Guidelines
ESRI – JavaScript API

About me..

My name is Erik Nyberg and I work as a GIS software developer in London UK.

Twitter: eriknybergNET
Email: erik[at]eriknyberg.net
LinkedIn

 

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

 

 

Page List