• Member Avatar for DaveAmour
    DaveAmour

    Created TDD Book Recomendations (C#)

    I've been studying TDD for a few years and read quite a few books but none that good to be honest. Can anyone recomend any good ones. I'm not interested …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching TDD Book Recomendations (C#)

    I've been studying TDD for a few years and read quite a few books but none that good to be honest. Can anyone recomend any good ones. I'm not interested …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching HTTPS won't load correctly

    Hello i am getting an error that says *Mixed Content: The page at 'https://www.rovespier.com/login.php' was loaded over HTTPS, but requested an insecure script 'http://malsup.github.io/jquery.form.js'. This request has been blocked; the …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in HTTPS won't load correctly

    Those 2 urls are not the same!
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching check url status (404 etc) from password protected page

    I have a couple of sites (on different servers) that I want to see if some critical urls are up and running and this is what I've tried: $handle = …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in check url status (404 etc) from password protected page

    If you just want to know if the site is up then doesn't the redirect tell you that the site is up?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching window 10 is good or not?

    window 10 is good OR NOT
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in window 10 is good or not?

    I like it
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Debugging in a production environment

    Actually I once debugged a production server because we could not replicate the error. It only happended on production. We had 8 servers in a farm so I just took …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Debugging in a production environment

    So did you have a copy of the code at all? What kind of code was it? If you have a copy then you can debug on a dev machine. …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Debugging in a production environment

    I recently lost a job, pretty much because my previous employer expected miracles from an entry level coder. I was tasked with reading years worth of code developed in a …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Debugging in a production environment

    Did they have Source Control?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Nested Loops?

    PS PS - Try changing the 6 to higher values to give you different results.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Nested Loops?

    PS - Here is a solution in C# - I am sure you can translate it! void Main() { for (int i = 6; i > 0; i--) { for …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Nested Loops?

    Everytime I run this nested code, I just get stuck inside of an infinite loop.. any help? I'm not familiar with nested loops at all. I'm supposed to be getting: …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Nested Loops?

    When you first enter the outer loop i is equal to 6. You then start the inner loop with j initially being equal to 1. You tell the inner loop …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching find greater from two date with times any body help me using jquery

    I have two dates var date1="2015-09-18 06:08:50"; var date2="2015-09-18 06:08:51"; I am suffering to get greater one date2. any body help me.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in find greater from two date with times any body help me using jquery

    If you make then Date objects can you not use comparison operators - eg >, < etc?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching NaN Problem

    In a page, I have a table with user entering field. There are 4 fields, first three are user entering fields and the fourth field is auto calculating of the …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in NaN Problem

    NaN means not a number. Solve this by showing us your code and we can then show you how to fix it.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in What I've been working on lately ...

    Ok my apologies just ignore me then.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in What I've been working on lately ...

    If you click on Connect you get a list of options. Some of those will ask for your email but "Friend" doesn't. How to find profiles - many ways, could …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in What I've been working on lately ...

    You can actually connect with anyone on LinkedIn by just ticking the button to say you are their friend!
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching selectors in CSS?

    What are selectors in CSS?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in selectors in CSS?

    They are the patterns you use to select elements eg: p { color: red; } This makes all paragraphs red - the "p" is the selector Or: .active { border: …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Unmanaged/unsafe native code in C# project

    Hi all. I have a need to use native/C++ code in C# application. I basically want the lower level functionality of C++ with a good looking C# GUI. Calling native …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in What I've been working on lately ...

    No problem, always happy to help.
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching What I've been working on lately ...

    Hey everyone :) Sorry I've been kind of absent from DaniWeb for the past week or so. I was actually working on a new side project. It's close to launch …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in What I've been working on lately ...

    Like it
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Localhost

    hi, pls am havving a problem with my localhost. i installed 2 localhosts on my machine, these are wamp and xammp server but evere since then, i was unable to …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Localhost

    Are they all trying to use the same port(s)?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching String

    BB5 6BN, BB4 6BN,BB4 8BN, CF10 3BA Can anyone please help me as how can I remove space after the comma? -Gunjan Ahuja
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in String

    ` var input = "BB5 6BN, BB4 6BN,BB4 8BN, CF10 3BA"; var trimmedInput = input.Replace(", ", ",");`
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    Really sorry - still uber busy!
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Customizing simple MVC app

    Top Tip - look at T4MVC @Html.ActionLink("Delete Dinner", "Delete", "Dinners", new { id = Model.DinnerID }, null) T4MVC lets you write @Html.ActionLink("Delete Dinner", MVC.Dinners.Delete(Model.DinnerID)) https://github.com/T4MVC/T4MVC https://visualstudiogallery.msdn.microsoft.com/8d820b76-9fc4-429f-a95f-e68ed7d3111a
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    Sorry real busy on my new contract. Will definatley have a look at the weekend at the latest!
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching How To Route To New Url After Login To Instagram Using C#

    hi i'm trying to build an app that allow to login to instagram using c# when i run my application and logged in , i need to be redirected to …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in How To Route To New Url After Login To Instagram Using C#

    Fiddler is your friend here. Could be cookies, or header related. Look at a normal logon in fiddler and compare it with yours. http://www.telerik.com/fiddler
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    Hi Sorry mean to look at this yesterday but got tied up - will have a tinker tonight.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    I'm happy to look at scenarios with you. Can you ceate some actual tables though and show me the SQL to create them then we can be aure we are …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    At a high level you need to provide a mechanism for client code to specify what it wants loaded. Ef with Linq does this as follows: var customers = context.Customers.ToList(); …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    Let me have a think - working today but will post some thoughts at the weekend.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    It uses an algorithm to conver linq to sql with joins. I think you can get the code from https://github.com/aspnet/EntityFramework
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    All deferred means is that you can keep adding to the query - adding extra where clauses etc but not until the point in time when the query is enumerated …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    No what I mentioned was eager loading - ie exactly what you need. .Include tells the ORM what to include - ie which joins to generate in SQL server. It …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    It does matter which ORM it is - is it hand made - are you able to add to it or does it have any extension points or is it …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Loading related objects from database

    This is more a general approach question. I have an old ORM like framework for this application. Basically what it does, if it needs to load a bunch of objects/records, …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Loading related objects from database

    Which ORM is this?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching C program to remove even numbers and fill it with zero

    C program to remove even numbers and fill it with zero Input array 1,2,3,4,5,6 Output 1,3,5,0,0,0 #include<stdio.h> void main() int i,j,k,n=6,a[]={1,2,3,4,5,6}; clrscr(); for(i=0;i<n;i++) { if(a[i]%2==0) { a[i]=-1; } else printf("%d",a[i]); …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in C program to remove even numbers and fill it with zero

    Can you do the loop step 2? Would be more efficient.

The End.