package org.asafary.csv; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
@JsonPropertyOrder({ "name", "surname", "shoesize", "gender" }) | |
public class Person { | |
public String name; | |
public String surname; | |
public int shoesize; |
private java.time.ZonedDateTime convertJODADateTimeToJavaZonedDateTime(DateTime originDateTime, DateTimeZone originTimeZone) { | |
if (originDateTime == null || originTimeZone == zone) { | |
return null; | |
} | |
// Convert from JODA to Java 8 time | |
java.time.ZonedDateTime newDateTime = java.time.ZonedDateTime.ofInstant( | |
Instant.ofEpochMilli(originDateTime.getMillis()), java.time.ZoneId.of(zone.getID())); | |
return newDateTime; |
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
If you are not interested in the technical details and only want to get Listen to work:
- If you are running Debian, RedHat, or another similar Linux distribution, run the following in a terminal:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
import imaplib2, time | |
from threading import * | |
# This is the threading object that does all the waiting on | |
# the event | |
class Idler(object): | |
def __init__(self, conn): | |
self.thread = Thread(target=self.idle) | |
self.M = conn | |
self.event = Event() |
These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].
- Install the VirtualBox package (this might be different for your platform).
src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
Install Android App Termux from APKPure or AppStore. If the app exists, just delete and re-install it to get the latest version, The APK can be downloaded from https://apkpure.com/termux/com.termux/ Install the APK using by running
adb install ~/Downloads/Termux_v0.73_apkpure.com.apk
My Synology DS218+ runs with a single SSD disk that has an operating temperature range of 0–70 °C, which is common for SSDs. Synology, however, has a default shutdown temperature of 61 °C, probably due to HDDs and some lazy programming.
I'm a very light user of NAS – all I want is a network attached storage and silence. My DS218+ has one 2 TB SSD disk in it and I've changed the system fan for a quieter / slower one.
Everything runs fine but about once in a month, I get this notification:
[Synology DS218+]Synology shut down due to disk overheating. >
THIS ARE MY NOTES OF BUILDING AN INSTALLING XORGXRDP AND XRDP WITH GPU ACCELERATION | |
TESTED ON DEBIAN 9.13 | |
-- Build XorgXrdp with GPU acceleration ("script" - to be adjusted to your needs) : -- | |
## << BUILD AND INSTALL SCRIPT START >> ## | |
#!/bin/bash | |
# Install Latest XRDP with XORGXRDP | |
# README |