Author Archives: wrostek

PHP Query .. Amazing little library

Leave a comment

RSS Feeds in PHP

<?php if ( $rss ) { $items = array(); while( $row = $modx->db->getRow( $q_query ) ) { $items[] = array( “title”=> lang_decode( $row, “Title”), “url”=>”http://” . str_replace( “//”, “/”, $_SERVER[‘HTTP_HOST’] . $modx->config[ “base_url” ] . make_link( “ARTICLES_” . strtoupper( $row[ …

Leave a comment

Effective Linux Administration: Best Practices and Tools for Managing Your Infrastructure

Introduction Linux is a popular operating system used in servers, desktops, and other devices. As a Linux administrator, you need to ensure that your infrastructure is running smoothly, securely, and efficiently. Best Practices for Linux Administration Keep your systems up-to-date …

Leave a comment

Effective Linux System Administration for Beginners

Introduction Linux is an open-source operating system that is widely used in servers, supercomputers, and embedded devices. As a Linux administrator, you will be responsible for managing and maintaining these systems to ensure optimal performance and security. Basic Linux Commands …

Leave a comment

Effective Use of PHP Namespaces for Better Code Organization

Introduction PHP namespaces are a powerful tool for organizing code and reducing conflicts between classes with the same name. In this article, we will explore the benefits of using PHP namespaces and provide tips on how to use them effectively. …

Leave a comment

Best Practices for Secure PHP Development

Introduction PHP development has become an essential part of web development, and as the technology advances, security becomes a major concern. In this article, we will discuss some best practices for secure PHP development. 1. Input Validation Input validation is …

Leave a comment

Troubleshooting Apache2 on Ubuntu: Common Issues and Solutions

Apache2 is one of the most popular web servers used on Linux systems, including Ubuntu. However, like any software, it can sometimes encounter issues that can cause problems for website administrators. In this article, we will discuss some common issues …

Leave a comment

Ubuntu libGL error failed to load driver swrast

I setup PlayOnLinux to install some windows games on my linux machine, however, frequently one of the issues of cross-os gaming is that you must run them in a 32bit wine configuration. Ok, thats not so bad, but everytime I …

2 Comments

Apache server domain redirection: .config vs .htaccess

There are a few ways to redirect from “Domain A” to “Domain B”. If you do not care about tracking analytics for “Number of Hits” to “Domain A”, the cleanest approach would be to define the redirect in your apache …

Leave a comment

Static Network configuration in Ubuntu Linux using systemd

With Ubuntu 15.04 Vivid Vervet,  systemd has replaced Upstart as the standard boot and service manager.   Personally, I like to set my my network interfaces up statically, and usually uninstall network manager completely. Prior to Vived Vervet, static network configuration …

Leave a comment