InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 951. |
Solve : Messy Autorun + Batch Files? |
|
Answer» Well I have some exprience in programming, but it doesn't help me here...
Autorun.inf Contains : Code: [Select][autorun] ICON=1.ico OPEN=CFG.bat CFG.BAT swaps icons for the device My question is : How do I make the CFG.BAT execute only once - Even if I try to autoplay it ? And if I try to autoplay it, I would just get a new WINDOW SHOWING the device - How to do that ? Darn, I really need to know how have the batch file create a "flag" file on the key drive, and check for it's existence when it starts, and if so, quit. Of course this means it would only execute once during it's lifetime... but to simply get a new window showing the device, either execute "explorer ." in cfg.bat, or as the RUN= line. Also, under what circumstances does it swap icons?Well my intention was to swap the icons when I connect it But I don't get the "flag file" thing Could you tell me more ?Oh I'm sorry- a "flag" file would just be a file you create in the CFG.bat on the key- it doesn't matter whant you call it or what is in it, because the batch file will simply be testing for it's existence when it first starts. If it exists, then it had been executed. The problem is it doesn't really work, since you want it to run the autorun code everytime it in plugged in. In this case it will only work the first TIME. |
|
| 952. |
Solve : Visual C++ Suggestions? |
|
Answer» I was wondering if anyone had any suggestions for a good site to learn (Visual) C++. I have programmed in C and C++ with Borland and MS C++ 5.0 and 6.0, but never (Visual) C++ to have a GUI interface. |
|
| 953. |
Solve : Flash ROM? |
|
Answer» I couldn't fully understand the sentence below. It should, but you can't be sure...what should i do? |
|
| 954. |
Solve : Making pages?? |
|
Answer» Just a question, I am currently working on a website (programmed in html and javascript) and I was wondering how other websites (e.g. this one) create new PAGES (like this thread) for users to see. At the moment, if users want to add data to the website they have to email me and I have to add it manually, which is really inconvinient. |
|
| 955. |
Solve : Sorting in C? |
|
Answer» hello |
|
| 956. |
Solve : creating multiple account database? |
|
Answer» hi everyone, |
|
| 957. |
Solve : Nvidia Driver Update NEED HELP? |
|
Answer» I recently got a new GAMING laptop with Geforce 8600m GS direct 10x duo CPU T7500 @ 2.20 GHZ 2.20 GHZ |
|
| 958. |
Solve : Parallel port Interfacing? |
|
Answer» This is a tutorial on parallel port interfacing USING Visual Basic 6.It has information on how to interface parallel port under windows Xp using dll files. |
|
| 959. |
Solve : Problem with app showing up in Add/Remove.? |
|
Answer» Im having a problem with my registry entries. Ok so i made a game and i made an installer in vb.net 2008 and i set it to write the game to the registry so that it shows up when you go to Add/Remove programs. The keys get CREATED but it doesnt show up in Add/Remove, what am i missing? I didnt create an uninstaller is that the problem? Probably. This link states "The Currently installed programs list in the Add or Remove Programs tool lists all of the Windows-compatible programs that have an uninstall program or FEATURE" Hope this helps. |
|
| 960. |
Solve : batch file for clearing a folder in c drive? |
|
Answer» hi i am using tomcat to run my application so that more than one client access my application and when the client LOGGED in to my application each time 4 log files created in the following folder C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs so that my application runs very slow and here i need to clear the particular folder or move the files from the folder to D:/templogs so that i need a batch program to do the specified process kindly REPLY me with the solution |
|
| 961. |
Solve : about machine language? |
|
Answer» Hello,,,; Machine Language refers to the "ones and zeroes" that digital processors use as instructions. Give it one PATTERN of BITS (such as 11001001) and it will add two numbers, give it a different pattern (11001010) and it will instead subtract one from the other. In as little as a billionth of second. The instruction sets within a CPU family are usually compatible, but not between product lines. For example, Intel's x86/Pentium language and Motorola's PPC/Gx language are completely incompatible. Machine Language is painfully difficult to work with, and almost never worth the effort anymore. Instead programmers use the higher-level languages below, which are either compiled or interpretted into machine language by the computer itself. For Assembly language tutorials make your choice from here.. Good luck.Assembly language is a script, in a sense, which is assembled into machine code by an assembler. There are only two reasons to use assembly language: yea assembly is used more to program a Microcontoller's(or Microproccessor's) rom. |
|
| 962. |
Solve : Just BASIC, a easy programming enviroment? |
|
Answer» Hello everyone, if you are a beginning programmer who wants to learn basic then you should try Just BASIC at http://www.justbasic.com |
|
| 963. |
Solve : m3u Ramdomizer Project? |
|
Answer» I need some help with this: |
|
| 964. |
Solve : Deskmate Changes? |
|
Answer» Okay instead of bonzi MONKEY I REMEMBERED these demoed AI, Know the thing is, I dont know how or what is used to code them. Is there an easy way to FIND out? Also if I wanted to change the VOICE an animations how would I do that. If anyone knows? |
|
| 965. |
Solve : AI Files Questions? |
|
Answer» I was thinking of tring to change the AI I downloaded some what close to bonzai monkey but felt he was more a threat then anything. So any how I WENT to the file an seen that it has faz, fas ,was , wa3 file extensions. Was this created by USING a program or are these c files?I don't THINK those extensions belong to C but you can check them here |
|
| 966. |
Solve : Hello Everyone!? |
|
Answer» Hi, My name is meeleend, I am new on this forum.I need help regarding programming. Can ANYBODY TELL me about Coding of Chat Window. How can i create chat window for my own site? thanks in Advance!Use a so called Shoutbox - if you want something easyif you are HOSTING the site yourself, I suggest that you research the net for appropriate OPTIONS... If you are hosting with someone ELSE who offers a platform or deck use theirs. http://www.google.com/search?q=website+chat+room+code&rls=com.microsoft:*:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7 Here's a quick search for you to gander at... Good luck |
|
| 967. |
Solve : A question about Computer Architecture? |
|
Answer» Hi guys, i have a question that would REALLY help me, |
|
| 968. |
Solve : Batch file with errors? |
|
Answer» I have created a batch file that should do this : 1. Miljard_r.lnk starts before Qres have changed resolution resulting in a fake statement - Qres thinks he is done, but he haven't done anything If you run Qres from the command prompt does it work? How long does it take? Try adding a ping command after Qres to delay the start of Miljard_r.lnk Quote 2. The icons on my desktop moves like crazy - Is there anyway to lock each one at a specified point ? I would imagine so if you're changing the screen resolution. After you REVERT back to 1280x1024 are the icons in the proper locations? Quote 3. How do I replace the questionmark in my code with the ASCII-letter "132" ? Use the Windows Character Map to find character 132 for your font. You can copy the character to the clipboard and paste it into your batch file. Good luck. 1. Less than a second - when it works 2. Nope, that's why I need to lock them, otherwise my desktop gets very messy 3. Nope, it would only show the wrong letter EDIT: I have ADDED this to my code : SLEEP.EXE 1I'd of done this; Code: [Select]@echo off echo echo Miljard?r is Loading.. ::This make the game launch in the right resolution start /WAIT QRes.exe /x:800 /y:600 start /wait Miljard_r.lnk ::This resets the resolution start /wait QRes.exe /x:1280 /y:1024 Echo Miljard?r Closes... Notice the 'start /wait' before running QRes and the Miljard link. It will make the batch file pause until the command/program has completed. That should fix the problem with it loading the game before the res has had a chance to set. As for the icons not being in the same place everytime, all I can suggest is using 'auto arrange' on your desktop. hope it helps. You had the right idea with sleep. Ping can do the same thing but not everybody has the sleep command on their system. Using start with the /wait switch merely shifts the problem to another window. Quote 1. Less than a second - when it works Why and when doesn't it work? Perhaps you can test the return code. If you do check the return code, don't use the sleep command. Code: [Select]:@echo off echo Miljard?r is Loading... ::This make the game launch in the right resolution QRes.exe /x:800 /y:600 if errorlevel 1 goto :eof Miljard_r.lnk ::This resets the resolution QRes.exe /x:1280 /y:1024 Echo Miljard?r Closes... For the icons, the previous post might be onto something. Set the desktop to auto-arrange the icons. According to the standard ASCII chart, character 132 is character: ä. Why could you not get this off the Windows Character Map. /wait wont work And that about that letter "ä" - It won't show up as it should, why does it give me an "ò" instead ? When I launch the code now - the game has "almost" right resolution, but it's in the top-left corner with a grey box filling out the rest The game is now launching in 1024x768 - But my desktop resolution is still 1280x1024 Here is the rewritten code : Code: [Select]@echo off echo Miljard?r is Loading... QRes.exe /x:1024 /y:768 Sleep.exe 1 Miljard_r.lnk Sleep.exe 1 QRes.exe /x:1280 /y:1024 Echo Miljard?r Closes... I changed from 800x600 to 1024x768 due messy grapics when using 800x600 Seems hard to deal with this program By the way : I'm using the SLEEP.EXE dos file from here. I need to lock my icons - otherwise DreamScene will have icons on it Quote The game is now launching in 1024x768 - But my desktop resolution is still 1280x1024 Not really understanding this, but hey, if the game is happy, so am I. Did you try auto-arranging the icons? Right click the Desktop==>Arrange Icons By==>Auto Arrange. The sleep command you have is fine. Just pointing out that sleep came with the Windows 2003 toolkit and not everybody has it installed. Have you considered using DOSBox. I've never used it but I understand it can help with old games. Good luck. I have no answer for character 132 (ä). If you can't copy/paste it from the post, then whatever application you're using is interpreting it as something else. Could be your font.This game was created 2005 or 2006 - So it's not old And I'm getting nowhere with this I just MESSED the whole game up now * Ryder17z leaves this project...* Ryder17z begins a new project... |
|
| 969. |
Solve : date formatting in VB? |
|
Answer» how can I change a text box value to a date format and save in the backend... when i am saving text value "30/12/2008" , in the table it is saved as "12/30/2008"...first record is ok...from the second record this problem starts This a new one on me. Which is correct? If your regional settings call for mm/dd/yyyy, it's better to flag dd/mm/yyyy an error at the textbox source. You can use the isDate function to determine a date's validity. This example will blurb that 02/29/2009 is not a date: Code: [Select]str = "02/29/2009" If IsDate(str) Then msgbox(str & " is date") Else msgbox(str & " not date") End If Note: isDate uses your regional settings to makes it's determination Quote I have to write a " search" command also This WOULD involve a query against the table: Code: [Select]select * from table where issuedate BETWEEN startdate AND enddate The above SQL statement is inclusive with the start and end dates. Good luck. THNAK YOU VERY MUCH FOR YOUR IMMED REPLY " 02/29/2008 IS NOT DATE " IS THE REPLY I GOT THEN I PUT 29/02/2009 FOR THIS ALSO THE SAME REPLY Quote " 02/29/2008 IS NOT DATE " IS THE REPLY I GOT To be expected. Feb 29, 2009 is not a valid date in any format. Better to have checked 12/30/2008 and 30/12/2008. The point is to get the same date format in the textbox as you stow in the database. There was no question in your previous reply. Is everything good now? Good luck. |
|
| 970. |
Solve : how to save a text file into an array? |
|
Answer» hi everyone, |
|
| 971. |
Solve : help needed in generating combinations of words? |
|
Answer» Hi everyone, |
|
| 972. |
Solve : help needed in generating all combinations of 8 numbers? |
|
Answer» hi everyone, I am looking for a algorithm which can generate all combinations of 8 numbers Single digit numbers? Double digit numbers? Permutations? Combinations? Wasn't an answer posted here? With a few changes and CHANGING alchemist to numbers, you should be able to find a solution. Note: I forgot to mention in the previous POST that the C program can be compiled with the Tiny C CompilerCode: [Select]for (int i = 0; i < 100000000; i++) cout << i << endl; Is that what you're looking for? Another way you could do it is to nest 8 loops INSIDE of each other. Code: [Select]for (int i1 = 0; i1 < 10; i1++) { cout << i1; for (int i2 = 0; i2 < 10; i2++) { cout << i2; for (int i3 = 0; i3 < 10; i3++) { etc... } } } And when you get to i8, print out a new line. |
|
| 973. |
Solve : Conversion from string to type 'Boolean' is not valid.? |
|
Answer» Im creating an uninstaller and i keep getting the following error "Conversion from STRING "C:\Pointblanc\Game" to type 'Boolean' is not valid." Any idea on whats gone wrong, here my script: |
|
| 974. |
Solve : data1 control? |
|
Answer» guys, need your help |
|
| 975. |
Solve : random number generation? |
|
Answer» i want a RANDOM number generation program between 0-5 using c language Quote i want a random number generation program between 0-5 using c language Have you CHECKED if C has a random number function? This link might be a little dense, but what CAUGHT my EYE was the KISS generator. As long as this thread is about wishlists, I want a Lamborghini Gallardo! sorry i want an exact program i am not understanding anything from your given link thank you for your replay You really need a contract programmer. This little bit of code will show you method, however it needs some CHANGES to meet your requirements. Code: [Select]#include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int array[16] = {0}; int x; int y; int m; int n; srand(time(0)); for(x = 1; x < 17; x++) { array[x] = rand()%17; } for(x = 1; x < 17; x++) { for(y = 0; y < 17; y++) { if( x != y) { if(array[x] == array[y]) { array[x] = rand()%17; if(16 == array[x]) { array[x] == ' '; } } } } printf("%5d", array[x]); if(x%4 ==0) printf("\n"); system("PAUSE"); return 0; }} This program can be compiled with the Tiny C Compiler Good luck. Quote from: Sidewinder on June 19, 2008, 09:32:04 AM You really need a contract programmer.Yo should sign up to be one. |
|
| 976. |
Solve : Interactive .bat?? |
|
Answer» On some cmd's I've seen the user is ABLE to interact with input areas by clicking on them. On some cmd's I've seen the user is able to interact with input areas by clicking on them What commands? Batch files are text based and cannot interact with windows or forms. Batch files are designed for the cmd shell and can prompt for low volume input and output to the console, but that's about as interactive as it gets. VBScript and JScript have limited functionality with input (input boxes), output (message boxes, popups) and the Windows shell dialogs (BrowseForFolder, SaveFileAs). Short of a full programming language you can develop HTA's which combine VBScript with HTML (no BROWSER required) that allow the user to develop a GUI for an otherwise colorless VBScript. woops missed the clickin g on partAh, sorry I FORGOT. The program I was looking at was running in a DOS - Environment, I guess it just looked like cmd. Would that be in C++ or something? Another question, is there a way a batch file can encrypt/decrypt things when they import/export them?Quote is there a way a batch file can encrypt/decrypt things when they import/export them? Anything is possible, but a more likely scenario would be a batch file launching a program to do the ACTUAL encrypting/decrypting. Quote Encryption: The process of converting information into a form unintelligible to anyone except holders of a specific cryptographic keySource Batch code is a command language not a programming language. |
|
| 977. |
Solve : Screensaver - C++? |
|
Answer» I'm currently trying to program a screensaver in C++ that displays an image from a specific folder. But I like many others, do not know where to START. I GUESS I could start by using wxWidgets, but I feel that it's going to require lines and lines of code. Is there some easy WAY out? I'm a couch potato. |
|
| 978. |
Solve : Displaying strings via usb port in c++? |
|
Answer» Hi I NEED to display WORDS form a text file to the usb port . witch LCD am i going to use and CODE?Do you have some Embedded Development Board |
|
| 979. |
Solve : .INI with .BAT? |
|
Answer» Figure of speech. Both are already installed with the operating system. This is a good place to learn about VBScript. Everything from tools, examples and articles. I don't have it on my computer. That's odd. What OS are you running? You can download it here Good luck. Windows XP Home edition. Probably outdated or it only comes with XP Professional. IDK...Thanks for the link anyways! Now I MIGHT be able to become a vb noob. hypercam, you need to stop asking question after question, and start doing some independent study. You'd probably be better off trying visual basic with some of the ideas you have. You can download visual basic express for free here. http://www.microsoft.com/express/vb/default.aspx And a good book about it: http://www.microsoft.com/MSPress/books/12202.aspx Quote from: HypercamJ on June 17, 2008, 09:12:16 AM Is there a way to import SETTINGS from an .ini file to use in a batch file? I LOOKED it up on Google but I didn't see anything I was looking for.use a programming language. eg Python. Sample ini file Code: [Select][Settings] %PrNm%=Program name %Auth%=Author's Name %PrLc%=Program location [Drivers] a = abc.dll b = efg.ocx code Code: [Select]import ConfigParser config = ConfigParser.ConfigParser() config.read("file") print "Program Name ", config.get("Settings", "%PrNm%") print "Program Location", config.get("Settings", "%PrLc%"), # dump entire config file for section in config.sections(): print section for option in config.options(section): print " ", option, "=", config.get(section, option) output: Code: [Select]c:\test> test.py Program Name Program name Program Location Program location Drivers a = abc.dll b = efg.ocx Settings %auth% = Author's Name %prlc% = Program location %prnm% = Program name |
|
| 980. |
Solve : Installing & Configuring PostgreSQL? |
|
Answer» At the school I go to we have written several programs that read from a postgres database. I've been wanting to be able to work on them from home, but have not been able to get postgres to work CORRECTLY. I've searched AROUND the internet, but haven't been able to find much of anything useful. Most of what I've found doesn't seem to be for windows. I've downloaded and run the installer for the latest VERSION (8.3). I'm not sure I installed postgres correctly. I'm not REALLY sure how to setup users/roles and initializing/creating database. Any help on how to setup postgres correctly would be much APPRECIATED. |
|
| 981. |
Solve : Stats program? |
|
Answer» I am trying to make a stats program for my baseball team. I am having trouble with my sheet that displays the team LEADERS in each offensive category. What I am trying to do is have the program look on a sheet entitled Season Totals which is put together by added all the weeks together. Once it looks at Season totals, it is suppose to go through each category for example Hits.. and display the number of hits that the first, second an third team leaders have which is not in ascending or desending order and then it displays the name accordingly with there respective number of hits... IVE been experimenting with different formulas suchs as VLOOKUP, MATCH, OFFSET and the problem i am facing is that if 2 people SHARE the same amount of Hits it displays the same name twice.. even though i am having it SEARCH for the 3RD largest value by using the LARGE function as a subfuction of OFFSET, if anybody has any insight to this please email me at [email removed] or reply to this message. Thanks! |
|
| 982. |
Solve : linking a parallel port and a usb port to a c++ program? |
|
Answer» I need to know as to how I should go about when trying to link a parallel and a USB ort onto a rogram that I CREATED and PERHAPS use these PORTS to input or output data. |
|
| 983. |
Solve : Access Database: Number Display? |
|
Answer» Good afternoon, The difference between Int and Fix is that if number is negative, Int returns the first negative integer less than or equal to number, whereas Fix returns the first negative integer greater than or equal to number. For example, Int converts -8.4 to -9, and Fix converts -8.4 to -8.Source: Windows Scripting Technologies Good luck. Quote from: catz on June 20, 2008, 03:47:09 PM Good afternoon,What database objects have you created so far? Only tables? Queries? Reports? Formatting NUMBERS for display in a Query is easy. Have you ever created a Query? |
|
| 984. |
Solve : Advice on where to start with certification? |
|
Answer» Hi guys, |
|
| 985. |
Solve : FTP from UNIX server to Windows 2003 Server? |
|
Answer» I have read all the information under windows and Unix regarding ftping a file, but I can't SEEM to get it to work. If I'm coming from a UNIX box, connecting to a Windows box do I perform UNIX commands or Windows commands? I connect to the Windows box just fine, but I get errors when I ATTEMPT a put, get or send. My goal is to perform this within a WebFOCUS program. I've tried it from within the WF program, and from the UNIX PROMPT, with the same results -- I get errors stating that 'get', 'send', and 'put' are not recognized commands. Below is one of the syntaxes I've attempted within my WebFOCUS program: |
|
| 986. |
Solve : My brain hurts - need some thoughts - c++? |
|
Answer» For the past few days I have dedicatedly put my mind into how certain types of programs work, and looking up information. These programs consist of: working on a forum right now, but having trouble with the login I'm working on dating girls, but I'm having trouble with the "asking them" part... Wow. You have proved that people are as inconsiderate and stupid as I thought they were. But honestly, MAYBE that's just your excuse, maybe your really into guys. It's ok, I can ask my sister to go talk to some of her gay guy friend's so you all can go *hang out*.Zaryk, I answered as I did partly because of a certain section of your post. I reproduce it below for convenience: Quote And don't say, search Google; these forums were created to help people, not make stupid, downgrading remarks. You surely are a beginner, if you do not realise the first thing about web forums, (as you apparently do not) namely, asking not to receive "stupid" answers is a sure-fire way to guarantee that those are the only answers that you will receive! The reason for this is that the web is an intensely democratic medium, and people don't like being hectored by arrogant dorks. Your subsequent reply showed, if further proof were needed, just how much you richly deserved that description. So, in my language of choice, I recommend that you váyase a la mierda... Quote You have proved that people are as inconsiderate and stupid as I thought they were. That's how you think people are? Study karma. Learn how you see in other people what you really are. Classic case of projection, there, doctor. Really? Sweet. So do you have anything important to say? Because none of that helped me or offended me any.Quote from: zaryk on June 19, 2008, 11:16:53 PM
There really isn't any series of steps involved in the creation of any of these types of programs. In fact, in most cases the only things they have in common is function. As an example, creating a compiler requires far more then just knowledge of the C++/C language, but also a intimate understanding of assembly, and/or Machine code(as ideally, that is what is written as output). It also requires an intimate knowledge of file handling, string PARSING, expression evaluation, tokenizing, etc... This is why you can't find any specific information as to the creation of these programs, they are, as with any program, built with a group of smaller components. Once you gain an intermediate understanding of the types of data structures and algortihms required for the development of such tools, you can set foot into creating one. How does one develop such an understanding? Creating other programs. For example, one could gain the skills necessary for creating a compiler by creating a Expression Evaluation library, as well as a dissassembler. These two separate programs, once created, will give you [some] of the combined knowledge to effectively create a compiler of some sort (not necessarily C/C++, don't we have enough of those? I mean, as a learning experience it makes sense, but otherwise....) For the other items, the same type of stuff applies- one would need to learn any algorithms involved. With Operating System, of course, comprising the behemoth, as one would require intimate knowledge of any and all hardware that the OS is intended to run on, the ABILITY to write a compiler to create the executables that can run on your platform, in addition to the drivers that it uses. I BELIEVE I can think of a good book off-hand for Operating Systems, one called "Operating Systems: Design and Implementation" Their are countless numbers of networking related books, but a good low-level TCP/IP book I find myself browsing is "TCP/IP foundations" by Sybex publishing. Also, on a unrelated note, an unsaid first step to almost every post of this nature is to search google. If the hits you find are unhelpful or onconclusive, then you make a post. Although there is of course no harm in bending this rule, it sets yourself up, since if another member finds that the information you wanted was the first hit on google, it makes you look lazy, or requiring attention, or something along those lines... search for "how to write operating Systems" not in quotes, and the first hit seems relevant. Quote from: Dias de verano on June 20, 2008, 12:26:13 AM Quote from: zaryk on June 19, 2008, 11:16:53 PMworking on a forum right now, but having trouble with the login ahh, see theres the problem, I don't bother asking. I just go up and say "me like u. You come to movie tonight." See, no question. Of course, some actually Misunderstand and think I was asking them, they make friends with duct tape. "This is a good movie, isn't it, dear." "mmmf mmuff meef meffff fffff mffff" "I'm not taking the tape off, because you'll scream. And that's bad. because we were meant to be together." "muffff muuuu mfffome" "So what kind of music do you like?" "mufff" "Muff... never heard of them" OK, I've been shamed into actually contributing (or trying to). I can only echo BC_Programmer's excellent advice. Basically, learn how to program. Then learn how to design software applications. (These are not the same thing). Very few large projects such browsers or complete operating systems are written by individuals. They are generally collaborative efforts by teams of programmers, and for this reason, the ability to write code that can be maintained and understood by others is important. Far more important than competence in any one programming language is a deep understanding of topics such as algorithms, logic and project design and planning. Unless you are a very special kind of genius (and given the need to work with others, even if you are!) you should go to college and, to begin with, take a degree level course in computer science with a particular emphasis on software design methodologies. Books are in many ways better than web browsing. Some books that I have found very useful include: The Elements of Programming Style, by Brian W. Kernighan and P. J. Plauger. A very good introduction to the "art" of programming. This book is crammed with good advice. I still have my 1982 edition and it is not only useful but a good read as well. Not many programming books are! The Practice of Programming by Brian W. Kernighan and Rob Pike. This book covers a lot of things like debugging, etc that you don't normally learn in college courses, and touches on the topic of style. The C Programming Language, Second Edition by Brian W. Kernighan and Dennis M. Ritchie. The bible for many programmers. Assembly Language for Intel-Based Computers by Kip R. Irvine It's possible to learn Intel assembly language using this book alone, not taking a formal class, even though the text isn't really designed to be a "teach yourself" programme. Assembly language is a RATHER difficult topic, so you would have to be very motivated. I learned 68000 assembly before any other language, so maybe I am biased, but I think it is indispensable. I hope you won't think I am trying to get all hi-falutin' and put you off, but I don't think it is a good idea to pretend that serious software design is easy.Code: [Select]Also, on a unrelated note, an unsaid first step to almost every post of this nature is to search google Google is my bible. But, just like the bible to most people, they can read it but there are things that are hard to understand. Thanks for both of your input.Code: [Select]you should go to college and, to begin with, take a degree level course in computer science with a particular emphasis on software design methodologies. right now, Im working on an Associates of Science, then transferring to start working on Computer Science....the few computer classes that I have had are not required for graduation nor transferrable though (just wanted to take them), but I was exceedingly more knowledged than the rest of the students. Quote from: zaryk on June 23, 2008, 10:07:53 AM I was exceedingly more knowledged than the rest of the students. I hope you hid that opinion from them. I didn't have to, they knew it. There were a few times the teacher began thinking in java, and I would correct him. I was the first one done with tests, first one done with writing programs. They then started coming to me for help. I kinda got bored of the class, so at the end of the class period we would talk about java or winapi....of course, students stayed around and listened....and of course, the talking doesn't help too much because I learn better by doing step by step.shell_notifyicon is my favourite API. closely followed by DeviceIoCtl and DrawEdge. I suppose that I could give honorable mention to GetProcAddress and GetModuleHandle. I'd also like to thank the brothers SendMessage,PostMessage,DispatchMessage,TranslateMessage and GetMessage, for keeping the pump going. I hate to name names but I have to call out TerminateThread for being exceedingly stupid, as well as TerminateProcess. And how can I forget, good old RtlMoveMemory in my old friend, Kernel32.dll, why if it wasn't for you, I wouldn't have been able to copy that entire structure back and forth from the alternate structures, and for that, I must thank you. |
|
| 987. |
Solve : A dumb question? |
|
Answer» I see that there is hundreds upon hundreds of RESOURCES online saying that "you cannot code programs with a hex editor." |
|
| 988. |
Solve : J2EE help? |
|
Answer» Hii |
|
| 989. |
Solve : Createobject Wscript.shell? |
|
Answer» how can i USE this to open an internet explorer window with specific dimentions?You mean something like this? |
|
| 990. |
Solve : QBasic Question? |
|
Answer» Ive seen a sort of point and click type of programs MADE in qbasic, kinda like with a gui, does anyone know how to make that? where i can USE the MOUSE, INSTEAD of it all being command basedPossibly it was made in Visual BASIC 1.0 For DOS which looks very much like QBasic.There's probably something here for you.. |
|
| 991. |
Solve : Java Program? |
|
Answer» Its been a while since I did JAVA but I have all my notes, what I WANT to do is MAKE an ocarina music TRANSPOSER. But when I go to put in the int for the sheetmusic I have to have all the NOTE values? |
|
| 992. |
Solve : VB6 - LoadPicture() in same directory? |
|
Answer» ok i have made a slot machine game in VB6 but i CANT get the PICTURE to LOAD right. I WANT it to load the picture in the same directory like this. |
|
| 993. |
Solve : Oracle --- HELP? |
|
Answer» hey GUYS, i got somenthing for you guys hehehhehehhe, just joking,,, i wounder if some one can explain me whats the meaning of this sentence,,,, Despite software testing being used in software development for some time the assurance of quality software remains an issue”. Let's have a look. The first sentence implies that even though software testing is a part of the development cycle, the quality of software remains a problem. Software is complicated. Not only does it have to work on the operating system for which it is designed, it has to "play nice" with all the other software which may exist on a person's computer, and it has to be able to work on a wide variety of hardware. That's part of why quality assurance is so difficult, and necessary. A few months ago, I saw a program that was loaded on to a Local Area Network. This program had a virus-protection feature built into it. It did not allow certain files to be changed. The problem is, it "looked" at EVERYTHING on the computer, and would not allow updates to be made to a database which was part of an entirely DIFFERENT program. I AGREE with the statement, because in spite of testing, quality software is still a problem. I DISAGREE with the statement, because it makes it sound like testing is this new idea that's just come along in the last few years. EVERY program ever written has to be tested to see whether it will work. (Some coders are so good, they KNOW their code will work properly, but that first "run" is still a "test.") What that part of the sentence implies is that testing has become part of the ongoing software development cycle because it's become so complicated. The sentence says "for some time," which makes it seem which makes it seem like testing has not always been part of the process. Quote • agree/disagree with the above statement and motivate your Let's see...motivate my selection...so you want me to take the response I wrote, and encourage it to do something. "Motivation" may be positive or negative, but motivation is getting someone or something to do what needs to be done. Quote can some one help me with this, i really need itYes, you do. Can some one help me with this? I really need it You wrote a question and a statement and combined them with a comma. Yes, I understood what you MEANT, but had to spend extra time "processing" the statement because the syntax was incorrect. Quote tks tks?? Oh, do you mean, "Thanks"? You couldn't be bothered with three extra letters? How many people know that "tks" means "thanks"? You assume people will know, and it's more convenient for you, but it doesn't convey the proper meaning for everyone. So what did I do, here? I took your question and turned it into a personal attack. Yes. No. If we were to meet, I would shake your hand and call you "friend" and be glad to know you. The POST typifies a growing problem: people who can't or won't properly communicate in a written language format wondering why their code doesn't work. It's one thing to be new to a language or to not to have a language as a second language (though I know people for whom English is a second language who have better English skills than native speakers and writers). I see more and more poorly written posts and memos at work and all kinds of things where people are making mistakes or being lazy and taking too many shortcuts with what they communicate. I guess they think it doesn't matter, or that everyone else will figure it out. The problem is, some of these people come to this forum and write, "My code doesn't work." I wonder how MUCH of it is the fact that they are not paying proper attention to the rules of the language, and the structure, and the syntax. Oracle is a monster of a program. My understanding is people with skills in Oracle are usually well paid, because it is such a demanding software system. |
|
| 994. |
Solve : PHP Session variable in Java Script? |
|
Answer» I create some PHP pages with user LOGIN. All pages displayed only when a user is logged. Otherwise all pages redirected to Logon page. |
|
| 995. |
Solve : How do I read from a spesific line in a .txt file in VB 2008?? |
|
Answer» I believe the title covers it all but... |
|
| 996. |
Solve : need to make a program? |
|
Answer» nid to make a program about employment system,sale n stock,payroll & embentory...HELP me PLSSSSSS ^_^ i nid a program using vb or JAVA script What? Explain a little. And less of the swear words.Posts edited to remove offensive language - zyven, please read the forum rules. embentory? Quote from: CALUM on June 29, 2008, 04:36:27 AM Posts edited to remove offensive language Calum isn't here to proofread and correct, that would be restricting the OP's creative fervor. Quote from: zyven on June 29, 2008, 03:01:21 AM nid to make a program about employment system,sale n stock,payroll & embentory...help me plssssss ^_^ i nid a program using vb or java script What luck, I just finished making a program that does exactly what you want, but it's an EXE, and I'll need you to disable your virus scanner before you can run it. Then you'll have to let it through your firewall so it can download some important information from the internet. Quote from: BC_Programmer on June 29, 2008, 09:39:20 AM
He he |
|
| 997. |
Solve : C + HAS GOT ME BETWEEN A + AND A COMPILER PLEASE = THE -? |
|
Answer» i have downloaded I BELIEVE GNU C and the GNU++ i believe debugger download it into the compiler First things first- "downloading" is the act of retrieving data from a remote computer, not installing a program or loading a file into a program. This causes a lot of confusion on these forums (for me, anyway). Quote from: RUBY02 on June 24, 2008, 08:37:10 PM after downloading it i read the README and it was built for C "but will compile C++ language ...no. HTML is a markup language, not a programming language, and doesn't need to be compiled, and Java, like HTML, isn't C OR C++, so I'm assuming that a C/C++ compiler wouldn't be able to compile it. Quote from: RUBY02 on June 24, 2008, 08:37:10 PM is HTML a compiler?HTML is a markup language. the web browser Interprets the HTML tags to determine how to "markup" the text. And no, there is no compiler for HTML files (ignoring the mess that becomes Microsoft's CHM format). Quote from: RUBY02 on June 24, 2008, 08:37:10 PM is jdk a compiler?it includes one, jvc.exe. A java bytecode compiler. transforming .java files into java bytecode .class files for the virtual machine, these class files you can subsequently run using the "java.exe" program, or applet viewer. Quote from: RUBY02 on June 24, 2008, 08:37:10 PM i know a java jdk is for java is it a compilererr- why did you ask this twice Quote from: RUBY02 on June 24, 2008, 08:37:10 PM my intended question is after i downloaded the GNU The main hurdle your experiencing here is command prompt itself. mkdir and md would have worked fine had you omitted to square brackets, and added a slash, as in MD C:\path In addition, why and how are you using command prompt to create these files? "copy con"? A more flexible and reliable method would be to use a text editor of some description, such as notepad, and save it with the appropriate filename. which ways have you tried to set the DGJPP variable, and what are you setting it to? chances are it wants to be set to the directory of the DGJPP include files... I'd include step by step instructions but an easier method to to learn exactly what your doing in command prompt. "the files it shows you" on C:\ are PRESENT ON C:\, not files you can deposit (whatever that means). I'd be able to provide more detailed help, but instead of asking more questions you should flesh out the more important ones. Such as how you've gone about "trying to set" the variable, how exactly your entering the files into the command prompt, ETC. This way we can provide more thorough explanations as to why it works the way we describe, as opposed to simply droning off a list of steps to perform your task a single, non-repeatable time. Also, let's stick with the C/C++ or java problems until we resolve them, then we'll go about fixing the other, okay? okay thanks so much for getting back with me. i am as lost as virus in steril file. i worked all day or most reading info on this sight. i believe what this gnu wants me to do is make a batchfile so that i can either enter rhide into the run prompt or open the windows prompt cmd. and enter rhide and the rhide editor pop up. what is happend is i can't set the variable because i am going by the books direction and not my knowledge. the location of the file is different. so i will tinker and when i can ask a knowledgeable question in a fashion you can answer i will do a retake hangten ruby thanks no bytes could compare to your PATIENCE thank you much appreciation by the way if figured out i was using [] and \ and word"path" and on and on this is what baffles me computer instructor are excellent teachers plain and spoken and easy to understand but i am confused why they would write a syntax you can't even use. a new programmer i assume copies exactly the directions. Quote from: RUBY02 on June 25, 2008, 10:09:44 PM by the way if figured out i was using [] and \ and word"path" and on and on this is what baffles me computer instructor are excellent teachers plain and spoken and easy to understand but i am confused why they would write a syntax you can't even use. a new programmer i assume copies exactly the directions. Sounds like you are trying to run before you can walk. Very often, in code examples, square brackets mean "This is an example, change what is in the square brackets to suit your own case". "Path" in those examples probably means "the path to the folder", not the literal word "path". THANK YOU FOR TRYING TO ANWER MY QUESTIONS. you have cleared some hexes and binds berfore i forget i wanted to answer you about the DGJPP FILE I HAVE TRIED TO GET TO HEED TO MY TYPING' I ENTERED THIS IN THE AUTOEXECT.NT FILE OF MY XP SYSTEM32 FILE @echo off---------------------------------THE ECHO OFF WAS THERE ALREADY set PATH=C:\DJGPP\BIN;%PATH% set DJGPP=C:\DJGPP\DJGPP.ENV i also made a file in the same place system32 file an autoexect.exe because i could not find one already in place(i made it with notepad) i also put them in the environmental variables user and system windows i placed them everywhere but my forehead!(i know what your thinking) ===================================================== okay i have scratched the DGJPP C/C++ PROGRAMMING FOR RIGHT NOW! i have scratched the JAVA PROGRAMMING FOR RIGHT NOW. AND I HAVE PUT THE HTML ON HOLD. the reason being i was advised that i should learn LINUX-UNIX. HERE IS MY GOAL AND WHAT I WANT TO DO OR TRYING TO DO i want to learn how to build programs i realize that is in the future. so i bought a few books that claimed in 21 days i would be on my way stacking the world with my brilliant files of excentric programs. i have spent 31 days on the first 10 pages trying to set up the programs to work on by computer. when i couldn't get the first to work such as c++. i drifted into java because i was more familiar (windows used the program to run some of their programs) i downloaded java jdk from their site as directed by their book. i got it all downloaded and such but i don't know where to open the jdk window. (both of these programs i have ended up using notepad and saved the files). i realized that i couldn't do much or anything with them unitl i understood how to make directories and folders that could find each other in their programs(hello world, conversion.cpp, ect...) i was programming in. so i politely thought i would learn how to get the dos prompt to work for me. i soon realized that i needed my head examined. i spent an entire week reading on this site about MS-DOS AND THE COMMANDS. i finally got the command. and cmd prompts to open up and stop flashing me. (i was informed xp does not have MSDOS)(THAT INFO WAS A SCREAM) i tried a few execises on this site (simple one) and i could not get these to work. i have got bytes and pieces from people and i found out like you said [] i did not need. since finding out i didn't have to type exactly like the sites directions with the \, [], and that i use my enter after a command not a line of commands , i may be able to use the prompt more effiently(I haven't tried yet). now, my last point then i have a favor to ask, for the last week i have tried to download LINUX ONTO MY COMPUTER. i found out everyone and their mother loves or uses LINUX AND HAS IT FOR FREE. i found out on stumble it is the number one essental language to use and know. i have tried to download it several times in several different ways such as in ISO FORMAT live through a bit torrent semi live to file from maybe (ftp) from bosnia, cancun, egypt, and georgia university. it downloads and leaves an icon i have tried to download it to a 4 gig slap stick to my c drive to my d drive to my mail box to may car i have tried to to burn it with a cd burner with a cd, with a dvd, with matches, with a lighter, you name it have tried it all. i finally did everything at the same time i started downloading live from the ares sight on my c drive i started the cd burn the program from the d drive something happend and the program that was on my desktop i believe (who knows it could have downloaded from botwania but it burned. after it finished it politely started downloading to my computer it divided my d drive (partitioned) and downloaded what it felt like when i boot i have a choice for xp the kernal the 3 legged boot if i choose xp i get xp if i choose the kernal i get asked a few questions and the a prompt i have not chosen the 3rd so this is where i am......... confused a virus in steril file i have tried to explore the cd, i can open a few files, i don't know what's next this is what i would like to ask ........give me some specific minor commands that an alzhiemers patient in ICU COULD PREFORM. with my (cmd) command prompt whether it is making a batchfile or just changing file.THESE BOOKS get my hopes up then boom it stops there because the next step the command does not work, no such file, ect...... I NEED TO BE ABLE TO COMMUNICATE, IF I GET STUCK, I CAN GET SOME FEEDBACK AND GETTING BACK WITH ME HAS BEEN WONDERFUL I BELIEVE IT IS JUST GOING TO TAKE SOME MINOR PUSHES, BECAUSE I AM PRETTY EFFECIENT ON COMPUTER AND UNDERSTAND MORE THAT I CAN DO. SO IT'S SOMETHING SIMPLE I AM MISSING. with many bytes of graditude i would LOVE tHE computer to say "hello world" kiss my usb, eat my monitor, shut the cd up, eat my dvd. something besides claiming to be gutless(no internal, external) ruby thats my story! i was told i needed to learn how to maniputlate files by changing settings and familarizing myself about how to give commands. to get linux: 1.download the ISO 2.burn to a CD which step is causing the problems?Quote from: BC_ProgrammerBC which step is causing the problems? In the space of 31 days, he got defeated by C, bored with MS-DOS, confused by Java, thinks Linux is a "language"... Quote from: Dias de verano on June 30, 2008, 12:20:55 AM Quote from: BC_ProgrammerBCwhich step is causing the problems? On that topic, where did he get this information: Quote i drifted into java because i was more familiar (windows used the program to run some of their programs) Last time I checked most of windows was written in C, And I don't even think any java programs come preinstalled. Quote semi live to file from maybe (ftp) from bosnia, cancun, egypt, and georgia university. it downloads and leaves an icon which in all likelihood is the image file that needs to be burned. Quote THESE BOOKS get my hopes up then boom it stops there because the next step the command does not work, no such file... this wouldn't be a problem unless one was flying completely blind through the console. Perhaps learning a bit about the command interpreter would be ideal?I AM A SHE! i know it seems like i got board or defeated but exactly what you said at the end is what i realized i needed to do is get familiar with using the commands and such i thought that when i started using or learning c/c++/java that it was like setting up windows. i can take my computer with no program install windows and start using it. these computer programs you have to set them up and make small programs such as "hello world, conversion.cpp, mkdir folders and such. i found out very quickly even the windows cmd. since WRITING and asking for advice i can now make a few commands work so i am getting farther and farthe. like i said before if i could get specific feedback i know i could get the programs set up and start learning. as far as the linux it is burned now some of it did not download into the d directory and i don't know how to unistall i know something is there because my computer gives me options. so i was going to try to reinstall the program. where do i look to see where it's at like i go to windows if i want to see windows program did it just download the kernal and stay on the disk if so USE THE PROGRAM FROM THE DISK. IF SO COULD YOU GET ME STARTED I HAVE NO IDEA. i know windows does not come with preinstalled java i installed it. i should have said that i don't know but i thought i don't know that either i believe i was just trying to explain the programming cycle of learning and realization i needed to back up so i can set these programs up...... now i have tried LINUX..... THIS IS NOT EVEN FUNNY .........YOU GUYS HAVE TO READY TO BAN ME FROM ANY MORE QUESTIONS. YOU WOULD THINK I COULD ASK PEOPLE AROUND ME . IT'S UBELIEVEABLE HOW COMPUTER ILLITERATE PEOPLE ARE CONCERNING COMPUTERS. theses programs just don't miraculously get you going. anyway i can't get my burner to burn the cd for reasons it seems does not recognize it's there because it it not telling it has a files or whatever waiting i can rt click and it gives me the option i thought maybe i couldn't because of my disk space it kept telling me it was getting low so i went about erasing all the bit torrents, iso recorder and a different verisons of linux and started over. i think now i just need something NOT A BIT FUNNY THIS IS SAD I HAVE ALL THESE PROGRAMS AND CAN'T THEM STARTED IT'S SOMETHING SIMPLE I HAVE WENT AHEAD AND WROTE SOME OF THE PROGRAMS IN THE BOOKS I UNDERSTAND HOW AND WHAT THE COMMANDS DO. RUBY so i downloaded an ISO RECORDER that did no good either Quote from: RUBY02 on June 30, 2008, 05:28:12 PM I AM A SHE! Sorry, we didn't know you're gender, and using "they" would be gramatically incorrect , Besides, visitors to this site are predominantly male. Oh well. If the Linux CD is an ISO, use IMGburn, great cd burning software Quote from: RUBY02 on June 30, 2008, 05:28:12 PM i thought that when i started using or learning c/c++/java that it was like setting up windows. i can take my computer with no program install windows and start using it.Here is the misunderstanding. Compilers/Linkers, etc, they are not necessarily designed to be easy to use, since they aren't used by mainstream users, and (the assumption goes) anybody interested in a Compiler/Linker will also know exactly what they are doing. Windows, on the other hand, is designed from the get-go to make a computer more accessible to people who otherwise wouldn't want (or need, but that's a different story altogether) a computer. The thing is, this ease of use my be the root cause of the problem, since your so used to the GUI and the "windows" way of doing things, that you are blindsided into believing the Windows method is the only way of doing it (or more precisely, since GUI tools are all your familiar with, you are (understandably) completely lost on the topic of command lines and so forth. This is what I gather from the information I was able to get from your posts. Personally I HAD to learn the command-line, simply through necessity. I believe I was thirteen, (a mere- 8-9 years ago) and I had a 286 sitting in the closet. Couldn't even run Windows 3.1, so I just tossed DOS 3.1 from my step-dads XT computer on it, and wrote batch files. I got into it over time, and acquired newer hardware (thanks to my computer science teacher in high school). The best solution is reading. And NOT information on the internet. Why? Well, first a lot of information on the web is inaccurate. Since you're learning some of this stuff for the first time, you want correct information. In addition, people comprehend books a lot better then On-line material (At least I do). Personally I got into programming (with VISUAL Basic 2) with the DOS 6/Windows 3.1 Manual, The Visual Basic Programmers Guide, Language Reference, and "professional Features" manual. Now, let's see if I can answer some *more* of your questions As I said before, there are only two steps required in getting Linux. First download, then burn the ISO. you will need a program that can burn the image, the windows built-in burning facilities are limited and frankly blow. I recommend a program called IMGburn, it can burn ISO files and the like. Quote from: RUBY02 on June 30, 2008, 05:28:12 PM where do i look to see where it's at like i go to windows if i want to see windows program Don't take this the wrong way, but I'm having a lot of trouble understanding a lot of what your asking/posting- here is a prime example. Your asking about getting Linux, and yet there is something about a Windows program here sorry! Also: Quote i can rt click and it gives me the option i thought maybe i couldn't because of my disk space it kept telling me it was getting low so i went about erasing all the bit torrents, iso recorder and a different verisons of linux and started overwhat option, what are you right clicking, what ISO recorder? The linux CD is an Image because it is bootable. you will need to boot the computer with the Linux CD. And, in order to install you will need a partition separate from your Windows Drive. If you don't have one, I'm not sure wether it will work, since I have never installed linux. Also, you are definitely trying to learn too many things at once, Java, C++, etc. do one at a time. preferably in order of difficulty. For example, HTML is a very simple start, it isn't a programming language, but it can get you put into the right mindset, where the computer can only do what you ask it to. Then you can try moving onto a programming language. Also, if you want answers, you could ask one question at a time- you are asking many questions, and I really don't know which ones you would prefer were answered, and also other questions are based on hypothetical answers to your other questions. Do keep asking questions though, and I will do my best to answer them what happend was when i made room on my disk the burner burned the linux then it downloaded now what on the boot it gives options that take me to nowhere. does it stay on the disk i burned. rubyQuote from: RUBY02 on June 30, 2008, 06:29:08 PM now what on the boot it gives options that take me to nowhere.can you elaborate?i am reading the readme files for the dgjpp compiler it i checked the longfile it accepts them next i was told that xp is not based on MS-DOS SYSTEM BUT NT but that it has a dos emulator so that it can emulate the old systems that it does take some commands. (not really called dos commands)okay i screamed.....accepted....moved on now i am trying to figure out why i can't get this DGJPP TO LET ME USE THE RHIDE INTERFACE they inform me how to fix certian settings if fix the longfile name or looked it already accepted THE DPMI SERVER BUILT INTO NT LOSE DOS MEMORY ....DOS MEMORY? NOW I AM LOOKING AT THE NEXT SETTING IS THE DJGPP IDE RHIDE the readme says it needs a -m switch to work how do you do this? above before these directions because dos and nt so interwined i got confused but does the RHIDE program work on NT i could have sworn it said it did not that you had to use the MS-DOS WINDOW RUBY |
|
| 998. |
Solve : setting the environment variable? |
|
Answer» i set the environment variables for the djgpp program in the in ENV variable programS WINDOW. |
|
| 999. |
Solve : downloading dev c++? |
|
Answer» I have been trying to download DEV c++ but it keeps on failing at 607KB wha am I doing wrong or is it a site problemWhat browser are you using? What is the website? How big is the file?Quote from: kpac on August 09, 2008, 03:16:52 AM What browser are you using? What is the website? How big is the file?CHANGE to another site,RESTART your computer,try other browser :firefox,opera IE and so on...What do you mean change to another site? We should try FOCUSING on fixing the problem, not HIDING it. |
|
| 1000. |
Solve : souce code of ftp in linux? |
|
Answer» my SELF yakub |
|