ChanServ changed the topic of #haiku to: Open-source operating system that specifically targets personal computing. | https://haiku-os.org | Nightlies: https://download.haiku-os.org | Bugtracker: https://dev.haiku-os.org | SCM: https://git.haiku-os.org/ | Logs: https://oftc.irclog.whitequark.org/haiku | Matrix: #haiku:matrix.org | XMPP: #haiku%irc.oftc.net@irc.jabberfr.org
Maturi0n has joined #haiku
<andreasdr[m]> Hi there
<coolcoder613> Hi
Maturi0n_ has quit [Ping timeout: 480 seconds]
mmu_man has quit [Ping timeout: 480 seconds]
<andreasdr[m]> :)
<erysdren> hello
coolcoder613 has quit [Quit: Vision[]: i've been blurred!]
razetime has joined #haiku
dorje has quit [Quit: Vision[]: i've been blurred!]
vdamewood has quit [Quit: Life beckons.]
* roracle has returned
<roracle> i'm home now
<erysdren> hello hello!
<roracle> and frustrated. this is the most unprofessional play i've ever done and we open saturday. no one has their lines, we've rehearsed so few times, and people are paying 35 bucks a ticket. i feel embarrassed to be part of this production, yet the show must go on, as they say
<erysdren> indeed so
<roracle> the director and assistant director had to take parts in the play because we didn't get enough people auditioning, so they're too busy learning lins to actually direct lol
<roracle> lines*
<roracle> anyways, i'm gonna keep looking at this programming tutorial stuff
<erysdren> ah yeah, that sounds fairly bad
coolcoder613 has joined #haiku
<coolcoder613> Hello
<roracle> heyo
<roracle> so every program has to have "main" as the first function?
<coolcoder613> It doesnt have to be defined first, but it is what runs first
<roracle> gotcha
<roracle> how do i select things in bepdf
<roracle> to copy/paste that is?
<coolcoder613> PDF's are more like images than text
<coolcoder613> On mac, text selection in pdf's uses OCR
<roracle> okay, so uh, this part I must get a better understanding of:
<roracle> <outdata> <functionname>(indata)
<roracle> what is outdata and indata?
<roracle> it says what it does, but i don't know what it MEANS to be more accurate
<roracle> i guess "void" means "nothing going on here" but will there be an example to show what it can do?
<roracle> or would it just be: <outdata> main()
<roracle> where <outdata> is like "int" in the examples so far
<coolcoder613> <outdata> means the return type, for main, it is either void or int
<roracle> which i'm sure they'll explain what "void" means?
<coolcoder613> viod means nothin basically
<coolcoder613> void means this function doesnt return anything
<coolcoder613> erysdren, can you explain void * ?
<erysdren> "void *" means that it returns a generic pointer with no type assigned
<erysdren> 2, 4, or 8 bytes wide depending on your CPU
<erysdren> and for the record, "type" is purely a thing for the language, the CPU opcodes don't know what types are
<roracle> oh okay...so a function isn't an interger? because i have a function as int TwoPlusTwo() and have it return 2 + 2; then main have it printf TwoPlusTwo;
<roracle> which it says is wrong, so idk what's going on there
<roracle> can't a return of a function be called by another function?
<coolcoder613> you need parens when you call a function, so: printf(TwoPlusTwo());
<roracle> twoandtwo.cpp:6:17: error: 'TwoPlusTwo' was not declared in this scope 6 | printf (TwoPlusTwo());
<coolcoder613> install the uploadit package from haikudepot, and use it to upload your code so i can see
<erysdren> ah
<erysdren> is twoplustwo declared before main()?
<roracle> no...
<erysdren> that's required
<roracle> oooh
<roracle> lemme try
<roracle> still didn't work :(
<roracle> like i said it's two separate functions
<roracle> so i'm not running it all in one function
<coolcoder613> try uploading your code so we can see, or pasting it on https://bpa.st
<roracle> i keep changing it to see if i can grasp these concepts and nothing seems to stick. gimme a few and i'll get it back to two functions
<coolcoder613> this is C++?
<coolcoder613> shouldnt you be using cout?
<erysdren> it doesn't matter for this
<roracle> not according to this website tutorials: https://www.haiku-os.org/development/learning_to_program_with_haiku
<erysdren> the issue is that you're using printf wrong
<erysdren> printf("2 plus 2 equals: %d\n", TwoPlusTwo());
<erysdren> it's formatted print. it can't print numbers directly
<erysdren> you need to add them to a format string
<erysdren> %d == signed integer type
<erysdren> the first argument to printf is a **string** defining the formatting, and the subsequent arguments are further values (integers, pointers, strings, floats) to place into the format string
<coolcoder613> https://0x0.st/Hy-N.cpp :)
<erysdren> yes, naturally, C++ will make it easier
<erysdren> but with printf, you can't do it directly like that
<roracle> okay you C, this is the problem: there's no consistancy between the ways of doing these things
<coolcoder613> I know a lot of C++ for someone who does not know C++ ;)
<roracle> tutorials ALWAYS use printf, but then suddenly it's cout and no one ever explains why
<roracle> is C++ /really/ the best language to use?
<roracle> it seems very confusing and wild
<erysdren> i prefer C.
<coolcoder613> I once read my grandfather's C++ book: Teach Yourself C++ fifth edition (Pre-Standard C++)
<erysdren> i personally hate std::cout/std::cerr and using the "<<" operator for I/O streams
<erysdren> i think its annoying
<roracle> omg my father had that one, the big white book?
<coolcoder613> I think it was published in 1998
<coolcoder613> wasnt it blue?
<coolcoder613> very thick?
<roracle> maybe, i have a box of his books after he died, i'll have to look through them, hold on. yes, very thick
<erysdren> might be thinking of this
<coolcoder613> It came with an IDE for windows 95 called Quincy 97?
<coolcoder613> the examples had 'using namespace std'?
<coolcoder613> there was a calculator example, recursive?
<roracle> Sam's Teach Yourself C++
<roracle> i cna't find it but i know it's somewhere
<roracle> looking it up on ddg, i guess it was a blue book
<roracle> i think it was in a hard casing, with a CD packaged in with it with the GNU cpp compiler
<roracle> might have been borland
<roracle> all i'm saying is that i could look up two tutorials online and they'd say different things. that's NOT a great look
<roracle> if there are two ways of doing one thing in the same language, it makes it confusing to noobs, which is probably why i never could get the hang of this
<erysdren> C++ sucks for that, sorry to say
<coolcoder613> Yes, Quincy 97 used GNU cpp
<erysdren> C++ has a million ways to do anything
<roracle> :(
<roracle> i want ONE way so i'm not confused lol
<coolcoder613> with the printf/cout thing, the C++ way is cout, the C way is printf
<roracle> so i was VERY good at algebra in school. so good i could do it in my head, but i failed the class because "you didn't show your work" so no matter how many answers i got right, they were all marked as wrong
<coolcoder613> The trouble is that C++ is backwards comatible with C...
<coolcoder613> *compatible
<roracle> that was 8th grade. they put me in a two year algebra course in high school as a result. instead of playing to my strengths, they hobbled me
<roracle> i was unable to take the two year computer programming class as a result, i would only get one year in, my senior year. because i'd have to take two years of algebra and a year of geometry, giving me one year of computer science
<erysdren> that's school for you
<erysdren> america i assume?
<roracle> i was so depressed about that through ALL of high school, gained a lot of weight, too.
<roracle> yes, america
<erysdren> yeah that's about my highschool experience as well
<erysdren> stupid as hell
<roracle> i dropped out the first day of my senior year because i was so let down by the entire experience
<erysdren> i dropped out of college after 1 semester
<erysdren> shit sucked
<roracle> i tried college. everything was how to use power point, which i already knew, followed by "here's why every problem in the world is america's fault"
<roracle> like, thanks but no thanks
<roracle> i know we have our problems here, but it's not like the world hasn't pointed their guns at us and said "stay in your lane PLEASE" because practically everyone in the world confiscated their guns lol
<roracle> so it's like, looks like it's everone's problems now haha
<roracle> but anyways
<erysdren> well, i guess we differ there
<roracle> i want an honest computer science course that won't confuse me
<roracle> 1+1 is always 2
<roracle> not some crazy other way of getting 2 from 1+1
<coolcoder613> http://0x0.st/Hy-b.md
<roracle> i mean, i can work in the bounds of software like GDevelop and the likes
<roracle> and hey, if Java is the "runs everything everywhere" language, why isn't it ever recommended by programmers?
<erysdren> because it's more like "compile once, debug everywhere"
<roracle> o
<erysdren> fun fact, you could get two in C like this
<erysdren> int two = 1 << 1;
<erysdren> if my knowledge of bitshifting is correct
<erysdren> int three = 1 | 1 << 3
<erysdren> er
<erysdren> int three = 1 | 1 << 2
<erysdren> something like that
<erysdren> im tired sorry
<Guest4434> roracle, because now "everything everywhere" is just linux servers :P
<coolcoder613> look at this: https://0x0.st/Hy-c.html
Guest4434 is now known as moparisthebest
<erysdren> right now i'm trying to write x86 assembly for the 1981 IBM PC
<erysdren> its not fun
moparisthebest is now known as Guest4634
<erysdren> well, it is kinda fun or else i wouldn't be doing it
<roracle> lol
<coolcoder613> What are you trying to write?
<erysdren> 16-bit x86 assembly implementation of farmemset()
<erysdren> memset, but on a far pointer
<coolcoder613> and memset is?
<erysdren> memset takes three arguments
<roracle> remember when Sun was working on that "Project Looking Glass" operating system, with windows you could flip around and write notes on the back? shove windows to the side (like we see in the new macOS and iOS)?
Guest4634 is now known as moparisthebest
<erysdren> memset takes 3 arguments: a pointer, an 8-bit integer value, and an unsigned integer defining the number of bytes
<erysdren> it copies the 8-bit integer value to the pointer value and then repeats it over the whole number of bytes
<roracle> moparisthebest linux servers are the only ones i know of :P
<erysdren> basically you can take a block of memory and set all the bytes to the same value
* coolcoder613 understands now
<erysdren> it needs to be fast. this function is called frequently, and possibly on large chunks of memory
<erysdren> now, far pointers are more or less 16-bit x86 specific
<erysdren> and doing a memset for that is more complex
<erysdren> you need to set the segment offset
<erysdren> on the appropriate CPU register
<erysdren> i just can't figure out how, or which register
* coolcoder613 once learned a little Risc-V ASM, the hardest part is rembering the acronyms
* coolcoder613 wishes the instruction names were longer
roracle has quit [Quit: Vision[]: i've been blurred!]
AlaskanEmily has joined #haiku
<mj0908[m]> Hii everyone, I am Mohit Jaiswal, 1st Year Student
<mj0908[m]> Please guide me, i want to be a part of you guys.
<mj0908[m]> Well i am new to this, but i would like to learn and contribution will be a fun way, but i know little to nothing, i only know some portion of C, and confused what else to learn
<erysdren> learning some C++ is a good place to start, and maybe the geneal haiku programming handbook
tombhadAC has quit [Quit: Vision[]: i've been blurred!]
<erysdren> more reading material: https://www.haiku-os.org/docs/api/
walkingdisaster has joined #haiku
<mj0908[m]> Ok Got it i will connect soon after being familiar with c++
<coolcoder613> mj0908[m]: 1st Year student?
<mj0908[m]> 1st Year BTech Student
<coolcoder613> Do you know any other languages, besides C?
razetime has quit [Ping timeout: 480 seconds]
<mj0908[m]> No
<mj0908[m]> I don't even know C completely, i have started it learning past 1 months, with start of my degree
razetime has joined #haiku
mr_lou has joined #haiku
AlaskanEmily has quit [Remote host closed the connection]
coolcoder613 has quit [Quit: Vision[]: i've been blurred!]
walkingdisaster has quit [Quit: Vision[]: i've been blurred!]
razetime has quit [Remote host closed the connection]
razetime has joined #haiku
freddietilley has joined #haiku
misthalu has joined #haiku
mr_lou has quit [Ping timeout: 480 seconds]
freakazoid332 has joined #haiku
coolcoder613 has joined #haiku
misthablu has joined #haiku
frkzoid has quit [Ping timeout: 480 seconds]
Begasus has joined #haiku
<Begasus> g'morning peeps
<coolcoder613> Good afternoon Begasus
misthalu has quit [Ping timeout: 480 seconds]
<Begasus> Hi there coolcoder613
tuaris has quit [Read error: Connection reset by peer]
HaikuUser has joined #haiku
<HaikuUser> hello
<HaikuUser> how to devel a gui program ?
<coolcoder613> use /nick username to change your name from HaikuUser
<HaikuUser> nick kasagawa
HaikuUser is now known as kasagawa
<kasagawa> hello
<coolcoder613> Hi
<coolcoder613> What programming languages do you know?
<kasagawa> today i first time use haiku
<kasagawa> c
<coolcoder613> Just C?
<kasagawa> but haiku un support gtk maybe
<kasagawa> yes just c
<kasagawa> and a lot of ruby
<coolcoder613> For *native* GUI, only C++, Python, and Yab are supported.
<coolcoder613> But there are a lot of ported GUI toolkits.
walkingdisaster has joined #haiku
<kasagawa> how can i use python to build a simple GUI window?
<coolcoder613> install the Haiku-PyAPI_python310 package from haikudepot
<coolcoder613> (I actually made the bindings for Python)
<kasagawa> wow you are the author
<kasagawa>
<kasagawa> pkgman install haiku-pyapi ??
<coolcoder613> Why not open the HaikuDepot app?
<coolcoder613> from command-line: pkgman install haiku_pyapi_python310
<kasagawa> ok and i find it on github https://github.com/coolcoder613eb/Haiku-PyAPI
<coolcoder613> Is it working?
kasagawa has quit [Remote host closed the connection]
HaikuUser has joined #haiku
<coolcoder613> You can make a default username
<coolcoder613> In vision, you go to Server ~> Setup ~> Network Setup
<coolcoder613> and change the personal details section
HaikuUser has quit [Remote host closed the connection]
walkingdisaster has quit [Quit: Vision[]: i've been blurred!]
razetime has quit [Ping timeout: 480 seconds]
misthablu has quit [Quit: Leaving]
HaikuUser has joined #haiku
<coolcoder613> Hello HaikuUser
HaikuUser has quit [Remote host closed the connection]
razetime has joined #haiku
HaikuUser has joined #haiku
<HaikuUser> hello
HaikuUser is now known as kasagawa
PulkoMandy has joined #haiku
<botifico> [haikuports/haikuports] humdingerb pushed 1 commit to master [+1/-1/±0] https://github.com/haikuports/haikuports/compare/6d5732fb61c3...d5f884604eab
<botifico> [haikuports/haikuports] humdingerb d5f8846 - PecoRename: update to v2.1
<coolcoder613> Hi kasagawa
<kasagawa> it is not work
<coolcoder613> What doesnt work?
<kasagawa> i typeing >python3.9 test.py
<coolcoder613> And...
<kasagawa> No module named 'Be'
<coolcoder613> You have to install it. why arent you using 3.10?
<kasagawa> the command line is ?
<coolcoder613> python3 test.py
<coolcoder613> if you installed the haiku_pyapi_python310 package
<coolcoder613> The default python now is python3.10
<kasagawa> it is works
<kasagawa> a small window , terminal show Hello World! when i click the button
<coolcoder613> Have a look at the code, decide what you want to build and build it!
<nekobot> [haiku/haiku] pulkomandy pushed 1 commit to master [hrev57347] - https://git.haiku-os.org/haiku/log/?qt=range&q=538f9a182c35+%5Ebb2808d6156e
<nekobot> [haiku/haiku] 538f9a182c35 - MIDI kit: remove obsolete comment
<coolcoder613> The API is the same as the C++ API, so you can use the Be Book, and the Haiku Book for reference.
<kasagawa> ok , thanks. ^_^
<kasagawa> hello is anyone know how install the usb device driver CH340 for haiku?
<PulkoMandy> There is no driver for ch340 yet, you have to wait for someone to write one, or write it yourself
kasagawa has quit [Remote host closed the connection]
<nekobot> [haiku/haiku] pulkomandy pushed 1 commit to master [hrev57348] - https://git.haiku-os.org/haiku/log/?qt=range&q=3c3462995f23+%5E538f9a182c35
<nekobot> [haiku/haiku] 3c3462995f23 - AbstractSpinner: fix calling base class virtual methods (untested)
<nekobot> [haiku/haiku] pulkomandy pushed 1 commit to master [hrev57349] - https://git.haiku-os.org/haiku/log/?qt=range&q=6de9c42da685+%5E3c3462995f23
<nekobot> [haiku/haiku] 6de9c42da685 - BootManager: improved layouting
HaikuUser has joined #haiku
HaikuUser is now known as kasagawa
<coolcoder613> You can make a default username in vision, you go to Server ~> Setup ~> Network Setup
<coolcoder613> and change preferred nicks in personal details
<coolcoder613> instead of having to do /nick every time
kasagawa has quit []
kasagawa has joined #haiku
<kasagawa> good job
kasagawa has quit [Remote host closed the connection]
kasagawa has joined #haiku
<coolcoder613> Hi kasagawa, whats up?
andreaa72 has joined #haiku
<andreaa72> i am weird xD true ...
<andreaa72> also crazy xD
<andreaa72> coffee time ...
razetime has quit [Ping timeout: 480 seconds]
floof58 has quit [Ping timeout: 480 seconds]
<PulkoMandy> kasagawa: mh, I was wrong, there is a driver for CH340 since june 2022. So it should just worb
<PulkoMandy> work
<kasagawa> wow! nice . what's the URL ?
floof58 has joined #haiku
<coolcoder613> PulkoMandy means it should work 'out of the box'
mr_lou has joined #haiku
<PulkoMandy> yes, no driver install needed. Connect it and it should appear in /dev/ports/usb0 or something similar
<kasagawa> ok thanks
<kasagawa> and how can i install arduino 2.0 version ? the haikuDepot 's arduino is 1.6
<andreaa72> kasagawa : are you from Japan ?
<coolcoder613> If its not there, its probably not ported
* coolcoder613 wonders what CH340 is
walkingdisaster has joined #haiku
<andreaa72> coolcoder613 : CH4 is methane ;)
<kasagawa> yes i am my english is not good
<andreaa72> kasagawa : fine, and tell us an haiku !!! ;)
<coolcoder613> Not that, the one we have a USB driver for (do we have a driver for methane? ;))
<andreaa72> xD
<coolcoder613> (where would it be in /dev? /dev/element?)
<andreaa72> is B2IA a bot with files to download ?
<andreaa72> coolcoder613 xD a gas driver ...
* phschafft somewhere has a driver for CH4, but it's no good, only hot air geting out the other side. ;)
razetime has joined #haiku
<Habbie> serial devices appear in /dev/ports
<andreaa72> CH4 is beautiful becouse become co2 + H2O, so no pollution and it need just a tree to return air o2
<andreaa72> O2 + wood ...
<phschafft> as long as you fully burn it.
<andreaa72> yes
<phschafft> which can be the tricky part.
<phschafft> but if you can manage that, you're right. and I'm fully with you there.
<kasagawa> how can i typing japanese ? where is the input method?
<andreaa72> utf8 ?
<coolcoder613> BeCJK in Depot?
<coolcoder613> An input method for Chinese, Japanes and Korean
<andreaa72> we need utf16 so all chars of the world ... ;)
<andreaa72> utf 32 ...
<coolcoder613> UTF-8, UTF-16, and UTF-32 support the same amount of characters
<andreaa72> ah, are there already ?
<coolcoder613> in UTF-32, all characters are 32-bit.
<andreaa72> np
<coolcoder613> in UTF-16, some characters are 16-bit, and some are 32-bit.
<kasagawa> i find it mozc an input method for japanese
<coolcoder613> in UTF-8, some characters are 8-bit(ASCII), some are 16-bit, and some are 32-bit
<kasagawa> i love emoji art
<andreaa72> utf-8 is compresses so i ask utf-32 to be expanded ... ;)
<coolcoder613> Some characters(The ASCII set) take only 8(well really 7) bits to represent
<coolcoder613> some take 16
<Habbie> coolcoder613, in utf-8, some characters are 24 bits, don't forget
<coolcoder613> Habbie: My understanding does not really reach that level
<andreaa72> with my app 4 beos you can change keyboard's keys with an utf-8 char of your choose ...
<andreaa72> also japanese ...
<andreaa72> cu ...
andreaa72 has left #haiku [#haiku]
<kasagawa>
<kasagawa> <u+0013> what is this?
<kasagawa> i write some code use styleEdit and run gcc , it is show error: <U+0013>
<coolcoder613> try cat <filename>
<coolcoder613> And you shouldnt use StyledEdit, you should use Pe
<Habbie> that's a garbage character
<coolcoder613> copy paste the code from stylededit to pe
<coolcoder613> Habbie: probably formatting from stylededit
<kasagawa> styleEdit setting unselect wrapline it is works
<kasagawa> ok the Pe is nice than StyledEdit
<coolcoder613> Pe is for code, stylededit is not
andreaa72 has joined #haiku
andreaa72 has left #haiku [#haiku]
kasagawa has quit [Remote host closed the connection]
vdamewood has joined #haiku
andreaa72 has joined #haiku
<andreaa72> i need to rebuild my apps under haiku : is there a tutorial ?
<coolcoder613> What are they written in
<Begasus> pascal? ;)
<Begasus> maybe try Lazarus :P
<Habbie> coolcoder613, yeah
nephele has joined #haiku
<andreaa72> no, i apologize, i am here ...
<andreaa72> they are, my works, in lavori.zip i gave you ...
<andreaa72> in c+
<andreaa72> in c++
<andreaa72> help me, please
<coolcoder613> what .zip?
<coolcoder613> where?
<Begasus> ask the big G? ;)
<coolcoder613> maybe upload to your website?
<Begasus> gcc -o hello.cpp hello
<Begasus> iirc ;)
<andreaa72> i have deleted them in a crisis ...
<andreaa72> i have deleted all
<coolcoder613> Begasus: g++ not gcc
<andreaa72> i am weird ...
<Begasus> my bad coolcoder613 :)
<andreaa72> cu later
andreaa72 has left #haiku [#haiku]
<nephele> ugh, nheko pulls in noto_emoji and noto_color_emoji for no reason :(
<nephele> ... and dbus
andreaa72 has joined #haiku
<Begasus> I haven't touched it :)
<nephele> Can't even check the commit on github because it now decided to rate limit me too
mmu_man has joined #haiku
<nephele> Could we finally move off that horrible platform .-.
<phschafft> nephele++
<coolcoder613> Which horrible platform?
<Begasus> github coolcoder613
razetime has quit [Remote host closed the connection]
<erysdren> github sucks
razetime has joined #haiku
<Begasus> err .. no diff in that link :/
<nephele> phschafft: is that a new programming language? ;D
<coolcoder613> Github is not so bad, besides for the 2fa
andreaa72 has left #haiku [#haiku]
walkingdisaster has quit [Quit: Vision[]: i've been blurred!]
<nephele> it's fine, aside from the horrible workflow, backwards use of git, forcing of a web interface for nonsensical tasks, unusably slow interface, forcing me to use keys i have to save on my hdd so they can get stolen, rate limiting me for no reason, lock-in, etc.
<nephele> The last time I tried to review nheko's patchset i literally couldn't, and that wasn't even Haiku's fault, it doesn't run fine on iOS either in the webrowser
<coolcoder613> IOS Safari is today's IE, no?
<nephele> No
<nephele> I am
<nephele> *really* glad we still have webkit
<phschafft> nephele: ?
<nephele> Atleast it stops google a bit from going 100% insane, and gives us a webengine that still works nicely
<nephele> phschafft: "nephele++"
<phschafft> I like to keep google from being the one definition of the web. but I must stress that Safari is not a solution to anything.
<PulkoMandy> It's the best we have in haiku at the moment…
<phschafft> for most of my web related work it's like this: how much does it cost? - 1k for all but Safari. - How much for support in Safari? - 100k.
razetime has quit [Quit: Go back to your cringe 9 to 5. I'll be gaming.]
<phschafft> the problem is not the software, the problem is that Apple tries super hard to do vendor lockin. much more than all the other big players combined.
* coolcoder613 nods.
<nephele> We have the software, not the vendor lock in with webkit for webpositive
* coolcoder613 nods emphatically
<PulkoMandy> WebKit is open source and, as far as I can see, more open to contributions than the other engines
<erysdren> google sucks so bad
<phschafft> and I must stress that Apple is very much a company of selling, I haven't seen any technological improvement from them in like 20 years.
<nephele> PulkoMandy: regarding haikuwebkit, is there anything you currently need help with? (other than webkit2, is a bit outside my expertise i think)
<coolcoder613> Got to go now, g'night
<phschafft> and they hate all improvement as it would mean to invest or to give up a tiny bit of lockin.
<nephele> if not i'll just work a bit more on the platform gui drawing :)
coolcoder613 has quit [Quit: Vision[]: i've been blurred!]
<PulkoMandy> nephele: would be nice to fix the icons in gerrit which uses a font with ligatures we don't support
<nephele> phschafft: I've observed that apple is perfectly happy to do interopability with competitors as soon as their edge is gone, e.g with matter
<PulkoMandy> I think that's the main annoying thing for me at the moment
<nephele> I think madmax posted a script to fix this by replacing it with proper emoji? Otherwise I think ligatures would be primarily app_server work?
<nekobot> [haiku/haiku] pulkomandy pushed 2 commits to master [hrev57350] - https://git.haiku-os.org/haiku/log/?qt=range&q=51355272b3f7+%5E6de9c42da685
<nekobot> [haiku/haiku] 9858be4f63c2 - ffmpeg: remove usage of deprecated method avcodec_decode_audio4
<nekobot> [haiku/haiku] 51355272b3f7 - ArchitecturesRules: error on use of deprecated functions
<PulkoMandy> I think it needs changes both in app_server and webkit
<PulkoMandy> Webkit needs to send the string to app_server in one go, not character by character, and probably font metrics handling needs to be reviewed? Not completely sure
<PulkoMandy> Also, the scrollbars seem to randomly change colors even when websites don't ask for it. I know you made a patch to completely disable website scrollbar customization, but maybe it would be better to just fix that bug?
<PulkoMandy> And then there's video support. I guess someone should take a serious look at that
<nephele> Do you have an example of that? I've not observed any such bug, other than websites incorrectly supporting the dark-mode
<nephele> the patch was intended to make the scrrollbars respect the dark-mode, but as a side effect, they now support the dark mode :)
<PulkoMandy> On http://pulkomandy.tk I don't think I did anything special and the scrollbar is black
<nephele> on the right side?
<PulkoMandy> Yes, there's only one scrollbar :)
<nephele> Can you send me your appearence preferences by email?
<PulkoMandy> I think it's all defaults in this machine
<nephele> Okay
<PulkoMandy> Maybe you want to check my css in case it's really my fault
<nephele> I checked mystyle.css but it does not contain anything that should cause this
<nephele> it is black as in the dark mode style indeed, will have to figure out why. maybe that is a regression :g
<nephele> the scrollbar customization disabeling is mainly intended to prevent websites from making it too narrow too use anyhow, maybe you have an idea on how to more explicitly fix that :)
<PulkoMandy> Are there websites actually doing that?
<nephele> yes, gitea for example
<PulkoMandy> Ok, indeed that's not great. Would be nice to still keep the custom colors still, maybe?
andreaa72 has joined #haiku
<andreaa72> installed telegram ... joined haiku
<nephele> hmmm, a test document with no style has the correct white scrollbar
<nephele> i'm a bit confused what is different about your site
<nephele> Custom colors could be fine, yeah. Personally i like "just use the OS style" more, but it would be acceptable if we have a more specific solution just for the minimum size
andreaa72 has left #haiku [#haiku]
HaikuUser has joined #haiku
HaikuUser has quit []
floof58 has quit [Ping timeout: 480 seconds]
<nephele> PulkoMandy: does your javascript modify the css at all?
<PulkoMandy> I don't think I have any javascript in there
<nephele> From how it looks i would guess that the scrollbar somehow indicates it only supports dark-mode (with color-scheme: dark;) but i've not found anything in your css that would explain that
KapiX has joined #haiku
<PulkoMandy> There is another style.css file (in addition to mystyle.css)
<PulkoMandy> Does it just inherit the color from the body element maybe?
floof58 has joined #haiku
<PulkoMandy> Mh, no, doesn't seem so
<nephele> It might from :root
<nephele> Well, removing style.css makes it go away
andreaa72 has joined #haiku
<nephele> PulkoMandy: removing the background: from body seems to make this go away
<nephele> hmm
andreaa72 has left #haiku [#haiku]
<PulkoMandy> But changing to another color doesn't
KapiX has quit [Quit: KapiX]
<PulkoMandy> Or maybe I didn't try a color light enough?
<nephele> shouldn't matter, color-scheme is supposed to be opt-in
<nephele> there is no heuristics for "should I use dark mode"
<nephele> Hmm, i haven't tested actually with sites advertising light mode while using a dark background
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
<nephele> Huh, but setting it to #FFF does fix it... I'll check the code :g
<nephele> PulkoMandy: I'm only testing for scrollbar.scrollableArea().useDarkAppearanceForScrollbars()); I guess this could be a bug that is deeper in webkits code :g
<nephele> unless that variable is named decpetively
<PulkoMandy> Yes it may just be WebKit making a bad decision from the body color in absence of any other hints?
<nephele> If not set the color-scheme property is assumed to be "light" only
<nephele> iirc
<nephele> but maybe they did something special, figuring that the scrollbar should just follow whatever the color is of your view in actuallity :fg
<nephele> have to wait for the clone, githubs code search is useless
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<puck_> useDarkAppearance() || scrollbarOverlayStyle() == WebCore::ScrollbarOverlayStyleLight; looks like it's set based on documentBackgroundColor's llightness
<nephele> hmm, i guess it does kind of make sense too. In gnome web for example the scrollbar is an overlay scrollbar
<nephele> if it were to render for a light color scheme it would not be visible on your website
<nephele> (funnily enough exactly that happens if i zoom in to only have the content...)
<nephele> puck_: where did you find the first line? it seems to be for overlay scrollbars only?
<PulkoMandy> Looks like we should set preferredScrollbarOverlayStyle to force it the way we want? (no overlays)
<puck_> no, because the background changing changes that
<nephele> yes, but we can set preferredScrollbarOverlayStyle and the function will terminate early
<puck_> oh right, there, yeah
<PulkoMandy> But it looks like a bug anyway, we shouldn't be doing anything depending on overlay scrollbar styles
<nephele> I'll investigate this more once it is cloned, github is pissing me off
<nephele> (haikuwebkit gerrit when? :D)
<puck_> PulkoMandy: note that this is actually the same way the adwaita code behaves
<puck_> even without overlay scrollbars
<nephele> I agree with pulkomandy though, the logic is based on ovelay scrollbars, but we don't use them, and it's probably the least tested codepath by now, so bugs like this are bound to happen
<PulkoMandy> ScrollbarTheme disables overlay scrollbars by default
novaphoenix has quit [Quit: gone fishing]
<PulkoMandy> The code is SrollableArea that decides to use dark scrollbars on light background should probably check that? Or something related to it?
novaphoenix has joined #haiku
<PulkoMandy> puck_: yes, we have similar code in ScrollbarThemeHaiku
<nephele> i'd modify the useDarkAppearance() || scrollbarOverlayStyle() == WebCore::ScrollbarOverlayStyleLight;
<puck_> anything that has a max(r, g, b) - min(r, g, b) of < 25% is considered dark
<nephele> line to check if overlay is disabled
<nephele> puck_: we have a different alghorythm, but we also check for light/dark in some cases
<nephele> (mainly against the system theme, that is the site is dark and you have a light theme, don't use the OS colors but a fallback :)
<puck_> yeah i meant for the overlay style calculation
<PulkoMandy> Why did the web make rendering a scrollbar so complicated :/
<PulkoMandy> Is it dark mode? Is it overlay? Is it standard style? Is it legacy style? (i have no idea what all these things are)
<nephele> because scroll bars aren't part of the website originally
<nephele> but web engines wanted to let you style them too
<nephele> so they are special in all the right ways :)
<PulkoMandy> … and web browsers implementors didn't say NO
<nephele> no, but if you want to use them you have to use vendor specific prefixes for all browsers, except firefox, they somehow have the "standardized" keywords nobody else uses
<nephele> anyhow, i'll fix this issue with a fix in shared webkit code and try to upstream it :=)
mmu_man is now known as Guest4680
mmu_man has joined #haiku
Guest4680 has quit [Ping timeout: 480 seconds]
AD_MOS has quit [Ping timeout: 480 seconds]
<nekobot> [haiku/haiku] pulkomandy pushed 1 commit to master [hrev57351] - https://git.haiku-os.org/haiku/log/?qt=range&q=0822ec27a9fd+%5E51355272b3f7
<nekobot> [haiku/haiku] 0822ec27a9fd - libicon: Fix dangling references to VertexSource in PathTransformer
freddietilley1 has joined #haiku
freddietilley has quit [Ping timeout: 480 seconds]
tuaris has joined #haiku
pigeon has joined #haiku
pigeon has left #haiku [#haiku]
AD_MOS has joined #haiku
pigeon has joined #haiku
pigeon has left #haiku [#haiku]
pigeon has joined #haiku
pigeon has left #haiku [#haiku]
pigeon has joined #haiku
pigeon has left #haiku [#haiku]
pigeon has joined #haiku
tsyesika has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nexus6 has joined #haiku
AD_MOS has quit [Ping timeout: 480 seconds]
pigeon has left #haiku [#haiku]
freddietilley1 has quit [Ping timeout: 480 seconds]
<andreasdr[m]> Hi there.
<nephele> PulkoMandy: I can't clone haikuwebkit :( checkout fails everytime
<erysdren> hello
<nephele> fatal: packfile .git/objects/pack/pack-0e70ef9dcc2064c3dbd73bbd76d843657eaa2dc7.pack cannot be mapped: Out of memory
<PulkoMandy> nephele: even with a shallow clone? (git clone --depth=1)
<nephele> well, the clone suceeded but the chckout failed, i can try with a shallow one too
nexus6 has quit [Quit: Vision[]: i've been blurred!]
nephele has quit [Quit: Vision[]: i've been blurred!]
nephele has joined #haiku
erysdren has quit [Quit: Konversation terminated!]
<Begasus> k, current libuv tests crash as much as the latest one :)
<andreasdr[m]> Sorry, but could not resist, but its even Haiku related as MiniScript builds/works fine in Haiku. We will release this as a product soon, even Haiku Bindings would be possible (by using a generator or something)
B2IA has quit [Quit: Vision[]: i've been blurred!]
B2IA has joined #haiku
ClaudioM has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
tombhadAC has joined #haiku
<zdykstra> what's the tl;dr on MiniScript ?
<andreasdr[m]> Script Language, easy to use, transpiles to C++.
<andreasdr[m]> also pretty modern.
<andreasdr[m]> Easy to maintain also and easy to enhence.
<andreasdr[m]> Thank you for asking.
<andreasdr[m]> with pretty modern I mean the syntax.
<andreasdr[m]> I ll do a forum post after we released the BETA. I can ask there if Haiku bindungs would be interesting.
<Begasus> ah! no wonder it build debug ... OPTION(WANT_DEBUG "Build with debug information" ON)
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
* Begasus wonders if people ever read the CMakeLists.txt file ...
<Begasus> heading out, cu peeps!
Begasus has quit [Quit: Vision[]: i've been blurred!]
misthalu has joined #haiku
bbjimmy has joined #haiku
mr_lou has quit [Ping timeout: 480 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
<nekobot> [haiku/haiku] waddlesplash pushed 1 commit to master [hrev57352] - https://git.haiku-os.org/haiku/log/?qt=range&q=b02777c1a8d1+%5E0822ec27a9fd
<nekobot> [haiku/haiku] b02777c1a8d1 - HaikuDepot: Avoid Corrupt Username
bbjimmy_64 has quit [Quit: Vision[]: i've been blurred!]
tqh has joined #haiku
gouchi has joined #haiku
AlaskanEmily has joined #haiku
trn_ has joined #haiku
<trn_> PulkoMandy: Is the best way to detect the Haiku version via the C preprocessor the B_HAIKU_VERSION macros?
<trn_> Like, #if B_HAIKU_VERSION < B_HAIKU_VERSION_1_PRE_BETA_5 ... to do something only for R1b4 and earlier?
<PulkoMandy> I think yes? That's what they're designed for
<trn_> OK, I was asked to find out if that's the best and future proof way. libuv can use preadv/pwritev if it's available which is good for performance, and those were added a few months ago.
<trn_> There would be some svn versions where it doesn't overlap. There isn't anything more fine-grained though.
<PulkoMandy> A thing to keep in mind is haikuports builder run on beta4, so if it's packaged there, it will not use the new features then
<trn_> That's fine,
<PulkoMandy> Until we do a beta5 and update the builders
<trn_> I just would prefer it not using the workaround unnecessarily.
zdykstra has quit [Remote host closed the connection]
zdykstra has joined #haiku
<trn_> Thanks.
AD_MOS has joined #haiku
<bbjimmy> waddlesplash The FAT systm was used to read the SD card and used write to the USB stick. When Windows was used, either natively or with haiky in a Virtual box, The files showed proper date, only when haiku is used natively do the file dates show badly. 
<bbjimmy> *Haiku
mmu_man has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
FreeFull has joined #haiku
<waddlesplash> bbjimmy: yes I understood that part of your comment
<bbjimmy> Doesn't haiku use its own FAT system even in a VirtualBox?
AlaskanEmily has quit [Remote host closed the connection]
<waddlesplash> yes
<waddlesplash> but there must be something different here
<waddlesplash> timezone handling can be odd
<waddlesplash> the FAT driver really needs a major overhaul
jmairboeck has joined #haiku
trn_ has quit [Quit: That's it for today]
roracle has joined #haiku
jmairboeck has quit [Quit: Konversation terminated!]
<roracle> what's the deal with "yab-IDE"? is that a good program to quickly fabricate UI elements?
<roracle> or is there a more preferred way?
<waddlesplash> yab-IDE is an IDE for Yab, a BASIC dialect for Haiku
<roracle> ah, is it easy to use?
<roracle> well anyways, since i'm following the "Learning to program with Haiku" guides, what's a good IDE for C++?
gouchi has quit [Remote host closed the connection]
<roracle> Paladin?
misthalu has quit [Quit: Leaving]
dorje has joined #haiku
mmu_man is now known as Guest4728
mmu_man has joined #haiku
<roracle> From the tutorial PDF, just testing the example code: https://0x0.st/Hy8l.cpp
<PulkoMandy> Yes, or there is Genio now which is more actively developed
<roracle> ah okay, i'll check that one out, too
Guest4728 has quit [Ping timeout: 480 seconds]
HaikuUser has joined #haiku
HaikuUser has quit []
HaikuUser has joined #haiku
erysdren has joined #haiku
<nephele> the shallow clone worked atleast for webkit :)
FreeFull has quit []
tqh has quit [Remote host closed the connection]
coolcoder613_32 has joined #haiku
<coolcoder613_32> Good morning
<erysdren> good morning
<coolcoder613_32> Whats up?
Babaj has joined #haiku
xet7 has quit [Remote host closed the connection]
Babaj has quit []
ClaudioM has quit [Quit: leaving]
HaikuUser has quit [Quit: Vision[]: i've been blurred!]
coolcoder613 has joined #haiku
OrangeBomb has quit [Quit: Slacking off]
OrangeBomb has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
dorje has quit [Quit: Vision[]: i've been blurred!]
mmu_man has joined #haiku
AD_MOS has quit [Ping timeout: 480 seconds]
mmu_man has quit [Ping timeout: 480 seconds]
AD_MOS has joined #haiku
mmu_man has joined #haiku