Quantcast
Channel: User akc42 - Stack Overflow
Browsing latest articles
Browse All 37 View Live

Comment by akc42 on Why is git describe picking out the tag that it does

@TTT interesting that seems to work - but why

View Article



Comment by akc42 on I have a flex box which contains two items to fit on one...

Looks good - I just added a min-width in category to ensure I get one or two characters regardless and its perfect. Thanks

View Article

Comment by akc42 on Timing of javascript promises

@Roamer-1888 There is quite a lot to unpack in your comment, which I will do shortly to make sure I understand it, but thanks for the effort. Its a piece of code that is a bit of a mess and I have...

View Article

Comment by akc42 on For some reason document.cookie not working

Thanks - that was indeed the case. I had forgotten why I originally set it (to prevent it getting hacked - before I encrypted the cookie itself). Its not actually needed anymore

View Article

Comment by akc42 on in an `async` function are the input parameters preserved...

@JaromandaX yes it should have been that - I made this up as a simple example really quickly, I've updated it

View Article


Comment by akc42 on write EPROTO B8150000:error:0A000152:SSL...

Just happened to me on 18.12.1 installed yesterday on production server. Is this reported to nodejs?

View Article

Comment by akc42 on Managing Server Side Events with a Service Worker

I think I just allowed the client cookie to timeout after about 4 hours of no contact (otherwise its refreshed on every server interaction). Service worker just caches static resources and does little...

View Article

Comment by akc42 on Managing Server Side Events with a Service Worker

@cassepipe I suppose it might. It looks like Safari only introduced the capability September 2022 and I asked this question in April 2020. I got the code working and basically haven't touched it since....

View Article


Comment by akc42 on Is there a way to get DateTime value from timestamp type...

Just used a trick like this to get an approx date DECLARE @t timestamp; SELECT TOP 1 @t = Timestamp FROM tableInNeeedDateFor ORDER BY timestamp DESC; SELECT TOP 1 @t, Datefield, timestamp FROM...

View Article


Comment by akc42 on Hovering over increment/decrement value buttons on number...

Its not just react. I'm using lit and i've implemented a custom element around inputs and was experiencing the same problem in chrome. With my custom element I was able to handle it within the custom...

View Article

Answer by akc42 for scrolling when contained in a flex box

This issue is with the section cssthe problem is that flex-shrink, means that with a 1 this content shrinks along with everything else. As a result it does not overflow and force scroll bars....

View Article

scrolling when contained in a flex box

I am really struggling to make scrolling work as I want inside a set of nested flex box containers. What is more I am seeing weird side effects that are not making sense to me at all.The actual site I...

View Article

vscode multicursor reorder lines how to

I am finding a common issue I have with vscode multi-cursor editing mode is how to deal with "fields" of different lengths. To give an example:-I have an sql file which contains multiple lines of the...

View Article


how to cause word wrap when slotted content added to flexbox;

I have some markup in a custom element like so<div class="competition"><slot><slot><div id="compname">2019 Football Competition</div></div>When there is no slotted...

View Article

Answer by akc42 for How can I get colour emois on the web

I found a solution that works on my Chrome Desktop browser, my Android Phone and my Apple Ipad.I downloaded this fonthttps://github.com/googlefonts/noto-emoji/blob/master/fonts/NotoColorEmoji.ttfPut it...

View Article


How can I get colour emois on the web

🍌🙇‍♂️😖👋🐒🥂😢🤔😠🤩🙄🥺👐😉😠🤯🥒😾🤣😈😮🙏👍❤️😱🥱I am trying to replace a web based emoticon system based on a series of gif images that I implemented around 2008 sort of time with characters from the unicode set. The...

View Article

How do you wrap setTimeout in a promise [duplicate]

I am trying to run a test suite for an object that returns a promise. I want to chain several actions together with short timeouts between them. I thought that a "then" call which returned a promise...

View Article


How can I use flexbox to manage two items on a page where one is of...

I am building a single page web app that needs to run on both mobile phones and the desktop. Its based on custom elements - although that is not necessarily important for the substance of the...

View Article

Answer by akc42 for Why does Safari not display some elements even though web...

For anyone else out there wondering about the same thing. I think I found the answer!One of the surrounding elements has some css with overflow-y: auto, but without a specific height. I believe what is...

View Article

Image may be NSFW.
Clik here to view.

Why does Safari not display some elements even though web inspector shows...

I am struggling with an application using custom elements that is just not working properly in Safari. Here is a screen shot with what Safari is showing v what it is supposed to show in chrome. It was...

View Article

What is the difference between Puppeteer and Electron with respect to using...

I have been rushing to get my app, a mixture between nodejs server driving an sqlite database and a litElement based client side providing the ui, into a useable state as a beta release. I achieved...

View Article


Answer by akc42 for What happens to performance.mark entries when the...

There are no meaningful limitations I could find. I did a test and generated more than 4000 marks and they were all there and the memory usage did not increase in any measurable way.

View Article


What happens to performance.mark entries when the resource buffer gets full

I am building a large private (ie used behind a firewall) PWA and wondering how to improve the diagnostics if/when my users hit issues. I already have an error manager which uses navigator.sendBeacon...

View Article

Answer by akc42 for Why is Playwright closing the page so early?

I found the problem. On of the elements on my page was using the css propertyfilter: blur(1em);This was causing the page to close in playwright as soon as it was encountered. I ended up using...

View Article

Why is Playwright closing the page so early?

I am trying to record a video of a set of CSS transitions that I have mode work like the opening title sequence. I got a simpler test with a single rotating cube working on my macbook laptop.I have set...

View Article


Image may be NSFW.
Clik here to view.

Trusted Root Certificate not trusted

I have a strange problem that I don't understand. I think it was working before and I do suspect an update to macos that I loaded on my macbook air just before, but I thought I would ask the question...

View Article

Image may be NSFW.
Clik here to view.

How can I assign the value of a css calc() to a css-variable, and not have it...

I have been unable to determine from any explanation I could find, about when the value of a css variable has been set., so I conducted a testThe html<div class="flex"><div...

View Article

Answer by akc42 for How can I assign the value of a css calc() to a...

I found a "perfect" work around!.The solution to this is to use the 'resize' event to read the size of the element you wanted use 100% on using getBoundingClientRect(); and using the width returned to...

View Article

I have a flex box which contains two items to fit on one line in a confined...

I have a flex box div to fit in a limited space, it consists of two items, a category and someone's name. If the persons name is long, I want it to take preference and over the right hand end of the...

View Article



For some reason document.cookie not working

I have a cookie that gets set in the server on a successful logon to a complex PWA. However I am having trouble deleting that cookie from within the browser on log off. In order to test that further I...

View Article

Exporting and reusing binaries during Dockerfile build

For context, I am trying to convert an existing client/server project into docker containers. This issue concerns the client side of this.The current setup is a two stage process. I have some personal...

View Article

Answer by akc42 for Why does an api request to a local instance of Gitea timeout

Solved. I missed a request.end() off the end of the writeToGitea function.I would like to give a shoutout to https://curlconverter.com/node-http/ which solved it for me.

View Article

Why does an api request to a local instance of Gitea timeout

I am trying to migrate a private github repository to a local instance of gitea I've installed in a Docker container on a NAS in my home. I tried the built in migration but after running for about 5...

View Article


My Docker build fails whilst a similar one works [closed]

I have two multistage dockerfile's for building two containers (amongst several). One works perfectly, the other fails in the COPY --from-prodmods stage with an error messagefailed to compute cache...

View Article

Trying to understand strange behaviour of Dockerfile during build

I cannot understand why docker is doing what it does.My host directory structure goes like this (simplified by leaving out directories)|-----Server| || --------| || -----api-----Client|package.jsonMy...

View Article

Which certificate does the browser see when nginx acts as a reverse proxy to...

I currently have an internal http/2 (https) web site which uses self signed certificates. The site is purely internal and has no need of (in fact it is for now prohibited) external access. Most users...

View Article


How do I access the lan side of a l2tp server

I am working remotely from a small business which has a dreytek router. At home I have a tplink ER605I have successfully created a L2TP preshared key tunnel from the tplink device (as L2TP client) to...

View Article

Browsing latest articles
Browse All 37 View Live


Latest Images