Synaptics Touchpad – Making three finger swipe control back and forward in browsers

For some reason the only three finger swipe gesture that shows up in the Synaptics driver is for switching apps.
I want three finger swipe to be forward and back in browsers.

I found the following instructions:

Open Regedit and Navigate to:
HKEY_CURRENT_USER
SOFTWARE
Synatics
SynTP
Touchpadxxxxx
3FingerGestures

For making back and forward swiping work in browsers:
ActionID1 = 5c
ActionID3 = 1c
ActionID5 = 5d
ActionID7 = 1c

Reboot.  The driver will still show “Switching Apps” as the three finger gesture but it forward and back start working.

Remove Creative Cloud Files from Windows Explorer


I’ve used Photoshop for years and have been using Lightroom.  Both are great products but lately Adobe has been including a link to Creative Cloud Files in Windows Explorer.  I’m not even sure what use it is. Maybe it’s useful for some people but I find it annoying.  Here’s how you remove the link in Windows Explorer.
Run regedit
Find “Creative Cloud Files”
Look for System.IsPinnedToNameSpaceTree

It’s value is most likely set to 1.  Change it to 0.
Close and re-open Windows Explorer. Creative Cloud Files should be gone.
You might have to reboot.

 

Install prompt on Windows Server 2008 remote desktop launching Outlook 2013

Office-2013-please-wait-while-windows-configures-microsoft-office-64-bit-components-2013

Every time Outlook 2013 is launched on a Windows Server 2008 R2 server through remote desktop this installation screen pops up. I tried uninstalling Office and re-installing it to no avail. After some poking around forums and web searches I ran across a suggestion to install Windows Search under the File services role. This fixed the issue. Open Server Manager and right click File Services under Roles, select add role services and check the Windows Search Service.

Windows 10 disable the lock screen

Windows_10_Logo.svg

I love Windows 10. From the time it was released I’ve felt it was what Windows 8 should have been (and I actually liked Windows 8). There is one feature that’s driven me crazy though. That’s the lock screen. It never stays on what I set it to. You can set it to Windows Spotlight, a single image or slideshow and no matter what machine I use or which of the three settings I pick it changes. Apart from this I never really understood the need for the lock screen.  It just seemed like a way to make you have to push the space button more than needed. So here’s how to turn it off.

Run Regedit
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
Make a new key and call it Personalization
Make a new DWord 32 Bit Value
Name it NoLockScreen and set it to 1
Reboot

No more wearing out your space bar and no more pictures that don’t stay on what you want them to stay on.

PS. to turn it back on change the value to 0.
Alternatively you can download this text file and rename it to .reg and run it. But if you are like me and don’t trust the internet just do it the manual way above.

Based off instructions found here.

Windows 10 bug – Can’t change IPv4 properties on VPN connection

Capture
For some reason currently when you click the properties button on the IPv4 protocol on a VPN connection in Windows 10, it doesn’t do anything.
I usually go in there and uncheck the “Use default gateway on remote network” setting.
That way my internet bound traffic goes out on my connection and only the traffic meant for the network I’m connected to goes through the VPN connection.
The first computer I tried to make that change on made me think it was just something buggy with that machine. After trying to setup a VPN connection on another computer and getting the same results I figured there was something else going on.

Thankfully you can still change the setting through PowerShell

You can run get-vpnconnection to list your VPN connections and get the name then to set the Gateway setting:

set-vpnconnection -name “Your VPN tunnel name” -SplitTunneling $True

Source: Mike McGruire’s blog

VB.net If then Else with a list of strings

Jpeg

In SQL server you can do an easy exclude or include list by using an in statement.
So you can do:

Select * from someTable where somecolumn in (‘somestring1’, ‘somestring2’, ‘somestring3’, ‘somestring4’)

So you only get records where the contents of somecolumn are in the specified list of strings.
I wanted to do something similiar in VB.net.
You can use an if then or statement but it can get messy.

If someStringToCheck = “somestring1” or someStringToCheck = “somestring2” or someStringToCheck = “somestring3” or someStringToCheck = “somestring4” then
…Do something blah blah…
end if

This works but what if you have a list of 20 strings you want to check for?
Through some internet searching I found this post on stackoverflow.com and came up with the following:

Dim someList = New List(Of String) From {“somestring1”, “somestring2”, “somestring3”, “somestring4”}
If someList.Contains(someStringToCheck) Then
…Do something blah blah…
else
…Do something else blah blah…
end if

It seems kind of backwards but it takes your list of strings and determines if the string you fed it is in that list.  If so do something or if not then do something else.

  • Aperture: ƒ/2.4
  • Camera: Venue 8 7840
  • Taken: 7 April, 2015
  • Focal length: 2.94mm
  • ISO: 37
  • Shutter speed: 1/85s
  • Title: Jpeg

How to sort DirectoryInfo.Getfiles array

I have an Intranet page that looks at a folder of files and lists them out.  It uses io.directoryinfo.getfiles to get the list of files but there wasn’t anyway to control the sorting.  By default it was sorting ascending but i wanted it reversed.  Here’s what I had at first:

Dim di As New IO.DirectoryInfo(Server.MapPath(“FolderofFiles”))
Dim aryFi As IO.FileInfo() = di.GetFiles(“*.pdf”)
Dim fi As IO.FileInfo
For Each fi In aryFi
..blah blah loop
Next

I tried to add Array.Sort(aryFi) but that resulted in an error:
“At least one object must implement IComparable.”

So after some internet searching I came up with the following based on a post on stackoverflow.com

First you have to create an IComparer class:

Private Class FileNameComparer
Implements System.Collections.IComparer
Public Function Compare(ByVal info1 As Object, ByVal info2 As Object) As Integer Implements System.Collections.IComparer.Compare
Dim FileInfo1 As System.IO.FileInfo = DirectCast(info1, System.IO.FileInfo)
Dim FileInfo2 As System.IO.FileInfo = DirectCast(info2, System.IO.FileInfo)
Dim Filename1 As String = FileInfo1.FullName
Dim Filename2 As String = FileInfo2.FullName
If Filename1 > Filename2 Then Return -1
If Filename1 < Filename2 Then Return 1
Return 0
End Function
End Class

Then use the comparer to sort:

Dim di As New IO.DirectoryInfo(Server.MapPath(“Folderoffiles”))
Dim aryFi As IO.FileInfo() = di.GetFiles(“*.pdf”)
Dim comparer As IComparer = New FileNameComparer()
Array.Sort(aryFi, comparer)
Dim fi As IO.FileInfo
For Each fi In aryFi
..blah blah loop
Next

The comparer I tweaked sorts the files by their filename in a descending order.  You can reverse the Return -1 and Return 1 to get them into ascending order.
Also, if you would like to sort the files by creation date you could use this comparer:

Private Class DateComparer
Implements System.Collections.IComparer
Public Function Compare(ByVal info1 As Object, ByVal info2 As Object) As Integer Implements System.Collections.IComparer.Compare
Dim FileInfo1 As System.IO.FileInfo = DirectCast(info1, System.IO.FileInfo)
Dim FileInfo2 As System.IO.FileInfo = DirectCast(info2, System.IO.FileInfo)
Dim Date1 As DateTime = FileInfo1.CreationTime
Dim Date2 As DateTime = FileInfo2.CreationTime
If Date1 > Date2 Then Return 1
If Date1 < Date2 Then Return -1
Return 0
End Function
End Class

Then you’d change:

Dim comparer As IComparer = New FileNameComparer()
to
Dim comparer As IComparer = New DateComparer()

Page 1 of 912345...Last »