Jump to content
xisto Community

xboxrulz1405241485

Members
  • Content Count

    3,012
  • Joined

  • Last visited

Everything posted by xboxrulz1405241485

  1. Actually, you can indeed have "remote desktop", it's called X forwarding, it's part of the SSH protocol. However, the implementation like almost everything in UNIX is not universal. So you need to do some research for your server. All you need is to install the X window system and a preferred desktop system and off you go, remote desktop! xboxrulz
  2. Yup, my server is completely managed via SSH. The difference between my setup and your setup is that I run FreeBSD 7.1. It's so easy to manage as a server. For FreeBSD, SSH is preinstalled, you just need to activate it and off you go. deltatux
  3. You mean Windows Vista Home Premium then. xboxrulz
  4. Yup, we need the system specs to at least know where the problem might be. However, it sounds like either a memory problem or a really slow CPU. I don't know unless you provide us the critical info.xboxrulz
  5. Well, the best route for upgradability is with AMD since their AM3 processors can work backwards back to AM2 and AM2+. Right now, I think this one is a better build: AMD Athlon X2 7750 Black Edition ($68) http://forums.xisto.com/no_longer_exists/ ASUS M3A-78CM ($75) http://forums.xisto.com/no_longer_exists/ Antec 480W Earthwatts ($50) http://forums.xisto.com/no_longer_exists/ Patriot 2x1GB DDR2-800 ($25) http://forums.xisto.com/no_longer_exists/ It's a bit over the $200 budget at $218, but that extra $18 can really go far since the Athlon X2 7750 has an unlocked multiplier and can break into 3.0 GHz without a sweat and probably without a new heatsink as I've heard the new AMD heatsink for this processor class is very good. Also, once you guys get more money you can up the processor to a Phenom II X3 or Phenom II X4 in the future without having to be forced to buy a new motherboard. All prices quoted are in USD. xboxrulz
  6. Hey guys, I'm to write an ISBN decoder. However, I think I'm getting some incrementaling issue. int decode(FILE* fp, char* str, char* area, char* publisher, char* title){ // determine area int area0; bool found = false; int digitsArea = 0; for (digitsArea = 1; digitsArea <= 5; digitsArea++) { // parse the first 'digits' chars in isbn into area0 area0 = 0; for (int i = 0; i < digitsArea; ++i) { area0 = area0 * 10 + (str[i] - '0'); cout << str[i] << endl; //debug output } if (registered(fp, area0)) { found = true; break; } } if (!found) { cout << "Area not found: " << area << endl; return false; } std::stringstream aout; aout << area0; aout >> area; // determine publisher int pub0, digitsPub = 0; for (digitsPub = digitsArea + 1; digitsPub <= 7; digitsPub++){ //parse the second set of 'digits' chars in isbn into pub0 pub0 = 0; for (int i = digitsArea; i < digitsPub; i++){ pub0 = pub0 * 10 + (str[i] - '0'); cout << str[i] << endl; //debug output } if (registered(fp, area0, pub0)){ found = true; break; } } if (!found){ cout << "Publisher not found: " << publisher << endl; return false; } std::stringstream pout; pout << pub0; pout >> publisher; // determine title int title0; for (int digitsTitle = digitsPub + 1; digitsTitle <= 10; digitsTitle++){ //parse the third set of 'digits' chars in isbn into title0 title0 = 0; for (int i = digitsPub; i < digitsPub; i++){ title0 = title0 * 10 + (str[i] - '0'); cout << str[i] << endl; //debug output } } std::stringstream tout; tout << title0; tout >> title; return true;} int registered(FILE* fp, int area, int publisher){ seekStart(fp); ifstream in(fp); while (in) { int area0, minPublisher, maxPublisher; in >> area0 >> minPublisher >> maxPublisher; if (area0 == area) { if (minPublisher <= publisher && publisher <= maxPublisher) return true; } } return false;} int registered(FILE* fp, int area){ seekStart(fp); ifstream in(fp); while (in) { int area0, minPublisher, maxPublisher; in >> area0 >> minPublisher >> maxPublisher; if (area0 == area) return true; } return false;}It looks like at the publisher section, it isn't incrementing properly, but I don't know why. Please help. Thanks, xboxrulz
  7. Actually this was the main reason for the AMD/ATI merger. It was so that AMD can incorporate a GPU core into the CPU so in theory, it'll be cheaper for OEMs to build laptops and would also in theory be faster because of its closeness to the CPU. deltatux
  8. According to Tom's Hardware, NVIDIA may be in fact produce their own processor. They speculate that it may come in the form of a VIA-NVIDIA partnership. What do you guys think? Good idea? Vote in the polls. I personally think this will spice up the market for all. Source: http://forums.xisto.com/no_longer_exists/ xboxrulz
  9. Apparently, if you lie to people, they would really think KDE4 is Windows 7 ... lol. http://www.techrepublic.com/?feed=rss xboxrulz
  10. I did more tests and force reinstall the AMD chipset driver and I think I'm getting better results. I made sure that my hard drive was idle when commencing with these tests. I've had my Hitachi since March 2008 and the Seagate since July 2008. Also, now that I check the Device Manager, my hard drives are no longer listed as ATA devices but SCSI (which I believe should be correct now). I re-ran HDTUNE afterwards: Hitachi drive: Seagate drive: I think it's better, is it closer to a normal average? The Hitachi drive is more critical since that's where all the software and system data is. The Seagate is only for videos and documents and etc. like that so the performance on that isn't too paramount if you're just looking at the burst rate. EDIT: Alright, I just ran a HDTUNE on my media centre with my old board. It's a Western Digital drive: xboxrulz
  11. Hey guys, Is this normal for my hard drive? Hitachi 320 GB SATA (3 gbps) w/ 16 MB cache - system drive I compared it with my data disc and it doesn't seem so sporadic: Seagate 500 GB Enterprise SATA (3 gbps) w/ 32 MB cache - DATA I also noticed that my drive suddenly slowed down after a motherboard swap, could that be it? If so, is there any way to fix it? Thanks, xboxrulz
  12. That may be true, but it's DDR2-800 that's basically the standard speed because it's the most proliferated throughout the market. The only boards that support DDR3 are Core i7 based or Phenom II AM3s. xboxrulz
  13. your choice. for me, I'm the only user on my machine. Even as a computer guy who is very knowledgeable on security stuff, i would still never run myself as admin. xboxrulz
  14. Hey guys, I'm trying to open a file, however, I'm running into problems: TDirectory.cpp #include <iostream>using namespace std;#include <fstream>#include "TDirectory.h"bool Listing::loadFileData(FILE* fp){ fseek(fp, 0, SEEK_SET); ifstream in(fp); while (in) { in >> givenName >> surname >> address >> telephone; }} TDirectory.h struct Listing { char fname[16], lname[16], addr[16], phnum[16];public: bool loadFileData(FILE *fp); const char* givenName() const; const char* surname() const; const char* address() const; const char* telephone() const;};struct Directory { FILE *fp; int records; struct Listing *listings;public: bool loadFileData(const char* filename); void display() const; void close();}; Error: Many thanks, xboxrulz
  15. It's not a little unsecured, it's very insecure if you run as administrator all the time. Turn on UAC especially if you are running as administrator. I'm running my Server 2008 installation as a standard user and if I ever need administrator rights, I just tell UAC to ask me for the admin password whenever a system-wide change is required. This way, it's more secured. deltatux
  16. Actually, that's why for added security, there's only one administrator account and so if I need to make a system-wide change, I force myself to enter the admin password every single time. As annoying as it may sound, it really isn't. Mac, Linux and basically all of UNIX world have been accustomed to this for the longest time and Microsoft finally realized that they missed this really basic security feature. So, leave your UAC on, else you'll basically be asking for it when disaster strikes. xboxrulz
  17. ya, but it may not be as secure: http://forums.xisto.com/no_longer_exists/ Which is understandable, it makes a huge difference in security esp. if u compare XP with Vista. xboxrulz
  18. Alright, This is confusing. The specification laid out by my prof is: However, usually this is how I open files: void readFile (){FILE* fp = NULL;fp = fopen("file.txt", "r");} So how do I adopt this? xboxrulz
  19. alright got it, thanks.i did declare my namespace in my custom stdheader.h where I imported everything.xboxrulz
  20. After added structs, I'm getting LNK2019 errors again. What exactly is this LNK2019 error? /* pointsofsales.h * Workshop1's Point of Sales header file. * Copyright (C) 2009 Adrien Kwok. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 3 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://forums.xisto.com/no_longer_exists/;. * */#define LIMIT 100struct POS{ int quantity[LIMIT]; double price[LIMIT], ftax[LIMIT], ptax[LIMIT], tftax, tptax; char taxable[2];};void posmath(struct POS sales, int *intCount, double *total, double *stotal);void initPOS(); /* pointofsales.cpp * Workshop1's Point of Sales program file. * Copyright (C) 2009 Adrien Kwok. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 3 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://forums.xisto.com/no_longer_exists/;. * */#include "stdheader.h"#include "pointofsales.h"void initPOS(){ system("cls"); cout << "Point of Sales" << endl; cout << "==============\n" << endl; struct POS sales; int intCount = 0; double total, stotal; do { cout << "Quantity: "; cin >> sales.quantity[intCount]; if (sales.quantity[intCount] != 0){ cout << "Price: "; cin >> sales.price[intCount]; cout << "Taxable [y/n]: "; cin >> sales.taxable[intCount]; intCount++; } } while (intCount < LIMIT && sales.quantity[intCount] != 0); posmath(sales, &intCount, &total, &stotal); cout << "\n" << endl; printf("Subtotal: %.2lf\n", stotal); printf("GST (5%): %.2lf\n", sales.tftax); printf("PST (8%): %.2lf\n", sales.tptax); printf("Total: %.2lf\n", total); cout << "\n" << endl;} /* libpos.cpp * Workshop1's Point of Sales library file. * Copyright (C) 2009 Adrien Kwok. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License Version 3 * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://forums.xisto.com/no_longer_exists/;. * */#include "stdheader.h"#include "pointofsales.h"void posmath (POS& sales, int *intCount, double *total, double *stotal){ int i; for (i = 0; i < (*intCount); i++){ if (sales.taxable[i] == 'y'){ sales.ftax[i] = sales.price[i] * 0.05; sales.ptax[i] = sales.price[i] * 0.08; } else { sales.ftax[i] = 0; sales.ptax[i] = 0; } sales.tftax += sales.ftax[i]; sales.tptax += sales.ptax[i]; *stotal += (sales.quantity[i] * sales.price[i]); *total += (sales.quantity[i] + sales.ftax[i] + sales.ptax[i]); cout << *stotal << endl; cout << *total << endl; }} Many thanks, xboxrulz
  21. Alright, I'm getting errors and it's confusing me on how to declare and pass a struct. http://forums.xisto.com/no_longer_exists/ The error I'm getting is: Please help. Thanks, xboxrulz
  22. I'm using VirtualBox on my Mac and PC. It's the universal virtualization solution in my house.xboxrulz
  23. Thanks, I can't believe I made such novice mistakes.I forgot that I was telling it to count more than the LIMIT allows.The compiler should be more specific because the error made no sense to me.Thanks,xboxrulz
  24. It's best to try both to see the actual differences because it doesn't make sense to compare things just from what you heard.xboxrulz
×
×
  • 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.