Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
""" | |
How to update JSONField based on the value of another field. | |
For example: | |
class MyModel(models.Model): | |
name = models.CharField(...) | |
data = models.JSONField() | |
How to update the MyModel table to store the `name` field inside the `data` |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.
You can view this as a supplement to http://golang.org/doc/effective_go.html.
Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.
plugins { | |
id 'java' | |
} | |
group 'com.github.girisagar46' | |
version '1.0' | |
repositories { | |
mavenCentral() | |
} |
import groovy.transform.* | |
println("Hello World") | |
println "Hello World" | |
println 'Hello World' | |
String name = 'Sagar' | |
println "Hello $name" | |
println "Hello ${name}" |
I hereby claim:
To claim this, I am signing this object:
... | |
# HELP jvm_gc_live_data_size_bytes Size of long-lived heap memory pool after reclamation | |
# TYPE jvm_gc_live_data_size_bytes gauge | |
jvm_gc_live_data_size_bytes 0.0 | |
# HELP jvm_buffer_count_buffers An estimate of the number of buffers in the pool | |
# TYPE jvm_buffer_count_buffers gauge | |
jvm_buffer_count_buffers{id="mapped - 'non-volatile memory'",} 0.0 | |
jvm_buffer_count_buffers{id="mapped",} 0.0 | |
jvm_buffer_count_buffers{id="direct",} 2.0 | |
# HELP jvm_memory_used_bytes The amount of used memory |
import java.io.IOException; | |
public class Main { | |
public static void main(String[] args) { | |
Actuator actuator = new Actuator(MetricService.getRegistry()); | |
try { | |
actuator.start(); | |
} catch (IOException ioException) { | |
actuator.stop(); |