error: src refspec master does not match any

From git branch it appears that somehow your local branch name is “origin”. You can rename the branch with -mv flag, like this: git branch -mv origin master After this git branch should show master 🙂 Just to make sure the name is indeed the only thing that went astray, you can run git log and look at the last few commits – and compare … Read more

CSS reset – What exactly does it do?

In the beginning, there was no standardisation on how styles worked, each browser implemented what it felt was right. One of the reasons you see so many questions about style errors in IE is because IE was the browser with the most dissimilarities from other browsers in terms of styling. Though IE has improved and … Read more

How to comment out a block of code in Python [duplicate]

Python does not have such a mechanism. Prepend a # to each line to block comment. For more information see PEP 8. Most Python IDEs support a mechanism to do the block-commenting-with-pound-signs automatically for you. For example, in IDLE on my machine, it’s Alt+3 and Alt+4. Don’t use triple-quotes; as you discovered, this is for documentation strings not block comments, although it … Read more

OR condition in Regex

Try or add a positive lookahead if you don’t want to include the trailing space in the match When you have two alternatives where one is an extension of the other, put the longer one first, otherwise it will have no opportunity to be matched.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)