Download: AllTuts 2.5.0.3 (Updated CSS – 2012/08/02)
Version History:
Also this theme is available at GitHub. The GitHub repository located at https://github.com/pjsoni/bethemes/tree/master/AllTuts .
]]>BlogEngine v2.5 is having theme, widgets and extensions gallery integration. From the administration interface, you can browse the online gallery and install the desired items directly from the gallery. The gallery is utilizing NuGet package management for installing the packages. You can now install the theme from the online gallery. For installing you have to login through the administration interface and navigate to themes section. In themes section, you get the currently installed themes. Navigate to online gallery and select the theme and install to your blog and activate the theme as usual. If you prefer to install the theme manually, navigate to dnbegallery.org and download the theme and install theme in your BE installation.
]]>Blaming is easy but taking responsibility, learning from mistakes and implementing those lessons to improve constantly is difficult. It is these difficult things that makes a real leader. Similarly, for an organization, building a culture where people are not afraid of taking responsibility is critical.
Leaders need to watch and choose their words. Every conversation with others is an opportunity to make a difference. When you talk negative, focus too much on problems and blame others, you are missing the opportunity.
Leadership is about using “we” language more than “I versus them”, and that kind of leadership owns the failures as much as they own their successes. It is about celebrating the contributions from each team member when team succeeds, and take collective ownership of failures, learn from them and improve. It is also about knowing when to step up and take the lead, versus when to step down and let people perform.
More you can find here.
]]>Recently I came across the Visual Studio 2010 extension called NuGet (formerly NuPack) which is a package management for the projects. NuGet is a free, open source developer focused package management system for the .NET platform intent on simplifying the process of incorporating third party libraries into a .NET application during development.
Let’s take ELMAH as an example. It’s a fine error logging utility which has no dependencies on other libraries, but is still a challenge to integrate into a project. These are the steps it takes:
NuGet automates all these common and tedious tasks for a package as well as its dependencies. It removes nearly all of the challenges of incorporating a third party open source library into a project’s source tree. This will help developers to reduce such exercise for downloading, installing and configuring the third party software in to the application.
In upcoming posts, I’ll show how to utilize NuGet to manage open source packages in to project.
]]>Download: AllTuts (Updated CSS – 2011/01/07)
Version History:
First of all, we need to create a user account for uTorrent service account using server dashboard.
Open server dashboard and navigate to Users tab. Invoke Add a User Account wizard by clicking Add a user account link in Users Tasks pane.
Once the wizard opens, fill the appropriate information in the first step and proceed to next by clicking on Next button.
In second step, don’t assign any permissions to any shared folder to the user account.
Also do not allow remote access and finish the wizard by clicking Create account button.
in next step, we need to create a shared folder for uTorrent download data. To do so, invoke Add a Folder wizard using the task pane in Server Folders.
In first step of wizard, give share name and description and proceed to next step by clicking Next button.
In second step, click on Specific people to assign permissions to our uTorrent service account.
Assign permission as per above screen shot and finish the wizard by clicking Add folder button to complete the folder creation process.
Download uTorrent and start installation wizard accept all default options but but don’t install shortcuts to the desktop, start menu, and quick launch bar as they will not be necessary. After completion of installation, uTorrent should launch automatically. Configure uTorrent as per the settings which we used for WHS V1. Don’t forget to enable WebUI in uTorrent options.
To create windows service, login to Vail console using Remote Desktop Connection. Copy srvany.exe from Windows Server2003 Resource Kit to uTorrent install folder. Now open command prompt and run sc.exe with following parameters to create service.
sc create uTorrent binPath= “C:Program Files (x86)uTorrentsrvany.exe” displayName= “uTorrent”
NOTE: Please note that there is a space after equal sign.
If all goes well then you will get [SC] CreateService SUCCESS feedback in command prompt.
Now we need to create a .Reg file using notepad and paste in the 3 lines of code below.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\uTorrent\Parameters]
“Application”=”C:\\Program Files (x86)\\utorrent\\utorrent.exe”
Save file as service.reg and merge this in to registry by double clicking the newly created .reg file.
Now click the Start button and open Services console from Administrative Tools > Services. Find uTorrent right-click and select Properties.
Select the Log On tab. Click the This account button and enter WHS as the This account and enter the Password you setup earlier for this user account and confirm the Password.
OK out and close the Services dialog.
For user profile to be created, we need to start the service and stop so we get the profile folder for the user we created earlier. Next, we need to copy the uTorrent settings from the Administrator profile to the uTorrent User profile. Go to C:\Users\Administrator\AppData. Copy the uTorrent directory to C:\Users\<Torrent_User>\AppData. When the service starts, it will have all settings ready and waiting to download.
Now its time for downloading torrent content using web GUI. You can access the web interface by navigating http://<your_server:port>/gui/.
For further details and know about how to install uTorrent on WHS V1 refer Scott Duff – Autumn Walker, Philip Churchill – mswhs.com, Drashna – wegotserved.com.
Happy downloading from Vail…
]]>WebMatrix is small downloadable package of 15MB only. It contains core WebMatrix editor, IIS Express, SQL Compact Edition and support for ASP.NET MVC. WebMatrix can be installed side-by-side with other editions of Visual Studio 2010 including Express editions.
WebMatrix also supports ASP.NET “Razor”, a new view engine for ASP.NET MVC. Currently, “Razor” is not included in to WebMatrix, and can be downloaded separately. In future revisions of WebMatrix, “Razor” support will be included.
For more information on WebMatrix visit Scott Guthrie’s blog.
]]>This is the one and only class which is actually generates the thumbnails from XPS documents using GenerateThumbnail method.
converter.GenerateThumbnail();
Property | Description |
---|---|
OutputFormat | Output format for the generated image. |
OutputQuality | Quality for the generated image. |
OutputStream | MemoryStream object to be returned |
XpsFileName | XPS document whose image needs to be gerated. |
///
/// Provides methods for converting XPS document in to various image format
///
public class XpsImage
{
private BitmapEncoder bitmapEncoder = null;
///
/// Default constructor
///
public XpsImage()
{
}
///
/// Sets the XPS file to be read
///
public String XpsFileName { private get; set; }
///
/// Gets or Sets the image format for thumbnail
///
public OutputFormat OutputFormat {get; set; }
///
/// Gets or Sets the image quality for thumbnail
///
public OutputQuality OutputQuality { private get; set; }
///
/// Returns the Memory stream of generated thumbnail
///
public MemoryStream OutputStream { get; private set; }
///
/// Generate the thumbnail of given document and populates the ThumbnailStream property
///
public void GenerateThumbnail()
{
XpsDocument xpsDocument = new XpsDocument(this.XpsFileName, FileAccess.Read);
FixedDocumentSequence documentPageSequence = xpsDocument.GetFixedDocumentSequence();
string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(this.XpsFileName);
string fileExtension = string.Empty;
switch (this.OutputFormat)
{
case OutputFormat.Jpeg:
fileExtension = ".jpg";
bitmapEncoder = new JpegBitmapEncoder();
break;
case OutputFormat.Png:
fileExtension = ".png";
bitmapEncoder = new PngBitmapEncoder();
break;
case OutputFormat.Gif:
fileExtension = ".gif";
bitmapEncoder = new GifBitmapEncoder();
break;
default:
fileExtension = ".jpg";
bitmapEncoder = new JpegBitmapEncoder();
break;
}
double imageQualityRatio = 1.0;
switch (this.OutputQuality)
{
case OutputQuality.Low:
imageQualityRatio /= 2.0;
break;
case OutputQuality.Good:
imageQualityRatio *= 2.0;
break;
case OutputQuality.Super:
imageQualityRatio *= 3.0;
break;
default:
imageQualityRatio *= 1.0;
break;
}
DocumentPage documentPage = documentPageSequence.DocumentPaginator.GetPage(0);
RenderTargetBitmap targetBitmap = new RenderTargetBitmap((int)(documentPage.Size.Width * imageQualityRatio), (int)(documentPage.Size.Height * imageQualityRatio), 96.0 * imageQualityRatio, 96.0 * imageQualityRatio, PixelFormats.Pbgra32);
targetBitmap.Render(documentPage.Visual);
bitmapEncoder.Frames.Add(BitmapFrame.Create(targetBitmap));
string str4 = string.Format("{0}{1}", fileNameWithoutExtension, fileExtension);
MemoryStream memoryStream = new MemoryStream();
bitmapEncoder.Save(memoryStream);
this.OutputStream = memoryStream;
xpsDocument.Close();
}
}
The class itself is the simple class and made for simplicity. Below is small snippet how to utilize the class.
converter.XpsFileName = “XPSdocument.xps”;
converter.OutputFormat = OutputFormat.Png;
converter.OutputQuality = OutputQuality.Super;
converter.GenerateThumbnail();
The sample application provided with this article just demonstrated the utilization of the code. In the demo application you need to save the image by invoking context menu from the thumbnail to see the output as I’m using the in memory image stream to display image in to picture box.
And please don’t hesitate to provide feedback, good or bad! I hope you enjoyed this article.
]]>You need to add the theme in to your theme folder and you should configure the theme by referring the instructions by Antonio Chagoury.
If you have any problem using the theme and want to ask for support, please fell free to contact me using contact form.
Download: Arthemia.zip (85.78 kb)
]]>