Update on gps device

Working with radians today.
Small updates on the code for the gps device that I’m constructing.

Posted in News | Comments Off

OWA: Blocking Microsoft Internet Explorer

Internet explorer has a leak, and now you don’t trust it for people to logon to your OWA. (Outlook Web Access).
You may want to block OWA to be used with Internet Explorer.

To achieve this, I did the following:

I changed logon.aspx in the ClientAccess\Owa\auth diretory on the OWA server. I added these 5 lines as the first 5 lines of the logon.aspx page.

<script language="JavaScript" type="text/JavaScript">

if (navigator.appName == "Microsoft Internet Explorer") { 
  document.location = "https://webmail.yourdomain.com/owa/auth/ie_reject.aspx"; 
};

</script>

Basically, this points any browser that advertises itself as Microsoft Internet Explorer to the page: ie_reject.aspx (in the same directory ‘auth’ ).

This page has a picture on it called iewarning.jpg, that you also place in the same directory ‘auth’.

The page contains code that looks like this: ie_reject.aspx

The iewarning.jpg looked something like this.

example-owa

example-owa

People are given the chance to click the links and download and install a safer browser, while giving a feel of what used to be the normal OWA page.

For the looks I just slapped in the logo and text as an image for mozilla and chrome:

Hope this helps you.

Update:

IE 11 didn’t get detected, Microsoft has changed user agent string in IE11, so you should use the following javascript code instead:

( so, forget those 5 lines as the first 5 lines in logon.aspx, but put this on top there instead. )

<script type="text/JavaScript" language="JavaScript">
function getInternetExplorerVersion()
{
  var rv = -1;
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  else if (navigator.appName == 'Netscape')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
if (getInternetExplorerVersion() != -1) { document.location = "https://webmail.domain.com/owa/auth/ie_reject.aspx"; };
</script>
Posted in News | Comments Off

Ricoh and LDAP with Active Directory

Ricoh Multifunctionals working with LDAP to an Active Directory are fun!

When it works.

I ran into a problem with Ricoh Multifunctionals and the connection to an LDAP server.

If you do too at some point run into trouble setting up these printer-scanner-fax-whatnots, make sure you check the following:

- Set a DNS server, better, set two.

- Create a domain, first entry is the descriptive name of the setting, second the ip address of a DC, third, the name of your windows domain.

Not setting a DNS server makes the check on LDAP fail for some reason, even if you connect to an IP address!

Specify your LDAP location (where to search) in your Active Directory such that it looks like the following:

OU=Users,DC=DOMAIN,DC=COM

Don’t use “-marks.
Don’t use spaces.

Last, you may want to change the search setting ID from cn into displayName so it can look up names in the directory.

Something like this:

ricoh

ricoh

This should do. I hope that perhaps this helps you.

Posted in News | Comments Off

Currently working on a GPS device

Why not build your own GPS device?

Apart from the time and effort it costs to build something [like this], the hardware is cheaper than buying a GPS device in a shop (depending on what you would want in a GPS device ofcourse).
Currently I do not plan to be able to use, read/display maps on screen, but rather work with coordinates, speed and bearing to get you where you want to be.

The components I use are: atmel atmega1284p, an oled display, serial GPS module.

I want this gps device to be:
- fast
- lower power
- simple to use

I will keep a project page here!

Posted in avr, gps, Hardware, Programming | Comments Off

Windows 2008 R2 Server – Windows Update

Nice, Windows Update.

Just for your information, setting a proxy server for windows updates goes with:

netsh winhttp set proxy proxy-server:<port-nr>

Had some problems on a fresh Windows 2008 R2 server, so I deleted the whole Windows Update registry key, deleted the datastore, set the proxy and it was fixed.

Process is as follows:

(Disclaimer: you’re on your own)

net stop bits
net stop wuauserv

Delete datastore:

del %systemroot%\SoftwareDistribution\DataStore

Remove registry key (whole):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate

Set proxy again (in my case I used a proxy):

netsh winhttp set proxy proxy:8080

Start services again:

net start bits
net start wuauserv

Hope this helps you, good luck.

Posted in News, Update, Windows | Comments Off

Windows, VMware virtualisation & networking hardware

When you’ve just virtualised a hardware server to a VMWare environment, and you have trouble getting networking to function again, try the following:

Log in as admin, and open cmd, enter the following commands:

set devmgr_show_nonpresent_devices=1 
devmgmt.msc

Make sure you select “Show hidden devices” option in the “View” menu.

Now you go about deleting all grayed out devices. This tells the windows kernel it shouldn’t look for this hardware and certainly not try to load a driver for it.

You may, or may not need to manually specify the same IP address the server had using the netsh command, if your network services are still inaccessible, depending on your setup.

netsh interface ip set address name="Local Area Connection" static 192.168.100.1 255.255.255.0 192.168.0.1 1
Posted in News, VMware | Comments Off

Convert is cool once more

Got some PDF’s from a customer today.
I need to convert these into images, since the program I use for wifi measurement does not accept PDF’s.

Found the free solution of course, using linux.

convert -density 300 -trim test.pdf -quality 100 test.jpg

Always funny to see how … magical … the shear amount of options is for the cmd ‘convert’.

Found at http://stackoverflow.com/questions/6605006/convert-pdf-to-image-with-high-resolution

Thank you stackoverflow.com!

Posted in linux, News | Comments Off

New timelapse added

Just today, out of the window.

http://www.youtube.com/watch?v=ufk6kD60WZM

Created using a gopro hdhero, a lot of jpg pictures of 2592×1944 pixels and the commandline: mencoder mf://*.JPG -mf fps=25 -o output.avi -ovc x264 -x264encopts bitrate=3000
Posted in News, Timelapse video | Comments Off

New timelapse added

Going on holidays in La Palma ensures that you have stunning views everywhere.

See http://www.tinkerist.com/?page_id=1117

Posted in News, Timelapse video | Comments Off

Timelapse picture at Ohm2013

When you make a timelapse, you take a lot of pictures, glueing that together to create a movie/film.
You can also take a few vertical lines from each picture, to create a timelapse picture :) (with the toilet rooftop being the least interesting feature though.)
Thanks Zevv, (do you have code to show?)

panorama timelapse

panorama timelapse

Posted in News | Comments Off