Archive for the ‘code’ Category

Srt2DFXP is now Subvert, also v0.4 released

I haven’t implemented everything I wanted to in this new version, but I’d say 80% of the stuff is there. Because I didn’t hit the mark on what I wanted to do with this release, the reason it’s coming early is that there have been a couple big bugs that make usability hard for some [...]

Srt2DFXP version 0.3 is here!

A new week and a new release of Srt2DFXP! This release I’ve made some big changes to how the UI and conversion code works together. Now when running a conversion, the UI can be updated and so it can show the progress and in future releases, what it is currently doing. Though it may not [...]

Srt2DFXP v0.2 and a GUI!

After reading Codeman38‘s blog edit I figured I can’t leave my Windows brethren behind in the dust when it comes to PC vs. Mac. So I whipped up an update to the Powershell script and finished an exe/GUI! Script Changes SubRip parsing is faster (tests with Memento srt file finished in half the time.) A [...]

Netflix subtitles

memento_example

Edit: There is a GUI converter now. Earlier this year Netflix finally added captioning to their Instant watch player. Which is about time, finally they can start catching up with Hulu‘s awesome implementation. Sadly though, they only seem to offer the captioning for select videos which seem to all be episodes from the popular TV [...]

Wake-on-Lan (WOL) via Powershell

Despite what others may say, Wake-on-LAN isn’t magic and isn’t that complicated a feat to do anymore. With Powershell and .NET you can have the power of WOL without having to resort to third-party applications! Code/Script: param ( $targetMac, $network = [net.ipaddress]::Broadcast, $subnet = [net.ipaddress]::Broadcast ) try { if($network.gettype().equals([string])) { $network = [net.ipaddress]::Parse($network); } if($subnet.gettype().equals([string])) [...]

Netview.ps1 v0.2

Oooo! Version 0.2 of netview.ps1! Some code changes and less dieing in the middle of a listing! Also included is a -IsCluster switch! It’s great for easily finding out if a given NetBIOS name is a machine or a cluster! param ( [string]$Computer, [string]$Domain, [switch]$Cache, [switch]$All, [switch]$ResolveIP, [switch]$GetOS, [switch]$GetUser, [switch]$IsCluster, [System.Management.Automation.PSCredential]$Credentials ) #Take some notes [...]

Net View for PowerShell

A little PowerShell tool that wraps around “Net view” and outputs objects instead of plain text. param ( [string]$Computer, [string]$Domain, [switch]$Cache, [switch]$All, [switch]$ResolveIP, [switch]$GetOS, [System.Management.Automation.PSCredential]$Credentials ) #Take some notes and clean up stuff. if($Computer.length -gt 1 -and !$Computer.startswith(“\\”)) { $Computer = “\\$computer”; #$computer = “/computer $computer”; } if($Domain.length -gt 1) { $Domain = “/DOMAIN:$Domain”; } [...]

Is it an IP subnet mask?

Working on a tool to calculate IP ranges, I realized that I didn’t have a way to test if an input was an IP or a subnet mask! Thankfully subnet addresses are fairly easy to ID since they all start with 255 and, in binary, never have a 1 follow a 0. param ( [Parameter(Position [...]

Logon UI Background Changer Revisited

In a recent Hak5 episode (704, at 9 minutes) they covered changing the Logon UI background, which reminded me of my own little script. Since last working the script, I’d like to think I’ve learned more and it was about to time clean up the code and make it a little more user friendly. It [...]

Inverse ARP

While researching fast ways to find a relationship between a MAC and IP address, I dug up some info on Inverse ARP and found out that it isn’t widely a supported protocol. Basically, it’s only used in frame relay networks, which doesn’t help matters. So I did what any sensible geek does, I hacked something [...]