HNHacker News
TopNewBestAskShowJobs

wilsonfiifi

3,101 karma · joined April 24, 2013

La présence d'un passé,omniprésent n'est pas passé.

bits & bobs: https://github.com/johnwilson

submissionscomments
wilsonfiifi··on Reflections on software development from anywhere on an iPad
Unless he's really invested in the apple ecosystem, I can't help but feel the author might have been better off with a Surface Pro. Similar form factor but with a desktop OS. Granted it's not as powerful as an ipad pro but I would argue that it might provide a better overall development experience.

I don't understand why Apple doesn't give Ipad pro users an option similar to Samsung Dex. There seems to be an aversion to enabling MacOS on touch devices.

Anyway enough with my rambling, the author seems pleased with his setup so it is what it is.

wilsonfiifi··on Pop OS – System76
Have been using Pop OS as my daily driver on an i3 NUC10 for the past 9 months and i've got to say the experience has been relatively smooth. The only issues i've encountered so far are the occasional screen flickering when i run the android emulator and printing.

But funny enough I'm able to put up with these little inconveniences because after all it's a free OS. I find myself to be much more tolerant than when I was using MacOS and my macbook pro. Between the dead keys, apple tax, dongle life and the OS quirks ...

wilsonfiifi··on Show HN: Vizzu – Open-source charting library focused on animating charts
Slightly off topic but does anyone work with server generated charts at all? Or is there not much demand for pdf reports?

Last I checked, converting Javascript charts to PNG is still a hacky/convoluted process.

wilsonfiifi··on Tesla must pay $137M to ex-worker over hostile work environment, racism
> colleagues used epithets to denigrate him and other Black workers, told him to "go back to Africa"

Which is a bit ironic considering Musk himself was born in South Africa.

wilsonfiifi··on An appeal for an objective, open, transparent debate re: the origin of Covid-19
Does it even matter any more? From where I stand Covid-19 might have been much less devastating globally if it had been treated seriously in the early days.

In fact, based on the initial footage from Wuhan, countries should have adopted more stringent protocols when they repatriated their nationals, i.e. quarantine on arrival etc... If in doubt throw everything including the kitchen sink at just to be sure. But it is what it is. I just hope we've learnt from this and are prepared for the next one.

wilsonfiifi··on How to rapidly improve at any programming language (2016)
One approach that has worked for me so far is:

1) find out if the runtime/framework is supported but Heroku or if there are any buildpacks available.

2) spin up a Dokku instance using Vagrant for local development and testing

3) deploy to a live Dokku server

If/when I encounter any issues I add Heroku or Dokku to my search query and 9 times out of 10 I’ll find an answer to my issue. Else I just dig into the Dokku docs and GitHub issues and figure it out.

So for instance googling for deploying a Phoenix app with Dokku results in a few hits such as this one [0].

There's also a lovely UI for Dokku being actively developed: Ledokku [1]

The only drawback currently is when you want to horizontally scale your deployment. You can use their kubernetes or nomad schedulers but I think those are an overkill in terms of complexity. You could also use a load balancer in front of multiple Dokku instances but you then lose the ease of deployment, configuration, etc…

Which is why I think their docker swarm scheduler [2] will be one of the most important feature they could add. It’s currently on the roadmap but I’m sure with a bit of sponsorship and a few pull/merge requests it will become a reality.

[0] https://nithinbekal.com/posts/dokku-phoenix-deploy/

[1] https://github.com/ledokku/ledokku

[2] https://github.com/dokku/dokku/projects/1#card-59170273

wilsonfiifi··on Django 4.0 will include a built-in Redis cache back end
I think Django needs to "fix" serving static assets in production without the need to muck about with witenoise or nginx settings.
wilsonfiifi··on Vex – open-source visual editor for XML
I can't believe Altova is still in the game! They must have a loyal base of enterprise users. It's quite shocking they haven't bothered to make an official MacOS or Linux version after all these years.
wilsonfiifi··on Apple Watch Series 7
How do you get the galaxy to show stairs climbed on the home screen?
wilsonfiifi··on The Search for a Free/Open Source Mobile Operating System
I'm guessing writing their own apps to replace missing functionality
wilsonfiifi··on Harbormaster: Anti-Kubernetes for your personal server
I really wish Dokku would embrace docker swarm like caprover. Currently they have a scheduler for kubernetes but the docker swarm scheduler is indefinitely delayed [0]. It’s like the missing piece to making Dokku a real power tool for small teams.

Currently, if you want to scale Dokku horizontally and aren’t ready to take the kubernetes plunge, you have to put a load balancer in front of your multiple VMs running Dokku and that comes with it’s own headaches.

[0] https://github.com/dokku/dokku/projects/1#card-59170273

wilsonfiifi··on Ask HN: What Apple alternatives are you switching to?
Is there anything wrong with the dell xps developer edition? I don’t see it mentioned very often when Linux laptop conversations come up. Lenovo, system76 etc… but rarely the xps.
wilsonfiifi··on Ask HN: What are you using to replace shared iCloud Photos albums?
Yep. More precisely Moments [0] which is great for photos and videos. But the Synology app ecosystem as a whole isn't bad at all. Just remember to buy a NAS with an x86 processor so you can also take advantage of docker based apps. I believe the DS220+ is a good device to start with if your budget is around $300.

[0] https://www.synology.com/en-global/dsm/feature/moments

wilsonfiifi··on What Does Saying That 'Programming Is Hard' Say, and About Whom?
I'm sure there a quite a few seamstresses that would disagree with you on that one.
wilsonfiifi··on What Does Saying That 'Programming Is Hard' Say, and About Whom?
I myself think programming is more like tailoring. Art, science and skill all in one. And allowance for adjustments to get the perfect product.
wilsonfiifi··on Brython: an implementation of Python 3 running in the browser
Yeah Transcrypt is interesting! There’s even a book that shows you how to use it with React [0]. Personally I think mithril.js would be a better fit than React because JSX isn’t supported.

[0] http://www.transcrypt.org/pdfs/rtptutorial.pdf

wilsonfiifi··on Generating JSON Directly from Postgres
I think it’s more common to switch application language rather than the Database. I’m not implying that it’s not done but I suspect it occurs less often. Unless you’re going from SQL to NoSQL or vice versa.
wilsonfiifi··on HTTrack Website Copier – Offline browser
I’v recently been using Monolith[0] and I find it’s creation of a single html file much more convenient. It’s also written in Rust so I’m sure that will make the source code a bit more accessible for some.

[0] https://github.com/Y2Z/monolith

wilsonfiifi··on Bflat: C# as you know it but with Go-like tooling
Working with C# on Linux isn't too bad if you use VSCode. You have to do a bit more manual work and it's not as smooth sailing as with Visual studio or visual studio for Mac but it gets the job done. I used it to work on an Aspose Words api for a reporting tool.

Scott Hanselman has a couple of guides on his blog on how to get it up and running.

wilsonfiifi··on Show HN: I made a new kind of Bible app
Quick question, are the videos curated? Is there a specific source or do they go through some sort of vetting process?
wilsonfiifi··on Show HN: I made a new kind of Bible app
It appears to have been flagged. I wonder what infractions have been caused...
wilsonfiifi··on Unicef Report Says Pornography Not Always Harmful to Children
The report in question doesn't appear to available on UNICEF's site but can be found on archive.org [0]. I've read (skimmed) the report and the only reference to pornography this article makes mention of starts from page 35.

[0] https://web.archive.org/web/20210528215643/https://www.unice...

wilsonfiifi··on Bill Hwang of Archegos Capital lost $20B in two days
To put that amount into perspective That's like 1/2 to 1/3 of the GDP of quite a few sub-Saharan countries! Yikes!
wilsonfiifi··on M1 iPad Pro over 50% Faster Than Previous Generation in Early Benchmarks
I think at this point Apple should just do something similar to Samsung Dex and give you the choice of using macOS when you connect your iPad Pro to an external monitor.
wilsonfiifi··on Flask 2.0.0 has been merged into master
Both frameworks can coexist in the same codebase if you use the WSGIMiddleware module [0]. It's a bit easier to get it running with Flask than with Django. The issue with Django is getting the static assets to work. The easiest way I've found is to run collectstatic in Django and serve the output folder through FastAPI.

[0] https://fastapi.tiangolo.com/advanced/wsgi/

wilsonfiifi··on Show HN: DbGate – open-source, cross-platform SQL+noSQL database client
Check out the 'About' page [0], it lists the tech used.

[0] https://dbgate.org/about/

wilsonfiifi··on Where’s the evidence that grit predicts success?
I think what you're missing is that to be successful you need someone to invest in you and your ideas. Whether it's your parents or a VC that point still remains true. However you still need to put in the work. So advice from Musk is still valuable in a way. Not all his advice though lol. You need to pick and choose what's relevant or applicable to your situation and that i think requires wisdom and discernment.

Now as to the question of what success is...

wilsonfiifi··on The Decline of Heroku
To everyone complaining about the cost of Heroku hosting and wishing they could have something similar but cheaper, consider sponsoring or contributing to the Dokku Kubernetes scheduler [0]. You get a similar deployment workflow to Heroku and the scalability of K8.

[0] https://github.com/dokku/dokku-scheduler-kubernetes

wilsonfiifi··on Django 3.2
I think one common misconception is that Django can't be used in place of Flask when you want a minimalist set up. And to be fair, I used to think the same until I read Lightweight Django [0]. Their smallest django project code is just a couple of lines:

    import sys
    from django.conf import settings 
    settings.configure(
        DEBUG=True,
        SECRET_KEY='thisisthesecretkey',
        ROOT_URLCONF=__name__,
        MIDDLEWARE_CLASSES=(
            'django.middleware.common.CommonMiddleware',
            'django.middleware.csrf.CsrfViewMiddleware',
            'django.middleware.clickjacking.XFrameOptionsMiddleware',
            ),
        )
        
    from django.conf.urls import url
    from django.http import HttpResponse


    def index(request):
        return HttpResponse('Hello World')
        

    urlpatterns = (
        url(r'^$', index),
    )

    if __name__ == "__main__":
        from django.core.management import execute_from_command_line

        execute_from_command_line(sys.argv)

Granted, it's not as terse as Flask's hello world example but it's still quite short.

[0] https://www.oreilly.com/library/view/lightweight-django/9781...

wilsonfiifi··on Django 3.2
You can also check out William Vincent's books [0]. They're easy to read and follow.

A nice blog to also include in your django learning resources bookmarks is Simple is Better than Complex [1].

[0] http://wsvincent.com/books/

[1] https://simpleisbetterthancomplex.com/

← PreviousPage 2 of 9Next →