Lieoften's Profile User Rating: -----

Reputation: 17 Tradesman
Group:
Active Members
Active Posts:
275 (0.14 per day)
Joined:
06-January 10
Profile Views:
4,478
Last Active:
User is offline Mar 15 2015 08:08 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
XBox
Your Car:
Mercedes
Dream Kudos:
0

Latest Visitors

Icon   Lieoften is Tired as heck.

Posts I've Made

  1. In Topic: Reddact Game V.3.0

    Posted 15 Mar 2015

    It worked just fine for me two seconds ago, however it does look like its not auto logging people in. that might be the issue.
  2. In Topic: Speeding up PHP and SQL queries

    Posted 14 Mar 2015

    View Postbaavgai, on 14 March 2015 - 04:11 AM, said:

    You are using too much PHP and not enough SQL! Seriously.


    Not terribly surprising to me, lol this class is a thousand times better than my previous version, which had about 300 times more functions for a similar process.

    Quote

    Your database kind of confuses me here. You field names are wickedly inconsistent. Structurally, you planets seem to belong to stars. And stars have owners. But planets also have owners, which is confusing. Your code seems to treat these owners as interchangeable, which is more confusing.


    The owners are interchangeable -- there is an AI in the game (not implemented at the moment), which will essentially allow planets to rebel against the user, so while the user can still own the Star, there may be a planet under rebel controll.

    Your code makes a lot more sense, (which is to be expected, i'm not the best at optimizing things like that) -- but i do have a question, what exactly does the getRow function do that the pdo fetch function does not? I mean, it essentially is a simplified version of Fetch, is it not?
  3. In Topic: Trying to improve a system

    Posted 7 Mar 2015

    Quote

    That was meant as an example of how you might change your query. I didn't take the time to figure out exactly how to do it, only to suggest a line of thought. Basically, if the x and y coordinates of two stars are both within a certain range of each other, you only want to use one (at most) of them.


    Well, i didn't take your exact suggestion, i've been tweaking around with it since the you suggested it, but I think i've worked it out now -- i think the issue wasn't the selecting what stars already exist, but handling the data afterwards. I just changed the value from "return true" to "Return False" (or vice versa) and it's working now.
  4. In Topic: Trying to improve a system

    Posted 6 Mar 2015

    Sorry, force of habit (I'm actually hitting the multiquote button... i'm just bad)
  5. In Topic: Trying to improve a system

    Posted 6 Mar 2015

    View Postbaavgai, on 06 March 2015 - 05:15 PM, said:

    Quite. And the most unhelpful thing you can do with an exception is simply ignore it. An exception is there to tell you something happened. Hiding that means you're making your code much harder to debug.

    For a final system, you can get creative and allow your page to deal with the exception gracefully, which is the fundamental reason for the catch in the first place. But until things are running smoothly, it's usually more helpful to see exactly what bad things are happening.


    alright -- how do i get the system to throw out the error information? Every time I have the $e->errorInfo or whatever it just never shows information.

My Information

Member Title:
D.I.C Regular
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://www.sec-reg.com
Facebook:
http://www.facebook.com/gmz1023

Friends

Lieoften hasn't added any friends yet.

Comments

Lieoften has no profile comments yet. Why not say hello?