About Lord TCT
Website: http://www.thebits.info
Lord TCT has written 52 articles so far, you can find them below.
Filed under Windows by Lord TCT on 19 March 2008 at 9:25 am
no comments
March 18, 2008 – Microsoft has finally released the first service pack for Windows Vista to consumers after months of delays due to technical and compatibility issues. The RTM version of the service has already been released to MSDN and Technet subscribers since early March.
For users who don’t want to wait for SP1 to be available on Windows Update mid-April, you can download the standalone installer here: http://technet.microsoft.com/en-us/windowsvista/bb738089.aspx?tapm=A80S01A01
The official SP1 build is 6001.longhorn_rtm.080118-1840
The extented forms are:
Vista x86 : 6001.18000.x86fre.longhorn_rtm.080118-1840
Vista x64: 6001.18000.amd64fre.longhorn_rtm.080118-1840
Direct download links:
Vista 32-bit: http://download.microsoft.com/download/3/a/9/3a9b72c2-527d-4694-8a49-84c056d4c34d/Windows6.0-KB936330-X86-wave0.exe
Vista 64-bit: http://download.microsoft.com/download/8/3/b/83b8c814-b000-44a4-b667-8c1f58727b8b/Windows6.0-KB936330-X64-wave0.exe
Note: You must uninstall any previous beta editions of SP1 before you can install the official release. The installation will take about 30 to 60 minutes depending on system performance.
Filed under PHP by Lord TCT on 18 March 2008 at 7:37 pm
no comments
It took me 2 solid hours to figure out why two visually identical strings would produce totally difference checksums.
After examining the byte output of mcrypt_decrypt, I found there are tons of trailing nulls behind the decrypted string. The reason why I could not visually differentiate between a string with trailing nulls ($A) and the one without ($B) is because the echo command and string concatenating commands seems to discard the nulls altogether.
However, byte level comparator like $A === $B and strcmp($A, $B) would produce negative results because they treat trailing nulls as valid data. In order to remove the trailing nulls caused by cryptographic padding, we simply remove the trailing nulls: rtrim($A, “\0″) such that rtrim($A, “\0″) == $B.
Filed under PHP by Lord TCT on 17 March 2008 at 7:30 pm
no comments
One of the most common problems encountered by novice PHP users is that cookies do not seem to persistent across subdomains using a normal approach found in many website examples.
The solution is simple. The full argument of PHP’s setcookie function is as follow:
bool setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )
The trick is to set the value of $domain, something almost all self help tutorials will omit.
For example, to set a particular cookie to be accessible on all subdomains under bitsofbytes.org, we will set $domain = “.bitsofbytes.org”.
Simple as that!
Filed under Wordpress by Lord TCT on 16 March 2008 at 11:56 pm
no comments
While many PHP applications have started offering MySQLi connectivity, strangely enough, WordPress does not seem to have MySQLi support enabled out of the box.
(more…)
Filed under Linux by Lord TCT on 15 March 2008 at 9:34 am
2 comments
cron is probably one of the most useful services in the UNIX world. It is a time-based scheduling service that executes commands at a set interval.
Most flavours of Linux should have cron bundled. Unfortunately, not every distribution has the same method of configuration. The following example is based on CentOS 5, a popular enterprise web server distribution based on the Red Hat Enterprise Linux.
The configuration file for cron is stored in /etc/crontab. This file stores a list of commands to execute at a certain time interval you set.
(more…)
Page 10 of 11« First...«7891011»
Recent Comments