HNHacker News
TopNewBestAskShowJobs

WickyNilliams

1,327 karma · joined November 18, 2011

Full stack dev currently focused on the front-end.

http://wicky.nillia.ms/

contact: @WickyNilliams or wicky @ my domain

---

meet.hn/city/gb-Cardiff

Socials: - github.com/WickyNilliams - x.com/WickyNilliams

---

submissionscomments
WickyNilliams··on I found a useful Git one liner buried in leaked CIA developer docs
That's a good point, I think I will update my scripts to use this instead :)
WickyNilliams··on I found a useful Git one liner buried in leaked CIA developer docs
Nice. That'll make things a bit smoother. Changing branches often trips me up when I would later `git switch -`.
WickyNilliams··on I found a useful Git one liner buried in leaked CIA developer docs
Hmm that might be nice actually. I like not conflating those two things, but as you say if the repo is already init'd then there's no chance it'll be used for the wrong purpose.

In any case the main thrust was just to avoid embeddings assumptions about branch names in your scripts :)

WickyNilliams··on I found a useful Git one liner buried in leaked CIA developer docs
I have a cleanup command that integrates with fzf. It pre selects every merged branch, so I can just hit return to delete them all. But it gives me the opportunity to deselect to preserve any branches if I want. It also prunes any remote branches

    # remove merged branches (local and remote)
    cleanup = "!git branch -vv | grep ': gone]' | awk '{print $1}' | fzf --multi --sync --bind start:select-all | xargs git branch -D; git remote prune origin;"
https://github.com/WickyNilliams/dotfiles/blob/c4154dd9b6980...

I've got a few aliases that integrate with fzf like an interactive cherry pick (choose branch, choose 1 or more commits), or a branch selector with a preview panel showing commits to the side. Super useful

The article also mentions that master has changed to main mostly, but some places use develop and other names as their primary branch. For that reason I always use a git config variable to reference such branches. In my global git config it's main. Then I override where necessary in any repo's local config eg here's an update command that updates primary and rebases the current branch on top:

    # switch to primary branch, pull, switch back, rebase
    update = !"git switch ${1:-$(git config user.primaryBranch)}; git pull; git switch -; git rebase -;"
https://github.com/WickyNilliams/dotfiles/blob/c4154dd9b6980...
WickyNilliams··on NewPipe: YouTube client without vertical videos and algorithmic feed
Some things I've not seen others mention: you can subscribe to channels, create playlists etc, all without needing a Google account
WickyNilliams··on Celebrities say they are being censored by TikTok after speaking out against ICE
You listed a handful of failed attempts that didn't come anywhere near to being successful. Where are the massive resources? What's the evidence for massive resources? And where's the evidence that these attempts were organised by political opponents at state level?
WickyNilliams··on Celebrities say they are being censored by TikTok after speaking out against ICE
Attempted assassinations by unidentified lone wolves, spread out over decades, are not "fascist" tactics. Obviously they are very bad for a political climate, but I think that's stretching the definition beyond any use.

You originally implied the Weimar Republic itself used fascistic tactics. But your examples show nothing of the sort (and are obviously just an LLM dump, which disinclines me to continue this conversation)

WickyNilliams··on Celebrities say they are being censored by TikTok after speaking out against ICE
Oh I don't underestimate him. It's been obvious he's dangerous from day 1. But being dangerous does not preclude being (seen to be) a fool.
WickyNilliams··on Celebrities say they are being censored by TikTok after speaking out against ICE
What fascist tactics did they use to get rid of Hitler? If you're referring to his time in prison, he was put there because he staged a putsch.

Beyond that, much of the establishment and industry tried to work with him using a softly, softly approach. They thought they could steer him, temper him, leverage his popularity for their own ends. Of course, that didn't work out for them

WickyNilliams··on Celebrities say they are being censored by TikTok after speaking out against ICE
> He is incredibly good at manipulating public perception to change opinions and get what he wants

Sorry but you are suffering from some kind of delusion here. He's not manipulating public perception in any way that is beneficial to him or the US. He's crashing his own public perception (which was already in the gutter to all but the sycophants and blind loyalists) and taking the US' reputation with him

WickyNilliams··on Yes, It's Fascism
No I don't think so. Broadly they hitched their cart to a genocidal madman. Their hubris convinced them they could maintain a steer on its direction.

The centrists ultimately lost when the Nazis banned other political parties. If they were not murdered first. And the Nazis took control of the German workforce, imposed harsh taxation on businesses, central planning, nationalization etc.

I'm sure the uneasy alliance worked well for a a little while though!

WickyNilliams··on Yes, It's Fascism
I hate this quote with such a passion. It's treated as some enduring wisdom passed down through generations. When it's from a 2016 book you have probably never heard of.
WickyNilliams··on Yes, It's Fascism
Same pattern played out in Germany. The centrists were more concerned with leftists than Hitler. Big business thought they could cosy up to him and keep him under control. Opportunistic collaboration for self preservation or personal benefit.

Of course these all turned out to be grave miscalculations. I imagine that pattern will eventually play out this time too...

WickyNilliams··on White House alters arrest photo of ICE protester, says "the memes will continue"
Yes of course this could've been done in photoshop. But a convincing Photoshop effort takes someone with years of experience working for likely hours. AI can churn out this kind of image in seconds, operated entirely by someone with zero skill or experience. It lowers the bar significantly, increasing the scope and scale of the output.

For the same reason a fully automatic weapon is substantively different from a bolt action rifle, despite both being guns.

It's also a fundamentally different scenario. Photoshoot-style touchups - likely at the request of the subject himself - for pure vanity, versus doctored images of an unwilling citizen (who presumably hasn't been convicted yet and is therefore considered innocent) as propaganda

WickyNilliams··on Europe wants to end its dangerous reliance on US internet technology
And individual departments can/do have their own GitHub org. Eg the Office of National Statistics. Some work I did ~10 years ago can be found there! https://github.com/onsdigital
WickyNilliams··on If you put Apple icons in reverse it looks like someone getting good at design
Just want to say your apps look great, and I am actually jealous that I use android!
WickyNilliams··on Scott Adams has died
Apologies I shouldn't have said "silly", that's too charged. More I don't think it's a good argument or justification. I think the rest of my comment outlines, along with counterexamples, why I think that.

Making this some left-right polemic has made me not want to continue this conversation further

WickyNilliams··on Scott Adams has died
This is a silly appeal to nature.

But to address the point. There may be base instincts to which we are all subject. But that doesn't mean we should embrace them or proudly wear them as a badge. Violence is entirely natural. And yet most will agree it should not be embraced. Someone proudly declaring themselves as violent will (and should!) be judged harshly. I say the same holds true for racism, whether it is "natural" or not.

Much (all?) of civilisational progress is characterised by moving away from the natural state to a higher strata. The civil part of civilization is entirely unnatural

WickyNilliams··on Network of Scottish X accounts go dark amid Iran blackout
Yeah this is one conspiracy I believe. There's this narrative at the moment that the UK is some dystopian hellhole where you'll get arrested for basically anything you post online. It's very pervasive to the point that fairly normal American people I follow online have repeated such things.

Now, the UK has plenty of problems, I do not deny that. But the situation is nothing like it is presented online.

My thinking is that this is meant to make people in the US feel that the rising authoritarianism isn't so bad in relative terms "well the UK is far worse!".

WickyNilliams··on Network of Scottish X accounts go dark amid Iran blackout
Yes, exactly by grinding people down. Making it exhausting to discern the truth, until it's not worth the energy exertion to do so.

Also perhaps it is not meant to convince Scottish people of anything, but maybe to make English people hostile to Scotland and its people etc

WickyNilliams··on Video filmed by ICE agent who shot Minneapolis woman emerges
Not to exonerate him, but to condemn her. For being a woman, who did not know her place. For many that alone will justify her murder
WickyNilliams··on Show HN: I made a memory game to teach you to play piano by ear
Funnily, I felt the opposite when I learnt to read music a few years back - that even though I was extremely slow, I could now (theoretically) read and learn to play any music, just slowly! You'll get faster and better with practice, as with everything. I'm still slow. Just not as slow. But crucially I'm fast enough that it's not the bottleneck anymore, getting the notes under my fingers is.

Keep at it!

WickyNilliams··on The Delete Act
FYI, it was the ePrivacy Directive that brought about the cookie banners, not GDPR
WickyNilliams··on You can make up HTML tags
Not even sure what argument you're making here. A web component bundles one or more of: markup, styles, functionality. You can't do that with just html such that it's easily consumable in all the ways I mentioned.
WickyNilliams··on You can make up HTML tags
Honestly I couldn't care less what the original proposal said! Things evolve. Utility is found in unforeseen places. That's the nature of ~everything. Personally I'm not a fan of that kind of component but not aligning with some original, preordained vision is a minor nit
WickyNilliams··on You can make up HTML tags
They don't need to be leaf components to still have this strength. I've worked with design systems which have a <my-layout> component near the root which defines sidebar, header etc slots. This still works nicely with react, Vue etc

But I agree they tend to be better suited as "leafier" components

WickyNilliams··on You can make up HTML tags
The major downside of using light DOM is that elements cannot compose neatly since there's no delineating between what the component itself rendered and child content.

When you need to re-render your component, how does the component know not to replace the child content you rendered, Vs the child content it rendered into the light DOM. That's why the shadow DOM and slots were necessary, because then there's no intermingling of your content Vs the component's

This may not be a problem if you don't intend to compose your components. But if you do you will hit limits quickly

WickyNilliams··on You can make up HTML tags
What makes custom elements good is inrerop. I can use them in react, Vue, angular, svelte, solid, or just plain ol' server rendered html. I can switch out the internals entirely for a WC lib, or not, with nobody knowing or caring.

This is a unique advantage to WCs. And it's such a compelling advantage that it makes almost all the downsides tolerable. At least if you are in a position where your component might be used in many places. Design Systems are a good example. The consumer can be any app, built on any technology.

And there are plenty of downsides. But they are mostly felt by the author, not the consumer. Similar to how TS libs can be very complex to author because of type level gymnastics, but when done right are easy to consume.

(I do not push them heavily, but I can appreciate strengths and weaknesses of all tools)

WickyNilliams··on Replacing JavaScript with Just HTML
Oh huh I didn't know details supported that naturally. I'm guessing this wasn't always the case and my knowledge is simply outdated. TIL!
WickyNilliams··on Replacing JavaScript with Just HTML
One drawback of details was that cmd+f search wouldn't play nicely when the details was closed. But now there's a hidden="until-found" you can put on child content, along with an associated event. So you can open the details when a user searches :) super useful
← PreviousPage 3 of 19Next →