Categories
Development Linux

Is there a point to configure SNAT source address in NAT gateway?

Let’s say, that one has following network topology: NAT gateway linux-router has a following SNAT rule in place: Chain POSTROUTING (policy ACCEPT) target prot opt source destination SNAT all — 10.99.99.50 anywhere to:1.1.1.6 In addition, as seen on the drawing, the 1.1.1.6 address is configured on lo interface. Technically, this is not needed, i.e one […]

Categories
CMS Development Wordpress

HTTPS breaks CSS on mobile browsers

My website bootstraplite.com is not loading the correct CSS on mobile browsers after I enabled SSL in bluehost. When I use HTTP, it shows the correct styling. I use <?php echo get_stylesheet_directory_uri(). ‘/style.css’ ?> to get the stylesheet. I tried direct links with https://, or //bootstraplite.com/.. I have also updated my WordPress and Site address […]

Categories
CMS Development Wordpress

remove footer text

My wordpress themes footer shows a text (red mark in down picture) and I would like to remove it. I searched but couldn’t find a solution. I would like to delete the text as well as the white section from the footer. I tried the down code as additional css. But It actually hides the […]

Categories
Development Linux Ubuntu

Lubuntu 19.10 Username Field when Logging In

I just installed Lubuntu 19.10 to give it a test run. was able to do what i normally do, except add a username field when login comes up. I’m used to LightDM, setting “greeter-hide-users=true” Is there any equivalent to that on Lubuntu without additional installs?

Categories
Development User Help

Clicks and pops on my video’s audio

I’m using Shotcut to make a video for my song. It’s just a still image and a simple audio visualisation. I’m planning to upload it to Youtube, and need the audio to be as high quality as possible. I’m starting with the WAV file from the mastering guy, importing that in to Shotcut, and using […]

Categories
Development

How do you display 24 hour time format in hourly increments on a time slider in android?

I have a 2 step question here: 1) How do I display a time slider UI which scrolls horizontally upon touch in a 24 hour format. 2) How do I divide it into a 24 hour format with each slot consisting of 1 hour slot each. Here’s the expected result UI if it’s confusing: As […]

Categories
Development

Joining two tables results in a connection failure to the server in psql and pgAdmin4

I am currently practicing SQL on an IMDB dataset, and here’s the strange thing that I encounter. PgAdmin4 and psql always raise an error telling me: Connection to the server has been lost … or …: Server closed the connection unexpectedly … whenever I try to join two tables in the dataset using a query […]

Categories
Development

Divide a Set into Subsets of objects having equal field?

I am currently trying to implement a data structure in java, and would like to divide a set of input, into different subsets that will have different keys in a map in a synchronized way. public Map<Integer, List<Foo>> getIntToFooMap(List<Foo> foos) { Map<Integer, List<Foo>> map = new TreeMap<>(); // need keys to be automatically ordered. List<Foo> […]

Categories
Development

How to asynchronously write to a JSON file from an array?

I’m scraping some data and pushing it to any array from which it is written to a JSON file. Currently it writes to the JSON file after every push to th array… const myArray = []; const htmlString = await rp(url); $(‘a’,’#atozindex’, htmlString).map(async (index, element) => { let link = $(element).attr(‘href’); if (link) { //Do […]

Categories
Development

Timezone Abbreviations in Java

I have a collection of Java Date objects, loaded from an old database which did not store timezone info. I know that all the dates (which include hours, minutes and seconds) are for the U.S. Eastern time zone. I want to derive the correct timezone abbreviation (“EST” or “EDT”) for each date. Here is my […]