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

Chiang Mai Secret Notes

Places to stay

Cool guesthouse in the old city square: Ban I Lim.

Luxurary house just outside the city square to the south: Baan Sri Dha - Luxury 3Bed in Town

CSV Kit Notes Tips and Examples

Nice thing to use when working with CSV-files is CSV Kit.

See the file statistics: csvstat -e UTF-16 test.csv

Merge all files in a folder: csvstack -e UTF-16 -t *.csv > all.csv

Save column 2 to output .csv: csvcut -c 2 -e UTF-8 all.csv > output.csv

Shutdown Linux Machine At Specific Time

Here is a useful command when you need to shutdown you machine at a specific time of the day. For example after a specific event you needed to log.

shutdown -h hh:mm

Shutdown scheduled for ons 2017-04-12 22:35:00 ICT, use 'shutdown -c' to cancel.

Remark, you can can always cancel the shutdown with "shutdown -c".

Example:

shutdown -h 22:35

Get more info with "shutdown --help".

 

She Feels

She is the brightest star on the sky.
She shines so radiantly that you might go blind if you look at her for too long.
She is not able to control her immense power.

She overwhelms most and consumes many purely by her presence.
She might burn you up if you come too close to the heat and warmth of her core.
She is destined to a specific direction.

Check version of pip installed python package CSVkit

pip show csvkit

Time Stamp in R

How to make a nice time stamp with date and time in R:

now <- strptime(Sys.time(), "%Y-%m-%d%T")
time_stamp <- sprintf("%s", now )

 

SMF php 7

This does not work unfortunately. Waiting for a stable release of 2.1.X which runs php7 and the latest database technology.

Here are the instructions to get SMF 2.0.12 running with PHP 7.

Thanks to sleepycode.com :-D https://sleepycode.com/2016/05/smf-2-0-with-php-7/

Drupal 8 Bootstrap 3 sub theme setup

Here is a quick guide and notes for myself to be able to setup Bootstrap 3 in Drupal 8. :-)

  • Copy the sub-theme from the starterkit in the bootstrap theme folder to the sub-theme folder.
  • Rename all files to the sub-theme name.
  • Copy the info file from the boostrap theme to the sub-theme.
  • Setup the theme in /admin/appearance/settings
Glxgears No Vertical Synchronization

Glxgears is a very simple benchmarking tool for your graphics card.

Running glxgears with no vsync (vertical synchronization) is a great simple way to do a very simple benchmark of your graphical situation when you are testing out drivers on your linux system.

You just run the command: vblank_mode=0 glxgears

Easy way to see current graphics driver in use in Xorg: egrep -i " connected|card detect|primary dev|Setting driver" /var/log/Xorg.0.log

Downloading Facebook Videos

Downloading videos from Facebook: http://fbdown.net/down.php

I did not succeed with youtube-dl unfortunately.

Nordic Stocks

I enjoy to take money from the rich and give to the less fortunate.

I trade my stocks and shares at NordNet.dk

Here are some cool links you can check out if you want the latest news regarding the Nordic stock markets:

http://www.redeye.se/

http://www.aktienyt.dk/

https://www.americanbulls.com has swedishbulls, danishbulls, finnishbulls, and norwegianbulls too. :-)

Forerunner 910XT Linux downloading files from device
Forerunner 910XT In Linux - Garmin Connect

Holy molly. I thought Garmin would provide a fancy and "updatede" procedure for uploading and/or extracting data from the fancy Garmin 910XT... but no. You need to search for a while before you find the gold. First I thought you could find a garmin connect tool or plugin for Firefox, but that failed completely. Then I narrowed down my search to "forerunner 910xt linux" (without the quotation marks in google). I found some sites that suggested to download a lot of python stuff and get things directly from Git.

Screen Capture In Linux With Audio From Microphone and System Sounds

My random notes regarding screen capture. The screen capture is not hard, and it is not hard to have one source of audio like the microphone. The hard part is to have multiple audio sources, like the microphone and the system sounds.

I use Cheese for the built in webcam capture. Here are the random links:

Design Colors Palette

It is not always easy to find the right design colors for your project. A little cool website that can help you is: http://paletton.com/

 

Import Data From External Source To Drupal

I have a couple of SMF forum sites I wan't to replace with Drupal, but there is a considerable amount of content, why I started to speculate if it could be done programmatically (semi automatic magic). I found a couple of outdated modules for merging data from SMF to PHPBB and then from PHPBB to Drupal. I tried that route once but did not succeed. The thing I would love to see is a transformation of the table data in the SMF database to CSV and then import it with the standard import module for Drupal Migrate.

Append Multiple MOV Files and Edit Video

Appending MOV files efficiently can be a challenge. The only "safe" and easy way without destroying the video or the sound is done by using Avidemux which is a free video editing tool for Linux.

Here is my modified image-convert bash script used for the appending all .MOV files in a folder and have the full video ready for editing in the Avidemux graphical user interface (GUI).

Drupal 7 Export Import Content Types

IdeaHunters.dk bought a brand new theme from More Than Just Themes, which looks like a pretty decent Drupal 7 theme supplier. The standalone installation is pretty straight forward, but if you want to install the theme in an existing Drupal 7 installation, there is some extra work. It requires enabling theme specific modules and export/import of views, which is easily done with standard Drupal features.

Pagination

  • First page
  • Previous page
  • …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11

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.