« first day (4365 days earlier)      last day (578 days later) » 

 
2 hours later…
6:30 AM
[Squirrel in Training] GoOoOoOoOoOoOoOoOoOoOoOd Mornin' neglecterinos!
 
6:52 AM
Good morning
 
7:04 AM
@Suisse probably use a timer
 
 
1 hour later…
8:11 AM
there is soo much mooncake left in my office
im starting to think how isthe most correct way to slice and eat the mooncake, especially with yolk
with pizza slicing, the yolk can easily come off and the person who take it must eat the yolk first...
 
@Suisse You can change the lines in the foreach to lines.Any(), it will filter out any empty lines.
@Suisse A coroutine is probably too complex here. Just record the current time when he clicks and keep a toggle whether or not your "timer" is running.
Also if you don't know how often it will be used, use lists instead of arrays so you can just add however many entries you want to it.
Or you could of course not use a toggle but instead just query if the start list is bigger than the end list, which would mean your "timer" is currently running.
 
mr5
@Wietlol can you gib true to life examples? I don't quite understand it kek
 
9:20 AM
any tool that is "meant to be noob friendly"
that in turn does not allow professionals to do what they want to do
 
10:18 AM
depend how noob
any person can noob enough to failed any tools
an automatic door? or spoon? or... mug?
nor automatic spoon, automatic mug
 
 
2 hours later…
mr5
12:39 PM
There are a lot of changes in Java to adapt to modern architectures
I feel like I'm missing a lot of things
 
12:52 PM
Regarding java, I really don't have that feeling
Maybe regarding Rust or Kotlin
But java? Nah bro, fuck that
 
Is there anything really worth it after 9? Or maybe 10? Whenever they started to produce new versions every few months
I know 9 added stuff that I've no clue why it wasn't in 8, like flatMap for Optional, IIRC.
10 added few other nice to haves, I think. But not sure what the rest of the versions have done.
 
@Squirrelkiller wow thanks, that's cool! lines.Any() didn't know this
@Squirrelkiller but how do I check the time? do I use a while loop to check the time?
 
mr5
1:24 PM
Virtual Threads in Java is the most exciting
Although I haven't fully grasped the distinction with a regular thread or a coroutine
 
@Suisse When the user clicks the first time, you record that time by adding DateTime.Now to the "start" list. Then when the user click again, you see that the start list is longer than the end list, so you add a DateTime.Now to the "end" list. Now you have your time window. To display it, you can just go TimeSpan howLongDidItTake = end.Last()-start.Last();
 
@Squirrelkiller ahaa no but the requirements are more like.. subtitles of a movie
if the user click start (the movie plays) and the words should be shown and hidden on the right times
showWord	start	end
2°C Szenario	00:23.03	00:00:28.30
Erwärmung	00:51.37	00:00:56.370
Übereinkommen von Paris	01:11.53	00:01:16.530
2015	01:12.70	00:01:17.700
vorindustrielles Niveau	01:29.93	00:01:34.930
 
Ah so you map the times to which subtitle you have to display?
 
yes
 
[milleniumbug] uhhhhhh, you're having an entirely problem from what you initially described
 
1:30 PM
so it means the timer needs to be checked the whole time
thats why I was asking should I use a while loop
 
That is indeed a different perspective lol, I thought you basically wanted to build a fancy timeršŸ˜…
Still, I think having a SoA works better than an AoS here
 
mr5
I think a tool should already exist for that kind of task
 
So 3 lists: showWord, start, end
 
SoA? AoS? sorry what are those? hehe
 
User clicks start, search through start to find the current start date (last one before the first one after the current time)
Structure of Arrays vs. Array of Structures
Say you have a class Subtitle
 
1:34 PM
@Squirrelkiller yeah - at the moment its just in one big array - I would like have it in "dictionaries" (same structure like a json)
yes
 
Then you could just read a file and store in List<SubTitle> or Subtitle[] - an array of structures.
The structure being a Subtitle, which in turn has one string and two datetime properties.
Structure of Arrays is the other way around:
You have one object of type Subtitles
 
aha now I see.. with the Subtitle class it would look much cleaner and separated
 
The object has three arrays: showWord[], start[], end[]
 
@mr5 cool clean app ^^
 
1:36 PM
So either you look through the AoS: take each Subtitle object, read its start property, decide whether or not you want it, then go to the next object in the array.
 
I try to build a simple AR subtitle app
 
mr5
Are you trying to build an subtitle file?
Oic
 
@Squirrelkiller yes that is just the way how I should iterate.. buuut the time thing? is there a setInterval() like in js?
 
Or you go to the one Subtitles object, go through the start array until you find the start time you want, remember the index and then use that found index to access the other lists.
 
@mr5 no no, just a way to visualize it in the right time
 
1:39 PM
1) Find correct subtitles, remember `end` time
2) Activate subtitles
3) await Task.Delay(howLongDoYouWantToShowTheSubtitles); // in milliseconds
4) Deactivate subtiltes
 
1) what does it mean "find" correct subtitles - I am still missing the part where I am continously checking the current time (or the past time since start-click)
 
Ah ok. Let's pretend you have a SoA for now then.
1) User clicks
2) Search through Subtitles.StartTimes until an entry is *after* the current timestamp
3) Remember the index before what you found in 2), so if you found that Subtiles.StartTimes[3] was after your current timestamp, you remember currentIndex=2
4) Activate SubTitles.Text[currentIndex]; // This will be Text[2]
5) call a method with a `async void` signature that does the following:
6) await Task.Delay(endtime-currentTimestamp); // make sure this are milliseconds
7) Deactivate Subtitles, maybe go to next index of subtitles, in this case maybe check if the next startTime is actual
Then just figure out how to kill the whole thing when the user pauses
Then you don't have polling, and you don't have an extra timer or whatever running
 
aaah thank you!!! :) the magic keys are "await Task.Delay(ms);"
 
This might be one of the very very few times to actually use an async void method^^
 
2:00 PM
What will this AR app do? Project a movie into my room?
 
[Squirrel in Training] Imagine using async void
 
2:19 PM
@Squirrelkiller no the movie will actually be on the tv or screen.. but the AR app on Hololens will just display subtitles to the screen
 
2:34 PM
Oh, nice
 
[Captain Obvious] async void has one valid use case
 
events?
 
Exactly
 
[Squirrel in Training] In hitting the guy that implements them?
 
3:18 PM
still events kinda suck tho
 
Event are actually pretty nice tho
 
 
1 hour later…
4:53 PM
posted on September 28, 2022 by Siavash Fathi

Microsoft Teamsā€™ infrastructure team, or Intelligent Conversation and Communications Cloud (IC3), aspires to be the industry leading platform with reliable and high-quality audio and video calling, meetings, and chat experiences that work any time, from anywhere, on any device. A key element of our platform evolution is the migration from .NET Framework to the latest version of .NET LTS, curren

 
[Hector] @squirrelkiller y u no install Discord
 
5:16 PM
Oh I have discord
I just don't use it for the stackoverflow chat
Because the stackoverflow chat...is on stackoverflow
 

« first day (4365 days earlier)      last day (578 days later) »