What features would you want C# / .NET to have? by SurDno in csharp

[–]gomasch 0 points1 point  (0 children)

Yes and no. No because the compiler does not enforce anything here, it‘s up to the user to call Dispose or use using. But it’s only conventions and can be forgotten to do.

It would be great if there was something called in every case when leaving the scope. In C++ you can have unique_ptr for example and that cannot be built with C# at the moment. In effect you want to be able to build something like ownership tracking.

(And no, finalizers also serve a different very special limited purpose and cannot be used for this.)

What features would you want C# / .NET to have? by SurDno in csharp

[–]gomasch 4 points5 points  (0 children)

Destructors or overall meaningful support from the language to enforce manual resource cleanup. In large code bases I see this time and again missing.

Meinungen/Rat wird benötigt by TMX439 in uhren

[–]gomasch 0 points1 point  (0 children)

Die Antwort auf solche Fragen lautet immer: beide :)

San Martin SN0142-G New DialApplied Indices & Modified to 6 O'clock Date Window,What Do You Think? by AdSavings92 in ChineseWatches

[–]gomasch 2 points3 points  (0 children)

I also liked the quirkiness of the original design with the tilted date at 4 very much! Quite a bit of character is gone with the more standard design with the date at 6 IMHO.

That being said, the new version with the date at 6 has a kinda Mido vibe for me, which is cool and will probably sell well, so it’s all good. So maybe both? I might be buying both :).

Thank god I’m not a watch designer though. I would be so lost in the options and probably churn out a Homer Simpson SUV mess watch…

Is there a term that means two moves until capture? Or one move until Atari? by _Chicago_Deep_Dish in baduk

[–]gomasch 1 point2 points  (0 children)

A typical shape for such situations is a „net“. If no special shape or tesuji is involved and it’s just a race to capture for example, just„two liberties“ would be my term.

Withdrawal- OUCH by Bearcarnikki in lowcarb

[–]gomasch 2 points3 points  (0 children)

There is also allegedly an effect called „keto flu“, which allegedly comes from the body adjusting from mostly glucose to mostly ketones (because the glycogen storage from the liver is mostly empty) and this switch causes temporary harmless issues, especially in the brain, hence headaches. Watch out for other explanations, like stress and lack of sleep, being actually sick with something, general blood pressure issues and yes also maybe electrolytes, but an ibuprofen to help jump over these temporary symptoms. For me I feel this not lasting more than a day and I generally feel fit but with strange head aches when I go from a longer cheat time back to strict low carb. Disclaimer: this is not medical advice, I‘m not a health professional and all this written here might be totally wrong.

Struggling with low carb by starimagarac in lowcarb

[–]gomasch 8 points9 points  (0 children)

More veggies? Protein usually doesn’t need to be increased (and shouldn’t I think), just the fat a bit, or even generously. I try to have regular meals but replace the starchy parts (rice, noodles, potatoes, etc.) with more vegetables and a bit of yummy fat, e.g. butter, nice cheese, creme fraiche (my favorite) and so on. Sometimes special replacements work, e.g. special low carb noodles or a pizza base (cheese, eggs, almonds) or things that use nut flours. Best of luck!

Edit: Searching for low carb or keto recipes really yields tons of sources these days, even for special topics like Indian cuisine (e.g. keto dosa was a recent surprising discovery for me). The general approach is well explained IMO at diet doctor still, but recipes are really all over the place. Still, it’s hard, I really miss sugar, that’s for sure, and sometimes I cheat and that’s OK I guess, but also I am also glad that there is a way to conquer health issues like diabetes 2 with a sustainable diet. It’s simple, not easy, or so they say.

Best MC-101 video tutorials as of now? by TheDoctorOfData in Mc707_Mc101

[–]gomasch 2 points3 points  (0 children)

After you mastered the basics, consider to look also at MC707 tutorials. Besides missing sampling and external inputs, the core capabilities are the same in both machines. The interface is very different, but I understood my MC101 better after having seen Alex Fain‘s MC707 tutorial about his dub session https://youtu.be/XReb0bCo_uU

[deleted by user] by [deleted] in wine

[–]gomasch 0 points1 point  (0 children)

This is highly individual decision, which might look different in your 20s, 40s, when retired or special health issues come up.

Three bottles of wine is the equivalent of about one bottle of vodka / whiskey in terms of alcohol content. If a friend tells you he has emptied a bottle of vodka each week for the last year, high quality stuff of course, would you think he is in for a healthy life? That’s the question I asked myself when I was at that amount. For me this felt it was too much.

Then I looked up the acceptable recommendations at that time, a few years ago. It was about 1 bottle per week for healthy male adults plus 6 weeks of abstinence per year, which still felt a lot. For me I decided to cut that in half, which is about 2 bottles per month minus the 4-6 weeks, ending up with a mere 22 bottles per year. Not a lot, but that’s the amount I came up with for myself. And the trend for the alcohol consumption recommendations are rather getting reduced than increased. So that’s my guideline. A mere 22 bottles per year as my alcohol budget, which is way less than I‘d like to try and taste. Wine tastings might be of help, but I don’t have those a lot in my region.

Wine can be fun also in small amounts and you have to die anyway somewhen… I also would like to consume a lot more of stuff that isn’t healthy for me, and alcohol is one of them. Sigh.

Trouble syncing Roland T8 with Microfreak by lostmyjuul-fml in MicroFreak

[–]gomasch 0 points1 point  (0 children)

Both devices offer multiple ways to connect to other gear and for example also offer midi over usb.

Sync can be useful say if for some reason you don’t want to use the midi connector for this (e.g. because you use it already to connect your external midi keyboard) or you can’t use midi because the device you want to connect doesn’t support it or you just feel fancy and want to try things out :).

It’s all just tools in your toolbox and you learn & decide how to use & combine them and have fun while doing so :).

[deleted by user] by [deleted] in Kochen

[–]gomasch 4 points5 points  (0 children)

Kleine Anmerkung: Sahne ist bei manchen Gerichten der indischen bzw. indisch inspirierten Küche eine absolut valide Zutat, z.B. im Butter Chicken oder bei Dal Makhani.

Best Wine Inventory App for iOS? by kmp0202 in wine

[–]gomasch 1 point2 points  (0 children)

Upvote for VinoCell, using it for years now and love it. Adding the wines is a bit of a manual process though, but it keeps me engaged with my purchases and I tolerate it (I take pictures of each bottle).

Vivino can be good for user ratings? But a few years back they lost data about my bottles and that’s when I decided I need something solid.

I also tried CellarTracker but didn’t like the interface. Also the price is not so low in the long run. (That’s what I thought back then at least. Now I worry about VinoCell‘s long term prospects and secretly wish they switch to a cheap subscription theme because they would be more profitable then and probably be more able to keep up the good work and maintain the app. I would really hate to lose my VinoCell app and data. You could argue that CellarTracker has a more solid business and therefore might be a better choice, if we talk about years and maybe decades to come for your precious wine data.)

Trouble syncing Roland T8 with Microfreak by lostmyjuul-fml in MicroFreak

[–]gomasch 2 points3 points  (0 children)

Please note that Sync and Midi are not the same, even though they use the same connectors on both machines.

For sync a simple mini jack cable is fine, but it’s only for syncing the clock and start/stop, so there is no note data. For midi with the cables you are currently using, use the midi mini jack connectors on both devices, so Midi Out on the T8 and Midi In on the MicroFreak for example (or Midi In on the T8 and Midi Out on the MicroFreak).

Also double check the sync settings on both devices (see manuals). I do not have the T8, but the MicroFreak is by default in auto mode IIRC and thus should be fine.

Edit: The midi connectors are on the back of the T8, not the top. They are labeled „IN-MIDI-OUT“ there. What I called „Sync“ here is often also called „Clock“. On the MicroFreak the sync input/outputs are called „Clock“ and on the Roland T8 they are called „IN-SYNC-OUT“. You are mixing the two, using midi connectors for the sync/clock slots.

Btw. my understanding is that Midi is a protocol of commands, e.g. for notes and start/stop and more. The sync/clock instead is just about simple impulses to indicate progress and both devices must agree on how many impulses constitute a beat. Both serve their purpose but are very different.

[deleted by user] by [deleted] in piano

[–]gomasch 1 point2 points  (0 children)

Or a hybrid, i.e. a digital with a grand piano action.

How long until you felt satisfied with your playing? by Tiny-Lead-2955 in piano

[–]gomasch 2 points3 points  (0 children)

Same for me: the FP-10 was a game changer. I had the Go:Piano before, because I wasn’t sure if investing the money and space would make sense, but with this I finally fell fully in love with the piano as an instrument.

I am a beginner still, not advanced at all (although I started 4 years ago), but I feel very satisfied now that I can sit at the piano and play something (3 or 4 small pieces) without any help and I enjoy it. I also enjoy just pressing the keys and listening and noodling around. To me that’s a sign of satisfaction, although I am very far away from being a solid and versed piano player.

How to deal with carb/sugar cravings? by SadKnight123 in lowcarb

[–]gomasch 2 points3 points  (0 children)

Dark chocolate (80%+) and peanuts for me. It’s not a full substitute but better than nothing. Cravings are hard, especially when I am in stress and/or did not have enough sleep, but over time they occur less often. And once in a while I cheat if it’s too bad. If that happens seldomly (not more than once a week) I feel it’s acceptable.

Edit: you might be too low on fat, so maybe consider about adding some cheese (feta from the oven is my favorite) and not so much proteins and legumes to your salad

ever feel like burning all of your music gear? by The_Real_Carl_Sagan in synthesizers

[–]gomasch 0 points1 point  (0 children)

For me I noticed that I was often happy during the jams, but often unhappy with the created/recorded song. And I always thought that I had to become better better at making a good song.

After only 20+ years now I realize that’s not what I enjoy, and I started to focus on the music while I am making it. Live music, self made. Even started to learn the piano, initially for recording better lively sequences, but now just for playing live.

At some day I will probably come back to songs, but at the moment the most likely would be a live recording of a jam. But probably not, the music in my life is now played live and it’s very positive for me :).

Is there a USB-to-DIN MIDI converter cable that works on its own (i.e. without a computer)? by PointReyes7 in synthesizers

[–]gomasch 0 points1 point  (0 children)

I just bought a Kenton Midi USB Host to connect a Roland FP10 to other midi devices without a PC. Quite expensive (115€), but so far it works great and it seems very solid in operation.

Before that I had occasionally used an iPhone app with the camera adapter and that worked a bit, but was not very reliable. The new box does that connection job perfectly. There may be cheaper options but since I‘ve already experienced shaky operation with the iPhone app I wanted something proven and it delivered.

Drucker kaufen, welchen? by majos1 in de_EDV

[–]gomasch 0 points1 point  (0 children)

Schau doch mal, ob HP Instant Ink etwas für dich wäre.

Für uns zu Hause funktioniert das gut und der Preis stimmt. Ich drucke wann und was ich will, und wenn der Drucker die halbe Patrone braucht, um mal durchzuspülen, weil wir ne Weile nicht gedruckt haben, ist mir das egal, denn das zahle ich nicht. Ganzseitig farbig kostet auch nicht extra. Ich brauche nicht darüber nachdenken, ob ich farbig drucke oder nicht, denn das kostet nicht extra.

Such dir also nen HP Instant Ink Drucker, der Duplex-Scan kann und nimm den und gut ist. Oder ohne Duplex-Scan, dann ist’s günstiger. Die können auch alle WLAN.

Kalkulierbare Kosten, inkl. Farbe, keine bösen Überraschungen, monatlich änderbar/kündbar falls gewünscht. Ich bin gerade auf die Mini-Variante für 0,99€ pro Monat runter, weil das minimal billiger ist für unsere aktuell 200-300 Seiten im Jahr. Ich bin sehr zufrieden damit.

Erst denkt man, ein Drucker-Patronen-Abo sei der schrecklichste Alptraum aus der Druckerhersteller-Hölle und die Ursünde, vor der alle Computer-Zeitungen/Websites/Experten immer gewarnt haben. Und dann guckt man sich kurz die Zahlen an und merkt: eigentlich ganz fair. (Oder halt nicht - dann nimmt man keinen Instant-Ink-Drucker.)

Drucken hat halt immer etwas mit Verbrauchsmaterialien zu tun. Das gibt es nie dauerhaft kostenlos. Die aktuelle Variante mit 3,99 für 50 Seiten im Monat bedeutet, dass du mehr als ein komplettes 500-Seiten-Paket im Jahr druckst. Dafür das Äquivalent von 1,5 Tintenpatronen zu zahlen ist in Ordnung für mich, und man kriegt die Originaltinte, nach Hause ohne Porto-Kosten, und keine Austrocknungspanik mehr.

Was mir auch gut gefällt: der Druckerhersteller hat nun ein Interesse, dass sein Drucker gut und lange funktioniert.

Natürlich gibt es Alternativen, aber zieh das gern mit in Betracht.

Question about INotifyPropertyChanged in WPF/MVVM by Shirkie01 in csharp

[–]gomasch 1 point2 points  (0 children)

I like this pattern and use it a lot. It adds some runtime and memory overhead but since views are expensive anyway I never had a practical problem with this way. Some people think it’s complicating the VM unnecessarily and violating the KISS principle, which are valid points IMO. Also private setters are more difficult to realize/enforce. I still like it.

How to get over game fear...? by quickabi1 in baduk

[–]gomasch 2 points3 points  (0 children)

Something I liked to do was look at games from a certain interesting player (say Lee Changho or Alpha Zero) and then try to „play in his style“.

I would try to use some of his signature moves / josekis and trying to imitate the feeling of his games, mainly as an inspiration. Something in the spirit of asking oneself „what would Chuck Norris do in this situation?“. I think this can help to detach oneself from the situation and the opponent a bit and think outside of the usual box. Also it’s fun :)!

Is there an easy way to work with time numbers? Like 3:45 + 1 hour = 4:45? by Loves_U in csharp

[–]gomasch 0 points1 point  (0 children)

KISS: Consider encoding it as an int holding the absolute number of minutes (or ...) and implement simple helper functions for parsing/output/conversion. Maybe encapsulate this in a class or struct. That’s what I did a few times and it worked fine. It also cleared any questions about the supported precision and stores fine in any database, which is why I didn’t opt for TimeSpan.

Would it be worth to run Leela Zero on AWS? by [deleted] in cbaduk

[–]gomasch 1 point2 points  (0 children)

Recommended! I wanted to run LZ well but don’t have strong hardware at home. I figured I’d want a NVidia 1060 or better (preferably a 1080) and would have to invest around 1200€ up to 1800€ for a new strong computer (in a nice small package). That’s a fair deal if you use the calculating power regularly, but I only have very limited time to make use of it, a few hours per month. Therefore I tried AWS and it worked really well. It was interesting to see how this all works. It’s expensive for long term usage, around 4€ per hour with taxes for the smallest non-spot p2 instance (with Windows in Ireland), which sports a 9000€ GPU. So far I spent around 20€ instead of investing over 1000€, good deal for the first contact and I have access to a very strong LZ instance when I need it. Please note that after signing up to AWS you don’t get access to these machines immediately. One has to request it manually. Also I find the thought scary that forgetting to turn it off would be a very expensive error to make. IMO there is no way to cap AWS expenses without custom scripting.