Recently I was curious about the performance (in terms of access and assignment time) between class static attributes, object attributes, and array elements. Say if you're wanting to store some information that is accessed regularly, and want to know which method is the fastest...
There are two ways to disable movies in XCOM. One is to edit the XcomEngine.ini file, which I have had mixed results with, and the other is to physically move the movie files, which I have had good luck with...
Logging PHP errors and warnings is important on both your production and development servers. Often times these messages go unnoticed, even if you have display_errors on.To start logging errors, open up your php.ini file. Scroll down to or search for the line that has the error_log variable. It will probably look like one of these...
YouTube stores several image thumbnails for every video. These are used for video previews and can be extracted and used elsewhere with one of several different web addresses (URLs).In each of these web addresses, replace VIDEOID with the eleven character long YouTube video ID...
The reason YouTube video views get stuck around 301 views has been explained fairly well in this 9 minute YouTube video. In case you don't want to watch a video, here are the basic points:- When a video has less than or equal to 300 views, YouTube counts each view normally, with low validity checking. These videos are usually low-impact videos intended for small audiences like family and friends, so making sure views are legitimate isn't super important.
Installing Adblock Plus on the desktop Google Chrome browser only takes a few clicks. First, go to the Adblock Plus install page while in your Chrome web browser. You must be in Chrome and not Internet Explorer, Firefox, or any other browser...
Here is a list of basic Minecraft server commands that you should know to operate a Minecraft server. For a more complete list, see the Minecraft Wiki.You can enter these commands directly into the Minecraft server program or proceed them with a slash (/) in the chat window in-game (as long as you have operator permission)...
With Flash version 10, Adobe added the Vector class, which is similar to an Array but more strict. Each Vector can only contain data of the same type and its data type must be declared during instantiation. I'm not going to go over the syntax to use Vectors in this post, but they are very similar to Arrays and have a lot of the same methods and properties...
When a video is uploaded to YouTube, several versions of the video and audio data are saved at different quality levels. The video resolutions are 240p, 360p, 480p, 720p, 1080p, and Original, and the video becomes sharper as you go higher. YouTube also plays higher quality audio as you increase the video resolution. This post lists which audio quality is played for each video resolution...
If you're unfamiliar with object pooling, it is a way to speed up processing time by keeping objects in memory and reusing them, instead of always instantiating new ones and garbage collecting them.This example uses package and custom class syntax. If you are unfamiliar with these, see my introduction to package and classes post...
Page 1 of 13
