I'm trying to create unit tests to make sure my extension methods for UrlHelper work? Does anyone know how to do this? I'm using MVC 1.0 and MvcContrib. I can test the routes but can't test code like this:
public static string MoreFloorplans(this UrlHelper urlHelper, long productID, int pageIndex)
{
return urlHelper.Action<CatalogController>(x => x.GetRelatedProducts(productID, pageIndex));
}
Need to create WCAT extension DLL that query database for next available record nubmber and feed back it into senario request POSTed Data..
How would do that..
Thanks in advance
I'm trying to create an Editor Classifier Template project and run it. When I attempt to build I get an error message stating:
"Error trying to read the VSIX manifest file 'extension.vsixmanifest'. Exception has been thrown by target of invocation."
Any thoughts? I've tried googling this but didn't have any luck.
I am working with Visual Studio 2010 Ultimate and the VS 2010 SDK Beta 1.
Thanks,
Nick
how can i control access to webpages in firefox. i'm going to develope a new addon for this but colud you tell me what should i do?
can firefox extension programming allows this.
or should i develop a desktop application to control access.
thx in advance.
I want to be able to use the .html extension to render ASP pages.
I am using Windows CE 6 at the moment with the default web server, ASP
is turned on.
I have attempted to add the "ScriptMap" (via) key to the
HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap
subkey with the value ".html"="\Windows\asp.dll" but this doesn't seem to work.
What am I doing wrong?
I created very simple Context Menu using Shell Extension in C#. It works fine under Windows XP 32 bit but under Windows 7 64 bits menu items not appearing.
I tried to build Setup output to x64 but no effect.
Simple Source contains ContextMenu and Setup project is under http://bit.ly/9nGd41
Looks like Wow6432 should be handled by Setup project, same for registration and adding to Global Assembly Cache
I would be appreciate for help / suggestions with this issue.
Sorry for the redundancy, I should've asked this in my previous question here: http://stackoverflow.com/questions/3061407/whats-the-regex-to-solve-this-problem
This question is an extension:
From the elements in an array below:
http://example.com/apps/1235554/
http://example.com/apps/apple/
http://example.com/apps/126734
http://example.com/images/a.jpg
I'm separating out apps/{number}/ and apps/{number} using:
foreach ($urls as $url)
{
if (preg_match('~apps/[0-9]~', $url)) echo $url;
}
Now, how do I also push {number} to another array with the same regex?
I'm trying to understand the process for enabling an a core extension (dom) in php. When I run phpinfo, I see '--disable-dom' in the configure command. Am I supposed to re-install PHP?
I was wondering if anyone else has figured out how to solve this problem. Whether I install the extension via PECL or compile it by hand, I get the same error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/gearman.so' - dlopen(/usr/local/zend/lib/php_extensions/gearman.so, 9): no suitable image found. Did find:
/usr/local/zend/lib/php_extensions/gearman.so: mach-o, but wrong architecture in Unknown on line 0
I have no idea how to fix this problem and I can only bang my head into my desk so many times.
Allegedly, Visual C++ 2010 Express, unlike previous versions, supports third party extensions. I just downloaded the release candidate SDK for Visual Studio 2010, but the installer fails saying that I don't have Visual Studio installed (which is true since i use Visual C++ 2010 Express). Have I missed something? Is there a version of the extension SDK that works with Express?
I'm trying to get my program to automatically associate certain file extensions to be opened by it but I'm not sure how to do that in MacOSX. I'm not asking how to associate a program with a file extension in the GUI, I want to be able to program it into my program.
I'm an ASP.NET c# developer using VS2010 as my development platform. I am interested in accessing Sketchup models using a web form interface.
Has anyone done this? I am looking for a simple "Hellow World" web application that uses the Ruby Extension model.
There is a constraint in the content management system that requires to store all word documents with specific extension (different from DOC or DOCX). However, when outputting the document to user we need to know if it is a DOC or DOCX file in order to provide the right MIME type.
So, is there a way to programatically find out if document is DOC or DOCX by its content?
I am writing a Sphinx extension and I need to know the document page source code file system path (.rst file location) to extract some version control system information of it. How can I get this information in my event handler / which event handler I should use?
Example:
# This package may contain traces of nuts
def on_html_page_context(app, pagename, templatename, context, doctree):
import ipdb ; ipdb.set_trace()
if doctree:
print doctree.source
def setup(app):
app.require_sphinx('1.0')
app.connect('html-page-context', on_html_page_context)
Hi
I found few web pages with the .csp extension.
http://demo.e-dendrite.com/csp/bstent/frontpages/bdsrfront.csp
http://demo.e-dendrite.com/CSP/ivf/Frontpages/ivrfront.csp
what is it?
what is it used for?
thanks
Hi,
I want to ask why we use "this" keyword before the parameter in an extension method (C# Language)...........
like this function :
public static int ToInt(this string number)
{
return Int32.Parse(number);
}
I know that we have to use it but I don't know why.
What is the best way to write a Safari extension? I've written a couple XUL extensions for Firefox, and now I'd like to write versions of them for Safari. Is there a way that would allow you to add buttons or forms to the browser UI, since this is not possible with an Input manager or Service menu?
I've seen some websites using the .phdo extension.
I googled for it, but I've found no conclusive result.
Is it a proper technology or just a synonym of .php ?
When i tried to connect to Apache Cassandra server using the php code i got an error "Fatal error: Call to undefined function uuid_make()". I can find that PHP UUID extension was missing in PHP installation. Can anyone please suggest from where i can download the DLL file for PHP installation in my Windows 7 Machine.
I wish to redirect all page requests if
(1) Current URL doesn't have .php extension
(2) Current Page is not the Site Home (ie www.site.com )
Example:
http://site.com/robin to profile.php?screen_name=robin
Can someone suggests the htaccess to accomplish this?
Hi,
i always like to real-time edit a web page source in the browser and updated as i type, but firebug really sucks, i can't insert scripts in the current page, some times the changes i type aren't updated at all, Is there any robust firefox/chrome extension for that?
i try to temporarely edit/add code to an existing web page in the internet, not a local one
Thanks