« November 2004 | Main | January 2005 »
December 31, 2004
Managing /tmp
"When you install any operating system, it's important to allocate sufficient disk space to hold temporary and swap files. Ideally, you already know the optimum sizes for your system so you can partition your disk accordingly during the install. However, if your needs change or you wish to optimize your initial choices, your solution doesn't have to be as drastic as a repartition - and reinstall - of the system."
:Link:
Posted by 0xFF3300 at 01:13 PM | Comments (0) | TrackBack
December 30, 2004
HOWTO Make Firefox Faster
Here's something for broadband people that will really speed Firefox up:
1.Type "about:config" into the address bar and hit return. Scroll down and look for the following entries:
network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests
Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
2. Alter the entries as follows:
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to some number like 30. This means it will make 30 requests at once.
3. Lastly right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0". This value is the amount of time the browser waits before it acts on information it receives.
If you're using a broadband connection you'll load pages MUCH faster now!
:Link:
Posted by 0xFF3300 at 04:12 PM | Comments (0) | TrackBack
RE: mod_php4 and portupgrade
Ok, so, apparently I'm a miserable failure... I changed my MAKEARGS
section accordingly:
'lang/php4' => 'BATCH=YES WITH_CTYPE=yes WITH_CURL=yes WITH_EXIF=yes
WITH_FTP=yes WITH_GD=yes WITH_MYSQL=yes WITH_OPENSSL
=yes WITH_OVERLOAD=yes WITH_PCRE=yes WITH_POSIX=yes WITH_POSTGRESQL=yes
WITH_SESSION=yes WITH_TOKENIZER=yes WITH_XML=yes WITH_ZLIB=yes',
However, after running "portinstall php4", this comes up:
In file included from
/usr/ports/lang/php4/work/php-4.3.4/ext/gd/libgd/gdft.c:63:
/usr/local/include/freetype2/freetype/freetype.h:20: #error
"`ft2build.h' hasn't been included yet!"
/usr/local/include/freetype2/freetype/freetype.h:21: #error "Please
always use macros to include FreeType header files."
/usr/local/include/freetype2/freetype/freetype.h:22: #error "Example:"
/usr/local/include/freetype2/freetype/freetype.h:23: #error " #include
/usr/local/include/freetype2/freetype/freetype.h:24: #error " #include
FT_FREETYPE_H"
*** Error code 1
Stop in /usr/ports/lang/php4/work/php-4.3.4.
*** Error code 1
Stop in /usr/ports/lang/php4.
*** Error code 1
Stop in /usr/ports/lang/php4.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall70434.0 make BATCH=YES WITH_CTYPE=yes WITH_CURL=yes
WITH_EXIF=yes WITH_FTP=yes WITH_GD=yes WITH_MYSQL=yes WITH_OPENSSL=yes
WITH_OVERLOAD=yes WITH_PCRE=yes WITH_POSIX=yes WITH_POSTGRESQL=yes
WITH_SESSION=yes WITH_TOKENIZER=yes WITH_XML=yes WITH_ZLIB=yes
** Fix the problem and try again.
** The following packages were not installed or upgraded (*:skipped /
!:failed)
! lang/php4 (unknown build error)
I assume if I take out GD support it would work, however, for my online
picture gallery, I need this support. I even tried a couple other
things: "portinstall mod_php4" with lang/php4 in pkgtools.conf, and also
tried both with www/mod_php4 in pkgtools.conf... neither worked. This
seems very odd to me that I'm having all these problems soon as I try to
futz with it, especially since I've never run into problems with the
mod_php4 port... Oh well. Any ideas?
-Kyle Mott
-----Original Message-----
From: Jared ''Danger'' Earle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 4:20 PM
To: kyle
Cc: [EMAIL PROTECTED]
Subject: Re: mod_php4 and portupgrade
On 17 Mar 2004, at 22:37, kyle wrote:
> Ok. When I do "portinstall mod_php4" (or make install/make
> reinstall/portupgrade), it still comes up with that gui for me to
> choose
> which options I want... I don't want this gui to come up... I want to
> be
> able to use make install/reinstall, portinstall/portupgrade w/o having
> to always specify which options I want to use. Isn't there a way to do
> this? I believe I was closer before, in setting up pkgtools.conf...
Any
> ideas?
Set 'BATCH=YES' in /usr/local/etc/pkgtools.conf to remove the GUI
thing. Oh, and use lang/php4 and not mod_php4 these days. The port of
www/mod_php4 is a placeholder for lang/php4.
[EMAIL PROTECTED] grep lang /usr/ports/www/mod_php4/Makefile
# Makefile of the master port (lang/php4).
MASTERDIR= ${.CURDIR}/../../lang/php4
[EMAIL PROTECTED] grep -A10 'lang/php4' /usr/local/etc/pkgtools.conf
'lang/php4' => 'WITH_APACHE2=YES BATCH=YES WITH_GD=YES
WITH_ZLIB=YES WITH_BZIP2=YES WITH_MCRYPT=YES WITH_MHASH=YES
WITH_PDFLIB=YES WITH_IMAP=YES WITH_MYSQL=YES WITH_XML=YES
WITH_XMLRPC=YES WITH_XSLT=YES WITH_WDDX=YES WITH_DOMXML=YES
WITH_FTP=YES WITH_CURL=YES WITH_GETTEXT=YES WITH_ICONV=YES
WITH_PSPELL=YES WITH_MIME=YES WITH_MBSTRING=YES WITH_YP=YES
WITH_BCMATH=YES WITH_HYPERWAVE=YES WITH_MCVE=YES WITH_MING=YES
WITH_MCAL=YES WITH_SOCKETS=YES WITH_SYSVSEM=YES
WITH_SYSVSHM=YES
WITH_ZIP=YES WITH_DOMXSLT=YES WITH_CTYPE=YES WITH_DOMXML=YES
WITH_CALENDAR=YES WITH_SESSION=YES
WITH_PCRE=YES WITH_POSIX=YES WITH_TOKENIZER=YES',
I hope this helps.
--
Jared Earle, Nightfall Games, [EMAIL PROTECTED] - http://www.23x.net
"Watashi-wa shin no SUPORUKU desu"
Posted by 0xFF3300 at 12:48 PM | Comments (0) | TrackBack
php_mod4: Found saved configuration
To prevent the previous port configuration, cd to the mod_php4 directory and 'make rmconfig'. This will remove the cached version.
Posted by 0xFF3300 at 11:02 AM | Comments (0) | TrackBack
December 20, 2004
Microsoft Anti-Spyware Preview
SuperSite details a preview of Microsofts new anti-spyware software.
"On December 17, 2004, Microsoft announced the acquisition of an anti-spyware company, Giant Software Company, surprising many in the industry. The acquisition is notable for two reasons. First, Microsoft had already revealed its intention to get into the anti-spyware market. Second, the company it purchased, Giant Software Company, was largely an unknown in the industry. Largely, that is, except for me. In a rare moment of luck, I'd actually been a fan, customer, and advocate of Giant AntiSpyware, as their anti-spyware solution is logically named, for several months. In fact, I've found it to be far more effective than the industry darlings, Ad-aware and Spybot Search & Destroy. And I've been recommending it to friends and family ever since."
Posted by 0xFF3300 at 11:42 AM | Comments (0) | TrackBack
December 17, 2004
Serious Spoofing Bug in IE Reported
Security advice firm Secunia has released information concerning a new flaw with Microsoft's web browser, Internet Explorer.
The exploit allows cross site scripting attacks to be performed on users. In the scenario that Secunia have published, users can follow a link to xyz.com, have xyz.com in the address bar yet have content being fed to the browser from another site. Clicking on the "Pad-lock" SSL icon in the bottom corner of internet explorer also reveals xyz.com.
The problem is caused by "DHTML Edit ActiveX control when handling the "execScript()" function in certain situations. This can be exploited to execute arbitrary script code in a user's browser session in context of an arbitrary site". The issue affects the most recent releases of Internet Explorer 6.0, including Service Pack 2 patched systems. To avoid the exploit affecting you, it's advised that you disable ActiveX. Microsoft have yet to comment or release a patch for the problem.
View the demonstration.
Posted by 0xFF3300 at 09:34 AM | Comments (0) | TrackBack
December 13, 2004
Microsoft Debuts Desktop Search Tool
Microsoft has released a Desktop Search tool in answer to the recent developments in the ever-burdgeoning desktop search arena. First Google drops with Google Desktop search, Yahoo teams up with X1, and now MS has released their first search beta.
So far I have to say I like it; the Web results however, don't look so good. Google has just plain dominated this area. Entering the search term Desktop revealed 6-10 of the first search results were Microsoft related. I'm not saying the product pushes company related items to the top, as I don't have the knowledge to speculate. But see for yourself: results. Entering Desktop on Google, is equally as interesting their http://desktop.google.com is the first result.
Posted by 0xFF3300 at 02:22 PM | Comments (0) | TrackBack
December 11, 2004
.NET XP Themes Framework
Lately I have been doing a bit of .NET UI development, I've been honing my skills on XP Themes. I found this article by Matt to be highly useful. Part of his framework pulls the images from the ShellStyle.dll, and you can also load pluggable themes such as panther.dll (my favorite).
Windows XP style Explorer Bars/Task Bars/Web Views - call them what you will - are all the rage at the moment. There are many great free Explorer Bar controls available on the net such as Derek Lakin's Collapsible Panel Bar, Darren May's Collapsing Group Control, and Tom Guinther's Full-featured XP Style Collapsible Panel. Most of them don't support Windows XP themes, or if they do, they "fake" it by drawing the gradient/arrows themselves, or by including the necessary images in the assembly.
Posted by 0xFF3300 at 10:30 AM | Comments (0) | TrackBack
Firefox 1.0 (Rules)
I have been using Firefox 1.0 since it came out and have been really impressed. Of most interest, is Firefox is visibly faster than IE 6, especially on slower systems. This may have to do with the overall footprint of the application.
The tabbing feature is great, built-in pop-up protection, skinable, and tons of plugins. Next week I'm going to try the new Mozilla email application that claims to be an "Outlook Killer", if it's anything like Firefox, I'm already sold.
Posted by 0xFF3300 at 10:23 AM | Comments (0) | TrackBack