tag:blogger.com,1999:blog-22506995654828985742024-03-12T19:32:54.660-07:00Color of BlahWhat does it look like to you?Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-2250699565482898574.post-82620896771175849542017-02-16T14:50:00.003-08:002017-02-16T14:50:38.766-08:00Mobile Application Privacy Policy<div class="p1">
Thank you for using this mobile application ("App")! Here we describe how we collect and use information from your mobile device (“Device”) when you use our App. By using our App, you are accepting the terms of this privacy policy (“Policy”), and you are consenting to our collection and use of your personal information as described in this Policy.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>What do we use your information for?</b></div>
<div class="p1">
Any of the information we collect from you may be used in one of the following ways:</div>
<ul class="ul1">
<li class="li1"><span class="s1"></span>To access the light function of the Device’s camera.</li>
<li class="li1"><span class="s1"></span>To deliver reports of bugs and crashes of the App to our developers so that they may fix and/or improve the App.</li>
<li class="li1"><span class="s1"></span>To deliver automated advertising to support the development of the App.</li>
</ul>
<div class="p1">
<b>Is the camera used by the App?</b></div>
<div class="p1">
Only insofar as to access the light function of your camera is the camera used by the App. The App does not take, capture, transfer or store any photos or videos.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>How do we protect your information?</b></div>
<div class="p1">
We implement a variety of security measures to maintain the safety of your personal information.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Do we use cookies?</b></div>
<div class="p1">
We do not use cookies.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Do we disclose any information to outside parties?</b></div>
<div class="p1">
We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. </div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Third party links</b></div>
<div class="p1">
We may include third party products or services on our App. These third party sites have separate and independent privacy policies. We therefore have no responsibility or liability for the content and activities of these linked sites. Nonetheless, we seek to protect the integrity of our App, and welcome any feedback about these sites.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>In-App Privacy Policy Only</b></div>
<div class="p1">
This Policy applies only to information collected through our App, and not to information collected elsewhere.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Changes to our Privacy Policy </b></div>
<div class="p1">
If we decide to change our Policy, we will post those changes on this page.</div>
<div class="p2">
<br /></div>
<div class="p1">
This Policy was posted on 2017-02-16. It is effective upon acceptance for new users, and from 2017-03-17 for all other users.</div>
<div class="p2">
<br /></div>
<div class="p1">
<b>Contacting Us</b></div>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545; min-height: 14.0px}
li.li1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}
span.s1 {font: 10.0px Menlo}
ul.ul1 {list-style-type: disc}
</style>
<br />
<div class="p1">
If there are any questions regarding this Policy you may contact us by submitting a comment to this post.</div>
Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-27270054946351815452014-12-25T13:16:00.000-08:002014-12-25T13:23:56.562-08:00The Interview - a metaphor for AmericaI bought The Interview on Google Play yesterday afternoon, and watched it last night. It was surprisingly good. I don't know if it's going to win any awards, but it was fairly funny and well-structured. I counted only one jarring transition / awkwardly beginning scene and only one spot in the plot where pacing was off, and at least half a dozen hearty chuckles.<br />
<br />
Then thinking about it this morning, there are a few parallels between The Interview and America. The Interview started out as a novelty, something that I caught a glimpse of in passing; I thought "Oh that looks a little cool, I guess. What else you got for today, Internet / media?". I imagine anyone in the late 1400s early 1500s who wasn't investing in America but still heard about it might have had similar reactions: "Oh, that's a little interesting, I guess. Gosh I hope the Inquisition doesn't come by today".<br />
<br />
Then the controversy hit. People who were interested in seeing it not blossom went out of their way to put up roadblocks to it. Heavy taxation from the British = Sony hackers. Other, more serious stumbling came: Revolutionary war, Native American genocide, slavery, prohibition, suffrage struggle, civil rights struggle = major movie theatre chains deciding not to show it in light of asshat terrorist threats. But eventually things kind of work out.<br />
<br />
Both America and The Interview have a noticeable amount of sex, but from my perspective neither of them go over the top with it. They both also have a fair amount of drug use, but again, not too much. It's all in good fun and doesn't go off the rails with it. There is also a lot of love in this movie / country: love of one's work, love of one's country, love of things, puppies, lust, and, most of all, friendship. Lots and lots of good, honest, wholesome, heartfelt friendship.<br />
<br />
The only excess in this movie is a slight, minor imperfection, and that is the violence. I know a comedy about assassination is going to have some violence, and for the most part it wasn't too bad. At least one part is hilariously absurd. Another part is, at first, shockingly grotesque, but understandable given the situation. At first. Then the second and third time are so cringeworthy, I had to look away. (I'm guessing you will too.) Just like in America.<br />
<br />
Overall, I rather like it. Sure, it's got a few problems. Anyone who tells you it's perfect is either ignorant of all the facts, lying, or clearly insane. But definitely worth checking out. Same goes for The Interview.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-83795384183231115212014-05-29T19:51:00.001-07:002014-05-29T19:51:34.329-07:00Ruboto error starting emulatorSo, I've started dabbling with Ruboto: the Ruby way of doing Android.<br />
Looks pretty cool. Fairly straightforward so far. Pretty glaring typo on <a href="http://ruboto.org/community.html">this</a> page makes me a little concerned, but whatevs. (Why do so many sites not make it easier to report typoes to the webmaster?)<br />
<br />
Going by the <a href="https://github.com/ruboto/ruboto/blob/master/README.md">ReadMe</a> page, I enter this command to start up an emulator:<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; line-height: inherit; margin: 0px; padding: 0px; word-wrap: normal;">ruboto emulator -t android-19</code></pre>
That was fast, easily, painless and work. Hallelujah. I'm going to dinner.<br />
I come back from dinner and decide to try some of the automated app generation stuff:<br />
<pre style="background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;"><code style="background: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; line-height: inherit; margin: 0px; padding: 0px; word-wrap: normal;">ruboto gen app --package com.dstrube.rubototest --path . --name RubotoTest --target android-19 --min-sdk android-19 --activity MainActivity</code></pre>
Again, easy, but this time not so effective. The generator says "." doesn't exist so it'll create it. Good luck with that, little buddy. So I run it again, this time specifying the folder RubotoTest. All good in the hood. <div>
<br /></div>
<div>
Until I try running the emulator again (that I'd closed before dinner). Then I get this noise:</div>
<div>
<br /></div>
<div>
NAND: nand_dev_load_disk_state ftruncate failed: Invalid argument</div>
<div>
savevm: unable to load section nand_dev</div>
<div>
<br /></div>
<div>
Searching the google for help gave me only instances where this was happening with Eclipse. Solution: close and reopen Eclipse. Not applicable here. Closing and reopening this emulator just gave the same error again. </div>
<div>
<br /></div>
<div>
So here's the solution:</div>
<div>
1- IF you were stupid enough to make the min sdk the same as the target sdk, I understand, but that was stupid. Do it again, but this time min-sdk = something like 10.</div>
<div>
2- ruboto emulator -t android-18</div>
<div>
<br /></div>
<div>
Does closing and reopening the 18 emulator still work? Yes</div>
<div>
Does trying to open the 19 emulator again still break? Yes</div>
<div>
<br /></div>
<div>
Is any of this a complete solution? No, but hopefully it'll help someone save a few minutes of hair pulling on this so they can pull hair on something else.</div>
Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-18127671784968003542013-04-25T14:10:00.001-07:002013-04-26T14:34:52.968-07:00Flex time weirdnessConsider the following:
<br />
<br />
<a href="https://docs.google.com/document/d/1CQi3QriN-CR-v0nIj1JjlZT_5rC92LgbubJO_RRtffI/edit?usp=sharing">testDate.mxml</a>
<br />
<br />
If you put that into Flash Builder and run it right now and click the button (this post is written in 2013, late April), you'll probably get something like this:<br />
<br />
Beginning of this month: Mon Apr 1 2013<br />
End of last month: Sun Mar 31 2013<br />
<br />
However, if your timezone is set to "(UTC) Dublin Edinburgh, Lisbon, London", (as opposed to "(UTC) Monrovia, Reykjavik" or "(UTC) Coordinated Universal Time"), then you'll get this weirdness:<br />
<br />
Beginning of this month: Mon Apr 1 2013<br />
End of last month: Sat Mar 30 2013<br />
<br />
Why? Well, because during the execution of the code, beginningOfThisMonth = Mon Apr 1 00:00:00 GMT+0100 2013, while endOfLastMonth = Sat Mar 30 23:00:00 GMT+0000 2013. Wait, what? Why did the timezone change? And why did it go to GMT+1? I thought UTC = GMT, no?<br />
<div>
<br /></div>
<div>
Let's see what <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time">wikipedia says</a>:<br />
[UTC] <span style="background-color: white; font-family: sans-serif; font-size: 12.800000190734863px; line-height: 19.200000762939453px;">is one of several closely related successors to </span><a href="http://en.wikipedia.org/wiki/Greenwich_Mean_Time" style="background-color: white; background-image: none; color: #0b0080; font-family: sans-serif; font-size: 12.800000190734863px; line-height: 19.200000762939453px; text-decoration: none;" title="Greenwich Mean Time">Greenwich Mean Time (GMT)</a><span style="background-color: white; font-family: sans-serif; font-size: 12.800000190734863px; line-height: 19.200000762939453px;">. For most purposes, UTC is synonymous with GMT, but GMT is no longer precisely defined by the scientific community.</span><br />
<span style="background-color: white; font-family: sans-serif; font-size: 12.800000190734863px; line-height: 19.200000762939453px;"><br /></span>
Well, that's neat. How do we fix that? Best solution: do away with timezones, all together, as a culture. They're way more trouble than they're worth, if you think about it (especially if you, like me, think about a future where we go to other planets). But that's not going to happen soon, and I need this fix soon.<br />
<br />
<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_3.html">Here's a hint</a>. That leads me to this quasi-fixed better approach:<br />
<br />
<br />
var beginOffset:Number = beginningOfThisMonth.getTimezoneOffset(); //if utc london=-60; if plain utc=0; if EST=240<br />
var endOffset:Number = endOfLastMonth.getTimezoneOffset();//if utc london=0; if plain utc=0; if EST=240<br />
if (beginOffset == endOffset){/* no problem */}<br />
else {<br />
//problem<br />
var offsetMilliseconds:Number = beginningOfThisMonth.getTimezoneOffset() * 60 * 1000;<br />
endOfLastMonth.setTime(beginningOfThisMonth.getTime() + offsetMilliseconds);<br />
}<br />
<br />
<br />
It's better in that it now has the right dates, but only just barely- the endOfLastMonth now = Sun Mar 31 23:00:00 GMT+0100 2013. Good enough for my purpose, but still leaves a bad taste in my mouth. Anyone wanna help wash this out?</div>
<div>
<br /></div>
Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-18567970197553605392013-02-21T13:30:00.003-08:002013-02-21T13:35:51.590-08:00MS SQL Server connection dialog locationIn MS SQL Server 2008, my connection dialog has somehow moved to an inconvenient location. I have a portrait monitor and a landscape monitor. I no longer open SQL Server in the landscape monitor because then the connection dialog opens off screen.<br/>
<br/>
I've tried everything I can think of:
<ol>
<li>dragging the dialog box to center screen then opening a connection, then closing and reopening SQL Server</li>
<li>dragging the dialog box then canceling the connection</li>
<li>both of the above with SQL Server Maximized as well as Restored.</li>
</ol>
Somewhere in some config file there must be a setting that says "always open the connection dialog at this location". Where is that setting? Or is there another way to fix this?<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvqdVqzFkDidD5AQYCR2nL2NwxSt-9lYzPHPmYpNLFWZ1ineC_Aq5qd1EdXOCRAqx2kWvWfNIWJgOBw-UhfwM20N2HfoRYKpS3qvoNQUnh2NWdYT-px6OSsa_bIT0UbS1fbxbT5xxYPUX_/s1600/msSqlServerConnectionDialogLocation.png" imageanchor="1" ><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvqdVqzFkDidD5AQYCR2nL2NwxSt-9lYzPHPmYpNLFWZ1ineC_Aq5qd1EdXOCRAqx2kWvWfNIWJgOBw-UhfwM20N2HfoRYKpS3qvoNQUnh2NWdYT-px6OSsa_bIT0UbS1fbxbT5xxYPUX_/s320/msSqlServerConnectionDialogLocation.png" /></a>Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-2508427527261921342012-04-25T08:29:00.001-07:002012-04-25T08:30:46.362-07:00Flash shrinkage in ChromeSomeone saw something weird. On her computer, by going thru a few simple steps in a Flex app, she was able to make some pages look normal whereas others were shrunk teeny tiny.<br>
I wasn't able to reproduce it on my machine.<br>
Same OS.<br>
Same version of Chrome.<br>
Same Flash Player setup.<br>
<br>
DIGRESSION<br>
Chrome's use of Flash is special. <br>
If you go to chrome://plugins, you see the two or more versions of Flash that Chrome uses- a Chrome version and your system's version (as well as maybe another- not important to the story).<br>
<br>
I tried toggling between using one, then the other, then both. <br>
No difference- everytime unreproducible on my machine; everytime reproducible on hers.<br>
END DIGRESSION<br>
<br>
I'd tried everything I could think of. <br>
Then someone else suggested looking at <b>the zoom setting in Chrome</b>. <br>
That was it.<br>
<br>
I couldn't find this stupidly easy solution when doing a search for this problem online.<br>
Hopefully this post will prevent others from having this problem.<br>Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-23789424763108012262011-11-28T12:00:00.000-08:002012-04-25T06:56:15.970-07:00Before suing / getting sued for libel...Know this: the day is drawing near when bullies can no longer get away with intimidating scientifically minded truth seekers and skeptical speakers. If you're gonna try to use the courts to push us around, be sure you have the truth on your side, or you're <a href="http://rhysmorgan.co/threats-from-the-burzynski-clinic/">gonna get your ass handed to you in the public forum by a calm, assiduous, and intellectually honest high school kid</a>, rightfully and righteously so.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-58326928812387821002011-04-26T11:22:00.000-07:002011-04-27T07:40:10.030-07:00How to find broken 2-way relationshipsThis is not advice on how to interact with people. I'm not the best person to ask for that.<br />===<br />I have a table to represent friendships. In this table there must be two rows for each friendship: one for User A->User B, and one for User B->User A.<br /><br />There are some friendships where the second row is missing. <br />How do I find them?<br /><br />Here are the pertinent tables and columns: <br />Table: User <br />Columns: userID<br /><br />Table: UserFriend<br />Columns: fromUserID, toUserID<br />===<br />Solution:<br /><br />select UF.*<br />from UserFriend UF with (nolock)<br />left outer join UserFriend UF2 with (nolock) on<br />UF.fromUserID = UF2.toUserID and<br />UF.toUserID = UF2.fromUserID<br />where UF2.fromUserID is nullDavidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-48286110066146658402011-04-08T06:54:00.000-07:002011-04-08T06:55:33.430-07:00Storm<a href="http://www.youtube.com/watch?v=HhGuXCuDb1U">http://www.youtube.com/watch?v=HhGuXCuDb1U</a>Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-80613641113566285432011-03-11T11:53:00.000-08:002011-03-11T11:56:46.968-08:00ERROR[3332]: Connection to SMTP server test failed.Going to the web UI for a Sharp3100N printer, Network Settings, Connection test, got this error:<br />ERROR[3332]: Connection to SMTP server test failed.<br /><br />Solution:<br />Change the SMTP server address to <br />smtp.google.com<br />Port: 587<br />SSL: On<br />Authentication: put in your gmail username and password.<br /><br />Assuming your printer can find the internet, that should do it.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-26889045075042528962010-12-19T09:21:00.000-08:002010-12-19T09:43:22.373-08:00Today, +/- n daysSearching on google and stackoverflow wasn't much help; also, "man date", "man cal", "man calendar", "man time", etc are limited in there accuracy; so here:<br /><br />What is today's date plus n days, let's say 61 days*?:<br />date -v+61d<br />Answer:<br />2011-02-18<br />Calendar marked.<br /><br />*: This is the question that came into my head after reading <a href="http://twitter.com/IPv4Countdown/status/16281747742269440">this</a>.<br /><br />While I applaud them for making a testable claim, I doubt this. The stone age didn't end because we ran out of stones. But who knows, this time may different. Maybe some of us will have to start carrying around unmemorizable IPv6 addresses. Maybe we'll find a way to memorize them. Maybe IPv4 really was a gross underestimation of our capacity for connectedness (and maybe IPv6 isn't). We shall see; and thankfully soon.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-91106602628587028612010-12-06T07:00:00.000-08:002010-12-06T07:05:14.709-08:00Sex, not genderContinued from <a href="http://getsatisfaction.com/diaspora/topics/sex_not_gender">here</a> (where I seem to have reached the thread's size limit), regarding Disapora's choice to use a text field for Gender instead of a drop down for Sex:<br /><br />I agree that sex is not a simple binary, although the vast majority of the human population is not hermaphrodite or neutered. But let's consider that n%, as I'm sure you'll agree it is the rights of the minority that are the most important when considering how to design a new society like Diaspora. <br /><br />Are anyone's rights being infringed up by having a drop down for Sex (options being Male, Female, Other, ..) instead of a text box for Gender? You say such an approach would implicitly treat them as freaks- funny your usage of "implicitly" here, as though I am implying anything. I am not. If such a conclusion is reached, it is by inference, i.e., someone else is inferring it. In other words, it is their problem that they would think I am calling them a freak, not mine. Sorry to get tautological here, but if they are not male or female then they are not male or female, and as such should be given an option for neither. This says nothing about whether or not they are freaks. Any reading into it as such is just bringing one's own prejudices where they are not justified.<br /><br />As far as denying their existence by giving them this option- um, no? Isn't giving them the option in fact recognizing their existence? Wouldn't it be a denial of their existence if the option wasn't given?<br /><br />Think of it another way: gender is subjective. What is masculine in one culture may be feminine in another. What makes me manly in my eyes could make me womanly in yours. Sex on the other hand is objective. I either have a penis or vagina or neither or both. I may feel manly today and womanly tomorrow, but the sexual organs I have do not change on a daily basis. Male in Italy and Australia and 13th century France is male in America, today, yesterday, and tomorrow. <br /><br />I want my user profile to reflect the fixed status of this aspect of my objective self. It seems other people want to have a non-fixed reflection of a subjective aspect of their self. Fine. How about this for a compromise: give users both the free-form text field for Gender and the drop down for Sex. This solution recognizes the validity of both our points, as I believe there both are. As it is right now, Diaspora is limiting its appeal by excluding people with preferences like mine, and I'm sure you'll agree that maximizing its appeal would be good for Diaspora.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com4tag:blogger.com,1999:blog-2250699565482898574.post-56566001966948808522010-12-02T18:06:00.001-08:002010-12-02T18:06:46.054-08:00Friend looking for employmentAnybody need pet-or-house sitting or house cleaning services? I have a friend who is in desperate need of funds. She has references and experience in these things.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-3088694830763972592010-10-18T10:50:00.000-07:002010-10-18T10:58:28.718-07:00testing 1this is one of many test posts i'll be making today; these posts are only tests meant to debug an external system; had this been an actual post, you would not be encouraged to ignore this. this is only a test.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-16290477920181891962010-05-28T07:09:00.000-07:002010-05-28T07:14:30.078-07:00Why is my ASP:Image not accessible from the vb?I just figured this out. Figured it might bite someone else someday.<br /><br />Given this code in an aspx file:<br /><pre><br /> <table width="100%"><br /> <tr><br /> <td class="normaltxt10" colSpan="50"><br /> <!--<br /> <asp:DataGrid id="dgImage" runat="server" ShowHeader="False"<br /> AutoGenerateColumns="False" TabIndex="5"><br /> <Columns><br /> <asp:BoundColumn Visible="False" DataField="file"></asp:BoundColumn><br /> <asp:TemplateColumn><br /> <ItemTemplate><br /> --><br /> <asp:Image ID="screenShotImage" Runat="server"></asp:Image><br /> <!--<br /> </ItemTemplate><br /> </asp:TemplateColumn><br /> </Columns><br /> </asp:DataGrid><br /> --><br /> </td><br /> </tr><br /> </table><br /></pre><br /><br />Why would screenShotImage be not accessible in the vb code behind?<br /><br />Answer: because it's in the commented out DataGrid, and in my case, dgImage wasn't referenced at all in the vb.<br />Removing the commented out DataGrid will fix this.<br />Like so:<br /><pre><br /> <table width="100%"><br /> <tr><br /> <td class="normaltxt10" colSpan="50"><br /> <asp:Image ID="screenShotImage" Runat="server"></asp:Image> <br /> </td><br /> </tr><br /> </table><br /></pre><br />This is stupid in my opinion, but whatever. Now we know.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-49636327254266457822010-04-12T20:00:00.000-07:002010-04-12T20:05:24.413-07:00Far as a rental car can goGosh, I love driving the hell out of a rental car. I mean, it's not mine, and so long as I don't total it or get caught, no repercussions for me, right? I won't have to live with this car for very long, don't have to worry about any long term maintenance of it, so I can use it and abuse it with reckless abandon. The sheer acceleration that I'd never do in my car, knowing that it's all consequence-free because it's not my property that I'm fooling around with, there's simply No Comparison to that kind of thrill, is there?<br />If only I could live, constantly and henceforth, with the joy of non-ownership of that which I have: a house that I don't have to clean, friends that I don't have to be nice to, a body I can just totally let go of- that would be awesome. And if everybody else could do the same, surely that would be heaven.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-9354078621522525712010-04-08T06:55:00.000-07:002010-04-08T07:09:09.048-07:00Output from a friend's cool applet<applet codebase='http://www.picturewiz.biz/blogtoy' code='WBEditor.class' archive='blogtoyplayer.jar' width='400' height='338' id=Applet1><param name='editor_w' value='400'><param name='editor_h' value='338'><param name='album-xml64' value='PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iSVNPLTg4NTktMSI/Pg0KDQo8QUxCVU0gdGl0bGU9IiIgbGFzdFBhZ2U9Im5vIj4NCiAgPExBWU9VVCBzdHlsZUlEPSIwIiBsYXN0LWNoYW5nZWQ9IjEyNzA3MzQ3NDkiPg0KICAgIDxJRkMgc3JjPSIiLz4NCiAgICA8SUJDIHNyYz0iIi8+DQogICAgPENPVkVSIHNyYz0iIi8+DQogICAgPExQQUdFIHNyYz0iIi8+DQogICAgPFJQQUdFIHNyYz0iIi8+DQogICAgPE1VU0lDLz4NCiAgPC9MQVlPVVQ+DQogIDxQQUdFIG49IjAiIGl0ZW1zPSIxIj4NCiAgICA8TUFTQ09UIGlkPSI3OTM5ODQ2IiB0ZXh0dXJlLXNyYz0iLi90ZXh0dXJlcy9zZXQxNi9zZXQxNl90eHQxMi5qcGciIG1vZGVsLXNyYz0iLi9tb2RlbHMvdXNlci9zZXQxL2JveC5hdSIgbGlnaHQ9Im9mZiIgYWxwaGE9IjI1NSIgdGV4dHVyZT0ib24iIHBlcnNwPSJvbiIgZ291cmF1ZD0ib24iIHpidWZmPSJvbiIgZmlsdGVyPSJvZmYiIGVudm1hcD0ib2ZmIj4NCiAgICAgIDxQT1MgeD0iMjYiIHk9Ii00MCIgej0iMCIgZHJhZ2dhYmxlPSJ5ZXMiIGRpc3Q9IjEyMCIvPg0KICAgICAgPFJPVCBwaXRjaD0iLTEwIiB5YXc9IjE0OSIgcm9sbD0iMTMyIi8+DQogICAgICA8U0laRSB3PSIzODAiIGg9IjMzOCIvPg0KICAgICAgPEFOSU0gZGlzdC1kZXN0PSIxMjAiIGRpc3QtaW5jPSIwIiBwaXRjaC1pbmM9Ii01IiB5YXctaW5jPSIyIiByb2xsLWluYz0iMCIvPg0KICAgICAgPExJR0hUIGR4PSIwLjAiIGR5PSIwLjAiIGR6PSIxLjAiIHc9IjAuMCIgaWdub3JlLW5vcm1hbHM9Im5vIiB4bz0ibm8iIHlvPSJubyIgem89Im5vIi8+DQogICAgICA8Q09MT1IgdmFsdWU9IiM4MDgwODAiIG1vZHVsYXRlPSIwIi8+DQogICAgICA8TU9WRU1FTlQgbXg9IjAuMCIgbXk9IjAuMCIgbXR5cGU9IjEiLz4NCiAgICA8L01BU0NPVD4NCiAgPC9QQUdFPg0KPC9BTEJVTT4NCg=='></applet><br /><br />From <a href="http://www.blogtoy.com/">here</a> to <a href="http://www.picturewiz.biz/blogtoy/btoy.htm">here</a>.<br /><br />Must come back later and fool around with this some more.<br />I think my nephew (who has shown interest in animation) would really enjoy this.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-76513820675381857632010-04-04T08:32:00.000-07:002010-04-04T08:36:04.615-07:00HehWorking with XSL right now:<br /><pre><br /> <xsl:choose><br /> <xsl:when test="1=1"><br /> 1=1<br /> </xsl:when><br /> <xsl:otherwise><br /> 1=2<br /> </xsl:otherwise><br /> </xsl:choose><br /></pre><br />prints out 1=1.<br />But<br /><pre><br /> <xsl:choose><br /> <xsl:when test="a=a"><br /> a=a<br /> </xsl:when><br /> <xsl:otherwise><br /> a=b<br /> </xsl:otherwise><br /> </xsl:choose><br /></pre><br />prints out a=b.<br /><br />So, a does not equal a, eh?Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-44264069946785213412010-03-26T21:47:00.000-07:002010-03-29T09:30:03.506-07:00Perhaps someone can explain this to meLet's start with this:<br /><a href="http://factcheck.org/2010/03/a-final-weekend-of-whoppers/">http://factcheck.org/2010/03/a-final-weekend-of-whoppers/</a><br /><br />I'm glad to see a low-bias, honest presentation of the facts. One fact, though, that I don't see emphasized enough (here and in a lot of other places) is this: "mandating that individuals buy coverage". Why is this okay? Why would this not be seen as an outrageous affront to my personal liberty?<br /><br />I've heard that if one does not accept the mandate, one must pay a fine, a non-insurance fee. The rest of this rant is based on the quite possibly false assumption that this is true.<br /><br />Consider this. Let's say I give you the following choice: either you <br />1- chop off one of your feet and I give you a magical golden blanket that keeps you from getting sick (maybe); or<br />2- chop off one of your toes. You get nothing in return and your toe goes into a pot to help pay for other people's magical golden blankets.<br /><br />Now, nevermind which option you choose- you can decide on your own time and keep that to yourself. What I want to know is:<br />Is it a good thing that you are being forced to make this choice? Hypothetically, am I a good person for forcing this choice upon you?<br /><br />I'm sure I'm missing something here and I'd greatly appreciate someone telling me what it is, please. I'm honestly curious. If I'm not missing something, then I'm just baffled.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-42001108740028003112010-03-17T13:53:00.001-07:002010-03-17T13:56:27.051-07:00Set with SelectToday's forehard slap is brought to you by the following:<br /><br />This is a perfectly valid syntax for setting a local variable using SET which gets its value from a SELECT:<br />set @VAR1 = (select var1 from table1 (nolock) where var2 = @var2 and var3 = @var3)<br /><br />This will bring your company to a grinding halt and leave everyone breathing down your neck till you fix it:<br />set @VAR1 = select var1 from table1 (nolock) where var2 = @var2 and var3 = @var3<br /><br />Be careful to note and recall the difference.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com1tag:blogger.com,1999:blog-2250699565482898574.post-38387909981753128672010-03-11T14:05:00.000-08:002010-03-11T14:13:18.084-08:00Today I learned a little about robocopy and exit codesSo, not satisfied with the old DOS command "copy", I decided to step it up a notch and start using <a href="http://en.wikipedia.org/wiki/Robocopy">robocopy</a>. This way, instead of overwriting the same files every time I rebuilt my solution in VisualStudio, I could skip over those and only update the files that had changed. And there was much rejoicing.<br /><br />But lo, this tale would have ended much too soon and boringly if that was all there was to it. No, unlike copy, robocopy has the added bonus of exitting with a non-zero value when actually copying a file (and when not copying a file: either returning zero or not returning anything at all- it looks the same to me). VisualStudio interprets any non-zero exit code as "FAIL!". So, digging around, I found the way around this: in the bat file with all the robocopy calls, make the last line something other than a robocopy call, like: echo "Done."<br /><br />Done. Yay!Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-51700295154951744792010-02-28T18:32:00.000-08:002010-02-28T18:41:30.099-08:00Code CoachRegarding the state of the economy- a lot of what sucks about it right now is the bursting of the housing bubble, which has resulted in housing construction to dry up. What could really help get things moving again would be if someone were to make a program that was a graphical user interface for the housing code, something that translates from architectural regulation language to layman talk. <br /><br />Oh look, a friend of mine did just that: <br /><a href="http://www.codecoachresidential.com">http://www.codecoachresidential.com</a><br /><br />Definitely worth checking out if you're considering making some home improvements anytime soon.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-84039993749170218272010-02-12T15:38:00.000-08:002010-02-12T15:40:57.576-08:00British libel reform petition(a) British libel laws have been condemned by the UN Human Rights Committee.<br /><br />(b) These laws gag scientists, bloggers and journalists who want to discuss matters of genuine public interest (and public health!).<br /><br />(c) These laws give rise to libel tourism, whereby the rich and the powerful (Saudi billionaires, Russian oligarchs and overseas corporations) come to London to sue writers because British libel laws are so hostile to responsible journalism. (In fact, it is exactly because British libel laws have this global impact that we welcome signatories to the petition from around the world.)<br /><br />(d) Vested interests can use their resources to bully and intimidate those who seek to question them. The cost of a libel trial in England is 100 times more expensive than the European average and typically runs to over £1 million.<br /><br />(e) Three separate ongoing libel cases involve Simon Singh and two medical researchers raising concerns about three medical treatments. They face losing £1 million each. In future, why would anyone else raise similar concerns? If these health matters are not reported, then the public is put at risk.<br /><br /><a href="http://www.libelreform.org/sign">Sign the petition</a>Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0tag:blogger.com,1999:blog-2250699565482898574.post-10948504410215991112010-02-07T19:34:00.000-08:002010-02-07T19:55:34.062-08:00A little story about MetroPCSSo, last year from about February till around September I was on MetroPCS. I was content with their mediocre reception, but was always irked that while on the 45 $/month plan, I was actually paying around 52$ and change with taxes and fees. Then I saw that Boost's 50 $/month included taxes and fees. So I gave Boost a try and was again sufficiently satisfied. <br /><br />Then this past week I notice that MetroPCS is advertising a plan 40$/month, taxes and fees included, with everything I want. Be still my beating heart, they know how to win me back. So Saturday, I return to MetroPCS. (The lovely sales rep who helped me get reconnected was very pleasant, by the way.) Then this morning, today, Sunday, I wake, try to make a call and get a "You have insufficient funds" message. How odd.<br /><br />I take my phone back to the store with my receipt and am told that while I ordered and paid for the 40$ plan, the system actually has me on the 45$ plan, which is really weird because I was able to make and receive calls yesterday no problem. The guy who is helping me now asks his neighbor coworker who did this. His neighbor tells him who and wonders aloud why she did that. I notice him, the guy who's helping me murmur "I know why..." One mississippi. Two mississippi. Three mississippi. Ok, the suspense is killing me: "Why was that done?" I ask. <br /><br />I won't forget what he said. Clearly I remember him saying "It's a confidential company policy."<br /><br />Excuse me?! You mean there was a reason why I was overcharged? This was done intentionally, causing me miss calls for half a day, and making wait in line in this cramped crummy store for half an hour for this terse explanation? Whatever could this secret policy be? It couldn't be that there is a plan to get customers back in a store in the hope that they might buy some more stuff, could it? I try to get some clarification, but of course, it being confidential, get nothing. Just a "Okay, you're all set. Have a nice day."<br /><br />Oh, MetroPCS. Alas, this rekindling of our love was so brief. Back to Boost I go.Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com1tag:blogger.com,1999:blog-2250699565482898574.post-90954557616825474102009-11-19T16:49:00.001-08:002009-11-19T16:50:09.069-08:00Facebook badge test / cool hats etc<!-- Facebook Fan Badge START --><div style="width: 100%;"><div style="background: #3B5998;padding: 5px;"><img src="http://www.facebook.com/images/fb_logo_small.png" alt="Facebook"/><img src="http://badge.facebook.com/badge/66745270770.576931232.426616001.png" alt="" width="0" height="0"/></div><div style="background: #EDEFF4;display: block;border-right: 1px solid #D8DFEA;border-bottom: 1px solid #D8DFEA;border-left: 1px solid #D8DFEA;margin: 0px;padding: 0px 0px 5px 0px;"><div style="background: #EDEFF4;display: block;padding: 5px;"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"><img src="http://www.facebook.com/images/icons/fbpage.gif" alt=""/></td><td valign="top"><p style="color: #808080;font-family: verdana;font-size: 11px;margin: 0px 0px 0px 0px;padding: 0px 8px 0px 8px;"><a href="http://www.facebook.com/david.strube" title="David Strube" target="_TOP" style="color: #3B5998;font-family: verdana;font-size: 11px;font-weight: normal;margin: 0px;padding: 0px 0px 0px 0px;text-decoration: none;">David Strube</a> is a fan of</p></td></tr></table></div><div style="background: #FFFFFF;clear: both;display: block;margin: 0px;overflow: hidden;padding: 5px;"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="middle"><a href="http://www.facebook.com/pages/GrapevineFires/66745270770" title="GrapevineFires" target="_TOP" style="border: 0px;color: #3B5998;font-family: verdana;font-size: 12px;font-weight: bold;margin: 0px;padding: 0px;text-decoration: none;"><img src="http://www.facebook.com/profile/pic.php?oid=AAAAAQAQNWjjJMS_wWjSuNek1HunvwAAAAuyuyasEvT9LAzCykdl6jDV&size=square" style="border: 0px;margin: 0px;padding: 0px;" alt="GrapevineFires"/></a></td><td valign="middle" style="padding: 0px 8px 0px 8px;"><a href="http://www.facebook.com/pages/GrapevineFires/66745270770" title="GrapevineFires" target="_TOP" style="border: 0px;color: #3B5998;font-family: verdana;font-size: 12px;font-weight: bold;margin: 0px;padding: 0px;text-decoration: none;">GrapevineFires</a></td></tr></table></div></div><div style="display: block;float: right;margin: 0px;padding: 4px 0px 0px 0px;"><a href="http://www.facebook.com/facebook-widgets/fanbadges.php" title="Create your Fan Badge" target="_TOP" style="color: #3B5998;font-family: verdana;font-size: 11px;font-weight: none;margin: 0px;padding: 0px;text-decoration: none;">Create your Fan Badge</a></div></div><!-- Facebook Fan Badge END -->Davidhttp://www.blogger.com/profile/03208396569453417466noreply@blogger.com0