<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:option12</id>
  <title>blah</title>
  <subtitle>option12</subtitle>
  <author>
    <name>option12</name>
  </author>
  <link rel="alternate" type="text/html" href="http://option12.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom"/>
  <updated>2008-04-07T17:15:43Z</updated>
  <lj:journal userid="11097132" username="option12" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://option12.livejournal.com/data/atom" title="blah"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:1543</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/1543.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=1543"/>
    <title>post a contact from a form into highrisehq</title>
    <published>2008-04-07T17:15:43Z</published>
    <updated>2008-04-07T17:15:43Z</updated>
    <category term="php highrisehq"/>
    <content type="html">Some php that will put the output of a contact form into highrisehq. Uses the simplehighrise.php wrapper from:&lt;br /&gt;&lt;a href="http://www.activistnerd.com/simplehighrise-a-php-wrapper-class-for-the-highrise-api/"&gt;http://www.activistnerd.com/simplehighrise-a-php-wrapper-class-for-the-highrise-api/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;had to hack up a different get_ID solution, as neither of the ways the wrapper did it work for me. almost certainly related to php version (them 5 me 4)&lt;br /&gt;&lt;br /&gt;also note that I put the contacts into a company called DEMOFORM, as I couldn't create and apply a tag. Let me know if you can&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;//info about person&lt;br /&gt;$firstName = $name;&lt;br /&gt;$lastName = "";&lt;br /&gt;$phoneNumber = $phone;&lt;br /&gt;$companyName = "DEMOFORM";&lt;br /&gt;$emailAddress = $email;&lt;br /&gt;$noteBody ="Feedback Submitted! \n  Name:".$name."\n  Organization: ".$org."\n Email:".$email."\n Phone: ".$phone."\n  Subje&lt;br /&gt;ct: ".$subject."\n  Interests: ".$str."\n  Message: ".$msg;&lt;br /&gt;;&lt;br /&gt;&lt;br /&gt;//set up for highrise--put your token below&lt;br /&gt;include('simplehighrise.php');&lt;br /&gt;$token = "blah4532jh5l2jkh348gshljhblahblah".":foo"; // tack on : (colon) and dummy password&lt;br /&gt;$hr = new SimpleHighrise('foobar', $token);&lt;br /&gt;&lt;br /&gt;//function to pull first found persons ID out of the xml&lt;br /&gt;function find_ID ($result = ""){&lt;br /&gt;// goto person section&lt;br /&gt;        $PersonLine=strpos($result, "&lt;person&gt;");&lt;br /&gt;        $string=substr($result, $PersonLine);&lt;br /&gt;//goto ID line&lt;br /&gt;        $IDLine=strpos($result, "&lt;id type="\&amp;quot;integer\&amp;quot;"&gt;");&lt;br /&gt;        $string=substr($result, $IDLine);&lt;br /&gt;// find first and last position of ID field&lt;br /&gt;        $IDLine=strpos($string,"&amp;gt;");&lt;br /&gt;        $IDLineEnd=strpos($string,"&lt;/id&gt;");&lt;br /&gt;//save out the ID&lt;br /&gt;        $string=substr($string,$IDLine + 1,$IDLineEnd - 1 - $IDLine );&lt;br /&gt;        return $string;&lt;br /&gt;}&lt;br /&gt;//search for person current ID&lt;br /&gt;$searchResult = $hr-&amp;gt;search_people($firstName);&lt;br /&gt;$personId = find_ID($searchResult);&lt;br /&gt;&lt;br /&gt;//if they don't exist, then create them&lt;br /&gt;if ($personId == ""){&lt;br /&gt;        $createResult = $hr-&amp;gt;create_new_person($firstName, $lastName, $phoneNumber, $companyName, $emailAddress);&lt;br /&gt;        $personId = find_ID($createResult);&lt;br /&gt;}&lt;br /&gt;// note rest of info onto person&lt;br /&gt;$noteResult = $hr-&amp;gt;create_new_note_person($personId, $body = $noteBody, $subjectType = "DEMOFORM");&lt;br /&gt;&lt;br /&gt;//echo $result;&lt;br /&gt;&lt;br /&gt;//end by going to a thank you page&lt;br /&gt;header("Location: &lt;a href="http://example.com/thanks.html"&gt;http://example.com/thanks.html&lt;/a&gt;");&lt;br /&gt;&lt;/code&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:1306</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/1306.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=1306"/>
    <title>dv2710 and Slackware 12.0</title>
    <published>2008-04-02T18:06:42Z</published>
    <updated>2008-04-02T18:20:31Z</updated>
    <category term="slackware linux laptop config"/>
    <content type="html">Got a HP dv2710us laptop at work a few weeks ago. it's neat. solid feel and fast machine&lt;br /&gt;dv2710us: slackware 12.0&lt;br /&gt;Notes so far....&lt;br /&gt;misc:requires press power button during bootup, after lilo. this allows to continue, but a keypress is required later to continue again. this seems to in some way be related to forcedeth module. need to upgrade kernel to see if this is fixed. many reports of problems with this chipset fixed in later kernels.&lt;br /&gt;&lt;br /&gt;run:update-pciids&lt;br /&gt;&lt;br /&gt;network: works with forcedeth module, but device # increments every module load due to weirdness with card and a udev rule. restart numbering with look at /etc/udev/rules.d/75-network-devices.rules. blacklisted driver, set up in rc.local to delete that file and load driver&lt;br /&gt;&lt;br /&gt;video: install and configure nvidia driver. working on proper setup for laptop roaming (add and subtract external monitor correctly) useing nvidia's tool for xconfig&lt;br /&gt;&lt;br /&gt;audio: just worked, but only master volume and PCM? plug in headphone jack doesn't mute speakers?&lt;br /&gt;&lt;br /&gt;wireless: ndiswrapper with driver that worked for XP, no problems it is a bcm43xx card&lt;br /&gt;&lt;br /&gt;mouse: added scrollwheel stuff, need to do touch pad, but works fine now&lt;br /&gt;&lt;br /&gt;card reader:modprobe mmc_block to rc.modules&lt;br /&gt;&lt;br /&gt;buttons: all sensed by xev except dvd and weird circle thingy, but don't think they are supposed to work in except for pre-boot. Seen in KDE, volume just works, play/stop/etc mapped to amarok. mute is seen but does nothing.&lt;br /&gt;&lt;br /&gt;acpi: modprobe buttons/processor/battery/thermal/etc&lt;br /&gt;&lt;br /&gt;ntfs-3g/hal:follow &lt;a href="http://www.linuxquestions.org/questions/slackware-14/12.0-and-hal-read-this-566862/"&gt;http://www.linuxquestions.org/questions/slackware-14/12.0-and-hal-read-this-566862/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;built in cam:uvc driver works--commands to use:sudo mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 30orsudo luvcview  -i 30 -f yuv  -s 640x480 -o ./test.avi</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:1108</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/1108.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=1108"/>
    <title>updated vbox.rc</title>
    <published>2008-01-18T17:04:20Z</published>
    <updated>2008-01-18T17:08:06Z</updated>
    <content type="html">cleaned up and added ability to stop and start individual machines. Also machines are now started based on names in VMLIST file. biggest problem still to fix is adding/subtracting network interfaces for each machine. too lazy too fix right now.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;# start and stop virtual box machines when machine is rebooted.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;VMLIST=/etc/vboxmachinelist&lt;br /&gt;&lt;br /&gt;#machine specific functions&lt;br /&gt;start_machine(){&lt;br /&gt;echo starting VirtualBox $1&lt;br /&gt;VBoxVRDP -startvm $1 &amp;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;stop_machine(){&lt;br /&gt;echo stoping machine VirtualBox $1&lt;br /&gt;VBoxManage controlvm $1 savestate&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#vbox general functions&lt;br /&gt;vbox_start(){&lt;br /&gt;echo Starting vbox drivers, machines&lt;br /&gt;# Start vboxdrv&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxdrv ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxdrv start&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Start vboxnet&lt;br /&gt;echo Starting Vbox network drivers&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxnet ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxnet start&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# add vbox interfaces&lt;br /&gt;#   for now just adding a few. later need to spend more time on doing this right&lt;br /&gt;/usr/bin/VBoxAddIF vbox0 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox1 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox2 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox3 root br0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cat $VMLIST |while read LINE; do&lt;br /&gt; start_machine $LINE&lt;br /&gt; sleep 1&lt;br /&gt; echo --&lt;br /&gt;done&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;vbox_stop(){&lt;br /&gt;echo Stoping VirtualBox RDP machines, and remove drivers&lt;br /&gt;&lt;br /&gt;# stop machine gently&lt;br /&gt;cat $VMLIST |while read LINE; do&lt;br /&gt; stop_machine $LINE&lt;br /&gt; sleep 1&lt;br /&gt; echo --&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;# make sure machine is stopped&lt;br /&gt;killall VBoxVRDP&lt;br /&gt;sleep 1&lt;br /&gt;# get rid of vbox interfaces&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox0&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox1&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox2&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox3&lt;br /&gt;&lt;br /&gt;# Stop vboxnet&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxnet ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxnet stop&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Stop vboxdrv&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxdrv ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxdrv stop&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;vbox_restart(){&lt;br /&gt;vbox_stop&lt;br /&gt;echo " "&lt;br /&gt;sleep 1&lt;br /&gt;vbox_start&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;&lt;br /&gt;*_start)&lt;br /&gt;  MACHINE=`echo $1 | /bin/cut -d '_' -f 1`&lt;br /&gt;  start_machine $MACHINE&lt;br /&gt;  ;;&lt;br /&gt;*_stop)&lt;br /&gt;  MACHINE=`echo $1 | /bin/cut -d '_' -f 1`&lt;br /&gt;  stop_machine $MACHINE&lt;br /&gt;  ;;&lt;br /&gt;*_restart)&lt;br /&gt;  MACHINE=`echo $1 | /bin/cut -d '_' -f 1`&lt;br /&gt;  stop_machine $MACHINE&lt;br /&gt;  sleep 1&lt;br /&gt;  start_machine $MACHINE&lt;br /&gt;  ;;&lt;br /&gt;# *_save)&lt;br /&gt;#  MACHINE=`echo $1 | /bin/cut -d '_' -f 1`&lt;br /&gt;#  save_machine $MACHINE&lt;br /&gt;#  ;;&lt;br /&gt;'start')&lt;br /&gt;  vbox_start&lt;br /&gt;  ;;&lt;br /&gt;'stop')&lt;br /&gt;  vbox_stop&lt;br /&gt;  ;;&lt;br /&gt;'restart')&lt;br /&gt;  vbox_restart&lt;br /&gt;  ;;&lt;br /&gt;&lt;br /&gt;*)&lt;br /&gt;  echo "usage $0 start|stop|restart"&lt;br /&gt;esac&lt;br /&gt;&lt;/code&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:860</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/860.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=860"/>
    <title>rc.vbox for slackware</title>
    <published>2007-12-12T20:08:12Z</published>
    <updated>2007-12-12T20:09:57Z</updated>
    <category term="slackware"/>
    <category term="virtualbox"/>
    <content type="html">Again this needs more work, but good enough for me for now. too specific to my setup though. also need to add ability to start stop individual machines&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;#machine specific functions&lt;br /&gt;start_machine(){&lt;br /&gt;echo starting VirtualBox $1&lt;br /&gt;VBoxVRDP -startvm $1 &amp;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;stop_machine(){&lt;br /&gt;echo stoping machine VirtualBox $1&lt;br /&gt;VBoxManage controlvm $1 savestate&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#vbox functions&lt;br /&gt;vbox_start(){&lt;br /&gt;echo Starting vbox drivers, machines&lt;br /&gt;# Start vboxdrv&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxdrv ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxdrv start&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Start vboxnet&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxnet ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxnet start&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# add vbox interfaces&lt;br /&gt;/usr/bin/VBoxAddIF vbox0 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox1 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox2 root br0&lt;br /&gt;/usr/bin/VBoxAddIF vbox3 root br0&lt;br /&gt;&lt;br /&gt;start_machine XP&lt;br /&gt;sleep 1&lt;br /&gt;echo --&lt;br /&gt;start_machine w2k3&lt;br /&gt;sleep 1&lt;br /&gt;echo --&lt;br /&gt;start_machine kulasvn&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;vbox_stop(){&lt;br /&gt;echo Stoping VirtualBox RDP machines, and remove drivers&lt;br /&gt;&lt;br /&gt;# stop machine gently&lt;br /&gt;stop_machine XP&lt;br /&gt;stop_machine w2k3&lt;br /&gt;stop_machine kulasvn&lt;br /&gt;sleep 1&lt;br /&gt;# make sure machine is stopped&lt;br /&gt;killall VBoxVRDP&lt;br /&gt;sleep 1&lt;br /&gt;# get rid of vbox interfaces&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox0&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox1&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox2&lt;br /&gt;/usr/bin/VBoxDeleteIF vbox3&lt;br /&gt;&lt;br /&gt;# Stop vboxnet&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxnet ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxnet stop&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Stop vboxdrv&lt;br /&gt;if [ -x /etc/rc.d/rc.vboxdrv ]; then&lt;br /&gt;    /etc/rc.d/rc.vboxdrv stop&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;vbox_restart(){&lt;br /&gt;vbox_stop&lt;br /&gt;echo " "&lt;br /&gt;sleep 1&lt;br /&gt;vbox_start&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;'start')&lt;br /&gt;  vbox_start&lt;br /&gt;  ;;&lt;br /&gt;'stop')&lt;br /&gt;  vbox_stop&lt;br /&gt;  ;;&lt;br /&gt;'restart')&lt;br /&gt;  vbox_restart&lt;br /&gt;  ;;&lt;br /&gt;*)&lt;br /&gt;  echo "usage $0 start|stop|restart"&lt;br /&gt;esac&lt;br /&gt;&lt;/code&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:765</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/765.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=765"/>
    <title>rc.bridge for virtualbox in slackware</title>
    <published>2007-12-12T20:06:12Z</published>
    <updated>2007-12-12T20:06:12Z</updated>
    <category term="slackware"/>
    <category term="virtualbox"/>
    <category term="network"/>
    <content type="html">this works for me, but needs more checking if interfaces exist, etc&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#bond the network interfaces together and then place in a bridge for vbox&lt;br /&gt;echo bridge network interfaces&lt;br /&gt;&lt;br /&gt;bonding_start(){&lt;br /&gt;# start bonding module&lt;br /&gt;modprobe bonding  mode=balance-alb miimon=100&lt;br /&gt;&lt;br /&gt;#bring up bond interface&lt;br /&gt;ifconfig bond0 up&lt;br /&gt;&lt;br /&gt;#put hardware in bond&lt;br /&gt;ifenslave bond0 eth0&lt;br /&gt;ifenslave bond0 eth1&lt;br /&gt;&lt;br /&gt;# add Bridge br0 and assign the interfaces&lt;br /&gt;brctl addbr br0&lt;br /&gt;brctl addif br0 bond0&lt;br /&gt;&lt;br /&gt;#clear out interface&lt;br /&gt;ifconfig bond0 0.0.0.0 promisc up&lt;br /&gt;&lt;br /&gt;dhclient br0&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;bonding_stop(){&lt;br /&gt;ifconfig bond0 down&lt;br /&gt;brctl delif br0 bond0&lt;br /&gt;brctl delbr br0&lt;br /&gt;rmmod bonding&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;bonding_restart(){&lt;br /&gt; bonding_stop&lt;br /&gt; bonding_start&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;'start')&lt;br /&gt;  bonding_start&lt;br /&gt;  ;;&lt;br /&gt;'stop')&lt;br /&gt;  bonding_stop&lt;br /&gt;  ;;&lt;br /&gt;'restart')&lt;br /&gt;  bonding_restart&lt;br /&gt;  ;;&lt;br /&gt;*)&lt;br /&gt;  echo "usage $0 start|stop|restart"&lt;br /&gt;esac&lt;br /&gt;&lt;/code&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:option12:287</id>
    <link rel="alternate" type="text/html" href="http://option12.livejournal.com/287.html"/>
    <link rel="self" type="text/xml" href="http://option12.livejournal.com/data/atom/?itemid=287"/>
    <title>bored</title>
    <published>2007-09-08T02:13:41Z</published>
    <updated>2007-09-08T02:13:41Z</updated>
    <content type="html">oh well</content>
  </entry>
</feed>
