Adobe Cancels 64bit Linux Flash beta

For many years, the internet has been plagued by a dependency on the proprietary software known as Adobe Flash. There are plenty of open alternatives that could be used, but from the beginnings of the internet, ShockWave and Flash have been used by many websites.

Flash has been used for everything from buttons and banners to games and complete user interfaces. It’s a very powerful tool, but it is outdated and is maintained exclusively by Adobe. While the Flash player browser plugin is completely free, the tools to create Flash content are not. There in lies the trouble. Being closed source, Flash depends on Adobe development. There are many people who use 64-bit Linux as their primary OS. Adobe has canceled development on the 64-bit version of there Flash plugin. This means that simple things like Youtube videos won’t work on 64bit Linux.

This is why proprietary formats are bad. Hopefully things will improve as more and more webmasters turn to HTML5, CSS3, and Javascript for their Dynamic content needs.

Browser Extensions For Developers and Internet Marketers

I’m on the fence when it comes to my favorite browser. I’ve recently started using chrome much more, due to some bad performance issues in Firefox. Firefox on my 64-bit Windows 7 installed sits and eats memory. I’ve seen it use nearly 2gb of RAM. This was after it had been open on the computer for a few days, and a restart of the browser fixed the issue. However, I’m not sure why this leak is there. The last time I can remember truly liking Firefox completely was back in the version 1.5 days, and even then there was supposedly a huge memory leak. Back then I didn’t notice a memory leak, but these days I do.

It could be that Firefox utilize memory different, and it may be the new way Windows 7 display memory usage. I still see sluggishness. Thus, my move to Chrome. There area a few different things that could have caused the slowness, such as the added extensions in Firefox. After installing about seven extensions in Chrome, however, I see no performance hit. So, I still suspect that there is an issue with the browser itself. Even with all of these woes, it is still better than using IE. I hate that browser. I don’t necessarily hate using it, but it is difficult to write web sites that work well in it along with all other browser. It’s the odd ball which never works the way I want.

For web development, Javascript is necessary for client-side scripting. However, Javascript is difficult to debug. Luckily, we have the Firebug extension for Firefox. This is the uber-extension for web developers. I’ve used it quite a lot, so much so that it has become a necessity. I probably couldn’t write Javascript without it. There are also other features to this extension, like being able to examine the DOM and such. Internet Explorer has a similar tool set but it’s slow and hard to utilize. I would dare say that there are some IE users who installed Firefox just so they can use Firebug. One setback here is that IE’s Javascript engine has certain nuances that do not readily show up in Firebug. So, while you can debug a majority of javascript errors with Firebug, it will miss certain IE javascript issues.

The next must-have extension for web development is the Firefox Web Developer extension. It gives you a host of options to example page elements and CSS rules within the page itself. This plugin along with Firebug have saved me TONS of time, while working on websites.

SEO is important to not only marketers but web site developers as well. Getting a site online is one thing. Getting it to show up in search results is another. A couple of excellent extensions for examining the search engine optimization of a site are the Firefox SearchStatus extension and the Chrome SEO extension for Chrome. The Chrome SEO extension is great for getting a brief synapsis of your site’s backlinks, pagerank, and indexed pages at various search engines. Neither of these offer a lot of advice for SEO, you’ll need a company that offers Drupal SEO services for that, but they do show some stats to get your started.

These are only a few of the extensions available for Firefox and Chrome. There are many others. They are a good reason to switch from IE. PLEASE DO!

Is Debian Still Relevant

I’ve been dual booting or running Linux full time now since around 1996. During the first few years, I used mostly Red Hat based distributions. I used Mandrake/Mandriva, SuSE, Red Hat, and Fedora to name a few. When I switched over to Debian, my eyes were truly open to what a distribution could be. I’m not even sure what made me switch to Debian. If I had to guess, it was during my distro whoring days when I just switched distros at random, trying each one out for at least a few days.

Needless to say, Debian-based distros have been my staple ever since. I’ve tried others. I’m a big fan of ArchLinux, for example, but I’ve always had a Debian-based distro running on a machine somewhere.

A few years ago I started using Ubuntu, which is probably the most widely used distribution of Linux there is. Ubuntu uses as its base Debian testing/unstable, and build upon it, creating a great user experience.

Ubuntu has become so popular that there are now many distributions of Linux based on Ubuntu. That makes Debian the grandfather distribution of all of these. Probably may favorite Ubuntu-based distro is Mint. It adds to the base Ubuntu system and promises a better out-of-the-box media experience, along with a better theme. Ubuntu needs better designers in my opinion.

With all of these Debian-based distros and distributions based on Debian-based distros, is there still a need for Debian itself?

Here recently, I decided to replace my Mint installation with the newest Ubuntu release (10.4). I should mention that I’m installing the 64-bit version of all OSs mentioned. This is so I can take advantage of the RAM I have installed on my main system. I should also mention that there is an issue with my nVidia card and the “nv” generic open source nVidia driver. This error causes many problems when I try to install most distros. The problem occurs when the distro recognizes my nVidia card and uses the nv driver. This usually causes the system to not boot. I was able to get around this by using the Ubuntu alternative install CD and using the curses-based installer. This installer is more like the default Debian installer and doesn’t require X. I’m probably one of the few people who like this type of installer over the Live-CD installers. There are two main reasons that I prefer them.

  1. Curses-based installers are much faster. Waiting on a Live-CD to load can take time. There are advantages to Live-CDs but when I’m wanting to install an OS that I’ve pretty familiar with, curses-based installers are more efficient.
  2. Errors like the one I mentioned can make the OS much more difficult to get up and running. The installer mistakenly uses the wrong display driver. This mistake doesn’t just cause an issue with X. It makes the entire system freeze for some reason.

So even though I used the alternative installer, I still ran into issues post-install. This required me to boot into recovery mode and install the proprietary nVidia drivers from the command line. Since one of Ubuntu’s goals is to make Linux easier for the masses, this is very counter-intuitive. If a first time Linux user ran into this same issue, they would be turned off of Linux instantly.

So, after having other issues with Ubuntu that shouldn’t be there, such as 64-bit Adobe Flash sucking completely on it (videos won’t pause or let you use the slider to seek through them), I decided to try something else. I thought to myself, “Why not try Debian 64 bit?” I was in for a surprise.

Debian had none of the issues I ran into with Ubuntu. I even installed the desktop right away, and it came up without any errors. I still had to install my proprietary nVidia drivers, but for some reason Debian used X settings that didn’t freeze the system. This is probably due to the fact that it doesn’t use Compiz right out of the box. I believe that the issues I had in Ubuntu were due to Compiz being enabled by default. I like my eye candy just as much as the next guy, but a desktop that works out of the box is a great thing.

I’ve always like Debian as a server OS and I’ve used it many times as a desktop OS. I have to say, after evaluating the latest Ubuntu and Mint, Debian is still very relevant and could even give them a run for their money as a desktop OS. Sure they have some added features that make them a bit easier for a new user, if the user doesn’t run into the issues I had, but for many of us, Debian is actually easier to use. I’ve been using Ubuntu so long, letting it take care of things like my networking and automatically starting Empathy when I login, I have forgotten just how simplistic Debian can be. It does what I want, when I want it, with little fuss.

I’ll be using Debian this year. I may try out the next Ubuntu release in October. I’ll probably try a few other distros as well, but Debian doesn’t seem to be going away from my computer any time soon. The politics inside the Debian camp may be rough, but the results are spectacular.

Original Charlie Bucket looks a lot like Mario

I was just watching the original Willy Wonka and the Chocolate Factory on Netflix and I thought that I’d see if the guy that played Charlie did anything else. Apparently, he didn’t do any more movies except for the 1971 classic. He’s now a veterinarian in NY. I wonder if he has intentionally made himself look like Mario.

Charlie Bucket looks like Mario
Charlie Bucket looks like Mario

I must also point out that even if he looks like Mario, I commend him on being happy with his life. He obviously loves what he does. He looks like a good man.

Streamlining e-commerce

E-commerce has been around for a while now. Ever since the early day of the internet, people have been making purchases online. It has become much better over the years, no doubt. At the same time, it has become a very complicated beast.

I recently started a class on e-commerce. We are actually in our first week of class still, but one of the first discussions has centered around a diagram that lays out the steps involved in a typical e-commerce setting. Looking at it has led me to realize that e-commerce is much more complicated than it should be.

I have a prediction for the next decade or so. There are some forms of e-commerce which have already emerged as forerunners of a new type of system. People don’t want to go through a 12 step process to make a purchase online. We make purchases online because they are convenient. I would much rather go shop, when I’m trying to decide what I want to buy. However, if I know what I want to buy, I would much rather purchase it online.

Online purchases are more convenient, offer more selection, and are less expensive due to the more globally competitive marketplace. It’s not as timely in regard to actually receiving the product. One has to wait for the product to arrive through shipping. Today, shipping has been streamlined to the point where it’s almost not a good argument. I would much rather wait for a product to ship to me than fight the crowds at the stores.

Think about a trip to your local Wal-mart. They have fifty checkout lanes but only five are open. They could handle a massive amount of people, yet you almost certainly have to wait in line every time. This is, of course, unless you are like me and only go at 3am. At 3am there is only one lane open, lane 17 next to the cigarettes.

The point is, no matter how many customers there are in the store through the day, there are always lines at ever cash register. These lines keep people in the stores. It makes them spend more. The longer you are in Wal-mart. The longer they have to convince you to buy something else. They do this, not through pushy salespeople, but through subtle subliminal advertising techniques that deal with your senses of sight, smell, and hearing. They’ve found that the best way to get someone to spend more money, is to make them stay in the store longer, and at the end of the visit, they put you in tight quarters with many “must-have” items. They also put things like candy and tabloids there for you to grab while you wait.

This technique is being tested within e-commerce itself. Let’s dig into this more and discuss how people make money online.

Making money online is dependent upon one thing…Traffic. Traffic is THE major factor in making money online. If one has traffic, the rest is pretty easy actually. Some people will tell you that you have to have targeted traffic or a certain type of traffic, but that is non-sense. The only real requirement is TRAFFIC. With traffic, you can find a simple way to make money.

That’s what these sites are thinking when they make the checkout process so difficult, and this theory probably holds a lot of weight. It most likely does create more income for the sites. If they customers spend more time browsing your site, they are more likely to buy more stuff. Here’s one thing to consider though. How annoyed with your site does the average customer become after a given amount of time.

Apple has done one thing completely right over the past decade. Some people think that Apple is great because it made such a great media device when it created the iPod. You may feel that the iPhone is simply the best phone ever made. All of these are mere opinion. All of these are things you would hear fanboys of Apple spout.

I agree with us trade data that the iPod is not an amazing product in the personal media device category. It’s merely a mediocre product. The really amazing product in this situation is the iTunes store. Now, along with the AppStore and the BookStore, Apple has created a digital marketplace that is superb. These stores don’t offer the typical e-commerce atmosphere. They make the buying process a one-click process. THIS is why the iTunes and AppStore is better than most others. They meld their hardware products such as the iPod, iPhone, iMac, Macbook, and Mac Mini to their stores of digital products.

Their version of e-commerce takes a 12 step process and turns it into a three step process. Those steps are browse, buy, and use. They have found that the faster a users gets through the buy step, the faster they can get back to the browse step.

In the future, we will see a lot more marketplaces like this. Others have already appeared, such as the Playstation Network.

This is the new way to sell things on the web.

Eclipse issues in Linux Mint

I’ve been wrestling with IDEs and OSs for the past few days, trying to decide which would be best for Javascript and PHP development. I had been using Netbeans. I absolutely love Netbeans, but I found that editing Javascript in it was somewhat lacking. I was having trouble keeping up with my nested anonymous functions and thought it’d be a good time to try out other alternatives.

I bounced around between Linux Mint, Mac OS X, and Windows 7. I find that I would really like to program on my Macbook Pro, but it just doesn’t feel comfortable. There’s something about the keyboard setup or something that just annoys me. It’s more of a problem with my familiarity with the keyboard, I think. At any rate, after messing with Eclipse, Netbeans, and Textmate on my Mac, I decided it was going to be a no-go.

Windows 7 presented a problem in the fact that XAMPP seems to have issues with sessions. They work but almost at random, creating a new session will lock up the entire web server. When you are developing a website which uses Sessions for user logins, that creates a problem. So, I decided it would be in my best interest to use Linux, which seems to be made for programmers, because most programming related things work great in it and the fact that you almost have to be a programmer to get some things to work correctly in it. Though, that is an outdated misconception, but everyone still seems to believe it.

I had been using Linux for most of the development of my new project anyway. So, there was no transition there. I’m using SVN on a server machine so it really didn’t matter which OS or IDE I decided upon for that. They are all pretty universal in their ability to handle SVN. The major exception was Mac OS X which didn’t include the ssh-askpass command needed to tunnel SVN through ssh correctly. I was able to find a shell script that handled the ssh-askpass function, however. Textmate didn’t really work well, either, because it didn’t really have robust SVN integration. It was pretty much just like manual SVN. I also needed separate programs for Diff and Merge. That was lacking and clunky. I was spoiled by Netbeans’ built-in Merge, Diff, SVN, and so forth.

I thought I’d give Aptana a try. It is a PHP developer plugin for Eclipse. It is also available in a standalone package. I had various problems with the standalone version of Aptana so I decided to install Eclipse from the LinuxMint/Ubuntu repositories. Eclipse worked great, and Aptana installed perfectly. However, I needed the SVN tools that are Aptana add-ons. They wouldn’t install. There was a version conflict with the version of Eclipse in the LinuxMint/Ubuntu repositories.

So I decided to install the latest version of Eclipse. I downloaded and ran the latest version and found that there were UI issues. This brings me to the subject of this post. The UI issues were a major roadblock, so I searched for a solution. The problem, I believe, stems from compositing inside Gnome. Unlike Ubuntu, I couldn’t find an easy way to turn off compositing inside LinuxMint. OH, I’m sure I could disable the compositing extension inside the xorg.conf file, but I really wanted a light switch option. The normal way I would handle this is the Fusion Icon. It didn’t seem to work. I also tried disabling effects from the Gnome Appearances menu option. Compositing just wouldn’t turn off that easily.

So here is the solution for Eclipse and Aptana inside Linux Mint.

GDK_NATIVE_WINDOWS=true /opt/eclipse/eclipse

That will work if eclipse is installed in /opt/eclipse, but I just had mine downloaded to my home folder. It doesn’t really matter. You would just change the /opt/eclipse/eclipse to your actual executable path. The key here is to add the GDK_NATIVE_WINDOWS=true before the eclipse command.

I’m about to create a shortcut to do this for me. Now all my buttons will work when I click on them. That’s convenient huh.

Resetting WordPress Passwords Manually

I’ve had to do this for my wife and her mom both, so I thought I would share this with anyone who needs to reset a WordPress password. I personally love WordPress. You can build any type of site with it, not just a blog. If you have created a WordPress site but haven’t visited the admin dashboard in a while, you may have forgotten your password. I thought that WordPress would email you a lost password, but maybe they didn’t put in their correct email address. It could have also been the installation script they used through cPanel. Whichever the case, they couldn’t get into their dashboard and they needed their passwords sent to them.

There’s a very easy way to reset that password through SQL. Whether you are using phpmyadmin or some other SQL client to access your databases, you’ll want to use the following SQL statement to reset your password:

1
UPDATE `wp_users` SET `user_pass`=md5('password1') WHERE `ID`=1;

You can change password1 to whatever you want. I’m amazed that WordPress passwords aren’t stored with more encryption than a simple MD5 hash. It’s secure enough, don’t get me wrong. I’m just surprised that the WordPress developers didn’t opt for more.

Oh well, I hope that helps someone in a pinch.

Weight Loss Time

About four years ago, I gave up drinking as a hobby. I was drinking around a 12-pack per day. I had been doing that for about three years is my best guess. I didn’t give up drinking altogether. I just stop drinking daily. I actually haven’t had a drink in a few months, and before then it was months since I’d had one. So, all-in-all I’m completely broken from that habit.

That was my first goal. Once I was able to go months without drinking, I decided it would be a good time to stop smoking. That was my primary goal. I knew that, as long as I was still drinking, I would never be able to stop smoking. So, I went to my company’s nurse practitioner and she set me up with a prescription to Chantix.

Now, I don’t have an affiliation with Chantix. I make nothing from saying this. That medicine was awesome. I went into the whole thing thinking I’d like to quit smoking. I wasn’t very determined. I just thought it would be a good idea to try. Maybe I really had more determination than I thought. Who knows? At any rate, I started taking the Chantix and set my quit date for a week into the treatment. This is how I was instructed to do it. Within three days of taking the Chantix, I stopped smoking. I didn’t even finish the whole week. Smoking started to make me nauseous. I continued to take the Chantix for about three weeks. The instructions I received were to keep taking it for at least two months. I couldn’t handle the sick feelings I got from it, and I was certain I had quit smoking for good.

That was September 13, 2008. I have smoked half a cigarette since then. I hated it. Now I’m smoke-free but I have a new problem.

At the time I quit smoking, I was working in an office position. I was already gaining weight from that. I’m about 5’9″ and when I quit smoking I was up to 220 lbs. Within four months of quitting, I was up to 240 lbs. My weight equalised at that point. That is much heavier than I’ve ever been. Just 6 years ago, I was around 180 lbs. Three years before that, I was around 150 lbs. So, less than a decade ago, I was around 90 lbs lighter than I am today.

I know it’s corny, but my new years resolution is to loss weight. I’m cutting my calorie intake down to less than 1200 per day, and I’m jumping on the treadmill twice a day for no less than 100 calories burned each time. Also, my calorie intake has to be limited to mostly snacks of 100 calories or less spaced out at least one hour apart. There will be exceptions to this and I’m not going to kill myself trying to stick to these rules but those are my general rules for the weight loss program. I’ll probably be eating lots of tuna straight. Hopefully I can stick to this. It’s about the only thing left for me to fix about myself.

Another look at Google Chrome

I’ve never published a “first look at Google Chrome”, but I have been excited about it before. By Google Chrome, I’m referring to Google’s webkit-based browser, not the Chrome OS.

When it was announced that Google was releasing it’s own browser, I wasn’t extremely excited. Then once it was available, I downloaded it to see how well it performed. I was amazed. The javascript executing was blazing fast. I’d never seen a web application respond so well. So, I suddenly became very excited about it and wanted to adopt it as my main browser.

This was soon shot down by the fact that I rely too heavily on certain extensions in Firefox, namely Gmail Notifier, Firebug, ForecastFox, and Adblock Plus. So, I had to keep using Firefox and hoped that one day Firefox would be able to handle javascript as good as Chrome.

Well the opposite has happened. Chrome now has extensions. I’m a little worried that it will be bloated and start performing slowly like Firefox. Firefox was once a lean mean browser. Now it is a bloated mess. It has started crashing without warming in Windows 7. I was once a Firefox advocate and I still like the browser, but it has been going downhill for the past year or two. Let’s hope that Chrome doesn’t follow down this path.

Firefox shouldn’t even be that bloated. Sure, the extensions probably add to memory usage and Firefox reserves memory if it’s available, but should a browser really be using half a gig of RAM? Seriously?

Chrome doesn’t use less memory but it sure responds better. Adding extensions doesn’t seem to lower performance either. I’ve added a GMail notifier, Google Wave Notifier, Forecastfox weather, Firebug Lite, and a couple other extensions and there is no noticeable change what-so-ever.

Now that these extensions are available for Chrome, I think it’s time for me to take the next step. Chrome will be my main browser as soon as the extensions are available for the Mac and Linux versions. It’s already going to be my main browser in Windows.

So, if you took a look at Chrome when it first came out, this may be a good time to look at it again. There are a few added features that may change your mind about it as well.

Reblog this post [with Zemanta]

ExtJS Bug – Form doesn’t submit

ExtJS is a great framework, and I really enjoy using it. There is a bug that I feel more people may happen upon and I hope this post will help them with the solution.

Let me start off by saying that I love the ExtJS framework and it has been a pleasure to learn it over the last few days. It is probably the most professional JavaScript framework I’ve seen, thus the reason I wanted to add it to my latest app. The documentation is very thorough and it’s very easy to learn.

However, I’ve spent most of my day (when not taking care of kids and doing school work) trying to figure out why a simple form I’ve created doesn’t submit. The thing that really had me perplexed is that almost the exact same code worked for another form on another page. It was frustrating because I just knew it was something I was doing wrong.

Perhaps the most frustrating part about it was the fact that it was a bug in the framework itself. From what I’ve since found by researching on their forums, the bug was reported a few versions ago. There’s a work-around and I’ll get to that in a bit, but I want everyone to see the code.

var dbPanel = new Ext.form.FormPanel({
		id     			: 'dbPanel',
		name   			: 'dbPanel',
		height 			: 'auto',
		width  			: 'auto',
		standardSubmit 	        : true,
		layout 			: 'form',
		method 			: 'POST',
	        url    			: 'db_verify.php',
		border			: false,
		bbar			: tb,
		keys			: [{
		     key	: Ext.EventObject.ENTER,
		     fn 	: verifyDB
		}]
});

This is the code that doesn’t work. It’s a basic form and it should POST data to the db_verify.php page. The “standardSubmit : true” sets the form panel to use the old standard submit instead of Ajax. Here is another example that works:

var loginPanel = new Ext.form.FormPanel({
		id			: "loginPanel",
		height		: 'auto',
		width		: 'auto',
		layout		: 'form',
		border 		: false,
		standardSubmit	: true,
		url		: 'login.php',
		method		: 'POST',
		bbar		: tb,
		keys 		: [{
		   	key: Ext.EventObject.ENTER,
			fn : doSubmit
		}]
	});

There’s very little different in these two instances of FormPanel. The only difference I could find was that the first one doesn’t work and the second one does. In fact, I changed just about every option three times or more just to make sure I wasn’t missing anything. Everything I did gave me the same result. The page would refresh to itself and my form data would just disappear.

The eventual fix for the problem is to manually set the DOM action for the form when the handler is fired. So, for the first code listing, my handler went from looking like this:

var verifyDB = function(){
     dbPanel.getForm().submit();
};

To looking like this:

var verifyDB = function(){
    dbPanel.getForm().getEl().dom.action = 'db_verify.php';
    dbPanel.getForm().submit();
};

The first handler worked perfectly well with the other form submit. For some reason, it just seems to randomly decide it isn’t going to work for this scenario. It’s an easy fixed, but when you are trying to learn a new framework it’s not good to deal with a bug like this during your first few days.