Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by jtm111

  1. jtm111

    C++ fstream buffering is different than it was before

    I'll hunt around and let you know what happens. If I can get an STL solution, I would much prefer it. I'm really glad you brought it up because I wasn't even thinking in that direction. Thanks.
  2. jtm111

    C++ fstream buffering is different than it was before

    palbano I'm using VC6. I use STL at every possibly opportunity and I am always impressed by its performance; the vector<> and map<> classes alone make it worth the trouble to learn about STL, iterators, and algorithms. But I don't know offhand which STL classes I could use to perform file...
  3. jtm111

    C++ fstream buffering is different than it was before

    I have been trying to understand this problem for about 6 months. A few years ago in the old C++ one would use <fstream.h> which had a nice little function called setbuf(). ofstream myFile(&quot;source&quot;, ios::binary); myFile.setbuf(buffer, size); myFile.write(massivedata, int)... which...
  4. jtm111

    Does Data Mining Do This?

    Accounting for promotional factors If you know that promotional factors influence unit sales, then you would take them into account in the design of your analysis. I might build a simple predictive model (such as a multiple regression model) with unit sales as the target variable and...
  5. jtm111

    Does Data Mining Do This?

    I suggest a clustering algorithm. Each product is a row in the database. There are 12 fields in each row: the percent of annual units sold in January, February, etc. It is important that you use percent of annual units to form a common scale. Cluster the rows into groups using the 12 fields as...
  6. jtm111

    trouble installing 3D graphic accelerator

    OK everyone, thanks. Yes, I've got on-board video. I'm going to see if the motherboard has a jumper to disable video. If no jumper, I'll try the Windows Device Manager. If no luck there, I'll update the BIOS. If someone thinks that's a bad approach, let me know, otherwise, I'm going in.
  7. jtm111

    trouble installing 3D graphic accelerator

    thanks chaosinc for the info - I'm just a programmer, I write artificial intelligence algorithms but couldn't find my way around a motherboard if my life depended on it. what do I need to check to find out if I have on-board video? and what docs do I need to know how to set the jumpers?
  8. jtm111

    trouble installing 3D graphic accelerator

    I am trying to install a 3D graphic accelerator on my computer. I have a compaq 700 Mhz machine with no graphics card installed. I have a brand new Phillips monitor. I installed a 3D graphic adaptor, plugged the monitor into the port in the new card, and fired up the system. When the machine...
  9. jtm111

    passing pointer of array on heap to a function

    here's a few snippets that might help: void myFunc(float *a) { a[0] = 1; a[1] = 2; ... } int main() { float *x; x = (float *)malloc(100 * sizeof(float)); myFunc(x); free(x); return 0; }
  10. jtm111

    Learning algorithms

    I agree, the neural network is the best place to start. In particular, start out by learning a simple backpropagation neural network. You can search for &quot;neural network backprop OR backpropagation code&quot; Don't get ahead of yourself until you master the basic backprop algorithm. There...
  11. jtm111

    memory could not be read

    You might be trying to assign or delete memory that was not allocated. Or you might be failing to release memory that was allocated. This happens when you use &quot;delete&quot; on an object that was never created with &quot;new&quot;. See if you have a &quot;new&quot; for every...
  12. jtm111

    Single/Double conversion

    I don't use SQL server much, but you said it STORED the number to 4 decimal precision. I don't think that's true. It might DISPLAY at 4 decimal precision but I doubt it would store a real number that way. When you saw the double, you saw the actual stored value of the single. I could be wrong.
  13. jtm111

    integration and differentiation

    A classic text on numeric programming is &quot;Numerical Recipes in C, second Edition&quot; by Press, Teukolsky, Vetterling, and Flannery. This book shows you all the major approaches to computing derivatives and integrals (plus more), and shows you the costs and benefits of each approach. If...
  14. jtm111

    Slightly Off Topic - C++, Java etc - Which Way?

    C++ is an excellent language, a true scientist's language. I have found the standard template library (STL) such an incredible help. A little thought about your problem in terms of STL can cut thousands of lines of code. I am fluent programming Visual Basic too. I would NEVER recommend someone...
  15. jtm111

    How to mass download/mine historical news announcement from sites?

    I'm on my way to work right now, otherwise I'd hunt out a more specific tool for you, but here is a site that contains excellent information on spiders and bots, from off-the-shelf tools to do-it-yourself projects. http://www.botspot.com/ I've found incredible tools there.

Part and Inventory Search

Back
Top