Archive for the 'Web Applications' 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.

Shortcode Search Automator: A Ruby Script Using Watir

Here is my first attempt at a ruby script. Ugly? Probably. Functional? Absolutely! Hoorayy!
Also see: Watir @ Sourceforge

#!/usr/bin/env ruby
#--------------------------------------------------------------#
# ShortCodeSearch v1.0 by Alex Yule
# USShortcodes.com Shortcode Search Automator written by Alex Yule on 6/29/06
#
# Adapted from Simple Google test written by Jonathan Kohl   10/10/04
# Purpose: to test availability of shortcodes at usshortcodes.com
#   * entering text into a text field
#   * clicking a button
#   * checking to see if a page contains text.
#----------------------------------------------------------------#

require 'watir'   # the watir controller

#define test_code method--takes a code
def test_code(code)
   # set a variable
   test_site = 'http://www.usshortcodes.com'

   # open the IE browser
   ie = Watir::IE.new

   # print some comments
   # puts "## Beginning of #{code} test"

   #puts "Step 1: go to the test site: " + test_site
   ie.goto(test_site)
   #puts "Action: entered " + test_site + " in the address bar."

   ie.text_field(:name, "shortcode").set(code)       # shortcode is the name of the search field
   #puts "Action: entered #{code} in the search field"

   ie.button(:name, "single").click   # "single" is the name of the Search button

   if ie.contains_text("Login to BUY NOW.")   #Test for availability
       puts "Shortcode #{code} Available!!!"
       ie.close
   else
      puts "Shortcode #{code} taken..."
      ie.close
   end
end

s = ""
  while s != "end" #conditional loop
      print "enter code: "
      s = gets.chomp #take code input
      if s != "end" #check to see if program should end
	test_code(s) #check the code
	end
  end

Jungle Disk: mount Amazon S3 as a drive for cheap reliable infinite storage

Junlge Disk is an application that lets you store files and backup data securely to Amazon.com’s S3™ Storage Service.

  • Store an unlimited amount of data for only 15¢ per gigabyte [per month]
  • No monthly subscription fee, no startup fee, no commitment
  • Your data is fully encrypted at all times
  • Data is stored at multiple Amazon.com datacenters around the country for high availability
  • Access files directly from Windows Explorer, Mac OSX Finder, and Linux
  • Compare Amazon S3™ pricing with other online storage services…
  • read more | digg story
    Holy Crap!
    I hope this is as good as it sounds… Sounds too good to be true!
    So, Amazon has launched an online file-hosting service called Jungle Disk…
    How much does it cost? 15 cents per gigabyte per month!!
    If I decide to try it out I’ll write how it goes…

    “Neogeography” Blends Blogs With Online Maps

    “Neogeography” Blends Blogs With Online Maps:

    “It is as if we shipped a map to someone and they stuck pushpins in it,” said Bret Taylor, product manager for Google. “We provide the map, and other people put in the pushpins.”

    The trend has been dubbed neogeography, and some enthusiasts predict it could spur a revolution in electronic cartography.

    (Via National Geographic News.)

    BBC NEWS | Entertainment | Song sites face legal crackdown

    BBC NEWS | Entertainment | Song sites face legal crackdown
    Legal crackdown on Guitar Tablature and Lyrics sites.
    This is bad. Very bad.
    Seems the US Music Publishers’ Association (MPA) is HORRIBLY out of touch with reality.
    Ugh….

    I was thinking about starting up a website with keyboard scores, actual PDF files of stuff, but this makes it harder to do that. Though I suppose my site would not face the pressures that a large automated site like mxtabs does. Also, I could most likely contact the bands themselves and get permission to put the files up. Hm… I just need to find some decent webspace, and figure out a way to set up the site. I was running a mini-tab site using the Tabfu system for a little while (php) but scrapped it to host this Wordpress blog instead.

    At any rate, school is taking precedent at the moment, but we’ll see what happens. Please leave your comments/suggestions below if you have any thoughts! Thanks again for all of those who commented on my Synth Oblivion post! Metal Keyboard tabs and scores will live to see the light of day! (Though I don’t really see the point of keyboard tabs, I guess they’re good for people who don’t read music)

    WordPress Upgrade Ramblings

    Dr Dave » Blog Archive » WordPress Upgrade available for Download

    As I just lengthily explained, I have very little love for corporate hierarchies and all the folklore that goes with it. Ironically, the ostensibly “free” world of major Open-Source development never fails to irk me in the exact same way…

    A quite entertaining post about corporate B.S., opensource software, and more — written by the man who brought you SpamKarma (a neat Wordpress Plugin that prevents blog spam, that I’ve luckily so far not had to install yet…)

    NOT the guy who made Kubrick as he so humbly pointed out :)

    Kubrick being the default Wordpress (the blog system I am using (I’m using a different theme called “China Red” (No this is not related to my taking Chinese (but it’s a cool coincidence)))) theme.

    Aaaand, I just finished upgrading my Wordpress setup to 1.5.2, the latest version! Went without a hitch!