Oh! My PodCasturbia G+ page!

Online Panhandling!

Monday, February 13, 2017

Interesting read and a new project.

I read this article the other day and it got me to thinking...

Oh.. the article... I could care less about the actual content about the article. Just the output :)

http://news.sky.com/story/man-tweets-harry-potter-book-line-by-line-to-piers-morgan-10765829

So I was thinking, could I automate that?
What I want to know is could I take a book, convert it to text, then use powershell to parse it into 140 character chunks, connect to twitter, and post a tweet?

I think I have a new project!

Saturday, January 28, 2017

Avengers in chronological order

I will tweak this post when I get the rest of the details but below is the chronological orders of the movies and the Agents of Shield Episodes that fit in between.
The date following is the release dates of the movies.

1. Captain America: The First Avenger (July 22, 2011)
2. Iron Man (May 2, 2008)
3. Iron Man 2 (May 7, 2010)
4. The Incredible Hulk (June 13, 2008)
5. Thor (May 6, 2011)
6. The Avengers (May 4, 2012)
7. Iron Man 3 (May 3, 2013)
8. Thor: The Dark World (November 8, 2013)
Agents of Shield S1: Ex - Ey (need to get the specific episodes here)
9. Captain America: The Winter Soldier (April 4, 2014)
Agents of Shield S1: Ex - Ey (need to get the specific episodes here)
10. Guardians of the Galaxy (August 1, 2014)
Agents of Shield S2:E1-E19
11. Avengers: Age of Ultron (May 1, 2015)
Agents of Shield Season2 S2E20
12. Ant-Man (July 17, 2015)
Agents of Shield Season3 E1-19
13. Captain America: Civil War (May 6, 2016)
Agents of Shield Season3 S3E20-22
14. Doctor Strange (November 4, 2016)

Sunday, January 15, 2017

Death in the Family

Our oldest family dog, Remington, died last week.
This is one of my favorite pictures of him. He was between 3 and 4 in this picture, not exactly sure.

Remington

Remington came to live with us in June of 2002. He was 10 weeks old. We had been married almost 6 months.
Remmy went through almost every major milestone of our young marriage. Buying a hous, birth of a child, birth of twins, moving to Texas.
Remmy, we will miss you with all of our hearts. You were my best friend, my confidant, my sounding board, and you were the best.

Monday, January 2, 2017

Catching up on some TV shows

I do not watch a whole lot of Television.I watched a ton when I was a kid but once I turned 18 or so I never did.
Don't get me wrong, I enjoy watching TV, I just never do. It may have something to do with my ADD.
The bride and I  watched Elementary religiously for the first couple of seasons, but it got boring and predictable.
I do watch The Blacklist, but that is more of a commitment since I do a weekly podcast on it (check it out over at http://pcublacklist.blogspot.com/

Ok, to the point...I have been watching/catching up on a number of shows via Netflix. I have noticed a trend in what I seem to enjoy.
Comic shows and unconventional cop shows. I will go into each. briefly.


Comic Shows 
  • Arrow
  • Flash
  • Agents of Shield
  • DareDevil
  • Jessica Jones
  • Luke Cage
I have no idea why I enjoy these so much, I got into Arrow because of the eye candy, but it turned out I really enjoyed it. Flash was a reasonable successor since they are related. I am trying to get caught up on Legends of Tomorrow as well, but it just is not as good and I do not like the characters as much.
AoS, DD, JJ, and LK are all in the Avengers world and all slightly related, so they are kind of fun to watch. I loved the avengers movies. I current own all of them in one form or another except CA:1stA.

Unconventional Cop shows
  • Longmire
  • Luther
These are unconventional in different ways. Longmire is just a good old fashioned detective show. Very little CSI, just lots of character and who dunnits. It still follows the formula but I like that it focuses on story other than the pseudo science.
Luther is just an unconventional cop. You cannot call him a bad cop, or a cop out for true justice, or a cop who believes the end justifies the mean... just unconventional.

Friday, December 30, 2016

Working with git

I took the function I had from last week and got it into git for proper source control. Now you can always find it there and always the most up to date version.

You can find that particular scrip here: PowerShellGit/get-DellTagInfo.ps1

I am still working on this git thing, bear with me here.

Monday, December 26, 2016

Civ V

I play a lot of Civilization 5. I mean a lot.


I have a tendency to to restart a game if I do not like the starting position. I will spends hours restarting a game until I get the environment I want.
I have this horrible fantasy that they are each real worlds that I destroy each of them in an apocalypse right when their history began.
Muhahahahahah!

Monday, December 19, 2016

Starting early

I am going to try and get into the habit about posting often now. Why wait?

I wrote this today when I had to look up a bunch of warranty info for some Dell laptops at work. This is much easier than typing the service code into the webpage.
The formatting is currently VERY ugly, but I will work on rearranging the page to adjust and make it prettier. For now I have added #lineBreak at the end of every line so you can format it properly if you C&P.
Quick context

ps c:\ get-dellTagInfo (yourDellServiceTag#)

Pretty straight forward. You should be abel to add this to your $profile and use it, and/or use it in any scripts where you have a lot of service tag numbers. I may write that up and post it to here soon.
Let me know if you have an Qs!


function get-dellTagInfo {  #lineBreak
    param  ($svcTag) #lineBreak
    $url = "https://api.dell.com/support/v2/assetinfo/warranty/tags.xml?svctags=" + $svcTag + "&apikey=849e027f476027a394edd656eaef4842" #lineBreak
    Invoke-WebRequest -Uri $url | Select-Object -ExpandProperty content | Out-File .\"$svctag".dell.xml #lineBreak
    [xml]$xml = Get-Content .\"$svctag".dell.xml #lineBreak
    write-host "Service tag:" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.ServiceTag #lineBreak
    write-host "ShipDate:" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.ShipDate #lineBreak
    write-host "ModelInfo:" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.MachineDescription #lineBreak
    write-host "Warranty End Date:" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[1].EndDate #lineBreak
    write-host "Warranty Service Levels:"  #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[0].ServiceLevelDescription #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[1].ServiceLevelDescription #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[2].ServiceLevelDescription #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[3].ServiceLevelDescription #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[4].ServiceLevelDescription #lineBreak
    write-host "-----" $xml.GetAssetWarrantyResponse.GetAssetWarrantyResult.Response.DellAsset.Warranties.Warranty[5].ServiceLevelDescription #lineBreak
} #lineBreak