MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.


descrip:

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Using 89% of the same design the blog had in 2001.

FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.

As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green.

x

MarkUpDown is the best Markdown editor for professionals on Windows 10.

It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.

Features you won't find anywhere else include...

You've wasted more than $15 of your time looking for a great Markdown editor.

Stop looking. MarkUpDown is the app you're looking for.

Learn more or head over to the 'Store now!

Sunday, August 30, 2009

Update 20100216: Now it even works!

' from http://support.microsoft.com/kb/188007
' for running on Excel on Mac, where the VBA engine doesn't
' have VB6 String functions
Public Function Replace(sIn As String, sFind As String, _
sReplaceWith As String, Optional nStart As Long = 1, _
Optional lngMaxReplacementsToMake As Long = -1) As String

Dim lngNumReplacementsDeja As Long
Dim nPos As Integer
Dim sOut As String
Dim bContinue As Boolean

bContinue = True

sOut = sIn
nPos = InStr(nStart, sOut, sFind, vbBinaryCompare)
While (nPos > 0) And bContinue
lngNumReplacementsDeja = lngNumReplacementsDeja + 1
sOut = Left(sOut, nPos - 1) &_
sReplaceWith & Mid(sOut, nPos + Len(sFind))
nPos = nPos + Len(sReplaceWith)

If (lngMaxReplacementsToMake <> -1) And _
(lngNumReplacementsDeja >= lngMaxReplacementsToMake) Then

bContinue = False
End If

nPos = InStr(nPos, sOut, sFind, vbBinaryCompare)

If nPos > 10000 Then
' I put a breakpoint here when testing
Debug.Print nPos & " :: " & sOut & " :: " & sFind
End If
Wend

EndFn:
Replace = sOut
End Function

Labels: , ,


posted by ruffin at 8/30/2009 06:27:00 PM
Saturday, August 29, 2009

I'd always had a sneaking suspicious that we could mark the start of modernism by the date that we've held in the US as a constant for copyright protection for nearly a century now, c1924, iirc. Anything earlier was a product of a sort of naive, pre-collectively conscious state. Anything afterwards was developed within a culture that understood and desired to exploit and appropriate the worth of the creations or artifacts.

Why, then, did it take me so long to realize that 1924 marks exactly the period when psychotherapy and psychiatry went from cultural unknown to cultural given? The mark of the moment when US society became collectively conscious (whether it realized it or not, ironically enough) was exactly when psychiatry ontologically created the consciousness itself. Heck, if you believe wikipedia, Freud's "The Ego and the Id" was written/pubbed in 1923.

Coincidence, synchronicity, or conspiracy? Yes. ;^)

Labels:


posted by ruffin at 8/29/2009 04:20:00 PM
Thursday, August 27, 2009

DOT Press release:

In addition, the program provides good news for the environment. That's because 84 percent of consumers traded in trucks and 59 percent purchased passenger cars. The average fuel economy of the vehicles traded in was 15.8 miles per gallon and the average fuel economy of vehicles purchased is 24.9 mpg. -- a 58 percent improvement.
...
New vehicles Mileage: 24.9 MPG
Trade-in Mileage: 15.8 MPG
Overall increase: 9.2 MPG, or a 58% improvement


I believe a five year-old could see the flaw in that mpg logic. As excited as I am to have pieces of junk taken off of the road and econoboxes put on, I don't think the (number of miles those F150s & Chevy C1500s were being driven yearly) divided by (mpg for the C1500 and F150) will be anywhere close to (the number of miles the Corollas, Civics, and Camrys will be driven per year) divided by (those cars' mpg). And I'm darn sure if we take the number of gallons people who used CARS sucked up last year, we won't see a 58% reduction for the upcoming.

I'm guessing a lot of people had an old, high-mileage Explorer or a rusted truck in the yard that got taken to the dealer and another, newer SUV worth much more than $4500 in the driveway, to which they've now added an econobox. Interesting that around 280,000 trucks were purchased with the CARS program as well. That's about 40% of the sales.

Also interesting to note that if you had a responsible clunker with, oh, 32 mpg like my 96 Saturn, worth about a grand, or a real clunker that had aged out of the program, like my 78 Jeep, 82 Vanagon, or 74 Fury, you were slap outta luck. Responsible or exceptionally poor (or if you have a junk car collection problem), this bailout's not for you.

And only 2% Volkswagens? I'm not sure what the highest mpg cars are that qualified for purchase under CARS, but VW is known for their diesels, and diesels are known for some impressive mpg. (Sure enough, fueleconomy.gov only lists a hybrid above a diesel Jetta for small cars, and the Golf diesel does the best in hatchbacks.)

Finally, what does this mean for folk who buy used cars for less than $4500 and need reliable transportation, especially those working construction that need trucks for their jobs? Looks like they've now got 684,941 fewer options. Demand's likely flat, and the supply side just got lots skinnier.

Thanks, Sam.

posted by ruffin at 8/27/2009 01:08:00 AM
Wednesday, August 26, 2009

One note to self that I'd like to come back to later is the way TiVo and other DVRs seem to be not making television more accessible but less so in many ways. How can you tell? If you see copies of VCR'd tv shows on YouTube, they're usually copies of the tape. If you see something that's DVR'd, it's very often a copy of what someone got from camcorder. That is, people are hooking their VCRs to their computers and uploading taped content. DVR owners are re-recording with DV cameras and then connecting them.

So the DVR'd zeroes and ones are more difficult to put online than it is to take your analog recordings and digitize them. If fact, it's easier to take the DVR'd 0s and 1s, turn them to analog, and then digitize your own digitization than to use the "originals". We're Xeroxing TV. There are many alternative explanations -- VCRs have been around quite a bit longer and DVRs will be commonly jailbroken soon enough, perhaps -- but I'm still guessing this camcorded-TV on YouTube is a sign that the content stream is becoming functionally closed and more and more user-appropriated content is going through the analog hole.

Labels:


posted by ruffin at 8/26/2009 08:04:00 AM
Tuesday, August 18, 2009

Re: Don Ohlmeyer: New ombudsman analyzes ESPN's handling of the Ben Roethlisberger story - ESPN

Figured what the heck, might as well repurpose the text I just sent in. I've emailed shows at ESPN a few times too. No idea why. Neurotic compulsion that shows how deeply they've gotten their claws into my subconscious, I guess. I did get a reply once from Mike Golic re: Allen Iverson's disposition against practice, which I appreciated. Probably put the check box next to my email address and trashes the rest... ;^)

Mr. Ohlmeyer isn't nearly as good as Le Anne Schreiber, the last ombudsperson. Here's a quick quote from her last piece for ESPN.

Overcoverage of the favored few teams and players not only kills joy through its sheer tedium, it is also the root of fan grievances about bias, about cross-promotion, and about corporate conflict of interest. I suspect the perceived arrogance of particular ESPN personalities would become a small-potatoes complaint if it were not magnified in fans' minds by the consequences of other forms of excess.

So what's the one last message I want to leave ESPN? I guess it would have to be: Don't be so predictable. Subtext: Stop trying to make the publicity-rich ever richer. Spread the wealth around before fans turn on ESPN the way investors have turned on bankers.


She was occasionally still a bit less than biting with her critiques, but over that's not a bad one, is it? She misses the mark on over-promotion. It is, instead, even with the recent return of Brett Favre still blasted all over the ESPN conglomerate, the over user of cross promotion of the network for itself that's the real issue, where games that are on ESPN or ABC get more play in the ESPN "news" updates than others (most obvious: A game's on NBC and ESPN Radio. The SportsCenter newsflash on radio only mentions the radio. But if it's a Monday Night Football game, that same radio spot will let you know that you can watch it on ESPN HD TV, not Westwood One's radio broadcast -- both lose you seconds of news reporting), or that ABC/Disney related personalities find themselves on ESPN shows (what's his face Piven was on ESPN last night, eg, who I'm only assuming has some Disney connection -- though I can't find it. He's in a new movie that's a Gary Sanchez Production, which seems independent-ish (Will Farrell is involved)). And we can't listen for ten seconds without hearing about a particular fast food sandwich maker.

ESPN: The Uncensored History points directly at the influence of Disney for this cross-promotional strategy. And Disney is the best. I believe I've talked about them on this blog, and how they're continual product placement -- the shows become their own non-stop commercials -- provides an alternative for dedicated commercial breaks on TV. SportsCenter is the Doodlebops.

(Btw, I really enjoyed Dan Patrick's "40 oz. of NFL questions" today, complete with a parody of the sound effects from Mike & Mike's four-point stance or whatever it is. "We have the NFL. Now we'll tell you how to watch it.")

Compare to Ohlmeyer, who might be billed as "offering independent examination, critique and analysis of ESPN," but he's definitely a thorough homer, hiding behind fan quotes and even using SportsNation to appropriate his audience [as ESPN lovers] at one point.

Anyhow, here's the message I sent, brought to you by the wonders of cut and paste.

Remember that serving your audience also means not burying your lead. I've never seen an ombudsperson have so much filter and delay between introducing the[ir] topic and the criticism. And then, in this first post, "Serve the audience," when we do get past the reader responses and to your opinion, it's exceptionally weak. No comment explaining whether ESPN the story on Roethlisberger should have been run or not; you just mention that there could have been a better explanation when it wasn't, skirting the issue.

The Duke lacrosse team case is well chosen. I can understand toning down that witch hunt, but going from burning witches to becoming mute isn't any better reasoned a move.

Please remember that the ombudsperson's job is to critique where ESPN does lose its journalistic integrity, and it's [a] position whose importance shouldn't be trivialized. If making sure that at least SportsNation would have received the ["]explanation it deserved" (and good job committing ombudsperson trust suicide with the crosspromotion) is the most egregious violation you've found since starting, you're not listening.

Thank you for you time.


[In retrospect, I wish I'd spent more time editing my letter, but seriously, who is going to read it? Turns out some intern did, who gave me the canned reply.]

Labels:


posted by ruffin at 8/18/2009 09:06:00 PM
Sunday, August 16, 2009

(trilingal, I am, yeeeeeees.)

Option Explicit

Public Sub createSql()
Dim i As Integer
Dim strTemp As String
Dim strCname As String
Dim strUserName As String


For i = 2 To 65

strCname = Cells(i, 1).Value
strUserName = Cells(i, 2).Value
'insanely important IP removed.
strTemp = strTemp & f(strCname, strUserName)

Next i
frmTemp.txtCode.Text = strTemp
frmTemp.Show
End Sub


Yes, yes, I already knew all this, but if you only use Cells(rows, columns) once every three or four years, it's good to have a refresher.

Labels: , , ,


posted by ruffin at 8/16/2009 12:29:00 PM
Friday, August 14, 2009

Daring Fireball: Zune Apps:

After my post, I got an email from the developer of an iPhone Twitter client. He was contacted by Microsoft a few months ago, with an offer to port his app to the Zune in exchange for โ€œa bucket of moneyโ€. He turned them down, but assumes, as I do, that Microsoft reached out to the developers of multiple popular iPhone apps.


Let me be perfectly clear:
Microsoft knows software development much better than Apple.

Compare writing code in VB.NET to Cocoa/C. Know Java? It'll take you two good minutes to get VB.NET Express up and running. Know VB.NET? Good luck with the iPhone. Not difficult, but not nearly so easy.

Once you've got the .NET runtime on the ZunePhone, watch out. The apps will be more plentiful, and with enough codemonkeys typing, one of them will write Hamlet.

Others will write good stuff we can more honestly stomach.

posted by ruffin at 8/14/2009 05:12:00 PM
Tuesday, August 11, 2009

From my recent rereading of My First BillG Review - Joel on Software:

how many billions of dollars has Microsoft lost, in R&D, legal fees, and damage to reputation, because they decided that not only do they have to make a web browser, but they have to give it away free?


Now admittedly IE allowed the dominance of ASP for quite some time, and with it enough Microsoft SQL Server licenses that whatever worm that was a while back was a pretty danged big deal, but ultimately, what good has IE really done for Microsoft? Would Netscape have kicked out embedded COM objects? Really? And if IE was trashed once Mozilla was out, nothing's stopping M$ from grabbing it and doing whatever the heck they wanted to with it.

Why not trash IE? Not sure the answer's as obvious as I have been implicitly assuming it is for years.

posted by ruffin at 8/11/2009 09:38:00 PM
Friday, August 07, 2009

Attack on Twitter Came in Two Waves - Bits Blog - NYTimes.com

The meltdown that left 45 million Twitter users unable to access the service on Thursday came in two waves and was directed at a single blogger who has voiced his support for the Republic of Georgia in that countryโ€™s continuing conflict with Russia.
...
Early Thursday, the attackers sent out a wave of spam in the name of Cyxymu.
...
โ€œTheyโ€™re literally designed to smear someoneโ€™s online reputation,โ€ said Ms. Jones. โ€œThese hackers wanted to make him look responsible for millions of spam e-mails that went out yesterday morning.โ€
...
The attacks coincided with the one-year anniversary of the Russia-Georgian conflict. โ€œWhen the conflict started a year ago, there were various denial-of-service attacks coming from both sides, attacking Web sites.โ€


There you have it, knee-jerkers. And thanks to This American Life's show pro se for a-larnin' me what a psychopath is.

posted by ruffin at 8/07/2009 07:49:00 PM
Thursday, August 06, 2009

In a clear attempt to get the responsible party/ies to knock it off, Wired.com's Ryan Singel declares, "Is a Psychopath Attacking Twitter?"

[The attacks against "non-critical US gov't sites", Twitter, and Facebook] donโ€™t make any sense. And that means trouble, according to Ciscoโ€™s Patrick Peterson.

โ€œIโ€™m afraid two outliers make a line and there is something going on,โ€ Peterson said.


Are we sure two outliers don't make a circle? Worse yet, we don't yet know that this isn't an isosceles triangle!!!! *sigh* Whatever. Nice pseudo-geometric logic. What I really like is the psychopath label. Nice psychology there. "Hey, I'm no psychopath! I'd better stop this DoS! The internet media is telling me that what I'm doing doesn't... make... sense!"

So here's something: You hack on non-critical gov't sites because they're an archetypal hacker target -- and they make for good target practice. Now you smack on something where a little civil disobedience might be a good thing, and bring down Twitter and Facebook. Like World of Warcraft's Tuesday morning server updates that take the game off-line for a few early-morning hours (depending on your time zone), the attacks probably produced all kinds of alternative productivity.

Just one example: The Redskins have an in-house blogger on staff. Here's what he reported on his blog during the DoS.

I haven't been using Twitter all that long, but apparently it's become pretty snugly integrated into my life. Because when it suddenly stopped working about twenty minutes into practice, I was completely freaked out.


Addicted much? Reminds me of Jonathan Blow's "ethical gaming."

The real scary take home isn't that somebody DoS'd some life sink sites, but is instead the following:

It all points to one thing, Peterson thinks. Botnets are too easy to assemble. There are too many unpatched Microsoft Windows machines on the internet that get repeatedly infected and taken over.

โ€œThe barrier to entry is too low,โ€ Peterson said.

โ€œIt may that 998 of a 1000 criminals out there are out to maximize profits and minimize risk, but it doesnโ€™t take many of them to get their hands on a small botnet to create harm. Then you have a minority actor doing a disproportionate amount of harm.โ€


Just to think that there are so many schmoes out on the net that are too naive than to know their boxes are waiting to be commandeered. Nice.

(Perhaps I should be more upset that the 99.8% of criminals just out to make money without "harm" are okay. ??)

(And in other news, I'm now 1/6th of the way to 10,000 posts. Woohoo. Talk about your life sinks [sic].)

posted by ruffin at 8/06/2009 08:52:00 PM
Tuesday, August 04, 2009

Linux.com :: An MPlayer project update (from 2004):

Arpi of Mplayer (emph mine):
Then I decided to change the license from GPL to something more free -- not free as in RMS, but free as in freedom. There were several options: GPL plus commercial license, BSD, LGPL, etc. Finally I was flamed off, so I left the G2 project, and development stopped there.
...
As G1 is getting worse day by day, I decided to try again at G2, and even though some people disagreed, I changed the license to LGPL.


Ah, GNG lives. Well, GNG lived in 2004.

Labels:


posted by ruffin at 8/04/2009 10:04:00 AM

<< Older | Newer >>


Support freedom
All posts can be accessed here:


Just the last year o' posts:

URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* Professional links: resume, github, paltry StackOverflow * Regular Expression Introduction (copy)
* The hex editor whose name I forget
* JSONLint to pretty-ify JSON
* Using CommonDialog in VB 6 * Free zip utils
* git repo mapped drive setup * Regex Tester
* Read the bits about the zone * Find column in sql server db by name
* Giant ASCII Textifier in Stick Figures (in Ivrit) * Quick intro to Javascript
* Don't [over-]sweat "micro-optimization" * Parsing str's in VB6
* .ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); (src) * Break on a Lenovo T430: Fn+Alt+B
email if ya gotta, RSS if ya wanna RSS, (?_?), ยข, & ? if you're keypadless


Powered by Blogger etree.org Curmudgeon Gamer badge
The postings on this site are [usually] my own and do not necessarily reflect the views of any employer, past or present, or other entity.