Skip to main content
GrN.dk

Main navigation

  • Articles
  • Contact
  • Your Digital Project Manager
  • About Greg Nowak
  • Services
  • Portfolio
  • Container
    • Excel Freelancer
    • Kubuntu - tips and tricks
    • Linux Apache MySQL and PHP
    • News
    • Image Gallery
User account menu
  • Log in

Breadcrumb

  1. Home

Articles

OLCPT installation on Windows

Install latest version of R-studio

Install R-tools 35: https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe

Install R 3.6.3: https://cran.r-project.org/bin/windows/base/old/3.6.3/

Install JRE 8 from https://www.java.com/en/download/ and add it to JAVA_HOME system variable name. For example system variable value: C:\Program Files\Java\jre1.8.0_281

Enable SMART on Old External Seagate SSD Ubuntu 20.10

I have an old external seagate ssd 2TB for backup called "BUP Slim BL". It was a challenge to enable the SMART capability on Ubuntu 20.10.

You might give this a go: sudo smartctl -d sat -T permissive --smart=on /dev/sda1

If that does not work, you might need:

echo options usb-storage quirks=$(lsusb | awk '/Seagate/ {print $6}'):u | sudo tee -a /etc/modprobe.d/ignore_uas.conf
sudo update-initramfs -u

Reinstalling and Updating All Current R-Packages To New Version of R

In bash: R -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'

Source: https://community.rstudio.com/t/reinstalling-packages-on-new-version-of…

Ubuntu Server Dashboards and Monitoring Tools

https://mmonit.com/monit/

https://cockpit-project.org/

https://www.ispconfig.org/

Top list: https://geekflare.com/server-management-tools/

Scraping Tools And Browser Automation

Even though phantomjs is dead, it is quite useful anyway in a nice Rscript.

Headless Chrome with R Selenium: https://github.com/ropensci/RSelenium/issues/138

Drupal Commerce

Best solution is probably to go with the instructions at: https://www.drupal.org/project/commerce_demo
composer require drupal/libraries bower-asset/jquery-simple-color bower-asset/spectrum
Install site.

How to build drupal commerce on top of drupal 8 with demo content (https://www.centarro.io/blog/how-build-drupal-commerce-development-envi…):

Webshop systems

As a drupal fanboy I like Drupal Commerce, but there are many others out there.

Drupal Commerce

https://github.com/drupalcommerce/demo-project

Default theme: https://www.drupal.org/project/belgrade

Read more about how to install Drupal Commerce.

Prestashop

Woocommerce

Wordpress commerce.

Magento

Drupal 9

Notes and tips for Drupal 9

https://www.drupal.org/docs/develop/using-composer/starting-a-site-usin…

https://matti.dev/post/setup-install-drupal-9-with-composer-and-drush

Vegan Power Game Privacy Policy

Only High Score is saved on the mobile phone and is not shared with anyone.

USB headphone detection reintroduced in Ubuntu 20.10

Fix with: pkill -U $USER pulseaudio

(https://bugs.launchpad.net/ubuntu/+source/alsa-lib/+bug/1865499)

Tonsil Fix

Notes to help others with tonsil stones and pain in the tonsils.

  • A lot of sleep and rest
  • Vegetable soup
  • Ginger -> ginger tea etc
  • Garlic
  • Drink lime water
  • Gurgle saltwater multiple times per day
Drush symfony PHP errors

If you get this PHP error:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\Component\EventDispatcher\Event or null, string given, called in .composer/vendor/consolidation/annotated-command/src/Hooks/Dispatchers/CommandEventHookDispatcher.php on line 36 and defined in vendor/symfony/event-dispatcher/EventDispatcher.php:37
 

MySQL 8 support for Drupal 7

Do yo get this error?

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1231 Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' in lock_may_be_available()

Then it is a good idea to check out this patch thread: https://www.drupal.org/project/drupal/issues/2978575

Tidy Up composer.json

Are you looking for an automatic tool to tidy up your composer.json? Look no further with normalize: https://localheinz.com/blog/2018/01/15/normalizing-composer.json/

Linux Show Final URL Programatically

curl tags: https://stackoverflow.com/questions/3074288/get-final-url-after-curl-is…

How to solve CloudFlare protection: https://stackoverflow.com/questions/18500088/curl-load-a-site-with-clou…

PHP test if front page

$currentpage = $_SERVER['REQUEST_URI'];
if( $currentpage == "/" ) {

}

Strip Metadata

PDF

https://blog.joshlemon.com.au/protecting-your-pdf-files-and-metadata/

https://gist.github.com/hubgit/6078384

exiftool -all:all= $FILE ; qpdf --linearize $FILE output.pdf

Images

imagemagick: mogrify -strip NAME_OF_FILE

 

Test with: exiftool -all NAME_OF_FILE

 

Critical CSS

Here is an online generator: https://www.sitelocity.com/critical-path-css-generator that destroyed my font paths.

Here is a better one: https://pegasaas.com/critical-path-css-generator/

Or this generator: https://www.sitelocity.com/critical-path-css-generator

Grub settings and options

Default kernel parameters: "quiet splash".

In my opinion you will get more sucessful boots and reduced graphical errors on boot if you remove quit and splash. Specifically the splash screen can make strange things happen and when removing "quiet" you are able to debug if there is an error.

 

I also tried to fiddel with "/etc/grub.d/48_linux_zfs" where I tried to out comment #vt_handoff="1" and set quiet boot to zero: 

 

Gregs Thai Notes

Greg = เกรก ( g: เ ; d: ก ;  I: ร)

Vegetarian = Jay = จ ( 0: จ)

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page

Review Greg on Google

Greg Nowak Google Reviews

 

  • Youtube Subtitles in Any Language
  • Your CMS Upgrade Is Now a Stack Project: A 2026 PHP Roadmap for WordPress and Drupal Sites
  • AI Crawler Control for Business Websites: Protect Your Content Without Disappearing From Search
  • Portfolio
  • Gregs IT and Logistics Optimization
RSS feed

GrN.dk web platforms, web optimization, data analysis, data handling and logistics.