Jump to content
xisto Community

kvarnerexpress

Members
  • Content Count

    413
  • Joined

  • Last visited

Everything posted by kvarnerexpress

  1. well i need a basket system whereby it tells you on the side how many items are in your basket and then u click on checkout and it goes to checkout. and scripts out there?i know i have to use arrays and stuff but i am not too comfortable with them! Kvarnerexpress
  2. I just recently downloaded Fedora Core 4 (4CDs) and burned them to disc. When I try to boot from it my computer just restarts. So I tried it out on another computer, worked fine and the disc passed the test saying I could install from it. Is this a RAM issue or a CD drive issue? I tried to boot from Knoppix too once but that failed, and guess what - it worked on the other computer. Any help appreciated.Thanks
  3. Below is my code, which pretty much follows the Ivor Horton book on learning C++. My question is this: Why does the program return the value of "80" for count3 in the last cout statement? Why doesn't it return a value of "50", since the cout statement is located in the outer block and so should reference the value made in the initializiation made near the top of main(). What am I not understanding here? Thanks. //ex2_06.cpp//demonstrating variable scope#include<iostream>using namespace std;int count1 = 100; //Global version fo count1int main(){ //function scope begins here int count1 = 10;int count3 = 50;cout << endl<< "Value of outer count1 = " << count1<< endl;cout << "Value of global count1 = " << ::count1 //From outer block<< endl;{ //new scope starte here...int count1 = 20; //This hides the outer count1int count2 = 30;cout << "Value of inner count1 = " << count1<< endl;cout << "Value of global count1 = " << ::count1 //From outer block<< endl;count1 += 3; //This affects the inner count1count3 += count2;} //...and ends herecout << "Value of outer count1 = " << count1<< endl<< "Value of outer count3 = " << count3<< endl;//cout << count2 << endl; //uncomment to get an errorreturn 0;} //Function scope ends here Notice from snlildude87: Code goes inside the code box. Quote goes inside the quote box. You don't have a problem with the latter, so put all your codes inside the code box. Thank you.
  4. What I am trying to do is make up a small HTML site which will be based localy on my computer and basicly show all of the images I have taken on different holidays. What I want though is when I click on an image for it to be opened up in Windows Picture Viewer. As the web site will all be saved locally on my computer and not be going on the internet is there any way of achiving this? I am running Windows XP Professional if it makes any differenceThank you in advance,kvarnerexpress
  5. Okay, so I'm still fairly new to linux (still newbie) and I've decided after talking to multiple people to install Gentoo, and after speaking with some people to go ahead and try it myself. But I'm getting stuck, maybe i should post this on the gentoo forums but I figured I'd post it here first and by the time I get home, hopefully be able to get further with my installation.So this is the first time I've tried installing something like this. I've installed Mandrake, Redhat, Fedora, and SuSE before but those all have graphical interfaces and make things easier then this.I got up to the point of installing (using stage3) and not sure where things went wrong.I probably went back and forth for quite a few hours and learned a lot while getting as far as I did. I installed Stage3, untarred and everything, used the mounts, I made 3 mounts, not sure how well I did this but I have a 120GB HD I'm using and its secondary, so its /dev/hdb (primary hd has Windows XP).I made 3 partitions, 1 - Ext3 512Mb (mounted at /mnt/gentoo/boot)2 - Swap 1Gb (swapon /dev/hdb2)3 - Ext3 100Gb (mounted at /mnt/gentoo )I first mounted hdb3, then hdb1, then did swapon /dev/hdb2.I went into the /mnt/gentoo and downloaded the Stage3 and the MD5 and checked, then did the tar command as specificed in the manual. After that I downloaded and checked the portage-20050303.tar.bz2, then used the tar commend as specified in the manual. So I beleive I did that all right, I'm not sure...(I did this last night for about 3-4 hours messing around so I may state some information wrong but if I do please correct me if you can )After that it talks about the make.conf file. I didn't edit that, this is where I got lost. I got to the point where I copied the network configuration to the correct place as specificed by the manual and used a mirror. Then I (forgot the commend) but got up to the point of emerge --sync and that went fine. But after that I'm stuck. I'm not quite sure what to do and I'm supposed to have something in /usr/src/linux but when I go to /usr/src/ the folder linux isnt there (not sure if thats right "/usr/src" but i went to the one specified in the manual) and when I was in the src folder, I didn't have a linux folder. This is where I got stuck, repeated the whole installation twice and learned a lot more than I did before but still didn't have the linux folder...does anyone know where I went wrong? Compiling the kernel I think. Not sure if I explained this well but I tried, and maybe someone will beable to understand what I'm doing wrong and help me. Thanks for taking the time to read this [edit] Incase your wondering why I didn't use all of my hard drive on my formating and everything, I was going to wait until I got everything installed and gentoo booted with either Gnome or KDE and from there make the rest of the harddrive a Fat32 Partition for transfering files from my Win XP to Gentoo back and forth. incase anyones wondering my computer isMotherboard: gigabyte socket 939 (nforce 3 i beleive...)Processor: AMD 64 3000+Memory: 512MB & 256 MBGraphics Card: (Something Like...)Nvidia Something MX 4 or something, i dont know, it was cheap, AGP and 64mbHDA - 160GB (Windows XP)HDB - 120GB (Gentoo, with 10 gig for FAT32)DVD Drive - (Forgot which kind)DVD R-W (+/-) DL - BenQ (forgot which kind)Moniter (Old Moniter ) Compaq M720Yeah thats about it i think...Only thing that when i boot linux up is it not recognizing the audio card, but the cd for it has linux files on it
  6. I'm wondering what open source converters are out there already.I'm generating legal documents that require names addresses etc.I want the ability for the end user to modify the base document whenever they require.I plan to use the TinyMCE WYSIWYG editor to let the users edit each page. I will populate names and addresses dynamically based on tags in the text.Is there something good out there that will convert the html to pdf reliably?
  7. The content on my pages either shifts or looks recognizably different between IE and Mozilla Firefox browsers. I formatted the text with css classes hopping that might help. However, that didn't help this problem. The page doesn't look the same in IE and Mozilla Firefox. What can I do to fix this?Thanks, kvarnerexpress
  8. I've created a form, nothing special, that uses a php script as a form action to input data into mysql. Nothing special at all about this scenario. One thing I'd like to do is have the php script redirect the user back to the html page that has the form the user just completed. I don't want to have to hard code the url into the header function because I use this php script with a bunch of other pages. Does PHP store the value of this page into some variable that the php script can use? Thanks.kvarnerexpress
  9. I am running Windows Xp Pro and recently I started having a problem with my recycle bin. When I right click it explorer.exe hangs and I have to end the process and re start it. I can however left click it and delete the contents of it once it is open. I have run a full system scan with F Prot and Norton 2004 and found nothing.Anybody know why this is happening?
  10. just wondering if there is a easy safe way to secure some webpages.i have a payment facility on my site which is linked through paypal. when the member has paid they are taken back to my site "thanks your payment has been successful page", once its went to this page the item is no longer listed on my site.now i have found away people can mess with this using the url. this means people can change just a few digits in the url and and mess the listings up on my site.after payment has been made the member is redirected to:-mydomain.com/class/thanks_paypal.php?myprod_id=78&MemberID=11this means i could over ride the id (78) with another id (80) (90) etc etc, this would then mean these items would show as sold and come off my site.is there away to either hide my url: so it only shows the following mydomain.com/class/or is there another way to make it more secure,thankskvarnerexpress
  11. I happened to run into a Website about game programming where an expert said the 1st game a newbie should code is tic-tac-toe.So I downloaded code to a simple version of that game in C++(which is the language I want to learn)from a site where this is legal.I suppose tic-tac-toe is a didactic game(as I read somewhere else).So ,I was wondering,are there any other(simple)games out there that can help me learn C++ and of which I can safely download the code without violating any laws?on a Linux Magazine I buy I found a dvd with all Gentoo source code but it is maybe too advanced for me,for the moment ,to study the kernel or programs like wine.Any help would be welcome.
  12. After windows fully loading, attempt to click on the desktop/taskbar/start button sort of make the system "hang". and all the icon disappear, including taskbar. Killing dr watson will restore back windows desktop! Sometimes during startup, Dr Watson Postmotem debugger appear.What is wrong with it?Windows XP Pro SP21GB DDR PC2700 ramAMD XP1800+
  13. I realize this may not be the proper forum, but I didn't know where else to put it.I created a custom shopping cart a while back where the orders were eMailed to the business owners. The owners would then calculate shipping and taxes, and orders were handled over the phone. They want to upgrade their system to accept credit cards via authorize.net, and want shipping to be automatically calculated.I don't know the first thing about calculating shipping. Does each item in the inventory database need to have a weight field? And do shipping companies figure in dimensions as well as weight? In your opinions, which is the best shipping company to use?
  14. Hi,I have a form with a couple of textfields - one for first name and one for last name. I'd like to give the ability to the user to add an unlimited amount of names but I don't want to display a million textfields, just one pair to start. How can I dynamically create fields upon the click of a button or link. They would have to be part of an array as well I guess. Can I have an array of textfields? How can this be done?Thanks
  15. Hey all,i dont know how easy this is to do or whether it can be done just using HTML or whatever. Basically i have 2 seperate navigation barstop nav bar is the parent navigation bar. when you hover over any of the entries in this parent bar it dynamically updates the second nav bar. what i ideally want is to highlight the parent link in black when i move the mouse over it BUT stay black until i select/ hover over another parent link.does that make sense?
  16. I'm using Dev-C++ as a compiler.(To use a classroom assignment as an example,) here is my problem...I've got classes Dog and Cat, which inherit from class Animal, (which uses iostream, stdlib, and some classes created by students) When I include both Dog and Cat in a new file, I get errors because I'm including libraries twice. (iostream included from Dog, and from Cat...)I can get around the problem by having Dog inherit Animal, and Cat inherit Dog (which sounds pretty idiotic, I know..I was just testing to see if the problem was really what I thought it was...) This is all on a PC at school, and I'm out for the summer, so I can't include the specific code...Please post if I'm not explaining myself well enough. Thanks!
  17. Just wondering if anyone's worked with securing images to avoid direct linking than just by obscuring the URL or using a .htaccess file. I briefly looked through the documentation and source for gallery and it looks like the images are stored under the web root, so anyone with a direct link can browse the images regardless of user privileges.I was thinking one way of doing this would be too store the images above the webroot directory so that visitor's can't navigate to them and having a php script that can read the image dir output the images by sending the correct headers and echoing out the data. For example you have showpic.php which accepts $_GET parameters:user idimage pathtimestamphashThe user id, image path, and a secret hash seed stored on the server are used to generate the hash. The script file checks that the data passed in matches the hash, and also checks that the timestamp is within a specified time interval (say 5 minutes) and if everything is valid it echoes the image data.Some downsides:-this seems like it will create a high load (fopen and fread for each image) on the server.-since we're relying on a timestamp, links to images will timeout even for valid users if they leave their computer. I suppose if a timeout occurs we can re-check session credentials and access priviliges for the image(s), but this will just cause even more load.Anyone have any better ideas, links to scripts that do this?Thanks,
  18. Hi everyone, can someone tell me how I can get all the modules from my project back into the same place. Over sometime I have worked on my project on different pc's on our network and unfortunately not saved them all into the pc folder. Now when I work on the project it fails to open some modules if the relevant pc is not online. I have tried just copying the files onto the same pc but this does not work and I get the same error. How do I resave my project with all the files on one pc ?
  19. I'm looking for a way to dynamically load and play movies. I have a folder where the movies will be stored in the same fashion (movie1.avi, movie2.avi, movie3.avi). I'm looking for a way to detect the end of movie event and start playing the next movie. This could be as simple as reloading the page since the page is actually in coldfusion and everytime the page refreshes a counter is incremented which then switches the filename for the embeded file to the next movie.Basically, I just need something to refresh the page at the end of the movie being played.Thanks!
  20. I've developed a page that is composed of HTML and PHP and it pulls info from a DB to create a dynamic page. The one issue I'm seeing is that I'm having to hit refresh to get the page to pull information newly added to the DB. The browser seems to be pulling from cache. Is there a tag or script I can use to tell the browser to never pull this page from cache? Thanks.kvarnerexpress
  21. Or will it create a circular include problem? What do you do if you need them to, and forward class declarations won't work?Forward class declarations only allow you to declare an instance of that class, but you can't access member functions, you have to include the header file. So if you use MS Visual C++ .NET and the code is placed in the header files, then what is the solution? I have two classes(forms) that need to include each other but it's not working. When I try it it stops recognizing the classes and gives errors like, "missing storage-class or type sepcifiers"I've also used about every combination of #ifndef, #define, #endif combo's I could think of. It's driving me crazy!Thanks for any help I might possibly get.
  22. Ever since I reinstalled Windows a few days ago, I've kept the installation disk in my CD drive. Last night, I removed it thinking that I finally had a stable installation. When I booted this morning, I got a "non-system disk" error. I rebooted several times just to see if it was a fluke, but I got the error every time. Then, on a hunch, I put my installation CD back in and Windows booted without complaint. May I ask why the f*ck Windows will only boot with the installation disk in the CD drive? I have never heard of that type of situation in my entire life. Also, when it did finally, boot, basically everying in Windows had been cleared. The color scheme, folder options, desktop background, etc, had reverted back to thier default settings for a fresh installation. Everything on my desktop or in my username/application data directorys had been wiped, and most of the programs I installed had revered back to their default installation settings. It was like I had just installed Windows or something. (I've been facing problems ever since I installed Linux a few days ago, and I've simply done a couple "repairs" of Windows whenever I have a problem, but now I figure I should just wipe the slate clean and reinstall everything. )Anyway, anyone ever even heard of this? And is it possible all my documents were simply moved to a backup folder somewhere? It's not a lot of critical data, but it does have several dozen bookmarks from the past few days.__________________
  23. Somebody mentions rap, and about 20 comments follow with people saying how much they hate it, and how it isn't music. They claim that is just about money, killing, hoes, etc. I can't really get angry with these people, for the sole reason that the radio is full of that *BLEEP*. Someone will usually come along and say, "The underground has much better stuff." But without actually hearing some good rap, statements like that don't accomplish much. So all I ask is that everyone gives rap an honest listen. If you like it, great, if not, then at least you have an educated opinion on it. To understand rap, you need to know a little about the origin. Rap is part of the hip hop culture, which also includes graffiti and break dancing. It came out of the South Bronx in the late seventies, stemming from funk and disco. It emerged as a form of self expression for the black and hispanic community in New York. Conditions in these neighberhoods were poor, and the way the people expressed this was through rap. Crews started to form, to give members identity, and this is deeply rooted in the hip hop culture. // Links to MP3's snipped //
  24. I am sure that this question is asked all of the time, but I didn't find it when I searched.How can I have a user push a link, or button, and then have a Coldfusion function recieve the call?For example, I have a form which has a variable number of records, each that I wan to be able to print a blow-up of. So, the user pushes button or link, "print" and I will loop through each record, sending it to a page that will format and print it.Any help is much appreciated.
  25. I'm looking on how to get information on devices, like in the hardware tab of the properties tab in XP. Is that FindFirstVolume()? I don't think so because it tells you the actual device name (such as WDC-foofoofoo for my HD).Is this function also available on 98?Here's the task I'm trying to accomplish: Locate my USB jumpdrive without looking for files within the device on all computers older than Win98SE.Also, what do I do to get a message if such device is plugged in?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.