679 Posted Topics
Re: [QUOTE=apanimesh061;1710855]Is Optical Character Recognition a good example/application of Data Mining techniques ? or Should Data Mining be applied mainly to web research/web tools ??? Could you please give me more examples on Data Mining that could make a good project if OCR is not good ??!! Thanks ! :)[/QUOTE] [URL="http://en.wikipedia.org/wiki/Optical_character_recognition"]OCR[/URL] … | |
Re: [QUOTE=kahaj;1711172]I'm attempting to run a few Subversion commands on the command line of WinXP, but it keeps telling me: " 'svn' is not recognized as an internal or external command, operable program or batch file" I'm pretty new to SVN, so I don't know why its not working. Obviously there's … | |
Re: I see [ICODE]*it->first[/ICODE], but later on you have [ICODE]*it.second[/ICODE]; they can't both be right. It's a set of pointers to pairs, try [ICODE]*it->second[/ICODE]. | |
Re: [QUOTE=ddanbe;1710183]Well, in the end it all boils down to pixels on a screen of course. But with the advent of truetype fonts, the discrete handling(with integers) was not sufficient, hence the use of float. You could perhaps read [url=http://en.wikipedia.org/wiki/TrueType]this article.[/url][/QUOTE] It's not just for vector fonts; [URL="http://msdn.microsoft.com/en-us/library/a36fascx.aspx"]GDI+[/URL] as represented by … | |
Re: [QUOTE=buae2;1709255]Hi are these two instructions valid in assembly language? (8086 mov instruction). 1. mov DS,[BX] 2. mov DS,[3900H] if no,why not?![/QUOTE] [URL="http://www.emu8086.com/assembler_tutorial/8086_instruction_set.html#MOV"]They are[/URL]. [ICODE]MOV SREG, memory[/ICODE] is allowed; you can easily look this up yourself. If you need an assembler, try [URL="http://www.nasm.us/"]nasm[/URL]. | |
Re: In general, using exceptions isn't an appropriate approach to this kind of situation. Please post your code; it will help us help you. | |
Re: What are the specs on your development machine? Usually this will happen if you have a simple main game loop that doesn't check the time--it will just run as fast as possible with whatever machine it's on. If this is what's happening, then you should probably try to [URL="http://gafferongames.com/game-physics/fix-your-timestep/"]separate your … | |
Re: [URL="http://basic4gl.wikispaces.com/2D+Drawing+in+OpenGL"]Here's a quick reference[/URL] on getting OpenGL to do 2D cleanly. | |
Re: What output are you expecting, and what are you actually getting? On quick inspection, you're using integers for [ICODE]HEAD[/ICODE] and [ICODE]TAIL[/ICODE], which is probably making it consistently display '0 percent'. Try casting one of them to a floating-point value, for example: [ICODE](((double)HEAD/TAIL)*100)[/ICODE] ![]() | |
Re: [QUOTE=fat0ali0ma;1701086]heey I need ur help.. how to convert a string (text content) to base 64 ??what are the steps for writing this program[/QUOTE] [LIST=1] [*]base64 encodes sequences of bytes, so first you need to convert your string to bytes. How you do this depends on the language/platform you're using... if … | |
Re: You might look at [URL="http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.datetimeformat.aspx"]CultureInfo.CurrentCulture.DateTimeFormat[/URL] | |
![]() | Re: [url]http://en.wikipedia.org/wiki/Maze_solving_algorithm[/url] |
Re: [QUOTE=mxa92;1698735]I have an array of enemies (munchies) and trying to stop them spawning on top of each other is proving difficult (They re-spawn in a random x and y coordinate): [code]for (int i = 0; i < noOfMunchies; i++) if (CollisionCheck(munchiePos[i].X, munchiePos[i].Y, munchieSize, munchieSize, munchiePos[i].X, munchiePos[i].Y, munchieSize, munchieSize)) { // … | |
Re: That's a mess. Please post separate code files in separate blocks, or attach the individual files. | |
Re: I don't know PIC assembly, but this pseudocode should do something like what you want: [CODE]If INPUT == 0 Set OUTPUT = 0 Else BARS = INPUT shifted right 5 bits OUTPUT = 11111110b Shift OUTPUT left BARS times OUTPUT = OUTPUT xor 11111111b[/CODE] Note that the only input value … | |
Re: Try [ICODE]%d[/ICODE] instead of [ICODE]%s[/ICODE]. [url]http://www.codingunit.com/printf-format-specifiers-format-conversions-and-formatted-output[/url] | |
Re: Which member function is the compiler complaining about? | |
Re: >Hi guys i'm trying to just do a simple email/password validation on two text boxes. This code runs but when i type in a correct email address it throws an error "Object reference not set to an instance of an object." on `AdAcc.InsertCommand.Connection = OleAcc;` This is happening because `AdAcc.InsertCommand` … | |
Re: [QUOTE=beaute;1699543]I read about the problem and [URL="http://msdn.microsoft.com/en-us/library/0htdy0k3.aspx"]it says I have to[/URL] verify that the calling conventions I am using are the same. Well, I'm not using any so what's the deal?[/QUOTE] The unmanaged DLL [I]is[/I] using a calling convention, though. To get it right, you need to know how the … | |
Re: The problem file, [ICODE]grade.h.gch[/ICODE], is a [URL="http://en.wikipedia.org/wiki/Precompiled_header#GCC"]GCC precompiled header[/URL]. Did this file come with the example code? If it did, try deleting it and compiling again. | |
Re: [QUOTE=Zssffssz;1699235]Ok sorry after some readin here's more: There are things in an os that open the console window n stuff (Stubs?) I want to make a portable app (have a painfully handcoded way to tell what os the person has at runtime.) Is there a way to stuff these things … | |
Re: [QUOTE=jasp3r;1698460]I have a set of assembly instructions that I am trying to assemble with nasm and execute however I am receiving errors and i am not sure why.[/QUOTE] Please post the errors as well as the code; this will help us help you. | |
Re: The magic word I don't see anyone using here is "[URL="http://en.wikipedia.org/wiki/Logarithm#Change_of_base"]logarithm[/URL]." From the Wikipedia article, a little below where I linked it: [QUOTE]log10(x) is related to the number of decimal digits of a positive integer x: the number of digits is the smallest integer strictly bigger than log10(x).[/QUOTE] Once you … | |
Re: To paraphrase, you want your [ICODE]INPUTNXT[/ICODE] loop to only consider the last two characters entered, right? You already have the information you need to find where those two characters start within [ICODE]NUMFLD[/ICODE]: The user entered [ICODE]ACTLEN[/ICODE] out of [ICODE]MAXLEN[/ICODE] possible characters, so there are ([ICODE]MAXLEN[/ICODE] - [ICODE]ACTLEN[/ICODE]) extra characters at … | |
Re: lfs.dir returns each directory entry's name as a string, so you can use [URL="http://www.lua.org/manual/5.1/manual.html#pdf-string.match"]string.match[/URL] from the standard library to detect file name patterns. Here's a simple example: [CODE]filename = "test.bmp" pattern = "\.bmp$" if string.match(filename, pattern) ~= nil then print(filename) else print("NO MATCH") end[/CODE] | |
Re: The addresses returned by [ICODE]gethostbyname[/ICODE] are arrays of bytes, not 64-bit integers. The conversion business is just about [URL="http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking"]network byte order[/URL]... all this means is the most significant byte (i.e., the first part of the IPv4 address) is the first byte in the sequence. Consider this: [LIST] [*]3232235876 [*]0xC0A80164 [*](0xC0, … | |
Re: I'm not familiar with the book, but I expect that it still has a lot of good information. In particular, anything it has to say about the concepts behind games, like object modeling, rendering, AI, [I]&c[/I]. should still be relevant. If the book is strictly win32 API, I imagine you're … | |
Re: [QUOTE=YAMNA MIDHAT;1694219]i have made a program with this algorithm but its not working properly my code is given below can you help me to remove the errors[/QUOTE] There's only one compiler error: You can't call [ICODE]getch[/ICODE] with any parameters, like you are when you say [ICODE]getch(f)[/ICODE]. The only call you … | |
Re: Looks like you're not linking the pthreads library. You'll need to [URL="http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_add_an_external_library_to_my_C.2B.2B_project.3F"]add a reference to the library to your project[/URL]. If the FAQ I linked doesn't work for you, look for something similar in the project settings--perhaps someone who is familiar with CDT ([I]i.e.[/I], not me :)) knows where to … | |
Re: If you're going to use the [ICODE]<<[/ICODE] and [ICODE]>>[/ICODE] streaming operators, you need to define their behavior--the compiler can't decide what you want them to mean. For example: [CODE=C++] void Result() { cout << "\nThe matrix " << Size << "by" << Size << "\n" << this << "is:\n"; cout … | |
Re: It doesn't say anything to the CPU; this directive doesn't generate any code. It's only there to help the assembler. [URL="http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_8/CH08-3.html#HEADING3-98"]Here's an article that goes into some detail with a few examples[/URL]. | |
Re: [QUOTE=berwick53;1641610]Hi, I'm currently learning C# and I'm currently learning how to do C# and Database's. Does anyone know why it isn't adding the data in the text boxes to the db.[/QUOTE] Do you get any error messages when you try to run it, or does it just fail silently? I … | |
Re: You can use the [URL="http://msdn.microsoft.com/en-us/library/system.text.utf8encoding.aspx"]UTF8Encoding[/URL] and [URL="http://msdn.microsoft.com/en-us/library/system.text.utf32encoding.aspx"]UTF32Encoding[/URL] classes to encode and decode text. | |
Re: When the recursion started by the line [ICODE]call Factorial[/ICODE] returns, execution continues at the line labeled with [ICODE]ReturnFact[/ICODE]. Note that this only happens when recursive calls are made; if the line [ICODE]jmp L2 [/ICODE] is executed ([I]i.e.[/I], it's time to terminate the recursion), the code at [ICODE]ReturnFact[/ICODE] is skipped. | |
Re: You may also want to consider [URL="http://en.wikipedia.org/wiki/Portable_Network_Graphics"]PNG[/URL]. | |
Re: A [URL="http://en.wikipedia.org/wiki/Data_flow_diagram"]data flow diagram[/URL] describes certain aspects of the design of a system. "Waterfall" is a software development methodology, which describes the process by which the system is built. I think you're comparing apples and oranges here. No matter what development methodology you use, you'll be able to create a … | |
Re: A bit of clarification: In a single-threaded application, the main thread handles updating the forms and other user interface elements. If you simply put a long-running task in a button's click handler, the main thread stays busy there, and doesn't get a chance to update the UI until it's done. … | |
Re: Sounds like you mean a list of all the predefined colors, like Color.Violet, yes? You could use [URL="http://msdn.microsoft.com/en-us/library/ms173183(v=vs.80).aspx"]reflection[/URL] to determine all of the static properties of the [URL="http://msdn.microsoft.com/en-us/library/system.drawing.color.aspx"]Color[/URL] class that have a property type of Color themselves. Do you know how to do that? | |
Re: [QUOTE=MrFlatty;1688506]So here is the problem, I cant figure out what have I done wrong, I'd appreciate any help given.[/QUOTE] Please use [ICODE]CODE[/ICODE] tags and indent your code; this will make it easier for us to read. Also, it helps if you tell us what "wrong" means--what are you expecting to … | |
Re: [QUOTE=tyricec;1687957]I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't … | |
Re: [QUOTE=Aviras;1687486]Hello everyone, I'm a java programmer writing a half graphical half text rpg. For the moment I read my data from text files, e.g. Enemies.txt id name hp and so forth. However, I want to make it a little more clear to handle, as in a database format. I can … | |
Re: [QUOTE=Asotop;1687369]That only found the first number in the equation, how do I make it find the second one, etc?[/QUOTE] Splitting the string (directly or by regex) is a little tricky, and the code quickly gets tedious and ugly. Below is an attempt at a regular expression that gets the sign … | |
Re: [QUOTE=empyrean;1687038]Hi I am trying to run this C code in Visual Studio along with a set of Cpp files. It gives the below errors error 2143 : syntax error : missing ')' before '&' error 2143 : syntax error : missing '{' before '&' error 2059 : syntax error : … | |
Re: Do you have a question you want answered? I don't see one. | |
Re: [QUOTE=smmcfarl;1682566]My program is compiling fine but my issue is with the output. The grades are not correct and the counters are not working either.[/QUOTE] You'll get more help if you tell us what grades you expect to see, not just that they're "not correct." What output are you expecting? But … | |
Re: Does your application get a response back from the Web site? Please post the response (same as what you're writing to the "dangdang" file) so we can help you figure out how to extract the data you want. | |
Re: Hm. You might be accidentally indexing outside of the bounds of one of your arrays. It sounds odd that it would just stop working... is this a release build? I'd expect to see some sort of exception message. Are you running it from within an IDE? | |
Re: To me, the most easily answerable posts contain the shortest possible amount of code that is complete (meaning I don't have to add anything to get it to compile and run), and still demonstrates the issue/concept you're asking about. In my experience, just going through the process of isolating my … | |
Re: [QUOTE=WillT;1672284]I've disassembled a program to attempt to understand the application's structure for importing the data files. I have an extensive background is Java and C++ but I can't find any resources explaining importing files and reading them in assembly. What I'm hoping to find is someone who can simply tell … | |
Re: [QUOTE=james6754;1678276][CODE]#include <iostream.h>[/CODE][/QUOTE] Try this instead: [CODE]#include <iostream>[/CODE] |
The End.