I am using classes for the first time.In this program I want the object to run infinitely so that any change in the MongoDB will trigger the function and do the necessary processing.
I am little confused about the using of the self.Please give me a feedback on my code.Thanks!
class first_level:...

First, I must humbly admit that I've been a developer for many years but I've almost never had to work as a front-end, Web UI developer. I've been given an opportunity to work for an organization as a front-end and back-end web developer and I'm having to learn about the in's-and-out's of html/c...

If you love APIs and Automation, come see the CommitStrip team at APIDays Paris next 8-9th of December, the main conference on APIs worldwide. Register with COMMITSTRIP code, 1st tech tickets are VIP invites, then 35% of reduction. More on apidays.io!

I got a question of which I'm not sure it would work on the SE network and if it does, where.

The best way to get good at programming is practice. The best practice is taking a challenge which is just beyond your current capabilities and solve it. How do you know what challenge is just beyond your current capabilities?

@Mast You can't :p Take on challenges, all of them. Some will be WAY beyond your capabilities. In that case, take a part of the challenge, understand it, grow your capabilities, and attack the bigger challenge afterwars.

And, if it was a question for SE, I don't think it is, programmers would be the place

and when it failed or someone broke the build with a stupid commit, fix the bug ASAP, send an email to the entire world, stop the entire company from working, deploy the patch, send another email to the entire world that they can resume working.

I wanted to try and use the Sieve of Eratosthenes to find all prime numbers between some arbitrary bounds 1 <= m <= n. The simple implementation of the sieve does not consider the lower bound at all, it always starts from 1 (or actually from 2). So for a big enough n, simply creating an array wou...

Asking for improvements on working code typically goes on Code Review. Getting a hash of a 3gb file is probably not going to be a sub ms operation... — Will36 secs ago

Ask on Code Review, and when you do, please explain what you are trying to do so that we don't have to reverse-engineer your code: what the input looks like, and what calculations you are performing. — 200_success57 secs ago

How do I make this go faster? It currently takes about 30 seconds on a 3gb file. I am using this to get a checksum from the file to compare it to Microsoft's official checksums.
public static String GetSHA1Hash(string fileName)
{
string strResult = String.Empty;
...

I am very new to python and I want to extract some elements from a 1911 x 2 matrix such that when elements in column 1 are between two values they will be extracted along with their corresponding element in column 2 to a separate matrix. Unfortunately I cannot just code the matrix indices as the...

According to the mod email that was just sent out, no further action is necessary for opting in for Winter Bash this year:
If you want in, you don't need to do anything; that's the default this year, due to overwhelming positive response in previous years.
Also, the event will run from Dece...

I wrote this program for school (first year in college) and it works, but it's too slow. I wondered if anyone could help me optimize this a bit, because I've been trying and trying, but it just won't get better.
If I choose a lower limit of 5000 and an upper limit of 10000 it my program 10 times...

Background: I'm trying to learn basic OOP with Python. I have this program I wrote to help my son practice math problems. It does addition, subtraction, multiplication, and division. He can choose easy, medium, or hard for each operator.
Here's an excerpt of the code. It's the "easy" additi...

A common topic in alternate history fiction works is the question what would have happened if a major war had been won by the other side. These usually focus on the events after the war, and the change itself is not depicted in a realistic way: it's either not discussed, or attributed to a superw...

I'm trying to write a code for reading 120 files from a folder and performing some calculations on it. When i debug the code, it works fine, however, execution time is more than 20 mins, I am aware that this might be due to bug in the code. However, can someone look into it and suggest possible m...

Curious observation: you force the first character of a word to be uppercase but don't force subsequent characters to be lowercase. So "FOO-BAR" will return "FOOBAR" and not "FooBar". — Rick Davin51 secs ago

i'am wondering if there's a way to use a few lines of code to hightlight all textboxes in the form.
Private Sub TextBox1_Enter()
TextBox1.SelStart = 0
TextBox1.SelLength = Len(TextBox1.Value)
End Sub
This line above only works for textbox1 but i have a few hundred textboxes.I could copy this l...

Now I'm using a function name defined inside ShopController in the Reclaim Directive... it seems like a bad practice.
Yep, this kind of code will be hard to debug and maintain.
You're depending on the existence of reclaim to be somewhere in the scope chain, on some controller enclosing you...

This is my first post here and I am absolutely new to programming. I'm interested in learning how to create shell scripts with bash so here's one of my first exercises, taken from https://goo.gl/QZSmNw. It is an extension of the problems Elementary - 4 and 5.
The goal of the program is to sum al...

Somewhat along the lines of this question. I've been putting mostly unmatched money into my 401(k) for a few years. I know that investing is generally seen as a long-term decision, but with volatile stocks, it seems to me that you could make a large amount of money by buying low and selling high ...

Related but not a duplicate: How far off-topic can we get in 'the 2nd monitor'?
Today was a complicated day in the history of The 2nd Monitor.
On one side there appears to be consensus something went wrong which should be handled. On the other side there appears to be disagreement about how muc...

@jamal, This is a well-known practice to show a solution (if any) in the top post: this is a convenient and user-friendly approach. It does not matter if it was added afterwards. In this case It doesn't worth adding as a standalone answer, yet the info is important. Please don't edit my post or I'll delete it as a whole. — Stan29 mins ago