HN user

rojoca

123 karma
Posts3
Comments59
View on HN

You can enjoy all kinds of disgusting and / or ridiculous things when you have some adjacent emotional connection. It’s one of the best things about life, keeping in mind it can work the opposite way too.

Haven't used django for a year or 2 but used to use django-rest-framework's negotiation to get both json and html responses (was using inertiajs not htmx) and it worked pretty well. You can use decorators on the api methods to set things like templates. Here's an example:

  @inertia("User/List")
  @api_view(["GET"])
  def get_users(request,  **kwargs):
    // ...
    return Response(data={"users": users})
This can return JSON or HTML with the data injected.

Clojure has the as-> threading macro (probably borrowed from another lisp) where you can specify the placeholder:

  (as-> [:foo :bar] v
    (map name v)
    (first v)
    (.substring v 1))
Super Follows 5 years ago

Great, now the timeline is going to be full of "just tweeted X to my super follows, super follow me here: ...". Sounds like more ads.

I guess in fairness you probably don't want to follow people who tweet like this but these kinds of tweets will still be hard to avoid. I'd rather just pay twitter $x/yr for no ads.

In NZ we have 2 levels, wholesale and retail providers. By law you cannot be both. The price paid by retail providers to wholesale providers is currently set by the commerce commission because the infrastructure being built and managed by the wholesale providers was heavily subsidised by the govt. The (4) wholesale providers are effectively regional monopolies but importantly cannot set their prices, and the retail providers compete on value-add services and price for which there is fairly healthy competition.

Not censoring an idea and arguing that an idea should not be implemented are not equivalent.

I'm not sure this is correct, but I'm willing to be convinced if you can expand a little more. I guess I see it as censoring the act of censoring.

If this is true, i.e. reporting of the censorship increases the visibility of the bad idea, then it completely destroys the pro-censorship argument that it reduces the visibility of bad ideas. It would also immediately cease to be true if censorship ever became uncontroversial, in which case you couldn't claim that it's giving the allegedly bad idea a chance at a fair debate.

In this case, it is true. But youtube censorship is not equivalent to societal censorship, it just signals that youtube does not endorse Icke's ideas and does not wish to publish them, but people can still evaluate them somewhere else.

Is somebody suggesting that YouTube should be prohibited from creating and distributing their own videos?

No, the suggestion is they should not be allowed to write their own terms and enforce them.

The following may seem frivolous and/or uncharitable but I think you would find them hard to disagree with:

- booting people off platforms is a "bad idea" which you wish to "suppress".

- booting people off platforms shines a light on their "bad ideas"

I'm sympathetic to the spirit of your comment, but I think Mr Icke has plenty of other ways to publish his ideas, and I don't believe youtube is suppressing them in a way that necessitates suppression of theirs.

Since inertia runs in the same session context as your django app you can use django sessions as you would in a standard django app - in fact this is the goal of inertia. This even works with a django rest framework API

I totally understand people's preference to use Django templates wherever possible, and only sprinkle in more frontend focused stuff when needed, but personally, I would rather just write the whole frontend in React or Vue.

This is probably partly due to the fact I find working with django rest framework serializers / views to be much nicer than django forms / views.

I think what puts most people off is the default requirement to go all-in and create an SPA with global state management and client-side managed routing, but this isn't actually necessary.

I have found incorporating Django with https://inertiajs.com to be a pretty solid alternative. I can write the whole frontend in React, and the backend in Django rest framework, but everything is still page based, so I don't require redux or any other kind of global state, just use the inertia utils to make page transitions.

NextJS is another alternative. To talk to a (django) API you need to go through getStaticProps and getServerSideProps which, depending on the location of your API server, can be a little slow, but you get pre-rendered HTML and page based routing so again no global state management required.

Tailwind UI 6 years ago

No, you just create a new card component and adjust the tailwind classes on it.

Or, if it is a minor change, then conditionally include / exclude a small subset of tailwind classes.

The point is to not write your own CSS, you only use tailwind classes. In this way you can look at the template for each of your components and reason about / edit their style and layout easily.

The other solution is to have mixed representation where a portion of the seats represent districts and the rest are allocated to match the proportions voted for by the state. In this case each voter gets 2 votes: 1 for their district and 1 for a party.

[dead] 9 years ago

Have to say they are very comfortable. The quality has improved a lot since the Kickstarter version.

Not in SV; just a fan of the founder’s former football team.

One (unsuccessful) party in the recent NZ election proposed a tax on productive assets, including land and housing but excluding financial assets which would already be taxed. It would only be levied if those assets did not produce some minimum return. This was in response to the wild property speculation that has made housing increasingly unaffordable for many people as well as stagnating productivity.

I'm not well-informed enough to say much, but imagine you have a local link in a small rural town that only support some absolute number of packets or whatever: if you have one big consumer that is eating the major part of that every day, making the others miserable, isn't it reasonable to limit that consumer's bandwidth somehow?

Then if some law is enacted to prevent you from limiting that consumer, then you'll either make the lives of the others miserable or you'll be forced to spend more on your link and luckily pass the cost down to all your consumers. Right?

Yes but the consumers of the bandwidth are the locals in that small rural town, not netflix. Charge the locals for using more bandwidth because they are the ones requesting it.

Yes! A lot of the time people can't finish things because they don't know or can't decide what to actually do next. Having another person around to validate decisions or even just make them can be a great help. Bringing people together who will listen to and respect each other is the skill of team building.