Monday, April 26, 2010

Life to CURDATE();

School's almost done and the whether is cold and blizzardy. Or, at least it was a few nights ago; That's true Canadian weather for you.

I'm currently finished writing all my assignments and have a quiz and presentation left before I am free at long last. All this free time has also meant I've been tinkering around with my computer more often than usual. Take, for instance, yesterday. While no one was around to see it, I basically spent the whole day compiling on my laptop. A lot has happened since my last post and allow me to bring you up to speed.

+ Sold my Alienware machine that I previously had Gentoo on. Sad, I miss the machine, but some hardware or driver hiccups meant that it was constantly freezing. I'm wary that the problems stemmed either from a bad hard drive or the Vista drivers it came with. Perhaps it is also indicitive of some poor Kernel drivers too, I dunno. Doubtful though. One strange issue I had is that after installing Kubuntu 8.10, it would freeze if and only if the power manager was not on performance. Well such is life. Sold it, payed for another month of insurance, and purchased a beautiful Thinkpad T60 for a fraction of the Alienware's cost.

+ T60 Specs: 2.0 GHz Core Duo, 2GB DDR2 Ram, 512 MB x1400 ATI Radeon video (128 MB dedicated), 100GB 5400 rpm hard drive, 1400x1050 resolution, keyboard light, security fingerprint reader, and a decent speaker system. Total Price? $375. It was a deal to be sure, the last one in stock. Looked brand new except for the outer lid which had some scratches on it. This runs really cool, standard at 40 degrees idle to around 50-70 when working, compiling, and of course, running flash videos. It doesn't have amd64 support unfortunately, one thing I miss. But the keyboard on this thing is where it really shines. IBM and keyboards are like bread and butter. Perhaps I'll pick up an IBM Model M in my lifetime. I remember using them way back and enjoying every minute of it.

+ Installed Gentoo on the T60. Overall, things went smoothly on the third install attempt. I have issues with perfection and things weren't up to snuff the first two times. But I'm becoming more comfortable with the Gentoo environment and more prone to try fixing problems as opposed to the 'reinstall when something goes wrong' methodology which I have yet to shake off. I installed KDE 4.3.5 and that ran wonderfully.

+ Compiled a kernel for my T60. I need to enable plug-and-play usb mouse and keyboard support as those don't work yet, as well as the radeon fb compiled into the kernel. Currently it's as a module which doesn't work. However, responsiveness since the upgrade has increased wonderfully; A pre-emptive high low-latency kernel also helps.

+ Installed KDE 4.4 series unstable on Gentoo. Had some issues, will mention them in my next post. Still loved every minute of using this faster, more streamlined system.
+ Preparing my resume for my life as a cubicle slave. Just kidding though. While I have no qualms about being a code monkey/data entry clerk/ tech documentor, it's not something my ambition will sit well with over the years. I am in fact hoping to eventually work with the government on education, but we'll see where that leads me.

+ Excited to work on my own projects and plans, make some money, pay off debts (first priority), and collect more computer toys. While I love having the fastest and greatest/latest electronic toys in my paws, I also have learned to appreciate the stability and endurance of legacy machines. Remember when towers were made of steel? IBM Keyboard Model M's are still known for their quality. Nowadays, we get cheap keyboard crap built into plastic laptops such as the Toshiba A9, with one of the most gimped keyboards I've ever used. I'm still not sure which is worse: a small backspace key, or a small shift key. Both irritate me like a papercut to the eyeball.

And so, now with a moderately set up Gentoo machine with KDE I feel I am ready to start programming full force, starting with basic plasmoids and simple GUI's in QT4. I still hope to work in Java and am very proud of a Binary Search Tree I built last year for my college. Why are people still using ArrayLists and the like?


Check out my next post for KDE-specific notes and a very frustrating error I think I've gained an understanding on.

Wednesday, March 31, 2010

5 things you should never do when selling a computer

As I've recently been in the market for a well-priced used laptop to do coding on, I've come across some amazing poorly-written ads. I'm here to share with you my experiences and to warn people following in my footsteps, which sellers might not be the best to buy from.

Here is a list of 5 things you should never do when selling a computer.


5. Advertising your computer as a 'steal', 'the bomb', 'a blast', or any other poorly worded descriptions on the quality. Remember, this is a USED laptop. Most people go into a transaction knowing it's going to be a little iffy.

4. You can find the specs ________.
When people are buying a used computer, they don't like having to hunt down specs 'cause the seller is too damn lazy to copy-paste from a review or homepage of the computer. Do you not know the capability of the machine you're trying to sell? That looks pretty bad. Granted, this doesn't always mean the product is bad, but less dedicated buyers won't pay as much attention.

3. This machine is great for doing ________.
Because we as potential buyers are always worried if we will be able to browse the internet or use a spreadsheet in this day in age. For the more savvy buyers, one boot with Puppy Linux is enough to run everything you say (with exception of 3D games, if that's advertised) on hardware that's 10 years old or more.

2. Obnoxious in-depth specs that only hardcare uesrs would understand. I mean, there's a line between really detailed and trying to confuse customers into thinking they're getting a great deal. For example, you can sell a video card and state all the cores, size of video ram, wattage, how old, manufacturer, etc. and most people will know what you mean. But start going off into how many transistors and such, basically reiterating the engineer's manual, you've just become a dick.

1. Stating Virtual Memory as a selling point.
I actually saw an ad with this once. It blew my mind. 786MB of Virtual Ram on your computer? I'm sold.
/sarcasm
When people get to the point where one variable that can easily be changed and only affects performance when multiple applications are sucking the ram out of your machine kicks in, it's obvious they are going for the suckers. Don't be one. If someone advertises Virtual Ram, stay away. More is not always better in this case.

Saturday, March 13, 2010

"Can Windows do this? " Part I

I've decided to write an ongoing blog that revolves around things I do that Windows, consequently, does not do. This may apply to OS-X as well.

Moving Files that are in Use:

As I'm listening to music in AmaroK, I tend to move the actual audio files into folders as to separate the good from the bad.
As long as the audio file is playing, I can move the physical file anywhere on disc without interrupting playback; I'm guessing the entire file is either loaded into ram or the filesystem points to references, not literal file locations.

Windows, however, will give a "File is in use" error whenever you try to move an audio file that is being played. Meaning that you can only move it after playback has ended. Now, it's no 'killer reason' to stop using Windows, but it's one thing I do that Windows doesn't support.
Needless to say, I love having the ability to move my files when I say it's okay.
Attempting to play the file after moving it will result in an error. Obviously.

Wednesday, March 10, 2010

Gentoo Series Part II : Problem and Solution

To recap what went on in my last post, I had Kubuntu 8.10 WITH 3D acceleration on it, and Gentoo with the newest Xorg (1.7) with no 3D acceleration.

I'm a little hazy on the little details of my excursion, but here's the gist of it.

Package versions of Gentoo and Kubuntu 8.10's Xorg were 1.7 and 1.5 respectively.
Kernel versions were 2.6.31 and 2.6.28 respectively

Now along with each Xorg version, there are a LOT of dependancies that go with it.
Things such as:
randrproto, dri2proto, xcb-proto, xextproto, libXau, xtrans, libxcb, libX11, libXext, etc.

and so on and so forth. These versions different from each other as well.

Here's the Kubuntu Xorg version in its entirety.

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-15-server x86_64 Ubuntu
Current Operating System: Linux phoenix 2.6.27-16-generic #1 SMP Tue Dec 1 19:26:23 UTC 2009 x86_64
Build Date: 09 March 2009 01:06:41PM
xorg-server 2:1.5.2-2ubuntu3.1 (buildd@crested.buildd)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present


I spent a lot of my time compiling a kernel for Gentoo that matched the specifications on my M17 Alienware laptop. I owe a lot of thanks to the Gentoo wiki for having an entry on such a laptop.

Page: http://en.gentoo-wiki.com/wiki/Alienware_M17

The first thing I started to change was the Kernel. I started out with 2.6.31 and ended with 2.6.28.10. It took quite a few tries to compile it right. Once I had a kernel up and running smoothly, I started to focus on X.
As I had Xorg 1.7 installed, I had to first remove it. From what I remember, it didn't uninstall some of the dependencies. (Perhaps my choice of removal options in emerge). So after that, I installed Xorg 1.5.3 without too much issue. Installing it is the easy part after all =p

I believe that 1.5.3 included dependencies that were not compatible with the ATI 8.12 catalyst drivers (such as libXext, the proto libraries) but were still installed as part of the 1.5.3 package as they were 'updated' versions. Upon my journey through the vast wasteland of old forums, I found a compatibility list for Xorg 1.5.3.

Find the list here: http://bugs.gentoo.org/show_bug.cgi?id=251832

Basically this lists all of the stable xorg-related packages for the 1.5.3 release.
Then the hard part began: I had to go through each package and ensure that the version was equal or as close to as possible, the specified version.
Some packages I don't think I found (this was months if not a year after bug was created) because of recent changes to the repo structure. After getting the versions right and removing potential conflicts, I had a complete 1.5.3 Xorg built and ready.

Finally, after weeks of work I installed the Catalyst drivers and they WORKED!
However, it wasn't time to celebrate yet. If I attempted to re-install xorg 1.5.3 or did an update world, it would have overridden my work and killed my display. I spent hours afterwords blocking versions of various xorg packages for emerge.

I wasn't quite done yet either. Once up and running, I started to get the KWin slow compositing issue with window resizing, maximizing and minimizing. In the end I patched Xorg myself as xorg-1.5.3-r7 (r6 was the max revision last I checked) and installed it as a local package.
At first I started out with the slow compositing patch, but that didn't work. Then I heard about a patch known as the fedora-dont-backfill patch. I patched using that, but it still performed poorly so I basically removed all code in a method that was the potential problem. Sadly it was still laggy, but performed much better after my patch.

Turns out that the poor performance was due to a performance improvement to the Intel graphics chipset.

So after tweaking the system a bit, I got a working Xorg and Gentoo system up and running. Awesome!

Below is a list of files with descriptions that someone who wants to attempt the same process would find useful.


Fedora Backfill Patch:
http://www.mediafire.com/?nwmzy4mlmgz
Gentoo Packages I had Installed:
http://www.mediafire.com/?kjitdxxqe5y
Alienware M17 Customized 2.6.28.10 kernel:
http://www.mediafire.com/?nzoz4dyccme
Gentoo make.conf:
http://www.mediafire.com/?kyrnwvmwgjz
Gentoo package.keywords:
http://www.mediafire.com/?oyezzmyzwzj
Gentoo package.mask:
http://www.mediafire.com/?wh22nmmtzuh
Gentoo package.unmask:
http://www.mediafire.com/?j2zmydyered
KWin Resizing Patch:
http://www.mediafire.com/?dmymxmhdhzx
Gentoo rc.conf:
http://www.mediafire.com/?5nmjvmwyjmm
Local (modded) Xorg 1.5.3-r7:
http://www.mediafire.com/?2qz5dnzynwj


If you're installing Gentoo, you'll probably understand the meaning of the files.

I hope that this explaination of 3D acceleration on Gentoo's older 1.5.3 Xorg are satisfactory. Feel free to email me if you have any questions.
I may write another blog on Gentoo, part III, on some issues I found. Nothing warranting such a large blog post.

Cheers,
NuclearPeon.

Wednesday, January 20, 2010

Gentoo Series Part I : Past and Present

For the first post of my multi-part Gentoo blog series, I will be discussing the quirks I've encountered, the desired goal of my objectives, and the path to take to get there.

The purpose of the following Gentoo blog posts is to document how I went from the base command-line Gentoo system to a 3D-accelerated environment using the proprietary ATI drivers. Unfortunately, those, mixed with some quirks of my Alienware M17 machine, make for a lot of frustrations and cursing. Something hopefully those who read this blog will avoid, if you are following in these footsteps.

In retrospect, I was quite lucky for things to turn out the way they did.
It all started when I purchased this laptop a year back, in December 2008. The school-based laptops had a ton of resource-consuming Windows apps on them (Anti-virus for example) that severely degraded performance. The screens were poor, small (1200x800, so not that horrible), and they had the most gimped left-shift-key I've witnessed on a computer. Major productivity killers.
So I ordered this baby, with 1920x1200 resolution, dedicated video, but otherwise quite plain. Ever since discovering GNU/Linux in 2005 way back, when Ubuntu 6.10 was out and new, it had been my distro of choice. Well, Kubuntu to be exact, and I had not had experience in anything else but Fedora Core (not a great experience). Upon the laptop's arrival, I installed Ubuntu 8.10, the most recent at the time.

Upon first booting up into the system, I was met with the ugly 'no video driver' resolution desktop. The newest driver at the time, the Catalyst 8.12, provided excellent 3D and all was right with the world when installed. It could be run via command line installer without any additional configuration or patches.

And so I used such a system for about a year until KDE 4.3 came out. For those who have used Kubuntu 8.10, there is no official (stable) kde 4.3. Unless you use a nightly repository or compile from source, chances are you won't get it. Being a fan of the K Desktop Environment, this slowly nagged at me.

Now 3D acceleration is important to me, as it's required to play Warcraft 3, one of the few games I play on a constant basis. This is important, as a few other distributions I tried to get kde 4.3 off of, arch, gentoo, and future ubuntu versions, wouldn't give me 3D, or so I thought.
At this time, it's worth mentioning that there's an issue with either the Alienware M17 hardware, the ATI HD Radeon 3870, or the Catalyst drivers that prevent the desktop from appearing on the laptop screen. It's a strange issue, where plugging in an external monitor will show the desktop, the but the laptop lcd remains black (but lit up). It holds true on Ubuntu 9.10 with Catalyst 9.10/9.12 drivers. The HD Radeon 3870 is part of the R600 series.

So now I'm in the situation where I've been trying to migrate from a working, but old system to a new, no-3D system. It seemed like everytime I would migrate to another distribution, the lack of 3D drivers would force me back to the Kubuntu 8.10 system.

By this time, total hours spent attempting to get a newer working system with 3D has probably reached 30-40 hours (non-continuous, over a year period)
I haven't installed Gentoo by this point, only Ubuntu derivatives and Archlinux. Arch worked fine, but no 3D.

Gentoo was compiled with the core2, -pipe and -O2 optimizations. Once the base system was up and running, X and KDE quickly followed. It took about ~30 hours total including download times to get it set up and compiled with most of my programs.
Even though there was no 3D at this point, it ran deadly fast with the open-source 2D ati drivers.
Things were near-instant opening and closing. Sure, the fan was running constantly because the driver doesn't yet have proper power management, but things worked great.
It was about this time that frustration at not having 3d set in.
After installing Ubuntu 8.10 alongside Gentoo, I went in and began to check all the versions of packages that I felt would affect 3D.

This is the point where I noticed the difference in Xorg versions.
Gentoo had the newest 1.7 series, whereas Ubuntu 8.10 had 1.5.2. In a nutshell, I figured that I'd have to install the same version of packages in order to get the same setup I had in Ubuntu, which theoretically should work fine.



And so concludes the first part of the Gentoo series. This was the first step I took to getting 3D on Gentoo. And to be frank, it was the easiest part.

Stay tuned for the next part, documenting resource and configurations used in getting it setup properly.
It's loads of fun, with a bit of patching, lots of forum scrounging, and lots of compiling.

NP out.

Friday, January 8, 2010

Windows 7 Versus Vista, an end user's perspective

It has been more than 4 years since last seriously using a Windows environment to do work.
I've never been a Windows expert, but I know enough about computers to do installations and driver updates without too much trouble; A couple years back I installed Windows XP on a laptop using a slipstreamed XP cd (sadly they don't include SATA drivers) so I wasn't expecting much trouble.

Both Windows 7 and Vista are the 32-bit editions, as compatibility seems to be better as such.

On my first install attempt, my current partition setup was like this:

1 Primary Boot Partition (Linux)
1 Primary Root Partition (Linux)
1 Empty NTFS Partition to install Windows on
3 Logical Partitions for Linux mount points.


Now, there is a good reason why forums will suggest installing Windows first, then Linux on top.

The first issues I encountered were:

- Windows cannot install to the desired partition error
- Windows cannot install to an external USB error

I figure it had something to do with the number of primary partitions already set up, in addition to the logical ones. Both Vista and Windows 7 had these issues and would not install on the current configuration; they don't seem to recognize logical partitions at all.

Unsurprisingly, GNU / Linux distributions will install without any hiccup given my partitioning scheme, as I successfully installed Ubuntu 8.10 on top afterwards. But this is irrelevant for this blog topic.


So I eventually caved in and wiped my hard drive of partitions and set up all my primaries using the Windows 7 partitioner. It's installed on the 2nd primary partition and everything worked fine.
My screen resolution is 1920x1200 and I was surprised that it was autodetected and set. Generally drivers are required to get it working. However, that was as good as it got. Not only did Windows 7 feel slower than Vista (based on perception, not on actual benchmarks) as windows started to lag, tasks took longer, etc. As Windows 7 detected the video card, I expected it to detect other components of my laptop. I did not install any drivers on 7, so perhaps the slowness was due to a missing component.
The kicker came when trying to watch videos with speakers plugged into the audio jack. No sound came out through the speakers. Sound kept playing from the laptop as if nothing had been recognized. Plus the sound was quieter than when using Linux or Vista systems.

And so I judged that Windows 7 wasn't ready.

On to Vista:

Like it's newer cousin 7, it would not install when my primary partitions were already in place. I wiped 7 off and began to install Vista on the same partition 7 was previously on.

Everything was the same for installation, except when presented with the desktop, resolution was reduced, blurry, and gross.
As I had the OEM driver install cd with me (a fact that is the reason why Vista was a breeze to install; without it, it would have been exponentially more difficult to work with) and soon had all drivers working.

Now Vista at this point was still working quite slow, as most people have complained about. After using the Windows Update to get all recent updates as well as some optional ones which included optimizations (highly recommended to install for you Vista users), normal desktop usage ran like a breeze.

Warcraft 3, although quite old now, ran extremely fast on full settings. As my laptop is known as a "Gaming Laptop", a moniker I dislike personally, having 512 MB of dedicated video DDR3, it's expected to run fast.

So for the simple task of playing Warcraft 3, Vista is definitely the winner.

Of course, this is purely an end-user perspective. For all the technical jargon and points that could be made (7 is faster, blah blah blah), I prefer Vista.
And the most probable reason for my preference, is the simple fact that Vista has been out longer.
It has had more time for bug reports, updates, and real-world usage. 7 hasn't been out long enough to gain the backing that Vista now has.
And that is one reason why many companies haven't switched yet, for good reason.

Personally, the only real diff I see right now between 7 and Vista is the user interface.
And both pale in comparison to speed I can achieve with linux systems.

XP runs great with 376 MB of ram in a virtual machine with 32MB video. If I need windows apps, I've got that covered.

Lastly, I'd like to give my own personal take on what should have happened after Xp.

Since the UI is so familiar and usable for most people, what Microsoft SHOULD have done, is take the XP interface and completely rebuild Windows in order to use that interface, but with a more secure and functional system and kernel.
Naturally, UI enhancements should be included, users should be given a choice of interfaces to implement. Just like GNU/Linux users can choose Gnome, KDE, fluxbox, Enlightenment just to name a few, and have those look like Mac OS-X, Windows, or just a blank desktop (minimal), Windows too should give users more choice.

For instance, some people in China have taken Ubuntu and made it into an XP clone, pixel for pixel. Link below.

http://www.thevarguy.com/2010/01/05/ubuntu-linux-clone-looks-like-windows-xp/

Is it so hard to make Windows modular so people can build their own Windows system?

Perhaps. At least there is KDE - On - Windows for those that want functionality on their windows desktop.

http://windows.kde.org/


So many opinions, so little time.
I hope this post hasn't exasperated you readers. ( lol as if anyone reads this blog =p )

And for the record, Ubuntu and popular distributions in general install in about 20 minutes. Vista and 7 in about 30 or 40.
Windows still uses a filesystem that's 9+ years old (NTFS) and support for things like FAT, FAT16/32/64.
Honestly guys, make a better filesystem.

Christmas Break Update

It's been quite a while since my last rant, er, post.
I realize that Microsoft is not completely at fault for the issues I encountered though I still can't help but feel like they are underperforming in their OS.

Anyway, during the Christmas break I've spent copious amounts of time working on my laptop and learning the ropes of Gentoo GNU/Linux. There's obviously not enough room in one post to fill up what I have to say, so the following posts will be part of a series.

I will be writing a short review on Windows Vista versus Windows 7. I haven't had a great deal of experience in either, so it will be more of an end user perspective, not a technological expert's opinion. (Although it shouldn't take one to make an accurate judgement.)

Next on my list is a write-up non-comprehensive tutorial on setting up Gentoo on an Alienware M17 with a nice KDE 4 install with the latest and greatest QT / KDE packages.
It will cover issues that are found with the xorg server -- from experience it seems only the older 1.5.3-r6 version will work with the ATI Catalyst drivers (meaning 3D acceleration)

I'll be uploading my configuration files, kernel, and the driver that works for this machine.
As well, I've tested out the lasted xorg with the opensource ati drivers.
What is lacking in 3D makes up greatly with blazing fast 2D.

More to come.