Thursday, October 25, 2007

Visual Studio 2005 usefull shortcuts

There is a plenty of useful shortcuts in Visual Studio 2005. I will number only those which I use everyday.

ALT + F + T - Close solution

CTRL + Shift + B - Build project

ALT + W + L - Close all windows

F12 - GoTo Definition !!! very, very useful (instead of selecting item from right mouse context menu)

CTRL + - Go to previous. Return focus to line of code where F12 was called.

CTRL + K + CTRL + K - Add/Remove bookmark to line of code

CTRL + K + CTRL + N - Move to next bookmark

CTRL + K + CTRL + C - Comment line of code

CTRL + K + CTRL + U - Uncoment line of code

CTRL + Space - complete line from intellisense.

Monday, October 22, 2007

MTS 064 Telekom Srbija Sucks!!

If you are postpaid user of their service you should be able to check at any moment what is your amount for current month, how many free minutes and sms you have for current month, etc.

Of course, in a case of Telekom Srbija nothing is strict and anything can be changed from month to month. Today, October 22th, service 788 still is not in function for current month. So, all postpaid users of Telekom Srbija are not able to check current status of their amount for October. It means no matter how many talks I made and how many sms I send they can not charge my account more then my postpaid model includes by default, since I am not able to check my account, right?

Somewhere else this is true, but not in Serbia.

We have to pay for their mistakes, errors, disfunctionalities.

Try to complain there: :)

http://www.telekom.yu/KONTAKT/Kontakt.aspx

Thursday, October 18, 2007

Typed DataSet's identifiers are not updated.

Recent problem I had is that identifiers in typed datasets are not updated after I send typed dataset over web services to middle tier in order to save them. Business Logic on middle tier saves row from typed dataset and update row's identifier if row is saved successfully. Update identifier is not visible in returned typed dataset although it is send with byref.

I tried to find solution on net witthout success. I couldn't find anything usefull. Interesting is that when typed dataset is send over web as standard one identifiers are updated with new ids.

What helps me from .Net Framework 2.0 is partial class. Partial class gives us ability to add our own methods in Typed DataSets. So, I opened partial class and add conversion to and from standard dataset.

Code looks like:

Partial Class SpecialSelectionDataSet

#Region "Field"

Private _standardDataSet As DataSet

#End Region

#Region "Properties"

Public Property StandardDataSet() As DataSet
Get
If _standardDataSet Is Nothing Then
_standardDataSet = CType(Me, DataSet)
End If
Return _standardDataSet
End Get
Set(ByVal value As DataSet)
_standardDataSet = value
End Set
End Property

#End Region

#Region "Methods"

Public Sub ToTypedDataSet()
Me.Clear()
Me.Merge(_standardDataSet, True, MissingSchemaAction.AddWithKey)
End Sub

#End Region

End Class

After that I called from me form something like this pseudo code:

myWebServiceProxy.Save(SomeTypedDataSet.StandardDataSet)

me.SomeTypedDataSet.ToTypedDataSet

This solution works fine for me since new identifiers are in typedataset after call of web service method and conversion to typed dataset again.

Do you have any suggestion?

Tose Proeski 1981-2007

Tose Proeski has died in car accident in Croatia. I didn't listen his music. I even don't know any of his songs. What makes me sad is:
  • He was so young, only 26 years old.
  • He has a fantastic voice.
  • He works a lot to improve his singing capabilities.
  • He works, works and works. Never stops.
Then I tried to find some of his his songs on youtube. I never heard that someone sings "Zajdi, Zajdi" so beautifully. That song is old Macedonian song which is very hard for singing and even harder for translation. Ask some ex yu citizen to translate you with meaning. No way. His voice can be compared with voices of some of greatest opera singers. Really sad.

Tose sang "Zajdi, Zajdi"


Goodbye superstar.