Archive

Archive for August, 2005

Converting a DVD VOB file to an AVI file

This is a technique I successfully used to convert a DVD VOB file to
an AVI, and reduced the filesize from 160MB to 27 MB in the process

1) Download SmartRipper from afterDawn.com
Unzip it, put the DVD in the drive then run it.
Select the chapter you want to rip, press the target icon, select
a filename, and press the Start tab

2) Download DVD2AVI from afterdawn.com
unzip it, and run the application
click file>open and select the VOB in step 1.
You can drop the audio down from 48khz 44.1khz and remove the dolby surround
to reduce file size.
Select file>Save Project to create the Audio (WAV) file.
Select file>Save AVI to create the vidio (AVI) file (without audio)
I selected DivX compression on the last step (not sure if this is necessary)

3) Download VirtualDub from afterdawn.com
unzip it, and run virtualDub.exe
Click File>Open Video file. Select the AVI from step 2.
Click Audio>Wav Audio. Select the audio from step 1.
Click Audio>Full processing mode then Audio>Compression. Select Mpeg 3
Click Video>Full processing mode then Video>Compression. Select DivX
Select File>Save as AVI.

Categories: Uncategorized

Reading a company’s VAT number from sage

Dim SDO                 As SageDataObject90.sdoEngine
    Dim WS                  As SageDataObject90.WorkSpace
    Dim sdoCompany          As SageDataObject90.SetupData
           
    Set SDO = New SageDataObject90.sdoEngine
    Set WS = SDO.Workspaces.Add("Myconnection")
   
    ‘Connect to data files
    WS.Connect SageLocation, SageUsername, SagePassword, "ThisIsUnique"
   
    ‘Create an instance of InvoicePost & Record object’s
    Set sdoCompany = WS.CreateObject("SetupData")
   
    Me.txtCompanyName.Text = sdoCompany.Fields("NAME")
    Me.txtVatNumber.Text = sdoCompany.Fields("VAT_REG_NUMBER")
   
    ‘ Disconnect
    WS.Disconnect
Categories: Uncategorized

Serving Google Earth Links from a website

If you want to automatically load a location in Google Earth from a website, here are the steps…
 
Write an ASPX page like this:
<kml xmlns="http://earth.google.com/kml/2.0">
<Placemark>
  <description>Whatever</description>
  <name><%=strName%></name>
  <address><%= strAddress %></address>
</Placemark>
</kml>
 
The code behind is:

public string strName = "";

public string strAddress = "";

private void Page_Load(object sender, System.EventArgs e)

{

   Response.ContentType="application/earthviewer";

   strName="name..";

   strAddress="Address…";

}

 
Then add an application mapping into IIS by pressing website > Properties > Configuration > Add
 
Executable: C:WINDOWSMicrosoft.NETFrameworkv1.1.4322aspnet_isapi.dll
Extension: KML
 
Then Add the following into the web.config
 

<system.web>

<

httpHandlers>

<add verb="GET, HEAD, POST, DEBUG" path="*.kml" type="System.Web.UI.PageHandlerFactory"></add>

</httpHandlers>

</system.web>

 
Now rename the ASPX file to a .KML file, and it can be called from a browser
 
Categories: Uncategorized

Sms-txt.co.uk

Categories: Uncategorized