Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

avg

AVG Antivirus For Linux/FreeBSD Plus Sendmail Mail Server
Friday, 17 February 2012 12:10

AVG Antivirus For Linux/FreeBSD Plus Sendmail Mail Server

This document describes how to deploy AVG Antivirus for Linux/FreeBSD to the Sendmail mail server. It is usable for AVG version 8.5, 10 and 2012.

Read more: http://www.howtoforge.com/avg-antivirus-for-linux-freebsd-plus-sendmail-mail-server

 
AVG Antivirus For Linux/FreeBSD Plus Postfix Mail Server
Monday, 23 January 2012 11:52

AVG Antivirus For Linux/FreeBSD Plus Postfix Mail Server

This document describes how to deploy AVG Antivirus for Linux/FreeBSD to a Postfix mail server. It is usable for AVG version 8.5, 10 and 2012.

Read more: http://www.howtoforge.com/avg-antivirus-for-linux-freebsd-plus-postfix-mail-server

 
[DarkGDK.Net] Matrix Smoothing
Tuesday, 16 August 2011 09:34
// description of your code here
A matrix smoothing function for DarkGDK.Net, found over at The Game Creators. I'm mostly posting it on here to show it to some people in boredom, but what the hey.


Public Sub SmoothMatrix(ByVal Target As DarkGDK.Basic3D.Matrix, ByVal MaxTileX As Integer, ByVal MaxTileZ As Integer, ByVal Times As Integer)
Dim T As Integer
Dim X As Integer
Dim Z As Integer

Dim a As Long
Dim b As Long
Dim c As Long
Dim d As Long
Dim e As Long
Dim f As Long
Dim g As Long
Dim h As Long

Dim Total As Long
Dim Avg As Long

' DarkGDK.Text.SetColor(Color.Yellow)

For T = 1 To Times
For X = 0 To MaxTileX
For Z = 0 To MaxTileZ

a = Target.GetHeight(X - 1, Z + 1)
b = Target.GetHeight(X, Z + 1)
c = Target.GetHeight(X + 1, Z + 1)
d = Target.GetHeight(X + 1, Z)
e = Target.GetHeight(X + 1, Z - 1)
f = Target.GetHeight(X, Z - 1)
g = Target.GetHeight(X - 1, Z - 1)
h = Target.GetHeight(X - 1, Z)

If X <> 0 And X <> MaxTileX And Z <> 0 And Z <> MaxTileZ Then
Total = a + b + c + d + e + f + g + h
Avg = Total / 8
End If

If X = 0 And Z = 0 Then
Total = b + c + d
Avg = Total / 3
End If

If X = MaxTileX And Z = MaxTileZ Then
Total = f + g + h
Avg = Total / 3
End If

If X = 0 And Z <> 0 Then
Total = b + c + d + e + f
Avg = Total / 5
End If

If Z = 0 And X <> 0 Then
Total = a + b + c + d + h
Avg = Total / 5
End If

If X = MaxTileX And Z <> MaxTileZ Then
Total = a + b + f + g + h
Avg = Total / 5
End If

If Z = MaxTileZ And X <> MaxTileX Then
Total = d + e + f + g + h
Avg = Total / 5
End If

Target.SetHeight(X, Z, Avg)
Target.Update()

' DarkGDK.Text.ShowText(0, 0, "Average Height : " + Str(Avg))
' DarkGDK.Text.ShowText(0, 20, "Total Height : " + Str(Total))
' DarkGDK.Text.ShowText(0, 40, "T : " + Str(T) + "/" + Str(Times) + " X : " + Str(X) + " Z : " + Str(Z))
DarkGDK.Core.Sync()
Next Z
Next X
Next T
End Sub

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/Mt3eI7lADG8/13537

 


Taxonomy by Zaragoza Online