#development

1 messages · Page 61 of 1

hollow basalt
#

which is a fancy way of saying inside the node itself

midnight wind
#

oh yeah you need to exit node terminal

#

CTRL - D I think

#

or CTRL - C

next igloo
#
- C:\Users\ericr\Documents\nodehttp\app.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\ericr\Documents\nodehttp\app.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'C:\\Users\\ericr\\Documents\\nodehttp\\app.js' ]
}```
#

when i type node app.js

midnight wind
#

did you install discord.js

next igloo
#

i beleive i had but i will double check

hollow basalt
#

how did you installed it

next igloo
#

npm discord.js

midnight wind
#

in that folder?

hollow basalt
next igloo
#

something like that in command prompt

midnight wind
#

is it in package.json?

next igloo
#

hmm thats why

#

i used the command prompt you get from typing in windows search

midnight wind
#

yeah, npm is folder specific

#

will create node_modules folder

hollow basalt
#

it probs isntalled in
C:\Users\ericr\node_modules

midnight wind
#

yeah

next igloo
#

it is

hollow basalt
midnight wind
#

yeah I guess

next igloo
#

how can i get discord.js installed to the folder then?

midnight wind
#

just npm install discord.js in that folder

next igloo
#

typed it in cmd

#

and it gave the module not found error again

hollow basalt
#

screenshot in cmd?

#

when you installed it

next igloo
hollow basalt
#

have you tried saving app,js then running it again

next igloo
#

how can i check if discord.js was installed correctly

hollow basalt
#

actually inpsect the node_modules fikder

#

or use

npm list
next igloo
#
C:\Users\ericr\Documents\nodehttp>npm list
nodehttp@1.0.0 C:\Users\ericr\Documents\nodehttp
`-- discord.js@12.5.1
  +-- @discordjs/collection@0.1.6
  +-- @discordjs/form-data@3.0.1
  | +-- asynckit@0.4.0
  | +-- combined-stream@1.0.8
  | | `-- delayed-stream@1.0.0
  | `-- mime-types@2.1.27
  |   `-- mime-db@1.44.0
  +-- abort-controller@3.0.0
  | `-- event-target-shim@5.0.1
  +-- node-fetch@2.6.1
  +-- prism-media@1.2.3
  +-- setimmediate@1.0.5
  +-- tweetnacl@1.0.3
  `-- ws@7.4.0
hollow basalt
#

looks good

midnight wind
#

is your file saved?

hollow basalt
midnight wind
#

yeah ik

#

idk if he did it

next igloo
#

yes

hollow basalt
#

cause the file probably has token

next igloo
#

i removed the line that had the token

#

and now when i type node app.js it freezes

midnight wind
#

yeah

hollow basalt
#

that's actually a good sign

midnight wind
#

wait show the code

next igloo
#
const client = new Discord.Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`)
});```
midnight wind
#

did you create discord token?

next igloo
#

i did

hollow basalt
#

which is where

next igloo
#

but when i typed node app.js it would give me an error

#

even i put quotes around the toekn

#

so i removed it

hollow basalt
midnight wind
#

ok then in client.login("token here");

hollow basalt
#

hardcoded

midnight wind
#

is it the right token

#

a bot token

#

not a app token

next igloo
#

it was the wrong token

hollow basalt
#

token't

midnight wind
#

now, don't hardcode it

#

get it out of there

next igloo
#

i put in the correct token

#

for the bot and not the app

#

i got it to work

#

thanks for the help

#
const Discord = require("discord.js");
const client = new Discord.Client();
const token = require("./token.js");


client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`)
});

client.on(`message`, msg => {

  var response = msg,
  prefix = "$",
  string,
  number,
  channel;

var list = {
  array: [ 
["a"],
["b"],
["c"]
]
}

if (response.charAt(0) == prefix) {
  string = response.slice(1, response.length).toLowerCase();
}

if (string == "reset") {
  msg.reply("Reset Bot");
} else if (string == "guide") {
  msg.reply("Channel Guide");
} else if (string == "current") {
  msg.reply("Current Channel");
} else if (string == "cycle") {
  msg.reply("Cycle Channel");
} else if (string == "previous") {
  msg.reply("Previous Channel");
} else if (string == "about") {
  msg.reply("About Bot");
} else if (string.includes("channel: ") && (string.length == 10 || string.length == 11)) {
  number = Number(string.slice(9, response.length)) - 1;
  channel = list.array[number]
  msg.reply("mb play " + channel)
  } else {
  msg.reply("Syntax Error");
}

});

client.login(token);
#

i get at error that (response.charAt(0) is not a function

#

the script works in normal javascript

#

except msg.reply is alert

#

and client message is prompt

midnight wind
#

that means charAt() is not a function

#

you can use a debugger and see all properties of response

next igloo
#

is there a function that does the same job?

midnight wind
#

¯_(ツ)_/¯

#

google

hollow basalt
#

lel

midnight wind
#

asking is my last resort

#

I google everywhere

hollow basalt
#

people learn by researching

next igloo
#

i found the problem

#

var.thing makes the ide think that it is not javascript or something

#

it gets treated at a function

#

and not an operator?

hollow basalt
midnight wind
#

@next igloo syntax highlighting?

#

don't look at syntax highlighting

#

vscode is not an ide, just remember that

hollow basalt
#

he who hath syntax

midnight wind
#

I like it because it's not a full ide

next igloo
#
Logged in as Test Bot#0000!```
(Typed a message to the bot)
```C:\Users\ericr\Documents\nodehttp\app.js:82
  string = response.slice(1, response.length).toLowerCase();
                    ^

TypeError: response.slice is not a function
    at Client.<anonymous> (C:\Users\ericr\Documents\nodehttp\app.js:82:21)
    at Client.emit (events.js:315:20)
    at MessageCreateAction.handle (C:\Users\ericr\Documents\nodehttp\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (C:\Users\ericr\Documents\nodehttp\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (C:\Users\ericr\Documents\nodehttp\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
    at WebSocketShard.onPacket (C:\Users\ericr\Documents\nodehttp\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
    at WebSocketShard.onMessage (C:\Users\ericr\Documents\nodehttp\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
    at WebSocket.onMessage (C:\Users\ericr\Documents\nodehttp\node_modules\ws\lib\event-target.js:132:16)
    at WebSocket.emit (events.js:315:20)
    at Receiver.receiverOnMessage (C:\Users\ericr\Documents\nodehttp\node_modules\ws\lib\websocket.js:825:20)
PS C:\Users\ericr\Documents\nodehttp> ```
midnight wind
#

learn how to use a debugger

#

I can help with that

#

this way you can see all properties of slice

next igloo
#

do i go start debbuging?

midnight wind
#

yeah for starters you can use console.log()

hollow basalt
#

Debuggers are good but I still use plain old logs

#

Why are you using slice in response

#

I suggest you take a look at discord documentation first

midnight wind
#

and js in general, I'm still a noob in js though so I can't help much

hollow basalt
#

Don't need much, as long as you have the fundamentals of http apis

midnight wind
#

well discord.js wraps around the http api's though?

pliant siren
#

Yes.

next igloo
#

the issue was msg was an object

#

i fixed that now

umbral saffron
#

would it be worth it to buy a watch controller for the helmet
it would just swap between the cameras, turn on the flashlight, and i guess connect the screen

umbral saffron
#

it would just swap between the cameras, turn on the flashlight, and i guess connect the screen

#

for the helmet

#

im working on

#

its a screen on ur wrist with a strap

#

@midnight wind

midnight wind
#

so like custom made?

#

I really don't know what you are talking about

umbral saffron
#

ok so take an apple watch

#

or any smartwatch

#

it has a screen and a band right?

#

instead of being connected to ur phone

#

this is connected to ur rpi

#

as a remote

midnight wind
#

ok yeah

#

I know that

#

but about the controller, wdym? a custom made pcb? what are you thinking about

umbral saffron
#

the watch is the controller

#

sorry im making this confusing

#

we have a helmet right

midnight wind
#

isn't that the pi?

umbral saffron
#

yes

#

but its a 0

#

and we have no way to interact with it

#

so would buttons or a watch be better

#

it would just swap between the cameras, turn on the flashlight, and i guess connect the screen

midnight wind
#

but the pi is the watch though? It's the hub where verything is connected?

#

there are GPIO pins for a reason

umbral saffron
#

we have the pi in the helmet

midnight wind
#

oh

umbral saffron
#

the pi connects to the GPIO board

#

and that to the cable and the cable to the screen

#

we need a way to control the pi

#

would a watch or buttons be better

midnight wind
#

isn't the screen touch?

#

if it's not that would be a good option

umbral saffron
#

the screen in front of the helmet? no
but the watch screen? yes it would be

midnight wind
#

What watch were you thinking about

umbral saffron
#

?

midnight wind
#

Like what watch did you want to buy

#

You would want something similar to a pi with an i2c or something similar for data transmission

#

And programmable

#

Or bluetooth

umbral saffron
#

what i would do

#

is use a bluetooth screen with a band around it

#

with one wire for power

midnight wind
#

Yeah I would do that

umbral saffron
#

can u help me find one the one i saw was too expensive

#

i have a budged of 150 and we've spent about 2/3 of it

next igloo
#

hello, how can i make my bot run for 24 hours straight? (the bot is text based)
currently the bot runs for 5-10 minutes after i type node app.js in vs code or 5-10 minutes after someone has given it a command

#

if its offline it wont respond to commands

midnight wind
#

do you close the cmd prompt?

#

or close node

#

you need something to host it

#

discord won't host your bot for you

#

@next igloo

next igloo
#

k

#

its just a bot for just 1 server so it should be easy to host

midnight wind
#

discord bots are easy to host

#

no need for port forwarding

#

a raspberry pi can

#

or you can rent a small vps or discord hosting service

#

a small bot doesn't need much resources

#

@next igloo

hollow basalt
next igloo
#

?

midnight wind
#

nevermind

pliant siren
#

I just wrote my discord bot to run in a container. Then you can just use an Amazon micro VM running docker that hosts the bot

midnight wind
#

yeah packing in a container is a good way to make it work everytime

pliant siren
#

In fact, here's the Dockerfile for the one I wrote.

`FROM node:12.18.3-alpine

WORKDIR /pinboy

COPY package*.json /pinboy/
RUN npm install

COPY app.js /pinboy/app.js
COPY package.json /pinboy/package.json
COPY config.js /pinboy/config.js
COPY pinnypals.js /pinboy/pinnypals.js

COPY config.json /pinboy/config.json

CMD ["node", "app.js"]`

midnight wind
#

doesn't have to be a docker container, I myself am experimenting with buildah and OCI containers

#

docker can run OCI containers

#

and so can podman

#

podman can also run docker containers

#

I also use yarn instead of npm

pliant siren
#

on alpine?

midnight wind
#

I used FROM node:12

#

didn't specify alphine

#

why?

pliant siren
#

yeah, alpine is much smaller.

midnight wind
#

ah ok

pliant siren
#

it's a pain sometimes cos you write your heavyweight container using some base image that expect say, apt-get, or yum, then you change to say alpine and f%*#%, now I gotta use a different package manager lol

pliant siren
#

No. Because then if you have even a single file that gets modified, you need to create a new image /did for that step and all those changes.

#

It also ensures you don't copy unnecessary files without having to add them to. Dockerignore

#

Not if you have a large source folder.

#

That would imply you have another shadow copy step.

#

dist should generally only contain derived assets.

#

So you would still end up with a new container diff at that build step. You've just instoduced a new problem and not solved the old one

#

That still applies.

#

It's the size of the diff and length of the build that is impacted

pliant siren
#

What happened? Now it looks like I was talking to myself lol

marsh oasis
#

Im running a flask server on my RPi and ive made it to run on 0.0.0.0:5000 but when i go to my laptop to connect to the site using the public ip it doesnt work...

#

any idea why?

#

and if so how can i fix this?

marsh oasis
#

wdym

marsh oasis
#

well could you tell me it?

midnight wind
#

@marsh oasis you need to port forward and enable nat reflection

#

In your router

marsh oasis
#

@midnight wind why would i port forward to see make it so everything on my local wifi can be visible

midnight wind
#

@marsh oasis ok, so you don't need to port forward, but you said you wanted to access it from your public ip. If you just want to access it within you lan you need to find the ip of the pi.

#

Making it run on 0.0.0.0 :5000 just means the pi will listen on all interfaces

marsh oasis
#

when i run ifconfig i get the list of the ip's and none of them seemed to work

midnight wind
#

Run ip addr and post here

marsh oasis
#

cant do rn but will do later and keep you updated

midnight wind
#

Alright

umbral saffron
sage vector
shy helm
#

@sage vector I’m not actually caught up yet, but if you want I’m happy to share my C++ solutions 🙂

#

Do you try to make them as efficient as possible? Or do you care more for just solutions

sage vector
slim pulsar
#

Hmm never heard of this advent of code thing before

#

Might need to check it out

#

Been looking for a good reason to learn Golang and this might be it

late plank
#

Ive already decoded the json and and named it $response_decoded

#

sth like this: "title" => "$response_decoded->products->data[0]->title" ?

hollow basalt
late plank
#

needed to remove the ""

tall kernel
#

I love html

shy helm
bleak breach
#

@shy helm It's been my tradition for the last 4 years to think about it in Feb, do 3-4 puzzles and then abandon it. 😂 🎅

honest sleet
#

I made a new video devlog for my game, about the development of new visuals, UI elements and gameplay improvements using Godot Engine! And an over-engineered ground texture feature 🤣! https://youtu.be/0xe65ckvPjs

In this devlog I introduce the latest improvements, a new ship design, an enhanced gameplay loop and UI element to go with it and a literally ground breaking texture.

Previous episodes: https://www.youtube.com/playlist?list=PLaFbdcIP-CNj0f98D_2oJSjNmrSZEItiy

Find me online: http://links.timkrief.com

All my projects here a...

▶ Play video
slim pulsar
gusty girder
#

Does anyone know, when using C#, is there a large difference in performance between using nested if statements vs. multiple conditionals?

if(loaded_games < total_games)
{
    if (scrolled_to_end_of_list)
    {
        loadMoreGames()
    }
}

and

if(loaded_games < total_games && scrolled_to_end_of_list)
{
    loadMoreGames()
}```
shy helm
#

I double it makes significant difference @gusty girder

#

Both should create mostly similar instructions:

calc cond a
jump end if not a
calc cond b 
jump end if not b 
jump loadMoreGames
end
#

Obviously that's not real instructions, but close enough

spring pond
#

yeah i think the compiler will probably be smart enough to treat them the same

gusty girder
#

aight thanks

pliant siren
bright hound
#

is anyone else doing adventofcode?

spring pond
#

there are some messages from people doing it in the chat history

bright hound
#

I'm trying to do it avoiding the bruteforce nest a bunch of loops solutions. so trying to use more advanced data structures.

shy helm
#

@bright hound let me know if you ever want to compare solutions, I’ve only done the first three days though

bright hound
#

so I'm doing python.. and trying to not do dumb things.. this was day 1 pt1

shy helm
#

Yeah, you can do day one part 1 in quasi linear time if you want

bright hound
#

`#!/bin/python3

with open("input") as file:
inputlist = [int(line.strip()) for line in file]

print(inputlist)

listindex = 0
while listindex < len(inputlist):
testednumber = inputlist[listindex]
if (2020-testednumber) in inputlist:
print( testednumber * (2020 - testednumber))
listindex = listindex + 1
`

shy helm
#

Part two in quasi n^2

bright hound
#

yeah got that.

shy helm
#

Yeah nice

#

My solutions are in C++ haha, but basically the same

#

Actually just to note, your day one solution is not linear

bright hound
#

I think 2 would be easier in C

shy helm
#

Your solution is n^2

#

List membership is a linear search

bright hound
#

if in list is O(1)

#

so it's O(n) worstcase.

shy helm
#

You’re thinking of sets

#

List member is N

#

There’s no order to the data, how can it be sub-linear?

bright hound
#

list datatype in pythhon does that for you 😄

shy helm
#

No, it doesn’t

#

x in s O(n)

#

I use python professionally 😛 I’m familiar with the built in runtime complexities

bright hound
#

huh I thhoughht it was better than that boo. that make my part 2 O(n^3). 😦

shy helm
#

Yeah, have to use sets/dicts to get the O(1) amortized ‘in’ complexity

bright hound
#

and worst case remains O(n)

shy helm
#

Yes, but it’s extremely unlikely

#

With cuckoo hashing they can get worst case constant time lookup, not sure if python uses it though

#

In this example though, you won’t have duplicate keys, so you’ll always have constant time

bright hound
#

so making a copy of the list as a set and using that for the in operation.. is trivial.

shy helm
#

Yeah should be easy 😄

bright hound
#

yay for bitwise operators for day2 pt2

bright hound
#

ok it's getting a bit more involved now... `#!/bin/python3

8-9 x: xxxxxxxrk

lines=[]
count = 0
def test(line, indexno):
if line[indexno] == '#':
return 1
return 0

myfile= open("input")
for line in myfile:
lines.append(line.strip())

def testarray(across, down):
count=0
j=0
i=0
while i < len(lines):
if lines[i][j] == '#': count = count + 1
j = (j + across) % len(lines[i])
i = i + down
return count

print(testarray(1,1) * testarray(3,1) * testarray(5,1) * testarray(7,1) * testarray(1,2))
`

umbral saffron
#

ok so for the helmet thing im making would an rpi 0 be better or an arduino

spring pond
#

what are you trying to make

umbral saffron
#

its a helmet with a camera connected to a screen

honest sleet
#

With shader sorcery and clever dynamic ground tiling, I can move wormholes around, it's trippy!

umbral saffron
#

woah

spring pond
#

you will need a pi for that project because i dont know of any arduino with the processing power needed for that

umbral saffron
#

ok

#

so a 0 would be powerful enough?

spring pond
#

let me see

#

what are you trying to do with this camera feed

umbral saffron
#

send it to the screen

#

its an IR nightvision camera

#

the end product is going to have a nightvision helmet

umbral saffron
uncut garden
#

hi, i was wondering if it's possible with traefik to define the defaultRule in the config file such that it retrieves the name a container and for each container ?

spring pond
#

depending on how high res is im not sure if a pi zero will be able to compute it quick enough

umbral saffron
#

thats the camera

#

which goes to the pi

#

which goes to the GPIO pin board

#

which goes to the ribbon cable

#

which goes to the screen

spring pond
#

you should be fine

umbral saffron
#

ok

umbral saffron
#

is there a cheaper driver board i could use

spring pond
#

maybe

#

i dont really work outside of pis and arduinos

azure mica
umbral saffron
#

its 4$ cheaper

#

but it might not be fast enough

bright hound
#

@shy helm Pretty proud of my test for day4 pt1 after converting the passport to a dictionary used set(passport.keys()).issuperset(requiredfields)

nocturne galleon
#

Im doing vector<int> list;
and list.size()
and it doesnt work although it should work according to http://www.cplusplus.com/reference/vector/vector/size/
error: request for member ‘size’ in ‘list’, which is of non-class type ‘std::vector<int>()’
15 | cout << list.size();

#

nvm it works now

nocturne galleon
#

Why can I do list[3] after I have done list.clear() and still get the element that was there before but then when I do list.size() it says 0

#

list is a vector

deep scarab
#

pretty sure that's undefined behaviour

#

i think at() will throw an exception if you tried that

hollow basalt
#

Undefined, I think it's not guaranteed to do the memory cleaning immediately

hollow basalt
#

<@&750150305383186585> so uhh

midnight wind
#

um

umbral saffron
#

what happened

hollow basalt
#

it

umbral saffron
#

what

warm sleet
#

@umbral saffron STM32's have DMA

#

there are gfx libraries optimized to use DMA for SPI displays

#

stm32 development boards like the blue pill (STM32F103) are arduino compatible

#

but much faster.

#

32 bit chip @ 72MHz vs 8 bit chip @ 16MHz (or 20 if you swap the crystal)

umbral saffron
#

so it would work

#

i dont understand any of that

#

@warm sleet

warm sleet
#

@umbral saffron simple displays that you'd use with a microcontroller like that use SPI

#

The Serial Peripheral Interface (SPI) is a synchronous serial communication interface specification used for short-distance communication, primarily in embedded systems. The interface was developed by Motorola in the mid-1980s and has become a de facto standard. Typical applications include Secure Digital cards and liquid crystal displays.
SPI d...

#

The most commonly used DIY development platform is arduino

#

but arduinos are terribly slow, and not ideal to drive a display

#

don't get me wrong, it can do it. but updating pixels will be lot slower

umbral saffron
#

i was planning on using a pi bc i have no idea how to use an arduino and it might be faster

warm sleet
#

@umbral saffron arduinos are not that complicated

#

you connect them to your computer with usb

#

and you can use the arduino program to upload your code to the board

#

It does not contain an operating system

umbral saffron
#

all i need to do is connect a camera to a screen

warm sleet
#

the code it runs, is your program

umbral saffron
#

so would an arduino be better

warm sleet
#

Nah

#

if you want to do realtime streaming like that

#

you kinda want a pi yeah

umbral saffron
#

yeah thats what i thought

#

but im still new to all this

warm sleet
#

if you just want to drive a simple display

midnight wind
#

arduino is too slow (depending on the chipset)

warm sleet
#

then a pi is overkill

midnight wind
#

a pi is a full on computer

warm sleet
#

@midnight wind those avr chips all suck ass

#

but they go far smaller

#

attiny25

#

is

#

tiny

#

thats magnified like 20x

midnight wind
#

an arduino or any microcontroller (Ex: stm32) can't run a full on OS (or can it, idk, but not designed for that)

#

you program it directly

warm sleet
#

@midnight wind microlinux can run on an stm32

midnight wind
#

huh

#

cool

umbral saffron
#

being able too fit the pi into the vero board into the pinboard is gonna be tight

#

bc this is going onto a helmet

warm sleet
umbral saffron
#

but the veroboard is better bc im only using 1 thing that im plugging into it

warm sleet
#

the stm32 discovery is the official dev board

#

but there are compatible kernels for it

#

@midnight wind the only thing the kernel will really do, is just run your init script

#

kernel boot parameters contain the path to your init script

#

which the kernel runs after it starts

#

on regular desktop or server systems

#

this init script will be either sysV init or the more "modern" systemd

warm sleet
#

@umbral saffron use breadboards

midnight wind
#

for prototyping

umbral saffron
#

yes i was going to

umbral saffron
#

but i need it to be smol

midnight wind
#

but for a final product you could use that

umbral saffron
#

and im only connecting one thing

midnight wind
#

yeah breadboards are too big

warm sleet
#

yeah but for prototyping your hardware & software

#

its fine

#

when you go to build your first actual prototype of the design

#

you could use perfboard

umbral saffron
#

whats wrong with the veroboard

midnight wind
#

make it on a breadboard first

warm sleet
#

its perfboard

umbral saffron
#

meaning

midnight wind
#

make on breadboard -> make sure it works -> then solder

#

breadboard is solderless

warm sleet
#

vero is a brand

midnight wind
#

perfboard you need to solder

warm sleet
#

Perfboard is a material for prototyping electronic circuits (also called DOT PCB). It is a thin, rigid sheet with holes pre-drilled at standard intervals across a grid, usually a square grid of 0.1 inches (2.54 mm) spacing. These holes are ringed by round or square copper pads, though bare boards are also available. Inexpensive perfboard may hav...

umbral saffron
#

ah

warm sleet
#

vero is a brand

#

if you want to go smaller still

midnight wind
#

make your own custom pcb

warm sleet
#

you can order custom designed PCBs online these days

midnight wind
#

fusion 360 has eagle built in now

warm sleet
#

all you do is send your gerber files from your cad software

#

I use kiCad

midnight wind
#

that's nice too

warm sleet
midnight wind
#

I used it before

warm sleet
#

takes bit of getting used to

#

but it does basically all you need

midnight wind
#

I'm just like the eagle <-> fusion intergration

warm sleet
#

netlists, autorouting

#

etc

#

and if you have the latest version

#

it has almost all commonly used electronic parts in its db

#

eagle is piss

#

because its monthly subscription now

midnight wind
#

I have it from school

warm sleet
#

yeah

midnight wind
#

¯_(ツ)_/¯

warm sleet
#

thats how they get you

#

Its the same for me with IDEA

midnight wind
#

yeah true

warm sleet
#

microsoft does it too

#

except they make the school pay for it

midnight wind
#

and adobe

warm sleet
#

yeah it creates people educated to use this one system

midnight wind
#

there aren't any like Blender type of good free CAD programs

warm sleet
#

instead of teaching them how to teach themselves more

#

like

#

all these cad programs

#

have same kind of views of a pcb

#

you have the schematic

#

then your board

#

netlists

#

which translate the schematic to the board

#

and then you can get a 3d view as well

#

hack yeah

midnight wind
#

oh that's kicad?

warm sleet
#

board layout

midnight wind
#

yeah it's all similar

warm sleet
#

@midnight wind only 3d modelling I've ever done

#

was with this uhm

#

uses code to describe your models

midnight wind
#

huh

#

that's different

warm sleet
#

yeah its 3d cad

#

for 3d printers and such

#

never got into this

#

I'm more electronics and code

midnight wind
#

blender is so nice

umbral saffron
midnight wind
#

I wish CAD got more love

warm sleet
#

blender is for virtual scene rendering

#

like

midnight wind
#

yeah

#

ik

warm sleet
#

openscad can compile to GCODE

#

which are commands to operate the printer

midnight wind
#

yeah, I built a cnc

warm sleet
#

nice

midnight wind
#

I've worked with some gcode

warm sleet
#

its quite bad isnt it xD

midnight wind
#

need to improve it a bit though

#

yeah

warm sleet
#

very nitty gritty process

midnight wind
#

the worst is the wobble

warm sleet
#

omg

#

are you serious

#

what kind of ripoff is this lmao

#

minimum order of 8

#

for 56 bucks

warm sleet
midnight wind
warm sleet
#

its a recurring contest

midnight wind
#

huh

warm sleet
#

its like a hackathon

midnight wind
#

it takes a good programmer to write bad code

warm sleet
#

except they compete to write the most obfuscated spaghetti code ever

#

so its impossible to deduce what its attempting to do

midnight wind
#

oh god

warm sleet
#

@midnight wind thats an unlambda interpreter

umbral saffron
#

half life

warm sleet
#

In computer programming, an anonymous function (function literal, lambda abstraction, or lambda expression) is a function definition that is not bound to an identifier. Anonymous functions are often arguments being passed to higher-order functions, or used for constructing the result of a higher-order function that needs to return a function.
If...

umbral saffron
#

what

umbral saffron
warm sleet
#

yeah

#

its lambda symbol

umbral saffron
#

oh

warm sleet
#

Lambda (uppercase Λ, lowercase λ; Greek: λάμ(β)δα lám(b)da) is the 11th letter of the Greek alphabet, representing the sound /l/. In the system of Greek numerals lambda has a value of 30. Lambda is derived from the Phoenician Lamed . Lambda gave rise to the Latin L and the Cyrillic El (Л). The ancient grammarians and dramatists give evidence to...

#

in functional mathematics it can be used to describe a function

#

and computing also uses it

#

in javascript for example

#

() => console.log("hello world")

umbral saffron
#

all i remember is
alpha beta gamma delta epsilon zeta eta theta iota mu nu omnicron pi tau opsilon fie chi psi and omega

warm sleet
#

this is an anonymous function

umbral saffron
warm sleet
#

so you can store them in a variable

#

foo: () => console.log("hello world")

umbral saffron
#

oh

#

cool

warm sleet
#

so you can do myObject.foo()

#

In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that each return a value, rather than a sequence of imperative statements which change the state of the program.
...

shy helm
#
λ (x): print(x)
#

Or whatever the format for Racket is, I haven't used it in forever

patent arrow
#

hey, in my bash script i want to assign the int 0 to a newly defined variable x but i get this error: main.sh: line 42: syntax error near unexpected token `x=0' main.sh: line 42: ` x=0'

warm sleet
#

did you declare it?

patent arrow
#

i declare it with x=0

#

the same line

warm sleet
#

declare -i x=0

patent arrow
#

y tho? i did y=0 a few lines above and it worked

warm sleet
#

`x=0'

#

I think your quote is worng

#

` '

patent arrow
#

the quote was from the terminal

warm sleet
#

' `

#

well then

#

did you add a #!/bin/bash ?

patent arrow
#

yes

#

anyways i added the declare. doesnt change anything... :(

rough zenith
#

Guys i don't know what im doing wrong? can't seem to get my visual studio to upload... actual code to github

midnight wind
#

so like git fetch?

hollow basalt
rare wolf
#

Tell if it works

hollow basalt
#

or use command line

rough zenith
#

Ty guys, I sorted it. I wouldn't be able to use that anyway as half my programming is done on locked down school computers.

plain cosmos
#

Can anyone help out pls?

#

SPARQL Wikidata People who are academic offspring of themselves.
or
Persons who are not painters and who are academic offspring of painters (note: an academic offspring of a person P is somebody who is/was a student of P, or a student of a student of P, or a student of a student of a student of P, or ...).
SPARQL

hollow basalt
mortal mortar
#

hey guys i have a coding project using java and need someone to help me code up something real fast. can anyone help me

lone hornet
#

you should post your prompt to see if anyone can help you

mortal mortar
#

This is the code.org Hackathon App, Unit 5 Lesson 13-17 AP CSP can anyone help or link me to a video or website with the answers

hollow basalt
proven lodge
#

Why is it that multiple professional programmers prefer buying a mac over windows laptops when many times the raw power of equivalent priced windows laptops is greater?

#

A general question

vestal glen
#

My guess is that they went to mac for the easily accessible posix environment, since that's only recently become a thing on windows.

#

(and yes, I'm saying that not everyone wants to bother with linux, as much as that pains me)

vast echo
#

linux on laptops is so finicky

#

and sure there are cheaply built, best specs for the money windows laptops that beat macbooks for price to performance, but even the intel macbooks were reasonably competitive with similar "premium" windows laptops like the dell xps/surface devices (which are the most common dev laptops for windows users from what I've seen)

#

and with the m1 macbooks, it seems like the macbook air might now be the best value in it's price category if there's nothing that blocks you from using the new architecture

crystal tundra
#

U gotta admit although macs are more expensive, they last so much longer, with equally priced windows laptops lasting around 4 years whereas a mac can last 8

#

And now the m1s add performance

honest sleet
night pewter
#

guys can you help im devopeping a game and it shows that there is an error i dont no what

midnight wind
#

well, the error would help

night pewter
#

what

midnight wind
#

what error are you getting

night pewter
#

assets/player error expected

midnight wind
#

full error

#

that doesn't really help

night pewter
midnight wind
#

well, it's kinda obvious

#

read the error

night pewter
#

i did and i dont no

#

please tell me

midnight wind
#

cmon

#

what's the last 2 works say

night pewter
#

i just started devopeping 2 days ago

midnight wind
#

; expected

#

at player.cs at line 11

night pewter
#

ok

#

let me check that

fallen cedar
#

maybe worth teaching how to read this particular error message

#

if he's new

midnight wind
#

I'm a bad teacher but I'll try

night pewter
#

ok the errors are gone now but for some reason what i coded its just not happening in game

fallen cedar
#

so in short: you were missing a closing semicolon

midnight wind
night pewter
#

ya

midnight wind
#

yep, basically same thing

night pewter
#

i no i fixed it

midnight wind
#

ah it's the error code

night pewter
#

but for some reason what i coded dident happend in the game

midnight wind
#

welcome to programming

night pewter
#

but before i coded that last line it was perfectly fine

midnight wind
#

are you using a game engine

night pewter
#

ya unity

fallen cedar
#

well, that's beyond my help 🙂

midnight wind
#

idk unity, so I can't really help you

fallen cedar
#

logic errors, especially game programming 🙂

midnight wind
#

what line did you add?

fallen cedar
#

i don't know Unity either, but you can try debugging your code

#

setting breakpoints

night pewter
#

@midnight wind ok thanks for the help tho

fallen cedar
#

stepping through the code

#

and see where reality starts shifting away from your expectations 🙂

midnight wind
#

I'm currently in the progress of doing that for a js game

#

working on an animation system

#

preloading all the images was going to be a problem, but then we found out about sprite sheets

#

so now I have to implement that

#

mozilla's dev site is great

pliant siren
#

If you want the easiest time ever handling sprites, have a look at the way it's done on the GameBoy Advanced.

#

All except that the ARM7tdmi didn't have FDIV, that thing was awesome and so easy to develop for.

nocturne galleon
#

my favorite thing in the entire world is following a tutorial step by step and getting errors thrown all over the place and nothing works :)

sacred pumice
hazy salmon
#

Hi guys, I'm looking for software that can do the following:

  • Manage text/config files
  • Editing 1 single setting in multiple config files at once, without changing the other settings
  • Basically a tool to automate editing multiple config files

For exampe, I have 2 config files:

value: 20```

```server_name: test2
value: 20```
Now I want to edit value to 30 in both files in one go without having server_name changed in either.

There must be something like this right?
sudden tiger
fallen cedar
#

i don't know of a "tool", but if you have config files that follow the above pattern you outlined, so property: value, then you can just write a simple one shell script to modify multiple files

in Linux (assuming you have two files (test1.cfg and test2.cfg in the current folder with contents similar to what you provided)

sed -i 's/\(value:\).\+/\1 500/g' *.cfg

will change the line value: 20 to value: 500 in both files.

In Windows using PowerShell

(Get-ChildItem *.cfg) | %{ ((Get-Content -Raw $_) -replace '(value:).+','$1 500') | Set-Content -NoNewLine $_.FullName }

of course this only works if all your files are in the current folder and they strictly follow the pattern you mentioned:
property-name, colon, space, some value, end-of-line

sacred pumice
pliant siren
#

oh right, someone already said that 🙂

nocturne galleon
#

Hey I was wondering if there is an easy way to make estimates on how long a project can take to build, I am beginning to learn the basics of web dev and have an idea for a website I would want to build but no idea how to gauge how long it might take. Does anyone know of any ways to figure that out? I understand if that might be possible but was curious if people who know alot more than me might be able to point me in the right direction

spring pond
#

due to how many factors can go into code projects it can be very hard to estimate time frames

#

i originally had a 6 month time frame for my project but its gonna end up taking about 10

pliant siren
#

like build time or project management time to finish?

#

My boss used to take whatever estimate I gave him then triple it 😉

midnight wind
#

Also, is it just a basic information website, or something that will require a lot of custom coding

nocturne galleon
nocturne galleon
limpid reef
pliant siren
#

Not really, it depends how much of it is isolated and from scratch, and how the build can take use of multiple CPUs or even agents.

limpid reef
# pliant siren Not really, it depends how much of it is isolated and from scratch, and how the ...

Well that's part of it for sure - actual development and coding can vary so much depending on what framework you choose to work with and your experience. I'm talking about the part clients can actually see themselves, and thus the part that usually holds up website development the most (usually because clients can be... difficult? if not managed properly) - the design & actual functionality of a website. But yeah, it's hard to say without knowing what this project actually is.

nocturne galleon
limpid reef
nocturne galleon
midnight wind
#

I use nodejs, but that's a low level backend server

#

Probably not what you need

pliant siren
#

all of this depends on other technologies you choose, and requirements.
I'm deploying a lot of my own stuff to a k3s cluster of node containers.

limpid reef
midnight wind
limpid reef
#

For clients that don't need the niceties of an easy-to-use familiar Content Management System, I tend to stick with Laravel + some form of SQL database (depends on the server environment) if PHP is needed, OR just plain HTML5+CSS3, usually using whatever flavor of Bootstrap or Boilerplate is current.

pliant siren
#

don't suppose anyone here can tell me this: I have a set of labels I want to print 4-per-page (or as many per page as fit, but in this case it's 4) - is there a CSS directive I can use to only apply say margin-left for elements that are not on a new row when they flow over using display: inline-block ?

marsh oasis
#

ive been trying to send a post request to a site and then sending it back to me.
the site receives the request but when i log the thing, it returns as undefined....

#

heres the code:

        const {body} = await got.post('https://distop.xyz/api/queue', {
        json: {
            secret: "token here"
        },
        responseType: 'json'
    });

    console.log("Succesfully sent to Distop heres what you recieved: " + body.json);
    }}
#

im using the got package to do this

hollow basalt
#

send the whole thing

#

cause right now

#

looks like the body should be undefined

static wadi
#

yeah body is undefined outside of where ever you do the post

pliant siren
#

withing knowing more about the libraries involved, I would generally expect that data to be passed via a callback or in to a function. I don't know what you're using but generally they're written to be async and not bother to return data from a call synchronously.

bleak breach
#

@marsh oasis try running const result = await got... rather than {body} because by doing so you’re assuming two things:

  1. The return of the function will be an object
  2. If an object is returned it will contain the property body

You may find that there is an error and it’s in a different field other than body.

marsh oasis
#

i have fixed it

#

i used axios and then i had to decode the json

#

lel

cinder kraken
#

so, i'm ready to burn my pc. i have a relatively simple piece of code in C that almost does it, but not quite

char payload[2048];
fread(payload, 2048, 1, fp);
a.cpuid = payload[12] + (payload[13] << 8);
a.year = payload[8] + (payload[9] << 8);

now, payload[12] = 0x81 and payload[13] = 0x06, but i get as final value a.cpuid = 0x0581
same thing happens with a.year = 0x1899, where i have payload[9] = 19 and payload[8] = 99
what am i missing here? pls ping

#

nvm, this went as a rubber duck debugging session
set payload to unsigned char and solved it right away linux

obtuse night
#

not sure if anyone will be able to answer, but i am starting a new job next month and am beginning to create my own open source application (in my own time). If i work on this by myself, outside work hours, am i correct in thinking my employer has no claim to having the application to themselves? If this doesnt make sense, please let me know and ill try and explain it better

vast echo
#

ianal but it would depend on the contract you sign

spring pond
#

^

#

read your contract very carefully

vast echo
#

and depending on the state/country, the contract may not be enforceable if it does claim copyright for side projects

#

but it definitely is in some places

#

I also wouldn't recommend using a work laptop or anything owned by your employer to do side projects regardless of your contract

obtuse night
#

thank you both. my current employer is very open about allowing personal projects but the new company is less upfront about it

shy helm
#

Adding on, if your side projects are mostly unrelated to your direct work at your company, and you make them on your own personal time and devices, you're probably pretty safe

#

Read your contract carefully, google the question for your specific area

bleak breach
#

@obtuse night You need to inform your employer of the project, and document the hours you work on the personal project if you're worried about them claiming it. If the project is in any way influenced by your day-to-day job they may have a claim depending on your contract. So the contract really is the key.

obtuse night
#

it could be seen as being influenced by current projects as my role is a bespoke software developer, just working on whatever other companies need. some time it will be finance based systems, then the next may be cybersecurity based. tbh, they probably wont even bother but it's just something i dont want to be worrying about. Thanks

pliant siren
#

Is there a chance anyone here uses Argo for kubernetes deploymetns?

bleak breach
#

No, but I've been really wanting to try it

vestal glen
#

there is a chance, yes. However I'm not sure what the value of the chance is.

pliant siren
#

The genera issue is I'm trying to define a DestinationRule but argo is not picking it up from the repo. My best guess is there's an error in the yaml but it doesn't tell me of anything like that.

umbral saffron
#

can someone help me with 3d modeling

nocturne galleon
#

Not sure if this goes here but...

So I added a helicopter into my FX server for FiveM and whenever I spawn it in I can't control it, like WSAD doesn't do anything. It only does it with add-on vehicles so... Any fixes?

I've had 2 developers look through the meta files and they didn't see anything so..

finite coyote
#

I'm looking for a way to do something in Python and im not sure how to, so any help is appreciated:
Say I have a .py script, where i have a list with 3 values, e.g values = [1.01 3.14 218].
When I execute the script, the program optimizes the values of this list and changes them over time, so say for example its now values = [1.21 4.15 201] after running the .py file.

Is there a way to modify the original list after running the script, so that the next time I run it it will start from values = [1.21 4.15 201]?

I mean apart from saving it to a .txt file, I kind of want to avoid the hassle of that.

spring pond
finite coyote
#

thanks!

fluid kernel
#

self-modifying python is way more hassle and complexity.

#

besides, you're still reading and writing a file, it's just also the file you are running.

finite coyote
#

I guess you're right, I thought there would be an easier way to just modify the value of a variable after running the script

fluid kernel
#
import json

def load_list():
    with open('list.json', 'r') as f:
        return json.load(f)

def save_list(list_to_save):
    with open('list.json', 'w') as f:
        json.dump(list_to_save, f)

vals = load_list()

# script here that uses, and perhaps modifies the values

save_list(vals)
#

not run it, but something like that is fairly simple.

finite coyote
#

Yep that seems easy enough, thanks a lot for the help!

midnight wind
warm sleet
#

@midnight wind two sensors and a motor

#

the sensors tell the controller if door is fully opened or closed

#

control motor accordingly

midnight wind
#

I could just wire directly into the door controller

warm sleet
#

oh it has one?

#

kk

#

@midnight wind I've tapped telemetry into industrial equipment before

#

using opto isolators

#

@midnight wind how does the door controller get its signal?

#

remote?

midnight wind
#

I would need to look into it more closely, but there are two parts. The outdoor side is wireless, while inside there is just basically a button that you can use to open/close the door

#

I was thinking I could just tap into the button

pliant siren
#

hang on, that's the other problem i have. For the garage door I need to listen for a rest call and send data to the output pins.

midnight wind
restive jungle
#

Does anybody have an insight in X11? I have a problem with querying keystrokes and non us keyboards returning wrong keys. Does X11 translate keycodes into different layouts? E.g. ALTGR+Q returns 2 instead of L-CONTROL+R-ALT+Q

#

As a char that would be '@'. I suppose this is due to the US-keyboard layout putting '@' on SHIFT+2

red jolt
#

Anyone knows any good resource for learning concurrency in C++?

hollow basalt
#

real life

sacred pumice
#

@restive jungle I think X11 does exactly what you say actually, afaik X11 takes in key codes, and spits out characters based on the current keymap, which can be set with setxkbmap, but that's about as much as I know on the subject.

warm sleet
#

@restive jungle keyboard and input stuff is all in /dev

#

@restive jungle keycodes to scancodes are part of X, and shortcuts are handled by the DE

#

X gets its input through /dev/tty

#
 crystal@watomat  /dev/input  sudo evtest            
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:    Lid Switch
/dev/input/event1:    Sleep Button
/dev/input/event2:    Power Button
/dev/input/event3:    AT Translated Set 2 keyboard
/dev/input/event4:    Video Bus
/dev/input/event5:    Video Bus
/dev/input/event6:    ETPS/2 Elantech Touchpad
/dev/input/event7:    HDA Intel HDMI HDMI/DP,pcm=3
/dev/input/event8:    HDA Intel HDMI HDMI/DP,pcm=7
/dev/input/event9:    HDA Intel HDMI HDMI/DP,pcm=8
/dev/input/event10:    USBest Technology SiS HID Touch Controller
/dev/input/event11:    HDA Intel PCH Headphone
/dev/input/event12:    USB2.0 VGA UVC WebCam
/dev/input/event13:    Asus WMI hotkeys
Select the device event number [0-13]: 
#

those are the actual kernel devices that represent your inputs from all your HID's

#

so in my case, keyboard would be /dev/input/event3

#

keyboard mapping should be handled by udev

#

not all distros use udev though

#

keyboard events in X11 are handled by xev

#

I think you can use xbindkeys for that

cloud knot
#

Free tier, nice

midnight wind
#

I like to stay away from cf

warm sleet
#

same

#

there are plenty of tools to manage pages

pliant siren
#

Okay, I need to find a discord server that's crowded with seasoned devs, in this case preferably javascript/ecmascript devs.

#

I have some data/database design decisions to make 😄

fallen cedar
#

i tried sharing another discord server link, which is apparently not allowed (got scolded by LMG Warship 🙂 even though i skimmed the rules before i did so)

anyways, try asking here, maybe someone can help

#

so i think my discord link was removed because of rule #3

  1. No spam
    This includes server invites, mass mentions, caps, screamers, and link spam.

While I agree with the intent, I wouldn't qualify this particular case as "spam"

pliant siren
#

ah yes, I didn't even think about that when I mentioned it.

ivory bear
# midnight wind I like to stay away from cf

can I know the reasoning behind it?
or was it purely because it just doesn't suit you?

because sometimes other people might not know if some service is actually not good to use and that there's actual better options etc, I'm sure others want to know that better options as well if cf is not good

sacred pumice
#

I imagine linking other discords is automatically removed, this server probably gets a lot of spam

#

as for finding seasoned devs, I still think IRC/Freenode is better for that, I've always had a trouble finding really developer centric and busy channels on Discord.

midnight wind
#

I just recently moved my dns nameservers from cf to he.net

shy helm
midnight wind
#

Hmm, I have had multuple instances of it being down for a min or so

#

at least dns

shy helm
#

Ah, well, I definitely wouldn’t say they have bad up time

midnight wind
#

Yeah, it's not bad

nocturne galleon
#

Cloudfare is okay, but they like to force their content hosting on you instead of running straight DNS. Hurricane Electric gives you regular DNS... personally Id go with HE any day over cloudfare. They've been called the "used car lot" of providers before.

#

the CF dns is more like a CDN.

#

Looks like this might be in the wrong channel though. Probably better in maybe a networking channel or something?

shy helm
#

Eh, it’s fine in dev

shy helm
nocturne galleon
#

I agree. I have nothing against them, I've used 1.1.1.1 at home for a long time.

midnight wind
#

I use 1.1.1.1, 8.8.8.8, and 9.9.9.9 at home

#

router then caches

nocturne galleon
#

Hurricane electric just offers more control for those who are comfortable with it. They would be my choice first for that reason, but the family filters on CloudFare come in handy.

#

Funny I just set a router yesterday for the same combo

#

Adding HE actually as a 4th.

midnight wind
#

what's he's public dns server?

#

nevermind, got it

nocturne galleon
#

Well, kind of actuallyy. I used HE and CF for the IPv6. I'll tell you hang on. Its not as memorable off the top of my head

#

Looks like you can google faster than me. Lol.

#

Thats the way to go though, diversifying the DNS protects you from a lot of the tomfoolery.

#

I'm learning c++ at school and when I finish it, I want to make my first Windows program.. I have this idea, all of the games from all platforms (Steam, Epic, GOG, Origin, etc.) are all in one library, categorized by Platform, Personal Folders, Genre, etc

#

Is this a good idea?

#

I'm open to criticism

midnight wind
#

too complex, start with something simpler imo

nocturne galleon
#

It would be awesome... but the people that own the copyrights woudn't let it happen.

#

What do you mean wouldn't let it happen?

midnight wind
#

well, locally run it should be fine

crystal tundra
#

way too complex, kinda grey legality

nocturne galleon
#

no no, just a launcher

#

nothing else

midnight wind
#

yeah, just a launcher, you still would need Steam, Epic, etc installed

crystal tundra
#

still pretty complex, mess around with some command line programs a bit

nocturne galleon
#

It shows what you have installed, updates, play time and it would be synced via APIs

crystal tundra
#

u need a pretty good understanding of the language before u can make actual good apps

nocturne galleon
#

yes you would need everything else but you can check what you have all in this program

#

I know I just in the future when i perfect my craft

#

I want to know if this is a good idea

crystal tundra
#

what do you mean by good idea

nocturne galleon
#

Kodi just released a plugin actually similar to what you are discussing.

crystal tundra
#

there are lots of good ideas

nocturne galleon
#

Its not real though... just a concept piece let me see if I can find a link

nocturne galleon
#

it would be free obvs

#

with donations as optional to continue development

crystal tundra
nocturne galleon
#

yup i figured

#

but you, the consumer, do you see a use in it?

crystal tundra
#

like it sounds like a unique idea, but personally im fine using my steam library separately to my epic games library

nocturne galleon
#

as a gamer

crystal tundra
#

other people might think differently, but i think you should maybe ask in a gaming channel

#

rather than in a channel of devs

nocturne galleon
#

Discord is a good way to do that... lol. For that reason, I'll attached just this gif. Its probably got some ick attached to it so wouldn't go to Github and procure the binary if you like your computer. Not trying to start a bot-pandemic. Since it isn't real it does work in the Dev chat (as aproof of concept)

#

It would be an awesome idea though if it was a real thing.

spring pond
hollow basalt
#

yea

spring pond
#

https://github.com/JosefNemec/Playnite/ its open source if you want to look at the code, its in C#

GitHub

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games. - JosefNemec/Playnite

nocturne galleon
#

Nice!

#

Looking at it now

#

I'm running Arch... the code is working? I'll give it a test drive if its ready...

#

Ooops give me a few I'm coming off of a fresh reinstall and I don't have a complier installed. I'm impressed from what I see thus far. I'll circle back.

warm sleet
#

@nocturne galleon lutris is another big one

#
nocturne galleon
#

I have Lutris already actually... not a big gamer so I havent played with it much

warm sleet
#

Lutris also has scripts for configuring proton with some windows only titles

#

for using DXVK

nocturne galleon
#

Not famililar at all with DXVK. I'm assuming its a compatablity layer? Wine for DirectX or something like it?

#

Forgive the NOOB question...

warm sleet
#

Its a DirectX implementation with Vulcan, another graphics API

#

Allows windows only games (DirectX is windows only) to run on linux systems with WINE

#

Valve actually forked WINE and added DXVK to it, calling it "Proton"

#

Proton is bundled with Steam for linux

nocturne galleon
#

That was my next question though was what that meant for playing games on Linux. I always hear about Linux gaming being terrible but from what I've seen Windows games were playable through WINE. Good to know thats true.

#

I hardly play tetris on my phone, let alone PC games... lol. Just learning.

warm sleet
#

the performance issue is mostly with newer games

nocturne galleon
#

Drivers?

warm sleet
#

since a lot of optimizations for games are done in the graphics drivers

#

and drivers, are a major issue with nvidia specifically

#

amd is not as bad

#

Games on DXVK don't get to enjoy the optimizations done on windows sytems

nocturne galleon
#

I know how the big companies are... for sure. NVidia requires a kernel mod, right? That puts it out of the way of most casual users for sure.

warm sleet
#

Because they run directX as Vulcan

#

@nocturne galleon yeah so in linux, its kinda 'taboo' and bad practice to run user-space drivers in the kernel

#

drivers shouldn't live outside of the kernel source tree

#

but with nvidia they do

#

So they use DKMS to load a kernel module afterwards

#

It works, and its fine

#

but the issue is that the drivers are not optimized to the degree the rest of the kernel is

#

because nvidia does not even have technical documentation on how their hardware works

#

They sell us chips, as a black box, with a binary blob to use it

nocturne galleon
#

Got it... makes sense. I got into linux after doing windows IT for a long time... so still just learning. Most of what I do know comes from the distro of Linux I finally settled on... its called Sailent OS... its just Arch though. Thats dissapointing that NVidia can't pull their head out of their butt like that

warm sleet
#

nvidia is anti technology

nocturne galleon
#

I know Broadcom did it with WLAN chips too

warm sleet
#

they lock down features on their consumer cards

#

so they can sell more quadros

nocturne galleon
#

Anti-competition is more like it... wouldn't want the other guys to see their code. or at least thats part of it I'm sure.

#

Yep.

warm sleet
#

anti technology

#

not anti competition

#

look

#

their hardware is fine

#

but we can't use it if we don't have technical documentation on it

#

without those documents, community cannot build drivers

#

they have open source drivers for nvidia: nouveau

#

but they suck dick. because they have been built without insider knowledge

nocturne galleon
#

I have certainly seen plenty of that in other fields so I totally get it. I guess thats why I say anti-competition... but thats just a poor choice of words. They just aren't willing to invest as they should becuase of the market share. I understand their take, but Linux is EVERYWHERE anymore, and really, it has been.

#

They're only hurting their own pocketbook at the end of the day... the embedded market is already HUGE asis.

warm sleet
#

its the exception rather than the rule

#

nvidia is one of the very few companies that behaves like this

#

Linus Torvalds did this ^

nocturne galleon
#

I saw that tjust the other day... lol

#

just**

warm sleet
#

in a statement on nvidia

#

They haven't changed since

#

this video is about 10 years old

#

thankfully, AMD is now back in the competition

nocturne galleon
#

No shit... wow. So thats why AMD is so well regarded in the linux circles.

warm sleet
#

and the AMDGPU drivers are upstreamed in the kernel now

#

Vega64 under linux was one of the first cards

#

those worked like a charm

spring pond
#

i really want to transition to linux 100% sometime but the lack of good game/nvidia support is whats holding me back at this point

nocturne galleon
#

Haha I can't type fast enough. That makes sense. They weren't very good cards under Windows though, right?

warm sleet
#

and why would nvidia go opensource lmao

#

they can cash in that microsoft money as bribes

nocturne galleon
#

I vaguely rememeber that.

warm sleet
#

lock down nvidia to windows only, games will have to pay microsoft for windows

#

Its same the same way microsoft made sure users are stuck to office 365

#

you give the apple people "Office for mac"

#

and linux people can go suck a big one

spring pond
#

i have heard some rumors (key word there) that ms may eventually transition from NT to the linux kernel and bring driver support with it, but even if they are eventually gonna do that itll take forever

warm sleet
#

@spring pond you don't have to "bring driver support"

#

since linux is 80% drivers

#

Windows is legacy technology

nocturne galleon
#

I'm on Arch with Plasma right now... you would think it IS windows honestly. Drivers is the only thing missing

warm sleet
#

What drivers are you missing lmao

#

excluding nvidia

#

everything is in the kernel

spring pond
#

for me intel wifi doesnt work on linux at all

#

completely broken

warm sleet
#

good 'ol propietary drivers

#

yeah

#

some wifi chipsets on laptops in the past were full of bugs

#

but its been years since that was an issue

nocturne galleon
#

Ture

#

True

warm sleet
#

@spring pond quite a lot of laptops do support the replacing of wireless chips

#

they are m.2 keyed

#

getting a replacement module costs like 20 bucks

nocturne galleon
#

Check out SalientOS... its bootable off a flash drive. Tjats tje screenshot I just sent.

spring pond
#

i have a desktop mb with it built in so sadly thats not an option

nocturne galleon
#

I need to buy a better keyboard... lol.

warm sleet
#

They look like this ^

spring pond
#

but at this point i use my slower ethernet when i do use linux so it doesnt matter to much

warm sleet
#

You just unplug the antenna wires

#

and plug them into this ^

nocturne galleon
#

There are PCIE cards or USB dongles as well

spring pond
#

well my current use case for my linux install is going to be going away in a week or two so im not too worried

#

if i was using it longer-term i would invest in a pcie card

warm sleet
#

if it was long-term

#

I'd ditch wireless entirely

#

and use a cable like everyone else

spring pond
#

due to my living situation thats not an option

warm sleet
#

¯_(ツ)_/¯

spring pond
#

i would 100% do that if i could but im not allowed

nocturne galleon
#

Yeah probably best you don't go plugging anything in. I understand that.

#

Wireless is much, much improved over the way it used to be. I only plug in anymore when its safe, and I'm protected with a shield.

#

A Firewall I mean.

#

Thinking of nVidia I guess... lol.

#

Its really just a matter of preference for sure.

#

I used Windows for a long time. I'm still running my crazy mix of big tech. Google, Apple, Microsoft, all working on Linux now. Just attempting to learn as much as I can. Its amazing how well things can work together with a little bit of elbow grease.

#

Not for the faint of heart though, for sure. Thats where the ecosystems Like Apple 1 or Google 1 work out well.

#

Heck you can make Juniper interface with Cisco just fine if you take the time, but time is precious to most people, so having someone else simplify it works for most. I guess I like doing things the hard way... lol.

#

Its important for Silicon Valley to understand how scary and dangerous it could get if that balance doesn't exist. Its almost like they forgot what Sci-Fi has already shown us.

warm sleet
#

mikrotik all the way

nocturne galleon
#

I want to maintain a bit of control for that reason mostly. The inmates running the asylum isn't too far off for us.

#

I feel like Mikrotik is just silly difficult though. It can still be a convenient product. PFSense is a good example there.

warm sleet
#

mikrotik is superior to pfsense, in terms of features and the hardware

nocturne galleon
#

I love Mikrotik stuff... but the learning curve is crazy sharp.

warm sleet
#

yeah its a bit steep at first

nocturne galleon
#

Its running LINUX

warm sleet
#

yeah but heavily modified

#

they use their own drivers for lots of things

nocturne galleon
#

As is PFSense... modified BSD.

warm sleet
#

pfsense has the issue that it doesnt integrate with hardware to the same degree

#

a mikrotik router that uses 25 watts can push 10gbit/s

#

pfsense, by the time you've spent 3x as much money, for 1/4th of the bandwidth

nocturne galleon
#

What is OSX? BSD. What is Linux? BSD. I don't disagree that in a commercial setting it makes since to go with the packaged product... but for me its about doing it for the right reasons. Time IS money. You don't see much Mikrotik in commercial installs for a reason... it would take 900 hours for the average guy to learn it at scale. Dell will sell you something preconfigured. And thats OK. Thats where we should focus on differentiating ourselves.

warm sleet
#

what

#

I don't hire companies to do my network installs

#

I install networks myself

#

and I find mikrotik much easier to use, than other enterprise platforms such as cisco

#

also, linux is not BSD.

#

where are you pulling that from??

nocturne galleon
#

I'm not trying to create an issue, certainly not. Its just about the right product for the job.

warm sleet
#

OSX has their own kernel

#

XNU

nocturne galleon
#

Its a derivitive.... thats all I meant.

warm sleet
#

@nocturne galleon unless you do carrier level exchanges, mikrotik is perfectly fine

#

they serve the lower to middle segment

#

up to ~80gbit/s

nocturne galleon
#

Its origins is in the same place. I never meant its exactly the same.

warm sleet
#

but they have all the features you'd want in an enterprise setting

nocturne galleon
#

I agree... and I've used it there.

#

I guess what I'm trying to say is the competetion is GOOD... we don't want to be TOO compatable becuase then we turn into a Staney Kubrick flick. Thats all.

warm sleet
#

mikrotik mainly competes with other lower end brands

#

but they completely stomp on tplink, asus, dlink, netgear, and the likes

nocturne galleon
#

Absolutely. I have had some issues with build quality with them.... but in general they have been very good for me. Have do done any kind of training with Mikrotik?

#

I'm thinking about getting some kind of cert and that was one idea on my radar was the Mikrotik stuff.

#

Just becuase its not that common and I'd like to diversify myself that way.

warm sleet
#

You can get training for mikrotik, but you can self teach

#

lots of infos on the wiki

#

I gotta go rn

#

ill ttyl

nocturne galleon
#

Oh absolutly yes... I just meant for the cert.

#

Ok Take care!

#

Sometimes... the truth hurts. But you can't argue with it. Its for our children's welfare... not just our pocketbooks today.

#

My point of view at least.

#

🙂

fallen cedar
#

on the unified launcher idea someone mentioned earlier

  • yes, it's a good idea
  • it's complex if you're just learning c++
  • there are already solutions for this (this shouldn't discourage you though)
rotund plover
#

Someone into assembly?

midnight wind
#

@rotund plover I know someone who is but not in this server

#

They made their own os from scratch in assembly

#

I'll send an invite to a server they are in ( it's a flight sim server) if you are interested

rotund plover
midnight wind
#

to make games or the underlying tech behind it

#

to make games the scripting engine uses lua

lunar quail
#

how is lua, honestly? I've not done anything with it.

#

I'd really like to pick up rust. Some of the small stuff I've written in C I'd like to rewrite in rust.

midnight wind
#

I never did anything big with it, just some flightsim scripting

hollow basalt
#

Why are you wondering why he's wondering if anyone knows assembly

rotund plover
#

Why not wondering? A lot of people not using assembly daily and don't know how to program in it.

hollow basalt
#

nothing is truly weird

#

it's just viewed from a different perspective

nocturne galleon
#

wrong

#

wrong again

#

you do mean like lda, sta, jne type assembly?

nocturne galleon
#

don't use go, didn't know it was so integrated

regal geyser
#

Anyone know if the LMG Warship bot was developed in house at LMG?

midnight wind
#

probobly

#

not THAT hard to make a bot

regal geyser
#

Ah got it. I wasn't sure how many people at LMG were Devs

shy helm
#

Yeah warship is built by the discord admin, floatplane is a separate company from LMG btw

fervent orbitBOT
#

LMG Warship is a Discordian moderation bot designed with creators and large-scale Discords in mind; inspired by the works of b1nzy#0852.

❯ Version

3.2-088065a

❯ Users

95,284

❯ Uptime

21h:45m

deft sigil
#

anyone an idea on howto fix this , in a way that navigation up the tree works again? , python interpreter has no problem running it but pycharm is complaining , its about the no ref in init popup. (ps all the options it gives to fix it just remove the warning but dont solve the navigation/(and less important codecompletition) problem)

#

i have already tried reinstalling pycharm, invalidate caches a couple times, reset to default settings aslwell, adding the funcition to init just links to that function but not to the actual mido function. and yes its python2.7, but its wat Live10's framework still uses. so stuck with it

umbral saffron
#

Ok so if I have a 40 pin screen can I plug it into an extension cable and connect that to an rpi 0 wh

#

And if so

#

How

shadow furnace
#

coding in a nutshell.

sacred pumice
#

I keep checking back in here to see if there's something I can help with, work as a Python/Django dev, I read that and I'm like "Yay, my time to shine" and then he's like "I fixed it" 😦

#

@deft sigil in weird circumstances where the linter complains but has no reason to, you can add #noqa to the end of the line to suppress the warning.

warm sleet
#

@deft sigil make sure pycharm is configured to use the same interpreter as your system

#

pycharm has its own interpreter, you can also tell it to use the one on your system, as well as venv