Skip to main content

Posts

Long Time, No Write

It's been a loooong time since I last wrote. The past several years have seen a huge shift in my career and technical objectives. I've gone from working almost exclusively on code to selling software as a technical sales engineer to now managing a team of technical gurus doing sales worldwide. As a result, my time for tinkering has slowed considerably. I do want to update everyone by saying that I am now back to Linux after many years stuck in a Windows world for work. My current employer is focused on open source technology and as such encourages us to use Linux and other open source tools in any way we can. I am now the proud owner of a Dell Laptop that has dual-boot setup for Windows and Ubuntu 18.04. I'll try to write up a post here in the next bit about my experiences so far, but my quick and dirty summary is that you should definitely give it a shot. There are a few hiccups to overcome, but, for the most part, it's been really nice transitioning back. Until ...
Recent posts

How to Create a USB Installer for Windows 7 in Ubuntu 13.10 Using UNetbootin

It's fairly easy to turn any ISO (such as the Windows 7 Professional ISO from MSDN) into a bootable USB stick using UNetbootin for Linux. However, I just found out today that UNetbootin doesn't support Windows-required NTFS-formatted USB sticks. Therefore, it's impossible to create the bootable USB with the huge (3.8 GB or so) ISO. Luckily, there is a workaround. Follow these steps and you should be good to go. Format your USB stick as FAT32 in GParted . You might have to adjust partitions at this stage, mine was setup correctly. Open UNetbootin (install if not found on your system) and input the options up to where it shows the USB partition to install to. Mine was set to /dev/sdb1 - Don't actually try to create the installer USB from the ISO at this point, however. That won't work because it's set to FAT32, not NTFS. Leave UNetbootin open as is. Reopen GParted if you closed it (not necessary). Format the USB in GParted as NTFS this time. You *might* ...

Canonical to Develop Own xwindows Replacement

I read a while ago that Canonical plans to develop their own xwindows replacement for Ubuntu. Given the long and difficult struggle that the X team has faced over the years in bringing their project into the modern computing era, I'm not entirely against that effort. However, I also know that members of the original X project have started their own modern version of a replacement ( Wayland ) that seems to fulfill all of the requirements Canonical is complaining about in X. So, the question then becomes, 'Why is Canonical attempting to reinvent the wheel with no significant differentiating factors?' It stands to reason that they could leverage the work put forth in the Wayland project. It seems unlikely to me that Canonical would not have known about the Wayland project. Given what Canonical did (or failed to do) with Unity, I'm skeptical that their new project ( Mir ) will be any more successful. I'd love to hear your thoughts on the matter.

How to Install Older Kernel in Ubuntu

From http://thanhsiang.org/faqing/node/129 Here is the summary of the steps (replace with your desired kernel versions). 1. Download the working kernel files: wget http://launchpadlibrarian.net/19976056/linux-image-2.6.27-9-generic_2.6.27-9.19_i386.deb wget http://launchpadlibrarian.net/19976058/linux-headers-2.6.27-9-generic_2.6.27-9.19_i386.deb wget http://launchpadlibrarian.net/19976059/linux-headers-2.6.27-9_2.6.27-9.19_all.deb 2. Next, install the three downloaded DEB files with dpkg: sudo dpkg -i linux-* 3. Reboot your computer. 4. Put your current kernel on hold (otherwise it would be upgraded once again during your next "aptitude update && aptitude safe-upgrade" routine): sudo aptitude hold linux-image-2.6.27-9-generic linux-headers-2.6.27-9-generic linux-headers-2.6.27-9 Note: https://launchpad.net/ubuntu/intrepid/+package/linux-image-2.6.27-9-generic https://launchpad.net/ubuntu/intrepid/i386/linux-headers-2.6.27-9-generic/2.6.27-9.1...

Running IE8 in Ubuntu

I discovered winetricks today. This handly little script and set of tools allows one to easily install IE8 in Ubuntu. Here are the details: http://wiki.winehq.org/winetricks Basically, once you've downloaded the script, run sh winetricks and then install the Windows component from the default wine config. After that, if you'd like a shortcut, you'll need to create a link to the iexplore.exe file in the c:\program files\internet explorer folder of your wine instance.

XPath Matching in Unique XML Namespaces (xmlns)

I ran into a problem trying to get my Python script to locate an etree node in an XML document that had declared a namespace for all elements in the document. The trouble I was seeing is that the find and xpath functions weren't returning anything for any of the searches I was doing. Nothing seemed to make sense until I realized that I wasn't including the namespace in the search. The bugger with this is that you have to declare the ns on each and every element in the document! To simplify things a little, i went with code that looked a little like this: The full code: from lxml import etree as ET fp = open("sitemap.xml","r") element = ET.parse(fp) namespace = "{http://www.sitemaps.org/schemas/sitemap/0.9"}" e = element.findall('{0}url'.format(namespace)) for i in e: print i.text

Editing XML/DTDs/XSLT/XPath in Linux

My favorite new tool for editing XML in Linux? Eclipse. That's right. The does-it-all-and-comes-with-batteries-too tool does a great job editing XML, XSLT, xpath, etc. All you need to do is add the plugin for Eclipse Web Tools (available in the standard list of plugins). Just enable the software site and install the latest version! Very simple and very powerful.