News

 Subscribe Add to Technorati Favorites

 

 

 

 


 

 

Search My Blog:

 

 

My Stats

  • Posts - 468
  • Comments - 242
  • Trackbacks - 265

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Blogs


Miscellanous


Noteworthy Stuff


Popular Posts


June 2008 Entries

NetCmdlets SFTP - Public Key Authentication in PowerShell


In the past I gave examples of using the get-ftp and send-ftp cmdlets for PowerShell, but recently a user pointed out that I didn’t show any examples of public key authentication using the cmdlets.

Of course the –ssh flag tells the get-ftp and send-ftp cmdlets to use SSH (instead of plain text FTP, or an SSL connection which is turned on with the –ssl flag).  For SSH connections, the AuthMode parameter determines what type of SSH authentication to perform – in this case that will be “publickey”.  The “Cert” parameters (-CertStoreType, –CertStore, –CertPassword, and –CertSubject) are used to point to the specific private key you’d like to use for authentication.  If you’re using a pem key, –CertStoreType will be “pemkey”.  Use –CertStore to point to the actual file itself, and –CertPassword will be the password required to open the file.  -CertSubject is used to refer to the specific certificate in the file – or just use “*” to pick the first (or only) certificate in the file.

get-ftp -server 10.0.1.159 -user lancer -ssh -AuthMode publickey -CertStoreType pemkey -CertStore C:\id_rsa -CertPassword (read-host -assecurestring "Enter Password") -CertSubject "*"

 

Technorati Tags: , ,

posted @ Wednesday, June 25, 2008 10:29 AM | Feedback (0) |


IMAP ACL Manager v2


I uploaded a new version of the IMAP Access Control List Manager today.  This new version adds support for SSL/TLS implicit and explicit connections, CRAM-MD5 and NTLM authentication, an IMAP communication log, and a few other minor and cosmetic changes.

Technorati Tags: , ,

posted @ Tuesday, June 24, 2008 1:41 PM | Feedback (0) |


SlickEdit 2008 - My Evaluation


I got a free version of SlickEdit in return for blogging about the experience.  So here is my feedback, good and bad.

Good: First thing I noticed when I installed it:  this is not your ordinary text editor.  I've been using UltraEdit for several years now, and I like it.  UltraEdit has some developer-centric capabilities, but they are not integrated tightly into the product as is the case with SlickEdit.  For example, SlickEdit will automatically expand if and for statements, and try blocks, although I didn't see a way to have it automatically generate the finally clause.  Honestly, despite any negative criticism that I have of SlickEdit, I think that this is the kind of application that has so many features that in order to properly appreciate them you must use it for a long time, so I plan to revisit this evaluation in the future.

Good:  Ctrl-F worked for find, but I'm used to F3 doing the "Find Next" (From Visual Studio and Ultra Edit).  A quick look in the Options menu allowed me to change my keyboard emulation from CUA () to Visual Studio Defaults.  Problem solved.  Very nice.

Annoying:  The next thing that came up, when I hit ctrl-N to open a new page, instead of just giving me a new untitled page, it gives me a window in which I have to choose the type of file I want to create.  Its default is "automatic", which gives me what I want but still requires me to click an "OK" button.  I'd rather eliminate this step and have it figure this out the file type on its own after I do a save-as and assign it an extension.

Annoying: I created two unsaved files containing some xml, and when to compare them to find out the difference(s) in the two files.  I found a "File Difference" option under the Tools menu.  It gives me a dialog with two file path inputs, both empty.  I would expect the two most recently edited/opened files to be pre-populated there as they are with UltraEdit.  I thought this was going to be a lot of extra clicks but then I saw the little "B" button next to the two path inputs that allowed me to choose the "buffers" (the files I had open in the editor).  Only like 6 extra clicks.  Not so bad, but could have been smarter.

Annoying: I wish it had asked me during the install process if I'd like to update my file associations.  Instead I have to go searching around in the menus for it.

Good:  The code navigation feature is sooooo useful.  If you are editing code, and you want to see the definition of a particular call, just hit ctrl-. and SlickEdit will jump to the definition.  I use this fairly often.

Good:  Built in backup history allows you to view previous versions, and even merge and diff different versions.  Awesome!

Overall, I'd have to say this is a great app.  Incredibly powerful.  I will post more details about this later, as I continue to compare with UltraEdit.

Now Playing: Bob Marley & the Wailers - Exodus

Technorati Tags:

posted @ Friday, June 20, 2008 4:48 PM | Feedback (2) |


Audible .aa to .mp3


I checked out a few applications that claimed to be able to convert Audible's crappy DRM'd .aa files to .mp3.  All of them failed (for me at least), except one:  Total Audio Converter from coolutils.com.  For a well spent $19.99 I am now able to automatically convert my Audible downloads to a format (mp3) in which they will work on my cell phone and my mp3 player, neither of which are otherwise supported by Audible.  Woohoo!

Now if only Amazon would provide direct MP3 downloads for Audible books (where possible).

I have the output folder for Total Audio Converter set to a Live Mesh folder, so that I can have access to my books both on my laptop at home and on my desktop at work.  And my friend Eric pointed out that Total Audio Converter supports command options, so I can completely automate the whole process from the point of downloading from Audible!  All I'll have to do is start the Audible download and voila!

Update:  I amm using Audible Download Manager 6.5, and Audible Manager 5.1.0.2.

posted @ Friday, June 20, 2008 4:35 PM | Feedback (2) |


My Cuz: Best New Country


Check out my cousin, Wendy Newcomer - listed as "Best New Country" by AOL Music!  The link there seems (as of 6/9/2008) to be bogus, but here is the corrected link to Wendy's feature on AOL's "The Boot".

Listen to Wendy at Amazon:

Wendy Newcomer

 

 

posted @ Monday, June 09, 2008 5:27 PM | Feedback (0) |


Best of Tech Ed 2008


/n software walks away from Tech Ed this year with the Best of Tech Ed 2008: Software Components & Middleware, given for the Red Carpet Subscription.  Woo!

Red Carpet Subscriptions give you everything you need in one package - components for every major protocol from FTP to IMAP to SNMP, SSL and SSH security, S/MIME encryption, Digital Certificates, Credit Card Processing, ZIP compression, Instant Messaging, Shipping and Tracking, and e-business (EDI) transactions.

Windows IT Pro lists all the winners on their website.

Unfortunately I missed TechEd this year.  While my co-workers were there having a good time, I was at my desk working hard.  But the good news is that there are lots of new version upgrades on the way soon!

Technorati Tags:

posted @ Friday, June 06, 2008 10:42 AM | Feedback (0) |


A Letter to Audible about DRM


I still haven't found a very convenient way to listen to Audible books.  I don't want to go out and buy a new phone or a new mp3 player just so that it will work with Audible's unnecessary restrictions.  Burning to CD's is a bad option because at a minimum of 14+ cd's per book, its just wasteful.  CDRW's are out because the cd player in my car can't read them.  Audible's software players are decent, but they are only supported on the desktop (I don't want to listen to books on my desktop) and specific devices.  I tried it for a while on a Pocket PC device that I had access to through work, and while it was fine for in the car it was too large and bulky to take running with me.  So finally I started burning the books to a set of CDRW's (which I repeatedly use just for this purpose), then I rip each of those cd's one by one, and finally I move the resulting mp3's onto my phone (for in the car) or my mp3 player (for when I go running).  Pain.  In.  The.  Butt.

So recently I tried Audible Air, Audible's java player app for mobile phones.  It isn't supported on my phone, unfortunately.  So I emailed them and got a very detailed and polite response about why Audible Air won't work on my phone (the device manufacturer has to update the firmware so that it can understand the DRM blah blah blah).  BS!

Then I saw a post on Boing Boing about how Amazon (Amazon purchased Audible early this year) said that it would not remove the DRM from Audible's audio books unless customers complained enough.  So, if you're an Audible customer (or would like to be in the future), I hope you'll take a moment to email them and share your frustration about DRM.  Here is the email I sent to audible@custhelp.com:

I hope you'll also pass along these comments about your DRM, so that things can change.  I read that Amazon plans to keep the Audible DRM unless customers complain enough.  Well, here is my argument against DRM:

You said - "The encryption is required by the publishers to insure the security of their book files..."  While this may have been true at one time, I believe this statement is now incorrect.  Random House nows allows its online retailers to sell audio books without DRM (see the following letter from Random House:  http://craphound.com/DRMLetter22108.pdf). According to one well known author/blogger (Cory Doctorow, http://www.boingboing.net/2008/02/21/random-house-audio-a.html) who ran into this problem, it is Audible itself who is placing this restriction.  Even authors who WANT their books to be without DRM cannot do so if they desire to distribute their books through Audible (there is a well known author/blogger who has had this problem in the past).

Random House is smart enough to know that pirated copies of audio books, just like music, will exist no matter what. Amazon and Audible are smart enough to know this as well, or at least they should be.  Right now, even with your DRM, I could (if I wanted to, which I don't) burn a copy of a book to a CDRW, rip the cd's to mp3's, and distribute those mp3s illegally.  I could even merge them together into one large mp3 if I wanted.  DRM doesn't stop the kind of people who do this - all it does it inconvenience good customers who just want to listen to good audio books on their devices or in their cars without having to burn 22 cds.  As it is now, in order to listen to books the way I want to, I have to burn to a CDRW, rip the cd's to mp3's and manually copy those mp3's onto my SD card for my mobile device.  Talk about a painful process.  All so that Audible and publishers can accomplish what?  Nothing. 

Then there's the issue of Audible wasting time and money struggling to keep ahead of software applications that can convert from .aa to .mp3.  Even more time and money is wasted trying to "support" x device.  You would already support my device if you just gave me mp3s instead of a DRM mess.
What keeps me from buying more audio books from Audible?  What keeps me from buying a Kindle from Amazon?  DRM, and only DRM.  I already canceled my Audible membership once out of frustration over this.  I signed up again after Amazon bought Audible hoping that things would change.  I hope I'm not wrong, and I hope it happens sooner than later.

Technorati Tags: , , , ,

posted @ Thursday, June 05, 2008 11:33 AM | Feedback (2) |


View WireShark Payload Data as Byte Arrays


Follow UDP Stream2 A customer was having a problem receiving an SNMP trap with a 64 bit timestamp in it.  In order to test, I wanted to send the exact same trap the customer was sending, using the basic UDPPort component of IP*Works! INSTEAD of the SendTrap or SendSecureTrap methods that are included in IPWorks SSNMP's SNMPAgent component.  It turns out WireShark gives me an extremely easy way to do this in my code.

I opened the Wireshark cap file sent to me by the customer, which only included the SNMP trap (important, but I could have filtered it myself).  I right clicked on the SNMP trap and chose "Follow UDP Stream".  Since the sniff only included the single UDP packet, this displays the UDP payload that makes up the trap.  Then I noticed "C Arrays" in the format options for viewing the data.  Clicking this displayed the data in a c byte array instead of the raw bytes.  Very handy for copying and pasting right over to my own C# code!

Now to send this exact trap, all I need to do is:

   1:  nsoftware.IPWorks.Udpport agent = new Udpport();
   2:  agent.LocalPort = 0;
   3:  agent.RemoteHost = "255.255.255.255";
   4:  agent.RemotePort = remoteport; //trap port      
   5:  agent.Active = true;
   6:  byte[] mytrap = new byte[] {
   7:          0x30, 0x6f, 0x02, 0x01, 0x00, 0x04, 0x06, 0x70, 
   8:          0x75, 0x62, 0x6c, 0x69, 0x63, 0xa4, ... etc ... }; 
   9:  agent.DataToSendB = mytrap;

 

Technorati Tags: , , ,

posted @ Tuesday, June 03, 2008 12:37 PM | Feedback (0) |