#development

1 messages · Page 20 of 1

neon oriole
#

and all that is just for this one block 😄

#

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

stoic charm
#

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.

next wave
neon oriole
# stoic charm Well you can always morph detail. Let’s say it for instance a gravel road with a...

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

neon oriole
#

also only terminal i know of that supports the , doublesize ansi escapes 🙂 ```sh
printf '\x1b#6like this \n'

stoic charm
# neon oriole i think i get what you mean, when panning one frame might be shart with the next...

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.

keen sorrel
# stoic charm Well the light will only change in any meaningful way if you move a longer dista...

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.

azure mica
frozen flame
#

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

neon oriole
# stoic charm Well the light will only change in any meaningful way if you move a longer dista...

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 🙂

neon oriole
# azure mica 😢

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

stoic charm
# keen sorrel The lighting conditions change with a moving camera or subject, irrespective of ...

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.

ivory radish
#

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)

gentle badge
ivory radish
#

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 😄

gentle badge
#

Yeah fs!
Dw, we've all been there 🙂
Just dont forget to not stop learning, and sometimes figuring it out yourself is really fun!

neon oriole
# ivory radish Hey guys i am making a game, and i am currently making a jump funktion for my pl...

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 🙂

neon oriole
dim lava
#

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

neon oriole
# dim lava And I do want to say that using a few classes here/there doesn't make your progr...

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 🙂

cloud knot
# dim lava Fwiw, this is Unity - you make new components by creating a new derived type

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

dim lava
#

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

old arrow
#

the fabled ECS design system

neat zodiac
# ivory radish Hey guys i am making a game, and i am currently making a jump funktion for my pl...

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

dim lava
#

You don't even need a full ECS. "EC" like what Unity has is plenty

frozen flame
dim lava
#

Yeah I'd rather avoid that bundle of hell

frozen flame
#
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

cloud knot
cloud knot
nimble shore
#

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

soft fern
#

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.

soft fern
#

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

limpid reef
fading osprey
#

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

limpid reef
fading osprey
cloud knot
fading osprey
#

Jesus, that's an awful misuse

cloud knot
#

i guess they had the budget to buy it from a domain squatter

fading osprey
#

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

cloud knot
fading osprey
#

Checks out lol, I'm a fiend for my dot UK domains

mental panther
#

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

soft fern
#

Floatplane

mental panther
#

Floatplane is profitable

soft fern
#

And who are the competing with as a streaming service of video on the web?

mental panther
#

They're not competing with anyone

soft fern
#

Okay

mental panther
#

Unless you count patreon

#

It exists to replace the thing they were using that failed

cloud knot
dull spade
neon oriole
#

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

silk eagle
#

like ill just randomly explain stuff to myself that i already understand as if i were talking to someone who isnt me

neon oriole
# cloud knot i just explained what Shadow tried to say

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

neon oriole
#

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

cloud knot
# neon oriole trust me 😄 i have arguments enough in my brain , only my brain likes to be prec...

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

neon oriole
#

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.

neon oriole
#

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

cloud knot
neon oriole
#

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)

cloud knot
#

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

neon oriole
#

unpleasant unless its more like an addiction like programming is

uneven tiger
#

reinterpret_cat

gusty girder
#

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.

silk eagle
#

thats god

cloud knot
old arrow
peak acorn
#

Not that it really matters but I feel like that's more of an L

old arrow
#

its a W for me because idk how to use mercurial

cloud knot
steel pagoda
#

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

silk eagle
#

okay

cloud igloo
#

was girlfriends birthday a couple days ago
and i uhh
made a little game for her ^3^
did all the art myself too

opaque cradle
#

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

opaque cradle
#

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

fading osprey
#

my IP just points at my ISP's office, which is in a city 40 miles away

opaque cradle
#

Same with my old ISP

midnight wind
#

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

cosmic hatch
#

Or just Tailscale so client and server has vpn

fading osprey
#

Cloudflare Tunnel could be a viable option, or just use their DNS proxy, really all your call tbh

cosmic hatch
#

Yeah nice, definitely use that

fading osprey
#

CF tunnels are free, plus CF DNS is proxy-by-default

opaque cradle
midnight wind
#

for some it'll be fine

#

but with alot, they'll get annoyed probably and want you to upgrade

fading osprey
#

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

opaque cradle
#

Idk hosting it myself seems better no?

#

Why bother with alternatives when I literally have a server running nonstop

fading osprey
#

well, that's a choice only you could make, we're simply giving you some of the available (millions of) options

opaque cradle
#

I won't have crazy traffic

#

10 visits in one day AT MOST

fading osprey
#

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 🙂

opaque cradle
#

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

fading osprey
#

DNS proxy is active for all supported record types by default, even on the free tier 🙂
edit: sorry for the delayed response

pulsar prawn
#

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

limpid reef
#

Or I guess the kid could also just download the lesson and follow along. Become their own teacher? 🤣

fading osprey
#

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.

shrewd valve
cosmic hatch
red trellis
#

tony's a god damn genius

#

get your apples right

cosmic hatch
red trellis
#

cause i leave this server often and then i come back when i have a question or issue

red trellis
#

no i have an airflow issue

cosmic hatch
#

Hmm yes

weak glen
#

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

winged adder
#

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!

opaque terrace
#

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

neon oriole
#

does anyone happen to know a decompiler for C++ dll, that can take a SDK that was used to make the binary intoo account?

neon oriole
# winged adder i plan on making my own game in Python as the scripting layer and C++ as the cor...

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

neon oriole
soft fern
# winged adder I'm somebody who knows absolutely nothing about Coding, but i want to learn!

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)

narrow river
fading osprey
#

Presumably based on her profile (she made the course), it is a decent course

#

the reviews seem rather positive

cosmic hatch
# fading osprey Presumably based on her profile (she made the course), it is a decent course

@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

old arrow
#

i can tell they were really going for accessibility with that color scheme

cosmic hatch
keen sorrel
#

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

soft fern
#

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?

keen sorrel
cloud knot
cloud knot
# keen sorrel 1-20Hz sensor recording, 6-30 sensors per deployment. With at least 1yr of histo...

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

cloud knot
cloud knot
keen sorrel
#

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

cloud knot
#

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

keen sorrel
keen sorrel
frozen flame
#

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

keen sorrel
keen sorrel
frozen flame
keen sorrel
fading osprey
frozen flame
#

Postgres is kinda goated ngl

fading osprey
#

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?

dim lava
soft fern
#

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

soft fern
#

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.

soft fern
dim lava
#

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

soft fern
#

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

shrewd valve
#

i wouldnt worry too much about memory management though, unless you want to stick with languages like c/c++

soft fern
#

Yea depends on context sort of but you are always managing memory even when you aren't being conscious about it

shrewd valve
dim lava
#

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

soft fern
#

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

soft fern
#

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

soft fern
#

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

primal cedar
#

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

soft fern
#

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

primal cedar
#

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

primal cedar
#

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.

cosmic hatch
#

who are 'we', a company?

primal cedar
#

yes

soft fern
#

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

cosmic hatch
#

better to do a bit planning before hardware budget

primal cedar
#

we dont have renting as an option as we want everything to be offline

cosmic hatch
#

so LAN area access

primal cedar
#

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

cosmic hatch
primal cedar
#

llama3.3

#

70b

cosmic hatch
#

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

primal cedar
cosmic hatch
#

I've built a few high end computers (a 4090 once), but not such, and not meant for AI workloads

soft fern
#

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 😛

soft fern
#

Is the gaming rig so has the best GPU here I know I also loathe it

gentle badge
half haven
#

On and Off should be two different buttons. PMW

gentle badge
keen sorrel
#

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

hollow basalt
#

Ok

dull spade
#

I can't figure out what you mean by "atomic" and "immutable" when talking about distros. 🤔

cosmic hatch
keen sorrel
dull spade
#

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 ?

keen sorrel
#

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

dull spade
#

Sounds cool.

keen sorrel
#

You don't have to build it from scratch though, since if a layer is unchanged that layer can just be reused again

dull spade
#

yeah, caching, same idea.

keen sorrel
#

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.

dull spade
#

You can put someting else than Raspberry OS on a Raspberry PI ? 🤔

#

Never tried it, thought is was coupled for the hardware.

keen sorrel
#

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

keen sorrel
#

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

royal yew
#

can someone help me with my bogosort code? i keep getting a "syntax error: invalid syntax"

old arrow
royal yew
old arrow
#

That makes sense because your program simply defines some functions. It doesn't actually run anything

royal yew
royal yew
#

do i need some extensions or smth?

old arrow
#

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

royal yew
#

im new to coding and i was js following a tutorial

frozen flame
royal yew
#

yh

silk eagle
# royal yew and how do i do that?

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

royal yew
#

So I js need to add bogo_sort() at the end?

silk eagle
#

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.

keen sorrel
#

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.

cloud igloo
cosmic hatch
cloud igloo
#

nooo
whats wrong with it

cosmic hatch
#

Well not wrong but eh

cosmic hatch
# cloud igloo nooo whats wrong with it
  1. Why do you have 1000 stuff in your taskbar
  2. 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
  3. Why do you use opera gx spyware
  4. Curseforge
  5. Instagram app?
  6. Music while recording, is this supposed to be effort
  7. Sorry.html
cloud igloo
cosmic hatch
#

But yeah great that you’re playing around with html and stuff

cosmic hatch
cosmic hatch
#

e

timber scroll
#

"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

earnest eagle
#

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

grand hare
#

just finished fixing whenplane intergration for like the 6th time? (and i still need to make all the fields of the json nullable

thick wraith
grand hare
thick wraith
#

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

grand hare
#

nah i do have some plans for noki's timestamps cooking

thick wraith
#

Doing gods work. Thanks a lot

frozen flame
#

does noki do it double

#

iirc there werent timestamps on fp last i had a sub(?)

grand hare
frozen flame
#

i mean that he doesnt do fp versions

grand hare
#

theres a simple fix for that

#

use whenplane fetch the length of the preshow and then add the length to the timestamps

frozen flame
#

good enough

dark rapids
#

whats better to learn python or java

fading osprey
dark rapids
fading osprey
#

the true answer is neither, they both suck, pick up an actual programming language (/s)

fading osprey
#

if you ain't implementing TCP/IP for your microcontroller in your own OS, you're not a real dev (/s)

soft fern
#

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.

earnest eagle
soft fern
#

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)

earnest eagle
#

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

thick wraith
#

A high level overview

  1. Get the image
  2. Check the pixel value at selected location
  3. 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

drifting cave
#

yey me release gaem

#

anslo pls unban me in slowroads discord

frozen flame
soft fern
#

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

earnest eagle
#

ths it what its rading rn

thick wraith
#

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
thick wraith
#

One thing to note, you may be limited by the screenshot library. PIL takes around 300-500ms from my experience

rancid sphinx
#

any AI experts or chatbot devs around?

hollow basalt
soft fern
cosmic hatch
# rancid sphinx any AI experts or chatbot devs around?

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

fading osprey
#

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)

shrewd valve
neon oriole
#

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 😦

zinc heart
#

Weird question, anyone know of a good budget VPS provider?

fading osprey
#

depends on your budget

#

Digitalocean (and many others) start at around $5 USD/month
Hetzner is similarly priced,

frozen flame
#

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

zinc heart
#

I was originally using Oracles free tier but my account got nuked

frozen flame
#

Yeah that's pretty normal

zinc heart
#

Yeah I've learned that now

#

but I am looking for something to replace it

frozen flame
#

Hetzner is good stuff

zinc heart
frozen flame
#

Well I've heard of one of them

zinc heart
#

I saw there VPS XS plan is $2 which seems like a good deal

frozen flame
#

Anything under $5 is probably shit

fading osprey
frozen flame
#

It's almost impossible to provide a decent service at such low cost

zinc heart
#

maybe a vpn down the line but as of rn just uptime

fading osprey
#

is there any reason that you cant use an rpi for uptime kuma?

zinc heart
fading osprey
# frozen flame Lol, lmao even

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

fading osprey
frozen flame
#

Cell?

fading osprey
#

if the power is out, I doubt cell towers are running anything other than emergency service transmission

zinc heart
#

cell tower don't go down especially near where I work

zinc heart
zinc heart
frozen flame
#

Cell towers run for days without grid power

fading osprey
#

Congrats. Doesn't mean they route calls to anything that's not an emergency number

frozen flame
#

They sure do

midnight wind
#

like a large UPS

frozen flame
#

Anywhere I've ever been anyways, they work just like normal when the powers out

midnight wind
#

and then after a couple hours they start to drop off

fading osprey
frozen flame
#

You won't be getting 5G with full coverage but you'll have a fine enough signal

grand hare
zinc heart
#

Right now, the main reason would be for uptime Kuma.

grand hare
#

Ah none of my shit is important enough for uptime

zinc heart
#

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.

grand hare
#

If it goes down randomly it's fine

zinc heart
grand hare
#

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

zinc heart
#

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.

royal yew
#

i just made a somewhat acceptable bogosort algorithm in python

midnight wind
#

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

hollow basalt
#

what are those services if i may ask. im always looking into improving my workflow

zinc heart
zinc heart
midnight wind
hollow basalt
#

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

silk eagle
zinc heart
main pasture
#

shooting my shot here. does anyone know any place that might be offering Node.js internship?

shrewd valve
#

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

zinc heart
#

Looks great, nice work

weak bear
#

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

silk eagle
# weak bear also, general tips on learning to code? i never attempted this so any advice is ...

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)

weak bear
silk eagle
#

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

weak bear
#

true. i was just wondering if i should just read documentation or try microsoft's own free course or maybe codeacademy

silk eagle
#

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

keen sorrel
#

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.

hollow basalt
#

ok

shrewd valve
old arrow
#

so not really any relational db features

thick wraith
#

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.

soft fern
#

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

keen sorrel
# shrewd valve never had to work with time series db's before. what do they do differently to "...

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/

We'll explain the main features, advances and benefits of QuestDB. Learn how to accelerate your time-series use cases.

glossy lily
#

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

Summer of Making

Build stuff. Get stuff. Repeat. Summer of Making is a global event for teenagers 18 and under to build open-source projects, earn prizes, and join a worldwide community. Ends August 31, 2025.

uneven tiger
#

Rust is Fire

keen sorrel
#

blazing, one could say

modest hedge
#

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

weak rain
frozen flame
drifting cave
#

anyone a graphic designer ill unpay u to design a logo for my gamme

#

game

modest hedge
abstract valley
#

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?

keen sorrel
#

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.

keen sorrel
#

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

drifting cave
lapis viper
#

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)

keen sorrel
lapis viper
#

this is basically what it is for me (yes it goes up a bit again after the low point)

midnight wind
#

What are you trying to use them for?

frozen flame
lapis viper
lapis viper
lapis viper
frozen flame
#

I was joking, beringher makes decent products. Yamaha is uh... yeah it's a product alright

keen sorrel
#

Did the original housing maybe prevent going into the lower range?

lapis viper
#

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

lapis viper
#

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)

midnight wind
midnight wind
#

*encoder

lapis viper
#

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

midnight wind
hollow basalt
lapis viper
grand hare
#

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)

sacred lotus
#

Hey any unreal engine gurus in here?

#

Need to pick an expert's brain about a lighting issue I'm having

soft fern
#

Not an expert by any means but what's the issue?

cloud igloo
#

any python nerds that could help me with a lil thing? 😭

grand hare
#

bro

cloud igloo
#

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)

silk eagle
#

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

shrewd valve
#

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

unique gull
onyx tendon
#

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

willow vortex
cloud igloo
# hollow basalt 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

grand hare
#

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

grand hare
#

well uh something brokey and no api requests go anywhere anymore atleast they dont reach the function that sends them

grand hare
#

haha i put the wrong thing in a comparison ive done this more then like twice this week

gilded moon
#

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

cloud igloo
hollow basalt
cloud igloo
#

mr fartsniffa

grand hare
#

cooking rn

wispy stone
#

Anyone know how to use a GHI .NET Gadgeteer?

drowsy elbow
#

When you're too lazy to int-parse a string, but still need to sort by a string that's a number 😂

craggy harbor
#

Me when lapack uses 129GB of memory on heat diffusion:

thick wraith
#

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?

cloud knot
thick wraith
#

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

cloud knot
#

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

soft fern
#

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

weak glen
#

Ridiculous. Our company needs an app. We must have one! It's what our customers want!

cloud knot
thick wraith
#

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

soft fern
#

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

thick wraith
#

But just for taking pictures or sharing video is more than enough

craggy harbor
#

Nobody here uses blas or lapack?

#

We’re cooked ngl.

silk eagle
#

i aint no scientist

thick wraith
cloud knot
cloud knot
#

or to be more precise, Razor

old arrow
#

ah good ol' DSLs

strange falcon
#

Hi someone that are good with Java?

fading osprey
fleet bone
#

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

soft fern
#

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

fleet bone
#

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

unkempt zealot
#

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 ?

silk eagle
#

its getting more common but ublock usually updates to ignore it

drowsy elbow
craggy harbor
#

Is this a flex?

shrewd valve
#

no

cosmic hatch
#

no

soft fern
#

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

old arrow
old arrow
#

now thats just cmake being cmake imo

craggy harbor
#

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

cosmic hatch
#

Does it count characters or lines

#

And with or without whitespaces

cosmic hatch
soft fern
#

Bytes

grand hare
#

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

craggy harbor
#

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.

craggy harbor
#

Once this all done I’ll be porting my code to CUTLASS.

#

Aka “CUDA but some floaties”

cinder lance
#

github actions are awesome

old arrow
cinder lance
#

so i just used this instead of spending an hour debugging

fading osprey
#

You need to put /github at the end of your discord webhook URL

stark cave
keen sorrel
stark cave
#

Ooooh 😅

silk eagle
# grand hare fuck me

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

grand hare
#

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

hollow basalt
#

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

cosmic hatch
hollow basalt
shut stag
#

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!

topaz epoch
cosmic hatch
old arrow
#

I use http.cat for all my error pages on my website, I should update them in case any have changed

cosmic hatch
#

They’re using a CDN so e

old arrow
#

I downloaded them. I guess I never committed the script to my repo. I'll upload it tomorrow

old arrow
#

I made one to scrape all of them

cosmic hatch
#

lol

old arrow
#

I guess I can just clone the repo now

#

I don't think it was open source at the time

cosmic hatch
#

Or just use their api thing or whatever, the CDN seems nice

#

Offload from server+not region dependent

soft fern
#

Yeah just breaks when cloud flare goes down and takes the rest of the internet with it 😄

old arrow
#

I've been wanting to move my website to a self hosted DNS nameserver anyways

right now I just use cloudflare

shrewd valve
#

you wont be self hosting the dns server for that website. the website wont be a problem to selfhost

old arrow
#

doing that would reduce my reliance to just hetzner and porkbun's root nameservers

sick egret
#

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.

silk eagle
#

oh yeah no for sure yeah for sure yeah

limpid reef
sick egret
#

well no different than having your home ip

#

gag your home service to nothing

#

thanks for nothing though, 😉

#

i'm an honest guy

limpid reef
sick egret
#

Good deal @limpid reef ... thanks anyway

soft fern
#

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

midnight wind
spark temple
midnight wind
spark temple
#

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.

midnight wind
spark temple
#

Aka, the ISP doesn’t have to and doesn’t even know.

sick egret
silk eagle
#

okay

half oxide
#

Hey, I'm new to this server. Do you talk about coding stuff here?

#

or is it just linux related stuff?

mental panther
#

There's an entirely separate #linux channel

cosmic hatch
#

This channel is for development, not only programmming

hollow basalt
sick egret
#

Supposedly

#

Gotten me no where

#

Lol

ember sapphire
#

any1 here good with setting up discord bots?

old arrow
#

it looks like youd literally just npm i and npm run start

urban mulch
#

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?

urban mulch
frozen flame
#

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 picardy

iron python
#

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?

frozen flame
#

Not very

#

Mostly just getting a hold of lifetimes and ownership

#

And having a half decent toolchain mmLul

frozen flame
#

Among other bullshit yeah

soft fern
#

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

frozen flame
#

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 intense_fried_tears

shrewd valve
cosmic hatch
weak glen
#

This is the morally correct way to typosquat

thick wraith
#

I wanted to type another example but apparently it is not permitted to share the link directly huh

#

But yes, typosquat should be informative

stuck crater
next wave
hollow thunder
# ember sapphire https://github.com/MashClashXD/Hypixel-Auction-Flipper (this shi constains no in...

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 .

GitHub

An Updated Hypixel Skyblock Auction House Flip Notifier - MashClashXD/Hypixel-Auction-Flipper

nocturne galleon
#

Hey is anyone up?

cosmic hatch
nocturne galleon
#

I need help

cosmic hatch
nocturne galleon
#

Anyway I need help so if anybody is around I would appreciate it

#

Please

#

It's about an app

cosmic hatch
nocturne galleon
cosmic hatch
#

So what do you need help with

cosmic hatch
#

Is it a mobile application

nocturne galleon
#

yes

stoic charm
#

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.

quiet nest
fading osprey
#

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.

cosmic hatch
#

He left

hollow basalt
#

Lets goooo

heavy turret
#

Blender is gonna make me scream

soft fern
#

What'd do now?

#

Looks like it's not crashed which is the best possible case for blender as much as I love it 😛

hollow basalt
#

Ok

rotund turret
#

How hard is CSS

#

To learn

limpid reef
# rotund turret How hard is CSS

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

limpid reef
silk eagle
#

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

rotund turret
#

Thanks

oak grail
#

hey guys really stupid question: how demanding is development on a systems storage? thank you for any replys

old arrow
frozen flame
#

its usually not a small amount

#

by the time you download devtools, compilers/interpreters, dare to run npm i or cargo update

rotund turret
#

I just get ai to do it

oak flower
#

I'm going to do a bit of an experiment real quick. Is anyone here proficient with using Ruby, R, or PHP?

silk eagle
#

probably

oak flower
silk eagle
#

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

oak flower
#

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.

silk eagle
#

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

oak flower
#

Yeah at least from my own experience, Rust has basically taken over a lot of use cases that were originally covered by those three.

silk eagle
#

where something like a python, JS, rust, even C# people will usually use because its more fun to get into for personal projects

cosmic hatch
#

Like importing nas bars

oak flower
#

Or did learning it come through hobbyist projects?

cosmic hatch
cosmic hatch
#

xD
Sorry for interrupting your discussions

oak flower
#

No you're all good.

oak flower
oak flower
#

Anyone here proficient or experienced with setting up OpenSSH on Linux?

severe rampart
soft fern
#

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

oak flower
#

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.

lethal bison
soft fern
# oak flower I never had touched though: Go, Zig, R, Hacksel, PHP, and Ruby.

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

fading osprey
oak flower
frozen flame
#

I mean, no?

#

Rust is only going up in popularity, both in hobbyist and professional worlds

oak flower
#

Wait shoot I thought riir was an esoteric language.

#

Honestly my motto is, "why not Rewrite It In Swift." Or riis.

frozen flame
#

Swift is pretty nice

#

Too bad it's next to unusable on anything other than Apple platforms :(

zinc dagger
frozen flame
#

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 Elmofire

#

Or python depending on how lazy I'm feeling about the task at hand

zinc dagger
frozen flame
#

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

oak flower
#

Also Swift Embedded now exists, which expands the playing field even further.

soft fern
#

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)

zinc dagger
frozen flame
#

🚮

hollow basalt
neon oriole
# zinc dagger you can build with it any Apple OS related techologies from Mac OS to WatchOS et...

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

arctic lantern
#

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

old arrow
#

does it support chocolate cake

arctic lantern
#

no just 3.14

neon oriole
#

you mean 3 :), as a dev you avoid floats where possible ofc 😄

old arrow
#

yeah but pi being irrational means fractional number isn't much improvement

arctic lantern
weak glen
neon oriole
#

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 🙂
severe rampart
neon oriole
#

did i , might be wrote the thing to find digits of pi myself and i only know the first 5 by heart : 3.14159 😄

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

placid pewter
#

This is what quality of Swift looks like on Linux...

rotund turret
#

Hi

lime jolt
frozen flame
#

yeah idfk who's developing for visionos

empty nimbus
#

does anyone know a ungodly amount about unreal 5 game development

old arrow
#

just ask your question instead of asking for someone's unlimited commitment

empty nimbus
#

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

limpid reef
empty nimbus
#

sure

#

one sec

limpid reef
#

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

empty nimbus
#

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.

mental panther
#

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

cloud knot
mental panther
cloud knot
#

ok, misunderstood what you are after

hollow basalt
#

^ this tbh

old arrow
#

passive keyless entry? like the one where you walk up and it unlocks automatically?

soft fern
#

Can just search "aftermarket passive keyless entry" and at least some stuff coming back not sure how good any of it is

mental panther
soft fern
#

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?

mental panther
#

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

rustic hare
#

Anyone here fluent in vue + electron ? I'm trying to learn how to build an app and familiarize myself with logins 🙂

soft fern
#

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)

vapid grove
#

(Also Unreal Source is a decent Discord server for UE help)

peak acorn
#

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

mental panther
peak acorn
#

Can I pay for like 5 years at a time or smth on cloudflare

#

8-15 isnt too bad i guess

limpid reef
# peak acorn how much do yall pay for domains

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

peak acorn
#

why renew every year, no option to just pay ahead for like 5-10?

limpid reef
peak acorn
#

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

old arrow
#

i've been using porkbun for a while. i have bbaovanc.com prepaid for 10 years basically always

hollow basalt
#

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

mental panther
#

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 KEKW

covert sun
#

from namecheap

frozen flame
#

Namecheap has some shitty business practices

cloud knot
covert sun
#

.dev

covert sun
cloud knot
#

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

cloud knot
#

while 27 euros for my last name .dev for example

covert sun
#

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

silk eagle
cosmic hatch
grizzled steeple
#

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

soft fern
#

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.

arctic lantern
#

added themes to my ipod remake project
still have to make the hw part

arctic lantern
weak glen
arctic lantern
#

i added animated themese
its just law it HAS to play bad apple

cosmic hatch
#

Did anyone attend DefCon this year?

neon oriole
peak acorn
#

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

neon oriole
#

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

peak acorn
#

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

neon oriole
#

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 😛

peak acorn
#

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

neon oriole
#

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 :

neon oriole
#

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

mental panther
#

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

neon oriole
#

goal was to actually run my own mail server 🙂 when i have the time,...

limpid reef
neon oriole
#

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

▶ Play video
soft fern
#

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

https://www.icann.org/en/announcements/details/icann-accredited-registrars-approve-registrar-level-fees-for-fiscal-year-2026-21-07-2025-en

Not saying should pay more than you need to for a domain but also $30 a year doesn't matter kind of money

neon oriole
# soft fern Meh I mean the registrars pay 4k a year minimum to be a part of icann and .20 fo...

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

soft fern
#

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)

neon oriole
#

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 😄

soft fern
#

Hehe sure can work it out in theory but working machine different matter ask Babbage 😉

frozen flame
#

I've been running a mail server from a contabo vps for 5 years now with minimal issues

limpid reef
frozen flame
#

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

mental panther
mental panther
#

This channel always inflicts mental pain

old arrow
#

my contabo vps didn't work, not an exaggeration

boreal ivy
severe rampart
boreal ivy
#

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

neon oriole
#

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

boreal ivy
#

I’ve only had one issue but that was a major version upgrade

#

I just haven’t updated it since then 🤷‍♂️

neon oriole
#

i wanted to go with either plain postfix or iredmail

#

but ill take a look at anything thats out there

boreal ivy
#

Modoboa uses postfix under the hood

neon oriole
#

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)

old arrow
#

Plain postfix+dovecot is pain. But you probably will learn a lot

neon oriole
#

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

boreal ivy
#

Wow Modoboa has changed a lot since I installed it

frozen flame
keen sorrel
#
---------------------------------------------------------------
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.

mental panther
#

Stop giving scamming scum money

frozen flame
#

its not scamming if it works? and it works fine for me?

vague narwhal
#

anyone get rocm working on consumer level GPUs? my 7700s is not playing nice with ROCm atm

neon oriole
#

do as we say not as we do :?

cloud knot
severe rampart
#

they should be shamed on the #CUPodcast instead

cloud knot
#

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 😄

frozen flame
old arrow
#

use anything you like. scaling is a question of how you design your program's structure

cloud knot
# old arrow use anything you like. scaling is a question of how you design your program's st...

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.

barren flume
#

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?

grizzled steeple
#

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

wide reef
#

suppose it's worth asking here too:

Did anybody selfhost a matrix server? I'm looking for a docker compose file

old arrow
wide reef
old arrow
# wide reef 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

wide reef
#

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

old arrow
#

can you send the exact file you tried, with modifications you made

wide reef
#

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

old arrow
#

that looks like it's for conduit and not synapse

wide reef
#

yeeeah, brain is liquid right now sorry about that

#

I'm willing to switch, give me a second, I'll follow your links

old arrow
#

if you wanna use conduit then that's fine

wide reef
#

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

old arrow
#

do you have a reverse proxy server set up on your host?

#

i.e. nginx, caddy, apache, traefik, haproxy

wide reef
#

I've got an nginx rp set up yeah

#

proxy manager was it

#

composing the thing, synapse should be running

old arrow
#

so what docker config do you have rn

#

since that one above is out of date now i assume

wide reef
#
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

old arrow
#

what error are you getting specifically

btw you can remove the traefik.enable=false from labels

wide reef
#

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.
old arrow
#

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

wide reef
#

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

old arrow
# wide reef Checked logs, ``` Config file '/data/homeserver.yaml' does not exist. You shoul...

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

wide reef
#

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?

old arrow
#

how are you going to access it

wide reef
#

I've got a public IP

#

planning to use Element as a client

old arrow
#

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

wide reef
#

It's static, I am actually paying for it to never change for now hehe

old arrow
#

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

wide reef
#

oh no absolutely not. It's gonna be a little private thing for the family

wide reef
old arrow
#

what if you docker compose down first, and then do that

wide reef
#

nope, just won't connect

old arrow
#

huh

#

what exaclty is the message

wide reef
#

let me try to do docker compose run with the arguments, I'll report back