Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 24 18:06
    StevenLiekens commented #59
  • Mar 24 18:05
    StevenLiekens closed #59
  • Mar 24 18:05
    StevenLiekens commented #59
  • Mar 24 17:47
    StevenLiekens closed #58
  • Mar 24 17:47
    StevenLiekens commented #58
  • Mar 19 13:02
    Friesinator edited #59
  • Mar 19 13:01
    Friesinator opened #59
  • Mar 18 12:38
    StevenLiekens commented #58
  • Mar 15 15:19
    GHOSCHT commented #58
  • Mar 14 22:01
    Seeker1437 commented #58
  • Mar 14 20:08
    GHOSCHT commented #58
  • Mar 12 15:40
    StevenLiekens commented #58
  • Mar 10 15:46
    GHOSCHT opened #58
  • Apr 15 2018 16:43

    Ruhrpottpatriot on ServiceClient

    Remove superfluous compression … Add simple caching to Core proj… Move files into different folde… and 8 more (compare)

  • Apr 10 2018 21:09

    Ruhrpottpatriot on ServiceClient

    Add fluent api to create HttpRe… Fix Stylecop errors Remove dead code and 3 more (compare)

  • Mar 29 2018 13:11

    Ruhrpottpatriot on NetCore2.0

    Remove disabled and superseded … Delete unused leftover code fro… Move V1.Guild test to appropria… and 8 more (compare)

  • Mar 29 2018 12:17

    Ruhrpottpatriot on NetCore2.0

    Update .gitignore to exclude St… Add Api builder class (compare)

  • Feb 01 2018 09:33

    Ruhrpottpatriot on master

    Refactorize ServiceClient.GetHt… Merge pull request #57 from Kor… (compare)

  • Feb 01 2018 09:33
    Ruhrpottpatriot closed #57
  • Dec 27 2017 17:37
    Korjam opened #57
Robert Logiewa
@Ruhrpottpatriot
yeah
hm
Steven Liekens
@StevenLiekens
I basically need a byte[] array and a way to remember how full the buffer is and where it begins or ends
it doesn't need to shrink or grow, ever
Robert Logiewa
@Ruhrpottpatriot
hmm
Steven Liekens
@StevenLiekens
the part that I'm stuck on is keeping track of where the head and tail are
Robert Logiewa
@Ruhrpottpatriot
Write your "own" Array class with two additional properties Start and End
We can safely assume that you always append after the last item
so we have no empty spaces
Steven Liekens
@StevenLiekens
problem is when head == tail, is the buffer full or empty?
Robert Logiewa
@Ruhrpottpatriot
Full, when the Length property equals the Size
otherwise empty
Steven Liekens
@StevenLiekens
I'm trying to understand this solution https://en.wikipedia.org/wiki/Circular_buffer#Mirroring
it seems like it has the most advantages
Robert Logiewa
@Ruhrpottpatriot
Personally, I'd use a fill count
That should be the most easy to implement
Steven Liekens
@StevenLiekens
wiki says it's not thread safe
Robert Logiewa
@Ruhrpottpatriot
yeah
Steven Liekens
@StevenLiekens
which is a requirement
for me
Robert Logiewa
@Ruhrpottpatriot
hmm
Steven Liekens
@StevenLiekens
and I suck at writing thread synchronization
Robert Logiewa
@Ruhrpottpatriot
hehe
yeah me too
Steven Liekens
@StevenLiekens
I just need to understand what the article says damn it
Robert Logiewa
@Ruhrpottpatriot
yeah
I try that too
it's a bit weird
it's c++ but you should get the gist
maybe that's a better resource
Steven Liekens
@StevenLiekens
ok so the mirroring thing is way easier than wikipedia describes it
just gotta flip a bit every time a read or write operation wraps around the end of the array
if the head and tail are the same, the buffer is full when the bit is 1
otherwise it's empty
Robert Logiewa
@Ruhrpottpatriot
oh
well that is really easy
So the move to HttpClient goes along well
but it's much work
Since there are a lot of changes under the hood
Steven Liekens
@StevenLiekens
did you figure out how to handle query strings?
I know that nowhere in the HTTP spec does it say that query strings have to be name-value pairs
but it's weird to me that they don't provide a dictionary type interface for setting the query parameters
Robert Logiewa
@Ruhrpottpatriot
I have
I built a custom class which takes some inspiration fomr the HttpHeaderCollection class
I have a class where you can set the headers and then you call BuildQueryString, which you only need to append to the uri
Steven Liekens
@StevenLiekens
the codeplex link to github is broken
Robert Logiewa
@Ruhrpottpatriot
will fix it
thanks for the info
btw: does anybody here know how to make a cross platform console application in c#?