<phschafft>
what I'm really missing in basically all operating systems is a special syscall you can make, that contains some kind of marker. normally it does nothing. but it can be used to halt or terminate the process if a specific marker is passed.
<phschafft>
the idea is that you can use this for debugging. both passive and active.
<augiedoggie>
sounds like dtrace or systemtap
<phschafft>
does it?
<augiedoggie>
i'm not an expert with either one, a lot of times it's used for performance measurements
zard has joined #haiku
<phschafft>
naturally all those interfaces are related by code and my ideas. but I think I haven't communicated what I'm looking for clearly.
<phschafft>
I'm not looking into anything for performance messuements or something. I'm looking for something that can be used as a marker to demonstate that some point in the code binary was reached.
<augiedoggie>
right, you can monitor that with either of them
<augiedoggie>
that's one of its uses is to troubleshoot code paths
<phschafft>
and how do I add such a marker?
<augiedoggie>
its sort of inherent in the operating system
<phschafft>
which means?
<augiedoggie>
dtrace uses a special pseudo debugging format called CTF to store information in the binaries
<phschafft>
so I need special tooling.
<augiedoggie>
i don't recall how systemtap works
<phschafft>
everything that requires tooling means it cannot be used in production. ;)
<augiedoggie>
i guess that depends on what you mean by tooling, the support for it is usually built into the kernel
<phschafft>
so I can just add some line in my code and that can be picked up on any system?
<augiedoggie>
any system that supports that type of profiling
<augiedoggie>
systemtap is linux only, dtrace is everything else
<phschafft>
I mean I could add some #ifdef or something.
<augiedoggie>
it's been a really long time since i've looked at it but i don't think you need any code changes unless you wanted
<augiedoggie>
you can probe all kinds of things with the tools
<phschafft>
and how can I mark a place if not by a code change?
<augiedoggie>
you can if you wanted
<augiedoggie>
i don't recall the method used to create it
<phschafft>
I still think that we talk about to completly different problems.
<phschafft>
I value your input, but what you suggest seems to be (while surely useful) another part that might be just used on high level debugging.
<augiedoggie>
if you just want to conditionally stop execution then why not just call exit() or debugger()?
<phschafft>
I generally don't want to stop. I just noted that using those traps as a kind of breakpoint might be a nice extra.
<augiedoggie>
isn't that what breakpoints in a debugger do?
<augiedoggie>
or you want to be able to do that without debugging information in the binary?
zard has quit [Quit: leaving]
B2IA has quit [Quit: Vision[]: i've been blurred!]
<phschafft>
there is no debugging info in production. ;)
B2IA has joined #haiku
<augiedoggie>
but you're trying to debug it
<phschafft>
that is what I mean with tooling.
<phschafft>
I might not even know exactly what binary I have.
<phschafft>
so even if it would be possible I could for example not work with line numbers.
<augiedoggie>
if you have specific places where you want to break then you could listen on a socket or file descriptor for a message
<mmu_man>
grrrr, it keeps wanting to redownload the same packages
<phschafft>
augiedoggie: in a sense, yes. but not the code. it's about how things play together.
nmbosley has joined #haiku
<phschafft>
augiedoggie: again, that is all active stuff with tooling.
x10z has joined #haiku
x10z_ has joined #haiku
x10z_ has quit []
x10z has quit [Ping timeout: 480 seconds]
x10z has joined #haiku
x10z_ has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
x10z has quit [Ping timeout: 480 seconds]
x10z has joined #haiku
x10z_ has quit [Read error: Connection reset by peer]
x10z has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nmbosley has quit [Quit: leaving]
x10z has joined #haiku
amitbora has joined #haiku
amitbora has quit [Ping timeout: 480 seconds]
x10z_ has joined #haiku
x10z has quit [Read error: Connection reset by peer]
ablyss has quit [Ping timeout: 480 seconds]
OscarL has quit [Quit: Gone with the wind]
HaikuUser has joined #haiku
Maturi0n has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
HaikuUser has joined #haiku
Maturi0n_ has quit [Ping timeout: 480 seconds]
HaikuUser2 has joined #haiku
HaikuUser has quit []
HaikuUser2 has quit []
FreeFull has quit []
wintp has quit [Ping timeout: 480 seconds]
HaikuUser has joined #haiku
HaikuUser has quit [Remote host closed the connection]
wintp has joined #haiku
x10z has joined #haiku
x10z_ has quit [Ping timeout: 480 seconds]
wintp has quit [Ping timeout: 480 seconds]
x10z_ has joined #haiku
_Dario_ has quit [Quit: Vision[]: i've been blurred!]
x10z__ has joined #haiku
x10z___ has joined #haiku
x10z has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
x10z_ has quit [Ping timeout: 480 seconds]
x10z__ has quit [Ping timeout: 480 seconds]
linuxmaster has joined #haiku
HaikuUser has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
HaikuUser has quit []
x10z___ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mmu_man has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
HaikuUser has joined #haiku
wintp has joined #haiku
HaikuUser has quit [Remote host closed the connection]
wintp has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
x10z has joined #haiku
wintp has joined #haiku
v_harkonnen has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
The_Ringmaster has joined #haiku
wintp has joined #haiku
<The_Ringmaster>
hello ladies and gents!
<The_Ringmaster>
I have haiku running in my hyper-v infrastructure. I am unable to get scrolling working within the haiku vm, any ideas?
<OscarL>
I'm pretending to be a kernel haxor (at 3:30 AM, no less)
* OscarL
braces for some possible KDLs
* Begasus
hands OscarL some coffee
<OscarL>
thanks :-)
* coolcoder613
waves
<OscarL>
acpi_lid reads values seems a bit funny. I would expect, say 0 = closed, 1 = open, or the other way around. Currently, seems to only report changes, and not *current* state.
<OscarL>
Begasus: np, just be aware that you need to use "--user" for uninstall, if you used --user when installing with pip.
<OscarL>
I don't like using pip in recipes, for those kind of things.
<Begasus>
all good, installled that one with setup.py
<Begasus>
no recipes involved there
<OscarL>
ok.
coolcoder613 has joined #haiku
<Begasus>
biab
<OscarL>
oh, wow, just noticed that power_daemon was ALSO misbehaving on my old netbook.
freddietilley has joined #haiku
<OscarL>
definitively some weird interactions between acpi_lid, power_daemon, and whatever "general acpi" component handles things.
wintp has quit [Ping timeout: 480 seconds]
Calisto has joined #haiku
wintp has joined #haiku
The_Ringmaster has quit [Ping timeout: 480 seconds]
bitigchi has joined #haiku
<Calisto>
Heyyyyyy
<OscarL>
whasaaap!?
<Calisto>
Just had a tiny question... Is the cloning speed for cloning the src repo limited l
<Calisto>
?
<OscarL>
just pretty slow in general, I think.
<Calisto>
Ohhh that explains it
<Calisto>
It doesn't cross 300 kbps 🥲🥲
<OscarL>
I know that at least one dev sometimes does the following:
<Calisto>
And like idk I was cloning the repo
<Calisto>
And at 99%
<Calisto>
The application crashed 🥲
<Calisto>
So I have to restart it now
<OscarL>
clone/update using th github mirror, then fetch all the tags from the main repo.
<Calisto>
Ohhh yah i guess I'll do that instead
<Calisto>
The GitHub one cloned on my Ubuntu really quick I'll do the same on Haiku
<OscarL>
Calisto: you can always do --depth=1, and "unshallow" it later.
<Calisto>
Also just a small question... The ticket that I need to try and fix today uses the BGroupLayout builder class which ig is deprecated.. so to fix it for now do I just use the same features
<Calisto>
Or is it like I need to change it to use the newer one
<OscarL>
I'll leave that one for actual developers to answer :-D
<Calisto>
xD
<Calisto>
Wait aren't u a developer also tho 😐😐
<OscarL>
nah... I'm just a hack (on my best days), and a nuisance most of the time :-D
AlaskanEmily has quit [Remote host closed the connection]
<Calisto>
xD
<OscarL>
Calisto: but not being an actual dev... doesn't stops me from some keyboard smashing, and, occasionally, get some small patch accepted :-D
<Calisto>
Idk I just want to try and hopefully fix atleast one issue today
<Calisto>
From that ticket thing
<Calisto>
Btw do you know about the LayoutAPI and the Group layout Builder?
<Calisto>
Like I just had a small question about the Grid one *
<OscarL>
noup, sorry. I suck specially bad at GUI code (unless I'm allowed to use Delphi for it :-D)
x10z has joined #haiku
<OscarL>
all I can offer regarding BLayoutBuilder/Group, is an example from an really small app being modified to use Layouts.
<OscarL>
if they get in... I'll just blame the one that merged them :-P
<Begasus>
ImportError: cannot import name 'AccessDenied' from 'psutil._common' (/packages/python3.10-3.10.13-3/.self/lib/python3.10/vendor-packages/psutil/_common.py)
<Begasus>
OscarL? ;)
<Begasus>
lol
<OscarL>
psutil for Haiku needs A LOT of love.
<OscarL>
and I'm a heartless b*tch.
<Begasus>
tss ... need that to check vorta ...
<Begasus>
psutil - vorta - borgbackup
<OscarL>
yeah, not gonna happen anytime soon.
<OscarL>
unless you convince mmu_man to resume work on it :-)
<Begasus>
plop!
<OscarL>
weird... not seeing "Comment-Id" on my commit message :-/
<Begasus>
weird?
<OscarL>
for Haiku, there's a "commit-msg" hook that should be running and adding that.
<Begasus>
blame turbo? :P
<OscarL>
nah... found it... seems you now need to "chmod +x" it for it to work.
<OscarL>
(I had an older version, and updated it not long ago, but haven't used it till now, it seems)
gouchi has quit [Remote host closed the connection]
HaikuUser has joined #haiku
HaikuUser has quit []
<mmu_man>
WTF
<mmu_man>
so I had a corrupt BFS
<mmu_man>
then I copied older packages to it from a USB key, it boots, but won't update, it says Nothing to do
<mmu_man>
but I know it's older
<Begasus>
corrupt packages too maybe?
<mmu_man>
maybe
<mmu_man>
I tried copying over a newer haiku package, it wanted to update from HaikuPorts, but not the rest from the Haiku repo
<mmu_man>
tried with more, now it seems to act up, let's see
<Begasus>
tried with just "pkgman update"?
<Begasus>
ps, upstream psutils is still not wanting to add Haiku support :)
<mmu_man>
it says "Nothing to do"
<mmu_man>
people sux :-(
<Begasus>
;)
bitigchi has joined #haiku
<Begasus>
good enough for me (vorta builds/installs fine with it) :)
HaikuUser has joined #haiku
<HaikuUser>
haiku is the best os ev3r made
<Begasus>
thanks and welcom HaikuUser :)
<HaikuUser>
How do i change my user name in Vision?
<Begasus>
"/nick new_user"
andreaa72 has joined #haiku
HaikuUser is now known as Floppa
<Begasus>
better Floppa :)
<Floppa>
Thanks
<Begasus>
time for a toot about borgbackup and vorta :)
x10z_ has joined #haiku
andreaa72 has left #haiku [#haiku]
bitigchi has quit [Ping timeout: 480 seconds]
xet7 has quit [Remote host closed the connection]
x10z has quit [Ping timeout: 480 seconds]
coolcoder613_32 has quit [Ping timeout: 480 seconds]
<Begasus>
whoot, @python already boosted :)
Floppa has quit [Ping timeout: 480 seconds]
<B2IA>
(UnrealNeil) butler catsup
bitigchi has joined #haiku
CalistoMathias has quit []
CalistoMathias has joined #haiku
<CalistoMathias>
Hey so I think im finally getting around to fixing the ticket issue on thee Media Player settings
bitigchi has quit [Ping timeout: 480 seconds]
<CalistoMathias>
just had a really small question which unfortunately I couldn't find on the docs
<B2IA>
(UnrealNeil) ask away. i know nothing
HaikuUser has joined #haiku
HaikuUser has quit []
<CalistoMathias>
at the top of the src file for the media player settings window there is "const float kspacing = be_control_look->DefaultItemSpacing()". The same value is used for creating a grid that places the item... It is used for both the padding as well as creating a horizontal strut that fills in the respective spaces...
<CalistoMathias>
is there a particular number that the kspacing refers to? so that I can wrap my head better around it
<CalistoMathias>
right above they have declared a strut of width 10
x10z_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<CalistoMathias>
also in the case of the media player misalignment... I think its because the code has both a padding as well as a horizontal strut, which adds into the extra space? or am I gooing about this the wrong way. For reference, this is the ticket https://dev.haiku-os.org/ticket/10475
<B2IA>
(UnrealNeil) well, you could be onto something there...
<B2IA>
(UnrealNeil) what happens with a strut width of 5?
<Calisto>
Yup that's what I'm going to play around with rn
<Calisto>
I think it's that the padding and the strut width are both adding together to give the unwanted extra space
<Calisto>
I think what I could do is first remove the padding and only keep the grid layout's items flush against each other
<Calisto>
And then edit the strut's width
<Calisto>
I honestly need a bit of help with this Jam compile tool.... If I change the source code...how do I build and execute the new version of the app?
<Calisto>
I've never used something like Jam before
CalistoMathias has quit [Ping timeout: 480 seconds]
<mmu_man>
so, not sure how but it seems to be getting there
<mmu_man>
had to reinstall packages that aren't activated
Begasus has quit [Quit: Vision[]: i've been blurred!]
Begasus has joined #haiku
v_harkonnen has joined #haiku
CalistoMathias has joined #haiku
<CalistoMathias>
So if anyone could guide me on that, it would be a great help :D
<CalistoMathias>
of*
hightower2 has joined #haiku
bitigchi has joined #haiku
<B2IA>
(UnrealNeil) butler catsup
<CalistoMathias>
I didn't get what you meant :(
<B2IA>
(UnrealNeil) how can I change a folders attrib to unhide the folder in terminal??
_orealis has joined #haiku
bitigchi has quit [Ping timeout: 480 seconds]
orealis has quit [Ping timeout: 480 seconds]
_orealis is now known as orealis
bitigchi has joined #haiku
<mmu_man>
ok, that machine is *finally* usable again, pffff
<Begasus>
heh
xet7 has joined #haiku
<CalistoMathias>
I tried reading through the page about jam on the Haiku Website but there is nothing specific about compiling a specific app or anything like that? I think if I can understand how to do that then maybe I can try playing around with the layout until I fix that issue. So if anyone has any resource link.. that would be helpful too :)
bitigchi has quit [Ping timeout: 480 seconds]
<Begasus>
Tried "jam AboutSystem", not sure if it's only taking care of that one or rebuilding the lot :D
<CalistoMathias>
oh so that rebuilds the whole system?
CalistoMathias has quit [Quit: Vision[]: i've been blurred!]
<Begasus>
not sure, never tried building only "one" part of the system
<Begasus>
but I've seen comments about it, so it should be possible :)
<Calisto>
Would u recommend that I build the whole thing?
CalistoMathias has joined #haiku
<CalistoMathias>
I'm just slightly confused as to how to approach this whole thing... Like right now If I want to see the live changes of what I have edited into the code in the src/apps/<whatever_file> am I supposed to compile the whole thing again?
<CalistoMathias>
is there nothing like Paladin where I can launch that app to which I am making the edits directly?
<zard>
"jam AboutSystem" indeed only compiles what is necessary to run the AboutSystem app
<zard>
If you make changes, then only what needs to be recompiled will be recompiled
<zard>
So, compiling for the first time may take a while, but subsequent times shouldn't take as long
<Begasus>
CalistoMathias, I guess you need a full build first before starting on individual parts?
<zard>
I don't think so... Jam should be able to compile just the things that are needed to run AboutSystem
<Begasus>
jam -qa -j12 AboutSystem :)
<Begasus>
ah, didn't know that zard
<CalistoMathias>
after compiling using this command, where are all the executables going to be stored? how do I see the version of the app to which I am making changes?
<CalistoMathias>
I probably need help on this process once xD (i g after that everything should make sense)
<CalistoMathias>
oh okay
<CalistoMathias>
cool
<CalistoMathias>
ill try doing that in a while and ask here if I need more help :)
<Begasus>
depending on your "generate*" target
<CalistoMathias>
thanks @zard @Begasus
<CalistoMathias>
so from that folder I can run the app's executable which was generated basically?
<Begasus>
I can do only small things there ;)
<Begasus>
yep
<CalistoMathias>
cool
<CalistoMathias>
ill try doing that
<CalistoMathias>
can't wait to actually try and fix something xD
<CalistoMathias>
I was thinking that rather than using a grid to render the items, I could end up doing the same thing that was done in order to indent items by creating a horizontal Group layout and adding a struct there... will let you know if that works :D
<Begasus>
lost me there halfway :D
<CalistoMathias>
xD
<CalistoMathias>
thanks for all the help tho @Begasus :)
<Begasus>
np CalistoMathias
<CalistoMathias>
cool imma be AFK for a while
<Begasus>
now what was I doing ....
<CalistoMathias>
Got to have dinner before it leaves :D
<CalistoMathias>
byeee :)
CalistoMathias has quit [Quit: Leaving]
<mbrumbelow>
Begasus: Thanks again for the help on the Paladin release.
<Begasus>
oh, forgot what I did there mbrumbelow ;)
<Begasus>
but thanks :D
<mbrumbelow>
🙃
<Begasus>
at least the guy at psutil is honested(?) :)
<Begasus>
honest? ... not taking on English tutoring anymore :P
<Begasus>
heh, not the only one having issues with kirigami/akonadi :D
bitigchi has quit [Ping timeout: 480 seconds]
<Begasus>
lol, I did read (or started) the readme: Exit You must NOT copy UserBuildConfig.ReadMe directly but use parts of it! ; :D
<Begasus>
depending on build system there are options too
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
<Begasus>
err ... probably -Wno-unused or the like?
<muhamed_emad[m]>
Begasus: do you mean to delete the -Werror in the ArchitectureRules file?
<Begasus>
if that is preventing the build then yes muhamed_emad[m]
<Begasus>
I've used it pretty much :)
<Begasus>
another anoying one is deprecated-warnings :P
<zard>
Do you mean the ArchitectureRules file in the Haiku build system?
<Begasus>
oh! didn't made me think about Haiku ;)
<muhamed_emad[m]>
Actually, This is opposite to what I am doing XD. I am working on removing the comments in ArchitectureRules file and resolving the error warnings
* zard
takes a look at the ArchitectureRules file
<Begasus>
muhamed_emad[m], then fix the error ;)
<muhamed_emad[m]>
Begasus: That's what I am doing. I am just asking what's is the best way to XD.
* zard
can't find the file
<zard>
Where is it?
tuaris has joined #haiku
<muhamed_emad[m]>
build/jam/
<zard>
k, found it
<zard>
Ok, I see what you're trying to do. Uncomment those EnableWerror's
<Begasus>
somewhere in line 127?
<zard>
Looks to me like line 677, for example
<muhamed_emad[m]>
zard: yes
<Begasus>
-Wno-unused-function ?
<zard>
Seems to me to be a tricky problem. Someone might still want the function so deleting the unused one would not be ideal
<zard>
Commenting it out doesn't seem ideal either, nor does -Wno-unused-function... Seems easiest to keep things the way they are
<Begasus>
it wouldn't zard, just thinking out loud
HaikuUser has joined #haiku
HaikuUser has quit []
<Begasus>
yep, updated/build finished here without errors in about 15minutes (deleted *objects* first)
<zard>
Perhaps somebody more experienced with that region of code knows better?
<muhamed_emad[m]>
zard: this is actually an issue in the bug tracker so I need to make it done
<nephele>
No, that it's light there is a problem with the website
wintp has quit [Ping timeout: 480 seconds]
<humdinger>
Gets even nice if you zoom in with ALT+mousewheel
<nephele>
Webkit had some wierd codepath for overlay scrollbars that made those dark instead of light, but that was a bug ;) and pulkomany noticed that
<nephele>
humdinger: I'm talking about the damn colors! If you compare it to StyledEdit you will notice the background color is different
<nephele>
on dev.haiku-os.org for example
<nephele>
... which causes the contrast too bee too low in webpositive for me to tell where the thumb is
<humdinger>
now that you say it, I see it too.
<humdinger>
guess it's worse with a dark theme
x10z has joined #haiku
<nephele>
doesn't help that many websites do a shit job at supporting the dark theme and never declare they support rendering dark controls, leading to light buttons and scrollbars
<nephele>
looked at the css of the irc log. not sure wtf it's doing. probably javascript after the fact.
<nephele>
yeah, if i reload the page it flashes white... with apropriate colors. before turning dark
<nekobot>
[haiku/haiku] 1701b7b537e2 - usb_webcam/uvc: fix 64 bit build
<humdinger>
welcome to the world wide web of your seizure dreams
wintp has joined #haiku
<nephele>
yeah. I don't really understand it. Making a dark theme with css is straightforward and simple
<nephele>
why do so many websites then employ half assed javascript implementations that only partially work .-.
<OscarL>
Gerrit also blinds me with a brief white background before dark theme kicks in (not talking about Web+ here, can't remember if it does that there too).
<nephele>
it does, the implementation there is also kinda half done
hightower4 has joined #haiku
<nephele>
hmm, opening a new tab also flashes white very briefly
<nephele>
thought that was fixed (by me) guess there is a second issue
<nephele>
I don't like that all our websites use different schemes. especially discourse looks pretty bad. I'll fix that eventually
<nephele>
but one website at a time... .)
* OscarL
steals humdinger's trout and slaps nephele back with it: "Chop, chop, lazy folk!"
andreaa72 has quit [Remote host closed the connection]
<nephele>
Pfft. this is getting too meta. nighty night
nephele has quit [Quit: Vision[]: i've been blurred!]
<nekobot>
[haiku/haiku] e523bfeb06f4 - NumberFormat: add floating-point precision support
* humdinger
waves
humdinger has quit [Quit: Vision[]: Oi with the poodles already!!]
zard has quit [Quit: leaving]
<OscarL>
quitters!
hightower3 has quit [Ping timeout: 480 seconds]
wintp has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
CalistoMathias has joined #haiku
<CalistoMathias>
Hey so i tried compiling the haiku source code on my haiku setup
<CalistoMathias>
but it pretty much failed
<CalistoMathias>
like it first asked me to run the ./configure command which I did
<CalistoMathias>
it did start to compile and everything was going fine
<CalistoMathias>
but then the compilation failed by giving a fatal error of <zstd.h>: no such file or directory
<CalistoMathias>
what should I do?
wintp has quit [Ping timeout: 480 seconds]
mmu_man has joined #haiku
<OscarL>
CalistoMathias: that's easy to fix... from memory:
<CalistoMathias>
are there any packages apart from zstd_devel that need to be installed in order for the compilation to go ahead
<OscarL>
`pkgman install zstd_devel`
<CalistoMathias>
yup i just did that
<CalistoMathias>
found it on some old issue from 2 years back
<CalistoMathias>
in general how long does it take to compile the OS?
<OscarL>
not sure why it sometimes still pop ups, I thought jessicah had fixed that zstd issue already :-/
gouchi has joined #haiku
gouchi has quit [Remote host closed the connection]
<OscarL>
CalistoMathias: depends on cpu specs, but it doesn't takes THAT long, even on my old Phenom II X4.
<CalistoMathias>
cool
<CalistoMathias>
and is it like only the first time for compiling takes a while longer?
<OscarL>
don't recall my exact times, but I would say... less than an hour for me, IIRC.
<CalistoMathias>
or is it like everytime it compiles everything from scratch?
<OscarL>
Best to use an example here...
<CalistoMathias>
okay then I have a question... for now im finally starting to play around with the Media Player Settings code
<CalistoMathias>
so everytime ill need to compile
<CalistoMathias>
with jam -q right?
<CalistoMathias>
so like there is no other way for me to just see the changes that I make in the media player application directly?
<OscarL>
(I'm a slow writter)
<CalistoMathias>
the compilation crashed again :(
<CalistoMathias>
it gave a lot of undefined references
<CalistoMathias>
to things like _divdi3
<CalistoMathias>
and _moddi3
<CalistoMathias>
is there something I should do :(
<OscarL>
one question at a time, my dude... I type slow.
<CalistoMathias>
yah yah np take your time :)
<OscarL>
you should be able to do `jam -q -jN MediaPlayer` (with N the number of cores you want to use)
<CalistoMathias>
ohhhhh
<CalistoMathias>
okay thats cool
<OscarL>
that should compile MediaPlayer, and *all* the libraries it links to.
<OscarL>
first time you try that... it will have to build A LOT of stuff.
wintp has joined #haiku
<CalistoMathias>
oh okay thats so much better i guess... i thought I would have to wait for the entire compilation every single time I need a change xD
CalistoMathias has quit [Quit: Vision[]: i've been blurred!]
<OscarL>
libbe.so, libtracker.so, libroot.so, etc, etc, etc.
CalistoMathias has joined #haiku
<OscarL>
Depending on the complexity of that your changing...
<OscarL>
just testing the newly created binary might be enough...
<CalistoMathias>
oh okay
<CalistoMathias>
so basically the next time I compile the source code... i can just do it for the media player and run that specific executable... that helps a ton :)
<OscarL>
or you could need to also test those libraries I've mentioned.... or just go ahead, and build your own "haiku.hpkg" file, and install that
<OscarL>
(kind of an "update" from your locally build changes)
<CalistoMathias>
so it like updates the current media player or something like that?
<CalistoMathias>
(in the case that I run this for the media player)
<OscarL>
jam will only re-compile things outside of what you're working on, if, say, some header file changed.
<OscarL>
as in... some haiku commit changes some "header/os/whaterver.h"..., if you update your repo to a commit that contains that change....
<OscarL>
you'll see jam rebuild all the things that depend on that header
<CalistoMathias>
ohhhh okay
<OscarL>
jam only builds stuff.
<OscarL>
leaves things under the "generated" directory.
<CalistoMathias>
so whatever header file / code that I edit... jam will rebuild all the things that depend on that file and keep it under the gneerated directory.. and then I will have to go and run the executable that it generates from there?
hightower3 has joined #haiku
<OscarL>
under "generated/[...]/release/", it will follow the same directory structure as under src/
BrunoSpr has joined #haiku
<OscarL>
yes.
<CalistoMathias>
cool that makes sense.... ill probably keep this log handy when I get to compiling the changes that I make for media player :D
<CalistoMathias>
what about that undefined reference thign?
<CalistoMathias>
to __moddi3 and __divdi3, etc.
wintp has quit [Ping timeout: 480 seconds]
<CalistoMathias>
for context, I was trying to build the entire source code of Haiku atleast once to get the hang of this jam thing and everything... so i installed the zstd_devel library through pkgman but I have no idea what to do for this error :(
<waddlesplash>
you don't need to build everything
<waddlesplash>
just build MediaPlayer if you're working on that
<CalistoMathias>
oh okay ill do that instead then
BrunoSpr has quit []
<CalistoMathias>
btw for an i7-13650HX how many cores would you suggest I put for the compilation? considering that i am on bare metal ?
<OscarL>
all of them? :-)
<CalistoMathias>
okay xD
BrunoSpr has joined #haiku
<OscarL>
CalistoMathias: I never have any issues with compiliing stuff giving it all my cores.
<OscarL>
(issues as in... being able to still use my PC while compiliing, I mean)
itaipu has joined #haiku
<OscarL>
gcc priority is low enough as to not be an issue with user input.
bitigchi has quit [Ping timeout: 480 seconds]
<OscarL>
(unlike on some linuxes I've tried, cough, cough)
<BrunoSpr>
hello OscarL
<BrunoSpr>
hello all
<OscarL>
Hi there BrunoSpr!
hightower4 has quit [Ping timeout: 480 seconds]
mr_lou has quit [Quit: Leaving]
HaikuUser has joined #haiku
CalistoMathias has quit [Read error: Connection reset by peer]
<nekobot>
[haiku/haiku] c9d1e840ac26 - Terminal: try to fix SHIFT+{Arrow,Home,End} keys handling.
<OscarL>
YAHOO!
wintp has quit [Ping timeout: 480 seconds]
bbjimmy has joined #haiku
wintp has joined #haiku
janjo has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
bitigchi has joined #haiku
bitigchi has quit []
janjo has quit [Ping timeout: 480 seconds]
wintp has joined #haiku
BrunoSpr has quit [Quit: Vision[]: Ich wurde gewaschen!]
BrunoSpr has joined #haiku
<BrunoSpr>
oh the USB 2.0 camera is recognized in listusb! Great!
wintp has quit [Ping timeout: 480 seconds]
CalistoMathias has joined #haiku
tqh has quit [Quit: Leaving]
<x512[m]>
BrunoSpr: libuvc example may work with camera.
Atomozero has joined #haiku
Atomozero has quit []
wintp has joined #haiku
janjo has joined #haiku
Atomozero has joined #haiku
CalistoMathias has quit [Quit: Vision[]: i've been blurred!]
CalistoMathias has joined #haiku
<CalistoMathias>
Heyyy... could someone like tell me what does the SetExplicitMaxSize() function do for a BGroupLayout?... I'm not understanding its direct implications :(
v_harkonnen has quit [Remote host closed the connection]
wintp has quit [Ping timeout: 480 seconds]
janjo has quit [Remote host closed the connection]
<OscarL>
Sounds like it is setting the upper bound on how big the whole thing can get, no?
<CalistoMathias>
yah that was what I was thinking as well
<OscarL>
As in: "listen child-views... you can't grow past *this* big, ok?"
<CalistoMathias>
so what happens if something wants to get bigger than that? like a BStringLabel?
<CalistoMathias>
will it get rendered technically outside the confines of the BGroupLayout but like not affect the sizes of the other items?
<CalistoMathias>
oh okay ill just go through that
<CalistoMathias>
btw to what degree is hardcoding the values allowed?
<CalistoMathias>
because I fixed the issue that corresponds to the ticket but I had to play around with the width of the strut (more like trial and error)
<OscarL>
I'd say... see what other "src/apps/" do, and follow that :-)
<OscarL>
unless said apps are ALSO broken.
wintp has joined #haiku
<CalistoMathias>
oh okay Ill try finding something that does something similar
<CalistoMathias>
because this settings window is pretty much unsizeable
<OscarL>
welcome to self-learning!
<CalistoMathias>
so I don't think there would be any issue with hardcoding as such too i guess since anyways it doesn't have to be like responsive or whatever... any heads up btw? as to where I can find similar kinds of interfaces like the Media Player Settings Window?
<CalistoMathias>
yup definitely gotta self-learn a lot for this one xD
<OscarL>
(seriously... sorry if I'm not much of real help)
<CalistoMathias>
nah nah you have have been so very helpful
<CalistoMathias>
I wouldn't have even known how to start if not for you :)
<CalistoMathias>
and @nephele, @PulkoMandy, etc.
v_harkonnen has joined #haiku
wintp has quit [Ping timeout: 480 seconds]
<BrunoSpr>
x512[m], lubuvc ah, where to find it?
<BrunoSpr>
libuvc ah ok got it
<OscarL>
Mmm, that MediaPlayer Settings window surely is annoyingly long. Not very nice on a 1024x600 screen :-D
<CalistoMathias>
yah its pretty long
<CalistoMathias>
but its also unresizable
<OscarL>
I would rather it used more horizontal space, but that's just my opinion.
<CalistoMathias>
Honestly im kind of scared to make a commit and a push
<CalistoMathias>
lol
<OscarL>
CalistoMathias: oh, I know the feeling all too well :-D
<CalistoMathias>
like on my personal projects I've never had to use too many features of git
<CalistoMathias>
so I think I should probably learn the details of git
<CalistoMathias>
before committing it
<CalistoMathias>
tho the ticket is fixed
<OscarL>
I was REALLY nervous on at least my first 15/20 pushes to gerrit :-D
<CalistoMathias>
i got it aligned exactly as the required image
<CalistoMathias>
Like i suggested before, I ended up replacing the GridLayout with a GroupLayout instead anad it was relatively straightforward after that
<OscarL>
coolio!
<CalistoMathias>
also for Haiku source code, it is preferred to rebase?
<CalistoMathias>
while doing git pull?
<OscarL>
it is what I do.
<CalistoMathias>
so if I want to write in a commit right now... I should first pull along with the rebase option enabled
<CalistoMathias>
followed byy the usual commit
<CalistoMathias>
and push
<OscarL>
I have git's config set as "pull.rebase=true".
<CalistoMathias>
oh okay like the thing that was said in the page on gerrit
<CalistoMathias>
on the haiku website
<CalistoMathias>
for right now I won't need to worry about the warning right?
<CalistoMathias>
on Gerrit for the shared branches thing ?
<CalistoMathias>
yup i was reading the same thing
<OscarL>
Beware that you might need to do "chmod +x" after installing the commit-msg hook.
<CalistoMathias>
then got second thoughts after reading that warning xD
<CalistoMathias>
oh okay wait lemme just do that and come back
<CalistoMathias>
clear
<OscarL>
guide can be a bit confusing (not sure if due to my lack of skills/experience, or my self-taught "english" :-D)
<CalistoMathias>
for me its my first time doing Open Source so everything is confusing as it is xD
coolcoder613_32 has joined #haiku
<CalistoMathias>
yup you were right
<CalistoMathias>
did the chmod +x on the commit-msg hook
<OscarL>
just make sure to "chmod +x .git/hooks/commit-msg" (assuming your current dir is the "haiku" clone.
<CalistoMathias>
yup just did that right now
<OscarL>
ah... see.. I type too slow :-D
<CalistoMathias>
xD
<CalistoMathias>
that is the only one thing that I do decently well xD
<OscarL>
not sure why that changed, it used to not be necessary (the chmod step, I mean)
<OscarL>
CalistoMathias: remember that you can work on a local branch (as to not worry too much for what's happening on master)... and then just push your changes from there.
<CalistoMathias>
yah i was thinking about doing that right now
<CalistoMathias>
idk seems like i need to get a much better hang about the git workflow
<OscarL>
having that commit-msg properly setup, working on your own branch, should take away most of the pitfalls.
<CalistoMathias>
do you have any really good web resources on learning the git workflow... the ones on youtube aren't generally comprehensive to the level that this requires :(
<CalistoMathias>
okay so i should probably just checkout to a new branch
<CalistoMathias>
and then do the same regular thing?
wintp has quit [Ping timeout: 480 seconds]
v_harkonnen has quit [Remote host closed the connection]
<OscarL>
yea, regular git stuff.
<CalistoMathias>
cool
<OscarL>
the "weird parts" for me was that "push to HEAD:refs/for/master" (just for being unfamiliar with it)
<OscarL>
and the process to update my local commits, in case some changes are made ON gerrit, (by reviewers, for example).
<CalistoMathias>
so just for confirmation (so as to not screw things up)
<CalistoMathias>
create branch -> commit -> rebase -> push (all while following the guide)
<CalistoMathias>
even im unfamiliar with that one
<CalistoMathias>
never seen it before xD
<OscarL>
I *think* it is because how gerrit keeps track of changesets... you do not push a branch, but particular commits.
<CalistoMathias>
oh okay
<OscarL>
sounds all greek to me but... even I managed to use it, so... can't be *that* bad :-D
<CalistoMathias>
so wait in this like for the branch to get merged with the main/master branch? what exactly is the process... is it the regular merge request?
<CalistoMathias>
i know these are really bad questions but I just want to be sure so that I don't mess up really bad xD
<OscarL>
As I see it: you don't "merge request", you "propose changesets"
<CalistoMathias>
oh okay
<OscarL>
those gets revied on Gerrit, they get merged or not.
<CalistoMathias>
oh okay
<CalistoMathias>
so that's after the review is done
<CalistoMathias>
and not to be done by me right?
<CalistoMathias>
like it doesn't have to be initiated from my side like on GitHub or something?
<OscarL>
you may have to iterate on your changes a few times before it gets merged.
<CalistoMathias>
cool
wintp has joined #haiku
<OscarL>
you'll see how it works when your first push ends...
<CalistoMathias>
so ill create a branch do the things and come back ...
<CalistoMathias>
yahhh
<OscarL>
git will output a message...
<CalistoMathias>
hopefully it doesn't screw up :(
<OscarL>
saying SUCESS... and giving you a link to the gerrit review for your changeset.
<CalistoMathias>
okay I should probably go and read a commit message format
<CalistoMathias>
have to write my first one xD
<CalistoMathias>
kind of excited lol
<OscarL>
indeed!
<CalistoMathias>
Do I need too add in information about Author, AuthorDate, etc. by myself in the commit message file? or is it automatically done by commit-msg or something?
<OscarL>
"MediaPlayer: fixed this and that." <<< first line of commit, then on body, explain why, add link to ticket number, as in "Fixes #10475".
<OscarL>
No, all those are filled in automatically. Just make sure your git username/email are properly setup.
<OscarL>
First line is "summary", then add an empty line, and then more text if you need to (that's the "body").
<OscarL>
the commit-msg hook should add a "Change-Id:" line at the bottom (for Gerrit tracking purposes)
<OscarL>
"git commit --amend" always comes in handy :-D
wintp has quit [Ping timeout: 480 seconds]
<CalistoMathias>
okay so i created the branch by the name of MediaPlayerSettings added a commit
<OscarL>
Try to keep line width on commit message to < 80 colums (some even suggest 72)
<CalistoMathias>
now I just need to rebase and push it right?
<OscarL>
sounds about right to me.
<OscarL>
(using branches makes it easier for me to not screw things up, do clean up afterwards when things get merged)
<CalistoMathias>
so on the branch i ran the rebase
<CalistoMathias>
but it gave me that "There is no tracking information for the current bracnh blah blah"
CalistoMathias has quit [Quit: Vision[]: i've been blurred!]
<OscarL>
they are not strictly necessary, in fact, I didn't used them for most of my (small) contributions, but that's just because I was really confused by the whole gerrit thing :-P