mayvelous

Me, Myself and Mayvelous

Archive for the ‘Tools’ Category

I deployed the Sitefinity site from local to DEV and STAGING servers and the document uploader works on DEV but suddendly disappear on the STAGING server.

Correct Screen
correct screen

Error Screen
blank document upload

I’ve created a forum post but received no good answers. The dude kept asking me to install Silverlight Tools on all the machines. I don’t understand why we have to install silverlight on all machines and which silverlight exactly to install as there’re browser plugin, silverlight tools, silverlight framwork etc. And I cannot install silverlight tools unless the prerequisites, Visual Studio 2010 and Web Developer Express 2010, been installed which I absolutely don’t want to do. Also on the DEV server, there’s not a single instance of Silverlight installation was there and the uploader’s working just fine so I really had a hard time figuring out the issue with STAGING site. The forum responds were so slow, so I created a ticket and the same dude replied as followed:

Can you enable Firebug and check what errors come up in the Net tab when you try to access the Upload section? Also is there a way to provide RDC to your server so I can inspect the settings in more depth?

Ofcos I don’t want to give RDC access but I checked the Firebug and that really helps figure out the problem.
With the help of Firebug, I got 404 file not found for Telerik.Sitefinity.Silverlight.xap file with the error below:

Unhandled Error in Silverlight Application
Code: 2104
Category: InitializeError
Message: 2104 An error has occurred.

Now that’s some good hint, so I checked the path and the file exists on the server so must be the file permission issue; I googled the error message and found out that it’s all to do with missing MIME Types on STAGING server.

mime types

I’ve added these 3 types to the server MIME types list and it fixes the problem.

.xap application/x-silverlight-app
.xaml application/xaml+xml
.xbap application/x-ms-xbap
Ref: Configuration IIS for Silverlight Applications

I wasn’t happy with the support but thank god he at least gave me a hint to check with Firebug.

According to this post, we can reference the Sitefinity built-in script libraries and/or external script files in site master page as followed:

<sf:JsFileLink id="jsLink" runat="server" ScriptType="jQuery"></sf:JsFileLink>
<sf:JsFileLink id="jsLink" runat="server" ScriptType="prototype"></sf:JsFileLink>
<sf:JsFileLink id="jsLink" runat="server" ScriptType="mooTools"></sf:JsFileLink>

To use it, reference the assembly from the project and add the following code in the master page.

<%@ Register Assembly="Telerik.Cms.Web.UI" Namespace="Telerik.Cms.Web.UI" TagPrefix="sf" %>

It didn’t mention which version of Sitefinity it’s used at but after testing, found out that it’s definitly not for our current 4.1 SP2 version. The “JsFileLink” property is for older version of the sitefinity 3.6 etc which comes from Telerik.Cms.Web.UI assembly.

Did a bit more digging around and got the right referencing for 4.1 version.

1. Add this to master page, immediately after Page tag.

<%@ Register TagPrefix="sf" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.PublicControls"%>

2. Place the following inside the “form” tag, NOT in the “head” section.

If you have the “JS” folder location as mention in this structure, reference as followed:

<sf:JavaScriptEmbedControl runat="server" ID="jsLink1" ScriptEmbedPosition="Head" Url="~/Sitefinity/WebsiteTemplates/YourSiteTemplates/JS/test.js"></sf:JavaScriptEmbedControl>

If you have the script folder in your website root, use the following:

<sf:JavaScriptEmbedControl runat="server" ID="jsLink2" ScriptEmbedPosition="Head" Url="~/scripts/test.js"></sf:JavaScriptEmbedControl>

For built-in JQuery library, reference as followed:

<sf:JavaScriptEmbedControl runat="server" ID="jQyeryLink" ScriptEmbedPosition="Head" ScriptType="jQuery"></sf:JavaScriptEmbedControl>

3. Must have unique “ID” and specify “ScriptEmbedPosition” fields.

The JavaScriptEmbedControl will register a script in the selected ScriptEmbedPosition (Head, InPlace, BeforeBodyEndTag). This control is also available in the page editor in the Scripts and Styles toolbox section. You can add references to scripts when editing the page through the UI, and even write inline scripts by hand. ref

IMPORTANT
Place all the external JS link or code blocks at the end of the page rather than the “Head”. ie. use “BeforeBodyEndTag” for some reason sitefinity loads it’s own copy of jquery in the middle of the markup and it tends to mess up the rest of the scripts.
eg.

<sf:JavaScriptEmbedControl runat=”server” ID=”jQyeryLink” ScriptEmbedPosition=”BeforeBodyEndTag” Url=”~/scripts/jquery.min.js”></sf:JavaScriptEmbedControl>
<sf:JavaScriptEmbedControl runat=”server” ID=”JavaScriptEmbedControl1″ ScriptEmbedPosition=”BeforeBodyEndTag” Url=”~/scripts/jquery.cycle.all.js”></sf:JavaScriptEmbedControl>

I was checking out this Silverlight Pivot Viewer where you can browse through 10yrs worth of MSDN Magazines; found it pretty neat fast loading interface but it’s annoying when you select an article and click either “Read Article” or “Download Code” link, it redirects you to the article page on the same viewer page. And when you want to go back, you have to relaunch the viewer and reenter the search criteria again. I wish they make the article links open in new window so we can still keep viewer open.

Below are the screenshot of the article page cloud based on the search criteria I entered and the zoom in view of it.

Silverlight Pivot Viewer Silverlight Pivot Viewer

Anyways, it’s good that we can search all MSDN articles using this thing quite easily so I’m pretty satisfy with it.

Dear DotLucene

Back in 2007 I posted a study notes post where I was planning to post about DotLucene and have forgotten about it. The other day I found these notes in my Google Notebook. Instead of lost and forgotten in my Google Notebook, it’s better to share here so someone can make a good use of it. These are just links and notes dump that I found over various sites. I hope I didn’t forget to add the link back references for all the notes.

What is Lucene.Net?

[ # ] Lucene.Net is a source code, class-per-class, API-per-API and algorithmatic port of the Java Lucene search engine to the C# and .NET platform utilizing Microsoft .NET Framework.

Lucene.Net sticks to the APIs and classes used in the original Java implementation of Lucene. The API names as well as class names are preserved with the intention of giving Lucene.Net the look and feel of the C# language and the .NET Framework. For example, the method Hits.length() in the Java implementation now reads Hits.Length() in the C# port.

In addition to the APIs and classes port to C#, the algorithm of Java Lucene is ported to C# Lucene. This means an index created with Java Lucene is back-and-forth compatible with the C# Lucene; both at reading, writing and updating. In fact a Lucene index can be concurrently searched and updated using Java Lucene and C# Lucene processes.

(more…)

This is definitely something interesting for me to try out; I just read a short post on Blogging Pro about Microsoft Web Application Installerand thought it might interest some of you so just passing on.

Previously, to deploy a php application eg. wordpress, on Windows, we have to use something like XAMPP (that’s what I used anyways) and the like, do some configurations, pull hair and throw some fits to be able to deploy successfully.

Now they’ve released this thing called Microsoft Web Application Installer, which is a freeware and suppose to ease those pain while deploying.

The Web Application Installer Beta is designed to help get you up and running with the most widely used Web Applications freely available for your Windows Server. Web AI provides support for popular ASP.Net and PHP Web applications including Graffiti, DotNetNuke, WordPress, Drupal, OSCommerce and more.

System requirements

  • Supported Operating Systems are: Windows Vista RTM, Windows Vista SP1, Windows Server 2008
  • You must have administrator privileges on your computer to run Web Platform Installer Beta
  • .NET 2.0 Framework
  • Supported Architectures: x86 and 64-bit

Detail feature reading and some Q&As here.

Sounds simple enough. Oh yah, me want, me want, I want WP on my Vista!!!
So lets test it out, download Microsoft Web Application Inataller here and instruction to install wordpress.

Alrite, here I go…………..

(more…)

Just going through my feeds and this one interests me. There is an announcement of the next version of Visual Studio and .Net Framework: Visual Studio 2010 and .Net Framework 4.0.

Visual Studio 2010 and the .NET Framework 4.0 mark the next generation of developer tools from Microsoft. Designed to address the latest needs of developers, Visual Studio and the .NET Framework deliver key innovations in the following pillars:

  • Democratizing Application Lifecycle Management
    Application Lifecycle Management (ALM) crosses many roles within an organization and traditionally not every one of the roles has been an equal player in the process. Visual Studio Team System 2010 continues to build the platform for functional equality and shared commitment across an organization’s ALM process.
  • Enabling emerging trends
    Every year the industry develops new technologies and new trends. With Visual Studio 2010, Microsoft delivers tooling and framework support for the latest innovations in application architecture, development and deployment.
  • Inspiring developer delight
    Ever since the first release of Visual Studio, Microsoft has set the bar for developer productivity and flexibility. Visual Studio 2010 continues to deliver on the core developer experience by significantly improving upon it for roles involved with the software development process.
  • Riding the next generation platform wave
    Microsoft continues to invest in the market leading operating system, productivity application and server platforms to deliver increased customer value in these offerings. With Visual Studio 2010 customers will have the tooling support needed to create amazing solutions around these technologies.
  • Breakthrough Departmental Applications
    Customers continue to build applications that span from department to the enterprise. Visual Studio 2010 will ensure development is supported across this wide spectrum of applications.

Here is a full overview of Visual Studio 2010 and .NET Framework 4.0 and some more reading on vSTS 2010 (code-name “Rosario”): What’s new in Visual Studio Team System 2010. Read some more detail announcement on Somasegar’s (senior vice president of the Developer Division at Microsoft) post: What’s next for Visual Studio and .NET FX?

Ok, that’s about it for now.

I haven’t written about office muses for a while and thought I’ll write something about last week muses from our department. Here is the story.

Disc StakkaYou see, we have this disc stakka where we stored all our department softwares. It’s attached to a spare box sitting on my desk and I kind of become an unofficial librarian. Whoever ask to borrow software from me, I’ll just eject the discs from the stakka and hand it to them. There is no record of how many discs we have and who borrowed them. The stakka itself is installed for everyone hence anybody can login to the box and eject any disc as they like. The result is we lost a few important discs over the months. I have no idea who took them but discs are obviously keep missing from the disc stakka. We sent a few notification emails to everyone in the office asking about the missing discs but nobody responded.

I kind of feel responsible about it since it was sitting on my desk and I am the one who is giving out the discs most of the time (unless ofcos they login to the box and eject the discs themselves when I’m away). The problem with me is that whenever I am into something or concentrating on a task at hand, I seriously don’t care about things happening around. I don’t see or hear anything unless someone pokes at me or waves in front of face. Even so, I don’t hear half of the thing they are saying. So when someone asks a disc from me while I am busy, I just remove the disc and give it to them without looking at their faces or noting their names. That must be one of the reasons people take advantage of my ignorance to snatch some discs from me.

Anyways, last week we had a very loud and noisy discussing about how to maintain our softwares. Most of my colleagues say not to borrow software to anybody outside our department. Our HR manager disagrees and wants everyone to share the software the company owns. (Ok, I wasn’t in the discussion/arguments as it was happening at one of our colleagues’ desk and I just over heard bits and pieces.) Finally we agree to properly keep track of the disc movement in some way. Boss made up a software borrowing register spreadsheet and mail it to everyone saying, unless and otherwise people fill in the register prior to picking up a disc, we are not to give it to them. But the spreadsheet was editable by everyone which is not a good idea so I created a form out of it and pass around the form. After checking the form, one of our colleagues argues that the form is very easy to fill and we like to make thing difficult for whoever comes to borrow our discs. So he suggested a few adjustments to the form.

Here are some of his suggestions:

Way too easy, we need some pain here. Can we add some more fields :
Put this under “Borrower Details

  • Weight (kg)
  • Height (cm)
  • Eye colour (offer Green, Blue, Grey, Brown)
  • Blood Type (offer A, B, AB, O) (suggestion to add negative, positive as well)
  • Hair Colour (offer Black, Grey, Brown, Red, Blond)
  • Random Question from http://www.survey-machine.com/take_survey/627331 that we’ll change every week or so, we’ll start with no. 1 “Have you ever peed your pants after age 8?”

Make all fields required.

There is a few more input from other colleagues as well such as “Do you have any recent health problem say in last 6 months?”, “Provide the medical certificate to prove your blood type”, etc…

How about that!? Is the form painful enough yet? Haha, I’m not sure how many borrowers will be able to fill in that form and surely throw some serious curses at us.

Anyways, I felt sorry for whoever have to fill in the form, and I did not implement those “Borrower Details” but left the simple form as below and see how things turn out. We had a few beta tests with our gang and now it is released to suva_everyone. One serious flaw we try to ignore is that anyone can login to the machine and remove the disc while I’m away from my desk. But for the time being, it’s doing quite well without complaint, a few minute ago, someone filled in the form and took 3 discs from me. I wonder how long this system will last though.

Inet Software Borrowing Form

So how do you keep track of the softwares in your organization? Do share with us some of the cool systems you use in your company. And ofcos’ you are most welcome to make suggestion to our system above as well. :D

  • 3 Comments
  • Filed under: Humors, Software, Tools, Work
  • Flickr Photos

    • 11/02/2012
      11/02/2012
      11/02/2012
      11/02/2012
      11/02/2012
      11/02/2012

    Downloads

    Twitter Status


    Goodie Links


    Mayvelous Friends


    I'm an Author for Global Voices

    Archives