fastxml 0.1.91

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,364 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
+ <title>tech addict </title>
7
+ <meta name="description" content="tech addict" />
8
+ <meta name="keywords" content="mark guzman,mark,guzman,technical,linux,rant,gentoo,apple,osx,cisco,solaris,security,administration,javascript,c#,.net,ruby,rails,addict,vim" />
9
+ <meta name="generator" content="Mephisto" />
10
+ <meta name="MSSmartTagsPreventParsing" content="true" />
11
+ <meta name="author" content="Mark Guzman" />
12
+ <link rel="meta" type="application/rdf+xml" title="FOAF" href="http://segfault.hasno.info/foafme.rdf" />
13
+
14
+ <link rel="shortcut icon" href="/favicon.ico" />
15
+ <link rel="icon" href="/favicon.ico" />
16
+ <script type="text/javascript" src="http://www.google-analytics.com/urchin.js"></script>
17
+ <script type="text/javascript">
18
+ _uacct = "UA-122343-1";
19
+ urchinTracker();
20
+ </script>
21
+ <script type="text/javascript" src="http://embed.technorati.com/embed/i76429ghf.js"></script>
22
+ <link href="/stylesheets/main.css" rel="stylesheet" type="text/css" />
23
+ <link href="/stylesheets/code.css" rel="stylesheet" type="text/css" />
24
+ <link href="http://feeds.feedburner.com/techaddict" title="Tech Addict - mark guzmans mental lapses" type="application/atom+xml" rel="alternate" />
25
+ <link href="/feed/atom.xml" rel="alternate" type="application/atom+xml" />
26
+ </head>
27
+ <body>
28
+ <div id="title_black">&nbsp;</div>
29
+ <div id="base">
30
+ <div id="wrap">
31
+ <div id="header"><h1><a href="/">tech addict</a></h1>
32
+ <p class="description">mark guzman's mental lapses documented regularly</p>
33
+ </div>
34
+ <div id="content">
35
+
36
+ <div class="entry entry-21503">
37
+ <div class="entrytitle">
38
+ <h2><a href="/2008/4/15/hardware-issue-weekend" title="hardware issue weekend">hardware issue weekend</a></h2>
39
+ <h3>April 14th, 2008</h3>
40
+ </div>
41
+ <div class="entrybody">
42
+
43
+ <p>This weekend I relocated myself and my servers to our temporary stomping grounds. Everything went without a hitch. Except of course for my main server, the trusty dual p3 800 machine that has hosted hasno for a long time. Luckily the drive array was not troubled by the loss of it's brainier compatriot. I picked up a nice new core2duo e6550 and mobo at a local store and had it up and running later in the day. Things are a lot speedier with current hardware. Rest in peace my 800mhz friend.</p><p>In addition to the server hardware troubles, my macbook's hard drive has <a href="http://hasno.info/2007/9/26/lemontastic-macbook-woes">yet again</a>. This is my third hard drive failure. Hitatchi's 160gb sata drives are krud. The laptop itself is great, I just wish I didn't have the hard drive dying every 3-6mo. At least the server migration went through without data loss, I guess I'll just focus on the bright side of the weekend.</p><p>As a side note, cablevision can't and won't maintain static ip addresses through a move. So if your a business user hosting content at your office, expect longer downtime due to dns propagation and ip address setup snafus when moving. Make sure you have them unblock ports 80 and 25, since by default on all new ip setup they block them even if they were unblocked for your account previously.</p>
44
+
45
+
46
+ </div>
47
+
48
+ <div class="entrymeta">
49
+ <div class="postinfo">
50
+ <span class="postedby">Posted by segfault</span>
51
+ <span class="filedto">Filed in <a href="/apple" title="apple">apple</a>, <a href="/random" title="random">random</a></span>
52
+ <span class="tagged">Tags: <a href="/tags/graveyard" rel="tag" title="graveyard">graveyard</a>, <a href="/tags/lemon" rel="tag" title="lemon">lemon</a>, <a href="/tags/macbook" rel="tag" title="macbook">macbook</a>, <a href="/tags/moving" rel="tag" title="moving">moving</a>, <a href="/tags/server" rel="tag" title="server">server</a></span>
53
+ </div>
54
+
55
+ <a href="/2008/4/15/hardware-issue-weekend#comments" class="commentslink">0 comments &#187;</a>
56
+
57
+ <a href="http://del.icio.us/post?url=/2008/4/15/hardware-issue-weekend&amp;title=hardware issue weekend" style="border: 0;">
58
+ <img src="/images/delicious.gif" style="border: 0;" height="16" width="16" alt="del.icio.us"/>
59
+ </a>
60
+ <a href="http://digg.com/submit?phase=2&amp;url=/2008/4/15/hardware-issue-weekend" style="border: 0;">
61
+ <img src="/images/digg.gif" style="border: 0;" height="16" width="16" alt="digg"/>
62
+ </a>
63
+ </div>
64
+
65
+ </div>
66
+
67
+ <div class="entry entry-21162">
68
+ <div class="entrytitle">
69
+ <h2><a href="/2008/4/3/me-and-my-git-svn" title="me and my git-svn">me and my git-svn</a></h2>
70
+ <h3>April 3rd, 2008</h3>
71
+ </div>
72
+ <div class="entrybody">
73
+
74
+ <p>I recently switched a bunch of my projects over to git. Why? All the cool kids are doing it, I figured I'd give it a shot. Either way I ran into a few bumps with the git-svn stuff. Everything went really well until I tried to push back my changes from git. I'd been committing changes to my repo and pushing them to github/hasno without issue. I ran into errors when I tried to <code>git-svn dcommit</code>.</p>
75
+ <p>Here's what I'm currently calling the <em>right way</em>, as usual ymmv:
76
+ <ol>
77
+ <li>
78
+ init if you haven't done i already, check .git/config for an svn-remote entry...<br/>
79
+ <code>git-svn init &lt;repo url&gt;</code>
80
+ </li>
81
+ <li>
82
+ pull the svn revision information. a bunch of info should scroll by matching svn revisions to git sha1 revisions.<br/>
83
+ <code>git-svn fetch</code>
84
+ </li>
85
+ <li>
86
+ this will yeild a list of local & remote branches, you should see trunk in the list</br>
87
+ <code>git branch -a</code>
88
+ <blockquote><pre>
89
+ * master
90
+ origin/HEAD
91
+ origin/local-svn
92
+ origin/master
93
+ tags/release-0.1.23
94
+ tags/release-0.2.42
95
+ tags/release-0.2.44
96
+ tags/release-0.2.50
97
+ trunk
98
+ </pre></blockquote>
99
+ </li>
100
+ <li>
101
+ switch to a local branch based on the trunk remote branch<br/>
102
+ <strong>afaik you really don't want to be doing any of this type of stuff in a remote branch</strong></br>
103
+ <code>git checkout -b local-svn trunk</code>
104
+ </li>
105
+ <li>
106
+ now we need to pull your local changes from your master branch to your local-svn branch</br>
107
+ <code>git merge master</code><br/>
108
+ it's worth noting that you could do a <code>git rebase</code>, but when I tried that I couldn't use git-svn dcommit
109
+ </li>
110
+ <li>
111
+ go through and merge any conflicts. then <code>git commit</code>. at this point you can <code>git dcommit</code>
112
+ </li>
113
+ </ol>
114
+ </p>
115
+ <p>So if all that was how I got it working, what did I run into along the way... Well I'm glad you ask. Here's a list of errors and the reason for them afaik:
116
+ <dl>
117
+ <dt>Unable to determine upstream SVN information from HEAD history</dt><dd>You have a recent commit that doesn't have any history in .git/ref/remote/svn or .git/svn. It also doesn't have the <strong>git-svn-id:</strong> key in the commit message.</dd>
118
+ <dt>[svn-remote &quot;svn&quot;] unknown</dt><dd>Did you manually create the svn-remote entry, or specify a different name? If so you need to pass that on to the commands, they seem to assume it's named svn.</dd>
119
+ <dt>fatal: bad default revision 'refs/remotes/git-svn'</dt><dd>Somethings amiss with your svn-remote entry in <code>.git/config</code></dd>
120
+ </p>
121
+ <p>That's about it for me, if you've seen those errors and can add some detail or shed some light on a better way please do share. As of this moment ruby-hl7 is synched up.</p>
122
+
123
+
124
+ </div>
125
+
126
+ <div class="entrymeta">
127
+ <div class="postinfo">
128
+ <span class="postedby">Posted by segfault</span>
129
+ <span class="filedto">Filed in <a href="/code" title="code">code</a></span>
130
+ <span class="tagged">Tags: <a href="/tags/git" rel="tag" title="git">git</a>, <a href="/tags/git-svn" rel="tag" title="git-svn">git-svn</a>, <a href="/tags/subversion" rel="tag" title="subversion">subversion</a></span>
131
+ </div>
132
+
133
+ <a href="/2008/4/3/me-and-my-git-svn#comments" class="commentslink">0 comments &#187;</a>
134
+
135
+ <a href="http://del.icio.us/post?url=/2008/4/3/me-and-my-git-svn&amp;title=me and my git-svn" style="border: 0;">
136
+ <img src="/images/delicious.gif" style="border: 0;" height="16" width="16" alt="del.icio.us"/>
137
+ </a>
138
+ <a href="http://digg.com/submit?phase=2&amp;url=/2008/4/3/me-and-my-git-svn" style="border: 0;">
139
+ <img src="/images/digg.gif" style="border: 0;" height="16" width="16" alt="digg"/>
140
+ </a>
141
+ </div>
142
+
143
+ </div>
144
+
145
+ <div class="entry entry-20342">
146
+ <div class="entrytitle">
147
+ <h2><a href="/2008/2/29/uninformative-messages-msb3247" title="uninformative messages (MSB3247,MSB4051)">uninformative messages (MSB3247,MSB4051)</a></h2>
148
+ <h3>February 29th, 2008</h3>
149
+ </div>
150
+ <div class="entrybody">
151
+
152
+ <blockquote>warning MSB3247: Found conflicts between different versions of the same dependent assembly.</blockquote>
153
+ <p>Seriously how is that helpful? Guess what the solution is according to VS2k8: <blockquote>
154
+ Double-click the warning and then select &quot;Yes&quot; when you get the prompt, &quot;Do you want to fix these conflicts by adding binding redirect records in the app.config file?&quot;
155
+ </blockquote><img src="http://hasno.info/assets/2008/2/29/goggles.jpg" width="90px" style="width: 90px; float: right; clear: both; padding: 5px;" alt="The goggles do nothing!"/> That has to be the most pointless suggestion ever. This warning doesn't go away, nor is there any indication in the message as to the culprit. The XML it generates points at some candidates tho.
156
+ </p>
157
+ <p>Now on to see why the same solution builds in VS2k8, but fails when using msbuild on the command line.
158
+ <blockquote style="clear:both;">
159
+ Solution file warning MSB4051: Project {ED0038FA-D90E-4C84-AE64-
160
+ 245BC76D2406} is referencing a project with GUID {BF209BE8-334A-45E8-940E-CFEF0
161
+ DEE21EE}, but a project with this GUID was not found in the .SLN file.
162
+ </blockquote>
163
+ Apparently that means I'm missing an <strong>EndProject</strong> line. Wonder why that couldn't have been fixed or brought to my attention by studio...? It can also mean that there is indeed an invalid project guid reference in one of the subproject's csproj files. Double check the project list in the solution versus the <Project>{guid}</Project> references. One of my issues was due to that. I'm guessing studio looks up the project by name if it fails to find it by guid.
164
+ </p>
165
+
166
+
167
+
168
+ </div>
169
+
170
+ <div class="entrymeta">
171
+ <div class="postinfo">
172
+ <span class="postedby">Posted by segfault</span>
173
+ <span class="filedto">Filed in <a href="/code" title="code">code</a></span>
174
+ <span class="tagged">Tags: <a href="/tags/msbuild" rel="tag" title="msbuild">msbuild</a>, <a href="/tags/vs2k8" rel="tag" title="vs2k8">vs2k8</a>, <a href="/tags/windows" rel="tag" title="windows">windows</a></span>
175
+ </div>
176
+
177
+ <a href="/2008/2/29/uninformative-messages-msb3247#comments" class="commentslink">0 comments &#187;</a>
178
+
179
+ <a href="http://del.icio.us/post?url=/2008/2/29/uninformative-messages-msb3247&amp;title=uninformative messages (MSB3247,MSB4051)" style="border: 0;">
180
+ <img src="/images/delicious.gif" style="border: 0;" height="16" width="16" alt="del.icio.us"/>
181
+ </a>
182
+ <a href="http://digg.com/submit?phase=2&amp;url=/2008/2/29/uninformative-messages-msb3247" style="border: 0;">
183
+ <img src="/images/digg.gif" style="border: 0;" height="16" width="16" alt="digg"/>
184
+ </a>
185
+ </div>
186
+
187
+ </div>
188
+
189
+ <div class="entry entry-20070">
190
+ <div class="entrytitle">
191
+ <h2><a href="/2008/2/19/subversion-on-windows-with-tortoisesvn" title="Subversion on Windows with TortoiseSVN">Subversion on Windows with TortoiseSVN</a></h2>
192
+ <h3>February 19th, 2008</h3>
193
+ </div>
194
+ <div class="entrybody">
195
+
196
+ <p>It's my first foray into screen casting, hopefully people find it useful. I cover setting up a subversion repository, accessing the repository, putting things into the repository and some other items. I tried pushing this to Google video, but it consistently mangled the text. I'll give it a shot again once I have some time. Any feedback or requests are welcome.
197
+ </p>
198
+ <p>
199
+ <object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="318" codebase="http://active.macromedia.com/flash7/cabs/ swflash.cab#version=9,0,28,0">
200
+ <param name="src" value="http://segfault.hasno.info/screencasts/Subversion on Windows with TortoiseSVN.swf"/>
201
+ <param name="bgcolor" value="#1a1a1a"/>
202
+ <param name="quality" value="best"/>
203
+ <param name="allowScriptAccess" value="always"/>
204
+ <param name="allowFullScreen" value="false"/>
205
+ <param name="scale" value="noscale"/>
206
+ <param name="flashVars" value="autostart=false"/>
207
+ <embed name="csSWF" src="http://segfault.hasno.info/screencasts/Subversion on Windows with TortoiseSVN.swf" width="400" height="318" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="false" scale="noscale" flashVars="autostart=false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
208
+ </object>
209
+ <br/>
210
+ For those of you with ipods, <a href="http://segfault.hasno.info/screencasts/Subversion%20on%20Windows%20with%20TortoiseSVN.m4v">here's an ipod friendly version</a>.
211
+ </p>
212
+
213
+
214
+ </div>
215
+
216
+ <div class="entrymeta">
217
+ <div class="postinfo">
218
+ <span class="postedby">Posted by segfault</span>
219
+ <span class="filedto">Filed in <a href="/random" title="random">random</a></span>
220
+ <span class="tagged">Tags: <a href="/tags/screencast" rel="tag" title="screencast">screencast</a>, <a href="/tags/subversion" rel="tag" title="subversion">subversion</a>, <a href="/tags/tortoisesvn" rel="tag" title="tortoisesvn">tortoisesvn</a>, <a href="/tags/windows" rel="tag" title="windows">windows</a></span>
221
+ </div>
222
+
223
+ <a href="/2008/2/19/subversion-on-windows-with-tortoisesvn#comments" class="commentslink">1 comments &#187;</a>
224
+
225
+ <a href="http://del.icio.us/post?url=/2008/2/19/subversion-on-windows-with-tortoisesvn&amp;title=Subversion on Windows with TortoiseSVN" style="border: 0;">
226
+ <img src="/images/delicious.gif" style="border: 0;" height="16" width="16" alt="del.icio.us"/>
227
+ </a>
228
+ <a href="http://digg.com/submit?phase=2&amp;url=/2008/2/19/subversion-on-windows-with-tortoisesvn" style="border: 0;">
229
+ <img src="/images/digg.gif" style="border: 0;" height="16" width="16" alt="digg"/>
230
+ </a>
231
+ </div>
232
+
233
+ </div>
234
+
235
+ <div class="entry entry-19308">
236
+ <div class="entrytitle">
237
+ <h2><a href="/2008/1/28/windows-vim-7-1-212" title="windows vim 7.1.212">windows vim 7.1.212</a></h2>
238
+ <h3>January 28th, 2008</h3>
239
+ </div>
240
+ <div class="entrybody">
241
+
242
+ <p><img src="http://hasno.info/assets/2008/1/28/Vimlogo.png" alt="" style="float: right;"/>I've finally gotten around to rebuilding my windows vim install with the latest patches. I tested it on my work machine and laptop's vmware image. It's built with huge, ruby, python, perl, and IME (multibyte). The binaries are optimized for pentium4+ machines with SSE2. You can get the installer <a href="http://segfault.hasno.info/vim/gvim71.zip">here</a>. </p>
243
+
244
+
245
+ </div>
246
+
247
+ <div class="entrymeta">
248
+ <div class="postinfo">
249
+ <span class="postedby">Posted by segfault</span>
250
+ <span class="filedto">Filed in <a href="/random" title="random">random</a></span>
251
+ <span class="tagged">Tags: <a href="/tags/vim" rel="tag" title="vim">vim</a></span>
252
+ </div>
253
+
254
+ <a href="/2008/1/28/windows-vim-7-1-212#comments" class="commentslink">0 comments &#187;</a>
255
+
256
+ <a href="http://del.icio.us/post?url=/2008/1/28/windows-vim-7-1-212&amp;title=windows vim 7.1.212" style="border: 0;">
257
+ <img src="/images/delicious.gif" style="border: 0;" height="16" width="16" alt="del.icio.us"/>
258
+ </a>
259
+ <a href="http://digg.com/submit?phase=2&amp;url=/2008/1/28/windows-vim-7-1-212" style="border: 0;">
260
+ <img src="/images/digg.gif" style="border: 0;" height="16" width="16" alt="digg"/>
261
+ </a>
262
+ </div>
263
+
264
+ </div>
265
+
266
+
267
+
268
+
269
+
270
+ </div>
271
+ <div id="sidebar">
272
+ <h2>search</h2>
273
+ <form method="get" id="sform" action="/search">
274
+ <label for="q">Search:</label>
275
+ <input type="text" id="q" value="" name="q" size="15" />
276
+ </form>
277
+
278
+ <h2>pages</h2>
279
+ <ul>
280
+ <li><a href="/about" title="about">about</a></li>
281
+ </ul>
282
+
283
+ <h2>categories</h2>
284
+ <ul>
285
+ <li><a class="selected" href="/" title="home">home</a> (191)</li><li><a href="/random" title="random">random</a> (107)</li><li><a href="/code" title="code">code</a> (64)</li><li><a href="/linux" title="linux">linux</a> (13)</li><li><a href="/apple" title="apple">apple</a> (8)</li><li><a href="/security" title="security">security</a> (2)</li>
286
+ </ul>
287
+ <h2><a href="http://del.icio.us/rss/segy">my delicious links</a></h2>
288
+ <ul class="feedlist">
289
+
290
+ <li><a rel="nofollow" href="http://www.modrails.com/" alt="Overview &#x2014; Phusion Passenger (a.k.a. mod_rails)">Overview &#x2014; Phusion Passenger (a.k.a. mod_rails)</a></li>
291
+
292
+ <li><a rel="nofollow" href="http://scoutapp.com/" alt="Web Monitoring and Reporting Software ~ Scout">Web Monitoring and Reporting Software ~ Scout</a></li>
293
+
294
+ <li><a rel="nofollow" href="http://strokedb.com/" alt="StrokeDB">StrokeDB</a></li>
295
+
296
+ <li><a rel="nofollow" href="http://blogs.msdn.com/mitsu/archive/2008/04/02/visual-linq-query-builder-for-linq-to-sql-vlinq.aspx" alt="Mitsu's blog : Visual Linq query builder for Linq to Sql: VLinq">Mitsu's blog : Visual Linq query builder for Linq to Sql: VLinq</a></li>
297
+
298
+ <li><a rel="nofollow" href="http://www.physalis.net/NatsuLion/NatsuLion_en.html" alt="SecretStaircase - NatsuLion">SecretStaircase - NatsuLion</a></li>
299
+
300
+ <li><a rel="nofollow" href="http://gskinner.com/RegExr/" alt="RegExr: Online Regular Expression Testing Tool">RegExr: Online Regular Expression Testing Tool</a></li>
301
+
302
+ </ul>
303
+ <h2><a href="http://digg.com/users/segfault">my diggs</a></h2>
304
+ <ul class="feedlist">
305
+
306
+ </ul>
307
+ <h2>recent comments</h2>
308
+ <ul>
309
+
310
+ <li>
311
+ <a rel="nofollow" href="/2007/6/26/fixing-vim-arrow-keys-in-iterm">phillip</a>: thanks! this has annoyed me for a long time!
312
+ </li>
313
+
314
+ <li>
315
+ <a rel="nofollow" href="/2007/11/5/fix-a-missing-user-account-in-leopard">Beaker</a>: This sounds like the fix I am looking for. I just restored my HD from...
316
+ </li>
317
+
318
+ <li>
319
+ <a rel="nofollow" href="/2007/11/5/fix-a-missing-user-account-in-leopard">jake</a>: Thank you sooooo much. I've been looking everywhere for an answer to this problem. thanks...
320
+ </li>
321
+
322
+ <li>
323
+ <a rel="nofollow" href="/2007/1/30/kensington-broke-my-powerbook">Aaron</a>: I came across this while looking for some new N23 "Smarttips." Smart? My ass! These...
324
+ </li>
325
+
326
+ <li>
327
+ <a rel="nofollow" href="/2005/10/28/ibm-serveraid-issues">Hesed</a>: Hello all, If you have not found version 7.0 ..also ServeRAID version 6.11 made the...
328
+ </li>
329
+
330
+ </ul>
331
+ <br/>
332
+ <a href="/tags">Tag List</a>
333
+ <br/>
334
+ <br/>
335
+ <script type="text/javascript"><!--
336
+ google_ad_client = "pub-1027316146837478";
337
+ google_ad_width = 125;
338
+ google_ad_height = 125;
339
+ google_ad_format = "125x125_as";
340
+ google_ad_type = "text";
341
+ google_ad_channel ="5773351288";
342
+ google_color_border = "336699";
343
+ google_color_bg = "FFFFFF";
344
+ google_color_link = "0000FF";
345
+ google_color_url = "008000";
346
+ google_color_text = "000000";
347
+ //--></script>
348
+
349
+ <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
350
+ </script>
351
+ <br/>
352
+ <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
353
+ </script>
354
+ <br/>
355
+ <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
356
+ </script>
357
+
358
+ </div>
359
+ </div>
360
+ <script src="http://feeds.feedburner.com/~s/techaddict?i=" type="text/javascript" charset="utf-8"></script>
361
+ <div id="footer">tech addict - &copy; Mark Guzman - powered by mephisto</div>
362
+ </div>
363
+ </body>
364
+ </html>
@@ -0,0 +1,301 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
3
+ <title>tech addict - home</title>
4
+ <id>tag:hasno.info,2007:mephisto/</id>
5
+ <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
6
+ <link href="http://hasno.info/feed/atom.xml" rel="self" type="application/atom+xml"/>
7
+ <link href="http://hasno.info/" rel="alternate" type="text/html"/>
8
+ <updated>2007-06-26T00:32:34Z</updated>
9
+ <entry xml:base="http://hasno.info/">
10
+ <author>
11
+ <name>segfault</name>
12
+ </author>
13
+ <id>tag:hasno.info,2007-06-26:2302</id>
14
+ <published>2007-06-26T00:26:00Z</published>
15
+ <updated>2007-06-26T00:32:34Z</updated>
16
+ <category term="apple"/>
17
+ <category term="iTerm"/>
18
+ <link href="http://hasno.info/2007/6/26/fixing-vim-arrow-keys-in-iterm" rel="alternate" type="text/html"/>
19
+ <title>fixing vim arrow keys in iTerm</title>
20
+ <content type="html">
21
+ &lt;p&gt;I've decided to give iTerm a chance. My normal workflow involves many Terminal or xterm windows open with vim in them. iTerm's tab's make it very enticing, the only problem I've run into is arrow key usage under vim. I'm used to using hjkl for navigation, but it takes a mental context switch. Which is especially annoying when switching from say Visual Studio, where the arrow keys are my friend. &lt;/p&gt;&lt;p&gt;After a little monkeying around, it seems that the the Keyboard profiles are the problem. I've removed everything and now my arrow keys work without having to modify the TERM environment variable.&lt;/p&gt;
22
+ </content> </entry>
23
+ <entry xml:base="http://hasno.info/">
24
+ <author>
25
+ <name>segfault</name>
26
+ </author>
27
+ <id>tag:hasno.info,2007-06-21:2175</id>
28
+ <published>2007-06-21T19:46:00Z</published>
29
+ <updated>2007-06-21T19:55:51Z</updated>
30
+ <category term="random"/>
31
+ <category term="apple"/>
32
+ <category term="crash"/>
33
+ <category term="razr v3xxx"/>
34
+ <link href="http://hasno.info/2007/6/21/compounded-errors" rel="alternate" type="text/html"/>
35
+ <title>compounded errors</title>
36
+ <content type="html">
37
+ &lt;p&gt;I've recently purchased a Motorola Razr v3xxx (did they really need all those x's?) in order to get access to 3g wireless. I'm coming from a Razr v3, so the interface is familiar, and the phone seems fine. Except of course for the crashing. Anything involving data transfer will eventually cause this thing to crash. Hard, as in the softkeys no longer respond to anything. The only resolution is to pull the battery. If that weren't enough, this has unearthed an issue with pppd on my macbook.&lt;/p&gt;&lt;p&gt;Apparently the osx is none too fond of bluetooth devices disappearing. The ppp daemon sits in a perpetual &quot;Disconnecting&quot; state. Killing the process results in a zombie. I'm not certain what the Internet Connection tool checks to find the current status of the bluetooth connection, but it is inextricably linked to the pppd process which is itself stuck. At this point this requires me to reboot the macbook in order to reconnect to the net.&lt;/p&gt;&lt;p&gt;I wonder if anyone else has run into this pair of issues, then again this may be one of those ultra niche things. How many people could there be using bluetooth to ride their phone's network connection?&lt;/p&gt;
38
+ </content> </entry>
39
+ <entry xml:base="http://hasno.info/">
40
+ <author>
41
+ <name>segfault</name>
42
+ </author>
43
+ <id>tag:hasno.info,2007-06-05:1789</id>
44
+ <published>2007-06-05T03:01:00Z</published>
45
+ <updated>2007-06-05T11:32:29Z</updated>
46
+ <category term="code"/>
47
+ <category term="mephisto"/>
48
+ <category term="rss"/>
49
+ <category term="ruby"/>
50
+ <category term="xml"/>
51
+ <link href="http://hasno.info/2007/6/5/feedreader-and-hpricot-feed-parsing" rel="alternate" type="text/html"/>
52
+ <title>feedreader and hpricot feed parsing</title>
53
+ <content type="html">
54
+ After doing a little profiling (not that it was necessary) I found that REXML was the source of the lag in feed parsing. The obvious solution is to switch from REXML to some other xml parser. Having using libxml for c projects, I must admit a deep dislike of the API. The ruby-libxml interface does nothing to hide this api, and was therefore of out the running. So that left me with hpricot, which is has a great api and can parse xml/html quickly. &lt;br /&gt;&lt;br /&gt;At this point I have a feedtools rewrite/replacement sitting in svn://hasno.info/feedtools/trunk, it's currently going by the name FeedEater until such a time as it merges in with feedtools. I've left the interface almost the same, so the regular duckie rules apply. It is MUCH faster than feedtools, but does not to nearly as much. Feedtools attempts to fix any and all issues with feeds, anything from entity conversion to changing feed:// urls into http:// urls. The simple library I've written does none of that. It parses the feed into some ruby objects and spits it back at you. Though I did provide support for caching and have implemented a matching database cache (it basically uses the feedtools cache table).&lt;br /&gt;&lt;br /&gt;Since all this feed parsing cruft was done in order to make the mephisto feedreader plugin faster, I've gone ahead and created a branch that uses the new library. You'll find the branch at svn://hasno.info/mephisto/plugins/branches/mephisto_feedreader. Give the library and/or plugin a try. &lt;br /&gt;&lt;br /&gt;As a aside, after all this hpricot goodness I've decided that at some point I want to write a ruby-ish hpricot-ish libxml wrapper.
55
+ </content> </entry>
56
+ <entry xml:base="http://hasno.info/">
57
+ <author>
58
+ <name>segfault</name>
59
+ </author>
60
+ <id>tag:hasno.info,2007-05-18:1487</id>
61
+ <published>2007-05-18T02:55:00Z</published>
62
+ <updated>2007-05-18T03:00:47Z</updated>
63
+ <category term="random"/>
64
+ <category term="vim"/>
65
+ <link href="http://hasno.info/2007/5/18/windows-vim-7-1-2" rel="alternate" type="text/html"/>
66
+ <title>windows vim 7.1.2 </title>
67
+ <content type="html">
68
+ Since Bram has release Vim 7.1, I've rebuilt my windows vim install. It's built with huge, ruby, python, perl, and IME (multibyte). The binaries are optimized for pentium4+ machines with SSE2. You can get the installer &lt;a href=&quot;http://segfault.hasno.info/vim/gvim71.zip&quot;&gt;here&lt;/a&gt;.
69
+ </content> </entry>
70
+ <entry xml:base="http://hasno.info/">
71
+ <author>
72
+ <name>segfault</name>
73
+ </author>
74
+ <id>tag:hasno.info,2007-05-16:1462</id>
75
+ <published>2007-05-16T02:17:00Z</published>
76
+ <updated>2007-05-16T02:43:15Z</updated>
77
+ <category term="code"/>
78
+ <category term="mephisto"/>
79
+ <category term="ruby"/>
80
+ <link href="http://hasno.info/2007/5/16/feedreader-plugin-update" rel="alternate" type="text/html"/>
81
+ <title>feedreader plugin update</title>
82
+ <content type="html">
83
+ I've updated the feedreader mephisto plugin fixing a serious lack of caching. If you happen to use this plugin to display rss feeds on your blog, I highly suggest getting the current version. I should note that the current version will only work with the mephisto trunk as many plugin architecture changes have happened since the 0.7.3 release. The curious can check the &lt;a href=&quot;http://trac.hasno.info/mephisto&quot; /&gt;trac&lt;/a&gt; instance for more information. At some point I'll get around to modifying the other plugins, I'd like to have them take advantage of the UI based configuration stuff that's been added to mephisto.
84
+ </content> </entry>
85
+ <entry xml:base="http://hasno.info/">
86
+ <author>
87
+ <name>segfault</name>
88
+ </author>
89
+ <id>tag:hasno.info,2007-05-07:1379</id>
90
+ <published>2007-05-07T00:11:00Z</published>
91
+ <updated>2007-05-07T02:12:43Z</updated>
92
+ <category term="random"/>
93
+ <category term="iis"/>
94
+ <link href="http://hasno.info/2007/5/7/iis-7-surprises" rel="alternate" type="text/html"/>
95
+ <title>iis 7 surprises</title>
96
+ <content type="html">
97
+ So I've started looking at IIS 7 today and low and behold they've finally done away with the damned &lt;a href=&quot;http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/iis/43a51d34-7c81-413b-9727-ec9a19d0b428.mspx&quot;&gt;metabase&lt;/a&gt; and have replaced it with some &lt;a href=&quot;http://www.iis.net/articles/view.aspx/Use-IIS7-Administration-Tools/Using-XML-Configuration/Getting-Started-with-IIS7-Configuration?tabid=1&quot; /&gt;xml configuration&lt;/a&gt; files. It'll be nice to actually be able to diff webserver configs. At some point I hope to play around with some of the newer alternative http servers on the scene, like nginix. At this moment though, I'm checking out what's changing in the windows world. Also whilst poking around Vista I've also noticed that they made the firewall not suck. Kudos, Vista does indeed look like a nice step forward though I can understand why people's responses seem to be mixed. Change is indeed rough. I don't think it helps that all of the previous releases worked very hard to provide a familiar operating environment. At some point it pays to be more like the linux kernel developers, natural api evolution seems to lead to cleaner stuff.
98
+ </content> </entry>
99
+ <entry xml:base="http://hasno.info/">
100
+ <author>
101
+ <name>segfault</name>
102
+ </author>
103
+ <id>tag:hasno.info,2007-04-21:1256</id>
104
+ <published>2007-04-21T13:20:00Z</published>
105
+ <updated>2007-04-22T14:31:05Z</updated>
106
+ <category term="random"/>
107
+ <category term="apple"/>
108
+ <link href="http://hasno.info/2007/4/21/fun-with-applecare" rel="alternate" type="text/html"/>
109
+ <title>fun with applecare</title>
110
+ <content type="html">
111
+ So after establishing that my harddrive was indeed dead and dying, I called AppleCare. Until yesterday there had been no negative AppleCare experiences on my part. I had heard some horror stories from others but had never experienced such a blunder. Let's establish some facts here. My macbook is not stock, it has a 160gb drive and 2gb of ram. Those are considered custom upgrades, and this information is attached to my serial number supposedly. So when calling, after providing my serial number, I assume that a person would &lt;em&gt;check&lt;/em&gt; to see if the harddrive in question was availible at the applestore they were directing me to. That didn't happen, and we drove over an hour out of our way to be told &quot;Sorry we don't have that here, we could order it or take the laptop and get it back to you&quot;. To be fair, every person we talked to was very friendly and helpful. On the flip side, taking a half day from work and driving around to get nothing done right before traveling is not my idea of a good time. &lt;br /&gt;&lt;br /&gt;I was understandably angry at this point and decided to spread the love in apple's general direction. The woman I spoke to was very nice and helpful. She informed me that &lt;strong&gt;no applestore would have my drive&lt;/strong&gt; because it was custom. Apparently they do keep a stockpile of parts on hand, but generally not for the custom configurations. Excellent. I'd spent a good part of my day trying to do something that was not possible &lt;strong&gt;at the onset&lt;/strong&gt;. &lt;br /&gt;&lt;br /&gt;At this point they are sending me another harddrive, which may or may not arrive before I have to travel again. On the bright side, my bitching got me a $60 gift certificate to the online applestore. The only downside to that, is the fact that we picked up a power adapter from the store before leaving and the certificate can not be used at a brick and mortar store. Good times. &lt;br /&gt;&lt;br /&gt;&amp;lt;&lt;strong&gt;update&lt;/strong&gt;&amp;gt;It should be noted that I did mention that I had a 160gb drive and that I wanted to find out where I could get a new drive today if it was possible. I'd call that along with my serial number enough information to provide accurate information. At this point I still have not received the certificate email either. I have received an email for a customer relations survey.&amp;lt;/&lt;strong&gt;update&lt;/strong&gt;&amp;gt;&lt;br /&gt;
112
+ </content> </entry>
113
+ <entry xml:base="http://hasno.info/">
114
+ <author>
115
+ <name>segfault</name>
116
+ </author>
117
+ <id>tag:hasno.info,2007-04-20:1241</id>
118
+ <published>2007-04-20T15:57:00Z</published>
119
+ <updated>2007-04-20T16:08:22Z</updated>
120
+ <category term="random"/>
121
+ <category term="apple"/>
122
+ <link href="http://hasno.info/2007/4/20/more-click" rel="alternate" type="text/html"/>
123
+ <title>more click!</title>
124
+ <content type="html">
125
+ Last night I noticed my laptop seriously slowing down due to some random processes hogging the CPUs. I decided after killing a few things, that maybe it was time for a reboot. My little macbook displayed the missing folder icon a few minutes thereafter. Excellent. 11:30pm, non-booting laptop, work stuff almost done with no code check-in in the past few days (I prefer to only check in working code, unless I've made really major changes)... Great. So the next morning I fire up DiskWarrior and amazingly the machine starts spewing more click noise than an angry &lt;a href=&quot;http://en.wikipedia.org/wiki/Sandawe_language&quot;&gt;Sandawe&lt;/a&gt;. Hopefully I can recover the things I was working on and my vm. At least most of my honeymoon pictures are on my server.
126
+ </content> </entry>
127
+ <entry xml:base="http://hasno.info/">
128
+ <author>
129
+ <name>segfault</name>
130
+ </author>
131
+ <id>tag:hasno.info,2007-04-18:1221</id>
132
+ <published>2007-04-18T14:24:00Z</published>
133
+ <updated>2007-04-18T14:46:37Z</updated>
134
+ <category term="random"/>
135
+ <link href="http://hasno.info/2007/4/18/rating-knowledge" rel="alternate" type="text/html"/>
136
+ <title>rating knowledge</title>
137
+ <content type="html">
138
+ Some recent experiences have caused me to consider how I rate my knowledge of things. To date I've relied on some combination of recency and depth. The main point of that combination being the loss of information over time. Things I did only 6 months ago from memory, may require more effort and thought to do now. So how do you rate your knowledge given the fact that the only information you may really know is what your dealing with currently? There are obviously some limits to this idea. I can recall the Big-O times for a variety of structures and algorithms, but I have yet to actually put that knowledge to any useful test. Does that mean that I don't actually posses the knowledge or am incapable of using it? Given a scale of 1-10, what would rating would you give someone's knowledge given the following scenarios:&lt;ul&gt;&lt;li&gt;The person has API exact knowledge off the top of their head&lt;/li&gt;&lt;li&gt;The person has rough API knowledge off the top of their head but is fuzzy about details and wrong about some details&lt;/li&gt;&lt;li&gt;The person has no API knowledge off the top of their head&lt;/li&gt;&lt;li&gt;The person has incorrect API knowledge&lt;/li&gt;&lt;li&gt;The person figures out the API based off of experience&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;
139
+ I may have experience with linux and all sorts of other things, but as I don't use that every day the knowledge recedes into the dark corners of my mind only revealed after much shaking. This leads me to question the level of import I'd previously applied to my choice of daytime job. I had originally believed that my free-time escapades into the other technical roles and systems would maintain my knowledge of those systems at the level required to easily jump into a situation needing those skills. At this point, I can't say I believe that anymore. Some recent thorough testing has revealed some softness in those areas. While after some head shaking (remember those dark recesses of my mind where the real knowledge hides?) I can recall the necessary information, the time between question and answer is too short to provide the actual answer. &lt;br /&gt;So the question I'm left with is: What do I do to fix this? I wonder if anyone else has a suggestion. &lt;br /&gt;&lt;br /&gt;As a side note, I've come to the conclusion that my writing is much better than my speaking. I plan on giving up the latter as it has been nothing but a hindrance in life.&lt;br /&gt;
140
+ </content> </entry>
141
+ <entry xml:base="http://hasno.info/">
142
+ <author>
143
+ <name>segfault</name>
144
+ </author>
145
+ <id>tag:hasno.info,2007-04-12:1165</id>
146
+ <published>2007-04-12T18:19:00Z</published>
147
+ <updated>2007-04-12T18:24:58Z</updated>
148
+ <category term="random"/>
149
+ <category term="vim"/>
150
+ <link href="http://hasno.info/2007/4/12/windows-vim-7-0-224" rel="alternate" type="text/html"/>
151
+ <title>windows vim 7.0.224</title>
152
+ <content type="html">
153
+ I've gotten around to rebuilding vim 7 with ruby/perl/python for windows. The last version was about 100 patches behind, so this should take care of whatever problems/issues those little gems fix. Usual optimizations apply pentium3+, SSE2. You can find it &lt;a href=&quot;http://segfault.hasno.info/vim/gvim70.zip&quot;&gt;here&lt;/a&gt;. As I have a macbook now, I tend to just use a macports built vim. So these updates will probably be done every few months.
154
+ </content> </entry>
155
+ <entry xml:base="http://hasno.info/">
156
+ <author>
157
+ <name>segfault</name>
158
+ </author>
159
+ <id>tag:hasno.info,2007-04-11:1180</id>
160
+ <published>2007-04-11T22:42:00Z</published>
161
+ <updated>2007-04-14T22:11:02Z</updated>
162
+ <category term="code"/>
163
+ <category term="hl7"/>
164
+ <category term="ruby"/>
165
+ <link href="http://hasno.info/2007/4/11/ruby-hl7-creating-a-new-segment-class" rel="alternate" type="text/html"/>
166
+ <title>ruby-hl7 - creating a new segment class</title>
167
+ <content type="html">
168
+ Ok, so you want to do something more than muck with some fields in passing segments. Ruby-hl7 provides a nice way to encapsulate specific segments as objects, dealing with field aliases instead of field id numbers. After all isn't &lt;em&gt;my_obj.last_checkup_date&lt;/em&gt; a little clearer than &lt;em&gt;my_obj.e11&lt;/em&gt;. I certainly think so, which is why you can define a class for a segment type. Let's create a class describing a BLG (Billing) segment.&lt;br /&gt;
169
+ &lt;table class=&quot;CodeRay&quot;&gt;&lt;tr&gt;
170
+ &lt;td title=&quot;click to toggle&quot; class=&quot;line_numbers&quot;&gt;&lt;pre&gt;1&lt;tt&gt;
171
+ &lt;/tt&gt;2&lt;tt&gt;
172
+ &lt;/tt&gt;3&lt;tt&gt;
173
+ &lt;/tt&gt;4&lt;tt&gt;
174
+ &lt;/tt&gt;5&lt;tt&gt;
175
+ &lt;/tt&gt;6&lt;tt&gt;
176
+ &lt;/tt&gt;7&lt;tt&gt;
177
+ &lt;/tt&gt;8&lt;tt&gt;
178
+ &lt;/tt&gt;9&lt;tt&gt;
179
+ &lt;/tt&gt;&lt;strong&gt;10&lt;/strong&gt;&lt;tt&gt;
180
+ &lt;/tt&gt;11&lt;tt&gt;
181
+ &lt;/tt&gt;12&lt;tt&gt;
182
+ &lt;/tt&gt;13&lt;tt&gt;
183
+ &lt;/tt&gt;14&lt;tt&gt;
184
+ &lt;/tt&gt;15&lt;tt&gt;
185
+ &lt;/tt&gt;16&lt;tt&gt;
186
+ &lt;/tt&gt;17&lt;tt&gt;
187
+ &lt;/tt&gt;18&lt;tt&gt;
188
+ &lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;
189
+ &lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# When a message is parsed, the parser checks for a class matching this format&lt;/span&gt;&lt;tt&gt;
190
+ &lt;/tt&gt;&lt;span class=&quot;r&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;cl&quot;&gt;HL7::Message::Segment::BLG&lt;/span&gt; &amp;lt; &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Message&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Segment&lt;/span&gt;&lt;tt&gt;
191
+ &lt;/tt&gt; weight &lt;span class=&quot;i&quot;&gt;600&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# we want this to go after every other segment (they are sorted ascendingly)&lt;/span&gt;&lt;tt&gt;
192
+ &lt;/tt&gt;&lt;tt&gt;
193
+ &lt;/tt&gt; &lt;span class=&quot;c&quot;&gt;# we're adding a field alias to BLG.1, which happens to be &amp;quot;when to charge&amp;quot; in the docs&lt;/span&gt;&lt;tt&gt;
194
+ &lt;/tt&gt; add_field &lt;span class=&quot;sy&quot;&gt;:name&lt;/span&gt;=&amp;gt;&lt;span class=&quot;sy&quot;&gt;:when_to_charge&lt;/span&gt; &lt;tt&gt;
195
+ &lt;/tt&gt; &lt;tt&gt;
196
+ &lt;/tt&gt; &lt;span class=&quot;c&quot;&gt;# we'll include some value checking logic in the next field we add&lt;/span&gt;&lt;tt&gt;
197
+ &lt;/tt&gt; &lt;span class=&quot;co&quot;&gt;VALID_CHARGES&lt;/span&gt; = &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;%w[&lt;/span&gt;&lt;span class=&quot;k&quot;&gt; CH CO DR DP GR NC NP RS &lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;tt&gt;
198
+ &lt;/tt&gt; add_field &lt;span class=&quot;sy&quot;&gt;:name&lt;/span&gt;=&amp;gt;&lt;span class=&quot;sy&quot;&gt;:charge_type&lt;/span&gt; &lt;span class=&quot;r&quot;&gt;do&lt;/span&gt; |c|&lt;tt&gt;
199
+ &lt;/tt&gt; raise &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Exception&lt;/span&gt;.new(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;Invalid charge type&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;r&quot;&gt;unless&lt;/span&gt; c&lt;tt&gt;
200
+ &lt;/tt&gt; raise &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Exception&lt;/span&gt;.new(&lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;Invalid charge type&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;) &lt;span class=&quot;r&quot;&gt;unless&lt;/span&gt; &lt;span class=&quot;co&quot;&gt;VALID_CHARGES&lt;/span&gt;.index(c)&lt;tt&gt;
201
+ &lt;/tt&gt; c &lt;span class=&quot;c&quot;&gt;# we need to return the final value of c as this is called on read/write&lt;/span&gt;&lt;tt&gt;
202
+ &lt;/tt&gt; &lt;span class=&quot;r&quot;&gt;end&lt;/span&gt;&lt;tt&gt;
203
+ &lt;/tt&gt;&lt;tt&gt;
204
+ &lt;/tt&gt; &lt;span class=&quot;c&quot;&gt;# we can explicitly set the field id, this would point to BLG.4&lt;/span&gt;&lt;tt&gt;
205
+ &lt;/tt&gt; add_field &lt;span class=&quot;sy&quot;&gt;:name&lt;/span&gt;=&amp;gt;&lt;span class=&quot;sy&quot;&gt;:charge_type_reason&lt;/span&gt;, &lt;span class=&quot;sy&quot;&gt;:idx&lt;/span&gt;=&amp;gt;&lt;span class=&quot;i&quot;&gt;4&lt;/span&gt;&lt;tt&gt;
206
+ &lt;/tt&gt;&lt;span class=&quot;r&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;
207
+ &lt;/tr&gt;&lt;/table&gt;
208
+
209
+ &lt;br /&gt;&lt;br /&gt;Now let's use it:&lt;br /&gt;
210
+ &lt;table class=&quot;CodeRay&quot;&gt;&lt;tr&gt;
211
+ &lt;td title=&quot;click to toggle&quot; class=&quot;line_numbers&quot;&gt;&lt;pre&gt;1&lt;tt&gt;
212
+ &lt;/tt&gt;2&lt;tt&gt;
213
+ &lt;/tt&gt;3&lt;tt&gt;
214
+ &lt;/tt&gt;4&lt;tt&gt;
215
+ &lt;/tt&gt;5&lt;tt&gt;
216
+ &lt;/tt&gt;6&lt;tt&gt;
217
+ &lt;/tt&gt;7&lt;tt&gt;
218
+ &lt;/tt&gt;8&lt;tt&gt;
219
+ &lt;/tt&gt;9&lt;tt&gt;
220
+ &lt;/tt&gt;&lt;strong&gt;10&lt;/strong&gt;&lt;tt&gt;
221
+ &lt;/tt&gt;11&lt;tt&gt;
222
+ &lt;/tt&gt;&lt;/pre&gt;&lt;/td&gt;
223
+ &lt;td class=&quot;code&quot;&gt;&lt;pre&gt;&lt;span class=&quot;c&quot;&gt;# create the empty hl7 message&lt;/span&gt;&lt;tt&gt;
224
+ &lt;/tt&gt;msg = &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Message&lt;/span&gt;.new&lt;tt&gt;
225
+ &lt;/tt&gt;&lt;tt&gt;
226
+ &lt;/tt&gt;&lt;span class=&quot;c&quot;&gt;# create our segments and fill in some data&lt;/span&gt;&lt;tt&gt;
227
+ &lt;/tt&gt;msh = &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Message&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Segment&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;MSH&lt;/span&gt;.new &lt;tt&gt;
228
+ &lt;/tt&gt;blg = &lt;span class=&quot;co&quot;&gt;HL7&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Message&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;Segment&lt;/span&gt;::&lt;span class=&quot;co&quot;&gt;BLG&lt;/span&gt;.new&lt;tt&gt;
229
+ &lt;/tt&gt;blg.when_to_charge = &lt;span class=&quot;co&quot;&gt;Date&lt;/span&gt;.new.to_s&lt;tt&gt;
230
+ &lt;/tt&gt;blg.charge_type = &lt;span class=&quot;s&quot;&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;CH&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;tt&gt;
231
+ &lt;/tt&gt;&lt;tt&gt;
232
+ &lt;/tt&gt;msg &amp;lt;&amp;lt; msh&lt;tt&gt;
233
+ &lt;/tt&gt;msg &amp;lt;&amp;lt; blg&lt;/pre&gt;&lt;/td&gt;
234
+ &lt;/tr&gt;&lt;/table&gt;
235
+
236
+ &lt;br /&gt;There you go, the suggested method for dealing with known segments.
237
+ </content> </entry>
238
+ <entry xml:base="http://hasno.info/">
239
+ <author>
240
+ <name>segfault</name>
241
+ </author>
242
+ <id>tag:hasno.info,2007-04-01:970</id>
243
+ <published>2007-04-01T23:42:00Z</published>
244
+ <updated>2007-04-10T13:10:31Z</updated>
245
+ <category term="code"/>
246
+ <category term="hl7"/>
247
+ <category term="ruby"/>
248
+ <link href="http://hasno.info/2007/4/1/ruby-hl7-in-the-wild" rel="alternate" type="text/html"/>
249
+ <title>ruby-hl7 in the wild</title>
250
+ <content type="html">
251
+ Ron Sweeney put together a cool little &lt;a href=&quot;http://www.clubpacswestmi.net/articles/2007/04/01/a-ruby-hl7-sniffer&quot;&gt;HL7 Sniffer&lt;/a&gt; that uses libpcap to pull messages from the wire. To my knowledge this is the first use of ruby-hl7 outside of my own personal usage. So props to Ron for creating a cool app. I'll be playing with it when I get back into the States.
252
+ </content> </entry>
253
+ <entry xml:base="http://hasno.info/">
254
+ <author>
255
+ <name>segfault</name>
256
+ </author>
257
+ <id>tag:hasno.info,2007-03-24:812</id>
258
+ <published>2007-03-24T07:13:00Z</published>
259
+ <updated>2007-03-24T07:15:11Z</updated>
260
+ <category term="random"/>
261
+ <category term="japan"/>
262
+ <link href="http://hasno.info/2007/3/24/japan-trip-site" rel="alternate" type="text/html"/>
263
+ <title>japan trip site</title>
264
+ <content type="html">
265
+ We're going to attempt to blog daily from Japan using &lt;a href=&quot;http://triptojapan.info&quot;&gt;triptojapan&lt;/a&gt;. We'll be posting pictures in the blog as well as short write-ups of the places we visit. One more day and I'm on a plane to Japan!
266
+ </content> </entry>
267
+ <entry xml:base="http://hasno.info/">
268
+ <author>
269
+ <name>segfault</name>
270
+ </author>
271
+ <id>tag:hasno.info,2007-03-20:709</id>
272
+ <published>2007-03-20T19:40:00Z</published>
273
+ <updated>2007-03-20T20:13:00Z</updated>
274
+ <category term="random"/>
275
+ <category term="funny"/>
276
+ <link href="http://hasno.info/2007/3/20/null-modem-castle" rel="alternate" type="text/html"/>
277
+ <title>null modem castle</title>
278
+ <content type="html">
279
+ One of my co-workers went a little null modem crazy last night and created his very own fort. He's probably going to need to scale up a little if he plans to reside in it. At ~$2 per null modem connector we estimate the value of his creation to be around $400. It's worth noting the lead-solder dipped cannon (pipe elbow).&lt;br /&gt;&lt;br /&gt;Marvel at the imposing ramparts!&lt;br /&gt;
280
+ &lt;img src=&quot;http://hasno.info/gallery/d/7580-2/IMGP0123.JPG&quot; alt=&quot;it scares the neighbors&quot; /&gt;&lt;br /&gt;&lt;br /&gt;No one storming his doors.&lt;br /&gt;
281
+ &lt;img src=&quot;http://hasno.info/gallery/d/7576-2/IMGP0122.JPG&quot; alt=&quot;oooh kowai desu ne&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
282
+ &lt;img src=&quot;http://hasno.info/gallery/d/7572-2/IMGP0121.JPG&quot; alt=&quot;wewt&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
283
+ &lt;br /&gt;&lt;br /&gt;Those gates sure look tall.&lt;br /&gt;&lt;img src=&quot;http://hasno.info/gallery/d/7567-2/IMGP0124.JPG&quot; alt=&quot;fear the gates&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check out our official 24-7 sys-admin:&lt;br /&gt;
284
+ &lt;img src=&quot;http://hasno.info/gallery/d/7584-2/IMGP0095.JPG&quot; alt=&quot;always on the job&quot; /&gt;
285
+ </content> </entry>
286
+ <entry xml:base="http://hasno.info/">
287
+ <author>
288
+ <name>segfault</name>
289
+ </author>
290
+ <id>tag:hasno.info,2007-03-19:697</id>
291
+ <published>2007-03-19T05:00:00Z</published>
292
+ <updated>2007-03-19T05:14:47Z</updated>
293
+ <category term="random"/>
294
+ <category term="coding"/>
295
+ <category term="ruby"/>
296
+ <link href="http://hasno.info/2007/3/19/by-any-other-name" rel="alternate" type="text/html"/>
297
+ <title>by any other name</title>
298
+ <content type="html">
299
+ Gary from &lt;a href=&quot;http://newhavenrubyists.stikipad.com/wiki/&quot;&gt;nh.rb&lt;/a&gt; was wondering why I chose the name Ruby-HL7 instead of just HL7 (which IMO is simpler and to the point). Originally I hadn't put much thought into the project name, I just figured Ruby-HL7 since it was an HL7 library for Ruby. Considering the fact that there is no other library it probably would've been fine to just name it HL7. This got me considering my namespace naming choices. HL7::Message::Segment::MSH seems a bit long to me, I'll probably be changing that to HL7::Segment::MSH or something even shorter. I'm wondering what others think about this and verbose naming in general. You seem to find it a lot in Java projects, &quot;object.FuzzySlipperStatusCode&quot;. Then again is saving a few keystrokes worth killing the clarity that some of these names provide. We don't want to go too far down the minimalist path or we'll get acronym variable names (think &quot;object.fssc&quot;).
300
+ </content> </entry>
301
+ </feed>