Method overloading example in python
-
admin
-
February 25, 2018
-
Python
-
218 Comments
class Localbus: def sayLocal(self, busName=None): if busName is not None: print(‘Hello ‘ + busName) else: print(‘Hello ‘) obj = Localbus() obj.sayLocal() obj.sayLocal(‘Alif’) Output ============= Hello Hello Alif class Human: def sayHello(self, name=None, age=None): if name is not None and age is None: print(‘Hello ‘ + name) elif age is not None and age is not None: print(‘Hello ‘,name, ‘ your …
Continue Reading
R Variable Assignment
-
admin
-
February 20, 2018
-
R
-
179 Comments
var_assign1 valid Variable can use in number,underscore var_assign% Invalid Can’t use ‘%’. dot(.) and underscore allowed. 2var_assign invalid Variable can’t start with number .var_assign , var.assign valid Can start with a dot(.) and the dot(.) with join. .2var_assign invalid Variable started with dot & number _var_assign invalid Variable starts with _ which is not valid
Continue Reading
R data types
-
admin
-
February 12, 2018
-
R
-
217 Comments
R not like other programming languages like C and java,the variables are not declared as some data type. R basically object base.There are many types of R-objects. The frequently used ones are − Vectors Lists Matrices Arrays Factors Data Frames These objects is the vector object and there are six data types of these atomic vectors, also termed as six …
Continue Reading
R script
-
admin
-
February 12, 2018
-
R
-
217 Comments
# My first program in R Programming > strVar <- “Hello, World!” > print ( strVar) 1 “Hello, World!” Comments #This is R comments
Continue Reading
Hello world in R
-
admin
-
February 12, 2018
-
R
-
239 Comments
print(“Hello World”)
Continue Reading
R graphics engine version 12 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.
-
admin
-
February 12, 2018
-
R
-
362 Comments
This warning message mean that, The current RStudio version is 1.0.143. Download and install the newest version. > RStudio.Version()$version 1 ‘0.99.896’ Please update your version.
Continue Reading
Magento Error: Item (Mage_Core_Model_Store) with the same id “0” already exist
-
admin
-
August 19, 2017
-
Magento
-
167 Comments
There can be multiple rows inserted with the same value in tables core_store, core_website and core_store_group. You have to delete such duplicate rows from core_store, core_website and core_store_group table. That is, if you have three rows with same value then remove the two duplicate rows. Refresh Cache from System -> Cache Management.
Continue Reading
‘python’ is not recognized as an internal or external command
-
admin
-
July 16, 2017
-
Python
-
144 Comments
It’s very simple, just modify python install. just follow image.
Continue Reading
Fatal error: Allowed memory size of 134217728 bytes exhausted in WP
-
admin
-
July 16, 2017
-
Word Press
-
0 Comments
it’s a memory issue on server side. you should check your php max memory limit on your hosting. ask your hosting provider to increase it if you can’t do it manually yourself
Continue Reading
How to check OS and version using a Linux ?
-
admin
-
April 9, 2017
-
System Administration
-
320 Comments
For debian based system cat /etc/*_version or for a Red Hat based system cat /etc/*-release
Continue Reading