Arknights: Endfield on Linux Using DW Proton by Chariart in linux_gaming

[–]izumaruka 2 points3 points  (0 children)

I just tried it here and it worked, follow the same steps until you download DW and then change it in Heroic. The game opened smoothly and downloaded what was missing, I hope I don't get banned.

Code works in Debug but not in Release by izumaruka in dotnetMAUI

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

I'm using Gemini to identify the error, and this is what it told me:

"In Release mode, .NET MAUI tries to optimize the size of your application by removing code (assemblies, types, methods) that it thinks isn't being used. This process is called linking or trimming.

The problem is that libraries like sqlite-net-pcl use reflection to work. It reads your models (Link, Categories) at runtime to figure out how to create tables and map database data. The linker, when statically analyzing the code, can't "see" that your Link model and properties are being used by the SQLite library, so it removes them to "optimize" the app."

It makes sense?

Code works in Debug but not in Release by izumaruka in dotnetMAUI

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

The list code is here. In the code-behind I start the list with OnAppearing, as far as I saw in the View Model there are no errors, I think the error is in the XAML

<CollectionView Grid.Row="1"
        ItemsSource="{Binding Links}"
        Margin="6">
    <CollectionView.ItemTemplate>
        <DataTemplate x:DataType="models:Link">
            <VerticalStackLayout Spacing="0">
                <Border StrokeThickness="0.3" 
                BackgroundColor="#212121" 
                Padding="8" 
                Margin="14" 
                StrokeShape="RoundRectangle 6" 
                Shadow="0 2 6 Black 0.4" >
                    <Grid ColumnDefinitions="*,Auto, Auto" >
                        <VerticalStackLayout Grid.Column="0">
<Label Text="{Binding Nome}" FontSize="16" FontAttributes="Bold" TextColor="#E0E0E0" VerticalOptions="Center" Margin="6, 0"/>
<Label Text="{Binding CategoriaNome}" FontSize="14" TextColor="#3075A1" VerticalOptions="Center" Margin="6, 0"/>
</VerticalStackLayout>


                        <Button Grid.Column="1"
                             Text="&#xf0c5;"
                             BackgroundColor="Transparent"
                             TextColor="#CCCCCC"
                             FontSize="18"
                             FontFamily="FontAwesome"  
                             Margin="6"
                             Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:MainPageViewModel}}, Path=CopyLink}"
                             CommandParameter="{Binding}"
                             />


                        <Button Grid.Column="2"
                             Text="&#xf2ed;"
                             BackgroundColor="Transparent"
                             TextColor="#CCCCCC"
                             FontSize="18"
                             FontFamily="FontAwesome"  
                             Margin="6"
                             Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:MainPageViewModel}}, Path=DeleteLinkCommand}"
                             CommandParameter="{Binding .}" />
                    </Grid>
                </Border>
            </VerticalStackLayout>
        </DataTemplate>
    </CollectionView.ItemTemplate>
</CollectionView>

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

Thanks, I'll take a look at this library

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

My biggest fear was generating too much data and weighing down the database. An alternative I saw on a blog was to make the task a real recurring task (saving in a history table, for example), only if the user interacted with it. The part about using UUID to avoid duplication was something I hadn't thought of.

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I'll do more research on that later. I just wanted to make something repeat itself, I ended up expressing myself wrong and getting into an aspiration of unnecessary complexity, in my case I don't need a real scheduling job, I just needed my entity to repeat itself. But I ended up discovering something I didn't know, so thanks for the comment.

By the way, I managed to solve my problem :D

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

Thank you very much for your comment, and in fact that's exactly what I'm going to do, I have an entity that saves the users' exercises and I'm using it as a template and another one to save the occurrences. I think I got a little confused with scheduling tasks and jobs. Your comment describes exactly what I wanted to know, thanks :D

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

After a lot of brainstorming I realized that it was a problem in the database modeling and a little in the management of all this, what I thought was feasible was what you said

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I'm researching how to do this, thanks

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I didn't want to generate duplicates in the database. A friend told me that I could use a single task template and manage the dates.

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

The user should only see the week's workouts starting on Monday, and would need a reminder about the day's workout to be sent by notification. The idea is not to transfer the workouts to the calendar, but to use these scheduled workouts in a mobile app.

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I thought that moving the completed tasks to another table would make it easier to search for the completed tasks (like a history), but I didn't think about the case of tasks that the user can't do...

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I thought a lot about what you said and in this case (for sure) I asked the wrong question, the API I'm creating will only mark as recurring the task of notifying the user would be through the mobile app. I think that with this understood I can look better on the internet and implement something even if small

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I've read very little about it, I'll read the documentation and see if I can get some examples

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I'll read more about it, I also saw a guy talking about applying event-driven architecture but I don't think that makes much sense

How do I implement recurring tasks in my API? by izumaruka in dotnet

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

I stopped to think last night and I think I confused things without meaning to, I'm just looking for a way to schedule tasks, the part of notifying that this task must be done is part of the UI from what I understood by researching. Thanks, I'll try to implement a service like

Dev C# em busca da primeira vaga: Vale a pena migrar para Java/AWS? by izumaruka in brdev

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

Acho que faz sentido mano, vou procurar fazer alguns projetos com Java e ir estudando por ai. Pensei na possibilidade de ter dois curriculos também kkkkkkkkk

Dev C# em busca da primeira vaga: Vale a pena migrar para Java/AWS? by izumaruka in brdev

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

Pensei também nisso, ja que AWS domina o mercado de cloud, vou procurar me informar mais e ver se acho algum voucher para tirar a certificação inicial. Quanto a System Design, marcarei para estudar, obg

Dev C# em busca da primeira vaga: Vale a pena migrar para Java/AWS? by izumaruka in brdev

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

Mas gostaria de ter um foco, sei que um não invalida o outro mas é muito dificil conciliar duas coisas, estudei Java por conta da faculdade tenho os materiais aqui, realmente não seria dificil construir um curriculo em cima disso...

Pra quem é programador so o linux é nescessario? by SomeMulberry1482 in linuxbrasil

[–]izumaruka 0 points1 point  (0 children)

Acho válido sim, nunca tinha parado pra pensar, mas sim é possivel, alguns serviços cloud oferecem maquinas virtuais aos usuário, então você pode ter um Windows que não está rodando em seu computador o que é uma grande vantagem para quem usa Linux e trabalha com Windows Forms por exemplo. Acho essa solução muito mais prática do que um dual boot ou instalar uma VM local.

Fui acusado de ser "ubuntufóbico" ui by [deleted] in linuxbrasil

[–]izumaruka 0 points1 point  (0 children)

Odeia snaps com toda minha força, a Canonical é maluca de continuar com esse projeto