Different between ./ , ../ , ../../ , ~/ on file path(URL) in asp.net

These path components are shortcuts with specific meanings: . means the current path level (so if you’re on index.aspx and you reference ./style.css then the latter would have to be in the same folder as the former) .. means one path level up (so if you’re on /somefolder/index.aspx and you reference ../style.css then the latter would have to be in the parent folder of someFolder) / means the root … Read more

what is gitpod: what does it actually do?

Gitpod co-founder here. Gitpod = server-side-dev-envs + dev-env-as-code + prebuilds + IDE + collaboration. From a Git Repository on GitHub, Gitlab or Bitbucket, Gitpod can spin up a server-side-dev-environment for you in seconds. That’s a docker container that you can fully customize and that includes your source code, git-Terminal, VS Code extensions, your IDE (Theia … Read more

What is an idiomatic way of representing enums in Go?

Quoting from the language specs:Iota Within a constant declaration, the predeclared identifier iota represents successive untyped integer constants. It is reset to 0 whenever the reserved word const appears in the source and increments after each ConstSpec. It can be used to construct a set of related constants: Within an ExpressionList, the value of each … Read more

‘git’ is not recognized as an internal or external command

Have you correctly set your PATH to point at your Git installation? You need to add the following paths to PATH: C:\Program Files\Git\bin\ C:\Program Files\Git\cmd\ And check that these paths are correct – you may have Git installed on a different drive, or under Program Files (x86). Correct the paths if necessary. Modifying PATH on Windows 10: In the Start Menu … Read more

“If not” condition statement in python

if is the statement. not start is the expression, with not being a boolean operator. not returns True if the operand (start here) is considered false. Python considers all objects to be true, unless they are numeric zero, or an empty container, or the None object or the boolean False value. not returns False if start is a true value. See the Truth Value Testing section in the documentation. So if start is None, then indeed not start will be true. start can also be 0, or … Read more

What does “xmlns” in XML mean?

It defines an XML Namespace. In your example, the Namespace Prefix is “android” and the Namespace URI is “http://schemas.android.com/apk/res/android“ In the document, you see elements like: <android:foo /> Think of the namespace prefix as a variable with a short name alias for the full namespace URI. It is the equivalent of writing <http://schemas.android.com/apk/res/android:foo /> with regards to what it “means” when an XML … Read more

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