Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Web Developer

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    Latest Comments

    sam

    In response to: Adding a jQuery Date Picker to Sharepoint

    sam [Visitor]
    will this this date picker a default if the date picker control is added .
    Coz the current date picker doesnt serve itz purpose.coz you cant change the year like windows 7 date control.
    PermalinkPermalink 05/12/13 @ 01:33
    Jason Lee

    In response to: Trying out Angularjs

    Jason Lee [Visitor]
    Ive googled this all day and haven't been able to get around this error. Closest Ive gotten was using jsonp instead of $http. Is there something I need to configure or set up to get this to work in local development and on a server.

    I tried adding delete $http.default.headers.common 'x-requested-with'. Ive also tried writing the angular side about 50 different ways :)


    XMLHttpRequest cannot load http://localhost:12116/plants. Origin http://localhost:51532 is not allowed by Access-Control-Allow-Origin.
    PermalinkPermalink 05/10/13 @ 10:14
    Danny

    In response to: There are now Visual studio project templates for Nancy

    Danny [Visitor]
    I just love Nancy and I think the templates are gonna be very useful. I can't wait to start using them.
    PermalinkPermalink 05/02/13 @ 07:52
    Mario

    In response to: Adding a jQuery Date Picker to Sharepoint

    Mario [Visitor]
    and in the newform.aspx code sets? Thank You
    PermalinkPermalink 04/02/13 @ 02:32
    Christiaan Baes (chrissie1)

    In response to: Trying out Gibraltar's Loupe with Nancy

    I don't lay patio's anymore, to much hard work. But I can still advice about how to do it right and even ask more money than the people that are going to do the hard work.
    PermalinkPermalink 03/25/13 @ 02:59
    Rachel

    In response to: Trying out Gibraltar's Loupe with Nancy

    Rachel [Visitor]
    Thank you for checking Loupe out, Christiaan. Much appreciated. Like Kendall says, hopefully when Loupe Server is complete you'll take a look at that and see what you think.

    On to other matters. I need some help laying a patio in my garden. Does the same sentiment for refusal apply in this case too? ;)

    ~ Rachel.

    PermalinkPermalink 03/25/13 @ 02:27
    Kendall Miller

    In response to: Trying out Gibraltar's Loupe with Nancy

    Kendall Miller [Visitor]
    I'm from Gibraltar Software, the folks working on Loupe - Thanks for taking the time to check Loupe out!

    The issue you saw where a live session is listed twice is a defect in the preview versions and we've fixed that for our next preview build. Typical ASP.NET applications would get their unhandled exceptions caught and logged, no ELMAH necessary but since we do that through the ASP.NET health system I'm guessing it didn't work out of the box with Nancy. Knowing that folks are looking to use Loupe with Nancy we may create an agent just for it to make it easier to get up and running.

    Finally, Loupe Desktop is just the beginning of the story - I'd encourage you to give Loupe Server a try when we release the final version to see what it adds to the picture.
    PermalinkPermalink 03/23/13 @ 05:02
    Gustavo Gudinho

    In response to: Visual Studio 2005 error - "Project type is not supported by this installation"

    Gustavo Gudinho [Visitor]
    Thanks, this is a solution excellente, congratulations from Mexico.
    PermalinkPermalink 03/20/13 @ 13:06
    Mesarim Vaher

    In response to: Copying Buckets With The Amazon S3 API

    Mesarim Vaher [Visitor]
    Thanks for this inspiring piece of code. I like the way you use LINQ and your insightful discussion along the article. This is an excellent article! Thumbs Up.

    Regards,
    Messy V
    PermalinkPermalink 03/09/13 @ 11:50
    Jerome

    In response to: Export HTML table to Excel with grid lines

    Jerome [Visitor]
    so helpful.. thx..

    xmlns:x="urn:schemas-microsoft-com:office:excel // this line.. important too
    PermalinkPermalink 03/06/13 @ 18:08
    Per Hyyrynen

    In response to: Export HTML table to Excel with grid lines

    Per Hyyrynen [Visitor]
    Thanks a lot! I was looking for a solution for this problem. Now I don't need to write an xlsx on top of our html exporter :)
    PermalinkPermalink 02/28/13 @ 06:31
    Abu Hamzah

    In response to: Automated Web Testing with Selenium WebDriver

    Abu Hamzah [Visitor]
    How would it work with using dropdown (select)? let say if you want to change the text/value of an select how will you do? any thoughts?
    PermalinkPermalink 02/12/13 @ 11:03
    TYler Brinks

    In response to: Trying out Angularjs

    TYler Brinks [Visitor]
    One feature worth elaborating on is Angular's HTML5 mode. That allows any browser supporting the history API to ditch the hashbang and use standard URL paths with the option to gracefully fall back.
    Having built a couple medium to large scale SPAs with Angular, I'd say it scales better than most of today's popular MV(*) JavaScript frameworks. It's on par with Ember, no doubt.
    PermalinkPermalink 02/05/13 @ 08:15
    Petr

    In response to: Angularjs and ng-grid

    Petr [Visitor]
    Please try add paging, sorting and filtering using Odata.
    PermalinkPermalink 02/05/13 @ 03:57
    Hadi Hariri

    In response to: Trying out Angularjs

    Hadi Hariri [Visitor]
    IF you use $resource instead of $http, you get a higher-level abstraction and you don't have to deal with any of the HTTP calls.

    @SQLDenis,

    Yes, back in the old days it was just CGI or ISAPI, but things are also different. Back then it was very much client-server with HTTP. This is all about being client with server only acting as data and processing, thus improving the experience with a more fluid and responsive design.
    PermalinkPermalink 02/03/13 @ 12:47
    Jonathan Channon

    In response to: Trying out Angularjs

    Jonathan Channon [Visitor]
    Nice work. I've been reviewing Angular myself. One thing you could do is make a separate service or repository if you will and that can get injected into your controllers!
    PermalinkPermalink 02/03/13 @ 11:33
    SQLDenis

    In response to: Trying out Angularjs

    SQLDenis [Member]
    Yep, back in the year 2000 or so there was none of this stuff....no libraries, 2 browsers, php, asp, jsp, coldfusion or perl were the webstack technologies and that was pretty much what 93% of the world used
    PermalinkPermalink 02/03/13 @ 08:16
    Christiaan Baes (chrissie1)

    In response to: Trying out Angularjs

    Oh yeah. I wish someone had a monopoly and take over this damn mess we call programming.
    PermalinkPermalink 02/03/13 @ 08:01
    SQLDenis

    In response to: Trying out Angularjs

    SQLDenis [Member]
    Framework fatigue didn't kick in yet?
    PermalinkPermalink 02/03/13 @ 07:57
    ThatRickGuy

    In response to: One Second Caching, Brilliant Or Insane?

    ThatRickGuy [Visitor]
    I would totally do it, and I would do it at the output level (squid). This isn't just limited to web interfaces, you can leverage this even in high volume applications as well. My current company has a data driven distributed application, and I'm looking to migrate as much of the data driven logic to generated code logic as possible. Anything we can do to drop data access, even cached data access, results in a massive performance increase. And seeing as how the data is static once the application is distributed, there's no reason to even make data access calls.
    PermalinkPermalink 02/02/13 @ 11:24
    Halil İbrahim Kalkan

    In response to: Nancy and jtable

    Hi,

    I'm the author of jTable. I'm very glad to see such a tutorial.
    I put links to this posts on jTable.org: http://jtable.org/Home/Documents
    Thanks a lot for this good tutorials ;)
    PermalinkPermalink 01/27/13 @ 14:30
    Steven Robbins

    In response to: Making an interface for plugwise with nancy

    Steven Robbins [Visitor]
    Or a Raspberry Pi... :-)
    PermalinkPermalink 01/06/13 @ 07:34
    peter

    In response to: Nancy and returning a pdf

    peter [Visitor]
    Kudos on using sumatra, not that daily-update-nightmare that is adobe reader.
    Also note that itextsharp has its own licensing quirks.
    PermalinkPermalink 12/31/12 @ 13:42
    Christiaan Baes (chrissie1)

    In response to: Nancy and returning a pdf

    @Steven I fixed it.

    @Phillip I'll try to remember ;-).
    PermalinkPermalink 12/30/12 @ 11:41
    Phillip Haydon

    In response to: Nancy and returning a pdf

    Phillip Haydon [Visitor]
    Freaking out that you did a C# post!

    I would change:

    var isInteger = int.TryParse(parameters.id, out result);
    if(isInteger && tree != null)

    to

    var id = parameters.id.Default(0);
    if(id > 0 && tree != null)

    It's much nicer to read :)

    .Default is method defined on DynamicDictionary and allows you to specify a default. If you're unsure if the value would be parseable you can do.

    var id = parameters.id.TryParse(0);

    Which will give you 0 if it can't parse the value.
    PermalinkPermalink 12/30/12 @ 11:19
    Steven Robbins

    In response to: Nancy and returning a pdf

    Steven Robbins [Visitor]
    You CanProcess method is wrong - not caring about the model is fine, but you need to be checking the media range that's passed in to see if it matches application/pdf. You current processor says "I am an exact match for every content type in existance" :)
    PermalinkPermalink 12/30/12 @ 11:12
    Eli Weinstock-Herman (tarwn)

    In response to: Nancy and C# uploading and showing an image

    I'm not sure why, but while I was reading this I had a flashback to what this code would have looked like 10 years ago w/ classic ASP and it reminded me just how far we (web, .Net, LTD-ers) had come.

    And the post content was neat also :)
    PermalinkPermalink 12/28/12 @ 14:22
    Jonathan Channon

    In response to: Nancy and C# uploading and showing an image

    Jonathan Channon [Visitor]
    Nice work! :)
    PermalinkPermalink 12/28/12 @ 06:41
    TheCodeJunkie

    In response to: Nancy and VB.Net: The bootstrapper

    TheCodeJunkie [Visitor]
    Also updated the Nancy.Testing documentation with information that you should always keep test in a separate assembly and why

    https://github.com/NancyFx/Nancy/wiki/Testing-your-application

    "Note! You should always keep your tests in a separate assembly than that of your application. The reason for this is the auto-discoverability that is used by Nancy to find and wire up a lot of things, including the Bootstrapper. If you keep your tests in the same assembly then isolation is going to be a lot more difficult."
    PermalinkPermalink 12/15/12 @ 02:40
    TheCodeJunkie

    In response to: Nancy and VB.Net: The bootstrapper

    TheCodeJunkie [Visitor]
    There is a much easier solution to your lifetime "issue". By convention, TinyIoc will treat interface dependencies as singletons and concrete dependencies as multi-instance

    https://github.com/grumpydev/TinyIoC/wiki/Registration---lifetimes scroll down to the "Lifetime" section to read more about this

    So what you should do is have an ITreeService and take a dependency on that. You are going to want that anyway for unit testing ;)

    Hope this helps

    /@TheCodeJunkie
    PermalinkPermalink 12/15/12 @ 02:35
    Phillip Haydon

    In response to: Nancy and VB.Net: the razor view engine

    Phillip Haydon [Visitor]
    The parameter is dynamic and has some extension methods off it.

    You can do:

    Dim poo As Int32 = parameter.id.TryParse(123)

    If it can't parse to an int, it will return 123.

    There's also Default(Of Int32)() Default(123) TryParse(Of Int32)()

    Etc.

    https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Tests/Unit/DynamicDictionaryValueFixture.cs#L473
    PermalinkPermalink 12/12/12 @ 02:40
    Phillip Haydon

    In response to: Nancy and VB.Net: getting data in your page

    Phillip Haydon [Visitor]
    I think most Nancy users are using the Razor view engine so little effort has gone into explaining the SuperSimpleViewEngine.

    Good to know though so we can make a better effort to flesh them out.
    PermalinkPermalink 12/11/12 @ 08:23
    Phillip Haydon

    In response to: Nancy and VB.Net

    Phillip Haydon [Visitor]
    Finally you got around to Nancy!!!

    You don't need to put each Route* in it's own class. You can put the routes in related modules.

    i.e an AccountModule, ProductsModule, etc. Then in there define all routes related to that module.

    Products may have a /products/{id} and /products, which does listing and view.
    PermalinkPermalink 12/11/12 @ 08:16
    Ngan Tengyuen

    In response to: Taming RSS Feeds with XML::RSS and Template::Toolkit

    Ngan Tengyuen [Visitor]
    this tutorial is just what i've been searching the internet for, thanks for wirting. cheers
    PermalinkPermalink 12/10/12 @ 04:46
    ton snoei

    In response to: SignalR, Quartz.Net and ASP.Net

    ton snoei [Visitor]
    Ever thought of 'long polling' or comet programming.
    PermalinkPermalink 11/29/12 @ 15:30
    Alex Ullrich

    In response to: SquishIt Integration with Amazon S3 / Cloudfront

    Alex Ullrich [Member]
    Glad to hear its working well for you! I didn't even think about the region thing, but the problem you ran into makes me happy that I didn't make any assumptions about how people are using the amazon services.

    Thanks for sharing your experience - this post has basically become the readme for the library so it will probably save someone from running into the same issue you encountered :)
    PermalinkPermalink 11/23/12 @ 18:51
    Prasannanjaneyulu.K

    In response to: SignalR and VB.Net: Hubs and objects

    Prasannanjaneyulu.K [Visitor]
    Good
    PermalinkPermalink 11/23/12 @ 05:34
    Christiaan Baes (chrissie1)

    In response to: SignalR and VB.Net: Hubs and objects

    Thanks I fixed that. Sorry.
    PermalinkPermalink 11/23/12 @ 02:18
    Someone

    In response to: SignalR and VB.Net: Hubs and objects

    Someone [Visitor]
    "Ass you can sse I use Clients.All.addMessage to send a message to all Clients with the id that was requested."

    Can you please check the spelling before publishing . Instead of "As" you have written as "Ass"
    PermalinkPermalink 11/23/12 @ 01:50
    Daz Bradbury

    In response to: SquishIt Integration with Amazon S3 / Cloudfront

    Daz Bradbury [Visitor]
    Absolutely awesome.

    I was hosting on Appharbor, and had a world of pain with RequestReduce, so switched to Squishit as the architecture is a lot more straight forward.

    Initially, there were a few problems, as with multiple workers, I had the choice of putting things in the cache, or creating each bundle on application startup such that each worker would know how to process it.

    Then I saw this article, and I have to say, it was a breeze to implement - I forked the repo thinking I would need to make some changes, but that worry was ill-placed.

    I made a few modificiations to your initial config which were needed, namely:

    a) When creating an s3client, if you're using a different region to the default US, you'll need to specify it as such (in this case, EUWest):

    var s3client = new AmazonS3Client("accessKey", "secretKey", Amazon.RegionEndpoint.EUWest1);

    Otherwise, Amazon will throw:

    “Maximum number of retry attempts reached”

    b) Part of the point in doing this, for me at least, was so static code is easily cacheable in production. As such, most users will probably want to add the following line to the renderer creation:

    .WithHeaders(Amazon.S3.Util.AmazonS3Util.CreateHeaderEntry("Cache-Control", "public, max-age=3153600"))

    Otherwise, this worked perfectly, injected my cloudfront url, and was a breeze!

    Thanks for sharing!

    PermalinkPermalink 11/22/12 @ 07:09
    James

    In response to: Using PostSharp and log4net to Set Up Controller Logging in ASP.net MVC

    James [Visitor]
    Great tutorial. Curious if you have an updated code base for the latest release? Code is throwing errors for latest build of PostSharp.
    PermalinkPermalink 11/21/12 @ 08:57
    clem

    In response to: Programatically create a sharepoint calendar entry

    clem [Visitor]
    If the list has SP Designer or other worklows associated with it, will they be executed when an item is added?
    PermalinkPermalink 10/15/12 @ 08:03
    Jeff Thalhammer

    In response to: Create HTML from output of Perl::Critic

    Jeff Thalhammer [Visitor]
    Nice work -- this looks really sharp! I have lots of ideas to improve the perlcritic.com website, including inline violation reporting, like yours. Get in touch with me if you'd like to collaborate.
    PermalinkPermalink 09/23/12 @ 10:45
    Rob Earl

    In response to: Taming RSS Feeds with XML::RSS and Template::Toolkit

    Rob Earl [Member]
    That'll teach me to make formatting changes at the last minute, thanks for pointing it out!
    PermalinkPermalink 09/20/12 @ 11:33
    Aniket

    In response to: Using Multiple jQuery UI Sliders on a Single Page

    Aniket [Visitor]
    Hi,

    Thanks for the code. Is it possible to display a label instead of the value? eg: When I slide to 4, it should display Good instead of 4.
    PermalinkPermalink 09/20/12 @ 00:48
    Dave Cross

    In response to: Taming RSS Feeds with XML::RSS and Template::Toolkit

    Dave Cross [Visitor]
    Hi,

    One little bug in your code and one suggestion for an improvement.

    The bug: You're using single quotes around the end marker for your heredoc. That means that the heredoc will be treated as a single-quoted string and the \t won't be expanded to a tab character. Better to use double quotes there.

    The improvement: If you use XML::Feed instead of XML::RSS then very similar code will be able to cope with Atom feeds as well as RSS feeds.

    [Interesting. When I included examples of the heredoc syntax in this comment it caused a problem in your blog software. I've had to remove the examples in order to post this comment.]
    PermalinkPermalink 09/15/12 @ 09:47
    Christiaan Baes (chrissie1)

    In response to: Using a Perl Singleton to Share Values Between Objects

    So you will be divorcing soon and then go to Portugal again for your second wedding?
    PermalinkPermalink 09/14/12 @ 07:13
    Rob Earl

    In response to: Using a Perl Singleton to Share Values Between Objects

    Rob Earl [Member]
    Portugal, near Lagos. I'd never been before, but I'll definately go again!
    PermalinkPermalink 09/14/12 @ 06:04
    SQLDenis

    In response to: Using a Perl Singleton to Share Values Between Objects

    SQLDenis [Member]
    Congratz on getting married, where did you go on honeymoon?
    PermalinkPermalink 09/13/12 @ 18:10
    Alex Ullrich

    In response to: Using a Perl Singleton to Share Values Between Objects

    Alex Ullrich [Member]
    And on the new blog post too ;)
    PermalinkPermalink 09/13/12 @ 14:55