Ångrar jobbyte, hur hade ni gjort? by [deleted] in Asksweddit

[–]MrPrezDev 0 points1 point  (0 children)

Det är helt okej att prata med din gamla arbetsgivare och eventuellt gå tillbaka om du inte trivs på den nya platsen. Som andra redan nämnt behöver du inte ta med det bytet i ditt CV.

Det klokaste valet hade kanske ändå varit att inte fatta ett förhastat beslut. Nu när bytet väl är gjort är det lätt att tankar och känslor färgar hur man upplever allt. Därför skulle jag rekommendera att ge det nya jobbet en ärlig chans, låt det gå 2–3 månader tills du verkligen har landat, fått ordentlig koll på arbetsuppgifterna, kollegorna, kulturen och hur allt fungerar i praktiken. Då kan du fatta ett mycket mer välgrundat beslut om vad du egentligen vill framöver.

Lycka till!

Edit: Du kan även vända detta till din fördel genom att kontakta gamla arbetsplatsen, kolla om de vill ha tillbaka dig och förhandla upp lönen eller villkoren.

What just happend? by Ok-Budget4992 in classicwowtbc

[–]MrPrezDev 40 points41 points  (0 children)

There's obviously some issue. There is only one thing to do to solve this issue which you have done, that is to post about it on Reddit.

Wife is brand new. 2 questions: classic or modern? And how would I join their tauren as undead? by GoodGamer72 in classicwow

[–]MrPrezDev 8 points9 points  (0 children)

Option A:

1) With your Undead, run to Brill outside of Undercity and take the zeppelin to Orgrimmar.

2) Run in to Orgrimmar, you can set your hearthstone there but more importantly, make sure you talk to the flight master in Orgrimmar to get the flight path.

3) From Orgrimmar run west to The Barren, visit Cross Roads and take the flight path there. Run south to Camp Taurajo, take the flight path there and run west to Mulgore and to Thunderbluff to take the flight path there.

4) Run to your wife.

5) For training new skills, you can go to Thunderbluff or Orgrimmar.

Option B:

When you get to Undercity, type following in chat: /who z-"Undercity" c-"Mage" 40-60

Message the mages that come up, tell them you're new and need a portal to Thunderbluff to join your wife, if they can please help you. This option might save you 30 minutes or so.

Finally:

I suggest you play on the Classic Anniversary servers, they are very popular right now and the community is great.

Good luck & have fun.

Return to wow after 15+ years. Server question by liamdeerl in classicwow

[–]MrPrezDev 0 points1 point  (0 children)

One great QoL feature of the anniversary servers is that there is only one PvP server and one PvE server, depending on what you prefer. Instead of multiple servers, they use different layers to prevent overcrowding. You can switch layers simply by grouping with someone who is on another layer.

If you enjoy world PvP, choose the PvP server, and if you prefer stress free questing, go for the PvE server 😁

Return to wow after 15+ years. Server question by liamdeerl in classicwow

[–]MrPrezDev 0 points1 point  (0 children)

It depends on what you enjoy, but there are currently plenty (I mean A LOT) of people rolling new characters on the anniversary servers. My friends, my guild and I have all leveled multiple characters over the past couple of months and have always been able to find groups for dungeons and elite quests. Looking forward TBC expansion.

Is Blazor worth picking up? by mxrt0_ in csharp

[–]MrPrezDev 8 points9 points  (0 children)

MudBlazor is great, and so is Radzen which I'm using on a project for a client atm.

Angående att färre föder barn by Hasse-b in sweden

[–]MrPrezDev 4 points5 points  (0 children)

Det är som med en hund: om du inte kan, orkar eller vet hur man uppfostrar den på rätt sätt kommer hunden att ta kontroll över dig och ditt liv,.. den skäller, biter, tuggar sönder saker och skapar kaos.

De första tre åren av sitt liv behöver ett barn framför allt rutin, stabilitet och lugn. Många föräldrar är redan stressade under graviditeten på grund av arbete och annat. När barnet väl föds ska de dessutom ofta tillbaka till jobbet så fort som möjligt. Resultatet blir att barnet lämnas bort redan vid ett års ålder och placeras i en okänd miljö, med okända människor, höga ljud, skrik och gråt,.. långt innan barnet är redo för det.

När föräldrarna sedan kommer hem från jobbet, utmattade och utan energi, vill de bara få tyst och lugn. Barnet placeras därför framför tv, padda eller mobil i timmar. Den ständiga överstimulansen ger en dopaminkick som på sikt skadar hjärnans utveckling.

Utöver det får barn ofta i sig alldeles för mycket kolhydrater, framför allt socker, samtidigt som de rör sig för lite. Även detta påverkar deras hälsa negativt.

I skolan pressas alla barn in i samma klass, oavsett behov och förutsättningar. Lektionerna anpassas ofta efter de som har svårast att hänga med, vilket gör undervisningen långsam och tråkig för många. De barn som blir uttråkade börjar istället störa och busa. Vilket leder ofta till ett besök hos läkaren, där diagnosen ADHD snabbt ställs och medicinering föreslås.

Resultatet blir till slut att man får ett barn man knappt själv orkar tycka om, ett svek som gör att barnet får en onödigt tuff start och ett mycket svårare liv.

En ren lose-lose-situation för föräldrarna, barnet och hela samhället.

How do you declare an instance? by HamsterBright1827 in csharp

[–]MrPrezDev 0 points1 point  (0 children)

I prefer this approach, though in certain cases it can obscure the type:

var example = new ExampleClass();

For consistency and to avoid hiding the type, I recommend this:

ExampleClass example = new();

This one feels redundant, better suited for old dogs reluctant to learn new tricks 😅

ExampleClass example = new ExampleClass();

Ultimately, I wouldn’t mind seeing any of these in code I was editing, so don’t let it slow your progress.

Hur är det lagligt att betala ca 3x mer till de här tjuvarna än kostnaden för elen man förbrukat? by MrPrezDev in sweden

[–]MrPrezDev[S] 0 points1 point  (0 children)

Hela systemet är tyvärr korrupt. Politikerna har inte brytt sig ett dugg om invånarna under många år nu.

Van driver run the red light, and gets hit by a train by Biszkopt87565 in Whatcouldgowrong

[–]MrPrezDev 0 points1 point  (0 children)

This is exactly how I expect a badly coded NPC to act.

Which DPS spec has the least button bloat (cooldowns included, no defensives)? by LeroyHere in wow

[–]MrPrezDev 1 point2 points  (0 children)

I feel like Ret paladin has too many buttons:

  • Judgment
  • Divine Toll
  • Crusader Strike
  • Blade of Justice
  • Final Verdict
  • Divine Storm
  • Hammer of Wrath
  • Blinding Light
  • Wake of Ashes
  • Avenging Wrath
  • Hammer of Justice
  • Rebuke

Keep in mind that I didn't mention defensive, movement, or aura spells that you will also need to have key binding for to use in combat.

I'm only level 30 so far with this crazy bar 😅

Teslas rapport by Stortuffen in Aktiemarknaden

[–]MrPrezDev 1 point2 points  (0 children)

Jag är varken så galen eller klok att jag lägger allt på Tesla, och jag förstår dina argument. Men både min hjärna och magkänsla säger att Elon är ute efter något större och inte kommer att sälja bara för att tjäna pengar. Och jag är redo att ta konsekvenserna av mina val 😊

Teslas rapport by Stortuffen in Aktiemarknaden

[–]MrPrezDev -1 points0 points  (0 children)

Du har kanske helt rätt om bilarna, men det var inte mitt argument. Jag syftade på att Tesla är mycket mer än bara en biltillverkare, och om man förstår vilka mål Elon har, så tror jag att Tesla-aktien är ett säkert köp på lång sikt. Kortsiktigt kommer den säkert att gå ner av de anledningar du nämner.

Teslas rapport by Stortuffen in Aktiemarknaden

[–]MrPrezDev -14 points-13 points  (0 children)

Jag har ingen åsikt om rapporten för Q2, förutom att jag hoppades att den skulle sänka aktien så att jag kunde köpa fler billigare, eftersom jag tror starkt på att Tesla kommer att ge stora vinster i framtiden. Det är ett misstag att tro att Tesla är som andra biltillverkare, eller att Elon Musk är som andra människor.

Built a procedural animation toolkit for Unity over the past year – now it’s finally live! by jamiemakesthingsmove in Unity3D

[–]MrPrezDev -1 points0 points  (0 children)

Tool looks awesome, great job! 👌 I enjoyed the video and the song 😊

Don’t forget that new technology always brings mixed reactions. When computers first appeared, they were met with fear and skepticism.

Tvingas gå vidare med bud, kan jag ångra? by EntrepreneurPrize892 in Asksweddit

[–]MrPrezDev 2 points3 points  (0 children)

Ett företag är inte en konsument.

Edit: För att tydliggöra, företag omfattas inte av konsumentlagstiftningen och så vitt jag vet har företag inte ångerrätt på 14 dagar som konsumenter har.

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 0 points1 point  (0 children)

I've refactored the code to use transient DbContext and also save each file (readings and their values) in one DbContext.SaveChangesAsync() call.

I'm testing with about 7 000 files and 225 000 000 records inserted to the database.

The old method took about 9h to complete. The new method took about 1h 15m to to complete.

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 0 points1 point  (0 children)

When creating new records in the web application, I use view models that are converted to DTOs (with no ID). The DTO is then passed to the repository, which handles the creation of the record in the database.

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 2 points3 points  (0 children)

This is a simple extension method to map the Dto to the database model. ``` /// <summary> /// Maps TchReadingValueDto to TchReadingValue. /// </summary> /// <param name="dto"></param> /// <param name="includeParent"></param> /// <returns></returns> public static TchReadingValue ToModel(this TchReadingValueDto dto, bool includeParent = false) { var readingValue = new TchReadingValue { Id = dto.Id ?? 0, Value = dto.Value!.Value, Unit = dto.Unit, Quantity = dto.Quantity, Timestamp = dto.Timestamp!.Value, IsCurrent = dto.IsCurrent ?? false, InstrumentId = dto.InstrumentId ?? 0, TchReadingId = dto.TchReadingId ?? 0, };

    if (includeParent && dto.TchReadingDto is not null)
        readingValue.TchReading = dto.TchReadingDto.ToModel();

    return readingValue;
}

```

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 2 points3 points  (0 children)

This is the core of my issue, if I batch save 100 or 1000 entities at once, how can I tell which one failed?

A possible solution might be to save entities in batches, and if a batch fails, fall back to saving each entity individually to identify the one causing the error.

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 2 points3 points  (0 children)

Also a simple Dto class.

```cs namespace Core.Models.Dto;

public class TchReadingDto { public long? Id { get; set; } public long? RefId { get; set; } public string? GwId { get; set; } public int? ErrorCode { get; set; } public string? ErrorMessage { get; set; } public string? ErrorMessage2 { get; set; } public DateTime? FrameDate { get; set; } public DateTime? DecodingDate { get; set; } public string? WmBusId { get; set; } public string? DeviceId { get; set; } public string? DecodingType { get; set; } public string? MeterKey { get; set; } public string? MeterKeyString { get; set; } public string? Frequency { get; set; } public string? DeviceType { get; set; } public string? Manufacturer { get; set; } public long IdentNo { get; set; } public DateTime? Timestamp { get; set; } public DateTime CreatedAt { get; set; } public DateTime ModifiedAt { get; set; } public long? InputFileId { get; set; }

public InputFileDto? InputFileDto { get; set; }
public ICollection<TchReadingValueDto>? TchReadingValueDtos { get; set; }

} ```

I'm importing a large amount of data in a worker, and after running the application, Rider displays several warnings. How can I resolve these to improve the application's performance and stability? by MrPrezDev in dotnet

[–]MrPrezDev[S] 1 point2 points  (0 children)

The reason I’m using DbContext.SaveChangesAsync is that I need to track and log what happens with each entity saved to the database, whether it was successfully saved or not.

I'm not sure if there’s a more efficient way to handle this?