August 31, 2004

arrested

i'd written a few posts that seem to have disapeared. i'll do some rewriting.

dan and a few other friends got arrested tonight. i'd left a wonderful evening of heckling delegates attending an rnc fundraising auction of johnny cash memoribilia. my friends were in the middle of a street with another hundred or so protestors when the cops blocked it off and began arresting everyone inside. i met up with some other friends on the other side of the police line stood there looking for them. i'll post more when i find it out.

Posted by drewish at 09:58 PM | Comments (0) | TrackBack

August 27, 2004

up in the nyc

dan and i have arrived safely in new york. i vow to never fly america west again. after takeoff on a 5 hour flight they come down the isle and ask if we'd like to buy some breakfast. fuck that. they're trying sell me crappy airline food? southwest at least has the dignity to throw you some peanuts and leave it at that.

Posted by drewish at 08:19 PM | Comments (0) | TrackBack

August 26, 2004

leaving today

i fly to oakland at 4:20 this afternoon. i'll spend the night at dan's and then we fly to nyc tomorrow morning. i'll try to post when i get there but i'm not sure what the internet situation will be like.

Posted by drewish at 11:52 AM | Comments (0) | TrackBack

August 25, 2004

catching up

as you can tell, i haven't been posting that much. my blog was fucked up for a while and i wasn't really into messing with it. i've got plenty of news though.

first off, i'm selling the katherine house. i'm a bit sad to give it up but i don't see myself moving back to reno and this is a great time to be getting out of it. i'll avoid paying most of the taxes and what we're selling it for is almost double what we bought it for.

second, brad and danielle came up to portland for a few days. it was really nice having them up. i spent way too much money (especially ahead of the nyc trip) but i can't think of a better excuse to do it.

Posted by drewish at 04:33 PM | Comments (0) | TrackBack

moblog

a couple of weeks ago i got a new camera phone. it's the samsung sch-a670 and i'm pretty into it. it takes good photos (i really like the tone, krista said it was like 70s polaroid photos) but it's kind of a pain that they only way to get them off is by email (at $0.25 a pop). i've put up a gallery with phone images.

Posted by drewish at 03:46 PM | Comments (0) | TrackBack

new rss feed

i've setup my rss feed through feedburner so it will splice in my del.icio.us links. let me know how it works.

Posted by drewish at 03:28 PM | Comments (0) | TrackBack

August 06, 2004

registering a satelliteforms conduit using the palm CDK in dot net

for google's reference, if you ever need to register a satellite forms conduit from dot net use the palm cdk 4.03 and the following code:

' find out if the conduit is already registered
Public ReadOnly Property IsConduitRegistered() As Boolean
	Get
		Try
			Dim CondMgr As New PDStandardLib.PDCondMgr
			Dim ids() As Integer = CType(CondMgr.GetConduitList(), Integer())

			If ids Is Nothing Then
				Return False
			Else
				' sort sort it for the binary search
				Array.Sort(ids)
				' if the id exists in the array the conduit is registered
				Return (0 < Array.BinarySearch(ids, PALM_CREATOR_INTEGER))
			End If
		Catch ex As Exception
			Return False
		End Try
	End Get
End Property

' register the palm sync conduit
Public Sub RegisterConduit()
	Try
		Dim CondInfo As PDStandardLib.PDConduitInfo

		' remove any old conduit registration
		If Me.IsConduitRegistered Then
			Me.UnregisterConduit()
		End If

		' Set the conduit entries 
		CondInfo = New PDStandardLib.PDConduitInfo
		With CondInfo
			.FileName = Environment.SystemDirectory & "\" & SF_SYNC_DLL
			.CreatorID = PALM_CREATOR_INTEGER
			.HandHeldDB = "SatFormsEE"
			.DeskTopDataDirectory = "SatFormsEE"
			.DeskTopDataFile = "SatFormsEE"
			.DisplayName = "TecSync"
			.Priority = 2
		End With

		With New PDStandardLib.PDCondMgr
			' register it...
			.RegisterConduit(CondInfo)

			' refresh the list so it'll appear
			With New PDStandardLib.PDHotSyncUtility
				.RefreshConduitInfo()
			End With

			' ... and then test that we can retrieve it
			CondInfo = CType(.GetConduitInfo(PALM_CREATOR_INTEGER), PDStandardLib.PDConduitInfo)
			If CondInfo Is Nothing Then
				Throw New ApplicationException("The conduit seemed to register correctly but could not be retrieved afterwards. ")
			End If
		End With
	Catch ex As System.Runtime.InteropServices.COMException
		Throw New ApplicationException("Could not register the TecSync Palm conduit. The ConduitManager had a problem. " & ex.Message)
	Catch ex As ApplicationException
		Throw New ApplicationException("Could not register the TecSync Palm conduit. " & ex.Message)
	End Try
End Sub

' unregister the palm sync conduit
Public Sub UnregisterConduit()
	Try
		' unregister it 
		With New PDStandardLib.PDCondMgr
			.UnregisterConduit(PALM_CREATOR_INTEGER)
		End With
		' then refresh the list so it'll disapear
		With New PDStandardLib.PDHotSyncUtility
			.RefreshConduitInfo()
		End With
	Catch ex As System.Runtime.InteropServices.COMException
		Throw New ApplicationException("Coundn't unregister the TecSync Palm conduit. " & ex.Message)
	End Try
End Sub
Posted by drewish at 02:53 AM | Comments (0) | TrackBack
Creative Commons License xml feed