Sunday, December 15, 2013

Broke My Debian System

So it appears my Debian "Wheezy" desktop is broken. Came home last night and my gf attempted to look at FB using the desktop. She mentioned it was being very slow and the Seamonkey browser kept crashing. So I rebooted thinking: flush the memory, things will return to normal. Nope.

Upon rebooting, I noticed a warning message indicating:

root file system has insufficient space

OK. That is a new one. I proceed to finish the boot process and expect Debian to load but nothing happened. So I rebooted into Debian Safe-Mode (which allows for command line maintenance) and entered the df command (disk free). df showed my main partition where all my files are stored is 100% full. Not sure how that happened since I have not downloaded any huge files. I entered du (disk usage) and found my home directory was 29 Gb. (The hard disk is only 37 Gb). Various other directories had 1-4 Gb of data. Very strange because my install of Debian is relatively fresh with a reformatted disk.

So I concluded that I needed to delete some files and the best way to do that would be to load a live CD and poke around the bloated partition. I inserted Precise Puppy (Puppy Linux) into the CD-rom drive and rebooted. Puppy loaded OK but I immediately noticed that only one of the two hard disk partitions were mounted. Upon scanning my hard disk with Gparted, I realized the volume that I need to access uses LUKS full encryption and I cannot mount it to delete some files. Bad news.

Here things got worse. I turned to the Internet for some help. I found a discussion about mounting encrypted volumes from command line at Ask Ubuntu. I found some information that looked promising and entered the following command:

cryptsetup luksOpen /dev/sdb5 sde5_crypt

The result of which gave me:

device-mapper: reload ioctl failed: No such file or directory

Great!  I don't know what that means.

I did find a very good short blog post on this subject by Alvin Abad,
How to Recover a LUKS Encrypted Disk, but I still end up with the device-mapper ioctl failed error. 

Unfortunately, the PC hardware has got to be around 10 years old and various components are failing (power supply, audio card) so I think it is about time to build a new PC. Too bad because I still  have a lot of work to do tonight.


Saturday, December 7, 2013

Uploaded My 1st Website

It took about 4-5 weeks but I finally uploaded my first website! I was much more excited when I was able to connect to the webhost server via FTP and finally upload my files. I had trouble with connecting to 000webhost via the file manager (to upload via the web) and FTP. Late last night I was able to connect with FileZilla and transferred all my website's files. I did put in a trouble ticket with 000webhost and received some feedback but wasn't much help.
My first website - Coding HTML with Free Text Editors for Linux

My website is about Coding HTML with Text Editors for Linux. Go to http://texteditorsforlinux.uphero.com to check it out. It took me awhile to put together the research (I actually used all mentioned editors to put together the site). I wrote about GUI-based editors Geany, gedit, Leafpad, and TEA. I plan to add some WYSIWYG editors such as Kompozer, Seamonkey, and command-line editors such as Vi and Vim later. Anyways, I hope it can be of use to others coding HTML on a Linux-based system.

My current Twitter profile background image
In other news, I am planning a few more websites as well as enrolling in another course (Introduction to CSS3 and HTML5) at ed2go.com. For those interested in learning some new skills online (not-for-credit classes), I would highly recommend ed2go. So far my experience with them has been very good.

The next sites I am planning include a site about Twitter backgrounds. I plan to create a series of generic-themed backgrounds for people to download and use on their own Twitter profiles and possible draw some attention to myself as a graphic designer, maybe make a few duckets here and there ;)

Tuesday, November 19, 2013

General Update, New Projects

Have been super busy as of late with the holidays quickly approaching, class, and going to many work engagements. In other words, it has been difficult to update this blog. There has been much to write about in the tech world but I just have to leave it alone. On the one hand, I have been learning HTLM and will be taking another class starting December 11th. If anybody is interested, check out the catalog at ed2go for online classes on web development and associated topics such as Java and JavaScript. 

My latest project.


Currently I am working on building two websites, very amateurish but I promise to publish for all. One site will focus on text editors for Linux (I know, sounds entertaining). Another is influenced by the song The Gambler, by Kenny Rogers (now that will be entertaining). Check back soon for new writings on new tech happenings or random shit because they are happening all the time.


Saturday, November 2, 2013

Mask an Image with The GIMP

Original image.
Image with different background.


This past Halloween, I started working on a quick tutorial on masking images. Well it got complicated and I stopped. Well I am finally getting around to finishing this tut.

You can do a lot of cool things with masks such as replacing the background with a different image or making the background transparent to save as a portable network graphics (PNG) file.

1.) Load your image in The GIMP. I grabbed the skull from SXC.hu, a great place to look for free stock photos. Be sure to read the standard restrictions before downloading and using an image from SXC.hu. Note: Try to grab a photo with a simple background color. For this tutorial, I will be using the Select By Color tool to select the image. You may also use the Free Select Lasso tool or the Scissors Select tool (aka Intelligent Scissors) if Select By Color does not work for you.

2.) Go to the Layers dialogue and right-click your image and select Add Layer Mask. In the Add Layer Mask dialogue box, just select White (full opacity). You will see a white box appear next to your image.

Add Layer Mask

3.) Now you are going to select the image. See the black box around your image in the Layers dialogue? That means that image is inactive. We need to make it active. To do this, you need to select the image using the mouse. You should see the black box move over to the white mask.


Select the image. Move the black box over to the white mask.

4.) If your image has a solid background, use the Select By Color tool from the Toolbox to grab the background area of the image. If your background is more complex, you will want to use the Lasso tool to grab the area around your subject.

After using the Select By Color tool, you should see some squiggly/marching lines around the edge of your image (the background) and the part of the image you want to keep. This will select the image you want to keep and allow you to erase the background.

Note: If you used the Lasso tool, you will see the marching lines around your subject that you enclosed the Lasso around. After selecting the subject with the Lasso tool, go to Select, Invert. You need to invert your selection in order to remove the background with the layer mask. Once you invert, you will see the marching lines around your subject and the background, such as in the example below.


Marching lines around your subject and background.

5.) Now go back to your Layers dialogue and select the white mask (move the black box over to your image).

Select the mask. Move the black box over your subject.
6.) Before you remove the background, you need to make sure your foreground and background colors are white and black, respectfully.  Go to the Toolbox and make your foreground white and your background black.

Foreground is white. Background is black.

7.) Select the Eraser tool and an appropriate brush. Proceed to remove the background. With the layer mask selected, and your foreground color white, the eraser will remove the background and leave the image you want to keep. Proceed to remove the background.


Use the eraser to remove the background. Make sure your Layer Mask is selected. Note, in this image, the Layer Mask is missing in the Layers dialogue.

8.) You will see the layer mask in the Layers dialogue change. The white is visible but the black is not. This is an example of a layer mask. Now you can un-select everything (Ctrl+Shift+A or Select, None). Save the file as an PNG or replace the background with something else.


Using the eraser to remove the background.

9.) I went to SXC.hu and downloaded a stock image of some flames. To create the background, first add a new transparent layer. You can do this from the Layers dialogue or select Layer, New Layer. The default values are OK in the New Layer dialogue. Select OK.

10.) Drag the new layer below the masked image in the Layers dialogue. Select the new layer. Select File, Open As Layers and add your background image.

11.) Now you have the image and the background, you may see some areas that you need to retouch.

Some areas that need to be retouched.
12.) Use the eyes in the Layers dialogue to hide the background. Make sure you have the Layer Mask selected (the white border around the layer mask in the Layers dialogue). By doing this, you can bring back the background we erased earlier without touching the image.


Hide the background. Select the Layer Mask.

13.) After retouching, you can reveal the background. You may want to add a Guassian Blur to the mask to blend the image with the background.

Adding Guassian Blur to the Layer Mask.

14.)  Here is the end result of this project. Hope you had fun. If you have questions, feel free to reach out.


Monday, October 28, 2013

Comcast Internet Plus: Psst! Hey buddy, what a cheap deal on a bundle?

In what appears as a move benefiting the consumer, last week it was reported here and here that Comcast is testing a package deal offering Limited Basic TV, HBO, and high-speed Internet access.

According to DSL Reports, the package is known as Internet Plus and includes local broadcast channels, video-on-demand, HBO, HBO Go, and 25 Mbps broadband Internet service. The deal also includes, StreamPix, a streaming video service being offered by Comcast. The trial is not available in all markets.

To those looking to shave a full dollars off the monthly bills and still have access to high quality entertainment and Internet access, this seems like a sweet deal.

Figures from DSL Reports.
However, Comcast plans to sign-up subscribers with a promotional low price. Within two years, the subscriber would pay $80 per month for Internet Plus. DSL Reports notes that the package trial begins with a promotional price of $40 to $50 monthly for one year. After that Comcast plans to charge $60-$70 for six months, then the price jumps to $70-$80 dollars per month. That is no longer a sweet deal.

Local News over-the-air TV.
For $80 per month, consumers can get a better deal from the satellite providers. (Although this does not include broadband Internet). Consumers can also get a better deal from Comcast itself with their Digital Starter and Performance Internet (20 Mbps) package.

For those looking to really save money, I would suggest purchasing a digital antenna for over-the-air HDTV reception and pick up the local channels. Then subscribe to the most basic broadband Internet service you can find. Currently, at home I am subscribing to Comcast Economy Plus (3 Mbps) for $39.99/month. I can verify that 3 Mbps is adequate for Netflix and streaming HD video.

Internet Plus looks more like an attempt to recruit some cord-cutters with a low entry fee. Like a media crack dealer, first one is always free (or cheap). When subscribers get hit with higher costs down the road combined with the wide variety of options (Chromecast, Apple TV, Roku) they may swear off cable for good.

Saturday, October 26, 2013

Rdio Free On Mobile, Last.fm Scrobble, Pandora Workaround

Ever since my Last.fm radio stopped working in my Chromium and Seamonkey browsers, it's been a long time since I have tuned into any online personalized music streaming service. I haven't bothered to figure out the problem. Mainly because I have been busy and also I don't like to listen to music through my browser. Before that, I had a lot of fun streaming Last.fm from my Rhythmbox desktop media player, but then the API was killed by Last.fm. This affected not only desktop clients but the Last.fm Android and iOS applications. Matthew Hawn of Last.fm announced in a blog post:
On February 15 [2011], the radio service built into Last.fm mobile apps and on home entertainment devices will become an ad-free, subscriber-only feature.
Subscribing to Last.fm is cheap, $3.00 a month, and it is very tempting. But I am cheap to.
My Last.fm Profile shown in Rhythmbox.

I preferred Last.fm to other online music services because the recommendation engine is so much more personal. This degree of personalization is primarily due to the effect of scrobbling your own music collection. Last.fm uses scrobbling to maintain user listening data. Everytime a listener listens to music on a Last.fm-enabled player such as Rhythmbox or Banshee, the tracks get sent to Last.fm where the user's profile is updated. This helps build the Last.fm recommendation engine. My personal music collection weighs in at about 20GB. Very modest I know but it is mine, consisting of just about every CD I have purchased since I was maybe 12 years old. No pirating.

Connect your Facebook, Twitter, Last.fm with Rdio.
During the time of free streaming from Last.fm for players such as Banshee, Rhythmbox, one could also scrobble music from Rdio.com. For the streaming radio listener, this was great because it added an additional music engine to diversify your Last.fm profile. Also, when Rdio first started, it was free to stream from the browser for a few days a month. However, like all good things, Rdio ended the free service. Rdio now charges $9.99 for mobile and desktop streaming, $4.99 for desktop browser streaming. This is hard for me to justify since we still have Pandora.com, which is a freemium service (with ads). Also, for mobile, not only does one pay for Rdio streaming, but for their data plans as well.

Pithos desktop Pandora client, ad-free.
Luckily for the listeners, Pithos, a native Pandora Radio client for the GNOME Desktop is still able to stream music from Pandora.com, ad-free. Like the good old days when we streamed our Last.fm accounts through our desktop clients. However, Pandora does not support scrobbling so the recommendation engine is just not as good.

Today, I checked my email and there was a note from Rdio telling me: Stations, now free on mobile. Tune in.

Rdio knows me. They beckon to come back and listen-without paying a thing. In fact, Rdio has been offering this service to former subscribers since October 3rd, 2013. Some speculate that since partnering with Cumulus Media, an owner of 525 radio stations, that Rdio would be switching to ad-supported freemium model. Well that sounds great, I can add Rdio to my iHeartRadio app on my Nexus 4 phone. However it would still be nice to get the same free listening on my desktop again  but those days are pretty much gone.