How to update local tags to match remote?

Make sure you fetch all the tags (through git fetch –tags), to get all the tags and not just ones referencing commits reachable from the branch heads. Those (fetched) tags are annotated ones (and usually not lightweight), and if you add deleted one on the local repo, they will just pop back after the fetch. … Read more

Which HTML5 tag should I use to mark up an author’s name?

Both rel=”author” and <address> are designed for this exact purpose. Both are supported in HTML5. The spec tells us that rel=”author” can be used on <link> <a>, and <area> elements. Google also recommends its usage. Combining use of <address> and rel=”author” seems optimal. HTML5 best affords wrapping <article> headlines and bylines info in a <header> … Read more

PHP: How to handle

You’re probably not accessing it correctly. You can output it directly or cast it as a string. (in this example, the casting is superfluous, as echo automatically does it anyway) $content = simplexml_load_string( ‘<content><![CDATA[Hello, world!]]></content>’ ); echo (string) $content; // or with parent element: $foo = simplexml_load_string( ‘<foo><content><![CDATA[Hello, world!]]></content></foo>’ ); echo (string) $foo->content; You might … Read more

Git: How to find out on which branch a tag is?

Even shorter: git branch –contains tags/<tag> (it works for any tree-ish reference) If you can find which commit a tag refers to: git rev-parse –verify tags/<tag>^{commit} # or, shorter: git rev-parse tags/<tag>~0 Then you can find which branch contain that commit. git branch –contains <commit> As commented below by user3356885, for the fetched branches (branches … Read more

JSP : JSTL’s tag

c:out escapes HTML characters so that you can avoid cross-site scripting. if person.name = <script>alert(“Yo”)</script> the script will be executed in the second case, but not when using c:out

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