Hacker News new | past | comments | ask | show | jobs | submit | cnu's comments login

Last week of 2023, I built an HN TLDR site that summarizes Hacker News articles into 3-5 sentences — just something to try my hands on OpenAI APIs.

I want to build more features and add support for any RSS feeds too.

Nothing to make money out of, but something for my personal use.


That’s awesome! How did you like working the OAI API?


I think having a single place to record all your transactions would be a good feature. And if they have a way to send receipts to customers via SMS/whatsapp, it would be a great.


I would like a simple record keeping box that can be shared with more complex devices for applications requiring messages or complex reports. I would like to see the device maintain a simple "Datagram" approach for each transaction with text file export of grouped transactions.


It's a poorly written post. I think mostly written for SEO and traffic.

One thing that I didn't notice others here didn't comment about:

In the section where they write about xrange vs range in python 2 vs 3, they reference a piece of code supposedly written for py3 which isn't there.

xrange was fast in python 2 because it allows you to evaluate lazily, which is what range does in python 3.

So whatever benefits you got out of xrange is there in range.


We few people know it could be bypassed. But how will the millions of other users who know nothing about VPNs? Also what if Airtel blocks all these popular VPNs?

Also its not about if we can bypass it or not. It is about what is morally/ethically right and what is wrong.


Check out http://learnxinyminutes.com/. Loads of languages/tools to learn.


And if I am travelling from New Delhi to London, how would I know/sync what time the sun rises/sets?


Trying to use timezones to figure out what the sun is doing is already an exercise in futility: http://www.daylightmap.com/index.php

The earth's axis is tilted so in addition to needing to know the timezone and the date in a solar sense, you also need to know the latitude and need to be able to combine those three things in your head... in practice you just look it up instead.


Oh, that's easy: the sun never sets on the British empire.

Seriously, though, time zones do not help with that. The sun sets at nine in the evening in Leicester in July. Can't be helped, the length of the day is different.


How do you know now?

Time zone info doesn't just pop into your head. You have to look that up too, or at least receive it somehow. Sunrise data could be obtained the same way. The difference being, of course, that you wouldn't need to look up anything that didn't care about the sun, while time zone info needs to be known to make sense of any time.


> You wouldn't be the author of that blog by any chance?

The author of that blog, "Kenneth Gonsalves" is dead for almost a year.


I'm sorry to hear that. That just makes the above poster even worse, in my opinion.


If you have compiled it to HTML, wouldn't it be more efficient to serve it up as static HTML files via nginx (or any web server). Why store the HTML in redis and serve off it via an application?


With aggressive disk caching on servers static files are probably near enough in-memory anyhow (+ I'm sure you could configure a modern web server application to cache anyhow), so yeah it's probably pretty fast.

However it's more limiting to simply serve static files - you're limited to what you've generated. With redis you can serve it as json data and use it dynamically for e.g. search or showing all articles with a given tag, in a given date range, etc.

Additionally, I'm not a big fan of a whole bunch of static files sat in a folder somewhere that needs to be regenerated every time I change something. Personal preference, perhaps :-)


If you're generating static HTML, why not generate static JSON? Then you can use it for client-side search, for example.

Check out my website's repo: https://bitbucket.org/devlinzed/devlinzed.com/src. It has a JSON format for just about every URL, but is still entirely static:

http://devlinzed.com/2013/may/keeping-all-your-data-safe

http://devlinzed.com/2013/may/keeping-all-your-data-safe.jso...


Your site loads very quickly. (PageSpeed Score is 97 out of 100 -- only suggestions are for the gravatar.)

Would you care to reveal a little more about where/how you host your site?


I host it in DigitalOcean's New York datacenter (on a 512 MB VPS). They're pretty alright, but any VPS would do the trick. In fact, I only use a VPS because I can't properly set caching or gzip headers on GitHub pages.

As far as I know, the only thing that I do that most static sites don't is precompile gzip files for HTML pages, and minify pretty much everything (including HTML and images.) PageSpeed, Pingdom and RedBot were very helpful for providing web server optimizations. I would just observe and implement every tweak they mentioned; there's a lot you can do managing your own server that you can't with AWS or GitHub.

And make that 100/100. :)


I love how crazy fast your site is on my slow browser (chrome on iOS seems to drag when you've got 100+ tabs). I'm starting a blog network as a side project and setting it up as Jekyll for exactly this kind of performance.

Also love the honest assessment that in your repo's description that your setup is "far more neckbeard and far more work" :)


Interesting. It's still useful to have the data in REDIS so you can easily search through data server-side, but of course that could simply load from static JSON if + when REDIS is restarted/new data is added.


Can you do a blog post instead? Would help lot of developers like me who are looking into Go as the next programming language to learn.


I use gandi for all my domains. Even use their mailbox for 1 domain and haven't had a problem. I would recommend only gandi to anyone.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: