Archive for the 'Tech' Category

Exporting from Zotero to RefWorks

FINALLY I got it to work. Since Zotero’s been CRASHING on my ass, I decided to export my ridiculous bibliography over to Refworks, which is web-based and clumsy, but at least it doesn’t crash Word.

  1. So export your stuff from Zotero as BibTeX format (I tried lots of formats and this method works best).
  2. Open the resulting file in some text editor that allows for Regular Expression search and replace.
  3. Then run this query:
  4. Search for: \n},
    Replace with: \n} (no comma)

  5. Then save, and import the file into RefWorks as a Bibtex file with the default options (I selected UTF-8 for good measure)

While i’m on this topic I might as well continue my delirium and show the regex for converting from Ottobib BibTeX (Who knew there were so many kinds!?) to Zotero-importable BibTeX.
Search for: '(.*)'
Replace with: {$1}
Yay.

Quicksilver: Increase iTunes Rating by 1/2 Star

Update: I now use Synergy Advance’s builtin functions to accomplish this. Quicksilver is getting slow and bogged down enough already without having to deal with this iTunes crap. (http://wincent.com/a/products/synergy-advance/) Highly recommended.

Here’s a quick tip to alter the built-in Quicksilver iTunes triggers to increase a track’s rating by 1/2 rather than 1 star.
What I do is give the triggers (which are really just applescripts) hotkeys that I can hit whenever a song comes on I want to rate (I already have 1-5 stars mapped to cmd-opt-shift-1 through cmd-opt-shift-5, with 0 mapped to cmd-opt-shift-`)
So now you want to map the increase/decrease rating scripts to something you’ll remember, I’ll use cmd-opt-shift -(minus) and cmd-opt-shift-=
Now for the fun part… goto the following directory (shortcut: press cmd-shift-g then copy and paste the path below)
~/Library/Application Support/Quicksilver/PlugIns/iTunes Module.qsplugin/Contents/Resources/Scripts/
If you get to the Plugins folder but are stuck… right click on iTunes Module.qsplugin and select Show Package Contents

Now double click Decrease Rating.scpt and Increase Rating.scpt–they should open in Script Editor and look like this:

tell application “System Events” to if (application processes whose name is “iTunes”) is not {} then ¬
tell application “iTunes” to if rating of current track is greater than 0 then set rating of current track to (rating of current track) - 20

Now the only modification is to change the number “20” to “10”. The iTunes rating system is actually 1-100, so you could rate things even finer than 1/2 star, but it won’t show up in iTunes (half stars are displayed, but apparently they aren’t recognized by the rating-weighted shuffle modes… still useful though.)

So then it looks like this:

tell application “System Events” to if (application processes whose name is “iTunes”) is not {} then ¬
tell application “iTunes” to if rating of current track is greater than 0 then set rating of current track to (rating of current track) - 10

Done!
Huzzah…

So the way I’d use this is to first rate using a whole number, 1-5, then add or subtract a 1/2 as I saw fit. So if I was listening to a song and I decided it was a 3.5, I’d hit the command for 3-stars, then increase by 1/2.

Things for the future:
Would be cool if there was some way for the rating to show up onscreen with a quicksilver-like bezel that showed you what the rating is/what it becomes.

Technorati Tags: , , , ,

ReactOS and Qemu Working At Last!!

And I did it all by myself! I figured out a super clever way to get it to work… (haha)
[Picture went Bye-bye…]
So yeah, basically, I downloaded Q (Qemu packaged for mac osx) which at first, didn’t work on its own (you can actually download reactos from within Q, but it always froze upon completion.)
Continue reading ‘ReactOS and Qemu Working At Last!!’

Making VbrFixQt4 Work on OSX When It Can’t Find Libraries…

So, I’ll give the short explanation now since I’m short on time, but I may come back later to expand on things… Basically, the app was looking for libpng in a random place and wasn’t finding it, and so wouldn’t run at all! The install image only contained Qt (as it should, since libpng is already on here in at least one place. I have fink installed with its /sw directory so I used the libpng located there…).

Initially I tried actually editing the vbrfixqt4 binary with a hexeditor to tell it where to look, but once I fixed that it was the Qtgui framework that gave the libpng error… So rather than go messing around with a hex editor in the /Library directory, I decided to just make a symbolic link.

So… My libpng library was located at /sw/lib/libpng.3.dylib (which actually was a link to libpng.3.1.2.8.dylib, but I kept things simple and just used libpng.3, which also protects against future upgrades of libpng3 breaking things.)

So first I made the directory it was looking for:
mkdir /opt
mkdir /opt/local
mkdir /opt/local/lib

Then, create the link.

cd /opt/local/lib
ln -s /sw/lib/libpng.3.dylib

Done! Now everything works fine!
This should also work if you link to the OSX libpng library, which you can find using spotlight. I found one in something called the Mono framework, which I didn’t really investigate, but I suppose could be part of OSX? (Since OSX has native png support? I’m in over my head here…)

But anyways, now the app works!

Some relevant links:
Vbrfix
Fink
Fink Commander (Fink GUI Frontend)

Itunes 7 Sucking Cont’d

Huhhhh?
Sep 23 11:47:41 Apoctrack-Computer loginwindow[76]: sendQuitEventToApp (iTunes Helper): AESendMessage returned error -1712

Technorati Tags: , ,

Itunes 7 SUCKING

So yeah, it’s sexy, though many people have been complaining about the UI, I like it. And the new browsing features are cool too. But it’s SLOW. And when I try to quit, it HANGS…>! And doesn’t even force quit!

This is what iTunes SUCKING looks like:

Analysis of sampling pid 436 every 10.000000 milliseconds
Call graph:
    94 Thread_0f0f
      94 0x9b4c
        94 0x9ca4
          94 0x23a5b4
            94 0x39b7c
              94 0x49660
                94 0x494cc
                  94 0x49298
                    94 0x44610
                      94 0x987c4
                        94 0x2d0b80
                          94 0x2d36b0
                            94 0x2d2318
                              94 0x2cf938
                                94 0x2d3fb0
                                  94 0x2d1648
                                    94 0x2d193c
                                      94 0x2d17bc
                                        94 SCSITaskDeviceClass::CreateSCSITask()
                                          94 SCSITaskClass::alloc(SCSITaskDeviceClass*, unsigned, unsigned)
                                            94 SCSITaskClass::Init(SCSITaskDeviceClass*, unsigned, unsigned)
                                              94 IOConnectMethodScalarIScalarO
                                                94 io_connect_method_scalarI_scalarO
                                                  94 mach_msg
                                                    94 mach_msg_trap
                                                      94 mach_msg_trap
    94 Thread_1003
      94 _pthread_body
        94 CAPThread::Entry(CAPThread*)
          94 HALRunLoop::OwnThread(void*)
            94 CFRunLoopRunSpecific
              94 __CFRunLoopRun
                94 mach_msg
                  94 mach_msg_trap
                    94 mach_msg_trap
    94 Thread_1103
      94 _pthread_body
        94 0x30d88c
          94 0x2225d0
            94 pthread_cond_wait
              94 semaphore_wait_signal_trap
                94 semaphore_wait_signal_trap

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        188
        semaphore_wait_signal_trap        94
Sample analysis of process 436 written to file /dev/stdout
Sampling process 436 each 10 msecs 100 times

CMOY w/Linkwitz Crossfeed

Let the tinkering begin!!!!

DIGIKEY ORDER
#	Part #		Description				Unit $	Total $
2	P5552		CAP 220UF 35V ELECT NHG RADIAL		0.420	$0.840
2	P3104	.1 UFD POLYPROPYLENE CAP			0.860	$1.720
10	10.0KXBK	RES 10.0K OHM 1/4W 1% METAL FILM	0.098	$0.980
5	4.75KXBK	RES 4.75K OHM 1/4W 1% METAL FILM	0.098	$0.490
5	100KXBK		RES 100K OHM 1/4W 1% METAL FILM		0.098	$0.490
5	1.00KXBK	RES 1.00K OHM 1/4W 1% METAL FILM	0.098	$0.490
1	OPA2132PA	IC DUAL FET HI SP OP-AMP 8-DIP		5.400	$5.400
5	2.49KXBK	RES 2.49K OHM 1/4W 1% METAL FILM	0.098	$0.490
1	AE7313-ND	IC SOCKET .300 8 DIP GOLD		0.930	$0.930
5	47.5XBK		RES 47.5 OHM 1/4W 1% METAL FILM		0.098	$0.490
2	CP-43502PM	CONN JACK AUDIO 3.5MM 4COND		3.690	$7.380
5	100XBK		RES 100 OHM 1/4W 1% METAL FILM		0.098	$0.490
1	2238K		STRAP BATTERY 9V I-STYLE 4"LEAD		0.780	$0.780
1	160-1710-ND	LED 3MM GREEN DIFFUSED			0.090	$0.090
5	2.00KXBK-ND	RES 2.00K OHM 1/4W 1% METAL FILM	0.098	$0.490
5	1.50KXBK-ND	RES 1.50K OHM 1/4W 1% METAL FILM	0.098	$0.490
10	3.32KXBK-ND	RES 3.32K OHM 1/4W 1% METAL FILM	0.098	$0.980
5	9.09KXBK-ND	RES 9.09K OHM 1/4W 1% METAL FILM	0.098	$0.490
2	P5556		CAP 2200UF 35V ELECT NHG RADIAL		1.710	$3.420
2	P3926-ND	CAP POLYPROPYLENE .12UF 50V 2%		1.030	$2.060
2	P3856-ND	CAP POLYPROPYLENE .022UF 50V 1%		0.610	$1.220
1	SRH65-9VTS	BOX 4.94X2.75X.94 9V TRANS GRY		12.95	$12.95
						Subtotal	$43.16

see http://del.icio.us/apoc_metal/diy+audio for more info

Weekend Project: Make a panography - Lifehacker

Linkage:
Weekend Project: Make a panography - Lifehacker

Technorati Tags:
,




FireStats icon Powered by FireStats