So you want a new BlogEngine.NET Theme?

by BizTron 8/19/2008 8:45:00 PM

clip_image001

A simple way to adjust or tweak a theme to your liking can be as simple as a few lines of css code in styles.css.  I made a couple very minor changes to achieve the affect of a new background color, content on the right when it was always on the left, and a font color change to go along with the background better.  This is what it looked like:

/* I replace the Standard body formatting:
body {
    background-color: #F1F1F1;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}*/

/* With the following: */
body {
    background-color: #6699FF;
    color: #444444;
    font-family: Verdana;
    font-size: 11px;
    margin: 0 auto;
    width: 980px;
    position: relative;
}

 

image

/* I replaced these lines:
#content {
    float: left;
    width: 70%;
}

#sidepanel {
    float: right;
    width: 28%;
}

    With this...   */

#content {
    float: right;
    width: 70%;
}

#sidepanel {
    float: left;
    width: 28%;
}

 

/* I replaced these lines:
#header span {  font-weight: normal;   letter-spacing: 4px;

color: silver; margin: 0px; }

#header a { text-decoration: none;  color: white;  }

    With this...*/

#header span {  font-weight: normal;  letter-spacing: 4px;

color: #0000CC;  margin: 0px; }

#header a { text-decoration: none; color: #0000CC; }

Then there was the slight issue with the Date Time format on the Blog post.  This is an example of a minor inconvenience and a quick and dirty solution.  I'll describe an alternative approach later.

image

Notice the formatting for June 29, 2008.  This date can probably be localized, but today it's hard coded in PostView.aspx.

clip_image001[11]

Note: I changed

    <%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %>

To...

    <%=Post.DateCreated.ToString("dddd, MMMM dd, yyyy hh:mm tt") %>

To get the following results:

image

Yeah, I know this wasn't earth shattering.  But the premise is simple.  If there's a theme you want to use, except for a couple small items, change them.  The next step from here is to create a BlogEngine.NET theme for version 1.4.5, using an open source.  The Widget Zone needs a little tweaking on some of the older 1.2 and 1.3 themes, but we've already done that once (It's just about time for a new theme and BlogEngine.NET 1.4).  I hope everyone tries that once so we can have a few more themes right away.

Here's the new theme.  I'll call it nonStandard since I'm not a marketing guy: nonStandard.zip (6.28 kb) .  Enjoy!!!

Disable Display Shutdown Event Tracker on Windows Server 2008

by BizTron 8/15/2008 12:52:00 AM

 

Here's the quick and dirty way to TURN OFF or DISABLE the "Shutdown Event Tracker" on Windows Server 2008 for all your test, development and virtual servers.

1. Start...Run...Open: type: gpedit.msc

clip_image002

2. Of course...

image

3. Find: Local Computer Policy, Computer Configuration, Administrative Templates, System:

4. Select: Display Shutdown Event Tracker [Note: It's "Not Configured" by default.]

image

5. Double Click it and select the Disable radio button.

image 

Result: Here's what we want...

image

Adding new features to BlogEngine.NET

by BizTron 8/13/2008 12:26:18 AM

It's already mid-August and I just finished a round of BlogEngine.NET updates to take advantage of the new features in 1.4.5.x.  For a lot of folks, the need to Blog is what makes this platform so valuable.  But my clients, and my own interests also include adding Extensions and Advertising.  Now that there's  a Text box Widget, I can add simple ads like an Amazon link, Google AdSense, and affiliate links right in the Widget Zone without any special code.  Maybe this can be improved to target this medium, but I have to admit, if it works, I'm going to use it as is.  But there are a few things I'd like to see sooner than later.

Multiple Blog Support

What if I had 15 Blogs on different topics and some of them included overlapping authors?  I would like to support this configuration with One code base, One server or service layer, connecting to a Single SQL database or SQL Server farm.  I know I'd want this because I want it now and I have 8 Blogs, with 8 Web Apps, 4 AppPools, and 8 sets of XML Data.

SQL Server Express wouldn't cut it since my server started running into resource issues.  Not because of SQL Server but because I need 8 databases the way this configuration is setup.  Even if I upgrade my server (or hosting platform) to allow for more capacity, it doesn't scale.  Also, I will spend more time maintaining Blogs than writing for them.  So more Blogs = Less Blogging.  That's not a positive goal for me. :(

See BlogEngine.NET on CodePlex: Multiple blogs in one BlogEngine.NET instance

I'm following the instructions from "Setting up BlogEngine.NET 1.4 to use SQL Server" so I can review the Provider and see if this seems practical.  I'll have to report back and add on here when complete.

Advertising the manual way

Anyone can now use a BlogEngine.NET 1.4.5 compatible theme and add a Text Box widget to the Widget Zone.  Then you can place and ad within, so long as it fits the box cleanly.  Don't forget colors, borders, iframe constraints., etc.  But this is still very clean compared with the alternative.

Using AdsenseInjector should place an AdSense ad within each blog post. I'm having problems when more than one AdSense block is configured on a page.  I still need to debug my specific issues, but it may stem from the fact that I messed with the Master file in the theme to place AdSense "elegantly" where I wanted it...of course this was just for testing the theory.  So, AdsenseInjector is a good start so I can't knock it.  It's certainly something I thought about but did no think through so now I have the benefit of someone else's labor.  However, I still would like to get it to work along side other Ads on my page.

Hacking various themes to produce Ad Friendly pages or posts may be the only way to get what I need.  Another way of looking at this could be to use the Widget or Webpart approach to building and organizing themes.

This was merely an exercise in describing what one blogger needs, but at the same time, setting in motion my attempts to achieve this and report back my R&D results.

It's just about time for a new theme and BlogEngine.NET 1.4

by BizTron 7/20/2008 4:37:00 PM

I'd really like to see some more BlogEngine.NET themes take advantage of the new WidgetZone and cool features of version 1.4.  To that end, I wanted to see how difficult it would be to do this myself.  As a .NET architect and developer I haven't found myself doing a lot of css and UI interface work recently, but figured if I can do BizTalk, SharePoint, EntLib, SQL, WinForms and even ASP.NET development, HTML and css might be possible.  Besides, I'm only adding on to what other artists and geniuses have already done.

Here is my first attempt at modifying an existing BLogEngine.NET 1.3 theme to handle 1.4 functionality.  I went after one of my favorites: MWRT-002.

This is my update for BlogEngine.NET 1.4: MWRT-002-14.zip (23.24 kb)

Please critique, and let me know if you made any improvements that I had missed.  I'll be working on a few really nice themes from various locations over the next several weeks including one I'll be using on this site.  I'll try to show an example site soon.

Data Services with Silverlight 2

by BizTron 7/11/2008 4:11:00 PM

TVUG Presentation - July 22nd, 2008 

TVUG President wrote in an e-mail to the Tech Valley .NET Users Group membership.  Please join us...

TVUG is proud to announce our first summer meeting with the return of John Pappa to Upstate New York. John's been working on a book tying data services with Silverlight 2, and he's been kind enough to give us a run through of a number of new technologies, and how they integrate together. This meeting will be held July 22nd in our standard location: our regular meeting schedule will resume in September, with a topic TBA.

Data Services with Silverlight 2


Speaker: John Pappa, MVP, MSDN Columnist, INETA Speaker
When: Tuesday July 22nd, 2008 - 6:30-9PM
Where: VersaTrans Solutions, Latham, NY


Silverlight enables developers to use their .NET and XAML skills to develop Rich Internet Applications and to build data driven Silverlight applications that communicate with multi-tier architectures. This session will show how to build Silverlight 2 applications that communicate with and consume REST services and use LINQ to XML to manage XML content, show the various data binding techniques, and show how to use WCF to talk to various middle tier services including custom entity models and the Entity Framework.

Bio

John Papa is a Microsoft C# MVP, INETA speaker, consultant with ASPSOFT, speaker, author, and trainer who specializes in professional application development with Microsoft technologies including VB, C#, .NET and SQL Server. John has written over 60 articles and authored several books on data access technologies including ASP.NET, WPF, Silverlight, ADO.NET, XML, and SQL Server. He can often be found speaking at industry conferences such as VSLive and DevConnections, and viewed on MSDN Web Casts. John is currently working on his upcoming book titled Data Services with Silverlight 2 by O’Reilly due out in December 2008.

WCF Essentials

by BizTron 6/10/2008 10:00:00 PM

TVUG Presentation - June 10th, 2008 (Now June 17th)  

This event was postponed due to serious weather advisories.

Be sure to check the TVUG Website for any updates.

TVUG President wrote in an e-mail to the Tech Valley .NET Users Group membership.  Please join us...

Join us for our last meeting before our summer break as Andrew Badera introduces us to Windows Communication Foundation. The current plan is that we won't have another meeting until September '08, but we might have a special meeting if we can get an INETA speaker in the area. Let's put it to a vote next week!

WCF Essentials


Speaker: Andrew Badera, CTO, Change Round-Up
When: Tuesday June 10th, 2008 - 6:30-9PM
Where: VersaTrans Solutions, Latham, NY


The global acceptance of Web services, which includes standard protocols for application-to-application communication, has changed software development. Windows Communication Foundation (WCF) is designed to offer a manageable approach to distributed computing, broad interoperability, and direct support for service orientation.

In order to simplify development of connected applications through a service-oriented programming model, Windows Communication Foundation bundles a lot of powerful features in one easily configured package. A couple notable features, as service architectures grow more complex and support greater workload, are duplex communication and connection throttling. This presentation will review the essentials of WCF, utilizing a Silverlight GUI to demonstrate latency and scaling characteristics of a simplex polling application vs. a duplex push application.

Speaker Bio
A lifelong geek, Andrew Badera has been immersed in the software world since the age of seven, when his parents bought him a Tandy BASICA programming book instead of Chuck Yeager's Advanced Flight Simulator he had been asking for, months on end. Not to be dissuaded, he read the book three times over the following week, and immediately set about, without any great degree of success, trying to write his own flight simulator. Currently he serves as CTO of Change Round-Up in Coxsackie, NY as well as senior software engineer on the Open Systems team at Davis Vision, Inc. in Latham.

Next-Generation UX Development with Silverlight and WPF

by BizTron 5/7/2008 3:24:00 PM

TVUG Presentation - May 13th, 2008 

TVUG President wrote in an e-mail to the Tech Valley .NET Users Group membership.  Please join us...

This month, we welcome Chris Bowen, Microsoft's Developer Evangelist for the Northeast, as he dazzles us with GUI bliss. If you're getting started with XAML, WPF, and Silverlight, or just interested in the topic, make your way down to see us on Tuesday, May 13th.

Next-Generation UX Development with Silverlight and WPF


Speaker: Chris Bowen, Developer Evangelist - Northeast, Microsoft
When: Tuesday May 13th, 2008 - 6:30-9PM
Where: VersaTrans Solutions, Latham, NY


In this talk, we'll introduce the concepts behind both WPF (Windows Presentation Foundation) and Silverlight. You'll see what they do, how they're related, when you might use them, and how to develop applications using them. You'll see some of the interesting ways customers are using WPF and Silverlight today to improve the user experience of their applications. After covering the concepts, we'll dive into the practical developer story, using Visual Studio 2008 to show how to use these declarative, XAML-based approaches to create high-end effects without the high-end effort.

BIO:
Chris Bowen (http://blogs.msdn.com/cbowen) is Microsoft's Developer Evangelist for the Northeast. A software architect and engineer with over 16 years of experience, Chris joined Microsoft after holding senior architect and developer positions at companies such as Monster, VistaPrint, Staples, and IDX Systems and consulting on web presence and eCommerce projects with others. He is coauthor of "Essential Windows Communication Foundation" [Addison-Wesley] and "Professional Visual Studio 2005 Team System" [WROX]. He specializes in application architecture and building highly-scalable transactional web systems and holds an M.S. in Computer Science and a B.S. in Management Information Systems, both from Worcester Polytechnic Institute.

Tech Valley Code Camp Newsletter

by BizTron 5/7/2008 3:18:00 AM
Chris Bowen's BlogChris Bowen (From the MSDN Flash Newsletter.)

From the Editor

Hello, Northeast developers and architects.

We've had a lot of great events in our region lately, and have plenty more to come. I'd like to congratulate Griff Townsend and Andy Badera for a great job organizing the Albany, NY area's first code camp. The Tech Valley Code Camp was a great success, and work is already underway on v2.0 in the fall. ...

© 2008 Microsoft Corporation

Microsoft Developer Network


Well I missed Tech Valley Code Camp due to family obligations, namely vacation for the first time in 2 years. :)  These opportunities can become more available with more and more people attending the Tech Valley .NET Users Group meetings every 2nd Tuesday of the month (not July/Aug) to show interest and let people know what they want to see, hear, and do.  Besides pure code, you can learn about topics interesting to architects and developers.

Tags:

Telecommuting in the real world of Software Development and IT

by BizTron 4/29/2008 1:31:00 PM

With a 25 to 50% increase in gasoline prices in recent memory, it is now becoming more and more apparent that a significant way to save on travel costs for individuals, companies and government agencies is to limit driving to work, customer sites, conferences (well maybe not conferences), and meetings.  Telecommuting has been around since the 1970’s (Telecommuting: http://en.wikipedia.org/wiki/Telecommuting).  I’m not talking about satellite offices though, although that and anything else you can think of to save travel costs would be great.  I’m speaking to the ability to work from anywhere, especially one’s own home.

Many people I’ve spoken with over the years, from all areas of office work, believe that working in and around co-workers makes you more productive and part of a family.  Some even have the sense that if someone can’t see them work, then maybe no one will know they are getting things done.  On the contrary.  I believe that measurable work will begin to increase without all the distractions of an office environment and senseless meetings, water cooler chatter, “white noise” muzak, fire drills, coffee breaks, parties, arguments, etc.  On top of that, measuring work can now take less effort and make everyone more efficient.  Yes, this could lead to downsizing, smaller office footprints, less waste on equipment costs, utilities, sick time, leave of absence, etc.
Think of all the benefits you could enjoy working from your home office.  Almost like running your own business, you can make those ball games, track meets, dance recitals, orchestra concerts, PTA meetings, and maybe even lunch and dinner.  As for me, I still need to get the vacation time to recharge with the family, and sometimes need time to work around the house to do things you can’t do while focused on work.  But, one can always work a flexible schedule and even focus on delivery of various pieces of work when the time is right such as late afternoon and evening, while mowing at noon.  Everyone can think of things they would rather be doing other than sitting in traffic, driving for 10 minutes to several hours, riding a bus or subway.  It would be a good exercise to just start thinking about it.

Specifically, how do we get there?

That’s the tricky part.  Unless you’ve already done this before, how easy can it be?  Some of the important issues to resolve are how do you do your job, who do you need to interact with and how.  As an example, I can use my own needs.  On a daily basis I always need a computer, internet access, telephone.  If I travel anywhere I need a computer, internet access, telephone.  Notice a common thread yet?  I’ve gotten pretty good at this part, yet there are still many more options that I don’t take advantage of.  I could use a laptop, Wi-Fi, and a cell phone; a desktop computer, hardwired Ethernet, DSL and a landline; or a cable modem, LAN, servers, virtual machines, multifunction printers, Wi-Fi, Ethernet, ip phone, Gmail, Instant messaging, Web Cam, well you get the picture!?  Well, I have what I need to do whatever work I need to do.  If not, I acquire it, it’s pretty simple really.  Just as you can use an umbrella, rain coat, hood or a hat to keep from getting wet when it rains, you can choose what it is you need to do your job.  I’m a software architect and developer.  If I manage a team I need contact via phone, fax, e-mail, shared desktop, video, or sometimes face-to-face.  When I’m writing a proposal, design, code documentation, I don’t really need distractions, just research and a PC.  If I’m writing code, I need MSDN, (not a Java guy, sorry) and possibly a set of Virtual Machines/Servers.  Sometimes I’ll need internet access, Windows Live Messenger for help from my network of peers, and access to pre-built Virtual PC or VMware images.

Over the next several months I’ll update this with costs and cost savings for an average month or year, or any information I can gather.  My motives until recently were to help people to break away from the bonds of the corporate office, but now it seems there is a more fundamental reason for Telecommuting, namely saving our economy if not saving the planet in the process.

Windows Mobile Owners Circle registration failure.

by BizTron 4/12/2008 6:17:00 AM

What's this:  I can't figure out what any of this stuff is...

https://www.microsoft.com/windowsmobile/register/newsletterupdate.aspx

System.Web.Services.Protocols.SoapException: Request could not be processed. ErrorCode:0x81000001 ID:{A4BD13DB-B922-4160-A475-52D8A3167B8B} Host:[10.40.5.124]. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.MSCOM.CustomerServices.v30.CustomerServiceProxy.CustomerService.GetCustomerEmails() at newsletterupdate.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Passport Info: 00014B70C3A4073E

I was attempting to update my Windows Mobile 5 device with some simple options and realized I may need to login first since I was getting dead pages while trying to download content.  Then after I filled out the required registration forms, I got what you see above.  May I'll get a chance to update this post when I find and answer, but please let me know if anyone knows what this is and/or how it can be fixed.

About the Author

BizTron BizTron
(aka Dave Petronis)
"Famous" systems architect and software developer, author, and "future President of the United States." E-mail me Send mail

Banner

Calendar

<<  August 2008  >>
MoTuWeThFrSaSu
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar