-
Disable and stop the systemd-resolved service:
sudo systemctl disable systemd-resolved.service sudo systemctl stop systemd-resolved
-
Then put the following line in the
[main]
section of your/etc/NetworkManager/NetworkManager.conf
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question: Can I display accented characters or ligatures as part of JavaScript output? | |
Answer: You can include accented characters and ligatures in JavaScript strings and/or display them on your HTML pages using the following encodings for the letters: | |
hexadecimal codes \xXX in JavaScript strings; e.g. ñ is \xF1 | |
Unicode hex codes \uXXXX in JavaScript strings; e.g. š is \u0161 | |
HTML entities; for example, ñ is ñ and š is š | |
numeric HTML entities; e.g. ñ is ñ and š is š | |
unescape with a suitable argument; e.g. ñ is unescape('%F1') | |
decodeURI with a suitable argument; e.g. ñ is decodeURI('%C3%B1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte lineEnding = 0x0A; | |
//Data array that the received info from android app is recorded. Every byte corresponds to a digital pin. | |
byte readBuffer[15]; //For example readBuffer[5] is for digital pin 5. | |
byte defaultByte = 0x10; //On start all arduino digital pins must be input for electrical protection. | |
//Pins 0 and 1 are used for serial comminations. So read | |
void setup() { | |
for (int i=0; i < sizeof(readBuffer)-1 ; ++i) { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |