Board List | Page List: 1 |
---|---|
Topic | I wrote a C++ interpreter |
Magus 10 07/04/17 7:18:56 AM #4 | Yellow posted... Also in my language, you don't declare anything and everything is a double, even arrays, which don't have any real limit (assuming you don't actually use all of the space). Good enough for my needs really. I'm a little confused, is it a C++ interpreter, or is it an interpreter for a language you created? --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | From now on, you get $300 a week, no matter what. |
Magus 10 06/01/17 2:13:22 AM #27 | It would be nice but probably wouldn't significantly impact my life right now. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | PokeMMO is legit af |
Magus 10 05/31/17 12:19:44 AM #16 | helIy posted... pokemon go is not an mmo. Considering it's also massively multiplayer and online, I'd argue that it's also an MMO. It doesn't have to be one or the other. Also, this pokemmo is getting a C&D as soon as Nintendo's lawyers see it. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | My friend made $100k in bitcoin this month. |
Magus 10 05/26/17 2:55:34 AM #21 | xjayguyx posted... I still to this day have no idea how the mining works or why anyone even cares about it. https://en.wikipedia.org/wiki/Proof-of-work_system --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | How can I use a keyboard and mouse on my bed? |
Magus 10 05/25/17 12:28:58 AM #3 | |
Topic | Apparently "The_Donald" subreddit is in private mode |
Magus 10 05/20/17 3:07:04 AM #4 | Nice! --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Does anybody want FFXIV item DLC for free? I got it from amazon for free. |
Magus 10 05/01/17 9:08:57 PM #2 | If no one else wants it I'll take it. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Those feels when 60% of your paycheck goes to bills and 15% to credit card debt. |
Magus 10 04/24/17 11:20:44 PM #50 | MaverickXeo posted... OneTimeBen posted...MaverickXeo posted...Magus 10 posted...Most people don't consider utilities and rent as debts. Those are living expenses. Debt means owing money to a credit company or bank loan.MaverickXeo posted...Rasmoh posted...About 70% of our household income goes to bills including food, it's a little rough. The $1700 mortgage payment is the toughest. ? --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Those feels when 60% of your paycheck goes to bills and 15% to credit card debt. |
Magus 10 04/24/17 12:29:19 AM #29 | MaverickXeo posted... Rasmoh posted...About 70% of our household income goes to bills including food, it's a little rough. The $1700 mortgage payment is the toughest. Seems to me like bills include more than just debt.... --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | On a scale of 0-5, how much do you like anime? |
Magus 10 04/22/17 3:08:17 AM #17 | Enough to watch it in Japanese, but not so much that I follow everything that's coming out. Probably a 4, I'd say. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | What was your first job? |
Magus 10 04/19/17 2:13:52 AM #8 | The first job I had where I didn't get paid by my parents was working at Walmart returning carts. It was really boring, and paid minimum wage. Not great. That said, it was planned from the beginning to be a job for the summer, so it was always a temporary situation. My first job without an end date was as a software engineer after I graduated college. I'm still there, so I must be doing something right. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Anyone here seen 13 Reasons Why on Netflix? |
Magus 10 04/19/17 1:30:53 AM #7 | It was pretty good. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | some question about the cpu of gameboy color |
Magus 10 04/17/17 1:02:08 AM #16 | As far as I can tell there's a specific register that can be set to switch between the two modes: http://problemkaputt.de/pandocs.htm#cgbregisters FF4D - KEY1 - CGB Mode Only - Prepare Speed Switch --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | This girl REFUSED to date me because I'm a Trump supporter. IS SHE HOTTT??? |
Magus 10 04/17/17 12:50:36 AM #20 | TheOrangeMisfit posted... Should we be fighting to close the gender wage gap? The one where women make less than men. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | $20,000 but absolutely no video gaming for 1 year |
Magus 10 04/13/17 1:37:07 AM #6 | Tax free or taxed? --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Can you guys recommend some hip hop (that doesn't sound like complete trash)? |
Magus 10 04/13/17 12:36:15 AM #18 | Actually pretty much anything that was on the Definitive Swim album. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Who did you marry in Stardew Valley? |
Magus 10 04/13/17 12:04:19 AM #9 | Penny. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | I don't understand how my phone only gets 1 wifi bar in my room |
Magus 10 04/12/17 1:26:51 AM #9 | On Android (or on my phone at least) you can check by opening up the WiFi settings and tapping on the connected network. It should have a dialog pop up things like the link speed, security type and frequency. You're on your own for iOS (I assume you don't have a Windows Phone). As for changing it; I thought at one point you could set the frequency band that you wanted to use, but I don't see that option on my phone, so maybe I'm wrong. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | $5,000 a month or $1 Million? |
Magus 10 04/12/17 1:06:23 AM #52 | Tough question. If you end up investing all of what you get from either option, and assume a conservative 3% yield per year, the $5k per month beats out the $1m after about 24 years. Less conservative estimates are better for the $1m option though. $1m would be a good amount to have invested somewhere, but if that's all it is, I would probably not want to let it affect my standard of living very much, since I'd keep it out of my day to day finances. The $5k on the other hand (assuming it's tax free) is equivalent to a roughly $80000 raise, which is pretty significant, and I could use that when planning my day to day spending. I think the $1m is probably better for the long term in my case, so I'd probably choose that. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | I don't understand how my phone only gets 1 wifi bar in my room |
Magus 10 04/12/17 12:30:01 AM #4 | Did you install a big metal cage in your room? --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | I don't understand how my phone only gets 1 wifi bar in my room |
Magus 10 04/12/17 12:27:23 AM #2 | Is it a 5GHz band or a 2.4GHz band? 5GHz has more trouble with walls. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | What band t-shirts do you own? |
Magus 10 04/11/17 3:40:35 AM #31 | Jonathan Coulton. I think that's about it. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Just saw kimi no na wa (Your Name.) |
Magus 10 04/10/17 11:42:06 PM #7 | Bump. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Just saw kimi no na wa (Your Name.) |
Magus 10 04/10/17 2:18:50 AM #1 | Holy shit that movie was awesome. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | ITT: Post your Job Title |
Magus 10 04/10/17 2:17:01 AM #34 | Software Engineer 2 --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | I just finished watching Kubo and the Two Strings |
Magus 10 04/09/17 1:35:46 AM #3 | I was amazed when I realized it was pretty much all stop-motion animation. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Help me understand your reasoning in solving the following easy problem |
Magus 10 04/06/17 12:56:24 AM #88 | Bayes' Theorem: P(A|B) = (P(B|A) * P(A)) / P(B) Possible combinations: BB BG GB GG Probabilities for each of those events: P(BB) = 0.25 P(BG) = 0.25 P(GB) = 0.25 P(GG) = 0.25 P(Count(G) = 0) = P(BB) = 0.25 P(Count(G)>=1) = P(BG) + P(GB) + P(GG) = 0.75 P(Count(G) = 2) = P(GG) = 0.25 So, using Bayes' Theorem: P(Count(G) = 2 | Count(G)>=1) = (P(Count(G)>=1 | Count(G) = 2) * P(Count(G) = 2)) / P(Count(G)>=1) = (P(Count(G)>=1 | Count(G) = 2) * 0.25) / 0.75 So the only thing left to figure out is what is P(Count(G)>=1 | Count(G) = 2)? Well, in words, that means the probability that the number of girls is greater than or equal to 1, given that the count of girls is equal to 2. Obviously, given that the count is 2, the probability of the count being greater than or equal to 1 is 100%, or 1.0. So putting that back in our equation above: P(Count(G) = 2 | Count(G)>=1) = (1.0 * 0.25) / 0.75 = 0.3~, or 33%. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/06/17 12:19:41 AM #30 | jamieyello3 posted... Thanks again for the help, and I have to say, doing it this way makes things much easier. I'm finding lots of weird quirks in my code doing this. Now that it's working I can go back and clean it up a lot more. Happy to help. :) --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 2:30:05 AM #27 | Sahuagin posted... ok, I went through it a bit more even though I should be sleeping. Oh you beat me to it. :( Yeah, that's another option than using separate textures for each frame. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 2:28:09 AM #26 | Sahuagin posted... I think you may just be blocking the issue from being visible by doing that (whoa does that ever eat memory fast). As far as I can tell, renderTarget is a texture that gets written to by the calls to LocalSpriteBatch.Begin/Draw/End, then that texture is passed to spriteBatch.Draw. That Draw call stores a reference to the texture, which actually gets rendered when spriteBatch.End is called (after the call to DrawUI is completed). So he's telling spriteBatch to render the same texture in several different places. By the time End is called, it iterates through each place it was told to Draw and draws the texture (which at this point is not changing) at each one. By using a separate texture for each frame, you do what you actually expect and render what you drew during the call to AnimationSetFull2D.Draw. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 1:37:02 AM #23 | Okay, so I think I may finally have an idea of what's going on. I'm not very familiar with the semantics of XNA/monogame, but as far as I can tell, the problem has to do with using a single RenderTarget2D for every frame. I spent some time playing around, and it seems that the last frame that gets drawn to the render target is what gets rendered to every location where that render target is used (i.e. each of the Frame Selectors, as well as the 'Project' draw call). Adding this line to the beginning of the AnimationSetFull2D.Draw method "fixes" that problem (I say "fixes" because you end up allocating memory every frame, and eventually the process slows to a crawl, so this is just a proof of concept). public void Draw(GraphicsDevice graphics, ref SpriteBatch spriteBatch, float Frame, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale = 1f, SpriteEffects effects = SpriteEffects.None, float layerDepth = 0f) Maybe each frame needs its own RenderTarget2D object? Hopefully that helps pinpoint the solution. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 12:57:07 AM #21 | Sahuagin posted... since SomeProperty returns a copy of the value and not an object, assigning a value to the property of the copied value does nothing. That sounds fun. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 12:40:17 AM #19 | Sahuagin posted... Magus 10 posted...You'd want to do something like C.Position = new Vector2(C.X, C.Y);, and the same thing with Origin. Today I learned. https://msdn.microsoft.com/en-us/library/aa664472(v=vs.71).aspx I guess I'm not used to the less common parts of C#. My bad. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/05/17 12:22:39 AM #17 | jamieyello3 posted... Actually that's working as intended (for all I know), I don't want a seperate texture for every frame. Plus the texture itself has no say in where it's drawn. Ah, maybe I misunderstood the problem. It's not that after you add the image it shows up in every frame, it's that the position data is the same for every frame? Edit: Ignore everything below here; I'm wrong. Sahuagin corrected me below. Taking another look, I see that Position and Origin in SingleLimbAnimationState are both references: public Vector2 Position = new Vector2(0, 0); Inside SingleLimbAnimationState.Clone() you're copying the references to the Position and Origin: public object Clone() So if you're updating the Limb Position directly, since any cloned Limbs would reference the same Position, they would all get updated. You'd want to do something like C.Position = new Vector2(C.X, C.Y); , and the same thing with Origin.--- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Any intermediate programmers here? |
Magus 10 04/04/17 1:08:05 AM #13 | jamieyello3 posted... I'm not familiar with lists, but I can already see the headache of working with arrays that are supposed to change in size during runtime. Maybe once I get it set up and working I'll come back and change that. Indeed, it looks to me like you're doing a lot of work to allocate new arrays and copy everything from the old array to the new array whenever you want to add things to the array. Lists are much simpler. var list = new List<TypeOfThingToHaveAListOf>(); Also, I think your bug is that in DrawFrameSelector, you iterate over each frame and call CurrentAnimationSet.Draw for that frame, but inside AnimationSetFull2D, you don't have a separate list of textures per frame. Inside AnimationSetFull2D.Draw: for (int limb = 0; limb < NumberOfLimbs; limb++) So once you add a texture, that same texture will be drawn for every frame. I could be wrong though. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Do you listen to Audiobooks? |
Magus 10 04/03/17 12:41:06 AM #7 | Lobomoon posted... funkyfritter posted...I didn't until I got a really monotonous part time job. Now it's how I stay sane. Personally I use Listen Audiobook Player (https://play.google.com/store/apps/details?id=com.acmeandroid.listen). Sure, it cost me $1.50, but was definitely worth the money for how often I listen to audiobooks. For a long time before finding that one I used Akimbo Audiobook Player, and I liked that a lot too, but the author never seemed to update it (and I can't find it on the play store anymore). --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | This board got small as hell, I remember when it was popping |
Magus 10 04/03/17 12:35:35 AM #11 | Doing okay. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | Build a legit "home" server, upgrade computer, or neither? |
Magus 10 04/02/17 3:24:23 AM #2 | I've thought about it before, but usually it ends up looking way more expensive for the parts... --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Topic | is there enough to do in greater tokyo area for a few weeks |
Magus 10 03/30/17 2:28:13 AM #5 | acesxhigh posted... I live in the pacific northwest so humid, yes. Hot and humid, not really. Never really been bothered by heat though so I'm not worried about that I grew up in the midwest and moved to the pacific northwest. I haven't experienced anything anywhere close to the horror of 100 degrees with 100% humidity (a common occurrence where I grew up) since I moved here. Just a warning. --- Internet = Tube0 + Tube1X + Tube2X^2/2! + Tube3X^3/3! + Tube4X^4/4! + ... |
Board List | Page List: 1 |