I do a bunch of stuff, mostly following the instructions from Debian's site, and things are looking preeeetttttty okish. I start mucking around with what I think I need to do to fix GRUB ("hmm, well UEFI IS already setup for Win. Secure boot isn't enabled. OOOHHH, ok. Well, fuck.") and realize that the reason GRUB is that my fucking Linux partition is setup as MBR and not GPT because even though it's running on a pretty modern and fancy SSD,
Wednesday, May 4, 2022
Weird Issues After Upgrading to Debian Bullseye
I do a bunch of stuff, mostly following the instructions from Debian's site, and things are looking preeeetttttty okish. I start mucking around with what I think I need to do to fix GRUB ("hmm, well UEFI IS already setup for Win. Secure boot isn't enabled. OOOHHH, ok. Well, fuck.") and realize that the reason GRUB is that my fucking Linux partition is setup as MBR and not GPT because even though it's running on a pretty modern and fancy SSD,
Monday, July 30, 2018
Converting Picasa XMP Face Tags to Usable Exif Metadata Tags
![]() |
Is this the future? |
I guess I finally broke the delayed post pattern now that I'm finally finding a good use for this thing--psuedomemory for the technology shit I always forget about. I spend half my life trying to Google shit I Googled five years ago (and again three years ago, and again eighteen months ago...) Bookmarking pages hasn't really done me any good, because I forget that I bookmarked a site (and also because there are times I find the bookmark, but can't remember why I saved it, haha.)
So today's episode of "Chris' only reason to post an entry on this elderly blog" is brought to you because I have like 15,000+ pics that aren't really organized. Back when I used Windows, Picasa made things easier because of the face tagging technology. If you wanted to find a pic of a certain person, you could just click their name and voila, you were good to go.
However, Picasa typically writes those tags to an internal DB and not to the images themselves. There's a way to get Picasa to do that, but it writes them to a weird XMP field that isn't typically used by any other photo organizer.
I'm using Debian and GNOME as my desktop environment, so I'm using the default image manager that comes with the distribution. Unfortunately, it does not use XMP tags for organizing or searching, so I was basically stuck trying to find some way of migrating those Picasa XMP face tags (mwg-rs: Regions/ mwg-rs:RegionList[1]/mwg-rs:Name) into something that another application could search.
The solution is actually really easy to use, but the hard part was actually finding it! Google searching was a little wonky and the results weren't all that clear. I finally found this post in the Exif forum, but if you didn't phrase your search terms precisely that way, you'd never find it. Here's my useless search history:
shotwell search xmp
The post I linked to above was exactly what I needed and it actually was super easy to do. It's literally one line, assuming all of your photos are in a hierarchical directory.
Here's a video walk-through of how to make that happen:
It only took around 20 minutes to run through about 17,000 files in 254 directories. Not too shabby!
Here are some links to the stuff that powered today's post (all excellent, Open Source projects)
ExifTool by Phil Harvey- "a platform-independent Perl library...for reading, writing and editing meta information in a wide variety of files."
Shotwell- A digital photo organizer designed for the GNOME desktop environment.
Kazam Screencaster- The screen recording software I used to record the above video.
Monday, July 23, 2018
ComicTagger Error StrpTime
Long time, no see/speak/etc. You can thank an annoying, seemingly obscure technical problem I ran into for breaking my 42 months of blog silence. These hiatuses (yatus #bigbrother) seem to be getting longer and longer over the years.
So anyways, I decided to try to organize my electronic comic book collection yesterday and installed a program called ComicTagger, which helps grab and write metadata for comic books.
I get it installed and ran into my first problem right off the bat. The application wants you to put in the path to WinRar (or any RAR/UnRAR program) but the little tool you use to navigate through your filesystem doesn't actually navigate anything. It'll open the box and show you your root folder, but none of the contents. The workaround for that was to just manually type in the path. Since I'm running Linux, my path was "/usr/bin/rar" and "usr/bin/unrar"
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/taggerwindow.py", line 540, in dropEvent self.fileSelectionList.addPathList( self.droppedFiles ) File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/fileselectionlist.py", line 196, in addPathList row = self.addPathItem( f ) File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/fileselectionlist.py", line 271, in addPathItem if ca.seemsToBeAComicArchive() : File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicarchive.py", line 618, in seemsToBeAComicArchive ( self.getNumberOfPages() > 0) File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicarchive.py", line 775, in getNumberOfPages self.page_count = len( self.getPageNameList( ) ) File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicarchive.py", line 751, in getPageNameList files = self.archiver.getArchiveFilenameList() File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/comicarchive.py", line 395, in getArchiveFilenameList for item in rarc.infolist(): File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/UnRAR2/__init__.py", line 127, in infolist return list(self.infoiter()) File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/UnRAR2/__init__.py", line 122, in infoiter for params in RarFileImplementation.infoiter(self): File "/usr/local/lib/python2.7/dist-packages/comictaggerlib/UnRAR2/unix.py", line 171, in infoiter data['datetime'] = time.strptime(fields[2]+" "+fields[3], '%d-%m-%y %H:%M') File "/usr/lib/python2.7/_strptime.py", line 478, in _strptime_time return _strptime(data_string, format)[0] File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format))ValueError: time data '2006-03-29 18:32' does not match format '%d-%m-%y %H:%M'
Anyway, I DID figure out a fix and I decided to post it on my blog, so if anyone else runs into the problem, it's a 30 second fix and not hours of googling like a moron (me!) I should've just sat down and worked through the problem like I finally did this morning. It took me about 45 minutes and 25ish minutes of that was trying to find and install a text editor that had line numbers on it, haha. I tried Sublime and it wasn't. Now I know why the editor war has been ongoing for over 30 years.
In this case, ComicTagger is choking while trying to strip out and reformat the date it finds in my CDisplay RAR Archived Comic Book (CBR) file. It looks like the (or A) programmer hardcoded the date format as %d-%m-%y %H:%M, which is Day-Month-Year (two digit) Hour:Minute (Military format.) However, it looks like the file date that was getting pulled from my CBR files were in YYYY-MM-DD HH:MM. The strptime Python module was throwing up an error because the date that was getting passed to it wasn't matching.
Here's the fix: I went into /usr/local/lib/python2.7/dist-packages/comictaggerlib/UnRAR2/unix.py and edited line 171 to reflect the actual format that was needed:
data['datetime'] = time.strptime(fields[3]+" "+fields[4], '%Y-%m-%d %H:%M')There you go. Now I've wasted another 90 minutes writing this up. I hope you appreciate all that I do for you!
See you in 2022, bitches!
Tuesday, January 6, 2015
Automatically using the Multipurpose Feeder on a Dell B2360DN Printer
-
- Power off the printer
- Hold the OK and left arrow key
- Switch the printer on
- Release the keys once the amber light comes on
- Scroll through the Diagnostic menu using the right arrow.
- Select Printer Setup
- Select ENGINE 2 (push the right arrow 5 times to reach this option)
- Change ENGINE 2 setting to 8* and press OK
- Press the return arrow key to return to the Diagnostic Menu
- Press the left arrow to select EXIT DIAGNOSTICS
- The printer will reboot
- Change the Default Source and Paper Type for the Multipurpose Feeder
- Press the Wrench key to reach the Admin Menu
- Press OK to reach the Paper Menu
- Press OK to select Default Source
- Press the right arrow to select MP Feeder and press OK
- Press the right arrow to reach the Paper Size/Type Menu and press OK
- Press the right arrow to select MP Feeder Size and press OK
- Select Letter and press OK
- Press the right arrow to select MP Feeder Type and press OK
- Select Plain Paper and press OK
Tuesday, May 15, 2012
Oh, Good For You, Christian Bale. Good. For. You.
Luckily, I found a clean, MP3 version of the Christian Bale rant today online (link added for your convenience.) Through the powers of Audacity (a bad ass bit of shareware, if I do say so myself) I extracted that magical bit and made it into an iPhone formatted tone (M4R.) For those of you that play with other phones, I've did an MP3 version too.
Enjoy, mofos!
Christian Bale "Oh Good for you!" iPhone ringtone
Christian Bale "Oh Good for you!" Mp3 format
Wednesday, January 20, 2010
Bleeding Me
Thursday, January 7, 2010
Harder Than Chinese Arithmetic
It's 8:30pm and Evan comes into the living room with tears of frustration welling in his eyes. He's been working on a make-up quiz for TWO HOURS. And he's still on problem one.
Evan's a pretty sharp kid (he took the SATs last month and scored in the 40th percentile of graduating seniors--what, what) and is in AP math. It's a quiz on similar triangles and all of the background info was covered when he was out of school due to the dreaded pig flu. But, he has a intuitive grasp of things, so his blind flailing into figuring this shit out was pretty much the same as mine. But he got stuck because he didn't know that proportions were the key to figure out the size of the bigger triangle.
Basically, here's the problem:
Triangle VTC ~ Triangle VWY
How big is line WY?
WTF? I don't think I EVER had math like this. The most advanced math class I had was high school geometry 20 years ago. Granted, I'm sure I was high the whole time, but I don't remember ever doing this type of shit. But, I do remember the Pythagorean Theorem (one of the few things college era THC & years of alcohol abuse haven't scrubbed from my dying brain, so here's how I attacked the problem.
1) If the two triangles are similar, then if I can figure out the size of the small one, I can back into the big one.
2) I have the length of two sides of a triangle. Using a2+b2=c2, I should be able to get the length of the third.
So I start my dumbassery with
(40*40)+(25*25)=(c*c)
1600+625=c2
C2=2,225
Squareroot of 2,225 is 41.169905, round that bitch down to 41.2.
OK. If these triangles are similar, than I can use what I have to figure out the rest. If I divide line VZ by the total length VY, that will give me it's proportion to the whole line! (38.4615%). Once I have that, I can divide line segment VT (47.2) by that figure to get the rest of line TW (75.39). Add those together and that's the hypotenuse of triangle VWY. I can THEN do the following:
a2+104 squared=122.6 squared.
a2+10,816=15,030.8
15030.8-10816=a2
4214.8=a2
get the square root and voila, the answer is that line segment WY is 64.9.

Yay, me...I'm so smart!
Yeah, right. Here's why I'm dumb:
It took 30 minutes to get to that solution. It aggravated the shit out of me because I wasn't feeling good about the process. It was TOO long and involved and the fractional answer was leaving a bad taste in my mouth (TWSS).
Google failed me when searching for hints on how to do this shit last night (but for some reason EVERY link I could find today was perfect), but I epic failed by not remembering that Evan could view his math book online.
I should have figured that there's a much simpler way to do this. There's no way the 7th grade math teacher would have them doing this if it required a calculator (which you'd need to get the square roots).
We move on to problem two, which is the old "You're 5 feet tall and have a 12 foot shadow. The flagpole's shadow is 32 feet tall. How tall is the flagpole" question.
Shit. We should have started there first, because once I googled that and took a look, we hit pay dirt. Pay dirt that takes literally 30 seconds to solve the problem.
Here's how using the first example:
1) Setup a ratio equation using the known numbers
40/104 (the length of VZ [your shadow] over the length of VY [the flagpole shadow]) is equal to 25/x (the length of TZ [your height] over WY [flagpole height]). From there, it's basic cross multiplication to get the answer.
40 25
--- = -----
104 x
40x=2600
40x = 2600
---- ------
40 40
x=65
Sigh.
So, if Google fails you and brings you here, that's how you do it. Here are some really good Math sites I found today (when Google decided to allow me the privilege of seeing them) that are even better. I'm sure the folks that wrote them aren't retards like me.
http://www.mathopenref.com/similartriangles.html
http://www.aaamath.com/rat-prop-crossx.htm
Be happy that I totally fucked that shit up, because it gave me a reason to actually post something to this wasteland of a blog. It's been over TEN fucking years since my first posting in my "online diary" back in the 20th century. My, how time flies. But even though it's 2010, the cars STILL don't. I want my money back, bitch.
Things are going great for me. I still dig my job. I just had my 14th anniversary with Laurie. Evan turns 13 in a couple of months (jesus) and Chloe just turned 9. Still live in the same house. Still drive the same automobile. I went to New Orleans a bajillion times last year. Went to FL for vacation. Went to Vegas in October. Was GOING to go to NY last month, but airfare skyrocketed and I couldn't afford it. I'm still bald and still fat.
Ha...now that we've moved on to me, I've lost interest in writing. How droll.
I'm sure I'll be posting more in the near future, as I'm about to embark on a historic nine trillionth diet at the beginning of February (once I get checked out by my ass loving doctor). It will be EPIC.
Friday, April 24, 2009
G1 vs iPhone Review
I tried to get a new iPhone via a swap at the Apple Store, but the phone had been out of warranty for FOUR months. I could have paid $199 to replace it with another 2nd gen phone, but I was really interested in upgrading to a 3g phone. My problem: I wasn't an AT&T customer and I was only six months in on two-year contract with T-Mobile.
I debated buying a 3G for $199, paying the activation, cancelling, and then eating the early termination fee of $250, but there was no way my wife would be OK with me dropping almost $500 for a phone.
Once I made that decision, there was really only one other choice that could get me even close to the capabilities of the iPhone: the G1.
I bought the G1 last week from T-Mobile for $97.97 (a price match with Wal-Mart) by adding a third line to my account for Evan. He's been using a prepaid T-Mobile account for a while and I'm probably averaging close to that in prepaid minutes. We put the phone and data plan ($24.95 per month for 3g Internet & 400 text messages) on my number. I don't have an exact total yet, but my total bill will be around $110 a month for three lines.
Technical Specs
iPhone:
Size and weight
Height: 4.5 inches (115.5 mm)
Width: 2.4 inches (62.1 mm)
Depth: 0.48 inch (12.3 mm)
Weight: 4.7 ounces (133 grams)
Display: 3.5 inches (diagonal) 480X320 resolution @163ppi
G1:
Height: 4.6 inches (117.7 mm)
Width: 2.16 inches (55.7 mm)
Depth: 0.62 inches (17.1 mm)
Weight: 5.6 ounces (158 grams)
Display: 3.2 inches (diagonal) 320X480 resolution
All of my comments should be prefaced with this: if you've never had an iPhone, you'll without a doubt, love the G1. If I had started on the G1, I would have never wanted an iPhone.
Display/Touchscreen
Although .3 of an inch doesn't sound like much, it seems like a lot when you're looking at the screen, especially when watching videos in landscape mode (which is the ONLY mode you can watch videos in on the iPhone. That said, the G1's display is more than adequate for watching videos, streaming YouTube vids, or general web browsing.
There's a lot of hype surrounding the iPhone's multitouch capability, but it's miraculous qualities are a bunch of marketing crap. Yes, the pinch and stretch feature is useful when surfing the web, but I really don't miss it. Both the default browser in the G1 and Steel (which is a free download from the Android Market) do a great job of easily zooming in and scrolling around pages that are too large to display on one screen. Opera Mini does NOT do well with it. I downloaded, installed, and kicked it to the fucking curb all within 30 minutes.
The sensitivity on the G1 is slightly kludgy. I'm fairly certain it's a software issue, as some apps are better than others in recognizing where you are touching. As Android and it's related apps mature, I think (and hope) that this will improve
The winner on the display is the iPhone by a SMIDGE.
User Interface
The iPhone user interface is pretty fucking sweet, but after using Android for a week, I think it's much better.


In addition, there's a dock at the bottom (the square with a triangle). If you touch that dock, it will open and show you all the apps installed on your phone.
If you want to move something, just press and hold it for a couple of seconds, you'll hear a beep and feel a little buzz (that's what she said) and you can move the icon around (even from the docked folder to a home desktop).
NOW, I really like the trackball. The first day it took a little getting used to. It's awesome for scrolling down webpages (especially Google Reader). There are a ton of non-intuitive things that you can do, so if you buy a G1, hit the web for tips (like clicking the alt key before using it to make it move faster, among others).


The keyboard is pretty decent too. I have big, fat fingers and haven't had a lot of problems adjusting to typing on the small keys. From my experience playing around with my sister-in-law's Blackberry, the G1's keys are bigger and have a better feel. Compared to the virtual keyboard on the iPhone, the G1 is like heaven. It IS slightly annoying, however, to have to open the keyboard when you're in portrait mode and just want to type in a URL. Steel is cool for that, as it also includes a virtual keyboard for just that occasion. The newest version of the Android OS (aka Cupcake) is supposed to address that and make that available at all times.

Call Quality
It's pretty much a tie. I really don't notice any difference in the quality of voice calls.
Data Speeds
My G1 is faster than the iPhone, but I went from a 2nd gen iPhone (Edge) to a 3g phone. My cubicle-mate has a 3g iPhone and I'll do a side by side test once she gets back in the office to compare speeds.
Apps
As fucking annoying and douchey as the iPhone app commercials are, they really do have an app for everything (explosive diarrhea? There's an app for it). Android gets beat the fuck up in a head to head battle. The Android store is still in it's infancy, so I hope that improves as more hardware companies turn to Android for the OS.
Here are the apps that I used constantly and miss: Mint*, Chase Mobile*, Yelp*, Amazon.com*, Zynga Poker, Facebook**.
*Can use a browser based workaround on G1, but it's not as good
**Similar app on G1, but it sucks balls
There are several apps that I didn't have on the iPhone that rock (particularly Barcode Scanner), but overall the Android Market is stinky like feta.
Battery Life
Good lord, if you had told me there was a device even WORSE than the iPhone when it came to battery life, I would have called you a pinche mentirosa. But there is...the battery life on the G1 is a fucking JOKE. The only positive is that you can actually GET to the battery, but I usually have to throw it on a charge around 3pm with modest usage. Sure, you can kill wifi, location awareness, GPS, data syncing, etc, but those are the things that make the phone fucking cool. Thankfully, you can charge via a USB connection, so I just plug it in to my PC at work to give it a refresh in the afternoon. God help you if you are ever on the road and don't have a mobile charger.
Other
Yes, the G1 plays music. Yes, the headphones are proprietary too! Memory is expandable to 16Gb via SDHC cards. It doesn't support Flash either (yet).
Things to Get
Apps: Twidroid (twitter), Fbook (sucks, but not as bad as the full-on mobile interface), Steel (web browser), Sky Map (fucking AMAZING app that uses GPS, location awareness, & the accelerometer to show you astronomical data), Useful Switchers (allows you to toggle on/off Gps, Wifi, Location, etc), Ringroid (turns MP3s into ringtones), Quick Calendar (puts your appointments in the taskbar)
Other: Invisible Shield-excellent cover for your screen. Be careful when you apply it!
Overall, I'm really please with the G1. It took a week of using it to really appreciate the things it does better than the iPhone, which offsets the things it still lacks.
The G1 gets a B. If they can fix the battery drain and get some better apps, I'll be a happy end user.