Implementation of the SOAP server - server.php
:
<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");
// model, which uses in web service functions as parameter
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
package be.vandemalle.jasper.util.reflection; | |
import java.lang.reflect.Field; | |
import org.apache.commons.lang.StringUtils; | |
public class FieldUtils { | |
/** | |
* Get the specified field on the class. If the field is not found on the class itself will recursively check | |
* the superclass. |
Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "your_email@example.com"
Copy the contents of the file ~/.ssh/id_rsa.pub
to your SSH keys in your GitHub account settings (https://github.com/settings/keys).
Test SSH key:
int oddOccurrencesInArray(int A[], int N) { | |
int value = 0; | |
for (int i = 0; i < N; ++i) value ^= A[i]; | |
return value; | |
} | |
// Source: https://codility.com/programmers/task/odd_occurrences_in_array/ | |
// Score: 100% | |
// That's all folks! |
package ru.trendico.biggame.utils; | |
import com.fasterxml.jackson.databind.JavaType; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.databind.type.TypeFactory; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
/** |
-- show running queries (pre 9.2) | |
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(query_start, clock_timestamp()), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
<template> | |
<div id="app"> | |
<p>{{ message }}</p> | |
</div> | |
</template> | |
<script> | |
export default { | |
data: function () { | |
return { |
package be.vandemalle.jasper.util.reflection; | |
import java.lang.reflect.Field; | |
import org.apache.commons.lang.StringUtils; | |
public class FieldUtils { | |
/** | |
* Get the specified field on the class. If the field is not found on the class itself will recursively check | |
* the superclass. |