Lyrcaxis
Lyrcaxis
CC#
Created by Juicy on 5/3/2025 in #help
API performance acting weird
In case it wasn’t already brought up, only measure performance in release when it comes to ASP. NET Core
101 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
u need more u can set it up with other identifiers or cookies
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
although yeah hardly a need for more than HttpContext
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
ohh didn't know that.. good info 👍
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
layers! minimal API being minimal comes first
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
idek what a binder is
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
yeah. It's a thing
40 replies
CC#
Created by Queimaduras on 5/1/2025 in #help
Parameter Binder error: implement TryParse
won't something like app.MapGet("/works/{decryptedId}", async (context) => ...) be better?
40 replies
CC#
Created by 𝐓𝐇𝐄 𝐊𝐈𝐍𝐆𝐌𝐀𝐊𝐄𝐑 on 4/23/2025 in #help
MAUI CarouselView Out Of Memory Issue.
so maybe you should only have 3/5/7 entries at each time on the carousel, even if you have the metadata to load more, then modify the ViewModels and maybe order to change the contents.
12 replies
CC#
Created by 𝐓𝐇𝐄 𝐊𝐈𝐍𝐆𝐌𝐀𝐊𝐄𝐑 on 4/23/2025 in #help
MAUI CarouselView Out Of Memory Issue.
don't instantiate too many videos -- just use a rotating carousel imo -- maybe preload metadata (and maybe a thumbnail for +- 3 vids), then try to always keep 3 of them "ready-to-play", while discarding the rest
12 replies
CC#
Created by Silme94 on 12/31/2024 in #help
BAD IMAGE QUALITY (Bitmap)
ok now I see you're querying about saving it, not loading it. You can do the same:
using var m = new MemoryStream();
image.Save(memoryStream, ImageFormat.Png);
return m.ToArray();
using var m = new MemoryStream();
image.Save(memoryStream, ImageFormat.Png);
return m.ToArray();
Then System.IO.File.WriteAllBytes.
11 replies
CC#
Created by Silme94 on 12/31/2024 in #help
BAD IMAGE QUALITY (Bitmap)
So something like: ImageBytes = Utils.GetGraphic(path); and rendering via <Image Source="{Binding ImageBytes}"/>
11 replies
CC#
Created by Silme94 on 12/31/2024 in #help
BAD IMAGE QUALITY (Bitmap)
For reference I stopped having to deal with Bitmap in favour of storing everything as bytes:
public static byte[] GetGraphic(string path) {
using var m = new MemoryStream();
var image = System.Drawing.Image.FromFile(path);
image.Save(m, image.RawFormat);
return m.ToArray();
}
public static byte[] GetGraphic(string path) {
using var m = new MemoryStream();
var image = System.Drawing.Image.FromFile(path);
image.Save(m, image.RawFormat);
return m.ToArray();
}
11 replies
CC#
Created by malkav on 9/8/2022 in #help
Get multiple substrings from a main string
I f to doubt but sure 🙂 gl
94 replies
CC#
Created by malkav on 9/8/2022 in #help
Get multiple substrings from a main string
Is it? There are regex expressions that do just that in 1 line
94 replies
CC#
Created by malkav on 9/8/2022 in #help
Get multiple substrings from a main string
Smith like <img>xxx.png</img>
94 replies
CC#
Created by malkav on 9/8/2022 in #help
Get multiple substrings from a main string
Check out how tag parsers work
94 replies
CC#
Created by JansthcirlU on 9/8/2022 in #help
Simulation or game loop using async-await and events [Answered]
Sure.. probably ;P
19 replies
CC#
Created by JansthcirlU on 9/8/2022 in #help
Simulation or game loop using async-await and events [Answered]
19 replies
CC#
Created by JansthcirlU on 9/8/2022 in #help
Simulation or game loop using async-await and events [Answered]
aw, thanks
19 replies