weLove[tech]

We all love tech

Follow me on TwitterRSS Feeds

  • Home
  • Contact

Dynamic PDF Generation with PHP

Oct 11th

Posted by Nick in Featured Articles

100No commentshttp://welovetech.net/tutorials/dynamic-pdf-generation-with-php/Dynamic+PDF+Generation+with+PHP2009-10-12+04%3A51%3A13Nick


In a recent project I needed to build quite a few dynamic pdfs, with information filled from a database. This led me to two great pieces of PHP code, FPDF and FPDI. FPDF allows for building new pdf documents from scratch, while FPDI allows for manipulation of already existing pdf documents. FPDI is an extension of FPDF, so utilizing both is a minor triviality.

FPDF:
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. FPDF requires no extension (except zlib to activate compression) and works with PHP4 and PHP5.

FPDI:
FPDI extracts and imports single pages of existing documents into FPDF. The resulting PDF created by FPDF/FPDI is a completely new document. Please don’t misunderstand: with FPDI you cannot edit a PDF.

Utilizing FPDF/I I was able to build a 32 page dynamic pdf set over a couple of days. Needless to say, both FPDF and FPDI are very handy tools, and have an amazing amount of potential.

pdf, php, tutorial

Defragmenting Single Files

Sep 19th

Posted by Nick in Tutorials

96No commentshttp://welovetech.net/tutorials/defragmenting-single-files/Defragmenting+Single+Files2009-09-20+02%3A01%3A38Nick

There are numerous Windows disk defraggers out there, including the built in disk defragmenter. Everyone knows what they do and how they work, but one thing they can not do is defragment a single file, making it contiguous on disk. From time to time a user may need to ensure this consistency, usually for the sake of performance. This is exactly what Contig was created for.

Using Contig:


To make an existing file contiguous use Contig as follows:

Usage: contig [-v] [-a] [-q] [-s] [filename]

-v
Use the -v switch to have Contig print out information about the file defrag operations that are performed.

-a
If you want to simply see how fragmented a file or files have become, use the -a switch to have Contig analyze fragmentation.

-q
The -q switch, which over-rides the -v switch, makes Contig run in "quiet" mode, where the only thing it prints during a defrag run is summary information.

-s
Use the -s switch to perform a recursive processing of subdirectories when you specify a filename with wildcards.

For instance, to defragment all DLLs under c:\winnt you could enter "contig -s c:\winnt\*.dll".

To make a new file that is defragmented upon creation, use Contig like this:

Usage: contig [-v] [-n filename length]


From personal experience, a great application for Contig is defragmenting the cover art database on an iPod. This will increase performance dramatically. As always you can go to the Contig homepage, or download it straight from WLT.

Download:

Contig v1.55

tutorial, windows

Getting Rid of the Notification Center in Windows 7

Aug 28th

Posted by Nick in Hacks

883 commentshttp://welovetech.net/hacks/getting-rid-of-the-notification-center-in-windows-7/Getting+Rid+of+the+Notification+Center+in+Windows+72009-08-28+09%3A55%3A48Nick

Action Center is Microsoft’s attempt at replacing the notification systems of previous years. Rather than the old method of a balloon popping up every ten seconds, the Action Center will queue less important notifications, only bringing the most vital to the user’s attention. This is a much improved system, and just another great improvement Windows 7 brings to the table.

There is a downside however, that being the always present pesky notification area icon. There is absolutely no standard dialog or option to get rid of this icon. The only way to permanently remove this icon is through the Group Policy Editor. Doing so is quite simple.

Disabling Notification Center:


 

   1: [Run]
   2:     gpedit.msc
   3: [Browse to]
   4:     User Configuration -> Administrative Templates -> Start Menu and Taskbar
   5: [Select and Enable]
   6:     Remove the Action Center icon

And it’s as easy as that! You may or may not need to logout and login for the changes to take affect. The nice thing is that it is just as easy to restore the icon if you ever need to.

Hacks, mods, windows, windows 7

Super Mario Omega

Aug 26th

Posted by Nick in Gaming

551 commenthttp://welovetech.net/gaming/super-mario-omega/Super+Mario+Omega2009-08-27+03%3A13%3A13Nick

Higsby’s Hacks has released their completely original mod of the Super Nintendo classic Super Mario World, titled Super Mario Omega. This mod has been in the works for more than two years, making it more than likely the most thorough mod of a Super Nintendo game ever. Other than the complete overhaul of the level, you will notice a whole new soundtrack, and graphics and colors. There is no better way to relive your 16 bit days than a quality Mario adventure.

Screenshots:


Super Mario Omega_00011 supermarioomega0005nc9 Super Mario Omega Megaman 3 Super Mario Omega_00007

Official Trailer:


Like similar user made games, Super Mario Omega is not for beginners. It is refreshingly challenging for those who consider themselves experts. Head over to Higsby’s Hacks for more information and screenshots. It is rather bothersome to manually patch a rom with an .ips, so for your convenience here is the fully patched rom ready to go.

Download:
pre-patched Super Mario Omega rom

Gaming, Hacks, mods

Making the Most of Winamp

Aug 24th

Posted by Nick in Tutorials

11No commentshttp://welovetech.net/tutorials/making-the-most-of-winamp/Making+the+Most+of+Winamp2009-08-25+06%3A29%3A29Nick

Believe it or not Winamp used to be the internet’s media player of choice. It was extremely versatile while remaining amazingly lightweight. Many years ago the software was picked up by AOL and the player hasn’t been the same since. It is still a fabulous player, but like so many other pieces of software, the majority of it’s features will never be used. So why not get rid of those features? Fortunately Winamp uses a plug-in system, making it easy to trim all the unneeded cruft. So without further ado, let’s get started.

To begin with you are going to (obviously) need Winamp. Additionally, the Essentials pack is a great addition, bringing apple lossless playback amongst other tools.

  1. Winamp [download]
  2. Winamp Essentials [download] [optional]

Fresh Install:
For new Winamp users, we will start with a custom install type. Here are my recommended options. Naturally you should modify these settings to your own preferences, particularly in the portable media player support. If you don’t use Winamp for syncing a media player, disable it completely. Also you will want to remove all ‘Additional Features’.

Pre-existing Install:
For simplicity, it is best to just run the installer again with the options selected. This is much easier than removing each plugin individually.

Winamp Essentials:
For us the primary reason for Essentials is the Apple lossless playback. However for those interested, Essentials definitely has some nice add-ons. In particular many users may find the Time Restore option a nice plugin. There is no image guide for Essentials, as it is completely up to the user what features to select.


Image Walkthrough:

Custom Install Guide | Additional Features Guide

tutorial, winamp, windows
  • Recent Posts

    • Dynamic PDF Generation with PHP
    • Defragmenting Single Files
    • Getting Rid of the Notification Center in Windows 7
    • Super Mario Omega
    • Making the Most of Winamp
  • Recent Comments

    • ripprasternode: There is a more brutal/permanent solution, but also just as easy to restore if you want the icon...
    • ripprasternode: Brute force also works just fine for this one. Get the "Take Ownership" .reg file from here...
    • jamesonthornton: is it a good buy should I get it and replace XP. Also where can i get it for a very affordable...
    • maxchain: Thanks! I have the worst luck patching SNES roms for some reason.
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top