

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.
401. |
Solve : Generating pseudo-random integers programming language? |
Answer» Hello, This module implements pseudo-random number GENERATORS for various distributions.Most of that is way beyond what you need. Just a simple random number is all you need. The other stuff is for people doing deep statistical studies. You will not run out of memory. And if you do, Python will let you know. You'll need to explain what you are trying to do in more detail. Are these images premade and you'll just pick them at random or are you wanting to generate images by using the random data to define the colours of each pixel at random? |
|
402. |
Solve : turn caps lock off with batch codes without using external program? |
Answer» turn CAPS LOCK off with batch codes without using external program my question= is there a way to turn caps lock off without using any external program?Yes, on the keyboard, called Caps Lock. Quote just using batch codes?No. Quote Yes, on the keyboard, called Caps Lock. really? even with using registery codes? i found some reg code that we can use them with a .bat file but unfortunatly it needs restart to work !! is there any way?Tried google? Because I found this: http://answers.google.com/answers/threadview/id/411459.htmlno i found this one echo off regedit /s [caps.reg] Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Control Panel\Keyboard] "InitialKeyboardIndicators"="0" but it needs restart windows to work is there a way to activate it without restarting windows? The registry is a database- it stores DATA. It doesn't store OPERATING instructions in the traditional sense, but rather settings for programs to use. The keyboard state can be changed- but it requires ACTUAL code that isn't possible through pure batch script. there is NO way to set the state of these keys. Additionally, I might add that to do so is somewhat presumptious. The state of these keys should be determined by the user via their pressing of the keys- not by a batch script, regardless of wether it is convenient. This is one of the reasons why, with windows, if capslock is ON when your putting your password in, it doesn't automatically change it- even though it could- rather it warns the user that capslock is on. It's a user-defined input state, changing it through a program changes the input and there is a large chance that that change in the input will make it invalid or at the very least not be the desired input of the user.ok thanks for your complete answer |
|
403. |
Solve : C# Help with Random Command.? |
Answer» I WENT to msdn.com to find a command that would pick a random number for a project I'm working on, but when I read through the command methods It confused me... all I want it to do is pick a random number from 1 - 12 so it's like rolling dice. |
|
404. |
Solve : Newbie question regarding C programming? |
Answer» Salutations all. I admit I'm SOMEWHAT hesitant to ask this, but it's the sort of problem where the answer is TUCKED away or simply non-existent because of it's rarity and lack of severity. |
|
405. |
Solve : PERL --- How do you pass system echo'd information directly to variable? |
Answer» I wrote a perl script that reads in the date from file from system("echo %date%>>date.txt") because I cant find a way to pass it directly to a string variable such as $string |
|
406. |
Solve : How do I change my zip-file back?? |
Answer» I clicked on a "open with" button by ACCIDENT and it CHANGED the PROGRAM my zip-file (which is a comic-FOLDER) is to be opened with and now I don't know how I change it back to be opened as a normal folder again D: Please help! If You are running Windows XP, try this link. If not - please post more detailed info |
|
407. |
Solve : Learning Raptor Programming basic fundamentals (I am a beginner)? |
Answer» Thank you for this opportunity to discuss a subject that is important to me. Learning Rapor Programming. |
|
408. |
Solve : [Sloved] Wait for an EXE to be launched and used? |
Answer» While playing around as theoretical publisher, I have several times been stuck in this situation, I need some kind of script that does this:
At this moment I have a some "half" working batch file: Code: [Select]echo off seccd.exe "Installer.EXE" UPDATE.EXE exit seccd.exe is a tool that checks if itself is stored on a harddrive or CD, if it's not on a CD it will not run "Installer.EXE", it will just show you "You must install this software from the original CD!. Process terminated" How do I get it working? PS. (As in my sig.) Sometimes, C++, Batch, PAWN, HTML and GML is not enough Quote from: Ryder17z on May 22, 2009, 02:56:02 PM While playing around as theoretical publisher, I have several times been stuck in this situation, I need some kind of script that does this:Run "CMD /k help start" for more information.Oops, I forgot something: Installer.exe installs main components, then executes another EXE that contains current updates I found something, might useful, in VB: Code: [Select]Set objWMI = GetObject("winmgmts:\\.\root\cimv2") strStopQuery = "SELECT * FROM __InstanceDeletionEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_Process' " &_ "AND TargetInstance.Name = 'setup\setup.exe.exe'" strStartQuery = "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA 'Win32_Process' " &_ "AND TargetInstance.Name = 'update.exe.exe'" ' Catch process when it starts ' Or alternatively you check if a process is running rather than catching it when it starts ' by querying Win32_Process Set objEventSource = objWMI.ExecNotificationQuery(strStartQuery) ' Event query Set objEventObject = objEventSource.NextEvent() ' Wait for the event to occur WScript.Echo("Process has started, waiting...") ' Catch process when it stops Set objEventSource = objWMI.ExecNotificationQuery(strStopQuery) ' Event query Set objEventObject = objEventSource.NextEvent() ' Wait for the event to occur Wscript.Echo("Process stopped, do stuff")But it doesn't want to work with the path's usedthis is easy, but i am not in the mood to tell you. good luck in googling... Doesn't seem so easy, I haven't found a way to do it, TASKLIST gives me ERRORS about wrong syntax, VB does something that is equal to zero and so on Do I need to spend another week, trying to find a sulotion?have you read the "start /?" output? namely the portion about the /WAIT switch? Also in the VBSCRIPT why are you using "setup\setup.exe.exe" and "update.exe.exe" instead of just .exe? why two ".exe"s?Typos, BC And the wait parameter won't work since it only waits for the program it started, but as mentioned: Installer.EXE runs, then if properly used, it launches a tool to check if it was installed properly and if so, install current updates by starting another EXE After that tool is launched, only then, the batch file should run UPDATE.EXE, because it's highly unlikely you want to install updates for a software that isn't even installed, or am I missing something ? I hope I have explained enough now.. EDIT: The first EXE updater contains what we would call "Official" and the second installs "Unofficial" updates Quote from: Ryder17z on May 23, 2009, 12:19:10 PM Typos, BCStart /wait will wait for the program to TERMINATE before continuing on with the batch script.No, it doesn't, I have checked it on 3 PC's, all WinXP SP3 Sure, it waits, but not for the correct program to close Quote from: Ryder17z on May 25, 2009, 06:24:29 AM No, it doesn't, I have checked it on 3 PC's, all WinXP SP3It doesn't wait for GUI APPS to close...just read that now.I found a way to do it, with some help from PrcView and one batch file Sample used to see if it worked: Code: [Select]echo off :BEGIN pv.exe notepad.exe >nul if ERRORLEVEL 1 goto Process_NotFound :Process_Found echo Process notepad.exe is running goto BEGIN :Process_NotFound echo Process notepad.exe is not running pause exit I'm gonna change it, so it won't check every 1/50 seconds (or whatever the processing SPEED is) So, I guess, you should NEVER give up something, not even the slightest possible (as long as someone can support it) |
|
409. |
Solve : Bat file to unzip a file? |
Answer» Hi, |
|
410. |
Solve : Autorun program folders? |
Answer» Hi, Dude, why don't you watch your language. "*censored*" is bad language? I guess I misread the calendar. I thought it said 2009, not 1899. What the *censored* are you talking about, Dias? PERHAPS it was BETTER to say 'watch your attitude'? |
|
411. |
Solve : where to start....?? |
Answer» Hey everyone. |
|
412. |
Solve : Generate All 17,576 combinations for 3 alpha places? |
Answer» Trying to find an easy way to generate all 17,576 combinations of __A thru ZZZ. Such as __A, __B, __C ......... _AA, _AB, _AC ...... AAA, AAB, AAC all the way to ZZZ. *With _ shown to indicate spaces for single and double combinations A-Z and AA to ZZ, and then all combinations of AAA thru ZZZ. The actual character '_' is not required and the list can be A, B, C ..... AA, AB, AC ..... AAA, AAB, AAC ....all the way to ZZZ. |
|
413. |
Solve : Batch file to rename a header field in a .csv file? |
Answer» I need to learn how to set up a .bat to change a header field name in a .csv file. more straightforward way in XPI don't think that my solution wouldn't work in any OS other than XP...and I recently learned how to use FOR (not PERFECTLY mind you), so I was GLAD to do it with that.Since "for" didn't get any SWITCHES until at least WINDOWS 2000, your script would have difficulty working on, say, windows 98. the "More" solution would work from DOS 3.22 upwards. Quote from: BC_Programmer on June 05, 2009, 05:55:11 PM Since "for" didn't get any switches until at least windows 2000, your script would have difficulty working on, say, windows 98.Ohh...ok... |
|
414. |
Solve : Display "expiry" text in warranty field of a database file in Access 2002 by VB6? |
Answer» Dear Sir |
|
415. |
Solve : Help needed Word Marco to insert second doc to orginal? |
Answer» Hi |
|
416. |
Solve : (C++) Never return the same integer in three "for" statements? |
Answer» If i have this: |
|
417. |
Solve : Python code help moved from mac to windows not working now? |
Answer» from psychopy import visual, core, misc, event |
|
418. |
Solve : Command Prompt -- redirect output of program to variable? |
Answer» I'm trying to PIPE the OUTPUT of a program (a string) into a variable. When I try the below code, the command RUNS but the variable isn't created: |
|
419. |
Solve : Code to automatically add date & time to a file name (revisted)? |
Answer» Hi all, |
|
420. |
Solve : how to do vbscript? |
Answer» I was wondering if there is a tutorial on vb-script here on CH. I was wondering if there is a tutorial on vb-script here on HC.you should just GET the manual. Quote from: batchmaster60 on June 07, 2009, 07:41:22 AM I was wondering if there is a tutorial on vb-script here on HC. http://msdn.microsoft.com/en-us/library/sx7b3k7y(VS.85).aspx |
|
421. |
Solve : [Batch] Scan a .txt file for a string? |
Answer» I would like to scan a file, "banned.txt", for a specific string, ex, "LIAM". How do I do this, as I am PRETTY sure there is a command? |
|
422. |
Solve : C# & VB compile issue for serial communication Program? |
Answer» I bought a Serial COMMUNICATION RELAY Control on ebay and am having issues compiling the C# code they supplied. |
|
423. |
Solve : Is Qbasic 4.5 the latest (last) release of Qbasic? |
Answer» I found Qbasic 4.5 on my one 21MB IDE Hard Drive ( yes 21 MB from the days when that was a lot of storage...lol ) that I SAVED as a paperweight and decided to fire up for the first time since about 1994 when I got rid of my 8088 for a 486. Just curious as to if Qbasic 4.5 is the latest ( last ) release or not? Surprised it had no issues reading the drive after 15 years of no use and knocked around a few times and the Pentium 4 read it fine as a very SMALL slave drive...lol |
|
424. |
Solve : packaging? |
Answer» I have designed a VC++ project. How can I make a PACKAGE? In visual studio the 'package and deployment WIZARD' is giving the option of making |
|
425. |
Solve : Bitmapping Qbasic? |
Answer» I am TRYING to figure out how to CREATE a character, map, and mask and be able to use them in a game. Can anyone help me?Code: [Select] |
|
426. |
Solve : finding duplicate names in a .dbf file? |
Answer» Can anyone suggest a freeware program that enables the user to |
|
427. |
Solve : Need help creating HTML headline? |
Answer» Can you show me how to create the headline (shown in the attached jpg) in html? |
|
428. |
Solve : Oracle DBA books and websites? |
Answer» Friends i have recently joined for Oracle DBA course in Hyderabad, i have just completed my SQL,Unix Basics and my DBA classes are commencing from july 20th.I came to KNOW that as a DBA person learning Shell SCRIPTING, PL/SQL will be a plus point.So friends can u please sugest me some GOOD books for PL/SQL and Shell Scripting and also suggest me some good websites for Oracle DBA. |
|
429. |
Solve : batch file to emulate Unix cat comand? |
Answer» i'm doing some massive data analysis and need to concatenate the contents of many .txt files into one BIG .txt file. |
|
430. |
Solve : Windows Vista - I want to print files in code Hexadecimal and binary? |
Answer» What command or tool can be USE to print files in CODE hexadecimal and binary.To which code do you refer? Quote from: AEGIS on June 20, 2009, 09:50:49 PM To which code do you refer?When you reply one character on keyboard example , you can reply by special code decimal in two POSITIONS in this case type 64 |
|
431. |
Solve : Delphi 2005 Personal installing components from .pas file? |
Answer» Hello, |
|
432. |
Solve : How do you hide a Console in C#?? |
Answer» Hello I made a file that is ment to work like cmd.exe but in a form, but I don't WANT it to show the console... is there a way to hide it? |
|
433. |
Solve : copying dynamic folders to one location...? |
Answer» Hi all, |
|
434. |
Solve : I need to print a Word document from my application? |
Answer» I have achieved the most important goal, which was to POPULATE some WORD documents with data from my application. I MANAGED this with the aid of Bookmarks in Word, and the OLEServer in Delphi. |
|
435. |
Solve : how to share memory from ram to video card?? |
Answer» what are the procedures on ohow to share memory from ram to video card? and isn't possible to do it?Depends. If it's an onboard video card (one built into the motherboard) chances are it already does. Go through the BIOS at startup and ALLOCATE more or less shared memory as desired. Depends. If it's an onboard video card (one built into the motherboard) chances are it already does. Go through the BIOS at startup and allocate more or less shared memory as desired. Hmmm... Is there a limit on doing the allocation? Example if I have 5GB of RAM, can I allocate a 2GB from my RAM into the onboard video card?Yes the onboard GPU is limited by the BIOS maximum memory address range. The max you can set in BIOS is the Max you can get. It will likely max out at 256 or 512MB of that Ram or less than 256MB if a lower end or older system.If your bios supports DVMT (dynamic video memory technolgoy) mode, it may allocate a little BIT extra video ram for your video apps, IF you are not using a video card...However, I think there is a minimum RAM requirement before DVMT would do you any good..Either way.... an on-board card often gives sub-par performance. Although the on-board offerings of ATI and NVidia are often pretty good.there is the thing from nvidia where if you have a low end graphics card like 8400GT, you could boost it with the onboard video card for enhanced performance (forgot the name, but it's sort of like the NVidia's SLI but with low end graphics) |
|
436. |
Solve : fix a xp64 no boot problem please help? |
Answer» I have a xp64 Boxx tech PC that will not BOOT up. My question is there a way to hook up my xp32 Dell thru ETHERNET or USB and try to fix the bootless Boxx I have not got the set up DISC to run XP 64 What happens when you boot up? |
|
437. |
Solve : how can i build a basic os using visual basic? |
Answer» is there any tutorial on building a basic os using visualbasic 1.0?no there isn't. is there any tutorial on building a basic os using visualbasic 1.0?you can use Cdude you cannot with visual basic you have to learn assembly language with nasm complier Quote from: aloksaini on June 21, 2009, 07:00:22 AM dude you cannot with visual basic Visual Basic DOS maybe, but only because I've seen it DONE with QuickBASIC. you definitely don't need to learn ASM... and even if you did you wouldn't need to use the NASM assembler |
|
438. |
Solve : C++ Triangle? |
Answer» Hello I have a problem I have to make a triangle that look like this |
|
439. |
Solve : .net? |
Answer» Hi every body Hi every body Do your own homework.VB6 (often referred to as VB classic) as stated uses it's own run-time objects & procedures. MS decided with the first installment of .NET to completely revamp the language- get rid of all that silly stuff from the old, MS-DOS BASIC's. Visual Basic .NET is a good language, in my opinion, it isn't really Visual Basic anymore- it's close, but it feels different. It is, however, a great language in and of itself. Personally, I do most of my development in VB6; I barely touch .NET at the current time. It doesn't suck, though- it's just different. Some people resist change fiercely ) I am a Linux person, so it is hard for me to say that anything Microsoft is good. But I think that VB6 was one of the better things they made. pragma I know that both VB and VB.NET rely on a framework to operate. I think the VB framework is better than .NET because it is SMALLER and faster. I also have heard that Microsoft created .NET to make programs harder to port to other operating systems. Quote from: Linux711 on July 05, 2009, 10:29:30 PM I am a Linux person, so it is hard for me to say that anything Microsoft is good. But I think that VB6 was one of the better things they made. And VB6 is easier () Quote from: Linux711 on July 05, 2009, 10:29:30 PM pragma Yeah that's right. They spent millions of dollars and thousands of man hours just to spite the Linux community, because Microsoft is super villain evil. Right now Bill Gates is laughing his *censored* of in his fortress of doom. I really hate having to be the one defending Microsoft here, because I'm really not that big of a fan. They have done plenty of things wrong, but lets at least get the facts straight. The truth is that Microsoft created the .NET framework to make it easier and faster to develop software for the Windows platform, and perhaps most importantly, make it easier to port software between different Windows platforms. Is software that relies on .NET harder to port to another platform? No not really, .NET code is compiled to byte code, just like Java. In theory this can be execute on any platform with a .NET virtual machine, again just like Java. It is not an evil scheme, just good business sense, to only support it on their own platforms. Microsoft have no interest in creating another Java. But Microsoft have done absolutely nothing to stop other people from PORTING the .NET framework. Ever heard of Mono? In fact Microsoft is indirectly sponsoring Mono through their partnership with Novell. IMO it would be easier to port a .NET APPLICATION then it would a application made with VB6... So that whole "They did it to make it harder to port" nonsense doesn't really work. VB6 compiles to either P-Code or Machine code; either way, it always outputs a windows executable. .NET programs compile, as pragma said, to bytecode. All that's needed is a CLR for the other OS's- and given the fact that WINE essentially duplicates the windows API itself I don't see the task of creating a CLR for Linux or mac as too difficult for the Linux people. |
|
440. |
Solve : Tollbar moved to secondary computer and we need it back!? |
Answer» So I'm at work but it's sunday and a holiday weekend so i cant get intouch with my boss or manager. I don't know the operating system or anything. I just know this: We have 2 comps on the same network or something. ONE , the main, is for us to access everything. The second is for our members to check in and see basic details about their PROGRESS. The toolbar somehow, i dont know how as I wasn't here, moved to the member screen. we can access the running programs through the ctrl/alt/del thing but we really need this to get back to its regular screen. we can partially access it by USING the tab button when i hit the shortcut button that puts the taskbar and start menu properties on the 2ND screen,but thats it, cant use the mouse. I looked for this topics but though some were about the toolbar it was about moving it on the 1 screen. Thanks for any HELP : ) |
|
441. |
Solve : IIS 5 or 6 in windows XP Home, Is it Possible?? |
Answer» Hi, I would like to install on my PC (Windows XP Home Edition SP2) the Internet Information Service 5 or 6, but I don't find the best solution to do it!!. Did you know something about this or an alternative way to install ISS 5 or 6 without the Windows 2000 Installer? Could I install ISS 6 from the Windows Server 2003 CD? |
|
442. |
Solve : can any1 guide me about Autocad 2000i??? |
Answer» if any of you know a GOOD website of AUTOCAD 2000i,that STARTS from the basic..so PLEASE do tell me. |
|
443. |
Solve : IC Tester? |
Answer» Hello, |
|
444. |
Solve : outlook - send from? |
Answer» Hi Guys, |
|
445. |
Solve : program to monitor a file size then preform an action? |
Answer» Ok basically im looking for a program/source that can monitor a file, when the file expands then I need it to preform an action. Its only ONE file that I am monitoring. I really want source code since id rather add it to my own apps, crediting the author of course. Im not using it for anything phishy, im just about to leave so I dont have time to type what i need it for right now. I can do that later if someone needs me to. If anyone needs more info then please say so and i will reply back.Here is some VB6 code. Make a form with a timer. Give the timer an interval of how often you want to check for a change in the file. |
|
446. |
Solve : [VB.Net] Create panels when in While() loop? |
Answer» Code: [Select]Public Class Form1 |
|
447. |
Solve : creating threads in C#? |
Answer» Can someone please break down a simple statement for a relative newbie? If it's all the same to you, I'll set my own career path, thank you very much. heh, on the other hand, C# would be a forward thinking investment... (assuming that .NET manages to take off, which wouldn't be an unfair assumption). In either case... that wasn't relevant... my response I mean... to your question My apologies. Code: [Select]Thread firstThread = new Thread (new ThreadStart (Method1)); As I'm sure your aware, unlike C, C++ and C# deal with Objects. Quite a departure from the Structured Programming of C and Pascal. This line, as you know, creates a new thread. the "new" keyword is used to create a new thread. However, in order to create a new thread, you must pass in a "ThreadStart" object to the Thread's constructor, a special function that is called when you create an instance of the class. In this case, a new ThreadStart Object is created right in the parameter list to the Thread Constructor. But oh Dear! the ThreadStart() Constructor also needs a bit of information- the METHOD that will comprise this thread. In your example, this is the function "method1". If I am CORRECT, this code would create the thread- but would not START it, the firstThread object can of course be told to start,suspend, terminate, etc via it's methods. |
|
448. |
Solve : Help with C++? |
Answer» Im trying to MAKE a tetris game and i get this error "type int unexpected". It happens at the function that randomizes some numbers and returns a tetris piece, in this case, a pointer to a 2-dimensional int array. |
|
449. |
Solve : ADOBE hole headache? |
Answer» http://voices.washingtonpost.com/securityfix/2009/07/attackers_target_new_adobe_fla.html?wpisrc=newsletter in case ANYONE gets a headache from TRYING to figure out what is going on with their system (like i did) - this MAY be your PROBLEM... thought i'd pass it along...No need to tell US twice... |
|
450. |
Solve : Outlook - Subject Field? |
Answer» Hi guys, |
|