User Profile

Collapse

Profile Sidebar

Collapse
peridian
peridian
Last Activity: Jul 22 '18, 02:00 PM
Joined: Dec 11 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Never mind, went a rather indirect route in the end.

    Code:
    <PropertyGroup>
      <TempTestFolder>$(RootDir)_UnitTests</TempTestFolder>
    </PropertyGroup>
    
    <Target Name="CopyUniqueTestFiles">
      <MakeDir Directories="$(TempTestFolder)" Condition="!Exists('$(TempTestFolder)')" />
      <Copy SourceFiles="$(RootDir)*.Tests\**\*.dll"
    ...
    See more | Go to post

    Leave a comment:


  • MSBuild - Force Expansion of Wildcards in Transforms

    Hi,

    Some MSBuild joyness, I have a range of unit test libraries, that actually reference each other (extended tests, mocks, etc.). As a result, the build on the server has multiple *.Tests.dll files in their bin directories.

    To select the Test dlls to run the tests as part of the build, we previously did this:

    Code:
    <ItemGroup>
      <TestFiles Include="$(RootDir)*.Tests\**\*.Tests.dll"
    ...
    See more | Go to post

  • peridian
    started a topic MSMQ - AccessControlList - Current Identity?
    in .NET

    MSMQ - AccessControlList - Current Identity?

    Hi,

    When I create a message queue programmaticall y, I would like to ensure that the created queue has the permissions to allow the service account the app is running under to access the queue.

    When I use SetPermissions on the created queue, how do I create an AccessControlEn try that holds the current app identity?

    Code:
    if (!MessageQueue.Exists(name))
    {
        var queue = MessageQueue.Create(name);
    ...
    See more | Go to post

  • peridian
    started a topic WCF: OperationContext null for Listeners
    in .NET

    WCF: OperationContext null for Listeners

    Hi,

    We have a service that is both a service and a client, receiving and transmitting messages.

    We have custom listeners logging messages in and out. These work fine.

    I wanted to try and log some sort of Id that would allow me to match up the ins and outs by the service for a given request.

    I.e. an app calls our service, our service calls another service, it gets a response and responds...
    See more | Go to post

  • peridian
    started a topic HTML Entity Output Escaping
    in XML

    HTML Entity Output Escaping

    Hi,

    My question is around HTML entities and XML output (although I use php, I felt this was more an XSLT question).

    Given the below, am I safe to not escape HTML entities on input anymore?

    I used to retrieve HTML fragments from a MySQL backend to echo out to the page (using php). I performed the HTML Entity escaping at the point of storage to reduce processing when the page was loaded.

    ...
    See more | Go to post

  • peridian
    replied to Google Chrome Comments Out XML Declaration
    in XML
    Yup,

    Added a call to header("Content-type: application/xml");
    prior to calling the echo.

    That fixed it.

    Cheers,
    Rob
    See more | Go to post

    Leave a comment:


  • peridian
    started a topic Google Chrome Comments Out XML Declaration
    in XML

    Google Chrome Comments Out XML Declaration

    Hi,

    If I use php to echo an XML file directly to the response, all I see is the XML text.

    This is because Google Chrome comments out the XML declaration at the start of the text, causing it to treat the rest of the XML as an HTML document.

    If I view source, copy and paste the XML exactly as it is into an actual XML file, place this file in the exact same directory on my web site as the php file, and try to load...
    See more | Go to post
    Last edited by peridian; Oct 9 '11, 02:58 PM. Reason: typo

  • peridian
    started a topic XSLT: Use Build Server To Merge Imports
    in XML

    XSLT: Use Build Server To Merge Imports

    Hi,

    We are using TeamCity as our build server. We have a website in php, which uses the XSLTProcessor to transform XML data.

    We wanted to break the XSLT templates down into separate files (to avoid copy paste hardships), using the import tag in the XSLT. This works when we test the XSLT directly through our web browser (using locally generated test XML files).

    However, it turns out the XSLTProcessor...
    See more | Go to post

  • Interesting. If my stylesheet is broken into multiple files (using imports) would I have to load each of them in turn into the processor? Does the processor handle internal references to other stylesheets?

    Regards,
    Rob.
    See more | Go to post

    Leave a comment:


  • peridian
    started a topic XSLTProcessor: Do I need xml-stylesheet declaration?
    in PHP

    XSLTProcessor: Do I need xml-stylesheet declaration?

    Hi,

    I am using the XSLTProcessor object. Even though I use importStyleshee t, does my XML still need to specify the xml-stylesheet declaration?

    Code:
    $xsl = new DOMDocument;
    $xsl->load("myfile.xslt");
    
    $xslt = new XSLTProcessor;
    $xslt->importStylesheet($xsl);
    I only ask because currently my code seems to be ignoring the XSLT and churning out plain text,...
    See more | Go to post

  • Right, for anybody else who might be as much of a doughnut as I appear to be....

    Remember to copy the generated config.inc.php file OUT of the config directory and drop it into the root!!!

    Thought I was missing the obvious...
    See more | Go to post

    Leave a comment:


  • Yeah, good point. Tried it though and it all succeeded no problem.

    I can only assume either I've configured it wrong, or phpMyAdmin is trying to login as a user other than the one I'm typing in at the prompt.

    Still searching...
    See more | Go to post

    Leave a comment:


  • phpMyAdmin - #2002 Cannot login to the MySql database

    Hi,

    I've been googling all over to try and get this to work, but no luck.

    I have two Linux servers, one Apache and one MySQL. I have put phpMyAdmin on the web server, and configured it to connect to the MySQL server. (versions at the bottom of post)

    I keep getting #2002 Cannot login to the MySQL database.

    I have tried installing the MySQL client on the web server, and it is successfully...
    See more | Go to post

  • Okay,

    I appear to have solved the problem, though I don't understand it. I fed the same setup into a different XML editor, and its intellisense did something I did not expect. It added a BLANK XML namespace to the <config> tag:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <template
        xmlns="http://tempuri.org/Page"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ...
    See more | Go to post
    Last edited by peridian; Mar 20 '11, 05:54 PM. Reason: namespace typo

    Leave a comment:


  • peridian
    started a topic cvc-complex-type.2.4.a: Invalid content was found
    in XML

    cvc-complex-type.2.4.a: Invalid content was found

    I must be going blind or dumb, because for the life of me I cannot see why I would get this error:

    cvc-complex-type.2.4.a: Invalid content was found starting with element 'config'. One of '{config}' is expected.

    With the following files:

    XSD:

    Code:
    <?xml version="1.0"?>
    <xs:schema
    	targetNamespace="http://tempuri.org/Page"
    	xmlns="http://tempuri.org/Page"
    ...
    See more | Go to post
    Last edited by peridian; Mar 12 '11, 06:27 PM. Reason: Corrected namespace typo

  • peridian
    started a topic Remote Desktop To Windows XP

    Remote Desktop To Windows XP

    I've just been looking around for ages to figure this out, but couldn't find the answer... so felt compelled to write about it.

    I have several Windows 7 machines, all able to remote desktop to each other no problems.

    I added two Windows XP machines to the network, and could not remote desktop to them.

    Went through all the troubleshooting , and realised they have Windows Firewall enabled on them. So I went...
    See more | Go to post

  • Finally figured this out.

    You were right, it is technically doing what I have asked it to, what is misleading is the encapsulation of the data that Microsoft has chosen to employ.

    If you look at Response.Cookie s when it first loads the code, it is empty.

    If Request.Cookies has the cookie already set up in there, when it does Response.Cookie s.Add, the Response.Cookie s collection shows the added cookie on...
    See more | Go to post

    Leave a comment:


  • Note: All of this code is test code, derived from my actual code. My actual code is more complicated but this simplifies demonstration of the problem.

    Value of Id could be anything, its only there for testing purposes (you can actually remove the parameter and the reference to it on line 7, and the same problem still occurs).

    In MVC routing, the id parameter is optional, it was just so I could test what happens if I...
    See more | Go to post

    Leave a comment:


  • So you're saying that cookie.Value = "a new value" does not actually set the value of the cookie that is sent back??

    Regardless of whether the cookie already existed or not (i.e. line 5 creates a new one or uses the existing one), line 7 should have reset the value.
    See more | Go to post

    Leave a comment:


  • MVC, Cookies, jQuery... is my cookie being cached?

    Hi,

    Been trying to get to the bottom of a bug, which I thought was the browsers fault, but it turns out is either:

    a) a bug in the browser.
    b) a bug in jquery cookie handler.
    c) a bug in MVC response handler.

    Simple way to replicate this...

    Controller

    Code:
    public class HomeController : Controller
    {
        public ViewResult Index(String id)
    ...
    See more | Go to post
No activity results to display
Show More
Working...