jason thurber's weblog

globally-scoped ramblings

Archive for the ‘programming’ Category

Using encrypt.sh for Salesforce Data Loader on the Mac or Linux/Unix

without comments

From the same directory as DataLoader.jar

  1. java -cp DataLoader.jar com.salesforce.dataloader.security.EncryptionUtil -g SOMEGARBAGESTRINGFOLLOWS
  2. copy that value to key.txt
  3. java -cp DataLoader.jar com.salesforce.dataloader.security.EncryptionUtil -e “MYPASSWORD” “/full/path/to/key.txt”
  4. copy that value to process-config.xml’s sfdc.password
  5. Add <entry key=”process.encryptionKeyFile” value=”/full/path/to/key.txt”></entry> to process-config.xml

Alternately, add sfdc.password, sfdc.username and process.encryptionKeyFile to config.properties (in the same directory).

Written by jthurber

March 14th, 2013 at 1:54 pm

Posted in Salesforce.com

Feedlounge: Radio Silence has been broken!

with one comment

Alex and Scott have announced the alpha release of Feedlounge! Feedlounge is a “web-based RSS/Atom feed reader”… (at this point you may be thinking)… umm… cool!? Actually, it’s really cool:

  • If you’re an RSS-addict, you’re also probably someone that moves between computers on a regular basis. A web-based reader means that your feeds are always in sync, with any new subscriptions, read and un-read items in the state you left them, no matter which of your n computers you’re sitting in front of.
  • Feedlounge is the only app I’ve used that gives nothing away to a rich-client app. Your keyboard works exactly the way you expect. It actually leads to a bit of cognitive dissonance (in a good way ;) )when you press the arrow key in a web-app and it actually does the right thing. This is trademark Alex, the guy builds good web-app!

It’s been difficult not to talk about this since, well, since it’s conception almost a year ago. I’ve really enjoyed working with Alex, Scott and the rest of the Feedlounge development crew and I’m continually amazed by the Feedlounge app… it’s awesome.

Head over to the site and check it out!

Written by jthurber

June 9th, 2005 at 10:52 am

HowTo: Secure XML/WS Servers

with 23 comments

Rory Blyth – Neopoleon.com

The best security in the universe is to not have an application to break into in the first place.

Written by jthurber

October 23rd, 2004 at 6:51 am

Migrating from Windows Outlook to OSX Mail.app

without comments

I’ve encouraged a friend of mine to move to Mac. He bought a Powerbook 15in, iBook 14in, two iPods, Airport, Airport Express…. the works really. He’d been running Outlook as his email client on Windows against a pop3 server, and had all of his email stored on his local machine.

After a bit of rudimentary research I learned the following process:

  • Install Eudora
  • Import from Outlook using Eudora
  • Move the Eudora mbox files to the Mac
  • Import using Mail.app (which can “habla” mbox)
  • Well, that didn’t work (but did consume many hours with import/export fun). It “almost” worked, but the html email looked like crap, and attachments were mangled.

    So, I googled some more and constructed a Byzantine process involving Windows Outlook and Outlook Express, dbxConv and Mail.app. All I can say is, “it worked for me”:

  • On your Windows machine import your email to Outlook Express
  • Find the .dbx files that Outlook Express creates (I can’t remember where it put these)
  • Drop this program dbxConv into the same folder as your .dbx files and run it using *.dbx as the second parameter.
  • Connect to your Windows machine using the Mac (cmd+k from the Finder) and drop your .mbx files somewhere temporary
  • Import the .mbx files into Mail.app using the “Import Mailboxes” command
  • Curse because the process is so complicated, then drink something to celebrate
  • Written by jthurber

    October 18th, 2004 at 1:31 pm

    Posted in programming

    How to use multiple email addresses for a single account using Mail.app

    with 18 comments

    So, I’ve got a couple of email addresses under a single username/password combination, let’s call them a@a.com and b@a.com (in actuality it’s more like a@a.com, b@a.com, a@c.com and b@c.com but two should suffice). I was trying to figure out how to allow Mail.app (the email application that ships with OSX) to send as any of these email addresses (you might call these “aliases” or “outbound email addresses”). I tried to configure a new account that wasn’t configured with an inbound server, but that didn’t work, so I asked Google:

    And Google spoke (in the voice of this page) saying: You simply comma-delimit multiple email addresses when configuring an account and they all become available in the “account” dropdown when composing email. A very clean solution (if not terribly intuitive or discoverable). It’s exactly the sort of thing a novice email user would never need to know and an advanced user would know to (eventually) google for!

    Written by jthurber

    September 29th, 2004 at 11:54 am

    Posted in programming

    Resting on the backs of others – PHP5 & OSX

    with 21 comments

    A few months ago I tried to start working with PHP5 on OSX. Followed the directions I was able find on Google (which were none too assuring as most of them ended with “so that didn’t work, anyone have any advice”) and gave up after several hours of mucking around.

    Approximately an hour ago I downloaded the php5 source code, built it and installed it. Well, I shouldn’t take any credit, basically I followed the directions here exactly (I helped that I’d recently done a complete upgrade of Fink, so I had libxml2).

    I cleaned up my httpd.conf file so that it wasn’t trying to run both PHP4 and PHP5 (’cause it can’t… at least not without some horrible hackery), and ran phpinfo(). It worked, I was running PHP5. PHPMyAdmin still worked, but Tasks doesn’t yet support PHP5. It’s a measure of how much I’ve been using Tasks recently that I then spent 20 minutes figuring out (googling actually) how to run PHP4 and PHP5 simultaneously. Again, it’s a simple as following the directions at How to run PHP4 and PHP5 prallel (sic).

    Now I’ve got two running instances of Apache, one listening to port 80 and one to 8080. I really like it when things just work!

    Edited on 8:48pm – Corrected the two mistakes relating to Tasks, namely the link was wrong and I meant PHP5, not PHP4 (which didn’t make much sense in context). One of the rare times when I got distracted mid-post and failed to re-read.

    Written by jthurber

    March 23rd, 2004 at 5:44 pm

    Posted in programming

    overflow: auto not working in IE?

    without comments

    Divs not scrollable in IE6, eh? You’re using overflow:auto? Try removing the DOCTYPE declaration from the top of your html…

    It worked for me, but your mileage may vary (and this will certainly cause all sorts of other problems I don’t know/care about).

    Written by jthurber

    October 6th, 2003 at 4:22 pm

    Posted in programming