Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hedgehog

Monster Hunting Team Leader
  • Joined

  • Last visited

Everything posted by Hedgehog

  1. Hedgehog replied to Leoo's topic in Off-Topic
    Seriously though, Neoquest is a great game and everyone should play it before Neopets inevitably shuts down (seriously how are they still around?)
  2. Hedgehog replied to muggiwhplar's topic in Off-Topic
    We had a guy on our campus named Dennis who would ride around on his bike wearing short shorts and sexually harassing everyone and shouting about the apocalypse or something
  3. Hedgehog replied to Leoo's topic in Off-Topic
    Nubiles are like real life noobs, I think
  4. An album that has aged surprisingly well and really slipped through the cracks: Youtube HD Video - This video will cause high CPU usage, to view the video in a lower quality, please click .
  5. You just have to use the video id
  6. The Pineapple Thief is releasing another album Youtube HD Video - This video will cause high CPU usage, to view the video in a lower quality, please click . I'm not that into it
  7. Hedgehog replied to Leoo's topic in Off-Topic
    Arbitrary precision BigInts were just implemented in V8. They wrote a neat article on it if you're interested
  8. Hedgehog replied to Leoo's topic in Off-Topic
    I'd steer you away from using a double to handle stacks of items. You're going to run into so many problems related to precision and it's just not going to be fun to deal with. Most databases have a type specifically for money, which is usually an 8 byte integer with 4 digits of precision. I'd strongly recommend using that As far as avoiding duplicates, do some research into idempotent transactions. Basically, you just want to ensure that inserting something twice has the same result as inserting it a single time. Probably the easiest way to accomplish this is by assigning an item a UUID when it spawns, then using that as the primary key in a (uuid, quantity, item_id, player_id) table. That would prevent the same item being picked up by two players and one player trying to pick up an item twice. If you aren't using a relational database, just use the UUID as a key in a hash or whatever you have available. Then the only other major problem is handling cases where someone tries to pick up a bunch of items at once, but only has room for some of them, but that should be easy enough for you to handle.
  9. Hedgehog replied to Leoo's topic in Off-Topic
    Sorry I was rushing to post that before I left the office. On the accuracy distribution: I would set the probability of hitting to between(A, D, mean: (A + D)/2, std Dev: 30ish) + 0.5. Then when A = D, you have a 50% accuracy. At around A - D = 40, you hit 100%, with a nice curve in between
  10. Hedgehog replied to Leoo's topic in Off-Topic
    In Runescape, the xp between levels grows exponentially according to c * 2level/n, where n is how many levels it takes for the xp between levels to double (RS uses n = 7) and c is the scaling factor (RS uses c = 75). Then the total xp required for a level is just a summation. So you should be able to throw that into a spreadsheet, then play with values of n and c. I had success using c = 250 and n = 5. Setting n to 5 makes sense since you want tiers to come every 10 levels, so you'd have to quadruple your xp to advance a tier. Setting c to 250 gets you close to the max int at level 100, but still gives you plenty of breathing room. In practice, I'd use c = 251 and n = 5.1 or something like that, just so that it doesn't feel so formulaic. For refining, I wouldn't overthink it. Just make a Necronorium bar tier 71, a Necro sword tier 72, ..., and a Necro platebody tier 75. Or you could add another exponential function to it, so a bar might be 250 * 2 level/5 + 25 * 2level/5. Both accomplish similar things, but I think the first one is more straightforward and requires less analysis. Accuracy: Runescape just rolls a number between 0 and Attack and compares it to 0 and Defense. The math is fairly straightforward calculus: if you have max attack and defense rolls A and D, and samples of these rolls a and d, then when A > D, you integrate (A - d)/(A * D) from 0 to D (or 1 to D if you can't roll a 0) and when D > A, you integrate (A - a)/(A * D) from 0 to A. This works because (A - d) is the number of rolls where d is less than A and (A * D) is the total number of rolls. If you picture it in your head (A * D) is a rectangle, and (A - d) is a triangle cut into it, so you want the area of the triangle divided by the area of the rectangle to get the probability of hitting. If d can be bigger than A, then the triangle extends below the x axis, so you calculate 1 - the chance of missing instead. This gives you something of the form 1/x, so you get diminishing returns as one value grows larger than the other. That's really nice for balancing, since a tier 100 weapon wouldn't be significantly more accurate than a tier 90 weapon against level 50 armor. However, what you're describing sounds a little like you want a normal distribution with a std deviation of 10. So you'd calculate the probability of landing outside of A and D if the std deviation is 10 and the mean is (A + D) / 2. You'll have to play around with that to get what you want, but it's a good place to start. I'd make strength normally distributed too, so that you tend to hit high and low rarely, but mostly in the middle
  11. Hedgehog replied to Leoo's topic in Off-Topic
    CI is game changing. Using docker for everything is great too
  12. Hedgehog replied to Leoo's topic in Off-Topic
    Are you trying to calculate e?
  13. Hedgehog replied to Leoo's topic in Off-Topic
    I remember implementing RSA for a cryptography course in college. The algorithm is trickier than it looks, and there are a lot of opportunities to show off good programming practices. Solid interview question
  14. 21st Century Breakdown has aged like fine wine in the 9 years since it was released
  15. Early AOTY 2018 candidate: Expectations by Hayley Kiyoko
  16. Hedgehog replied to Leoo's topic in Off-Topic
    Take a shot beforehand?
  17. Hedgehog replied to Leoo's topic in Off-Topic
    We're hiring a C# developer currently and it's definitely a skillset that's in demand. I doubt you'd have trouble at least getting interviews. If you like the language, I'd go for it. I'm definitely not a fan though
  18. Hedgehog replied to Leoo's topic in Off-Topic
    My coworker somehow got a virus on his work computer and it took IT almost 2 days to scan his hard drive because they forgot to exclude node_modules
  19. Hedgehog replied to Leoo's topic in Off-Topic
    Suggestion: the oxfords in the "you may also like" section
  20. Hedgehog replied to Leoo's topic in Off-Topic
    Learning to write maintainable code is the most important thing and I wish it was talked about more in school. If your code is a little slow or isn't structured that well or is hard to use, there are plenty of amazing engineers in the building who can help you. There isn't much we can do though if your code is hard to read, isn't tested or documented, or if there aren't comments explaining why you made the choices you made. Understanding how to use git correctly goes a long way too.
  21. Hedgehog replied to Leoo's topic in Off-Topic
    Seems like it parses the YouTube URL to grab the video id and sticks it onto a different embed url (which uses http). Hopefully it should be simple to fix once you find the embed url but you never know with some applications.
  22. Hedgehog replied to Leoo's topic in Off-Topic
    You can use the youtubehq tag, i.e. [youtubehq]Y4lnZr022M8[/youtubehq] &hl=en&ap=%2526fmt%3D18">&hl=en&ap=%2526fmt%3D18" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"> vs It's easier to just post the link and hit the button in the address bar though
  23. Hedgehog replied to Leoo's topic in Off-Topic
    You too
  24. We can all agree that the best song ever made is Best Years of Our Lives by Baha Men

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.