Monday, June 30, 2008

Book Restaurant Reservations On The Go With OpenTable

Make restaurant reservations the easy way.
Find a restaurant » Choose a table » Book online

OpenTable, the web-enabled restaurant management provider, has introduced a new mobile feature that lets users make restaurant reservations from their from their phone’s browser. New mobile site supports the 8,000 OpenTable restaurants scattered across the country.

http://mobile.opentable.com/

Visio Tip - Making controls the same size

A commom problem in Visio is how to make your controls the same size, or to align them properly. Many of us have become addicted to the tools that Visual Studio provides for this functionality. Visio does not provide the same tools, but I did find an easy workaround: use “snap“ more efficiently.

1. Under Tools - Snap & Glue, uncheck all of the “Snap to” options other than “Grid.”

2. Under Tools - Ruler & Grid, set your Horizontal and Vertical Grid spacing to both be “Normal.”

This gives you significantly more control to visually line up your controls and to make them the same size. Its still not as cool or easy to use as what you get with Visual Studio, but it's a start.

Free Pocket PC TV Software

When you try to open an AVI or MPEG video in your Pocket PC it throws you an error because Pocket Windows Media Player don't play these formats. For those who wants to play these formats in their mobile, Pocket TV is there! and yes its FREE too! :)

http://pockettv.com/

Converting SQL to LINQ

A group blog from members of the VB team.

http://blogs.msdn.com/vbteam/archive/tags/Converting+SQL+to+LINQ/default.aspx

Adding an UpdateProgress Control to the Page in AJAX

The UpdateProgress control displays a status message while new content for an UpdatePanel control is being requested.

To add an UpdateProgress control to the page

1. From the AJAX Extensions tab of the toolbox, drag an UpdateProgress control onto the page and drop it underneath the UpdatePanel control.

2. Select the UpdateProgress control, and in the Properties window, set the AssociatedUpdatePanelID property to UpdatePanel1.
This associates the UpdateProgress control with the UpdatePanel control that you added previously.

3. In the editable area of the UpdateProgress control, type Getting Employees ... .

4. Save your changes, and then press CTRL+F5 to view the page in a browser.

If there is a delay while the page runs the SQL query and returns the data, the UpdateProgress control displays the message that you entered into the UpdateProgress control.

Snackr: A Tasty RSS Reader

Not just another RSS reader!

It's an RSS ticker that pulls random items from your feeds and scrolls them across your desktop. When you see a title that looks interesting, you can click on it to pop up the item in a window.

http://snackr.net/index.html

Thursday, June 26, 2008

Creating a Windows Service in VB.NET

A very good article for beginners to creating, installing and starting windows service in Vb .Net.

http://www.codeguru.com/vb/gen/vb_system/services/article.php/c4825/

Tuesday, June 17, 2008

Creating a DotNetNuke® Module using LINQ to SQL For absolute beginners!

http://adefwebserver.com/DotNetNukeHELP/LinqTutorial/

Creating a DotNetNuke® Module For absolute beginners!

http://adefwebserver.com/DotNetNukeHELP/DNN_Module4/Default.htm

OH MY GOD I am in the news :)

On friday i went to see the billiard tournament somewhere in Kuwait City which was sponsored by Western Union. Actually that was more like Philippines' tournament :) so there were a photo session for players which was palying that time. At that time i was sitting there and photographer took the snap which then published on Monday (16 June 2008) news paper.

http://www.arabtimesonline.com/pdf08/june/16/page%2046.pdf


Thursday, June 12, 2008

Pocket PC Registry Editor

Emailing: Pocket PC 2210 regedit.Rpr_ARM.CAB.txt

Tuesday, June 10, 2008

WPF FAQ

  1. Does WPF enable me to do something I couldn’t
    have done before?

          No.  Unless you factor in time & money…

  1. Is DirectX dead?

          No.  It is more applicable to advanced 3D developers writing
          hard-core “twitch” games

  1. Are Winforms dead?

          No.  …but it will not be advanced; the last version was 2.0 in NET 2005
          WPF / Winforms Bastardization
          Windows 98 Supports WinForms

  1. Does WPF run better on Vista than on XP?

          Yes
          3D objects only get anti-aliasing on Windows Vista or Later
          Non-rectangular windows only get hardware acceleration on Vista
          Vista has a driver model that helps with resource contention

Long Live VB!!! or not?

http://blog.basharlulu.net/2008/05/long-live-vb-or-not.html

Monday, June 9, 2008

ASP.NET AJAX Roadmap

Adding an UpdateProgress Control to show progress @ server

http://asp.net/AJAX/Documentation/Live/tutorials/CreateSimpleAJAXApplication.aspx

 

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

        <ContentTemplate>

            <asp:Label ID="lblServerTime" runat="server" Text="Server Time"></asp:Label>

            <asp:Timer ID="Timer1" runat="server" Interval="10000">

            </asp:Timer>

        </ContentTemplate>

    </asp:UpdatePanel>

    <asp:UpdateProgress ID="UpdateProgress1" runat="server">

        <ProgressTemplate>

            Getting time from server ...

        </ProgressTemplate>

    </asp:UpdateProgress>

</asp:Content>

 

Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick

    System.Threading.Thread.Sleep(3000)

    lblServerTime.Text = DateTime.Now.ToString()

End Sub

Read Text From/Write Text To a File (VB.NET)

More information: These function allows you to retrieve a text file's contents and write text to a file in VB.NET. They also optionally provide error information if they fail. Sample Usage:

sContents = GetFileContents("C:\test.txt", sErr)
If sErr = "" Then
    Debug.WriteLine("File Contents: " & sContents)
    'Save to different file
    bAns = SaveTextToFile(sContents, "D:\Test.txt", sErr)
    If bAns Then
        Debug.WriteLine("File Saved!")
    Else
        Debug.WriteLine("Error Saving File: " & sErr)
    End If
Else
    Debug.WriteLine("Error retrieving file: " & sErr)
End If


Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:
-------------

Imports System.IO

Code:
------

Public Function GetFileContents(ByVal FullPath As String, _
Optional ByRef ErrInfo As String = "") As String

Dim strContents As String
Dim objReader As StreamReader
Try

objReader = New StreamReader(FullPath)
strContents = objReader.ReadToEnd()
objReader.Close()
Return strContents
Catch Ex As Exception
ErrInfo = Ex.Message
End Try
End Function

Public Function SaveTextToFile(ByVal strData As String, _
ByVal FullPath As String, _
Optional ByVal ErrInfo As String = "") As Boolean

Dim Contents As String
Dim bAns As Boolean = False
Dim objReader As StreamWriter
Try

objReader = New StreamWriter(FullPath)
objReader.Write(strData)
objReader.Close()
bAns = True
Catch Ex As Exception
ErrInfo = Ex.Message

End Try
Return bAns
End Function

Using AJAX on page

[ST]asp:ScriptManager ID="ScriptManager1" runat="server"/[ET]
[ST]asp:UpdatePanel ID="UpdatePanel1" runat="server"[ET]
    [ST]ContentTemplate[ET]
        Place your control here ...
    [ST]/ContentTemplate[ET]
[ST]/asp:UpdatePanel[ET]

Sunday, June 8, 2008

Remove Items from the Recent Projects List on the Start Page

http://msdn.microsoft.com/en-us/library/aa991991(VS.80).aspx

Removing items using the registry

To be much more efficient, you can run regedit and remove the items stored in:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList

Bear in mind that if you only want to remove a subset of items, you'll have to reorganize the list to maintain the proper sequence (no numbers skipped).