Member Avatar
I need some help why can't I create an instance of the child class without an error ?



class tv():
def _init__(self,color,screen,frame):
self.color=color
self.screen = screen
self.frame = frame
def DesOfTV(self):
info = "The TV has a"+self.color+"and a"+self.screen+"screen"
return info


class retroTV(tv):
def __init__(self,color,screen,frame):
super().__init__(color,screen,frame)


oldertV = retroTV("black","tuber","wood") Topic by Siberian in Software Development
Member Avatar
Topic by nadiam in Software Development
You broached a few topics. So let's find them and get you started.

1. Tools. This is your choice or if an assignment, set by the master (teacher.) Tools are pretty much just that. The results vary with your skills with the tool. In other words, if you have a … Reply by rproffitt
Member Avatar
rproffitt 945 Replied To a Post in HOW TO LOOP THROUGH ROWS IN A TABLE
Topic by Jim_21 in Software Development
Why does this code look identical to John's at https://stackoverflow.com/questions/46773853/fingerprint-verification-and-query
It seems to have the same duplicate lines 4 to 9 as 10 to 15.

I worry that such duplication is a sign of an uncaring coder. Reply by rproffitt
Member Avatar
aymen_1 Joined the Community
Member Avatar
abderrazak Joined the Community
Member Avatar
Topic by sgw in Software Development
c++
Good analogy--helpful! Reply by sgw
Member Avatar
This is a fingerprint verification application. When verifying,it loops through the table. if the current fingerprint template is the first one on the table row it verifies it correctly. But if the current fingerprint template is located on the 2nd or later rows, it loops through the table and at … Topic by Jim_21 in Software Development
Member Avatar
jan_12 Joined the Community
Member Avatar
Topic by sgw in Software Development
c++

> Smart people ... decided that it was best to make stuff like this undefined

Yes, I did understand that. My opinion was formed including that knowledge. I'm more worried about the people who moved into that house, turned some stuff on, and lost everything in house fire that should … Reply by JamesCherrill
Member Avatar
Topic by sgw in Software Development
c++
> There's a much-discussed variant of your problem in which various x++, ++x and x values are used as parameters in a function call which **suffers** from the same **problem**.

I know it's hard, but try to understand that this is a feature, not a bug. They didn't miss this … Reply by AssertNull
Member Avatar
Topic by sgw in Software Development
c++
Thank you so much, JamesCherrill. That makes sense. Thanks for the reference. Guess one should avoid writing such statements (as Reverend Jim says, not 'sane').

(I wonder why when I wrote similar statements a year or so ago using different computers I didn't get the surprising output. Maybe it's erratic … Reply by sgw
Member Avatar
diafol 3,720 Replied To a Post in Need Help!
Topic by Alex_68 in Community Center
Not going to waste time helping this moron? He'll get plenty of help through his cross-posting:

https://www.sitepoint.com/community/t/need-help/278526

http://forums.seochat.com/new-user-seo-questions-answers-123/need-help-493264.html

You start getting a nose for time wasters after a while :) Reply by diafol
Member Avatar
Rituparna_2 Joined the Community
Member Avatar
diafol 3,720 Replied To a Post in Input text pattern for telephone number
Topic by nadiam in Web Development
Did you check the regex library: http://www.regexlib.com/Search.aspx?k=phone&AspxAutoDetectCookieSupport=1 Reply by diafol
Member Avatar
Topic by nadiam in Web Development
I did this:

`<input type="tel" name="phone" placeholder="+6012-3456789" pattern="^[+](6)(0)[1-9]\d{1}-[0-9]\d{6}$" title="+6012-3456789" required>`

it works.. but is there a better way? or this is the way? Reply by nadiam
Member Avatar
gentlemedia 530 Replied To a Post in Need Help!
Topic by Alex_68 in Community Center
These are a good place to start with.

https://moz.com/learn/seo

https://searchengineland.com/library/channel/seo

https://neilpatel.com/blog/

https://www.mattcutts.com/blog/ Reply by gentlemedia
Member Avatar
Topic by nadiam in Web Development
okay so i removed the slashes and it worked. so i tried to put in the pattern that i actually wanted which is a pattern like +6012-3456789 but i only achieved 12-3456789. how do i make it so that +60 has to be entered and in that order +60.

what … Reply by nadiam
Member Avatar
lann_1 Joined the Community
ojws Joined the Community
Member Avatar
diafol 3,720 Replied To a Post in Url
Topic by davy_yg in Web Development
If you are using Laravel (as in your previous posts), why do you need this? Your router (`routes/web.php`) and various controllers should do this for you surely? For example:

Route::resource('pages', 'PageController');

See https://laravel.com/docs/5.5/controllers


>$id = $pos === false ? $url : substr($url, $pos + 1);

So you're getting the last … Reply by diafol
Member Avatar
Demjyan Joined the Community
Member Avatar
Ashraf_8 Joined the Community
idhgerka Joined the Community
Member Avatar
idris_2 Joined the Community
Member Avatar
BERR Joined the Community
Member Avatar
Hello. I have a project to develop a tool that reads Windows 7 raw memory dump. My lecturer says that he'd rather we use python or c coz that's his specialy but we can choose whatever. We chose python (bcoz i feel like its an opportunity to further learn about … Topic by nadiam in Software Development
Member Avatar
Efraim Joshua Joined the Community
Member Avatar
Topic by sgw in Software Development
c++
Here's a definitive reference on order of evaluation
http://en.cppreference.com/w/cpp/language/eval_order

Note about half way down ("Undefined behavior") it discusses ++x specifically. Apparently it used to be "undefined", now it's just "unspecified". And people use C++ for real-life applications? Terrifying. Reply by JamesCherrill
Member Avatar
Ch_1 Joined the Community
Member Avatar
Topic by sgw in Software Development
c++
That's one of those questions they like to put on the exam to see if you know the inner workings of c/c++ even though no sane c/c++ programmer would ever code like that. Reply by Reverend Jim