Jared’s Blog

August 17, 2010

Why, Microsoft?

Filed under: Uncategorized — Jared Sutton @ 12:34 pm

I’ve been writing an app recently that measures performance metrics from a range of devices. One thing I have to do is read data from Windows boxes via WMI. I’ve got a WMI client program for Linux (thanks Zenoss :) ). So, I’m trying to get some stats on page file usage. Here’s an example of the output I’m getting (I’ve anonymized the example to protect the innocent)…

[user@localhost Project]# ./bin/wmic -U “administrator%password” //192.168.1.133 “SELECT SizeStoredInPagingFiles FROM Win32_OperatingSystem”
CLASS: Win32_OperatingSystem
Name|SizeStoredInPagingFiles
Microsoft Windows Server 2003 Standard Edition|C:\WINDOWS|\Device\Harddisk0\Partition1|2095104
[user@localhost Project]# ./bin/wmic -U “administrator%password” //192.168.1.133 “SELECT FreeSpaceInPagingFiles FROM Win32_OperatingSystem”
CLASS: Win32_OperatingSystem
FreeSpaceInPagingFiles|Name
2081296|Microsoft Windows Server 2003 Standard Edition|C:\WINDOWS|\Device\Harddisk0\Partition1

The basic format of the output is that the first line contains the name of the table you’re getting data from (or “Class” in WMI terms); the second line is a pipe-delimited list of columns in the same order as the data; the rest of the lines are individual data lines, pipe-delimited. As you can see from the above example, I’ve got a few problems. First, I’m getting more columns than I asked for. I only asked for one column in each query, and the column header clearly shows two columns being returned. Second, the “Name” column (which is the one I didn’t ask for) actually uses the pipe character in it’s result set. This makes it impossible for me to parse the output by column accurately.

I suppose the delimiter issue could be the blame of the WMI client that I’m using, which is clearly third-party, but the fact that I’m getting columns back that I didn’t ask for would seem to be squarely the fault of Microsoft. So, I thank you Microsoft for being the source of my most-recent head-ache. I’m now going to create some horrible hack to get the information that I need…

July 30, 2010

The “climate change” debate: What I’d like to see

Filed under: Uncategorized — Jared Sutton @ 3:26 am

I’ve been seeing the climate change issue here and there again recently. Unfortunately, it’s the same banter from both sides over and over again. I’m, personally, very tired of reading the same stuff. There’s the climate change fan-boys that are totally convinced that man is causing the climate to shift, simply because a group of scientists said so. Also, there’s the people that deny that it exists, saying that man couldn’t possibly affect the global climate in such a way. Honestly, there’s merit to both statements.

From the climate change supporters perspective, it’s easy to simply look to an “expert” in a given field and make up one’s mind based on that person’s opinion. If I were to go with that approach, I’d never have to do any real investigation into the evidence itself; I could read someone’s summary and spend the extra time playing Team Fortress 2. Sounds good to me. But I really do enjoy analyzing statistical data. It’s fun, and I get to verify/discount suppositions without having to depend on the word of someone else (of whom I’ve probably never met nor ever will meet).

From the perspective of the climate change opposition, it’s also easy to look at the size and complexity of our world and conclude that we 6+ billion people cover only a small percentage of this planet’s surface, and therefore could hardly make that large an impact on it’s operation. However, the recent oil spill in the Gulf of Mexico is one example of how humans can indeed have an impact on relatively large portions of the globe. So, empirical evidence tends to toss this idea out the window rather quickly.

I’m trying to be fair to both sides of this debate, but notice I haven’t addressed the “experts” on either side, since 99.9% of the debating that I’ve seen is done by people with little or no experience in either climate science or even scientific research in general. I count myself in this category, so I’m not knocking the common man by any means. I have my own opinions, which I’ll no doubt be expanding on below, but I wanted to show that both sides have strengths and weaknesses to their own most-bantered arguments.

Now, on to my own thoughts on the issue:

Climate change is happening; there, I said it. But this statement shouldn’t be a shock to anyone. The Earth’s climate hasn’t stopped changing from the beginning of time. The real questions are:

  • Is the climate change we’re seeing today unusual, given our past observations?
  • How many years have we been collecting climate data in a consistent format?
  • Where is the raw data?
  • What steps were taken to analyze the data to reach your conclusion?

As you can see, the most important of these questions is the third on the list above. I still have yet to see honest-to-goodness raw data and a methodology for examining that data to reach a conclusion of unusual climate change. In addition, the “dummy” graphs I’ve seen in articles promoting the concept of man-made global warming, for example, show that we’ve been collecting climate data for only 300 years or so. If the world is as large as many scientists say it is (in the billions of years; though I don’t hold to this idea myself), observing climate changes for this length of time is a terribly small sample size in the Earth’s total climate-changing life.

There is, also, this large ball of fire in the sky that keeps this world heated; you may have heard of it: the sun. Apparently, the amount of energy it casts toward the earth doesn’t always remain constant. Sometimes, it has what the experts call “solar flares” which cast large bursts of heat/energy into space. One would expect that when the amount of energy being output from the sun increases, the temperature of the earth might rise with it in some reasonable correlation. So, given this thought, it seems possible that even if there is something unusual about the climate patterns in the last hundred years, there might be other causes for it than man kind. I’d like to see charts comparing some other variables:

  • Chart comparing atmospheric CO2 levels and global population levels (more humans means more breathing)
  • Chart comparing temperature and solar flare activity (and not just number of flares, but also energy output as a result of the flares, since different flares have different intensities)

One other thought that’s been floating around in my somewhat-empty head is whether temperature readings on the moon might be helpful here as well. Since I suggested that solar flare activity could be a culprit, if we accepted that we do indeed have unusual climate activity on the earth, one might expect that the Moon’s climate might change also (though on a much different scale, since it has much less atmosphere than the Earth).

So, that’s about it. The primary reason I have chosen to reject the climate change position is that I haven’t seen any real data. All I’ve seen are simple charts (e.g., the “hockey stick”), that could mean just about anything given the proper numeric massaging (see Political Math Blog for ways you can manipulate numbers to say anything you want).

December 20, 2007

Compiz White Border Bug (Intel graphics)

Filed under: Uncategorized — Jared Sutton @ 11:40 pm

I’ve been playing around with Compiz-Fusion on several of my machines. Compiz has improved in quality very quickly since they merged the code base with Beryl. It’s been a lot easier to get it installed and working recently. One thing has been missing from all the recent releases, however. When combining Intel video chipsets, Compiz, and KDE-Window-Decorator, a white border appears around several screen elements (on top of the Kicker, around tool tips). After hunting around for solutions, I found a good combination of things to work around the problem. If you change the configuration backend in CCSM to Gconf, enable the DBUS plugin in CCSM, and change the Shadow Radius in the Window Decoration plugin to something other than a value between 7.5 and 8.5. However, the final value needs to be changed each time Compiz is restarted (which means opening up CCSM, and adjusting the Shadow Radius).

Now, I wouldn’t be writing this post if I didn’t have an even better work-around. The better work around is to add the following to the /usr/bin/compiz startup script:

Replace this line:
${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS || exec $FALLBACKWM $FALLBACKWM_OPTIONS

… with the following:

${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS &

sleep 2s

if [ $? -ne 0 ]; then
  exec $FALLBACKWM $FALLBACKWM_OPTIONS
fi

sleep 3s
gconftool-2 --type float --set /apps/compiz/plugins/decoration/allscreens/options/shadow_radius 6.0
sleep 1s
gconftool-2 --type float --set /apps/compiz/plugins/decoration/allscreens/options/shadow_radius 6.1

After this, the Shadow Radius adjustment will be made a few seconds after Compiz starts, and you will be on your way to a better Compiz experience. :)

November 27, 2007

Linux is still awesome

Filed under: Uncategorized — Jared Sutton @ 10:17 pm

More than a year ago, I wrote a post called “Linux is awesome,” in which I chronicled my move to Linux as my main Desktop platform (I had been playing/hacking with it for many years before that).  In that post, I also talked about my disappointment about not having a media player available that could compete with Winamp (2.x) in its simplicity and usability.  I tried BMPx, but found it to be too unstable for general use.  I ended up using Amarok (an excellent media player, to be sure).

I’ve been using Amarok solidly ever since, but recently I’ve been itching to return to my Winamp roots in usability/simplicity.  I got this itch again because I saw an article about the release of Xmms 1.2.11, the first update to the aging media player in over 3 years.  As far as I know, it’s simply a point release with bugfixes only (no GTK2 conversion, sadly).  While looking into this, I inadvertently stumbled upon Audacious, a fork of Xmms that I had seen a few years back, but it was as unstable as BMPx was at the time I tried it.

I looked at a few of the screenshots of Audacious, and it looked very promising: a media player forked from Xmms, which supported Winamp skins, and the GUI was upgraded to GTK2.  So, I downloaded and installed.  I was immediately able to pull out my old Winamp 2.95 Classic skin, make a few adjustments to the default settings, and I was in heaven.  The simplicity was wonderful.  I don’t need a media library (my storage server is quite organized already), and it even supported my Microsoft (gasp!) keyboard’s multimedia keys with an included plugin.  I loved it!

So, the moral of the story is, don’t give up on Linux.  If you want something, chances are that someone out there wants the same thing, and all you really have to do is wait (or, perhaps write/fork it yourself, if you feel up to it), and it’ll probably show up.

February 9, 2007

Oh, the Irony

Filed under: Uncategorized — Jared Sutton @ 11:57 pm

I found it interesting that Steve Jobs thinks we should get rid of DRM.  And, while I agree with him whole-heartedly, I think he’s just the slightest bit two-faced.  I mean, he thinks that the music companies don’t have a right to tell you what you can do with the product you purchase from them, but he thinks he does.  I’m speaking specifically about the restriction in the Mac OS X license that keeps its customers from installing the product they purchased on a non-Apple-branded computer.  Am I the only one that sees this as a contradiction?

Now, I don’t think that people should be given the right to copy software and give/sell it to whom they choose, but they should not be made to give up their law-given rights (see 17 USC 117) just to use the software they have purchased.  This attempt by Apple isn’t the only example of big software companies trying to control the users by “contract.”  Take Microsoft, for example.  They have stipulated in the Windows Vista Home Basic license that users are not allowed to run the software inside of a emulator/virtualizer.  This is simply outrageous, as Microsoft has absolutely no right to dictate how a user may run the software they have purchased.  Even worse, Microsoft also stipulates that the software may only be re-sold once after the initial sale (so, if you bought Windows off the store shelf, you may sell it to one person, however, he may not sell it).

The validity of these types of stipulations have not been tested in a court as far as I know.  However, this Wikipedia article on software license agreements links to several cases where other license issues have been tested.  Every user of computer software should be aware of these issues, and make themselves aware of the intricacies of the concepts involved.

July 19, 2006

I’m still here

Filed under: Uncategorized — Jared Sutton @ 8:45 pm

I know the many folks that read my blog have been wondering when I’d post again. Well, tonight, I’ve decided to break my silence. I’m doing much better now that summer school is over (at least for me). I pulled out of 2nd semester Civ (History of Civilization) with a B———-. I say it that way because I’d been keeping track of my exact grade the entire semester, and I ended up with a 79.6% (which, thanks to my excellent teacher, rounds up to an 80%). Every point in that class accounted for about 0.2% of my overall grade. So, if I had lost one more point, my grade wouldn’t have rounded up, and I would have ended up with a C+ (which at BJU is the same, GPA wise, as a C or a C-). So, I am grateful to God for handing me that grade. I know it was God’s doing because I just don’t make B’s in History (well, not since 6th grade anyway).

On the Linux front, I’ve got Xgl/Compiz working on Ubuntu Dapper. This helps me do wonderful GUI effects on my favorite OS. I did with the help of my GeForceFX 5200 (and excellent binary drivers, care of nVidia). I wanted to set this up on my Thinkpad T40 as well, however, Xgl currently doesn’t support the open source ATI driver that my Thinkpad’s ATI Mobility 7500 uses. However, AIGLX (an acceleration architecture similar to Xgl) does support that driver, and Compiz (the compositing manager I’m using) works just as well on AIGLX as it does on Xgl. So, I got it working there as well.

I’ve also been told, at my place of employment, that they’ll be changing my job roll slightly. I’ll be going from PC tech support to Linux/UNIX server management. This, to me, is an wonderful change. I really wanted something like this to happen for a long time, but I never felt like I had enough real qualifications to ask to work in that roll. I still feel like that to a certain degree, but hopefully I’ll be able to learn a lot more than I know right now.

Anyway, that’s my life in a nutshell right now. More to come when I know more. :)

June 25, 2006

Linux is awesome

Filed under: Uncategorized — Jared Sutton @ 11:08 pm

Yeah, I know, I’ve been using it for 7 years, and I still find it really, really cool.  Today I spent a lot of time actually converting myself to Linux (as opposed to just learning it and using it on the side, as I’ve been doing for the last 7 years).  I moved my Thunderbird stuff over to Ubuntu Dapper as well as Gaim.  I’ve also dropped Winamp (since there is no Winamp for Linux sadly) in favor of amarok.

On the issue of Media Players, I was originally looking for a player that had a winamp style layout, but also had a Media Library.  The only thing I found that came close was BMPx, however, it was much too unstable (it’s not really finished yet, so I don’t blame the authors :) ).  It does look promising, however, so I’ll keep checking in on it from time to time.  For now, amarok has all the features I want (supports ogg, mp3, and wma, not that I have any wma anymore :) ).

I’ve also finished moving my Firefox configuration over (bookmarks, et. al.).  Tomorrow, I plan on making sure that all the media formats that I’ll run into are taken care of (Quicktime, Realplayer, Flash, et. al.).  A lot of that will be taken care of  VLC Media Player which has a nice Firefox plugin. :)

June 2, 2006

Right/Write ON!

Filed under: Uncategorized — Jared Sutton @ 9:54 pm

A clipping of a comment on the BBC bashing President Bush by a user on Digg.com:

And anyone who can look at a man who graduated from Yale, became a fighter pilot, kicked alcoholism, owned a baseball team, served two terms as governor of a very large state and two terms as our president, and call that man an idiot, is an idiot.

I must say, that sums it up as well as or better than I could have said it.  I can’t say that I agree with everything that the President has ever done policy-wise (in fact, I absolutely disagree with his current stance on illegal immigration), but I just can’t imagine what this Country would be like with Al Gore or John Kerry at the helm.  Have any of you people ever thought seriously on that?

Just try to imagine what John Kerry would have done after 9/11.  After he got through telling the news media that he had a plan, he would probably try to bribe the terrorists in the world with a lifetime supply of Heintz 57 Sauce!  And Al Gore is no better: he would spring into action by telling the country that he would suggest putting the terrorists of the world in a “lock-box,” and that in this “lock-box” they would be safe from the other 39 soveriegn nations of the world that wanted to wipe them off the face of the planet.  However, this might be a cruel-and-unusual punishment (because they might feel too isolated), so he’s going to forego that plan, and we’ll just have to hope that they decide not to pursue any more flying lessons.

Well, I feel better now. :)

May 12, 2006

I’ve done my duty

Filed under: Uncategorized — Jared Sutton @ 5:57 pm

I’ve done my part in this strange system we call economics: I’ve decided that a product is not worth my time, and I’ve informed the company responsible. This all started with a trip to digg.com. There, I found a link to an article over at scienceaddiction.com. The article covered how the MSN AdCenter product didn’t support browsers other than IE. Since I’m running a small hosting company, I decided it was worth a look. I was appauled to find out that this site filters users using the UserAgent string (a small piece of information sent from your web browser to the site you’re visiting, telling it what browser you’re using).

Upon discovery of this fact, I typed up a small message to Microsoft to inform them of the problem. I’m sure I’m not the only one to do this, but the power comes in numbers. Anyway, I tried submitting this message using the feedback link on the AdCenter page, but this too only supported IE. So, I decided to go to the Microsoft.com main page and submit my suggestion there. Here is the text of the message.

I was a potential customer of your MSN AdCenter product. However, since it does not support my browser of choice (Mozilla Firefox) I am chosing not to sign up. This is a problem for you (Microsoft) since you won’t be getting any of my money. The easiest way to for you (Microsoft) to solve this problem is to code your pages according to web standards, so that you can support the greatest user base.

You (Microsoft) will probably respond in one of three ways to this email:

1. You may throw this email away, and not think anything of it. This would be bad for you, since it would show me that you don’t really care about my opinion. As a result, I would think even less of you (Microsoft) than I already do.

2. You may send me a reply understanding my concern and suggesting that I use Internet Explorer instead of my current browser. However, this would be unwise, because it suggests to me that you (Microsoft) are not willing to change your current business practices to meet customer demand. The result of this would be similar to the previous point: I would think even less of you (Microsoft) than I already do.

3. You could realize that the web standards are not dictated by a single company (like you) just because it happens to have a large market share of web browsers. Web standards are developed by the World Wide Web Consortium (http://www.w3.org/), and most other web browsers support these standards to a reasonable degree. This might lead you (Microsoft) to change the way you develop your own pages, so that you can reach a greater number of people, as more people could view and interact with your pages. If you were to take this action, the result would be much different than the previous two points: I would reconsider signing up for this program, and your revenue might increase as a result.

I hope that you will make the decision that is best for you investors, as they are counting on you to make sure that you maximize the revenue in the markets where you exist.

Thank you for your time.

I thought it was quite diplomatic, but you be the judge. :)

May 3, 2006

Exams Over!

Filed under: Uncategorized — Jared Sutton @ 7:08 pm

Yes, today I had the last of my exams.  As for the classes that I can calculate a grade, I’m in the clear.  As for the others…We’ll see what the verdict is in the comming days.

I’d like to take this opportunity to say that I’ve learned something from every one of my classes this semester: some more than others.  I think the most helpful class was Digital Electronics.  There, I learned the basics of electronics that I’ve been missing most of the time I’ve worked with computers.  The chance to do layout was especially helpful, but I think that in the near future, I’ll be sticking with programming.

Calculus II has been helpful as well (the second time around for me).  The first time I took the class, I didn’t really understand a lot of the concepts I was expected to know.  That was mostly my fault.  I didn’t put the effort into it that I needed.  This time, I got most of the important ideas, and I think I’m a more rounded mathematician in the process.

As for the rest, I’m sure I learned something; I’m just not sure what that something is at the moment.  I’m sure it will come to me after my brain has had a chance to rest. :)

Older Posts »

Powered by WordPress