Posts

System.Runtime.InteropServices.COMException (0x800A03EC)

System.Runtime.InteropServices.COMException (0x800A03EC) Top answer solved this for me.

System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Spent ages trying to work out what was causing this error, eventually found the link below.  http://blkarwasara.blogspot.co.uk/2012/02/exception-details-systemsecuritypolicyp.html

Network settings config file locations

For some reason webmin can no longer update network configuration changes correctly. So for instructions on how to change them manually follow the link below. Network settings config file locations: http://fedoraproject.org/wiki/Anaconda/Network#Editing_configuration_files

PHP and MySQL Pagination

PHP/MySQL select data and split on pages Found this useful article on howto split MySQL records onto pages. So if you want to show only 20 records per page then follow the link.

Datasource Control Timeout (ASP.NET WebForms)

Below is a useful snipit of code, it sets the timeout for DataSource controls. Replace SqlDataSource with the ID of the datasource. Protected Sub SqlDataSource_Selecting(sender As Object, e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource.Selecting e.Command.CommandTimeout = 1000 End Sub

CSV Splitter

Found this very useful CSV file splitter for files over 65536 rows (excel before 2007) or 1048576 rows (excel 2007+). See the original forum thread here or download here

Catch all non-existant users in Postfix

To catch all emails to unknown users add a new user e.g. catchall. In the postfix config set: luser_relay = catchall local_recipient_maps =