Quantcast
Channel: User spmason - Stack Overflow
Browsing latest articles
Browse All 36 View Live

Comment by spmason on Is it possible to specify proxy credentials in your...

I've not idea how this would help. The server's aren't on the same domain if that matters..

View Article



Comment by spmason on Is it possible to specify proxy credentials in your...

I'm going to mark this as the answer, because it looks as if it should work, but I'm still having issues connecting which seem to be down to ISA Server more than anything..

View Article

Comment by spmason on Why does Visual Studio crash opening ASPX with MVC RC1

Well it's over a week later, and even spending a lot of time in VS across several projects it hasn't crashed once since I did this. I even re-installed PowerCommands which has been crashing for me...

View Article

Comment by spmason on Where is this JQuery wrong?

The "It works fine, except that all links are affected." comment was after the example where he tries the $('a').click(...) method, obviously this will affect all links. The actual problem was in the...

View Article

Comment by spmason on First jQuery plugin issues

I don't think so, without changing the Ids to make them unique that is, or using classes. You're basically trying to go against the HTML spec, which in this instance at least appears to be something...

View Article


Comment by spmason on How do you set up N2 CMS in an "enterprise" environment?

I had a feeling that was you :) In that case I'm not totally sure what you mean by using in an enterprise environment? In my experience ActiveDirectory integration more or less does the trick for most...

View Article

Comment by spmason on Questions with different types of answer in NHibernate

I agree on the general structure, but I think you've exposed a problem with having IAnswer as a generic class. In your example DateTimeAnswer isn't an Answer so couldn't go into an AnswersCollection....

View Article

Comment by spmason on Splitting one Git repository into many - branches...

Pretty sure - we would always be going through what is now trunk

View Article


Comment by spmason on N2: Set default values for ContentItems

You don't need the Editable attribute for the value to be saved - Editable just adds some "magic" to allow the admin UI to display the correct edit control

View Article


Comment by spmason on Automate UI testing with Javascript, node - starting &...

I just noticed you're using windows, the 0 thing might not work there, YMMV

View Article

Answer by spmason for Where is this JQuery wrong?

IDs in HTML are meant to be unique (one per document). Change the ID to a class (and use . instead of #) and it should work.

View Article

Answer by spmason for IE (6 & 7) iFrame Querystring Parameters Set In .NET...

It's not something to do with the "?&" at the beginning of the querystring?Try just: http://my.totallyinsecuretopostthis.com/Login.aspx?uname=sdavis&pword=04ab

View Article

Answer by spmason for How can I programatically tell Windows taskbar to open...

You might want to check out this article. It looks like you can only do this ("officially" anyway) in Vista using the ITrayDeskBand interface.

View Article


Answer by spmason for Can Tortoise SVN work on an FTP server?

That's not quite how SVN works. You should look at setting up an SVN repository with someone such as Assembla or Unfuddle and then each person would work from your own local copies on your individual...

View Article

Answer by spmason for Master pages -- Getting calling page name

Just use the "Page" member of the masterpage

View Article


Answer by spmason for jQuery [attribute] selector only returning first...

I just ran into this issue. Could it be that you're using an old version of the jquery.validate library as identified in this post?For me, downloading & applying the latest version of the plugin...

View Article

Answer by spmason for Changing alt tags and image path with jQuery

You need the attr method:$('img.image').attr('alt', '/image/big01.jpg').attr('src','/image/small.jpg');Edit: see the docs for more information

View Article


Answer by spmason for Optimizing N2 CMS

n2 can be quite chatty, especially when loading children and checking permissions. There are optimisations you can make though, This page might be of some help. Regarding startup specifically, the...

View Article

Answer by spmason for How to determine whether a web page has RSS or not in C#

Instead of loading the HTML into an XMLDocument (which may not be possible if it isn't XHTML compliant), try the HTML Agility Pack instead. It gives you XMLDocument-like syntax but you can use...

View Article

Answer by spmason for Nhibernate one-to-many with table per subclass

I'm not sure whether the SQL is incorrect, because the parent class mapping uses a discriminator so I'd expect all properties to be stored in the same table as the base class (n2item). However I'm not...

View Article

Answer by spmason for MSBuild target package not found

I just got this working without installing VS2010 by following these steps on the build server:If .NET Framework 4 isn't installed, install itInstall the Web Deployment tool from...

View Article


Answer by spmason for Questions with different types of answer in NHibernate

I think subclassing Question as well as answer is a good plan - get rid of that QuestionType enum.You can then have a MakeAnswer(string) abstract method on Question which encapsulates a lot of logic...

View Article


Splitting one Git repository into many - branches become forks

I have a project in SVN that I'm migrating to Git. The project consists of a "core" product (under trunk), which is then branched within the same repository and used as a starting point to customize...

View Article

Answer by spmason for N2 CMS: Are nested collections of ContentItems possible?

Yes - instead of Get/SetDetail in your properties use Get/SetDetailCollection.FYI if you're using 2.1 you can just make your properties virtual and leave off the Get/SetDetail - not sure if this works...

View Article

Answer by spmason for N2 CMS and MVC 3 RC causes "The current request for...

This sounds like N2Controller has an Index method which should be set to override the Index method in ContentController.The way an action method is resolved on a controller must have changed between...

View Article


Answer by spmason for "Complicated" merge scenario in Git

Use "git diff branch1..branch2" then merge the diff it spits out, or better "git log branch1..branch2" then cherry-pick the commits you need.I think the best option though, especially if you've got a...

View Article

Answer by spmason for node.js cannot find module xml2js

Node 0.4 changed how modulesare resolved and it appears that this breaks xml2js.

View Article

Answer by spmason for N2 CMS Asp.Net MVC 3 Razor ControlPanel HtmlHelper

From discussions I've been following on the mailing list the HtmlHelper isn't in the main N2 build yet, but on another branch on github.If you can't wait until this makes it into the main build, you...

View Article

Answer by spmason for Field placement when editing items in N2 cms?

The Title and Name editors aren't set on the properties themselves but on the Class.See the WithEditableTitle and WithEditableName attributes on your class.And News class doesn't have to specify them...

View Article



Answer by spmason for SVG resizing in IE9

I know you've said you'd like to avoid setting the width and height, but that's the only way I've managed to get it to work, personally.Though I did figure out that you only need to set the height, you...

View Article

Is there any way to detect an RTL language in .NET?

I need to be able to detect whether the current language my user is viewing is an RTL (Right To Left) language like Arabic, so I can include a specific CSS file in my pages.At the moment I'm just...

View Article

Answer by spmason for N2Cms How to start

You might also be interested in this PDF that someone on the N2 mailing list created:http://interferencelogik.com/docs/N2CMS_TheLittleHandbook.pdfThe documentation Dan linked to is a bit sparse and not...

View Article

Answer by spmason for What is the aspnet_client folder for under the IIS...

In addition to what others have said, it's usually created by the aspnet_regiis tool, which can be (re-)run by things like Windows Update/AddRemove Windows components/IIS. So sometimes even if you do...

View Article


Answer by spmason for How to run a single cucumber scenario in Intellij?

This question is quite old now. If you're using cucumber-jvm nowadays, the parameter to use is now:-Dcucumber.features=path/to/file.featureMore config options here:...

View Article

Is it possible to specify proxy credentials in your web.config?

I need to configure a website to access a webservice on another machine, via a proxy. I can configure the website to use a proxy, but I can't find a way of specifying the credentials that the proxy...

View Article

Answer by spmason for Feature files discovery in cucumber-junit-platform-engine

In cucumber-jvm v7 the @Cucumber annotation is deprecated and you're encouraged to use the regular @Suite annotation. This works for...

View Article

Browsing latest articles
Browse All 36 View Live




Latest Images