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. The Lounge
  3. I learned something this morning at 3 AM

I learned something this morning at 3 AM

Scheduled Pinned Locked Moved The Lounge
csharptoolsasp-netapachelamp
9 Posts 5 Posters 0 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.
  • E Offline
    E Offline
    Ennis Ray Lynch Jr
    wrote on last edited by
    #1

    Ok, some of you know that I do some Android programming. What you may not know is that I still write my rest services in ASP.NET because let's be honest, ASP.NET has a lot of productivity features that are not available to the LAMP world. Well, here is what I learned. If you write a web handler and call Response.Flush() and then Response.Close() it will use the HTTP 1.1 chunked encoding method to stream the result data to the requesting client. Here is the interesting part: HttpClient in from apache does not support chunked encoding! You have to use the more correct method, in ASP.NET, of Response.End(). Who knew! I should probably publish this as a tip and get credit.

    Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

    L M M 3 Replies Last reply
    0
    • E Ennis Ray Lynch Jr

      Ok, some of you know that I do some Android programming. What you may not know is that I still write my rest services in ASP.NET because let's be honest, ASP.NET has a lot of productivity features that are not available to the LAMP world. Well, here is what I learned. If you write a web handler and call Response.Flush() and then Response.Close() it will use the HTTP 1.1 chunked encoding method to stream the result data to the requesting client. Here is the interesting part: HttpClient in from apache does not support chunked encoding! You have to use the more correct method, in ASP.NET, of Response.End(). Who knew! I should probably publish this as a tip and get credit.

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What do you make of Android as a platform for delivering business applications? The devices our customers have been using (a previous version of Windows Mobile) are becoming impossible to get hold of through the company we have to use. If I can make a decent argument that Android is a plausible way forward then I get a HTC Desire to play with.

      Every man can tell how many goats or sheep he possesses, but not how many friends.

      E 1 Reply Last reply
      0
      • L Lost User

        What do you make of Android as a platform for delivering business applications? The devices our customers have been using (a previous version of Windows Mobile) are becoming impossible to get hold of through the company we have to use. If I can make a decent argument that Android is a plausible way forward then I get a HTC Desire to play with.

        Every man can tell how many goats or sheep he possesses, but not how many friends.

        E Offline
        E Offline
        Ennis Ray Lynch Jr
        wrote on last edited by
        #3

        The hardest part is getting used to the Google way instead of the windows way. Eclipse is not as nice as visual studio and I haven't found a way to seamlessly stream xml files to objects (not that I have looked to hard) Other than that I like it. As a bonus it is in Java. You have a lot of control in Java if you don't like the way something is done. I think the best business case is just the reliability of Android as an OS over Windows Mobile in general. Also, you do not need the device to play. Download the SDK and Eclipse ( 32 bit not 64 bit, 64 doesn't work very well) and play using the emulators. The User Interface is preferably created through XML only. One nicety about this is that I have one client who is not a very good coder but can tinker with XML to his hearts content. So I deliver code and he tweaks the UI. Works really well. Exception handling leaves much to be desired. You can do things wrong in Android and crash the application with no way to tell what caused the crash. Can be a head-ache. Overall, Android takes a little bit longer to program than XAML with Silverlight.

        Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

        L 1 Reply Last reply
        0
        • E Ennis Ray Lynch Jr

          Ok, some of you know that I do some Android programming. What you may not know is that I still write my rest services in ASP.NET because let's be honest, ASP.NET has a lot of productivity features that are not available to the LAMP world. Well, here is what I learned. If you write a web handler and call Response.Flush() and then Response.Close() it will use the HTTP 1.1 chunked encoding method to stream the result data to the requesting client. Here is the interesting part: HttpClient in from apache does not support chunked encoding! You have to use the more correct method, in ASP.NET, of Response.End(). Who knew! I should probably publish this as a tip and get credit.

          Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          What I learned at 3AM this morning is that it sucks when you want to see the eclipse and the sky is covered with clouds! Marc

          E N 2 Replies Last reply
          0
          • E Ennis Ray Lynch Jr

            The hardest part is getting used to the Google way instead of the windows way. Eclipse is not as nice as visual studio and I haven't found a way to seamlessly stream xml files to objects (not that I have looked to hard) Other than that I like it. As a bonus it is in Java. You have a lot of control in Java if you don't like the way something is done. I think the best business case is just the reliability of Android as an OS over Windows Mobile in general. Also, you do not need the device to play. Download the SDK and Eclipse ( 32 bit not 64 bit, 64 doesn't work very well) and play using the emulators. The User Interface is preferably created through XML only. One nicety about this is that I have one client who is not a very good coder but can tinker with XML to his hearts content. So I deliver code and he tweaks the UI. Works really well. Exception handling leaves much to be desired. You can do things wrong in Android and crash the application with no way to tell what caused the crash. Can be a head-ache. Overall, Android takes a little bit longer to program than XAML with Silverlight.

            Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Ennis Ray Lynch, Jr. wrote:

            Also, you do not need the device to play.

            Realise that, but want a new phone :) Thanks for the advice, I'm just having to get into Java for something else I now have responsibility for.

            Every man can tell how many goats or sheep he possesses, but not how many friends.

            1 Reply Last reply
            0
            • M Marc Clifton

              What I learned at 3AM this morning is that it sucks when you want to see the eclipse and the sky is covered with clouds! Marc

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #6

              Funny you should say that. I walked outside to walk the dog, noticed the Eclipse, grabbed my camera and tried to get a few shots. Eventually I had to get the tripod but my tripod is crap. I should have switched lenses to my 50 1.8.

              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

              1 Reply Last reply
              0
              • E Ennis Ray Lynch Jr

                Ok, some of you know that I do some Android programming. What you may not know is that I still write my rest services in ASP.NET because let's be honest, ASP.NET has a lot of productivity features that are not available to the LAMP world. Well, here is what I learned. If you write a web handler and call Response.Flush() and then Response.Close() it will use the HTTP 1.1 chunked encoding method to stream the result data to the requesting client. Here is the interesting part: HttpClient in from apache does not support chunked encoding! You have to use the more correct method, in ASP.NET, of Response.End(). Who knew! I should probably publish this as a tip and get credit.

                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                M Offline
                M Offline
                Member 96
                wrote on last edited by
                #7

                Last week on Wednesday I learned something as well at 3am: the sheer calamity that can be caused by one little mouse. I awoke to the cat rampaging around the bedroom, crash banging into the walls. My wife boots the cat out and closes the bedroom door, next thing you know there is a persistent scritching scratching noise coming from the radiator. I knew right away it was a mouse, we have a hydronic hot water heating system for our central heating and it has these weird vents with a tube of copper with a million aluminum fins on it inside a box structure. The mice run into it to hide and then make a racket running across the fins, probably tap dancing because they're so hot in the winter; the cats can't quite reach them with their paws but continually try so it's a horrible noise like an ongoing explosion in a noise factory. I wake up again, now angry and so the lights are blaring, my wife is trying to disassemble the radiator and I'm flinging cats into the bedroom in the vain hope that they will catch the mouse when it runs out. They slink off and we end up chasing the damn mouse all over the bedroom on hands and knees, it runs into the closet where my wife has a billion boxes of old clothes and shoes and promptly disappears in it. We can't find the damn mouse and decide to throw all the boxes into the living room so we can lock the cat and mouse out of the bedroom and get some sleep. So it's like 3:30 in the morning and we're packing boxes out of the bedroom. Just as we're getting the last boxes out the mouse pops up in a shoe box. My wife slams the lid shut and tosses it out on the veranda and closes the door. I toss both cats outside and lock their cat door so they can't get back in. We settle back in to bed to get some sleep, I'm just drifting off when I hear the cats in a fight to end all cat fights, they are screaming at the top of their lungs and rolling and fighting all the way around the house. We sleep with the windows open all year, wide open in the summer and partly in the winter so the noise is blaring in and they just won't stop, pretty soon all the neighborhood dogs are barking their heads off and so I march out and open the door and one cat runs in. I slam the door and go back to bed. But now the dogs are all riled up and won't stop barking. I spend what felt like hours mentally devising new ways to deal with mice and cats and barking dogs. I didn't get to sleep until 5. I came to the conclusion that the real problem was the anger I was feeling because it took me so

                1 Reply Last reply
                0
                • M Marc Clifton

                  What I learned at 3AM this morning is that it sucks when you want to see the eclipse and the sky is covered with clouds! Marc

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  Marc Clifton wrote:

                  What I learned at 3AM this morning is that it sucks when you want to see the eclipse and the sky is covered with clouds!

                  Considering you live in upstate New York I am surprised you even woke up hoping to be able to see something (this is December after all) :-)

                  Regards, Nish


                  My technology blog: voidnish.wordpress.com

                  M 1 Reply Last reply
                  0
                  • N Nish Nishant

                    Marc Clifton wrote:

                    What I learned at 3AM this morning is that it sucks when you want to see the eclipse and the sky is covered with clouds!

                    Considering you live in upstate New York I am surprised you even woke up hoping to be able to see something (this is December after all) :-)

                    Regards, Nish


                    My technology blog: voidnish.wordpress.com

                    M Offline
                    M Offline
                    Marc Clifton
                    wrote on last edited by
                    #9

                    Nishant Sivakumar wrote:

                    Considering you live in upstate New York I am surprised you even woke up hoping to be able to see something (this is December after all

                    It was questionable, but worth a shot. Marc

                    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