Thursday, May 31, 2007

Ed Whitfield's Response

Well I had been waiting for Ed Whitfield's response to a previous enquiry and was starting to get a little miffed that he hadn't responded. It turns out my wife had just hid that snail mail in a stack to be sorted later. Here is his response, with the names changed to protect the guilty:
Dear Mr. Swamproot,
Thank you for contacting me regarding the decision by the Copyright Royalty Board(CRB) to increase royalty payments for the streaming of music offered on the Internet.

I understand your strong opposition to this decision and your concerns about the effect that it will have on Internet music sites. Several options are being pursued to address the actions of the CRB. Public radio stations have asked the CRB to rehear its decision and they intend to appeal the Board's action to the United States Court of Appeals. Also, legislation has been introduced in the U.S. Congress in response to the CRB's decision. Specifically, the Internet Radio Equality Act would reverse the recent CRB ruling and change the royalty rate-setting standard that applies to commercial Internet radio so that it is the same standard that applies to satellite radio. For public radio, the bill would set a royalty standard designed for noncommercial entities.

As a Member of the House Energy and Commerce Committee, which has jurisdiction over this issue, I look forward to participating in any hearings we may have on the matter. Furthermore, I will continue to follow this issue and will crefully consider the points you made should any relevant legislation be considered in my Committee or voted on by the full House of Representatives.

Again, thank you for contacting me. I look forward to hearing from you on this or any other issue of importance to you.

Sincerely,
Ed Whitfield
Member of Congress
It was typed by one 'mb'. They probably wrote it as well, and I am sure the Congress Member is a busy man. I just wanted to make my opinion known on the matter to the fellow who is supposed to represent me. Having taken the trouble of writing the guy, you might say that I might be a little ticked that his staff person didn't express an opinion one way or the other. I actually was as concerned about his position as well as mine. I guess it's not to be certain one way or another.

For example, I may be a registered Democrat (if only because the Repugs piss me off right now), but I sure do respect Melvin Henley. He isn't afraid to tell you exactly what he thinks, the way he's gonna vote, and how much he appreciates your input on the matter at hand. I can disagree and still vote for a man like that.

Labels: ,

Monday, April 30, 2007

Save Internet Radio!

I sent the following letter to my representative. You should do the same. Unless, of course, you are a soulless, real-music hating ClearChannel executive. I fully expect Whitfield will vote against it though. Mitch will probably tell him to go the other way. Funny thing about Republicans, if the FCC was collecting the money, they would be screaming holy hell against it. But when some big multi million dollar industry-backed front group does it, they have their hand out for a campaign contribution.

Rep. Whitfield,
I am writing to you to encourage you to support H.R. 2060, otherwise known as the "Internet Radio Equality Act". As the internet has become the last bastion of independent music, this bill will help insure that people will continue to have alternatives to the heavily promoted, over played, lowest-common-denominated tripe that is currently served over "the people's airwaves".
As it currently stands, as a result of a decision by the Copyright Royalty Board, web broadcasters must pay royalties far in excess of what satellite and broadcast media have to pay, while they target a much more selective niche of listeners who are not being served by those other media.
I would also ask that you do not fall victim to the falsehoods being spread by the most vocal opposition to this bill, SoundExchange, who is tasked with collecting these royalties. SoundExchange keeps 50% of the royalties for themselves, before the other half is split between the recording studio, performing artist and session musicians. In that light, their arguments on behalf of "the Artists" seem disengenuine at best.
Thank you for your consideration in this matter.



If he bothers to answer with any substance I will post it. But don't hold your breath.

Labels: ,

Monday, April 23, 2007

HowTo: Create a Timestamp in a bat file

I may be one of only two or three people I know that might still write a batch file to do something. Hopefully not, but it does seem to be a dying art. One of my collegues turned me on to this particular piece of code that will create a timestamp for a file. I didn't know how to do that and this would be one way to do it.

Just look at it in all its ugly syntax, this is Old School, pocket protector wearer stuff:

for /F "tokens=1-4 delims=/ " %%i IN ('date /t') DO (
set DT_DAY=%%i
set DT_MM=%%j
set DT_DD=%%k
SET DT_YYYY=%%l)

doSomething.exe > "%DT_YYYY%_%DT_MM%_%DT_DD%.txt"

UGLY. Where in the hell does the j,k, & l come from? Some sort of crazy auto-magicness? This is from the times when it was best not to question how it works. I still don't know but at least I got this trick card in the deck now.

Labels:

Monday, April 16, 2007

Google: Conspiring with the Enemy of All that is Good

eWeek just came out with a story about Google making a deal with ClearChannel.

If you ask me, they might as well go down to hell and work for the Devil, to paraphrase Hank Hill. The article in question does not mention ClearChannel's previous deals with the Prince of Darkness, but I am sure that there have been a lot of back room deals and off the record inquiries from both sides. One would only have to look at their programming to find the evidence. I would be surprised if Mephisto was not a major shareholder.

I am not sure if ClearChannel actually at one time sold it's corporate soul to Satan or whether it initially began as a Hell-Spawned enterprise incorporated by the very forces of evil themselves. Either way, the effect is the same: the "public's" airwaves polluted with the lowest common denominator of the same old commercial-filled crap they've been forcing down our throats for years.

ClearChannel is one of the most evil, soul-killing corporate entities this side of the banking industry or Military-Industrial complex. Thanks to them, I squirm everytime I hear the term "Classic Rock" and think "For the love of God, please don't make me listen to 'Old Time Rock and Roll' or 'Sweet Home Alabama' or anything by Foreigner one more fucking time (ever)!!!"

So now Google, Mr. "Don't Be Evil" of the Corporate world, is going to dance with the Devil in the pale moonlight. For them I have this warning, taken appropriately from the words of an awesome musician who won't ever have airplay on any ClearChannel vommit-fest excuse for a radio station: Ry Cooder. "If you let him ride, The Devil sure as hell gonna' wanna' drive."

ClearChannel == Evil Incarnate and the Best Thing that Ever Happened to Public Radio.

"Whats the point of waging war for freedom when some corporation can simply point their finger and silence a musician." - Todd Butler, "Hard to Be a Hero"

Labels:

Wednesday, December 06, 2006

Fun with MapServer

I just started a project trying to implement a mapping solution on the web using MapServer. I like it a lot. Not only is it very powerful in itself but the ability to add in data from WMS and WFS servers from all across the world make it just awesome.

I originally started with the CGI implementation. It seemed like the quickest wayt to get going in a hurry. The learning curve is based around learnng which instructions to pass into it in a GET request The other option is using Mapscript. Being in a .NET shop, I didn't want to dabble with php or perl as I thought it was limited to. As it turns out there is a c# version that was produced through a neat little utility called SWIG, a description of which is beyond the scope of this article.

The Mapscript API is a little intimidating at first. A lot of the examples are in PHP for more of the obscure functions. But a tutorial and headstart provided by Paolo Corti, proved most helpful. I pretty much just adapted his tutorial to suit my needs. I only had to hack around those stupid checkbox errors that keep popping up without reason.

His technique is to give each user their own mapObj, which represents a map in MS and to store it in Session. One page controls the map and possibly modifies it (setting zoom values, turning on layers, setting queries) and another page writes to the Reponse.outputStream(???). So instead of having to define html templates and link to them in the map file like you would with the CGI based apps, you make requests of the mapObj's drawing functions. You can make it draw your legends, which it will read from the defined layers in the map file. You can make it draw a queried area.

At the heart of mapServer is the map file. It tells mapserver what data makes what layers and how to output them, and configures little extras, such as legend, scale(which it can embed within the map).

The mapObj layer takes the path to the map file in its constructor. Once you have created a mapObj this way you can do all kinds of fun stuff:

using(imageObj image = map.draw()){
byte[] img = image.getBytes();
using (MemoryStream ms = new MemoryStream(img))
{
System.Drawing.Image mapimage = System.Drawing.Image.FromStream(ms);
Bitmap bitmap = (Bitmap)mapimage;
bitmap.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}
NOTE: The draw method can be replaced with drawQuery() to draw the result of a query, or drawLegend(), to get an image of the embeded layers described in color. One thing I thought was neat was I could have two layers defined for say the same shp file, but I could have one check a particular attribute and color them accordingly. So I could have one layer of just fields, and one where the fields are a different color based on the crops planted on them.

In order to set up a query you need to set up the query first:
layerObj qLayer = map.getLayerByName("fields");
qLayer.queryByAttributes(map, "Crop", "Corn", mapscript.MS_MULTIPLE);
NOTE: This will query the map's layer called "fields" and search for an attribute called "Crop" for the value "Corn" and select all of them instead of the closest or first. When the drawQuery method is called it will draw the results as you have defined the class in the QUERYMAP entry in the map file. Be careful about the order of the layers if two reference the same data. If you query "fields" and "fields2" is after it (like the previously described colored by crop layer), the class for "fields2" overrides the querymap highlighting.

I have played around with mapserver before but this is my first time really learning stuff for later use, as opposed to just trying out. I thought it was need to be able to add lables to the map, with just a few lines in the map file. The following entry adds a little notice at the bottom left hand side of a 600X600 image. Notice you can use pixes there. Another example that I came across put a point on a lat long instead, but that was a point type feature instead of an annotation type.
LAYER
NAME Copyright
STATUS DEFAULT
TYPE annotation
TRANSFORM false
FEATURE
POINTS 100 590 END
TEXT "MyCompany 2006"
END
CLASS
STYLE
COLOR 0 0 0
END
LABEL
TYPE bitmap
END
END
END



WMS Layers
The ability to simply configure and use MS as a WMS clintis maybe the most exiting thing for me about MapServer. We can provide our clients with really relevant information from a variety of sources from all across the world. Matt Perry has a wonderful list and demonstration (as well as the map file that produces them) on his blog PerryGeo.

I'm vaguely aware of what Projections are but here is a little more about them:
We can set our map file PROJECTION object using either “raw” Proj.4
parameters or specifying an EPSG reference number. This “reference system”
was created by the European Petroleum Survey Group (EPSG, hence the name)
and contains geodetic parameters for several projections. It’s become a standard
reference system, used in WMS applications. Unfortunately, most of the
projections defined in the EPSG file are for smaller areas (larger scale maps) than
[larger areas].

Sometimes I would add WMS layers and they seemed to not have any effect. This was either from selecting a feature layer or the scale wasn't at the point where the features are visible.

One Error I got while trying different wms layers was this: "EPPL7 support is not available". This is somewhat misleading. This is just the last driver tried on the returning result. It could be failing for any number of reasons.

Continuing.....


Some Useful Mapserver Links
UM Site

MapServer Tutorial for C# mapscript (ASP .NET)

Glossary from MapMart (at the bottom of the FAQ)

WIP

Labels:

Monday, November 20, 2006

Bill O'Rielly Hates Me and My iPod

That Bill Orielly, you got to love such an "independent" sort who is not alligned with any political party. He reminds me of the crotchety old uncle that everybody has that is always bitching about stuff. Except of course Bill is a lot nuttier. So today he comes out and insults me two ways, as a 'computer geek' and an iPod lover.
"I don’t own an iPod. I would never wear an iPod...If this is your primary focus in life - the machines...it’s going to have a staggeringly negative effect, all of this, for America...did you ever talk to these computer geeks? I mean, can you carry on a conversation with them?"
Not that I would want Bill O'Rielly to have a conversation with me. I mean what could be possibly talk about? Maybe something I heard on the Real Time w/Bill Maher podcast, or some liberal biasness that I heard on one of NPRs many podcasts, or the liberal invectum of Democacy Now or any one of several 'left wing smear sites'. But 'the machines' are not my primary focus in life. That would be, like Mr. ORielly's, poon-tang, of course.

I just don't see where he gets all these "staggeringly negative effects for America" with what is really just an alternative radio. I suppose I should chuck the ol' iPod and go back to listening to the same old tired shit that Clear Channel would have me listen to. Clear Channel and their insistence on extremely bland and safe playlisting are what inspired me to buy an iPod in the first place. Besides NPR, the only other option to said blandness was the talk radio of Murray's 1340AM, where if I so desired I could listen to Mr. Orielly. About the only times I ever did that was when NPR had some classical crap on and I could not, for the love of God, listen to Old Time Rockin' Roll or Sweet Home Alabama one more fucking time!!!!!! You know, I really liked those songs the first couple thousand times that I heard them. But now thanks to Clear Channel, I equate "Classic Rock" to "boring suckage that I've heard way too many times before".

But I digress. About the only thing in common CC and BO have in common is that they both suck and they both pollute the nation's airwaves with crap. And they both made me want to get an iPod.

So to all my fellow iPod lovers, I provide the following link only out of sheer irony, I sure as hell wouldn't want you to actually listen to this goon. Behold the link to the Bill O'Reilly's Talking Points podcast! Tune in, the "War on Christmas" is about to escalate I'm sure.

Labels: , ,

Friday, November 17, 2006

I made the switch to Blogger Beta!

Well, they have been bugging me for months but I finally did it. As I first described in my "Hello World" post, I had some trouble in the whole blogspot - blogger transition and was some what leary of doing it. It would seem my fears are unfounded, it was quite painless. Haven't really played with any of the new features though. But for a start, I will label this one. We will call this my first 'tech' post.

Labels: ,