Wi-Fizzle.com - Putting the fizzle in Wi-Fi since 2005 .. (yes, this was a poor choice for a domain name)

March 02, 2010 - June 11, 2010

< Previous Articles >< Next Articles >
Posted by dandriff on Friday June 11, 2010@04:19PM
Posted by dandriff on Friday June 11, 2010@09:30AM

<a href="http://wi-fizzle.com/recently_bookmarked_june2010.html">Recently Bookmarked - June 2010</a>


Posted by dandriff on Wednesday June 02, 2010@05:13PM

So I really didn't want to remember an insane password to connect to my OpenVPN, and I don't have the luxury of controller the certificate signing, meaning that I can't create a signed key certificate file to use.

Disclaimer: I realize the solution described in this post is not ideal, but IMO it's better than keeping the password in a plain-text file on the desktop (like my boss does).

AutoHotkey can be found here.

AHK Script:

 #Persistent
 SetTimer, EnterAuth, 250
 return
 
 EnterAuth:
 Process, wait, openvpn-gui.exe, 2
 If %ErrorLevel% = 0
 {
 Run, C:\Program Files (x86)\OpenVPN\config\shortcut.lnk
 Sleep, 2000
 }
 IfWinExist OpenVPN - User Authentication
 {
 ControlSetText, Edit1, {USERNAME}, OpenVPN - User Authentication ahk_class #32770
 ControlSetText, Edit2, {PASSWORD}, OpenVPN - User Authentication ahk_class #32770
 ControlSend, Edit1, {Enter}, OpenVPN - User Authentication ahk_class #32770
 ExitApp
 }
 return

Where {USERNAME}/{PASSWORD} get replaced by your OpenVPN username and password, and the shortcut.lnk is a shortcut to openvpn with the connect command, i.e.:
 "C:\Program Files (x86)\OpenVPN\bin\openvpn-gui-1.0.3.exe" --connect my-openvpn-config.ovpn

I then compiled the executable and added a scheduled task to run after user logon to run the executable and trigger OpenVPN to launch. It works great.


Posted by dandriff on Tuesday June 01, 2010@01:26PM

Argleton, the imaginary town in Google maps.


Posted by dandriff on Tuesday June 01, 2010@01:02PM

Here is a website with some /really/ nice vim plugins! Very worthwhile.


Posted by dandriff on Friday May 28, 2010@10:31AM

in PHP, "2"+2=4, and "2pinkponies"+2=4, but "i2"+2=2.

Implicit type conversion like this can could make for some interesting bugs, to say the least.


Posted by dandriff on Wednesday May 19, 2010@12:06PM

DoxyGenToolkit is a Vim plugin for C, C++, Python, and PHP which helps you conveniently create DoxyGen compatible documentation.

To use it just go to the line where a function is defined and execute :Dox, and it will automatically create the stub for you with @param s.


Posted by dandriff on Friday May 14, 2010@04:40PM

In Windows 7 64-bit edition (x64), I installed the 64-bit version of Python 2.6. After installation, I had a lot of problems with trying to install packages via .exe installers.

I narrowed the problem down to the installers not looking in the "right" place for the Python installdir (or rather, not being able to find the Python 2.6 installation directory) from the registry. I concocted a simple .reg file to fix this:

 Windows Registry Editor Version 5.00
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python]
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore]
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6]
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Help]
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Help\Main Python Documentation]
 @="C:\\Python26\\Doc\\python265.chm"
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath]
 @="C:\\Python26\\"
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\InstallPath\InstallGroup]
 @="Python 2.6"
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\Modules]
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.6\PythonPath]
 @="C:\\Python26\\Lib;C:\\Python26\\DLLs;C:\\Python26\\Lib\\lib-tk"

After applying this .reg fix, things are working fine.

Download the fix file:
http://wi-fizzle.com/downloads/win7_python2.6_x64_reg_fix.reg


Posted by dandriff on Tuesday March 30, 2010@01:38PM

Is Kitty a better SSH tool than Putty? I'll have to test and find out.


Posted by dandriff on Tuesday March 30, 2010@01:38PM
< Previous Articles >< Next Articles >