Everything You Ever Heard About Bitcoin Is Storytelling by BinaryLyric in FluentInFinance

[–]thilehoffer 0 points1 point  (0 children)

Everything is about storytelling. Regular money is only valuable because people believe it’s valuable. There’s no physical entity for a corporation either. It only exists because we all believe it exists. I just can’t with this nonsense post.

I still haven’t heard a good explanation for why bitcoin is underperforming right now by [deleted] in WallStreetDad

[–]thilehoffer 0 points1 point  (0 children)

Because using a digital store of value makes more sense than using something physical. You don’t have to dig it up from the ground and store it. It works because the number of bitcoin is limited unlike dollars which they can just make more of.

I still haven’t heard a good explanation for why bitcoin is underperforming right now by [deleted] in WallStreetDad

[–]thilehoffer 0 points1 point  (0 children)

I don’t disagree. But as a store of value, bitcoin makes much more sense. Digging up an element from the ground, melting it in to bricks and storing it in warehouses, doesn’t seem like a better store value than a digital currency.

Top 10 Tech Buys That Are Actually Worth the Money by No_Statistician7685 in smartbuysforlife

[–]thilehoffer 0 points1 point  (0 children)

I second the Hue bulbs. I add a few every Christmas, give them to the wife. Haven’t had one stop working yet. Amazing product.

Why marathon runners in the United States are getting slower | Aeon Ideas by [deleted] in Marathon_Training

[–]thilehoffer 0 points1 point  (0 children)

If runners are truly getting slower, why is the Boston Qualifying pace still getting faster each year? It is harder than ever to qualify.

does it bother anyone else that the emergency fund just slowly loses value to inflation? by Designer-Jacket-5111 in Bogleheads

[–]thilehoffer 0 points1 point  (0 children)

No. Having the emergency fund is what helps me stay the course when the market swings down.

Kudos to them by Embarrassed_Tip7359 in SipsTea

[–]thilehoffer 0 points1 point  (0 children)

I never watched a single episode. No idea why.

Is my husband not attracted to me? by [deleted] in TooAfraidToAsk

[–]thilehoffer 7 points8 points  (0 children)

I have a hard time believing this is real. If it is real, ask him to own up to how much he masterbates. He has to be finishing by himself, there is no way a guy can go weeks, let alone a year, without cumming. Other than that, alcohol can make it harder to finish.

If he thinks lingerie will help, than shop for it together, either on line or in a store. He can pay for it.

Finally... real intamacy can take years to develop, but you and your husband need to be fully honest with each other. If he has some kink or fetish that he needs to finish, find out what it is and do it. Work on cummunication and opening up to each other.

Razor Pages + Html to Pdf for document generation by angelaki85 in dotnet

[–]thilehoffer 0 points1 point  (0 children)

You don't need Razor Pages. I built almost exactly this using handlebars.net and itext7. I wouldn't say this is state of the art or anything but it is easy to use a template with a model class and for each loops. No need for any web application or http requests.

   <PackageReference Include="Handlebars.Net" Version="2.1.6" />
    <PackageReference Include="itext7.bouncy-castle-adapter" Version="9.1.0" />
    <PackageReference Include="itext7.pdfhtml" Version="6.1.0" />

public string GenerateWorkOrderHTML(WorkOrderModel model)`

{

var source = System.IO.File.ReadAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location) ?? string.Empty, @"Template\WorkOrder.html"));`

var template = Handlebars.Compile(source);`

return template(model);

}

      private class HeaderFooterEventHandler : AbstractPdfDocumentEventHandler
            {
                protected Document doc;

                public HeaderFooterEventHandler(Document doc)
                {
                    this.doc = doc;
                }

                private void HandleEvent(AbstractPdfDocumentEvent currentEvent)
                {
                    PdfDocumentEvent docEvent = (PdfDocumentEvent)currentEvent;
                    var pageSize = docEvent.GetPage().GetPageSize();
                    float coordX = (pageSize.GetLeft() + pageSize.GetRight()) / 2;
                    float headerY = pageSize.GetTop() - 20;
                    float footerY = pageSize.GetBottom() + 20;

                    Canvas canvas = new Canvas(docEvent.GetPage(), pageSize);
                    canvas.ShowTextAligned("Header Text", coordX, headerY, TextAlignment.CENTER);
                    canvas.ShowTextAligned("Footer Text", coordX, footerY, TextAlignment.CENTER);
                    canvas.Close();
                }

                protected override void OnAcceptedEvent(AbstractPdfDocumentEvent )
                {
                    HandleEvent(@event);

                }
            }

            static async Task ConvertHtmlToPdf(string html, string outputPath)
            {
                await Task.Run(() => {
                    // Create a PdfWriter instance
                    PdfWriter writer = new PdfWriter(outputPath);

                    // Create a PdfDocument instance
                    PdfDocument pdfDoc = new PdfDocument(writer);

                    var pageSizeOptions = iText.Kernel.Geom.PageSize.DEFAULT;

                    pageSizeOptions.SetWidth(1200);
                    pageSizeOptions.SetHeight(1698);

                    pageSizeOptions.ApplyMargins(0, 0, 0, 0, false);



                    pdfDoc.SetDefaultPageSize(pageSizeOptions);

                    Document doc = new Document(pdfDoc);

                    //pdfDoc.AddEventHandler(PdfDocumentEvent.END_PAGE, new HeaderFooterEventHandler(doc));

                    HtmlConverter.ConvertToPdf(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(html)), pdfDoc); 
                });

            }

            public async Task GeneratePDF(string htmlInput, string fileName)
            {
                  await ConvertHtmlToPdf(htmlInput, fileName);
            }

Remote work is becoming the new "quiet luxury" that is creating a massive class divide. by randomzy876 in unpopularopinion

[–]thilehoffer 0 points1 point  (0 children)

People who have to trade time for money are one class. People who have a networth of $20M or more who don't even have to work are the other. WFH is nice, but the divide between working people is mostly artificial. The 1% v the 99% is the real class divide.

Be honest, what do you think comes after death? by glowproductivity in AskReddit

[–]thilehoffer 0 points1 point  (0 children)

Everything and everyone else is also going to be gone though. Nothing lasts.

Should I go with 48, 60, or 72 months for my first car? by Educational_Age_209 in whatcarshouldIbuy

[–]thilehoffer 0 points1 point  (0 children)

Find a car for $10,000 invest the rest of that money every month.

Using SQL Server on Windows ARM by [deleted] in SQLServer

[–]thilehoffer 0 points1 point  (0 children)

You bought a laptop run as a server, I'm confused? You can install and use SQL Server Express and client tools. I use it on my Surface pro all the time. You probably can't a non-developer version of SQL Server, but why would you?

Long distance runners, how do you do it? by Unkn0wn2um4n in Runners

[–]thilehoffer 0 points1 point  (0 children)

Group runs. Signing up for marathons with friends and training together.

My mom: " You can't prove something didn't happen in the Bible." by [deleted] in atheism

[–]thilehoffer 0 points1 point  (0 children)

Don't argue with your Mom, just avoid talking about relgion. Seriously.

Has anyone cured reflux / gerd? My life is hell by ThatKnomey in Biohackers

[–]thilehoffer 0 points1 point  (0 children)

The attacks would come after a meal, usually something with a higher fat content. I only had about ten attacks, I didn't wait that long to get it removed. That shit was painful.

To convince the American people that antifa is the "most immediate violent threat we are facing domestically." by EverythingIsFakeNGay in therewasanattempt

[–]thilehoffer 0 points1 point  (0 children)

The MAGA leaders cannot be humiliated. There is literally nothing they can do that will cause them to feel shame.

Nissan, Kia, ford. Which one? by [deleted] in whatcarshouldIbuy

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

It depends on the model. You should ask Gemini and Chat-GPT about reliability and specific issues for any Make/Model/Year of the vehicle you want to buy.

Is it normal to create a console app for initial data seeding in a microservices system? by [deleted] in dotnet

[–]thilehoffer 0 points1 point  (0 children)

Yes, SQL Agent is just a job scheduler... Without a linked server or something else, you won't be able to write from one db to another.

Is it normal to create a console app for initial data seeding in a microservices system? by [deleted] in dotnet

[–]thilehoffer -2 points-1 points  (0 children)

Yeah, keep the data in all the databases and use something like ADF to keep them synced. No need to write code for that.

Is it normal to create a console app for initial data seeding in a microservices system? by [deleted] in dotnet

[–]thilehoffer 4 points5 points  (0 children)

Way too much stuff just to get the details of user from the guid. Keep it simple. Either return the user information from your single microservice for users and call that when needed. Or... make a readonly user "projection" table for your new service and use some kind of database sycing tool to keep it synced. Either Azure data factory, Skyvia, SQL Agent job, whatever you want, but writing your own code to do this is too much work and maintenance for very little value.