0

Error running ASP.NET application with impersonation: runtime Failed to start monitoring changes

Posted by Al on Oct 28, 2009 in Dotnet  | View Original Article
 

When you get this error “ASP.NET runtime Failed to start monitoring changes (…) ” on your ASP.NET app is frustrating to find what is causing this problem, normally is when you moved an application from a computer to another. I personally seen it happen in Windows Vista and Windows 7 machines.

The solution.

If you using impersonation you’ll find that removing the impersonation key will fix your issue, of course you need impersonation for your application to have access to other resources. I recommend to add that user in the ASP.NET process account.

 

Documentation of the issue from Microsoft can be found here.

http://support.microsoft.com/kb/317955

Hope this helps

Al

Follow me in twitter | bookmark me | Subscribe to my feed | Add stats to your blog

 

Tags:

 
0

Windows Presentation Mode

Posted by K. Scott Allen on Oct 28, 2009 in Dotnet  | View Original Article
 

Presentation mode isn’t new (it was introduced in Vista), but it is handy. One easy way to turn presentation mode on is to type “present” into the Start menu search box and let Windows find the “Adjust settings before giving a presentation” item.

image

From here you can turn on presentation mode and tweak some settings.

image

Notice the help text says “your computer stays awake”. I turned on presentation mode today just to keep my laptop awake while it sat in a corner coping a 16 GB file over WiFi.

Of course, presentation mode is useful when you have an actual presentation, too. In addition to the background, screen saver, and volume settings, Messenger will mark your status as busy and not throw toast on the screen (you’ll only get a blinky icon in the taskbar). Other applications can disable their notifications, too, but the author of the application has to write the code to be aware of notification state. Kirk Evans has an example.

What About Desktops?

Unfortunately, presentation mode is only available on laptops by default. It turns out you can do a fair amount of presenting from a desktop with Camtasia (love it) and Shared View.

The good news is you can have presentation mode on a desktop with just a couple registry tweaks: http://www.dubuque.k12.ia.us/it/mobilitycenter/

What About The Command Line?

presentationsettings.exe is the name of the executable that displays the dialog shown above. If you want to toggle presentation mode from a script you can use:

presentationsettings /start

and

presentationsettings /stop

Another handy executable is mblctr.exe. This program launches the Windows Mobility Center with a UI to tweak brightness, power settings, presentation mode, and more.

This concludes my exuberant Windows tip of the day, I hope you found it useful.

 
0

Eclipse Tools For Silverlight Now Available

Posted by Silverlight Team on Oct 28, 2009 in Pega Systems, Silver Light  | View Original Article
 

The Eclipse Tools for Silverlight (Eclipse4SL) plug-in is an open source, cross-platform plug-in for the Eclipse development environment that enables Eclipse developers to build Silverlight Rich Internet Applications (RIAs).  Microsoft has collaborated with Soyatec, a France-based IT solutions provider, to develop subsequent beta versions, including the Mac version, since announcing the Eclipse4SL project in October 2008.  Today we are excited to announce that Microsoft and Soyatec have released version 1.0 of the Eclipse Tools for Silverlight plug-in, which can be downloaded here: http://www.eclipse4sl.org/ 

Version 1.0 of Eclipse4SL targets Silverlight 2.0.  We are working with Soyatec to add support for Silverlight 3.0 in spring 2010 timeframe. You can find a roadmap of the milestones that we have projected on the project site: http://www.eclipse4sl.org/#roadmap . Video demo walkthrough of the plug-in are also available here and here (Mac version).


Tags: , , , , ,

 
0

Make Tabs Behave More Smoothly With Organic Tabs

Posted by W3Avenue Team on Oct 28, 2009 in Javascript  | View Original Article
 

Organic Tabs is a jQuery Plugin that allows you to build a tabbed area with smooth / gentle transition from one tab to another; even if these tabs contain content of different heights. The effect is achieved by calculating heights and animating between those heights on the fly.

Primary purpose of Organic Tabs is to enable tabs behave smoothly; other than that script is fairly simple, clean and semantic markup. Organic Tabs should work on all major browser and you can easily change its look and feel using CSS.

Developed by Chris Coyier of CSS-Tricks; Organic Tabs is available for download License Free.  You can find further information, demo & download on CSS-Tricks Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , , ,

 
0

“Can not find Respack” error when running a Moonlight project

Posted by Kirstin Juhl on Oct 28, 2009 in Dotnet  | View Original Article
 

I recently upgraded to MonoDevelop 2.2 Beta 2 (for the debugging capability, more on that later) on my Mac.

When I opened a Moonlight solution and tried to run it, I got the following error:

Could not find respack

The project had lost its references to System.Windows and System.Windows.Browser.

The cause turned out to be that when you upgrade MonoDevelop, it doesn’t always update where it’s pointing.

The solution was to go to:

/Library/Frameworks/Mono.framework/Versions

and delete all directories except the one for the current version of MonoDevelop, in my case, 2.4.2.3

Tags:

 
0

jQuery Horizontal Accordion Script

Posted by W3Avenue Team on Oct 28, 2009 in Javascript  | View Original Article
 

Horizontal Accordion Script is a jQuery Plugin which turns an ordinary UL list into a horizontal accordion. You can easily change the look and feel via CSS and customize its functionality with the help of various options. Horizontal Accordion is cross browser script and has been tested to work on IE6+, Firefox and Opera.

The HTML markup of the Accordion (UL list) can either be defined inline on the page, or inside an external file instead and fetched via Ajax. Plus you can specify which LI should be expanded by default, whether to persist the last expanded LI (within a browser session), and also, expand a particular LI by passing in different parameters into the URL string. All this makes for a versatile, smooth horizontal accordion.

Developed by Dynamic Drive; jQuery Horizontal Accordion Script is available for download for Free. You can find further information, demo & download on Dynamic Drive Website.

Similar Posts:

You can also stay updated by following us on Twitter, becoming a fan on Facebook or by subscribing to our FriendFeed.

Tags: , ,

 
0

Idle Timeouts in RIA Services Authentication

Posted by Bryant Likes on Oct 28, 2009 in C#, Dotnet  | View Original Article
 

A question came up in the Silverlight Forums about how to timeout a user when using .NET RIA Services. Since I have implemented this before I thought I would share an approach I used. There might be a better way that is more integrated with the ASP.Net security, but for now this works.

To start with, you’ll need the Sample Application that Brad Abram has been building and blogging about and you might want to read through this post on Authentication in RIA Services before going any further. Once you have that and can build/run it on your machine you can continue on.

The security in Brad’s example uses a simple membership provider that is using RIA Services FormsAuthentication since it takes a username and password to log in. For our example we will extend the FormsAuthentication and add a timeout to it. Below is my implementation of the FormsWithTimeoutAuthentication class:

          namespace MyApp { public
class FormsWithTimeoutAuthentication : FormsAuthentication { private DispatcherTimer idleTimer; private
int minutesIdle; private bool idle; private
bool attached = false; public FormsWithTimeoutAuthentication()
: this(20) { } public FormsWithTimeoutAuthentication(int idleMinutes)
{ IdleMinutesBeforeTimeout = idleMinutes; idleTimer = new DispatcherTimer();
idleTimer.Interval = TimeSpan.FromMinutes(1);
idleTimer.Tick += new EventHandler(idleTimer_Tick);
} public int IdleMinutesBeforeTimeout { get; set;
} protected override LoginResult EndLogin(IAsyncResult asyncResult)
{ var result = base.EndLogin(asyncResult); if (result.LoginSuccess
== true) { if (!attached)
AttachEvents(); minutesIdle = 0; idleTimer.Start(); } return result;
} protected override LogoutResult EndLogout(IAsyncResult asyncResult)
{ idleTimer.Stop(); return base.EndLogout(asyncResult);
} private void AttachEvents() { attached = true; Application.Current.RootVisual.MouseMove
+= new MouseEventHandler(RootVisual_MouseMove); Application.Current.RootVisual.KeyDown
+= new KeyEventHandler(RootVisual_KeyDown);
} private void RootVisual_KeyDown(object sender, KeyEventArgs e)
{ idle = false; } private
void RootVisual_MouseMove(object sender, MouseEventArgs e)
{ idle = false; } private
void idleTimer_Tick(object sender, EventArgs e)
{ if (idle == true)
{ minutesIdle += idleTimer.Interval.Minutes; if (minutesIdle
>= IdleMinutesBeforeTimeout) { Logout(); } } else {
minutesIdle = 0; } idle = true; } } }

All this class does is add a timer that fires once a minute. If the user has either moved the mouse or hit a key in that minute then they stay logged in. If the user hasn’t, then a minute of idle time is added to the idle minute count until the timeout limit is reached. Once that happens the user gets logged out.

Note that the events are attached to the root visual and don’t get attached until the user logs in. This is because the Authentication is created prior to the RootVisual being set.

Simply add this code to the sample project (linked above) and then change the authentication service in the App.xaml as follows:

          <
          Application 
          x
          :
          Class
          ="MyApp.App" 
          xmlns
          ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
          xmlns
          :
          x
          ="http://schemas.microsoft.com/winfx/2006/xaml" 
          xmlns
          :
          app
          ="clr-namespace:MyApp" 
          xmlns
          :
          appsvc
          ="clr-namespace:System.Windows.Ria.ApplicationServices;assembly=System.Windows.Ria"
> <
          Application.Resources
          >
<
          ResourceDictionary
          >
<
          ResourceDictionary.MergedDictionaries
          >
<
          ResourceDictionary 
          Source
          ="Assets/Styles.xaml"/>
</
          ResourceDictionary.MergedDictionaries
          >
</
          ResourceDictionary
          >
</
          Application.Resources
          >
<
          Application.ApplicationLifetimeObjects
          >
<
          app
          :
          RiaContext
          >
<
          app
          :
          RiaContext.Authentication
          > <
          
            app
            :
            FormsWithTimeoutAuthentication 
            IdleMinutesBeforeTimeout
          
          
            ="2"/> 
          
          <!--<appsvc:WindowsAuthentication/>--> 
          </
          app
          :
          RiaContext.Authentication
          >
</
          app
          :
          RiaContext
          >
</
          Application.ApplicationLifetimeObjects
          >
</
          Application
          >
        

Here I’ve set the IdleMinutesBeforeTimeout to 2 minutes so that it is easy to test.

Once you’ve modified the application, when you run it you will get logged out after the number of minutes you specify in the timeout. There are lots of enhancements that could be made to this simple approach, but this works for most situations.

Tags: ,

 
0

The Bluffer’s Guide to JavaFX, part 2

Posted by Simon Morris on Oct 28, 2009 in Flex  | View Original Article
  Text plays a big part in user interfaces, yet string manipulation is remarkably primitive in popular programming languages. JavaFX Script, the new DSL for the JavaFX platform, has a few tricks up its sleeve when it comes to playing with text.

Tags: ,

 
0

Offline Inspiration: How To Find It and Get The Most Out Of It

Posted by Kayla Knight on Oct 28, 2009 in Design & Graphics  | View Original Article
 

  

Inspiration is vital for any designer. This is why so many CSS galleries, design galleries and artistic showcases are floating around on the Web. Designers use these at certain times for a quick fix of inspiration, especially when the pressure of deadlines prevent them from seeking out offline, or “alternative,” forms of inspiration, as important as they are.

No designer should ever feel that taking time to find true inspiration is time wasted. This article explores offline sources of inspiration and discusses how they can be treated as a part of the design process. Furthermore, we’ll look into a few methods of deriving this inspiration, so it becomes an active part of creativity and be done more effectively.

Also consider our previous articles:

1. Stop The Quick Fix Of Online Inspiration

The first step to getting into the habit of finding offline, or “natural,” inspiration is to stop looking at online inspiration in the first place. For many designers, online is the first place to look. It shouldn’t be.

The problem with showcases and galleries is that most of us tend to copy bits and pieces of them, thus creating a mish-mash of everything we’ve seen. This isn’t how design, or any creative field, should work. While graphic and Web designers are different from traditional artists, we should treat the creative “back end” any different. After all, we got into this field to be creative and express our artistic talents, so why don’t we?

Online Inspiration Isn’t Bad

Before delving any deeper, let’s get one thing straight: the point of this article is not to say that online inspiration isn’t unproductive in any way. In fact, it is quite a good thing and can very well produce the intended effect.

The unproductive part is when designers turn to it as their sole channel of inspiration. Showcases and galleries, rather, serve best as examples of best practices and ideas. Our designs should stem instead from our own creativity, aided by this online inspiration.

How to Stop the Cycle

For many of us, going to a CSS gallery the moment we start working on a new project is routine. Whether because we are behind in our work or just anxious to get started, true inspiration gets put on the backburner more and more over time. Hopefully, this article will help convince you that finding true inspiration is necessary to the design process. Even if you’re convinced, though, breaking old habits can be hard.

The trick is to consider alternative inspiration an an essential part of the job. While it feels more like play than work at first, finding true inspiration should mean more than browsing through the same material over and over. And we should know that in a creative industry, having fun is okay; it doesn’t mean we’re being unproductive.

We have to consider taking a walk, visiting a museum and sketching as parts of our job description, things that help us get our jobs done faster and less painfully. We’ll discuss below when we should seek out these other forms of inspiration and when it is okay to sift through galleries and showcases.

2. Forms Of Offline Inspiration

Let’s start by discussing what we can do to derive new forms of offline inspiration. Below are some tried and true methods for uplifting one’s inner creativity… without using a browser.

Nature

Nature is easily one of the places to find inspiration. Not only does it have variety, color and interest, but it takes its effect on us by mere instinct. Because of this, finding inspiration on a walk, a hike or just sitting in a park doesn’t take much effort. Let’s look at a few specific places where one can find it, though.

Weather
Weather is just one part of what nature has to offer. Because weather is so closely related to mood, it can be a great source of inspiration. Think of your favorite season, a stormy night or a sunny day at the beach; take in the colors, textures and mood and implement them in a design.

Nature Weather

Life Forms
While weather can influence and inspire mood, life forms have yet far more variety than weather. Whether plant life or animals, a number of exquisitely designed elements are available from which to draw inspiration, through texture, shape, color, etc.

Life

Geography and Landscape
Geography and landscape is another major source of inspiration. Taking in your natural surroundings can have a calming effect on your mind and motivate you to design. Beyond whatever comes to you naturally, look at shape, texture and color, too.

Wolfgang Staudt New Mexico

The above are just a few quick examples of how nature can and should be used for inspiration. These are definitely the first choices for many designers who want a new creative outlook, and for a great reason.

The trick is to figure out how to get workable inspiration from nature and integrate it into a design. For specific examples on how to achieve this in detail, check out 17 Techniques for Creating Designs Inspired by Nature.

Museum Visits

Like nature, simply walking through a museum can relieve stress and, in turn, inspire. It doesn’t have to be a museum for art or design either. A science museum, historical museum or even aquarium or zoo can work. The point is to see things that are not in our everyday lives, while being in an environment that allows you to really focus on and appreciate them.

Being in a museum can lead us to new things, such as:

  • Alternative cultures and their arts;
  • Traditional or classical art;
  • An attention to different senses and a more empirical way of thinking (think of a science museum);
  • Weird, strange or outrageous exhibits to help us think outside of the box (like a “Ripley’s Believe It or Not” museum);
  • Historical objects that are shown in photographs and other media.

Musuem
Image source

Because these experiences can lead to such alternative ways of thinking, they are great for getting away from the daily grind that is suppressing your imagination.

Drawing and Sketching

Many designers begin a project by sketching, but far too many jump straight into wireframes, layouts and then the final draft.

Instead of starting the design phase cold, sketch freely. Doodle, draw ideas, sketch abstract and non-abstract textures and shapes. When sketching for inspiration, don’t think of it as any other stage in the design process. Have fun with it; be carefree and laid back. Free-drawing is a great way to put all of those ideas in your head down on paper.

Advanced Sketching
Comic Book Style on GoMediaZine.com

Many designers very likely grew up sketching and drawing. A lot of us probably had books or other resources on “How to draw,” explaining the technical aspects of drawing characters and other subjects. Doing this now at a more advanced level can be inspirational. Doing so, we advance our skills and are motivated to practice new illustration techniques. So, make an effort to refine your basic drawing and sketching skills.

For a great list of tutorials, check out 40 Free Tutorials on Advanced Drawing Techniques.

An Alternative Hobby

Experiencing new things is a part of life. Without this, we fall into a rut. Think about it: when we began designing, we were full of ideas, motivation and inspiration. After doing it for so long, though, designing can become routine and uninspiring.

This is a part of life. But we obviously can’t quit our jobs and pursue unrelated goals whenever we feel like it. Instead, we must find a way to keep life exciting while maintaining our careers.

Try a new hobby that you find exciting, and then bring it into your designs. For example, if you’re learning a new language, incorporate the culture and styles associated with that language into your designs. If you’re learning a new craft, how can you incorporate the textures, shapes and actions of it into a design? Countless hobbies are out there. No matter how quirky or seemingly unproductive yours is, if you have a passion for it, it will help.

Quirky Hobby
Image source

It doesn’t even have to be a hobby, but just something to get your mind off of work. For example, if you’re redecorating a room, there had to be some initial inspiration that drew you into it; use that spark in your design. Other life experiences involving family, friends and events can play a role in design, too.

The point is to enjoy hobbies and general life events more, and stop thinking of them as unrelated to work.

Music

Music brings emotion and puts imagery in our heads. It is a great art to jog our imagination.

While the techniques mentioned thus far may appeal only to some people, everyone should try music, because it relies on no visual source and can lead to the most creative outcomes. Deriving inspiration from music may not be as easy (because it is more abstract than a pattern, texture or shape), but it certainly gets our imagination and creativity flowing.

Music Inspired Art
Image source

How you use this method is really up to you, but for more tips, check out Smashing’s other post, “Drawing Inspiration From Music.”

Photography

Using photos is an excellent way to incorporate many of the above methods, without having to travel around the world. Flying across the world to see the wildlife in the jungle or a foreign culture’s practices is not practical. Photographs, rather, capture real-life images from which you can draw inspiration and come up with texture, shapes, subjects and more.

Photography
Image source

While photography can be considered “online inspiration,” it is different in that one cannot take bits of a photograph and turn it directly into a design (the way you can with another website). Rather, one must use skill and creativity to turn it into a workable design, just as you would use a natural object in the wild.

Below are a few favorite photography showcases to get you inspired:

Traditional Art

Each era of art has its own style and development. We often focus too much on today’s trends that we forget all of the excellent art of the past.

Research any era of art history. You will discover many great works of art, as well as techniques that the masters of that era followed.

Neoclassical Art
Image source

As with any other form of inspiration, take texture, color, shape, style and depth into account. In viewing art from different eras and cultures, we can draw inspiration from the style without copying the subject.

One’s Own Imagination

Think like a child again. With a bit of relaxation, we can come up with our own ideas again, without even an external trigger of the imagination. We can’t elaborate much more on this: the method will be unique to each individual. But it is bound to create the most original designs of all.

For a few fun tips on how to be imaginative, take a look at the simple WikiHow article ““How to Be Imaginative.”

3. Deriving Inspiration From These Sources

Knowing how to find inspiration through alternative sources comes down to the art and science of design. Rather than merely copy trends and examples, we have to use our knowledge of texture, shape, proximity and so forth to build fresh design. Our new sources of inspiration may now be difficult to harness but are sure to release our creativity.

Here following are some basic guidelines you can take to derive inspiration from any offline source.

Look at Texture

Many sources of inspiration are visual in nature, which means they may have interesting textures, whether from an animal skin or a wrinkled petal.

Many designs are not much more than texture at all. But even without conventional imagery, we understand the design perfectly well.

Kevin Lucius
Kevinlucius.com

Everything Has a Shape

Everything has a shape that highlights its texture. We look at different shapes every day, but rarely do we stop to appreciate it. No matter what it is taken from, a design could resemble the source of inspiration itself or just bits and pieces of it.

Take the time to examine the object’s shape, angles, edges and dimensions. They may spark new ideas or lead to an idea for an element in your design.

Lilly's Table
Illystable.com

Color and Palettes

Nature-inspired Web design was quite a trend there for a while, and it is still going pretty strong. The trend is notable because color is given such special attention and is implemented so carefully in designs. Green, blue and brown earthy hues are incredibly popular, and these colors and a bit of authentic texture are all a design needs to be nature-inspired.

We can apply the same attention to other offline sources of inspiration. For example, painters from different eras preferred different color palettes, and we can borrow these palettes for today’s designs. Likewise, different cultures, landscapes and imagery all provide a unique sets of colors to inspire us. All we have to do is stop and take notice.

Hungry for Change
FoodIncMovie.com

Take an Alternative Perspective

Viewing the things we see every day from a fresh perspective makes them design-worthy. This could mean viewing them close up, upside down, from far away or from an entirely different angle. Whatever you choose, look at an object from an unusual perspective to discover something new about it.

Orman Clark
Ormanclark.com

Choose a Theme

We can be motivated to create something new after winding down for the day, after taking a walk, or after viewing some interesting photographs. But when it comes down to actually designing, we may still not know where to begin.

Just as we did when writing essays back in high school, we must first define our design’s theme; that is, come up with a “thesis” for our design. We may be inspired by Renaissance art that we viewed at a museum, but we might find that there is too much in the artwork to base a design on.

This is when we need to get specific. Should your design reflect the textures, colors and shapes of that era, or should it evoke a typical publication of that era (a website being a publication itself after all)?

Come up with a specific subject and idea for the design, taken from your much broader source of inspiration. Don’t just go with a nature theme; choose a cheerful snowy morning theme. Don’t use a book as a whole, but rather use an event recounted in the book, or an emotion that the event evokes.

You could incorporate a number of ideas from any source of inspiration, so be specific and choose one particular message to guide the design.

Collect Resources and Bits of Inspiration

Before starting the design phase, collect resources that you will need to complete the design. If your design is inspired by Renaissance art, assemble tutorials on creating old-paper effects, gather some period typography and collect any other textures, symbols, shapes and imagery that could be used in the design.

What’s great about this part is that even though you’re not actively designing, you’re still putting pieces together that will guide you to the final design. In other words, you’re in the process of brainstorming.

4. When To Use Offline Inspiration

There is a trend among designers to say that any offline inspiration is okay, but offline and online inspiration need to be balanced.

Offline Inspiration
Image source

Offline inspiration sources are best for the early phases of a design. They keep you from going straight to CSS galleries the moment a new project begins, only to copy elements of the most original designs. Offline inspiration helps us come up with our own ideas and fall back on our own creativity.

5. When To Use Showcases And Galleries

Showcases and galleries are not a great source of inspiration early on. Rather, they are great to learn best practices and refine usability and see examples of how specific elements have been implemented. They are useful for turning inspiration into a workable design with solid usability.

Showcase
Showcase of music night clubs web designs here, on Smashing Magazine.

For example, if you’re designing a blog theme, you could look at the styles of various “Read More” links and see which ones have the best effect. You could check out the navigation style of different website types (e.g. portfolio, realty website, Mac application website, etc.). Consistency among certain website elements is a good thing.

Showcases and galleries can also help generate ideas for style. An app website, for example, obviously wouldn’t look good with a grunge style. Some stylistic choices may not be that obvious, though, and CSS galleries can help us achieve a look that is original yet appropriate.

Conclusion

As you can see, both offline and online inspiration have their place. Knowing when to use each is the key to getting your creativity back and producing some original work once again. Hopefully, this post has motivated you to take the time to find alternative sources of inspiration.

We have just briefly touched on methods of finding alternative inspiration. There are, of course, many more. Feel free to share your own habits and techniques for gaining inspiration. The ways are surely endless, and we have to find the one that works best for us.

Further Resources

You may also be interested in these additional references:

About the Author

Kayla Knight is a college student, freelancer and blogger. In her spare time, she maintains two blogs, Webitect.net and DesignFinds.Me, as well as a portfolio. Feel free to get in touch with her through her blogs, or follow her on Twitter: @KaylaMaeKnight.

(al)


© Kayla Knight for Smashing Magazine, 2009. | Permalink | 4 comments | Add to del.icio.us | Digg this | Stumble on StumbleUpon! | Tweet it! | Submit to Reddit | Forum Smashing Magazine
Post tags: , ,

Tags: , ,

Copyright © 2010 Answer My Query All rights reserved. Maintained by Orange Brains .