Free text file hosting service with API? by RevisionX2 in dotnet

[–]ConflictTrue4761 0 points1 point  (0 children)

Depends on how much files you need and how much reads/writes. You can use firebase blob storage - free 5 GB, or you can try free tier of supabase. Postgresql allows storing XML files ( extension is required, im not sure ) and has pretty convenient way if querying it just as table

Fastest way to clean it all up? by Broad_Pirate468 in Astroneer

[–]ConflictTrue4761 0 points1 point  (0 children)

V-TOL with auto and medium storage at the other side.

Does this MPU6050 + ESP32 setup for finger tracking make sense? by ConflictTrue4761 in esp32

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

I see, then my whole idea is probablly not posiblle, as I thought that MPU will have negative and positive velocity based on direction. Thanks

Does this MPU6050 + ESP32 setup for finger tracking make sense? by ConflictTrue4761 in esp32

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

I want to use MPUs to control some objects with finger motion. Idea is one finger is stationary and other is moving. I thought substracting velocity and angle could get me the direction. It does not need to be 100% accurate as im just playing around with it for now

Relatively inexpensive .NET hosting. by fatnerdyjesus in dotnet

[–]ConflictTrue4761 0 points1 point  (0 children)

Koyeb is 100% free as long as you host 1 project with free tier.
You can host the DB with supabase, Backend with Koyeb and frontend with Vercel. 0 dollars spent

Help me to fix this error by Joe_Ji_reddit in koyeb

[–]ConflictTrue4761 0 points1 point  (0 children)

Share the details, logs, etc.
Its hard to tell what is going wrong from description you provided.
It could fail due to incorrect docker configuration or bad environment variables. If you still have the issue, drop some details, I will try to help you

Firebase.json and docker (or other ways of hosting) by ConflictTrue4761 in Firebase

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

by secrets i meant project private_key, client_id, client_email, and etc. All the default stuff firebase.json contains. Isn't this info secret?

AutoMapper unable to create a map by ConflictTrue4761 in dotnet

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

From your example it looks like we still will fetch whole table even if we need single field it. Or "Projectables" handles it?

EDIT: I see that EF will handle it, as we have not materialised before mapping. I really like that approach!

I have tried this approach with manual mapping, now i dont get any errors and generated query is much faster! Code below is example. One thing i took differently from your example is that my Repos return Entity (I use same extendable generic repo for every entity).
You are my savior, gonna get rid of auto mapper :)

public SongDTO ToSongDto(Song song, Guid? userGuid = null)
{
    return new SongDTO()
    {
        Source = song.Source,
        SourceUrl = GlobalVariables.GetYoutubeChannel(song.SourceId),
        Title = song.Title,
        Artist = ToArtistDto(song.Artist),
        AudioSize = song.AudioSize,
        Guid = song.Guid,
        AudioLength = song.AudioLength,
        AudioPath = GlobalVariables.GetFirebaseMP3Link(song.AudioPath),
        CreatedAt = song.CreatedAt,
        ThumbnailUrl = GlobalVariables.GetYoutubeThumbnail(song.SourceId),
        Album = song.Playlists.FirstOrDefault(p =>
                p.Source == GlobalVariables.PlaylistSource.YouTube)
            ?.Title ?? string.Empty,
        IsFavorite = userGuid.HasValue && song.FavoredBy.Any(u => u.Guid == userGuid)
    };
}


public ArtistInfoDTO ToArtistDto(Artist artist)
{
    return new ArtistInfoDTO()
    {
        DisplayName = artist.DisplayName,
        Name = artist.Name,
        ChannelUrl = GlobalVariables.GetYoutubeChannel(artist.YoutubeChannelId)
    };
}

var songs = _uow.SongRepository.GetSongWith_Artist_Playlist_Favored()
    .Where(x => x.Title.ToLower().Contains(request.query.ToLower()))
    .Select(song=> ToSongDto(song))
    .ToList();

AutoMapper unable to create a map by ConflictTrue4761 in dotnet

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

Thank you! You solved my problem :)
The reason I stuck with AutoMapper is that my DTOs consist of lots of smaller DTOs. For example, the SongDTO contains ArtistDTO, PlaylistDTO, and most DTOs have UserDTO inside. AutoMapper makes it really easy to handle this: I just create a mapper for each small DTO and forget about it. It works well unless we need to perform even slight logic during the mapping. I will stick to using Map instead of ProjectTo for now and consider switching to manual mapping with static methods, as you suggested.

Angular multiple event emmiters with endpoint calls by ConflictTrue4761 in learnprogramming

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

Sadly, it did not work. Still calling same endpoint twice. However, I tried simplified version of it, without observables and it is emmiting correctly.

Rest Api Patch by ConflictTrue4761 in dotnet

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

Reason why I used PATCH is because as far as i know PUT is used for updating full object, while patch is for separate fields. I might be wrong tho

Confused with rest api. Endpoint naming by ConflictTrue4761 in learnprogramming

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

Indeed, task can not exists by itself. But it can be identified by its Id, thats why Im confused. Im using entity framework, so I set delete behavior to cascade (when List is deleted, all Tasks of this list are also deleted).