« first day (3862 days earlier)      last day (1069 days later) » 

2:01 AM
 
 
2 hours later…
4:11 AM
 
4:53 AM
Do we have global C# variables in MVC?
 
 
2 hours later…
mr5
6:29 AM
@kesarling don't
why would you want to go that route
 
7:12 AM
@Wietlol I find it annoying to work with them
 
how come?
 
8:06 AM
[Captain Obvious] That sounds like a bad time
 
@mr5 well, what I actually needed, was ViewBag. :)
 
8:41 AM
[Captain Obvious] you probably don't need viewbag
 
hi i'm reading some old visual basic code to convert into c#
does anyone know what: Public somethingHandles(NumOfItems) As New clsWPA
my guess is that it is creating a fixed array of type clsWPA?
 
 
2 hours later…
10:39 AM
Hi everyone! I got a problem with xamarin (again :P)
Basically I'm trying to work on a sort of Product preview / image editor for custom products.
I have an empty template with a given size (let's say 300x600px) and I need to fit it in a Grid central row keeping the aspect ratio
And I'm struggling a bit 'cause if I bind the width and height requests they get set before the grid size is assigned (so gridrow width = -1)
And if I set width and height in the size_changed event, since the sizes are binded to public properties, it never get raised
 
 
1 hour later…
mr5
11:56 AM
@Developer00 assign a fix size for the images, make the layout container adjust.
 
12:08 PM
anyone have experience streaming video in asp.net / html5? :D
from your own video hosting server?
 
mr5
are you setting up the streaming server or just consume it?
 
we're setting it up
 
mr5
VOD or livestream?
 
VOD
 
mr5
12:28 PM
are you planning to use a streaming protocol or directly serve your client with the video container as is?
if you plan to support any streaming protocols, your clients would have the ability to stream on their available speed (adaptive bitrate), downside is on setting up this on server side, for client side, not much as most media players on major platform have already configured this.
 
I don't really know any streaming protocols we can use; I just know we should make it asynchronous and I'm looking into some RESTful solutions
 
mr5
pretty much you don't need to worry at that
 
don't need to worry at that?
 
mr5
if you're going to deploy your API on ASP, serving is already handled by their infrastructure.
 
oh well that's good
 
mr5
12:42 PM
yeah, it's like your calling API simultaneously without getting blocked by one another
now, if you don't plan to support any streaming protocols and just happily throw your video container, you can server it statically and be done with it :)
for authorization, it's quite handy if you use IS4, but you could also roll your own (which is not recommended)
 
I already threw in the video container, but it takes forever to load from the iPad and the <video> tags don't work on Chromium or Safari because we decided to use .mp4 for some reason
 
mr5
maybe the video is served on very high quality and your network speed couldn't cope up?
 
yeah it was about 40mb for a 2-minute video, so I'm gonna break them into packets
at least that's why it took so long to load, but that doesn't affect <video> not working for chromium or safari
 
mr5
iirc, if you directly paste the url in the address bar in Safari, it would play the video directly instead of downloading it.
mp4 supports streaming, it shouldn't wait for the whole file to download
 
well it does
 
mr5
12:53 PM
153
A: HTML5 - How to stream large .mp4 files?

mark4o Ensure that the moov (metadata) is before the mdat (audio/video data). This is also called "fast start" or "web optimized". For example, Handbrake has a "Web Optimized" checkbox, and ffmpeg and avconv have the output option -movflags faststart. Ensure that your web server is reporting the corr...

 
and fyi: no, safari doesn't just play the video if you put it in the address
ooh this should help :)
 
1:09 PM
@mr5 I didn't get what you mean
 
2:04 PM
Ben Popper on May 13, 2021
We’ve talked about the software that flies SpaceX rockets, the team that tests the code to ensure it’s airtight, and the code that helps Starlink satellites communicate with customers and one another. For our last piece, we’re diving into the work of a team that helps the vehicles get built.
 
3:03 PM
when using my dice code to roll the dice and see if you rolled a 6 you can go again pastebin.com/TLeZuS3R does not work gfycat.com/candidassuredblackbird
 
Hey, I was looking into using postman.com (Postman) for development and corresponding testing for Web Services at my firm. Are there any other good alternative Free/Open Source Web Client invoking testing tools online? If yes, could someone please suggest them?
 
telerik.com/purchase/fiddler you can get away with free Fiddler
 
@ntohl Thank you. But what about jmeter.apache.org ?
 
haven't used it. Postman is way better than Fiddler for development. For debugging Fiddler is the way
 
 
2 hours later…
5:03 PM
[kesarling] What do I use instead then?
 
5:15 PM
we generally use postman for testing manually
for automated tests, we upload the http request on our management website, which then puts it into a big bucket with all the test requests
it is indexed by project name, and when that project is deployed, those tests will run on our test and staging environments
@cinemassacres looks like you have inverted logic
but also inconsistent logic
the "your turn" shows up for the bottom player for 2 turns
different pawns move in those 2 turns
and after 6, the "your turn" moves to the top player
 
[Captain Obvious] Nah fuck postman
[Captain Obvious] Swagger for development
[Captain Obvious] Fiddler for debug
 
whatever floats your boat
what makes Fiddler great for debug specifically?
 
[Captain Obvious] Basically its you mitm yourself
[Captain Obvious] See and modify any requests from an application
[Captain Obvious] Particularly handy if you aren't sure which oart of a request pipeline is broken
 
ah, I guess we have a more comfortable position then
we always know exactly which request is broken :)
except when we dont
 
5:38 PM
[kesarling] @butler1233 why do you say I don't need ViewBag?
 
 
5 hours later…
11:03 PM
Does Visual Studio have auto import of classes?
I'm coming from Visual Studio Code and Eclipse.
For example, there's a class AVAudioPlayer that is in AVFoundation and I type AVAudioPlayer and then press Command + Space I would hope it pops up autocomplete for the class and package
and then when I hit enter it adds "using AVFoundation" at the top of the class but it doesn't seem to do that
Second question. I'm using Visual Studio for Mac to create a Mac app and it uses C#. But I can't find C# examples online that work. It's like there are two APIs! All the C# examples are for Windows classes but on Mac everything is NSString and NSWindow and it looks like all Apple api
I'd like to make my app for windows and mac. I can't even find a browse for file code sample for VS mac
Echo echo echo echo
 

« first day (3862 days earlier)      last day (1069 days later) »