How does a relational database work
A beginner’s guide to ACID and database transactions
A beginner’s guide to database locking and the lost update phenomena
<ng-template #followingpost let-author="author" let-age="age" let-text="text" let-badge="badge"> | |
<div class="container-fluid"> | |
<div class="card"> | |
<div class="header"> | |
<h4 class="title">{{ author }}</h4> | |
<p class="category">il y a {{ age }} jours</p> | |
</div> | |
<div class="content" [innerHTML]="text"> | |
</div> |
import java.io.File; | |
import java.io.UnsupportedEncodingException; | |
import java.net.URLDecoder; | |
public class WindowsExeFile { | |
private final File file; | |
public WindowsExeFile(String rawPath) { | |
this.file = convertToFile(rawPath); |
import java.util.List; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.cache.Cache; | |
import org.springframework.cache.support.SimpleValueWrapper; | |
import com.google.common.base.Optional; | |
import com.google.common.cache.CacheBuilder; | |
import com.google.common.cache.CacheBuilderSpec; |
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> | |
<property name="entityManagerFactory" ref="entityManagerFactory" /> | |
<property name="dataSource" ref="myDS" /> | |
</bean> | |
<tx:annotation-driven transaction-manager="transactionManager" /> | |
<aop:config> | |
<aop:pointcut id="defaultServiceMethodTxPointcut" | |
expression="execution(!@org.springframework.transaction.annotation.Transactional * *(..)) |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
#!/bin/bash | |
## Script start time | |
START=$(date +%s) | |
## Total run time | |
DURRATION=$((60 * 60 * 24)) | |
## Total running time | |
UPTIME=$(($(date +%s) - $START)) |
import com.yammer.dropwizard.util.Duration; | |
import com.google.common.cache.*; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.concurrent.*; | |
import static com.google.common.base.Throwables.propagateIfInstanceOf; | |
public class LocalAppConfigStorage implements AppConfigStorage { |
// Simple Java program | |
public class Person { | |
private int age; | |
private boolean isFemale; | |
Person(int age, boolean isFemale) { | |
this.age = age; | |
this.isFemale = isFemale; | |
} |
## Batch Create Assertion Duplicate | |
curl -X "POST" "http://localhost:4000/api/batch/assertions" \ | |
-H 'Content-Type: application/json; charset=utf-8' \ | |
-H 'Cookie: jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjYXJsb3NAYmFkZ2V0cmVlLmNvbSIsImlkIjoyfQ.yL0nNX_l3VtPjgZdVk7-1Q7TD4XF_IiVk2VgwhwoOqs; ueberauth_linkedin_state=INKFNIWeDa6TbzGP9aI/VA==' \ | |
-d $'{ | |
"data": [ | |
{ | |
"issuer_id": "4", | |
"user_email": "diego@edvolution.io", | |
"message": "Mensaje", |