A taste of development

May 29, 2008

Language parsing and compiler design doesn’t have to be hard, but boy this book truly sucks!

Filed under: Technology —Tagged , , , — simma1990 @ 1:55 pm

How’d you like that for an opening up title? Did it seize your attention? Hell, your studying this far so I hazard it did. The book I’m riveting on hither is Work up Your Own.NET Language and Compiler  and delight, don’t click the link and so run purchase it. I don”t care about the 50 cents worth of referral money I’ll get if you do. I wouldn’t yet advocate the book if I paid off 50 bucks of referral money (good, money talks, so mayhap I would).

The book startles out with the basics of parsing and even expressions and all that jazz. But the extent of the code is a bunch of screen shots. We are droping a line a parser/compiler dang it, we aren’t WYSIWYGing our way through life at this point, you have to render some existent frigin code. What you terminate up with is a bunch of screen shots of many tools for droping a line a compiler, but not truly the code, unless of course you proceed snap up the CD and come out all of the code without a lick of explanation from the book. God I go for the code is good documented with comments, or you simply bribed an issue of Compiler’s Instanced and this isn’t the Swimsuit edition. I’ll let in some of my ain links at the bottom, where I present factual code for many of these processes.

OK, so you pay off to meet a bunch of tools, and what do you pay back? Well, you produce a bunch of half-assed tools (good-for-naught for the language if your kid is learning my highly technical blog… In fact, if he/she is I could utilize some interns, must typewrite 50+ WPM and be technical at C, C++, or C#). A numerical expression evaluator is the first. I conceive it is ever the first. People e’er trivialize math. Thence make sure enough you view all the pretty pictures and render to harvest some wisdom from the text. I have a numerical expression evaluator by the way, it’s sent for calc.exe and from what I can assure it has shipped since 16-bit windows. He as well makes believe an attempt at a even expression workbench. You can’t have enough of those (really I’m not being sarcastic hither, I constantly apprize a newfangled regex tool), but and so he ne’er spells anything or manifests compiler technology that utilises veritable expressions. Does he come in NFA/DFA technology? Well, he does discuss it for a few sentences. BNF format? Over again a few sentences hither and in that location. But await, another tool is what you get under one’s skin and this time it is a picture of a drop-downward menu with all sorts of truly teasing names (convert from BNF to XML, exhibit a BNF parse tree, display arranged docs, etc…). At this point use one of the pages to get the drool doing off your lip, because that is as near as you’ll make it this book to anything nerveless.

(more…)

Specifying the Citing Assembly

Filed under: Technology —Tagged , , — simma1990 @ 12:46 pm

Suppose you’re debugging your application and you realise that version 1.0 of an assembly is being charged when you intended it should be version 2.0. Where is the reference to 1.0 coming from?

The well-fixedest way to regain out is to view the Fusion log for this bind. If the version 1.0 assembly was successfully charged, utilize the ForceLog/”Log all binds” option of FusLogVw. And then, seek the line in the log demonstrating the addressing assembly:

Addressing assembly : referencingAssembly, Version=1.0.0.0, Culture=achromatic, PublicKeyToken=12ab3bf24c56c45b.

It exhibits the display name of the addressing assembly when uncommitted. It doesn’t assure you whether this is a unchanging or a dynamical reference because Fusion doesn’t cognize or care (that doesn’t matter for obliging purposes). So, this could intend that referencingAssembly was built against the other 1.0 assembly, or that it invited it at runtime via Assembly.Load(), etc.

Sometimes the naming assembly is not specified in the log. There are a few potential cases where that bechances:

  • The assembly was requested by unmanaged code (interop).
  • The calling off assembly was in another appdomain (AppDomain.CreateInstance(), etc.).
  • The calling off assembly had not been loaded through Fusion (Assembly.Load(byte[]), Assembly.LoadFile(), etc.).

 

May 28, 2008

Where to Find oneself Expert Support

Filed under: Technology —Tagged , , , — simma1990 @ 9:43 pm

Microsoft’s prescribed support website is http://support.microsoft.com/. It has all kinds of resources like product FAQs, downloads, searchable KB articles, newsgroup pointers, and ways to hit people to help with your single needs or feedback.

Alas, I can’t consecrate attention to single customer issues. That’s because I work in product design and development, not customer support. Someone has to be revolved about that, or else we’d ne’er embark anything! Then, I’m moving to have to entrust your questions and comments to MS’s prescribed channels which specialize in that. Please preserve comments you put up hither worldwide and about the loader or performance.

March 26, 2008

Brad Abrams’ pixel8 Interview Podcast posted

Filed under: Technology —Tagged , , , , — simma1990 @ 4:48 am

Also see: The influence of style upon methodology…

I just noticed that the good folks at Pixel8 posted a podcast I did with them a while back.  It was a fun conversation about a bit of.NET history as well as where we are going. 




Landing Page   Download show


I’d love the hear what you think!


http://blogs.msdn.com/brada/archive/2008/03/15/brad-abrams-pixel8-interview-podcast-posted.aspx

March 25, 2008

Prototypes and Java Config with Spring

Filed under: Technology —Tagged , , , , — simma1990 @ 11:00 pm

Spring is a deep framework providing numerous approaches and techniques for Java developers. This post by Solomon Duskis covers the topic of Java config and prototypes in the framework.

Also see: Infrequent blogging

Also see: Note to self: Blog about using Service Broker

Also see: The 2 Technology Magazines You Should Read


http://feeds.feedburner.com/~r/techtarget/tsscom/blogs/~3/248013264/thread.tss

Finally, the Killer App

Filed under: Technology —Tagged , , — simma1990 @ 4:48 pm

Also see: YouTube Tries to Get Legal

Also see: Brad Abrams’ pixel8 Interview Podcast posted

Also see: This Guy Proves Anyone with a Keyboard can be Stupid

If you’ve yet to be sold on the Internet, grab a seat and your favorite pointing device. My good man Ryan sent me a link to what is undoubtedly the Internet’s Killer App: The Beer Mapping Project

Chicago’s map is a bit limited — my neighborhood alone has over 450 bars — so get on it. It takes a village, comrades.

God Bless America!

http://weblogs.asp.net/jkey/archive/2006/01/18/435889.aspx

Java Concurrency, another series on its issues

Filed under: Technology —Tagged , , , , — simma1990 @ 7:00 am

Previously in the blog section at TSS we presented a series on the issues related to Java concurrency, continuing with what is definitely a topic of interest given the emerging processor architectures in the industry, we present this post covering yet another series on the issues of Java concurrency.

Also see: Infrequent blogging


http://feeds.feedburner.com/~r/techtarget/tsscom/blogs/~3/248003447/thread.tss

March 24, 2008

LINQ – The Uber FindControl

Filed under: Technology —Tagged , , , , — simma1990 @ 12:00 pm

Also see: Trust Microsoft with Claimspace (my response pending)

With a simple extension method to ControlCollection to flatten the control tree you can use LINQ to query the control tree:

public static class PageExtensions
{
 public static IEnumerable<Control> All(this ControlCollection controls)
 {
 foreach (Control control in controls)
 {
 foreach (Control grandChild in control.Controls.All())
 yield return grandChild;

 yield return control;
 }
 }
}
Now I can do things like this:
// get the first empty textbox
TextBox firstEmpty = accountDetails.Controls
.All()
.OfType<TextBox>()
.Where(tb => tb.Text.Trim().Length == 0)
.FirstOrDefault();

// and focus it
if (firstEmpty != null)
 firstEmpty.Focus();

.csharpcode,.csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode.rem { color: #008000; }
.csharpcode.kwrd { color: #0000ff; }
.csharpcode.str { color: #006080; }
.csharpcode.op { color: #0000c0; }
.csharpcode.preproc { color: #cc6633; }
.csharpcode.asp { background-color: #ffff00; }
.csharpcode.html { color: #800000; }
.csharpcode.attr { color: #ff0000; }
.csharpcode.alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode.lnum { color: #606060; }

(more…)

March 23, 2008

VS.NET Macro To Group and Sort Your Using Statements

Filed under: Technology —Tagged , , , — simma1990 @ 12:00 am

Also see: The NCAA and the Hoosiers

I try to follow a coding standard for organizing my using statements. System.* goes at the top and then other namespaces grouped together like this:

 using System;
 using System.Collections.Generic;
 using System.Configuration;
 using System.Data;
 using System.Data.SqlClient;
 using System.Web;
 using System.Web.Script.Services;
 using System.Web.Services;
 using System.Web.Services.Protocols;

 using Microsoft;
 using Microsoft.CSharp;

 using MyCompany;
 using MyCompany.Web;

.csharpcode,.csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode.rem { color: #008000; }
.csharpcode.kwrd { color: #0000ff; }
.csharpcode.str { color: #006080; }
.csharpcode.op { color: #0000c0; }
.csharpcode.preproc { color: #cc6633; }
.csharpcode.asp { background-color: #ffff00; }
.csharpcode.html { color: #800000; }
.csharpcode.attr { color: #ff0000; }
.csharpcode.alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode.lnum { color: #606060; }

(more…)

March 21, 2008

Using Silverlight 2 on a production Web Server

Filed under: Technology —Tagged , , , — simma1990 @ 7:00 pm

Also see: CVS on the Web

Also see: I’ve finally settled into my new position on the Internet Explorer team…

Also see: The Internet is Officially Dead & Boring – Its the economy stupid !

I recently ran into an issue with using Silverlight 2 on a production web server.   Basically the Silverlight 2 application worked great on my dev machine, but when hit from the production web server I found the page has the Silverlight control, but just a white canvas, nothing else.

The problem was that the web server was not set up to handle the.xap file extension that Silverlight 2 uses to encapsulate the code for the application. 

A few options for fixing this issue:

1. For IIS6, simply add the.XAP filetype.

2. For II7, this should just work as IIS7 enables them all by default.

3. Other web services such as Apache, lighttpd, etc.  Just make sure the server is configured to allow access to.xaml,.wmv and.xap files and you should be all set

4.  Sometimes you can’t easily go in and change the setting on the server.   So the solution I actually used was none of these.  I just renamed the.XAP file to.ZIP, changed the reference in my applications.Xaml file and it ran fine! 

 

Hope that helps!


http://blogs.msdn.com/brada/archive/2008/03/14/using-silverlight-2-on-a-production-web-server.aspx

Powered by WordPress Hosted by Edublogs.