Ive been trying to set up my home pc to be available via VPN/RDP and I ran into a few problems early on. However, with the sage advice of a co-worker (DJ Blaze of San Diego), Ive got it figured out.
The main problem was getting my PC to use a static ip in a DHCP environment.
Since there isnt and explicit option for this in the Admin interface, I began to search around for the solution.

Well.. i found it, and it is wicked simple.
Open up your network properties and then the ipv4 properties and set an ip address outside the range of your routers dhcp range. Dont forget to get the DNS entries by opening the run interface and typing ipconfig/all. Fill in the gateway ip (again, obtain this from the ipconfig), and you are ready to go.
Now you can feel free to hack your rdp registry to use a different port and forward this port on your router for super secure VPN connections.

Enjoy!

1. Assuming you have a

No, Im not pining for all the men over in the middle east.

My wife is more my speed. But, Im sure we will miss these guys

http://science.slashdot.org/story/09/12/26/1621228/Microbes-That-Keep-Us-Healthy-Starting-To-Die-Off?from=rss&utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+Slashdot/slashdot+(Slashdot)&utm_content=Google+Feedfetcher

Ashoura is ON!

http://english.aljazeera.net/news/middleeast/2009/12/20091226215722207381.html

Wait…

http://english.aljazeera.net/news/middleeast/2009/12/2009122774411253544.html

http://motherjones.com/blue-marble/2009/12/obamas-copenhagen-speech-end-deal

I fully endorsed Obama and believe that he has the skills to succeed in any venture he puts his mind to. But I’m left wondering if maybe a little “suavetude” couldn’t save the day.

First off, I apologize for the snoop dogg reference in the title. I couldn’t resist.

Grizzly Bear:

While the name may indicate something ferocious and wild, the band is only so within their unique melodic constraints.
Upon first listen, I was reminded of some throwback psychedelia with a touch of nouveau folk. This is the kinda stuff you might hear walking around the Haight in the 60’s, but minus all the peace and love hullabaloo.

As the music grew on me, what emerged was a pop hook buried in a swirl of etheral choruses and some lofi bombastic  acoustic snarl. I usually have no trouble combining adjectives to nail the style a band emulates, but with Grizzly Bear, I keep coming up with new adjectives.
Be sure and check out the Yes cover on ‘Yellow’…. or,  just go out and buy ‘Yellow’ and ‘Veckatimest’ . You will not be disappointed.

Here is a peek

I love pirates and ninjas. I just do.

Here is the guide.

http://realultimatepower.net/
====================

In the realm of entertainment technology, U torrent is an unparalleled torrent client. If you’ve ever been hesitant to get on the torrent bandwagon, Try Utorrent

If  you try utorrent, and need an agile video file player, try VLC, it is the equivalent of the bomb.

The first thing to remember is not to get all caught up in the jargon.

A class is usually a file, much like a text file that holds some code. For organizational purposes, think of a class as a component of some larger system.

If a  peanut butter and jelly sandwich program were to be decompiled, there would be several classes involved, one for each of the ingredients in the sandwich.

The Classes would contain code that define the item and give it functional parameters. In addition, the code could contain additional routines to assist the class object perform its objective, such as converting data to a proper format

(eg; changing a integer to a string or getting some data from a database)

The routines or members of a class are restricted to subs or functions.

A sub is a piece of code that performs some action, but does not return any information to the member that calls it.

Ex.

An error occurs within some code and it jumps to the error catch segment to alert the programmer. Within the error catch, you could call a sub to send a notification email to the admin. After the email sub finishes, the code path would return to the error secti0n of the member and continue its course.

A Function is a piece of code that returns some type of information to the member that calls it.

ex.

A program for retrieving data from a database and appending it to a text file has retrieved the majority of the data it needs from database A. However, it needs a few phonenumbers from database B.

Simple. Just create a new function called DatabaseBDataGrab with a database query that returns the value needed.

here is sample code, simplified:

Explanations are after the asterisk  to the right of the code

Function DatabaseBDataGrab(byval accountnum as integer) as integer

* this is the signature. it goes in the following order: Type of Member, Name of member, (name and type of variable being passed into the member),type of data return.

dim datbaseconnection as new DatabaseConnectionClass

* we summon an instance of the class that performs all the database functions

dim result as integer=0

*create a variable to act as your result

dim sql as string=”Select phonenumber from db.PhonenumberTable where Phone_Table_Accountnum=’” & accountnum & “‘ ”

*create a variable string that holds the text for the db query

result=databaseconnection.Performquery(sql)

* call the databaseconnection function that runs the query and assign the result to its namesake

return result

*return the value from the query to the member that called it.


end function

Thats all for now.

Tags: , , ,

I code alot of ETL routines, which means that I get data from a database, change the format, and append it to some other medium fit for consumption by some other machine.

If you have ever found yourself wondering “How do i save all this info tied up in my stringbuilder to a text file?”,
here is a basic SUB that performs the save function.

The signature of the sub requires a stringbuilder.tostring input (or any string , really), a valid directory path where you want the new file saved, and a file name.

Public Shared Sub SaveFile(ByVal strData As String, ByVal FullPath As String, ByVal filename As String)
Try

Dim dir As New DirectoryInfo(FullPath)

If Not dir.Exists Then
dir.Create()
End If

Dim Newfile As New FileInfo(dir.FullName & “\” & filename)
Dim filestream As New FileStream(Newfile.FullName, FileMode.Create)
Dim info As Byte() = New UTF8Encoding(True).GetBytes(strData)
filestream.Write(info, 0, info.Length)
filestream.Close()

Catch ex As Exception
End Try
End Sub

Public Shared Sub SaveFile(ByVal strData As String, ByVal FullPath As String, ByVal filename As String)
Try
Dim dir As New DirectoryInfo(FullPath)
If Not dir.Exists Then
dir.Create()
End If
Dim Newfile As New FileInfo(dir.FullName & “\” & filename)
Dim filestream As New FileStream(Newfile.FullName, FileMode.Create)
Dim info As Byte() = New UTF8Encoding(True).GetBytes(strData)
filestream.Write(info, 0, info.Length)
filestream.Close()
Catch ex As Exception
ReportError(ex)
mailfail(ex)
End Try
End Sub

Tags: , ,

I live in a building that looks nice, but is in essence, a total piece of crap.

The name of the building is the Marquis at Hillcrest. The management company is Star Point Properties http://www.starpointproperties.com/ .

The problems that we have had since moving into the Marquis are limitless.

-When we first moved in, the radiant heating caused the pipes to bang like a hammer to metal from 11pm to 6 am every night, making sleep nearly impossible.

-The hot water goes off for an indeterminable period at least once per month

-we ve asked the management over and over to do certain things, like, call an exterminator for the rampant fleas that live in the hallway, fix the elevator (which always breaks), fix the windows in our apartment(which are new and should work). etc…

-The place is bonafied flea trap

-the management is nearly unreachable at most times

-the “fitness room”, which is actually a hot room in the basement with some crappy workout equipment (no ventilation or fans at all),was promised soon in January and was just installed in June.

The list continues, but you get the idea…STAY AWAY. No amount of being all up in hillcrest can make up for the craptastic, no parking, overpriced, ancient building, hellhole that this place is.

THAT said, I decided a few weeks ago to post a review on Yelp to keep people informed.

I posted my review and went on my way. I checked the review page a few days later to discover the review had been removed, so I left another.

That review has also disappeared.

I did some research and found a few bits of info to this effect :

http://www.eastbayexpress.com/news/yelp_and_the_business_of_extortion_2_0/Content?oid=927491

http://www.b12partners.net/wp/2009/03/08/yelp-is-fucked/

I found more as well, but instead of digging, Ill just pass the word along: dont trust the Yelp.

Also… stay away from Marquis at Hillcrest.

Tags: , , ,