#development
1 messages · Page 20 of 1
so figured maybe js is not the worst option in this case and lets simplify this nightmare
wich would then be equivalent to somethingk like this : ```js
autowatch = 1;
inlets=2;
outlets=13;
var followLive=0;
var history = new Array();
var object = new Dict("dObj");
// Create a new Max for Live JavaScript object
var API = new LiveAPI("live_set view");
function anything(){
var a = arrayfromargs(messagename,arguments);
switch (this.inlet){
case 0:
inlet0(a);
break;
case 1:
inlet1(a);
break;
}
}
function inlet0(a){
var param = API_readID(a);
outlet(1,param);
}
function API_readID(id){
var obj = new Array();
var sel = new LiveAPI(id);
obj[0] = (sel.get("id")).tostring();
obj[1] = sel.get("name").tostring();
obj[2] = sel.get("canonical_parent").tostring();
return obj;
}
function inlet1(a){
followLive=a;
outlet(0,"path","id 0");
if (followLive == 1){
outlet(0,"path","live_set view selected_parameter");
}
}
and this (to get it working becaue im working backward here ) form statements without logic to something with logic
Well you can always morph detail. Let’s say it for instance a gravel road with a handheld camera panning. You could use detail from previous frames and essentially morph it onto the current frame. Although, of course this solution has to be somewhat competent. Because if you just do that you end up with that ”morphing” effect. It has to be a conservative solution that only upscales or adds the detail that is possible to add. Think of it as stacking or stitching images in photoshop. They do a fantastic work even in if some scenes might have a slightly different angles, viewpoints and such. Now, obviously for a camera that is not moving and/or objects that are not moving you wouldn’t be able to upscale because there is no additional detail that can be captured/accumulated from future or previous frames right? But for hand held shots specifically it could be useful I think.
Not sure if anyone here uses WezTerm, but here is my sessionizer plugin (inspiration from tmux-sessionizer)
i think i get what you mean, when panning one frame might be shart with the next being fuzzy, then using the previous to copy over the detail as it were and move it over a few pixels so the pattern matches up again... , and it might work but also this is an illusion of detail , since while panning the light will also change ,taken to the extreme to show what i mean if you were do do a verry long pan and only have two sharp frames , the firs tand the last and have to fill 10 seconds of fuzzy in between them if the only light source available comes form the camera ,, it becomes obvious what the effect will be the detail will be there but the gravel will still be lfghted as if the rotation or movement is not happening and the gravel is shifting out of frame like a conveyer belt rather tahn the camera moving, so your not increasing detail your basicly inventing it , wrongly in this case, and since the detail with correct angles of lighting does not exist it will always be an illusion and not actual detail one is creating
i uze wezterm on a halftime basis, best terminal there is , if only it would allow infinit scrollback buffer 🙂
also only terminal i know of that supports the , doublesize ansi escapes 🙂 ```sh
printf '\x1b#6like this \n'
Well the light will only change in any meaningful way if you move a longer distance in a short amount of time or pan very fast. If you pan a video slowly there is no reason why you wouldn’t be able to do this. Though the first frame and last frame might be lower quality because of there not being any previous and future frame respectively. And obviously maybe you would need some kind of profile for the amount of detail in a given area of the image. One example of this can be the camera OM-1 which use a high resolution mode and computational photography to achieve a higher quality image. Again, you can stack images in something like photoshop and the image gets better even if the lighting or perspective changes slightly through the images your stacking. It is not inventing detail because the detail is there. Just not at the same time.
The lighting conditions change with a moving camera or subject, irrespective of how fast the motion is. I think you're going to need an AI model that can somehow gain at least an understanding of the scene lighting but also probably the materials and camera optics. Without that information how can it determine what detail should be incorporated into another frame? Determining a best shot in a set of images of a static scene is a far simpler problem than a dynamic video.
😢
Steering council accept literally any good change challenge (impossible)
Although tbh I don't like that pep just based on the title
But they reject a shit ton of legitimately important changes
And don't get me STARTED on the typings council
maybe a more extreme example but like gavvel or sand are a milion tiny versions of it... if yoy imagine panning in a room with 5 static disco/mirror balls and a single source of light ... , every frame while large ly the same will have differnt angles of the light coming from the source so look different , same with the tiny gravel or sand crystals, while you might not see much difference when looking at it , you will defenetly see it when the small changes are no longer there 🙂
also made a request once there , didnt even get that far so i made it myself lol 🙂
would have been nice to have some support for it in the language itself, (some things cant be done like initializing my dict using {}, eg ,
but i can create and acces keys in dicts as if they were methods or poperties of an object 🙂 missing ones get created on the fly so its nice if you have deeply nested structures 🙂 and you can still access them the regular way to , and mix and match for iterationg over some part half way the datastucture 😄 :
That is kind of what I am suggesting, an intelligent solution which takes movement of camera, obstruction of objects and all those things into account. However, the best shot in a set of images of a static scene (when the scene does not change that much in any way) is all the images. Because there is not difference in between them, though I guess the signal to noise ratio would be much better.
Hey guys i am making a game, and i am currently making a jump funktion for my player, but when i use a bool to make sure they can only jump while grounded, it dosent, work. it work fine with out it, but when i do use the bool i dosent work, any ideas? have tried to use fixed update but that dident help either i am making the game in unity. dont fokus on the names of my variables, i was pisseed so i kinda just named my bool that in forstration :D, (i use serializedfeild, so i can se in unity if my bool gets set to false. and it dose set the bool to false, but my player dosent jump. but when i dont have any bool to check if it is on the ground my player jumps)
variable names 🙏
Make sure you're setting fuckdig back to true after the jump is completed:
void jump() {
playerbody.AddForce(new Vector2(0f, jumpHeight));
fuckdig = true;
}
Also, make sure your variable names are descriptive, especially before you post them online
Lastly, you dont need to == true a boolean! Just writing if (fuckdig) does the same thing and is more readable 🙂
Hope your game goes well!
thank you, i got it to work earlier, i found out i need way more force, becuase of the small amount of time it would add force... but i will take the advice with me, also it's my first game, and i have only been coding for the past 6 month, and i am trying to learn how game dev 😄
Yeah fs!
Dw, we've all been there 🙂
Just dont forget to not stop learning, and sometimes figuring it out yourself is really fun!
im not shitting on your code here , as its prolly better as what i can pull off , but i always find it hilarious how once you start doing a small portion , or start a project OOP style it spreads like a virus in the code , but also in your mind , to the point that :
playermovement now is a thing instead of a verb , because if you think about it its a strange way of seeing the world. but passing an object trough an unbound function feels off once there is something oop style in the code .
also player movement being a class would mean , a possible instance of that class would be walk another maybe fall(jump=-5f), wich gets fun when you have a a rock that can fall , wich now requires an EverythingelseMovement that basicly partially has the same methods an properties, but completely different instances 🙂
XZ back door hack in Linux was found exploiting SSH with liblzma but was is the aftermath? Linux Distros like Fedora, Red hat, Ubuntu, Debian, Arch Linux were effected only if using bleeding edge software. We now get an in depth analysis of the timeline and a report from the Wolves in the Repository: A Software Engineering Analysis of the XZ Uti...
Fwiw, this is Unity - you make new components by creating a new derived type
Unity's system isn't actually super OOP, even though it looks like it at a surface level
In Unity, you can make a Gravity component and apply a downward force on any game object it is applied to, you don't have to do the song and dance you describe
(which that's also built in but I digress)
And I do want to say that using a few classes here/there doesn't make your program OOP. OOP is more about the interactions between these classes, not just that a few exist.
Message passing is a very often forgotten part of OOP from its inception, Smalltalk
That covers how objects interact with each other
ow no, know , objects dont even make it oop , oop requires that you desing the solution geard towards the use of only objects as it were.(object oriented ....) all i wanted to say (and i meant that ireally wasnt shitting or tought it was bad code or whatever) is that the names used become funny after a while, playermovement , its like a thing, because once you start thinking things ... it seems to spread 🙂 , lets say is horizontal a thing? or an orientation of some axis?, but i get why its a thing in this case becaus how else would you make the playerobject know the behavior ? move(player) and change values in the object theat way feels like a violation,( because coupling) so we make a class of movement types 🙂
what he says is that in OOP, it is good for objects to represent objects, and methods are, well, what can you do with them. So instead of "PlayerMovement" object, you got a Player object, which might have a move method, which accepts a Movement interface, which is then implemented by "Up, Down, Left, Right" objects for example. Or something like that
IMO, for Unity specifically I would not do that
You want to split up your components to unique behaviors
Outside of Unity, I think games in particular are a very difficult problem to solve under the "classical OOP" idea that people have
Just because they are very dynamic and most OOP languages don't let you add/remove bases at runtime
That's why component architectures work so well for games, but (slight hot take) - you can apply much OOP philosophy to these component architectures and reach the same results
the fabled ECS design system
Please share a link to a paste of a minimal reproducible example (https://en.m.wikipedia.org/wiki/Minimal_reproducible_example) so we can help.
In computing, a minimal reproducible example (abbreviated MRE) is a collection of source code and other data files that allow a bug or problem to be demonstrated and reproduced. The important feature of a minimal reproducible example is that it is as small and as simple as possible, such that it is just sufficient to demonstrate the problem, but...
You don't even need a full ECS. "EC" like what Unity has is plenty
the humble python runtime fuckery:
Yeah I'd rather avoid that bundle of hell
from ctypes import *
import sys
__all__ = ['goto', 'label']
def compute_jump(frame, label):
code, names = frame.f_code.co_code, frame.f_code.co_names
get_var = lambda i:{**frame.f_globals, **frame.f_locals}.get(names[i])
instructs = [*zip(code[::2], code[1::2])]
for idx, (inst, arg) in enumerate(instructs):
if inst == 106 and names[arg] == label and \
isinstance(get_var(instructs[idx - 1][1]), Label):
return bytes([113, (idx - 1) * 2])
raise RuntimeError(f'could not find label [{label}]')
def replace_inst(code, inst, idx):
code_addr = id(code) + bytes.__basicsize__ - 1
raw_code = (c_char * len(code)).from_address(code_addr)
orig, raw_code[idx:idx + 2] = code[idx:idx + 2], inst
return orig
overwritten = [None, None]
class Goto:
def __getattr__(self, label):
frame = sys._getframe(1)
idx = frame.f_lasti + 2
orig = replace_inst(frame.f_code.co_code, compute_jump(frame, label), idx)
overwritten[:2] = (orig, idx)
__mul__ = __getattr__
class Label:
def __getattr__(self, name):
if all(overwritten):
frame = sys._getframe(1)
replace_inst(frame.f_code.co_code, *overwritten)
overwritten[:2] = (None, None)
goto = Goto()
label = Label()
i = 0
label .start
if i > 10:
goto .end
print(i)
i += 1
goto .start
label .end
mmmmmm runtime goto
this is by far one of my favourite snippets of code ever
i just explained what Shadow tried to say
on par with how disgusting Objective C code usually looks
I have bought a domain (lets call it mydomain.xyz) from godaddy for a website and it is hosted in cPanel shared environment. I am using cloudflare for dns. Now I have an rather small webapp hosted on an ec2 instance. Here is what I want to do. I want to make a subdomain (webapp.mydomain.xyz) such that when I go to this sub domain it loads by webapp and my website remain unbothered.
Now I have already tried add a record in cloudflare's DNS section as such
type: A
name: webbapp
ipv4: ec2's public ipv4
and proxy status is off sicne i dont want any ssl ot https for now
but this is what I get
This site can’t be reached
DNS_PROBE_FINISHED_NXDOMAIN
when ran though soem online dns cheker it does points to my ec2's ip
DNS propagation can take some time
You can try clearing out DNS cache from browser and/or OS or point at a DNS server that has the update but otherwise it can take a few for the records to be updated from whatever your ISP default DNS is or whatever you're pointing at for that locally
If seems good from remote checks though wouldn't worry about it much just give it a few.
Also locally you can edit your os "hosts" file to add/override any DNS lookups typically if just want things to work from a given machine right away or to test out some tweaks before updating real DNS entries
If the issue persists for much more than the TTL time for the domains then worth seeing if something borked in the config, but DNS record changes just aren't typically immediately reflected everywhere
What @soft fern said above. Also, I recommend never purchasing anything from GoDaddy, and never letting your domain expire if you choose to keep it with GoDaddy. Hover.com or Porkbun are the domain Registrar's I recommend because they never try to upsell you, and won't hold your domain hostage or purchase it the moment it expires like GoDaddy often does.
this right here ^^
the domain I want to buy is parked by godaddy right now, and it is driving me mental because they wont even return my emails
Oh they'll return them... you'll just need to pay their ~$3000 USD domain name brokerage fee first, and even then, this only gives you a chance at negotiating the domain name back, for what will likely be an extremely high price.
lmao, you're telling me.....
the domain I want they're "auctioning", the current bid is $0.18, the "estimated value" is $1400/yr for it
it isn't even a popular tld. they're just vibe-valuing it at whatever the hell they like because they can and someone will be dumb enough to pay for it at that price
nothing ever beats the absolute misuse of a superb hostname like http://sourceco.de/. Jounalists. Instead of using it for something like Github competitor
Jesus, that's an awful misuse
i guess they had the budget to buy it from a domain squatter
The really crappy thing is the fact an American university has a German domain....
Its like me with my Canadian domain that I got someone to register on my behalf
i have an Indian domain, because my lastname ends with in 😄
so i can have my email in form of firstname@lastna.me 😛
Checks out lol, I'm a fiend for my dot UK domains
A GitHub competitor? May as well try to compete with YouTube too
You need deep pockets and a love for burning what comes out of them to run a git site and have any sort of competitiveness
What if Luke sees this 🙂
Floatplane
Floatplane is profitable
And who are the competing with as a streaming service of video on the web?
They're not competing with anyone
Okay
Unless you count patreon
It exists to replace the thing they were using that failed
fine. Then github should have snatched it, and made a domain name of get.sourceco.de for github 😄
I didn't know this was possible.
yeah i seem to lack the verbal or writing skills to explain something precise 🙂 i can do analogies and code but thats about it 🙂
fml
you can just see the joy that code was written with lol
the way i get better at that stuff is i have arguments with myself in my brain
like ill just randomly explain stuff to myself that i already understand as if i were talking to someone who isnt me
trust me 😄 i have arguments enough in my brain , only my brain likes to be precise , wich doesnt translate verry wel in short clear sentences , and im not native english wich also does not help. (tbh i wich my brain would stop arguing and reasoning with myself , had someone that was amazed by the fact that i was always thinking of something"||no i think the other way around is rarer but anyway||)
try wrapping your head around this: im mor or less a 'fan' of Jordan peterson , yet i dissagree with almost every (if not every) topic he has ever had a discussion about.
or in terms of programming i solved the spaces and tabs question, i think 😄 (lol)
well more or less anyay, anyone should use what he or she is most comfortable with in the editor they prefer.
yet for saving and storing , if start by : not being selfish and making the life of others not needlessly difficult, and at the same time minimize possible conversion errors,... if you think about it for a few hours (who all could read code , what gets preserved what gets lost , how woud i parse the most complicated code with one or the other eg)
||(i used to be a use keys for what theyre intend guy, but tab-key was originally for tabular data on a typewriter with tabstops, word still has them but most editors dont so ,... using tabs for that with how its implemented in editors is ... wel the filename might be fstab but its alligned using spaces here as its the only way to not break the layout across systems :))||
i suspect at least 70% of this channel is not native English speaker. Hell, i never learned English in school or any course. I luckily don't have secondary voices in my head arguing with myself, at most i have an internal monologue when i want slowly visualize things, otherwise my brain works more on level of concepts (which is something people who have heavy internal dialogue consider as "empty heads" and "NPCs", not realizing it is just a different way of thinking, not "no thinking')
there are two ways of thinking in terms of the language or you think in the target language wich makes it harder to explain thinks because its non native i feel, especially with sayings (example there is a name for this but cant remember it) or you think in your native language and translate, i do the first for english, and where my voc might be adequate , myspelling defenetly isnt , (the amount of times i word something differently because i have no idea how to even write it lol) + the fact that language is inherently inprecise and words have multiple meanings in different context of wich i maybe only know half. or where an identical wod inmy native language has more meaning than in english or vice versa makes it hard to explain yourself in a consise short but stull exact and correct way.
the no thinking was in relation to me always thinking and arguing in my head , tought that was clear but apparently not
so the not being able to express myself in a way i think is sufficient is not due to a lack of not talking in myself ....
no, i mean there are two types of people in general. There are ones who literally have to say verbally every though in their head, they sometimes even have "arguing" voices (no, it's not a mental issue), aparently this is 50-70% of population. And then the brain of remainder of population works mostly in concepts, ideas, doesn't need to translate everything into words when thinking.
how about both, lol the second part of what you say comes up with stuff out of nothing basicly, and then the first part tries to argue why its bs or not 😄
but im no nicola tesla or anything i need some interaction even if only with myself, for why something works or can work or will not work, can be improved , (i dont just dream up an AC generator like he did , ro do integrals and defferentials in my head)
for example i hav no internal monologue/dialogue (i have no narrator in my head). But i often find it easy to mentally visualize what happens in the code. It might be why i find bugs much, much quicker than my coworkers
https://www.youtube.com/watch?v=UBVV8pch1dM also funny , on topic but
How the brain works, how we learn, and why we sometimes make stupid mistakes.
Submit ideas: http://ve42.co/GotIdeas
Apply to work with me: http://ve42.co/JoinUs
Thanks to Patreon supporters:
Nathan Hansen, Donal Botkin, Tony Fadell, Zach Mueller, Ron Neal
Support Veritasium on Patreon: http://bit.ly/VePatreon
This video was inspired by the bo...
unpleasant unless its more like an addiction like programming is
reinterpret_cat
Anyone know what this blue glowing thing is in my VSCode?
When I google I get results about a blue dot in the terminal, but this is something different.
thats god
so now this is on github too https://github.com/mozilla-firefox/firefox
they moved to git finally?!?!?
Not that it really matters but I feel like that's more of an L
its a W for me because idk how to use mercurial
seems like it https://news.ycombinator.com/item?id=43969827
i know this isnt related to here, just something cool i sent to other servers
just to prove how good Argon2 is, here is my legacy password which i used to use on all websites before i got a brain, i changed most, im sure u could still find many other which work.
$argon2id$v=19$m=100000,t=10,p=10$NDNRVkMtN045IDgwMzRINzg5MFYzNDc4OUgwQjM0Qjc4OTAzN05CODk$UQQ6RWYVz7aAPd1IMVLaK35a1ThLEB6TiPk1vzO1Zgg
enjoy cracking argon2id, the strongest hash ever
okay
was girlfriends birthday a couple days ago
and i uhh
made a little game for her ^3^
did all the art myself too
I want to host a simple website for myself, on my own server.
Is all I need a domain name and a proxy (cloudflare domain perhaps)?
Use your public ip
No
Why would I let everyone know what my public IP is
I don't want to be subject to reveal the street I live on and have my address subject to port scanning
my IP just points at my ISP's office, which is in a city 40 miles away
Same with my old ISP
if you use cloudflare dns it'll proxy it
that's only for websites but it'll work for you
also if it's a simple static site you can just use cloudflare pages to host it for you
VPN?
Or just Tailscale so client and server has vpn
Cloudflare Tunnel could be a viable option, or just use their DNS proxy, really all your call tbh
Wait I forgot, isn’t that free?
Yeah nice, definitely use that
CF tunnels are free, plus CF DNS is proxy-by-default
Would that work for hosting high resolution images and videos
technically no
for some it'll be fine
but with alot, they'll get annoyed probably and want you to upgrade
you could use Cloudflare Pages + Cloudflare R2, realistically for a smaller static site that's just got some images, it's not super likely to get enough traffic that they'll charge you, not unless you pass the storage quota provided
Idk hosting it myself seems better no?
Why bother with alternatives when I literally have a server running nonstop
well, that's a choice only you could make, we're simply giving you some of the available (millions of) options
well, I think you just answred your own question.
for a site with that much traffic a local server with a cloudflare DNS proxy, or a vpn / cloudflare tunnel seems like a reasonable way of doing things to me, but the choice is yours 🙂
Fair enough I just am wondering if I would need to buy anything else
Do you recall I get a proxy if I buy a domain with cloudflare or only if I use their hosting services
DNS proxy is active for all supported record types by default, even on the free tier 🙂
edit: sorry for the delayed response
Unsure if this is the best place to ask. Maybe trying Reddit too. A friend's kid (11yo) is coding in Scratch but wants to learn more but his dad doesn't want to get scammed. Where can I direct him for a child friendly course. I suggested udemy but open to suggestions
If their dad is okay with becoming the teacher... Tada! Free resources from an organization I used to volunteer with.
https://www.canadalearningcode.ca/lessons/taking-off-with-scratch/
Or I guess the kid could also just download the lesson and follow along. Become their own teacher? 🤣
There's also stuff like this, depending on age and level:
https://hourofcode.com/
If the kid wants to learn to code through games, there's also games like Screeps which is good for JavaScript, as well as HackMUD too, though that one is definitely not aimed at kids, but hey, if they're smart enough there's nothing stopping them.
Not for scratch but for almost anything else https://www.w3schools.com/ is great for getting the basics and little exercises
ddm why do you have new green thing
cause i leave this server often and then i come back when i have a question or issue
hm yes question or issue
no i have an airflow issue
Hmm yes
I don't know exactly what the first replier meant by that, but in my head it implied that anyone you haven't eaten with is not real
i plan on making my own game in Python as the scripting layer and C++ as the core engine! i checked out books from the local library!
I'm somebody who knows absolutely nothing about Coding, but i want to learn!
Is anyone here hosting their stuff with UpCloud provider? We are gonna be doing a migration and i've been thinking switching from Digital Ocean to a european based provider. Stuff is hosted in netherlands anyway, so not gonna move far, GDPR is gonan be also important for us because we do handle some private and sensetive data
does anyone happen to know a decompiler for C++ dll, that can take a SDK that was used to make the binary intoo account?
if c++ id start with C proper 🙂 since C++ is a supper set of it,... im not that great at C++ , id considder my c just below average without style lol 🙂 and i remember looking at C++ code the first time when i already knew a little C and iwhat i saw was enough for me to avoid it the first 10 years , C++ looks pretty daunting (i found) .... so to ease the step but without losing any time either since for c++ you will kind of have to know C anyway , id suggest starting there. I considde my self an above average python programmer and starting with that will make doing C a second hard to learn thing where as starting with C ,doing python afterwards will be easy and since the first language will be hard anyway because you have to learn the lingo the structures the dataformatts the algo's eg its better to learn them in c wich will teach you the basics anyway.
also C has 45 keywords to learn , C++: 60+(including the C keywords ofc)
also i wouldnt start with "the game" but maybe a specific thing you need for the game,... a piece that can also function as a standalone thing. , aslo you probably want to learn Git while at it 🙂
and for a game on windows use Visual Studio , not Visual Studio Code ...
+1 for meal replacement drinks 😄
Trying to build your own engine is a huge thing to try and take on at first, there are libs like PyGame or bigger editor tools like Unreal Engine (uses Visual Studio as the code editor and C++ in the background but is also a largely graphical based tool for laying out 3d maps and whatnot)... there's a lot in between those two or could go "lower level" but is a hard place to start if trying to build up to a full game
basically a game library or framework is going to help you manage asset loading to get resources (images, meshes, sounds etc.) loaded into memory and can manage things like physics (all of newton's stuff maybe some more), in the case of Unreal or other 3d engines they also handle the rendering using various lower level graphics libraries (Vulkan, OpenGL DirectX 11/12)
Making games is definitely fun but would start with some higher level pieces already built for you to start on, there's a lot to learn regardless of what angle you take at it but good to see what's out there and been done you can build on too instead of trying to build it all from scratch in assembly 😄
I made this thing somewhat recently, very tangential but is for setting up some base folder for using Typescript as language and a few somewhat common JS libs with their TS types and all pre-loaded https://github.com/shusain/scaffold <-- a couple of the project types are "pixijs" which is basically asset management/canvas/rendering for 2D mostly, and MatterJS which is a physics Engine, Unreal or Unity are basically those things together and with 3D as the default... when just starting off I learned by making like text console games or Blackjack/card games in Java and whatnot is a good way to learn
The scaffold tool itself is a Java app that has been native compiled using GraalVM (just made it easier to ship all the "resources" for templates of different projects in a single thing with no dependencies outside of the executable)
https://www.udemy.com/course/the-complete-web-development-bootcamp/?couponCode=IND21PM
is this a good course for full stack web dev, has anyone done this
Presumably based on her profile (she made the course), it is a decent course
the reviews seem rather positive
@narrow river for a while ago when I was decently new to programming I got this 100 Days of Code: The Complete Python Pro Bootcamp, and I stopped at like the 7th "day". The reason for that being that she were way too positive and motivative, like "You got this!!!!" and "Time to take a pause to think about how long you've came" and stuff like that, I don't need motivation. Overall it was alright, as you got a few question after each chapter and some tests sometimes
i can tell they were really going for accessibility with that color scheme
For the record I got it for free, not paying for something I doesn’t know that I will use
time series databases is quite the rabbit hole. anyone here have long-term experience with tdengine? I was originally thinking influxdb but the 72hr limit is a deal breaker
nah looks sorta interesting but what's the use case?
I mean I could see using it for like home monitoring stuff piping MQTT messages into it from random sensors but specifically trying to do something super large scale/high speed?
1-20Hz sensor recording, 6-30 sensors per deployment. With at least 1yr of history queryable with good performance but preferably indefinite. Home IoT is what I'm using as a way to learn it since I've got some nrf dongles and various sensors sitting around
well it covers bunch of typical tasks. It skips Typescript (100% you will see that instead of JS in most current projects) and it covers some useless things (Web3, Blockchain, Crypto token, NFT)
munin and bunch of linux stuff used RRDtool, but not sure how much that fits your needs https://en.wikipedia.org/wiki/RRDtool . But RRDtool consolidates data points into one after some time.
If you need precise data with long history, i am afraid there is nothing better than a standard SQL database for that, with possibly triggers or scheduled tasks creating aggregate data if needed
RRDtool (round-robin database tool) is a data logging and graphing system for time series data.
It aims to handle time series data such as network bandwidth, temperatures or CPU load. The data is stored in a circular buffer based database, thus the system storage footprint remains constant over time.
It also includes tools to extract round-robin...
and as usual, PostgreSQL always either has builtin functionality for something you need, or someone made an addon for it 😄 https://github.com/tembo-io/pg_timeseries
72 hour limit is for uncompressed data. It is literally the whole point of time series databses - they 'compress' older records into aggregated record of longer periods further into the past you go.
If you need perfect data for a year back, you need to consider storage requirements and then use a standard SQL database with data & timestamps
the performance of everything you've mentioned is absolutely horrendous for any serious amounts of data. The 72 hour is not just for uncompressed data, they've put the compressor behind a paywall of Enterprise. They do allow home users to use enterprise for free, but I'm not really interested in closed source/noncommerical
performance of SQL is based on how you index, partition and query your data. There is not much else to do than to use normal SQL database if you want perfectly preserved 18 921 600 000 records per deployment per year
not sure where you got the idea that there's nothing better than standard sql. That's generally the worst way to do this. There's dozens of proper time-series databases out there that are purpose-built for the task
So what is prometheus, influxdb, tdengine, or questdb? chop liver?
Why are you asking if you're already an expert
It doesn't much seem like you're looking for advice as much as for self-confirmation
I have no idea how you think me pointing out the TSDBs exist somehow implies that I'm an expert
Confirmation of what exactly? I asked for thoughts on a particular TSDB
My point is that you're outright rejecting what other people are telling you instead of trying to have a conversation, when you're the one that came and asked 
I'm rejecting a single person claiming SQL is the best for time series data. I'm an amateur when it comes to databases, but even I know that's just plainly false. TSDBs exist.
there's also https://www.timescale.com/ which is built as a postgres extension too (though they also offer a hosted version, naturally)
Postgres is kinda goated ngl
Database
Key Value store
Job Queue
Time series data
Analytics workloads
it kinda does it all, and it does it all in a manner which is hard to complain about too, which is the impressive thing
I saw an extension the other day that lets postgres make http requests as a trigger for updating data, so now I can have webhook functionality built into my database server, like, the frick?
C++ isn't a superset of C, there are many fairly relevant differences. Writing C++ code like C is also pretty bad too, so learning C doesn't particularly help learn C++ apart from just being exposed to some concepts already.
Is similar to JS to TS in terms of adds "proper classes" and type system
Agree there's more to it than rename your file and use a different compiler but the syntax was designed to be familiar to C devs and give easy way to transition into oop
Success or not is arguable but was the goal
TS is actually a superset of JS more directly and is "compiled" into JS so relationship is a little different than C++ and C but similar in that the goal is adding classical OOP concepts to the language
Working on an Obsidian vault here documenting some basic setup and tooling for various languages, "Hello World!" so far C# is only one that actually needs a project or else have to use dotnet script everything else is basically single source file, compile/run, obviously using any of these languages you're likely to have a project folder and all your dependencies and whatnot, but just want some "bare minimum" kind of getting started guide for each (docker hub/containers can help but for now just assuming Ubuntu since can easily get/use it in WSL and just what I'm most familiar with anyway)... plan to also include some info about dependency management for each language and build tools that are commonly used for given language. Lots of tools could be used across different languages but real world, Makefile's and/or CMake used for C/CPP, gradle used for Java, (p)npm used for node, virtual-env and pip for python etc.
C helps to learn basic syntax rules that have been carried over to most/all languages that came after it. Learning about variables, functions, scope, memory management etc. all of that carries over.
There's just no reason why learning that in C is any better than learning it in C++ first
Learning just about any other language helps with that for the most part
I mean it didn't come out of a void either but think is still relevant today too vs like smalltalk or ada I only come across in academic talks never in real life
i wouldnt worry too much about memory management though, unless you want to stick with languages like c/c++
Yea depends on context sort of but you are always managing memory even when you aren't being conscious about it
properly learning modern c++ is a whole different beast than c. c is a good basic starting point.
You don't have to dive into the advanced C++ features when learning it
In fact, it's easier to avoid difficult features in early learning with C++ than it is in C
Surveys among educators at universities have found better retention and exam results when starting their early programming courses with C++ vs C
And as someone that's taught a lot of C and C++, that is my experience as well
Hehe so I was just looking back and think you meant to reply to shadow not me... That said I don't feel super strong about one being first here
Also agree mostly with what shadow was saying there but I mean you can take a slower approach to using C++ and not go straight into the deep end
Personally learned basic JS/HTML (early CSS) from Netscape Navigator "View Source" on people's geocities and angelfire sites back on the early web.
I tried to learn C from some compiler books, but mostly learned how to create lots of "segmentation faults" 😄 once got into university level courses learned some C so I could stop seg-faulting every 2 lines of code which was nice, then had to learn some C++ (was not a fan at first since the direct allocation of memory became more hidden). Left school for a few years, when came back to school new school did Java mostly so I was further removed from memory management with garbage collector and virtual machine, but knowing about that I think helped to understand how those parts of a VM could work too. Nowadays (like decade later) I work mostly with Java for web APIs or sometimes is C#/dotnet or Python/FastAPI or Typescript/Express, frontends are all Typescript based, I occasionally use C++ for embedded/IoT type projects but only done a couple POCs professionally.
oh yeah somewhere in between school I learned PHP on the side too (mostly "vanilla" but used Laravel for a bit too) since was big at the time (Python existed but was still extremely niche at the time), I don't ordinarily end up using PHP or C, but have run into projects where knowledge of both ends up being useful... all said though end up picking language based on tooling/libs available and goal and team
Now I think maybe Go lang might be another worth learning at least some basics with, have looked at it before and seems readable, but never tried to make anything with it (hello world aside). C knowledge comes up here or there with hobby stuff mostly when messing with RC things or if happens to be some SDK for a thing that uses C and I don't need to build something that would take advantage of C++ features (betaflight, or like Pi Pico C/C++ SDK) or just perusing random old linux source code kind of insane ls is somehow 5000 lines 😄 https://github.com/coreutils/coreutils/blob/master/src/ls.c
also some fun things like legacy Doom source
in terms of higher level stuff and newer languages I'm also interested in where "Mojo lang" goes since derivative of Python, but being built by Chris Lattner of Swift and LLVM fame and trying to sort of "bridge the gap" to get high level simplicity and low level speed "one ring to rule them all" sort of vibe 🙂 is over the horizon stuff though still
planning to build a good ollama engine at home with LLM, anyone have experience in bulding one with a budget of 10k USD?
or rather, for work
nah but ollama just a wrapper service for grabbing various LLM models from hugging face and running locally given whatever hardware is available so it depends on which models you're pulling
absolutly, just wonder if someone has built anything similar here that can share some experience.
i myself built also but not in the budget of 10k
why?
and why 10k
we are planning to and instead of making mistakes along the way, maby we can not make them
i set the budget, i thought it would be enough for something acceptable. Sky is the limit with hardware.
who are 'we', a company?
yes
If you're just doing inference then just need enough VRAM to load up whatever models you're doing inference with roughly, but impossible to say more without knowing more what the overall use-case/goal is too
the company I work for has "partnerships"/ties with lots of the big cloud providers so our typical goto is to just rent some time for experimenting with more hardware it's definitely more cost effective for most things, there are cases where privacy is a major concern for retraining and all but otherwise I go that route myself
better to do a bit planning before hardware budget
we dont have renting as an option as we want everything to be offline
offline as in only on site?
so LAN area access
budget is a good planning to start with tough, how much can we cramp out of 10k, and what more do we get for another 10k
on site
what models are you looking to run
I don't know, high end hardware is hard to get your hands on
you could get like 2, maybe 3 with some digging, 3090s
which is 72G vram
Btw, have u anything build anything with that budget? do you have experience?
I've built a few high end computers (a 4090 once), but not such, and not meant for AI workloads
also nah on the built one, usually I pick a G5 Large type instance and go use that for a bit or something (sagemaker gives basically web IDE so can swap out instances when need something beefier). For local Nvidia makes these "Jetson Orin" boxes too they're advertised as basically dedicated AI experimentation boxes but can't say I've had hands on with them either just something that crossed my radar when looking into beefier setups for running bigger models locally.
Thing is hardware upgrades happen pretty fast and very costly so think is sorta hard to justify cost unless absolutely need it "at the edge" I just grabbed that and ran here, is slow though since just grinding on CPU and regular RAM
meta screenshots but the 8b model able to use GPU and rips through the response
Like that the 3.3 model explained how it can't have "feelings" but it also "loves" that I gave it a nickname 😛
Hm windows
Is the gaming rig so has the best GPU here I know I also loathe it
Ah I see
real i boot into ubuntu for llms 😭
On and Off should be two different buttons. PMW
too much work idk about you but I aint doing allat
nixos is kinda neat. it's a bit like an atomic gentoo. It's not quite fully immutable like an ostree/bootc distro, but those come with some serious challenges for daily driving anyways
Ok
I can't figure out what you mean by "atomic" and "immutable" when talking about distros. 🤔
not modifiable, unchangeable, indestructible
atomic means changes are made in a consistent way. The OS is constructed of a bunch of derivations (package compilations, config files, etc) that layer together. The OS created by these layers is read-only and the layers themselves are read-only once created, i.e. immutable.
Kind of like docker builds ? Like, once a build is done, it's done, and if you want to modify one, you basically have to rebuild it from scratch, giving it a new hash and so on ?
Yep, very similar idea. Just at the OS level. NixOS is even defined by a single configuration.nix file much like a container can come from a Dockerfile
Sounds cool.
You don't have to build it from scratch though, since if a layer is unchanged that layer can just be reused again
yeah, caching, same idea.
What really sold me was the ability to generate an sd card image for my pi that was just immediately ready with all the software and configuration I needed. No need to image it and then go in change a bunch of config files, change passwords, add ssh, etc.
You can put someting else than Raspberry OS on a Raspberry PI ? 🤔
Never tried it, thought is was coupled for the hardware.
generic aarch64 builds do work for the aarch64 (3, 4, and 5) raspberry pis if they have the appropriate bootloader. Raspberry pi (3, 4, 5) support is pretty much available from all the upstream projects these days
got my Matter device (nrf connect sdk, nrf52840 dk with max6675 and dht11), Matter hub (a refactor of chip-tool), time series db, and grafana all hooked up together finally. Using tdengine for the TSDB rn, but I'm gonna try timescaledb and questdb later too. It's hot today...
can someone help me with my bogosort code? i keep getting a "syntax error: invalid syntax"
Can you show the entire error text
i tried to fix it but now its not outputing anything
That makes sense because your program simply defines some functions. It doesn't actually run anything
im using vscode
do i need some extensions or smth?
no you just need to change the code to actually do something
I think you meant to call bogo_sort() at the very bottom outside of any function
and how do i do that?
im new to coding and i was js following a tutorial
Do you have the python extension installed
yh
think about it like this:
def CookMacaroni():
# Instructions for cooking macaroni
return macaroni
the function CookMacaroni will tell the computer how to cook macaroni, but its not actually cooking the macaroni until you run the function with () (so it'd be CookMacaroni())
the function's "definition" is basically just a list of instructions that it's ready to run but wont actually run until you tell it to
So I js need to add bogo_sort() at the end?
in your code it would look like
functions can also have return values, in this case your create_array function "returns" an array, so you can use it to set the value of a variable like you see above.
when you "call" a function (doing function_name()) you're telling the code "Go to this function" and then the function returns back to your code with it's return value.
Finished getting a couple dongles programmed to make a mesh. basement (blue), ground floor (yellow), and my room (green). query performance leaves a bit to be desired but I haven't investigated if that's grafana, the limitations of a passively cooled raspi 4 doing everything, the SD card, or the tsdb.
insane website i made😎
Stuff is wrong about this video (according to me) but I’m not gonna say them cause people will be mad
nooo
whats wrong with it
Well not wrong but eh
- Why do you have 1000 stuff in your taskbar
- Why are you showing off that you’re in a free movie website here, idk if it’s non-copyrighted movies or so but yeah
- Why do you use opera gx spyware
- Curseforge
- Instagram app?
- Music while recording, is this supposed to be effort
- Sorry.html
its my taskbar why does it matter
showing off what?
everything takes ur information i legit dont care
whats wrong with curseforge?
instagram app cause i dont have a phone right now
its not supposed to be an effort, think the website itself says taht
uve never given anything a stupid name?
But yeah great that you’re playing around with html and stuff
- Valid but I’d not bare with it for a day, this is my opinions and people are different don’t take it personally (:
- Bloated and inefficient, background process. Recommend ATLauncher or Prism
- I think the web is fine?
- Ye whatever
- Yeah of course, it’s just something fun
e
"everything takes ur information i legit dont care". shame on you!
"I think the web is fine?" believe me it is not lol 💀
What I am actually here for... Anyone recommend a good service to subscribe to CVEs? Filtered by Keywords / Tools / Software and whatnot
im writing small pythong script that is doing somthing for me right and i tried image detection but its kinda hard to do it since its a minigame its a circle and around that circle can spawn in a blue line which is not that long and when white line goes on it u need to press E so its continues and does that 3 times but ive tried som things but cant get it to work any ideas heres also screen shot of the circle
just finished fixing whenplane intergration for like the 6th time? (and i still need to make all the fields of the json nullable
Is it only for pulling statistics? Is it open source?
its a full floatplane client and it is open source i'd tell you what it is but
Oh, I see. I just thought that maybe since some people complain about timestamps, the web could help somehow by crowdsourcing the timestamp via peer to peer
nah i do have some plans for noki's timestamps cooking
Doing gods work. Thanks a lot
yes but i wanna add them myself (basically i wanna add youtube style chapters to the player im using and then use noki's timestamps there
i mean that he doesnt do fp versions
theres a simple fix for that
use whenplane fetch the length of the preshow and then add the length to the timestamps
good enough
Did you find a solution?
whats better to learn python or java
python is easier to pick up as a complete beginner, but it really depends what you're trying to do with programming?
had an argument with a friend about which one was better to learn
the true answer is neither, they both suck, pick up an actual programming language (/s)
lmfao
if you ain't implementing TCP/IP for your microcontroller in your own OS, you're not a real dev (/s)
I agree though Java probably better to learn of the two, Python pretty easy to pick up and more bells/whistles to Java and teaches about types which is important to understand even if they are implied or not fixed for a given variable. Advantage python would have is easy to get started with, but at some point you're dealing with a bunch of external libraries and need to figure out build tools and/or dependency management regardless of what language you're using.
Once you learn like two programming languages "good enough to be dangerous" then is pretty easy to migrate a lot of what you've learned and pick up other languages. I'm sure C took from languages of the past but just about everything uses a lot of the syntax/conventions established in C so I think it's a good place to start really but are gonna hit some ceiling of things it is easy to do with plain C, if add C++ there's a ton of libraries/SDKs that support it but always comes down to what you're trying to do and what kind of tooling already in place.
Python is good for want to do project yesterday need script that will somehow accomplish the high level goal, don't need it optimal don't need it perfect just need it fast (ChatGPT is good at this kind of thing, usually). Java is good for things like web backends (something bigger/more deliberate/structured), but also just a language that covers a lot of OOP concepts most of which apply to lots of other languages that have OOP features. You can definitely use OOP or variable-typing (https://docs.python.org/3/library/typing.html) in Python but they aren't things you'll typically see much of with little one off scripts.
i tried teaching ai but that takes long time so i havent no
Yeah this kind of thing actually kinda hard/bad for object recognition type training since typically looking for light invariant stuff they'll mix up the hues and scale/squash/crop stuff to make sure it is getting the overall "features" picked out in a view/environment invariant way.... Anyhow though was thinking if you know where the circle is and how big can probably just do a circular "scan" (look at pixel values) and work out where the white bar is then find the pixels of the circle (again by color assuming it's a screen cap) and just look for when the pixels around the white bar change for when to trigger.
If the position or size of the circle overall changes object detection could be useful for "find the circle" and give a bounding box to find the center and diameter but otherwise I think just "manually scripting" the other part to detect the overlap probably easier (could also just make "bounding boxes" around the hit target based on color then check for overlap)
its allways in1 spot and its all the same size and the background color may change cuz of lighting
im just not advanced enough to know how to write it although it isent that hard but is same time
this is wht i got done rn its only printing yes if it sees the circle and if the blue is on white and prints no if dosent seee it but it dosent work rn
Then you can just sample the location if it doesn't move
A high level overview
- Get the image
- Check the pixel value at selected location
- If the previous pixel is not grey, and the current color becomes white, press E
You can sample at many position to cover the whole circle
yey me release gaem
anslo pls unban me in slowroads discord
until you realize that everything in python is oop 
you can do things strictly procedurally or without any sort of classes in Python, it has OOP features but it doesn't strictly enforce one style/paradigm of programming over another
you can create "just a list of instructions" or objects with methods/properties etc, but I tend to see a lot more of the former than the latter when it comes to small Python projects (and most of what you'll find floating around the web), there are things like SQLAlchemy and/or FastAPI or ya know just lots of stuff that is written from an "OOP perspective" with classes and all but there is no real "encapsulation" and is just kinda weak IMO
Try to read how it works. This exactly the high level overview that I give. Alternatively do some grayscaling and try to check the color using color picker. This is off the top of my head so I have not tested it
import math
import pyautogui
from PIL import ImageGrab
N_SAMPLE = 50
COLOR_TUPLE = (58,129,245)
WHITE_TUPLE = (245, 245, 243)
DISPLAY_WIDTH = 1920
DISPLAY_HEIGHT = 1080
SQUARE_SIZE = 150
CIRCLE_RADIUS = 50
if __name__ == "__main__":
half_span = math.floor(SQUARE_SIZE/2)
start_x = math.floor(DISPLAY_WIDTH/2)-half_span
start_y = math.floor(DISPLAY_HEIGHT/2)-half_span
end_x = start_x+half_span
end_y = start_y+half_span
sample_point = []
prev_state = {}
rad_div = (2*math.pi)/N_SAMPLE
for sample in range(N_SAMPLE):
x = round((CIRCLE_RADIUS/2) + (CIRCLE_RADIUS*math.cos(rad_div*sample)))
y = round((CIRCLE_RADIUS/2) + (CIRCLE_RADIUS*math.sin(rad_div*sample)))
sample_point.append((x,y))
prev_state[(x,y)] = (0,0,0)
while True:
image = ImageGrab.grab(bbox=(start_x,start_y,end_x,end_y))
for point in sample_point:
x,y = point
prev_color = prev_state[point]
current_color = image[x][y]
prev_state[point] = current_color
if prev_color == COLOR_TUPLE and current_color == WHITE_TUPLE:
pyautogui.press('e')
break
One thing to note, you may be limited by the screenshot library. PIL takes around 300-500ms from my experience
any AI experts or chatbot devs around?
no
Subscribe for more short comedy sketches & films: http://bit.ly/laurisb Buy Expert shirts & hoodies at https://laurisb.myshopify.com/ Funny business meeting illustrating how hard it is for an engineer to fit into the corporate world! Watch the next episodes: http://bit.ly/SquareProjectEp1, http://bit.ly/SquareProjectEp2 & http://bit.ly/SquarePro...
Also other than my initial comment, it’s really unclear what you want here. AI isn’t all about chatbots, and it’s really unclear to me if you want an AI model developer to do something from scratch, or if you want a web developer similar to the guy who developed openwebui or something else just using api keys to have models
from the way they asked (and their bio). They want to pay someone in exposure when their app takes off (at high velocity into the floor)
always the same thing, think i need this a or b, theres prolly a package for it, and yes there is , this time its : yaspin,... its programmed allot better then i can do but ofc it cant do what i need and it flickers like mad if you try to print to the line that the spinner is on so ... a day later: we remad yaspin (must be the 10 or 20ieth package i do like this, thinking this will be easy , theres defenetly a lib for it and ending up havving to do the work anyway 😦
Weird question, anyone know of a good budget VPS provider?
depends on your budget
Digitalocean (and many others) start at around $5 USD/month
Hetzner is similarly priced,
DO is shit pricing
They're well known for having terrible pricing, though I do highly recommend hetzner
Contabo is dirt cheap but lord help you if you ever need to contact their support team
as cheap as possible ideally
I was originally using Oracles free tier but my account got nuked
Yeah that's pretty normal
Hetzner is good stuff
how does it compare to ionos?
Well I've heard of one of them
I saw there VPS XS plan is $2 which seems like a good deal
Anything under $5 is probably shit
It's the same pricing as Hetzner for the most part, lol
It's almost impossible to provide a decent service at such low cost
that's fair but I don't really need much, I was mainly using Oracle for a uptime kuma instance
maybe a vpn down the line but as of rn just uptime
is there any reason that you cant use an rpi for uptime kuma?
Lol, lmao even
I want to get a notification if my internet goes down since my area has both frequent power and internet outages
in my defense, Hetzner has changed since I last used them, they are no a much better pricing I'll conceed that, I didnt know
how are you going to get a notification if your internet goes down, when you're not connected?
Cell?
if the power is out, I doubt cell towers are running anything other than emergency service transmission
it's not that crazy usually it's just my neighborhood that has the outage
cell tower don't go down especially near where I work
yep
that plus uptime kuma can push notifications I personally use gotify and discord for that
That's uh not how that works
Cell towers run for days without grid power
Congrats. Doesn't mean they route calls to anything that's not an emergency number
They sure do
almost all have emergency power for at least a couple min
like a large UPS
Anywhere I've ever been anyways, they work just like normal when the powers out
and then after a couple hours they start to drop off
Nobody said they didnt
Main ones will have gennys too
You won't be getting 5G with full coverage but you'll have a fine enough signal
my advice after getting shafted by my vps provider is to make the investment in a raspberry pi it doesnt matter if you pay for a vps they will still probably shaft you like me
See, the main reason I'm thinking about going the VPS route is because I already have a Raspberry Pi running my services / applications But it's all on one network and I'm hoping to have some device "off-prem"
Right now, the main reason would be for uptime Kuma.
Ah none of my shit is important enough for uptime
So if something were to happen to my Pi network, whatever, I could still get updates for downtime. And then going to the future, I could use it as an entry point through something like tail scale to minimize open ports on my router.
If it goes down randomly it's fine
Sadly, some of my shit has become important enough that I have to worry about downtime.
Yeah my shit is a discord bot my own website and the website for my app which also has it's updater and realistically that can all go down for ages and not matter
I used to be in the same boat and then they started using some of my services at work and now they're on my ass whenever it goes down.
that's why I don't really self host that much anymore
it becomes more of a job
and there's no good and budget, amazon, azure, and google VPSes will be reliable, but not really cheap
that's actually a good problem then
what are those services if i may ask. im always looking into improving my workflow
Yessir it started as fun but now it's just more work
Its pretty specific to where I work but it's mainly Vaultwarden for a team password manager, n8n to automate customer help tasks, and a custom LMS I developed with some other colleagues
must be a small company to let you host company data
Yess. Was thinking the same thing. Things like this sounds should be hosted by the company or saas somewhere not on an employee not matter thr importance
hetzner is what i call good and budget but does not have some features that the more complete "suite" services like AWS/google provide
Mediocre at best
That it is. I think we have maybe 15-20 employees total.
shooting my shot here. does anyone know any place that might be offering Node.js internship?
That question to me sounds like you might need some more reading into Node.js (and most likely programming general) to know what you actually want
Looks great, nice work
i've started learning unity and i would really appreciate suggestions on a good platform to learn C# with
also, general tips on learning to code? i never attempted this so any advice is useful
coding is a knowledge based skill but its very reliant on hands-on experience, try to spend an equal time actually coding as you spend learning to & about code. theres stuff youll run into that a book or course wont teach you how to fix and an important part is learning to diagnose and solve the problems that are often completely unrelated to the code youre actually writing (issues with your code environment's setup, installations, compatibility, etc)
i'm not learning for the sake of it, i do have a project in mind if that makes iot better
thats the best way to learn, find projects you wanna do & try to make them work. because then you have an actual purpose to learning and you can direct your learning to specific areas as you run into roadblocks
make sure you have a good grasp on the fundamentals of whatever language you end up using though, itll make your life a lot easier vs googling "how to do X in Y programming language" at every step
true. i was just wondering if i should just read documentation or try microsoft's own free course or maybe codeacademy
im not familiar with the specific courses so not sure how theyll do for you, generally you want to get some kind of learning in prior to diving into documentation because its like reading an english dictionary before you know english
Finally got around to trying out QuestDB. It's orders of magnitude faster than TDengine. Not sure if it's just TDengine's Grafana plugin that sucks, but being able to do 7 queries on 10 days of data faster than TDengine can finish a single 1hr query is very nice.
ok
never had to work with time series db's before. what do they do differently to "regular" db's like postgres?
its more optimized for stuff that's like a series of data points, statistics
so not really any relational db features
A database engine can do optimization in a certain way when you make assumption about the type of data that you work with. So having a dedicated database software for certain data type will be more optimal overall. But also, a database software can support more than one type of database engine if they choose to do so.
Yep mostly about "smart indexing" and or "sharding" how you can quickly pull together data from lookups and/or how you split up the data being written (but then pull all back together for reading/querying)
Always some cost on writes for more indices being maintained/written to but faster on lookups when have indices written/maintained so always trade offs in stuff like that (speed and frequency of writes vs reads, types of querying optimizations of certain types of math functions or types etc, ACID transactions or not etc.)
They forgo indexes by default, assume updates almost never happen, and that nearly all writes will be an append. The main change is the use of time ordered columnar data storage, but there's many things that get to be optimized based on the assumptions that can be made.
https://questdb.com/docs/why-questdb/
If you are a teenage coder, join the summer of making by Hackclub (LMG approved!) and GitHub for free stuff: https://summer.hack.club/o6
Rust is Fire
blazing, one could say
hey guys im just starting coding with python to get a headstart for college this year. does anyone have recommendations on projects for newbies??? i've looked some up like building a calculator and stuff but i just thought i'd ask here too
to clarify i coded the calculator because it was pretty simple and added some stuff just to keep it organized and avoid bugs but i was wondering about other simple projects
Project idea: create images directly through code using .ppm files, a super simple image format (read about it here: https://en.m.wikipedia.org/wiki/Netpbm).
thank u guys so much!!
Hey all im trying to make an application that requires me to use JWT auth to connect to an api, im using react/js (js for the auth) and havent been able to find any good resources to learn how to do it. anyone got a good place to learn? good article, vid, doc?
0.65mm pitch LGA fanout might not be as bad as smaller BGAs, but it's still a pain to do with 0.3/0.5mm non-blind vias. I think I might only have to leave a few unconnected on the inner "top" row of pads.
nvm, I'm caving and doing a 6-layer with 0.2/0.35mm vias. Still no blinds, but I shouldn't need them. 52% more expensive, but it also comes with 4-wire kelvin testing, a better material, and ENIG. So worth it in the end I think
i got a bunch of faders (potentiometers) from a broken mixer and after wiring them up to my rpi pico they behave weird.
the upper 2/3 of the slider work logarithmic but the lower third is at around 50 Ohms (it's a 10k one)
it's not unusual for a pot taper to bottom out before reaching the end. A pot will also still have residual resistance at the bottom. If you can identify your pots, the datasheet will usually specify a residual resistance and the taper's behavior
this is basically what it is for me (yes it goes up a bit again after the low point)
Was this mixer cheap?
What are you trying to use them for?
Must've been a beringher 
i am not sure
yamaha something something
volume control on my macropad with kmk over midi
I was joking, beringher makes decent products. Yamaha is uh... yeah it's a product alright
Did the original housing maybe prevent going into the lower range?
i am compensating for it in the software and it makes it usable but a side effect is that the lower third is just 1-3 out of 128
i am not actually sure about that would have to check on monday
my goal is basically a macropad to control voicemeeter with
as a sort of digital mixer with hardware controls
because i got a lot of rotary encoders and a bunch of these faders for free and i have the keyboard switches and i can 3d print for free in my school (creality k1 max)
I would use an encoder if you could, pots in general kinda suck
i got rotary encoders already but it isn't the same
i need at least one for the main output volume so i can easilky adjust it on the fly
otherwise i need to have the software opened on my second to check what the actualy number in dB is
If it's high enough resolution it should be almost functionally the same right?
?
his autocorrect said enclosure instead of encoder before he edited it
huh i decided to try hook my floatplane client up to sauce+ and it was interesting for some reason no videos will play in a streaming format they will play a different way which i wont say just in case but like my player has no issue streaming floatplane videos only sauce+ i am not sure why it doesnt work perhaps drm but i dont think thats the case (if any floatplane devs can give me insight that would be nice)
Hey any unreal engine gurus in here?
Need to pick an expert's brain about a lighting issue I'm having
Not an expert by any means but what's the issue?
any python nerds that could help me with a lil thing? 😭
bro
making a python game, tried adding all the objects manually (adding them to a list, its extremely unefficient, slows down the game, and a pain in the ass)
i was wondering if its possible to do this in another way that wouldnt put a lot of strain on it (like adding 150+ objects to a list would do)
lists should be the best way to store data like this without super complicating what you're doing (im not a game developer so im not sure of specific tricks but most of them should be unnecessary for something this size) so if you're having performance issues i assume its from something else
first gut instinct for me is that you're making the floor list and then objects list, but your objects list is the floor list but you're unpacking it with *floor for some reason
where you could probably do objects = floor or objects = floor.copy() depending on your needs
also no clue about python game dev but maybe also see if you even need to constantly loop over the lists. aka, see if you can calculate the lists once and not modify them all the time
idk
its not gonna be good but:
i managed to obfuscate my code enough i think
this was the max i could come up with for it to be a standalone html file (you will 100% crack it in less than five minutes but still cool!)
it was in the neighbourhood of 400 lines in the original code
I made this https://thehellisthis.com/
then dont
idk if ur ragebaiting or just plain old stupid but i legit asked if there was a nother way so i wouldnt have to do that
obfuscation like this is kinda dead i aint gonna lie dump obfuscated code in any ai and it will make it somewhat readable
also im in for a fun time
this is called adding an extra param to every api call in my app and determining that extra value is gonna be real pain in the ass
well uh something brokey and no api requests go anywhere anymore atleast they dont reach the function that sends them
haha i put the wrong thing in a comparison ive done this more then like twice this week
what is your opinion on freecodecamp.org? i'm looking to land a Jr Dev position somewhere, and it was what people recommended last time I went down this road
whatever you say buddy
mr fartsniffa
cooking rn
Anyone know how to use a GHI .NET Gadgeteer?
When you're too lazy to int-parse a string, but still need to sort by a string that's a number 😂
Me when lapack uses 129GB of memory on heat diffusion:
Is flutter still the best choice for cross-platform mobile development? Best as in, the option that does not just wrap a webview a la electron
Or is there any other framework like it?
Kotlin Multiplatform + Compose Multiplatform
Alright, it is the 3rd person that recommended it so I think it is better than other that I've known before (flutter, reactnative, xamarin, maui, etc.)
Thanks a lot
well it is down to choice of language
Dart, which is used pretty much exclusively only in Flutter; or Kotlin, which is pretty much the main Android language by now, replacing Java
React native targets native UI components not sure I would recommend it really but it's an option
Typically if can do something without native app is usually best to just have mobile friendly web interface IMO most things don't need to be an app
Ridiculous. Our company needs an app. We must have one! It's what our customers want!
while bunch of things can be done via PWA, sometimes you need native funkcionality which isn't otherwise possible
Oh I do agree not every app needs to be an app. Especially with how inefficient it can be with replicated library everywhere. But I just wanted to practice when the times come that I need to do it
yeah I mean the cases for that though are just incresingly slim, like if you're making something that uses lower level camera APIs or audio or 3d or something then okay, but can also have web app ask for permissions to use things like location/GPS or upload from camera with image input so think just relatively slim set of cases where really need it and if thinking web app would suffice but want to avoid webview wrapper just make it a web app/site
Camera could also be accessed from browser now. But yeah, less low level control of the underlying API
But just for taking pictures or sharing video is more than enough
i aint no scientist
Why?
what language is this
to be fair, both Flutter and Kotlin multiplatform are native, they are not webview
ah good ol' DSLs
Hi someone that are good with Java?
I had a project in mind and im not sure its possible but do tell me if it is. I have a tab S8+ and i wanted to use the pogo pins for a dock, so that when i connect it to a particular appliance, a dashboard for the appliance appears. However, I'm not sure if there's any way to get those pogo pin connectors
Hmm so looks like only three pins and two of them and gnd and 5V so is either some kind of bidirectional communication on the third line or is one way only... Since says is for keyboard input you could maybe hack an app that listens for special key inputs then make a device that sends those special keystrokes to the app to let it know the device type it's connected to but seems like pretty limited if is one way/line (typically uart pair or USB rx/tx pair for two way communication, there are some bidirectional protocols that can use a single line but pretty rare)
Easier option might be forego the pogo pins or just use them to sense connection from a micro-controller in a custom dock and then use Bluetooth or some other means to communicate the change
If can't find actual documentation like dev docs for the device that explain the connection and protocol and all can usually probe with an oscilloscope to try and reverse engineer signals but is deep deep in the weeds at that point
Yeah, I understood about 30% of this, but I'll research into it and see if I can do it, ty
I just searched it on Google, it says they're bidirectional
Yesterday youtube started including me in their new annoying anti-adblocker experiment (popup, max 3 videos and then complete block)
and today I just had enough, I wrote a simple script that will simply break their anti adblocker and just play the video lol
I wonder if this is getting more common or I was just unlucky that it happened to me ?
its getting more common but ublock usually updates to ignore it
C#, razor syntax
Is this a flex?
no
no
Nah write hello world in C upload to GitHub 100% C takes 2min
Language choice doesn't make your thing better or worse on its own either, I've got some repos C/C++ some Java some python some Typescript it just depends on what I'm doing
Not gonna do iot/embedded device firmware in Typescript but not making the web interface to use it in C
means your project is too trivial to involve even a build system
Yeah ohm
now thats just cmake being cmake imo
I mean yeah
Work got a new chip and it only takes c, so here I am got hired to make it
The original post was considered to be a joke since the repo is just some toy problems I do to take advantage of work's hardware without trying to pull weird shit
Still, a bit pain in the ass since the Nvidia engineers barely left any documentation
Or bytes
Bytes
found some details here https://github.com/github-linguist/linguist/tree/main/docs uses a github API that returns number of bytes for given language in the repo, not super clear if that is ignoring whitespace or is just a raw byte count from there though
top level page from github that linked into the repo that handles it too https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-repository-languages
i love trying to get old ass flutter codebases to compile (compiles with zero issues for windows) ive been trying to get android to compile for about 4 hours at this point
holy shit is it finally gonna compile LMAO
fuck me
Well apparently cuTENSOR is not made for actual ML Tensor operations (with pytorch assumptions for faster reading and more comprehension). Time to move to cuBLAS but still gonna ship the code since why not
Oh and fixed NVIDIA's overflow bug too. Their code works well on small tensors but if we were to allocate larger amount it would segfault. Fixed it entirely but I need to redo shit from scratch.
Once this all done I’ll be porting my code to CUTLASS.
Aka “CUDA but some floaties”
github actions are awesome
huh, using github actions to push notifications to discord? instead of just a webhook?
so i tried that, but it didn’t work
so i just used this instead of spending an hour debugging
You need to put /github at the end of your discord webhook URL
Floaties?
Like helpers, utilities, etc
Ooooh 😅
oh thats okay just if it takes 10 more attempts to fix the problem itll only be about 2 hours not including the time spent between attempts
oh i got past that issue
im now on the issue that requires forking and manually updating libs lmao
i decided that fuck that straight off and went back to project i was actually supposed to be working on
Heya, is anyone have a link into setuping up a offline version of language docs
i am vacationing and the internet might be shabby, i want to have a c# language reference.
ms docs is good but i dont think i can download the whole site lol
from their readme file it seems i need more repositories
hi guys me and my group of developers are working on a HORROR Game. IF you would like to know more it would be happy to speak!
🙂
Yes! https://http.cat/
I use http.cat for all my error pages on my website, I should update them in case any have changed
o: brilliant
Have you just downloaded them or do you use their https://http.cat/[status_code]? ?
They’re using a CDN so e
I downloaded them. I guess I never committed the script to my repo. I'll upload it tomorrow
Script?
I made one to scrape all of them
lol
Or just use their api thing or whatever, the CDN seems nice
Offload from server+not region dependent

Yeah just breaks when cloud flare goes down and takes the rest of the internet with it 😄
I've been wanting to move my website to a self hosted DNS nameserver anyways
right now I just use cloudflare
you wont be self hosting the dns server for that website. the website wont be a problem to selfhost
believe me i would
doing that would reduce my reliance to just hetzner and porkbun's root nameservers
http://triaxcomm.com/ - can some of you test your addresses on that embeded map, need to verify aws location services for my map work as expected.
oh yeah no for sure yeah for sure yeah
Um, no I don't think I'll be putting my address into a random web form...
well no different than having your home ip
gag your home service to nothing
thanks for nothing though, 😉
i'm an honest guy
Very different, actually. I know of zero banks / credit card companies that use IP addresses when applying for an account, however, they absolutely use addresses during the application process, so I keep mine private.
Good deal @limpid reef ... thanks anyway
You can always just go pick some locations randomly on Google maps or search for business addresses and use them to validate the positions are roughly accurate
Or maybe open street maps but pretty sure API key requirement either way, should be free(ish) for small requests and can just save the results to test against, kind of thing I'd definitely just throw at LLM to help bang out
IP isn't a physical location
To a degree, it can be.
yeah general location, but no where to the degree of an address
It’s not but with as much public data as there is, there’s ways to find people still and using IP addresses can be a data point to help verify someone’s location.
I think it’s like 5 data points of you online the government can pinpoint your location? It’s kinda crazy how easy IP addresses can make it.
I forget the study / news article but it’s pretty easy to get to know where someone is.
well gov is different, they can just ask the ISP to give the location
This is without a warrant.
Aka, the ISP doesn’t have to and doesn’t even know.
https://www.namecheap.com/market/buynow/productjewel.com/ domain is up for sale, used to be an FBA/Amazon best sold items monitor... since been demised with changes from Amazon.
okay
Hey, I'm new to this server. Do you talk about coding stuff here?
or is it just linux related stuff?
There's an entirely separate #linux channel
#linux is for Linux
This channel is for development, not only programmming
lmaooo
any1 here good with setting up discord bots?
https://github.com/MashClashXD/Hypixel-Auction-Flipper (this shi constains no instruction) :D
it looks like youd literally just npm i and npm run start
Hey guys, does anyone have experience with the Apple Developer Program enrollment? I purchased the license, I received the invoice, but whenever I go into the Developer Portal, it acts as I never tried enrolling. I tried to click the link in the email to see the purchase, and it says I don't have access to it. Did apple just phantom charged me?
okay, fixed i think, called in to their support team, I just neeeded to send my ID to them
yeah they wont give you shit if you dont give an ID
its even worse when you want to change your account to a business account 
I want to work on Microsoft.Edit (winget it) I don't like the dark mode defaulting.
My question is as a c++ hobby coder, how hard is it to learn the syntax of rust?
Not very
Mostly just getting a hold of lifetimes and ownership
And having a half decent toolchain 
D-U-N-S ?
Among other bullshit yeah
definitely need high tolerance for BS if developing/deploying for Apple devices, plus side is with the app store and limited devices in the wild is a lot easier to get huge audience without much effort, on Android dealing with 10,000 different kinds of devices with various versions of OS on them
It's actually crazy
We're developing a native app for android and one for iOS and the android users won't shut the fuck up about alternate stores, not using google play services, and other crap. Meanwhile the iOS users are just kinda like "it's unfinished" to which I can easily say "yes that's why it's a beta app on TestFlight"
the complaints for iOS all come from Xcode being stupid 
for android, just release it on google play and as an apk. or only google play and the people that dont want to use it will find other ways to get the apk themselves
This is the morally correct way to typosquat
I wanted to type another example but apparently it is not permitted to share the link directly huh
But yes, typosquat should be informative
bit random does anyone here know of a nice library (any programming language) that visualizes the difference between two SVGs? basically exactly like github does it.
Only somewhat recent thing I found is https://github.com/adamws/lukaj
Just published a library for cleaning up try catch handling in JS/TS. What are people's thoughts?
Contribute to SpongeSoftware/tryCatch.js development by creating an account on GitHub.
Yeah you do the following (its not a discord bot per se)
You'll need NodeJS
Clone the GitHub project git clone or download, your choice
Install deps npm i
https://github.com/MashClashXD/Hypixel-Auction-Flipper/blob/main/config.json#L27 - you generate a webhook for a channel and put the url here
Run the script node .
Hey is anyone up?
Huh?
I need help
Why are you so hostile? Are you having a bad day?
Anyway I need help so if anybody is around I would appreciate it
Please
It's about an app
I’m not intending to be hostile or anything, I’m actually helping you
I don't feel like clicking an external links, I just need someone here and now pls
It’s basically say what you need help in the initial message
So what do you need help with
An application is a lot of things
Is it a mobile application
yes
Anyone have any idea what could be causing a midi keyboard to only register the velocities 0-48 or 127. So nothing in between 48-127. I’m thinking if there’s any reason in particular software wise why it would do that.
Any known vulnerabilities to exploit in this plug-in per chance? Lol.
Hi, please help me.
Do you see how useful that message is, and how it saves us all time deciding if we are able to actually help you with your problem? Because I don't.
I was generally trying to help him but being told
Why are you so hostile? Are you having a bad day?
Isn’t that fun, yet he still refuses to help us help him
He left
Lets goooo
Blender is gonna make me scream
What'd do now?
Looks like it's not crashed which is the best possible case for blender as much as I love it 😛
Ok
Pretty easy, compared to full blown programming languages. (Yes, yes, before anyone tells me, I'm aware that "HTML/CSS" are markup languages, not programming languages, but same concept - you're writing code into a computer and receiving an output.)
If you're new to HTML + CSS, I would start here: https://www.codecademy.com/catalog/language/html-css
its a good introductory language before moving onto other stuff. the best part about HTML/CSS is that once youve figured out how those two markup languages work you can learn to interact with the things you created using JS
i think usually the most fun & engaging & straightforward languages to learn are the ones with this visual instant-feedback stuff
break stuff, fix stuff, all in a span of 3s instead of having to recompile rebuild recompose etc
Thanks
hey guys really stupid question: how demanding is development on a systems storage? thank you for any replys
Depends on what you're working on
its usually not a small amount
by the time you download devtools, compilers/interpreters, dare to run npm i or cargo update
I just get ai to do it
I'm going to do a bit of an experiment real quick. Is anyone here proficient with using Ruby, R, or PHP?
probably
How did you get into using either?
some admin in a minecraft server I was playing in 2012 said he knows ruby and so i googled ruby and learned a bit of ruby
Got it.
I had the hypothesis that most people proficient with those languages tend to have learnt it because it was a work requirement.
At least these days.
thats a decent hypothesis, id only look into ruby modern day if a job I was after required use of rails
and I dont see many people just fiddling around with PHP for the fun of it anymore
Yeah at least from my own experience, Rust has basically taken over a lot of use cases that were originally covered by those three.
where something like a python, JS, rust, even C# people will usually use because its more fun to get into for personal projects
I use php for simple scripting
Like importing nas bars
Did you originally learn PHP for a job requirement though?
Or did learning it come through hobbyist projects?
Nope, just wanted to say what I’m using php
I don’t even really know PHP, I use it for simple stuff, forget it, copy pastes from old code
xD
Sorry for interrupting your discussions
No you're all good.
Just to get the meme out of the way, every vibe coder's workflow in a nutshell
Anyone here proficient or experienced with setting up OpenSSH on Linux?
Flipnote Studio
Not much to it really install service configure service start service
If using key based logins copy pub key to server from clients and gtg
Maybe better for #linux though if need help with it or get stuck on something. About php I used to use it but nowadays is more often Java+spring or maybe python+fastapi+SQL alchemy or some similar stack for backend API and react or vue or angular for frontend parts of things
I use C for some embedded tinkering too and see rust as more replacement for C than anything else.
For rest apis or whatever is basically solved problems with Java/spring for most common business things and almost always an API to use from Java like aws Java sdk or whatever.
Think most people learn a programming language or tool, one part curiosity and wanting to know how it works or what you can do with it, one part I need the thing to get the thing I want done
I generally switch between a lot of programming language. One second I could be using Kotlin for an Android app for a robot I'm developing for, another I could switch to Python for interfacing with an Ollama server; and then the second after that I could use C# for developing a Unity app for another PhD project.
I tend to be on my feet a lot when it comes to switching between languages.
I never had touched though: Go, Zig, R, Hacksel, PHP, and Ruby.
Like 99.99% of the current work I do can be covered by the languages I currently know.
- verify:
ssh, if missing install openssh - /etc/ssh/sshd - server config
- ~/.ssh/config - client config
configs options are googlable
Figured it out, thank you.
Go or R I think worth checking out at least even if don't go deep with them, Haskell I've mostly only heard of from academic sphere basically so not sure how much practical Haskell exists in the world. Ruby and php still definitely have some big projects based on them like WordPress for php and gitlab or open project, lots of others using Ruby/rails framework but think for new projects most will choose something node/express based or python based for services or Java/spring still insanely popular.
Kotlin I only ever hear about for Android dev or gradle config and since can use Java there too (for Android) I never bothered
C# like you said if using unity for development or can do web backend with it too but pretty rare that I see it out in the wild
PHP really just C based interpreter that was meant for patching together bits of html pages but it did evolve some over time, still dunno if it's worth dedicating time to learning unless you had some existing php project you need to work on. Effectively if some library or sdk is only available in a given language it might make me use that language to be able to use that lib or sdk but can do all the same stuff with any turing complete language too (granted not gonna run nodejs on most 8bit computers with low clock rate and expect it to work well but if there's memory and a will there's a way). Long story short when in Rome...
but can you riir
Lol
That's essentially the equivalent of if you asked if I could use Holy C or BrainFck.
I mean, no?
Rust is only going up in popularity, both in hobbyist and professional worlds
Wait shoot I thought riir was an esoteric language.
Oh now I see: https://github.com/ansuz/RIIR
Honestly my motto is, "why not Rewrite It In Swift." Or riis.
Swift is pretty nice
Too bad it's next to unusable on anything other than Apple platforms :(
Hi! Better using Flutter or React Native than using swift prefer using Flutter since it's a cross plateform
Fuck no
Swift is amazing and I will continue to use swift wherever possible
I just wish it was usable in more places. I will never touch the flaming pile of shit that is RNA lol
And wherever swift is not available, I will use rust 
Or python depending on how lazy I'm feeling about the task at hand
what the whole problem with using swift it's that is IOS only so if you wanna build at least something that would be better for both IOS and Android that's the dilemna here
I see no dilemma
If you want quality apps, you build one in swift using SwiftUI (and probably UIKit lol) and you build one for android using compose
If you just want to shit something out for a client that doesn't care about quality, use RNA
But swift works on more than just iOS. I've built a couple apps on my Mac just for myself to use
A lot of people make the mistake of thinking that Swift is iOS only. Technically speaking, it's compilable on any Apple platform. So that would include macOS, iPadOS, watchOS, tvOS, and visionOS. There are Swift binaries you can use on x86 platforms too, mainly Linux. Plus with frameworks like Vapor, it's even usable as a Server solution.
Also Swift Embedded now exists, which expands the playing field even further.
Except none of that stuff sees use like the iPhone does
No one owns a visionOS device therefore no market to develop for, macos has some market share but is only one of the bunch aside from iOS where I'd see swift being the language of choice (nothing against the language itself, but relatively low amount of devs and target deployment makes it less appealing to me than other options)
you can build with it any Apple OS related techologies from Mac OS to WatchOS etc ... idknw from my perspective building using flutter is a good choice if you're able to maintain and combine between a good design and a outstanding performance since it's a cross-plateform wich enables you to create a desktop, mobile and a web app all at the same time and with one code
🚮

with cross platform you mean x86-arm-riscv ? or win-macos-lin , in the first case , isnt any language crossplatform then ? in the second one well if it requires recompiling , then java would be more cross platform , even C would be more crossplatform (if you use the cosmopolitan clibs), since swift is by the same guy(s) that are doing mojo, (since i havent used swift srry) but i think they made some major design mistakes with the latter, creating some sort of walled garden where mojo being a superset of python really isnt like c++ being a supperset of c
and more in line with what MS's EEE practices
ubuntu@alex:~/riscv-os/opensbi$ make PLATFORM=generic CROSS_COMPILE=riscv64-linux-gnu- FW_PAYLOAD_PATH=../kernel.elf Makefile:210: *** Your linker does not support creating PIEs, opensbi requires this.. Stop.
ubuntu@alex:~/riscv-os/opensbi$riscv64-unknown-elf-ld --help | grep pie -pie, --pic-executable Create a position independent executable -no-pie Create a position dependent executable (default)
i give you shrodingers linker
it supports an dont suport pie
does it support chocolate cake
no just 3.14
you mean 3 :), as a dev you avoid floats where possible ofc 😄
yeah but pi being irrational means fractional number isn't much improvement
and you now broke mostly every circule generator
Just scale everything up by 100 and use 314
circule generator ? you mean a thing that does circles ,... well broke is a big word if you use 3.14 other than the fact that that is also 0.0015 off at theminimum you also havefloating point errors at everystep by using it.. not that 0.0015 relative to 3.14 is almost the same as 0.14 relative to 3 🙂 , but more importantly 0.14 on a value of 3.14 is only ~4.5% error
if you have a circle radius 10 the circumfrence is:```
PI=3
2310 = 60
PI=3.14
23.1410 = 62.8
#however if you do it using a pc:
23.1410= 62.800000000000004
BONUS
PI=3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
62.83...
so depending on what exactly your calculating and on what (on embedded there is often no floating point acceleration eg) using 3 might break allot less than you think 🙂
looks like a messed up pi.
But you did not mess it up.
did i , might be wrote the thing to find digits of pi myself and i only know the first 5 by heart : 3.14159 😄
from decimal import Decimal,setcontext,Context
from math import pi
setcontext(Context(prec=60))
def pii(terms=1e3):
fracs = list(map(lambda n:Decimal(4/n),[*range(int(terms))][1::2]))
return sum([*fracs][0::2])- sum([*fracs][1::2])
def pi_digits(ndigits):
def nextdigit(q=1,r=0,t=1,k=1,n=3,l=3):
while True:
if (4 * q + r - t) < (n * t):
yield n
q, r, t, k, n, l = (10 * q, 10 * (r -( n * t)), t,k,(10 * (3 * q + r)) // t - 10 * n,l)
else:
q, r, t, k, n, l = (q * k,(2 * q + r) * l,t * l,k + 1,(q * (7 * k + 2) + r * l) // (t * l), l + 2)
digit=nextdigit()
pistr=str(next(digit))+'.'
for i in range(ndigits):
pistr+=str(next(digit))
result=Decimal(pistr)
return result
print('#First:')
print('Value: ',calc:=pii(1e6),'\nError: ',abs(calc-Decimal(pi)),sep='')
print('-'*100,'#second:',sep='\n')
print(pi_digits(500))
``` 🙂
#First:
Value: 3.1415906535897934053127450188674929520971090823877602815541
Error: 0.0000019999999997106852184496766922094934670894872397184459
---------------------------------------
#second:
3.141592653589793238462643383279502884197169399375105820...[cut the rest of the digits here]
i actually like the fist way of calculating pi allot :p but its painfully slow and you have no idea what the precision is in the end, looks like you get about 5 digits of presision per 1e6 terms so 10 for 1e12
the second one is fast but dont ask me why it works for calculating pi because :S
This is what quality of Swift looks like on Linux...
Hi
What
You’re pissing off all 4 Vision Pro owners
yeah idfk who's developing for visionos
does anyone know a ungodly amount about unreal 5 game development
just ask your question instead of asking for someone's unlimited commitment
well i feel like this isnt the place to be randomly asking shit id rather just dm someone personaly and im sure they could fix it
if i sit here and try to explain other people could start talking shit
See, but it's impossible to know if we can fix it unless you actually ask a real question...
It's like walking up to an auto-mechanic asking "do you know how to fix vehicles?" to which they say "well, yes, we are an auto shop" ... only for you to then drive up with a Tiger Tank from WWII. 🤷
Hey everyone, I'm working on a farming system in Unreal Engine 5 and I've hit a wall with a weird bug. Here's the situation:
What I've Built:
I have a system where the player can equip a "hoe" tool. When they use it on the ground, it spawns a main farm plot actor (BP_SoilPlot).
When that main plot spawns, it automatically creates a 2x2 grid of smaller, individual "planting spot" actors (BP_PlantingSpot) on top of it.
The player can then equip a "seed" (which is just a variable for now) and is supposed to be able to interact with one of the individual planting spots to plant a crop.
The Problem:
Everything works up until the final step. The player can spawn the plot, the grid of spots is created correctly, and when I equip the seed and press 'E' on one of the spots, my debug messages confirm that the player is correctly identifying the spot and sending the "Interact" command.
However, the 3D mesh for the starter plant (the carrot sprout) is not appearing. The logic inside the BP_PlantingSpot that is supposed to set the static mesh is failing silently.
What I've Tried:
I've confirmed with debug messages that the Event Interact inside the BP_PlantingSpot is firing.
I've confirmed that the logic is correctly deciding to take the "Planting" path.
The issue seems to be with the Set Static Mesh node itself, or the data being fed into it, but I can't figure out why it's not working.
I'd like to make my own proximity key for my car, I know the standard button fobs are plentiful on the market, but do any proximity ones exist? Or will I have to make one with BLE or something
what do you mean by proximity one ? If you as an alternative to "networked" one (like Apple tags), then old Chipolo tags were literally just bluetooth tags where the app notified you when you left the area with it.
This has nothing to do with tracker tags... Have you never owned a <20 year old vehicle with passive keyless entry?
ok, misunderstood what you are after
^ this tbh
passive keyless entry? like the one where you walk up and it unlocks automatically?
Can just search "aftermarket passive keyless entry" and at least some stuff coming back not sure how good any of it is
I'm not the common idiot, I've already done some searching, hence why I'm asking if anyone knows anything
Eh I didn't mean to imply that, but what's wrong with stuff that's available or what're you looking for that's different? Like more of a diy/open source version or something else?
from what I could find, no aftermarket options exist for just a fob system that just gives an output when the fob is detected. Only chinesium keyless entry with button start systems that I wouldn't even consider touching
Just need a basic system to know when the fob is within like a meter of the car, so the door handle button can be activated, and the immobilizer disabled, bonus if it can differentiate between the key being within a meter of the car AND inside the car
Anyone here fluent in vue + electron ? I'm trying to learn how to build an app and familiarize myself with logins 🙂
Fluent no, have used yes 👍 always best to just ask direct questions when looking for help though too (trying to do X, did Y, resulted in Z)
Does Unreal show you what objects are in the scene when you playing your scene and creating objects at runtime?
(Also Unreal Source is a decent Discord server for UE help)
how much do yall pay for domains
yknow namecheap will give them to you for like a buck but only for a year, then ur paying 10++
Cloudflare for whatever TLDs they have, the price is wholesale.
Namecheap for whatever else, or something else for specific country ones
All my and my client's domains are through Hover.com or PorkBun and we don't take promotional pricing into account / budget ever because it's usually only for the first year. It's great that domains can be had for ~$2 CAD for the first year, but if you're planning to use the domain for anything serious, you'll renew every year anyway...
why renew every year, no option to just pay ahead for like 5-10?
Just a choice some people make for budgeting purposes. Depends on the business. I should probably renew my personal domains for 10 years at a time though since I know I'll never give those up until death.
Yeah thats my thing rn
I have a personal site which I dont see ever giving up so i figure I should just go pay for 10yrs or smth
i've been using porkbun for a while. i have bbaovanc.com prepaid for 10 years basically always
Challenge accepted
I use namecheap for everything except the local TLD, which i need to use our official local
Other than that, yeah namecheap good for me
They even notified me to prepay for 5years when the domain price is increasing.
So i can lock in the lower price atleast for the next 5years
I used to use namecheap for everything until cloudflare started their registrar
Makes zero sense to pay more than you have to
And not having to wait for the nameservers to update to cloudflare's is a bonus 
Namecheap has some shitty business practices
what TLD tho. Bunch of domains are like that
.dev
its cos its a premium domain i think
namecheap renew for .dev is $16.47 ?
sore you aren't doing like a 10 year renew ?
literally right now on their website
sorry, euros, but same thing
and yes, that is the other alternative, bought a special domain which has special pricing
i mean this is probably on google and not namecheap https://x.com/emirkarsiyakali/status/1601373440979525632
As you know, domain extensions like .dev and .app are owned by Google. Last year, I bought the https://t.co/SWNLwhWO9l domain for one of our projects. When I tried to renew it this year, I was faced with a renewal price of $850 instead of the normal price of $12.
like https://domains.squarespace.com/domain-search (the .dev tld registrar now) has 225 euro price sfor setting.dev
while 27 euros for my last name .dev for example
mine used to be with google domains and then it went to squarespace before being transferred to namecheap
transfer/renewal cost was $115
half tempted to sell the domain, who knows, rockstar might want an internal testing domain
with namecheap you could always list it for sale at an egregious price in the event that someone might want it more than you
6$ for eu, wanted to buy cia.agency but it’s 200$ for a stupid joke
I wish I owned x.com
I thought x.com merged with PayPal back in the early 2000s, so PayPal would have the rights on that name and domain... But apparently the Muskrat must've kept the domain at the very least...
Heh just looked to see if any progress on the idea of payments through the x/Twitter app but just found two twitter accounts for other businesses called x-payments and payments - x. It is a decent name for insert variable value here or "do everything" company but not sure how hard that kind of transition would be to make it more like wechat in the east.
added themes to my ipod remake project
still have to make the hw part
themes can be animated too
I don't know why I expected anything else
i added animated themese
its just law it HAS to play bad apple
Did anyone attend DefCon this year?
i pay € 46,48 for a .net without (web) hosting (but with emailhosting if i want it)
breh
i tried to renew my lets encrypt 2 days ago and i kept fucking it up and certbot gave me a 7 day timeout
tbh i still havent figured that one out completely , i do have a cert, but its supposed for subdomains aswell eg but some stuff works other not so much. somehow i also cant set that domain internally on my systems (automaticly), my router overides it somehow
The prob is I set it up a year ago yk bcs im renewing it now. And back then I also fucked it up and got myself a 7 day timeout before i fixed it lmfao. It was something goofy with how I had to configure nginx to let certbot provide the challenge files or w/e
but now my phone and stuff refuses to connect to my calendar bcs the apps are https only for some reason
some due wrote a script to modify the firmware of that thing, but my german isnt that great https://www.mengelke.de/Projekte/FritzBox-JSTool , so didnt work last time 😛
Checksum mit JavaScript berechnen, Konfig-Datei entschlüsseln, ShrewVPN-Dateien erstellen, system_status / jason_boxinfo anzeigen, Zwei-Faktor-Authentisierung
wqtf is fritz box
hm idk
I have a wifi 5 router and have openwrt on it. But then I have a home server with a bunch of services on it
yeah my isp wouldnt mind what modem/router but they have to rent the lines and they are nitpicky about it,(we cant even update the firmware when it releases as it takes them 2 weeks to whitelist the modem with that firmware so 🙁 ) luckally its not the worst modem out there that fritbox but the engeneers there do make mistakes, using .box internally was nice untill .box also became a valid tld ,.. wich and they didnt buy fritz.box wich was the internal name for the router thing... , then they in their interface request fully qualified domains for DNS servers, .. but they error out on dns.domain.com. but not on ```
dns.domain.com
routher does have hidden services like :
That's wayyy too much
(the .com of the name costs 3K , the .inc 800, (and the first year i had the domain i only payed 4euro so 🙂 ) anyways this is my registrar:https://www.combell.com/en/
a friend of mine has the cheapest domain 😄 0euro/year he bought it in 1992 or so when the local registrar was still selling them permanently instead of leasing them :).
FYI wholesale price for a .net is $11.84/year
You're being fleeced
That's 10.16 euros at current rates
Registrar email hosting is garbage, would be better off paying wholesale for the domain through cloudflare and setting up email forwarding for free
goal was to actually run my own mail server 🙂 when i have the time,...
I would strongly caution against running your own mailserver from a residential connection in 2025... even if you understand the complexity, it also likely violates your ISP Terms of Use.
https://www.reddit.com/r/selfhosted/comments/t8gqir/why_you_really_dont_want_to_selfhost_your_own/
i have seen this so i'm aware but i wanna try something so 🙂 https://www.youtube.com/watch?v=mrGfahzt-4Q
We're not quite sure exactly when email was invented. Sometime around 1971. We do know exactly when spam was invented: May 3rd, 1978, when Gary Thuerk emailed 400 people an advertisement for DEC computers. It made a lot of people very angry... but it also sold a few computers, and so junk email was born.
Fast forward half a century, and the rel...
Meh I mean the registrars pay 4k a year minimum to be a part of icann and .20 for each registration or renewal so if getting at $0 the company who registered it is now actually losing money every year
Not saying should pay more than you need to for a domain but also $30 a year doesn't matter kind of money
yeah prolly also the reason why they keep trying to sell him hosting and other stuff, in 199* they also figured ipv4 was enough , html was safe enough, and if you think about it , in the early 90 who would want to rent a domain , prolly the only thing they could do to get some intrest for it was selling the domain , and guaranteeing services (als its a .be domain so its from the country )
damn ICANN sould give us the domains for free, for not havving to pay for making use of the internet ,... (since we invented it :P, even tough US thinks they did 😛 , the inventor of the Wold Wide Web (tim burners lee , also said we did so 😄 )
In 1910, two beardy Belgians started a project: to collect the entirety of human knowledge in one place, and make it available to everyone. It sounds like they wanted to create Wikipedia or Google - but unfortunately, no-one had invented web servers or home computers yet. So instead, they ended up making the world's greatest filing cabinet. I tr...
Collective effort for sure, need a transistor before you can make a processor need processor before can make NIC need NIC before can make network need network before can make inter-network. Html really added links between documents as the main way to tie documents together and mix some media (really just images and text for the longest time then eventually video and audio support with html5, final nail in the coffin for plugin based sites)
we did not need transistors :p we did it on paper :p lol
should watch the clip its verry intresting and not to long so 😄
Hehe sure can work it out in theory but working machine different matter ask Babbage 😉
Hosting your own is fine, just don't do it from your home ip
I've been running a mail server from a contabo vps for 5 years now with minimal issues
As I noted, if you understand the complexities and aren't running it from a residential connection, sure. It's nice to roll your own services, both for privacy / piece of mind and just to know how to do it.
Winning the IP lottery is invaluable though
I need to move servers and I'm scared of losing that lottery lol
Gonna fuck around with a separate domain before moving my main domain
Yeah no, do not do this
Contabo...
This channel always inflicts mental pain
my contabo vps didn't work, not an exaggeration
Can confidently say that hosting your own email server is a pain in the ass, unless you have good contacts at Microsoft/Outlook
why would i need those ?
Chris Pirillo ran his e-mail through an exchange server for a long time throughout the 2000s
chris@pirillo.com, which I don't know if it's still valid these days
My VPS constantly gets added to blocklists even if I ask Microsoft to remove it, and I’m the only person sending/receiving through it
Residential connection would be even worse
My DMARC, DKIM, SPF are all perfect and I have TLS enabled but Microsoft still hate me unless I use a proxy
also not planning to do an exchange server, just smtp with encryption and auth ofc or nobody will accept anything from it, domain should be old enough to not get listed as spam by default so
Modoboa is what I run
I’ve only had one issue but that was a major version upgrade
I just haven’t updated it since then 🤷♂️
i wanted to go with either plain postfix or iredmail
but ill take a look at anything thats out there
Modoboa uses postfix under the hood
mmm somehow iredmail looks more robust ,but more complicated and prolly more of a hassele at the same time (both are the online demo's)
Plain postfix+dovecot is pain. But you probably will learn a lot
its not to learn actually 🙂 more to test some stuff, and possibly cover my ass with it at some point, and increase the controlll i have over my data footprint.... , and i need to also make a decent nas/server anyway , because as it is now , if my main rig goes up in flames 🙂 , im in trouble
i have backups but all in the same system 😛
buy a case with lots of 3.5" inch bays , install some linux distro on it , i hate myself but its prolly gonna be gentoo (or calclulate), as my rpi server atm is debian and i regret that since day one,... not gonna do rpm based either , dont think arch is suitable for a server so ...
Wow Modoboa has changed a lot since I installed it
Works4me
---------------------------------------------------------------
Benchmark Time CPU Iterations
---------------------------------------------------------------
BM_Rotation 380 ns 382 ns 1811149
BM_RotationCross 379 ns 381 ns 1838177
BM_RotationAct 380 ns 382 ns 1844712
BM_RotationSVE 1030 ns 1043 ns 674127
BM_RotationSMESingle 1063 ns 1065 ns 655204
finally got around to using (S)SVE and SME. I gotta implement more things so that I can have it run a proper benchmark with multiple rotations. a single rotation is not enough to justify using the SME unit.
its not scamming if it works? and it works fine for me?
anyone get rocm working on consumer level GPUs? my 7700s is not playing nice with ROCm atm
do as we say not as we do :?
for "backup NAS" (as in backups from main NAS to use if main NAS dies and i need some data) i use ZimaOS ironically
Scumbag sellers of the week should NOT be rewarded
they should be shamed on the #CUPodcast instead
still can't decide what language i should use for a backend which might end up needing to be able to be scaled to multiple nodes. Thinking about starting with Quarkus, even tho people like to hate on Java 😄

use anything you like. scaling is a question of how you design your program's structure
yes. but building on kubernetes native microserver solution like Quarkus than doing it on let's say node imo. plus quarkus have tons of plug & play features. Want to generate OpenAPI automatically ? Just add a plugin. Want to do OIDC auth ? Just add a plugin for your OIDC provider. Want X or Y ? There is probably plugin for that.
We also use Quarkus at work (i am mostly on FE team, but i do sometimes help out on BE), so it would also help me out at work a bit.
Hi everyone.
I’m looking to get a 32" monitor, possibly adding a second one later for a dual setup. I’ll be using it for both gaming and coding.
For those of you who’ve tried it — should I go curved or flat?
Anyone here coding on a curved monitor? Does the curve mess with readability?
Depends on how severe the curve is. If it's like a 1000R curve, then I can see how it could start messing with text readability. I'm personally running a 34" 21:9 Ultra-Wide with an 1800R curve and personally have 0 issues with it
suppose it's worth asking here too:
Did anybody selfhost a matrix server? I'm looking for a docker compose file
for synapse? or which homeserver software
yep
this is my old config that i used a while back which supports their worker processes https://git.boba.best/boba.best/synapse/src/branch/master/docker-compose.yml; you'd want to update the versions of stuff (like postgres) in the config file
they seem to have an example config officially here, although it does also seem a little dated and you'd want to remove the synapse.build directive so it just uses image https://github.com/element-hq/synapse/blob/develop/contrib/docker/docker-compose.yml
their example uses traefik, on mine i just exposed it to a port on the host and used a reverse proxy i had running on the host
I tried their docker without traefik config, compose gets mad at me
and I'm not that well-versed in docker so kinda got lost
can you send the exact file you tried, with modifications you made
yep, give me a sec
This is what I've tried. Kind of naively tried to copy the normal includes into the file and see whether it works. It in fact did not
EDIT: I think I somehow mixed up two versions. This is conduit
that looks like it's for conduit and not synapse
yeeeah, brain is liquid right now sorry about that
I'm willing to switch, give me a second, I'll follow your links
if you wanna use conduit then that's fine
I have no preference, whichever is faster to setup
Telegram is getting throttled round here, I'm setting this semi-urgently
right, commented everything related to traefik
exposing directly
do you have a reverse proxy server set up on your host?
i.e. nginx, caddy, apache, traefik, haproxy
I've got an nginx rp set up yeah
proxy manager was it
composing the thing, synapse should be running
version: '3'
services:
synapse:
build:
context: ../..
dockerfile: docker/Dockerfile
image: docker.io/matrixdotorg/synapse:latest
restart: unless-stopped
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
- ./files:/data
depends_on:
- db
ports:
- 8448:8448/tcp
labels:
- traefik.enable=false
# - traefik.frontend.rule=Host:my.matrix.Host
#- traefik.port=8008
# Alternatively, for Traefik version 2.0:
#- traefik.enable=true
#- traefik.http.routers.http-synapse.entryPoints=http
#- traefik.http.routers.http-synapse.rule=Host(`my.matrix.host`)
#- traefik.http.middlewares.https_redirect.redirectscheme.scheme=https
#- traefik.http.middlewares.https_redirect.redirectscheme.permanent=true
#- traefik.http.routers.http-synapse.middlewares=https_redirect
#- traefik.http.routers.https-synapse.entryPoints=https
#- traefik.http.routers.https-synapse.rule=Host(`my.matrix.host`)
#- traefik.http.routers.https-synapse.service=synapse
#- traefik.http.routers.https-synapse.tls=true
#- traefik.http.services.synapse.loadbalancer.server.port=8008
#- traefik.http.routers.https-synapse.tls.certResolver=le-ssl
db:
image: docker.io/postgres:15-alpine
# Change that password, of course!
environment:
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=
# ensure the database gets created correctly
# https://element-hq.github.io/synapse/latest/postgres.html#set-up-database
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
# You may store the database tables in a local folder..
- ./schemas:/var/lib/postgresql/data
# .. or store them on some high performance storage for better results
# - /path/to/ssd/storage:/var/lib/postgresql/data
password is set
what error are you getting specifically
btw you can remove the traefik.enable=false from labels
Checked logs,
Config file '/data/homeserver.yaml' does not exist. You should either create a new config file by running with the `generate` argument (and then edit the resulting file before restarting) or specify the path to an existing config file with the SYNAPSE_CONFIG_PATH variable.
also under ports it should be - 127.0.0.1:8008:8008/tcp so it's not exposed to public. instead the reverse proxy (nginx) will be exposed
oh, the system is behind a firewall by default, you can't access anything but predefined stuff
and I'm okay with exposing it like that in the network right now
you might have to docker compose run synapse bash and then you'll be able to run, i think, python -m synapse.app.homeserver --server-name insert.domain.name --config-path /data/homeserver.yaml --generate-config --report-stats=[yes|no]
(change the argument to report-stats depending on whether you want to allow it to report "usage statistics (hostname, Synapse version, uptime, total users, etc.) to the developers"
and change the domain name in that command
right, have to set up the domain for that thing then. In theory, if I'm not looking for federation, do I really need the domain name?
how are you going to access it
i think it's still way better to have a domain name
but if you trust the ip to never change, you could make that the server-name
It's static, I am actually paying for it to never change for now hehe
i think it will let you do it if you just put the ip address under --server-name
just don't federate with anyone or else people will be mad
oh no absolutely not. It's gonna be a little private thing for the family
docker won't let me connect since the container is restarting
what if you docker compose down first, and then do that
nope, just won't connect
let me try to do docker compose run with the arguments, I'll report back