Web Development

maniacalmanicmania , in nginx, Default server do not works ! [solved]
@maniacalmanicmania@aussie.zone avatar

What is it that you want to happen? Sorry it is a bit unclear in your post.

Rick_C137 OP ,
@Rick_C137@programming.dev avatar

I wanted to have a default server that catch ~wrong DNS query to the server

Solution

I don't know how to link to my previous lemmy post, so here it is again

server {
    listen 443 ssl;
    server_name _;
    ssl_certificate /etc/nginx/ssl/catchall.crt;
    ssl_certificate_key /etc/nginx/ssl/catchall.key;

    error_page 404 /404_CatchAll.html;

    # Everything is a 404
    location / {
        return 404;
    }

    location /404_CatchAll.html {root /var/www/html/;}
}
Rick_C137 OP , in nginx, Default server do not works ! [solved]
@Rick_C137@programming.dev avatar

ok I've found something that ~works !

	server {
		listen 443 ssl;
		server_name _;
		ssl_certificate /etc/nginx/ssl/catchall.crt;
		ssl_certificate_key /etc/nginx/ssl/catchall.key;

		error_page 404 /404.html; #at /var/www/html/

		location /404.html {internal;}

		return 404;
	}

so i get the default 404 html from nginx. but not the one that I specified error_page 404 /404.html;
any ideas ?

Rick_C137 OP ,
@Rick_C137@programming.dev avatar

The full working code:

server {
    listen 443 ssl;
    server_name _;
    ssl_certificate /etc/nginx/ssl/catchall.crt;
    ssl_certificate_key /etc/nginx/ssl/catchall.key;

    error_page 404 /404_CatchAll.html;

    # Everything is a 404
    location / {
        return 404;
    }

    location /404_CatchAll.html {root /var/www/html/;}
}
NegativeLookBehind , in nginx, Default server do not works ! [solved]
@NegativeLookBehind@lemmy.world avatar

Just guessing, but should it be pointing at 404.txt, not /404.txt

Rick_C137 OP ,
@Rick_C137@programming.dev avatar

line 5 you mean ?

error_page 404 /404.html; #this one ?
aluminium , in Google no longer developing Material Web Components

It sucks for people using it, but I'm glad. Material 3 is an abomination i.m.o.

moon , in Google no longer developing Material Web Components

Pretty sure I only actually saw it being used by Google anyways. I love it for native applications on Android, but couldn't care less about it on the web.

Matty_r , in Google no longer developing Material Web Components
@Matty_r@programming.dev avatar

Is this the same thing / related to the MUI components?

mozz Admin , in Google no longer developing Material Web Components
mozz avatar

Noooo

This was like the one and only unequivocally nice and productive thing that Google did

If you fuckers take away Google Fonts next I’m gonna take a big shit outside your headquarters see if I don’t

555_1 ,

Can you imagine all those cdn fonts breaking? Times new Roman for everyone!!

mozz Admin ,
mozz avatar

Only $4.85 per month (non commercial; otherwise contact us for enterprise pricing) if you want to keep it working. Very reasonable. Bulk discounts for multiple fonts. Sign up today.

555_1 ,

I’ll just host them myself for that price.

snowsuit2654 ,
@snowsuit2654@lemmy.blahaj.zone avatar

At least we have > font-family: sans-serif;

555_1 ,

If they remembered to set that default. But I guess they deserve to be punished if they didn’t.

Feathercrown ,
jwr1 ,
@jwr1@kbin.earth avatar

I think Flutter (made by Google) is pretty awesome.

Zagorath ,
@Zagorath@aussie.zone avatar

Flutter and Dart have also seen significant hits, and frankly I think they're unlikely to see significant continued improvement.

jwr1 , (edited )
@jwr1@kbin.earth avatar

What kind of hits? I haven't heard anything.

In fact, they just released a video a month ago detailing some of the areas they're working on, including dart macros, their new impeller engine, performance updates for the web platform, and more.

Zagorath ,
@Zagorath@aussie.zone avatar

Hmm. I recalled a story from 2 or 3 months ago about them having laid off the Flutter and Dart team. Looking at it more closely it looks like the story was actually just that they had laid off some staff from that team.

asyncrosaurus ,

Awesome you say? Sounds like a good candidate for being discontinued by Google.

jwr1 ,
@jwr1@kbin.earth avatar

lol, I hope not.

taanegl ,
@taanegl@beehaw.org avatar

Too late, the clock is already ticking. We only need to count the years after the fact when it hits Google Graveyard

jwr1 ,
@jwr1@kbin.earth avatar

I think Flutter (made by Google) is pretty awesome.

Lemming6969 ,

Material is flat shit

lauha ,

I will have a carpenter and a plumber redo my toilet so that I will forever be shitting in their general direction.

cupcakezealot , in Google no longer developing Material Web Components
@cupcakezealot@lemmy.blahaj.zone avatar

pixel illustrated graphic design of things like google now > material design 1 > everything that came after it

vikingtons ,
@vikingtons@lemmy.world avatar

Do you have examples of the first one? Is this like, the designs we saw on the original Google now cards?

cupcakezealot ,
@cupcakezealot@lemmy.blahaj.zone avatar

yeah the vector illustrated google now cards :)

vikingtons ,
@vikingtons@lemmy.world avatar

I feel this. I strongly associate that design language they had with my studies.

Very sunny and relatively care free 😅

Tramort , in Google no longer developing Material Web Components

MWC is not deprecated or going away, but Material Design is no longer actively staffing its development.

I'm skeptical.

breakingcups ,

I wonder what they consider deprecated.

superb ,
@superb@lemmy.blahaj.zone avatar

I can’t wait for material design to fully die. One of the ugliest design trends

mark , in htmx 2.0.0 has been released!
@mark@programming.dev avatar

Look at the frameworks go!!! I know I know. "its not a framework"...

ericjmorey , in Android Studio (VSCode.dev Alternative)
@ericjmorey@programming.dev avatar

repl.it is probably an option here.

But I'm curious why you think that programming in a browser is better than running on your own hardware.

XTL ,

Probably because they've experienced android studio on their own hardware.

onlinepersona , in Infinite-Scrolling Logos In Single HTML Container And Pure CSS

Why in the world was marquee removed? It probably does a better job at scrolling than CSS. Look at everything that had to be written just to mimic a fraction of its power!

To make it efficient, you'd also have to add and remove elements out of sight to save memory. Pure CSS doesn't do that.

Anti Commercial-AI license

towerful , in Is it possible to get the value of a CSS property in an HTML element, using XPath 1.0?

A quick Google suggests what you have.

If the code you have quoted is verbatim what you have tried, seems like you need to extract the parentheses and possibly a single or double quote, depending on the source css. The example source you have given has a single quote.

select-before(select-after(//div/@style, "backgound-image: url("), ")") 

Should be (notice the extra ' relating to url('...url'))

select-before(select-after(//div/@style, "backgound-image: url('"), "')")

But I don't think that would cause xpath to fail... It would just extract the wrong value

Edit:
Further reading suggests xpath 1.0 does have limited functionalities. But, like you, can't find anything concrete.

spartanatreyu , in Is it possible to get the value of a CSS property in an HTML element, using XPath 1.0?
@spartanatreyu@programming.dev avatar

Asking just because I'm curious... why are you using xpath?

Also, is this for a website you control or for some else's website?

If you're rendering the page (in a browser, e2e test-runner, spider bot, etc...), have you considered running some js on the page to get the image? Something like: const imagePath = document.getElementById('exampleIdOnElement').style.backgroundImage

Kalcifer OP ,
@Kalcifer@sh.itjust.works avatar

Asking just because I’m curious… why are you using xpath?

I'm using a service called FreshRSS that automatically fetches RSS feeds. It has a feature that allows you to create custom feeds for sites by scraping the HTML with user specified XPath expressions.

I know that this isn't exactly "web development", but it uses webdev tools, and I wasn't entirely sure where else to post this.

If you’re rendering the page (in a browser, e2e test-runner, spider bot, etc…), have you considered running some js on the page to get the image? Something like: const imagePath = document.getElementById('exampleIdOnElement').style.backgroundImage

JS is, unfortunately, not possible here. I can only use XPath expressions.

DuffmanOfTheCosmos , in I made a thing

This is cool, but it bothers me that the inhale cycle doesn't end with completely filling the circle with blue. I feel unfulfilled, like when the DVD player screensaver doesn't hit neatly into the corner of the screen when it totally looks like it's going to

spartanatreyu OP , (edited )
@spartanatreyu@programming.dev avatar

Lol, well I could change it, but it was based on the gif at https://quietkit.com/box-breathing/

I think it's because you're not supposed to expand your lungs so much that they feel like they're going to burst.

But if you scroll to the bottom of the css and look at line 69, you can change transform: scale(90%); to transform: scale(100%); to see if you like it better.

DuffmanOfTheCosmos ,

Haha nice, thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • webdev@programming.dev
  • test
  • worldmews
  • mews
  • All magazines