School is Returning…
Hello all!
So for many students young and old (including myself!), school is going to be back in session for the upcoming year if it has not started already for some of you. What does this mean? That means that time management becomes extremely important! Remember, balance is needed in order to not run you down, so how do you find time to do all of your work yet also give yourself time for your social life? Well, ask me this question, and I always say these tips in order to do that:
- Start Any Project/Assignment Early
- Do NOT Substitute Work for Play!
- Do NOT Overwork!
- Use Your Time Wisely!
It would greatly surprise you how effective this tip is. If you start early, that will give you plenty of time to complete this project. Not only that, but this will also allow you to socialize if you need a break from the project without having to worry about completing the project on time! Yay, socializing! 🙂
This tip is simple. If you have an assignment or project due tomorrow you have to finish, do not trade a failing grade to party! Trust me, you will be extremely happy and thanking yourself down the road for not going to that party. Besides, there will be plenty of other parties when you don’t have a project due the next day to finish!
If you are like me, you like to take on many new things no matter what else you are doing, which also includes helping other people. Well, when you have something very important such as school return into your life, school becomes a priority! If you have school or work to do when someone asks for help, unless it is an absolute emergency, your friend(s) will understand if you are unable to help them due to a school project or assignment that you have to work on. If you try to help everyone out with school in your life, you will burn yourself out!
If you do not read any of the other tips I have mentioned, just read this one. Use the time to your advantage! Make sure you give yourself time to work, play, as well as for just yourself!
These are some basic tips that I follow in order to make sure that I give myself time for work AND play. After all, I feel like I am working constantly…maybe I need to get out a little more…
Anyways, that’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Mafia Game Monday (MGM) – Database Normalization
So, last time on MGM, I discussed about database optimization. Well, in order to have full database optimization, there is something that will have to be done, which is: Database Normalization.
What Is It?
Database normalization is an organizing process of which you are eliminating redundancy as much as possible. This includes tables, fields, and all of the data in general. This also will ensure that all the data is stream-lined, which means that all core data can be easily linked to its corresponding data, and so on.
How Do You Normalize Your Data?
The simple answer is to make sure that there are absolutely no redundancies, duplication, or anomalies in your data. However, there is a process that you can go through in order to fully normalize your data.
- First Normal Form (1NF)
- Second Normal Form (2NF)
- Third Normal Form
First normal form is fairly simple. In order to achieve 1NF, make sure that ALL columns in your table only have one value in them. Basically, this means that separate all columns in your table that have multiple values in them. In order to do this, put the multi-value column into a new table using the key of the original table as the key of the new table. This will satisfy 1NF.
Second normal form is a little more complicated. In order to achieve 2NF, make sure that no non-prime attributes are functionally dependent on a partial key. What does this mean in non-technical terms? This means that for any column that is not a key, that value should not be dependent (directly connected) to a partial key. So, take for example the following relational table below:
CAR_SALE(Car#, Date_Sold, Salesperson#, Commission%, Discount_Amt)
Now, if you take a look at the table, what’s the first connection you see in the data? I see: Salesperson# and Commission% right off the bat. So, in order to satisfy 2NF, we separate these values:
SALES_PERSON(Salesperson#, Commission%)
..and the original table:
CAR_SALE(Car#, Date_Sold, Salesperson#, Discount_Amt)
Notice how I separated the Commission% from CAR_SALE, but still kept Salesperson# in CAR_SALE? The key value remains in the original table in order to establish a Foreign Key, which links these two tables together.
Now, with this completed, 2NF has been satisfied.
Third normal form is pretty similar to second normal form. In order to achieve 3NF, make sure that no non-prime attributes are functionally dependent on another non-prime attribute. So, basically this means that no non-key attribute should be directly associated with another non-key attribute. So, how does this look? Take for example the two tables that we created after satisfying 2NF:
CAR_SALE(Car#, Date_Sold, Salesperson#, Discount_Amt)
SALES_PERSON(Salesperson#, Discount_Amt)
Now, do you see any connection for any attributes that are not underlined? I do: Date_Sold and Discount_Amt in CAR_SALE. How are these related? Well, thinking of this as a database for car sales, managers would want to keep track of the discount amounts that were given out per day to track said discounts on a quarterly basis. So, for this example, we have to separate those two attributes into their own table:
DATE_DISCOUNT(Date_Sold, Discount_Amt)
and the other two tables:
SALES_PERSON(Salesperson#, Commission%)
CAR_SALE(Car#, Date_Sold, Salesperson#)
Now with this complete, we have satisfied 3NF.
There of course are more normal forms than this, but by following these basic normal form steps, your tables will be approximately 85% normalized. To view more normal forms, check out here: http://en.wikipedia.org/wiki/Database_normalization (yes I know it’s wikipedia, but other sites that I looked at froze up my PC).
If you have questions or comments about database normalization, feel free to contact me! I will be more than happy to answer/respond to any questions/comments that you may have. 🙂
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Mafia Game Monday (MGM) – Database Optimization
Hey all,
I have been developing mafia style text-based games for approximately six years now, and I have found one very common trait amongst most of them. That is: lack of database optimization.
When you have a database, you should not have one table with almost 100 columns in it to be queried each and every time you load a page. That takes a long time to load all of that information just for a small subset of that data. So the immediate solution would be to make the tables much smaller and query all of those tables, right? Well, not necessarily. This is based off of what the particular use and need of those tables are. If say there’s a user’s table with general information on it, then sure, that can be a table. If there’s stats in that table, maybe split that up and have a table just for the user’s stats.
Why am I telling you all of this? Well, it goes with the territory of owning a mafia game. You will be querying the database many, many times throughout the course of the game, and you want those queries to return as fast as possible; however, with every query call to the database, that’s more time than simply using results that you have already received. So, as with everything, you have to find that balance in order to have your game perform at its best. So, in lieu of that, here are a few guidelines for good database optimization:
1) Split up the obvious information differences into their own tables
If say you currently have one table for all of the user’s information (including user’s stats), then the stats should be split up from the other information into its own table.
2) No tables with 50+ columns in them
This is simply an easy guideline to follow. If you have a table that has more than 50 columns, split it up somehow. A query that returns that much information will take a much longer time to run than say two queries of a much smaller data set.
3) Run some performance tests!
If you’re not sure whether your queries are efficient, run a performance test! Check how long it takes to run those queries. PHPMyAdmin and other database management tools have options to run queries on their own in order to check for performance.To do a performance test on your queries, you can do one (or more) of the following:
– Run Queries Separately in PHPMyAdmin
You can do this by going to the “SQL” tab in your database and run the desired query.
– Place microtime(true) functions on either side of the query and subtract the difference
PHP has a microtime(true) function that you can use to time anything from a timestamp to a query. Call the microtime(true) function and set to a variable (say $a) before running a query, run the query, and then set microtime(true) again (to $b this time). Then, all you have to do from there is subtract. A code block is below of an example. With this example, $b at the last line will have the time that you are looking for:
$a = microtime(true);
$result = ("QUERY GOES HERE");
$b = microtime(true);
$b = $b - $a;
echo 'It took ' . $b . 'seconds to run this query.';
Why did I pick microtime? I picked microtime because it will be more accurate than the time() function, as it will most likely take less than a second to run. For more on microtime() function, check out here: http://php.net/manual/en/function.microtime.php.
– Write Triggers (Advanced)
For those advanced SQL users, you can always write a couple triggers (one before accessing data and another after accessing data) that will achieve similar results to the other methods; however, with triggers, you can make triggers apply to specific tables, especially those of which you are more concerned about. With those triggers, you can also always have them give you data logs of information, which you can then use to make your own analysis of the performance of said query(ies). For more information on triggers, check out here: http://dev.mysql.com/doc/refman/5.0/en/triggers.html.
If you have any other comments or suggestions as to how to fully optimize your queries, please leave some feedback in the comments section or contact me! 🙂
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Where is the Love? (Part two)
So, a few weeks ago I was discussing about how there’s becoming a slow decline of the quality of customer service. What happened to the respect that we gave to others?
Of course that respect is not completely gone and there are many great people out there, but I can feel the decline of quality of the customer service that is provided to customers. How can this epidemic disappear? Well, it will not disappear, but you can always do something in order to make sure that both the customer and the customer service representative both have a good experience. That’s right, it is not just the customer service rep that is causing a problem…it is also the customer themselves.
So, for the customer service representative, here a few things you can do to ensure a high quality conversation on the phone:
1) Always greet the customer with a happy tone. If your tone is down or not caring, the customer will immediately feel taken back by the conversation, and will feel a bit dissatisfaction of the call. Remember, first impressions do make a difference, so make a good one!
2) Talk the customer through the problem. Do not immediately address the problem as “their fault.” Make sure to walk the customer through the steps that they took to encounter the problem that they are experiencing and ask questions throughout the way in order to understand what the customer’s problems actually are.
3) Offer solutions on the spot. A great way to be a customer service representative is be always willing to offer some kind of solution on the initial phone call. Do not send it to a manager or another person without offering some feedback as to a way to solve the problem. If by chance the solutions you offer do not help fix the problem, then it is appropriate to send to another individual who has much more knowledge about the particular problem of which the customer is experiencing.
4) Always end with a happy tone. Ending on a sour note will NOT give the customer a good experience of customer service with the company. If you cannot solve the problem, that is okay, but make sure that you are understanding of the frustration that the customer is experiencing and that they are better noting that the problem is going to someone who has more knowledge. Always end with a notation, such as “Have a great day” or “Enjoy the rest of your weekend.”
Now, for the customer, here are a few tips in order to ensure happy customer service:
1) Describe what is happening as thoroughly as possible. The “it is not working” statement does not help at all. Trust me, I have heard this response a lot when I am helping friends solve computer problems. Tell me what is not working, or what exactly are you experiencing that is giving you the impression that “it is not working.”
2) Have information about the computer BEFORE making the call. If the problem is with a computer, make sure you have some basic information about the computer itself (make and model) before calling customer service. This will ensure that if or when that question is asked, you will not have to keep the customer service rep waiting for a while just so that you can get that information.
3) Try the solutions that the customer service representative offers. You would be surprised at how many people do not actually try the solutions that the customer service rep offer before saying “that didn’t work.” It is as if they do not want the product to be fixed and instead want a new one. If you wanted a new one, why are you calling customer service in the first place and instead just buying a new one? Trust me, trying to “beat the system for freebies” does not work as well as you expect.
4) Do not become “that customer.” In the customer service rep world (including service desks, retail, etc) there is always “that person” that continuously calls or walks to the customer service desk complaining about the lack of service, the attitude of employees, or anything of that matter just so that they can receive some special treatment. Trust me, everybody in the customer service industry really despises “that person,” and if we could, we would have you be in our shoes while we complained all the time to you. The world does not revolve around you, so do not think of yourself so high and mighty.
I think that just about sums it up as to what can be done on both sides in order to ensure a happy and friendly customer service experience.
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
I am introducing Mafia Game Monday (MGM), which will give more insider information into one of my areas of expertise, which is mafia game engines.
Today on MGM, I am going to show the beginnings of a brand new design integration for a Generic RPG game engine.
With help of Toxic Designs for the initial design, I am in the works of integrating the engine into a more mobile design, which will use jQuery elements in order to produce a more interactive gaming environment.
Screenshots are below of the index page with static data:
There will be many more updates to come discussing this new integration, so stay tuned!
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
PHP Chat System
So, I have played around with many different php scripts over the years, and I have found that many of these scripts do not have a great chat system whatsoever. It’s either very bland, very “blocky”, or just simply unusable. In many games, having a chat system is vital in order to encourage great communication between players.
I know that many have opted with integrating a chat system from an outside source into their games (which is not necessarily a bad thing), but how about creating your own?
Well, just that has been done, and it is a great tool to use in order to fully give your game that edge over many others.
A screenshot is below of what this looks like:
You are able to drag it all around the game without interrupting the game whatsoever. This chat system can also be integrated onto the main page, which will then give you a chat system throughout your game. It is very nice to have, as it makes integration from the game to the chat system a “no-brainer”.
This chat system includes the following different programming languages:
- PHP
- JavaScript
If you have any questions in regards to this chat system, feel free to contact me! I am more than willing to answer any questions you may have. 🙂
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Where is the Love?
A few weeks ago, I took a trip to Kansas in order to visit one of my friends. It was my first time to Kansas, so it was certainly something different to me to see not only the environmental differences, but the mentality differences as well.
I was inside of an Aldi store, which if you don’t know what that is, it is a discount grocery store. Now, at Aldi’s, they for some unknown reason do not accept any credit cards or checks. I know, makes no sense, but that’s the reality of this store. Anyways, there was a lady in front of me who had a debit card (which they do accept) but could not get it to work. She also had checks with her, but again, they do not accept checks. So, noticing her problem, I pulled out my wallet and paid for her groceries that day. It wasn’t much (less than $20), but I’m sure that they were needed for something. She kept thanking me over and over, surprised that someone would even be so kind enough as to give that kind of gesture at a time of need.
This baffles me that for some reason, kindness is that uncommon today that it was so unexpected of a stranger to help someone out. I know that there is a fine line with that, as you would not want it to be “expected”, but nevertheless, there just seems to be so little kindness in this world we live in today..and if there is, it is NOT acknowledged whatsoever.
We need to learn to treat others as we would like to be treated, not only on a personal level, but on a professional level as well. As a IT professional myself, it baffles me when I hear horror stories about how IT customer representatives are extremely rude and vulgar to their customers. What if you were on that side of the phone line? Would you want someone talking down on you like that? Wouldn’t you want to treat a customer (who IS a person) with dignity and respect?
There is much more to branch off of this blog topic, so stay tuned for much more different branches in much more detail.
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Slow and Steady Wins the Race…
Have you ever heard the saying “slow and steady wins the race”?
Well, at least to me, I feel that in a lot of cases, this is 100% true. It is very similar to asking: “Would you rather have it done quickly or have it done correctly?”
I encounter this on a continuous basis within the workplace, as I am sure many of you have as well.
Well, which would be the best option? Personally, I would much rather have things done correctly the first time instead of having to keep going back and fixing things. It makes everybody’s job much less stressful; however, some people like to set very strict deadlines that are near impossible to accomplish without having to cut some corners. It is very unfortunate that this happens, but it is very true in the working world.
So remember, if you can, take the project slowly so that you don’t miss anything important or/and cut any corners!
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Having a Problem? Don’t Run!
A while back, I remember a classmate and I having a discussion about a project we were working on. A paraphrase of the conversation is shown below:
Me: “When I ran a couple tests, it looks like there will be some problems that should be addressed before the project is tested by the professor.”
Classmate: “Eh, we will fix the issues as they come up, but if the professor never says anything, then why fix it?”
Me: “..because it is something that could cause problems for the client? Isn’t the whole point of creating this project is for the client?”
Classmate: “..and give us more work? Fix the issues if they are addressed from people besides us. Otherwise, we will say we are done.”
That was pretty frustrating to me to hear this mentality of “let’s do the least work possible so that we’re done” instead of addressing what was wrong in order to make the project better. Turned out that the professor caught all of the problems I saw. Since I went ahead and started fixing those problems on my own, we were able to fix them rather quickly.
Have you ever dealt with people like that? The mentality of “we will work around the problem, but not actually address it” or “don’t address it unless someone else does”? For me, it is very frustrating to say the least.
Does this happen in the tech world? The answer is…ALL THE TIME. It happens from the smallest of technology shops to the largest of corporations. Take a look at Microsoft for example. A lot of their updates of the Windows Operating System are from bugs that were reported by others instead of their own testing. I can’t say that they knew about these things, but in my eyes, it really makes you wonder.
If you are intertwined in a situation where people want to work around the problems, be sure you are the one to face those problems head-on and fix them. You may not be liked for going against the grain a bit, but the quality of what you do will show one way or another, whether it is a promotion at your current job, acknowledgement from your friends and family, or even a better job that has noticed your accomplishments. Don’t become lazy!
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470
Crunch Time!
This week is the week before the final exams for my Master’s classes that I am taking. Guess who just stayed up until 3am in order to finish a project that is due tonight? This guy. Did I procrastinate? I would say a little bit; however, on top of work as well a current development project shown here, there is not a whole lot of time outside of my day to really sit down and work on some of these projects (well, not as much time as I would like anyways). So there I was, up until 3am this morning finishing up said projects to turn in for class today.
I’m sure many if not all of you had a deadline to meet one time or another for some sort of activity, whether it was for a class project, a work project, or merely something in order to give your kids something nice on Christmas.
So when “crunch time” happens, what do most of us do? We panic, rush around, and finish what needs to be done. We usually do not finish it well or up to snuff, but hey, it is done, right?
However, in the technology world, making sure things are “up to snuff” as well as meeting deadlines are very important factors to consider when it comes to development projects, including websites, web applications, and all technology. Would you want a car that can only run part of the time? What about an air conditioner? A heater? Electricity? All of these things must be done RIGHT; otherwise, those technology foundations that we take advantage of day in and day out would not be dependent at all.
So, for projects and other tasks, what can we do in order to make sure that we don’t reach “crunch time”?
1) Make a Plan
Make any kind of plan, from telling yourself you’re going to go shopping a couple weeks before Christmas to an elaborate enterprise project plan, any planning will do. Just some planning in order to organize your time so that it is guaranteed that you will have said time to do it.
2) Create Mini-Deadlines for Yourself
Surprisingly enough, creating more, smaller deadlines is much less stressful than one large final deadline. Use this to your advantage in your planning so that you will not be in a panic mode once the final deadline is approaching must faster than you would have ever thought it would.
3) Get Started!
The most daunting task is to actually get started. Studies have shown that those who start a project have a much easier time of finishing said project than those who do not start. So get started!
If you have any questions or comments regarding project organization, post a comment below or contact me! I will be more than willing to answer any of your questions or comments.
That’s all for now, until next time…keep that tech gear ticking.
~Goliath7470



