#development
1 messages · Page 1 of 1 (latest)
Hello fellas. I had a question
How hard is it to code a program that just launches other programs
The basic idea is
Build an arcade cabinet and use this program to launch games, and put a pc inside cabinet and the pc is in kiosk mode so it only launches that
relativly simple
something like that prob already exists
Wait a second
I could use something like VIA or QMK and attach a numpad to cabinet to pick the game
@past crest found something already https://github.com/enricllagostera/simple-arcade-launcher
there’s no way it’s this easy
Well
This is now what I will be using. Thank you so much!
@past crest here's another one https://gitlab.com/es-de/emulationstation-de
seems to be more updated
but more complicated
Use diagrams when they help to communicate explain someone the subject/issue at hand. That someone might be yourself in 3, 12, 72 months, and the communication might be written (aka documentation).
my take on this is that some particular methodology that someone told you to memorize for making a specific type of diagram is pretty much useless, but it's extremely important to be able to write good documentation throughout the development lifecycle
learn good technical writing skills, and learn how to come up with your own diagram when something actually needs a visual explanation. that'll get you so much farther than memorizing a few specific diagram formats for outdated enterprise OOP concepts
when you sit there waiting for pgadmin to load into the database for 10m -_-
Yeah that's a better answer. Diagrams in general are very useful. Idk about very specific ones so much
@vestal spire they make for excellent documentation once you start dealing with lots of systems and services, especially when explaining to non technical bean counters
yeah so i am making this...
What is that you are working on?
you mean your part in it since you mentioned earlier that it was a file with 1000slc . so 🙂 but if its ui like QT, thats a 1000slc for just a widget , well slc mostly markup not really heavy logic , and i would indeed split logic off into a seperate structure (file/folders) , where the logic and procedures get run from a single function per ''feature'' wich then gets called by both a comandline parameter or a ui button , same for output, because indeed mixing logic with stuff like py sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) thats like inlining html , css and javascript inside a php file , speaking of php 😄 it does have a nice feature for it 🙂 <? include bla.php ?> wich actually only gets read/executed at that point in the page , allowing for just do asort of a render on the end that concatenates all code iinto one big script
whow that was a reply from a couple of days ago to someone that was still in my buffer lol
its a game
How are you making it? What tools? What game engine are you using?
I'm gonna guess unreal
i am using unreal yeah
Nice textures
oooh somebody finally made a good FOSS EDA https://github.com/horizon-eda/horizon
Well, a great start to one, it's still pretty light on features
o_O
havent heard of it before
I just started learning kicad recently to make a keyboard pcb
yeah it only just went public in 2020
kicad is pretty good but the interface didn't make sense to me coming from other CAD tools, it's very much like Eagle 🤮
kicad definitely more fully featured tho
like if i actually had to make a board on linux i'd prolly go with that lol
oh nice kicad finally got proper english translation
it was like google translated from french last i used it maybe i should give it another shot
oh wow kicad development really accelerated in like 2018
maybe i can actually get work done in it now
oooh it even has python scripting integration now
yeah it's definitely come a long way i would actually use it now
the interactive routing is as good as altium's
I am trying to build a keyboard too, both PCB and firmware. I will be going over to do the board design in kicad maybe in a week or two. I also might just start tomorrow.
i keep thinking like a 75% with some left hand macro keys would be nice maybe i should just make it
kind of a boring PCB to layout tho just a huge array of switches and LEDs lol
I am not positive if I want to do LED's. Do you have an idea how to go about them? I saw one way before, but it was an older method.
Probably a matrix not an array, but still nothing too complicated.
i write C a matrix is just a 2D array 😛
but i mean there's no like fun ICs or control circuits to figure out it's just copy paste and align to grid
everything can be 1d if you hate yourself enough 😄
the only data type i know is pointer 
O idk how they do LEDs typically probably addressable LEDs?
Well then make it do something different when you are in gaming mode vs programmer mode vs boring mode.
I am trying to build the program in rust, so it is a 2d array. With a 2d other mayer.
Not really. I am just attempting to build something in rust. I don't know rust I am just playing with it.
Not really. I am just going to build my own thing. I already selected an overkill micro. I selected the RP2040 since it has hardware USB and enough IO.
yeah anything ARM is a good choice for embedded rust
i would bet rp2040 has HAL/PAL crates too
Proper learning of rust would require learning the language itself and how the methodology of programming in that language works. I understand the basics and that is all I am planning to understand. I do not want to mess with the unsafe system.
yeah the HAL takes care of all the unsafe access for you i think
The hal exists and is excellent for what I am trying to do. There is a USB device API and a USB hid API. I have some code already working I mostly just need to get the matrix translation to the keys working. I already scan the full matrix and do something with it. Some of the examples use unsafe, but I do not want to touch that.
I learned how to set up a SWD debugger and have a decent time debugging. Surprisingly GDB works excellent with LLVM compiled code.
oh sweet
i haven't played with rust yet but planning on it when i get around to it lol
I might write up how I set that up although it is not currently too far from every other tutorial.
the whole crate system is such a huge upgrade from C, makes all that stuff so uniform across different processors
All my friends want to mess with either rust or go. Most want to use rust because most of my friends run Linux.
I spy go 👀
i mean go is kind of a joke in comparison
Rude, lol
I have some c that runs on Linux and some embedded platforms. The only difference when compiling is or should be the compiler.
i mean like the libraries
you have the architecture crate, the HAL crate, and the PAC crate
not just like, whatever the hell the manufacturer had their interns do and zip into example code lol
the abstractions are consistent instead of wildly varying from chip to chip
I also saw some interesting matrix multiply code that works with Intel's matrix multiply hardware and arm's. They are doing some cool stuff.
You mean just across the spectrum of hardware out there?
I attempted rust on AVR, but something appears to be broken and all documentation points to it should work...
yeah with microcontrollers every chip will have like libraries that the manufacturer bundles with it for interacting with the memory mapped I/O, and they all do it differently. but with rust there's a fairly standard API that those libraries are built to
Thats fair. I'm only aware of one decent go compiler for embedded devices, but I so rarely use anything outside of arm/x64/m1
Go is garbage collected so it's not really that suitable
The last time I heard about go in the news was when I heard it had some nice abstractions that made the hackers finally build a binary for windows Mac, and Linux. I don't remember when or what it was for.
well unless you built an RTOS that runs the GC in a predictable fashion
if they let you run the GC fully manually idk if they do
I think tinygo had some novel GC changes, but I'm not 100% certain
I think there is an rp2040 hal for go.
Yeah, they did something to the memory model
idk like i said i don't really get the point of Go, except maybe for web servers
I use it super heavily for data/cyber security work
Elixir is more interesting to me for server software
As in what with cyber security?
Why not c and cgi bin?
cause BEAM would take a long time to write from scratch in C lol
Making typically host-bound analysis methods API accessible, performant, and not jank python doing system calls. Best example I can give is this project I made to add to our file triage pipeline
https://github.com/habitualdev/YaraSea
Nevermind, chi bin is not a real target.
On top of that, data scrapers and crawlers for investigations, go lets me write and prototype at the same speed as python, while being WAY more performant, and easier to do concurrent tasks
Managing 1000+ crawler requests in python at once? no THANK you
using python for anything but scripting or data analysis no thanks
great for those tho love the ESP build system built on python
I recently had a job interview for a dev position for a companies ingest pipeline. It was ALL python, doing WAAAAAY too much. Noped out of that, especially on top of the lowball offer
I think we can all agree its very concerning how much production relies on python
wonder why webcord can't post pictures
from a Nim book lol, but it's interesting
What is metaprogramming?
like using code as data in the program
most powerful in Lisps
one of the things it allows you to do is write your own DSLs easily
I'd argue go can do that in a limited fashion, but its painful
yeah i mean anything with anything resembling function pointers kinda can
well actually I guess in C it's mainly macros you do it with
Nim seems kinda like if C++ had Python syntax, haven't tried it out yet tho
I'd like to set up a docker to integrate it into embedded C toolchains
so i can write like basically python but still have it run bare metal on microcontrollers
well, if python had better json support
Seems like it'd be really good for ESP type platforms
I can always tell if someone built their API with python when it returns non-compliant json
lmao exactly
thank you, someone the other day in here was like b-b-but import json
i can tell they've never actually written an AWS lambda in python it's horrid
i get triggered when people do python on AWS. like, there are only two options, you're writing a program that does nothing but process JSON, do you choose JS, which is literally native to it, or python, which has a goofy ass map type that doesn't properly transform to json
and then we had all kinds of type bugs on the UI
My favorite excuse when I get told to write something in python is for "maintainability when I'm gone. What if the program you write just breaks?"
First of all, programs don't just "break". Second of all, if it "breaks" then I wrote a craptastic program
they just mean what if they wanna hire an undergrad who can only write python and only barely
hah, as if. They would barely even glance at an undergrad
it annoys me so much that it's just like the standard language now
Gov work, where paper is king, even if you can't do whats on the paper
i guess javascript should annoy me more but i like it because it lets me assign functions to whatever i want
hmm wait no you can do that in python too can't you?
somehow i haven't dealt with python in like 10 years even though it's very useful lmao
especially for what i do because it has like good serial libraries i could do a lot of testing automation stuff in it
Using Django for a project rn
¯\_(ツ)_/¯
It wasn't chosen cuz python, but it does a lot for you and we needed something done cheaply
It;s not BAD, its just people just leave it in place for scales its not meant to be for
isn't next.js easier? that's what i use when i need to bang something out anyway
Yeah, I mean this is some small webapp
Does that handle authentication? Database, etc?
i mean there are npm libraries that are very similar to what you get in django but you typically wouldn't use those
django just doesn't do anything for you on frontend does it? been about 10 years since i used it last
Kinda? The admin panel is pretty sweet. There's html templating
i suppose django makes sense if you're just providing access to a SQL database for business backend stuff
yeah, but like for a sophisticated web app you'd end up using jquery or something on the frontend?
Fetch from quickbooks, allow external users to access pricing with super simple auth
Yeah or these days something like vue. But this is pretty basic so for the little interactivity I need, I just used some raw js
I don't like webdev, but I just kinda got sucked into it
Any serious dev work really
i like web dev tools but yeah the work usually sucks lol
seems like things might finally sort of settle around standardized web apis like Web Components and Web Assembly tho
2015 fucking sucked node had just come out and google just killed Angular but it was the big thing and it was fucking slow
React is a relief from that at least lol
Web Components is overly complex right now, but Lit shows some promise. I do believe Web Components have a solid future if we can build better tooling or solid framework that makes it easy to ramp up devs.
WASM has some awesome use cases, like web games or data processing in a browser. Not sure if it fits into the typical web stack though, more like special case I think for performance gains.
Although WASM being able to run on Node as well makes it a huge perk, possibly we can easily ship WASM modules instead of doing the whole N-API bindings for NodeJS? 🤔
i guess WASM is a bigger deal for people/companies that like C# but yeah
Html on the wire, many diff lib names out there, is super interesting too. I just don’t know if it’s getting enough traction though…
html on the wire? are they just reinventing ruby on rails?
It’s dynamically replacing html bits from api responses. So you get that SPA like feel with no refresh, but instead of sending a big JS bundle the server is sending html the mini JS lib replaces the existing with.
Think like I’m say react Comp A renders Comp B, but when user clicks some button Comp A renders Comp C instead of B.
Isnt that what fresh does too
But really the value seems kinda low imo, since you can kinda achieve similar with lazy loaded modules… I mean yeah lazy module is still a bit bigger and tony overhead, but let’s be honest unless you have the potato of potatoes your never going to notice the diff on that small of a level. Haha
sounds like they're just reinventing server side rendering lol
It’s kind like trying to mix SSR and SPA in a sense.
Server side rendering with client hydration. I guess less load on server?
oh i see
Most ppl I have seen using it were anti-js ppl tbh. Like old school SSR/rails app devs I know that hate JS world but want an SPA. But it’s still “interesting” haha
I think right now we have a lot of competing things for the future of the web, kind of hard to know which will be the “React killer” haha
just compile what you like to javascript, like clojurescript or typescript or Nim or C#
well i think what is in the standards is what will take over
Web Components aren't that different than React just better performance
actually i forget what C# does
ah WebAssembly and JS interop, doesn't actually compile to js
but either way you can wrap the js and pretend it doesn't exist
I think the standards will be what helps push the future, but it’ll be some frameworks that end up being the big thing that many use.
For example Web Components is pretty old now actually, but adoption was super slow. It’s deff picked up a lot in the past few years with IE11 being officially dead.
But most big companies using it, Like Adobe and Google, are primarily using Lit right now. Not sure if Lit will be “the one” but something like that.
Only thing I can remember is cause pain
I think it comes down to making it easy for new programmers to learn, so much of the dev staff is made up of 1-3yr exp devs. 5+ years a lot of devs are moving into more Sr roles where they do architecture work, complex problems, etc. those 1-3yr devs are often a huge part of day to day feature work and you need something to make it easy for them to learn and organize inside like a framework.
Granted I’m talking bigger dev teams, ofc there are huge ranges of teams, companies, goals, etc. haha
shit i forgot the name of the one i really liked, Svelte is kinda interesting tho
I am excited for web components though, with React v19 having proper support for them we should see adoption sky rocket which gives us a bridge towered moving to full Web Components in the future.
Yeah I heard some ppl like that one. Only thing I didn’t like was the syntax for things like loops. Reads weird to me, I’d rather have my FE framework using typical JS syntax.
REMIX, that's it, it's so good https://remix.run/
Ah yeah it’s kind like the JS version of rails m, everything you need in a box.
I like how simple svelte is
yeah most of the cool stuff now is just simplifying the good ideas from React and stuff
Bun is also exciting right now, although I’m not ready to drop v8 for WebKit just yet. Maybe once I see solid community backing, but personally I’ll wait at least a year to see what kind of traction it gets.
Guys, I have a problem. Before deleting XAMPP I copied the databases from mysql\data. After I reinstalled XAMPP I copied the database folders back to the new mysql\data. The databases and the tables are showing but the data inside the tables aren't. Also when I try to view a table it throws an error. What should I do?
don't know xampp but probably some kind of permission issue
What should I do?
Don’t do that
i still use Modx (3for the time being) best framework and only one i ever liked (well its actually a cms but anyway, its a cms that is more like a framework than an actual cms) but i use it to "create / controll/ manage " sites in wolfcms (dead since long but i still use it ) where i get to zip the wolfcms (+sqlite3db) site and deliver as a handsoff standalone site) https://modx.com/
https://dev.mysql.com/doc/refman/8.0/en/mysqlcheck.html
https://dev.mysql.com/doc/refman/8.0/en/repair-table.html
Should get you started. Proper backups (mysqldump) would be better in the future, I'm assuming you don't have huge dbs with gigabytes of data locally 🙂
Is an dedicated GPU going to help in performance etc. with Unreal Engine 5?
yeah
cpu also matters though, probably wont do well with an old i3
i have an 5700G, i guess i am okay
Yeah you should, I do a bit of gamedev myself with a 5700g and those eight Ryzen cores are a dream
The only real bottleneck is the iGPU
Yo peepz, anyone with some JS experience willing to donate 1-2 minutes of their time? I'm stuck on something pretty basic, because I suck at JS. I'd greatly appreciate it! (DM me)
Most people aren't going to want to help if they dont know the issue
way easier to get support if u just say what ur having trouble with here
Well, in short, I want to (using JS) remove element attribute if the checkbox is set.
var checker = document.getElementById('checkme');
var buy = document.getElementById('button');
checker.onchange = function() {
if (document.getElementById('checkme').is(':checked')
buy.removeAttribute('disabled');
}
};
But .. this clearly isn't working.
The HTML element is input type="image", and has by default the attribute "disabled", so that it isn't clickable
And nearby, there's a checkbox, which if "checked", it should remove the "disabled" attribute from the input HTML element
Try buy.disabled = false;
"with some JS experience" + HTML exp of course
this doesn't make sense ..
have you tried it?
all i see if you are missing a parentheseis on your if statement
but yeah removeAttribute isn't correct
That was added, and doesn't solve the problem
removeAttributte is correct
well okay i just always used the .disabled=false; syntax too
@vagrant python all of the answers above are arguing on the disabled . my advice is to first check if your trigger function actually fires
thats a better idea
you also don't need to grab the checker again you can just say if(checker.checked) but that shouldn't affect the functionality
it doesn't look like anything is wrong tho maybe it's something weird with the image input type i haven't used that one before
Checking atm with the syntax checker, there's some syntax issue
Checking atm with the syntax checker, there's some syntax issue
why are you asking for help with the code if you can't even balance the parantheses and brackets first
Read ^
you fucking read you dumbass, you're the one asking for help
If you want to be a jackass, ignore the chat. I am here because I'm asking for help
Okay, solved it, was getting
Reason being, script was being loaded before the checker had any value set. Loading the script after ("bottom of the HTML page") solved the issue.
Good hint, thank you.
This is the final code
var checker = document.getElementById('checkme');
var buy = document.getElementById('buy');
checker.onchange = function() {
if (checker.checked) {
buy.removeAttribute('disabled');
}
else {
buy.setAttribute("disabled", "");
}
};
^, the amount of times this was the issue in my code
stepping though with debugger is a godsend sometimes
or spam console.log()
Yap. It's just that I really really rarely do anything with JS and sometimes, a simple hint as that, helps a lot.
I know that in general my approach for this check isn't ideal, as JS can be disabled in a browser.. but, I'll stick with it for now.
basically every modern website relies on JS
don't worry about it
Altho, I bet there's a way of checking if the user has disabled JS, and then I could disable some functionalities, to prevent issues.
I wouldn't worry about it
maybe just a check in the very beginning, saying JS must be enabled
these days, some websites dynamically "build" the html with JS
Yeah, I've seen few of those
You can use load or DOMContentLoaded events to run your DOM dependent JS if it’s in the header / before the whole document. The first one runs after the browser has loaded everything, even stylesheets, while the second one runs as soon as the html is parsed and loaded but does not wait for other items like stylesheets.
You can use noscript html tag to show a message to users with JS disabled.
does anyone know what the "utilities" package for python is
ive been trying to install it i get an error that it doesnt exist
no longer exists apparently
do you know where to find the source files for it?
well there is no utilities module as in like the pip repo, but there is utilities.py in python
ok
what do you need it for?
sample code
what references it
make_request
link?
i have to find it again
Hi everyone, Atul here.
I'm actually a senior at high school.
My team actually needs to create a website for our blog which is based on protecting animals
If anyone could help me with that could you please help me out?
if it's just a simple blog, I see no reason to create a custom website. Wix, squarespace, etc. are pretty good options
It is a simple blog but we also intend it to upgrade it in the near future
As we want to start an app for it
And like take it to the next level during our college times
to do what exactly?
create an app is very vague.
For now, if you have no technical knowledge, go with one of those easy to use website builders. You can always create a custom website later
It's actually based on on protecting animals as I already said
so at first we just want to link up with some vets nearby and help any animals which are in trouble on the streets
sorry, but that's still pretty vague.
So basically just find a vet?
For now yes, but later on we've got more ideas
ok, so for now go with a simple website
Ohhh okay
You should probably site down and write up your needed features for each phase / stage. It’s hard to know what you should do if you don’t fully know what you need.
But it sounds like to start you just want a blog, you can do that with a free site builder or a cheap Wordpress hosting site etc.
Honestly it’s often better to use micro blog sites though if you want more views, since they will get seen by many ppl instead of just the few ppl that find you from a Google search.
micro blog? first time I heard of that
me too
Like medium or dev or micro blogs.
ah like medium
Ohhh
Yeah, like a platform that isn’t your blog, it’s where tones of ppl blog and share. So you’ll get views from others and all your SEO is taken care of, no hosting, etc. I’s like the social media version of blogging.
It’s deff worked well in the dev world, not often I go to any one’s personal blog these days.
same, unless it's linked from another site, or it's some more well known person
hackernews has some interesting posts sometimes
If you wanna make an app later on (iOS dev here, it’s harder than it sounds) you’re better off having the app pull the news feed of whatever blog/microblog site you use, instead of making a custom website AND custom app.
Oh yeah I forgot about hackernews.
well now there's PWAs, so I guess you can have a website and "app"
Gross
If all they have is basic blog / news PWA might be alright. But I agree using a PWA in place of a true app doesn’t work well usually. It’s cool tech, but never seen a great execution of pwa.
huh apparently starbucks is a PWA
I can’t seem to get the PWA version, but I do see in the article they call out the plans to use/test in emerging markets with bad internet. Maybe it’s set by region right now if you get native or pwa?
Ah found it: https://app.starbucks.com/
Pretty good, but there were a few odd things like not using location, some imgs didn’t load until I left the page and returned, adding to home screen is kinda manual on iOS but idk if iOS supports suggesting installing a PWA like Android and Desktop.
But yeah that’s a decent PWA, I’d say good enough for if you were a smaller coffee shop / chain and needed an app. For someone like Starbucks the native app deff feels way better, but if you were like a 1-10 shop kind of place it would be worth doing that PWA over paying the high cost of an app.
Although I guess that’s why so many PoS companies popped up that do online orders, so you don’t have to build your own apps as a smb restaurant. Haha
Tin foil hat I sometimes wonder if Google and Apple intentionally try to limit PWA and similar tech. Since if most apps went to stuff like PWA they could no longer keep their tight grip on the App Store and in app purchases. 😅
I would bet not explicitly, but I'm sure they have some stuff in place to discourage them
Why do some people use pull up inputs over pull down inputs? Is there a power usage difference?
Not really sure what you mean by pull up / down input. Do mean like the text areas where you can adjust the size of the text area?
Pull up and pull down in the embedded space. Sorry I forgot most here do app dev not embedded dev.
Open by default and how does that make a difference?
It does not; I'm too tired for that discussion and had a brain fart, sorry, removed my message.
Hello folks! I finally bit the bullet and decided to make my own website, though I know next to nothing about web development. I am using Vultr as my server provider, and I am trying to paste a picture from my PC onto my website. How do I get it over there and/or how do I turn my pictures into links (without using google drive, the formatting looks awful)
uhh, that's very vague. Are you custom coding HTML? Using a CMS like wordpress? etc..
I am using bare HTML, sorry if I am vauge, I am a noob
alright, I wouldn't really recommend going that option, but if you insist, you really need to learn web dev. You need to upload the images to the webserver so they are accessible at for example example.com/images/image1.png. Then just use an image html tag referencing that path. For uploading, just use SCP to transfer files, it's based on SSH and it's more secure than like FTP. winscp is a great program.
Okay, and you mentioned wordpress, I've heard of it, but what does it do?
it's a full on CMS and website builder
I wouldn't really recommend it this day and age, as it has allll sorts of issues
I would develop the site locally, pack it up in a zip, and just deploy it on server
(non-wordpress that is)
if it's just HTML/CSS/JS, with no backend you can get hosting for free (netify, github pages, cloudflare pages)
Basically I am trying to keep my website relatively lightweight-ish, basically just a portfolio site with a blog tab. And what are some alternatives to word press to look into?
Okay
I've heard good things about ghost
"Get started - free"
that's for the cloud hosted version
ah, good
Are you trying to learn to become a full time web dev or just trying to learn enough to make a personal site?
yeah good question...
Personal site
Yeah one of the website makers or pre made solutions is prob your best bet. I don’t think there is a tone of value in learning the in depths of making a website if you have no desire to be a web dev. 😅
Basically I just want a good picture of myself on the right, ways to contact me on the left, followed by a header with accomplishments, interests....etc and then a small blog tab down at the bottom where I can post my various ramblings
However, I want to do it myself because it gives me different intuitions when doing other tasks
another thing with just getting a VPS, proper security
I have certificates and all that installed and on auto-update
ssh keys?
yep, certbot and everything
I have a key to log in
to the server
Yes
ok good, make sure password auth is disabled
I'm pretty sure I disabled it but I'm going to double check
I had a big brain idea: create a private tab in a discord server that's just my friends and copy the link to the file link into <img>
If you just need a hosted img you can use bucket storage as well, easy drag and drop GUI for like s3 or gcp buckets.
It's not
just upload to your own server
however for now I'm just tinkering
you have a vps, a CMS like ghost allows drag and drop uploads
I'll use SCP when I am doing it final, and I'll experiment with ghost as well
Either way, thank you for the suggestions! I will be on my way to making a website that isn't just a paragraph!
for my personal website I use hugo to generate a site
it's in a github repo, when I commit to main branch, cloudflare picks it up, builds it, and deploys it
I use ghost for my "personal" page. It has a lot of features that I don't need, but its robust enough
Is lua_pushboolean used for opaque pointers?
Are there any apps that immediately start recording video + uploading it to an offsite server?
for mobile, obviously
obviously
ffmpeg?
A name then
I mean i click the app and as soon as it opens it starts saving and transmitting video
Does anyone happen to know if Lua has a built in way to list all globals?
you could mount offsite webstorage locally with webdav and choose to record to that with any program (android supports webdav trough 3rd party apps dunno about ios)
Heyy
This is Atul
I used wordpress and created a website
and used a theme called astra
and now I'm not able to open my website in wordpress
It's saying "Your connection was reset"
What should I do??
Heyy, This is Atul,
You should not do what you just did
regards,
not this is atul
@silk scarab What's the http error code, and have you recorded what happened with your browsers network recorder? (f12, network tab)
I'm sorry to do that
What are these kind of diagrams called?
I figured it out is a sequence diagram
Wtf my company has Visio standard and not pro so I can't make uml sequence diagrams
@peak acorn https://app.diagrams.net/
App.diagram has a pretty solid uml selection
I have used https://sequencediagram.org/ before. I quite like it
at a first glance it looked like some sort of handshake
Yeah it is
It is
(It is)
i am going utterly insane! this isn't even half the properties i need to implement
and yes, ByteProperty != Int8Property, because yes
tfw implementing a partially unofficially documented reverse engineered save file format
tbh i should probably be heap allocating more in this whole program but oh well
just wait till you start working with Bluetooth LE 😄
Documentation says:
2 bytes = year
1 byte = month
1 byte = day
Reality:
2 bytes = month + 2000
1 byte = year - 2000
1 byte = day
🤷♂️
firmware bugs FTW
Hello have you heard about https://beta.sayhello.so/ It is a search engine for developers and better than google.
Search Engine for Software Developers
Hello, no I havent
Heyyy guys can anyone suggest me alternatives for wordpress
Maybe start describing your problem with Wordpress and what features you are looking for in the alternative. It is impossible to know what you are looking for. Since Wordpress can be used for lot of things, it is hard to recommend any alternative without more details
sleep
Okay so first off, a wide range of themes, then able to download the zip file of the website cuz I'm using another website for hosting, last I prefer to get it for free
What problem do you have with Wordpress? Not saying you should use it, but I want to know what aspect of it you don't want
E.g. if you just want static web site, you can use a generator like Hugo
No actually wordpress was really great up until this
I'm trying to open the local host
It's saying that the site can't be reached
What am I looking at?
The error which I found with the network recording
Well.... have you looked in the log file for your HTTP server you are using?
Yes I have
Also, you should use the "Network" tab to identify problems here
The recoder seems useless since it does not tell me anything
Ok. And you have then concluded that your problem are with Wordpress and you want an entire different solution?
I might think you have a problem with your server configuration which are not fixed by just using an alternative
I mean I have asked people and they said the weren't able to rectify the problem
I have been searching on this for 3 days straight now
I understand them fully. You are rather bad at providing details... 😉
Maybe I am
Problem solved over voice chat. There was a lot of VirtualProtect() failed in the server log. Since the installation was just a local development environment we changed opcache.protect_memory from 1 to 0 in the php.ini file like: opcache.protect_memory=0 . It seems to have fixed it. Inspiration for the fix comes from: https://bugs.php.net/bug.php?id=79751
now imagine if you just gave an alternative
solving a problem instead of avoiding it ❤️
I'm super late to the party, but am glad to see your server issues are resolved. Just want to chime in and say that as someone who's used a mix of Joomla, Drupal, Wordpress, and very lightly dabbled with alternative CMS platforms for fun / to see how they operate, I've come to the conclusion that most of the time the platform itself isn't the problem; it's how the platform is configured, what plugins / themes it's running, or the server environment itself.
If these platforms were inherently the problem, I don't think they'd have stuck around for 5, 10, or 15+ years. 😉 It's kind of like how there is no singular "bestest" programming language, or motor vehicle, or flavor of ice cream; there's a plethora of options to choose from depending on the needs of the person(s) writing code, driving the vehicle, or eating the ice cream.
Looks like you're trying to hit the default port 80, which would be really weird to run something locally on, at least on Windows. Check to see what port your application (aka, server) is running on. Then do something like localhost:8088/wordpress/wp-admin.
Also, how do you have your server configured? Via nginx, Apache, MAMP, WampServer, Xamp? Like you need to provide a lot more detail. Not trying be rude, just with development, specifics matter a lot because each language / server / technology has its own nuances.
@spark temple
@spark temple
UPDATE: It turns out there was a SECURITY PROBLEM with one particular aspect of it, which can get grant access to any file on the server. A reader was able to show me how they could publicly access my wp-config.php WordPress file, which is of course super sensitive. The vulnerability is in the update.php file, which accepts a “state” and “file” parameter. Accessed directly, and with a relative file path, you can get access to protected files that way. When it gets fixed I’ll update the downloadable code.
I remember using this in the late 00s when I was a middle school nub who couldn't do anything besides copy CMS files into docroot and install plugins. Good to know all these years later. I indeed used the file method storage setting because mysql was advanced topic for me back then 
On one hand it's my fault for installing stuff without reading/understanding every bit of the php code. On the other, this guy read file from path in url encoded parameter and it took a reader to point out and then demonstrate the security flaw of that. Gg.
The only time I made arbitrary php execute from request was when leaving backdoor on purpose. The only time a php file listed and read arbitrary path of entire php file root was when the file was an intentional dir navigator and reader; the upload of php file was done by bot through wp exploit.
But yeah. Some people are oblivious enough to do that kinda stuff. And some people like me didn't listen to father literally days before when he said "Don't install random php crap to my http server without looking all of it over"
If somebody pwned us, it would have been because of the combination of these two mistakes -- one oversight and one failure to fulfill due diligence. In that case, if I'd realized at some point after the attack, I'd have additional due diligence of investigating until I found out exact point of exploit; reported it to that same guy who wrote the PHP chat script. He would then have to minimally fix the exploit and alert of its existence as soon as humanly possible.
Throw away your Bluetooth keyboards folks
https://github.com/IlmastroStefanuzzo/ir-vim
all fun and games until someone uses a tv in the same room
I use a TV in the same room as my IR-controlled led lights, volume up is "flash" mode, volume down is purple
Would be fun to build into a cyberdeck
tv b gone lo
something cool about the Oculus is that the tracking cameras on the headset are IR cameras. use a TV remote into it while in passthrough (or whatever it's called) and you can see the coes
same, just volume up and down are like green and purple
@midnight wind - import Discord from "@discordjs";
const client = new Discord.Client()
client.on("ready", () => {
console.log(Logged in as $ {client.user.tag}!)
})
client.on ("message", msg => {
if (msg.content === "!Help") {
msg.reply("See our links channel for help")
}
})
client.login (My App Key)
thats my index.js
{
"name": "vapebot",
"version": "1.0.0",
"description": "Guardian of the Vape Network",
"main": "index.js",
"scripts": {
"test": "!Help"
},
"repository": {
"type": "git",
"url": "git+https://github.com/VapeBot1990/VapeBot.git"
},
"author": "JoeVapes1990",
"license": "ISC",
"bugs": {
"url": "https://github.com/VapeBot1990/VapeBot/issues"
},
"homepage": "https://github.com/VapeBot1990/VapeBot#readme"
}
and oackage .json ive deployed them through heroku and github but the bot will not come online
and the error?
it the error was that const client = new Discord.Client() Discord.Client is not a constructor
https://discordjs.guide/creating-your-bot
it's const client = new Client()
also read the guide
actually disregard
try import {Discord} from "@discordjs"
will do
nope its not worked thats enough for one day 13 hrs of learning this is long enough back at it tomorrow
actually try this import { Client } from 'discord.js';
will do
and const client = new Client()
nope they didnt work - heroku shows the bot as deployed but not online
ok, but that not be the issue
ill carry on working on it tomorrow thanks for the help though mate
does it run within repl
one step at a time, first get it to work in dev enviroment, then you work on prod
ill ill confirm now
also I recommend using slash commands, since discord kinda wants to move away from people using prefixes
/home/runner/HumongousFoolishUserinterface/index.js:1
import Discord from "@discordjs";
^^^^^^
SyntaxError: Cannot use import statement outside a module
ill call it there for the night mate thank you 🙂
you didn't change the code...
also I forgot if you are using node, just use require
const { Client, GatewayIntentBits } = require('discord.js');
The joys of the small differences between import and require....
If you are on a newer version of Node, like 16 or 18, you should be able to use ES modules. It does come with some pain points at times, so a lot of ppl still don’t use it. You do need to tell Node you are using es modules if you plan to, in the docs they list how: https://nodejs.org/api/packages.html#determining-module-system
This is my code
app.get("/api/callback", async(req,res) => {
const FormData = require('form-data');
const form = new FormData();
form.append('client_id', process.env.clientId);
form.append('client_secret', process.env.clientSecret)
form.append('grant_type', 'authorization_code')
form.append('code', req.query.code)
form.append('redirect_uri', "http://localhost:443/callback")
var code;
if(!req.query.code) return res.send("Error - no code provided!")
//swap the discord code for an access token
post("https://discord.com/api/v10/oauth2/token", form).then(function (response) {
code = response.data.access_token
})
oauth.getUser(code).then(console.log);
})```
but im getting
```node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "AxiosError: Request failed with status code 400".] {
code: 'ERR_UNHANDLED_REJECTION'
}```
can anyone help
No
did you even open it?
It is specifically designed to not interfer with the TV
or whatever the remote is for
lmao
there are a bunch of things wrong there, the immediate issue is that you're getting an error response (don't know why) and not handling it with a .catch() after the .then(), however it should also be noted i'm pretty sure your code variable usage is invalid, you can't set a value in a promise and use it before the promise finishes, you should use code within the .then() call (also async await could probably make that nicer imo)
also this made me realize how long it has been since i last used js meaningfully lol
Would this be the sort of place to discuss assembly?
Possibly. What about it?
You need to move the oauth.getUser(code).then(console.log) into the .then() of the post to discord.
Also the oauth is probably throwing the error. It’s trying to get the user that’d undefined.
Also, where is oauth even defined?
ohh saw some discord.js talk above and i have a problem with it.
have a bot, its in about 90 servers, with like 20k users. every time it starts, it feetches the guild # its in and displays it in a startup message in the console.
now for some reason, about the time i submitted the bot verification it started displaying 187 servers (which its not in) at first and takes a long af time to log in.
if you send a command in the time after it started but it didnt say its connected, the command will still be executed but after its "done" starting.
is that something related to d.js or discord api or why would it do this?
if the bot leaves a guild mid-runtime and updates again, it fetches the right amount of guild & users.
& also every time it starts it supposedly leaves a guild?? (gets the guildremove?? event every time it starts.)
& this bot occasionally gets api timeouts (err con closed / connection lost) but a different bot running on that same serveer has been running fine for weeks.
its been about 2.5 months since i submitted the verification, havent heared back from discord. only thing i heared about 2-3 tdays after submission is the permission granted to use "read message" intent , etc., which we needed and had to request / specify
I have no idea what you’re on about but I know code is probably undefined since it hasn’t had time to fetch that information as it’s not in the call back that sends a post request to discord.
Though it could be the second parameter in the post as form, are you sure you have that correct? I’m actually almost certain it’s that now. But the other thing will be an issue too.
Yeah, that’s the issue. You’re not setting the config object to send the headers: { "Content-Type": "multipart/form-data" }. You’d catch this if you logged / caught (aka .catch()) the post request to Discord.
Here’s a Stackoverflow link. https://stackoverflow.com/questions/47630163/axios-post-request-to-send-form-data
Oh my god, why have I slept on swagger so long? That was the easiest api documentation process I've ever done
Swagger is great if done correctly.
@spark temple up until now its all been hand jammed. Still need to do some uml diagrams, but picture easy words hard
Totally get it. I’ve seen people do API documentation in word. It made me cry.
Excuse while i go take some aspirin from just reading that
Now use a code gen tool to consumer your swagger or GQL schema to spit out an SDK or just TypeScript types for you. Makes life so easy for front end work. 🙂
swagger extension that would spit out API documentation in word
Been there, done that
Anyone knows how to do programming language?
I do 😎
Programming is just like… a conspiracy.
I need some tips
tips for what
I wanted to add jmp for another instruction but Idk how, are there any ways for this?
i have no idea what im looking at so idk
I'm playing the game shenzhen I/O
So the problem is I am not adding step three instruction and it's repeating the step 1, do you know which command to add instruction? @silk eagle
no clue
Like jump over code? You have about 9 lines of code there. 4 for the active and 5 for the network.
yeah
already did jmp, I don't know what label to add
Oh, you create the label. So like; jmp alb and then a few lines down, you put alb after the code you want to jump over.
Alb is just something I made up. Can be anything as long as it isn’t an instruction or register.
and how do I add label? do I make a code then label it?
No… so here’s an example;
mv 00 p1
jmp alb # alb is where we will jump to.
slp 4
alb # label to jump to
It’s something like that.
Here’s a good write up of labels. https://www.cs.uaf.edu/2015/fall/cs301/lecture/09_11_loops.html
alright thanks
In Shenzen I/O, you add labels by having a line like:
mylabel:
From the manual:
You can then jump to this position using jmp mylabel
An example of a program can also be found in the manual. I highly recommend reading the PDF file coming with the game since it will answer a lot of questions 🙂
Hi can anyone read java
i can read english
I have a small favor to ask
Well... there are many versions of Java so I cannot promise I am able to read the newest language features. But come with your problem and we can probably figure it out 🙂
why
it needs to run AFTER the post
i fixed it
I've been working on the new avx512-fp16 extensions, looking for other people who may be dealing with it.
GCC-12/clang14 and ICC/X have support, and if building from source with some upstream patches, so does NASM.
As of now finding other people with interest/ability to test any code that aren't also under embargo is a slight pain
Thinking was that this server may have a few other devs working on this
Because the post call is asynchronous and you don’t await the value to get returned. So, it either needs to go into the then block or you need to await to assign the value to code or it will be undefined.
Ah, interesting. Not really looking to pick up another side project at the moment. Actually kinda quit my job and just living life and getting stuff done around the house. Got a little burnt out at coding.
Evening LTT crew, Im in a bit of a pickle here. I believe this is where my question would go, but, Im running the phpmyadmin docker container and everything works right on the local side but when I need the website to send data to it from a form, im hit with that cursed Connection failed: Unknown MySQL server host and I have no idea why. This is both my php code and my caddyv2 code, the dockers involved are Apache-PHP to run the site, CaddyV2 to run the Webserver/Reverse Proxies for some of my dockers and phpmyadmin is the third docker acting as the SQL Database. As far as I can see things are setup right but idk why data isnt being sent in. Doing it locally and offline under lan it works, once I put all this stuff to the live wan server, thats my error.
Ive exhausted google and haven't been able to find whats wrong.
My Server is a Unraid Server.
wdym works on the local side? the same container that has PHPADMIN and mysql [doubt it's actually mysql] is working?
I forgot how java works again
ok
So like if I run the site in localhost using XAMPP to run the website it will connect to the server side database, but as soon as I put the website server side it refuses to work.
And yus all my containers are working and are configured correctly from what I can see. @hollow basalt
Thought maybe someone else in here had a similar setup and I could compare to see what my mistake is, somewhere in software something is not hand shaking.
If you are running in docker, you would use the docker IP for the SQL server
It should not be going through caddy at all
It can't anyway
If you can give specifics on the IPs that would help
@midnight wind So Ive, in a way narrowed it down a bit. Its got to do something with trying to get things to talk. I set my db php code for the site to be $dbHost = localhost and the user account to localhost I get connection failed local mysql through socket.
I change the php code to for $dBHost = 192.168.1.144 my unraid server. With the user account staying localhost, I get the error access denied for user, even though I can log into php my admin with that user.
If I change the user account host name to Site@172.17.0.1 while $dbHost stays same I get Http Error 500.
If $dbhost and user account host are 192.168.1.144, matching together, again access denied. And Im not sure why.
I would think keeping things local would work because my website is on the same system as phpmyadmin and mariadb are on. So something is not wanting to talk.
Sorry for the wall of text. Php and sql is brand new to me and Im probably making a simple mistake somewhere obvious, its just not jumping out at me.
permission error
172.17.0.1 is the IP of the SQL container?
Hmm.. Curious where inside phpmyadmin cause I used the mariadb console to make the user and gave it grant all privileges on the data base name to user account by password.
No everything in my docker container on unraid use the same IPs just kept different by their ports. Should it be a good idea to give each docker their own ips?
Ive only have custom static ips to my vms and haven't really had issues.
Here is what phpmyadmin shows in the server page
Normally there's an internal docker network
If I change the user account host name to Site@172.17.0.1 while $dbHost stays same I get Http Error 500.
looks like you should go with your problem here^^
and debug from there why its 500
For communication between CTs
Im guessing that the for example for phpmyadmin CT, 172.170.9:80/tcp <-> 192.168.1.144:8085
The 172 ip is the internal network?
Going off of my guess I played around and noticed that Apache-PHP Container that allows my website to be read in php causes the Error 500 anytime the user host name has it. I then give the user hostname a copy of mariadb and it says access denied for 172.17.0.7 which is Apaches Docker container. So I found where that error 500 was coming from.
I guess I just gotta give that docker container access to mariadb from my hunch?
I am super tired and barely use Javascript, but in reality, how would I return everything from the categories and "source"?
I tried i.categories.source, i.categories[0] and a couple of others, but none of them worked 😦
most likely I assume because the others are objects, and this one is an array.
solved 😄
is being a front end dev a good choice? im thinking of going that way but is it still a relatively good choice as far as the finances go?
so youre choosing the job just for the money?
I mean, out of all the choices of what i saw you could do as a programmer, that to me at least seems really fun and rewarding ad not just in a monetary sense but that you are creating the front end, the ui of a website with all the buttons etc. coming to "life". Though money is still a relatively big variable.
But yes to me building a front end seems to give this feeling of "accomplishment"
how come
i dont know much about both, but feedback of the cons/pros could help me decide
it is
it's back
idk
all the different types of frameworks, different browsers, css, it can all become a mess really fast
what would be some of the things i would require to know in backend
try to do it, you may like it, but I don't
do you know any programming at all?
did a bit of python and c++
thats about it
like i know what i would need to know of in dront emd but backend idk
it all depends
i dont know anyone who does dront emd
golang, python, js
so youre either a full stack dev or backend?
you can be front end and/or design only
so many things to do
so youre most likely just fullstack
not really, there are various paths to take
thats the problem, its just too many paths to take or to clearly know where to go
indeed, you can be a fullstack or an accountant. up to you really
how about java, looking at job offers it seems like its still relatively relevant
could it be a future proof language?
Don't learn just one language.
Learn development as a whole
In lot of cases, the programming language itself is never going to be the hardest part to learn. Instead, it is going to learn the application you are going to develop on. So you should not focus on learning specific programming language but instead learn what it means to actually do programming
So choose nearly whatever programming language you find interesting and just do some development with it
ig ill do html, css and js for now as those are gpnna be in the finals, basic knowledge and programming with them with some pseudo code
@sage vector is right. I learned Java in school, taught myself python later, got a Python-focused backend job that taught me JS/HTML while working there. Next job was JS/HMTL frontend and they taught me Swift (iOS code) which is what I do now. You don't really commit to a certain language/platform until 4-5 years into your career.
Employers, especially for junior dev positions, don't care what language you know. They care if you know how programming works and whether you can learn on the fly. Hiring juniors is essentially an investment for them, as they intend to train you to their specific way of working on projects.
<html>
<head>idk</head>
<body>
<p>this is smth</p>
</body>
</html>
ah that explains a lot, some time ago while browsing job listings one of them said that some company was looking for someone with java knowledge or willingness to learn it who had a high school in IT done
More and more companies are dropping college degree requirement too
uni is a pain and i want to avoid it unless i have literally no other option
honestly I would learn cpp not because its partitcularly the best language but because it has basically every paradigm availble to work with
I learnt python first which was a huge mistake as when I went to learn rust I was so incredibly confused by references
cpp has every concept you will ever need to know in it
look whar i made deusweb with leopards
any excel wizards got a few minutes to spare?
need to match A2 against a column and see if it exists there or not... not sure why its returning 18373?
yeah don't bother learning a particular language just learn the concepts in whatever language seems easiest to you
probably python or something to learn the high level concepts
how so?
It's by far the hardest mainstream language to read imho, its dynamic typing and more importantly its indentation based syntax kill it
Python isn’t that bad to read in my opinion; I find the indentation based syntax easier to read than JavaScript or other curly brace languages. The only thing I vehemently don’t like about it’s syntax is that lambdas are just all around terrible, but that might bother me more than most because I primarily write functional Haskell
Python being the nearest to pseudo code
“Hardest mainstream language to read”

Actually i find pseudocode a pain to read too, it's too abstract, actual code just clicks more nicely (if in a sane language)
So would your optimal language just be like assembly then?
No, the polar opposite of something bad isn't necessarily good :p
My favorite language is kotlin
Never used it before; that one’s basically Java but with nicer syntax?
Yep
Free functions, proper function types, nicer lambdas, etc
Great for DSLs too
maybe theyve just seen some unreadable python code
skill issue
Python is not hard to read really…
i did a thing and i am proud, '1' + '2' = 'c'
one command and its almost readable!
i think this is a bit cleaner
Hello, I'm currently a Python developer that is learning C#. I am learning C# because I was planning on then learning WPF to make Windows desktop applications, but I believe it may be a good idea to instead go for web development, and be able to make both regular websites and webapps (e.g. through Electron). If I go for something such as web development, I'm not exactly sure if I want to do front-end development or back-end development, as I don't exactly know yet whether I'd want to learn how to work with the part the user interacts with ot learn how to work with the stuff that goes on behind the scenes. If anybody here is a web programmer, are you a front-end developer, or a back-end developer, and why did you choose what you chose?
try both and choose whichever you enjoy more because youre gonna be spending a whole lotta time doing it
Okay. Also, would it make any sense at all to stick to doing WPF with C#? I have a feeling that native Windows desktop applications might be fading away in most cases.
I guess a do a little full stack, I prefer backend work
Don't need to deal with client compatibility, styling, etc
I'm being stupid and I'm trying to write a Vulkan rendering engine to attempt to make use of modern thread counts.
Fixed my issue, dont use Apache-PHP, use Nginx-php8 instead and it'll work without issues. Not sure why apache caused issues even with all permissions given to it.
Thanks to @midnight wind and @hollow basalt for trying to help me out few days ago. Helped me narrow it down.
what is the problem at line 17
import turtle
t=turtle.Turtle()
a=0
b=360
t.pencolor('black')
t.pensize(9999)
t.goto(0,0)
t.pencolor('white')
a=input("360/?")
b=360
c=(int(a)/int(b)
for m in range(int(c))
t.lt(int(a))
t.fd(50)
b=b-a
t.penup()
i already did t=turtle.Turtle() to explain to it what t stands for
gotta put a : after for m in range(int(c))
so it will be
for m in range(int(c)):
t.lt(int(a))
t.fd(50)
b=b-a
I put it into a linter, you have an extra parentheses at line 14
c=(int(a)/int(b) should be c=int(a)/int(b)
thx it works now
i should only keep 1 css file for the whole website?
and how do i comnect every part? can i just connect it via html files for now until i get a domain and will it then work like that later?
You use a relative path on the link tag, assuming you deploy your css to the same web server. Don’t set it to the full domain or else your site will break whenever it changes.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
The HTML element specifies relationships between the current document and an external resource.
This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
Kind of up to you, you can use 1 big file or many smaller ones for each page or section of the site.
nah i meant it as if i would be allowed to set the main page buttons link to index.html instead of whatever the url would be when ill get the domain
idk i dont know much about it
Use a local webserver
Don't just open html
Use relative paths
Like / would be index
and /index.html would be index
well not really, it's mostly referenced by /
aight ill try relative paths, but first i gotta un-ugly my website
to what degree should i fill it with js code and when do i know i need to do that?
it's like saying how much paint you should fill your house with
idk a lot probably, but that would slow the thing a lot
how about the scripts, do i keep them external or nah
how about, just do what you would do to your site and worry about your files later
nah like i want to bloat it with three.js but idk whether to do it externally or internally
like i want rotating toruses, jumping cubes, 3d animations etc. but i know people do those sometimes internally and other times externally and idk when to switch between the two
Hi, I'm doing a PWA, is there any way I can see how my visual is on a phone while on desktop? I cannot open the page on my phone because I'm my server and all stuff is on localhost
Yes you can. If you're using chrome, you can go to developer tools and select the toggle device toolbar (the phone/tablet looking icon in the upper lefthand corner of the developer tools window. Once selected you can simulate how your page will look with different screen sizes and the like
I believe Firefox, Edge, etc have similar tools. For more information, you can look at the chrome devtools documentation here: https://developer.chrome.com/docs/devtools/device-mode/
Hope that helps
ty, also my bad I meant to write PWA*
I use chrome, mostly because I'm too lazy to switch and adapt to firefox
I think Chrome's Dev tools are better than firefoxes
That’s one area I’m mixed on, I often prefer FireFox dev tools but sometimes I swap to chrome for specific things that are better there. For example css work I prefer todo in FireFox but running the debugger or exploring source code errors I prefer in Chrome.
I agree we are lucky to have both
I was about to say, there are things I love about both
For the longest time Chrome's inspector wasn't 100% dark mode which pissed me off
is a program requiring a newer library version considered an API breakage in the semver sense?
no
any rust developers in?
no
I write some rust, but do not actually know the language.
Yep, don't ask to ask though, just ask
Can I ask to ask a question?
Can I ask a question?
How much wood can a wood chuck chuck if a wood chuck could chuck wood?
3.2 chucks of wood divided by pi
That feeling when you want a preprocessor in a language that doesn't have one.
you can just run it in the debugger , no need for an interpreter 🙂
it will deduce to 9 , everything is 9,or deduces to 9 , (dont ask me why it still baffles my mind that it is in fact the case , my brain would prolly melt before i can grasp the why )
check the recent (and verry intresting) podcast that Lex Fridman had with Jon Carmack(=Level10 programming sensei first class or so) he talks about it somewhere during the interview 🙂 https://www.youtube.com/watch?v=I845O57ZSy4
John Carmack is a legendary programmer, co-founder of id Software, and lead programmer of many revolutionary video games including Wolfenstein 3D, Doom, Quake, and the Commander Keen series. He is also the founder of Armadillo Aerospace, and for many years the CTO of Oculus VR. Please support this podcast by checking out our sponsors:
- InsideTr...
for the whole system? replace iwctl with whatever u use to controll the network connection (iwctl , netcfg,nmcli,iw,...) py subprocess.run(shlex.split("iwctl adapter phy3 set-property power off"),shell=True) this will poweroff network adapter3 if its for a certain program you can use :```py
program="/usr/bin/firefox"
subrocess.run(shlex.split(f'nohup unshare {program}'), shell=True)
Or you could just do it through system calls like wctl does in c++ or C….
Shouldn't that just be modifying stuff in filesystems like devfs and procfs?
I have made progress.
only 1000 lines of code
Throwing all of the source files into wc says 3151.
Oh interesting. When I maximize the window the uncapped FPS goes from ~2.6K to ~0.6K and GPU usage goes from ~89% to ~70% with the CPU usage going from ~25% to ~20%. I suppose that might be from prime offloading having to blit more pixels?
I am curious, with REBAR does GPU memory allocated with VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT set become directly accessible from the CPU since the entire VRAM address space could be accessed from the CPU?
Do universities care if I contribute actively on GitHub. I currently manly help translate certain software into English from Chinese and I help polish up some readme files, if I add it to my university resume will they care or not?
I am just getting into programming. I have decided to learn PyThon as my first language. Any suggestions on courses or tutorials? The one I tried was 'learn python in one hour' and it was just too fast for me
I, personally, am not in a position to give advice, but I would think that it would not hurt
doubt
I doubt vulcan can control that
GPUs are different
They usually have memory management which allows you to access only specific parts of video memory
You should be able to have BARs which are gigabytes in size on PCIe
Anyone have any experience on how powerful of a GPU would be needed for relatively simple machine learning?
just enough gpu
You don't need much if the datasets are small. I train on a GTX 1080 sometimes (LSTM, 200k rows of data) when my 3080 is busy and it isn't much of an issue
You can do mm on just about any GPU supporting CUDA. Much like gaming the more money you spend the more GPU you can get the more quicker it runs. The only difference is with gaming you cannot usually use multiple GPUs, but with AI and ML you can take advantage of multiple GPU cards. In concept if you had ML specific cores like some newer phones, you can get faster performance. I think Nvidia might have that and Intel supposedly had that in their next generation dedicated GPU cards. (If they will release consumer cards will it have it on them? Will it be enabled? Will it be good?
Also ram is important. The more ram you have the less of a need there is to swap out the GPU memory. Swapping out the memory will take just about forever.
Only if the driver enables it. The Vulkan spec is very clear that only memory types with the HOST_VISIBLE flag can be mapped.
Resizable BAR isn't really something that us Vulkan devs need to care about, it's more a driver/OS/hardware thing.
I didn't mean doing it directly, more as a driver optimization sort of thing. I should have been a little more clear, less memory copying the better.
Yeah, if the BIOS enables it, and the driver updates the list of memory-types they expose based on that, then your code should automatically respond.
Or well, no I guess. That depends on how you've architectured your code now that I think about it
If you've got a test for whether your device-local memory is directly mappable, you can write a fast-path in your code to skip the actual data copy.
I should do this 🤔 I dev for desktop and mobile atm, so I could totally do this optimization so that it automatically applies
But meh, whatever. Buffer transfers are not my bottleneck right now.
Yeah it's a small detail, the way my code is going to work it could help some. I'm going to end up pushing vertex buffers to the GPU fairly frequently, might be doing textures every frame too.
But that's down the line and I'm not sure any of my machines support it, maybe my laptop.
This wouldn't work for images anyways. Vulkan just doesn't expose such functionality that pre-initializes images (from what I know)
Yeah, just checked. You can do it, but only for linearly-tiled images, and those don't have many usecases anyways.
Eh, I haven't gotten too far yet. Just thinking about how all of the layers work together.
Linearly tiled images?
Like an atlas?
Nah, images that are forced to be stored in row-by-row order iirc. https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkImageTiling.html
In 99% of usecases you want to use optimally tiled images, so the driver can switch the data around in memory however it wants to optimize for what you're trying to do
Ahh, I see. That makes a lot of sense, you can't preallocate if the format isn't known yet and the drivers could change the format on the fly for hardware specific performance reasons.
Yeah, that's a good way to word it
I'm planning on throwing a lot of threads at this when I get to the point of uploading actual resources, I'm hoping that the green threads this language uses don't cause issues. I don't see why they would since native method calls pin the current green thread to it's current native thread, but you never know.
Which is why they do that.
Java.
I know it's not the best use case for them, but it's a new feature and it shouldn't make things worse than classic thread pooling.
I implemented staging buffers right before my power went out and got 4% more FPS on my single triangle. Neat.
I'm sure that would be more for more complex scenes because this probably fits in the cache.
Can anyone teach me how to make advanced bots in discord
Define "advanced"
Also that depends on the language, I'm only really comfortable with JDA, I've used discord.js before but not that much so i might not be able to help with javascript, mostly just java/kotlin
Soo basically I want to make voice channels that I can break out into another room that auto mutes people. If I run a stream on here I can show you and explain in more detail after I'm out of ER and at home if that works with you. It's hard to explain via message
I can't watch right now
Purrhaps
I use JDA, but you pretty much have to program everything you want yourself with it.
Do any AMD64 CPUs natively support F16? I wouldn't think so.
The first is to select a language. If you have any programming experience go with what you know. If not, I’d suggest discordpy or discordjs. Python and JS are pretty simple to learn. While they may not be the most efficient, they’ll get the job done.
Once you decide, you can find the documentation for those. Each of them have tutorials linked that will step by step guide you through setting up a bot and getting it to respond.
From there you need to do a bit of work and do some research. Look at examples at how you interact with different things (IE, how do you move users, check the names of channels, how do you interact with users). There’s nothing on that side we can particularly help you with other than link you documentation.
Discord.js has their own server, people there might be able to help you more
i wasn't asking for help
fair
so, i'm currently using JDA + jda-ktx for my discord bot, i'm using jda-ktx's CoroutineEventManager which uses Dispatchers.Default for firing events, would it be a good idea to wrap mongodb calls with a Dispatchers.IO context? i imagine yes but i'm not fully sure
hello so i am trying to do some css for my website and im trying to make that one slideshow where if i scroll down it immediately falls to the next section, but for some reason this makes the website have 2 scroll bars . .container is the whole html on the site and the sec1 as also sec2 are sections of the html```css
/mainly for history site but really just for all fun "slideshows"/
.container {
height: 100vh;
overflow-y: scroll;
scroll-snap-type: y mandatory;
}
/first section/
.sec1 {
height:100vh;
scroll-snap-align: start;
scroll-snap-stop: always;
}
/second section/
.sec2 {
height:100vh;
scroll-snap-align: start;
scroll-snap-stop: always;
background-image: url("index1.webp");
background-repeat: no-repeat;
background-size: cover;
}```
can anyone tell me what im doing wrong
set overflow-y: hidden on the element you don't want to have a scrollbar on then
never done that type of thing with CSS before though
cant do that since it then cant snap to the other section on scroll
don't hijack scrolling
nah look this
idk why my phone recording software refused to do 60fps but ok
otherwise its really smooth
also dont mind the text like the threejs library thing cuz i havent started even doing that yet
but i will put a frickton of 3Ds just to make it look cool
scrolljacking for life💯 💯
I…. Don’t like that.
Scrolling is built in, and hasn’t changed for 20 years. Why does it need to change?
Just make separate pages?
Many websites use it while the front is blocked by a cookie agreement modal -- So that you couldn't just scroll and read the content without agreeing first.
I hate websites that do that
another pet peeve, animations for no reason
just causes lag
Yeah I dislike sites that mess with scrolling and I really dislike the 1 page style sites where you scroll forever.
If you are doing those type of things I’d suggest adding an id to each section and then setting the url to each id as they scroll, so if they go to share your site or bookmark it they’ll get the “page” they expect.
yeah, personally I would use it for like a "splash page" or something, then save a cookie that tells the browser to skip the splash page the next time
I was experimenting with something like this for my personal website, though I didn't get very far before I got too busy to continue working on it 
The best "cookie splash page" I've seen so far was... none. Cannot recall the URL anymore, but I came across a page that had a short notice: "Hey, we noticed you set the Do-Not-Track header, so we will only use essential cookies and block all others, we've got you fam". The notice vanished after ~15s or so and no further question on cookies was asked
yeah, I like those kinds of sites
also on my personal site, it was just a full window banner with some fancy text caption to catch someone's attention, and I'd like it to scroll past it in one scroll - though everything else will just behave normally
The one problem with cookie based means a user will see it on diff browsers. Think how annoying it can be to close it once and then later you pull the site up on your cell phone later and have to close it again. Also cookie disabled browsers, like some web views or manually disabled, will see it every time.
But for something like a personal site that’s prob not a big deal. Lol
yeah, I'm well aware of these things, so usually tend to steer away from fancy features on professional sites or sites that are supposed to show information conveniently without annoyances
regardless, those are definitely good tips for anyone who potentially comes across this convo 🙂
Does anyone know how ink maps work?
My guess is a sharer with a uniform that it used to add in an amount of the ink textures based on a 1 channel "amount" texture.
but its like put in these sections and then boom jumps and shows the section and it looks cool and modern
lag aint nothing when you can have cool 3Ds, even a spinning cube would make any website more fun
because it feels cool and animation when transition to other section
more fancy != more better!
Can anyone direct me to some post or some other resource on how to actually filter data in JSON with React?
Let's say, I have a JSON Array with many categories and data and normally, I display those all with a map() and loop. Is there a way to filter specific categories and only display them? Especially when it comes to multiple filters.
Example:
[
{
"name": "Marcell",
"age": 26,
"birth": {
"city": "Budapest",
"year": 1993
}
},
{
"name": "James Bond",
"age": 44,
"birth": {
"city": "Los Angeles",
"year": 1993
}
}
]
Then I would look for people who has an age of 26 AND was born in 1993. So I would see myself.
But if I search for year, 1993, I would see both, etc.
You can try with a filter command to get a sub array. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
Yeah, I thought of filter(), but I am not sure if that would work with multi filtering
All you need if a function to take the object and return a boolean yes or no. That looks like it would work to me.
array.filter((element) => { return element.age==26 && element.birth.year==1993} )
depending on what the website's purpose is, fun isn't necessarily why someone's there - so what you think is cool and fun, your visitors might find annoying and just in the way
there are numerous websites that are fun to look at . . . for the first few seconds then visitors would just navigate out
maybe he wants to achieve that
tbf I have no clue what type of website they're making 😛 my experience is pretty much exclusive to professional business websites with sole purpose is to make information available
tbf I have no clue what type of website they're making 😛 I don't have experience with creative websites. my experience is pretty much things that should be functional over aesthetics because users would use them on a day to day basis
so same as me then
unless you copied my message and rephrased it, swear it looks so! 😂
nah, i think we have a similar experience
unless of course you got your idea from my message
I peaked into the future to see what you were gonna type, and typed the same - coincidentally it happened to actually be accurate for me as well!
i mean my site is just one where i can work on my skills, so really, putting in so many 3Ds and all the cool effects is all good
ultimately it is quite cool to have your own website you made yourself and absolutely going mental on the features
in that case, go crazy! utilize as many of the features as you possibly can 🙂
my website is a dead simple static HTML site atm 😂 essentially just my CV in a website format
exactly, now imagine that but full of cool things that are fun to look at just to show off your skills
but i thimk ill make a reboot of my site
I don't need to show off my skills, my CV already does that for me 😛
yeah but imagine how it would be with some three.js
being able to do random stuff for the sake of random stuff doesn't really show off that much - depending on what it is and what kind of jobs you hope to land by it
still its cool
no thanks, I have plenty of projects to show if they want to interview me - no need for anything fancy, I haven't even applied for any jobs since 2017, I've only been approached for interviews
yes, sure, it's cool, but it's not something I care to spend time on personally 😛
I used to be a full stack web developer, but I took a step back and became a customer support / software tester (essentially Q&A)
ah cool
Have any good karen tales to tell?
i am just doing my website because i still have some time to do side learning while in school and because i want a job in IT
https://c.tenor.com/QWdPngpHxZ8AAAAd/family-guy-css.gif I'll just leave this here also! just came across it again!
yeah fair, I'm most heavy on backend, but design implementation is fine too - pretty comfortable with that - though with regard to design, I'm by no means a graphics designer or web designer 😛 however, I was working on a spare time for-fun project, and ended up actually liking my temporary design enough to want to keep it permanently 
https://media.discordapp.net/attachments/484658291616645120/784428745036791819/unknown.png
https://media.discordapp.net/attachments/484658291616645120/784425879106879544/unknown.png
I also put together the logo here, so essentially everything you see is my doing, not the banner image though, or icons - I used Font-Awesome for those, but like I said I'm not a designer, I'm a developer 😂 but kinda feel like I have to be explicit about this type of stuff online
only worked there for 2 weeks, so nope, don't think I will have many of those either 😛
i agree, it is fun, but im missing some more of the programming. So far while I have learned html+css for like 3 days already, it's just that I miss the whole "making a program" thing. The only thing that is somewhat more fun is writing js but its still a bit bland.
Sometimes I wonder if i should have gone back to python or c++ though i never got to make any bigger app/software
I enjoy making a site easy and comfortable to use - like here, you can see the anchor tags on my pages, I would make them animate slightly when your browser scroll there, in case it was hard to figure out where on the page it landed - removes any confusions or efforts gone towards locating what you wanted to see, minor details like that are the kind of things I like doing
it was usually something small and not useful cuz i had no propper idea of any program
other than that, I tend to develop websites alongside other projects, like Minecraft servers or in this example's case, a RuneScape private server (not sure I even ever intend to ever launch one, just find it fun to work on one once in a while)
wait so you just got employed by those server owners to make websites?
I did start working on an open source Spigot plugin framework in Kotlin, that isn't open source yet, because it's way too incomplete to be any point in making it public yet
nah, those are my projects 😛
oh, so you didnt charge them anything for those sites?
those are my sites and my WIP servers 😛 so if by them you mean me, no, I didn't charge myself for the site above
ah i was confused i thought someone else was the runescape server owner
I was working on this Glory project with someone else, and that someone had someone make a logo - I tried to fit a design around the logo, eventually I just called it quits and made my own logo and design around that logo instead 😂
so this ugly yellow thing here ended up in the nice thing above eventually
what do you use for navigation bars usually? buttons in unordered lists?
divs, uls, and the nav tag, then just regular anchor tags for links
just display block on the anchor tags, then they fill their parent, which used to be a huge struggle for me in the past 😂
ah so basically you dont do buttons
here is an example where I experimented with some WebGL stuff (could probably have used ThreeJS here, but didn't), same design as above, different logo and color scheme
I do sometimes use the button-tag, but not unless it's within a form usually iirc
could i possibly use forms instead? cuz i have problems with buttons that when i enlarge the padding i need to click directly on the words like "main website" to go there and anything around wouldnt work
sounds like a problem you'd have when using <li><a href="#">link</a></li>, and added padding to the list item, because without making the anchor tag fill the parent, you'd not interact with it
here is another one of my designs lol, not terrible, not amazing
but the first one I sent is by far the best of my design work by good margin
so i would need to change the anchor in css in order to work
well at least its a quick fix i could easily implement
ehh, sometimes yes, other times no - it's a process, you learn as you go, and it certainly is extremely annoying
I have had to work a lot with implementing designs on websites I don't have much control over the HTML for, and that certainly was annoying lol
what would the preferred sort way be
preferred sort way?
yeah
like the one that i did you said was annoying to work with but what would one for of the nav bar button be to make it not annoying
no, HTML/CSS in general is annoying to work with
ah
https://preview.themeforest.net/item/arter-cv-resume-portfolio-web-app-template/full_screen_preview/27008333 this is the design I used for my personal website btw, or at least were going to... I just ended up not liking it all that much, too much annoyances when I started to work with it, and some features that are just useless or too fancy - so I made own design inspired by it
like for example those progress bars, so useless... okay you know 65% php?? what does that even mean? 65% of the entirety of PHP? does it include or exclude frameworks? does it only include what you think exist, or actually the entirety? it's just impossible to get any sort of impression what kind of skill level that person has lol
I also hated the navigation bar, so useless and annoying, just to make it look more fancy - and for what? doesn't really add much to the overall experience of the site, in fact it removes from the experience
Ikr
Progress bars are so pointless on a resume, make it crazy short and to the point. When I review candidates there is a STACK of applicants and no time to go in depth on everyone, I’m most glancing and doing quick thumbs up / down to proceed to an initial technical screening or not.
yeah, that's why my first page will either be a quick splash screen with a one click or one scroll to the resume and some basic personal info - then you could do a deep dive and look into projects I've done and written an article on etc from there
hoping to get my personal website live soon™️, but I'm developing my own thing entirely from scratch, so we'll see 😂 I want it to be perfect for one, I want it to have CMS capabilities secondly, and I'm just a slow guy with too many projects, and now a fulltime job on top
yeah, there are tons of solutions for personal websites tbh, but I want to repurpose mine for all the projects I do
guess it'll ultimately end up little like WordPress, just not as polluted, and imo terrible
for CV I just whipped together some PDF generator, because some recruiter asked me for a CV, and I didn't find any suitable tool that worked to my liking - so ended up writing this thing https://github.com/Nozemi/kotlin-cv-pdf-generator
Mine rn is in latex
was planning on continuing that for my personal site tbh, make it a little more advanced, mostly just because I can and it's fun
Found a nice latex template, simple, straight to the point
yeah, I've heard latex is really common for CVs, considered that too, but since I want my website to have a "export to PDF" button, I just wrote that thing
guess I could generate using latex too 
maybe I'll put that on my list of options to explore in the future 😂
I designed this one to be print friendly, because I know a lot of people still like to print the CVs
yeah I used this https://github.com/sb2nov/resume
ahh, readability is just a little less than ideal in that imo
https://github.com/Nozemi/kotlin-cv-pdf-generator/blob/master/data/Example CV.pdf here is what mine looks like with most of the data replaced with dummy data
the sample one in that is kinda bad
with that much text, which I do not have
yeah, I just realized my example one is basically just locations removed, everything else is there 😛
that probably does help a fair bit, yeah, less text
mine ain't perfect either, but it was also just a very rushed thing for a recruiter that reached out to me on LinkedIn 😂
Tbh I have never viewed someone’s online CV site unless it was for like contractor or designer, for FTE roles I prefer a PDF I can quickly spot their years doing X. Only due to sheer volume of applicants it’s too time consuming to look at their sites.
But I will say it worked well when I was working at an SMB and there was like 5-10 applicants and I was digging deeper into their CV.
I guess it’s that thing of tweaking your resume for the job your applying for. 😅
Also an impressive CV/online portfolio could be good if you have a contact who can pass it direct to managers who might take a peek and help get you into the pipeline for interviews.
But above I was more talking from the view of normal applicants on the website. 😅
yeah, I would send the CV I linked in my message above if I were applying for a job, but I haven't applied for any jobs since 2017
I always get messages on LinkedIn instead, I'm the one with "piles of applicants" (didn't get that many tbf, but a fair few to the point I actually had to make an effort to organize and decide)
my plan is to just have a website, where I (or any recruiter, or anyone else who is interested in my CV) can find either my personal resume website, with past projects etc, or just a plain boring easy to read PDF format CV. Then depending on what is appropriate for the situation, just forward the right format of the information
also I included the "A print friendly CV with minimal colors and elements" kinda to show that I'm detail oriented and it's tailored to be friendly for printing, by which I hope the receiver thinks "oh, it's not a fancy looking CV, but it was meant to be print friendly - well it's organized and easy to read!" - at least that was my thought process behind it
only non-print-friendly element there is the portrait picture, but that's fine I guess, if that comes out all mangled so be it 😂
I leave my resume in Google drive, then when I’m ready for something new I open it and edit all my years of exp and add last job I had. Haha
But I got lazy with it, I think it really comes down to what kind of jobs you are looking for and how frequent. I’m hoping to not leave this jobs for many years, but I said similar about a job I only stayed 1.5yrs after new mgmt took over that I didn’t agree with and left. So you never know. 🙂
yeah, I do it mostly because I find it fun more than anything else 😛 and I might make it open source and enable other people to do it with ease in the future - already made the dirty proof of concept PDF generator open source, so there is that 😂
I'm gonna stick with my current job for a while hopefully, and hopefully it can leave my programming hobby alone enough to make it exciting and fun, as opposed to do it for a living - that can certainly be exhausting
Im only on my 2nd job so i better get some certs and update my resume
.txt take it or leave it
I do this too because it's convenient... but I keep meaning to convert it to Latex and use git. Someday I'll get around to it
pandoc on top
I've never heard of pandoc, that looks so useful
Rugg never heard of pandoc, I agree it looks really good
Kyou agree pandoc heard never, u really good agree it looks
you can write your shit in markdown and insert a latex bibliography and render it in latex
Is it possible with CSS to create a simular background?
You'd be better off just using a background image that looks like that
it's possible to create a similar background, but probably not worth the effort - especially if you have to ask here (I don't mean any offense by it, I just know from experience that CSS is a huge PITA with stuff like that if you don't have a fair bit of experience)
I found it 🙂
its actually perfect because its gray, so I can use a colored layer above or underneat
Use an svg, then it scales and you can do it in XML format. Regular images don't scale super well, and that background Is simple enough to do in svg
is it easy to make an SVG with that white to transparent gradient that looks nice even after it's scaled (I know SVGs are vectors, so not talking about pixelation)? if he's trying to mimic the design of WLM, that avatar frame won't scale (I think), so he should be fine using a PNG with a blue background
if I'm not mistaken anyway!
oh and also, PNG is probably not the best format - I guess there is webm now, but I haven't had the chance to look into that yet
point remains the same though
Testing in prod 😆
got to love that haha
I dont ever want this notification to go away. Gotta keep this phone alive
They shouldve sent one of those random marketing notifications like "Get back on the road with AirBNB"
I already found the photo, but SVG not really an option as there is no such SVG, although maybe I will make one myself
I was suggesting making it yourself
I bet there's some css wizards who could make a billion divs with shapes and gradients to get it looking like that
It's a massive waste of time tho
I've seen people make a MacBook in HTML/CSS, looking like it was made in some CAD software
Yeah, wacky ppl
Like at that point there's so many divs I stg it would be less data to just send an image or a js script to generate it
why lol? if it's fun to them, it's fun to them... just like someone who made Doom in Excel lmao
Just goofy
a literal playable game lmao
No problem with it
Btw slow mode sucks bad
put more stuff into the same messages instead 😛
I only had 1 thing to say until u said more
yeah, but in general, to not be annoyed by slowmode lol
It will always be annoying
What i always thought apps need to do for slow mode is have like a 3 chat "credit/buffer" which fills up every so many seconds
Max at 3 or whatever, but let's you type some messages in bursts
Does anyone have a tutorial for deploying /making a webapp to utilize a ml object detection model that is trained using Google auto ml?
Haha we got slow mode in this channel a while ago after an argument about some dev topics. Kind of funny how passionate devs can get about subjects that it can turn into full blow arguments. Lol
And now everyone has to suffer the 10s slow mode pain. Even though all of us could type multiple sentences in that time
I really don't get the problem ¯_(ツ)_/¯
It is really annoying, to me at least
Very very often I already have a response typed out but have to sit and wait for no reason
I think it’s only 3s for me. 🤔
It’s not too bad, a few times it bugged me but I guess it can help stop someone from spamming.
Nvm this time it did 10s, last time it did 3s.
well I get it when it's slow like now - I agree it can be annoying, but when things are hot, messages flying in from everywhere, it just ensures more people can get a message in, instead of the same 3 people sending 10 messages in a row etc
here its 10s clearly 😄
you never visited a really bussy irc channel have you 😄
not that I can recall, but I can't imagine that being much better haha - already busy enough with slowmode in Discord anyway, in bigger servers at least
and reason im here i needed to dump this somewhere: damn sometimes python is a really strange language , only in python (as far as i know) : branching logic is faster then branchless logic, for loops are redundant ~~and slower then while loops ~~ and actually just while loops. and recursion is a bad idea most of the time because of the cheer memory it requires since its not actually recursing in a functional way ... and wth are the python modulles actually? you can adress functions in them with: module.function() unlike with functions where subfunctions arent adressable like function.subfunction(), it does work with methods , class.method() but you cant create an instance of a module , nor do you have to include self, next weirdness: if you import a module , and alias it you cant use the alias to import one of its submodules... ```py
import PyQt5 as PyQt
import PyQt.Qtwidgets #<= no workey
Sure?
Depends what you need
can i send a picutre?
Unclosed tag on line 3: 'block'. Looking for one of: endblock. it says that even tho i typed it correct
Your end of block is closed with ] instead of }.
I don’t write Python or use IntelliJ anymore, but I’m surprised it didn’t notice this and give you a red line. 🤔 I wonder if it’s not good with templates or needs some kind of add on?
i was surprised aswell it didnt give me any warning on that
A quick Google I think it has support, but you maybe need to tell PyCharm about your templates: https://www.jetbrains.com/help/pycharm/templates.html
that's what he's using tbf, but he might be needing a plugin to get proper syntax highlighting on whatever template engine he uses
idk why anyone would do web development in Python though... then again I have never really written any Python, so maybe it's a good pick even for a website 
Web bad
I use Django for a project. The python is just for html templating, I still use js for various functionality
Django is nice since you can get up and running fast as it has a built in auth system, a CMS?, and a bunch of other stuff
ah, fair enough, I've only built websites with PHP tbh, from scratch that is... these days though I would probably just create a REST API in Kotlin or C#, and a frontend in Angular or React I guess... frontend is such a mess, because there is an endless amount of options 
still use php + html+css to build sites , with the help of modx 🙂 a little for managing and organising stuff
php has gotten really fast actually 🙂
my problem with PHP has never been about performance really, because it has always been fast enough to get the job done in my experience
thankfully though, even the language itself has gotten significantly better from 5.7 to 8.2 or whatever is the latest stable release now
I’m not a Python fan, but damn I have to tip my hat to how much you get for “free” in Django admin. You get an entire database admin interface. Similar in rails too.
Yeah I choose it for that reason. Not because of python
Every programming language has its pros and cons. They all suck. They all are terrible. But they also can be incredibly powerful tools. Just gotta pick the right one for your job and how you like to structure how you organize it all.
It is surprising easy to do hitbox's in unity
I ended up teaching myself, take that 21 hour video
If there is a 98.css there is likely a vista.css
So I would start there
i was actually wondering when someone was going to abuse nvidia's raytracing (or whatever generic equivalent) , to instead of casting sunrays . to cast projectile weapons for everything, with matching bullet/ projectile speeds and or shrapnel , bullets in games behave more like bullets and less like cutting lasers in some cases (the flickshot effect) 🙂 and without having to resort to really slow projectile speeds like the common light or energy weapons or rockets but really realtime bullet trajects with for the matiching gun (supersonic 50cal bmg eg:)
I am gonna put this on my Tello
I will try to do this one day
you can actually do this with html and css only , no images nor javascript used : https://codepen.io/Wujek_Greg/pen/LmrweG https://codepen.io/yashbhardwaj/pen/wvzzeV https://codepen.io/delvignefred/pen/ZEKyjeo so i think the msn backdrop is doable :p
it's still optimal to use 72DPI on screens, right? (for images this is)
I'd almost argue that 72DPI is kinda outdated, now that we have monitors with Pixel densities of 110ppi and beyond. Even more so on phones, where the standard even for budget phones has kinda become 400ppi
well, as far as I can tell, DPI doesn't matter for screen - as screens use pixels, not dots, so all you do by increasing it is add a bunch of pixels for no reason
https://daraskolnick.com/image-dpi-web/ was reading this article on it just now after I sent the message
I'm using a Samsung 49" S49A950, and literally can't see a single difference in those 3 pics on that page
also PPI = pixels per inch, not dots per inch, so as far as I could understand anyway, it's not directly comparable, you'd need to convert the DPI to PPI I'd think 
I'm so confused by this, haven't looked at the theory for this in like 10 years or so 😂
Right, DPI is just some meta data that would tell a printer how small the pixels should be...
anyone know why my script fails when i fill the command with a variable instead of hardcoding it? xd
find -L /home/alx/test/ -name "*.log" -mtime +7 # this works
find -L "$1" -name "$t" "$olderthan" # this one fails with the error: find: unknown predicate `-mtime +7'
Check whether variable $1 is empty? Is this in a script?
Or you are using a different 'find' in your script that does not support 'mtime' maybe, find which find you are using by typing in your script: which find
ye the $1 and all other variables are filled correctly
and i don't have any other "find" binaries installed, so it should use the bash default one