Jump to content
xisto Community

sonesay

Members
  • Content Count

    958
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by sonesay

  1. I've been using glasses for about 1 year now and I dont really mind it at all it helps my vision and does not look all that bad. Never had contacts and the thought of sticking something on my eye just dosent go well with me. mariecon555 can you tell us abit more about that eye correction you had done? I'm thinking about it and would like to know any possible side effects it could have.thanks
  2. If you want to find a good deal within your budget range you will have to do the hard work and start looking at laptops and comparing them with specifications and price. Since we dont know your budget we have no idea what kind of range your after.There are basically 3 ranges cheap poor mans laptops 1000 dollars nz newish.mid range laptop 2000 nz newish (what most people will get)high end laptops 3000+ nzwhen you know your budget go out and look, you'll want something you like in looks and features. I cant really recommend any laptops but thats a guide to finding one. The thing is you have to look at as many as you can if you want to find a good deal. You could end up buying a laptop tomorrow and find out a better one existed but you were too lazy to go do the research and find out yourself.good luck
  3. Yeah I'm waiting for this game to come out then I'm going to buy it. One of the only PS3 games I'm willing to play at this time. I hope all the dialog is in audio so we dont have to read ; ; does anyone know if that will happen?
  4. Yeah objects in PHP are fairly new. I think it was only brought in in php 4 and it has changed abit in version. I've read on php.net that a class can only have one inheritence. I'm fairly new to OOP style of PHP as well but I think it is much more suited to my current problem. When you say try assigning it zero do you mean my object fields when I create them? I will give it a go I just am not sure if thats what you mean.
  5. in php 4.4.7 my code seems to be ok but in later version 5.2.2 i get this error Catchable fatal error: Object of class mission_rank could not be converted to string in /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/cn_reload.php on line 41 cn_reload.php <?phpinclude('../class/userClass.php');session_start();$app_user =& $_SESSION['app_user'];if ($app_user->character != false) { $race_letter = array('H','E','T','M','G'); $cn_id = 0; foreach ($app_user->character as $character) { // div container echo "<div class='char_node'>"; echo "<input type='hidden' name='char_node' value='$character->name'/>"; echo "<div class='char_col1'>"; //echo $app_user->character->name; echo "$character->name <br />"; $img = "images/faces/80px-"; $race = $race_letter[$character->race]; if($character->hair == 1) { $hair = 'a'; } else { $hair = 'b'; } $str = $race.$character->gender.$character->face.$hair; echo "<img src=\"$img$str.jpg\" class=\"char_thumb\"/>"; echo "<button type='button' onclick=\"cn_delete('$cn_id');\">Delete</button>"; echo "</div>"; echo "<div class='char_col2'>"; echo "<div class=\"charDetail\"> <ul class=\"tabs\"> <li><a class=\"selected\" onclick=\"doTabClass(this);\">Ranks</a></li> <li><a onclick=\"doTabClass(this);\">Jobs</a></li> <li><a onclick=\"doTabClass(this);\">Merits</a></li> <li><a onclick=\"doTabClass(this);\">Items</a></li> </ul> <div id='cn_merits_$cn_id'> <ul> <li>Bastok</li> <li> $character->mission_rank->bastok </li> </ul> </div> <div id='cn_jobs_$cn_id'>Tab 2</div> <div id='cn_merits_$cn_id'>Tab 3</div> <div id='cn_items_$cn_id'>Tab 4</div> </div> "; echo "</div>"; echo "<div class=\"clear\"/></div>"; echo "</div>"; $cn_id++; } }?> userClass.php <?php/* A class to store user information. * * * * * * * **/class user { var $username; var $fname; var $lname; var $password; var $dob; var $gender; var $email; var $expansion; var $character; function user() { $this->username = false; $this->fname = false; $this->lname = false; $this->password = false; $this->dob = false; $this->gender = false; $this->email = false; $this->expansion = false; $this->character = false; } }class expansion { var $zm; var $cop; var $tau; var $wog; function expansion () { $this->zm = false; $this->cop = false; $this->tau = false; $this->wog = false; }}class character { var $name; var $race; var $gender; var $face; var $hair; var $mission_rank; function character() { $this->name = false; $this->race = false; $this->gender = false; $this->face = false; $this->hair = false; $this->mission_rank = false; }}class mission_rank{ var $bastok; var $sandy; var $windurst; var $zm; var $cop; var $tau; var $wog; var $assault; var $campaign; function mission_rank() { $this->bastok = false; $this->sandy = false; $this->windurst = false; $this->zm = false; $this->cop = false; $this->tau = false; $this->wog = false; $this->assault = false; $this->campaign = false; }}?> add_character.php <?phpinclude('../class/userClass.php');session_start();$app_user =& $_SESSION['app_user'];include('../db.php');// character details.$name = strtolower($p['name']);$name = ucfirst($name);$race = $p['race'];$gender = $p['gender'];$face = $p['face'];$hair = $p['hair'];if($race > 2) { $gender = false;}//$app_suer->character = false;if($app_suer->character === false) { $app_user->character = array();}$app_user->character[] = new character;$i = count($app_user->character)-1;$app_user->character[$i]->name = $name;$app_user->character[$i]->race = $race;$app_user->character[$i]->gender = $gender;$app_user->character[$i]->face = $face;$app_user->character[$i]->hair = $hair;$app_user->character[$i]->mission_rank = new mission_rank;$app_user->character[$i]->mission_rank->bastok = 10;?> The reason why I want to use objects and asign it to a session variable is because I can store more in an object. If I try and store all the users info in session vars I will end up with too many.so my user object holds character objects and then user object assigned to session var. Is there a better approach to this problem? I'm trying to store a user and their characters details when they are submitting an application to the site. I will then store it in a database once its finsihed and complete.
  6. yeah the internet can be addictive. I guess you could say I am addicted to the net. What makes it worse is I work with computers and interent so its so easy to get distracted. Like right now I'm surpose to be doing some programming yet I'm trying to get some points lol. I do spend alot of hours each day just broswing though.
  7. sonesay

    Praying

    I cant say I believe in everything I've read so far in the bible but I have to say something strange happen during the times I did pray recently. First time was a few months ago, I've had some nice church people visit me and give me bible lessons at home. They came like every two weeks or so and read a few paragraphs with me and It was nice. I always get inspired by what I hear from them. They we talked about prayer and they suggested I should try it. Most all know its a way to open up to god and such things.So I gave it a shot. at the time I was feeling down and unmotivated with my work plus alot of stress in day to day life. that night I prayed and asked him for strength to get by and the next day I was able to get alot done. fixed some programming problems that had been slowing me down for weeks and made progress. At that time I was starting to believe and remeber some wise words from one of my friends 'perseverance' he was right hard work pays off. The next ocasion was last night I was again not doing too well so I did a prayer before I went to sleep. I asked for help to learn more about him so I could try and make up my mind if I was going to believe or not. The more you know the more you beleive. This morning I got up pretty early took out the rubbsih for collection, had breakfast. I tried to do some work but it was too early so I ended up broswing the internet. I got tired then went to bed again . I was half asleep till almost mid day then I heard people knocking on the door. It was the church people. They didnt visit me in while and it was strange that I prayed and then they came that morning. I was kind of freaked out but still sleepy. My lil brother came in and saw me still in bed so he told him I was asleep. THey left and I was still amazed and trying to figure out what happen. Some may say its a coincidence and I thought about it too but I dont know.what do you guys think?
  8. haha yeah you wouldnt believe my luck, there is this pretty asian girl in some of my classes at uni so I start talking to her and oh my as soon as she spoke that foul smell started coming my way ; ;. I couldnt take it she was a nice girl and all but I had to keep my distance. Makes me wish I could use my avatar at the time. :fart: What a shame.
  9. /** * Remove from the club's collection all members who * joined in the given month, and return them stored * in a sparate collection object. * @param month The month of the membership. * @param year The year of the membership. * @return The number of members. */ public ArrayList<Membership> purge(int month, int year) { if(month >= 1 && month <= 12) { Iterator it = members.iterator(); ArrayList<Membership> purged; purged = new ArrayList(); int counter = 0; while(it.hasNext()) { Membership member = (Membership) it.next(); if((member.getMonth() == month) && (member.getYear() == year)) { purged.add(member); members.remove(counter); } counter++; } return purged; } System.out.println("Invalid month of "+month); return null; } This is what I've got so far. there is bascially two classes involved here:Membership and ClubA club holds membershipsMembership holds details of name, join month, join year.The method is suppose to take a month and year then look through the clubs membership collection and return the ones at match as an array of Membership. THe ones that match also need to be removed from the clubs collection. I think whats happening while I'm observing in the debugger is when It loops through the ones that match and start removing it messes up the iterator so no more loops happen and only 1 match is return. Any ideas on how to go about this? I'm still fairly new to java :)edit:Ok I looked iterator method remove() ; ; that did the job. Sorry guys for posting this up it was my own fault. I read this method first round but the description didnt sound right. I thought it was gonna remove the whole iterator. Probably a good idea to delete this Mod since I dont think its gonna be any valuable.
  10. I would say keep the resolution to the same ratio. If its higher then your screen resolution your screen wont be able to display all those pixels properly anyway and would probably have to make adjustments to fit that 720x406 in to 640x480?
  11. that level 5 is bs no one can beat that lol.
  12. I dont really like the design to be honest, It looks kinda boring and too generic with just black background and blue boxes as containers. I like all the content you have though it shows alot of work has been put in and the use of tables too you are very patient and good to be able to build table layouts . I never realy finished a table site or even a full site yet ; ;. Overall good job on a nice site.
  13. Yeah I agree with you both there. PC is just too expensive if you want one that matches the current generation consoles.
  14. Lots is like an item being sold at the auction house. sorry I didnt want to paste the entire code/classes its too long . I think I've found the solution now on the net. The website for the book is so cheap they got text based discussions lol. I hate those its so hard to read and find info. anyway heres the sulotion I found in PDF format. it only covers chapter 4 of the book. if anyone else needs it. http://forums.xisto.com/no_longer_exists/
  15. Ok at my Uni they teach you OOP with java, They used to do with C++ i believe but swiched to java because its easier to teach people OOP with java apparently. Anyway I've been working on some exercises with java (book is 'objects first with java'). I've got this one exercise which I cant understand. this is the existing getLot method /** * Return the lot with the given number. Return null * if a lot with this number does not exist. * @param lotNumber The number of the lot to return. */ public Lot getLot(int lotNumber) { if((lotNumber >= 1) && (lotNumber < nextLotNumber)) { // The number seems to be reasonable. Lot selectedLot = (Lot) lots.get(lotNumber - 1); // Include a confidence check to be sure we have the // right lot. if(selectedLot.getNumber() != lotNumber) { System.out.println("Internal error: " + "Wrong lot returned. " + "Number: " + lotNumber); } return selectedLot; } else { System.out.println("Lot number: " + lotNumber + " does not exist."); return null; } } I dont get what the exercise is asking me to do any help apprecaited
  16. The reason I like mouse contorl over a control pad is with a mouse I could turn to a target with one movement. Like in CS if I ran past a camper and hes spamming bullets at me I just jump do wone sweep to do a 180 and pawn him, or if I'm rushing like I do most of the time I would be able to quickly turn and look corners in one sweep. This is because with a mouse you can have a very high sensitivity setting and still not loose accuracy. With a mouse you have like 20 x 20 cm or more area to sweep in depending on how far you can reach.I cant do that with a gamepad its just too hard for me to try and bump up the sensitivty and control my target with little nudges lol. I've tried playing before and I totally suck, Some people are custome to it and are great players on it but I think a mouse just makes it easier. Ok If I was to verus someone on game pad vs me on mouse I think I would have and advantage because mouse is more accurate I think. But I cant think of any games right now that supports both PC and console based play. I only have a ps3 by the way and hardly play it because of the lack of good games out yet. Waiting for FF XIII
  17. PC > all.. it just depends on how much money your willing to spend on the latest hardware. You cant upgrade a console the graphics card is fixed same with the memory. Intalling might be a pain and can take long depending on how fast your system is but you only have to do it once. After that it should generally load quicker then reading from a CD or DVD which is what consoles do. Again that all depends on how fast your PC is. I personally would prefer a top end PC over a console anyday but the price difference is so high.On some games like FPS or some other styles a mouse and keyboard combination of play is always quicker. Sure you can get keyboards and mouse for consoles but then there is the resolution thing. PCs and monitor combinations have higher resolution then console and tv combos so you cant fit as much detail as you could on a tv. text tend to be more blocky if its too small so you need to make them larger which takes up more space. You end up with less space for displays on TV because of this.All in all Unless consoles + TV combo can equal PCs in resolution and ability to upgrade PC will always be ahead in terms of graphics power.
  18. I'm running adobe Ps CS3 on 512MB ram it must be something else. It runs ok on my mac too. Much better then I would exepct for so little memory.
  19. You didnt hold back I see . Mines not that great: P4 2.4 Ghz FSB 533? 1GB DDR 1? 3 x 80 GB ata 1 DVD/CD burner sound blaster platium? 21 inch CRT lol yeah its huge. used to have 100dollar lazer mouse from logitech it went missing ; ; that owned for FPS had a working left handed keyboard too that owned for most games because numpad was close to left hand so right hand stayed on mouse. 9600 radeon (yeah i know lame but its cheap lol) that pc is like 5 years old or more? Then I got my macbookpro 1.8 Ghz duo core 512 mb memory (yeah I was cheap and didnt want to pay for 2gb when i first got it. Its cheap to upgrade to 2gb now.) x1600 or was it x1800 graphics card? 80gb HDD Wacom tablet wireless keyboard (second one first broke)
  20. I agree with you there, I'm not the best writer myself in the world but I'm trying to write correctly most of the time. It will help in work where you have to write clearly and consisly so that people will understand better. Its also good practice to try and enforce this on members so we do not get too many bad use of english on our forums. Sometimes it is hard to tell if a person is writing bad on purpose or if its their english.
  21. Unless your copy is legit dont try ask adobe for help lol. But if it is you should because they should know whats going wrong its their product.
  22. wow thats pretty bad. where are you from? over here if your very experienced and specialize in a number of good areas theres demand for you. THey always want senor developers with 4+ years commercial experience but offer you pretty good pay 50k-100k a year maybe depending on your experience.one of my friends graduated and got a job doing sales/support and configs for an It company I think and is getting 52k a year starting. I'm like *BLEEP* I dont know I dont think I can do those types of jobs I just like making things so i never went for it. Shes telling me I should apply but I dont think i have customer service skills lol to deal with people.
  23. Also I think if you added some kind of border 1px or so not too dark around the image it will look abit nicer. or even add a drop shadow around it so it dosent look as though it blends in as much with the background.Good job
  24. Theres so many i like but the most favourite ones are:Resident Evil seriesStar wars series
  25. My brother has a similar experence, he says theres some kind of ghost holding him down trying to kill him but I dont know. I dont believe its a ghost to be honest maybe some type of mental disorder, that sounds more logical then a ghost doing that too him.Make sure your mum knows your serious and go see a doctor like mich said. better safe then sorry.
×
×
  • 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.