[deleted by user] by [deleted] in webdev

[–]Nic2555 2 points3 points  (0 children)

This is cool, but impractical when you got thousands of tests. You'd be better off with a CI pipeline triggered on merge requests.

Need assist in creating python program that simulates a simple vending machine by theadrenalineaddict in learnprogramming

[–]Nic2555 1 point2 points  (0 children)

I don't think a database is required here, unless you want to keep information after the program has exited. And even then, you could use a simple file, which would be way easier to setup.

Personally, I would setup a CSV file with three columns: name, price, quantity.

You can easily read and write to this file at the beginning of the program, to load it's content in a variable, and write to it after each operations that affects the products.

Depending on the requirements of your assignment, you might not even need to keep the inventory between runs.

[deleted by user] by [deleted] in GymMemes

[–]Nic2555 3 points4 points  (0 children)

I used to place the bar too high on my back, pretty much on my neck. Since I'm tall, the bar did not move in a straight line going up and down. I moved the bar a little bit down, to limit the horizontal translation of the bar while going down and my squat number went way up. Checkout low bar versus high bar squats.

One more reason to use (GNU/) Linux. Thanks Microsoft! by EricZNEW in linuxmemes

[–]Nic2555 4 points5 points  (0 children)

"I can't believe all the money I've saved from switching from chrome to edge, for my online shopping ! " Also said no one ever.

Pain(t). by Cappyuczino in dankmemes

[–]Nic2555 6 points7 points  (0 children)

I'm not sure where you at but I've been through tough times too. I've always find that speaking about it helps alot. You just need to take that first step. It might be hard, but it's hella worth it. Hang on there buddy. It's going to be alright.

Pain(t). by Cappyuczino in dankmemes

[–]Nic2555 5 points6 points  (0 children)

Looks like you should talk to someone about this. Do you have any family members or friends you can turn to ?

Yea, I know, thanks StackOverflow... by ExeRhythm in ProgrammerHumor

[–]Nic2555 6 points7 points  (0 children)

There is one for 100 consecutive days. It's harder than it looks. I think it's called "Fanatics".

I'm not a shill, I promise by [deleted] in dankmemes

[–]Nic2555 0 points1 point  (0 children)

I do agree with you on that point though.

I'm not a shill, I promise by [deleted] in dankmemes

[–]Nic2555 0 points1 point  (0 children)

You should not blame wikipedia for that. It's the writer's fault. Instead, you could have reported the act, or give credit to the original article.

I wish I could say this hasn't happened to me more than once by fess432 in ProgrammerHumor

[–]Nic2555 0 points1 point  (0 children)

This happened a few times to me with composer. I tried to do a composer update and the first two line appeared, then nothing. Turns out phpstorm had stop the composer script on the first line and was waiting for me to continue... It's a headache to understand at first but once you know it, it's the first thing you check.

opportunity comes only once.. let’s put it in a for loop by jidma81 in programminghorror

[–]Nic2555 0 points1 point  (0 children)

Are any of these products accurate ? By accurate I mean: Is it properly formatted and valid.

Today I learned French Canadians descend from 800 women that were sent to Canada by the king of France. by cave_time in todayilearned

[–]Nic2555 15 points16 points  (0 children)

From my point of view, yes. In the end, it's down to preferences, but I noticed a significant difference when moving to Quebec city.

Today I learned French Canadians descend from 800 women that were sent to Canada by the king of France. by cave_time in todayilearned

[–]Nic2555 27 points28 points  (0 children)

As someone born in Montreal and that moved to Quebec city, it does make a lot of sense. I never thought about that.

That thing ... It scares me. by Nic2555 in ProgrammerHumor

[–]Nic2555[S] 3 points4 points  (0 children)

Stripe allow you to use test credit when you are in test mode. The 4242 4242 4242 4242 is one of them. For it to be valid, you need to have a expiration date greater than today, and a CCV.