Everybody Staze...

Nobody leavz...

  • Home
  • About Me
    • LinkedIn
    • Lab
  • Contact
  • Links
  • Reviews
  • Sitemap
  • Weather

House guest, Sysadmin day, and moving from flat files to MySQL

2009/08/01 By staze

The last week Tara’s sister has been staying with us. It’s actually been pretty fun having an extra person in the house. I wouldn’t have thought the house too big for 2 people, but it does seem more homey with another (except maybe the kitchen that’s a bit crowded). She heads back home tomorrow, but it has indeed been fun. We’re attempting to make it a routine thing for her to come down during the summers, as she gets to do whatever she wants (within reason) here, on her own time. It’s a “vacation” of sorts.

Yesterday was Systems Administrator day (http://www.sysadminday.com/), so I decided to take the day off and hang out at home. Aside from driving Tara and her sister around (which was fine), I finally picked Fallout 3 back up (can’t wait for the PS3 DLC). Finished off a mission, and realized that at level 20, there doesn’t seem to be a lot of “threats” in the wasteland. Once Broken Steel drops for the PS3, it’ll just make me that much more burly.

On the “work” side, I finally moved my power monitoring system over to mysql from flat files. I’m still working on updating all the scripts that interact with that data, but the front page “widget” works. I have an interface nearly ready for looking at past days data. Currently, at just over 4 months of data (about 175k rows), the DB is sitting at 12MB. So, a year’s worth of data should be about 36MB, or about half a million rows. That’s with 3 keys, for row id, house code (incase I ever add another panel monitor), and datetime. I think reading a single flat file might be a bit faster, but MySQL gives some much more powerful abilities, like showing all the data for a month, or seeing high and low temps for a given day, easily. It’s certainly teaching me SQL select statements.

I’ll post again when I have everything working again, and have added some new features to the data. I hope, shortly after that, I’ll be able to post the code in my “code” section. But that requires I do some commenting within the code first. I’m pretty bad at commenting code (I never got in the habit), so going back to previous code always takes a few minutes of trying to figure out what I was doing.

Have a great weekend, and next week. I’m hoping for some T-Storms.

Filed Under: Coding, Sys Admin Tagged With: Fallout 3, MySQL, PS3 DLC, Sys Admin Day, TED

Journalism’s blind spot, and tax payers as “shareholders”

2009/07/23 By staze

In chatting with a friend today about the sorry state of Journalism in the United States (and elsewhere), we were discussing why, and what options there were.

Based on a fairly simple premise, Journalism in the US (and elsewhere) is driven by advertising revenue. Journalism in itself doesn’t generate any income, so advertisers have to pay for said media. This creates a couple issues. One thing it creates, and this is the most obvious, is having to treat those advertisers with kids gloves. So, a network that’s owned by GE (NBC) isn’t going to run a story that says GE is a major manufacturer of Nuclear Weapons. Or causes some pollution. ABC networks aren’t going to publish anything negative about Disney, and CBS isn’t going to go badmouthing Viacom. And Fox, well, is Fox.

The other issue is the need to get viewers, to appeal to advertisers, to continue advertising. One of the first things you learn in a class about the News Media, or Media in general, is that they are really there to sell viewers/readers to advertisers. Yeah, that may seem backward, but it makes sense if you think about it.

So, what do you do about it? One option is the BBC approach. You tax commercial advertising, and with that money, you fund a state run public news organization. Where’s the problem? “State run”. No self aware organism is going to bite the hand that feeds it, so the BBC is going to be very cautious anytime it runs a story critical of the UK government. Especially the branch/department it reports to. So, how do you fix our system if a public system, while better, isn’t infallible?

What a lot of it comes down to is lack of Media Literacy on the part of the public. They accept, by and large, the worthless “news” passed off by the Media in this country. So there is no incentive for the media to change. So, media literacy is to blame… but that’s just a symptom of poor education. But poor education is generally a sign of lack of funding. Which, brings us to item two…

Taxes in the US are by no means “high”, but they’re also not “low”. Yet any time there is a budget deficit, or crisis, education is often one of the first things to get cut (shouldn’t it be one of the last?). So, over time, you end up with uneducated, uninformed people who think their taxes are too high. I like to call them Libertarians. =P Seriously though, more like the Wild Wild West bunch. So, here’s a suggestion for President Obama’s administration. Take a page from business, and treat the tax payer as a shareholder.

I’ll explain.

Let’s say, for nice round numbers, I pay $10,000 in federal taxes a year. That tax money goes to some pot in the IRS/Federal Government. Of that money, so much is spent on the military, so much on interest for loans to cover deficit spending, so much on social services, so much on education, etc. All this is tracked (hopefully). Why not, every year, either snail mail, or email, or just have a website, where I can see total amount I paid, and where my money was spent. I know it’s nebulous, but theoretically, the IRS knows how much it takes in, total, and how much goes out, and the government at large knows how much comes from the IRS, and how much it spends from other places. This is all really simple database reporting. Basically, give us all shareholders reports. How much did the Government take in, how much went out, who where the top 100 receivers of that money? Make it available. I guarantee, that would do two things. First, it would surprise people that so little is spent on education vs. anything else. Which would correct the “cut education first” notion. Second, it would really appeal to the fiscal voters (the Ross Perot group, because the government would be doing something business like). Basically, all this infrastructure is already there, and could easily be supplied to the public. The only reason not to do it is to prevent people from knowing how money is really spent.

As a bonus, you’d give news organizations some real “news”.

Filed Under: Politics Tagged With: journalism, taxes

Hackintosh

2009/07/21 By staze

Last night, a friend and I “hackintosh’d” his Dell Mini 9.

• Initial Guide we used: http://gizmodo.com/5156903/how-to-hackintosh-a-dell-mini-9-into-the-ultimate-os-x-netbook (make sure to read the whole thing, including comments, there’s a bit there about the boot code if you’re using USB, it needs to be 81 and not 80).
• Here’s the guide we should have had (and found after): http://dellefi.mechdrew.com/guide/oldguide.shtml

So, friend bought a refurb Dell Mini 9 with an 8gig SSD. Sweet little machine. He’s a MCSA, so generally he’s a big Windows guy, but not blindly so. I think he mainly gravitates toward it because he knows Windows, and AD/Exchange, which is how he makes his money (he’s the AD Admin for the University).

So, hackintoshing this Dell was the goal behind him buying it. Since we didn’t have a giant USB thumb drive (8gig), or have a retail leopard disk (mine was lost long ago), I used an external USB drive, and partitioned it into two drives. One for TYPE11, and the other for the install media (which is just a dmg called “live.dmg”). You have to run syslinux to make the TYPE11 partition bootable, but that’s covered in the guide.

The main problem we encountered was, 8gig is not big enough for a 10.5.4 or 10.5.6 install. The former is over by 32meg, and the latter by 64meg. That’s with unchecking everything unnecessary. For some reason, the formatted drive is 7.2gig, the OS sees that as 6.8gig, and the installer seems to reserve 1gig for the install/swap. So, we had to hack the installer to not install some things. You’ll need xam to do that, and the file to hack is the “distribution” file that’s located in the OSInstall.mpkg, in /System/Installation/ on the Install DVD. You’ll need to make a r/w disk image in order to hack it.

First time around, we disabled installing AsianLanguages, AdditionalVoices, and iTunes. Install worked with 900meg available, but the setup after reboot never loads. Turns out, you MUST install AsianLanguages. *sigh* So, hack again, reenable that, and reinstall. 600meg available on top of install. Setup ran, and everything worked. Actually, the Mini runs great! Other than the screen being kinda vertically challenged, and the keyboard being a bit small, the speed is great (boots like a shot). SSD probably has a good deal to do with that. And, you can’t argue with the size. I checked, and it JUST fits inside my slotbar. Wish I could afford one. Maybe the rumors will turn out to be true, and Apple will release something early next year, though if it requires cell phone service with Verizon, then it’s not really an option. If that turns out to be the case, I’ll probably just buy something with my tax return next year. =)

Filed Under: Apple Tagged With: Dell Mini, Hackintosh

« Previous Page
Next Page »

Weather

Categories / Archives

  • Apple
  • Coding
  • Electronics
  • Energy
  • Home Ownership
  • Miscellany
  • Politics
  • Prius
  • Sys Admin
  • Travel
  • Uncategorized
  • Work
  • April 2026
  • August 2025
  • April 2025
  • January 2024
  • February 2021
  • July 2020
  • January 2020
  • April 2019
  • March 2018
  • February 2018
  • June 2017
  • February 2017

Copyright © 2026 · Staze On Genesis Framework · WordPress · Log in