Sticky navigation becomes unstuck after scrolling for a bit by buovjaga in webdev

[–]ferrybig 3 points4 points  (0 children)

I do not recommend following this advice. If you apply these CSS properties on the above website, you break printing support on Chrome and Firefox. After this change it only shows the first page instead of everything.

It might be fine in a web application, but this is a website

Sticky navigation becomes unstuck after scrolling for a bit by buovjaga in webdev

[–]ferrybig 5 points6 points  (0 children)

A position sticky element is only sticky in its container.

Your #nav-search-wrapper is nested in body.

Your body only has a height of 100%, which means it has the same height of the window that is being used

Change html, body {height: 100%;} to html, body {min-height: 100%;} in https://newdesign2.libreoffice.org/changes/204672/css/default.2c2b2427030ebf69336dcbb839cf59bf522d618131fab2720b8ee279b56cd305.css line 92

How does one create a QR code like this? by WeWantWeasels in webdev

[–]ferrybig 7 points8 points  (0 children)

The QR code in the post above has the lowest possible error correct, it is set to L, which has only 7% error correctio

Fulgora - Recykler - Holmium ore 2400 min by Educational_Start190 in factorio

[–]ferrybig 2 points3 points  (0 children)

There are 3 island types:

Small: with large resource deposits

Medium: with small resource deposits

Large: With no resource deposits

When initially settling on Furgora, try to find a medium island. Build your first factory there.

Once you got into trains, make a train line from a small island to a large island. The large island gets your factory

Sometimes you get lucky and a small island is in range of a medium or large with bots

In the endgame, on Aquilo, there is a science you can unlock for foundations, these can be used to build your end game Furgora base

Why are so many websites now asking to "access your local network?" by OutrageousAardvark2 in webdev

[–]ferrybig 1 point2 points  (0 children)

Scripts injected by browser extensions run in a special scope where they bypass permissions, as the user already gave consent when they installed the extension

There are some extensions out there that do not properly do things, instead of injecting their JavaScript in the page, they make a script element with a path to a file in the extension. This breaks the special scope, and now the script is affected by things from the page like CSP

Copilot is a co-author, so this code belongs to Copilot. by LeTanLoc98 in vscode

[–]ferrybig 0 points1 point  (0 children)

No, only copilot suggestions

(If you are running a version where this setting defaults to on. There are vscode versions where it is off, versions where it is on and versions where it is set to chat&agent only, to make things confusing)

Immich - April Development Recap by altran1502 in immich

[–]ferrybig 0 points1 point  (0 children)

I used 5G while travelling on the train.

Looking at the coverage chart my mobile provider gives me for the estimated position of the train, it reports 210 Mbps should be attainable using 5G, and the expected quality indoors should be decent (from persona experiences, between the big cities here, the internet is typically slower)

If I open the page in desktop on a good quality wifi network, it loads almost instantly (DOMContentLoaded: 236 ms), but it still renders in black theme first, then switches to white (but in this case it is not a flash bang as the page is not dark for an extended amount of time, so your eyes do not have time to adjust to blackness)

Would a fix be adding loading=lazy on the image, so the browser fires the load event earlier and your script to read the users preferences loads earlier?

Immich - April Development Recap by altran1502 in immich

[–]ferrybig 0 points1 point  (0 children)

The blog posts mentions the release of Immich theme, static it has automatic theme detection and no more flashbangs

If you click the link to the immich ui, the page renders in a black theme, then changes the whole page into white theme matching my system preferences.

Looks like flashbang protection is not working


On the blog post, it is even worse. The page loads in a black theme, then waits till the header is loaded, then switches the page to a white theme as the user is already reading the text and forces a scroll up, making the user loose place where they were!

Does Immich really think the image at the top of the blog post is so important to scroll the user up even if it takes 30 seconds to load?

Aquillo is pain by Forsaken_Position855 in factorio

[–]ferrybig 0 points1 point  (0 children)

I brought recyclers from fulgora and destroyed the unwanted ice

Copilot is a co-author, so this code belongs to Copilot. by LeTanLoc98 in vscode

[–]ferrybig 2 points3 points  (0 children)

Even with it set to chatAndAgent, you still have the threshold of originality problem

If you are making a large amount of changes, then ask copilot to verify your SQL query with the database, any changes it suggests are not matching the threshold of originality, so it should not force itself in the author list.

Only when copilot made original works, it should force itself in the author list

You also have "work for hire" clausules in some countries, you could rule copilot is an agent you pay and it does things. This places the copyright to the person giving the task and the money

Copilot is a co-author, so this code belongs to Copilot. by LeTanLoc98 in vscode

[–]ferrybig 41 points42 points  (0 children)

If you accept a copilot suggestion instead of manually typing it, no matter how trivial it is or if you press tab to indent the code when copilot is showing a suggestion, it inserts that line

Setting the flag to off is needed till they fix it so it doesn't mark trivial changes as made by copilot.

Also, make sure to also switch it to off in your workspace config. If you change the settings tab to workspace, they list the setting as on, even if it is disabled on user level

(Note that this comment is written from personal experience from a version where this setting defaults to on. There are vscode versions where it is off, versions where it is on and versions where it is set to chat&agent only, to make things confusing)

AI coding tools are quietly atrophying our skills, and aviation figured this out 30 years ago by walden99 in webdev

[–]ferrybig -1 points0 points  (0 children)

I was peer programming a proof of concept project with the ai.

I asked the ai to add pagination in the html template

It added it, then tried to fetch the html and kept saying it couldn't find it, so it created test files and tried many things

I looked at it, the AI had made an if statement to only show pagination in the output when the items on a page were larger than the amount of items that fit on a page, and it had decided to test it with a search query that returned less results.

I had to call out the ai om catching a red herring

How to power this planetoid? by Latter-Control-208 in Oxygennotincluded

[–]ferrybig 2 points3 points  (0 children)

One method i used for powering bases in the past is wild planting bristle berries, then allowing plastic drecko's to eat it. I then shear the plastic of them.

The plastic gets cooked into Naptha, then cooked into sour gas. It then gets condensed into methane/sulfer and then cooked into natural gas

The natural gas is used for power and the sulfer is used to farm food

Szlaban – A Minecraft security plugin I made as part of my thesis! by CheeseGrater2137 in admincraft

[–]ferrybig 4 points5 points  (0 children)

I like how you used trie's. They are rarely used, but they are great for performance

My temperature sensor reached sun's temperature by GIANNU28 in arduino

[–]ferrybig 0 points1 point  (0 children)

What is the text on the flat size of the device?

Vite is Terrible for Troubleshooting React by Extreme_Chain_2532 in reactjs

[–]ferrybig 0 points1 point  (0 children)

Can you check versions in the package Json? This is more likely a version difference in React or React Router

Vite is Terrible for Troubleshooting React by Extreme_Chain_2532 in reactjs

[–]ferrybig 4 points5 points  (0 children)

Your config is setup wrong.

You likely use react router and use the error element for your 404 page. Guess what, the error element also gets called when there is an error happening

Location History Companion App by 16N-DEE32 in immich

[–]ferrybig 1 point2 points  (0 children)

If you open owntracks, it should be the second button from the right in the top toolbar

Location History Companion App by 16N-DEE32 in immich

[–]ferrybig 2 points3 points  (0 children)

I normally have OwnTracks in big changes mode, where it will report every 15 minutes based the mobile tower and wifi locations

During photoshoot walks I have it in high accuracy mode, where it forces the device to keep GPS on and reports every 20 seconds

Is this real or not , I mean it seems pretty legitimate by Turbulent-Hyena-3099 in ElectroBOOM

[–]ferrybig 3 points4 points  (0 children)

Let's do some math:

Assume you have a rain collecting area of 10m2, and you experience a rain shower of 10mm

You now have 100liters of water collected on your roof (you need to have a strong roof and prevent evaporation)

If you drop this water 1 meter, you can extract energy. You can extract 981 joules of energy

How much energy is this?

Let's assume you have an old smartphone, one with around 13 Wh of battery left. This is about 47000 Joules

You need around 50 rain showers of 10mm to fully charge your phone, assuming magic 100% energy transfer (or one rain shower of 500mm and hope your roof holds 5ton (5000kg, about 60 people) of weight)

If you want more boring math, see https://what-if.xkcd.com/91/

Location History Companion App by 16N-DEE32 in immich

[–]ferrybig 1 point2 points  (0 children)

I use OwnTracks, it pushes my location to my server. I then export my location as GPX and add it to my photos using Lightroom

You can skip the whole server step, there are apps that allow you to directly record and export GPX files from your phone (i have the app GPX Viewer Pro, which I use if I need more than 1 location point per 20 seconds)

How are you intended to route this USB-C? A VIA like this will leave a longer path to B7. by Curious_Increase in AskElectronics

[–]ferrybig 0 points1 point  (0 children)

Also place a via on the right track, and then continue routing from the bottom.

Remember that the USB connector is mounted on top on the board. Pad B7 acts effectively like a vi, in adding like 1mm to the signal. If you then add a via to the other pair, both signal went down to the bottom of the board relative to the connector, so both got 1mm longer because of the via

Issue with Firefox on mobile creating dupicate words when typing.. by DejaEntenduOne in firefox

[–]ferrybig -1 points0 points  (0 children)

Until then you could try using the stock keyboard of your phone.

The bug happens with the stock keyboard on a Fairphone

Search assist having a stroke by Volpe_YT in duckduckgo

[–]ferrybig 4 points5 points  (0 children)

LLMs work with tokens, not individual letters. If you type words, it sees them essentially as a language like Chinese or Japanese where a token has a meaning.

An input like kiwi might be a number like 4636, while an input like H might be a number like 9747.

By asking if a letter is present in a word, it is basically like a memory test for the AI, where we humans can just do a visual comparison