« first day (3585 days earlier)      last day (1346 days later) » 

3:15 AM
I bet that the performance and easy implementation of UI with Microsoft .NET MAUI is already wreaking havoc on the Flutter development team.
Now I know the reason why the development and maintenance of Xamarin.Forms are slower than Flutter.
 
 
4 hours later…
mr5
7:03 AM
@nyconing a lot of stubborn people. makes me hate people in my country even more.
@Hozuki that's what we are doing with our app as well. We're hosting the m3u8 files both in iOS and Android because AVPlayer doesn't accept source directly from local storage.
@Hozuki you can use it as caching mechanism also.
@ArtificialStupidity MS introduces a lot of new tech in just a year. I don't even have the time to learn the XF Shell, and now this MAUI.
 
@mr5 Ah, that's pretty cool. Interesting tech! What do you use for HTTP server? httplistener?
 
mr5
it's in XF so works both platform
 
Ah, I've looked at that one as well. Currently doing HttpListener since I don't need much in the ways of routing and whatnot.
 
mr5
7:19 AM
are you doing it in Xamarin.Android?
 
Yeah.
 
mr5
Didn't know there's an official http server library
 
Yeah, HttpListener, the build-in HTTP listener.
It doesn't do anything like routing, it's just 'accept HTTP' and then you need to do logic yourself.
 
mr5
wait. it's not a server?
 
It is, it is.
 
mr5
7:21 AM
ahh get it
 
mr5
it's the most basic of the basic
 
Yeah. I'm accepting HTTP in C#, convert the request into JSON and pass it into my JavaScript code. That is responsible for processing the request, and replies with JSON. Then my C# takes that reply and puts it into the HTTP response
That's how I got a nodejs code-base running in Android :D
 
mr5
wth
why make it very complicated
 
Because it shares code with a nodejs server and electron app.
 
mr5
7:24 AM
ohh
 
https://github.com/mangaloyalty/mangaloyalty runs on
desktop: linux, mac, windows
docker: arm7 and x86
mobile: android
 
mr5
electron app using Xamarin.Android?
 
Xamarin.Android is only for Android. Electron for desktops :)
 
mr5
waow
why not publish it in playstore/appstore?
 
Money.
Actually haven't started on the iOS version yet. :)
 
mr5
7:29 AM
it's a one time payment for playstore and cost $25 only
 
Yeah, but requires a credit card which I don't have.
Whoop, time to go to do archery. Lata.
 
mr5
o/
 
Hi all
I'm having trouble drawing Vector Fields
I already posted a question, so I'd greatly appreciate it if anyone can take a look:
0
Q: Electric Fields in WebGL

DarkRunnerI'm trying to draw electric field lines like using a WebGL library I found online at https://github.com/VizIT/efield/ and http://www.vizitsolutions.com/. Here's the problem: when I run the code found in the documentation, I get an error I'm new to WebGL (i.e., I don't know anything about it), s...

 
mr5
> I'm new to WebGL (i.e., I don't know anything about it), so it would be great if anyone could assist me in resolving this error. Thank you.
 
MOrking kids
Hey there's actually people here
 
mr5
7:42 AM
and then you already tried out a complex code.
and asks us what's wrong.
you need to narrow down the question. I'd suggest understand the basic before jumping on to anything complex like that.
@CaptainObvious yeah. it's code day!
 
It's what?
apparently since sending that I got logged out. Thanks stack.
@DarkRunner ALL HAIL CORS
 
mr5
 
@CaptainObvious What is that?
Please, you don't have to downvote my question
I'm just a student who needs help with his problem
 
I didn't downvote the question lol
 
I'm just frustrated because it's a problem I spent hours on, only to no avail
 
7:49 AM
If you're new to WebGL, maybe you should start with something a bit simpler
 
Unfortunately, I couldn't a library in languages I already know (C++, P5JS, Python) that draw 3D Vector Fields
 
You're making the same mistake many people make, and it makes them disheartened and think that doing whatever it is you're trying to do is impossible
 
mr5
@DarkRunner do you know C++?
 
@mr5 Yes!
 
If you've got a decent grasp of C++ why not try drawing it in DirectX or OpenGL
 
mr5
7:50 AM
do you have VS installed?
 
No, I do it on repl.it; It's too much work to do it by myself without a library
 
> in browser IDE
OH GOD
 
mr5
it's in C++. You need VS to be able to run it.
 
OK, let me see
 
> It's too much work to do it by myself without a library
You should try creating your own.
 
mr5
7:52 AM
lol
that's huuuuuuuuuuuuuuge task
 
Or at least the logic to draw the fields yourself, obviously not an entire library for it
 
mr5
 
Bottom line is I'm trying to use a library called eField: github.com/VizIT/efield
 
> Note that the efield toolkit has been replaced by the more general and better organized vfield
 
Hm; Wow, OK, where is the link?
 
7:55 AM
I mean neither of them have been touched for 6 years
It's on the readme for efield
But EField hasn't been touched for 7 years
 
Wow wow, this might work! OK! That's fine. Bare-bones compatibility is all I need
Wow! OK, Let me try it!
@CaptainObvious Thank you so much! It works!
Wow!
Thank you!
Adios!
 
Jesus the guy has no (public) github contributions at all since early 2018 when he fixed a typo in one of his, and aside from that it's all the way back to 2014
uh sure
always read the docs
 
 
7 hours later…
3:20 PM
||c#
 
May 5 '16 at 15:17, by BoltClock
THIS ROOM IS OUT OF CONTROL
 
oh bollocks
||tumbleweed
 
 
1 hour later…
4:26 PM
It's the weekend
 
 
2 hours later…
6:35 PM
Ffffffffffffffffff... Fuck. Got the whole HttpListener on Xamarin Android working. Started on the WebSockets... not implemented on Xamarin Android. Last piece of the puzzle just exploded ~_~
 
7:20 PM
I'll rewrite my server to use long-polling, then. Should work fine for my use case. Oh well... just more work.
 
More work for us all
 
8:04 PM
isnt websockets relatively small to implement?
 
Not in the NS
 
8:33 PM
@ABuckau A WebSocket server? No, it's pretty complicated to get it right. And I'd have to build the HTTP server, then, as well.
Long polling is just way, way easier. And totally fine for my use case.
 
 
1 hour later…
9:56 PM
Hi all,
What does it mean in C that an array is a pointer at the same time?!!
 
The array values are on the Heap
 
10:12 PM
You mean the array itself, not the individual elements?
This actually makes sense since I know the array is reference type in .NET. Learning C helping me tying things together.
And string is an array in C so it's pointer (reference type in .NET)
 
in C (and many other environments), objects (except arrays) are always constant size
for example,
an integer (int32) is 4 bytes
a long (int64) is 8 bytes
an object pointer (on x64) is 8 bytes
a struct with 2 ints, 1 long and a dictionary for example, would be
2x4 bytes + 8 bytes + 8 bytes
and if it were a class instead of a struct, it would also have 8 bytes for the object header
so, you can see that the size is constant (32 bytes)
a pointer is pointing at the start of those 32 bytes on the heap
for an array... you could just have another object right behind it
to get a pointer to that object, you just take the pointer you already have and offset it by 32 bytes
so, in C, there are no arrays
it is just pointers to consecutive objects
in C#, an array is always an array specifically for structs of a specific size (perhaps even different ones for each struct) or an array of pointers
arrays and strings in C and C# have very little in common when comparing the implementations
 
"so, in C, there are no arrays", what is an array in this context?
 
10:33 PM
it doesnt actually exist
there is no special code for it
I suppose you can see "arrays" as just a weird code pattern
 
10:57 PM
Ah I see. Your explanation is so beautiful and clear
 

« first day (3585 days earlier)      last day (1346 days later) »