Codeine .Net RSS 2.0
# Friday, 14 December 2007

For quite some time now I have been wanting internet access on my cell phone, but I didn't want to increase my monthly bill by another $30. When I originally got my new cell phone, the T-Mobile MDA, over a year ago I did quite a bit of research to make sure I got exactly what I wanted which included being about to provide internet access to my laptop via Bluetooth from my cell phone. The other day I noticed that T-Mobile dropped the price of the total internet add on service down to $20 and decided to go ahead and add this feature to my plan. I originally setup the internet connection sharing to my laptop using the usb cable which provided me with a connection speed of about 385kbps, but tonight when I went to get my laptop setup I remembered that the usb cable was sitting at home on my coffee table. After a few minutes of cursing myself and rechecking my bag I fired up the browser on the phone and Googled the steps needed to setup the internet connection sharing via Bluetooth and now I'm connected to the internet at a whopping 115.2kps. At least it is faster than dialup! I wanted to go ahead and post the steps need to get you going so here goes.

First off you need to setup a new dialup connection through your phone:

  1. Select Create a new connection from the network connections window.

 

  1. Select Connect to the Internet.

 

  1. Select Setup my connection manually.

 

  1. Select Connect using a dial-up modem.

  1. Check you Bluetooth modem. For me it is the Bluetooth Modem (COM8). I believe this is automatically showing up for me because I have connected to my phone before to discover services and run ActiveSync.

 

  1. Name your connection.

 

  1. Enter your ISP's phone number. For T-Mobile this is *99# .

     

     

     

  2. Leave Username and password blank and uncheck the box next to Make this the default Internet connection. Click next and then click finish.

     

     

 

    You are about set, but there are a couple more modem configuration changes you need to make. Go to Start -> Settings -> Control Panel and double click on Phone and Modem Options. Select the Bluetooth Modem and click properties.

 

 

Next, uncheck the Wait for dial tone before dialing box.

 

 

Finally go to the advance tab and enter AT+cgdcont=1,"IP","internet2.voicestream.com","",0,0 into the Extra initialization commands box.

 

 

 

All you have left to do is to pair up you phone and laptop through My Bluetooth Places and then go to your network connections and connect through this new connection. Hopefully if you've done everything correctly and I've explained everything correctly then you'll be surfing the web via Bluetooth on your cell phone. Since the usb connection is about three times faster I plan to use that in the future so I will post the instructions on how to set that up sometime as it is a bit different. I'm sure I'll still be using the Bluetooth connection often though as it is pretty easy to forget that darn usb cord.

Friday, 14 December 2007 22:53:31 (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback - Save to del.icio.us - Digg This! - Follow me on Twitter
Bluetooth | Mobile Computing | T-Mobile
# Wednesday, 28 November 2007

    Back in July I posted up a brief entry about Twitter which is basically a social networking site that allows you to submit short postings (140 characters) to your own personal page. (You can follow mine here.) The posting are meant to be short comments or updates throughout the day that you add via the website, IM, or cell phone text messages. The social networking comes into play when other members of Twitter begin following you postings and can subscribe to receive your updates over IM and text messages. You can also send direct messages to individuals using a special syntax.

    I've heard Twitter referred to as a human side bus, the ability to put your message on the wire and anyone who is subscribing to it can see it and everyone else doesn't even know it exists. The question is, is this ability useful? I've went over a couple scenarios in my head where I could see a benefit. One nice time when I could see it useful is, for example, if you want to go to a bar and you are interested in seeing who else wants to go. If you could get your friends to subscribe to your Twitter feed (which would most likely be a feat in itself) you could through it out on the wire and see if you get any responses. In this particular case you don't care who doesn't want to go, you only want to ping everyone at once and see if you get any interest. It's immediate and saves you the time of randomly calling people in a hit and miss fashion. I could also see it being beneficial if you are having a problem with something and want to throw it out to see if anyone can help. You don't care about who's not available and who doesn't know the answer; you just want a response back if someone can help you out.

    As with any technology it can also be abused and Twitter, in my humble opinion has been turned into the Turrets of the Internet. Individuals are using it to throw out every idea in their head and a play by play update on what they are doing each day. "I ate lunch"….. "I'm in a meeting"…."I'm going to the restroom". Random nonsense blurted out that is irrelevant to the listener. The postings turn into Turrets when they don't benefit any of the readers and in most cases don't benefit the writer as well. Who benefits from your posting that you were in a meeting or went to lunch?

Just my two cents. Get the human side bus a bus driver (or at least some category filters).

Wednesday, 28 November 2007 21:29:59 (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback - Save to del.icio.us - Digg This! - Follow me on Twitter

# Sunday, 25 November 2007

The other day I ran into the need to access a nested property on an object with the actual name and path to the property stored in a string variable. For example I had a mail object and wanted to access "From.DisplayName" which was stored in a string. If I was access just the from I could have used something like this:

using System.Reflection;

PropertyInfo[] pi = myObject.GetType().GetProperties();

foreach (PropertyInfo item in pi)

{

if (item.Name = "From")

{

object o = item.GetValue(myObject, null);

}

}

 

In this example myObject is the mail object and we first get the type of it, and then get an array of the properties for that type. Finally we find the From property and get the value for that property on our object.

Unfortunately this doesn't work for nested properties and I could not find a built in way to do it so I built a recursive function to handle getting the property for me and returning it. I then packaged it into a handy .Net 3.5 extension method. Let me know if you know of a built in method to get a nested property, otherwise feel free to using the extension method I put together, though it probably needs a bit of refactoring before you put it into production.

namespace Common.ExtensionMethods

{

public static class TypeExtensionMethods

{

public static object GetNestedProperty(this Type t, Object o, String Property)

{

object myObject = null;

PropertyInfo[] pi = t.GetProperties();

 

 

 

if (Property.IndexOf(".") != -1)

{

 

foreach (PropertyInfo item in pi)

{

 

if (item.Name == Property.Substring(0, Property.IndexOf(".")))

{

object tmpObj = item.GetValue(o, null);

 

myObject = tmpObj.GetType().GetNestedProperty(tmpObj, Property.Substring(Property.IndexOf(".") + 1));

 

}

 

}

 

}

else

{

foreach (PropertyInfo item in pi)

{

if (item.Name == Property)

{

myObject = item.GetValue(o, null);

}

 

}

}

 

return myObject;

 

}

}

}

Sunday, 25 November 2007 10:03:26 (Central Standard Time, UTC-06:00)  #    Comments [1] - Trackback - Save to del.icio.us - Digg This! - Follow me on Twitter
Development | Extension Methods

Navigation
Archive
<2007 December>
SunMonTueWedThuFriSat
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2024
David A. Osborn
Sign In
Statistics
Total Posts: 70
This Year: 0
This Month: 0
This Week: 0
Comments: 33
Themes
Pick a theme:
All Content © 2024, David A. Osborn
DasBlog theme 'Business' created by Christoph De Baene (delarou)