Aug
17
2012

Here it comes, Visual Studio 2012

Usually Microsoft shouts loud about upcoming versions but this new version comes very silently or I did go very deep down about Sql stuff that I can't hear about new Visual Studio 2012.

Let's hear from Scott Hanselman

http://www.hanselman.com/blog/VisualStudio2012AndNETFramework45IsRELEASEDHeres5MinuteVideosToGetYouUpToSpeedQuick.aspx

Jun
29
2012

Ooooleyyy Chrome Turns 20

Today version of Google's Chrome Browser turn 20. :D

Mar
2
2012

Life saver of the day: Tsql Merge Statement

TSql Merge statement save aproximatly a couple of hours may be more of mine today. 

I'll be sharing the story soon. 

Till then checkout on MSDN for Merge Statement

Jan
20
2012

Senior Developer becomes junior DBA

Hi,

from now on (actually 1st of Jan) I'm officially a junior DBA. Sometimes it freaks me out, having to control a database with 10-12 millions of inserts per day. I don't even know how big it is. Is it really big enough to be freaked out? Please nobody say yes. :D

welcome back those junior days making me feel swimming in an ocean without knowing borders (ironically i'm very bad at swimming)

I'm very pleased to hear about right resources to concentrate on. 

Dec
13
2011

BlogEngine TagCanvas Widget

Hi, 

today i completed my very first widget for blogengine, TagCanvas

TagCanvas includes default tag cloud implementation of blogengine. You can use tag cloud if you want. In settings page i used 2 fieldsets one for tagcloud and one for tagcanvas. 

TagCanvas uses exCanvas for non HTML5 browsers if you want, otherwise it turns back to tagcloud. 

Other parameters are self explained in settings page (in my opinion), you're welcome to ask about them.

Tag Canvas Advanced Options 

There are plenty of options behind the scene, i only parameterized main ones. If you want to change them you can edit the source codes of the widget.

References 

  • http://www.goat1000.com/tagcanvas.php

See you in another post. 

Dec
12
2011

AllTuts theme (fixed) - 2

Hi, 

Continuing from the previous post, listing the issues of the theme.

  1. Javascript error on load

There is a javascript error on load (below is the error message). The problem here is @ character. Remove it to fix this issue. The expression below is valid for xpath but not for jquery. 

uncaught exception: Syntax error, unrecognized expression: [@rel*=lightbox]

  1. Latest version of ddsmoothmenu

Actually this is not a bug but an improvement. Pravesh used the version v1.31 of the ddsmoothmenu I used the version v1.5. it has more smother animations show/hide delay options and menu shadow. 

Secondly Pravesh implemented a one-level only navigational menu, I implemented a multi level navigatioanl menu. All the pages that shown on list (page itself and all the parents) will be shown in the navigational menu.  

Conclusion

I provided a full rar package of latest version of the theme. I am waiting to hear from Pravesh about publishing theme via dnbegallery.  

AllTuts_2.5.0.1.rar (400.87 kb)

See you in another post. 

by

Dec
6
2011

AllTuts theme (fixed)

Hi, today i want to write about Alltuts theme for blog engine and how i fixed bugs of it.

First of all very much thanks to Pravesh Soni for his efforts. He converted the theme from site5.

Secondly, i dont know anything about packaging of a theme for blogengine right now. I will learn how to do it and provide a downloadable package of corrected theme. May be via http://dnbegallery.org

Lets come to the subject.

  1. Can not edit or delete widgets.

This bug is mentioned and fixed at Pravesh's post about the theme. There is a div with the below code in WidgetContainer.cshtml.

<div class="widget @Model.Widget.Name.Replace(" ", String.Empty).ToLowerInvariant()"
    id="widget-@(Model.Widget.WidgetId)">

just remowe the dash (-) character between the word "widget" and "@" character.

You can download the fixed WidgetContainer.cshtml from the link below.

WidgetContainer.cshtml (1.15 kb)

  1. Can not add dropdown navigation menu items.

There are a couple of reasons for that issue.

  1. Self-closing script tag issue

 All the script include tags in site.cshtml is self-closing. This results in processing of only the first script tag. As you can see in below screenshot the first script tag is included but the rest is neglected.

all you need to do is to write closing tag of script tags in site.cshtml explicity.

  1. ddssmoothmenu initialization is forgotten

add ddssmoothmenu initialization to script block after <!-- lightbox initialize script --> comment line. it should look like below.

<!-- lightbox initialize script -->
    <script type="text/javascript">
        $(function () {
            $('a.lightbox').lightBox();
            $(@(Html.Raw(lightBoxString))).lightBox();

			ddsmoothmenu.init({
				mainmenuid: "topMenu",
				orientation: 'h',
				classname: 'ddsmoothmenu',
				contentsource: "markup"
			}); 
        });
    </script>

Corrected site.cshtml (7.03 kb) file can be downloaded. 

See you in another post. 

by

Nov
21
2011

More on Device Filtering With ASP.NET Server Control Properties & More

Hi i've came across with a question in stackoverflow named Hidden Features of ASP.NET. One of the answers "Setting server control properties based on target browser" took my attention.

Ryan Farley explained the feature at his blog with two posts very well. Setting Server Control Properties Based on Target Browser and more.

Ryan listed what you can/can't do with this feature. I want toe add some items to his list. 

  1. Standard html tags are not supported
<h2 ie:style="color:Green" chrome:style="color:Red" mozilla:style="color:Blue">

will be rendered as it is was on markup.

  1. Default value

To mach the value of the property, Request.Browser.Browsers list is processed from bottom to top. Below picture is an example for chrome browser. See the mozilla value at index : 1.

for firefox this list is as 0:default, 1:mozilla, 2:firefox and for ie9 this list is as 0:default, 1:mozilla, 2:ie, 3:ie6to9, so the key "mozilla" plays a role of default for these three browsers. So most of the examples of Ryan won't work expectedly for that matter. 

by

Tag Cloud

Recent Posts