Better HN
topnewbestaskshowjobs
Log inSign up

LocalPCGuy

1,031 karma · joined Jul 24, 2011 (15y ago) · 619 submissions

Submissions

comment 1y ago · link · parent

Both of these are basically strawman arguments - there are legitimate, non-tribal reasons to be against the actions taken re: tariffs and the purported anti-corruption tasks. For example, a person can be strongly against government corruption but also be strongly against the current efforts/methods being used for a multitude of reasons. And similar for tariffs. (Not having those debates here, just pointing out that I don't believe those examples hold up.)

comment 1y ago · link · parent

As someone with 15+ years of experience, a lot of that FE specific, that is the advice I always give newer devs if asked. Learn the fundamentals of Javascript, HTML, CSS (it's like a 3 legged stool, even if the JS leg is oversized in the days of web apps). If you know how to program, and you know the fundamentals, you can work in whatever framework is thrown your way.

Now, practically speaking, that's actually probably better advice for someone with a job and 1-2 years in. To get an initial foothold in the industry, people often need to specialize in one specific thing (React at the moment most likely), in order to be able to demonstrate enough competence to get that initial job and so I understand how fundamentals can be backburnered initially. But I recommend devs don't let that initial success lock them into that framework - that's the time to get back and learn all the fundamentals, go wide, learn a couple other frameworks even so it's easy to compare and contrast the strengths/weaknesses of each.

And you will want to be well-versed in the framework you currently use day to day, knowing best practices, architecture patterns that work and those to avoid, etc. Knowing the fundamentals will help, but there will be framework specific things that will change from framework to framework, even code-base to code-base sometimes. So it's always going to be a bit of a balance. But long-term, IMO, being well-versed in the fundamentals affords you the most flexibility and employ-ability long-term.

comment 1y ago · link · parent

Not the author, but thought it was pretty nice.

- https://github.com/DigitallyTailored/Classless.css

I know this isn't the first, I have this note from a previous HN discussion:

- https://github.com/andybrewer/mvp

- https://github.com/kognise/water.css

- https://github.com/xz/new.css

- https://github.com/vladocar/Basic.css

- https://github.com/oxalorg/sakura

- https://github.com/igoradamenko/awsm.css

- https://github.com/hawkz/gdcss

- https://github.com/emareg/classlesscss

- https://github.com/vincentdoerig/latex-css

- https://github.com/dbohdan/classless-css

- https://picocss.com/examples/preview/

- https://github.com/kevquirk/simple.css

Aggregate tool: https://dohliam.github.io/dropin-minimal-css/

64.

A Drop-In CSS Framework That Transforms Bare HTML into Modern Designs(digitallytailored.github.io ↗)

4 points · by LocalPCGuy · 1y ago · 1 comment

comment 1y ago · link · parent

Just adding on to number 4 - I didn't realize there was additional information explaining the pattern further below the interactive challenge for the first couple steps. When completed, it should then show the explanation and a button to continue.

comment 1y ago · link · parent

I was excited to see this as just last night I was using FFmpeg to combine digital (legally owned) movies with multiple parts into a single MKV file. It worked great, the one thing (and this is undoubtedly just a knowledge problem on my part), is I could not get it to copy/include subtitles from both parts. I have a feeling I might need to extract the subtitle files and combine them and then re-include the combined version, but was hoping there would be a solution in this site for doing something like that. Unfortunately, I didn't even see the combine as one of the examples.

For reference:

One-liner:

> ffmpeg -loglevel info -f concat -safe 0 -i <(for f in *.mkv; do echo "file '$(pwd)/$f"; done) -c copy output.mkv

Or the method I ended up using, create a files.txt file with each file listed[0]

> ffmpeg -f concat -safe 0 -i files.txt -c copy output.mkv

files.txt

> file 'file 1.mkv' > file 'file 2.mkv' > # list any additional files

0: https://ma.ttias.be/use-ffmpeg-combine-multiple-videos/

comment 1y ago · link · parent

The scenario I was envisioning was a simple as a developer that worked at that startup added DankStartup email to their Github account, committed a bunch of code. Company shut down, but dev doesn't think to disassociate that domain/email. Malicious actor uses this technique to then sign into the Github account, gaining access to that developer's account, not just the DankStartup repos which were probably disabled after non-payment.

Now, obviously some fault in that scenario lay with the person who 1) used the same account, and 2) didn't remove the old email once the startup failed. But I'm just using that as a kind of example - there may be other accounts as others have said that need to be accessible years down the line, like financial records and the like, regardless of whether the company is still around.

comment 1y ago · link · parent

You're assuming they actually care to distinguish. But real answer, barring a brief period where some users may get a cached version, they can likely just use the date of change to determine before and after if necessary.

comment 1y ago · link · parent

Same sentiment here - I feel like this is the largest challenge for people that would otherwise be ideal candidates. I wasn't even willing to move off one of the largest brokerages for the semi-recent Robinhood 3% "transfer deal" just because even there I felt like it was too much risk (granted, that was for a retirement account).

For someone that has quite a bit of my portfolio in very low cost index funds, something like $40k does seem like a relatively low "fee" for avoiding risk, especially considering it's spread over many years.

That said, I do like the idea, and hopefully there are enough folks willing to tolerate the risk to provide a viable alternative to the big status quo brokerages.

comment 2y ago · link · parent

And not very accessible as well (fails color contrast standards, just over 3:1, 4.5:1 is minimum). I thought light grey text on a light background finally went out of style a few years back.

comment 2y ago · link · parent

In general, studies I've looked at show that even with unequal consumption, even those in the "high consumption" (and therefore probably higher fluoride ingestion) don't lead to what would be considered an excessive amount over the recommended exposure limits. Not saying it couldn't happen of course, there are outliers. Overall exposure should be considered for children.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2697936/

> The probability of exceeding the UL of 7 mg fluoride per day via a normal diet was estimated to be very low in the Belgian adult population.

Note: it's hard to find studies like this that focus on kids and not adults, but except for the difficulty in getting accurate responses from kids, that shouldn't lead to a difference. However given that the upper level is lower in children, it's a much tighter window that could then be exceeded by other sources of fluoride like swallowed toothpaste or food supplements with fluoride. So caution is probably warranted.

An Irish study found no risk of excess consumption by adults or children (excepting "misuse of toothpaste"):

- https://www.irishtimes.com/news/health/fluoride-in-food-drin...

- https://www.fsai.ie/publications/total-diet-study-2014-2016-...

comment 2y ago · link · parent

It should be noted that this ruling has numerous problems from a scientific point of view, as does the NLP report that was relied on.

I'm not opposed to validating safety of anything we're doing at a significant amount like this, but I remain heavily skeptical of this case and it's conclusions. And I have concerns about the knee-jerk reactions being seen already in some communities. I know some (if not a lot) of the confusion is the media headlines, but the ruling does seem to lend itself to being reported with significant bias and misrepresentations.

> Chen, in his ruling, leans heavily on the NTP report. Even though the report points to evidence of harm only at levels more than double the 0.7 mg/L found in U.S. tap water

> Some critics have said that the research behind these conclusions is riddled with problems. ...

> “The bottom line,” said Tomar, “is that the overwhelming majority of those studies had either significant flaws or were, frankly, just not looked at through a critical eye.”

Contradicting studies:

https://pubmed.ncbi.nlm.nih.gov/36214232/

> Exposure to fluoridated water during the first 5 y of life was not associated with altered measures of child emotional and behavioral development and executive functioning.

https://www.sciencedirect.com/science/article/pii/S001393512...

> In boys, positive associations were observed between MUFcr and scores in cognitive domains at the age of 4. These findings are inconsistent with those from some previous studies and indicate the need for other population-based studies to confirm or overturn these results at low levels of F in CDW.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7261729/

> In conclusion, based on the totality of currently available scientific evidence, the present review does not support the presumption that fluoride should be assessed as a human developmental neurotoxicant at the current exposure levels in Europe.

> ... the experimental evidence suggests that current exposure to fluoride, even for individuals with relatively high fluoride intake, is clearly below levels that lead to adverse effects in vitro or in animals.

> ... The discrepancy between experimental and epidemiological evidence may be reconciled with deficiencies inherent in most epidemiological studies

comment 2y ago · link · parent

Good to know, we have a Flutter repo and I have been wondering how hard it would be to integrate. That said, not sure there is a lot of benefit for having the Flutter / Web app in a monorepo, maybe reduced branch management when working on a feature that touches both?

comment 2y ago · link · parent

I've been using Nx (https://nx.dev/) for a while now, but primarily on a front end set of apps currently. While it started as a TS/JS monorepo tool, it has evolved into something that (they claim) can be used for just about any language. You will probably still see it's roots as a TS/JS based tool though. It's not been without it's challenges, but overall I'm fairly happy with it.

comment 2y ago · link · parent

This is why my preferred email regex is just .*@.* (I've been talked into .*@.*\..{2,} before as a slightly more restrictive pattern). And I realize there may be times/places this is not satisfactory, but it works for most general cases.

comment 2y ago · link · parent

> After "she" said no, then Altman auditions a bunch of voice talent and picks someone who sounds just like SJ.

According to the article, the word After here is incorrect. It states the voice actor was hired months before the first contact with SJ. They might be lying, but when they hired the voice actor seems like it would be a verifiable fact that has contracts and other documentation.

And like others, not defending OpenAI, but that timeline does tend to break the narrative you put forth in this post.

comment 2y ago · link · parent

I saw someone else mentioned his books, but he also was one of the main people behind the CSS 1 test suite (1998) that gave browser manufacturers tests they could target to ensure they were properly rendering to the CSS spec. That went on to eventually evolve into or inspire (can't remember) the CSS acid test that was used for CSS 2 and 3.

comment 3y ago · link · parent

The reasoning behind mobile-first was exactly what you say is "easy" and I disagree - it is not always "easy" to shrink contents of complex desktop layouts into a mobile one. Mobile first helps figure out the simplest possible version of a design. And whether building mobile first or desktop first isn't really a design choice, that's a development choice, and either way of building a site (as long IMO as you don't mix/match) is equally valid) and the same goal can be accomplished from a technical perspective.

I agree though, that doesn't mean we need dumbed down desktop layouts or scaled up mobile versions, it just means we need to consider both and design accordingly. Mobile first is fine as the starting point, there are a lot of valid points to that design paradigm. But that is just the "first" part, then there are the rest of the parts to account for all viewport sizes.

comment 3y ago · link · parent

I think you're trying to make a very nuanced point, and I tend to agree that there are different needs for different viewport sizes. But I think it's important to note the difference between the design and the technology to build it. The technology should, IMO, as much as possible, seamlessly switch between the various layouts when it makes sense from a viewport size perspective. Definitely don't want, IMO, to deliver completely different sites based on device type/site from a technological point of view, we've tried that before and it isn't a good idea.

I also think one of the things good designers do is to take this into account, and make pages that are built up of components that work at various sizes, not just scaled up from mobile. In addition, a good designer will setup the page design such that it can scale up and down nicely from one viewport size to another.

So, while I don't 100% agree that you need "individual" designs for each, I do think you need a designer that takes the different viewport sizes into account and provides the appropriate adjustments for each. And developers that are skilled at then building those pages.

comment 3y ago · link · parent

Smaller world, I also used to work with him. And just recently used the fridge trick on an old dying hard drive (it worked fwiw), but don't remember if he was the source of why I thought that might work.

comment 3y ago · link · parent

> Proxmox is an open-source, Type 1 hypervisor that comes as a Debian-based Linux distribution. With Proxmox, users can experience a hypervisor that can integrate Linux containers (LXC) and KVM hypervisor, networking functionality, and software-defined storage in a unified platform.

I'm not saying you are wrong entirely - it can be used as a management plane for different hypervisors, but it is also a hypervisor in it's own right as I understand it. (grabbed the quote above from ServerWatch). There is a lot of confusion about this topic as some people argue it isn't a type 1 because it goes through KVM, but others rebut that because KVM is in the kernel and has direct hardware access (very gross summary of arguments I barely know enough about to keep up, and sometimes don't).

comment 3y ago · link · parent

Yah, as I understand it (not a sysadmin, just hobby stuff), if you want to run something in docker, you'd have to setup the system first and then docker on top of that. I'm not sure you need the docker layer though - it's unnecessary overhead probably. Each VM/container could just have the necessary OS with the packages needed for that particular use case installed directly.

Guessing someone who tried to use a system like this would probably have their own custom containers / linux distributions, or at least have custom install scripts that would function much like the docker compose file does in getting everything installed on that container for different use cases.

comment 3y ago · link · parent

Any specific reason it wouldn't work with Angular as well (noticed it was not listed in the Frontend frameworks section)?

comment 3y ago · link · parent

A more extreme version of this would be to install something like Prox-mox on a machine (doesn't have to be the actual machine you're using, but probably could be) instead of the standard OS, and then create virtualized containers for each "use case" (and then use good security practices on each containerized OS as well of course).

Setup correctly, if any one container was to get compromised, it shouldn't leak out to anywhere of the other ones. Would be super inconvenient, I'm guessing to actually have a semblance of efficiency there would still likely be a "main" container and you'd SSH into others in order to do tasks associated with that container. Not too much different than the "clean OS" described here, probably the helper scripts could be similarly adapted to utilize the individual containers instead of docker containers.

I personally would be hard pressed to consider something like that, but seems like the logical continuation of this type of machine configuration/setup.

comment 3y ago · link · parent

Also disagree, not only is volunteering time and knowledge not usually something that costs much, there are a number of reasons it's a good idea for someone looking for work. Folks looking for work may have time, it can create new connections they wouldn't have made otherwise, keeps skills sharp and even can help learn new skills that could open doors to other opportunities that didn't exist prior. Not to mention something that can fill in a gap in a resume/cv.

And not everyone reading these threads is between jobs either, and so it could be an opportunity for fully employed folks to give back as well. And from a different aspect, volunteering may allow someone to be able to give back when they may not have the means to do so in other ways.

comment 3y ago · link · parent

Developers gain if they know CSS. Just like JavaScript - for either, if you understand the underlying base technology, it doesn't matter what framework you are presented with, you can learn the specifics of that framework fairly quickly, in my experience.

comment 3y ago · link · parent

Thanks for the data point re: larger apps. Like I said, haven't had that experience with Tailwinds specifically so I can only go by the various things I read about those who have. I'm sure it's like any other tool - it can be used or abused.

comment 3y ago · link · parent

Oh for sure, and devs should do what is needed to be more efficient and to make their development enjoyable. The poster I was responding to said "you have to install the vscode plugin" to enjoy using Tailwinds. So that's the specific part I was responding to.

comment 3y ago · link · parent

I actually agree with most of your comment. Just not that Tailwinds is the best way to actually do the styling. I don't have any issue having some form of compilation/processor step that takes colocated CSS and creates a final output, that isn't my objection to Tailwinds, in case that wasn't clear in my original comment. I prefer to actually use CSS, most often via style classes.

And I did not say to base styles on html structure - you are correct, that is brittle and actually one of the things I often ask about in FE interviews as a way of determining skill level. I said that good html structure makes CSS much easier, if your structure is bad, it can significantly compound the amount of CSS needed in order to achieve the desired outcome. So I believe there is a significant distinction in those two statements.

comment 3y ago · link · parent

I get the challenge of dead CSS, I think there are strategies for managing that in complex apps without "ditching" CSS. And my understanding of Tailwinds is that it starts to break down for larger/complex apps also (but I've only used it on smaller things personally so that's just based on things I've read).

I never try to be dogmatic about new things - so I'd try it again. I just haven't seen the benefits yet myself and so default to the cons I expressed earlier.

12345
21