Sunday, March 18, 2012

batch ffmpeg convert mp4 mp3

Not my best FOR loop, quick and nasty.
Had a stack of mp4 videos to convert for the ride home.

mp4mp3.cmd <batch file>

for /f "delims=." %%a in ('dir *.mp4 /b') do G:\music\ffmpeg.exe -i "%%a.mp4" -vn -ar 44100 -ac 2 -ab 192000 -f mp3 "%%a.mp3"

stop that pesky Startup Repair


bcdedit /set {default} bootstatuspolicy ignoreallfailures

Thursday, March 15, 2012

Java vs Terminal Server 2003 - CLSID


Users were experiencing a Red Cross for the applet, yet my administrative account was able to load the applet.

Looks like java or the installation process for java is not writing all the registry keys to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{CAFECA-00xx…..

In IE, Java has a catch all applet version – which will always work (aka the latest version)
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93


But most java call specific versions of java (for example).
<OBJECT classid=”clsid:CAFEEFAC-0015-0000-0013-ABCDEFFEDCBA


The server(s) for some reason didn't have all the keys in classes root, where compared to my windows 7 desktop.

I believe the install for some reason is writing the keys to HKCU instead of HKLM \classes...etc.

So fix is to add all the version to HKEY_LOCAL_MACHINE\SOFTWARE\Classes

http://pastebin.com/YhmwPTq7 contains my fix for 1.6u24 version


btw, Monitoring the registry when tick/untick the “use next generation java” in the java control panel, it just write all the entries to HKCU.

changing the resolution of osx86 on virtualbox

/Library/Preferences/SystemConfiguration/com.apple.Boot.plist copy to desktop...
modify
copy back to original location


Netscaler\AGEE Logon Page multi-tenant

Added another domain\ICA proxy to my AGEE\Netscaler today, as I was rolling out discover that the common logon was going to cause me some grief. As I was sure the other company didn't want the first company's web address on it.

after a quick moment of pondering decided to use javascript to detect the current address and update the page as required.


      <TD width="100%" height=1>
         <script type="text/javascript">
          document.write("<h2> Welcome to " + location.hostname +"</h2>");
         </script>
      </TD>

I don't like using rewrite function
a) because I just dont get regex
b) because...

Sunday, February 26, 2012

Citrix Receiver Fail (sorry more Fail)

I really should post my rageness @ the citrix receiver...

just going to post a image of the part of the fail from citrix receiver

like really...

Saturday, January 28, 2012

OpenTextFile Weird/Bad Characters

 I have just experienced a problem while trying to read a text file by vbscript.
When I echo lines to screen I saw an empty line shows ÿþ, an...

Const ForReading = 1
Const TristateUseDefault=-2
Dim objFSO
Set objFile = objFSO.OpenTextFile("C:\WDSPendingDevices.txt", ForReading, True, TristateUseDefault)

Osman Shener's Blogs and Articles (EN): VBScript : OpenTextFile Weird/Bad Characters: