Web Development

3825 readers
2 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
1
2
 
 

Specifically: Because the .mu registry (TLD operator) is a ccTLD, it can re-price any domain at any time.

This is a follow up to: https://programming.dev/post/27587527.

Conclusion:
Carefully read the terms and conditions if you choose to register a ccTLD. They are not bound by the ICANN Registry Agreement.

Gandi contacted the .mu registry about the price increase, and the registry has assigned premium pricing to all 2-character and 3-character domains regardless of whether they're premium or not. This would not be allowed if .mu was a gTLD. The .mu registry will not be grandfathering any domains registered and continually renewed since before premium domains were invented. I have reached out to the .mu TLD registry directly, and I am waiting to see if my personal plea will sway them. If they don't change their minds, I'll lose this domain on Tuesday.

Timeline:
I went to renew my domain about two weeks before it expiring, and discovered the renewal price went from $170 to $5,600 (or 32 years price for just one year). Usually, I do this much sooner, but my life has been crazy. Even three weeks ago I was barely functioning because of a sinus infection.

I contacted Gandi, my registrar, and at first they were less than helpful. Eventually, they did escalate my ticket to their legal department who contacted the .mu registry.

Gandi informed me that the .mu registry reclassified all 2-character and 3-character domains as premium. Gandi was not notified of the change, so that explains why I was not notified. Gandi said they do not agree with the reclassification of these domains—including mine. But, unfortunately, it's not up to Gandi. They requested that the .mu registry reconsider but have had no reply.

I then emailed ICANN about this because I was under the impression that the Registry Agreement governed all registries, and the reclassification is clearly a breach of the agreement. Unfortunately, ICANN let me know that this agreement doesn't apply to ccTLDs.

I have now sent an email directly to the .mu registry, hoping that a personal plea may make a difference.

I am not optimistic. In the end, I will probably lose the domain. I will make sure to complain about .mu domains as much as possible if I lose it. I will also be weary of registering any ccTLDs in the future. I only have a couple.

It's been a wild ride. Many points where I was almost hopeful, but it's probably just another case of the little guy getting screwed, and the big guy too rich to care.

3
4
5
 
 

This may not be a appropriate post for this community, and is not strictly web development. It is browser related, specifically qutebrowser, but i don't think the behaviour is qutebrowser specific, it may be chromium specific though, but i don't know how to test on any other browser because i hardly know js. If this is not valid for this community, please do tell.

I was writing a way to redirect other lemmy instance links to my home instance. I am basically trying to write lemmyverse.link (it's working is explained in the following issue, but essentially we just ask the instance where we want to be redirected, if they have the post, if so, they return json, which will have post_id in that instance, and we can use that.

https://github.com/RikudouSage/lemmyverse.link/issues/14

I think I have implemented that somewhat successfully, and it works for all the instances that i have tried, except lemmy.world (why could it not be some tiny instance which i could ignore). For lemmy.world, browser ui shows as if it is loading. I checked dev tools, and we do get the redirection (see the post_id change below in the attched video, and when i click that, i get redirected to correct page). It shows a red errors, but i can not find how to find errors (none of tabs show any errors).

https://envs.sh/s/NhX_dHEZh52CD1MwcXXLwg/cSI.mkv

(the video show succesful redirection for some instance, and unsucceful redirection for other)

I hope someone who knows how to do this help, I could not find anything wrong, and hence am not able to even search for errors online.

code for anyone wanting to see it


import qutebrowser.api.interceptor
import re
import requests
import sys
def match(patterns, url):
    for pattern in patterns:
        if re.match(pattern, url):
            return True
    return False
with open('/home/sg/data/dev/program-data/lemmings_coookie_jwt', 'r') as f:
    cookie = f.read().strip()
def resolve_lemmings_object(query):
    url = "https://lemmings.world/api/v3/resolve_object"
    params = {"q": query}  # Pass the query as a parameter
    headers = { "Cookie": cookie}
    try:
        response = requests.get(url, params=params, headers=headers)
        response.raise_for_status()  # Raise HTTPError for bad responses (4xx or 5xx)
        return response.json()['post']['post']['id']
    except requests.exceptions.RequestException as e:
        print(f"Error: {e}")
        return None

def per_website_rules(request: qutebrowser.api.interceptor.Request):
	lemmy_patterns = [ r"crazypeople\.online", r"discuss\.online", r"discuss\.tchncs\.de", r"feddit\.nl", r"feddit\.org", r"feddit\.uk", r"jlai\.lu", r"lemm\.ee", r"lemmy\.blahaj\.zone", r"lemmy\.ca", r"lemmy\.cafe", r"lemmy\.dbzer0\.com", r"lemmy\.ml", r"lemmy\.one", r"lemmy\.run", r"lemmy\.selfhostcat\.com", r"lemmy\.wtf", r"lemmy\.zip", r"mander\.xyz", r"ponder\.cat", r"programming\.dev", r"sh\.itjust\.works", r"slrpnk\.net", r"sopuli\.xyz", r"toast\.ooo", r"lemmy\.world", r"spaffel\.social" ]
	post_pattern = [ r"^/post/.*$" ]
	if match(lemmy_patterns, request.request_url.host()) and match(post_pattern, request.request_url.path()):
		url = request.request_url.scheme() + "://" + request.request_url.host() + request.request_url.path()
		# post_id_in_my_prefered_instance = os.popen("lemmy-redirect " + url).read()
		post_id_in_my_prefered_instance = resolve_lemmings_object(url)
		request.request_url.setHost('lemmings.world')
		request.request_url.setPath('/post/' + str(post_id_in_my_prefered_instance))
		try:
			request.redirect(request.request_url)
		except:
			pass

6
 
 

What a gorgeous demo page!

7
 
 

Biome is a formatter and linter for JavaScript, TypeScript and other web languages.

With this partnership, we aim to develop TypeScript-compatible type inference that works out of the box for use in our lint rules.

8
9
10
11
12
 
 

Update 2025-04-04 Here: https://programming.dev/post/28065778

I have had a two-letter .mu domain since 2011. I went to renew it this year, and the renewal price is showing as $5,600 in my cart, but the renewal price on the registrar’s website says $170 as it had been for many years.

I have put in a ticket to get an explanation, but I fear it’s some “premium domain” bullshit from the TLD operator.

I have two weeks to figure this out. I’m really hoping I can appeal somehow. Does anyone have any experience negotiating with a TLD operator?

I tried adding it to the cart of a different registrar for transfer, and although their transfer price for this TLD is listed as $75, it’s showing $5,516.50 for the transfer price when it’s in my cart.

My site is just a fun artistic site with no ads, tracking, store, or anything. I spend $170 a year on it and don’t make any money from it.

I have tons of other domains, but it’ll hurt letting this one go. Should I give up on any hope of keeping it?

Even if I could somehow get donations to keep it alive this year, I’d just lose it next year. I don’t have thousands to spend on it each year. I’m so sad about this.

13
10
Biome v2.0 beta (biomejs.dev)
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]
 
 

Biome lead here, so feel free to ask anything!

Biome is an integrated linter and formatter with support for JavaScript, TypeScript, CSS, and more.

Highlights of the release:

  • Plugins: You can write custom lint rules using GritQL.
  • Domains: Domains help to group lint rules by technology, framework, or well, domain. Thanks to domains, your default set of recommended lint rules will only include those that are relevant to your project.
  • Multi-file analysis: Lint rules can now apply analysis based on information from other files, enabling rules such as noImportCycles.
  • noFloatingPromises: Still a proof-of-concept, but our first type-aware lint rule is making an appearance.
  • Our Import Organizer has seen a major revamp.
  • Assists: Biome Assist can provide actions without diagnostics, such as sorting object keys.
  • Improved suppressions: Suppress a rule in an entire file using // biome-ignore-all, or suppress a range using // biome-ignore-start and // biome-ignore-end.
  • HTML formatter: Still in preview, this is the first time we ship an HTML formatter.
  • Many, many, fixes, new lint rules, and other improvements.
14
15
16
 
 

cross-posted from: https://feddit.org/post/9405509

Untalended guy in programming here.

  • Is there a way to change the flavicon(icon in the tab preview as I understand) to another fediverse platform?

I currently have "mouse in flag colors" as an icon based on feddit org. But I would prefer for example the feddit IT logo - orange mouse, clean design)

Is that possible to change with like tampermonkey addon or something somehow in a rather easy way? I have an addon called "TwitterBird" for Mozilla replacing all X logos with the old blue twitter logo

  • Or is there even a better way to accomplish this without creating an additional account to swap to all the time?
17
 
 

I'm a student who is currently developing web applications and web tools. I've created this data visualization tool and it's completely free to use. I have developed it with HTML, CSS and JavaScript. I'm still a newbie in programming and this is my very first project. So, if you have any advice or honest opinion then plz share it with me.

18
19
20
21
 
 

I tested 12 LLMs — 10 running locally and 2 cloud-based — to assess their accuracy in generating alt-text for images.

I have 10,000 photos on my website. About 9,000 have no alt-text. I'm not proud of that, and it has bothered me for a long time.

22
 
 

I didn't install a flatpak or snap from the software store.

What kind of package did I install through the command line? Thanks I'm a newb.

23
24
 
 

I'm on Zorin(Ubuntu) and when I open my HTML file with Firefox, everything is rendered correctly.

When I open the same HTML file with Brave or Waterfox, the CSS is not rendered.

Everything is rendered correctly for any browser if I first open the HTML file in VSCode then create a Live Server for it.

Is there a default setting in other browsers keeping the CSS in local HTML file from rendering? Thanks in advance.

25
 
 

First off, I've been loving vanilla-extract for the past 10 months. 😊

The only thing I really missed was the ability to sort CSS properties. Since there wasn't an ESLint plugin for that, I decided to create my own.

@antebudimir/eslint-plugin-vanilla-extract offers CSS property ordering (alphabetical, concentric, and custom), auto-fix capabilities, and supports multiple Vanilla Extract APIs.

If anyone wants to give it a shot, you can find more details in the readme. Looking forward to hearing your feedback.

view more: next ›