Explore topic-wise InterviewSolutions in .

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.

1001.

Solve : INFORMIX AND INGRESS DATABASES: PLEASE I NEED HELP WITH THIS!!!!!!!!!!!!?

Answer»

HELLO EVERYONE,

PLEASE DOES ANYONE KNOW ANYTHING ABOUT INFORMIX AND INGRESS DATABASES? OR CAN YOU SUGGEST A SITE WHERE I CAN LEARN ABOUT THEM. I NEED TO KNOW THE COMMANDS USED AND HOW TO USE THEM. THANKS A LOT!Please do not type in all capital letters.
...and I'm sure that, whats on both our minds, is if this is HOMEWORK or not...... and why they can't spell "Ingres".
Quote

CAN YOU SUGGEST A SITE WHERE I CAN LEARN ABOUT THEM.
Actually, Google can help you a lot here:

http://www.google.com/search?hl=en&q=informix+database&btnG=Search
http://www.google.com/search?hl=en&q=ingres+database&btnG=Google+Search
1002.

Solve : Creating java program?

Answer»

I need HELP creating a java program that inputs an AMOUNT of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
Input the cents
dollars = cents/100
centsLeft = cents%100;
quarters = centsLeft/25
centsLeft = centsLeft%25
dimes = .....
Test your program with DIFFERENT inputs.I don't recall java having a modulus operator, I'm not sure about javascript, though.

You seem to have it- what exactly to you need help with?Its a straigth forward program ... .wat u want .... whole program
If you are facing any problem then let me .. please POST error msgQuote from: alyoob on July 22, 2008, 08:27:13 AM

I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
Input the cents
dollars = cents/100
centsLeft = cents%100;
quarters = centsLeft/25
centsLeft = centsLeft%25
dimes = .....
Test your program with different inputs.

I didn't provide any code straight-up because this kind of looks LIKE homework.Quote
looks like homework.
I agree with BC_Programmer

Quote
I need help creating a java program that inputs an amount of cents, converts the input amount to dollars, quarters, dimes, nickels and pennies.
alyoob !
Do you think this program only need simple calculate and simple input and output?All of these can be found in Textbooks.

I advise you to read your Textbooks throughout .
1003.

Solve : i see someone is asking my same question C++ PROGRAM DOWNLOAD?

Answer»

now i have lost steam and the air is thinned i am reading others posts

installing the program c++ compiler is also my frustration
i have been bugging for help. i don't know how to ask so i ramble hoping the answer will come to me. the computer world and it's lingo is diffferent!

my question is why do these BEGINNER books direct you to do something that takes "advanced" computer programming skills"

secondly, why not design a program you can download, and boom your on your way to programming? (I should add with compiler that comes together with program)

are you suggesting compilers? or something like notepad just to enter the program?
if so how do you get it to work without a compiler?
in therwards how to see the end product?
i couldn't download the compiler(see posts)
so i USED notepad now what?
what is an API?Quote

installing the program c++ compiler is also my frustration

i couldn't download the compiler(see posts)

You seem to be making life difficult for yourself. Did you read and understand the instructions? They're very clear.

Start here then move on to the Readme file here. Make sure you understand the requirements before proceeding.

There's even a zip-picker page at this site where you can select which zipped files to download and includes instructions on how to unzip/install the files. Also an Exe file is supplied to unzip the zipped files.

Quote
so i used notepad now what?
The instructions are contained in the Readme.1st file. You save the source you created as filename.c then compile it. Here's a quote from Readme.1st:
Quote
Compilation
-----------

GCC is a command-line compiler which you invoke from the DOS command
line. To compile and link a single-file C program, use a command like
this:

gcc myfile.c -o myfile.exe -lm

The -lm links in the lib/libm.a library (trig math) if needed. (Link
order is significant, so if you need libm.a, always put `-lm' at the
end of the command line.)

There's a GCC invocation site here link.

You will never EVER be able to create PROGRAMS unless you read and understand the instructions. If English is not your first language I suggest you have the Readme.1st file translated to your native tongue.

Have fun...

V.Quote from: RUBY02 on July 02, 2008, 07:07:56 AM

my question is why do these beginner books direct you to do something that takes "advanced" computer programming skills"

they don't take advanced Computer programming skills, but rather skills in computer operating skills.


Quote from: RUBY02 on July 02, 2008, 07:07:56 AM

secondly, why not design a program you can download, and boom your on your way to programming? (I should add with compiler that comes together with program)


Because the makers of the compiler/IDE assume a base-level set of skills for the PEOPLE they design the program for. However, there are many Free IDE's for some of the languages. For example, Java is an easy one, you can find NetBeans IDE for that one- C++ has Watcom C++, but that's a tricky one to find...

are you suggesting compilers? or something like notepad just to enter the program?
if so how do you get it to work without a compiler?
in therwards how to see the end product?
i couldn't download the compiler(see posts)
so i used notepad now what?
what is an API?
[/quote]
1004.

Solve : Excell Script/Problem?

Answer»

I would like to WRITE a SCRIPT that compares two columns CALL them A and B

If column A is greater than 0 AND column B is greater than 0 then add A to a running total.

If either column is blank or 0 do not add anything to the total. Also the columns are in ANOTHER sheet.

I WANT this total to be displayed in one cell.

Thankscan you give us a sample structure of you excel workbook?

1005.

Solve : THERES A HUNDRED GLITCHES TO GET WINSOWS NT TO WORK WITH DGJPP??

Answer»

THIS IS WHY I PROBABLY HAVE NOT BEEN ABLE TO USE THIS COMPILER YEA OR NAY?
NOT ONLY THE VARIABLES AND THE LONGFILE NAME SETTING BUT THE
REDIR.EXE,,,,,,AND THE SAGO GOES ON WRITE OR WRONG?Please do not type all in capital LETTERS. It is the same as shouting for attention, and cause the same sort of reaction.

Dias de verano - CAPSLOCK PATROL
Also- try to keep your posts within the same thread. SINCE this is a new thread, how is ONE to KNOW which compiler your talking about?

1006.

Solve : how to edit?

Answer»

guys,,is there any way to edit a software?.. i wan to edit this software Ygamer trivia.. its a bot trivia for yahoo chatroom and i want to add features like commands of !help.. any one who can help? Edit Software? I don't know what Ygamer Trivia is but is this legal?there(http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=70276&lngWid=1) is the source code of it.

I don't use yahoo chatroom so I can't help to COMPLETE it.
But I GOT some infomation from the source code :

  • it work with regexpression
  • there is some dictionary(LIST of item)
I think you could just add "!help" as an item to dic(s),and ALSO the help content .
1007.

Solve : Visual Basic and Windows Installer Issue?

Answer»

Hi, the trouble starts when I run Visual BASIC 6. I have create a NEW user on my PC and I just want to run VB6 but APPEARS the WINDOWS Installer screen telling me that the Installation will start. I leave it until it finish but It doesn't never finish. Did you know what's wrong?

Regardsyou should insert the install cd of VB6 or
place the install file(s) to the path you last install from.

Or remove the VB and the reinstall it for all user.
there must be some options like:

  • Only me
  • All users
1008.

Solve : Automated Backup of a folder to an FTP site?

Answer»

Hello;

I want to create a FILE that I can run and have a folder backed up to an FTP server folder. My laptop to my FTP server. Obviously I have a Username and PASS to contend with, but I control them on both sides. Any Ideas. I thought about a batch file xcopy, but I believe this to be out of the CAPABILITIES of this.

Any help would be great

Thankshey,

my first idea would also be a batch file.
You know the ftp command?

If you go to CMD you can enter FTP and press enter.

use it like:
open myftpserver.com

oder write HELP

that should work in an batch file..

Good luck..I don't know your FILES or paths,here I give you a sample of batch file to upload file to ftp server.
(there is a forlder named "temp" on the server,and at this moment the "C:\boot.ini" is exist, and the server ip is "10.1.11.59",this is my static IP in LAN)

Code: [Select]rem **** first write the command to file: ftp.txt****
echo user user1>ftp.txt
echo pass1>>ftp.txt
echo cd /temp >>ftp.txt
echo put C:/boot.ini ini.boot /q>>ftp.txt
echo quit >>ftp.txt
rem **** user the -s SWITCH to read the command in ftp.txt****
ftp -n -s:ftp.txt 10.1.11.59
rem **** after that delete ftp.txt****
del ftp.txt

after running this batch file
there will be a new file name "ini.boot" in the folder(or directory) "temp" of the server(10.1.11.59).

you can modify it to MATCH your demand.

1009.

Solve : VB 5 and VB 6 Compatibility!!!!?

Answer»

Hi everyone, I have a little clue: I wish to develop an application, (modify and update), but it's developed in MS Visual Basic 5. I'd never programmed in VB5. Could I modify without some kind of issue in VB6 the sourcecode written in VB5?

Regards

Normally, when you OPEN VB5 project in VB6 that project is automatically converted into VB6.

But any feature used in your VB5 project may be(It depends upon your project) invalid or changed in VB6. Incase you must update or alter the source code to VB6.

After conversion it runs only on VB6 supported systems.VB5 and VB6 are so similiar VB6 could easily have simply been a service pack for 5- it adds a few functions with questionable value (like StrReverse), and several new features as far as objects/Classes are concerned, but unless you use these features, you'll have no problem going back and forth between VB5 and VB6 (although as you say you don't have VB5 anyway so that won't be an issue)

The sourcecode will almost definitely not have anything but trivial changes to be made, if any. I've converted projects from VB2 with very few problems, so I'd say that VB5 to VB6 are even fewer.Quote from: CBSk on June 26, 2008, 05:38:09 AM

Normally, when you open VB5 project in VB6 that project is automatically converted into VB6.

But any feature used in your VB5 project may be(It depends upon your project) invalid or changed in VB6. Incase you must update or alter the source code to VB6.

After conversion it runs only on VB6 supported systems.

Which SP do you mean SP5 or SP6?

Of course, I REFER the VB6 Service PacksQuote from: friny on June 27, 2008, 02:05:04 AM
Quote from: CBSk on June 26, 2008, 05:38:09 AM
Normally, when you open VB5 project in VB6 that project is automatically converted into VB6.

But any feature used in your VB5 project may be(It depends upon your project) invalid or changed in VB6. Incase you must update or alter the source code to VB6.

After conversion it runs only on VB6 supported systems.

Which SP do you mean SP5 or SP6?

Of course, I refer the VB6 Service Packs

I can't speak for him as far as which SP he is using, but I've successfully converted projects from VB2-VB6 (no service pack) as WELL as SP6... VB5, I was only using the free "Control Creation EDITION", and I could successfully open my projects from either, since VB6 also labels it's projects with VERSION 5.0 as the first line.


I'd suggest you simply copy the project and open it up in VB6, and see what happens. Shouldn't be a problem. @friny: The same as BC_Programmer speak. I had conversion done in both VB6 without any SP and VB6 with SP6. In my conversion I found some minor changes in source code for my project.Well, I'd test it and it works fine, with a bit of change.

Thanks to all for your usefull help!!
1010.

Solve : using paralle or usb port to output in c++?

Answer»

I am tring to write strings and then DISPLAY them on the IC using the PARALLEL port. I have converted my name into a ASCI conde in hexadecimals the problem is I don't know what library is used for DISPLAYING into a seven segment displayer

1011.

Solve : Visual Basic 6.0 Subversion Plugin?

Answer»

Hello everyone, I'm seeking for a friendly subversion plug in for MS Visual BASIC 6.0 or Visual Studio 6.0. I've been found too many apps, but everyone WORKS only with the .Net environments.

Best regards!! Google turned up more than a few choices. Look these over, maybe you'll find something you can use.

Good luck. Well, I'd found the TortoiseSVN Repository, and it's a KINDLY app, and I found a plug-in adaptable to svn and winmerge.

You can find EVERYTHING about it in http://www.tigris.org/

Best Regards

1012.

Solve : Need help with creating a C++ Installer?

Answer»

Ok im new to this and ive read through some beginner books and i have a BASIC understanding of C++ and im trying to make a installer that will do simple tasks like downloading a file, extract it, and copy files to the specified directory. Is anyone willing to spare some time to help me with this? If so please send me a pm along with your msn. A source code of a installer already made would help too guys, thanks That actually SOUNDS like it would be more advanced. I suppose you could use system commands or the Windows API to make it alot easier, but there are lots of installers that use scripts to do what you want. I think Nullsoft makes a pretty good one if you just need an installer and not the learning experience.i noticed your having the same problem, i am getting the djgpp to work.
i am no PROFESSIONAL and do not even know what i am doing. well i know what i am doing and why. i am not sure it is going to work. i just have to keep working unitl it does. i asked the same question you did and got almost the same answer. i will tell what i decided to do.
i knew i was not going to get the program to run unless i explored it.
i think everyone and their family has worked building, modifying, and inventing
so i cracked into it and started opening folders and their directories.
i am finding out the beauty of why everyone is attracted to this program, you can open any folder (just a few you can't) with note pad.
i organized them (after all this is a lego*? program) according to function. i have learned a lot about the program it's self. i believe when i do get it up and going i will be able to understand the compiler in more depth.
in otherwards, do what you want with it. you can always get another. just wanted to let you know i am in the same boat. if you want to know how i have organized let me know. i have not got it up and running yet. most of the folders to this program you will begin to find out are information that iis informative to running the program. you will find out there is a hand ful that run the program. when you start opening them (if you downloaded them from the delories site), you will notice that all the folders have the same folder names but different (. text). keep a set of those folders. good luck
if you want to know more let me know
rubyRUBY02, this person asked for help on June 07, 2008.

It is now July 04, 2008.

Please don't dreg up old threads - not RELEVANT, as there is almost no chance they are still present. However, they can dreg them up if they want, because then they're present.

Thanks

1013.

Solve : Create Batch file to dial broadband?

Answer»

Can anyone please HELP me by sharing the information of how to create a batch file to connect the BROADBAND CONNECTION automatically when I run the batch file. timing control is needed in the file.Broadband is always on. There is no need to DIAL in.

The connection can be enabled or disabled via a SCRIPT.

What are you trying to do?

1014.

Solve : need script (*.cvs file items export to other files) [solved]?

Answer»

Hi there,

I have *.csv file with many lines of users - Name,Surname,Mobile,etc.
What I want to do is create/use some script witch would parse this *.csv file, take these values from here and put this into another file - each user line into separate file.
In my case what I want is to put user information into an *.HTML templated file.
User info goes like this:

...
(1st line) Name Surename
(2nd line) Mobile
(3rd line) etc
...


I will appreciate if someone could point me where to start from or give some advice to solve this.

Best Regards,
SushyMore questions than answers for now. Are these HTML templated files being created from scratch, or do they exist and you want to insert records? Do all the records in the csv file have have same number of data fields? How many?

Any of the script languages, including the underpowered batch command language, can be used to parse the csv file.

I notice that name and surname are two chunks of data in the csv file, but are formatted to one line in the html file. Is this the only exception or are there others?

You have elipses (...) within the html tags. What do these represent?

Quote from: Sidewinder on August 07, 2008, 05:09:00 AM

More questions than answers for now. Are these HTML templated files being created from scratch, or do they exist and you want to insert records? Do all the records in the csv file have have same number of data fields? How many?

HTML file(s) exist and I want to insert additional records from CSV file.
CVS file looks like this: (Name,Surname,position,phone,mobile,fax)

Code: [Select]Johny,Beier,marketing specialist,12345678,12345678,12345678
Larry,Cash,administrator,,12345678,12345678
...
...
HTML file looks like this:
Code: [Select]<html>
...
Best Regards,
!Johny Beier
!marketing specialist
!12345678
!12345678
!12345678
...
</html>
Values marked with "!" I need to obtain from CSV file.

Any of the script languages, including the underpowered batch command language, can be used to parse the csv file.

I notice that name and surname are two chunks of data in the csv file, but are formatted to one line in the html file. Yes.
Is this the only exception or are there others?
As you can see above there are also empty ",," entries in CSV, cos not all have fax number or phone number, etc. In fact this CSV file is generated from XLS file.

You have elipses (...) within the html tags. What do these represent?
Ohh, sorry for vagueness, it was wrote as comment thought.


Not as elegant as I hoped, but serviceable:

Code: [Select]Const ForReading = 1
Const ForWriting = 2

Set fso = CreateObject("Scripting.FileSystemObject")
Set fs = fso.OpenTextFile("c:\temp\data.csv", ForReading) 'user change

Set fldr = fso.GetFolder("c:\temp") 'user change
Set fc = fldr.Files

For Each fi In fc
If fso.GetExtensionName(fi) = "html" Then
Set f = fso.OpenTextFile(fi, ForReading)
strContent = f.ReadAll
f.Close

Set f = fso.OpenTextFile(fi, ForWriting)
strData = fs.ReadLine
arrData = Split(strData, ",")

loc = InStr(1, strContent, "Best Regards,")
loc = InStr(loc, strContent, vbCrLf)

f.WriteLine Mid(strContent, 1, loc)
For n = 0 To UBound(arrData)
If n = 0 Then
f.WriteLine arrData(n) & " " & arrData(n+1)
n = 1
Else
f.WriteLine arrData(n)
End if
Next
f.WriteLine Mid(strContent, loc + 2)
f.Close
End if
Next
fs.Close

I flagged the lines where you need to make changes for your environment. Made some assumptions: The templates are in a single directory with a html extension and missing data in the CSV file creates a blank line in the template.

This could have been done directly from the spreadsheet, but since you went to the effort of creating a CSV file, I used it.

The script overwrites the original template files. Can be modified to create a new output file.

Save script with a vbs extension and run from the command line as cscript scriptname.vbs

There is a shameful line of code where the array index inside a loop is tampered with. Keep this to yourself. If it gets out I may be banned from Don's Bar & Grill. Big thanks helping me, but script don`t work
When I run the script I get this:
Code: [Select]C:\temp\run.vbs(13, 3) Microsoft VBScript runtime error: Input past end of fileDid you test it or maybe I`m doing something wrong though I did as you said hmm...Quote
Did you test it

Yes, it was tested. All posted snippets are tested unless otherwise indicated. I cannot duplicate the error.

Quote
C:\temp\run.vbs(13, 3) Microsoft VBScript runtime error: Input past end of file

Error can be caused by a file being open in another process or the file is empty. Judging from the location in the code, most likely a template file. The solution was based on each template file containing:

Quote
<html>
...
Best Regards,
...
</html>

Post the code you are ACTUALLY using. You'd be surprised at how much gets lost in translation.

Yes. You was right. My template html file was empty. (my mistake)
Now script works.
In fact I`ve just realized that I need some changes to VB script, because my real html template file should look like this:
Code: [Select]<html>
...
Best Regards,
<b>"name surname from csv file"</b><br />
"position from csv file"<br />
phone:+777 "number from csv file"<br />
mobile:+777 "number from csv file"<br />
fax:+777 "number from csv file"<br />
...
</html>

As you can see name and surname for example should go exactly between tags, etc.
Is it possible? Can you help me with it?

And of course in the very perfect and comfortable way there is only one html template and before changes to it script creates the copy of it, then changes 1st one taking info from csv file line 1, then again creates 3rd copy from the 2nd, than again script changes 2nd one taking info from csv file line 2 and so on...
And each TIME html file is named by Name Surname values which it contains.
Of course there is no problem for me to copy many templates as I need and numerate them

Quote
In fact I`ve just realized that I need some changes to VB script, because my real html template file should look like this:

In the future, take a deep breath, think about what you need and then post your request. Posting code on the installment plan is not very efficient.

Code: [Select]Const ForReading = 1
Const ForWriting = 2

Set fso = CreateObject("Scripting.FileSystemObject")
Set fs = fso.OpenTextFile("c:\temp\data.csv", ForReading)
Set f = fso.OpenTextFile("c:\temp\template.html", ForReading)

strContent = f.ReadAll
loc = InStr(1, strContent, "Best Regards,")
loc = InStr(loc, strContent, vbCrLf)
f.Close

Do Until fs.AtEndOfStream
strData = fs.ReadLine
arrData = Split(strData, ",")
Set fo = fso.OpenTextFile("c:\temp\" & arrData(0) & " " & arrData(1) & ".html", ForWriting, True) ' user change

fo.WriteLine Mid(strContent, 1, loc)
For n = 0 To UBound(arrData)
Select Case n
Case 0
fo.WriteLine "<br>" & arrData(n) & " " & arrData(n+1) & "</b><br />"
n = 1
Case 2
fo.WriteLine arrdata(n) & "<br />"
Case 3
fo.WriteLine "phone:+777 " & arrdata(n) & "<br />"
Case 4
fo.WriteLine "mobile:+777 " & arrdata(n) & "<br />"
Case 5
fo.WriteLine "fax:+777 " & arrData(n) & "<br />"
Case Else
fo.WriteLine arrData(n)
End Select
Next
fo.WriteLine Mid(strContent, loc + 2)
fo.Close
Loop
fs.Close

Made some assumptions:

1. Template file is labeled template.html
2. CSV file is labeled data.csv
3. New templates are labeled firstname lastname taken from the CSV file
4. Uses a single template file (format in earlier post) as the basis of the new templates

You can change any of these values. Missing data in the CSV file produces a template line with the literal only.

Run as instructed in an earlier post.

Good luck. Quote
In the future, take a deep breath, think about what you need and then post your request

I will.

Thank you very very much. You really helped me.
The script is perfect - exactly what I was looking for.
1015.

Solve : Diferences between vbp and mak Files!!!!?

Answer»

Hi, I've been found in a project the extensions .vbp and .mak, to define the VB6 PROJECTS files, but I don't know which is the difference between it and which kind of TROUBLE COULD I get replacing all to .vbp.

Cheers.mak is the old project extension for Visual Basic 1,2 and 3. VBP is from version 4 onwards. when you open a .MAK in a newer version of VB and save it, it still SAVES as a MAK.

You should have no problems renaming then all the .VBP.Quote from: BC_Programmer on July 04, 2008, 10:09:02 PM

.mak is the old project extension for Visual Basic 1,2 and 3. VBP is from version 4 onwards. when you open a .MAK in a newer version of VB and save it, it still saves as a MAK.

You should have no problems renaming then all the .VBP.

Thanks for your usefull help!!!

Regards
1016.

Solve : Instruction Dim in Visual Basic 6!!!?

Answer»

Hello everybody, I have a little clue about the attributes used in the instruction Dim. I would like to know what kind of function have the attribs As Form.

Regards!!!!The answer is "a form".

Quote from: Dias de verano on July 04, 2008, 10:13:48 AM

The answer is "a form".



I know it, but I need to get an explanation about its uses!!!!are you asking what purpose it would have to Dimension a variable of type Form?Quote from: BC_Programmer on July 04, 2008, 10:10:12 PM
are you asking what purpose it would have to Dimension a variable of type Form?

YES I do.Quote from: friny on July 07, 2008, 02:56:58 AM
Quote from: BC_Programmer on July 04, 2008, 10:10:12 PM
are you asking what purpose it would have to Dimension a variable of type Form?

Yes I do.


The idea is to PROVIDE something called polymorphism, say for example you have to following procedure:


Code: [Select]Private Function ShowAndSize()

Form1.Show
Form1.Move (Screen.Width/2)-(Form1.Width/2),(Screen.Height/2)-(Form1.Height/2)

End Function



This works (shows the form and centers it on the screen, but you'll need to create a new function for any other form. Instead, we could do this:

Code: [Select]Private Function ShowAndSize(FormSize As Form)

FormSize.Show
FormSize.Move (Screen.Width/2)-(FormSize.Width/2),(Screen.Height/2)-(FormSize.Height/2)

End Function


and then call it by passing the form as a parameter.

Of course, that isn't really declaring a variable of type form- one POSSIBLE usage for such a thing would be for a form that is designed to work with another form, the "CHILD" form could keep a private variable of Type form that can be changed to determine the parent form.
1017.

Solve : Telnet automation?

Answer»

I NEED to WRITE a C program to telnet into a device, and read INFORMATION from the device.
Can anyone tell me if there are any good tools which I can use?

Thanks a lot why write another program ? if your telnet client supports scripting, then you can write a script to do that. If you know Perl, you can use the Net::Telnet module. SEARCH google for Net::Telnet and see some EXAMPLES

1018.

Solve : Basics for php and asp .net?

Answer»

can ne one provide me some basics for php and asp .net like der purpose and application where these languages are used and advice on books to follow for a fresher.Php for dummies. Asp.net for beginners.

Google "learn php" and "learn asp.net" for starters.

And both asp.net and php are used for websites. I use php for my own website.

As a footnote, they STAND for:

asp: Active Server Pages
php: PHP: HYPERTEXT Protocol. (yes, php is an anacronym of itself.)W3Schools is the best place I have found for web design tutorials.Quote from: kpac on June 24, 2008, 01:25:16 PM

W3Schools is the best place I have found for web design tutorials.

I agree completely. W3Schools taught me a lot about Javascript.im taking a class on PHP RIGHT now. here is my live project.

http://www.samcarney.com/class/ecommerce/assignment4/pizza1.htm

PS you wont really get a pizza when ordering

and time is only correct if you are in Eastern Time...I just ordered 50 large pizzas which will cost $338.67!!
Will they be in Ireland in 45 minutes?
1019.

Solve : Need help with a batch file with up to eight different user inputs...?

Answer»

I have a question for anyone who can answer it. I need to write a batch file for to automate some things for someone who is computer illiterate. The problem is that it needs to ask her up to 8 multi word descriptions, that will get passed to a seperate program. There may not always be 8 descriptions, but in every case thay will not be one word. I can write very simple batch files with a single variable, but this is way over my head. I'll show an example of what I'm trying to accomplish below. Any help would be greatly appreciated.

The directory structure involved.

c:\archives
c:\archives\1
c:\archives\2
c:\archives\3
c:\archives\4
c:\archives\5
c:\archives\6
c:\archives\7
c:\archives\8
c:\archives\backups

The user INPUTS *should* be something like this...

What's on the first disk?
What's on the second disk?
etc...

Sample answers might be like the following:

Nico's Pictures
Family Geneology Info
etc...

Basically, we have a bunch of DVD backups from my Mother's old unstable computer, but we want to a.) RECOVER the important data, & b.) create a new backup that is organized the way my Mother will understand it. The contents of each directory are compressed with RAR to save space, so I need to check for errorlevels from each step. Right now, I can get most of it, but I keep getting stuck with the user inputs. So how do you ask the user for a variable that could be more than one word up to eight seperate times? She may not always need eight, but sometimes she will. It all depends on how much is on the original DVD that she wants to save.

Sorry for such a complicated one, but my idea of a tough batch file involves one single variable and a lot of excess code. I just don't understand loops other than simple IF THEN statements. Thank you very much for your help!A string variable can be as LONG as you like, and have as many "words" as you want. Did you think that a variable can only be one word?


Actually...YAH, I sure did. So how should I write the 8 user inputs? I want to avoid having my mother running the batch followed by all 8 variables in the same line. Knowing her, she'll have 8 very long titles. THANKS again...

1020.

Solve : Best PHP web designing book?

Answer» HELLO everybody!

Anyone PLEASE could tell me the which ONE is the latest PHP EDITION (web designing book) now a days,
and what is the best WEB (prefered one) designing and programing language / tool this days.

Thank you all

Tamnet
I'd say its all a matter of opinion, but my personal favorite is "PHP for dummies" and just w3schools has GOOD stuff on php.

I also think that php is the best for web design.Here is a good website: http://www.webdesignbooks.co.uk/

Not sure if they deliver to the US though, if you're from the US.
1021.

Solve : EOQ model,..how to compute?

Answer» PLSS help me how can i APPLY the EOQ model,...i PRESENTLY developing an inventory SYSTEM for my THESIS,..help me!!!!Self help is best, there must be something here for you.

Good luck
1022.

Solve : Amazon's Web Service for paymnents?

Answer»

I WOULD like to use Amazon's One TIME Use:
HTTP://developer.amazonwebservices.com/connect/entry.jspa?externalID=1184&ref=featured#Preparation
I have no idea how to program it. I was thinking about using one of those SITES where programmers bid on programming work.
How much would programming work like this cost?


Thanks,

Roscoe


1023.

Solve : Compiler??

Answer»

hey guys, I have a school project. its about the compiler. but I dont have any idea on doing this. All I know is that we can use any programming language in my previous subjects and we will use it as a compiler (im not sure ).

can you guys explain what compiler is all about?

any advice would be appreciated...a lot of thanks Don't you have any text books?

A compiler CONVERTS source code and turns it into machine code the CPU can execute.

i don't have any books about compiler. it converts into any machine language? mmhh i think that is very complicated...anyways, what textbook can i use with this? i try to buy it.You should ask your teacher.
You could also try actually researching the subject. When I was in school I was TOLD this was a pretty important.
Here is a little to get you started.
http://en.wikipedia.org/wiki/CompilerQuote

You could also try actually researching the subject. When I was in school I was told this was a pretty important.
Here is a little to get you started.

yeah you're right. this is pretty important. i am searching now about this. this subject was not easy to understand if we are lack in infos. we are trying to ask our teacher about this but he gives us a limited information. this is very complicated for us. "sigh"Do you have access to a library?
yes i have...i am keep on searching there. another problem is, we don't have computer lab in that subject. so that we feel that we are in the dark and no one can see a light.On FEBRUARY 6, 2008 you asked this

Quote
hi guys. i want to install visual basic. but i dont know if what version of VB is ideal to use?

On January 25, 2008 you wrote this

Quote
how can i run programming using Turbo C

Deerpark asked

Quote
You've written something in Turbo C correct?

You replied

Quote
yup, i try to run my program into the prototype. when i run the program in TC also with my prototype with the same output.

So, how is it that you now claim that you don't know what a compiler is?




yeah but that is a using a single language. not using a compiler. omg how can i explain this? When you make a program in Turbo C, before you run it it is compiled. By the compiler. The Turbo C compiler. The one you used. A compiler only compiles into one language.

jhay, you sent me a PM. Please CONFINE your questions to the forum.

Quote
hey dude, im very confused what really compiler is? based on your last reply.

if you don't mind,
can you explain to me what a compiler is? can you give an example of compiler?

this is optional, if you want or not, it is ok for me.

anyways, thanks for your patience you give to me. i really appreciated it. thanks

Here are your answers.

1. can you explain to me what a compiler is?

A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the TARGET language).

2. can you give an example of compiler?

Borland Turbo C++ version 1.01



tnx for this dude... mmhh Quote
A compiler is a computer program (or set of programs) that translates text written in a computer language (the source language) into another computer language (the target language).
i got an idea on this. thanks.

anyway,
i bought a textbook for this. i try this one...
1024.

Solve : Help with AD / VBScript?

Answer»

Hey all,

I've got a big long list of user name in a excel sheet. I'm trying to write a script to determine weather the name exists in AD.

This is what I have so far (Pouched from Hey scripting guy!!)

Code: [Select]Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CREATEOBJECT("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection

objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE

Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("C:\scripts\ADusers.xls")
objExcel.Visible = True

i = 1

Do Until objExcel.Cells(i, 1).Value = ""
strName = objExcel.Cells(i,1)
objCommand.CommandText = _
"SELECT * FROM 'LDAP://dc=mydomain,dc=com' WHERE objectCategory='user' " & _
"AND sAMAccountname='" & strName & "'"
Set objRecordSet = objCommand.Execute

If objRecordset.RecordCount = 1 Then
objExcel.Cells(i,2) = "Found"
Else
objExcel.Cells(i,2) = "Not found"
End If

i = i + 1
objRecordset.Close
Loop

objConnection.Close

The problem I have is that the list was generated from a list of extension numbers and there owners and are in First name Last name format. Our NT logon is First name First letter of last name. (Example - Adam Smith = adams)

The PART "sAMAccountname" part is using the names provided in the excel sheet and comparing against AD's logon usernames. This means that they all fail and aren't found.

I've found the object "cn" that compares against the display name instead (or at least I think it does) I've tried running the script with "cn" instead of "sAMAccountName" but it only finds about a 1/4 when I know that it should be closer to 3/4.

Any ideas why???

Have I used the correct method or is there a better way of doing this than what I've done??

Thanking you in advance
You may be trying to compare apples with oranges. Try listing the active directory users and comparing their format with the Excel name format (last name first?, first name first?, comma included?, etc)

You may have to manipulate the names in one of the data sources before you even attempt a compare.

Don't know MUCH about AD, but if a single user can have multiple entries, I WOULD check the recordset count for zero and not zero.

Good luck. Hey,

Thanks for the reply.

I managed to fudge a fix. I basically took the first name and the first letter of the surname and tested it against AD. If any name failed I then took the first name and 2 letters form the surname.

Since that is our standard it gave PRETTY good results. This is something i have to ever again, so it was close enough.

Cheers for the advice.

1025.

Solve : Batch File Problem.?

Answer»

Hello,

I WANT to make a BATCH File which will automatically press

1). 'TAB' key.
2). 'Enter' key.
3). Copy some content from a TEXT file and PASTE over a 'Text Box'.

Thankx in Advance.Not possible in Batch. Possible in VBS.Are you sure we cannot press 'Tab'/'Enter' key. There must be some code.Negative.

Do you want the VBS code?
Ok . If you have the VBS code then please give me.

Thankx.Code: [SELECT]set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 2000
For i = 1 to 1
WshShell.SendKeys "{TAB}"
WScript.Sleep 500
Next
Save it as file.vbsThank you for your reply it is working fine.
What is vbs code to open a web page.

Thank youI have got the answer for my question . No need for searching it.

Thank you.Heh, all right.

1026.

Solve : VBscrip Progress bar??

Answer»

hey all,

I've written a script that I run and users machines once I've installed xp. It just installs the needed programs and saves me having to do it.

So far I've been using timed pop-up's to alert me when programs have finished installing. I'd really like to have a progress bar DISPLAYING the current program being installed and the progress of the script.

Is this possible in VBS??

Bearing in mind that the script attached is about my limit in VBS, can you point me in the right direction??

Thanking youNo elegant solutions that I'm aware of. It's possible to USE an HTML progress bar object within IE, but that usually raises all SORTS of pesky ActiveX issues. You can also wrap an HTML FRAMEWORK around your VBS code creating a HTA file. This eliminates the IE issues but you lose access to the WScript object and it's methods and properties.

Your code shells out to many external files, which would make UPDATING the progress bar problematical.

1027.

Solve : Puescodecode help drawing flow chart ( attached flowchart)?

Answer» PROBLEM with flow CHART drawing?
I have this assignment on drawing this code and i ws wondering if someone can help me. I kind of have an idea on how to start it

start

if temperature is greater than 65 degrees then

get cotton pajamas

else

get flannel pajamas

endif

put on pajamas

if tomorrow is a school day then

set alarm clock

endif

while thirsty

drink water

endwhile

while teeth need brushing

brush teeth

endwhile

go to bed

stop

[recovering disk space -- attachment DELETED by admin]Cannot read your doc. Character ENCODING is wrong for English character set.
1028.

Solve : Help needed with 'NET START'?

Answer»

I need to write a bat SCRIPT which starts 3 services in a predefined order and if any of these services doesn't start PROPERLY then script should terminate WITHOUT TRYING to start services below it.

For Example: let there be 3 services ServiceA ServiceB, ServiceC.
First ServiceA should be started then ServiceB and then ServiceC.
If ServiceA doesnt start properly then script should terminate without starting ServiceB aand ServiceC. And also if ServiceB fails then it should not start ServiceB but also stop already started ServiceA.

Please help me in this.

Thanks in advance.

~Gaurav
[link removed - please don't ADVERTISE]
Something like this might work:

Code: [Select]@echo off
net start serviceA
if errorlevel 1 goto :eof
net start serviceB
if errorlevel 1 (
net stop serviceA
goto :eof
)
net start serviceC
if errorlevel 1 (
net stop serviceA
net stop serviceB
goto :eof
)

This might work with || and && but I didn't have any services lying around waiting to be started, so you'll have to do the testing.

1029.

Solve : Form Coding for id?

Answer»

One software or ANOTHER changed the FORM code I had to having no ID, and I'm getting an error - "Associate form controls with tags using the 'id' attribute."
How do I put the id and LABEL tags back in?


129 Search The Internet
131
133
134
135
136 http://www.actualcures.com/loggo.gif" alt="Google" />
137
137
137
138
138
139


Thanks,

Roscoe

1030.

Solve : problem in develop intelligent tutoring system?

Answer»

anyone can tell me what kind of programming language, DATABASE suitable for the expert model for the intelligent tutoring system(ITS)?

Here is some info:
http://en.wikipedia.org/wiki/Intelligent_tutoring_system

And With GOOGLE being my source, I found out that ITS('s) are programmed with C++.

I think I answered your question, I'm not quite sure what you MEANT but hopefully this HELPS If you need some C++ or C# HELP or tutorials go ask on programminghelp.com they have a couple of SMART C guys over there. Good luck with your installer=)

1031.

Solve : batch file to xcopy?

Answer»

we have a series of towers xp, sp2/sp3 that we back up every night to a server. i use the following code...

rasdial.exe (establishes VPN)
set folder=%date:~0,2% (every day it backs up, it makes a new folder for 31 DAYS and rewrites on the particular day)
net use.... \\server\...(maps drive to use, destination)
cd C:\Operations\Forms (source)
ECHO D| xcopy c: \\server\pll065\%folder% /s /E /h /D
rasdial.exe test /disconnect
shutdown -r

i have downloaded the sleep.exe file, and should that be in the system 32 folder, somewhere else, or does it really matter where it is located? what i would like is a series of pauses (after rasdial.exe and net use...) i know that i have to use sleep XX to stop the process for XX seconds, but location of sleep is what i need to know.

also, how can i get the above batch file to create a report INDICATING date, how long the vpn was establihsed or how long it took to run the batch and amount of files that were updated? something like yyyy-mm-dd, hh:mm:ss, X files updated or backedup?

thank you,

jat

System 32 is the correct place for Sleep.exe

And for the reporting document. try the following code.
Code: [Select]echo %date%, %time% VPN Established > Report.txtadd this right before the rasdial.exe

then

Code: [Select]echo %date%, %time% VPN Disconnected >> Report.txtadd this right before the shutdown -r command.

In Report.txt it should look like this.

, VPN Established
, VPN Disconnected

Quote from: macdad- on July 15, 2008, 05:10:41 PM

System 32 is the correct place for Sleep.exe

Anywhere on the PATH is the "correct" place for executables.thank you, echo command line works. but i need to bug you guys again for two things.

First: as the echo command runs, the file writes over itself so i would have to view the file daily. i started to surf again, and to fix that problem i used another line i found on this site to rename the ORIGINAL Report.txt file:

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" %%f-%%e-%%d.txt

this adds the date, but the problem is if the backup is run manually, and the file already exists with the current date, the error message "Duplicate file name exists, or the file cannot be found" comes up and the report is not updated. so i tried to get creative, and thought i'd add a time stamp to the rename and tried:

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" %%f-%%e-%%d%time%.txt

(there is a line to rename the file with the system time, but then no date is readily visible, that's why i am looking for a date, time format.) no formatting of the time, just stamp the time so that the two files (if necessary) can be made on the same day. but with this line, i get the message:

...>rename "Report.txt" 2008-07-16 9:22:19.05.txt The syntax of the command is incorrect."

how do i fix it so it accepts the system date time?

The second thing that i would like to do is have it report in the Report.txt file what if any files were copied. the screen does show the file names that were copied, and the number of files that were copied. Can that be an "echo" line after the xcopy... line?

thank you for your help.


jat
timestamp has spaces so filename will need quotes

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f-%%e-%%d%time%.txt"
tried recommended line, and error is "A duplicate file name exists, or the file cannot be found." thinking that maybe having the "" around just the time stamp, did not work either. thank you for your help though.

jat
The reason why you get that message is because you cannot have colon characters (':') in a filename. Since the %time% variable is of the form hh:mm:ss.cs (cs are hundredths of seconds), any attempt to use it as part of a filename will fail.

You need to replace each colon in %time% with an allowed character such as a dash.

Code: [Select]REM Replace a substring with another

REM 1. replace each a in %string% with a b
REM set string=%string:a=b%

REM 2. Replace cat with dog

REM set string=feed the cat every day
REM set string=%string:cat=dog%

REM Replace 1 char with nothing (i.e. remove each occurence)
REM 3. remove every character a from %string%
REM set string=%string:a=%

REM 1. Replace : with - in %time%
set ntime=%time::=-%

REM 2. Replace . with - in %ntime%
set ntime=%ntime:.=-%

REM Personally I think it looks better with a separator between the date and the time

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f-%%e-%%d %ntime%.txt"

Code: [Select]REM Personally I think it would look even better with only 1 separator between date and time

REM if you don't need the hundredths of seconds you can remove the last 3 chars from %time% by slicing it
set ntime=%time:~0,8%

set ntime=%ntime::=%

for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "Report.txt" "%%f%%e%%d-%ntime%.txt"


1032.

Solve : help excel string?

Answer»

Hi

I've CREATED my own INVOICE in excel.
what I would like to do is have about 6 row so I can add items, when I fill in the 6th row it will AUTOMATICALLY insert an new row with the PREVIOUS formula.

If someone WANTS to mail me direct I have no problems then I can send a file and further explanations.

Thanks in anticipation

Regads
Pohhop

1033.

Solve : Oulook --> Access VBA quesion...?

Answer»

hi guys,

I'm writing some VBA code in outlook and I'm after a little help.

In access, I have a database called "CUSTOMERS" with one table within it called "New Customers" This table has 9 fields, first-name, last-name, home number, mobile number, appointment date, appointment time, CITY and DESCRIPTION.

In my outlook code I have 9 filled variables called, lanme, fname, homenum, mobile, apdate, aptime, city and descript. (which are pulled from a FTP site after a email comes in with a certain subject) I like to be able to fill the fields of my database with these variables from outlook.

This is even possible???

Can anyone point me in the right direction??Ok,

So i've created a connection in ODBC, and used the code below to CONNECT to it.

Code: [Select]Set objADOConn = CreateObject("ADODB.Connection")
objADOConn.Open "DSN=ocs"


As I understand it, I'm suposed to use a recordset and a SQL statement. Sad thing is, i have no ideas what either of these are/should be !!!This Scripting Guy article should show you a generalized method. Most of the code is boilerplate. You need to fill in the particulars.

Code: [Select]objConnection.Open "DSN=ocs"

objRecordSet.Open "SELECT * FROM Employees", _ 'name of table to update
objConnection, adOpenStatic, adLockOptimistic

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\Scripts\Test.txt") 'name of FTP file

Code: [Select] objRecordSet.AddNew
objRecordSet("db lname") = ftp lname
objRecordSet("db fname") = ftp fname
objRecordSet("db home num") = ftp home num
objRecordSet.Update

The recordset methods do all the heavy lifting. If you have any questions be sure to post back.

Good luck. Fantastic!!!

I had to jiggle a few things round.

I already had a function to read values from txt files, so used that instead.

But it work's like a CHARM!!

Thaking you!!




Code: [Select]Private Sub update_access()

Fname = GetFileContent("C:\FTPfeed\fname.txt")
Lname = GetFileContent("C:\FTPfeed\lname.txt")
email = GetFileContent("C:\FTPfeed\email.txt")
homenum = GetFileContent("C:\FTPfeed\homenum.txt")
mobile = GetFileContent("C:\FTPfeed\mobile.txt")
APdate = GetFileContent("C:\FTPfeed\APdate.txt")
APtime = GetFileContent("C:\FTPfeed\APtime.txt")
city = GetFileContent("C:\FTPfeed\city.txt")
descript = GetFileContent("C:\FTPfeed\descript.txt")

Set objADOConn = CreateObject("ADODB.Connection")
objADOConn.Open "DSN=OCS"

Set objRecordSet = CreateObject("ADODB.recordset")

objRecordSet.Open "SELECT * FROM data ", objADOConn, adOpenStatic, adLockOptimistic

objRecordSet.AddNew
objRecordSet("LastName") = Lname
objRecordSet("FirstName") = Fname
objRecordSet("HomePhone") = homenum
objRecordSet("EmailAddress") = email
objRecordSet("Appointment Date") = APdate
objRecordSet("Appointment Time") = APtime
objRecordSet("City") = city
objRecordSet("Description") = descript
objRecordSet("MobilePhone") = mobile
objRecordSet.Update

End Sub

1034.

Solve : QBASIC Help?

Answer»

Hey,

I have an idea for a program, but I'm unsure as to how QBASIC would do this. I want to have:

Type to read from drive A... etc.

And then using the SHELL statement access the drive, redirect the contents to a file and then print the contents of the file to stdout in a format that I choose. Maybe in a box or GRID and aligned to the middle. So far I have the OUTPUT of DIR A: redirected to a .txt file but I don't know how to use the OPEN statement to get the file placed in the variable.

Anyone help?

I know QBASIC is vintage stuff, but it's fun to mess around with it and learn stuff . This belongs in the Programming forum.Which version of QBasic are you using?Yes. There's the QBasic ide / interpreter which comes with MS-DOS & Windows 95/98/ME, and there's QuickBasic (various versions).
I'm using the Qbasic IDE with MS-DOS 7.10. As you have the latest and greatest MS-Dos version I will assume you have QuickBasic ver 4.5.

At the top RH corner you will see "Help" which gives access to the QuickB help file. Access the Open command in the index and you will find a great screed about how files are opened.. I have attached two screen images from it to make things simple for you. The first image (Open) shows the latest way of opening a file in QuickB, the second (Open1) which I prefer to use when Access and Lock are not required, shows an older version which is included for backward COMPATIBILITY with QB.

The simplest command to open a sequential Input file (see Open1) is IMHO:
OPEN "I", #1, "Path\Filename"

Good luck



[recovering DISK space -- attachment deleted by admin]QuickBasic 4.5 is the last version of the commercial Microsoft BASIC ide & compiler which can make .exe files. Qbasic is the cut down product provided as part of MS-DOS and Windows 9x. It cannot make exe files. I think it is clear that CosmicFlux has the latter.Quote from: Dias de verano on July 28, 2008, 10:28:35 AM

QuickBasic 4.5 is the last version of the commercial Microsoft BASIC ide & compiler which can make .exe files. Qbasic is the cut down product provided as part of MS-DOS and Windows 9x. It cannot make exe files. I think it is clear that CosmicFlux has the latter.

Then he has the perfect reason to upgrade...I know how to use the OPEN statement, I'm just unsure of the string that I'd use to read the contents of a file and display them on the screen.

I'll have another look!

Thanx!

Oh, the IDE says MS-DOS QBasic version 1.1. Should I get 4.5?

Quote from: CosmicFlux on July 30, 2008, 02:07:02 AM
Oh, the IDE says MS-DOS QBasic version 1.1. Should I get 4.5?

Certainly, why drive a Skoda when you could be behind the wheel of a RR?

How you input the contents of the file depends on its format, you could start by looking at the Input and Line Input commands in the Help file.

Good luck

You should know that QBasic 4.5 is a Microsoft copyright product and the only legal way to get it is to buy a floppy install set e.g. on Ebay.

To open a text file and display it on screen

Code: [Select]open "I", 1, "myfile.txt"
REM alternative format of OPEN command
REM open "myfile.txt" for input as #1
do
if eof (1) exit do
line input #1, l$
print l$
loop
close 1
1035.

Solve : QBASIC PDS 7.1 capable of 3D Graphics????

Answer»

Ok i read in the index that QBASIC PDS 7.1 can work with .OBJ files. and some 3D files are OBJ Files. Does that mean that QBASIC can work with 3D graphics(like the ones in Doom). I know this is probably a stupid question but i have never worked with QBASIC.

Thanks in Advance.
Well now, possibly

Good luckThanks Dusty.I'm not particularly sure what your asking, but any programming language capable of graphics (QB and all it's flavours, for example), is capable of 3d graphics, it's just that you'll need to write the 3d-transformation and projection code, not EXACTLY a light undertaking. I'm sure you'll find libraries of some sort that can help you.


the QuickBasic Index is talking about Object Code files, which are generated one per each module, and then linked into the final EXE. this is true for almost all compiled programming languages. For example, if you had a Module called "MODMAIN.BAS" and another called "MODPROCS.BAS", you could write a bunch of helper procedures in MODPROCS, and, given the appropriate include information (in a .BI file, if memory serves) you could use procedures in MODPROCS.BAS (compiled to MODPROCS.OBJ by the BC compiler) in MODMAIN.BAS! Then, MODMAIN.BAS would be compiled to an OBJ file as well, and both it and MODPROCS (and I believe some runtime OBJ files as well) are linked into a final executable.A case of extension confusion I think.
The part I think is humourous is that the OBJ 3d file format is almost sure to have been invented LONG after Quick Basic 7.1 was released.well thats pretty much why i asked the question. cuz i knew that obj is a 3D file but since your telling me that it was created after QB came out then that changes the story. but thanks BC for your helpQuote from: macdad- on July 19, 2008, 06:42:02 AM

well thats pretty much why i asked the question. cuz i knew that obj is a 3D file but since your telling me that it was created after QB came out then that changes the story. but thanks BC for your help

macdad, have you ever heard of Google?

http://www.google.co.uk/search?source=ig&hl=en&rlz=&=&q=obj+file+extension&btnG=Google+Search&meta=&aq=fIt would also REVEAL a lot of information to read about the OBJ files within the QBX help, rather then just read the headings and jump to conclusions.


direct quote from the QBX help files(I had to start my laptop for this- I must not have put my older DOS stuff onto this comp due to XP). Besides, there's nothing quite like going naked at the prompt (that is, no helpful GUI waiting the background. Pah, Who needs a GUI when you can type commands a heck of a lot faster. Anyway...

The BASIC compiler creates .OBJ modules that can be linked with .OBJ modules created with the following Microsoft products:

C Compiler Version 5.10 and higher
QuickC compiler Version 1.01 and higher
Pascal Compiler Version 4.00 and higher
Fortran Compiler Version 4.10 and higher
MACRO Assembler Version 5.00 and higher

Link BASIC .OBJ modules first when creating mixed language programs.



wow, FORTRAN just keeps popping up in these forums lately. oh well. I find it strange that it wasn't in caps in the QBX help...Dias yes i have used google. and yes i looked up OBJ file before i posted this topic. but on FileExtensions.com it didnt tell me when it was created so thats my fault for not GETTING the correct info.
1036.

Solve : Crystal Reports 8 Dll?

Answer»

Hi, I'm LOOKING for the the Dll crpe.dll pertaining to Crystal Reports 8.

Does anyone knows which Dll version use the CR8?

Cheers

There seem to be two of them crpe.dll and cpre32.dll. You can check this page and decide which is relevant. You can also DOWNLOAD the QUERY engine if that is helpful.

Good LUCK. thanks a LOT, I'll check it!!

1037.

Solve : Can someone please help java program?

Answer»

I need to FINISH this program as soon as possible and i am having trouble. The specification is to Write a Java program NAMED lab32. The program gets the length and the width of a rectangle from the user, calculates the area and displays result. CREATE, compile and test the program using jGRASP compiler.


import javax.swing.*;
public class lab4
{ public static void main(String [] args)
{
doublearea;
double length;
double width;

//DECLARE three variables named length, width and area of type double
double length, _____width_____, _____length_______;
//Declare a String object
String s;
//Input the length using showInputDialog
s = JOptionPane.showInputDialog(“Enter the length:”);
//Convert the length input to double
length = Double.parseDouble(s);

//Input the width using showInputDialog
_________________________________

//Convert the width input to double
__________________________________

//Calculate the area
__________________________________

//DISPLAY the length, width and area
System.out.println("Length: " + length);
//Display the Width
____________________________
//Display the area
____________________________

System.exit(0);

}//close main

}//close the class

Sample output

1038.

Solve : Creating a batch file to swap monitors?

Answer»

I'm trying to create a batch file that will swap my SECONDARY monitor with my TV. Anyone have any helpful tips. This is my first attempt at batch files. I"m using the Catalyst Control Center.You mean like FN + F7?Not exactly. I've got a dual monitor setup at my desk. I also have the Svideo out going to my tv. I am trying to come up with a batch file I can run when I WANT to swap my secondary monitor with my tv. That way I can watch movies I have on my computer directly on my tv. CURRENTLY I have to bring up the Catalyst Control Center, LET it load, swap the monitors, change the RESOLUTION. I'm just trying to save time.

1039.

Solve : download data from web sql databse?

Answer»

hey all,

I've got my self a website that has a sql database on it. The data base currently holds data from an online form.

I'd like to have a script that can download the last entry from the database but I'm unsure how to go about it.

The hosting company have provided me with a "perl" and "php" string so I can connect, but I've never used either language, so I'm a bit lost.


Anyone got any ideas??

Cheers in advance Have you got PHPMyAdmin on your website? There is an option to download the database in a .zip file.
But if thats not what you want, Im sure you could PHP Mail to email the last entry in the form to you.

Good luck. thanks for the reply.

yes, I do have PHPMyAdmin in my control panel but I'm trying to automate it and I couldn't find a setting to do this for me.

Basically, the site has been written by SOMEONE else, and I'm trying to add a few features. I no nothing about coding websites, so trying to get the site to email me with the data i need when in input's to the database, is like try to get blood out of a stone!!!

What's the easiest platform to run php code on my local machine??

I'll get that and then script a SQL query that will get me the information I'm after??

Cheers agian
ok, I've installed wamp and I can now run xxx.php script from the command LINE.

I'm using this;

Code: [Select]<?php
$dbhost='localhost';
$dbuser='root';
$dbpass='password';

$conn=mysql_connect($dbhost,$dbuser,$dbpass)ordie('Errorconnectingtomysql');

$dbname='petstore';
mysql_select_db($dbname);
?>

am i right in thinking that "dbhost" should be my website address?? (www.xyz.com) the dbuser and dbpass are PRETTY clear, as is the dbname.

I'm getting an error "Fatal error: Call to undefind function mysql_err() on line 6"

any ideas?Quote from: blastman on July 21, 2008, 09:34:27 AM

am i right in thinking that "dbhost" should be my website address?? (www.xyz.com) the dbuser and dbpass are pretty clear, as is the dbname.

No, "dbhost" is right as localhost, because the server at http://www.xyz.com/ is localhost. But if you are testing it at home using WAMP, it will also be localhost.

Quote from: blastman on July 21, 2008, 09:34:27 AM
Code: [Select]<?php
$dbhost='localhost';
$dbuser='root';
$dbpass='password';

$conn=mysql_connect($dbhost,$dbuser,$dbpass)ordie('Errorconnectingtomysql');

$dbname='petstore';
mysql_select_db($dbname);
?>

This is not a good way to store your username and password, though as anyone, if they have the web address, can view it. You would be better off to save it as "these_are_my_database_settings.php" or something to make it difficult for someone to GUESS it. Also, be sure to close the database connection:

Code: [Select]<?php
$con=mysql_connect("localhost","peter","abc123");

if(!$con)
{
die('Couldnotconnect:'.mysql_error());
}

//somecode

mysql_close($con);
?>

It would be quite a long script getting all the form fields from a database to an email.

You could try W3Schools for more information.
Im kind of new to PHP, myself, but if you cant find anything here, I will help you as best I can. cheers fro the help;

I've managed to get connected to my remote mysql server OK, but I'm having trouble with getting values from the database.

I have a table called 'main'. in this table there is s column called 'id'. I want to know what the max number is in this column. I have the sql statement right, but it returns a 'resource' whcih when i run get_resouce_type() it produces "mysql query"

How can I see the value that the sql statement produces??? If I run the sql statement on the server it produces "7" which is what I'm trying to get via my remote script.

Cheers in advanceYou could try something like this:

Code: [Select]<?php
$con=mysql_connect("localhost","username","password");
if(!$con)
{
die('Couldnotconnect:'.mysql_error());
}

mysql_select_db("my_db",$con);

$query_table=mysql_query("SELECT*FROMperson");

while($row=mysql_fetch_array($query_table))
{
echo$row['FirstName']."".$row['LastName'];
echo"<br/>";
}

mysql_close($con);
?>

If you had two fields in the table, "FirstName" and "LastName", this would write the contents of those fields.

Alternatively, you could email them to an email address like this:

Code: [Select]<?php
$con=mysql_connect("localhost","username","password");
if(!$con)
{
die('Couldnotconnect:'.mysql_error());
}

mysql_select_db("my_db",$con);

$query_table=mysql_query("SELECT*FROMperson");

while($row=mysql_fetch_array($query_table))
{
$to="[emailprotected]";
$subject="Testmail";
$message="$row['FirstName']."".$row['LastName']";
mail($to,$subject,$message);
}

mysql_close($con);
?>

Please dont copy and paste it, because some of it may be incorrect.
1040.

Solve : plzzz help me out !?

Answer»

i want to make a circle consisting of 72 LEDs (in visual basic using ACTIVEX controls) can some one help me out how to make this i ll b very grateful and can someone guide me from where i can get free activex controls like TOGGLES switches,,,buttons,,LEDs,,,ETC any link or so plz
regards
honeyMany ActiveX controls are commercial products ($$$). If money is no object and you're REFERRING to VB6, this may just help you out:

ActiveX

Good luck.

1041.

Solve : Batch Script searching an exe file and execute it.?

Answer»

Hi Guys,

I'm a new guy here, and looking forward for your assistance.

I developed an ms access database and WANT the USER to invoke it thru batch script, my problem is each users INSTALLED their ms access software in different location (not consistent), my intension is to locate that ms access exe and execute it. I have my initial script but the output giving me "\\" before the exe file name (i.e. C:\PATH\\MSACCESS.EXE).

Here's my code: This script is giving the result on the first occurance only (first find)

Code: [Select]@ECHO OFF

SET filename=msaccess.exe

FOR /R C:\ %%a IN (\) DO (
IF EXIST "%%a\%filename%" (

SET fullpath=%%a%filename%
GOTO break
)
)
:break

ECHO %fullpath%

pause>nul
Any Help will be appreciated.

Thanks Guys.A while back when dealing with Access97 and 2000, I just used this instruction which worked:

msaccess.exe "\\UNC Path to \database.mdb"


You place your shared database location into the UNC path. This way it doesnt matter where MS Access is installed, Windows knows where MS Access is and invoking this command with a UNC Path should work for you. The Batch File could be a single line, however you can do away with batch and just mail a shortcut that invokes MSACCESS.EXE "\\Database_Path_Location\Name.mdb"

As long as everyone is running same version of Access, installation location not important, you are all set, however if this database is for say 2003 and you have users with other versions you can run into version mismatches and run into issues which you are probably already aware of.One of the first things, is that you are calling msaccess.exe, not a specified db file.

Quote

SET filename=msaccess.exe

I would use the snippet you have, as such:

Code: [Select]@ECHO OFF
:Start
REM Change name to whatever the db name is, not access itself.
SET filename=NameOfDB.accdb

FOR /R C:\ %%a IN (\) DO (
IF EXIST "%%a\%filename%" (

SET filedir = %%a
SET fullpath=%%a%filename%
GOTO break
)
)
:break

REM This says change to the file directory. If directory errors twice, then an error message is displayed.
cd %filedir% || cd /d %filedir% || ECHO There has been an error locating - %fullpath% - Path may contain spaces or symbols that cause this error.

REM If the file exists, calling it with a start command will launch the associated program.
start %filename%


REM -----------------------------------------------------------------
REM This snippet added for double checking and closing.
REM -----------------------------------------------------------------


REM change "msaccess.exe" for use with another program name (if it is ANYTHING else).
tasklist /nh /fi "imagename eq msaccess.exe" | find /i "msaccess.exe" >nul && (
exit
) || (
Echo The script has errored, and MS Access is not running.
echo Check script for errors and/or check MS Access version for calling compatibility.
echo PRESS any key to attempt the search again. Close the window to exit.
goto Start
)
ECHO Ambiguous error: CHECK SCRIPT FOR ERRORS.
pause>nul
exit

I tested this, and I know that it isn't working atm... but I think it'll set you in the right direction.

I'll try to update this with something working if I can... but I'm pretty busy right now.
1042.

Solve : Use batch file to call sqlcmd?

Answer»

Env: MS Server 2008, MS SQL Server 2005

During the last couple of months I've discovered the beauty of outputting reports from MS SQL DB by calling sqlcmd from batch files.


This batch file outputs data that correspond to the WHERE clause, meaning that is 7 days old or newer.

Code: [Select]@ECHO on

setlocal enabledelayedexpansion


:: How many days back should a date
:: be calculated?

set days=7

:: Calculate date that is x days back
:: for use in SQL Query below.
:: Date format on server: YYYY-MM-DD (2013-02-06)
:: Date format for SQL Query: YYMMDD (130206)

echo wscript.echo ^(Date^(^)- %days%^)>day.vbs
for /f %%a in ('cscript //nologo day.vbs') do set ydate1=%%a
del day.vbs
set ydate1=%ydate1:/=%
set y=%ydate1:~0,4%
set m=%ydate1:~5,2%
set d=%ydate1:~8,2%
set ydate2=%y%%m%%d%
set ydate3=%ydate2:~2,7%

SET SQL="SET NOCOUNT ON;SELECT col1,col2,col3 FROM t1 JOIN t2 ON (t1.col4=t2.col2) WHERE (t2.col1 LIKE '%%Wildcard goes here%%') AND (t1.col5 >= '%ydate3%') ORDER BY col1 ASC"

call sqlcmd -S server\s1 -U sa -P pw -d DB -Q %SQL% -o output.txt -u -n -s "" -w180

endlocal

The problem:
Seems as wildcards inside the SET SQL won't work for me.
ANYONE who knows what I'm doing wrong here?

Any help is appreciated! http://www.w3schools.com/sql/sql_wildcards.asp
Are you trying to use DOS type wildcard ( * ) in place of what should be SQL wildcard instruction of
( % ) ?...and are you aware of the need to escape percent signs in batch scripts?
Good point Salmon Trout, you have to use ^% vs ^*Thanks for advice guys. I tried to escape the percent sign with ^% using the following combinations:

^%
^%%
^%^%

but can't get it to work. The query returns nothing and I'm SURE it isn't because of the %ydate3% clause which works fine when I only use that one.

Previously I followed Rob van der Woude's advice, which also don't fix it: In batch files, the percent sign may be "escaped" by using a double percent sign ( %% ).
That way, a single percent sign will be used as literal within the command line, instead of being furter INTERPRETED.
(source: http://www.robvanderwoude.com/escapechars.php)
Quote from: DaveLembke on February 06, 2013, 04:11:43 PM

Good point Salmon Trout, you have to use ^% vs ^*

No, to get a batch script to echo % you need to put %%
Thanks for your efforts, but the problem remains...with no output from the query.

Any advice that points me in the right direction would be appreciated. Do you get an output if you run the query manually? Have you checked that the batch is producing exactly the same query?
Salmon, thanks for taking the time to help out.


Quote
Do you get an output if you run the query manually? Have you checked that the batch is producing exactly the same query?

The SQL query runs without problem in MS SQL Mgmt Studio using the wildcard LIKE clause. The result that is returned there is correct.
The DOS prompt produces exactly the query that it should but nothing is returned as output. No visible errors are returned when running the batch script in the DOS prompt.

I've narrowed down the batch script and SQL Query to get rid of noise to make troubleshooting and testing easier, see code below:

Code: [Select]@echo on
setlocal enabledelayedexpansion

:: There is one supplier with ID 41003898 in database, type is char

set sql="SELECT SupplierID FROM Supplier WHERE SupplierID LIKE '4100389%%'"
CALL sqlcmd -S server/s1 -U sa -P passw -d DB -Q%sql% -o output.txt -u -s "" -w180
output.txt
endlocal
If I change the SQL above and put LIKE '41003898' in the batch script it returns the correct result = one row in the output file.Since you have ECHO on, what happens if you put PAUSE at the end of the batch to halt it to give you time to copy the echoed sqlcmd line from the console and paste it into another console window, i.e. run it manually?

I note you have "narrowed down" the batch; that is all very well, and I understand the reason, but you'd be surprised how often the cause of a script failing is somewhere in what has been removed "for clarity". For example it makes me uneasy to see you using a double colon (a broken label) as a comment. It might have been OK in MS-DOS, but in Windows NT family batch scripts this is a frowned-on practice (for example it breaks a script if it is within parentheses such as in a multiline FOR or IF structure.) It is undocumented, unsupported and should be avoided.




Assuming sqlcmd is the Microsoft sqlcmd.exe, why are you using CALL to invoke it?


This was embarrasing...so simple, yet so friggin difficult for me to solve on my own...thanks a bunch Salmon.

Leaving out the CALL cmd solved it. A bit strange though that only the wildcard LIKE clause broke and nothing else...

CALL is only for running one batch file from another and passing control back to the first when the second one finishes; you can use START for other types of executable but you can use the path and/or name of an exe directly.
1043.

Solve : Python 3 script?

Answer»

I need help writing a python script that will loop through a jar file and extract all files of a specified TYPE while keeping the file and directory names.

Using the latest version of python 3use the ZipFile module. You'll have to test the entries yourself. maybe something like this: (untested):

Code: [Select]#!/usr/bin/env python
import OS
import zipfile
zip = zipfile.ZipFile(argv[1], 'r')
for name in zip.namelist():
#perform test condition here to see if name is a name you want to extract.
#eg if name.endswith(".java"):
zip.extract('.\'+z.read(name))
zip.close()
how do i pass the jar path to the zipfile object?
When I pass a file path in quotes to ZipFile() It returns
MessageFile NameLinePosition
SyntaxError
(unicode error) 'unicodeescape' codec can't decode bytes in position 2-4: TRUNCATED \UXXXXXXXX escape (module1.py, line 16)C:\Users\Jordan.Office-PC\Desktop\module1.py1622

How can I fix this?
Python String literals


You are inadvertently using an escape character. (\U). As the documentation notes before the table:

Quote

Unless an "r" or "R" prefix is present, escape sequences in strings are interpreted according to rules similar to those used by Standard C.
I had the 'r' in there and the error was the same.

Current code:
Code: [Select] import os
import zipfile
from zipfile import *
zip = zipfile.ZipFile("C:\Users\Jordan.Office-PC\Desktop\BatPad.zip", 'a')
names = zip.getinfo()
print(names)
zip.close()I don't see an 'r' in there. It goes before the string literal itself- eg r"C:\Users" rather than "C:\Users".

You'll encounter a error where ZipFile.getinfo() takes two arguments and you are only passing one (well, none, but it gets self since it's an instance method). IF only there was somedocumentation on these methods and what they do, could save a lot of you simply googling how to do what you want and making a Frankenstein's monster out of the bits you find. You're probably after .namelist() here.I get the same error with 'r' in there. could be that I am on windows vista and need to find a way to run a py script as admin?
P.S:your documentation is for 2.7.4, I am using 3.2.1Quote from: TheWaffle on April 27, 2013, 05:48:02 AM
I get the same error with 'r' in there.
Post the code you are actually using.

Quote
could be that I am on windows vista and need to find a way to run a py script as admin?
Assuming the user folder you are trying to access is the one for the account being used, no.

Quote
P.S:your documentation is for 2.7.4, I am using 3.2.1
There is no difference between the two that would affect this script. my notations on the getinfo() method are still accurate. I've tested my original implementation, which required a few FIXES:

Code: [Select]#!/usr/bin/env python
import os,sys, zipfile
zip = zipfile.ZipFile(sys.argv[1], 'r')
for name in zip.namelist():
#perform test condition here to see if name is a name you want to extract.
#eg if name.endswith(".java"):
if name.endswith(".java")
print(name)
zip.extract(name)
zip.close()

It works in all the versions of Python I tested in. Accepts filename as part of the commandline. Your hang-up is on making a string literal, and you are almost certainly doing something wrong. What, I can't say- I lack psychic debugging powers so I cannot actually see the script you are running.
1044.

Solve : Running a python script from a VB program??

Answer»

Hello, this is my first post.
I'd like to know if/how I can RUN a PYTHON script from a vb PROGRAM.
Please/thank you.

1045.

Solve : PHP MySQL code for deleting items in cart doesnt work0?

Answer»

i am making php mysql code for admin side to delete ITEMS from shopping cart.Please FIND the error in the code , cause i cant find it.

Delete product is the place where i show the items selected by productid as options for admin to choose to delete.
Delete product works ,whose screen short can as well be shown in the document file.Delete product then submits the CHOSEN selected item to delete product1.

Delete product 1 is where i am trying to delete the option as chosen by admin via delete product.I tried my best to remove error in the delete product 1 but couldn't solve it , i will be grateful if you did.Please remove the errors in delete product document file.

1)Delete product code working showing form to choose option for deletion as shown in the image
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">


Delete Product Details


function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
ELSE if (field.value == '') field.value = field.defaultValue;
}








include 'header.php';
?>







Delete Product Details



if(isset($_SESSION['uname']))
{
include 'dbconnect.php';
echo "Welcome ".$_SESSION['uname'].",";
?>
if($_SESSION['utype']=='A' )
{
?>


Product Name
include 'dbconnect.php';

$sql="select * from product";
$res = $dbconn->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
$res->execute();
$disp="";
while($RS = $res->fetch())
{
$disp.="".$rs['name']."";
}
echo $disp;
?>
 


}
else
header('location: adminlogin.php');
}
else
header('location: adminlogin.php');
?>








include 'footer.php';
?>









2) Delete product 1 doesn’t work as there is some error in the code. Please remove the errors please. Here is the not working code of delete product 1. :
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
http://www.w3.org/1999/xhtml">


Delete Product Details


function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
else if (field.value == '') field.value = field.defaultValue;
}









include 'header.php';
?>







Delete Product Details



if(isset($_SESSION['uname']))
{
include 'dbconnect.php';
echo "Welcome ".$_SESSION['uname'].",";
?>
if($_SESSION['utype']=='A' )
{
?>

if(isset($_POST['txtPName']))
{

include 'dbconnect.php';
$txtPName=$_POST['txtPName'];
try
{
$sql="delete from product where idProduct=:idProduct";
$q = $dbconn->prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
$q->execute(array(':idProduct'=>$txtPName));
echo "

Product ID : $txtPName one quantity deleted";



}
catch(PDOException $e)
{
echo $e->getMessage();
}
}
else
header('location:deleteproduct.php');
}
else
header('location: adminlogin.php');
}
else
header('location: adminlogin.php');
?>









include 'footer.php';
?>






[recovering disk space, attachment deleted by admin]
1046.

Solve : Programming language C++?

Answer»

sir
please give me the complete detail of C++ BASICS which are helpful to me in writing any kind of program using c++. i mean i want the basics of c++?;;;;;;This is in plain English.
Quote

C++ All-In-One Desk Reference For Dummies by John Paul Mueller and Jeff Cogswell (AUG 31, 2009)

$2.26 Paperback (Used)
http://www.amazon.com/s/ref=nb_sb_ss_c_0_8?url=search-alias%3Dtextbooks-tradein&field-keywords=c%2B%2B+for+dummies&sprefix=C%2B%2B+for+%2Caps%2C269&rh=i%3Atextbooks-tradein%2Ck%3Ac%2B%2B+for+dummies
Quote from: Geek-9pm on February 04, 2013, 01:24:52 PM
This is in plain English.

I got this book when it was still new (and $35 or so if I remember rightly) and it was definitely worth it.

http://www.cplusplus.com/ is a good reference too, but I've never actually followed their tutorial specifically.This issue with C++ is there is too much info. The book I have here is like a telephone book for a large city. I will never finish it in my lifetime, unless I live to 110. (Which is possible.)

Microsoft offers a free version of Visual Studio, which includes a version of C++ Which tutorials and examples. Some people learn quicker with hands on tutorials instead of huge books.
some comments in another forum:
http://www.cplusplus.com/forum/beginner/68648/
Another BURP:
http://arstechnica.com/information-technology/2012/09/visual-studio-2012-free-desktop-development-tool-out-today-first-update-outlined/
More from the horse's mouth.
http://winsupersite.com/blog/supersite-blog-39/windows8/microsoft-releases-visual-studio-express-2012-windows-desktop-144234

From the above you see that it is not just about how to code. MS takes the approach that you want to look at the big PICTURE and the code is just a one of many bridges on your trip.

1047.

Solve : exporting data from excel to word, letter generator?

Answer»

i am trying to create a letter generator in excel / word like this :
http://www.youtube.com/watch?v=-npLOc6UUbQ
i have an excel data base with customer infomation and a word document that i fill the info in, at the momeny manually , i wold like to create a button on the excel doc that automatically generates a word document, or even a PDF,


PLEASE HELP!ACCESS Database with VB would be better than a flat excel spreadsheet database. As far as making PDF's, this can be done by PASSING a print INSTRUCTION with default printer of doPDF which is free. As far as populating a MS Word document, I haven't done that yet automatically without other macro software, however the information can populate a FILE that is saved as a *.doc etc and formatting tailored to work in the VB file write.

*Unable to view the video you linked from work, but just suggesting what I would do if I had to have a database that generated PDF's and letters/documents.

1048.

Solve : Programming in C?

Answer» CREATE a function called CreateArray(int n) which will create an array of INTEGERS (1,2,3,4,.....n) where n is a parameter of this function and it is the SIZE of the array. So eg. if I call the funtion this way : CreateArray[3], it should create an array 1,2,3. This function has to return a created array. 2. Create a function called PrintArray (int array[]) which will print the array created by CreateArray(n). 3. In main function call both functions so that we can see the results in the console. I use Codeblocks IDE.

Can someone help me with writing this program PLEASE?Is this Homework?YES. Can you help?
1049.

Solve : Changing javascript code?

Answer»

Is there anyone who can change a javascript code to a HTML code or Flash code for me, or help in anyway.

What are you trying to achieve? Linking the code will show us what you have and are trying to do as well.

All 3 of those are way different than another. Its not like Visual Basic, Visual C++, and Visual C# which for the most PART can all be coded to PERFORM same tasks, some of which perform the task better ( more efficiently faster and less coding than the other ).

Javascript runs within HTML, and HTML alone is no different than looking at a word document with formatting for font size etc in plain view. Flash can run within a webpage or EXTERNAL to a browser with a flash player etc.

Javascript and Flash can be used to spice up the limitations of HTML. And if ANYTHING you might be able to convert a Javascript to a Flash program, but never either of them to HTML unless you are only displaying static text that never changes. Looking at your JS we will be able to ASSIST further.


This is the code, wordpress do not allow javascript


1050.

Solve : help with python (opening directories)i=100 l=1 zulupass = input("please enter t?

Answer»

i=100
l=1
zulupass = input("please enter three digit passcode")
if zulupass=="666":
print("welcome")
open("/Users/johntoniolo/Documents/pythonprojects")
else:
print("retry")
zulupass = input("please enter 3 digit passcode")
l -=1

if l<=0:
while i>1:
print("ATTEMPTS EXCEDED!!!!!!")
i -=1




OK I WANT THIS PASSWORD PROJECT TO OPEN ANOTHER FILE UPON PROPER PASSCODE... SO HOW CAN I MAKE A PYTHON PROJECT OPEN A SPECIFIED DIRECTORY. (IM ON OS X BTW) as you can see in line 6 i want to open a file. what am i doing wrong or is python not capable of opening files. im very NEW this is my like 4th program WRITEN.

thanks
iUserQuote

open("/Users/johntoniolo/Documents/pythonprojects")

That's not how you open files in Python. In fact that looks more a folder name than a file. Have you looked at any Python documentation?


that file is just a file i half effortly grabbed. what i want is to be able to PUT a simple self writen password program on a file. it is a good project i think for learning and practicing codes. so lets say i wanted to open ummmm. all my pictures. id asign it open ("yadyada the path for my pictures folder") and it WOULD open finder with the pictures folder pulled up. is my logical thinking correct
See here for example

http://stackoverflow.com/questions/3520493/python-show-in-finder

http://stackoverflow.com/questions/6631299/python-opening-a-folder-in-explorer-nautilus-mac-thingie