Message from @meratrix
Discord ID: 430551414205448214
<a:one_spinny_boi:393574438769131522>
seriously tho, arch has the best wiki
Most distros are "user friendly" to install these days.
Mageia has the Mageia Control Center, to do most setup tasks. No need to google some obscure instructions about `sudo gedit /etc/...`.
And if you want to learn what's happening behind the scenes, you can configure it to show logs of all the commands it's running.
I learned a lot thanks to that.
<:feelsrage:331855271339229184> *insert obnoxious, immature comment in defense of my chosen distro here*
REEEEEEEEEEEEEE arch is better
you can rice the shit out of arch and I like its wiki
It's okay, most Linux users choose the wrong distro, it's their loss.
cba to switch kernels now
reporting you to the cyber police for grossly offensive comments about a minority of linux users
expect UK police at your doorstep at 2am 😃
I have butter knives and I know how to use them. There will be casualties!
this will require at least 30 police officers
our police are a joke
@meratrix Confirming that ddd works on the rpi. Qemu is making it crash via SSH though.
gdb is crashing, that is.
Even on the console.
I’m just glad it works.
Time to study for my calc 3 exam tomorrow, ooooooh wee
JS IS SO FUCKING DUMB
holy shit
```js
async function populateImageInformation(productRecord) {
let imageInfo = [];
for(let uploadId of productRecord.images) {
let imageData = await File.getByUploadId(uploadId);
imageInfo.push(imageData);
}
productRecord.images = imageInfo;
console.log(require('util').inspect(productRecord))
return productRecord;
}
```
why the fuck is the output so dumb
```
[{"_id":"5ac2952b7619a334903bccd7","name":"test product","stockCode":"XD69","price":"30","__v":0,"updatedAt":"2018-04-02T20:40:11.902Z","createdAt":"2018-04-02T20:40:11.898Z",
"images":
["{ _id: 5ac295257619a334903bccd6,\n uploadId: 'b6788f4788d9f131475aa04b61f5e29c',\n name: 'stainless-steel-bg-3.jpg',\n type: 'image/jpeg',\n size: 1021415,\n uploader: 5a84547d95a6728d64dcca41,\n __v: 0,\n updatedAt: 2018-04-02T20:40:05.022Z,\n createdAt: 2018-04-02T20:40:05.013Z,\n staffOnly: false }"]
,"description":"this is a test xd"}]```
the images property is an array of string versions of an object, not JSON, not valid objects, just human readable strings complete with whitespace
lol
>JS IS SO FUCKING DUMB
Free strings, dude.
no need to repeat it twice my dude
In this case, the blame is on whoever created that File class, no?
It's return a stringified JSON.
File is a `mongoose` schematic object, basically it is a class that abstracts a connection to a MongoDB collection
so it usually makes it easy to get records from the database
in this case it finds the one record with a specified ID
the data is returned and, when tested is an object
but for some reason when I push it to an array it goes ape shit and becomes a human readable string
the function takes a product record, then iterates the list of image upload IDs then loads info for each one. then it is supposed to replace that array with the list of file information records