HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ignasl

no profile record

Submissions

Show HN: Discord/Reddit alternative with follow functionality (mongo/meteor.js)

heahy.com
8 points·by ignasl·5 yıl önce·1 comments

comments

ignasl
·5 yıl önce·discuss
No, you are wrong.

>the fact that not so long ago they were over 3 times higher

They never were. You can check futures price data here: https://www.investing.com/commodities/natural-gas On top of that you're probably talking about those spikes in 2005 and 2008, but they were short lived and spikes are natural for gas markets because of various circumstances (seasonality, pipeline situation, weather, how full are the reserves etc).

>not so long ago It was 13 years ago! And now it's the highest price since. The reason for such a ridiculously low prices for so long was shale gas extraction. Now US is losing this and more. Because natural gas prices are so sensitive (and react quickly!) to various things - you better hope for warm winter with decisions like these...

Also comparing prices in US and in other countries is intellectually dishonest or you simply don't know how natural gas market works.
ignasl
·5 yıl önce·discuss
Yes, killing spiders is a bad omen in Lithuania. Usually they're simply thrown out. Not sure how many people does this nowadays but it stuck with me.
ignasl
·5 yıl önce·discuss
I don't know if that guy was spreading some fake info on twitter but this article is very detailed and factually everything is correct.
ignasl
·5 yıl önce·discuss
No one will come for you. They will simply cut you off - won't provide healthcare, won't allow you into the stores to buy food, force your employer to fire you so you have no income. But it's not force - you can choose. Same way like people actually have all the freedoms in North Korea - they can be critical of supreme leader if they want to they just need to choose to do it.
ignasl
·5 yıl önce·discuss
Lithuanian constitution specifically states that no one can be forced to use experimental drugs, yet now you can't go to the shop and buy food if you are unvaccinated. Just yesterday hundreds of cops were checking people in stores for papers. If this is not a dystopian autocracy then I don't know what is. I am seriously consider moving away while I still can.
ignasl
·5 yıl önce·discuss
Hi, I have already showed my project here but now I introduced a pretty big new feature. Now you can follow any user/channel/thread and the latest 5 posts from your follow will appear on your personal wall on the homepage.

You might ask why only 5? Turns out personal wall is not as easy to solve without significant time investment if you want to keep it performant too. Simply naively aggregating posts would be costly on database and wouldn't scale for sure and potentially wouldn't even perform on small scale. Some smart architecture with smart caching for each user wall seemed complicated for that project that is already too big for one person. But then I thought of using things I already use - mongodb and meteor.js. My architecture is quite simple: there are tracker doc collection where document contain 5(or X) latest posts in an array and every-time something is posted this tracker is updated. Then there is userFollows collection with docs to connect users with trackers. From there I allow meteor.js to handle the rest. Once it subscribes to trackers that user follows all the posts of those trackers are shown on the front page with the added advantage that any new post if transferred right away because of meteor's reactivity so front page is "real time". I also use redis-oplog package for meteor which caches collections server side and made this pretty performant and very easy to implement. It's not ideal but hopefully it will be good enough.
ignasl
·5 yıl önce·discuss
If they didn't have antibodies how did they beat covid?
ignasl
·10 yıl önce·discuss
" It turns out that it enabled mediocre software architects to spend great quantities of corporate money coming up with mediocre designs to be implemented by mediocre programmers, resulting in mediocre software and mediocre return on investment."

But most people are mediocre. That's just how the world works.