Posts: 79,965
Threads: 4,858
Joined: May 2016
I did find value in her video for one central reason...
I'd never heard anybody talk about those acidic foods eating through the can.
Sure enough, it's true.
Anytime I've had a can go bad, it was always either some kinda tomato based situation, or something like pineapple.
Posts: 5,012
Threads: 114
Joined: May 2020
(04-21-2023, 01:47 PM)Chatwoman Wrote: What I've learned from watching these prepper/homestead vids is that a lot of these staple foods will keep for like 5 times longer (at least) if they're simply repackaged into a jar with a nice tight lid.
I buy a few organic spices just to get the glass jars. They don't retain the smell and flavor of the original contents after you wash them. I like to reuse them for fresh garlic and ginger root.
Posts: 79,965
Threads: 4,858
Joined: May 2016
Yeah, it seems like ANY glass container should be hoarded the shit out of for this purpose.
Posts: 5,012
Threads: 114
Joined: May 2020
(04-20-2023, 03:05 PM)user328 Wrote: The JavaScript moon phase was always hosted on our own sites. It was a tiny script, a small photo of the full moon, and a single pixel black image that was used to fill in the shadow.
The modern version uses moon phase emojis. It's a lot more efficient since it prints a single Unicode character rather than calculating the position of all those black pixels for the shadow. But it's not as pretty as the old school version that has a real photo of the moon.
https://jasonsturges.medium.com/moons-lu...219acbfe6e
Posts: 5,012
Threads: 114
Joined: May 2020
Another modern version uses SVG to draw a picture directly on the HTML page. Again, probably more efficient, but they haven't made an effort to make the moon look realistic.
https://github.com/tingletech/moon-phase
Posts: 5,012
Threads: 114
Joined: May 2020
The old school version is proving impossible to find. It has been scrubbed from all of the old free JavaScript sites. I'll probably have to adapt one of the new CSS versions to work with a background photo of the moon.
fungisfucked
Unregistered
04-22-2023, 11:02 AM
wont work dev fuckwits@youtube its gone i zoom out to 80 now they putting only 8 i want 12 some boolshit ads i block its lined up for assholes
Posts: 5,012
Threads: 114
Joined: May 2020
(04-22-2023, 11:02 AM)fungisfucked Wrote: wont work dev fuckwits@youtube its gone i zoom out to 80 now they putting only 8 i want 12 some boolshit ads i block its lined up for assholes
I will fuck Google in the arse later. I have other fish to fry right now.
Posts: 5,012
Threads: 114
Joined: May 2020
(04-22-2023, 10:47 AM)user328 Wrote: I'll probably have to adapt one of the new CSS versions to work with a background photo of the moon.
I banged this one together from two scripts and a photo of the moon.
https://imgur.com/a/B6267qE
One of the scripts gives a percentage (new, crescent, quarter, gibbous, and full moon) and a boolean value for waxing or waning. The other draws the shadow and edge blur in CSS. I combined them into one script that can be used like so:
https://pastebin.com/K1QrNtUg
I'm gonna tweak it some more to get rid of the border and allow you to set the diameter in your stylesheet. Maybe add some other parameters you can tweak in the stylesheet.
Posts: 5,012
Threads: 114
Joined: May 2020
(04-22-2023, 01:27 PM)user328 Wrote: https://imgur.com/a/B6267qE
Yeah, I got the shadow on the wrong side. I figured that would happen. Fixed it.
https://imgur.com/a/sQk1ICU
Posts: 79,965
Threads: 4,858
Joined: May 2016
Fucking computer magic...
You amaze me Dev.
Posts: 79,965
Threads: 4,858
Joined: May 2016
I'm not gonna add anything to the site though...
I have the images that are there set up and spaced in a specific way that doesn't piss me off.
04-22-2023, 07:52 PM
(04-22-2023, 01:18 PM)user328 Wrote: I will fuck Google in the arse later. I have other fish to fry right now.
that is why we love you lady dont dot C# do C++ you are a hot babe del gato
Posts: 5,012
Threads: 114
Joined: May 2020
Yeah, I wasn't really expecting you to add a moon phase, MO. It annoyed me that there wasn't a good one available on the Web anymore, so I decided to do something about it. It's not likely I'll put one on my site either. Maybe I'll offer it for download to others who may be interested.
My solution still has major issues that I'm not exactly itching to address at the moment anyway. The two original scripts are from different authors, and weren't really intended to play together. I think the second one may be undoing some of the work the first one does, resulting in inconsistent behavior. I'll fix it eventually, when the mood strikes.
Posts: 5,012
Threads: 114
Joined: May 2020
Here's a very accurate one. It uses multiple images of the moon encoded as text strings in JavaScript, making it quite portable.
https://imgur.com/a/eUX3oX5
The original script was written by Graham Fairweather and released under the GPL license:
https://jsfiddle.net/Xotic750/YQqcj/
I refactored it as a JavaScript object, moved the encoded images into a separate file, and moved some Date and Math related functions to their respective built-in JavaScript objects.
How to use it:
https://pastebin.com/Mzu8d1RA
Posts: 5,012
Threads: 114
Joined: May 2020
(04-23-2023, 05:10 PM)user328 Wrote: I refactored it as a JavaScript object, moved the encoded images into a separate file, and moved some Date and Math related functions to their respective built-in JavaScript objects.
Final revision.
I put the images back into the main script file, but at the very end. The reason I moved them out in the first place was because they take up a couple thousand lines in a text editor, which was very annoying, and there was no way to collapse them so I could see the code. Now they're tucked out of the way at the end of the file, and the whole shebang is conveniently packaged in one file.
In the first version I posted, you could change the diameter in CSS. I wanted to keep that ability, so I rewrote the render function. The results aren't completely satisfactory, as the small images become pixelated when scaled up. It is what it is.
Anyway, here's the complete JavaScript file, MoonPhase.js:
https://pastebin.com/BfLxgxvp
and here's the example usage in HTML:
https://pastebin.com/Scwt8Y6Y
That's all I'm gonna say about that.
Posts: 5,012
Threads: 114
Joined: May 2020
(04-23-2023, 06:03 PM)user328 Wrote: That's all I'm gonna say about that.
Well, I will say this about Gen Z "coders."
If you're going to write a complex function that could be generally useful in a broad variety of applications, why lock it away inside another function where it can only be accessed from inside that function?
Use your fucking heads. Write something once, and reuse it everywhere applicable.
Modern JavaScript is unreadable garbage. Whoever convinced you people that "Durr-hurr, OOP is bad!" is a fucking idiot. No sane person is going to build a complex system with procedural code. Well, maybe the guys who created Unix would, but they didn't have that many options back then.
Get over this idea that programming is just "coding." It's not. A goddamned monkey can sling code.
Posts: 79,965
Threads: 4,858
Joined: May 2016
04-23-2023, 07:10 PM
(04-23-2023, 07:07 PM)user328 Wrote: Well, I will say this about Gen Z "coders."
Get over this idea that programming is just "coding." It's not. A goddamned monkey can sling code.
FUCKING GEN Z CAN'T DO ANYTHING RIGHT, AMIRITE?!?!?!?!/1/
Posts: 79,965
Threads: 4,858
Joined: May 2016
I'm kidding, I don't hate Gen Z.
I am not gonna be one of those people who picks on entire generations.
That's some boomer shit...
Posts: 5,012
Threads: 114
Joined: May 2020
They can probably do something right, but I don't know what it is.
It was probably a Millennial, or even a Gen Xer, who taught them OOP is bad. They need to stop believing everything they hear though.
|