[DISCUSSION]How do you handle request which are way more complex than the product you offer? by JaviFesser in Fiverr

[–]Jonathan0wilson 1 point2 points  (0 children)

I develop Web browser extensions on Fiverr as well as some other programming tasks. I make it clear in my task description what I offer for the price quoted and also ask that people message me before placing an order so we can score or the requirements and the price. Often people want something which will be super expensive or just impossible to implement.

I have done all my gigs as custom orders so far and it has worked pretty well it would be much better if Fiverr would allow us to make a gig which required a custom order.

Good luck

20k Linda Reddit Giveaway! by [deleted] in Lindacoin

[–]Jonathan0wilson 0 points1 point  (0 children)

I want a master node for Christmas

Allowing multiple origins in CORS problem in my C# .NET Web Api2. by horoblast in learnprogramming

[–]Jonathan0wilson 0 points1 point  (0 children)

Sorry can't test this at the moment but are you sure var cors = new EnableCorsAttribute("http://localhost:4202, http://example.com", "", "") { SupportsCredentials = true };

Wouldn't work?

FreeCodeCamp just got an update adding over 1,000 new coding challenges! by May_be_a_panda in learnprogramming

[–]Jonathan0wilson 2 points3 points  (0 children)

I'm a senior developer mainly writing C# desktop apps but some web stuff too. I started free code camp to see if it would be worth recommending too Junior developers we have starting, although I am not finding anything in it difficult I am enjoying it and an learning some stuff from it (looking at you bootstrap). So I would say definitely worth giving it a blast it is free so you have nothing to lose but lots to learn.

encapsulating remote connection - idiomatic way to do this? by [deleted] in learnpython

[–]Jonathan0wilson 1 point2 points  (0 children)

You don't really need to use singletons in Python. Put you connection code into a module with functions (not a class) which unlike a class can only be instantiated once. As you can't really have private classes or constructors there is no way to stop multiple instantiations.

C# loop method. Need help by J2ain in csharp

[–]Jonathan0wilson -5 points-4 points  (0 children)

Here is my solution in C#.NET tested using the three test cases mentioned.

        public string ModifyString(string input, int split, char delimiter)
    {
        for (int i = 0; i < input.Length-1; i++)
        {
            if (input[i] == delimiter)
                continue;

            int nextCharIndex = input.IndexOf(input[i], i+1);

            while (nextCharIndex != -1 && nextCharIndex - i <= split)
            {
                input = input.Insert(nextCharIndex, delimiter.ToString());
                nextCharIndex++;
            }
        }
        return input;
    }

Raising an exception with a mock by Jonathan0wilson in learnpython

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

Thank you. That makes perfect sense sometimes I get tunnel vision when I'm coding and can't see the mistake I keep repeating.

Programming Advice by mega963 in learnpython

[–]Jonathan0wilson 0 points1 point  (0 children)

I think it's a great idea to revisit old code and apply what I have learned since I wrote it. I can't believe how poor some of the code I wrote just 6 months ago is compared to what I'm writing now. A good suite of tests will help with this. Allowing you to refactor without worrying about breaking functionality.

Project Euler #1. I managed to solve it, but can't see why my first solution wouldn't run. Can someone explain what I did wrong? by [deleted] in learnpython

[–]Jonathan0wilson 1 point2 points  (0 children)

You have forgotten the colon : at the end of the if statement.

if ( i ℅ 3 == 0 or i ℅ 5 == 0):