This guide walks you through the necessary steps to configure the Eclipse IDE for PHP debugging. This can be very handy, especially when you’re trying to resolve an issue in a complex PHP application or plug-in.
Things you’ll need
Eclipse PHP Development Tools (PDT)
This article assumes that you are configuring Eclipse and Xdebug for development on a localhost web server. If you are not, be sure to make appropriate adjustments to accommodation your needs. Likely the only changes you will need to make will be differences in connecting to your server verses localhost.
For those that are unaware, Eclipse is a very popular IDE for developing in Java. However, Eclipse is much more powerful than that and can in fact easily be used for developing in many other languages including PHP.
Xdebug is a brilliant debugging extension designed for use with PHP. Once configured, Xdebug will allow you to remotely connect to your web server… or in my case connect to my development localhost web server. Rather than using crude echo and logging techniques to debug your PHP code, Xdebug allows you to literally step through and inspect values and function flows in real-time.
Creating a bootable Windows 7 x64 flash drive from within a 32-bit install of Windows is not as straight forward as it may seem. I recently had to go through this process myself, so I’ll document the steps below.
3. Save and close the text editor. You may need to restart Unity or your computer before changes take effect.
Customize your Quicklist
If you’d like to add more items to the Quicklist, simply add a shortcut name for it in “X-Ayatana-Desktop-Shortcuts" and create a "Shortcut Group" for it.
A couple of things that I considered adding were Gmail and Google Reader so that they simply open in new tabs. I’m sure you can find other useful shortcuts to add or maybe even more Opera command line options!
Remove your Changes
If you don’t like the Quicklist items that you’ve added, all you need to do is open the opera-browser.desktop file and remove the lines that were added. Save, close and voila.
Quicklists are great, but they would be more useful with Opera if we were able to select from a list of open or recent tabs.
The new tab and window shortcuts that I’ve added are enough for me at the moment, but I would really love to see them added by default in the near future!
With so many people talking about the new Ubuntu Font that’s soon to be released to the public for beta testing, I thought I would take the opportunity to post a quick and easy guide to testing these fonts before everyone else does!
If you’d like to test these fonts, then you need to follow these instructions exactly (since the ppa is “private”). I found other site instructions a bit confusing, so if you follow my directions you should have these installed effortlessly and pain free in no time.
Now open a new tab and navigate to the following link. Once there, you should see the PPA listed as “ppa (ppa:ubuntu-font-beta-testing/ppa)” in your list and it may be the only one. There should be a link labeled “View” to the far right of it, click it. http://launchpad.net/people/+me/+archivesubscriptions
The link that you just opened when clicking view should list software sources for this PPA that are unique to you. Open your software sources list file and copy these two source lines to the bottom, save and close (using the following command to open the sources). sudo gedit /etc/apt/sources.list
Add the PPA key so the package is authenticated properly when you install: sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 42F834EC
Update your software sources. Your new access to the private PPA may take between 5-15 minutes before its processed, so if you see errors for this software source in the terminal, be patient and try updating again in a few minutes.: sudo apt-get update
Install the font: sudo apt-get install ubuntu-private-fonts
Now that the fonts are install, apply them by right clicking on your Desktop -> Change Desktop Background -> Fonts (tab):
You should now have the new font installed. Good luck and enjoy!
If you’re using Ubuntu 10.04 or newer and have installed the proprietary Nvidia or ATI video drivers then you likely know what I’m talking about.
The nice Ubuntu boot screen that you saw during the installation is now a low quality image and the resolution is wrong. Fortunately for you and I, there is a fix for this written by Marius Nestor at Softpedia.
I’ve taken the liberty to implement his steps in a single script that makes the work on your end a much easier task. Only use this script if you have not already attempted to follow Marius Nestor’s tutorial.
Skype is already available in Linux and usually works well. However, Skype to due to release an open source client (keeping the back-end closed source). Fortunately for Linux users, this means that you will likely get to use only one messenger client such as Empathy or Pidgin without ever opening the old Skype client and still have your Skype buddies listed in Empathy or Pidgin.
While the announcement was released in November 2009, there is no expected date of arrival. So unfortunately, Linux users could be waiting anywhere from a few more weeks to a few more years.
I’m looking forward to never having to launch the Skype client again and simply using Empathy alone to chat and call all of my Skype friends!
Anyone who has ever used Dropbox knows that it is dang good at what it does. You need something backed up? Drop it in your Dropbox folder and forget about it.
With Dropbox 0.8.x, we will gain a new feature called “Selective Sync” which will enable you to pick which files and folders from your Dropbox to sync, giving you more overall control.
Dropbox 0.8.x also brings a wealth of performance improvements to the table. With faster startup times and lower memory consumption when idling, this update is sure to be well received. File attributes are now noted and properly synchronized, so if you make a script executable on one computer it will be updated on all others as well. This is very handy for Unix/Linux users.
Rhythmbox Last.fm Plugin Updates
Being a Last.fm user myself, I find myself scrobbling a lot of music and very few options to manage my profile. I’d love to see this plugin integrate the ability to “Love” and “Unlove” tracks that you are playing from Rhythmbox itself.
The sound indicator applet is receiving an update which will manage to bring all of your sound controls into a clean and simple menu.
With this project well underway, you are already able to view what’s playing in Rhythmbox and pause/play the song from the menu. The artist, title and album are also implemented, leaving album art, playlists, back and forward controls, and a song progress bar to be anticipated.
Windicators (aka Window Indicators)
Windicators, as Mark Shuttleworth describes them, are indicators located in the top right side of a Window’s title bar that indicate specific states of applications that users should be alerted of.
From the mockup, you can see that Windows producing sound will likely have per app volume control windicators. Those dealing with stores and shopping carts will feature a shopping cart windicator to help you manage and navigate what you’ve stored away to buy.
I’m really hoping that this Windicator will be used in applications such as web browsers and the Ubuntu Software Center (which, by the way I think should be renamed to the Ubuntu App Store) so that web sites like eBay or Amazon and the Software Center can take advantage of this feature.
One improvement will be closer maximize and minimize buttons. The improvement, as I image it, can be seen below, but is not meant to represent a final product in any way.
Scrollbar steppers don’t appear clickable. One design I’ve been hoping for, but have yet to see anything implemented, is some nice themed steppers. Nicer of course than my crude artistic example below. 😉
Also mentioned is “Changing GTK to allow for a rounded stepper,” which is why I rounded the button in the mockup (if you click to view the larger version).
There are several other changes to be made for the theme, but as far as I’ve seen they’ve yet to appear in updates.
One of my favorite features in Ubuntu is desktop effects which are powered by Compiz. It seems like compositing windows managers have been changing at an incredibly unpredictable rate since I first started using Linux.
I first started using Beryl to get cool effects for the desktop way back in the early stages of Ubuntu. Soon after, Compiz-Fusion became the next big thing. This developed as a bit of a merge between Compiz and parts of Beryl.
Not long thereafter, various Compiz related branches were merged and the project became known simply as Compiz again. What’s cool about this is that in the merge, Compiz was being ported from C to C++ (also known as Compiz++) giving it a large number of benefits (that I won’t get into here).
The good news is that Compiz 0.9 unstable has been released and is ready for regression testing! Hopefully it won’t be a great deal longer before Compiz 0.9 matures and is released into the wild.
Vavle’ Steam Client
If you don’t already know about Steam, according to Wikipedia it’s “a digital distribution, digital rights management, multiplayer and communications platform developed by Valve Corporation.”
Its been rumored that the Steam client will be coming to Linux, but all we can do is wait in anticipation and see what happens.
Steam recently became available to Mac users, so it may not be too far fetched. If it does come to Linux then it will bring a plethora of games to the platform that would have otherwise never been available.
Here’s to hoping that someday soon I will be able to play Counter-Strike: Source without booting up into Mac or Windows (or using Wine).
Ubuntu Boot Screen Fixes
While there are ways to fix the boot screen yourself, I tend to prefer them just working automatically. This isn’t the case in Ubuntu 10.04 if you’re using the nVidia or ATI video drivers.
Being only in Alpha 2, Ubuntu 10.10 still uses the boot screen of 10.04 as pictured above. While this is a very nice boot screen, it does have several problems.
As I said earlier, if you’re using nVideo or ATI drivers then you’ll have problems where the boot screen’s resolution is horribly wrong and your boot screen looks more like a crash.
Ubuntu is on the track of speeding up boot times, but if your system hasn’t booted before the animated dots make their cycle then you get to see it again. While this isn’t a horrible failure, its still a very unpolished design and desperately needs some attention. Still worse, the shutdown screen uses the same animation which gives it the illusion of loading, not unloading.
I’m hoping that if they take the time to address the boot screen that they will also take time to polish the boot menu for dual booting users. In its textual state it looks like something straight out of the days of DOS, and since Ubuntu is “Linux for Human Beings” I would say its time to ditch the textual Grub interface and move on to a polished Burg menu…based on Grub, but graphical.
If you have an active Last.fm account and like to switch up your wallpaper from time to time then you’ll love Wallpaperfm!
This python script, by Koant, has been around since at least 2008, but I’ve only recently stumbled across it. It’s easy to start using and is available for Windows, Mac and Linux users!
I’ll help you get started in Linux since that’s what I’ve set it up on. If you need more help or want more configuration options you should look to the information that Koant has posted on his website.
That’s the most basic set of options you can use to create your wallpaper (which you will find after running the script in the “wallpaperfm” folder that was created).
There are three options for the type of wallpaper created:
To specify one of these modes, simply run the wallpaper script with the mode flag set to your choice.
./wallpaperfm.py -u YOURLASTFMUSERNAME -m collage
There are plenty of other settings you can specify such as size, canvas size, filename, profile period, final opacity, cache, excluded albums, local copy, etc.
Suggestions and Ideas
User Interface and Packaging
I’m sure that this script could be simplified further for Linux users (and more specifically, Debian/Ubuntu users) if a user interface were created. It actually seems like a rather simple task since the parameters for the script are well bounded.
Adding this interface to an installer package would also be a very simple task and would most likely get more attention to such a neat tool!
Cron Jobs, Regularly Updating Your Wallpaper
Another thing, if your music preferences are constantly changing like mine, you may be interested in updating your wallpaper in regular intervals. To do this you can setup a Cron job that runs in the background.
While this may sound difficult and confusing, its really not at all and this helps explain a lot. I can even walk you through the steps.
sudo apt-get install gnome-schedule
Open the application (in Ubuntu) through the Applications menu -> System Tools -> Scheduled tasks.
Click the New button and select the Recurrent task type.
Give the task a description.
Enter the command that runs your script. If you followed the steps above then it should be something similar to:
A little while back I ran into a problem in Linux and wanted to take a screenshot of it. In most cases you can simply press the “Print Screen” key on your keyboard and move on.
In other cases its not so simple. Often times, when you want to take a screenshot of a menu, you’ll find that the screenshot tool cannot be called while the menu is open. You can get around this problem in most cases by installing Shutter.
While Shutter is a great tool with some very handy features for screenshots, it also doesn’t always work or is unable to capture some things (as far as I’ve found).
One solution that is very simple to use is a simple command line (link sent to me from a friend). If you hate command line tricks then you can easily make a Gnome button for this as well. 😉
The menu that I was trying to grab a screenshot of was an Opera sub-menu from the O-menu icon (can’t remember which one for sure, but probably the Bookmarks sub-menu). Print Screen wouldn’t work, Shutter complained that it couldn’t detect any open or focused menus, so I resorted to the following:
$ gnome-screenshot --delay=10
Basically, this command calls the same program that is called when you press Print Screen, but since you’re adding a delay (10 seconds in this case) it has already been called before you open the menu..which rules out the problem of your keyboard Print Screen key not working.
While this seems to be a very simple command, which it is, I’ve benefited from it several times already. So if you ever find yourself having trouble capturing a particular screenshot, just pop open a terminal and use this delayed command!
If you’re looking for for an easier method and don’t mind a permanent button in your Gnome panel, just do the following:
Right click your panel and select “Add to Panel…”
“Custom Application Launcher” should be the first option in the list that comes up. Select it and click the “Add” button at the bottom.
Leave the “Type” as Application.
You can name this launcher anything you wish, maybe something like “10s Delayed Print Screen”.
Copy the command that I mentioned above into the field labeled “Command”. You can change the value from 10 to anything you want or need.
You can copy the name text into the “Comment” field as well since this is what you will see when you hover the button.
You could optionally edit the icon if you wanted, but its not necessary. Click close and you’re done.
Have you ever wanted to have awesome looking stats on that rest on your desktop and don’t interfere with your work flow? If so, you’ll probably love this nifty little application.
Its called Conky and it can give you stats or information on practically anything imaginable. Its also easy to install!
Conky is by no means a new application and there are in fact hundreds of Conky configuration files scattered across the Internet that you could use to customize the way yours looks. With a good basic guide and some helpful tips on auto-starting Conky, I’ve thrown together a quick installation and setup guide with pictures! 😉
Typically when you install an application such as this, you want it to auto-start. Auto-starting this application isn’t as trivial as most applications so I’ll walk you through that as well. I’ll assume your using Ubuntu of some sort, but if you’re not don’t worry…you can still install Conky with alternative steps and setting it up should not differ.
Open the “Ubuntu Software Center” application (also known as “Add/Remove” in older versions) and search for Conky. If its not listed then you may need to find a package online.
Find and install the Conky option entitled something along these lines: “highly configurable system monitor (all features enabled)“.
Create a file labeled “.conkyrc” in your home directory (usually saved as /home/username/.conkyrc) and make sure to include the period at the start. This will make the conky settings file hidden when you casually open your home folder so its not in your way. You may need to go to View -> Show Hidden Files or press Ctrl+H to view the file to edit it later.
Open the “.conkyrc” file in a text editor of your choice. Paste the linked snippet into your “.conkyrc” file.
Create a file labeled “.startconky.sh” in the same folder as the previous file making sure to include the period at the beginning and the file type at the end.
Open the “.startconky.sh” file with your favorite editor. Paste the following snippet into your “.startconk.sh” file: #!/bin/bash (sleep 5s && conky) &
Save both files and close the file editor you were using. Now right-click on the “.startconky.sh” file and click Properties and select the Properties tab. Make sure you check the option to “Allow executing file as program” then click close.
Go to your startup applications program or System -> Preferences -> Startup Applications and add a new application with the command option as “/home/username/.startconky.sh” where user name is your home directory…as follows:
Click Save! Now the next time your restart your computer you’ll have some awesome stats that appear on your desktop!
If you’re using the same web cam that I’m using, the Microsoft LifeCam VX-1000, then you may already be familiar with the difficulties involved in the process of getting this web cam to work in Ubuntu…or rather, the difficulties that were involved.
After countless days spent and hours wasted over the past 4 months that I’ve owned this web cam, I had not been able to find a solution to see it work even once.
The problems I ran into were that the few solutions for this camera were specifically for 32-bit Ubuntu, while I’m using 64-bit Ubuntu.
Typically these days, this type of problem isn’t architecture specific in Linux, which means that fewer people have to battle the problems that are unique to x86_64 platforms. In my experience with Ubuntu, x86_64 application/firmware support 4 years ago was a joke. Today, x86_64 support is commonplace and practically a standard.
After upgrading to Ubuntu 10.04, I was able to see this support change yet again! Without configuring anything in Ubuntu 10.04 x86_64 the video feed from my web cam was working flawlessly (I tested using Cheese 2.29.90)!
There is the small matter of getting the mic on the web cam to work, but for now I’ve got an old mic that plugs into the ports from the motherboard. So I will have sound, just not through the web cam just yet. Hopefully I can find a solution to this as well, in which case I will be sure to link you to. 😉
In the future, I’d also like to submit a patch or hack to enable the LifeCam Call Button like I did previously in Windows 7 so that you can configure what the button should do…take a picture, video, start a call or chat, etc.