Quantcast
Channel: User MikelThief - Stack Overflow
Browsing all 26 articles
Browse latest View live

Comment by MikelThief on Sudden memory consumption jump resulting in out of...

@Damien_The_Unbeliever yes, the first way i though about was to use producer-consumer pattern to pararellize work. Could you provide me with a code sample? (i suspect you advice to use LINQ/PLINQ)

View Article



Comment by MikelThief on Sudden memory consumption jump resulting in out of...

actually, i need to take line by line as the alghorhitm processing the lines needs to have full line avalaible to give me a correct result. I believe pararelization here can help (correct me if i am...

View Article

Comment by MikelThief on Sudden memory consumption jump resulting in out of...

Thanks a lot for you answer. Actually, yours is a little faster on IO than mine, but takes inly 30% of CPU load (compared to 80% of my solution). Nevertheless, almost at the same moment... program...

View Article

Comment by MikelThief on Specify proper route to call a WebApi 2 Controller...

Indeed outes.MapHttpRoute("DefaultApiWithAction", "Api/{controller}/{action}"); will process route-attributes you specify just before your method in controller. You need to specify a custom one - the...

View Article

Comment by MikelThief on Response cookies are not places inside Flurl...

@ToddMenier please see the attached screenshot: imgur.com/a/5nQ8cpa I didn't mask anything as the data I described here can be reached by anyone :)

View Article


Answer by MikelThief for C++: Prompt Requires Data to be Inputted Multiple...

Your code could look like this: #include <iostream> #include <ctime>//A user stated that using this piece of code would make a true randomization process. #include <cstdlib> using...

View Article

Singly linked list copy constructor [duplicate]

This question already has an answer here: What is The Rule of Three? 8 answers I am trying to solve why my copy constructor refuses to work. I have class Car: class Car{ private: char* make; int...

View Article

Operator= overload failure with use of copy constructor of other class

I am trying to fix a problem related to overloading assigment operator to be able to assign one list to another. I have two classes: class CarList{ private: Car* head; void clear(); public: CarList();...

View Article


Answer by MikelThief for How to convert...

Try to create an OracleString variable that will be a variable holding one element at a time from an array. Let's say this variable will be called oraStringVar. Assign a value to it by: oraStringVar =...

View Article


Answer by MikelThief for Increase performance or Code tuning

Depending on the situation (apply profiling or state your target to let us know whether operation is IO/CPU-bound) you may use LINQ or PLINQ or a Producer-Consumer Pattern. For IO-bound operations LINQ...

View Article

Hangfire Dashboard links point to wrong routes

The problem is, when the app is deployed to a non root context (i.e. http://root/someAppName/ the dashboard is by default accessible at http://root/someAppName/hangfire). But the dashboard lacks any...

View Article

Answer by MikelThief for How to pass result from parent job to its continuation

It appeared that it is enough to use the attribute with pushResultsequal to true and then set the return type of the function to e. g. string. Then one can access this value produced by parent in...

View Article

How to pass result from parent job to its continuation

Since version 1.7.8 it is possible to pass results from parent job to continuation jobs in Hangfire. However there is no documentation or example supplied. While browsing code I realized that I need to...

View Article


Comment by MikelThief on Why Hangfire doesn't process recurring jobs in...

Please attach you cron expression as well.

View Article

Comment by MikelThief on How can I publish Hangfire Dashboard for a custom...

Does this answer your question? Exposing hangfire without auth

View Article


Answer by MikelThief for Hangfire Recurring jobs not working - throw...

A good solution is to have connectionstring set up part as IOption or something similar like binding configuration to some object and then contructor-injecting this object to a class which contains...

View Article

Answer by MikelThief for How can I publish Hangfire Dashboard for a custom...

As you asked in comments comments, if you want to set up public access to your dashboard without app running at localhost, you need to add custom DashboardAuthorizationFilter which will always return...

View Article


Comment by MikelThief on How to process Hangfire BackgroudJobs Singly instead...

@Paul You have posted the exact doc source, so I cannot provide anything else. In case of poor doc I advice to take a look at source code what I usually do in addition to docs.

View Article

Comment by MikelThief on Access to hangfire dashboard using Angular/WebApi

You should give more info. How routing is set up? What .NET Core/Framework are you using? Likely this route is already taken (overriden) by some other setting.

View Article

Answer by MikelThief for how to pause hangfire's job? between certain hours

You need to provide a correct cron expression to the recurring job which will fire your desired code.For example, this cron expression runs the job every hour from 8AM to 8PM.0 0 8-16 ? * * *Cron is a...

View Article
Browsing all 26 articles
Browse latest View live




Latest Images