#development
1 messages ยท Page 50 of 1
describe original problem
trying to find the modulename for this function
@nocturne galleon ya gotta help us help you. We have zero context for anything you are trying to do
@nocturne galleon people can do their jobs when they know what they're working with exactly
we used a generator to create this function
uh huh
took you long enough to come out and say that
considering you spilled that when you posted your screenshot, saying init_cheat
im not going to help you with that, and i doubt anyone else will either
if you have specific questions about how to do something specific, do ask
Also, I donโt know what the specific policy is on writing game cheats, but illegal activity is obviously a no-no. And i think trying to draw that line with a game cheat is pretty difficult.
its probably against TOS of the game, and therefor illegal
well thankfully im not the one doing it

it may be against the game terms but that's not illegal
unless you are working on a game which publicly let's download its sdk to build "expansions"
If some was to" sell the cheat or something and make money that might be copyright infrignment"
but other than that, if one were to buy and paid for the game which they are liscensing and so unless they break the terms of that liscense which this probably is its not really illegal
its about as illegal as modifying your car or something
i dont think theres any law federal or state outlawing it
the terms of that license probably have that you cannot modify the game in such a way that is provides a benefit to you that could be detrimental to other players or give you a significant advantage. aka, cheating
much like how you can modify you car, except the emissions system, which needs to match OEM spec
Not about law, but if you make enough money with that, you'll get sued
in that case, you'd just be jeprodising your licenses integrity
thus
not illegal
just against TOS
yup, and then you are illegally using the software
not really if someone was to buy it
breaking TOS is technically illegal, but its illegal in a very different way than other laws
you're violating the terms of the license
but beyond that theres not mcuh they can do besides ban that individual
its illegal as in, its legally enforceable against you if you break it
unless they were doign it on a massive scale intentionally to hurt that companies profits or something
why are we even discussing this
idfk
hes the one who brought it up
Bottom line. Do it just to learn something. Don't resell it. Don't make a mess about it. The end
never did I say it was for money reasons
If some was to" sell the cheat or something and make money that might be copyright infrignment"
@nocturne galleon Probably misread now that I saw it, but still...
thats not me saying im using it for that reason lol
thats an example of if what the person was doing was illegal for an initial purpose
yes, you misread that lol
Aannndd we come back to where I said it would be a difficult line to draw so help with writing cheats is likely a no-no here
anyone know to setup homepage in word press
what does that even mean?
@hasty trail sure shoot whats bugging you
So does anyone know how to fix a "write-only channel" on discord?
change the permissions?
@glad elm channel settings
Anyone here good with Java and can assist?
Anyone here good with Java and can assist?
@plain cosmos Whats up?
I'm confused, with class design, so I have to analyse a dataset and create basic class design and am not sure if I done it right :S
Ok, can you elaborate a bit? ๐
I have to create a java console application, with crime data, that lets me search for appropriate data with the right condition, to even touch the code I have to be able to create classes what I don't get. if that makes sence
I have decided that I will upload the provided CSV data into a arraylist, then I have to construct and algorithm to be able to pull this data from the memory. Yet am not able to get there if I don't understand how to design a class appropriately.
what don't you understand about a class?
How do you decide what data goes in a specific class? how do you allocate it, I understand the "pizza" idea so you have pizza, add cheese, add peperoni etc. yet am not able to analyse my dataset and be able to appropriately decide. I feel so stupid right now.
trial and error, and then later on it's experience
you can structure it in any way you'd like
and if that doesn't work out. adjust, fix, or even restart
design doesn't set anything in stone. just draw out some boxes as somewhere to start
and then fill in details of what you need the program to do
So this is what i have come up with, when looking at my dataset, yet how do I know that it's even remotely correct!
you really can't evaluate a design without understanding the purpose of the design
I'll give you an example
you might want to structure your stuff by LSOA code if you happen to always look it up that way first. in which case you'd want a 3rd box to represent that
not sure if that makes sense because I have no idea what that is
The purpose is to be able to search for data with a specific condition! for example "For a given crime type and LSOA, display details of all crimes, for which you have data."
sure and that's what should influence the design
you can generically structure it or you can structure it to suit your needs. that's up to you
I mean you could use a class to represent each row in the CSV. does it make it any harder or easier to do anything? no clue. though the idea is to keep stuff that should go together... together
one thing that stands out that doesn't in your CrimeData is SEP btw
That's the hard part what goes together what does not! I can't seem to understand that. The SEP is intended to be as separator as all the data in CSV is separated by a comma. Otherwise it will read it as one long line! as much as I have read.
Out of curiosity, is this for a highschool/intro level CS course?
I don't particularly mind giving advice even for school, FWIW, just wondering what level to target my explanation to ๐
Yes it is, before someone shoots me, am not asking anyone to do it for me. I'm just confused and my teacher are ignoring my emails.
Second year of Uni! Computer Security / Algorithm and data structures.
Gotcha, no worries, anyone who tells you they did all their school work in CS by themselves is a liar ๐
๐ I did
lol
solo project for days if I can
just mash stuff together in boxes, and see how various scenarios go. the rest is just experience and patterns
But ye, @plain cosmos if this is for an algo/data struct class, is this more for the data structure part or the algo part? Like, do they expect you to have exceeding performant code?
To me, this seems more like a DS question, but just want to confirm
just mash stuff together in boxes, and see how various scenarios go. the rest is just experience and patterns
@elder ivy Some people in our industry take this too literally, and then you have spaghetti ๐
I mean you could reparse the CSV for each function that you expose and extract/compute what you need
๐
Yeah, well if this is like a space efficiency problem you would probably have to do that lol
Or if it's big data lol
agree with avoiding spaghetti but that's more structure like a tree vs a graph. then again it might be a fully connected graph lol
๐ข I know
yeah .-.
People b lay z
I have done all my assignment myself, even if i don't get the max grade I just want to understand so i actually know what am doing
this is what I have to do
In full
If anyone is free and could explain more in detail I would really appreciate it, I can pop into a voice channel
@elder ivy high cohesion low coupling they said...
perfect
Real UML diagram from a project I'm doin rn
lmfao
(automatically generated of course)
I don't even want to see the diagram of the stuff I'm working on lol
let's just say one library is written in Java and transpiled to JS
I--that sounds atrocious
That diagram ๐ฎ made me jump, and than there's me with visio ๐
such an embarrassment
Is this the right place to post a programming question?
Any linux guru here?
I have a bash script but it adds like %0D at the end of my "file"
@nimble drum if you dont find anyone here, I found the people in the PCMR discord linux channel quite helpful
#!/bin/bash
DASHCAM_IP='192.168.207.143'
for file in $(curl http://"${DASHCAM_IP}"/blackvue_vod.cgi | sed 's/^n://' | sed 's/,s:1000000//')
do
wget http://"${DASHCAM_IP}${file}"
done
Like throws me
And indeed, if I go to the url with the %0D at the end, the request is invalid
well that worked lol
Pretty Good Privacy Protocol email.hunter.jager@gmail.com Introduction Currently on the internet free speech is closing due to censorship. This document will contain a full set of instructions to bypass this censorship. In no ways do I support any criminal activity caused by...
private void button3_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("The url")
}
How to i fix this? im using visual studio 2019. When i launch the progam i get an error
Also im new to scripting
Did you miss a semi-colon
peeps, what would be the best and most simples data structure for creating a grade book? for me to be able to search by lastname?
I'm looking at merge sort, but what do you think?
@plain cosmos in what language? and is this for a production system or a school assignment?
Uni / java
I am thinking that "merge sort" is not a data structure. Usually, tabular data gets stored in multi-indexed collections. Here is my take:
- Very simple, production-grade : a directory, like AD or LDAP. I mean, that is what you wish to implement, right?
- Simple : a database table, relational, object, graph, whatever fits your need the best;
- Medium: multiple Map-like collections, B-trees or similar if possible. One per "index", that is a key from which you can filter and sort your contents. Read from the most appropriate, Write to all of them. A wink to those who know the implications of that solution.
that was my thought as well; get a database that'll take care of indexing the data for you and then just query it. I've never used AD or LDAP as a database before so I wouldn't have any hints there, but as far as databases are concerned, any RDBMS would work just fine, if you already know how your data will be accessed you could also go NoSQL with a column-wide store like Cassandra or DynamoDB
if you end implementing the data struct yourself, B-trees are a must as @foggy ginkgo mentioned, also worth looking into RB-trees (self-balancing b-trees) I know they're often used in databases
Thank @foggy ginkgo @neon quiver for the in-depth explanation ๐
anyone in need for own google sheets ? https://github.com/mengshukeji/Luckysheet ๐
can anyone help me with my discord bot i keep getting an error code
dont mind my incredible edit skills
const Discord = require('discord.js');
const client = new Discord.Client();
const prefix = '!';
client.once('ready', () => {
console.log('Minum50bot is online!');
});
client.on('message', message =>{
if(!message.content.startsWith(prefix) || message.author.bot ) return;
const args = message.content.slice(prefix.length).split(" ");
const command = args.shift().toLowerCase();
if(command === 'hoi'){;
message.channel.send('Hallo!');
break;
}
};
client.login('and ofcourse the token here');
this is all i have
shouldn't you be running that with node?
yup, WSH certainly can't run node scripts ๐
shouldn't you be running that with node?
@deep scarab i fixed it by starting bot with node . but still thanks
SyntaxError: await is only valid in async function
[90m at wrapSafe (internal/modules/cjs/loader.js:1053:16)[39m
[90m at Module._compile (internal/modules/cjs/loader.js:1101:27)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)[39m
[90m at Module.load (internal/modules/cjs/loader.js:985:32)[39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:878:14)[39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)[39m
[90m at internal/main/run_main_module.js:17:47[39m
what does this exactly mean?
im basicly copy pasting code from the internet
to get music bot to work
const songInfo = await ytdl.getInfo(result);
const song = {
title: songInfo.title,
url: songInfo.video_url
this code has await in it but it isnt a function i think
try {
var connection = await voiceChannel.join();
queueContruct.connection = connection;
play(message.guild, queueContruct.songs[0]);
} catch (err) {
console.log(err);
queue.delete(message.guild.id);
return message.channel.send(err);
}
found this one
const res = await ytsr(msg,options);
result = await res.items[0].link;
so if anyone knows how it works please say it
its my first time actually coding a discord bot
okay the async error is gone
now i have an const errow
error*
I do not believe it is wise to develop a bot by copy-pasting code from the Internet. Your are potentially putting yourself and your users at risk.
I recommend reading JavaScript and Node tutorials for the moment.
i did
and at one tutorial i got 5 errors
why is it dangerous tho?
also only the code for the music is copy pasted
i did the commands i have rn by myself
What if some piece of code seemingly fixes your issue but writes exceedingly to your file system or strangely uses up too much CPU? What if some recommended dependency ends up sending your server logs to someone else's property? Copying code without fully understanding its full extent may subject you and your users to less pleasant surprises.
oh
then imma remove the code and try getting music to work later
as i' ve been really struggeling with this for the past hour
Let's start simple, then ;)
Do you have some kind of Code Versioning System in place somewhere?
I meant Git or SVN ๐
the visual studio thing i mean
oh
well i dont know what that means lol
i just started coding yesterday
and when my bot said hi back to me i felt genius so thats basicly all i know
Oh! Then welcome to the world of development! Every piece of code will be difficult but equally satisfying once complete ๐
๐
i know it was 3am when i made my bot say hello back to me lol
so i was happy
that i finally could rest
First, I would like to introduce you to what you would typically learn if you were a backend developer. The skills on the following web page are equivalent to those you would need to grow your bot today and in the future. Yes, developing is not just about code!
https://roadmap.sh/backend
i know im going to study software and developing ๐
but rn i only want to know how code works and im not seeking to actually learn alot at the moment
so what i mean with that i want to make a discord bot that can do a few little things
but i think it playing music is hard to do as i expect /kick /ban to be harder
i already know how permissions works
and how he can respond to things
Actually, nothing is too difficult once you know how it operates behind the scenes. Keep the link somewhere safe, you will need it someday ;)
I suggest prioritizing your features by difficulty and skimming JavaScript docs in search for the best way to implement them. For instance, right now, I would read everything there is about const , let and var and about async/await. You will need these concepts very soon.
Once you are done with these, you will need Promise and then fetch.
So basicly i need to know what a code does
Bull's-eye!
Thanks but am i gonna need all that for a discord music bot? Or do you have any good suggestions on how to make it?
Why would you like to create your own music bot? I mean, what is the reason? Is it for the challenge of it or because you cannot find one that perfectly fits your needs?
Well i actually want to know how it works to make my discord bot fun to use with me and my friends like i can get dank memer rythm or mee6 to fullfill all my needs but i think its more fun to create something thats from u
With rythm i cant just add things but with my own i can customize it however i want if i know how to
And so you set yourself to experiment with the creation of said bot. Well, that is a healthy reason, I like it ๐
Unfortunately, developing is not as fast and simple as copying code and snapping fingers. It is all about the journey, not the destination.
Can you tell I have been a developer / engineer for more than ten years? ๐
Pretty much xD
I hope that in 10 years i will have enough knowledge of coding ti be able to help someone
You will, I am positive about that.
And what i've learned already is that after u change ur code u have to test it i've had enough Times that one second it worked and the other second the bot just dies
And i should may copy paste my files so i have a back up
Oh, you will be in for a treat when you will learn about Test Driven Development and Code Versioning Systems in a few weeks!
The first implies that you write your tests before the code. The tests define your expectations and initially fail, the code must pass the tests. <- Tests can be automated
The second is a clean way to version your code, to collaborate, parallelize development, automate some tasks, etc.
Def learn how to use git
So its like biology? U have expectations and ur testing that if it works?
Yes! Here is an example:
- I would like to create a function that squares a number so I expect that
f(0) = 0,f(2) = 4; - I write a function
f : x -> x * 2, my tests all pass and call it a day; - Someone uses the function and notices that
f(5) = 10?! - I add new tests:
f(5) = 25andf(3) = 9; - I fix my function:
f : x -> x * x, my tests all pass; - The person that uses the function is now satisfied with the result.
If I have to modify this function in the future and a test breaks, I know I did something wrong.
Of course, what I presented is a best practice you may come across in a few months or years. I have never seen anyone using it on a daily basis.
Taking existing code and modifying it is a great way to experiment and learn how something works
Just taking an existing piece of code and getting it to compile and run will give you the critical skills you need to develop your own code
Chicken and egg problem: when would you need to learn about the technologies that you are experimenting with?
How do you mean?
If I never learned about the technology, I cannot experiment with random code found on the Web.
The opposite is true so it is not so much a chicken and egg problem. I still believe you need some basics before you commit to experimenting, though.
By experimenting I mean (for this case) to go find a bot that plays music and figure out how to get the code, compile it and run it (ie one needs to find a bot whose code is documented well enough with instructions on how to get going). Then once you have that working, one can start reading and modifying that bot code (โexperimentingโ)
I was not able to find one yet
But i thought about that
Thats what i used to do when i tried html
I took code from one site
And used it on another to create my own site in inspect element
I know of several examples that show how to play music (discord bots though). Or maybe have a look for bot code that responds to commands and start there
(Just searched for โdiscord music bot exampleโ and the first result was a tutorial on how to create a music bot with JS)
I've followed those but it ended up being confusing and i had 5 errors
Then as I suggested, perhaps a more basic example might be better
Another option is to find a beginners tutorial that starts with the basics. Personally I like to start with something close to what I want and then learn how to modify it to do what I want
anyone here who knows c# tag me
@vestal ledge
hi
hello
can you explain to me what "if (_closing) return;" does in this code https://pastebin.com/bycq6ckq
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
the code in the pastebin seems like a small extract. somewhere else in the code will be a boolean called _closing and when this is true, the code stops running this private function. the return just exits this function
sorry, i dont know how much you know about c#. if any parts arent explained well, let me know
ill send you the whole code
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
does if (_closing) return; stop the code below it from running?
exactly but only when the boolean on line 14 is true
oh okay
i want to come up with a new name for that bool
i dont like _closing
i want a more explaining
isClosing ?
Sure, i just dont understand why it has closing in the name
the code is my homework to understand and rewrite
the program will eventually need to be "closed" when the program exits. that boolean only changes to true when the server is stopping, causing shutdown scripts to run
or in this case, just stopping other scripts from running
then you'll need to swap true to false
yeah
and if (!isRunning) return;
the weird thing is that it doent change
i mean
it sets _closing = true
never to false
its false by default
oh i now how it works now
know*
ill name it to isClosing like u said
my teached made the code hard to understand
sockets still confuse me to this day. i always steer clear of them
np
@obtuse night do you know what the buffer size does
i mean what changes if i set it to 8192
oh yeah its prob that
iill just set it to 8192 instead of 2048
instead of if(isClosing) return;
i can just do like
if(!isClosing) {
code here
}
right?
that would work
@obtuse night my code is done https://pastebin.com/ZQ0gPchV
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I like it better than the one my teacher made
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Hey, I'm making a website and I want to put text next to an image. When I make the font of the text bigger it pushes the image to the side because it cant overlap. Is there anyway I can make part of the text overlap the image?
how are you supposed to call anything if it's all private @vestal ledge
also pulling the public ip from a website seems like a bad idea. makes too many assumptions
rather than pulling the ip from a website, i'd just use local ip addresses which you can get using an inbuilt functions. External ip addresses would mean you need to port forward in order to access it
@elder ivy @obtuse night I dont need to access anything since its a server where clients can connect to and send and recive information. It should be a public ip so you need to port forward and the website im using is a website made for giving the public ip to code. The server is for a game a program im making so not a server people can download
Making your random code exposed to the actual internet seems like a bad idea if you're just learning still o.o
It's ok only people who has my ip can connect to it and my client will send a specific code to the server
and if the connected client doesnt send that code it will be kicked
and all info will be encrypted
So
Hello = SGVsbG8=
does anyone know what they mean with i can only use await in async
got rid of the async thing of adding " async" somewhere
but now i cant use any commands
wdym you cant use any commands? language?
javascript
and when i use as example .help
i get a whole line of text
and when i do .play and then music url
its says
" cannot acces queue before initialization
going off of c# here, but try .result.help or .result.play
i am talking about discord bot commands
you can think of async/await as syntatctic sugar for using promises @errant raptor
you have a code snippet you need help with?
does it expect an async function?
if i do that without async the bot doesnt start
yes
and when i add async everything works at first but when i do commands it just doesnt
ok?
const client = new Discord.Client();
const ytdl = require('ytdl-core');
these are api' s right?
im really new to coding
so i dont understand every term
async function execute(message, serverQueue) {
imma just send the whole piece of code
and see if someone can fix it
o.O
client.on('message', async message =>{
if(!message.content.startsWith(prefix) || message.author.bot ) return;
const args = message.content.slice(prefix.length).split(" ");
const command = args.shift().toLowerCase();
const serverQueue = queue.get(message.guild.id);
if(message.content.startsWith(`${prefix}play`))
{execute(message, serverQueue);
return;
}else if (message.content.startsWith(`${prefix}skip`)) {
skip(message, serverQueue);
return;
}else if (message.content.startsWith(`${prefix}stop`)) {
stop(message, serverQueue);
} else {
message.channel.send("you need to enter a valid commant! do .help for more info!");
}
const queue = new Map();
async function execute(message, serverQueue) {
const args = message.content.split(" ");
const voiceChannel = message.member.voice.channel;
if (!voiceChannel)
return message.channel.send(
"You need to be in a voice channel to play music!"
);
const permissions = voiceChannel.permissionsFor(message.client.user);
if (!permissions.has("CONNECT") || !permissions.has("SPEAK")) {
return message.channel.send(
"I need the permissions to join and speak in your voice channel!"
);
}
}
const songInfo = await ytdl.getinfo(args[1]);
const song = {
title: songInfo.title,
url: songInfo.video_url,
};
if (!serverQueue) {
}else {
serverQueue.song.push(song);
console.log(serverQueue.songs);
return message.channel.send(`${song.title} has been added to the queue!!!`);
}
first part
can you explain to me what you mean with that?
where do i need to put ``` for code block?
I mean surround your text with ``` so that it formats the text in discord
in any case what's the question?
well i basicly want music and commands to work
I don't see what this has to do with async/await? I mean you could just remove the async in both places above
but when i use that my commands simply wont work
your code is a jumbled mess, have you tried just copying the source in it's entirety?
it's just the one at the bottom of this isn't it? https://gabrieltanner.org/blog/dicord-music-bot
okay but try to see if it works exactly the way you found it first
I mean best to prove it can actually work first. maybe the code itself is already outdated or something
@elder ivy For the context, we had a productive conversation earlier today about Discord bots.
oh?
run a debugger in that case
from my point of view you had mostly the same code, but didn't know what was going on with it
so start by understanding how it was supposed to work. but make sure it is supposed to work first
Well, that's the thingโฆ @errant raptor is just starting out with JS development. And development in general, correct?
Learning by reading code isn't necessarily a bad thing
yep
Read it, execute it line by line, understand what it's supposed to be doing and ask questions/research
but i think discord bots are really advanced to begin with thats what i got told atleast
I mean the complexity is probably that it's events and possibly async code. Those are usually a bit harder to wrap your head around at first
I wonder if there are good web-based interactive JS or even better TS courses out there. What is better than a web browser to execute JavaScript?
like the only thing i need actually right now is an solution to how i can get rid of those async problems
I mean the other thing you can try is to just output debugging info
If you can't work a debugger
Ie print text and see what it does
I'm sensing console.debug overdose ๐
Not edgy enough ๐
Like, look, nobody uses debugger; even though it is so cool! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger
eh I use that
makes not having to dig for files easier
especially when stuff like source maps aren't playing nice
My devs use console.log exclusively ๐ฅ
lol
If only you knew the sheer amount of smelly code I come across every day. It's a chance I can focus on Cloud and CI/CD tasks most of the time.
I mean that's not to say I don't work in a dumpster fire at times
there's no such thing as perfect code
const { prefix, token } = require("./config.json"); do i need to put at token the prefix i want?
Tech debt has been a debate for generations, after all. But still, there is such a thing as acceptable code. Pleasant to read and modify.
little bit confused as im trying another bot rn
oke
i did remove all the updates i did
and have a bot i am testing everything on rn
lol
did some actually...
so... dose any one here ... know c++ spesificly ... sets and pairs
What do you want to dose people with? You don't have to tell me to know c++ I already do.
What do you want to dose people with? You don't have to tell me to know c++ I already do.
@round dome hmmm .... sooo ... you know c++ ???
ya
right soo ... how do you find a pair in a set of pairs ... : set<pair<int, int>> st;
using find?
ye if its possible
no I'm telling you to use find
i tryed it ... the end result is a wall of error
then you're doing it wrong
don't focus on your past focus on the present
50 if (path.find(make_pair(u, v)) != path.end() || path.find(make_pair(u, v)) != path.end()) {
im basicly cheking if u and v is an edge in the path that i have
don't focus on your past focus on the present
@round dome wish it be that easy thou
am I supposed to guess the rest of the code
anyone know css?
You're trying to find a pair in a set of ints
sry dont know css ....
ama go die l8r
https://twitter.com/ctrlshifti/status/1290968510521196544
@elder ivy This is so triggering lmfao
๐
@shy helm what are you talking about thats perfect
Hey Guys, I have a WordPress website where if I downgrade the PHP version it works fine but as soon as I update it to the latest version it starts giving out ERROR 500.
does anyone know how to use if and else in python?
does anyone know how to use if and else in python?
@nocturne galleon https://www.w3schools.com/js/js_if_else.asp
thx
13.11
13 ?
i am 14
nice
i also learned python when i was 13
is it easy?
yea
cool
hi guys
I'm building a discord bot and it's almost done but i would like to add some extra stuff
do you have any ideas?
I like to add a mini web server in there to expose metrics, so that I can know when my bot has problems
depends on where you'll be hosting the bot
For now it's running on my pc whenever I run tests
But do you have any ws that you would recommend?
I mean express just works and is incredibly well-documented and you can just add like 8 lines of code to your bot and you're done
thanks
@nocturne galleon
Does anyone knows how to run a bot automatically in azure? Plz tag me if you know
can anyone explain what this code is doing exactly please?
it mostly returns false
so im trying to make a discord bot and i keep getting the same error and i dont know what it means
"[INFO] launcher: Starting sanity checks
[INFO] launcher: Checking for Python 3.5+
[INFO] launcher: Checking console encoding
[INFO] launcher: Setting console encoding to UTF-8
[INFO] launcher: Ensuring we're in the right environment
[INFO] launcher: Adding local bins/ folder to path
[INFO] launcher: Required checks passed.
[INFO] launcher: Optional checks passed.
[INFO] launcher: Moving old musicbot log
Traceback (most recent call last):
File "run.py", line 438, in <module>
main()
File "run.py", line 347, in main
finalize_logging()
File "run.py", line 179, in finalize_logging
dlh.setFormatter(logging.Formatter('.'))
File "C:\Users\Jayden\AppData\Local\Programs\Python\Python38\lib\logging_init_.py", line 576, in init
self.style.validate()
File "C:\Users\Jayden\AppData\Local\Programs\Python\Python38\lib\logging_init.py", line 429, in validate
raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.default_format[0]))
ValueError: Invalid format '.' for '%' style"
@serene turret no experience with Azure, more of an AWS guy, but if you're looking for the simplest way to host a bot online, i'd suggest Netlify, it integrates really well with github and is arguably the easiest to set up
@plain cosmos it's doing a deep comparison to see whether the object passed in is "equal" in data
Thanks ๐
@plain cosmos that code you linked just spams ifstatements and gives you autism
thats what it does
@frail jewel very "helpful" information ๐
well its shit code, its very easy to understand and its an example of what you shouldn't do, you should try to avoid if statements where they aren't needed and with a managed language spamming if statements is even worse.
What?
How else do you compare two objects for equality? @frail jewel
I mean yes it can be written differently too but I don't see your point
actually there is a great video exactly for this.
1 sec
fuck, i cant find it, it was a rant about how yandere dev should improve his code. so the sample code is either c# or java or another managed language, you can store values in enumerators in a lot of cases (https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerator?view=netcore-3.1) and using switch functions is also very useful for constantly if and else statements, it is a lot more optimized and doesn't look like someone decided to take a massive shit on your screen (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/switch). thats just 2 ways to optimize it. we dont even know if this guy is looping this check every second or hell every frame to preform these checks.
https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerator?view=netframework-4.7.2 the enumerator link in the first one is to .net core. this is for .net framework
Ok?
https://github.com/ktaranov/naming-convention/blob/master/C%23 Coding Standards and Naming Conventions.md also this is a great way to improve the quality of your programs source and in some cases even make it more optimized, if you want to publish your source you would probably want to follow these guidelines.
The dude just asked what it does not if it's good or best practice
Nor did it call for any rude remarks
i didn't insult him, i insulted the code, it wasn't his code. he was trying to learn from some really disgustingly bad code. thats how you burn in really bad practices into your memory.
not knowing why you need a solution before using it is a software pitfall
could someone help me make a javascript discord bot so that when you say "insert word here" the bot responds with "insert response here"
this is what i have so far
const bot = new Eris(process.env.DISCORD_BOT_TOKEN);
bot.on('ready', () => {
console.log('Ready!');
});
bot.on('messageCreate', (msg) => {
if(msg.content.includes('69')) {
bot.createMessage(msg.channel.id, 'nice ;)');
}
});
bot.connect();```
that's not python o.O
i mean not python
java script
i have the bot working i just want to add more responses
what's the problem?
start by learning javascript
i would rather i didnt
what kind of error?
Anyone here use AWS? I've been noticing a lot of issues with t3a instances this last month or so. We use spot instances for our web server cluster, and for the last several weeks AWS has been killing them off (reportedly) due to capacity issues. I'd had to switch over to the slightly more expensive t3 instances.
Wondering if anyone has noticed anything similar.
You might want to use at least 20% (min 1) of on-demand instances and 80% of spot in that scenario so that your cluster never stops. Anyway, Spot is for short-lived or interruptible workloads and there is no garantee of capacity. In fact, the same occurs with On-Demand unless you use capacity reservations which might be convenient for workloads present in the long term.
I've actually have had great luck with pure spot up until about 3 weeks ago. Sure, we've had an instance killed every blue moon, but we have our auto-scale group split between enough availability zones that it wasn't a problem before.
Now suddenly we can't get a t3a instance that lasts more than 24 hours.
Either they play fair and are close to their capacity limit for t3a.xxx, either they are nudging you into purchasing On-Demand. Since there is no way to retrieve stats other than the price history, I will leave this to open interpretation.
Yeah, that's what I am trying to judge. So far everything is fine on t3 instances, so if they really were trying to get us off of spot altogether that hasn't been consistent. Could just be that the cheaper t3a instances are what they don't want people sitting on for weeks at a time.
yeah you should really have at least one instance either on-demand or provisionned, spot instances can be terminated at any moment
You actually receive a warning two minutes before the instance is terminated. This also goes with their ECS and EKS offerings.
kjjj
javashit
chad Rust
Rocket is a web framework for the Rust
programming language that makes it simple to write fast web applications
without sacrificing flexibility or type safety.
chad as chad
Far from production-ready for web. You might as well be using Artanis at that point: https://web-artanis.com/
The light-weight and fastest web-framework of Scheme language
@foggy ginkgo 2 minutes prior gives enough time for your server to cleanly exit or for your load balancer to redirect load to other instances, but its waaaay too short for a human to react to
anyone know a curses crate for rust
read the book
Anyone know any good FFI libraries for NodeJS? Looking to offload some functions to Rust and want a way to easily communicate with it. Also, never really used FFI but I was reading that it can actually have pretty major downsides...any thoughts on that?
there's a decent exemple on the node-ffi repo : https://github.com/node-ffi/node-ffi/tree/master/example/factorial
you can replace C with Rust, as long as you compile down to a .so
My concern is that the library is unmaintained. 195 issues open (although most seem to be stupid help questions) and 19 PRs. Last update was like 2 years ago.
Was looking at this: https://github.com/bengl/sbffi but I'm not sure if it will take Rust so or if it's just C.
Maybe to fall back on: https://www.npmjs.com/package/ffi-napi
Node's internals are pretty stable at this point, probably why the library hasn't been updated in a while
Ohh, I see what it is: https://nodejs.org/api/n-api.html#n_api_n_api
Apparently NAPI is the goto now
I need to read into node's internals more.
Have you tried simply compiling to wasm? it's not a perfect solution, sometimes the perf gains are negligible, but in some cases it can be more than good enough, and its much easier to implement
Oh hm...honestly I've never used WASM before. In theory, this is what I'm doing. I'm going to simulate lets say about 100 messages a second, but I know NodeJS won't be able to keep up and won't be powerful enough alone to handle looking through each message and determining what's allowed and not. So I'm looking to offload that to a library that's closer to a system language. Which is why I'm looking at using this. Could WASM still allow this to be accomplished?
for CPU intensive workloads, yeah it can be a real perf booster, for I/O intensive workloads, honestly you'll have a hard time beating what Node gives you out of the box
Hereโs my general plan. I want to tinker with the idea of building a highly scalable Discord bot capable of handling hundreds to thousands of messages a second (in theory). Thereโs gonna he limitations that NodeJS has simply because itโs not compiled, itโs running on an underlying engine. Unless thereโs a general/fundamental concept Iโm misunderstanding which is a real possibility being self taught. Iโve built plenty of bots, written entire frameworks around them. Libraries are semi-easy for me (I work in TypeScript almost exclusively now). But FFI and WASM are new concepts to me. Now this specific module will handle the message that determines if itโs in violation of any rules such as links, repeating characters, multiple punctuations, etc and even handle if itโs โspammingโ messages multiple times in a row by them or multiple users. So Iโm trying to think of others ways I can handle and manage that outside of NodeJS so I can optimize it to its fullest potential or even a way to test it to see which performs better under ridiculous circumstances.
@upbeat nymph build a c++ server
i have never used webasm but if its anything like x86 asm then coding in it wont be the easiest thing but it would be actually really fun to work on something like that but when you want to do something like that which specialises with handling data you probably dont want to do it in a website but to build an entire server on the host which is specialised to handle so much data and sort through it how you want it to
there should be quite a few c++ discord bots for linux hosts and plenty of c++ servers meant for filtering through data, browse through github and see what people have done and you can probably learn a few things and snag some of their code. using a really high level and slow language to sort through loads of data is normally not a good idea, there are some java based languages which are specifically made to sort through data from what i have been told.
there will more then likely be easier ways but making your own server would be pretty fun.
@frail jewel Thatโs why Iโm leaning towards rust for data handling. Let Node handle events, Discord, etc and let individual modules handle the data which would also give me the ability to update individual modules as well. What Iโm wondering now that youโre saying server is, would it be better in your opinion to start a web server and use local requests or use something like FFI and create share libraries? I naturally lean towards web servers as a web developer but Iโm hoping to learn more about what other people suggest and have experience with. Also, leaning towards Rust for this stuff because Rust is almost as fast if not faster in some cases than C++ and is safer but still can be compiled to system language easy.
Sorry. On mobile so hard to type fast haha
the case of discord bots is interesting, in my opinion, you would acheive waaaay better results by using message buses from any public could provider and treating those heavier rules asynchronously.
The nodejs bot then simply becomes the entrypoint for messages and you can lean on its event loop to handle the resolution of that async action really well, in a way that will scale very well
TL;DR: move the compute intensive parts elsewhere and have your bot pass messages using a message bus
what i mean by a server is an application on your webhost which manages requests and processes the data.
so your bot made in nodejs can just get the information and communicate with the server and send packets containing the data and then that can be processed purely by the server and then sent back to the bot to give a response to the user oooor it can be stored on the server in a database, how ever you want to handle it. just moving all the processing to an external machine which is running a server made in a faster language than nodejs which can process the data faster and also communicate with your client.
That's what I was trying to describe, maybe I didn't word it well enough
But message bus...hm..I mean, I guess adding that too the idea list...here's what I currently have on my mind.
- All in NodeJS
- FFI with some library
- WASM
- Create a webserver in a system language and NodeJS communicates with it
- Message bus (have to look at this more, just glanced at https://node-ts.github.io/bus/ really quick to get an idea)
I really like AWS SQS: you don't have to set up any server, you just tell aws you want a queue and it gives you one
I have used SQS before, it is nice.
I love it, it's gotta be the simplest and most reliable queueing service I've used
the first million request per month is free ๐คทโโ๏ธ and then it's $0.40 USD per million message
I've used it on global systems that handled millions of messages every day and it cost us so little it got put in the "other" category of our aws bill
Oh, hmmm. I guess pricing changed? Has it changed recently?
not recently no, or at least I don't think so, as far as I can remember that's always been the pricing
Maybe I'm thinking something else, it's been about 3 years since I've used it
Kinesis Streams are pretty expensive, that may be the one your thinking about
Maybe. I can't remember to be honest; but still I guess what it is coming down to is how I could utilize SQS to complete the task.
Because I have an entry point, and a exit. The result must be returned to the NodeJS application
That's where there may be some issues
Because it will return a series of flags, in theory, of what it detects if any detection is applicable.
God I love that I finally joined the LTT server, finally people I can talk to about this shit 
So general flow:
Discord Event (message) -> NodeJS Application -> Internal module in NodeJS app -> Sends message to external application/library
Library: Obtains message -> Determine based on configuration what to detect -> Scan through message and set flags accordingly -> Respond back to NodeJS app with flag list
Flags being like VIOLATION_URL, etc. and the NodeJS application would handle the flags and taking action on the message/user
Unless someone else can think of a better way to handle it?
I'd be really curious to see how Node would perform on its own for your use case, discord.js is built on top of the std websockets and event emitters libraries which are pretty damn efficient at this point
maybe some benchmarking could give you an answer. In my experience, simpler systems tend to be more performant than complex systems, no matter the language its written in
I'm leaning towards Eris tbh, I use DiscordJS but there's so much overhead out of the box....at minor levels and such, they really aren't different...but the moment you need something custom, or need to make a change...DJS has abstractions on abstractions that I heard make it so hard to customize.
I guess what I really need to do is write the same detection in all options just to see.
And run it from Node because that would translate to real world
So general flow:
Discord Event (message) -> NodeJS Application -> Internal module in NodeJS app -> Sends message to external application/library Library: Obtains message -> Determine based on configuration what to detect -> Scan through message and set flags accordingly -> Respond back to NodeJS app with flag listFlags being like
VIOLATION_URL, etc. and the NodeJS application would handle the flags and taking action on the message/user
@upbeat nymph is there a reason why you canโt just use REST for this?
Well, that's on the list to test
Eris does seem to use a similar structure to manage incoming messages
It's on of the options
That sort of async communication is hard to connect back together
But message bus...hm..I mean, I guess adding that too the idea list...here's what I currently have on my mind.
- All in NodeJS
- FFI with some library
- WASM
- Create a webserver in a system language and NodeJS communicates with it
- Message bus (have to look at this more, just glanced at https://node-ts.github.io/bus/ really quick to get an idea)
Earlier
Unless you have the sender just listening and scanning the entire response buffer
Just added a list of stuff that people suggested for it
Easier way to do this is to use a message bus to send and a mailbox type service to give the response
What are you doing that requires an external service?
It's just a theory/idea. But I want to tinker with building a bot that can handle, in theory, thousands or more messages a second via Discord. Now, I know that to obtain the fastest speeds in terms of scanning through text and checking it against rules you should get as low level as you can. With NodeJS this may be difficult, cause...JavaScript. So I was thinking that it may be easy to have like, a Rust library and use FFI of some sort to leverage it or well any of the other options. I'm thinking maybe a Rust webserver that handles the data and responds back...but I'm wondering at scale how it would handle it. So, I might make a simulator that literally sends hundreds of "messages" a second to the "bot" and see how each other these methods performs.
All using the same ruleset
Like, for example, all uppercase not allowed rule.
And keep pushing that number per second farther and farther up
To find that "threshold" for, in theory, the application where it just can't safely handle more
Heh, sounds like my wheel house
You should look into creating a stream-based event processing pipeline
See, I love bots. I've been writing bots for a while...but I want to broaden my horizons and learn more...and I feel like this could definitely help do that
You should look into creating a stream-based event processing pipeline
@shy helm could you expand more on this?
Yeah for sure, my experience is not on the bot side, but on writing stream-based event processing pipelines for the finance industry ๐
Damn automention in quote
Ahh, we were talking AWS earlier with SQS and Kinesis
But, my thing is...it has to respond back to the primary application with the "flags"/violations the message has
If your concern is throughput, you need to design a system that can easily horizontally scale. In the past, I've created systems to handle high volume trade order flow and the way we built them was using pipe-and-filter type architectures, using Kafka and Kafka Streams
Well with Discord bots and sharding, adding more servers is a lot easier. And in theory if I know that threshold I can reduce the amount of load on that specific server by spinning up a new one and setting the shards to it.
But I don't want the response to always be "throw more servers at it" lol
Eh, only way to scale horizontally is to throw more instances at it ๐
Well, yeah; but I want to be able to optimize the code before throwing hardware at it.
You either scale out (add machines) or scale up (get bigger machines)
scale out is cheaper
vertical scaling scares me. lol
it's very $$$ lol
Too much trust in one machine
So Kafka. I feel like I've seen it before, but never used it.
But yeah, you can probably build a digraph of what you need to do, and then you can easily build it using something like Apache Flink or Kafka Streams
Flink might suit your needs just fine, I used Kafka because I had very complex map-reduce esq actions
deploying kafka on kubernetes is a pretty simple process nowadays
and again, good options are available as managed services from public clouds
I'll be honest, I've...I've never used kubernetes, or really docker tbh. I tend to just spin up a cloud server and go right in and install by hand. Which is horrible...I know, but like. lol
gotta start somewhere ๐
@shy helm there's been really great improvements on that front recently
I think it will suit your needs
its much less of a pain than it used to be
Wouldn't it be better to host it locally though @shy helm? To reduce the latency, or is it pretty low latency?
How did they resolve the failure recovery though?
That's the issue with containers, they're inherently not durable
but still, from a programmer's perspective, I want to worry as little as possible about how my infra is provisioned, that's why I usually lean on SQS or Kinesis
Persistent Volume Claims in k8s
Ehh, any remote message bus is not going to be very low latency
Since most of my stuff is web applications (mainly Laravel based), I'll just use Forge or something to provision and secure my servers and Envoyer to manage the applications
But generally Kafka is fast
And it gets faster when you have a volume of data moving through it
(since you can amortize overhead costs with batching)
@shy helm wdym? running on AWS within a single region you can get sub 10ms latency pretty easily
@upbeat nymph if you have a server at home then yeah sure, use that ๐
Can you? I'm not familiar with deploying Kafka in AWS so I can't speak to that
single digit latency with Kafka isn't that easy though
haha, I would not trust my hardware ability that much
But it depends on a bunch of factors, like what your replication requirements are and stuff, so it's not super easy to speak generally about it
Okay, so really...what this sounds like is just a huge websocket system? But...more optimized?
From first glance
Sorry, never seen either of these before
Kafka (I'm only finding NodeJS libs for that at the moment)
Ah
@shy helm I'm talking about SQS or Kinesis (Kinesis being very close to Kafka in how it works)
Ah gotcha
I've never used either, so I was just talking about Kafka
I would suspect SQS and Kinesis are similar though--depending on replication requirements you'll see performance dramatically change
yeah, they announced a new "managed kafka" service recently, but I think their target is more people that already run Kafka, cause Kinesis is just more integration to the AWS ecosystem and is just less management overhead in general
On a Discord bot though I suspect dropping messages is probably not that big of a deal here and there
they both guarantee at-least-once-delivery
and having acually tried it with a live system, yeah, its rock-solid
I like that "at-least-once-delivery"
yeah, you have to make your consumer idempotent, but once you get the hang of it, its so good ๐
That's a different guarantee then what I'm talking about though
I'm talking about if you have a failure that you won't lose data
Yeah, that's not a concern as much here
i.e. if you're deployed in 1 AZ and it goes down, unless you have cross AZ replication you will lose data
that's the cool thing about managed services: that's taken care of by AWS, for example SQS is replicated in 3 AZs by default
Kinesis has similar guarantees, I'd have to comb through documentation to find the specifics
Interesting, and they still get sub 10ms end-to-end latency?
oh, that's AZ, which is not the same as region? i.e. in the same DC?
eh, I sometimes forget how crazy the durability/availability requirements are in finance. We had DC failure + 1 replication requirements for our Kafka stuff (since it was on the critical trade path). i.e. we had to be able to tolerate an entire DC failing + 1 rack in the other DC
AZs are lower-level than regions, technically there can be more than one DC in an AZ, but AWS is very secretive about that
ah... no wonder we don't use them, lol
own our own DC
well, given that Vanguard runs mostly on AWS, there's a way to make it globally availlable ๐
oh yeah, they usually have a talking spot at re:invent
Grass, how big of a fucking company are you in? Jesus. Owning their own DCs?
@upbeat nymph I'm mostly an AWS user, but I've used GCP in the past without many issues
Itโs not uncommon in the finance industry to host your own stuff
I went from that tech company to a hedge fund and they even run their own DCs
The hedge fund does use AWS VMs for spot compute tho, no data store though
Ah, makes sense. I'm in a huge financial town. So I'm surprised there's not more DCs plopped around here.
I've used GCP like...2 times
But ya, for your discord both checkout flink, might be able to do exactly what you want
Youโd just have to make a client to publish from discord to flink
Probably could get flink to do the actions at the end, or get itโs result and then get another service to act
Instead of having a cycle of Service A -> B -> A having an acyclic direct graph of A -> B -> C will be more performant and maintainable
@shy helm I found their two talks from re:Invent 2019:
So basically, every event is passed to the flink service which then handles all the distribution to the service that handles spam detection and then from that I have the bot/Discord node app listen for those messages containing the flagged data?
God I wish I could do this shit full time D: I'm jealous of you all
that's the gist of it yes!
I always say: Apply for the job you want, not the one you think you can get today
I have, for the past like year. But I have no corporate experience, and I'm self taught. I'm a risk
And not many people want to take that risk
Actually year and a half
I've gotten close to getting offers to be relocated and jobs, but they always end up, "if you had literally 4-6 months of enterprise experience, you'd be easily given an offer."
But living in a financial area, Charlotte NC, it makes it difficult
having some stuff on github certainly helps, but most importantly: be upfront about you know and don't and emphasize that you want to learn
with pretty much every tech company being remote right now, you could try applying to companies outside of your area as well
I've tried that too, most people want like...experienced. Maybe I just haven't found the right company yet, but it is frustrating
Might be a stretch but, have you tried applying to an internship position?
yeah I can relate, but don't give up!
I've been on Indeed, Glassdoor, Monster, LinkedIn, Angel, etc.
Grass, looked into it. They want people actively in school and have like a min 3.x GPA.
Ah, :/
And pursuing degrees, I'd like to go back maybe...but it's out of the question
At the moment
weirdly enough, a lot of companies that are known for being software engineering powerhouse are also some of the most willing to hire people with less experience, so don't be afraid to try your luck!
Yeah a lot of the entry level stuff is oriented toward uni students, itโs rough :/
Contract work to build a portfolio might help though, if youโre okay with building websites?
(Seeing the JS/PHP I figure you might be open to that ๐ )
Yeah, what makes it really frustrating to me is that a guy I knew...no fucking experience. Couldn't even manage Office...now works a InfoSec style job because his dad's in it. Another person went to another company, no code experience in his life, got hired to be a web developer for them. I applied to that same company, I got rejected.
your edge against CS majors is probably going to be something else than pure programming proficiency, something like "being pragmatic" or "getting the job done"
I'm not against contract work, I'm just not really a "designer" which is definitely a downside.
your edge against CS majors is probably going to be something else than pure programming proficiency, something like "being pragmatic" or "getting the job done"
@neon quiver maybe it's the fact that I've been up for near 24 hours, but could you expand on this?
CS majors can whip out a binary search out of their ass while cooking ravioli if they want to
I feel like in terms of experience, I do have enough. Some of my projects handled hundreds of thousands of entries per day to sort through (game stats website). Others handled hundreds of millions of API queries a month; but because it's not "enterprise" most don't care enough it seems :/
that's great but it can be a real problem when you're working for a business that needs to ship features
they have their nose to close to the source code
being self-thaught, and having built live, production-like systems (yes even a discord bot counts) you have a broader experience in taking a product from design through to deployment and live maintenance
I've written entire bot frameworks, reverse engineered webpacked chat scripts and sniffed the network calls to map out the API for said framework. Published and maintain multiple libraries across multiple languages, etc. And I've seen some CS majors come out of college barely understanding HashMaps in Java.
that's really valuable
When I did go to college and had a couple classes, my CS professor actually asked me to scale down the advanced methods in my code cause he had to grade my work and not the TAs because they didn't understand my code 
I'm certainly not saying you don't have relevant actual experience mind you
@elder ivy but a lot of these companies claim to take "experience in lieu of degree"
But my "experience" isn't good enough
that's just what they'd like you to believe
unless you have actual inside contacts
the degree is the barrier
if you know some people to grease the wheels then maybe there's a different discussion
Which is the other BS I'm dealing with. A lot of these companies post publicly about job postings, but have no intent to hired applicants outside the company
I mean it's the cost of ramp up
Everyone I know works in different states and the companies want people there (CA for example) but aren't gonna relocate an entry level dev with a high risk factor
I know a lot of companies don't focus on retention enough but actual intimate knowledge is useful
I guess at the end of the day, it's up to me to move somewhere else but that's hard considering I work graveyard at a gas station
I mean there are some elements of a degree that are useful/practical. and then there's some experience that can only come with hands on experience
Not upset about it, I'm glad I have a job...but like. It makes it difficult for sure
working with others is a skill too. same with super large code bases
I've sat in those classes in these degrees. I literally had to tutor people because they didn't understand conditional statements or why operators exist.
solo writing a framework is a lot different than designing something that's meant to be worked on by a large team imo
These are CS majors
oh I believe you
there's a lot of bad CS majors LOL
there's a lot of people attracted to the industry. who are maybe even working IN the industry. who are absolutely abysmal
solo writing a framework is a lot different than designing something that's meant to be worked on by a large team imo
I strive to make my codebase easy to read and add on to. I always like to have the enterprise mindset. I write my code for me, but understand it may be used and maintained by others.
I certainly have a few coworkers who I really question why they're still employed
https://github.com/PaladinsSidekick/paladins-sidekick this is one of my most recent projects
Obviously, not the best, it started as a hacky thing to mess around with...but slowly grew and grew haha
used and maintained by others is still only part of the thing, what I mean is that the added complexity of actively trying to satisfy a plethora of consumers is a tricky balance. though your experience is definitely an asset too
Don't discount the "luck" attribute of getting a job offer too
it's hard to evaluate people's actual competencies. and interviews etc are a terrible process lol
yeahhh
right time and right place
and interviewer you kick it off with
I know one guy who did interviews
and NO one passed
he was absolutely hard to work with so I know exactly why no one passed
lol I hear he's now a manager... so it's even worse
The number of times I've walked out of interviews thinking I killed it and not gotten a job vs. the number of times I've walked out thinking it was a flop and gotten it... is too high
I did work a couple months at an investment firm, but I don't wanna talk about that. Horrible experience. Horrible onboarding, they didn't even have my hardware till like a month or two in. Then they switched to completely different systems (outside of the scope of my knowledge) then my mom had heart surgey...then they ended contract early for everyone cause they went from full product separate of all other products to an integration into a current system which took the project from a projected 4-6 months down to a week or two. So I didn't even get a chance to participate :/
I say I don't wanna talk about it, then talk about it
#Logic
oof, tech in finance is very very hit or miss
I mean there's a difference between a software company
and a company that uses software or writes software for their own needs
like I count custom integrations in the latter category imo
Even just tech culture at the companies is much different
I mean, like. My first day in, they said be there at 9am to meet with your supervisor. Get there at 8:45am. Get setup. I'm told the supervisor hasn't shown up yet. They tell me to head home (I lived over an hour away). Turns out, that supervisor came in at 11am those days...they didn't tell me that.
Brought me in beginning of December, didn't get me my hardware till mid January. Didn't approve of all my software licenses until almost February.
I was paid, thank god, but still
lol, what a mess
TBH though, doesn't sound that uncommon for smaller companies/less tech oriented though
yikes
well, I mean they fall in the "less tech oriented" side lol
Like, they own their own parking deck, 2 building, their own road, etc. Just for this location
And then I had to go out for a week or so because my mom had heart surgery and I needed to take care of her because it being extremely high risk. And then I get back to find out they completely switched to a new integration instead of project. So, Angular 2 -> Angular 1 essentially. I never learned Angular 1 and their integration was extremely messy. Finished within a week. And then we all sat around for another few until they cut us.
Best part...their onboarding paper for setting up the project...didn't include any IIS instructions, or specific things we needed that I was completely missing that I had to ask another contractor for and he had to email me the code and assets.
That was my first experience in the "enterprise" world.
that's not really an enterprise software company though
Yeahhhh, honestly like I said, sound par the course for large non-tech companies
But most shit was outsourced to India consultants who literally didn't have powerful enough computers to run newer Android emulators.
yeah the finance side of tech is either... good or bad
might as well work in SF
no in between lmao
Or sometimes it's meh but the pay makes it.. good lol
Look man, I just want a tech job where I can write code, learn new things, make a little bit of money to be comfortable and save up...I'll be fine.
It's not always about the money for me
I gotta enjoy the job more than anything or I'll get bored easy
You're right, money is not everything
I'm sure you'll find something you like
I'd love to do something related to video games tbh
like actually game development or simply "in the context of a video game company" ?
I used to work in Unity and UE4 a tiny bit
I published a mobile game at 16ish from Unity. But somewhere in the gaming industry would be fun, web development, systems, community stuff, something. I really enjoy it. I've built multiple products related to video games.
Ubisoft has an office in NC if I recall correctly, have you looked at their open positions?
do you have a link? xd
lmao
damn
looks like there's just this one in Cary NC: https://www.ubisoft.com/en-US/careers/search.aspx?jobFamily=programming#sr-post-id=743999693861572
Epic Games is in NC too, they mainly hire engine programmers.
C++ though
I'm so confused
wait for it to load xD
Depends on what company, smaller companies I feel like are better in terms of people
in the gaming industry I hear smaller companies tend to be a lot more intense on the crunch time, cause they don't have the capital to withstand a poorly performing release
I've been working with a smaller one (like, they contract to huge AAA companies but they're working on their first solo release). Great people, super great. Really passionate about what they do and the game is really fun.
I'm in the super closed alpha hahahahah. Like to give you an idea, when I first got in on the game...the Discord server had like <30 people haha
It's honestly a great team and company.
wait, so you already have a tech job rn?
aaaah I see
I work graveyard shift at a gas station full time
hey so you probably know people inside that company, have you ever mentioned to a manager or something that you're looking for a tech job?
I've mentioned it before, but don't think they're looking at the moment
Tbh, I'm just kind of hoping they see me step up and I can establish myself in the community to the point where they basically have to hire me 
not really but like
I'm passionate, and I love the game
If that turns into a job opportunity, I'll take it. If not, nothing will change.
if I can offer any advice here is to be proactive, keep asking anyone if they know a team who's looking for a programmer anywhere
Yeah, I feel weird about that sometimes tbh. I do that and I feel like people get annoyed...even if it's just once or twice
I just got to get over it though, most people don't really care all that much
ehh not really
most of the stuff I work on tends to not work well for Codespaces and similar web editors
Why is that?
usually online editors have very limited supports for build tools and native stuff
Anyone interested in web development??
no, that's why there are no websites.
I know someone who's looking for a web dev, and is even willing to pay for the work. I'd do it myself, but I don't have much free time to spare, and it's a pretty big project
Idk how open this discord is to "advertising", so, until I get the go-ahead to post a link, I'ma just leave it as "If you're interested, DM me and I'll send you a link"
@old chasm why? Whats up?
@grizzled steeple can you share more about the project? Is it contract? Short term? Long term?
Full time employment?
It's more of a Long-Term Project and I think it's more of a free-form project rather then contract. It's for the Wyngro Group on DA that need a website for their made up economy system. No real-world money involved (at least as far as the users are concerned). Of course the dev would be paid for their work
@upbeat nymph
They want the dev to not just finish the project, but also be a contact in case something goes wrong on the website, so maintain the project. Even if the latter is just in the free-time then
@grizzled steeple Thx man for the information. But I am still learning so not yet.But thank you though
@upbeat nymph I was looking for a buddy to share with
@old chasm are you looking for help? web development is my thing. I love it. Whatcha working on?
What's DA? Maybe I'm missing something lol
DA is DeviantArt
Oh yeah, I just looked
hahah
I haven't used that in years
Actually, fun fact. I legit wrote an economy system a few years ago which included marketplace plans, seller accounts, multiple accounts, and the plans for flucation in prices based on the current marketplace prices with fallout protection. Just for shits and giggles 
I think I still have the code somewhere
@upbeat nymph basically exactly what @cloud knot said
the bulk of my software development is in systems software
usually systems and software management, but I do quite a bit other things too
and even game development sucks in those things
Cause it has automated port forwarding too, and you can connect your VSCode local instance to it? LOL
I guess for handoff style things?
it's mostly geared around simple CLI tools and web services
Looks like it, but systems you really shouldn't be in the cloud for it ๐
so, I think the nicest implementation of this was the CodeReady Workspaces in OpenShift.io
Since you need to build on the system
which you can actually host yourself too
Huh, never used that
CodeReady Toolchain is an open online development environment for planning, creating and deploying hybrid cloud services.
I bookmarked it
still the same purpose, but a nicer experience, and you can set up a local instance if you want
What system languages do you use?
Python, C, C++, Perl, Ruby, Go, and Rust
that's in order of frequency from most to least
Python is a good starting point to learn procedural and object oriented programming concepts
it's pretty easy to ramp up from Python to C++
Rust is pretty alien compared to all other programming languages
Yeah, I started with C# back in the day in relation to Unity. Then I moved to JavaScript with web dev. And now I mainly use TypeScript and Laravel PHP
it's one of the few programming languages I struggle with when working on it
Also, completely forgot about this
And I wrote Java for Minecraft plugins
Rust just seems nice though.
It's fast, safe, and efficient.
shrugs
on the other side, it's pretty difficult to support Rust as a programming language
the compiler is a pain to ship to users
and fixing bugs in dependencies is painful
I might just go back to reading my C++ book haha
I often don't recommend Rust or Go because they both have this problem
if you're cognizant of those pitfalls and design processes to handle it, then sure
but most people don't or handwave away the issues
Before I really get into it I usually listen to hours of presentations, tutorials, etc.
i have like an i5 cpu, 16gb of ram, and 500gb of storage on my macbook pro. on my pc i have a i7 cpu, 16gb of ram, and 1.25 tb of storage. which one should i use (pc can run either windows or linux) for python development and school?
anyone experienced with xcode that is willing to help me?
the PC is probably better
I'd go with having a Linux setup
there's even a Fedora Linux variant for Python stuff: https://labs.fedoraproject.org/en/python-classroom/
I keep getting an error:
The data couldnโt be read because it isnโt in the correct format.
Any idea on how i can solve this?
What's the data and what are you trying to do?
I don't have a lot of experience with xcode. I downloaded this code and am trying to update it and expand it (personal use). The main idea of it is to communicate via bluetooth with an hm-10 module connected to an arduino.
the app does launch on a virtual iphone but not to my own iphone
redoing it fixed it
I'm more concerned with the URL 
how do you "make a clock" ?
setInterval, new Date() and a DOM update.
yes
But, that's VueJS and Moment? Of course they're fast. They're meant to be
all this is overkill for a clock. except moment maybe
all this is overkill for a clock. except moment maybe
@elder ivy yup @tall kernel if you need 13.7k lines for just a clock , you might need to overtink it.
You didn't need to rewrite x86 assembly and a full OS+web browser for a clock
https://www.codesdope.com/blog/article/how-to-create-a-digital-clock-using-javascript/ This uses less than 100 lines i think.
@elder ivy yup @tall kernel if you need 13.7k lines for just a clock , you might need to overtink it.
@old chasm i wanted to make it as long as possible
well then mission accomplished , i guess @tall kernel
yup
it could be longer
how
well then make a billion number of functions and call the other inside of the other like a chain and the las one will give the code for the actual clock
thats cheating too