Follow these steps to enable swap and hibernation on Arch Linux.
First, check your current RAM and swap usage to ensure the swap file is large enough to store the contents of your RAM:
Follow these steps to enable swap and hibernation on Arch Linux.
First, check your current RAM and swap usage to ensure the swap file is large enough to store the contents of your RAM:
async function getSongInfo(user) { | |
const url = `https://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&user=${user}&api_key=${API_KEY}&limit=1&format=json`; | |
const response = await fetch(url); | |
const json = await response.json(); | |
const track = json.recenttracks.track[0]; | |
return { user: json.recenttracks["@attr"].user, artist: track.artist["#text"], name: track.name, image: track.image[track.image.length - 1]["#text"], playing: ((typeof (track["@attr"]) != "undefined") ? true : false) }; | |
} | |
// example response: |
bpj | |
bp6 | |
bqf | |
bq5 | |
bq6 | |
bq8 | |
bq9 | |
bq0 | |
bse | |
bs6 |
#Oh no! this package could not be found aka how to fix oracle linux 7 not having any repos tl;dr run
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum repolist
I recently decided to order an arduino nano and a tft display from AliExpress. When I looked up online it took me some time to find a clear guide how to connect the display to the arduino, either the display had different pins or it was a slightly different model, but with some trial and error, I managed to get it to work.
program order; | |
uses | |
crt; | |
var | |
a: array[1..10] of char; | |
d:char; | |
i,c,r: integer; |