Categories
CMS Development Wordpress

get_the_term_list( get_the_ID() label formatting?

is it possible to change the style of the “label” of the result of a get_the_term_list( get_the_ID() ? $film_tags = get_the_term_list( get_the_ID(), ‘film_tags’, ‘Tags: ‘, ‘, ‘, ” ); is there a way to have (in the results) the “Tags: ” in bold? thanks!

Categories
Development System & Network

Finding a hostname in DNS by partial match

I can’t remember an internet hostname that I use very infrequently. I know that the hostname contains the substring “aware”. The hostname might have been mico-aware, microaware, mcaware, etc. Is there any way to search a global dns by substring to see all partial matches? A regex search would be great, but even a simple […]

404 not working, going to homepage; how to fix?

Whenever I call a non-existent page, say http://www.example.com/foobar/, it should invoke the 404.php theme template file. In my case, however, the site redirects to the homepage, / I’m not sure what I did in the past to enable this. How can I ensure that 404.php takes precedence when a file is non-existent? FYI: My .htaccess […]

Categories
Development Linux

How to use (THIS=x OR THAT=Y) AND OTHER=Z with find command

I’m converting my video library to x265 from x264 using the following: It looks for x264 anywhere in the file name, but excludes any that begin x265 as these are the files which have been completed. sudo find /mnt/local/int001/media/TV/ -name ‘*x264*.mkv’ -and -not -name ‘X265*.mkv’ -print0 | xargs -0 /usr/local/bin/ConvertTo265.sh I’ve found a lot that […]

Categories
Development Linux

linux – bash – get usage processor cores like htop

I want to get my processor cores usage like displayed in htop. Data will be taken by command line or system file, processing with php, thanks PS : excuse my bad english

Raspbian: Reading USB port intermittently works

I have a Raspberry Pi running Linux – Raspbian. The problem is that I’m seeing odd behavior when I try to read the USB port. It gives intermittent results. Last night it worked, this morning it doesn’t – same exact code. dmesg | grep tty returns- [ 0.000301] console [tty1] enabled [ 0.812585] 3f201000.serial: ttyAMA0 […]

Categories
Development Linux

Understanding sync command operations in linux

I’m trying fully understand the sync command operations in linux OS. After reading: https://en.wikipedia.org/wiki/Sync_(Unix) https://lwn.net/Articles/457667/ I understood that sync command responsible for flushing data all the way from application’s buffers to permanent storage. how linux tracks it’s permanent storage devices and their suitable writing requests? (inside /dev we have many device files not all of […]

Categories
Development Linux

debian: cannot ping beyond the router

Hello fellow stackers, I’m not sure I planned my network configuration in a perfect manner. I have a home network topography like this: modem/router <-> router <-> LAN. I need to access the Internet from my LAN, behind a debian router. When I have these 3 rules on the debian router, I can access WAN: […]

Categories
Development System & Network

XRDP same user multiple session

I’m trying to make XRDP work with multiple sessions on my linux mint server. Right now, i can connect only if there are no other session running on the system (I had to disable autologin). I don’t know why, but with the Raspberry it just works by default the way I want: when I connect […]

Categories
Development Linux Ubuntu Windows

Left Alt button toggles between open windows and consumes all

I’ve recently upgraded from Ubuntu 16.04.x to 18.04.3 on my Lenovo X1 notebook and at first left Alt key was working as expected. All of a sudden, I have this very strange issue: Pressing once Left Alt key, it quickly draws a thick border around the current window and then toggles to the previous window. […]