+302105381100
achar@uniwa.gr
Aristotelis Charalampa, Professor at UNIWA.
  • Home
  • Curriculum vitae
  • Publications
      • Back
      • Books
      • Journal papers
      • Conference proceedings
      • Theses
  • Research
      • Back
      • 3DGRIPS Project
      • Custom software
      • Excel worksheets
      • Mathematica notebooks
  • Blog
      • Back
      • Random and uncategorized
      • Programming VB.NET
      • Programming Joomla
      • Programming MySQL
      • Programming Mathematica
  • Contact
  1. Home
  2. Blog

Blog

A sub-routine for the in-situ inversion of a square matrix

Aristotelis Charalampakis

When a programmer deals with mathematics, one of the most common routines added to his/her math library is matrix inversion. The following code implements a very efficient in-situ matrix inversion (meaning that no memory is allocated for another matrix to hold the result; the inverse of the matrix is built gradually in the matrix itself!). The code is based on an algorithm published in Numerical Recipes. The code can be put in a .vb file (e.g., MatrixInversion.vb).

Read more

A computer simulation of the Monty Hall problem

Aristotelis Charalampakis

The Monty Hall is a famous problem, which can be stated as follows: 

Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?

The answer is counter-intuitive; yes, it is advantageous to switch. In fact, if you switch, you have doubled your chances to win. The theory may be difficult to grasp at first, so a computer simulation should verify the answer. 

Read more

A simple algorithm for creating Sudoku puzzles using Visual Basic

Aristotelis Charalampakis

Today I stumbled on an program I had written years ago. During a hot summer I used to spend my time solving Sudoku puzzles at the beach - which is quite fun if you are in a must-not-work mode. Of course, very soon I found myself on my laptop, writing a program for creating and solving Sudoku puzzles. The algorithm for the creation of new puzzles is interesting, although probably not the most efficient, and surely someone else has thought it before me. In any case, I am sharing:

Read more

Creating semi-dynamic pages in Joomla! (or how to access your Joomla! article with VB.NET)

Aristotelis Charalampakis

Following the article on how to create dynamic pages in Joomla! by inserting PHP code in the content, there is another case that I have encountered countless times; the content of the article does not need to change very often and it is systematic in the sense that it could be handled by a computer program. But how can you access the contents of a Joomla article and modify it?

Read more

SDoF Bouc-Wen model with version checking

Aristotelis Charalampakis

Integrating the differential equation of a Bouc-Wen model of hysteresis is very easy using Mathematica. In Mathematica 9, some additional checks prevent NDSolve[ ] from integrating the equation; the error message is NDSolve::smpf: Failure to project onto the discontinuity surface when computing Filippov continuation at time 0.  We can create a version-aware code to take into account this; if the Mathematica version is greater than 8, then remove DiscontinuityProcessing method.

Read more

Creating really dynamic pages in Joomla!

Aristotelis Charalampakis

Joomla! is a very popular CMS (Content Management System) which allows you to build websites and powerful online applications. In fact, the lines that you read right now belong to a Joomla! website.

Although the CMS is dynamic, I have found that, oddly, the articles (i.e. the content) is rather static. Of course you can include videos, or a gallery of images in the article, but what about the actual text? How can you change it dynamically?

Read more

Error in connecting to remote MySQL server - Why?

Aristotelis Charalampakis

I use a local installation of MySQL to develop my sites, and I often write small programs to manipulate the database directly. Everything works ok locally, but when I try to do the same thing in the remote MySQL installation, I get the error Unable to connect to any of the specified MySQL hosts.

Read more

Aristotelis Charalampakis

Assistant Professor, UNIWA
  • Home
  • Curriculum vitae
  • Publications
  • Research
  • Blog
  • Contact
Privacy Policy & GDPR Compliance
© 2026 Aristotelis Charalampakis