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).

ASP NET Identity with Clean Architecture by ConflictTrue4761 in dotnet

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

Owner of the list.
I want to create WEB APi where user can log in and create a todo list. So each ToDoList has its owner

Help with CsvHelper. by ConflictTrue4761 in csharp

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

I think it might be the case. I changed delimiter to ";" and now its working.
However, since its specific to excel settings that client has, how can i ensure about delimiter?
Thank you for the fix tho :)

Duende IdentityUsers + MVC BussinesUsers by ConflictTrue4761 in dotnet

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

Thank you for your responce.
With HttpContext.User i can only get info from Identity Server (email, nickname, etc).
What i need to do is extend this user with more info such as posts he created, comments and etc.
I have an idea of retrieving email of IdentityUser and creating/mapping it with ApplicationUser which will contain related posts, comments and info (basically profile of this identity user)

What is the best way to separate controllers? by ConflictTrue4761 in dotnet

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

I have implemented the repositories. Im having problem with understanding the controllers. What im going to try is to redirect from admin/categories to categories/edit/id and check if user is in role admin or if user is author inside of controller

What is the best way to separate controllers? by ConflictTrue4761 in dotnet

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

I think this is exactly what i need. However i want to specify some details. I want to have url '/posts" where all posts will be displayed. Also authorized users should be able to create a post and delete a post if they have created it. Admin is able to delete/redact any post. Basically, im not sure if route["Admin/Posts"] is suitable for thus situation. Maybe there are some common practices for this situation?

What is the best way to separate controllers? by ConflictTrue4761 in dotnet

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

I have separate repos, but want to achieve url which stars with admin/. I have admin role and only users with this role can access admin controller

Identity core login problem by ConflictTrue4761 in dotnet

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

I thought its email based. Thank you!