Recent Updates RSS Hide threads | Keyboard Shortcuts

  • How to search email from NTBackup for Exchange Server 2003?

    Valdy 9:37 pm on 02/07/2009 | 0 Permalink | Reply

    Challenge:

    We got this request to do the “forensic” task for finding the external email for all correspondence our clients email. They have a NTBackup from Exchange Server 2003 and they only have a single server.

    Solution:

    With NTBackup there is a limitation that you can’t restore each individual mailbox. However, you should be able to setup a recovery storage group on Exchange server, restore the whole database to it, then restore the mailbox from recocery storage group to production storage group.

    How to setup this: http://technet.microsoft.com/en-us/library/aa998782(EXCHG.65).aspx

     
  • Securing zip file

    Valdy 12:54 pm on 29/06/2009 | 0 Permalink | Reply
    Tags: 7-zip

    Challenge:

    We have a SQL database backup and we move this database from one server to another with a different network. For the security, we need to do the password protected prior moving the files.

    Solution:

    7-zip has a command line that can be utilised.

    Download the 7-zip from: http://www.7-zip.org

    Examples how to use: http://dotnetperls.com/7-zip-examples

     
  • How do I add .jad file into my blackberry device?

    Valdy 8:43 pm on 22/06/2009 | 1 Permalink | Reply
    Tags: blackberry

    Challenge:

    Spent few minutes to hook up the device and using the Desktop Manager to download the .jad file and find out is not working.

    Solution:

    Apparently, the .jad file is loaded via Blackberry browser. So all you have to do just go the browser and go the link and it will automatically download and install for you.

     
    • Katy 3:07 pm on 24/06/2009 Permalink

      Pretty good post. I just came across your site and wanted to say
      that I have really enjoyed reading your posts. Anyway
      I’ll be subscribing to your feed and I hope you write again soon!

  • Pivoting using STUFF and XML Path

    Valdy 9:38 am on 21/06/2009 | 0 Permalink | Reply
    Tags:

    Challenge:

    I have these 3 simple tables

    1) Users:
    UserID INT,
    Username VARCHAR(32)

    2) UserInRoles:
    UserID INT,
    RoleID INT

    3) Roles:
    RoleID INT,
    RoleName VARCHAR(32)

    So if I joinining these 3 tables I might end up with for instance:

    UserID, Username; RoleName:
    1; ‘test’; ‘Administrators’
    1; ‘test’; ‘Mobile Users’
    2; ‘test1′; ‘Administrators’

    As you can see the UserID 1 has 2 roles

    I want to display in my grids as follow:

    UserID, Username; RoleName:
    1; ‘test’; ‘Administrators, Mobile Users’
    2; ‘test1′; ‘Administrators’

    The query that I use is this:

    SELECT UserID
    Username,
    STUFF((SELECT ‘, ‘ + CAST(rl.RoleName AS VARCHAR(64)) AS RoleName
    FROM Roles rl
    INNER JOIN UsersInRoles uir ON rl.RoleID = uir.RoleID
    WHERE UserID = u.UserID
    FOR XML PATH(”)),1,1,”) AS RoleDescription
    FROM Users

    The data returned for the RoleDescription is returning in XML format such as:

    AdministratorsMobile Users instead of ‘Administrators, Mobile Users.’ ?!?!

    Solution:

    Remove the RoleName on after the CAST

    SELECT UserID
    Username,
    STUFF((SELECT ‘, ‘ + CAST(rl.RoleName AS VARCHAR(64))
    FROM Roles rl
    INNER JOIN UsersInRoles uir ON rl.RoleID = uir.RoleID
    WHERE UserID = u.UserID
    FOR XML PATH(”)),1,0,”) AS RoleDescription
    FROM Users

    This will return as per normal which is: ‘Adminitrators, Mobile Users’

     
  • Linksys WAP4400N and Windows Vista Issue after Firmware Upgrade

    Valdy 6:36 pm on 15/06/2009 | 1 Permalink | Reply
    Tags: wireless

    Challenge:

    We’ve done the firmware upgrade for the Linksys WAP4400N and after that all clients can’t connect especially Windows Vista machine. The interesting is that the IPhone device can connect no problem.

    Solution:

    What we found that the current configuration that we have on the Vista is no longer working. It needs to reset as follow:

    Click Start button.
    Select Control Panel option
    On the control panel, selec the Classic View and then select Network and Sharing Centre.
    On the tasks, select Manage wireless network.
    Right click on your wireless network and select Properties.
    On the Wireless Network properties window, select Security tab.
    Reset this by matching with your configuration.
    Security Type: Shared
    Encryption type: WEP
    Network security key: *****
    Key index: 1
    In our case, somehow the configuration is not allowed anymore to use Open one.

     
  • Stop ASP.NET web.config inheritance

    Valdy 3:31 pm on 14/06/2009 | 0 Permalink | Reply
    Tags:

    Challenge:

    If you are running a site and other seperate applications running in virtual directory, then the setting could be a problem.

    Solution:

    The solution is try to stop the web.config inheritance. Locate the root application of the web.config and add a new line for:





     
  • Sharepoint in General

    Valdy 5:27 pm on 13/06/2009 | 0 Permalink | Reply
    Tags: sharepoint

    Solution:

    Application Templates for Windows Sharepoint Services 3.0
    http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx

    To install this download:

    Note: To complete the following installation, you must have Administrator rights to both the Windows SharePoint Services site on which it is to be installed.
    Download the file by clicking the Download button (above) and saving the file to your server.
    Pull the template file, .stp, from the extracted distribution for the application template you wish to install.
    Log into your SharePoint site as the site Administrator.
    From the Site Actions drop-down menu in the top right, select Site Settings.
    Under the Galleries section, select Site templates.
    Select Upload to load an application template into this SharePoint site.
    Browse to the
    .stp file from the distribution and select Open. If you have several application templates to load into your site, you can use the Upload Multiple Files… option to load them all at once.
    Click Ok to complete the upload of the application template to your SharePoint site.

    Instructions for use:
    Log into your SharePoint site as the site Administrator.
    From the Site Actions drop-down menu in the top right, select Site Settings.
    Under the Site Administration section, select Sites and Workspaces.
    Select Create to create a new site using a site template.
    Complete the new SharePoint site information. In the Template Selection section, select the Custom tab. Any application templates that have been uploaded will be listed here.
    Select the template to use for this site and click Create.
    A site has now been created using the application template.

    To remove this download:

    Note: To complete the following removal, you must have Administrator rights to the Windows SharePoint Services site. This process will not remove the templates from any sites that were already created using this template. It will only prevent users from creating new sites based on the template.
    Log into your SharePoint site as the site Administrator.
    From the Site Actions drop-down menu in the top right, select Site Settings.
    Under the Galleries section, select Site templates.
    In the list of site templates, find the application template you wish to remove and click the Edit link.
    Confirm that this is the application template you wish to remove. If so, select Delete Item.
    Click Ok to confirm the deletion.
    The application template is now unavailable to SharePoint sites and has been removed from your SharePoint site template gallery.

     
  • File too large for the destination file system

    Valdy 9:19 am on 13/06/2009 | 0 Permalink | Reply
    Tags: USB drive

    Challenge:
    I experienced an issue with external USB drives when I transfered 10GB from my laptop to external harddrive.

    Solution:
    The reason for this is going to be the file system of the USB or destination that you are copying the file to. The file that you are trying to transfer or extract is greater than 4GB in size and the destination file system is most likely FAT32. FAT32 file system does not support files larger than 4GB in size.

    You convert this file system to NTFS and to do this:

    On Windows, click Start > run > type in: cmd

    Type in: convert H: /FS:NTFS

    Note: H: is the drive of you external harddrive.

     
  • ReportViewer Control and Export to CSV

    Valdy 12:16 pm on 12/06/2009 | 0 Permalink | Reply
    Tags:

    Challenge:

    As you know that by default, the ReportViewer control can only support Excel and PDF. As far as know it’s not even support the native Excel 2007.

    Solution:

    At this stage, I have no concrete solution yet but I have hints that might help which is:

    1) There is a method called .LocalReport.Render()
    2) But the issue is that you need to turn off the ShowExportControl property and build your own dropdown list.

    Need more research on this.

     
  • ProfileCommon in App_Code

    Valdy 5:30 pm on 08/06/2009 | 1 Permalink | Reply
    Tags:

    Challenge:

    In the inherited aspx page of my base class page, the following code works great:

    ProfileCommon pc = Profile.GetProfile(tmp_username)

    But then if you put into in a class which states in the App_Code won’t work ?!?!

    Solution:

    From App_Code you would do this:

    ProfileCommon p = (ProfileCommon)ProfileBase.Create(tmp_username,true);

    System.Web.Profile.ProfileBase is the ASP.NET type that underlies ProfileCommon. The static Create method can be used to load the profile information for any arbitrary profile. The internals of the Create method create an instance of ProfileCommon (the autogenerated type) but returns it as a more generic ProfileBase type - hence the need to cast it back to ProfileCommon.

     
    • Mikes Money 11:37 am on 09/06/2009 Permalink

      Hey, nice post, really well written. You should post more about this.

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel