News for hackers. Stuff that matters.

manuc66

Re:Nullable vs. Nullable in C# on Friday August 29, 2025 @05:07AM (#45061846)
@Bogdanp maybe this is another way to express it:

public static class EnumerableExtensions {

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : class { return source.Select(fn) .Where(it => it != null) .OfType<T>(); }

public static IEnumerable<TR> SelectNotNull<T, TR>( this IEnumerable<T> source, Func<T, TR?> fn) where TR : struct { return source.Select(fn) .Where(it => it != null) .Select(item => item.Value); } }

Re:Have We Been Thinking About A.D.H.D. All Wrong? on Wednesday April 16, 2025 @05:12PM (#43710442)
Interesting to follow as a side reading of this article : What's Wrong with The NY Times Article on ADHD - #1 (of 4 Parts) - https://www.youtube.com/watch?v=-8GlhCmdkOw
Re:Linux kernel cgroups writeback high CPU troubleshooting on Friday February 14, 2025 @04:26AM (#43046532)
"This investigation was a collaboration between myself and my colleagues."
Re:Do you have any suggestions on RSS readers? on Saturday November 23, 2024 @05:35PM (#42224482)
Have you tried https://www.freshrss.org/ ?
Re:A Clutter-Free Life: Going Paperless with Paperless-Ngx on Saturday October 07, 2023 @04:58PM (#37805499)
People using HP printers with feature "Scan to Computer" are also using https://github.com/manuc66/node-hp-scan-to to send document to Paperless-ngx : https://www.reddit.com/r/selfhosted/comments/tethlr/hp_scan_...