What does enctype=’multipart/form-data’ mean?

When you make a POST request, you have to encode the data that forms the body of the request in some way. HTML forms provide three methods of encoding. application/x-www-form-urlencoded (the default) multipart/form-data text/plain Work was being done on adding application/json, but that has been abandoned. (Other encodings are possible with HTTP requests generated using other means … Read more

What is {{.}} in mustache?

In Mustache, {{.}} is a special tag referring to the value at the top of the context stack. If you’re looping through an array, it is the current element. If you’re rendering a section with an object as context, it refers to that object. So if your data looks like this: … and you’ve got a template like … Read more

How does CheatEngine’s speed hack work?

Three years later, I think I know enough to answer my own question. 🙂 A computer program usually communicates with the kernel using predefined functions called system calls. Each OS has a different set of calls but often they do similar things like — allocating memory, reading and writing files, or handling processes. According to this … Read more

XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode

The <Comment> tag contains two text nodes and two <br> nodes as children. Your xpath expression was To break this down, * is a selector that matches any element (i.e. tag) — it returns a node-set. The [] are a conditional that operates on each individual node in that node set. It matches if any of the individual nodes it operates on … Read more

Regex lookahead, lookbehind and atomic groups

Examples Given the string foobarbarfoo: You can also combine them: Definitions Look ahead positive (?=) Find expression A where expression B follows: Look ahead negative (?!) Find expression A where expression B does not follow: Look behind positive (?<=) Find expression A where expression B precedes: Look behind negative (?<!) Find expression A where expression B does not precede: Atomic … Read more

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