#development
1 messages · Page 79 of 1
hey, i'm receiving this crash
/////////////////////////////////////////////////////
// //
// BTS Bot //
// //
// File: restartProcess.js //
// //
// Written by: Thomas (439bananas) //
// //
// Copyright 439bananas 2021. All rights reserved. //
// //
/////////////////////////////////////////////////////
const log = require('./logHandler');
const Discord = require('discord.js')
const client = new Discord.Client()
const http = require('http')
const svrmgr = require('../server/serverManagerFunctions')
function restart() {
log.info('Restarting...')
// DESTROY DISCORD BOT SOMEWHERE
svrmgr.closeServer()
process.exit(2)
};
module.exports = restart;```
/////////////////////////////////////////////////////
// //
// BTS Bot //
// //
// File: serverManagerFunctions.js //
// //
// Written by: Thomas (439bananas) //
// //
// Copyright 439bananas 2021. All rights reserved. //
// //
/////////////////////////////////////////////////////
const log = require('../core/logHandler')
const uniconf = require('../configs/uniconf.json')
const express = require('express')
const e = express()
const http = require('http')
const app = require('./serverListener')
const { response } = require('./serverListener')
const server = http.createServer(app)
function createServer() {
server.listen(uniconf.port)
.once('error', function (err) { // If port in use, crash
if (err.code == 'EADDRINUSE') {
log.fatal(`Couldn't start the server on port ${uniconf.port}! Is there another application running on that port?`) // Fatal function calls always end the process no matter what
}
})
}
function closeServer() {
console.log('yeet')
//server.close()
}
module.exports = { createServer, closeServer };```
#the-wan-show for my browser extension which adds a download button to github
it’s fully open source, you can modify, build it, etc however you like
can you describe the problem in more detail?
like what's the expected output vs the actual output
bc as far as I can see, the word gets replaced successfully
does anyone know how to dynamically assign parameters in go?
cmd := exec.Command("MP4Box", "-dash", "5000", "-frag", "5000", "-segment-name", "'$RepresentationID$_$Number%03d$'", "-out", "output.mpd", "input1.mp4")
like here, we have one input parameter named input1.mp4, next time, I might have 3 inputs or 2, it dynamically changes, but how can I pass it in dynamically?
nvm, i found the answer. put all the flags inside an array and pass that to the command
cmd := exec.Command("MP4Box",commands...)
The expected output is just one sentence, with a word changed. But the output I get are multiple lines with some artifacting.
Are you the one that wrote the code
Yeah, with the help of an online guide. I'm a beginner to C so I don't know a lot about programming
Let me see if I can find it.
In this program, we have given three strings txt, oldword, newword. Our task is to create a C program to replace a word in a text by another given word.The prog ...
This one
I've only had C lessons for 6 weeks now
I don't want to give away yhe answer. So I'll simply hint that you re-read the part where he explains the printf
Nevermind, that's hardly a guide. That's just copy paste code
Yeah, like I said I don't know shit about C
so?
I wanna learn, but I don't understand what is wrong. I tried multiple things in the malloc but everything I tried made it worse.
you said 2 problems, what are you trying to solve first
I think that my memory allocation is wrong, but I don't understand what.
The first problem I want to solve is the output. This is it right now, but it has to be just one line without the artifacts.
So the first sentence means what word do you want to edit? and the second one is: What word do you want to replace it with?
do you know how printf works
I only know the basics, that you define what you want to print, for example %d for int, and define which variable after the comma
okay that works. do you know how while works
Yeah, it will keep doing something if some condition isn't met
not the best explanation
okay now check where your printf is located
Oh damn you're right
it will keep doing something if some condition isn't met as long as the condition is met*
So now I just have to fix the weird 2222.
Could that have something to do with this?
@outer fjord it's a warning
you should always try to check if the index is within the bounds of the malloc
but since you're a "beginner"
Python or js
or
Oh I thought the multi line output was in purpose
but looks like you already got some tips on that :)
No, but that was a stupid mistake I made but luckily with the help I fixed it.
Now I only have to fix the weird 2222
what does your malloc look like
char* newstring = (char *)malloc(i + cnt * (len1 - len2) + 1);
make sure that adds up to the length of the new string + 1
So could I do something with the original string + length word 2?
i've got some ideas on that but I'm not sure if those will actually fix it:
c type strings (the char* ) are "Null terminated", which basically means that at the end of a string there is one byte with only zeros.
My first thought was that this byte was lost during the copying process. You can try adding newstring += "\0" before your print
hmm ok
But could I do something like that in malloc?
you could double check if the amount you're allocating is right by printing it
So printf malloc?
I'm counting 43 chars in the final sentcence
+1 for the null terminator, so its off by one
So the malloc is fine?
remove the + 1 in it
What I don't get is why there are 5 additional chars (so 49) when only 45 bytes are allocated
hmmm
this is with the 1 removed
sure the null terminator didn't work?
I don't think you can append char pointers like that in C
oh mb
language chaos in my brain xD
Yeah doesn't work sadly
bc for me it looks like there is no null terminator so printf prints everything from memory until it finds a \0
But can I add the 0 pointer, with something like newstring[i]='\0' ?
That's currently the only thing that comes to mi mind
That also does nothing
something in this direction might actually work as the [i] just adds i to the pointer value of newstring
^ you just have to make sure the last character in the string is a '\0'
the last char in the string has to be \0, right. So if I know what the last char is I can set it to \0.
we could try checking for the null terminator like this maybe
i think so
in the case above this would be 43
strlen returns 54 because it's not null terminated I think. Where do you declare the initial string
In the main(void) I edit the string in a function
can you put a '\0' after dog
hmmmm that is not good
the issue most definitely lies with the null character in the string. Are you declaring arrays anywhere for strings, make sure theyre + 1 in size to make room for the \0
{
int a = stringreplace;
char search[100];
char replace[30];
char strzin[] = "The quick brown fox jumps over the lazy dog\0";
printf("%s",strzin);
printf("\nWelk woord moet vervangen worden?\n");
scanf("%s", search);
printf("Welk woord moet er voor in plaats komen?\n");
scanf("%s", replace);
stringreplace(strzin, search, replace);
return 0;
}
This is the main function, in which I get the word to change and replacement.
But the allocation size for replace and search should be big enough right?
yeah the problem is probably where you declare the new string that's printed. Whats the int a = stringreplace; line for
I have to print the number of words that were changed, so return value of the function has to be a number. but I don't do anything with that for now
But with that gone the problem still persists.
you can remove the \0 from strzin, as ``` char strzin[] = "The quick brown fox jumps over the lazy dog";
is the same thing as ``` char strzin[44] = {'T', 'h', 'e', ' ', 'q'......'d', 'o', 'g', '\0'}```
are you trying to modify strzin in place or are you declaring a new string then using strcpy
{
int i = 0, cnt = 0;
int len1 = strlen(with);
int len2 = strlen(what);
for (i = 0; str[i] != '\0'; i++)
{
if (strstr(&str[i], what) == &str[i])
{
cnt++;
i += len2 - 1;
}
}
char* newstring = (char*)malloc(i + cnt * (len1 - len2)+1);
i = 0;
while (*str)
{
if (strstr(str, what) == str)
{
strcpy(&newstring[i], with);
i += len1;
str += len2;
}
else
{
newstring[i++] = *str++;
}
}
size_t newstrlen = strlen(newstring);
printf(" str length %d\n", newstrlen);
printf("%s\n", newstring);
printf("malloc: %d", (i + cnt * (len1 - len2) + 1));
}```
I'm declaring a new string and printing that
Now I'm just sad
how are you compiling
I use visual studio, In a C++ project with the source file named practicum7.c
i'd recommend using gcc to compile, https://www.guru99.com/c-gcc-install.html
I'll try gcc tomorrow, and I will definitely ask my teacher why I have this problem.
Thank you so much for your help!
building in linux is so much easier, give WSL a try
^ ubuntu in the windows store
Hmmmm, I'll look into that
I gave ubuntu a try once, but switched back to windows because of convenience
WSL just gives you the linux bash terminal
I run a flavor of ubuntu basically almost all the time because of just convenience
I have all my ssh keys
all my dev stuff works
It was a few years ago, and it also was the PC I used for gaming. But I might switch to linux in the future. Windows 11 doesn't look interesting to me.
I keep windows installed
only for games
proton/wine/lutris is pretty good these days
I can run basically most games on linux
I've heard great stuff about proton.
I mostly just keep windows installed cuz of storage
I have all my games already installed on ntfs formatted drives
working in WSL bash in Ubuntu
nvm you used wsl too
hey so why doesn't this work in SQL Server: ```Alter table Countries Drop Constraint CHK_Phone_code
I want to drop the check constarint
nvm fixed it
using the python Google-Images-Search i would like to chose a random image from a search, so like a random image in the top 1000 results for the search cat, how would i do this
You will want to start by storing the results from your search in some kind of data structure like an array, list, dictionary, etc. Say there are 1000 results, you will then want to generate a random number from 0-1000 and use that number to access that element of the data structure
Went from this to this
Seems like wasting memory. Might be enough to just generate number n=<0-999>, then do the search and pick the nth result
If its supposed to be repeated calls then it might be worth doing some storing. For 1000 results it couls be prefetching and storing all, but for larger numbers id go with a limited cache
Yeah but i figured an array would be easier for a beginner to grasp
@steep mauve @night flame I managed to fix my problem. These 2 simple lines fixed the weird artifacts after my string.
The problem is I don't know how to pick a specific result, I don't see anywhere in the limited documentation of the api where I could do that.
from what i see it seems that gis.search({'q': 'puppies', 'num': 3}).results() is an array/list, so to get the 50th result out of 100 you could probably do gis.search({'q': 'puppies', 'num': 100}).results()[49]
(just from having a quick look at the docs)
it does seem that it loads everything into memory, so you could optimize using for example the paging query - use a pagesize of 1 and get the Nth page -> you get a page with one element which is your wanted Nth result
Sorry if this is a really dumb question with an easy answer, but how would I download that image?
According to https://pypi.org/project/Google-Images-Search/#programmatic-usage it seems you thrn just do .download('/path/to/directory')
ah nice, so it actually was the null terminator
Yeah, luckily I didn't have to change everything
How to find the locator of web element inside script tag selenium java
read the code
really feels like this is a google search than chat
I was wondering if anybody could help me, I am doing a school project for a Database and can't make sense of where I am supposed to place my function/trigger for a table
I’m wondering if i should learn C as my “first” language. i’ve dabbled in other languages ofc but I haven’t gone past loops and lists and if else statements and such yet
what do you guys think? people say it will teach me very valuable info but also i will instantly die upon starting to code (?)
if you have a technical background then C is a good language to get started
be ready for a lot of headaches tho
C is definitely going to be more difficult but you would come out better than say starting with Python, in my opinion. If you stick with it I think C is great
Yeah C is kinda like the fundamental
My university used to do C as the first language, and now they're switching to teaching both C and Python first. I think it's not a bad idea to do it that way. Python is great at just getting your foot in the door for programming, but C will be helpful for learning more fundamentals etc.
Personally when people ask me a question similar to yours, I tell them to try Python first, and if they get into it and are interested in learning more fundamentals, to try C as well. Otherwise I see many people get too discouraged by C right away
Btw does Ajax work in Java
Because I wanna link a MYSQL DB with a PHP server to java for a Minecraft plugin
I write computer forensics software for a living, and just published a blog post documenting the latest capability I added on the open source side (The Volatility Framework). If you want to see how deep-dive memory forensics and malware analysis is done, then give it a read! Comments and feedback appreciated! https://volatility-labs.blogspot.com/2021/10/memory-forensics-r-illustrated.html
If anyone is looking to make a quick $50 Im in need of an Excel macro/script (VBA, Python, whatever). I need to combine spreadsheets where col. A would be identifiers, and col. B would be the values attached to said identifiers.
After combining, there will be cols B,C,D,etc (B from each sheet gets appended as a new col). The values need to be properly matched, or just left blank(null/0/whatever) if they didnt have a corresponding value attached from their respective sheet it was imported from.
Not sure if this even makes sense.....
I think VLookup because ive never heard of ODBC lol
Learn Python, then C
It's good to come into C with at least some idea of how a programming language works
Then you have a base to draw comparisons from
Nah c first
I like the way Harvard's cs50 teaches it
A little scratch to understand logic, then c
Then python
C then python
holy hell please don't learn Python as a first language. You know how people talk about VB? Right, well Python is VB, 30 years on.
I learned Python as my first language
now I look at javascript code for 10+ hours a day https://staff.tnylnk.org/img/14383917102021.png

Python is a great first language. And is still very relevant in modern day as opposed to Visual Basic. It all depends on the application and field anyways; bashing on Python makes no sense.
I think you missed the point: python is the modern day equivalent of VB. It enables people without fundamental understandings the ability to do things they just shouldn't be capable of doing - and that leads to all kinds of fall-on effects.
In that context of course it's relevant in modern day development - just as VB was 30 years ago. It's become the drop-in replacement for development at that level.
"It enables people without fundamental understandings the ability to do things they just shouldn't be capable of doing - and that leads to all kinds of fall-on effects."
Elaborate
This just sounds like "uhhh well unless you understand algorithmic complexity, complex memory management, data structures, etc. you shouldn't be writing code." Python is a very strong language to get tasks done in, has a strong ecosystem of packages, and is the defacto standard for machine learning and data processing right now. I think a language that empowers a user to get things done is absolutely a great beginner language. For someone struggling to learn programming, sometimes all that matters is getting to a working product which is valuable experience. And that's 90% of what matters in the real world anyways.
I like python.
However I would still recommend c/c++.
That's what I've experienced
And i still recommend it
I wouldn't recommend C or C++ for the vast majority of people learning to code. The barrier to entry is very high. Every time I return to writing C code, I spend hours just fighting with compiler issues because of convoluted complex rules about having headers and declarations just so. Nothing wrong with C/C++. It has its place in the world and its applications. But it's not beginner friendly, and its extremely unlikely that there isn't a different language that will serve a beginner much better.
In short, if you want to do web development, learn Javascript, maybe PHP. If you want to do game development, Unity uses C#, Unreal Engine uses C++ (iirc). If you want to do machine learning or data processing, use Python. If you want to do app development, I think Java is widely used, but Javascript can also be used; app development is a more complicated mess of things.
Start with what you want to accomplish, then pick the tool that will help you get going and stick with it. Once you build up fundamental programming skills your choice of language will matter less and less.
tensorflow.js. It's the only way 😄
From my experience, python is a great second language, but as @sick coral said, a programming language is just a tool and the programmer has to find the right tool for the job
In the end, I don't think it's that important which language you use first but more that you just start doing something
You will start learning concepts and patterns which will make it easier to learn new languages later on
I thought you use python for work
Current project in on is Python/django. Not by choice. It's a turd.
you done with python/ai and now in python/django?
I'm doing flutter and I need some help
I want to make a feature where the user can change the video (background) by picking it. Currently, I have:
Home page:
Stack() in body calling the BackgroundVideoPlayer(bgPath): bgPath is the path of the video background and also en ElevatedButton to choose cycle through the background:
Center(
child: ElevatedButton(
onPressed: () {
print('pressed' + bgIndex.toString());
changeBg();
},
child: Text('1'))),
In BackgroundVideoPlayer I have this:
class _BackgroundVideoPlayerState extends State<BackgroundVideoPlayer> {
late VideoPlayerController _controller;
@override
void initState() {
super.initState();
_controller = VideoPlayerController.asset(widget.bgPath)
..setLooping(true)
..initialize().then((_) {
// Ensure the first frame is shown after the video is initialized, even before the play button has been pressed.
setState(() {});
});
_controller.play();
}
@override
void dispose() {
super.dispose();
_controller.dispose();
}
@override
Widget build(BuildContext context) {
return SizedBox.expand(
child: FittedBox(
fit: BoxFit.cover,
child: SizedBox(
width: _controller.value.size?.width ?? 0,
height: _controller.value.size?.height ?? 0,
child: _controller.value.isInitialized
? AspectRatio(
aspectRatio: _controller.value.aspectRatio,
child: VideoPlayer(_controller),
)
: Container(),
),
),
);
How do I make it so that when the button is pressed, the background changes?
Hi,I was wondering if someone here is very familiar with deep learning object detection, in particular video object detection. I grasp the concept of the backbone (e.g. resnet-50), however I am not sure when it comes to neck and head. How the pipeline differs in single stage vs 2 stage detectors. How and where to add methods such as optical flow (DFF, FGFA...), LSTM, tracking etc. I would really appreciate if someone could have a chat with me or point me the right way 🙂 (please mention me in reply, so I dont miss it. too many joined servers)
What is web
What do you recommend to learn programming, I just look at w3schools cause it has just enough
Harvard CS50.
so their online resources?
Yeah. CS50x is the free, online version.

display: flex;
flex-direction: row;
flex-wrap: wrap;
}```
Does this work for this?
I know its a basic thing lol but I'm just wanting to make sure I'm doing this right
Dunno if I need a wrapper
Have anyone used mongodb's change stream before?
I can listen to changes in one database just fine, but I can't find any way to listen to all the database in the cluster :( the documentation doesn't have any examples
Alrighty, just ordered myself a new dev ultrabook, figured I haven't bought a new one since my 15" Dell XPS i7 6700 which was too big for what I wanted.
So in a week or so I get myself a new birthday present -Yoga 7i 13.3" Carbon White, i7-1165G7 16GB/512 😄
Now the wait.
Hell, I just realised it's been over 2 years since I upgraded from a desktop 6770 to a 3700X.
Tell me when you got it and you're satisfied
this code is wrong 🤦♂️
unless some language other than Python has print and requires ;
its accurate in Dart
What the fuck is-
Hold on
oh it's for web and mobile apps
Well I guess it's accurate https://staff.tnylnk.org/img/18155420102021.png

I might learn this
looks cool
imagine complaining about channel description
function print(val) {
console.log(val);
}
Custom functions exist...
This is an index to notable programming languages, in current or historical use. Dialects of BASIC, esoteric programming languages, and markup languages are not included.
Might be somewhat useful for some application but I've just been playing with the new EyeDropper API that's in the latest Chrome stable https://codepen.io/andrewhawkes/pen/rNzMGLv
A quick demo of the new EyeDropper API coming to Chrome in V95 https://wicg.github.io/eyedropper-api/...
Pro tip: test in prod
Are you me
If your test suites are good enough, you never need a dev/test/uat/preprod environment.
testing is never an option. always go straight to prod
always run your functional test suite as part of your checkin pre-commit hook.
post-commit has auto-deploy to prod.
also, pre-commit must fail unless the code-coverage percentage is not higher than in the previous checkin.
I offload my test suites into dev-test CI/CD instead of precommit
That way I can do development anywhere without needing the extra toolkits
I really hope you realise I was joking and that what I said is a terrible idea.
Also, having you build only work in CI is terrible too
Ok good, I was being nice by just responding in general instead of going "U fucking what"
Ehhhhh Works for me and my lazy ass
Just remove all tests, much easier
Alright I need help making something.
So my phone's reception is VERY bad in my room and my dad can't reach me whatsoever. I wanted to make something where he just presses a button on a website and I get a notification on my computer. Pretty sure this is possible but how hard would you guys say it is to make?
That would be much easier to do with Facebook Messenger or iMessage
Facebook sucks and I'm gonna get an android soon
- I like to go the hard way on everything
It's not too complicated, but if you are starting from the basics, it is a lot to learn - web frontend, APIs and desktop apps
frontend is easy, literally just gonna be a huge button and nothing else
tho I never worked with APIs before

other than making a call and recieving
Do you know how you would host it all? Would it all run on your computer?
I have a Raspberry Pi to host the API on
it also hosts my discord bot but shouldn't be a problem since both are pretty small
Ok. So it all sounds quite simple. Do you have any programming experience at all with Node/C# etc?
Or even Python
I know Python and Javascript(node)
well you can use your js knowledge to make an express server or something to handle incoming requests
you can use the browser push system to get a notification
on your pc

Yeah, sounds like you can get the front end done quite easy. The API could have 2 routes (post and get request). Your desktop could (although not the best solution) periodically call the API and check for changes. Your Dad would send a POST request to the API.
here are some good docs for the web push system https://developers.google.com/web/fundamentals/push-notifications/
There are more complicated solutions, but this is the simplest i can think of
I hate frontend
Me too buddy, me too
webpack? rollup? tf are those
Thanks for the help 
scss all of a sudden? urgh
gotta save that
yes yes
Actually you know Windows has the WNS now
Literally a waste of time
Doesn't that require me to use Windows tho?
I have alot of that.
well the thing is that WNS requires an app client
You could also just use an automation to send an email
I don't check my email very often and why make website when my dad can just email me himself?
You just do an HTTP POST to the WNS Endpoint with the Authentication Token and SID
I mean an iOS shortcuts automation
Yes, but it was just an example
Either way I'm not switching OS just so my dad can contact me in an easier way
Edge gives you the Notification Toast Natively now
not sure what you mean by that, so does chrome and firefox
they all support it afaik
I think he mean WNS
I mean to WNS, You can just send to Edge a Toast
oh
well something like that requires a win10 client, so i just dont think its the most portable solution
It doesn't really need to be portable, my phone gets great service literally anywhere that isn't my room
how i would do it is i would have an express server that would host a dispatcher page and a subscriber page
But again, I don't really want to switch OS for this
the dispatcher page would have a button to send the alert
the subscriber page would prompt you to enable notifiactions for that page in your browser
Again, why do that when my dad can sms me directly?
Or self hosted PBX to call software phone on desktop
You could program a big ass button to send a default defined SMS
This is me.jpg
seems unnecceseary ngl
but its a way to notify
true
Ngl, this all seems unnecessary
also true
I have this stupid project I did with one of those Point of Sale Price Screen Poles that was attached to a GSM Modem, it would just read off the texts messages I got on that SIM's #
I would love to find out how places like Twilio send SMS messages... It just sounds cool
Hmm? Its just a SMS Gateway
They are physically attached to the Mobile Carrier Networks/POTS Switching Units and offer the communication over Internet Services
This is my Home DID VoIP Number for example
SIP/VoIP has a native SMS Command
https://www.bandwidth.com/ This is what a majority of these Tier 2/3 Providers are reselling/using
Bandwidth.com is quickly buying up POTS Termination Space when it becomes avail and tying in to modern telephony networks where avail (In the US, AT&T is holding a monopoly on the POTS System to charge the State and Fed Govt and fighting the change to a pure VoIP System while other countries have moved already)
In going to look into that. I don't want to rely on a 3rd party API like Twilio
They are not a 3Rd party, they are a legit Telephony Termination Provider
Twilio is Tier 2, same Tier as like... T-Mobile, Verizon, etc
AT&T is Tier 1
its just Twilio offers both SIP, REST, and various other forms of API Access to the same endpoint terminations
Oh, really. I thought Twilio was just a wrapper
They are more aligned for Internet Services Automation and IoT
Nope, they are legit holders of the Phone #'s they use
If you were to take like... VoIP.ms or some other SIP Trunk/VoIP Termination provider, you could do a wrapper similar to what they have but you would be Tier 3 Reseller
Bandwidth.com is offering the same
Their webRTC API Is fantastic
anybody got time to look over some json newbi problems ^^;
no
I was looking at voip.ms for a voip phone since 20bucks per month for landline verizon is too much
Voip.ms is dirt cheap
Well, what OS do you use?
I use Linux
Build a minimal node frontend with just a button, have a TCP socket in that application, and use nc host port | notify-send.

The latter might need some read wrapping in a shell script, but the whole solution doesn't need a lot of code, as long as your fine with everything basically being hot glued together.
Maybe play around with notify-send before you tackle the rest though. It's sometimes a diva and needs special care. It also depends on your WM/DE and other stuff.
Hi guys, moved to linux, just wondering what IDE you guys would recommend for c++ stuff? I used visual studio on windows and like the project style setup
Vim?
QtCreator is pretty good
Gnome builder (most generic name ever)
Vscode
Why vs code?
Use cli for compiling with cmake
yeah personally i use vscode and g++
It's nice
Yeah, if it's a simple project just g++ works
Cmake for more complicated builds
Vs code might be a good option because of there similarity. They are also very much different.
Vs and vscode are not alike basically at all
There UI styling and key mapping are similar.
There programing languages in vs code has been supported more by the community than visual studio.
yeah, vsc still falls short for a lot of testing and debugging I'm finding.
Yes, people should use good old notepad /s
i use notepad ++ for java and html and i use VS for c /C#
if u mean the og notepad program .... its in everyway inferior to notepad++ tho
atleast ++ knows when im coding or just writing an invoice
u may aswell be coding on sticky notes
lol
preference ... if im not building a form app i can code a command prompt app without the hand holding of an ide ... i prefer free form coding it gets the job done just fine in most cases
my answer to ur question
It's not free, but CLion by JetBrains is good
Yeah I've had a look at jetbrains and it does seem interesting
Idk, it's fine
You can control gdb from within vsc
i know barely anything about developing AI but i want something that gets images from a dataset and compares if it belongs in that data set or not by a likelyness score where would i start with that?
well first you should research how ai works to get a baseline understanding
what part of ai and where should i start
what would you consider a baseline understanding
If you want to do shit quick with minimal coding this can help train your models https://teachablemachine.withgoogle.com/
what do i do with this?
You can train your model there then export a tensorflow.js model
what do i do with that
Whatever you want
ok how do i do that
ok where do i upload a tensorflow.js model to google?
do i just put it in the search bar
Use a tutorial that already exists
ok which tutorial do you suggest?
Google can suggest that
which one do you suggest
its not working
legit i ask where to start with ai and you tell me "google" you think i haven't tried that?
people don't understand that when you don't know something you don't know what to search or click
In this codelab, you will learn how to use the Google Cloud Vision API with Python.
I don't know what that is, but it looks promising.
that's not really what i want
i need something that takes multiple images in a dataset and then compares that to a random image and gives it a score on how well it fits into that dataset
In this episode we're going to train our own image classifier to detect Darth Vader images.
The code for this repository is here:
https://github.com/llSourcell/tensorflow_image_classifier
I created a Slack channel for us, sign up here:
https://wizards.herokuapp.com/
The Challenge:
The challenge for this episode is to create your own Image C...
@nocturne willow this is true, Google " How does computer vision work"
so lets say for example its a dataset of dogs and you have 5 dogs in one dataset with certain similarities id need it to take another picture and say how well it fits into that dataset
Learn everything you need to know about OpenCV in this full course for beginners. You will learn the very basics (reading images and videos, image transformations) to more advanced concepts (color spaces, edge detection). Towards the end, you'll have hands-on experience building a Deep Computer Vision model to classify between the characters in ...
ah thanks
I don't really know what a base line understanding would be or how I'd get to that point there really isn't much resources for learning
I know about neural networks but not how to actually use them
https://www.tensorflow.org/tutorials/images/classification
this has everything you need. It tells you how to create and train a model based on a dataset and how to use that model to determine similarity with a new image
corny joke: these c lions are really getting to me 😠 *
I don't get it
you don't have to
That's what she said to you

i wasn't asking to ask i was asking for someone to look in real time, by time you even sent this irritating git of a reply i didn't have any time left to call out your call out
what even
you're missing the point, if you were short on time you should have just asked the question instead of asking if you can ask a question
To anyone who knows python how do I show my current version of python in my .py file?
do i use print(sys.version_info) ?
i think just print(sys.version)
make sure you import sys
you're missing the point still because somehow you've mistaken me for asking a question TWICE what i was asking for, was eyes
anyone have a preferred liveserver for vscode besides this one (the maintainer is a little busy)
Yeah, but "json newbi problems" is a little bit unspecific. JSON format problems? Those can get mentored or answered by most JS or WebAPI facing devs. JSON API problems? That might depend on the API, e.g. a foobar user might not know anything about the quux API. If you add a little bit more information, then maybe someone will step up to guide you through the process.
Imagined if he simply asked. The world would be a better place
i'm trying to write a portion of a security script that will list users and present the user options to delete them, or change their account type (powershell)
im not that experienced with ps in general
Wrote a new feature addition for my job. All of the unit tests I wrote for it, and previous ones, worked perfectly. No errors. Submitted it, it worked for my supervisor, but he wanted a function reformatted - no biggie. Clone the code back from GitHub a few hours later - all of the tests are failing. I've changed nothing. Thought it was my system, ran them on GitHub's service. Still failing.
is it transitive and/or determinitive?
does it utilise anything from the environment?
Ran it again this morning, no reboot or restarting the application. Turned my monitors off and went to bed, then turned tham back on this morning. All of the tests pass
if i knew what i was trying to identify i would't be here asking for someone to look at something, i'd be solving it
you want me to provide more detail? great! i'd love to know what the details are too, can i be more specific? no, i havent got a clue, instead i have someone who expects me to know everything before i even ask
Feel free to DM me, maybe I can help identify it.
thats fine, i only needed eyes not a lecture.
like i said from the start.
i'll have to put it off for now, only on here seeing i was pinged in my end of night routine again.
just glad theres been some understanding however slight it may be
:/ timezones suck. sorry i've gotta run along so quick
CSS issue
I'm using sliced images as a background for a table, looks like this, right
the issue is that when i resize the browser it looks like this
the middle parts overflows sides
#top-left {
background-image: url("slice/slice_0_0.png");
background-size: 50px;
width: 50px;
height: 50px;}
#top {
background-image: url("slice/slice_0_1.png");
background-size: contain;
height: 50px;}
#top-right {
background-image: url("slice/slice_0_2.png");
background-size: 50px;
width: 50px;
height: 50px;}
#left {
background-image: url("slice/slice_1_0.png");
background-size: cover;
width: 50px;}
#mid {
background-image: url("slice/slice_1_1.png");
background-size: contain;
font-size: 25px;}
#right {
background-image: url("slice/slice_1_2.png");
background-size: cover;
width: 50px;}
#bot-left {
background-image: url("slice/slice_2_0.png");
background-size: 50px;
width: 50px;
height: 50px;}
#bot {
background-image: url("slice/slice_2_1.png");
background-size: contain;
height: 50px;}
#bot-right {
background-image: url("slice/slice_2_2.png");
background-size: 50px;
width: 50px;
height: 50px;}
<div id="main">
<table cellpadding=0; cellspacing=0>
<tr>
<td id="top-left"></td>
<td id="top"></td>
<td id="top-right"></td>
</tr>
<tr>
<td id="left"></td>
<td id="mid">
sgjdsgjdtyk<br>
atjoisrjoinj<br>
atpksrpnkpskmpokponkpoxfksgpnjdpfnpodkcgnkpfocnk
</td>
<td id="right"></td>
</tr>
<tr>
<td id="bot-left"></td>
<td id="bot"></td>
<td id="bot-right"></td>
</tr>
</table>
</div>
@nocturne galleon here it is
i have no experience in this, I just asked you to ask your teacher since you have one. I guess you can try 100% as the width and height, other than that I am no help. :(
ah sorry then
its okay!
whyy
don't use images
i have to
why
don't use images for lines
i have to use images for the whole thing
just use a div and set a border corner radius
the point of this site project is using sliced images in a table
not my idea
ignore the fact that is is bad design
have you got an idea how to fix the overflow issue?
I have a recurring dates unit test, but I need an alternative way of testing, compared to what I have currently...
Anyone have any ideas?
Above this section, I'm basically creating a recurring announcement using my system, and then this is just a test to confirm that it works. This kinda works, but I'm trying to clean up ugly code in several areas, and despite being fine with leaving this, I'm cleaning up other areas that prevents this specific test from working in it's current state...
Got 80/90 points on a coding assignment. Smfh. Because I messed up one word of code I got 10 points taken off

is the @fervent orbit open source or??
Lol definitely not

setting sizes of elements in pixels usually ends up backfiring when trying to resize the window, i would try using relative size units, 'rem' for example or percentages. Also what the hell using only images, feel sorry for you :/
#top-left {
background-image: url("slice/slice_0_0.png");
background-size: 10rem;
width: 10rem;
height: 10rem;}
#top {
background-image: url("slice/slice_0_1.png");
background-size: contain;
height: 10rem;}
#top-right {
background-image: url("slice/slice_0_2.png");
background-size: 10rem;
width: 10rem;
height: 10rem;}
#left {
background-image: url("slice/slice_1_0.png");
background-size: cover;
width: 10rem;}
#mid {
background-image: url("slice/slice_1_1.png");
background-size: contain;
font-size: 25px;}
#right {
background-image: url("slice/slice_1_2.png");
background-size: cover;
width: 10rem;}
#bot-left {
background-image: url("slice/slice_2_0.png");
background-size: 10rem;
width: 10rem;
height: 10rem;}
#bot {
background-image: url("slice/slice_2_1.png");
background-size: contain;
height: 10rem;}
#bot-right {
background-image: url("slice/slice_2_2.png");
background-size: 10rem;
width: 10rem;
height: 10rem;}
does not fix the issue
out of curiosity does anyone know why directwrite for d2d1 have direct support for translating chinese?
i am just calling drawtextw, no idea why it is doing this on this project and not another one but pretty cool that it for some reason can translate everything to chinese.
nvm i am as blind as a bat, it is converting the text to chinese. i thought directwrite was doing some language pack shit somehow. well now this is just a generic annoying bug that needs fixing.
Hey, I am trying to implement Unity ads in a game I made, the test ads work perfectly when I am in editor but they dont work at all after publishing it on google play.. Any idea why?
Are you able to make a live usb with MacOS on it?
I can’t find any MacOS DMG or ISO to try it.. if anyone could point me to a reliable and preferably fast place to download some I’d appreciate that greatly also
You typically need a Mac in the first place to get your hands on an ISO, although I have somehow managed to find one before. Google around for one and I remember there being a site having a bunch of options, I'm just not sure what you might need.
Actually I just found it. Apple's site, I guess they changed it to allow older downloads
🙏
I would’ve never thought Apple would allow that.. even their documentation still says you need a Mac
It's likely just newer images aren't on there, but anyone looking to rebuild an old MacBook would benefit from this
I've just replaced my MBP16" 2019 with i9 with a new one with M1 Max
and ran the test suite of my client's project
i9: Finished in 616.244299s
M1 Max: Finished in 256.930086s
also the fans weren't even noticeable on M1 Max
it's ridiculous how much better the ARM chips are for development, at least in my niche
(which is Ruby on Rails app development and profiling)
now I know that the i9 in MBP16" 2019 is an older intel 9th gen mobile chip, and I don't even have the fastest version (mine is 2.3Ghz base clock), but still - wow
I wonder how the M1 config would stack up against a desktop i9-10900K. We see the different between what I presume is an i9-9850H, but that doesn't tell all of the story perse. In development, would it still be better to have a desktop over a macbook, or have macbook passed even what some might consider a high-end desktop by modern standards?
I wonder if it would ever be technically possible to have 100% efficiency on CPUs and GPUs. Imagine a world without needing heatsinks, fans, or coolers.
A world of perfect silence, 100% RAM compatibility, and 100% PCIe compatibility. Every PC case is suddenly following the height of the tallest consumer GPU, and that's the determining factor.
best way to learn C++ ?
Anyone knows JavaScript here?
oh 😦
The guy often asks to ask here
I figured out anyway. 🙂
https://codepen.io/sqpp/pen/gOxxepQ
Any clue why I only see the TLDs? Seems like my data still returns in objects, not arrays 😦
A book from this list https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list, or, if you're not a native English speaker, a well-reviewed book in your own language. If you want to use another book, check whether it shows or uses std::vector or malloc first. If malloc gets mentioned before std::vector then the book will focus too much on C instead of C++.
That's also a problem with many online tutorials, they will teach you C, then switch to C++ and in total give you a very strange "C with classes" variant. Many Udemy courses start that way, unfortunately.
I guess it's fine if you want to learn the language from the ground up, but with the overall complexity of C++, a top-bottom approach works better IMHO.
c++ is a fairly deep language at this point. If you're looking to start out, I would recommend finding some challenges like advent of code ( https://adventofcode.com/2020/day/1 ) which start out pretty simple and build up in complexity over time. Use this as a platform for building some simple c++ solutions that only really need you to know about the basic c++ syntax, some containers like vectors, and how to read files with ifstream etc.
Once you've built up the muscle memory of how to define classes, methods, header files, etc etc., then you can start tackling other projects to learn how c++ handles inheritance, templates, garbage collection with shared/unique pointers, lambdas, etc.
hey guys im new to php and im trying to replace some stuff in an SQL row
mysqli_query($con, 'UPDATE wledger SET usd = $newusd WHERE id = $tid ');```
$newusd is a decimal, $tid is a string
i printed them out before this statement and they look fine
I can put them into the sql table just fine directly through a command (using test values), but when I run my script, there aren't any errors or anything, but the sql table remains the same
the table has columns: id (varchar), utime (unix timestamp, largeint), amount(bitcoin withdrawal amount, decimal), usd(usd equivalent amount, decimal)
the table already has every value except usd
which I calculate to the variable $newusd
I also tried doing WHERE utime = $ttime, $ttime being a LARGEINT that exists in the table
In PHP, when you use single quotes for your strings the content inside it is not interpreted. What this means is that your variables will not be replaced by their value. You need to use double quotes to achieve this behaviour
ohhhhhhhh thank you so much ill try that now
HELL YEAH it works now
thanks man, didnt know that
so if i have single quotes, variables inside dont get replaced
My pleasure 🙂
Exactly !
alright php bros
hello again
so i have this mysql table right
and one column is a BIGINT
say I want to re-organize said table, so that it sorts the rows descending according to their value for BIGINT
I know that there is ORDER BY colName DESC;
but that just returns an organized table
is there any way to just re-organize the existing one, or do I have to a) make a temporary, sorted table b) iterate through it c) replace the old values with the new?
Why would you want to do that ?
the int values are time
and i want it to be sorted by time
its unix timestamps
its like a transaction ledger
just ease
point is can i do it?
You could do it like so : ALTER TABLE tablename ORDER BY columnname ASC; even though I don't think it's a very good idea 😉
The order is only important to the part of your program in charge of processing the data
The database itself doesn't care about order
It is much more efficient to just use ORDER BY when querying your db
Otherwise you'd have to reorder your database any time you insert/remove data from it
Fair point
In the end, you do what ever you feel is best for your application 😉
Only helping a brother out, good luck with your project
"faily deep" lol
Youtube Channels:
-
sentdex, neural network from scratch in python (the whole channel is about ai/python)
https://www.youtube.com/watch?v=Wo5dMEP_BbI&list=PLQVvvaa0QuDcjD5BAw2DxE6OF2tius3V3 -
Jeff Heaton
https://www.youtube.com/c/HeatonResearch/ -
Aladdin Persson
https://www.youtube.com/channel/UCkzW5JSFwvKRjXABI-UTAkQ
Building neural networks from scratch in Python introduction.
Neural Networks from Scratch book: https://nnfs.io
Playlist for this series: https://www.youtube.com/playlist?list=PLQVvvaa0QuDcjD5BAw2DxE6OF2tius3V3
Python 3 basics: https://pythonprogramming.net/introduction-learn-python-3-tutorials/
Intermediate Python (w/ OOP): https://pythonpr...
Would you like to learn about deep neural networks and other areas of my machine learning research that has allowed me to score in the top 7-10% of some Kaggle competitions? If so, please subscribe to my channel! My name is Jeff Heaton, Ph.D. I am a VP of data science for a Fortune 300 company and I teach a deep learning course as an adjunct ...
@nocturne willow all of these are ai/machine learning channels with actual programming examples.
The only issue I have with Sentdex, is it seems he starts video series' but doesn't finish them
Please have a look at prepared statements. They will fix not only this issue, but also potential security issues with your current raw SQL syntax. See https://www.php.net/manual/en/pdo.prepared-statements.php.
indeed, always prepare your statements
Any recommendations for vps hosting in Europe?
OVH or Scaleway for me
Thanks, will go have a look
I know about prepared statements, but what's so much more secure about them?
this script is entirely internal btw, it runs on my server and is completely detached from anything else
Prepared statements prevent SQL injections, as they cannot accidentally contain unescaped SQL. For example, if $newusd was 1; -- then all usd cells in the wledger table would get set to 1. If you instead use a prepared statement and bind to :newusd (or whatever the syntax in PHP's library is), then 1; -- would get escaped and the WHERE is still part of the query.
See also the classic https://xkcd.com/327/
I see
ORMs.are very nice
ORMs might be overkill in certain cases
I don't really recommend them for smaller websites
it doesn't kill or doesn't harm but it's like using a sledgehamer to nail down a tiny nail
whats that
ORMs CAN be nice. But they can also be incredibly restrictive.
For example I am currently working on a POC application using Django. One of the things I want to do is return all sections related to the version of a document having the highest revision number that matches a certain publication status. good luck pulling that in a django query/filter. I can easily write that query in SQL.
site basically is built like this, all out of divs, trying to make space between buttons with margin-top and margin-bottom makes white space above the header on the right container
like this
seems to only happen on firefox
Have you tried padding?
As in
padding with css?
.sidebar button {
padding: .7rem 0;
}
on the button elements
note that will target every button in the sidebar
https://codepen.io/yokeing/pen/XWazjKe
How do i put this on my wordpress?
The CSS and HTML doesn't seem to work out as intended
When in pratice
https://www.nicesnippets.com/tools/online-editor
Try pasteing the HTML in the HTML box and the CSS in the CSS box here
this is an online live preview tool
and you will see what i mean by "it dosent work out as intended"
One is scss, the other is css
Should i use Keil or Gcc for assembly coding with the pi pico?
I used https://jsonformatter.org/scss-to-css to convert them but you should be fine putting the original sass code into your website with .scss extension @nocturne galleon
It doesn't matter much
Gcc is free software and you could get some experience setting up your own toolchain, tho
So my tutorial which i bought is for Keil
You bought a tutorial?
Rip
So i friend of mine who is a programmer got me a pi pico for my birthday
And i wanted to write for it
And i wasn’t sure
Well, if you want to explore, set up gcc, you will be fine either way
@teal shore Please don't purchase a tutorial or course for programming ever again
Just my advice
Why not?
Because it is a waste of money
You could learn anything (especially programming) for free
Through the internet
Build your own curriculum, learn how to make your own knowledge system!
Lmao
@split rose You are a life saver
Thank you so much
How do i make the code on the "Proceed" button actully "Proceed"?
Bind it to a js function
Alternatively, use a js framework like react
or, other small js frameworks actually
am i forced to use JS?
for what
To make the proceed button actully proceed
to make it redirect?
or do what
well my intension was to use it as a "preloader
For this website
That i made for a client
or "client" / friend
That isn't a redirect
depends on what you want to happen, do you want a seamless animation thing, or a simple redirect
if you want an animation thing, I'm not your man, I have no clue with fancy frontend stuff
Can you help me with that perhabs? I'm the R-word at javascript
somehow hide the main website content and then make an animation, idk
Same bro
Lol
Disable scroll on the page while the animation goes on, display it on all pages no matter where you go
and bind that button to actully proceed (not redirect, just a seamless animation and then boom fades into website after clicking button)
now thats the dream
why I hate frontend
Sadge
I can do all sort of bgp routing, ospf, networking, all that jazz to make websites run, but the actual development, nope
front end development sucks
lel
Sure
Somehow in js, look it up
Css has smooth scroll, if thats what you are looking for?
Well can i force it to scroll down the page automatically after a certain amount of time (s/ms) ?
Time to google/youtube this
ill make some popcorn
lol
Lets say i used JS then
can you give me some actual JS code i can paste
that will make the proceed button scroll down?
there is prob some on the internet bro
Best to learn it
in flutter,
is there a way to use didChangeAppLifecycleState ? I'm using it with AssetsAudioPlayer() and the player won't resume when I come back into the app. Here's my code
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
if (audioPlayer.isPlaying.value == false) {
// isPaused = false;
audioPlayer.play();
}
}
}
Does anyone know the correct way to scale-translate in css for any scaling
for instance:
scale: 1;
transform: translateX(100%) translateY(100%);
and:
scale: 2;
transform: translateX(25%) translateY(25%);```
How to make a button go to an anchor in HTML?
Anyone have suggestions for entry level pythons projects to test my skills/knowledge with? I want something outside of the guided coursework
Make an anchor tag instead and style it as button.
This college I'm looking at has an entire class for CSS. 
Holy shit.
I can't see how that would be necessary
It's an elective so thank god
But weird
I feel like its not THAT hard to learn that you need to somehow stretch it out over a like four month period
Unless it goes incredibly in-depth somehow
I can look at it. Letting you know though that the opening animation looks a bit rough and it'd be good to slow it down a bit and make it less jagged when it expands into white.
Besides that, I like it. It looks pretty nice

oh boy how many times i've asked myself "why is it so stretched out?" in college
college programming classes suck
sadly i have to agree, most were bad, though it's more of the educational approach in a whole in my country
With the one I'm taking rn all the website designs look disgusting and extremely outdated. Been times where I was deducted points because I followed what I was supposed to do and assumed I fucked up somehow because it looked gross so I fixed it a bit. But it was just supposed to look bad
In community college lol
ye outdated technology is an issue, when we got classes that would be useful then the teachers would screw it up
at least we learned how to look for info on the internet
Used Javascript on a project and my teacher said "thats a bit advanced for this class, be careful"
whoa, slowdown there
Lol
i didn't have these types of issues, the main issue was along the lines of "you need to look for an answer yourself, i can't guide you like a child...but if your idea is not what i thought of then you fail"
Oh jesus. I hate that lol
When they're really vague, yet theres actually a specific way they want you to do it. They just don't tell you
i understand learning to think of ideas, sure most of the time you won't be reinventing the wheel, but you should develop some critical thinking and understanding of certain concepts, but that should come with accepting different ideas, not grading you based on how close you were to the one "proper" result
I'm lucky and my profs so far don't care how I did it
as long as the output is correct whatever
i envy you
Yeah. There can be so many ways to do one thing and have it work, makes no sense to me to not just say the way you want that thing done
or better yet, let people actually think about it and solve it on their own instead of doing it that specific way
Lol
then at the end tell them why it's bad/good, if it's unoptimal show where and a way to fix it
It's more frustrating for me to work within specific boundaries my teacher gives than it is to just figure it out all on my own
Thats a good idea lol
Theres been times where my teacher or textbook was wrong about the way to do something and I realized and corrected it 
you use textbooks...
technically required for us, but I don't use it at all
libgen
rip
Textbook prices are ridiculous
we had some textbooks in first and second year, but those were for more theoretical subjects (discrete maths, physics, basic of electronics etc) and were available in the library
no wait, we had to buy one textbook for english classes
hey, with CSS, if it says to "align something to the right", is it fine to do float: right;
Half asleep
Lol
guys what programming language would u recommend to start with
i have no idea what i want to do with yet
or anything
It depends on what you are looking for. If it's just general programming, I would say Python is always a good place to start. If you are looking for game development, maybe C#.
not game development i want like general programming which i can use for many things
C and C++
If that's the case, the ones I would suggest (although many have different opinions) are the following:
- Python
- GoLang
- C#
- HTML/CSS (obviously)
- JavaScript/Typescript
HTML and CSS aren't programming langs
but they are building blocks to it
But you need them for most development
Do you suggest these as a first language? Imo, they are the most difficult, so get the basics sorted first?
Yes, well C is good to start
It's how I started
Lower level, very basic
I started with Arduino which is basically c/c++
Well not really
They are markup languages
And only useful for webdev
I only suggested them as you can't do much/any web development without them, so they are necessary.
Yeah, but still it's not html/css, it's the whole bundle, js/html/css
any good resources to learn golang
I highly recommend learning C
TABLE OF CONTENTS
00:00:00 - Introduction
00:00:49 - CS50 IDE
00:07:42 - hello, world
00:11:00 - Compiling
00:15:02 - Functions
00:18:38 - Return Values
00:19:03 - Variables
00:24:31 - Format Codes
00:28:29 - CS50 Library
00:36:03 - main
00:37:10 - Header Files
00:39:12 - help50
00:44:36 - Style
00:46:00 - style50
00:48:38 - check50
00:51:51 - ...
aint C rlly hard
no
only if you make it hard
it may be hard to do something complex, but fundametals are pretty easy
anything with a GUI will be a bit harder
but basic cli programs, nah
Finally!!!
It's a great start for beginners though. Easy stuff and can start to introduce them to more complicated concepts as they go and learn further
it's not a programming language
literally has no logic
doesn't run
I didn't say it was
Lol
Its a good place for beginners who are completely new to any aspect of coding
I disagree
?
html doesn't teach much
just how html works
doesn't translate to anything else, maybe markdown but that's it
Can get them interested in learning further and learning programming languages. I dunno, I started with HTML/CSS/Javascript and then went on to Python
For me it worked that way
I started with arduino, C is simple
Can someone help me what exactly is this?
You need to create an MX record with your DNS provider, and point that to the A record (hostname) of the mail server
Who is your DNS provider?
Where i run my server?
Is this for internal use or external? I highly recommend not exposing this to the internet.
External it's an email server
I will continue to help, but just so you know, you almost never have a good reason to run your own mail server for external use...
Do you have your own domain?
Jup
Ok. Who did you buy that domain with?
Yeah, ik just thought it would be a fun project
IONOS, the same place where i got my server
If you go to your DNS management console within IONOS, you should be able to set A records and MX records
And this is under my server management, correct?
probably not server. is there domain management anywhere? I haven't used IONOS before, so dont know how its set out
There is domain management
Ok. if you go there, does it say anything about DNS?
DNS settings found em
So, you're going to want to create an A record, and set that to the hostname of your server
Wait the hostname being the IP address correct?
hostname should be whatever you entered when you put "hostnamectl set-hostname {{hostname}}"
Ahh
it may not like you entering the domain with it. e.g. if the hostname is abc.xyz.com, you may need to enter just "abc"
Ok... that IP doesn't look correct...
but as long as you put the correct IP, that's right
TTL is?
If you leave it as Auto, it should be fine. It won't matter too much
Jup done
Now create an MX record, and set the value to the A record (such as abc.xyz.com)
the same as the A record + domain. e.g. abc.xyz.com
Ah, okay
It says it conflicts with something?
Should i just say okay and let it deactivate the defaults?
ummm.. are you using IONOS for emails already?
Nope, this is pretty much out of the box
If not, make a note of the defaults and press ok
Okay, done
now, from your own PC (not in IONOS), you should be able to open "cmd", and type "nslookup abc.xyz.com"
it should return the IP address of the IONOS server
Well don't have access to a terminal rn, am working of an ipad in a bus
there are some online nslookup websites. try one of them?
cool. Thats the bit that you highlighted done. Just to reiterate. I do not recommend using this externally...
Why not?
it will not be anywhere near as secure as something like Outlook etc
SPAM filters are much worse, and could be hacked
Wdym? There are spam filters for something like iredmail
But obviously I'm not gonna use this as my main email
Making it secure initially is quite a lot of work, then the maintenance is very time-consuming. By all means, try it out, but I would not leave it exposed for long
It's too much of a hassle to keep up to date?
I mean... Places like Microsoft and Google have teams of people working on their mail servers, to keep them secure.
Yes, obviously, and this definitely won't be as good in any way, and i have been a customer of them until now, and will continue after this. This is just for fun
That's fine then
Yeah, i actually intended on buying an outofthebox solution with my custom domain, but i couldn't find anything cheap enough
And anyways i have like 6 hours left in this bus, its 10 pm now and i really don't think I'll be able to fall asleep ever so I'll just be doing this over the night
Hey all, Im looking for someone that would be able/willing to write something that will pull data from an excel and insert it into pre-determined spots in a pdf. I have $75 I can pay with (cash or crypto). DM if youd like more details
you probably don't need to pay someone for this. Adobe and Excel have tools for this
Hi guys. I don't know if it's the right place. I just started learning Python two days ago in school. I'm in an intensive school program (meaning we have less time to learn than other regular program). I also suffer from ADHD-I, so it's kind of hardcore sometimes. I was wondering if I could ask for someone to help me during the semester (probably several times a week). I feel bad if I have to ask a thousand question here. Thank you.
No I don't think so, but I have to learn differently than a regular student. Like sometimes I need to be told what to do and how, take notes to have a how-to structure. I have a really hard time "discovering by myself". It's hard to describe. The regular school system is more like "discover it alone by yourself"
I know and have used them. The issue is needing to do this automatically through just running the script in a folder, get the pdf. and then repeat 100x
"Why do you love software development as a job so much?"
Why I love software development so much:

I love how descriptive those Commit Messages are xD
At least more descriptive then those of my colleagues...
gotta love the random a, b, or other random character when starting a project and no clue what you are doing
I was given a style guide for the code and comments, and a guide for the pull requests, but was given no guidance on commit messages except no more than 30 characters or whatever the max is
So a large percentage are usually "Update Commit" which I know is mostly useless, but I'm also a solo dev on this project with my supervisor mainly doing code review
Also a large majority of my commits are either "sending" them to him to check why something is broken, essentially quick help, and me switching between computers, so usually I'll comment something like "Update Commit - Broken" especially if it's in the middle of revisions
But other than that, I really have no idea how you're intended to use oil request comments. There's not enough space for actual useful information, but also it's there and I always have to put something
These are some of the "better" ones, but I don't even know if this is good enough.
I mostly work in a Team of 3 and both of my colleagues always just write "Update" and never describe what they did in a commit. If you're working on a project alone, it's fine, but not when the team has like 6 or 7 people in it...
I guess it is rare to find people explaining with paragraphcs in the commit message why a one line change was made, and why it is the correct change.
In python, how would I take a string, then make another string that is the first string with just numbers, no space, no characters.
In preferably the simplest way possible
say you have a string named str
you can use str.replace('a', '') to replace a with nothing
do that for every character
dont forget uppercase
might be easier to just copy all the numbers to a new string , there are fewer numbers than characters
no make him do every character
Another "issue" for me is when I have to shift from different computers, between my work/school laptop and my home desktop. A lot of those commits are purely that use, simply to move my update to the "cloud" so I can work on it elsewhere
I'm not super familiar with python but I assume it supports regular expressions (regex) for that kind of string manipulation
mystring = 'h3110 23 nofloat 444.4 foobar 11 2 dog'
[int(s) for s in mystring.split() if s.isdigit()]
[23, 11, 2]
Yeah, with regex you'd just do [^0-9]+ and replace that with nothing
Is this what they call a d*** move?
¯_(ツ)_/¯
I'm assuming they either removed the malware or uninstalled the packages because password yoinkers are a no go
also prob changed passwords for good mesure
Which lang
Request the page, store the json, and format it
isn't that an API?
well you need to get the API's response
or you can't edit it
you can get the json with response.json
and use the json package to only get the value
the API returns a json 
yes
I fail to understand your problem
ok, make a request to the API, store the response and write that in a json file
oh wait I read your message wrong
Just make a variable that has code to get every line in the json file
and then use a for i in range loop with that to sort through the entire list
Hi, any JavaScript developer that knows why I can't access a variable from the parent class? I know that I need to use this. But that won't work.
Hi y’all 👋
Did you ever call super to run the parent class constructor? That’s the only thing I got off the top of my head.
Are you asking how to replace the url parameter in the request, or rather how to keep the URL part in the string flexible?
Nvm, just saw your final screenshot.
Yo why doesn't this work :) I haven't used C# in a while and I wasn't even that good at it when I made this so I don't know why it isn't working. It's supposed to take in a sentence aND dO tHiS rAndOmLy
what about it doesnt work?
The returned sentence doesn't change
But I don't get any errors or anything
I guess the first letter goes lower case
Does the code make sense?
you're only changing a letter to uppercase if the random number is 0
if(r.Next() == 0)
change to
if(r.Next() % 2 == 0)
If the random number is even, change the letter to uppercase
It works :D
There was actually another file in the solution that had to do with it but from what I remembered that file made absolutely no sense so I deleted it. And now it's all just one file
Aight gn
what if i just started programing in music theroy
This did not work as expected because you did not specify the interval borders for random.Next()
Per default it's between 0 and 2147483647, so the probability for getting 0 was just really really low
you could have used random.Next(2) or random.Next(0,2) instead (2 because the upper border is exclusive) to get a 50/50 split
are the directories in question able to be read and written by the owning group?
You can either run you script as the apache user or add your user to the same group
yes, but no. Using sudo without flags will run it as root and not the apache user.
there is a flag you need to give sudo to change the user to run as
ls -la will tell you ownership info
just in case something is hidden
does anyone know how to help me? i'm not getting audio when i run this code
gives me this error
This would have been so much easier to read in a gist or something
have resolved the issue now
@cedar portal ask here
@cedar portal im good with C i can help
what subject should 1 do for a levels i want be a game delvoloper?
What's subjects do you have which can be associated to game development? Each school has different a level options
TOMORROW, 11/11 11AM EST... https://youtu.be/sOkBoPQqObs
GET SNAP THE SENTINEL: https://tehrealsalt.itch.io/snap-the-sentinel
DISCORD SERVER: https://discord.gg/FTzkCTstZm
OTHER LINKS: https://tehrealsalt.carrd.co
Join us for the release of what my gf and I have been developing all year!
woah
what sort of a joke is this ? since when does a string need to be referenced?
what theme is that
Im wondering, will a certificate from Cisco , python institute help with my university application?
that would help more with getting a job, for uni you want a lot of projects
or a few very big projects
sorry if this is a dumb question whats an example of a big project?
I have passion projects
making some sort of web or mobile app with a backend, making a game with a reasonably large amount of content, lots of different things
