I know this question is due to the fact that I don't have my head wrapped around OOP completely.  If I was writing a python script and created 3 methods...  def hello():     print "hello"  def goodbye():     print "goodbye"  def helloandgoodbye():     hello()     goodbye()   I could run it from a single script no problems.  But if I create them in a class I have to use self in order to call them.  class test():     def hello(self):         print "hello"     def goodbye(self):         print "goodbye"     def helloandgoodbye(self):         self.hello()         self.goodbye()   I believe in C# starts internally and works it way out searching for a method before throwing an exception. Why does Python make us use self to explicitly state the location of the method?
When defining a method on a class in Python, it looks something like this:  class MyClass(object):     def __init__(self, x, y):         self.x = x         self.y = y   But in some other languages, such as C#, you have a reference to the object that the method is bound to with the "this" keyword without declaring it as an argument in the method prototype.    Was this an intentional language design decision in Python or are there some implementation details that require the passing of "self" as an argument?
QGIS 3.4 : Add points to exact locations? I would like to add several coordinates at specific British National Grid Easting and Northing values. I know this can be done by bringing in a .csv, but I want to know is there a way to manually enter the numbers in QGIS 3.4, and then the point moves to that location ? I've read that in QGIS 2.x there was a plugin called Numerical Vertex Editor that doesn't seem to exist for 3.x ? On iOS 7, there is a feature under Cellular in Settings called: Use Cellular Data For:. This lists all of the apps I have on my iPhone 4 with individual On/Off Switches to disable or enable cellular data. So, I disable it on several of my apps, one of which being Music. When I open my Music app, it tells me…     Cellular Data is Turned Off for "Music"   You can turn on cellular data for this app in Settings.   This alert does not occur once, but every time I clear the Music app from my multitasking and re-open it. Is there a way to dismiss this alert once and forever?  The alert looks something like this, but for Music: Probability of winning the game "1-2-3" What is "Go" in cribbage? I've played a fair bit of cribbage, but I've never heard of scoring one point for "Go" (as mentioned in this other question: ).  What is it, and what impact does it have on the game? Boxplot interpretation: is it correct that a boxplot is missing a whisker? I have a data set that has customerID and daily visits. This dataset records the number of times customers visited the site in a day.   customerID   TotalVisits  1            6  2            17  3            20  4            25   Just to explore the data further, I tried plotting the TotalVisits values in a box plot. The plot doesn't seem to have a lower whisker. q1=1 and there are no values between q1 and  q1-1.5(IQR). The plot has q1, q2 and q3. The minimum value and q1 are the same.   Is this why the boxplot doesn't have the lower whisker? Could you please help me with the interpretation? Is it correct to draw a boxplot without any whiskers?  [I am new to the site and I am not able to post the image.] What is the logic behind the timer of the Sojourner Badge? An example:    O  O?   There is a triple letter tile to the right of the bottom O, indicated with a ?.  If I place an X on it, making the words OX (vertical) and OX (horizontal), do I score 50 points (scoring the tile twice) or 34 (scoring it once)? Help me identify this insect from Bangladesh I have seen this insect flying literally everywhere in Dhaka city (Bangladesh) over the last two months. It's small -- around 1-1.5 inches long. It's not an agile flyer and can be easily grabbed by hand during flight. I have a couple of big text files and in the file UNIQS.txt I have a list of strings to grep from another file. The code I use is  grep -f UNIQS.txt EEP_VSL.uniqs.sam &gt; UNIQ_templates.sam   which does nothing - the file generated is empty. But when I do  grep -F -f UNIQS.txt EEP_VSL.uniqs.sam &gt; UNIQ_templates.sam   it works correctly. This confuses me because I didn't think grep would interpret the entries in UNIQS.txt as regexp patterns without quotes and slashes and so on being in the file (which there aren't). Is it the case in general that if you are getting the patterns from a file then it will automatically think that they are regexp patterns?  Edit: In the UNIQS.txt file, there are newline separated strings of the form  HWI-ST365:215:D0GH0ACXX:2:1101:10034:186783   (called template names) and the file EEP_VSL... tab separated columns, with about 14 columns and the first column is the template name, so basically I want to extract the line corresponding to each template in the file. How to install Wi-Fi driver for Realtek RTL8821CE on Ubuntu 18.04? No Sound (Dummy Output) error Ubuntu 19.10 Stack Overflow is getting a Meta of its own I had a heck of time while editing my  question. But, I guess, I discovered a new weird problem in the editor while formatting hyperlink text next to  tag.  To illustrate this problem better, I would like to give the following examples:  Has problem with one or none white-space in between:  [meta-tag:status-planned] [details page reads:][2] [meta-tag:status-planned][details page reads:][2]     Gives weird output as:   [details page reads:]   [details page reads:]   But, its okay with two white-spaces in between:  [meta-tag:status-planned]  [details page reads:][2]   Gives the correct output as:      Something is strange here. I don't understand why do I have to insert two white-spaces instead of just one? Are the two white-spaces are mandatory when using [meta-tag:some-tag] with hyperlink text adjacent to it? Or, is it one of those  thing?  But wait, it's get even further complicated if I do like:   1. No white-spaces in between:  [meta-tag:status-planned][meta-tag:status-completed][Moderator-only Tags][3]     2. One white-space in between:  [meta-tag:status-planned] [meta-tag:status-completed] [Moderator-only Tags][3]       3. Two white-spaces in between:  [meta-tag:status-planned]  [meta-tag:status-completed]  [Moderator-only Tags][3]         They all seems to work perfectly fine. Now, thats very strange! Why would the two [meta-tag:some-tag] works like a charm with or without requiring to insert any white-spaces? Can anyone explain this in a better way. I don't want to jump on the conclusion by calling this as a bug yet, so I used  tag instead of  tag. Please share your thoughts. What should I do when the GETDEB repository is down? I'm trying to install programs/files from the getdeb repo but get a "check your internet connection" error.  Programs than I've tried include Qbittorrent and Mozilla-Plugin-VLC.    Through the terminal I get the following errors:  Err http://archive.getdeb.net/ubuntu/ natty-getdeb/apps qbittorrent amd64 2.8.2-1~getdeb2   Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host) E: Failed to fetch http://archive.getdeb.net/ubuntu/pool/apps/q/qbittorrent/qbittorrent_2.8.2-1~getdeb2_amd64.deb: Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host)   &amp;  Err http://archive.getdeb.net/ubuntu/ natty-getdeb/apps mozilla-plugin-vlc amd64 1.1.10-1~getdeb1   Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host) E: Failed to fetch http://archive.getdeb.net/ubuntu/pool/apps/v/vlc/mozilla-plugin-vlc_1.1.10-1~getdeb1_amd64.deb: Could not connect to archive.getdeb.net:80 (209.105.191.78). - connect (113: No route to host)   I'm not having any problems adding/removing other programs/files from my machine.  Is there a problem with GETDEB repo (and if so, is there any way to fix it on my end) or is there something wrong with my computer's configuration? How can I type "lambda-bar"? Is it fair to buy a return ticket I know I will never use just because it's cheaper? I am planning a trip to Asia and then back to Rio. The thing is that I am traveling on flexible dates, so I am thinking of buying a one way ticket to Hong Kong, and I was planning to do the same when I want to come back.  But what I noticed is that, for example, a one way ticket from Melbourne to Rio costs no less than $2700 dollars for the month of May.  When I do a search for a round-trip from Melbourne to Rio and back, I can find flights for $2200.  I know I will not be using that return to Melbourne, but I'd still prefer to save those $500.   Can there be any issue with buying a round-trip with a return that I will never use? How can I convert a node made material into an image texture? I have a sphere having a planet material MADE WITH NODES, and I want to convert this material into an image texture; because this material is made with nodes and only works in Blender, but I want to use in another software. This is my sphere material :   For Example : This is Jupiter :  And this is the texture :  In this case I used a downloaded image for Jupiter to be the material but I want the opposite, I want to change the material to image texture Like The shape of Jupiter texture. Is there anyway in Blender that can achieve my goal ? This is the file with my sphere material .  Textures Needed :  Albedo / Color / Diffuse Normal Map Roughness Glossines  I am using normal nodes and I am not useing the new Principled-shader How to remove zsh alias? Is my processor 64 or 32 bit? How can I strike through an expression (e.g. "2x") obliquely, e.g. from bottom left to top right, so as to indicate cancellation? With the \sout command from the ulem package, I can only strike horizontally.