Better HN
topnewbestaskshowjobs
Log inSign up

LocalPCGuy

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

Submissions

comment 3y ago · link · parent

I don't know the mechanics of this or if it would just be manual, but when there is aggregation of submitted links (which I would assume is the case for a story like this), it does seem like the main PR link should be the title URL, but could other links all just be collected in a single comment?

I really prefer the actual PR links myself, corporate BS or not, because that gives me the language I need to then search out the other stories that are based on that PR. If you start with a blog, now I have to do the process in reverse to find the source. I think the HN policies are just fine in this regard. And even if other links can't be collated into a comment, I generally trust HN readers to provide additional information or helpful links when appropriate.

comment 4y ago · link · parent

Sounds like you found the issue but for future reference or for anyone stumbling across this later on, another thing to check is network ports in the "cheap" (i.e. generally most < $100) USB/USB-C hubs/port expanders with a power passthrough and a network port.

I had a pretty bizarre experience where it would work just fine during the day while the computer was on, but when I'd shut the lid of my work MacBook, the network port on that little USB-C hub would just start sending off ACK signals like crazy, killing my network for anything else trying to use it (effectively denial of service myself). It was really hard to track down also because it wasn't "traffic" really, and it didn't happen on the devices that were impacted (i.e. I'd be using my Windows PC in the evening and that was attached to my work computer). Even more perplexing because it was semi-random - turned out it wasn't "random", it was when I shut the lid of my work laptop vs. just leaving it up and walking away. I finally saw the flood of traffic by dumping network traffic and was able to trace it back to that hub (first I thought my laptop was pwned and was doing something like exfiltrating data or mining when I wasn't logged in, but it was very definitely the hub after a bit more digging).

Since discovering that, I have come across others that have written up the same or similar issues. With the power passthrough, the hub still has power, and if the network interface is flaky as many are, it can cause issues, particularly when the machine it's plugged into stops using it.

This post has links to a few various write-ups: https://mjtsai.com/blog/2022/05/11/usb-c-hubs-breaking-ether...

comment 4y ago · link · parent

I personally am a proponent of rebase, but not all the time and not for every workflow. It has it's place though, IMO. I like/value clean history and good commit messages (although I admit I don't always succeeding providing that all of the time). I prefer to stage my commit pieces at the hunk level at the largest. I like to rebase my branches before merging them into release or main (depending on git strategy as a whole), but it isn't always necessary. I use interactive rebase from time to time to clean up my feature branches (especially longer running ones). This is all stuff I prefer in my own workflow.

That said, every time I try to really teach someone rebase, particularly a new dev, I understand why people shy away from it. I did for a very long time. So I totally understand and get why the above style workflow may terrify folks (or just seem unnecessary). It is easy to mess up and there are a lot of little gotchas if someone isn't careful. And worst of all, it can result in lost work (although even that is "usually" recoverable, but not always). I do think there are some benefits to it, and I think it is something that can be integrated into a dev's workflow a bit at a time. And it really doesn't take significantly more time, in my experience.

I'm not gonna argue here for adopting that. Except for "no commit messages", I'd be pretty ok with a workflow as outlined by this post. I do think folks should understand how rebase works, what commits will be moved/changed when they run a rebase (this is vital), and how to recover when a rebase goes bad (no, not reclone, not generally even delete branch and check it out again).

.

Couple random thoughts I try to communicate to folks who decide to utilize rebase more in their workflow:

- rebase often (if main updates often)

- if worried the rebase may be messy, create a temporary branch prior to starting the rebase at the feature branch HEAD - allows for an easy way back (and prevents lost code)

- don't rebase shared branches - this is a tool to use PRIOR to "sharing" (i.e. pushing) code

- squash/clean up unneeded commits before rebasing on another branch (this may bring it all the way down to a single commit, but for larger features, I think there is value in seeing the main decision points along the way)

- fix conflicts with the code at the specific commit you are on only, don't fix it with the eventual end result X commits down the line - this will generally avoid the dreaded "fix the same conflict over and over for each commit" problem some people encounter with rebasing

- remember rebase creates new history - it doesn't rewrite history (however, old commits will eventually be garbage collected)

- pro tip: understand how `rebase --onto` works, sometimes you shouldn't, or at least don't want to, take all of the commits

comment 4y ago · link · parent

I don't agree that folks who rebase multi-commit branches are "doing it wrong". Even if there are multiple stops along the way, that should not be considered a bad thing if it's understood what it is doing.

The way I look at it, lets say I have 10 commits. If I rebase main, commits 3, 4, 7, 10 have "conflicts" with the code that is on main now compared to when I started writing my feature branch and making commits. But, now, I have an opportunity to update code in each of those commits as if I was writing it based on what is now currently on main. If done like that, incrementally, it usually doesn't cascade into conflicts on each commit.

The problem, IMO, comes when at commit 3, the dev says "Oh, I did this like this in commit 10, so let me just put that solution here in commit 3 to resolve this merge conflict". Now, instead of 4 conflicts, you have conflicts on all of the commits between 3 and 10 (because the dev in effect moved the fix from 10 up 7 commits from where it originally was committed). Instead, each conflict resolution should aim to maintain the code as close to the committed code as possible while integrating the code from main. That way also, the feature branch commits still reflect the iterative process that having multiple commits is designed to show.

I don't embrace a FULL squash rebase, but I do embrace cleaning up your branch commits with an interactive cleanup rebase (not on main, just going through the commits for the branch and squashing any minor fixes that belong with the previous commit, etc.) THEN, once you have a clean feature branch, rebase main. The feature branch may now have, instead of the 10 commits above, eliminated 6 commits that were just things like minor test fixes, typos, etc, and now only has 4 commits total. Instead of 4 conflicting commits, it may now only have 1 or 2, making the rebase simpler as well. And the branch still maintains the traceable history of the development of that feature (assuming good commit messages were used, which is not something the original poster values either).

comment 4y ago · link · parent

That is a case where (as you note) you'd need to do some sort of destructive fix to eliminate the file from your local repo. Whether it's a rebase or something else, a person then needs to know "the advanced parts" that the blog post is advocating aren't really needed if "git is done correctly". Better to just not commit files/hunks accidentally in the first place - I know, it's not a perfect world, yada yada - just trying to provide the counter point to the counter point.

comment 4y ago · link · parent

Because they do different things. It's right there in his post:

> # adds my single commit to the end of the current main

The biggest benefit to this IMO is that you can resolve conflicts in YOUR branch, get it all cleaned up, and then when you merge there are no conflicts. This allows you to test any changes made during conflict resolution in your feature branch still.

comment 4y ago · link · parent

Embrace Slack being async. That is one of its huge benefits, IMO. I need to remind myself of this regularly though, but it makes my use of Slack so much better.

comment 4y ago · link · parent

Work can absolutely happen is Slack if that is how your team uses it. Decisions can be made (and are then documented and can be referenced later, as long as your org pays for it, which they should if they expect it to be used for business/work and not just for random conversations. It's plenty durable if paid, but if it wasn't paid, I'd seriously consider one of the alternatives, even if slightly worse in some ways, of it keeps full history.

My "working with" would be almost the exact opposite of what you list (I like that idea though!). I tell people emails may get checked daily at best. We don't have a phone culture, we use huddles or video calls for synchronous conversations, but they do suffer from lack of documentation or note sometimes.

comment 4y ago · link · parent

Just like with all the various conversations that would happen in an office, the first thing I'd tell you is that it's ok not to follow everything in every channel. Trust that people will @notify you if your attention is needed. Catch up on the channels you want to when it's convenient for you - I often do my Slack catch-up during times I need to take a coding break or have a blocker.

As for information lossage and threads, get familiar with search. And also, when it's one of your messages, think about the words you may use to find something later and work them into your messages. Or for other messages, add a comment of your own with the keywords that should work to make things easier to find later. And if that becomes a trend for the team as a whole, everyone benefits.

I think being opinionated about "how Slack is used" can be helpful, especially if the team buys in. Hope some of the above helps somewhat.

comment 4y ago · link · parent

2FA by itself isn't a flag to me, only offering 2FA via SMS is. It means to me they did the bare minimum in order to say they offer 2FA.

comment 4y ago · link · parent

The question I would ask - is that foundation just a tax haven for the family profits, or is it actually doing positive things (could also be both)? Same with Patagonia listed in a child comment - a lot of positive press came from the recent moves, but they were also incredibly self-serving for the family from a monetary point of view.

comment 4y ago · link · parent

As per your last comment, I would likely be changing banks in that scenario, and letting them know exactly why they are losing a customer. Even if it doesn't seem like any one individual making sure that reason is documented, I do think in aggregate eventually it could be enough to make a difference with stuff like this.

comment 4y ago · link · parent

This is why you always (always) have backup codes. If a site doesn't provide them (and only allows 2FA via SMS rather than also via Time-based one-time password), that's a huge red flag to me (and yes, I'm aware some very large sites fall into that bucket).

comment 4y ago · link · parent

In many cases a severance package is attached to an NDA and non-disparagement agreement, or whatever else an employer may want to protect against ex-employees doing. In exchange for signing, the employee gets X weeks/months pay, or a bonus of $X, etc.

comment 4y ago · link · parent

This is pretty much exactly how I feel - the camera you have with you all the time is better than a better camera that may be sitting on the shelf at home when you want to take a picture. That said, for vacations and stuff is where I really miss having a really nice camera, and while the phone does ok, there are shots I have that I can see where a better camera would have made it that much better.

comment 4y ago · link · parent

Mac at work, but considering switching to a Linux machine (maybe System76/PopOS?) on the next refresh we do.

For my personal machine, and LG Gram 17" - I think about 2 years old at this point - the value/hardware is a pretty great value IMO (and frequently goes on sale at Costco), it's ultralight (important for me), still has a number pad, and a 16x10 display, unusual IMO outside of the Mac world. And the screen is gorgeous. Maybe not Mac/Retina (but I run my Mac screen at highest resolution rather than Retina anyways, so it more similar than you'd expect).

comment 4y ago · link · parent

Not sure that literature really contradicts the original hypothesis. The abstract (can't download the full text without buying it) seems to be implying that they found there is motivation for working in groups and made work more fun (or rather, even just providing cues that make people feel like they are working in groups) but didn't really touch on innovation or collaboration as it relates to brainstorming/ideation.

I think it's important as the poster above you said, not just take the word research at face value. I'm sure that there may be studies that show collaboration can lead to good ideation and outcomes also, I just don't think this one is that.

Some notes from the abstract:

> ... examined cues that evoke a psychological state of working together ... which increased intrinsic motivation as people worked alone.

> Outcomes were diverse, e.g., task persistence, enjoyment and, 1–2 weeks later, choice.

> These cues also increased feelings of working together but not other processes.

> The results suggest that cues of working together can inspire intrinsic motivation, turning work into play. The discussion addresses the social–relational bases of motivation and implications for the self and application.

comment 4y ago · link · parent

This is great example of setting expectations. Plus I think getting the answer to "does Phase 1 have enough value?" is super important early on, even if the answer is no.

comment 4y ago · link · parent

Yah, I keep meaning to get one of those, just haven't remembered to do it. And I'm super bad at guitar, so probably not playing anywhere outside of my basement for a while :P

comment 4y ago · link · parent

I am not writing off your experience. I am saying, that while your experience is valid for you, it cannot be extrapolated industry wide.

For the report, I don't have a link handy. I looked into this in the past and was able to find a few different reports of that nature. I haven't looked for one in the last year or two, so like I said in another comment, if things have changed and what I read is out of date now, I'd be happy to have an update as well.

comment 4y ago · link · parent

Because of the insistence on anecdotes rather than actual industry reports to back up the claim. Even your claim is your personal anecdote. But when you dive into actual industry repair reports, Pixels do not (at least in the ones I've looked at) stand up in terms of being "historically poor quality". For every anecdote of someone having an issue, there are a large majority that just use their phone day in and day out without a problem. And of course, there's also that person that has to point out that their Pixel is working just fine in response to the person with an issue.

I'm not trying to dismiss the issues Google has had. Just to put it in context that they get a lot of press about the issues they do have, and so there becomes an impression that it's historically bad when the actual numbers do not seem to show that to be the case. (Also, if anyone provides links to 2021 or newer reports, I'd be happy to revise my opinion here based on new data, if it shows that I'm no longer correct, as it's been a bit since the last report I saw.)

comment 4y ago · link · parent

Pixels may have what seems to be an unusually high rate of problems over time if you judge things by anecdotes on Reddit. There are many more folks just puttering away on their Pixel oblivious that there are any issues at all (or even posting their own anecdotes in response to the anecdotes about problems telling folks that their Pixel is fine). But they don't generally show up leading the pack in industry reports from the folks repairing phones, at least the ones I've looked at.

Every manufacturer has some level of issues, Google sure seems to be about average. I will say that their insistence on automated (read: poor) support can sometimes exasperate problems (which then leads to more anecdotes being posted).

comment 4y ago · link · parent

It's (iMessage) not a standard if it isn't open for adoption by anyone else.

It doesn't matter how much better it is, if the only way to use it is via Apple hardware. It's their prerogative to do that, and it makes good business sense assuming it doesn't bring them monopoly problems (and IMO it probably shouldn't due to the aforementioned stats re: worldwide usage at 27%, and even US usage is only at 55%).

But it in no way is a standard. It's just a proprietary piece of software. So literally any other standard proposal is "more of a standard" than iMessage.

comment 4y ago · link · parent

Purchased for Android, love Flutter and been trying to learn guitar off/on, so this could be helpful.

Question re: web (where I have not been impressed with Flutter as a platform) - I just get "Failed to start listening thread." I tried both Firefox and Chrome, latest versions.

Side note: Also noticed I can't highlight/copy the text (common usability/accessibility issue with Flutter Web. I believe it's not that hard to allow?)

comment 4y ago · link · parent

I will pay anywhere from $1 to $5 to eliminate ads, so this is a good value, considering the free apps almost all have ads, if I recall. Or are provided by one of the larger guitar companies and promote their subscription/learning platforms?

I find the idea that $1 is a "hard sell" laughable, but unfortunately for software devs that is the world we find ourselves in when trying to monetize an idea.

comment 4y ago · link · parent

I think the entire point is that those concerned about those things and who have the technical ability will create their own instances. And invite their network to their instance. As I understand it (probably poorly), people generally shouldn't just be joining random instances that end up getting really large, but rather there should be a LOT of instances, all interconnected, that are effectively run by the handful of "techies" in each given network. But sadly we still gravitate to a centralized model, trying to find the "right instance" to join, even though (again, as I understand it), people can communicate cross-instance just fine (assuming not blocked, etc.) I say this as someone who does not actually use Mastodon, I just haven't found the reason, even though I know folks whose instance I could likely join.

comment 4y ago · link · parent

The media (and weather broadcasts) latched onto the term in the 2013/2014 winter, and has been using it ever since. And the media is prone to over-exaggeration, we know that, no argument. There have even been scientific papers about whether the use of the term is problematic and how to best describe it to non-experts. Even using the word ignorant, as the person you replied to above did, is not a slight IMO (at least, I don't see it that way, I see it, in the context used, as a descriptive term for "the state of not knowing").

The point being, the weather phenomena is not new, nor is using polar vortex to describe it. And just because you hear about something in the media for the first time and it seems exaggerated, that does not necessarily invalidate it or somehow make it a "pedestrian event" being over-hyped. It could be, but in this specific case, it definitely does not. And those words, as explained elsewhere, are the correct words to use from a descriptive point of view.

> The earliest scientific papers describing the broad-scale tropospheric or stratospheric flow as a “circumpolar vortex” or “polar vortex” are from the late 1940s and early 1950s. (Although a much earlier usage appears on pg 430 of Littell’s Living Age Map, 12 November 1853.)

comment 4y ago · link · parent

You could also print the 2FA setup codes (like on actual paper :P) and store them in a safe or otherwise secure location. Along with the backup codes probably (or maybe each goes to a different location, or copy of each in 2 locations, one remote, depending on how important access is and how hard it would be to get it back without that information.)

comment 4y ago · link · parent

Absolutely - couple examples that I've used in the last day or so: Github notifications (PR requests), Jira ticket updates (less useful), Figma notifications. Basically, Slack is aggregating the tool notifications into one place so I don't have to check email or each individual website.

comment 4y ago · link · parent

I use Xfinity and have had no issues running PI-Hole for over a year. However, I do a few things that could make a difference - I have my own modem, not an Xfinity rental. And I use better (and generally a more privacy focused) DNS (Quad 1, OpenDNS, and also Google DNS, yes aware that last is not very privacy friendly).

Only problem is my Pi died and I haven't set up a new one, been considering setting up a Pi cluster so if one goes down I don't have to scramble to fix it for Internet to work in our house (although I can just update the DNS at my router until it's fixed, so not too bad).

1
456
21