BBClone statistics inside WordPress

Today's entry concerns the launch of statistics of website visits based on the WordPress system, using the BBClone – a script entitled as – A PHP based Web Counter on Steroids!

An example of how the BBClone works can be seen here: https://www.bbclone.de/demo/.

There's not much to describe, so I'll get to the point.
I assume you already have a working WordPress engine site.

1 – We are downloading a development version of the BBClone (the last stable release is from 2015, and does not support PHP version 7, so we need a version with later changes). Link to file: http://download.bbclone.org/bbclone-nightly-build.zip.
2 – The unpacked files are copied via FTP to a server. We can rename the bbclone directory to another.
3 – Edit the config.php file from the /conf/ directory, where you set the parameters as required.
4 – We change the WordPress file, template-loader.php, which is located in the /wp-includes/ directory. Simply add this piece of code under the first line containing "<?php":

define("_BBC_PAGE_NAME", get_bloginfo("name") . wp_title("/", false));
define("_BBCLONE_DIR", "/home/user/public_html/bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);

Instead of /home/user/public_html/bbbclone/ (bold above) you should enter your own full bbclone directory location on the server. Upload the modified file, replacing the original and it's ready.

The only thing you need to remember is to correct this file after updating WordPress.

Firmware update for SSD – HPE 5200 ECO model VK003840GWSXL

Recently, I have been able to purchase an SSD from Micron, the 5200 ECO with a 3840GB capacity. The purchased item is branded by HPE (Hewlett Packard Enterprise, model VK003840GWSXL). In order to update the device's firmware, I encountered problems, the solution of which I would like to share. You are welcome.

ssd-hpe-micron-5200-eco-4tb Continue reading "Firmware update for SSD – HPE 5200 ECO model VK003840GWSXL"

Pure-FTPd with Let's Encrypt

Currently, the most frequently used FTP server by me in Linux is Pure-FTPd. It allows to use TLS encrypted connections. I thought it would be nice if I could link Pure-FTPd to my certificate signed by Let's Encrypt. By default, the application does not have such a possibility, so I wrote a simple script that helps both projects work together.

I would like to invite you to a short description and download.

Cheap USB to LAN and WiFi

Since I often solve computer problems using my own hardware, I decided to buy the cheapest and smallest size USB devices to connect computers to LAN and WiFi networks. In this entry I will present what I bought and how it works (iperf3).

Continue reading "Cheap USB to LAN and WiFi"

Windows 10 – Start Menu don't work

I've been using Windows 10 for some time now, and despite the update I occasionally had a problem with the Start Menu. It just did not work sometimes. It turns out that one of the system's services is responsible for this. In order to help other people with this problem, I present below a way to solve it.

1. Task Manager.2. Registry Editor.3. Change parameter.
Start by running the Task Manager. To do this, right-click on the clock located at the bottom right of the screen. Then select the Task Manager by clicking on it.

When the Task Manager is running, you must switch to the full information and function display mode by pressing on "More details".

After this operation, the Task Manager will enable us to run a registry editor by using the File \ Run new task (left side of the top).

In the window that will appear, just type a regedit and press enter (or mouse click OK).

Then we have to find and change one of the entries. Expand the branch in the registry editor from the left panel:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WpnUserService

We are interested in the value of the Start parameter placed in the right panel. To do this, double-click on the Start parameter, and in the window that shows you will change the value to 4, confirming by pressing OK.

Then close the registry editor and restart your computer. From now on, the Start Menu should work properly.

 

Windows 10

The moment has come when I had to purchase a new version of operating system – Windows 10 Pro (64-bit version) because of my work.

First impressions after installation:
– start up quickly
– seems to be more responsive
– after installing the system (from scratch) it has a lot of unnecessary programs (like games, spotify, onedrive)
– problems with the USB 3.0 controller from VIA (which I repaired manually by installing drivers for Windows 8.1)
– has installed drivers for the graphics card, sound, etc. by itself (comfortable)
– waits for an external USB drive to start during the start (better if it is working in the background)
– microphone boost does not work for a USB webcam with a built-in microphone (in Windows 7 worked without problem), here typically an error on the MS side that does not want to fix it (although it is more likely that it does not know how to fix it)
– built-in antivirus (but unfortunately quite slow, and broken down, after detecting the threat and pressing the action of repairing does nothing)
– the start menu did not work for a moment, after the installation of some update started.

In general, there are a few advantages and some disadvantages. Well somehow, unfortunately, we will have to move around. As for me, problems match the BETA version rather than the final product.

Construction of the HiFi kit based on PC

To the project section on the right I added a page devoted to the recently implemented idea. Namely, I decided to build a set of HiFi. But as it happens in life, the requirements did not match what I could meet on a typical consumer market. That's why I decided to put together a set that suits my needs.

It is based on the Intel NUC platform (DC3217IYE) and the external audio interface E-MU 0404 USB.

I invite You to read.

KIOSK generator v1.3

I released new version of KIOSK generator for RHEL operating systems, like CentOS, Scientific Linux and similar. In newest version i've added comatibility with systems version 7, and i made Opera browser not to ask for license on first run.

New version is available here: http://www.marcinwilk.eu/lang/pl/projects/scientific-linux-and-centos-kiosk

Scientific Linux 6 & CentOS 6 KIOSK

Some time ago my friend had a new task of sharing (and control) computers in library. Computers are free to use for readers, and must give the possibility of using Internet network. My friend have found tutorials for Ubuntu. Because my favorite distros are Scientific Linux and CentOS i will show, how to do something similar for them.

Continue reading "Scientific Linux 6 & CentOS 6 KIOSK"