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
K

Kacee Giger

@Kacee Giger
About
Posts
18
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A question about Convid-19 vaccine shot.
    K Kacee Giger

    Everyone has different opinions and have read different articles, but here's where I'm at. Get the vaccine if: 65+ years old and have not had the virus, 75+ years old regardless of having virus, or underlying health condition that makes getting the virus more dangerous. For all other cases, risks associated with the vaccine out weigh the risks of the virus.

    The Lounge question

  • Hotels in Cancun
    K Kacee Giger

    I would highly recommend Secrets Maroma Beach Riviera Cancun. My wife and I went in November 2008 and were very impressed (however, note that this was the first all inclusive resort we had ever stayed at, so perhaps my opinion is not as valuable as a more experienced traveler). It had just been built, so the road into the resort was a disaster, but once there everything was perfect. The food was awesome, entertainment was great, and what we especially loved was all the sports available (tennis, pool and beach volleyball, basketball, etc). There were no kids (little ones or college aged) when we stayed and most every one kept their clothes on (though I had one minor issue during pool volleyball).

    The Lounge business discussion

  • To test a theory. (Shared Birthdays)
    K Kacee Giger

    No, his birthday is the 3rd (not real proud to have just googled for Tom Cruise, but more so than if I had just knew it from memory).

    The Lounge css question

  • To test a theory. (Shared Birthdays)
    K Kacee Giger

    4th July

    The Lounge css question

  • VS 2008 and SQL Server 2005
    K Kacee Giger

    If you move to VS 2008, there is LinqToSql that made it possible for us to avoid writing stored procedures altogether in some instances. While you're upgrading, might as well go for SQL Server 2008!

    The Lounge visual-studio csharp database sql-server sysadmin

  • How many books people read
    K Kacee Giger

    I probably haven't read a book for 5 years. With three young children and long hours at work it's often difficult to find time to eat and sleep, let alone read. Of course, if Dr. Seuss and the like count, I read about 500 books a year.

    The Lounge com question learning

  • Friday Today!
    K Kacee Giger

    Practice--what's that? I'm thankful when 7 or 8 guys show up for our church league game so we don't have to forfeit (hopefully the other team will have enough too). Anyway, good luck in the playoffs.

    The Lounge com question

  • Moving window along a cosine path
    K Kacee Giger

    I don't know what language you're using, but I've always used ::GetSystemMetrics(SM_CXSCREEN) to get the screen width and similar calls to get other screen dimensions. For your problem, since cos(180)=-1 and cos(0)=1, you will want to find the center of the screen to pivot from, but to do this you will need to subtract off the height of the splash screen and any borders. The following worked in a dialog based app: void CTestSplashDlg::SetPosition(double dDegrees) { const double pi = 3.1415926535; double dRadians = (2 * dDegrees * pi)/360; double dCos = cos(dRadians); CRect rect; GetClientRect(&rect); long nNewWidth = (long)(::GetSystemMetrics(SM_CXSCREEN) - rect.Width() - ::GetSystemMetrics(SM_CXDLGFRAME)) * (dDegrees/180); // Since cos(0) = 1 and cos(180) = -1, must have center of screen as cos(90) = 0 long nHeightCenter = (long)(::GetSystemMetrics(SM_CYSCREEN) - rect.Height() - ::GetSystemMetrics(SM_CYDLGFRAME) - ::GetSystemMetrics(SM_CYCAPTION))/2; long nNewHeight = (long)(nHeightCenter - (dCos * (nHeightCenter))); SetWindowPos(NULL, nNewWidth, nNewHeight, 0, 0, SWP_NOZORDER | SWP_NOSIZE); } when called with: for (double i = 180; i >= 0; i--) { SetPosition(i); Sleep(10); } Note that you would probably call this from a timer instead of a for loop and the starting position does not take into account the taskbar that may be at the bottom of the screen.

    Algorithms adobe data-structures help tutorial

  • Friday Programming Quiz [modified]
    K Kacee Giger

    Does this handle the BodyHTML -> Body HTML case--I believe your solution would give "Body H T M L"?

    The Lounge delphi html database debugging xml

  • Code Beautifier
    K Kacee Giger

    You probably want more than this--http://www.codeproject.com/macro/makecodenicer.asp[^], but it works well for what it's intended for.

    The Lounge question

  • Impossible Numbers
    K Kacee Giger

    It's trivial to show that the score can never be 11, so you now just have to prove that all numbers greater than 11 can be scored. All numbers after 11 fall into one of 3 series: 12 + 3n + 0 = {12, 15, 18, ...} 12 + 3n + 1 = 13 + 3n = {13, 16, 19, ...} 12 + 3n + 2 = 14 + 3n = {14, 17, 20, ...} So, now just show that 12 (4 field goals), 13 (2 field goals and a touchdown), and 14 (2 touchdowns) can be scored, then all other numbers can be scored by tacking on more field goals (3n).

    Algorithms question game-dev algorithms help tutorial

  • Silly puzzle of the day
    K Kacee Giger

    So 4, since the first sentence said it had two errors.

    The Lounge asp-net com game-dev business question

  • Silly puzzle of the day
    K Kacee Giger

    4 errors - 'f's, santence, ther'are, and two errors (since there were three) The two cpians weren't playing against each other (at least not for all 11 games)

    The Lounge asp-net com game-dev business question

  • Kids do the darndest things...
    K Kacee Giger

    You might need to look at this CP article[^] before too long (my 1 1/2 year old can do some remarkable things to a computer).

    The Lounge csharp com tools help

  • Hardcore Maths Question
    K Kacee Giger

    I know I'm a little late (and a valid solution has already been given), but no real explanation has been made. You first need to find a number that is a multiple of all these multiples (10 * 9, 9 * 8, etc), then one less than that will give the proper remainders. So, to find the least common multiple, first break these into primes: 10 * 9 = 2 * 3 * 3 * 5, 9 * 8 = 2 * 2 * 2 * 3 * 3, 8 * 7 = 2 * 2 * 2 * 7, etc. Take out what is unique for each to get 2 * 2 * 2 * 3 * 3 * 5 * 7 = 2520. So, one answer (though you already know) to the original problem is 2519.

    Algorithms question asp-net com business

  • Puzzled - Puzzle Of The Day :: HINT ADDED
    K Kacee Giger

    Of course, all good shepherds only count in binary. Therefore, the eldest son gets 10 sheep (the maximum any son could have), the middle son 1 sheep, and the youngest 0 sheep.:laugh:

    The Lounge question asp-net com business

  • Why buy American at all ?
    K Kacee Giger

    I couldn't find the quote that I had seen previously when searching for a new minivan, so here's the best I can do. From Car & Driver concerning the 2005 Dodge Grand Caravan, "Smooth, comfy, and priced right, the Caravan has always been a contender for best minivan, even more so now." I do agree that this does not necessarily mean that "American" passenger cars are as good as foreign ones. However, I believe that even for passenger cars, the bias against "American" vehicles is based more on reputation than reality (just as the early Honda's were criticized for being cheap and not "real" cars, but later proved their worth).

    The Lounge css question

  • Why buy American at all ?
    K Kacee Giger

    Pete Madden wrote:

    ...fact that they are far less reliable...

    The "American" cars were criticized (and rightly so) in the 1980's and early 90's for producing inferior vehicles. However, recent models compare favorably with foreign ones. For example, the Dodge Grand Caravan is often considered the top in the line of minivans by experts though it costs considerably ($10,000) less than its Honda and Toyota counterpart. So, why buy American? Because it could save you a ton of money without losing much (if any) in quality.

    The Lounge css question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups