Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nelsontky
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Show HN: Decentralized Pokemon game on the Solana blockchain
(solana.playspokemon.xyz)
2 points
by
nelsontky
4y ago
|
0 comments
2.
▲
by
nelsontky
4y ago
Nope it really depends on the plan/pricing you get. The cheapest "droplet" is lousier than a chromebook but there is a wide range of VPSes of varying specs you could choose from! https://docs.digitalocean.com/
3.
▲
by
nelsontky
4y ago
Nice thats what i do too! I use a combination of code-server running on a gcloud instance and chrome remote desktop to do my work on a lenovo duet chromebook!
4.
▲
by
nelsontky
6y ago
Cuz they are supposed to be called by people building various apps, and it does not make sense to limit the source of the network requests
5.
▲
by
nelsontky
6y ago
Thank you for the reply! I definitely learnt a lot from your comprehensive replies. Personally, I am just getting started in web development and I have traditionally written everything with the help of frameworks like ReactJS and the like a
6.
▲
by
nelsontky
6y ago
Wow.. I don't even know where to start.. Thanks for the heads up that's cool beans!
7.
▲
by
nelsontky
6y ago
Base64 would probably be longer than the original URL. I can't really see how short pieces of text (like URLs) could be compressed to become smaller. That being said it's definitely a cool concept! I once worked on a code playgrou
8.
▲
by
nelsontky
6y ago
Oh that is cool! It does remind me of https://telegra.ph/ by Telegram! (Even though they weren't really advertising it as a universal shortener). Just a quick question, how did you promote your platform!
9.
▲
by
nelsontky
6y ago
I would suppose doing a push every time a new URL is added would be quite expensive for GitHub too. Plus, GitHUb pages is not updated immediately upon push and it takes some time for new links to work. That being said, this is definitely no
10.
▲
by
nelsontky
6y ago
Well I would believe that even a `json` file or any other form of storage written to disk is considered a database, But your suggestion definitely brings it further away from an actual database!
11.
▲
by
nelsontky
6y ago
I do have YOURLS on my personal domain/server. It does work well for me and has no spam as link creation can be made private!
12.
▲
by
nelsontky
6y ago
Indeed and especially with many shorteners not being maintained and going down. That being said, this one is not meant to be an actual URL shortener, but rather, a cool hack and it is not meant to be used widely or used in production.
13.
▲
by
nelsontky
6y ago
Hmm having a GitHub action redeploy the site is not instantaneous and it does take up to 1 minute for the site (and consequently the new short link) to be updated. Nevertheless, that is a sweet idea, and there are other replies that suggest
14.
▲
by
nelsontky
6y ago
I am calling GitHub's official API. APIs are not supposed to have any CORS restrictions.
15.
▲
by
nelsontky
6y ago
If the links were to be stored in files, I probably would run a GitHub action on every push to statically generate the pages for new links!
16.
▲
by
nelsontky
6y ago
Probably GitHub's API went down for an instance since I didn't make any new pushes then!
17.
▲
by
nelsontky
6y ago
Thank you for the advice! I love that domain though, have always been trying to find a 4 character URL shortener since GoDaddy killed x.co. Will definitely use your service more than I use my own HAHA. That being said, my project is not mea
18.
▲
by
nelsontky
6y ago
I figured that since the dependencies were only used in the build step it's not really considered. That being said, I didn't know ES2015 had `.then()` and was kinda trying out babel since I always used CRA and never knew what was
19.
▲
by
nelsontky
6y ago
My fault. Didn't know that ES2015 actually supported `.then()`. Anyway, this was also an exercise for me to learn about babel (I use CRA all the time so have no idea what is going on behind the scenes) and this was a nice intro!
20.
▲
by
nelsontky
6y ago
Thank you for the kind comments! That's was the aim of the project, to make it fun and easy to create new short links!
21.
▲
by
nelsontky
6y ago
This is definitely just a fun hack and not meant for production! For production ready short links with low overheads I would personally recommend using Firebase URLs or cloud firestore.
22.
▲
by
nelsontky
6y ago
What I meant was that GitHub's API does not check for the Host header, and the API allows connections from any source. Thus, CORS isn't an issue at all.
23.
▲
by
nelsontky
6y ago
Yes I agree with all of the above. And with my fixation on URL shorteners, I did have a dream of creating a full fledged URL shortening service like yours. I wasn't technically skilled enough for that then and thus didn't do it bu
24.
▲
by
nelsontky
6y ago
That's a good one fixing now hehe
25.
▲
by
nelsontky
6y ago
Some guy shared his project in this post that does exactly that! Yes while that is possible and can get to a high level of automation via GitHub actions, the point of my URL shortener was more of people could post a link easily with a simpl
26.
▲
by
nelsontky
6y ago
The github api does not care about your origin so that wasn't something I had to deal with! If I had to deal with something like that, my best option would be to use a proxy server, which would arguably negate the whole point of this &
27.
▲
by
nelsontky
6y ago
Cool project! Thanks for sharing! Yea the reason why I chose GitHub issues as a "database" was because it is simple to add a short link that manner. Definitely may get messy and there are other shortcomings like the lack of abilit
28.
▲
by
nelsontky
6y ago
Indeed, especially with the recursive link created by someone else (nlsn.cf/6) GitHub does have a 60 calls per hour API limit so I don't think it affects them as much(?) That being said this project is meant to be for fun and defi
29.
▲
by
nelsontky
6y ago
HAHA so that was you. That was a good one! Yes and that title is definitely slightly misleading I kinda didn't want it to get so long and wanted that slight clickbait effect. Yep I actually cannot control the status code at all. Part o
30.
▲
by
nelsontky
6y ago
I was always fixated with URL shorteners and always wanted to write one myself. While it would be easy to write one that works with a server, I loved the idea of hosting and running one for free. Thus, I wrote this URL shortener which does
More ›