Ubuntu Server on PowerEdge R610 with raid

Linux (Ubuntu) No Comments »


I was installing Ubuntu Server 12.04 on a Dell PowerEdge R610 with RAID1 on a SAS6ir controller. After install completes successfully, it gets stuck on reboot with a prompt for initramfs
The link above is the only solution that worked for me:

  • type exit followed by Enter at the prompt
  • edit the file /etc/default/grub
  • change this line to: GRUB_CMDLINE_LINUX=”rootdelay=90″

Host BlackBerry apps for download on IIS

BlackBerry, Servers No Comments »

You can host your compiled and Signed app on your website for end-users to download to their phones without uploading to the BlackBerry app store.

  • After you compile and sign your app, copy all the output files to a directory on your webserver
  • Create an html page that points to the .jad file
    Example: <a href=myapp.jad>Download BlackBerry app</a>
  • Modify the Mime-Types on that directory to allow downloading .jad and .cod files
  • In IIS select your website, click on Mime Types
  • Add a new type,
    use .jad for File name extension
    and text/vnd.sun.j2me.app-descriptor  for Mime type
  • Add (or edit existing) .cod type
    use: .cod for File name extension
    type: application/vnd.rim.cod for Mime type

Deploy ReportViewer 10 in Visual Studio 2010 to production site

.Net, SQL No Comments »

If you have developed a .Net 4 website in Visual Studio 10 that that uses a client reportviewer control, then you are likely to run into problems with running reportviewer on the production server. Here’s the steps to get it running:

  1. Install ReportViewer 10 on your production machine. Go to Microsoft Download Center and search for “Microsoft Report Viewer 2010”
    download and install to your production server
  2. publish website to production server
  3. on the development server go to
    [drive]:\Program Files\Microsoft Visual Studio 10.0\ReportViewer\
    and copy the following files to the “bin” folder of your live site:
  4. this is the tricky part, copying “Microsoft.ReportViewer.ProcessingObje
  5. on your production server open a Command Prompt window, then cd to [drive]:\Windows
  6. then dir /s Microsoft.ReportViewer.ProcessingObjectModel.dll to find the dll
  7. cd to assembly\gac_msil\microsoft.reportviewer.processingobjectmodel
    this path contained the 2 versions of the file:
    since I’m using VS2010, I need the version 10
  8. copy [drive]:\[path]\bin
  9. you will now see “Microsoft.ReportViewer.ProcessingObjectModel.dll” in your website’s bin folder, you’re good to go

Programmatically call ImageButton_Click

.Net, ASP No Comments »

with a regular button, you can programmatically call the Button_Click by calling:

Button1_Click(Me, EventArgs.Empty);

However, with an ImageButton, you get an error if you use the above method. You need an extra line of code:

ImageClickEventArgs args = new ImageClickEventArgs(1, 1);
ImageButton1_Click(this, args);

Pop Up Window refresh parent

HTML, JavaScript No Comments »

If you have a script that opens up a new window using JavaScript: window.open()

on the child window, if you want to close the window and refresh the parent window, use the following code:

if (window.opener && !window.opener.closed) {

Sitefinity Custom Download List

.Net No Comments »

Problem: create a file-download-list that you can filter by tag, category, or other criteria


  1. create a library and upload your files to it
  2. categories and/or tag the files the way you want them to be filtered
  3. download the following sample code from the Telerik team:
    (for more information on this download refer to Telerik’s forum)
  4. add the following customizations to the supplied sample in order to filter by tags or categories:

            if (filterByTag)
                tagFilter = new List<ITag>();
                IList<ITag> alltags = this.manager.GetTags().OfType<ITag>().ToList();
                foreach (Guid g in FromTags)
                    foreach (ITag t1 in alltags)
                        if (t1.ID.Equals(g)) { tagFilter.Add(t1); }
            if (filterByCategory)
                categoryFilter = new List<ICategory>();
                IList<ICategory> allcats = this.manager.GetCategories().OfType<ICategory>().ToList();
                foreach (Guid g in FromCategories)
                    foreach (ICategory c1 in allcats)
                        if (c1.ID.Equals(g)) { categoryFilter.Add(c1); }

now you have a custom download list that filters by Tags or Categories.

I have only tried this code on a Sitefinity 3.7 Standard site, I don’t know if it is compatible with other versions.

Fix ASP.net menu in Safari and Chrome

.Net, HTML No Comments »

If you use the standard ASP.NET menu (or toolbar) in your web application, it works well in most browsers except for Safari & Chrome. In these 2 browsers, each menu item appears on a new line.

The fix I found was placing the following code in my MaterPage code-behind:
if (Request.UserAgent.IndexOf(“AppleWebKit”) > 0)

If you are not using a Materpage:
protected void Page_PreInit(object sender, EventArgs e)
        if (Request.UserAgent != null && Request.UserAgent.IndexOf(“AppleWebKit”, StringComparer.CurrentCultureIgnoreCase) > -1)
            this.ClientTarget = “uplevel”;

The solution is adapted from this site (Thank you):

Silverlight on IIS 6

.Net, ASP No Comments »

In order to host a Silverlight application on IIS6 you will need to add a MIME type

  • Open IIS, right-click and select properties for the Silverlight site.
  • Select the tab for HTTP Headers
  • Click on MIME Types
  • Click New and add Extension= .xaml and Mime Type= application/xaml+xml
  • Depending on the features used in your Silverlight app, you might also need to add 2 new types of
    (.xap  application/x-silverlight-app) and (.xbap  application/x-ms-xbap)

Multiple Exchange Accounts in Outlook

Servers No Comments »

I needed to connect to 2 accounts on the Exchange Server from my Outlook 2007. When I tried to add a second account, an error message said it is not supported.

I understand that the upcoming Outlook 10 will have this support built in. In the meantime, I found this article from Microsoft: http://support.microsoft.com/kb/291626 

It describes how you can add a delegate to your second account, then open it under the first account.

Outlook 2007 keeps asking for Password on Exchange 2007

Servers No Comments »

I have a new installation of Outlook 2007 on Windows 7 connecting to Exchange 2007. The client is not in the domain of the Exchange server. I found 2 fixes online, together they fixed the problem.

  1. Close Outlook
  2. Delete any network passwords saved for the exchange server (in Windows 7 click Start and type Network Passwords, click on Manage Network Passwords)
  3. Rename the folder under this path “%userprofile%\AppData\Roaming\Microsoft\Protect” to something else (I added -old to the end). I got this step from this website, thank you: www.howtogeek.com/howto/windows-vista/fix-for-outlook-2007-constantly-asking-for-password-on-vista
  4. Login to Outlook and check the box to save password
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in