Down
Down
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Down on 9/16/2023 in #questions
creating fullstack dashboard with nextjs
Hey so i have already had this project set up but with react front and nestjs backend github link I wanted to rewrite it to nextjs and someone recommended me t3-app to create full stack app with nextjs so here i am asking how to do API in this cause the things it generates is kinda overwhelming for a beginner, can someone point me where to start? should i use tRPC?
3 replies
CC#
Created by Down on 3/10/2023 in #help
❔ xamarin error
2 replies
CC#
Created by Down on 3/4/2023 in #help
❔ conversion operator
someone wanna explain what is the difference between implicit and explicit operator?
10 replies
CC#
Created by Down on 2/27/2023 in #help
❔ timestamp correct type
4 replies
CC#
Created by Down on 2/25/2023 in #help
❔ error when converting string to long
27 replies
CC#
Created by Down on 2/25/2023 in #help
xamarin error
1 replies
CC#
Created by Down on 2/20/2023 in #help
❔ xamarin forms displaying text in 1 line with spacing
25 replies
CC#
Created by Down on 2/19/2023 in #help
❔ string modify
how can i transform string like this 1234 5678 9123 4567 to this 1234 **** **** 4567 in a lambda function
9 replies
CC#
Created by Down on 1/26/2023 in #help
problem with reading file in xamarin forms
11 replies
CC#
Created by Down on 1/20/2023 in #help
❔ xamarin listview doesnt update
hi so i have a weird problem in my code behind i have 2 methods
private void SearchList(object sender, TextChangedEventArgs e)
{
listView.ItemsSource = SearchService.GetSearches(e.NewTextValue);
}

private void Refresh(object sender, EventArgs e)
{
listView.ItemsSource = SearchService.GetSearches();
listView.EndRefresh();
}
private void SearchList(object sender, TextChangedEventArgs e)
{
listView.ItemsSource = SearchService.GetSearches(e.NewTextValue);
}

private void Refresh(object sender, EventArgs e)
{
listView.ItemsSource = SearchService.GetSearches();
listView.EndRefresh();
}
one is called when searching and one is called when refreshing all i do in both is just reassign the ItemSource to new Items the weird part is that when i refresh nothing updates on screen while when i search and remove the text from search bar it is updated after so basically looks like listView.ItemsSource = SearchService.GetSearches(e.NewTextValue); this line works while this does not listView.ItemsSource = SearchService.GetSearches();
3 replies
CC#
Created by Down on 1/19/2023 in #help
❔ filtering searches
So i have this field
private static List<SearchGroup> _searches = new List<SearchGroup>
{
new SearchGroup("Recent Searches")
{
new Search { Id = 1, Location = "New York", CheckIn = DateTime.Now, CheckOut = DateTime.Now },
new Search { Id = 2, Location = "Los Angeles", CheckIn = DateTime.Now, CheckOut = DateTime.Now }
}
};
private static List<SearchGroup> _searches = new List<SearchGroup>
{
new SearchGroup("Recent Searches")
{
new Search { Id = 1, Location = "New York", CheckIn = DateTime.Now, CheckOut = DateTime.Now },
new Search { Id = 2, Location = "Los Angeles", CheckIn = DateTime.Now, CheckOut = DateTime.Now }
}
};
and i have a method public static IEnumerable<SearchGroup> GetSearches(string filter = null) that gets filter as parameter and needs to return new List<SearchGroup> but only with Searches thats Location property starts with filter value tried doing it with Linq and i dont know how to make it this is my attempt:
public static IEnumerable<SearchGroup> GetSearches(string filter = null)
{
return _searches
.Where(outer => outer
.Where(inner => inner.Location.StartsWith(filter))
.Select(item => item));
}
public static IEnumerable<SearchGroup> GetSearches(string filter = null)
{
return _searches
.Where(outer => outer
.Where(inner => inner.Location.StartsWith(filter))
.Select(item => item));
}
3 replies
CC#
Created by Down on 1/11/2023 in #help
❔ xamarin xaml binding
Is there a way to bind value of 2 varriables at once to one Label? <Label Text="{Binding CheckIn, CheckOut, StringFormat='{0:MMM dd, yyyy} - {1:MMM dd, yyyy}'}"></Label> Tried something like this i was hoping that i can make it format the label this way "{CheckIn:MMM dd, yyyy} - {CheckOut:MMM dd, yyyy}"
5 replies
CC#
Created by Down on 12/19/2022 in #help
✅ usage of angle brackets
hi can someone show me how to use <> brackets in c#
12 replies
CC#
Created by Down on 11/6/2022 in #help
how can i accept only array of 2 doubles?
tried this but i get error public SomeConstructor(double[2] pointA)
28 replies
CC#
Created by Down on 10/27/2022 in #help
class problem
hi so i want to create class which i want to create only 1 instance of and do i make it a static class or normal?
3 replies
CC#
Created by Down on 10/23/2022 in #help
beginner help
Hi so im new and i need to present in code this things: Defining a class, Field vs Property Calling functions from the base class Constructors Static function Static field I know how to make few of them but still would be nice if you show me
23 replies
CC#
Created by Down on 10/18/2022 in #help
xamarin app
6 replies
CC#
Created by Down on 10/10/2022 in #help
Compiler error [Answered]
So im getting compiler error, i understand what it means but i dont know why i get it can you explain to me?
36 replies
CC#
Created by Down on 9/18/2022 in #help
how to add to list [Answered]
um so i want to add numbers to list until user inputs 0 and then print sum average etc but idk how to use lists
16 replies