- install google chrome
- install 3g card drivers in winxp
- upgrade 3g card firmware
- remove mcafee, msn
- download ubuntu netbook remix ISO and pen drive utility
- make bootable flash drive
- change boot order - remove hard drive from boot list
- test wifi, ethernet, camera (all work OK)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Use to extract records from SirsiDynix Horizon matching certain item/bib criteria */ | |
SELECT DISTINCT item.bib# | |
FROM item, bib WHERE bib.bib# = item.item# | |
AND item.collection NOT IN ('oh', 'icos', 'mi') | |
AND item.location = 'icos' | |
AND (bib.text LIKE '%audio%' OR bib.text LIKE '%video%' | |
OR bib.text LIKE '%cassette%' OR bib.text LIKE '%tape%' | |
OR bib.text LIKE '%recording%' OR bib.text LIKE '%film%') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Autopopulates a Drupal Computed Field [1] CCK field using the UUID module [2]. | |
Requires the 6.x-1.x-dev version of the module UUID, with a specific patch [3]. | |
It assumes that you only want to generate UUIDs once. It probably should be | |
abstracted into another CCK module, but I'm too lazy to do that at the moment. | |
[1] http://drupal.org/project/computed_field | |
[2] http://drupal.org/project/uuid | |
[3] http://drupal.org/node/502622#comment-1858190 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Sample Computed Field/Shrew usage for Drupal. The Shrew module [1] uses the | |
Shrew [2] PHP library to interact with Innovative Interfaces online library | |
catalog systems. | |
[1] http://www.github.com/anarchivist/drupal-shrew | |
[2] http://www.github.com/anarchivist/shrew | |
*/ | |
if (!$node->nid) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Similar to the CCK migration thing I posted before I found a peculiarity dealing with filefield and nodeapi - for some reason, it didn't actually update the filefield until I ran a separate node_save().. */ | |
function archivalcollection_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) { | |
if ($op == 'presave') { | |
switch ($node->type) { | |
case 'archivalcollection': | |
if ((empty($node->field_arms_pdffile[0]['fid']) || $node->field_arms_pdffile[0]['fid'] == 0) | |
&& !empty($node->field_arms_amat_printfindingaid[0]['value'])) { | |
$pdfurl = $node->field_arms_amat_printfindingaid[0]['value']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* The long and the short of it, for Drupal 6 - use content_insert(), which | |
should be fired anyway but isn't. See "node_save() with CCK fields" [1] for | |
more details. drupal_execute() is too robust for me - I just needed to import | |
a SQL Server table with 4500+ rows quickly. Requires parsecsv for PHP [2]. | |
[1] http://drupal.org/node/218862#comment-726058 | |
[2] http://code.google.com/p/parsecsv-for-php/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* This works similarly to the Taxonomy Defaults module [1] but has no UI. | |
This is for programmatic, backend stuff. It tests to see if somethings a | |
particular content type and then checks for the value of a given CCK field | |
to determine the appropriate term. | |
[1] http://drupal.org/project/taxonomy_defaults | |
*/ | |
function custom_taxonomy_defaults_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# probably ripped off from somewhere on drupal.org | |
# requires the services module | |
import xmlrpclib | |
s = xmlrpclib.ServerProxy('http://localhost/services/xmlrpc') | |
class DrupalNode: | |
def __init__(self, title, body, path, ntype='page', uid=1, username='mmatienzo'): | |
self.title = title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/pkg/bin/perl | |
# http://purl.org/net/matienzo/projects/mail2rss/ | |
# based upon http://blog.socklabs.com/2006/03/07/email_feeds_with_procmail.html | |
# rewritten to create valid RSS 2.0 | |
use strict; | |
use warnings; | |
use POSIX qw(strftime); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Gist/jQuery Demo</title> | |
<script src="http://www.google.com/jsapi"></script> | |
<script> | |
var ghusername = 'anarchivist'; | |
function getgists(githubuser) { |