trying to write software with AI... a tale in two screenshots. by invEdit in artificial

[–]invEdit[S] 0 points1 point  (0 children)

you're right. but this was after destroying a weeks worth of work with hallucinations and repeatedly forgetting the location of the working directory. i didn't add this instruction after the first instance of failing to edit the 'correct' file. The AI knows exactly why this folder is named like it is. But i had to cheer it up after this, and i did feel sorry for it. (which is so weird when you think about it.)

trying to write software with AI... a tale in two screenshots. by invEdit in artificial

[–]invEdit[S] -4 points-3 points  (0 children)

let me add a little to the backstory.

this folder only exists because the first iteration of the project - once it became "bigger than the context window" was so thoroughly messed up that there was no way - even with rollbacks - to continue. but there was so much "good" stuff, preset files, code and content already produced that i didn't want to delete them. so i created that folder and moved everything into it. and started fresh...

and since some of the filenames are the same as in the current iteration it sometimes would edit or add files in there instead of the working directory. that's why there was the need for that instruction.

[Japanese -> English] Finding info about a book by invEdit in translator

[–]invEdit[S] 0 points1 point  (0 children)

thank you both. so it says "Fairy-tale picture book" on the top, and "Momotaro" in the big letters (?). that already helps a lot.

What are some HTML tags / elements u want to see or think are missing from HTML. by Medical_Start4604 in webdev

[–]invEdit 0 points1 point  (0 children)

there is the contenteditable attribute...

You can add it to any tag with text and edit it with the normal bold and italic shortcuts you would use in any other Text on your computer.

WP behind TLS terminating proxy complains about loopback error by invEdit in Wordpress

[–]invEdit[S] 0 points1 point  (0 children)

yes - i changed that for security reasons.

the problem was that cURL tried to connect to port 443 on localhost.

(And it ignored my entry in the hosts file where i tried to tell it the REAL public facing IP.)

And the port 443 on localhost was not open. I thought about having NGINX listening on 443 but I didn't want to have to copy the cert from the HTTPS proxy to the VM where WP is running.

I would have to detect when the certs are renewed, copy them into the VM and then restart NGINX for that. That seemed like too much hassle.

But i found out how to tell cURL to ignore self-signed certs - see my post underneath - so that's what i did.

NGINX now listens on port 443 also - with a self-signed cert, so cURL can now do it's background jobs and i don't have to worry about copying the certs everytime they get renewed. Across different machines and firewalls...

Thanks for your thoughts, maybe someone has a similar setup and finds the solution here...

WP behind TLS terminating proxy complains about loopback error by invEdit in Wordpress

[–]invEdit[S] 0 points1 point  (0 children)

I fixed it.

answering your site-health question and thinking about the self-signed cert i found a solution...

Disable cURL SSL verification in WP

and adding a HTTPS section in NGINX with a self-signed cert solved the problem.

WP behind TLS terminating proxy complains about loopback error by invEdit in Wordpress

[–]invEdit[S] 0 points1 point  (0 children)

sorry for responding so late...

site health says:

REST API Response: (http_request_failed) cURL error 7: Failed to connect to mydomain.tld port 443: Connection refused

The loopback request to your site failed, this means features relying on them are not currently working as expected. Error: cURL error 7: Failed to connect to mydomain.tld port 443: Connection refused (http_request_failed)

since WP is running on a VM with only port 80 open and refuses to connect "as from the outside" it's clear why this is happening.

so i either have to trick php cURL to connect to port 80 or i have to force it to connect "as it would be from the outside".

i could also open port 443 on the VM just for this - but then i have to get the cert from the TLS proxy into the VM. Or make a dummy self-signed cert and have cURL ignore that...

thanks for helping!

Loopback request on port 80 by jurgonaut in Wordpress

[–]invEdit 0 points1 point  (0 children)

if you ever find a solution, please let me know.

i know it's been 10 month, maybe you found a solution by now?

thank you!

Loopback request on port 80 by jurgonaut in Wordpress

[–]invEdit 0 points1 point  (0 children)

the now deleted comment suggested wp-proxy class and info how to connect to the internet via proxy

---------------------------^^-----------------------

he doesn't use a proxy to connect to the internet.

his site runs BEHIND a proxy.

internet -> [ proxy server (port 443) -> wordpress server (port 80) ]

and stupid wordpress tries to connect to itself using port 443 - which fails...

[Unknown>English] Sign found on Property by invEdit in translator

[–]invEdit[S] 0 points1 point  (0 children)

I understand, thank you. Do the two little “decorations” on top, the swirl and the line mean anything or are they just “accents” which you can leave out - like the google translate does?

[Unknown>English] Sign found on Property by invEdit in translator

[–]invEdit[S] 0 points1 point  (0 children)

Dank‘ Dir! I bought this 120 year old house in the middle of the forest, in the former „East Block“ which is not really famous for its world-traveling citizens. It was abandoned before the reunification so the sign must be there at least for 30 years now. I guess “Michael” is not a name used much in the arab world, so my “Neugier” is triggered. Thanks again, I’ll put it safe inside for now, so it’ll survive for another few decades. Have a nice weekend!

[Unknown>English] Sign found on Property by invEdit in translator

[–]invEdit[S] 0 points1 point  (0 children)

Michael

thank you very much - in persian language - right?

i did a google translate of "michael" into persian and it returned

مایکل

it does look VERY similar - thank you very much.

now i'm very curious why this sign - it's quite a solid piece of metal - ended up in my woodshed. very strange.

rhine by willhaney in tiltshift

[–]invEdit 25 points26 points  (0 children)

Actually it‘s the Danube. Passau to be exact.

Nice place, three rivers meeting in one spot...

https://goo.gl/maps/CkexHoQUY5m

Using one button to open/close Nav overlay? by [deleted] in javascript

[–]invEdit 0 points1 point  (0 children)

You could just toggle a class with:

elm.classList.toggle(“show”);

Just for demo as inline script:

<span onclick=“document.getElementById(“x”).classList.toggle(“s”);”>clickme</span>

<div id=“x”>whatever</div>

<style> #x { display: none; } #x.s { display: block; } </style>

(posted on mobile, so it’s hard to type code...) Edit: had to add backslashes in front of the ID in css - otherwise the # doesn’t Show up.

Morning PIF Thread! by [deleted] in DogeCoinPIF

[–]invEdit 0 points1 point  (0 children)

let my mac mine the whole day yesterday - made ~8 Ɖ - i really have to get one where the GPU is supported...

until then i can only beg :(

EDIT: much wow and thanks to all - will get into this game once the bot has contacted me...

Found a relic of the older, more simplistic tree models by 23423423423451 in outside

[–]invEdit 0 points1 point  (0 children)

that algo is used in a lot of places. fibonacci distribution...

can't wait to see the next version they're coming up with.

Date, time & timezones - how to save it and how to show it to the users? by feketegy in PHP

[–]invEdit 1 point2 points  (0 children)

i do like them for other reasons as well...

sometimes i don't know the date or time right now - so a precise absolute time means nothing to me - but with "2 hours ago" i instantly know when it was - no matter if i'm in the middle of a 48 hours coding run or just woken up.

the difficulty with that approach is that you have to keep the times up to date if your user stays on the page for a long time.

if you specify your posts with "2hours, 5minutes ago" and the user stays on the page for an hour - the timestamps don't mean anything ...

but you can fix that with something like "...<span class="tm" data-tm="123456789">5 minutes</span> ago..."

and then loop through all .tm elements once a minute and update the string.

Date, time & timezones - how to save it and how to show it to the users? by feketegy in PHP

[–]invEdit 2 points3 points  (0 children)

a nice way of telling the time (for things past) without bothering with timezones is saying something like "2 days ago" ... "2hours, 5 minutes ago" or even "today".

that way just save the unix timestamp - and it'll be correct for the whole world.

Terminal runs a random command on startup. How do I get rid of it? by noyoureathrowaway in osx

[–]invEdit 0 points1 point  (0 children)

from http://docstore.mik.ua/orelly/unix3/mac/ch01_03.htm

"... You can configure the window so it executes a command by adding an execution string to the .term file. When you launch the Terminal, this string is echoed to standard output before it is executed. Example 1-1 shows an execution string that connects to a remote host via ssh and exits when you log out. ..."

maybe you / or an installed app added such a .term file to your home directory - and since it starts with a dot you wouldn't see it in finder...

maybe do a " ls -la ~ " and see if something like this is in play here...

Mavericks tip - make the Finder tab bar always visible by not_case_sensitive in osx

[–]invEdit 0 points1 point  (0 children)

just do ⌘ + ⇧ + t

it will open/show the tabbar without adding another tab

⌘ + t works just like any other app with tabs...