News for hackers. Stuff that matters.

evrimfeyyaz

Re:Using ChatGPT as a Co-Founder on Monday December 05, 2022 @09:11AM (#33865848)
I think it's not getting that the friend who has two tokens is the same as the one you owe a token to. When you change the question to make it clearer, it responds correctly.

"My friend has two tokens and I have six, but I owe one to the same friend. There is a toy that costs 7 tokens. Can my friend and I afford to buy it?"

Re:How I Became a Libertarian on Sunday May 09, 2021 @04:44AM (#27094345)
I personally don't agree with most of the things the article says and that's exactly why I shared it on Hacker News. I was hoping that some smart people with good insights on the topic could respond with rebuttals and I could learn from them. But I guess even on Hacker News people are intolerant towards ideas that they don't "like."
Re:Using Google Analytics without GDPR consent on Friday December 04, 2020 @08:14AM (#25301877)
This is a fair point. I wish there was a way to get a visitor's IP without the need to call a server.

That being said, my website is already served through Cloudflare, and this is an endpoint Cloudflare provides for debugging purposes.

I think this is ethically safe, but legally it probably is not. I definitely agree.

Re:13% of my website visitors block Google Analytics on Monday July 13, 2020 @05:59AM (#23819030)
I use Wipr. So far so good.
Re:Ask HN: What did you make during lockdown? on Sunday June 21, 2020 @02:02PM (#23593849)
I made a web app that visualizes the COVID-19 data: https://covid19.evrim.io
If you are interested in seeing the source code, the app is open source: https://github.com/evrimfeyyaz/covid-19-in-charts

I have also separated the part that fetches and formats the data into a library that you can use: https://www.npmjs.com/package/@evrimfeyyaz/covid-19-api

Thanks for the kind words!

> Just noticed - UK recoveries data looks incomplete. which data source are you using?is it not present in your data source or govt not providing it to public?

The data is from the Johns Hopkins University CSSE. Apparently the UK government does not share recoveries data. There are other places that lacks recoveries data, so I decided to add a small popover that explains it to the user. If you go to the website now, and change the location to the UK, under "Recoveries" it says "No Data," and hovering over the "Why?" below it shows an explanation.

> Just to add, at the beginning under "Latest cases" section adding 'Active Cases' count along with other 3 counts(Confirmed , Deaths, Recoveries) will give better idea on current status of the country.

I have now added the active cases information. But it's not shown in a card like the other three (it looks too crowded with four cards).

> is it possible to add another geographical graph showing top 5/10 countries with color codes? I used filter to check whichever country data I want to see. I would also like to know which countries have highest cases and maybe compare two countries graph?

I actually included a location comparison page at first, but then decided to remove it. Comparing locations didn't seem too reliable to me for two reasons:

1. The quality of the data between locations vary. 2. As all the values are total values for a given location, naturally places with bigger populations tend to have bigger numbers. To counteract this, I needed to also calculate per capita values, which would add some extra work, and I wasn't sure if people really wanted to see it.

If there is enough people interested, I might add that. Also, the whole thing is open source, here is the source: https://github.com/evrimfeyyaz/covid-19-in-charts. If you are interested in adding anything, you're more than welcome.

Thanks a lot for all your feedback, I really appreciate it. I added a few new things based on what you said.

Ask HN: I made a Covid-19 data visualization app, what else can I add to it?

I have created a web app that visualizes the COVID-19 data: https://covid19.evrim.io.What would you recommend I add that would provide an interesting point of view that isn't obvious by a simple plotting of the data?For example, I show the exponential moving average of the new cases data, which makes it easier to see a mid-term trend.I don't want to add any forecasts, as I neither have the...

( Read More... | 2 comments | on HN )
Re:Ask HN: Have you made any use of IndexedDB? on Wednesday June 10, 2020 @03:48PM (#23481242)
I use it on a simple website I built: https://covid19incharts.com

This website fetches the Johns Hopkins University COVID-19 data from GitHub (in CSV files), and fetching this every single user action is not feasible.

When a user first enters the website, this data is fetched from GitHub, parsed and formatted, and stored in IndexedDB (until it's deemed "stale").

I first used Local Storage, but I needed more space than most browsers allow on Local Storage, so I moved to IndexedDB.

By the way, the API of IndexedDB is somewhat awkward, but there are great libraries like IDB (https://github.com/jakearchibald/idb) that make it much more developer-friendly.

Re:Ask HN: How many hours per day are you working? on Wednesday June 10, 2020 @09:09AM (#23476599)
I agree, this method probably works for a "maker" and not a "manager" (or a person whose job requires them to move between tasks a lot).
Re:Ask HN: How many hours per day are you working? on Wednesday June 10, 2020 @09:07AM (#23476583)
That's really interesting.

- If we say you take a 10 minute break every 50 minutes, you would need almost 10 hours to work 8 hours. - Let's say lunch for 30 minutes, dinner for 30 minutes. We're at 11 hours. - If you're sleeping for eight hours, we're at 19 hours.

This is a very very strict, and probably somewhat unrealistic schedule, and you only have five hours left after this. Realistically, there would be a lot of other small things that add up to a few hours, going to the bathroom, responding to people on WhatsApp, cooking, etc.

Are you really good at managing your time and getting started, or do you only focus on work and try not to spend time on hobbies and other activities?

Re:Ask HN: How many hours per day are you working? on Wednesday June 10, 2020 @09:00AM (#23476536)
This is close to my experience as well. If I want to do anything else that day, such as cook, exercise, relax for an hour, maybe practice the guitar, the maximum I can do is around five hours. For anything above that, I have to be super strict and/or give up other activities.
Re:Ask HN: How many hours per day are you working? on Wednesday June 10, 2020 @04:49AM (#23475162)
I think you meant "6 hours... counting the short breaks." In any case, I think six hours is a good number.

So, you have to put in eight hours of actual work? A usual workday is eight hours, but I'd say most employees probably do less than four hours of actual work every day.

Are you a freelancer or an employee, if you don't mind my asking?

Ask HN: How many hours per day are you working?

If you are tracking your time, how many hours of focused work are you doing per day on average?What I mean with focused work is only the time that you are working. Not counting the time you take a break, not counting the time you go to the bathroom, not counting the time you get up to drink water, etc. If you don't stop your time-tracker during non-work activities, please mention it.

( Read More... | 15 comments | 8 points | on HN )

Older »