Alexander’s Blog

February 25, 2009

No More POP3 in WS08. Now What?

by @ 7:42 pm. Filed under Exchange/Outlook, SharePoint, Virtualization, Windows 2008

Microsoft doesn’t offer POP3 service in Windows Server 2008. For those of you who want to test e-mail functionality in a Virtual PC environment or with MOSS 2007, installing Exchange server could be too taxing as far as resources are concerned (not to mention the cost) for just using SMTP in a development, testing or training environment. Here are a few solutions.

Solution #1

One option that some people have utilized is a freeware mail server. ArGoSoft Mail Server Freeware might be worth looking into. You can download the freeware mail server from ArGoSoft.

Windows VISTA and Windows Server 2008 Users: If you are going to install the Web interface, make sure you keep this document handy.

I should point out that I have not used this server and can’t give you any insights at this time. It is a freeware product so use it at your own risk. Obviously, it would not be wise to use this freeware version in a production environment.

Solution #2

Another solution, which might even work better, is to use Visendo SMTP (POP3) extender for Windows Server 2008. You can download the x64 and x86 versions from Visendo’s Web site. This is ideal for a development, training or testing environment.

http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x64.msi

http://www.visendo.com/download/visendosmtpextender/VisendoSMTPExtender_x86.msi

I haven’t had a chance to test this solution either but I hope to give this option a try as soon as I get a chance. If you have had experience with either of these solutions, I would love to hear from you.

Solution #3

MailEnable Standard Edition offers a free POP3 server that works great in Windows Server 2008 R2. I recently tried version 4.26 and absolutely loved it. MailEnable is easy to install and configure and you can be up and running in a couple of minutes. You can download MailEnable here.


Update: Added Solution #3 on 11/21/10.

February 18, 2009

A Hack for Making Dell 1600n Printer Driver Work on x64 Computers

by @ 2:06 pm. Filed under Tips & Tricks, Windows 2003, Windows 2008, Windows 7, Windows Vista

Ever since I installed my Windows Server 2003 on 64-bit hardware,  I have been looking for a 64-bit driver for my Dell 1600n network Multi-Function Printer. For some reason Dell doesn’t offer drivers for 64-bit Windows Server 2003. I finally discovered this trick that got my Dell 1600n printer working on my 64-bit Windows Server 2003.

1. Go to Printer and Faxes.

2. Double-click Add Printer.

3. Select Local printer attached to this printer and click Next.

4. Create a new port. For type of port select Standard TCP/IP Port from the drop-down button.

5. Go  through the wizard to create a TCP/IP printer.

6. Provide the IP address of the Dell 1600n network printer.

7. Select the Generic Network Card under Device type.

8. Once you have created the port, run the Add Printer wizard again and in step 4 instead of creating a new port click “Use the following port.”

9. Select the IP port that you’ve created (Standard TCP/IP Port) and click Next.

10. For the manufacturer select HP and for the printer select HP LaserJet 4000 Series PCL. For Postscript driver use HP LaserJet 4000 Series PS.

11. Finish installing the driver.

12. Delete the file DP1600n.PPD on the x64 system located in %WINDIR%\system32\spool\drivers\x64\3 folder.

13. Copy the Dell ADIST5.PPD file from a 32-bit system (e.g. Windows XP) that is located in %WINDIR%\system32\spool\drivers\w32x86\3 to the x64 system in %WINDIR%\system32\spool\drivers\x64\3 folder.

You should be able to now print on your Dell 1600n network printer. If you have any problems, make sure that you have deleted or at least renamed the old DP1600n.PPD file on 64-bit system. Also, you might want to restart the print spooler service.

February 12, 2009

How to Use STSADM to Import/Export a SharePoint Subsite

by @ 7:18 pm. Filed under Articles, Scripting, SharePoint, Tips & Tricks

The STSADM tool allows you to import and export SharePoint sites by specifying STSADM -0 Import and STSADM -o Export. The Import/Export options are ideal for backing up and restoring subwebs. To backup and restore entire site collections use STSADM -o Backup and STSADM -o Restore options.

Let’s say you want to backup a Demo subsite at http://www.seattlepro.com/demos and restore it to a different site at http://www.techgalaxy.net/demos. You can use the following method to export the demo site and then restore it to the intended destination. If you want to preserve permissions use the -includeusersecurity switch.

First, make sure STSADM is on your path so you can run it from any directory you want. Otherwise, run it from its default location at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN.

EXPORT SUBSITE

To export the subsite use the following syntax at the Command Prompt. Open the Command Prompt on the SharePoint server as an administrator if necessary.

C:\>stsadm -o export -url http://www.seattlepro.com/demos -filename DemoSiteBackup -includeusersecurity

You will see a single file called DemoSiteBackp.cmp that includes the exported content. You will also see a log file called DemoSiteBackup.export.log.

TIPJust to make things easier, you might want to create a folder, like C:\SPBackups. Run the STSADM from that folder so the export file (DemoSiteBackup.cmp in our example) and the log file will be created in the same folder.

IMPORT SUBSITE

Now to import the subsite to a different site use the following syntax at the Command Prompt. Open the Command Prompt on the SharePoint server as an administrator if necessary.

C:\>stsadm -o import -url http://www.techgalaxy.net/demos -filename DemoSiteBackup.cmp -includeusersecurity

Notice that this time you need to provide the filename extension, which is .cmp. You should see the Demo site show up as a subsite in the destination site after the script has been successfully executed. You will also see a log file called DemoSiteBackup.cmp.import.log.

If you need to explore other import or export options, type stsadm -help import or stsadm -help export to see the complete syntax. For example:

 C:\>stsadm -help import

stsadm.exe -o import
           -url <URL to import to>

           -filename <import file name>

           [-includeusersecurity]

           [-haltonwarning]

           [-haltonfatalerror]

           [-nologfile]

           [-updateversions <1-3>

               1 - Add new versions to the current file (default)

               2 - Overwrite the file and all its versions (delete then insert)

               3 - Ignore the file if it exists on the destination]

           [-nofilecompression]

           [-quiet]

 


Copyright ©2009 Zubair Alexander. All rights reserved.

February 5, 2009

Impressive Images from GigaPan

by @ 1:21 pm. Filed under Miscellaneous

With today’s technology, images and videos have reached an unbelievable level……at least by today’s standards. Who knows what the future holds but here’s something amazing from GigaPan.org. It shows the incredible panoramic view of President Barack Obama’s inauguration on January 20, 2009.

The GigaPan Epic is a robotic camera mount that captures gigabit images. The Epic makes it easy to create incredibly detailed panoramas, and works seamlessly with the GigaPan Stitcher.  The Epic allows you to capture brilliant high resolution panoramas with most point and shoot cameras. You can use your scroll button on your mouse plus click-and-drag to look at the panoramic view from different angles.

Click here to see what I am talking about.

inauguration

February 2, 2009

Add Color to Spruce Up Your SharePoint Content

by @ 7:26 pm. Filed under Articles, SharePoint, Tips & Tricks

Is your SharePoint content too boring? Wanna add some color to make it more fun? Well, here’s one method you can use to make your SharePoint content a little more lively by applying some color coding. I got this idea (and the script) from Christophe about using HTML code in calculated columns. So here it goes.

In this article, I will use a SharePoint List and add color coded bullets to distinguish various priorities (low, medium, high) as green, orange, or red. If you make the size of the bullets big enough they look more like a traffic light. This helps you quickly identify the items that have been assigned a certain priority. For example, all the high priority items will be displayed in red. Here’s what the end result would look like.

colorcodinglist

The end result is achieved by utilizing a calculated column in SharePoint. Due to the fact that you can use HTML code in SharePoint calculated columns, you can apply color coding to your text, fonts, bullets, etc. I am using large bullets that look like traffic lights to enhance the visual effects of my List. This technique can also be used in other areas but for this article I will only focus on color coding SharePoint Lists.

NOTE: If you are a newbie to SharePoint and are not quite familiar with SharePoint Lists, creating columns, the concept of calculated columns, Web parts, or HTML code you may not be able to take full advantage of techniques described in this article. Those of you who are familiar with SharePoint, this will be a piece of cake. If you are relatively new to SharePoint, I will still try my best to keep things simple so you can benefit from this article.

Here are the step-by-step instructions on how to apply color coding to your SharePoint Lists.

1. Create a SharePoint List, e.g. Tasks, or use an existing List.

2. Add some tasks to the List. Add at least one item with a low, medium, and high priority. The more the better. Something similar to this.

colorcodinglist01

3. Create a new column (Go to your List and then click Settings, List Settings, Create column) and use a Column name of your choice. I called my column Priority Status but you can choose any other name that is not already in use by SharePoint.

4. For the type of information in the column select Calculated (calculation based on other columns).

5. Enter a description.

6. In the Formula box enter the following HTML code and then click OK to create the column.

=”<DIV style=’font-weight:bold; font-size:24px; color:”&CHOOSE(RIGHT(LEFT(Priority,2),1),”red”,”orange”,”green”)&”;’>&bull;</DIV>”

7. If the column was created at the top-level site then you need to add the column to your List. If you created the column at the List level then it will be already added to your List.

8. If necessary, modify the view for your List and select the new column that you’ve just created. This may be necessary if you unchecked the box that says Add to default view when you created the column. In my case I added the Priority Status column to my List called SharePoint Training.

9. At this point if you look at your List it will look like this.

colorcodinglist02

10. I know, that’s not exactly what you want. Now we will add a Web part that will magically get rid of the HTML code and replace it with what we want.

11. Edit the page and add the Content Editor Web Part. The Web Part should be added to the bottom of your page. If it’s not, move it to the bottom.

12. Modify the Content Editor Web Part.

13. In MOSS 2007, click on the Source Editor button (not the Rich Text Editor).

In SharePoint Server 2010, click anywhere in the Content Editor Web Part and then on the ribbon click Edit HTML Source. When you close the source code window, you will not see any text in the Content Editor Web Part because the code only contains a JavaScript.

14. Download and unzip this file convert2html.zip, copy the code from the file, paste it into the Source Editor window and then click Save.

15. Click OK and then exit the editing mode.

16. Go to your List. The content should look something similar to this.

colorcodinglist

Additional Options

If you would like to apply color coding to fonts, create a new column and use the following code in step 6.

=”<DIV style=’font-weight:bold; font-size:12px; color:”&CHOOSE(RIGHT(LEFT(Priority,2),1),”red”,”orange”,”green”)&”;’>”&Priority&”</DIV>”

If you would like to change the background color, create a new column and use the following code in step 6.

=”<DIV style=’font-size:12px; background-color:”&CHOOSE(RIGHT(LEFT(Priority,2),1),”red”,”orange”,”green”)&”;’>”&Priority&”</DIV>”

The following screenshot shows all three options.

colorcodingsample

Troubleshooting

If your text is not getting converted to HTML  then go back and verify that you’ve followed all the steps as I have documented. One of the most common reason for failure is that people tend to copy code directly from a Web site and paste it into an HTML editor, rather than copying and pasting it from an ASCII text file. Copying code in that manner can potentially add additional formatting and “junk” to the code and cause your code to not work as expected. Sometimes you can copy the text from the Web page, paste it into a text editor (like Notepad), clean it up if necessary,  and then paste it into your HTML editor.

Another reason for failure is typos. Watch your code, especially when you copy and paste.

If you can’t find the column that you’ve created earlier it could be because you created the column in the wrong List or Library. If you create a column in one List it won’t be available in another. Therefore, I recommend that you create all your columns in the top-level site, as I mentioned earlier, so they are accessible in all the Lists and Libraries in all the sites and subsites. I have to keep on stressing this because my students tend to forget this at times.

If you are trying to add the Content Editor Web Part and it doesn’t add it to your page, make sure that you are using Internet Explorer. Although Microsoft claims that Mozilla Firefox is a “supported” platform for SharePoint, anyone who works with SharePoint is aware that it is not exactly the case. You can use IE tab add-on in Firefox to make some things work but when in doubt switch to Internet Explorer. Having said that, I should also warn you that there are several instances where I can’t get SharePoint to do what I want when I am using Internet Explorer and switching to Firefox gets the job done. Go figure. So the moral of the story is that you may have to switch between Internet Explorer and Firefox when working with SharePoint but my recommendation is to use Internet Explorer as much as possible, especially when doing administration work.

If your formula is not working, try adding a sold bracket around the column name. For example, add brackets around Priority.

=”<DIV style=’font-weight:bold; font-size:24px; color:”&CHOOSE(RIGHT(LEFT([Priority],2),1),”red”,”orange”,”green”)&”;’>&bull;</DIV>”

Conclusion

Using this technique you can do a whole lot more than what I have shown you in this article. Using HTML code in calculated columns opens a whole new world to you. Once you’ve learned this trick, I am sure you will come up with several new ideas to enhance your SharePoint content. The best thing about this technique is that it doesn’t require SharePoint Designer 2007 or any other custom Web parts so an end user can apply color coding to SharePoint content using this method.

I originally wrote this article for MOSS 2007. This technique also works in SharePoint Server 2010.

Updated: March 19, 2012


Copyright ©2009 Zubair Alexander. All rights reserved.

Contact E-mail | Terms of Use | Privacy Policy

Copyright © 2013 Zubair Alexander. All rights reserved.

Internal Links

Search Blog

Categories

Archives

February 2009
M T W T F S S
« Jan   Mar »
 1
2345678
9101112131415
16171819202122
232425262728  

RSS Feeds

TechGalaxy Visitors

24 queries. 0.410 seconds