Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

238 Neutral

About xeddiex

  • Rank
  1. Language: C# Enviroment: Windows Forms Hi guys. Whenever I try to set the width of my Button to half the width of the container control - Panel - I get a shorter width than the half I wanted. class EmployeePanel : Panel { private Button clockIn; public EmployeePanel() { this.Borderstyle = Borderstyle.Fixed3D; clockIn = new Button(); clockIn.Text = "Clock In"; clockIn.Size = new Size(this.ClientRectangle.Width / 2, this.ClientRectangle.Height); clockIn.Dock = Dockstyle.Left; clockIn.Show(); this.Controls.Add(clockIn); } } /* class that creates an instance of the above control: */ class Class1 : Form { private EmployeePanel employeePanel; public Class1() { employeePanel = new EmployeePanel(); employeePanel.Size = new Size(this.ClientRectangle.Width, this.ClientRectangle.Height); this.Controls.Add(employeePanel); employeePanel.Show(); } } Example: Does anyone know why this is happening? Thanks, xeddiex
  2. xeddiex

    Is My T.V Ready For High Definition Gaming?

    Quote:Original post by zer0wolf Doesn't your TV have some sort of settings/preferences where you can chance its display resolution? You should be able to tell from there. With my TV I can choose to set it at 1080i or 540p. Most HDTV's should have some sort of adjustable option. I notice that the set you mentioned is a monitor, so is mine. What it means by the fact that it is "HDTV ready" is the fact that it doesn't include an HD tuner, for like TV signals. It can still display HD signals, probably akin to mine. Your TV has compenent hookups on it, right? My 53" widescreen HD monitor displays 360 games beautifully. I have tried finding that setting you mentioned to no avail.
  3. I'm thinking about buying an xbox360 but first I want to know if this 2003 RCA D52W15 52" Projection Widescreen HDTV Monitor I own will be able to play xbox 360 games at High Definition like the new HDTV sets out on the market today? I *think* my T.V is just HDTV Ready, meaning I might need something seperate, like a tuner, to get it to work in HD. Or does that not matter? Resolution: The specs just mentions the horizontal resolution which is: 1097 but not the vertical resolution like virtually all spec sheets show for other T.V sets. Is 1097 good enough and how can I find out the vertical resolution? To sum it all up: Will my RCA T.V be able to play xbox360 games at high definition? Thanks in advance, - xeddiex
  4. xeddiex

    WriteLine Question

    Console.WriteLine("{0} {1} {2}", i[0], i[1], i[2]); like that? - xeddiex
  5. xeddiex

    Muscle Milk

    I've tried MM (Muscle Milk) before but I stopped taking it. I believe it can help build muscle to some extent but it's very expensive (to me at least) and you can do better by buying natural foods that have good fats (and are cheaper). Another thing about it is that if you want a six pack, MM is probably not gonna help ya out here because it has a little bit too much bad fat, IMO. For example, I don't do any cardio but I eat very healhty during the week, and eat sinful on weekends, and I have a noticable six pack =). One complain I have about MM is that during the course of taking it my cr^p looked very weird and was hard like a rock. I don't know why. Anyway, the stuff taste *very* good; vanilla is the best flavor!. But here's a rule I've come to adopt from experience: If something taste good, it proabably isn't good for you healthy-wise, otherwise, it's very good and healthy for ya. Makes sense, so, question everything you eat and plan ahead a day in advance! I would recommend you eat lots of whole grains, fruits, chicken, fish, 1% low fat milk, 100% ON Whey Protein - sold at GNC, AND, drink a lot of water throughout the day. It'll make you want to go to the bathroom a lot but after your body gets used to it by readjusting, it'll all be fine and back to normal. Drinking lots of water removes bad toxins in your system and makes your skin look nicer ;) If you wanna know why water is important, read the following: Why Drinking Water Helps You Lose Weight by Maia Appleby Don't roll your eyes! The potion for losing that excess body fat is all around you. It covers two thirds of the planet. If you eat right and exercise at the intensity, frequency and duration proper for you, but still can't get rid of a little paunch here and there, you're probably just not drinking enough water. No need to get defensive. You're actually quite normal. Most people don't drink enough water. Most people are also carrying around a few more pounds than they would be if they did drink enough water. If you can't seem to get that weight off, try drowning your sorrows in nature's magical weight loss mineral. It works, and here's why: "What on Earth is 'metabolism', anyway?" People use the term all the time, but ask them what it means and you'll get all kinds of answers. Merriam Webster defines it as, "The process by which a substance is handled in the body." A little vague, but that's really all it means. There are many forms of metabolism going on in your body right now, but the one everyone is talking about it the metabolism of fat. This is actually something that the liver does when it converts stored fat to energy. The liver has other functions, but this is one of its main jobs. Unfortunately, another of the liver's duties is to pick up the slack for the kidneys, which need plenty of water to work properly. If the kidneys are water-deprived, the liver has to do their work along with its own, lowering its total productivity. It then can't metabolize fat as quickly or efficiently as it could when the kidneys were pulling their own weight. If you allow this to happen, not only are you being unfair to your liver, but you're also setting yourself up to store fat. "I've tried it and I couldn't stand it!" The problem is that, though many decide to increase their water intake, very few stick with it. It's understandable. During the first few days of drinking more water than your body is accustomed to, you're running to the bathroom constantly. This can be very discouraging, and it can certainly interfere with an otherwise normal day at work. It seems that the water is coming out just as fast as it's going in, and many people decide that their new hydration habit is fruitless. Do take heed, though. What is really happening is that your body is flushing itself of the water it has been storing throughout all those years of "survival mode". It takes a while, but this is a beautiful thing happening to you. As you continue to give your body all the water it could ask for, it gets rid of what it doesn't need. It gets rid of the water it was holding onto in your ankles and your hips and thighs, maybe even around your belly. You are excreting much more than you realize. Your body figures it doesn't need to save these stores anymore; it's trusting that the water will keep coming, and if it does, eventually, the flushing (of both the body and the potty) will cease, allowing the human to return to a normal life. It's true. This is called the "breakthrough point." One recent finding, as irresponsible as it may be, that caffeine increases the body's fat-burning potential has many people loading up on coffee before going to the gym. This finding may hold some degree of truth in it, but caffeine is, in essence, a diuretic, and diuretics dehydrate. Caffeine may increase the heart rate, causing a few more calories to be burned, but this is at the expense of the muscles, which need water to function properly. This isn't doing your heart any favors, either. It's already working hard enough during your workout. Never mix caffeine and exercise. In fact, your best bet is to stay away from caffeine all together. It's a big bully that pushes your friend water out of your system. Water is the best beauty treatment. You've heard this since high school, and it's true. Water will do wonders for your looks! It flushes out impurities in your skin, leaving you with a clear, glowing complexion. It also makes your skin look younger. Skin that is becoming saggy, either due to aging or weight loss, plumps up very nicely when the skin cells are hydrated. In addition, it improves muscle tone. You can lift weights until you're blue in the face, but if your muscles are suffering from a drought, you won't notice a pleasant difference in your appearance. Muscles that have all the water they need contract more easily, making your workout more effective, and you'll look much nicer than if you had flabby muscles under sagging skin. "Eight glasses a day? Are you kidding?!" It's really not that much. Eight 8-ounce glasses amount to about two quarts of water. This is okay for the average person, but if you're overweight, you should drink another eight ounces for every 25 pounds of excess weight you carry. You should also up this if you live in a hot climate or exercise very intensely. To get a more individualized water prescription, check out AQUASANA's hydration calculator. This water consumption should be spread out throughout the day. It's not healthy at all to drink too much water at one time. Try to pick three or four times a day when you can have a big glass of water, and then sip in between. Don't let yourself get thirsty. If you feel thirsty, you're already becoming dehydrated. Drink when you're not thirsty yet. Do you think water is yucky? Drinking other fluids will certainly help hydrate your body, but the extra calories, sugar, additives and whatever else aren't what you need. Try a slice of lemon or lime in the glass, or if you really think you hate water, try a flavored water. Just make sure you read the labels. Remember that you're going to be consuming a lot of this fluid. It's probably a good idea to stop drinking water a good three hours before you go to bed. You know why. "How cold should it be?" This is debatable. Most experts lean toward cold water, because the stomach absorbs it more quickly. There is also some evidence that cold water might enhance fat burning. On the other hand, warmer water is easier to drink in large quantities, and you might drink more of it without even realizing it. Do whatever suits you, here. Just drink it! When you drink all the water you need, you will very quickly notice a decrease in your appetite, possibly even on the first day! If you're serious about becoming leaner and healthier, drinking water is an absolute must. If you're doing everything else right and still not seeing results, this might just be the missing link. If you want to know how much water you should drink, do a search for "How Much Water Should I Drink? ". - xeddiex [p.s, since I want to keep my six-pack, muscle milk is out for me]
  6. Quote:Original post by Mushu return Fraction(*this).RaiseFraction(fraction_); What's with the extra "Fraction" there? I've never seen that kind of syntax, and it looks oddly like an explicit cast to me. *shrug* Also, I love how you very nicely formatted your post. Thank you =) - xeddiex
  7. Quote:Original post by Zahlman Quote:Original post by xeddiex that's the incompatibility (from bool to user-defined type class Fraction). The rest of my code is not neccessary to post Yes, it is. Deyja's point is that there are things that could exist in the rest of the class that would allow a bool to be cast *implicitly* to a Fraction. In particular, if you have (/me is psychic! ZOMG!) a constructor like this: Fraction(int numerator, int denominator = 0); Yes. You're right - I'm sorry. I do have a constructor that has a default argument similar to the one above. When I remove the default argument and compile, I get the following expected error: Error 1 error C2664: 'iMath::Fraction::Fraction(const iMath::Fraction &)' : cannot convert parameter 1 from 'bool' to 'const iMath::Fraction &' Quote: Then bool is implicitly convertible to int, and int is implicitly convertible to Fraction via that constructor: because of the default argument, a Fraction(int) can be seen, and such one-argument constructors can be used for implicit casting. So, what I understand is that a unnamed temporary is being created after the return statement and this temporary calls the default argument constructor which assigns the boolean-to-int to the constructor's default argument (question: which argument does it assign to; first, last or both?), right? Quote: Solution: explicit Fraction(int numerator, int denominator = 0); Thanks, - xeddiex
  8. Quote:Original post by Deyja How can we tell if there is an implicit conversion without seeing the rest of iMath::fraction? I'm sorry if I wasn't clear. What I meant is that the return value for RaiseFraction(); in the code I posted returns bool but the return type of operator member function + returns Fraction -- that's the incompatibility (from bool to user-defined type class Fraction). The rest of my code is not neccessary to post but if you really want to see it let me know again. Thanks, - xeddiex
  9. I have a general question; The following code compiles fine but I would've thought the compiler would spit out an error or at least a warning: iMath::Fraction iMath::Fraction::operator +(const iMath::Fraction &fraction_) const { return Fraction(*this).RaiseFraction(fraction_); } It's a member function of class type Fraction that returns a value of type iMath::Fraction, but, what is really being returned is of type bool because the last thing to execute before returning is the member function, .RaiseFraction(fraction_); which returns bool. I'm absolutely certain bool is being returned but I don't understand why my compiler does not complain at all. Is there an implicit conversion happening? RaiseFraction() is declared as followed: bool RaiseFraction(const Fraction& fraction_); Thanks, - xeddiex
  10. First you have to give g_sectors a size when you dclare it in your structure. Second, you cannot copy an array to an array via simple assignment. If you're using C, you would use strcpy and freinds. But, you must make sure g_sectors has enough space allocated for it to be able to hold what g_mazel is trying to copy over. If this is C++, there are better alternatives that others can tell you. I have to leave to work so that's all I can say for now... - xeddiex
  11. xeddiex

    win32 clear the screen

    Capture the WM_ERASEBKGND and WM_PAINT messages and do some erasing/painting. - xeddiex
  12. Hi. I'm in the process of trying to start a small business (restaurant to be exact). I therefore need some advice from some of you who might know a bit more about this than I, specifically looking at ksquared =D. Anywho, Here's the situation: I'm filling out a financial statment for leasing some retail space for my restaurant and, I don't know exactly how much asset in dollars I should include and what items are typically excluded from the list. For example, I own a house (I mean the bank does still) and we bought it in late 1999 and the property costed us $105,000.00 and, in six years we have reduced it to $91,000.00 (current balance). My question here is if I can include the current market value of the house (It is currently worth around $130,000.00) or, can I include only the difference between what the current market value is minus the current balance - which would equal to an aproximation of $39,000.00 (equity)? What is your best advice? Also, can I include other assets such as computers, Big T.V screens, etc..? Thanks so much for your time to anyone and everyone who answers and contributes any kind of advice and answers my questions. - xeddiex
  13. xeddiex

    anonymous unions

    Quote:Original post by CRACK123 Hi, So in effect you are saying that one can do the following and its legit code. char *str; str = "This is a string"; And one can expect it to work perfectly fine. I did know that you cannot and shouldn't write anything to str but did not realize that in effect I could do the declaration in another line. Thanks The declaration is in the first line. Initialization is in the second line. Afterwards, you can make str point to another string: str = "new string literal"; and, str will now point to another memory location (which is where "new string literal", resides, thus, replacing what it formally pointed to. That's why a pointer is called a pointer. It just points to something. you can at anytime change where it points to. xeddiex
  14. xeddiex


    Welcome aboard and don't forget to sign up for the Atlanta GDNet Gathering group (I just did yesterday =)). - xeddiex
  15. xeddiex

    Calculating price per square foot

    Quote:Original post by superdeveloper Quote:Original post by Nytegard Space for retail is slightly different than where you live. Around here, a 1000 sq ft home would probably go for $800k-$900k. But as far as retail space, you can get a 1400 sq ft retail space for about $10/sq.ft. per month. Unless you're literally in prime spots of Manhatten, you're probably not going above $15/sq.ft. per month. Ok I think there is confusion (or mixing) between purchasing and renting in this thread. OP, which is it? [edit] - Also, GameCreator pointed out a per-year price for the renting scenarop. OP, I'll assume yours is per year as well. It's for renting retail space. And yes, as GameCreator stated; the amount is per year so you just divivde the amount by 12 months. That's the formula I needed. I found out this morning when I talked to the leaser. To EasilyConfused: I did not mean no offence to you, or anyone else, when I said "and hopefully someone gets a more sane amount". Sorry if you thought it was. Thanks everyone, xeddiex
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!