#development

1 messages · Page 1 of 1 (latest)

vestal spire
#

Are use case diagrams, sequence diagrams, and class diagrams still necessary in the process of development? Should I do them?

peak acorn
#

Yes

#

All the time yeah

past crest
#

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

midnight wind
#

something like that prob already exists

past crest
#

Wait a second

#

I could use something like VIA or QMK and attach a numpad to cabinet to pick the game

midnight wind
past crest
#

there’s no way it’s this easy

#

Well

#

This is now what I will be using. Thank you so much!

midnight wind
#

seems to be more updated

#

but more complicated

sturdy ingot
next cipher
#

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

wraith turtle
#

when you sit there waiting for pgadmin to load into the database for 10m -_-

peak acorn
slate frigate
#

@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

hasty tusk
#

yeah so i am making this...

rancid nimbus
#

What is that you are working on?

deft sigil
#

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

hasty tusk
rancid nimbus
#

How are you making it? What tools? What game engine are you using?

rancid crag
#

I'm gonna guess unreal

hasty tusk
#

i am using unreal yeah

peak acorn
#

Nice textures

sudden cosmos
#

Well, a great start to one, it's still pretty light on features

peak acorn
#

o_O

#

havent heard of it before

#

I just started learning kicad recently to make a keyboard pcb

sudden cosmos
#

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

rancid nimbus
#

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.

sudden cosmos
#

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

rancid nimbus
#

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.

rancid nimbus
sudden cosmos
#

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

slate frigate
#

everything can be 1d if you hate yourself enough 😄

sudden cosmos
#

the only data type i know is pointer based

sudden cosmos
rancid nimbus
sudden cosmos
#

or they just matrix the LEDs too

#

there's like charlieplexing to save I/Os

rancid nimbus
sudden cosmos
#

oh nice learning embedded rust?

#

you gonna port QMK or something?

rancid nimbus
#

Not really. I am just attempting to build something in rust. I don't know rust I am just playing with it.

rancid nimbus
sudden cosmos
#

yeah anything ARM is a good choice for embedded rust

#

i would bet rp2040 has HAL/PAL crates too

rancid nimbus
# sudden cosmos oh nice learning embedded rust?

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.

sudden cosmos
#

yeah the HAL takes care of all the unsafe access for you i think

rancid nimbus
# sudden cosmos i would bet rp2040 has HAL/PAL crates too

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.

sudden cosmos
#

oh sweet

#

i haven't played with rust yet but planning on it when i get around to it lol

rancid nimbus
#

I might write up how I set that up although it is not currently too far from every other tutorial.

sudden cosmos
#

the whole crate system is such a huge upgrade from C, makes all that stuff so uniform across different processors

rancid nimbus
slate frigate
#

I spy go 👀

sudden cosmos
#

i mean go is kind of a joke in comparison

slate frigate
#

Rude, lol

rancid nimbus
sudden cosmos
#

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

rancid nimbus
#

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.

sudden cosmos
#

I'm also interested in Nim because it compiles to C

#

could be really good for IoT

slate frigate
rancid nimbus
#

I attempted rust on AVR, but something appears to be broken and all documentation points to it should work...

sudden cosmos
slate frigate
#

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

sudden cosmos
#

Go is garbage collected so it's not really that suitable

rancid nimbus
#

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.

sudden cosmos
#

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

slate frigate
#

I think tinygo had some novel GC changes, but I'm not 100% certain

rancid nimbus
#

I think there is an rp2040 hal for go.

slate frigate
#

Yeah, they did something to the memory model

sudden cosmos
#

idk like i said i don't really get the point of Go, except maybe for web servers

slate frigate
#

I use it super heavily for data/cyber security work

sudden cosmos
#

Elixir is more interesting to me for server software

rancid nimbus
rancid nimbus
sudden cosmos
#

cause BEAM would take a long time to write from scratch in C lol

slate frigate
#

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

GitHub

Contribute to habitualdev/YaraSea development by creating an account on GitHub.

rancid nimbus
#

Nevermind, chi bin is not a real target.

slate frigate
#

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

sudden cosmos
#

using python for anything but scripting or data analysis no thanks

#

great for those tho love the ESP build system built on python

slate frigate
#

I think we can all agree its very concerning how much production relies on python

sudden cosmos
#

wonder why webcord can't post pictures

#

from a Nim book lol, but it's interesting

rancid nimbus
#

What is metaprogramming?

sudden cosmos
#

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

slate frigate
#

I'd argue go can do that in a limited fashion, but its painful

sudden cosmos
#

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

slate frigate
#

I can always tell if someone built their API with python when it returns non-compliant json

sudden cosmos
#

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

slate frigate
#

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

sudden cosmos
#

they just mean what if they wanna hire an undergrad who can only write python and only barely

slate frigate
#

hah, as if. They would barely even glance at an undergrad

sudden cosmos
#

it annoys me so much that it's just like the standard language now

slate frigate
#

Gov work, where paper is king, even if you can't do whats on the paper

sudden cosmos
#

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

midnight wind
#

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

slate frigate
#

It;s not BAD, its just people just leave it in place for scales its not meant to be for

sudden cosmos
#

isn't next.js easier? that's what i use when i need to bang something out anyway

midnight wind
#

Yeah, I mean this is some small webapp

midnight wind
sudden cosmos
#

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

midnight wind
sudden cosmos
#

i suppose django makes sense if you're just providing access to a SQL database for business backend stuff

midnight wind
#

That's kinda what it's for

#

The thing I'm making that is

sudden cosmos
#

yeah, but like for a sophisticated web app you'd end up using jquery or something on the frontend?

midnight wind
#

Fetch from quickbooks, allow external users to access pricing with super simple auth

midnight wind
sudden cosmos
#

ah gotcha

#

i mean before long React will be dead too i bet

midnight wind
#

I don't like webdev, but I just kinda got sucked into it

#

Any serious dev work really

sudden cosmos
#

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

wind horizon
#

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? 🤔

sudden cosmos
#

i guess WASM is a bigger deal for people/companies that like C# but yeah

wind horizon
#

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…

sudden cosmos
#

html on the wire? are they just reinventing ruby on rails?

wind horizon
#

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.

midnight wind
#

Isnt that what fresh does too

wind horizon
#

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

sudden cosmos
#

sounds like they're just reinventing server side rendering lol

wind horizon
#

It’s kind like trying to mix SSR and SPA in a sense.

midnight wind
#

Server side rendering with client hydration. I guess less load on server?

sudden cosmos
#

oh i see

wind horizon
#

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

sudden cosmos
#

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

wind horizon
#

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.

slate frigate
wind horizon
#

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

sudden cosmos
#

shit i forgot the name of the one i really liked, Svelte is kinda interesting tho

wind horizon
#

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.

wind horizon
sudden cosmos
#

REMIX, that's it, it's so good https://remix.run/

Remix is a full stack web framework that lets you focus on the user interface and work back through web standards to deliver a fast, slick, and resilient user experience. People are gonna love using your stuff.

wind horizon
#

Ah yeah it’s kind like the JS version of rails m, everything you need in a box.

sudden cosmos
#

it's similar to next.js but the server side stuff makes a lot more sense

nocturne galleon
sudden cosmos
#

yeah most of the cool stuff now is just simplifying the good ideas from React and stuff

wind horizon
#

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.

tame depot
#

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?

sudden cosmos
#

don't know xampp but probably some kind of permission issue

hollow basalt
#

What should I do?
Don’t do that

deft sigil
#

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/

MODX

Leave behind endless compromises of legacy CMS. Rapidly develop any digital experience and power it with a tailor-made content management system.

devout iris
pseudo skiff
#

Is an dedicated GPU going to help in performance etc. with Unreal Engine 5?

silk eagle
#

cpu also matters though, probably wont do well with an old i3

pseudo skiff
#

i have an 5700G, i guess i am okay

jovial gazelle
#

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

vagrant python
#

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)

silk eagle
#

way easier to get support if u just say what ur having trouble with here

vagrant python
#

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

vagrant python
vagrant python
silk eagle
#

have you tried it?

sudden cosmos
#

but yeah removeAttribute isn't correct

vagrant python
#

That was added, and doesn't solve the problem

vagrant python
silk eagle
hollow basalt
#

removeAttributte is correct

sudden cosmos
#

well okay i just always used the .disabled=false; syntax too

hollow basalt
#

@vagrant python all of the answers above are arguing on the disabled . my advice is to first check if your trigger function actually fires

silk eagle
#

FeelsBadMan thats a better idea

sudden cosmos
#

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

vagrant python
#

Checking atm with the syntax checker, there's some syntax issue

#

Checking atm with the syntax checker, there's some syntax issue

sudden cosmos
#

why are you asking for help with the code if you can't even balance the parantheses and brackets first

vagrant python
sudden cosmos
#

you fucking read you dumbass, you're the one asking for help

vagrant python
#

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.

vagrant python
#

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", "");
}
};

midnight wind
#

stepping though with debugger is a godsend sometimes

#

or spam console.log()

vagrant python
#

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.

midnight wind
#

don't worry about it

vagrant python
#

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.

midnight wind
#

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

vagrant python
#

Yeah, I've seen few of those

wind horizon
#

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.

wind horizon
#

You can use noscript html tag to show a message to users with JS disabled.

daring trench
#

does anyone know what the "utilities" package for python is

#

ive been trying to install it i get an error that it doesnt exist

midnight wind
daring trench
#

do you know where to find the source files for it?

midnight wind
daring trench
#

ok

midnight wind
daring trench
#

sample code

midnight wind
#

what references it

daring trench
#

make_request

midnight wind
daring trench
#

i have to find it again

silk scarab
#

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?

midnight wind
silk scarab
#

As we want to start an app for it

#

And like take it to the next level during our college times

midnight wind
#

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

silk scarab
# midnight wind to do what exactly?

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

midnight wind
#

sorry, but that's still pretty vague.
So basically just find a vet?

silk scarab
midnight wind
#

ok, so for now go with a simple website

silk scarab
#

Ohhh okay

wind horizon
#

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.

midnight wind
silk scarab
wind horizon
midnight wind
#

ah like medium

silk scarab
wind horizon
#

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.

midnight wind
#

same, unless it's linked from another site, or it's some more well known person

#

hackernews has some interesting posts sometimes

livid bison
wind horizon
#

Oh yeah I forgot about hackernews.

midnight wind
#

well now there's PWAs, so I guess you can have a website and "app"

livid bison
#

Gross

midnight wind
#

2 birds 1 stone ¯_(ツ)_/¯

#

ugly sure

wind horizon
#

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.

midnight wind
#

huh apparently starbucks is a PWA

wind horizon
# midnight wind 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?

#

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. 😅

slate frigate
rancid nimbus
#

Why do some people use pull up inputs over pull down inputs? Is there a power usage difference?

wind horizon
#

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?

rancid nimbus
#

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?

sturdy ingot
#

It does not; I'm too tired for that discussion and had a brain fart, sorry, removed my message.

nocturne galleon
#

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)

midnight wind
nocturne galleon
#

I am using bare HTML, sorry if I am vauge, I am a noob

midnight wind
# nocturne galleon 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.

nocturne galleon
#

Okay, and you mentioned wordpress, I've heard of it, but what does it do?

midnight wind
#

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)

nocturne galleon
#

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

midnight wind
nocturne galleon
#

"Get started - free"

midnight wind
midnight wind
nocturne galleon
#

ah, good

wind horizon
#

Are you trying to learn to become a full time web dev or just trying to learn enough to make a personal site?

midnight wind
#

yeah good question...

wind horizon
#

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. 😅

nocturne galleon
#

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

nocturne galleon
midnight wind
#

another thing with just getting a VPS, proper security

nocturne galleon
#

I have certificates and all that installed and on auto-update

midnight wind
#

ssh keys?

nocturne galleon
#

yep, certbot and everything

midnight wind
#

not ssl, ssh

#

to log in

nocturne galleon
#

I have a key to log in

hollow basalt
#

to the server

nocturne galleon
#

Yes

midnight wind
#

ok good, make sure password auth is disabled

nocturne galleon
#

I'm pretty sure I disabled it but I'm going to double check

midnight wind
#

I mean yeah, I would try ghost

nocturne galleon
#

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>

midnight wind
#

I mean your uploading to a server...

#

it's not a good solution

wind horizon
#

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.

nocturne galleon
#

It's not

midnight wind
#

just upload to your own server

nocturne galleon
#

however for now I'm just tinkering

midnight wind
#

you have a vps, a CMS like ghost allows drag and drop uploads

nocturne galleon
#

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!

midnight wind
#

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

slate frigate
#

I use ghost for my "personal" page. It has a lot of features that I don't need, but its robust enough

ornate summit
#

Is lua_pushboolean used for opaque pointers?

peak acorn
#

Are there any apps that immediately start recording video + uploading it to an offsite server?

#

for mobile, obviously

silk eagle
#

obviously

ornate summit
#

ffmpeg?

peak acorn
#

A name then

#

I mean i click the app and as soon as it opens it starts saving and transmitting video

ornate summit
#

Does anyone happen to know if Lua has a built in way to list all globals?

deft sigil
#

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)

silk scarab
#

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??

hollow basalt
#

Heyy, This is Atul,
You should not do what you just did

regards,
not this is atul

slate frigate
#

@silk scarab What's the http error code, and have you recorded what happened with your browsers network recorder? (f12, network tab)

peak acorn
#

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

slate frigate
#

App.diagram has a pretty solid uml selection

oblique remnant
valid gust
#

at a first glance it looked like some sort of handshake

peak acorn
#

Yeah it is

hollow basalt
#

It is

peak acorn
#

(It is)

nocturne galleon
#

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

cloud knot
#

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

odd cradle
silk scarab
#

Heyyy guys can anyone suggest me alternatives for wordpress

sage vector
silk scarab
sage vector
#

E.g. if you just want static web site, you can use a generator like Hugo

silk scarab
#

I'm trying to open the local host

#

It's saying that the site can't be reached

sage vector
silk scarab
#

The error which I found with the network recording

sage vector
#

Well.... have you looked in the log file for your HTTP server you are using?

silk scarab
#

Yes I have

sage vector
#

Also, you should use the "Network" tab to identify problems here

#

The recoder seems useless since it does not tell me anything

sage vector
# silk scarab Yes I have

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

silk scarab
#

I have been searching on this for 3 days straight now

sage vector
sage vector
#

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

hollow basalt
#

solving a problem instead of avoiding it ❤️

limpid reef
# silk scarab Heyyy guys can anyone suggest me alternatives for wordpress

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.

spark temple
# silk scarab No actually wordpress was really great up until this

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.

silver furnace
#

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 patrick_dumb

#

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.

brazen oriole
spring cradle
#

all fun and games until someone uses a tv in the same room

silk eagle
#

I use a TV in the same room as my IR-controlled led lights, volume up is "flash" mode, volume down is purple

slate frigate
#

Would be fun to build into a cyberdeck

nocturne galleon
#

tv b gone lo

vivid meteor
#

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

vivid meteor
outer mortar
#

@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

#

and oackage .json ive deployed them through heroku and github but the bot will not come online

midnight wind
#

and the error?

outer mortar
#

it the error was that const client = new Discord.Client() Discord.Client is not a constructor

midnight wind
#

also read the guide

#

actually disregard

midnight wind
outer mortar
#

will do

outer mortar
midnight wind
outer mortar
#

will do

midnight wind
#

and const client = new Client()

outer mortar
#

nope they didnt work - heroku shows the bot as deployed but not online

midnight wind
outer mortar
#

ill carry on working on it tomorrow thanks for the help though mate

midnight wind
#

does it run within repl

#

one step at a time, first get it to work in dev enviroment, then you work on prod

outer mortar
#

ill ill confirm now

midnight wind
#

also I recommend using slash commands, since discord kinda wants to move away from people using prefixes

outer mortar
#

/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 🙂

midnight wind
#

also I forgot if you are using node, just use require

#

const { Client, GatewayIntentBits } = require('discord.js');

spark temple
#

The joys of the small differences between import and require....

wind horizon
#

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

silent sluice
#

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
brazen oriole
#

did you even open it?

#

It is specifically designed to not interfer with the TV

#

or whatever the remote is for

spring cradle
#

no i was skimming and wanted to make a bad joke

#

yeah i use reddit im sorry

brazen oriole
#

lmao

nocturne galleon
# silent sluice This is my code ```js app.get("/api/callback", async(req,res) => { const For...

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

glass frost
#

Would this be the sort of place to discuss assembly?

spark temple
spark temple
#

Also the oauth is probably throwing the error. It’s trying to get the user that’d undefined.

#

Also, where is oauth even defined?

charred sleet
#

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

spark temple
#

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.

spark temple
slate frigate
#

Oh my god, why have I slept on swagger so long? That was the easiest api documentation process I've ever done

spark temple
#

Swagger is great if done correctly.

slate frigate
#

@spark temple up until now its all been hand jammed. Still need to do some uml diagrams, but picture easy words hard

spark temple
#

Totally get it. I’ve seen people do API documentation in word. It made me cry.

slate frigate
#

Excuse while i go take some aspirin from just reading that

wind horizon
#

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. 🙂

hollow basalt
#

swagger extension that would spit out API documentation in word

onyx lion
#

Anyone knows how to do programming language?

silk eagle
#

I do 😎

spark temple
#

Programming is just like… a conspiracy.

onyx lion
silk eagle
#

tips for what

onyx lion
#

I wanted to add jmp for another instruction but Idk how, are there any ways for this?

silk eagle
#

i have no idea what im looking at so idk

onyx lion
#

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

silk eagle
#

no clue

onyx lion
#

well damn

#

How do I add another step then?

spark temple
spark temple
#

Typically jump for assembly is jmp.

#

But that was Motorola assembly I did.

onyx lion
spark temple
#

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.

onyx lion
spark temple
#

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.

sage vector
#

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 🙂

high lark
#

Hi can anyone read java

hollow basalt
#

i can read english

high lark
sage vector
# high lark Hi can anyone read java

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 🙂

midnight wind
silent sluice
glass frost
# spark temple Possibly. What about 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

spark temple
# silent sluice why

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.

spark temple
dark pulsar
#

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.

hollow basalt
bitter edge
#
I forgot how java works again
hollow basalt
#

ok

dark pulsar
#

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.

midnight wind
#

It should not be going through caddy at all

#

It can't anyway

#

If you can give specifics on the IPs that would help

dark pulsar
#

@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.

hollow basalt
#

permission error

midnight wind
dark pulsar
#

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

midnight wind
hollow basalt
#
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

midnight wind
dark pulsar
#

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?

lament bridge
#

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 😄

twilit beacon
#

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?

hollow basalt
twilit beacon
# hollow basalt 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"

midnight wind
#

frontend is pain, at least for me

#

backend is nicer

twilit beacon
#

how come

#

i dont know much about both, but feedback of the cons/pros could help me decide

hollow basalt
#

it is

twilit beacon
#

whats the diff

#

what makes backend nicer

hollow basalt
#

it's back

twilit beacon
#

idk

midnight wind
twilit beacon
#

what would be some of the things i would require to know in backend

midnight wind
#

try to do it, you may like it, but I don't

midnight wind
twilit beacon
#

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

midnight wind
#

it all depends

hollow basalt
#

i dont know anyone who does dront emd

midnight wind
#

golang, python, js

twilit beacon
hollow basalt
#

you can be front end and/or design only
so many things to do

twilit beacon
#

so youre most likely just fullstack

hollow basalt
#

not really, there are various paths to take

twilit beacon
#

thats the problem, its just too many paths to take or to clearly know where to go

hollow basalt
#

indeed, you can be a fullstack or an accountant. up to you really

twilit beacon
#

how about java, looking at job offers it seems like its still relatively relevant

#

could it be a future proof language?

hollow basalt
#

Don't learn just one language.
Learn development as a whole

sage vector
#

So choose nearly whatever programming language you find interesting and just do some development with it

twilit beacon
#

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

livid bison
# twilit beacon ig ill do html, css and js for now as those are gpnna be in the finals, basic kn...

@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.

bitter edge
#
<html>
<head>idk</head>
<body>
<p>this is smth</p>
</body>
</html>
twilit beacon
livid bison
#

More and more companies are dropping college degree requirement too

nocturne galleon
#

uni is a pain and i want to avoid it unless i have literally no other option

nocturne galleon
#

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

twilit beacon
#

look whar i made deusweb with leopards

upbeat wyvern
#

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?

next cipher
#

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

nocturne galleon
#

Definitely not python, typescript instead

#

Python is a pain

onyx lion
nocturne galleon
#

It's by far the hardest mainstream language to read imho, its dynamic typing and more importantly its indentation based syntax kill it

sick bone
hollow basalt
nocturne galleon
sick bone
#

So would your optimal language just be like assembly then?

nocturne galleon
#

No, the polar opposite of something bad isn't necessarily good :p

#

My favorite language is kotlin

sick bone
nocturne galleon
#

Yep

#

Free functions, proper function types, nicer lambdas, etc

#

Great for DSLs too

silk eagle
cinder willow
#

Python is not hard to read really…

spring cradle
#

i did a thing and i am proud, '1' + '2' = 'c'

#

one command and its almost readable!

#

i think this is a bit cleaner

empty carbon
#

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?

silk eagle
#

try both and choose whichever you enjoy more because youre gonna be spending a whole lotta time doing it

empty carbon
#

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.

midnight wind
#

Don't need to deal with client compatibility, styling, etc

ornate summit
#

I'm being stupid and I'm trying to write a Vulkan rendering engine to attempt to make use of modern thread counts.

dark pulsar
# dark pulsar

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.

inland relic
#

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

midnight wind
#

so it will be

for m in range(int(c)):
    t.lt(int(a))
    t.fd(50)
    b=b-a
midnight wind
#

c=(int(a)/int(b) should be c=int(a)/int(b)

inland relic
#

thx it works now

twilit beacon
#

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?

wind horizon
# twilit beacon and how do i comnect every part? can i just connect it via html files for now un...

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.

wind horizon
twilit beacon
twilit beacon
#

idk i dont know much about it

midnight wind
#

Don't just open html

midnight wind
#

Like / would be index

hollow basalt
#

and /index.html would be index

midnight wind
#

well not really, it's mostly referenced by /

twilit beacon
#

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?

hollow basalt
twilit beacon
#

how about the scripts, do i keep them external or nah

hollow basalt
#

how about, just do what you would do to your site and worry about your files later

twilit beacon
#

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

restive ore
#

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

sick bone
#

Hope that helps

midnight wind
#

^

#

I use devtools emulation all the time

restive ore
#

ty, also my bad I meant to write PWA*
I use chrome, mostly because I'm too lazy to switch and adapt to firefox

blazing tulip
wind horizon
#

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.

blazing tulip
livid bison
#

For the longest time Chrome's inspector wasn't 100% dark mode which pissed me off

nocturne galleon
#

is a program requiring a newer library version considered an API breakage in the semver sense?

hollow basalt
#

no

nocturne galleon
#

any rust developers in?

hollow basalt
#

no

rancid nimbus
#

I write some rust, but do not actually know the language.

nocturne galleon
neat zodiac
#

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?

fringe cloud
ornate summit
#

That feeling when you want a preprocessor in a language that doesn't have one.

deft sigil
#

you can just run it in the debugger , no need for an interpreter 🙂

deft sigil
deft sigil
# ornate summit That feeling when you want a preprocessor in a language that doesn't have one.

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...
▶ Play video
deft sigil
#

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)

neat zodiac
#

Or you could just do it through system calls like wctl does in c++ or C….

ornate summit
#

Shouldn't that just be modifying stuff in filesystems like devfs and procfs?

nocturne galleon
#

only 1000 lines of code

ornate summit
#

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?

fickle verge
#

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?

covert burrow
#

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

covert burrow
keen hound
#

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

ocean venture
#

Anyone have any experience on how powerful of a GPU would be needed for relatively simple machine learning?

hollow basalt
#

just enough gpu

livid bison
rancid nimbus
# ocean venture Anyone have any experience on how powerful of a GPU would be needed for relative...

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.

worldly musk
#

Resizable BAR isn't really something that us Vulkan devs need to care about, it's more a driver/OS/hardware thing.

ornate summit
#

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.

worldly musk
#

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.

ornate summit
#

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.

worldly musk
#

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.

ornate summit
#

Eh, I haven't gotten too far yet. Just thinking about how all of the layers work together.

#

Linearly tiled images?

#

Like an atlas?

worldly musk
ornate summit
#

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.

worldly musk
#

Yeah, that's a good way to word it

ornate summit
#

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.

worldly musk
#

That last portion you mentioned should solve it.

#

What lang are you using?

ornate summit
#

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.

ornate summit
#

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.

modern wigeon
#

Can anyone teach me how to make advanced bots in discord

nocturne galleon
#

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

modern wigeon
# nocturne galleon Define "advanced"

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

nocturne galleon
#

I can't watch right now

modern wigeon
#

Neither can I.

#

Tomorrow sometime work @nocturne galleon

nocturne galleon
#

Purrhaps

ornate summit
ornate summit
#

Do any AMD64 CPUs natively support F16? I wouldn't think so.

cinder willow
# modern wigeon Soo basically I want to make voice channels that I can break out into another ro...

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.

merry comet
#
nocturne galleon
#

fair

nocturne galleon
#

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

twilit beacon
#

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

sly marten
#

never done that type of thing with CSS before though

twilit beacon
nocturne galleon
#

don't hijack scrolling

twilit beacon
#

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💯 💯

neat zodiac
#

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?

violet cipher
#

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.

midnight wind
midnight wind
#

just causes lag

nocturne galleon
wind horizon
#

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.

sly marten
#

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 skypeworried

sturdy ingot
sly marten
#

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

wind horizon
sly marten
#

regardless, those are definitely good tips for anyone who potentially comes across this convo 🙂

ornate summit
#

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.

twilit beacon
twilit beacon
twilit beacon
twilit beacon
#

it doesent need to be fancy, just something that looks cool

#

and is fun to look at

lament bridge
#

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.

rancid nimbus
lament bridge
#

Yeah, I thought of filter(), but I am not sure if that would work with multi filtering

rancid nimbus
#

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} )
sly marten
# twilit beacon and is fun to look at

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

hollow basalt
#

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

sly marten
#

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

hollow basalt
sly marten
#

so same as me then

#

unless you copied my message and rephrased it, swear it looks so! 😂

hollow basalt
sly marten
#

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!

twilit beacon
#

ultimately it is quite cool to have your own website you made yourself and absolutely going mental on the features

sly marten
#

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

twilit beacon
#

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

sly marten
#

I don't need to show off my skills, my CV already does that for me 😛

twilit beacon
#

yeah but imagine how it would be with some three.js

sly marten
#

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

twilit beacon
#

still its cool

sly marten
#

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 😛

twilit beacon
#

what do you do as a job

#

web dev?

sly marten
#

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)

twilit beacon
#

ah cool

tight parcel
twilit beacon
#

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

sly marten
sly marten
# twilit beacon i am just doing my website because i still have some time to do side learning wh...

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 pogg
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

sly marten
twilit beacon
#

Sometimes I wonder if i should have gone back to python or c++ though i never got to make any bigger app/software

sly marten
#

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

twilit beacon
#

it was usually something small and not useful cuz i had no propper idea of any program

sly marten
#

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)

twilit beacon
#

wait so you just got employed by those server owners to make websites?

sly marten
#

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

sly marten
twilit beacon
#

oh, so you didnt charge them anything for those sites?

sly marten
#

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

twilit beacon
#

ah i was confused i thought someone else was the runescape server owner

sly marten
#

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

twilit beacon
#

what do you use for navigation bars usually? buttons in unordered lists?

sly marten
#

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 😂

twilit beacon
#

ah so basically you dont do buttons

sly marten
#

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

sly marten
twilit beacon
sly marten
#

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

twilit beacon
#

yeah

#

thats exactly it

sly marten
#

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

twilit beacon
#

well at least its a quick fix i could easily implement

sly marten
#

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

twilit beacon
#

what would the preferred sort way be

sly marten
#

preferred sort way?

twilit beacon
#

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

sly marten
#

no, HTML/CSS in general is annoying to work with

twilit beacon
#

ah

sly marten
#

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

wind horizon
#

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.

sly marten
#

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

midnight wind
#

I just used Hugo

#

Write in markdown

#

GitHub as cms basically

sly marten
#

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

midnight wind
#

Mine rn is in latex

sly marten
#

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

midnight wind
#

Found a nice latex template, simple, straight to the point

sly marten
#

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 thinkThink

#

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

midnight wind
sly marten
#

ahh, readability is just a little less than ideal in that imo

midnight wind
#

with that much text, which I do not have

sly marten
#

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 😂

wind horizon
#

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. 😅

sly marten
sly marten
#

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 😂

wind horizon
#

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. 🙂

sly marten
#

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

hollow basalt
#

Im only on my 2nd job so i better get some certs and update my resume

peak acorn
#

LaTeX is too annoying to make resumes

#

Do it in html, much better

hollow basalt
#

.txt take it or leave it

next cipher
nocturne galleon
#

pandoc on top

peak acorn
#

I've never heard of pandoc, that looks so useful

hollow basalt
#

Rugg never heard of pandoc, I agree it looks really good

peak acorn
#

Kyou agree pandoc heard never, u really good agree it looks

nocturne galleon
#

you can write your shit in markdown and insert a latex bibliography and render it in latex

lament bridge
#

Is it possible with CSS to create a simular background?

livid bison
sly marten
#

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)

lament bridge
#

I found it 🙂

#

its actually perfect because its gray, so I can use a colored layer above or underneat

shadow field
sly marten
#

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 skypeworried point remains the same though

undone pilot
#

Testing in prod 😆

sly marten
#

got to love that haha

undone pilot
#

I dont ever want this notification to go away. Gotta keep this phone alive

silk eagle
lament bridge
shadow field
#

I was suggesting making it yourself

peak acorn
#

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

sly marten
peak acorn
#

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

sly marten
peak acorn
#

Just goofy

sly marten
#

a literal playable game lmao

peak acorn
#

No problem with it

Btw slow mode sucks bad

sly marten
#

put more stuff into the same messages instead 😛

peak acorn
#

I only had 1 thing to say until u said more

sly marten
#

yeah, but in general, to not be annoyed by slowmode lol

peak acorn
#

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

ocean venture
#

Does anyone have a tutorial for deploying /making a webapp to utilize a ml object detection model that is trained using Google auto ml?

wind horizon
peak acorn
#

And now everyone has to suffer the 10s slow mode pain. Even though all of us could type multiple sentences in that time

sly marten
#

I really don't get the problem ¯_(ツ)_/¯

peak acorn
#

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

wind horizon
sly marten
deft sigil
#

here its 10s clearly 😄

deft sigil
sly marten
#

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

deft sigil
#

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

empty badge
#

anyone familliar with python here

#

need help ;0

violet cipher
#

Sure?
Depends what you need

empty badge
#

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

wind horizon
empty badge
#

oh my f ing god

#

your a life saver

wind horizon
#

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?

empty badge
wind horizon
sly marten
#

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 thinkThink

peak acorn
#

Web bad

midnight wind
#

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

sly marten
deft sigil
#

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 🙂

sly marten
#

thankfully though, even the language itself has gotten significantly better from 5.7 to 8.2 or whatever is the latest stable release now

wind horizon
midnight wind
spark temple
#

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.

waxen river
#

It is surprising easy to do hitbox's in unity

#

I ended up teaching myself, take that 21 hour video

waxen river
#

So I would start there

deft sigil
# waxen river It is surprising easy to do hitbox's in unity

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:)

waxen river
#

I will try to do this one day

deft sigil
#

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

Pure CSS mobile phone, based on iphone X mockup. Everything is made byc CSS, no svg, no base64...

Check out My Solar System with actual velocites!...

sly marten
#

it's still optimal to use 72DPI on screens, right? (for images this is)

grizzled steeple
sly marten
#

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 thinkThink

#

I'm so confused by this, haven't looked at the theory for this in like 10 years or so 😂

grizzled steeple
#

Right, DPI is just some meta data that would tell a printer how small the pixels should be...

bleak dew
#

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'

hexed mountain
#

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

bleak dew
#

and i don't have any other "find" binaries installed, so it should use the bash default one