Change retention period of tomcat8 localhost_access_log files

My tomcat 8 logs folder (/tomcat/logs) is using up lots of disk space with localhost_access_log files. According to this post: Tomcat localhost_access_log files cleanup I can edit the /tomcat/conf/server.xml file’s preexisting “Valve” element to introduce a “maxDays” param, so it would look like this: <Server port=”1234″ shutdown=”SHUTDOWN”> <Service name=”Catalina”> <Engine name=”Catalina” defaultHost=”localhost”> <Host name=”localhost” appBase=”foo” … Read more

Get Category Record By Path in SQL

I have a postgres schema like so: CREATE TABLE categories ( category_id uuid NOT NULL PRIMARY KEY DEFAULT uuid_generate_v4(), parent_id uuid REFERENCES categories(category_id) ON DELETE CASCADE, image_url text, name text NOT NULL, description text NOT NULL, created_at timestamptz NOT NULL DEFAULT now(), updated_at timestamptz NOT NULL DEFAULT now(), UNIQUE (parent_id, name) ); This could equally … Read more

Missing Chapterwise working examples for Manipulation after local installation

I plan to extend and use the Drake simulator working examples on manipulation as a part of learning phase in projects from manipulation.mit.edu. I followed the instructions as per the link below:- https://manipulation.mit.edu/drake.html#section3 python3 -m venv venv source venv/bin/activate pip3 install manipulation –extra-index-url https://drake-packages.csail.mit.edu/whl/nightly/ But the last line above failed and I replaced it with … Read more

MySql Event with LOOP based on a select statemet

Not too familiar with the coding inside events, but the goal is: Select the “company_id” field of table “companies”. (simple select id from table) Use the list of step 1 into a loop to fetch data from a custom table: eq: “select fid from table_%id% where…“ Now create a record in another table from data … Read more

How do I print a range of unicode characters in C++?

I want to print the range of Unicode characters, from 00B2 to 00B5 (and many other ranges), how can I print these programmatically? Obviously, I don’t know how to define a variable Unicode character and then do arithmetic (increment) for them. I am looking for the loop equivalent of this below. How can I programmatically … Read more

Building errors when passing server side variables into client side JavaScript on Astro

Following is a fragment of my Astro component client side script: <script type=”module” define:vars={{ id, date }}> import { countdown } from ‘../js/countdown.js’; countdown(`#${id}`, date); </script> The VSCode linter shows the ts error below when hovering ‘../js/countdown.js’: Cannot find module ‘../js/countdown.js’ or its corresponding type declarations.ts(2307) It highlights as well the variables id and date … Read more