Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. Nuts!

Nuts!

Scheduled Pinned Locked Moved LINQ
questionlearningcsharplinqtesting
29 Posts 5 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pete OHanlon

    Super Lloyd wrote:

    I wonder, have you heard they are testing some Gluten intolerance curative shot in Australia?

    I haven't heard that, but it would be good if they could cure it.

    Super Lloyd wrote:

    Also Gluten intolerance cause heaps of nasty and mysterious symptoms. Do they go away for good?

    No. Not eating gluten keeps the symptoms at bay, but they haven't disappeared. With my wife, gluten triggers chronic stomach pains, and her iron count plummets because the villi just cannot process the gluten in the food.

    Super Lloyd wrote:

    How long does it takes?

    It depends on how long you've been Coeliac, and how severe your symptoms have been. If you've just got a mild case, or haven't had it too long, then it shouldn't take too long for your symptoms to abate.

    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

    My blog | My articles | MoXAML PowerToys | Onyx

    S Offline
    S Offline
    Super Lloyd
    wrote on last edited by
    #20

    thanks! in my case it has been very mild and very long! but, over many years, it has very slowly grow from mild to severe (and mysterious). only recently I realized it was this! I hope it won't take as long to get better...

    A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

    1 Reply Last reply
    0
    • S Super Lloyd

      I believe you but you know... something has to change for the code to behave differently! Check out the SVN history for any changes between yesterday and today? Maybe something in the database, do you have anyway to know what changed?

      A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

      M Offline
      M Offline
      Mustafa Ismail Mustafa
      wrote on last edited by
      #21

      SVN Logs, my memory, and my sister's memory. Can't think of anything else.

      If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

      1 Reply Last reply
      0
      • M Mustafa Ismail Mustafa

        OK, this is driving me nuts. It was working perfectly fine yesterday and NOTHING has changed since then but it has stopped working. What is going on?

        List<RCH.EL.EMR.Allergies> AllAllergies
        { get; set; }

        List<RCH.EL.EMR.Allergies> RemainingAllergies
        { get; set; }

        List<RCH.EL.EMR.Allergies> PatientAllergies
        { get; set; }

        protected override void LoadForm()
        {
        //lots of code
        //retrieve the data
        AllAllergies = AllergiesBL.GetAllFromDB();
        PatientAllergies = PatientAllergiesBL.GetFromDB(CurrentPatient.PatientID);
        RemainingAllergies = new List<EL.EMR.Allergies>();

        ResolveAllergies();

        //Bind
        Bind();

        }

        private void ResolveAllergies()
        {
        RemainingAllergies = AllAllergies.Except(PatientAllergies).ToList();
        }

        Yesterday, method Resolveallergies() worked properly, not now. Why? What am I doing wrong? I've wasted so much time on what should be a pathetically simple issue.

        If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #22

        Basically this is doing object comparison. What you might want to do is roll your own comparer, like this:

        public class AllergyComparer : IEqualityComparer<RCH.EL.EMR.Allergies>
        {
        public bool Equals(RCH.EL.EMR.Allergies a, RCH.EL.EMR.Allergies b)
        {
        return a.ID = b.ID;
        }

        public int GetHashCode(RCH.EL.EMR.Allergies allergies)
        {
        return allergies.ID.GetHashCode();
        }
        }

        Then, your call to ResolveAllergies uses the following code:

        RemainingAllergies = AllAllergies.Except(PatientAllergies, new AllergyComparer()).ToList();

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        M 1 Reply Last reply
        0
        • P Pete OHanlon

          Basically this is doing object comparison. What you might want to do is roll your own comparer, like this:

          public class AllergyComparer : IEqualityComparer<RCH.EL.EMR.Allergies>
          {
          public bool Equals(RCH.EL.EMR.Allergies a, RCH.EL.EMR.Allergies b)
          {
          return a.ID = b.ID;
          }

          public int GetHashCode(RCH.EL.EMR.Allergies allergies)
          {
          return allergies.ID.GetHashCode();
          }
          }

          Then, your call to ResolveAllergies uses the following code:

          RemainingAllergies = AllAllergies.Except(PatientAllergies, new AllergyComparer()).ToList();

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          M Offline
          M Offline
          Mustafa Ismail Mustafa
          wrote on last edited by
          #23

          Pete, for the last 20 minutes nearly, I've been trying to reply to this message to tell you just how much I love you. You have completely saved my sanity. And though, the list of pints of bitter owed increase (+1), I am certain one day I will be over to settle said bill. Thank you for the answer! So that means the problem was with the system determining the equality, but why the heck did this change overnight! I still maintain that I have not touched that code or code directly related to it (DB,BL,EL,DAL or otherwise!)

          If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

          P 1 Reply Last reply
          0
          • M Mustafa Ismail Mustafa

            Pete, for the last 20 minutes nearly, I've been trying to reply to this message to tell you just how much I love you. You have completely saved my sanity. And though, the list of pints of bitter owed increase (+1), I am certain one day I will be over to settle said bill. Thank you for the answer! So that means the problem was with the system determining the equality, but why the heck did this change overnight! I still maintain that I have not touched that code or code directly related to it (DB,BL,EL,DAL or otherwise!)

            If the post was helpful, please vote, eh! Current activities: Book: Devils by Fyodor Dostoyevsky Project: Hospital Automation, final stage Learning: Image analysis, LINQ Now and forever, defiant to the end. What is Multiple Sclerosis[^]?

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #24

            Always happy to help bud.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            1 Reply Last reply
            0
            • S Super Lloyd

              I would like to know about Gluten intolerance and Caseine intolerance. I don't know if it's an allergy because it's not killing me. But it does spoil my life (slowly but surely). Except since I discovered about it recently I made some progress! :-D And also it seems to affect the brain (I read), not as an allergen but as something else...

              A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

              L Offline
              L Offline
              leckey 0
              wrote on last edited by
              #25

              Gluten intolerance is more of an auto-immune issue versus true allergies. It can cause Celiac's disease which can be quite dibilitating.

              Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

              S 1 Reply Last reply
              0
              • L leckey 0

                Gluten intolerance is more of an auto-immune issue versus true allergies. It can cause Celiac's disease which can be quite dibilitating.

                Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]

                S Offline
                S Offline
                Super Lloyd
                wrote on last edited by
                #26

                Hey, thanks for your answer! The sad thing is, they use gluten containing stuff (flour I suppose) in so many thing today! Apart from the obvious (bread, cakes, pasta), I found that the plum sauce and soy sauce from my local supermarket contains gluten! And sausages as well! Ha well, working on it! :)

                A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                1 Reply Last reply
                0
                • P Pete OHanlon

                  Super Lloyd wrote:

                  I would like to know about Gluten intolerance

                  Talk to me buddy - my wife is gluten intolerant. We've learned more about it than we ever wanted to know (especially how hard it is to find decent gluten free bread).

                  "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                  As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                  My blog | My articles | MoXAML PowerToys | Onyx

                  D Offline
                  D Offline
                  Daniel Vaughan
                  wrote on last edited by
                  #27

                  Pete, My wife and I started making our own bread last year when we thought I might be Coeliac. It can be a little more time consuming, but if you can find a good brand of gluten free flour, it's not half bad, and definately beats the bought loaves.

                  Daniel Vaughan Blog: DanielVaughan.Orpius.com
                  Company: Outcoder

                  P 1 Reply Last reply
                  0
                  • D Daniel Vaughan

                    Pete, My wife and I started making our own bread last year when we thought I might be Coeliac. It can be a little more time consuming, but if you can find a good brand of gluten free flour, it's not half bad, and definately beats the bought loaves.

                    Daniel Vaughan Blog: DanielVaughan.Orpius.com
                    Company: Outcoder

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #28

                    We do that as well, and substitute Quinoah for things like Cous Cous. Mind you, there's a brand of Coeliac friendly bread here in the UK called Genius which tastes as good as the gluten version.

                    "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                    As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                    My blog | My articles | MoXAML PowerToys | Onyx

                    D 1 Reply Last reply
                    0
                    • P Pete OHanlon

                      We do that as well, and substitute Quinoah for things like Cous Cous. Mind you, there's a brand of Coeliac friendly bread here in the UK called Genius which tastes as good as the gluten version.

                      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                      My blog | My articles | MoXAML PowerToys | Onyx

                      D Offline
                      D Offline
                      Daniel Vaughan
                      wrote on last edited by
                      #29

                      Nice. Gotta love the smell of baking bread, pretty great.

                      Daniel Vaughan Blog: DanielVaughan.Orpius.com
                      Company: Outcoder

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups