Search results

  1. E

    quick C++ STL questions..

    missed it, sorry. 30 minute policy.
  2. E

    quick C++ STL questions..

    1 - Since I am using the mouse event for panning (no scrollbar) it's easy to just factor in the scale factor: void ChartAreaWidget::mousePressEvent(QMouseEvent *event) { if ((event->buttons() & Qt::LeftButton)) { mousexpos = (event->pos()).x(); //store the intial position when first...
  3. E

    quick C++ STL questions..

    quick changes: if (spacingChanged) { if ( !((spacing-2)%4) || !((spacing-3)%4) ) { rectanglewidth = spacing/2-1; rectanglewidthcompensate = 1; } else { rectanglewidth = spacing/2; rectanglewidthcompensate = 0; } }...
  4. E

    quick C++ STL questions..

    you can't do anything w/this w/out the rest of the code, but maybe you can learn from it. (I don't claim to be any expert but I've been hacking away at the candle widget relentlessly for 24 hours now). things have improved greatly since the charts were posted a few hours ago. there's lots of...
  5. E

    quick C++ STL questions..

    Thanks. Qt is amazing. Here are some status shots of the chart component. Load chart: <img src="http://i2.photobucket.com/albums/y12/e647g9i/1.png" border="0"><br> Drag in 'datetime' widget to change horizontal scale: <img src="http://i2.photobucket.com/albums/y12/e647g9i/2.png"...
  6. E

    Google CEO says goal to reach $100 billion annual revenue in next couple of years

    (7/1)^(1/8) < (100/7)^(1/5) edit: or did you mean one dollar to seven billion? :) what was their revenue 8 years ago?
  7. E

    resumption of the bull market?

    Cool, thanks.
  8. E

    resumption of the bull market?

    I recently saw a chart that aligned the DJI peak from 1929, with Nasdaq Composite peak from 2000. It looked nicely correlated in terms of price % and time.. bottomed around the same time, with similar percentage drop. DJI closing data is available from...
  9. E

    Help --Buying a used computer --

    I bought a 670 and it is probably about as quiet as a computer of this caliber is going to get - not too loud - not dead quiet like a well-designed older 1.5GHz Pentium. I am unsure about the 380 - good point tho. Maybe if the original poster calls Dell, they can provide some noise specs for...
  10. E

    Help --Buying a used computer --

    Here's the one you want. Save up another $200 or so. Dell Outlet - Small Business: 'DDAK8F58' Precision 380 Intel Pentium 4 630 (3GHz, 2MB L2, 800MHz) XP Pro with CD 1 Gig Ram 1.44 Floppy 80 GB Sata II HD - 7200rpm 128MB ATI FireGL V3100 48x CD ROM 48X CD-RW/DVD Keyboard/Mouse...
  11. E

    switching from cable to DSL

    If you get DSL and have the ability to do so confidently, I highly recommend setting up your internal wiring structure as follows. This requires that you have access to the wiring at the service entrance to the house - you will need to splice the primary feed before it hits the mult-box...
  12. E

    quick C++ STL questions..

    QT can emulate the toolkits of other platforms at runtime, with a command line parameter: Motif: <img src="http://i2.photobucket.com/albums/y12/e647g9i/20050220-chart_shot_motif.png"></img>
  13. E

    quick C++ STL questions..

    QT 4.1.0 is awesome, but writing GUI apps is much more involved than I thought.. and QT makes it easy too. Can't even imagine doing this with other solutions. Have to add logic so the CSV import wizard 'guesses' which columns correspond to which datafields. It's a never ending pit, this...
  14. E

    Hardware/CPU needed for X-Trader/X-Trader Pro?

    FWIW: Keep an eye on the 'Dell Outlet'. As an example, I picked up a Precision 670, 2.8GHz Xeon 'Irwindale' (2MB cache), 2 Gigs RAM, Nvidia Quadro FX 540, 250Gig SATA HD, certified refurbished with 3 year warranty for $889+tax+handling. I think I got a bit lucky on the price, but just keep...
  15. E

    quick C++ STL questions..

    yeah it was clearly explained in the Intel Compiler Tutorial: "Here, try the sample in Debug. NOW TRY Release mode!! :)"
  16. E

    quick C++ STL questions..

    Windows XP Pro x64, Visual Studio 2005 Express, Stock VC8.0 Compiler in RELEASE mode....... It took: 0.000 seconds for this part: Program has been started It took: 0.500 seconds for this part: Data pushed to Vector, file closed It took: 0.062 seconds for this part: Add'l data calc's...
  17. E

    quick C++ STL questions..

    man, putting foot in mouth big time :) :) here: Windows XP Pro, Visual Studio 2003, Stock VC7.1 Compiler in RELEASE mode :) It took: 0.000 seconds for this part: Program has been started It took: 0.515 seconds for this part: Data pushed to Vector, file closed It took: 0.047...
  18. E

    quick C++ STL questions..

    snap!! Windows XP Pro, Visual Studio 2003, Intel Compiler 9.0.028 in RELEASE mode :) It took: 0.000 seconds for this part: Program has been started It took: 0.515 seconds for this part: Data pushed to Vector, file closed It took: 0.047 seconds for this part: Add'l data calc's...
  19. E

    quick C++ STL questions..

    I'm sure there are various compiler options that can be changed to speed things up. Anyway, here are the first three passes, to give an unscientific approximation for comparison purposes: Windows XP Pro, Visual Studio 2003, Intel Compiler 9.0.028 It took: 0.000 seconds for this part...
Back
Top