@mihamarkic@mastodon.social avatar

mihamarkic

@mihamarkic@mastodon.social

.net consultant, C# and recently also Kotlin and some Swift developer, ex C# MVP(2004-18), DevExpress MVP, LLBLGenPro Partner. Also tinkering with Kotlin and Jetpack Compose, Swift and SwiftUI, microcontrollers and 3D printing.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mihamarkic, to esp32
@mihamarkic@mastodon.social avatar

Finally built a proof of concept soil moisture IoT (#ESP32, battery powered) that communicates through #LoRa to my private receiver. Now to another step which is building a waterproof case .. using my #Prusa 3D printer.

mihamarkic,
@mihamarkic@mastodon.social avatar

Here a photo

mihamarkic,
@mihamarkic@mastodon.social avatar

@po3mah Sure, schematics are pretty straightforward though. Just GND, 5V (or 3.3V) and an analog input pin on microcontroller side to read from moisture sensor https://wiki.seeedstudio.com/Grove-Capacitive_Moisture_Sensor-Corrosion-Resistant/

timkmak, to languagelearning
@timkmak@journa.host avatar

Here’s what The Counteroffensive is reading today:
Explosions rocked two bridges linking and Oblast over night, the most recent strike in a string of drone attacks on infrastructure.
https://amp.cnn.com/cnn/2023/08/06/europe/crimea-road-bridge-explosions-intl/index.html

mihamarkic,
@mihamarkic@mastodon.social avatar

@timkmak Isn't this a normal folklore?

peterdrake, to CSharp
@peterdrake@qoto.org avatar

has enums, but you can cast regular ints to them, increment them, etc., giving you invalid values.

That seems to defeat the main job of enums.

C#: "We'll give you safety, but we'll also absolutely give you a duct full of buzz saws and live electrical cables if you really want to crawl through it."

mihamarkic,
@mihamarkic@mastodon.social avatar

@peterdrake Actually it can be different types, not just ints. Anyway, it's a tradeoff, personally I'm fine with those.

Ermin, to random
@Ermin@toot.si avatar

Mogoče je fajn da tudi njih obvestimo @praprotnix

https://toot.si/@luka/110827940147290110

mihamarkic,
@mihamarkic@mastodon.social avatar

@po3mah @Ermin @praprotnix @anzet Hja, mobilne aplikacije na androidu so dejansko na Linuxu.

nixCraft, to random
@nixCraft@mastodon.social avatar

It's funny that some people (mostly CEOs) think replacing all jobs with AI and robots is a good idea. However, I can't help but imagine the chaos it would cause in the long run.

mihamarkic,
@mihamarkic@mastodon.social avatar

@nixCraft Yes, but they don't think very well as CEO is just another replaceable job...

nixCraft, to linux
@nixCraft@mastodon.social avatar

minority and mac gaming users 😢

mihamarkic,
@mihamarkic@mastodon.social avatar

@nixCraft That many gamers on macOS? Who even plays games there?

nixCraft, to random
@nixCraft@mastodon.social avatar

Things I rarely use:
🚫 Currying
🚫 Middleware
🚫 Inheritance
🚫 Polymorphism
🚫 IoC containers
🚫 The actor model
🚫 Aspect-oriented programming
🚫 Complex design patterns

My typical approach:
✅ Write small functions
✅ Try to keep most functions pure
✅ Compose them together

Programming doesn’t have to be complicated. https://twitter.com/housecor/status/1684903334115753985?s=46

mihamarkic,
@mihamarkic@mastodon.social avatar

@nixCraft Things I tend to avoid:
🚫 JavaScript

nixCraft, to random
@nixCraft@mastodon.social avatar

Is it worth overpaying for extra RAM in laptops that cannot be upgraded later? 8GB? 16GB? 32GB? 64GB? 128GB? What are your bare minimum requirements these days?

mihamarkic,
@mihamarkic@mastodon.social avatar

@qlp @nixCraft Yep, I wouldn't go with less than 64 in that case.

nixCraft, to random
@nixCraft@mastodon.social avatar
mihamarkic,
@mihamarkic@mastodon.social avatar

@nixCraft AFAIK you can't patch, instead you have to wait for iOS patch to be pushed to your device. Or is there another way?

Tusky, to random
@Tusky@mastodon.social avatar

23.0 has just been released.

This is primarily a bug fix release after 22.0, although you will also notice a new preference to adjust text size across the user interface.

More details at https://github.com/tuskyapp/Tusky/releases/tag/v23.0

mihamarkic,
@mihamarkic@mastodon.social avatar

@Tusky Is there a way to store recently used languages at the top of the languages choice? I frequently switch between EN and SI only, which is a bummer because SI is way at the bottom of the long list.

mihamarkic,
@mihamarkic@mastodon.social avatar

@Tusky Awesome, thanks

mihamarkic, to dotnet
@mihamarkic@mastodon.social avatar

For some reason XElement.Parse doesn't play well in parallel scenario - there is almost no performance gain using more than one thread to call it in parallel. I really wonder where it blocks. #dotnet

mihamarkic,
@mihamarkic@mastodon.social avatar

Here is a poor man's sample. Perhaps I'm doing something really stupid. 🤷‍♂️

https://dotnetfiddle.net/ASEoGR

mihamarkic,
@mihamarkic@mastodon.social avatar

@TimPurdum Hey, that environment has 4 CPU cores available and the code is CPU bound (at least it should be). Hence you should see like ~3.5x improvement. On my local machine with 8 cores doesn't perform any better. And even though it's a small sample, it should be totally parallelized.

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

Friends, I want a synology backup for home. Whats the model you recommend for a household that would backup some 8 computers?

mihamarkic,
@mihamarkic@mastodon.social avatar

@janl @isotopp @Migueldeicaza Big disks are a problem, because in case of a failure, it takes quite a lot of time to recover. And if another one (or two) fails during recovery, it's a total loss. Just something to keep in mind. Said that, I'm running truenas with 5 6GB disks, 2 of them are redundant.

nixCraft, to random
@nixCraft@mastodon.social avatar

News: Windows 11 users no longer need third-party apps to open RAR files.

Official WinRAR Account:

mihamarkic,
@mihamarkic@mastodon.social avatar

@tbroyer @nixCraft Could be. Though AFAIK even 7z supports it, for decompression only. Is Win 11 supposed to support compression as well?

bitbonk, to programming
@bitbonk@mastodon.social avatar

The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.

Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?

Maybe it even already exists?

mihamarkic,
@mihamarkic@mastodon.social avatar

@bitbonk I feel you and I'm with you. Hopefully we get something eventually. That also reminds me of decades ago when I used generator. It's still around, but it's not free not updated I think.

Migueldeicaza, to random
@Migueldeicaza@mastodon.social avatar

I don’t get all the hate on regexps, nor wearing your hate as a badge of honor.

mihamarkic,
@mihamarkic@mastodon.social avatar

@Migueldeicaza I'm on the opposite side, I really like regex' power. And XML.

jeff, to internet
@jeff@newsie.social avatar

deleted_by_author

  • Loading...
  • mihamarkic,
    @mihamarkic@mastodon.social avatar

    @DickHardt @jeff @Gargron @politico @politico Perhaps a bot tag might be appropriate then?

    mihamarkic,
    @mihamarkic@mastodon.social avatar

    @DickHardt @jeff @Gargron @politico @politico I see bot icon only on second account.

    mihamarkic,
    @mihamarkic@mastodon.social avatar

    @DickHardt @jeff @Gargron @politico @politico Ah, ok, I misunderstood. Newsie one is not a bot, just inactive.

    mihamarkic, to random
    @mihamarkic@mastodon.social avatar

    Interesting seeing getting into Europe through 's Real Madrid: Partizan game
    https://www.youtube.com/watch?v=NdZBkYvLtDU

    MishaalRahman, to random
    @MishaalRahman@androiddev.social avatar

    It's been over 3 years since the last Snapseed update, but version 2.20 is finally starting to roll out to users today.

    PhotoScan, which was last updated in April 2019, has also been updated recently to version 1.7.5.

    (H/T beanowe on Telegram and stanzillaz on Twitter)

    image/png

    mihamarkic,
    @mihamarkic@mastodon.social avatar

    @MishaalRahman There is a problem with CameraX library where it doesn't support high resolutions on some devices including Samsungs. Perhaps they are using a pre-release or some other workaround.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • cisconetworking
  • GTA5RPClips
  • osvaldo12
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • everett
  • mdbf
  • slotface
  • InstantRegret
  • rosin
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • Durango
  • thenastyranch
  • ethstaker
  • tacticalgear
  • ngwrru68w68
  • Leos
  • anitta
  • provamag3
  • tester
  • lostlight
  • All magazines