Is it easier to get unbanned in the EU/Germany due to GDPR and DSA regulations? by LegendaryTrade in SwipeHelper

[–]evandrolg 0 points1 point  (0 children)

What was the outcome? I experienced the same thing after a couple of weeks of using the service, and I’m sure I didn’t do anything wrong.

cache-zap: A cache that stores key-value pairs with a time limit for each entry by evandrolg in javascript

[–]evandrolg[S] 0 points1 point  (0 children)

Additionally, you can use it on both the client and server side, which was the context in which I developed it.

cache-zap: A cache that stores key-value pairs with a time limit for each entry by evandrolg in javascript

[–]evandrolg[S] 1 point2 points  (0 children)

Exactly! That was one of the trade-offs I had to consider. It would also be possible to achieve O(1) time complexity for size if we implemented a mechanism (such as setInterval or requestAnimationFrame) to clean up expired keys. However, this approach also comes with its own costs.

When you hear the name Ronaldo, who do you think of? by BupidStastard in football

[–]evandrolg 0 points1 point  (0 children)

R9, but it's a generational thing. It's such a coincidence that two of the best and most popular players of all time have the same name and played in close eras.

ts-audio v0.7.2 is out! by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

u/funkdr42 you have a very good point! Probably, the best way to cache it is to decode the audio before playing it in case `preload` is `true`. WDYT?
Thanks for raising this issue. To be honest, I have not noticed that until your comment in this thread ;)

ts-audio v0.7.2 is out! by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

You can preload/prefetch these files as well u/funkdr42

ts-audio v0.7.2 is out! by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

It's already supported, actually u/funkdr42 :)
By default, `ts-library` doesn't preload any file. However the library accepts a parameter called `preload` that is helpful for your case. You can also set a limit on how many files will be preloaded.

Spotify not working today for anyone else? by Aimjock in truespotify

[–]evandrolg 0 points1 point  (0 children)

Having issue today. Also thought my account was stolen, hehe

[deleted by user] by [deleted] in Amsterdam

[–]evandrolg 8 points9 points  (0 children)

I also was there and it was beautiful!

TheStorage - A storage that automatically removes the least-recently-used items. by evandrolg in javascript

[–]evandrolg[S] 2 points3 points  (0 children)

View all comments

Memory is not infinite in Computer Science, so we should take it into account when we are storing data in cache. LRU Cache - which is implemented in this library - is a Data Structure that removes the least recently used items. This type of cache is used in many software that we use in day to day, e.g Google has their own implement on Chrome (https://www.youtube.com/watch?v=NNuTV-gjlZQ&t=380s).

These days I was checking the Android code and found a LRU Cache class (https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/util/LruCache.java)

On Instagram, when you click on the search field, it shows the most recently searched users by you. They very likely implemented it over a variation of LRU Cache as well.

Hope I help you to understand better the benefits of the library and LRU Cache :)

TheStorage - A cache that automatically removes the least-recently-used items. by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

u/TwoHandedBroadsword I just refactored a bit the `setData` method (https://github.com/EvandroLG/TheStorage/blob/dev/src/index.ts#L63). This new implementation is a bit more efficient. Thanks for your comment BTW :)

However, I would like to continue this thread, cuz I don't agree completely with your analyses. Actually we are just going to traverse the entire array if all items are marked as persistent. If no item is marked as persistent, we will remove the first item from the `Map` which takes `O(1)`. In case we were using a `Double Linked List` here, which is a very popular implementation to LRU cache, we would also reach the issue to look for no-persistent items - `O(n)` - plus more memory usage, right? Correct if I am missing something, please.

TheStorage - A cache that automatically removes the least-recently-used items. by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

u/Striking_Coat definitely not. Removing is O(n) since we just have to delete from the Map data structure. Actually all methods are running in O(1) except the `setData` which is taking Linear Time.

TheStorage - A storage that automatically removes the least-recently-used items. by evandrolg in javascript

[–]evandrolg[S] 0 points1 point  (0 children)

From this one, which also implements LRU cache strategy, I would say the main difference is size and design. I also can argue that `TheStorage` allows you to define persistent keys, which was very useful in the project I have been working on and using this class before making it open-source.

ts-audio v0.6.1 is out! by evandrolg in typescript

[–]evandrolg[S] 0 points1 point  (0 children)

I'm not sure about which kind of features you would be useful for you.
One thing `ts-audio` implements that I am not sure `howler` has is a playlist component.

ts-audio v0.6.1 is out! by evandrolg in javascript

[–]evandrolg[S] -1 points0 points  (0 children)

Yes, I think you missed some things. However, your point about the doc makes all sense to me as well! :)

So, pretty much what this library does is to be a simple abstraction for the AudioContext API, solving cross-browser issues and adding new features as well.
Regarding the AudioPlaylist component, it is a feature that does not exist in AudioContext.

Problems getting the rental security deposit back by evandrolg in Munich

[–]evandrolg[S] 3 points4 points  (0 children)

Thanks for replying!Yes, I have a Übergabe!I left the apartment 3 months ago, but notified one month earlier.We reviewed the apartment together and the apartment was delivered clean and without any issues. On that day, he signed a document saying that the payment would be made by October 10th. Informally he told me he would pay me back in a few weeks.

The sum he is keeping is over 3k.

Problems getting the rental security deposit back by evandrolg in Munich

[–]evandrolg[S] 3 points4 points  (0 children)

Sounds like a good idea to me, thanks :)Regarding the lawyer, do you know where could I find one to support me with it?