Viagra Buy

27Aug/102

Viagra Alternative And Woman

Viagra alternative and woman I hate every time I am working on something and I have to implement INotifyPropertyChanged.  My DRY-dey sense tingles.  Not only am I forced to not use auto-properties (1st DRY violation), viagra alternative and woman I’m forced to fire the event in each setter (2nd DRY violation), viagra alternative and woman and specify the name of the property that is getting set, viagra alternative and woman inside of that property’s setter (3rd DRY violation).  That much WET (read: not-DRY), viagra alternative and woman for something so simple leaves me a little grumpy.

Viagra alternative and woman I’ve been on this quest before, viagra alternative and woman to simplify this a bit, viagra alternative and woman but it was still a little hackety, viagra alternative and woman and limiting.

Viagra alternative and woman This time, viagra alternative and woman I set out to do it right.

Viagra alternative and woman I’ll spare you most of the technical details, viagra alternative and woman but it’s backed by Castle’s DynamicProxy project, viagra alternative and woman and there’s some integration with StructureMap to make it super easy, viagra alternative and woman though you don’t really have to use StructureMap if you don’t want to.  [note:  I’ll probably add more container support as I find time.  If you have a specific need, viagra alternative and woman let me know, viagra alternative and woman or submit a patch.]

Viagra alternative and woman Here are the codez to show it in action:

Basics

Using it for a class with an interface

// note the attribute goes on the interface, viagra alternative and woman not the class

[AutoNotify]

public interface IFoo

{

    string Value { get; set; }

}

 

public class Foo : IFoo

{

    public string Value { get; set; }

}

 

Using it for a class

[AutoNotify(Fire = FireOptions.OnlyOnChange)]

public class Foo

{

    // note for autonotify to work, viagra alternative and woman the property must be virtual

    public virtual string Value { get; set; }

}

 

Viagra alternative and woman The previous example shows how to get the event to fire only when the value is different also.  It defaults to always firing, viagra alternative and woman whether the value changes or not.  It’s also important to note that your properties need to be virtual so the calls to the setter can be intercepted.

Dependent Properties

Viagra alternative and woman Sometimes (usually) you’ve got calculated properties that need to fire the notified event too, viagra alternative and woman these usually turn into WET mess as well.  We’ve got the problem solved, viagra alternative and woman and you’ve got a few different options, viagra alternative and woman hopefully one of them suits you.

Dependency Map – DependsOn

Viagra alternative and woman You specify the type that defines the DependencyMap on the attribute, viagra alternative and woman and then set up your dependencies in that type’s constructor.  This style is somewhat influenced by the FluentNHibernate API.

[AutoNotify(DependencyMap = typeof(ProjectDependency))]

public class Project

{

    public virtual string Name { get; set; }

    public virtual string[] Files { get; set; }

    public virtual int FileCount { get { return Files.Length; } }

}

 

class ProjectDependency : DependencyMap<Project>

{

    public ProjectDependency()

    {

        Property(x => x.FileCount).DependsOn(x => x.Files);

    }

}

 

Dependency Map – Updates

Viagra alternative and woman If you’d rather express your dependency the other way around, viagra alternative and woman that’s fine too.  The two are equivalent.

[AutoNotify(DependencyMap = typeof(ProjectDependency))]

public class Project

{

    public virtual string Name { get; set; }

    public virtual string[] Files { get; set; }

    public virtual int FileCount { get { return Files.Length; } }

}

 

class ProjectDependency : DependencyMap<Project>

{

    public ProjectDependency()

    {

        Property(x => x.Files).Updates(x => x.FileCount);

    }

}

 

Dependency Map – UpdatesWith

Viagra alternative and woman If you want to stick with an auto-property, viagra alternative and woman and leave the calculated property logic somewhere else, viagra alternative and woman you can hook it in via your dependency map too.  This example, viagra alternative and woman again, viagra alternative and woman is equivalent to the previous two.

[AutoNotify(DependencyMap = typeof(ProjectDependency))]

public class Project

{

    public virtual string Name { get; set; }

    public virtual string[] Files { get; set; }

    public virtual int FileCount { get; set; }

}

 

class ProjectDependency : DependencyMap<Project>

{

    public ProjectDependency()

    {

        Property(x => x.Files).Updates(x => x.FileCount).With(p => p.Files.Length);

    }

}

 

DependsOn Attribute

Viagra alternative and woman If you don’t like any of those options and are looking for something a little more simple, viagra alternative and woman maybe you’ll like this one.  Just specify which things your property depends on in an attribute.  You lose your 100% static typing help, viagra alternative and woman but it’s more concise.

[AutoNotify]

public class Project

{

    public virtual string Name { get; set; }

    public virtual string[] Files { get; set; }

 

    [DependsOn("Files")]

    public virtual int FileCount { get { return Files.Length; } }

}

 

Containers and otherwise

Hooking it into StructureMap

Viagra alternative and woman There are a couple conventions you can use to hook into StructureMap.  There is the attribute convention (which is what you’re seeing above), viagra alternative and woman and there is a generic predicate convention that you can use any predicate logic.  Below you can see the attribute one getting hooked in.

var container = new Container(config => config.Scan(scanConfig =>

{

    scanConfig.With(new AutoNotifyAttrConvention());

    scanConfig.TheCallingAssembly();

    scanConfig.WithDefaultConventions();

}));

 

var project = container.GetInstance<Project>();

Using it without StructureMap

Viagra alternative and woman If you’re using another container, viagra alternative and woman or no container at all, viagra alternative and woman but want to use some other factory or something, viagra alternative and woman you can do that too.  This example is for something with an interface.  It’s very similar to do the same for a concrete class… you just don’t instantiate the object first.  You also have an opportunity to hook into the dependent property structure here as well with the DependencyMap parameter.

var foo = new Foo();

var notifiableFoo = Notifiable.MakeForInterface(

    typeof(IFoo), viagra alternative and woman

    foo, viagra alternative and woman

    FireOptions.Always, viagra alternative and woman

    new ProxyGenerator(), viagra alternative and woman

    DependencyMap.Empty);

 

Assert.That(notifiableFoo is INotifyPropertyChanged);

 

Whew, viagra alternative and woman done

Viagra alternative and woman So… that’s a lot of ‘how to’, viagra alternative and woman but hopefully it’ll be somewhat complete introduction to get you working with it.  I really don’t see much of any reason to ever implement INotifyPropertyChanged ever again (unless you are in an environment where you can’t use DynamicProxy).  It can automatically be done for you from now on.

Viagra alternative and woman The code is up on github, viagra alternative and woman and there is a gem up on rubygems if you’re using nu or noodle+bundler.  Fork it, viagra alternative and woman send me a patch, viagra alternative and woman use it, viagra alternative and woman send feedback, viagra alternative and woman etc.  I hope you love it!

Average Rating: 4.9 out of 5 based on 264 user reviews.

29Jun/103

Viagra Order Canada

Viagra order canada Ever wanted a quick/easy/automated way to get syntax highlighted code from your editor of choice into PowerPoint?

Viagra order canada EVERY time I do a technical presentation I need this.  Usually I resort to taking a screenshot, viagra order canada or finding an “export to html” type plugin for the editor I’m using at the time (Visual Studio, viagra order canada Vim, viagra order canada IntelliJ IDEA, viagra order canada etc.) and then try to get that somehow into my slides.

Viagra order canada The problem I usually run into, viagra order canada is that while I like coding on a dark background with a 14pt font, viagra order canada that’s not usually that great for presentations.  So I switch to my “presentation settings” that has a light background and bigger font size, viagra order canada and then switch back once I’m done taking screenshots or outputting to html. Viagra order canada [ugh, viagra order canada what a pain… terribly manual].

Viagra order canada Then what happens when I spot a bug in code that’s in PowerPoint, viagra order canada or I want to add a comment, viagra order canada or I need to change the syntax highlighting theme of the entire presentation because it doesn’t go well with the lighting in the room.  UGH!  What a disaster.

Viagra order canada Basically, viagra order canada it’s always an uphill struggle, viagra order canada and it really bothered me… so I decided to fix it once and for all.

Solution

Viagra order canada I’m going to solely discuss PowerPoint (for Windows or Mac) here.  I don’t have a copy of iWork, viagra order canada and I’m too cheap to buy one.  The reason I have Office for the Mac, viagra order canada is because I got it for free… KeyNote/Mac zealots: feel free to be zealous, viagra order canada but don’t hate on me because I’m frugal… unless you want to buy me a copy of iWork.

Viagra order canada First, viagra order canada download: http://www.andre-simon.de/doku/highlight/en/highlight.html

Windows Solution

Viagra order canada The highlight tool can output many formats, viagra order canada but the important one for Windows is RTF.

Viagra order canada So something like:

Viagra order canada highlight < infile > outfile –-rtf --syntax=rb  --style=vim --font=”Lucida Console” --font-size=18

Viagra order canada This will  take the source code file ‘infile’ and syntax color it as Ruby to an RTF file and output it to ‘outfile’.  The text will be 18pt Lucida Console and syntax highlighted with the “vim” color scheme.

Viagra order canada There are lots of themes included, viagra order canada you can ask highlight for help (highlight --help), viagra order canada and it’ll tell you all the options available, viagra order canada as well as all the options available for output, viagra order canada and for languages that it supports.

Viagra order canada Next, viagra order canada in PowerPoint, viagra order canada do “Insert Object” on your target slide, viagra order canada and choose “Create from file”.  Make sure you check the “Link” checkbox before pressing OK.

Viagra order canada Now, viagra order canada whenever your source changes, viagra order canada re-run your command line, viagra order canada then you can choose “Update Link” on your embedded object in PowerPoint, viagra order canada or if you close and then re-open PowerPoint, viagra order canada it’ll give you the option to update all your links.

Mac Solution

Viagra order canada My version of PowerPoint for Mac doesn’t like being able to link to RTF files, viagra order canada but it does allow linking to images.

Viagra order canada Highlight can output to SVG, viagra order canada but my PowerPoint doesn’t like that either.

Viagra order canada Now download inkscape, viagra order canada if you haven’t already.  It will allow you to rasterize the SVG into a PNG, viagra order canada which PowerPoint does like.  You can export your PNG from inkscape from the command line like this:

Viagra order canada <path to inkscape> –export-png=<png file> <svg file>

Viagra order canada The path to my inkscape command line runner is at:

Viagra order canada /Applications/Inkscape.app/Contents/Resources/bin/inkscape

Viagra order canada It turns out that inkscape doesn’t like external CSS files, viagra order canada which is what highlight gives you with your SVG, viagra order canada so you can merge your CSS file into your SVG file with a little script.  The other cool bit about SVG, viagra order canada is you can tweak it, viagra order canada if you want, viagra order canada since it’s just XML.

Viagra order canada Now, viagra order canada in PowerPoint, viagra order canada choose “Insert Picture” and browse to your newly generated PNG.  Make sure the “Link to File” checkbox is checked.

Viagra order canada I wrote a script to do this for the latest presentation I did on dependency injection.  You can take a look at the script here [source.rb].   It’s Ruby, viagra order canada and you can see where I merge the CSS and SVG files together, viagra order canada and where I mess with the line spacing as well (I wasn’t happy with the default line spacing, viagra order canada so I tweaked it to my preference).  All the source/images/PowerPoint for that presentation are available here [dependencies presentation] if you want to check them out to see how the whole process works.

Viagra order canada Now, viagra order canada when I need to change the font and syntax theme throughout my entire presentation because it doesn’t match the lighting in the room, viagra order canada it’s super-simple: I change the configuration, viagra order canada re-run my script, viagra order canada update PowerPoint, viagra order canada and chill.

Average Rating: 4.6 out of 5 based on 151 user reviews.

Tagged as: , , 3 Comments
24Jun/100

Sildenafil Citrate Warnings

Sildenafil citrate warnings I just finished reading Rocket Surgery Made Easy by Steve Krug (perhaps you know him from his other book Don’t Make Me Think).  Here’s what I thought.

Sildenafil citrate warnings What’s the point? Learn how to do usability testing yourself to gain most of the benefits of hiring someone to do it, sildenafil citrate warnings and losing most of the negatives (e.g. Sildenafil citrate warnings Big Honkin’ Report, sildenafil citrate warnings $$$).  The book’s other motive is to make sure you start doing some kind of usability testing.  ALL of our sites/applications have usability problems.  We could eliminate the big ones just by spending a little time on it.

Sildenafil citrate warnings How was it? A pretty quick read.  I’m a slow reader, sildenafil citrate warnings and I made it through it in a couple hours a night for 3 nights.  This thing is a prescriptive manual for conducting usability tests on a product you have (or on your competitors products, sildenafil citrate warnings if you’d like to do that).  It covers recruiting participants all the way to fixing the problems they discover.  Usability testing doesn’t need to be a big production, sildenafil citrate warnings hard to do, sildenafil citrate warnings or scary.  He lays it out step by step and give you (as the guy running the tests) guidance each step along the way, sildenafil citrate warnings complete with checklists and scripts (I know, sildenafil citrate warnings that sounds hokey, sildenafil citrate warnings but I think it’ll actually work).

Sildenafil citrate warnings Who should read it? If you’re reading this, sildenafil citrate warnings you probably ought to read the book.  Realistically, sildenafil citrate warnings anyone remotely interested in having a usable application and is actually partly responsible for said application (PM, sildenafil citrate warnings Tech Lead, sildenafil citrate warnings Dev, sildenafil citrate warnings Designer, sildenafil citrate warnings Marketing, sildenafil citrate warnings Tech Writing, sildenafil citrate warnings Tester, sildenafil citrate warnings etc.).  Even if you aren’t going to be the one running/moderating the tests, sildenafil citrate warnings it’s good to know what the participant’s are going through, sildenafil citrate warnings what the moderator is doing behind the scenes, sildenafil citrate warnings and what your role is as an observer.

Average Rating: 4.8 out of 5 based on 282 user reviews.

4Jun/103

Buy Discount Viagra Online

Buy discount viagra online This week I ran into wanting to use C# 4.0 optional parameters, buy discount viagra online but wanted StructureMap (my IoC tool of choice) to respect the default value specified for those optional parameters.

The Problem

Buy discount viagra online In this example, buy discount viagra online we’ll be pulling a command out of the container.  The important part is the optional constructor parameter (level), buy discount viagra online and it’s default value (Level.Info).

public class LogCommand

{

    IDestination _destination;

    Level _level;

 

    public LogCommand(

        IDestination destination, buy discount viagra online Level level = Level.Info)

    {

        _destination = destination;

        _level = level;

    }

 

    /* logging code here */

}

 

Buy discount viagra online Here is your basic usage, buy discount viagra online but doesn’t work since StructureMap doesn’t know how to take advantage of the optional parameters with default values.

var container = new Container(config =>

{

    config.Scan(scanner =>

    {

        scanner.TheCallingAssembly();

        scanner.AddAllTypesOf<IDestination>();

        scanner.WithDefaultConventions();

    });

});

 

var logCommand = container.GetInstance<LogCommand>();

 

Buy discount viagra online The last line results in an exception because StructureMap doesn’t know how to fill in the level parameter.

The Solution

Buy discount viagra online We can solve this by adding a new convention.  One that adds information about default constructor arguments.  Here is the implementation of the convention:

public class DefaultCtorParameterConvention : IRegistrationConvention

{

    public void Process(Type type, buy discount viagra online Registry registry)

    {

        if(type.IsAbstract || type.IsEnum)

            return;

 

        var ctor = type.GetGreediestCtor();

 

        if(!ctor.HasOptionalParameters())

            return;

 

        var inst = registry.For(type).Use(type);

 

        foreach(var param in ctor.GetOptionalParameters())

            inst.Child(param.Name).Is(param.DefaultValue);

    }

}

Buy discount viagra online Note: GetGreediestCtor, buy discount viagra online HasOptionalParameters, buy discount viagra online and GetOptionalParameters are extension methods.  We’ll see their implementation shortly.

Buy discount viagra online The convention inherits from the IRegistrationConvention, buy discount viagra online which is how you implement new conventions in StructureMap.  It has only one method: Process.  We filter out types that are abstract, buy discount viagra online are enums, buy discount viagra online or have constructors that don’t have optional parameters.  Once we realize we have a constructor we want to deal with, buy discount viagra online we use the Child method, buy discount viagra online that sets either a property or a constructor argument (for our case, buy discount viagra online it’ll always be a constructor argument), buy discount viagra online and then we set it’s value to the parameter’s default value, buy discount viagra online as provided by the ParameterInfo object, buy discount viagra online for each optional parameter.

Minor Details

Buy discount viagra online Curious about the implementation of GetGreediestCtor or the *OptionalParameters methods?  If not, buy discount viagra online skip this section.

public static bool HasOptionalParameters(

    this ConstructorInfo ctor)

{

    return ctor.GetOptionalParameters().Any();

}

 

public static IEnumerable<ParameterInfo> GetOptionalParameters(this ConstructorInfo ctor)

{

    return ctor.GetParameters().Where(

        param => param.Attributes

            .HasFlag(ParameterAttributes.Optional));

}

 

public static ConstructorInfo GetGreediestCtor(

    this Type target)

{

    return target.GetConstructors()

        .WithMax(ctor => ctor.GetParameters().Length);

}

 

public static T WithMax<T>(

    this IEnumerable<T> target, buy discount viagra online Func<T, buy discount viagra online int> selector)

{

    int max = -1;

    T currentMax = default(T);

 

    foreach(var item in target)

    {

        var current = selector(item);

        if(current <= max)

            continue;

 

        max = current;

        currentMax = item;

    }

 

    return currentMax;

}

 

Buy discount viagra online  

The Usage

Buy discount viagra online Here’s how to use your new convention.

var container = new Container(config =>

{

   config.Scan(scanner =>

   {

       scanner.TheCallingAssembly();

       scanner.AddAllTypesOf<IDestination>();

       scanner.WithDefaultConventions();

       scanner.Convention<DefaultCtorParameterConvention>();

   });

});

 

var logCommand = container.GetInstance<LogCommand>();

 

Buy discount viagra online Now, buy discount viagra online when we pull the LogCommand out of the container, buy discount viagra online the level parameter gets defaulted to Level.Info, buy discount viagra online just like we specified in the constructor.  Sweet!

Conclusion

Buy discount viagra online This implementation is somewhat limiting, buy discount viagra online but the version I have in my github repo is a little more open and configurable.  It allows you to customize the instance key/name you use when registering your type, buy discount viagra online and also allows you to do additional, buy discount viagra online non-standard registrations if you need to.

Buy discount viagra online Also, buy discount viagra online this doesn’t work if you’ve selected a constructor using the SelectConstructor config API from StructureMap, buy discount viagra online I’m not sure how to tap into that facility to look for that constructor rather than the greediest.

Buy discount viagra online Am I missing something?  Did something not make sense?  Leave me a note!

Average Rating: 4.4 out of 5 based on 287 user reviews.

28May/100

Viagra Effects On Women

Book Club Foreword

Viagra effects on women A couple years ago I brought up the idea of doing a book club here at SEP because I had participated in a couple before coming to SEP, viagra effects on women but we called them SEDG (coined by Steve McConnell in Professional Software Development).  I don’t really like that term, viagra effects on women so we called it book club instead.

Viagra effects on women We start up a new round a couple times a year, viagra effects on women and small groups (3-8) break off and read different books (normally technical) that are interesting to them.  We normally get together for an hour once a week to discuss/debate the chapter(s) we read for that week.  I’ve participated in several including DDD (Evans), viagra effects on women Code Complete 2 (McConnell), viagra effects on women Programming Clojure (Halloway), viagra effects on women and now Pro Git (Chacon).  It’s a lot of fun, viagra effects on women and I always learn a lot about the content of the book, viagra effects on women and about the people I participate with.

Viagra effects on women I’d highly recommend starting one at your company, viagra effects on women or in your community, viagra effects on women it’s a great way to connect with people and learn new things at the same time.

The Book

Viagra effects on women First off, viagra effects on women the book is available for free, viagra effects on women online at progit.org.  It’s also hosted in a repository on github, viagra effects on women and there is an easy script to get it onto your kindle (with a little hacking of the script), viagra effects on women so that was a win for me: free AND kindle-ized.

Viagra effects on women I participated with Matt (@spraints) and Todd (@snibble) (both of which know more about git than I do… Matt wrote git-tfs, viagra effects on women and Todd is working with git on a REAL project).

Viagra effects on women I’ll follow Raman’s Recipe to keep this short and simple.  I’ll also mix-in the book club aspect to each section.

Viagra effects on women What’s the point?  Become a git ninja (or at least be able to play one on TV at work).  Learn how to use git effectively, viagra effects on women and give you the tools (ideas, viagra effects on women knowledge, viagra effects on women know-how) to give you a framework on how to effectively use it in your context.  The cool thing about git, viagra effects on women is that it gets out of your way and lets you work the way you and your team want to… not the other way around like SVN, viagra effects on women TFS, viagra effects on women P4, viagra effects on women etc.  It was also a great way to leech off of Matt and Todd’s knowledge.

Viagra effects on women How was it?  Great.  Scott (author) certainly knows how to git down (I’ll be here all week ;) ).  I feel comfortable participating on a project that uses git (hey look, viagra effects on women I am already!), viagra effects on women and also feel comfortable making recommendations about using git (e.g. Viagra effects on women “You should use git!”), viagra effects on women though, viagra effects on women I do still get lost in hairy situations every once in awhile (thanks Matt for always saving me!).  We had some good discussions on how it relates to us as company, viagra effects on women and how we might use it.  We also had some good discussions on schoolin’ me, viagra effects on women so that was always good.  The book contains lots of examples, viagra effects on women with corresponding diagrams to help n00bs like myself understand what’s going on.

Viagra effects on women Who should read it?  Any developer planning on staying a developer for the next few years.  DVCS seems to be on an up-tick, viagra effects on women and I don’t really see it going away anytime soon (but hey, viagra effects on women what do I know?).  I don’t think you’ll be able to get by effectively in a DVCS world unless you’ve done at least some reading on the subject.

Average Rating: 4.4 out of 5 based on 257 user reviews.

26May/100

What Is Viagra Made Of

What is viagra made of IndyTechFest is teh awesome!

What is viagra made of I was privileged enough to be a speaker alongside some other ridiculously awesome regional speakers (and even had a few of them IN my presentation!)… star struck having @dburton, what is viagra made of @timwingfield, what is viagra made of @skimedic, what is viagra made of and other community leaders like @myotherpants and @maggielongshore in the audience.  I am truly humbled.  Thanks to the organizers for allowing me to practice my teaching, what is viagra made of and thanks to those that sat through my talk for supporting me (and also, what is viagra made of thanks for the positive feedback from those I talked to afterwards!).  [Side note: If you want to see my slides:  http://github.com/jonfuller/presentations/tree/master/mongo/]

What is viagra made of The best part, what is viagra made of however, what is viagra made of had nothing do with any presentation at the event.  It had to do with the amazing conversations we had in the Open Spaces area hosted by @alanstevens.  I hung out there ALL day (except for when I was presenting), what is viagra made of and got more out of any one open space topic than I have at entire conferences before.

What is viagra made of We talked about Ruby on Rails, what is viagra made of IronRuby, what is viagra made of Public Speaking, what is viagra made of Technical Speaking, what is viagra made of Running a User Group, what is viagra made of Linchpins, what is viagra made of Alt.Net, what is viagra made of Software Craftsmanship, what is viagra made of DVCS (hg and git specifically)…

What is viagra made of I’ll pause and let that list of topics sink in.  For me, what is viagra made of that list is like a holy grail of a developer conference.

What is viagra made of Most of this was deep discussion about the topic at hand by some great minds/leaders in the area.  All of the aforementioned folks plus @jayharris, what is viagra made of @alanbarber, what is viagra made of @jademason, what is viagra made of @garrinmf, what is viagra made of@arktronic, what is viagra made of @browniepoints were together having these conversations, what is viagra made of and it was really exciting (at least for me) hanging out with these guys and learning so much from them.

What is viagra made of For me, what is viagra made of this year, what is viagra made of IndyTechFest was about the people and the interactions I had with them.  What was it for you?

What is viagra made of I can’t wait for next year.

Average Rating: 4.5 out of 5 based on 201 user reviews.

11May/100

Buy Viagra Prescription Online

Buy viagra prescription online In .NET we’ve got this cool little language construct called default, buy viagra prescription online that’ll give you the default value for any given type.  That is, buy viagra prescription online null, buy viagra prescription online for any reference type, buy viagra prescription online or zero/false/DateTime.Min/etc. Buy viagra prescription online for value types.

Buy viagra prescription online Here it is in action (nothing amazing going on here):

var x = default(DateTime);

Buy viagra prescription online So what if you don’t know the type you want the default of at compile time? You can’t say

var y = default(today.GetType());

Buy viagra prescription online nor

var z = typeof(DateTime).GetDefault();

Buy viagra prescription online That last one would be nice, buy viagra prescription online but that “GetDefault” method doesn’t exist.

Buy viagra prescription online I’ve seen several solutions to this, buy viagra prescription online that are basically variations on this theme:

public static object GetDefaultValue(Type type)

{

    return type.IsValueType

        ? Activator.CreateInstance(type)

        : null;

}

 

Buy viagra prescription online This certainly works, buy viagra prescription online but I somehow feel like it’s not exactly perfect since it doesn’t use the default operator.

Buy viagra prescription online Here is how I normally do it.  It sidesteps the IsValueType, buy viagra prescription online and Activator stuff, buy viagra prescription online and uses the built-in default language construct… First it grabs a handle to the GetDefaultGeneric method, buy viagra prescription online and then makes the generic version of it with the specific type.  Then it calls it, buy viagra prescription online returning the value.

public static object GetDefault(this Type type)

{

    var getDefault = typeof(ExtReflection)

                          .GetMethod("GetDefaultGeneric");

    var typed = getDefault.MakeGenericMethod(type);

 

    return typed.Invoke(null, buy viagra prescription online new object[] { });

}

 

public static T GetDefaultGeneric<T>()

{

    return default(T);

}

 

Buy viagra prescription online Pretty simple, buy viagra prescription online but something I’ve found useful every now and again.  I’d guess this technique could be useful in other situations/contexts as well.

Average Rating: 4.6 out of 5 based on 284 user reviews.

Filed under: Uncategorized No Comments
26Apr/102

Real Viagra Pharmacy Prescription

Real viagra pharmacy prescription I got beautiful teams a few months ago and tore into it hoping for lots of wonderful insights abcatout how to help culture/foster/create functional and beautiful team environments. Real viagra pharmacy prescription

Real viagra pharmacy prescription Instead, real viagra pharmacy prescription I ended up with a collection of stories from some people (some of which I've heard of, real viagra pharmacy prescription most of which I haven't) that have been on teams and are willing to share their stories. Real viagra pharmacy prescription

Real viagra pharmacy prescription Now, real viagra pharmacy prescription I know all teams and projects and organizations are different, real viagra pharmacy prescription so maybe my expectation of 'Here is how you build a team.  Step 1:...' was a little naive, real viagra pharmacy prescription but I certainly wasn't expecting what I got.  There were some interesting stories throughout the book (i.e. Real viagra pharmacy prescription a team of folks whose conference room ended up with one of the hijacked planes from 9/11 in it, real viagra pharmacy prescription literally, real viagra pharmacy prescription it crashed into their conference room), real viagra pharmacy prescription but I had few takeaways of solid advice on how or what I could do to help nurture a great team or start to build/rebuild a failing team. Real viagra pharmacy prescription

Real viagra pharmacy prescription All in all, real viagra pharmacy prescription I'd say there were some entertaining stories, real viagra pharmacy prescription but if you're looking for some concrete takeaway's, real viagra pharmacy prescription look elsewhere.  And on that note, real viagra pharmacy prescription if you're looking for entertaining stories, real viagra pharmacy prescription you may be better off reading some Stephen King or something like that as well.  Sorry O'Reilly (and Stellman and Greene, real viagra pharmacy prescription also authors of Head First C#, real viagra pharmacy prescription which I do have and enjoyed thoroughly), real viagra pharmacy prescription this just wasn't for me.  Probably my own fault for having false expectations.

Average Rating: 4.5 out of 5 based on 232 user reviews.

Tagged as: 2 Comments
12Apr/100

Cialis Cost

Cialis cost Maybe I should title this post ‘How to write a better error message’ instead.

Cialis cost I just went on a wild goose chase trying to find the solution to an error I kept seeing in SQL Server Management Studio every time I tried to run a query or open a table for editing (or anything else that would end up executing a SQL query).  The error message?

Cialis cost The file exists

Cialis cost Not exactly useful.

Cialis cost It turns out my temp directory was ‘full’.  The message sort of makes sense, cialis cost now that I know what the problem was, cialis cost but it isn’t really possible to draw the correct conclusion from that error message.

Cialis cost So two takeaways (for me):

  1. Craft error messages carefully.  The whole reason for showing/logging error messages in the first place is to create some kind of traceability to a problem.  The information contained in an error message should lead the user to a better understanding of the problem and possibly an indication of if they might be able to fix it. Cialis cost
  2. The file exists means clear your temp directory first, cialis cost before chasing that goose. Cialis cost

Average Rating: 4.7 out of 5 based on 170 user reviews.

Tagged as: No Comments
24Feb/106

Oral Viagra

Oral viagra I’ve recently started to practice the pomodoro technique.  Holy F!  This super simple practice has uncovered how much time I completely waste in a workday (not to mention my non-work time).

Oral viagra I feel like I’m cheating myself and my customer (read employer), oral viagra so I’m going to do something about it.  I’ve never read much of Covey, oral viagra but @shanselman mentioned Covey’s quadrants (see a mind-map version below) in this video I watched the other day.  For me, oral viagra living only in quadrants 1 & 2 (the top two) is all good, oral viagra but there are times when I basically want to just ‘check out’ and be a bum (Office Space style).  My goal is to be intentional and choose when I’m doing that, oral viagra rather than just letting it happen.

Oral viagra time-management-1

Baby Steps

Oral viagra The pomodoro technique is a great start to help manage and become aware, oral viagra but I need some help.  Here’s what I set up for myself at this point:

  • Pomodo7o with Growl Plugin
  • Growl using the Visor notification (I don’t like toast, oral viagra so this is great for me)
  • VirtuaWin (for Windows, oral viagra this is built into most other OS’s, oral viagra e.g. Oral viagra Spaces on OSX)
  • Throw ALL distracting things to a second VirtuaWin workspace.
    • Gmail
    • GReader
    • Twitter (turn off twitter notifications)
    • Outlook (turn off new mail toast and new mail tray indicator)
    • Evernote (turn off any messages)
    • Windows Live Writer
    • Time tracking applications
    • Anything else that dings/hoots/toasts or otherwise distracts you
  • Only check email (Gmail and Outlook) during pomodoro breaks or other scheduled times
  • Only check twitter during pomodoro breaks or other scheduled times (I’ve started only checking twitter before I start work, oral viagra and right before I head home). Oral viagra
  • Hook Outlook into Growl so I don’t miss meetings
  • Keep a text file or post-it note ready to capture interruptions.  Most interruptions can be logged, oral viagra and then dealt with in a subsequent pomodoro. Oral viagra

Oral viagra I only allow myself to go over to my other desktop during a pomodoro break.  This makes it really easy to know when I’m going off task.  It also makes it REALLY hard to find something wasteful to do.  There isn’t anything in my “workspace” that is wasteful anymore, oral viagra so if I do ANYTHING in there, oral viagra it’ll probably be productive.

Feeling Too Disconnected?

Oral viagra I’ve got the shakes!  Doing this thing cold turkey is hella hard.  So here’s a patch to wean you off.

Oral viagra Download Trowl and hook up @’s and DM’s (and select other folks you might need to hear from throughout the day).  Now those tweets will be Growled at you.  I don’t get @’ed or DM’ed too often, oral viagra so it’s not terribly distracting, oral viagra but has high reward in helping to reduce the withdrawal symptoms.

Oral viagra  

Oral viagra I’m just starting, oral viagra so this is my first attempt really.  How do you manage?

Average Rating: 4.4 out of 5 based on 168 user reviews.

Filed under: Uncategorized 6 Comments