Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "screen cast"
-
No one:
Absolutely no one:
Microsoft: "What about if our camera app stops recording as soon as its window is minimized because there is no such thing as people filming themselves reading from screen?"
You have to be impressed by the ability of these fucking morons to make common use cases artificially hard to do with their software.3 -
Curiosity killed Ben the cat.
I work in Android Dev. I use scrcpy to control devices remotely. I realized some phones have chrome remote desktop on them...I thought, what if... I open my computer screen on the devices while these devices cast their screen to my computer. Classic mirror loop effect, align to the pixel, staring down the abyss of infinity mirroring... until i took off my earphones to go check this effect on one of the devices.... my computer audio was being played on all devices running chrome remote. :( I feel so stupid1 -
Has anyone tried the "Connect app" on windows? To be able to screen cast for example android screen to windows.
What in the fucking fuck are those guys in Microsoft smoking? It fucking hijacks your mouse and keyboard with no way to control your PC. Only thing that works to go back to your PC is ctrl+alt+delete. Wanna close it? Alt+F4. No fucking UI except some broken pseudo setting. Srsly it seems like some intern did it. WHAT THE SHIT??1 -
Back when I was doing my uni final year project. i was given the choice of either writing codes or writing documentation (graphs, requirement and a whole lot of other madeup bullshit)
I deicide go with coding, sign up with laracast. watch a whole lot of screen cast. and BOOM, coding is easy - I was literally quoting bombastic technical terms like many-to-many relationship to my group mates after 2 videos. (didn't even know what was bootstrap at that time) Thats was when I decide I wanna code for a living. Laravel made me a developer.1 -
I need some opinions on Rx and MVVM. Its being done in iOS, but I think its fairly general programming question.
The small team I joined is using Rx (I've never used it before) and I'm trying to learn and catch up to them. Looking at the code, I think there are thousands of lines of over-engineered code that could be done so much simpler. From a non Rx point of view, I think we are following some bad practises, from an Rx point of view the guys are saying this is what Rx needs to be. I'm trying to discuss this with them, but they are shooting me down saying I just don't know enough about Rx. Maybe thats true, maybe I just don't get it, but they aren't exactly explaining it, just telling me i'm wrong and they are right. I need another set of eyes on this to see if it is just me.
One of the main points is that there are many places where network errors shouldn't complete the observable (i.e. can't call onError), I understand this concept. I read a response from the RxSwift maintainers that said the way to handle this was to wrap your response type in a class with a generic type (e.g. Result<T>) that contained a property to denote a success or error and maybe an error message. This way errors (such as incorrect password) won't cause it to complete, everything goes through onNext and users can retry / go again, makes sense.
The guys are saying that this breaks Rx principals and MVVM. Instead we need separate observables for every type of response. So we have viewModels that contain:
- isSuccessObservable
- isErrorObservable
- isLoadingObservable
- isRefreshingObservable
- etc. (some have close to 10 different observables)
To me this is overkill to have so many streams all frequently only ever delivering 1 or none messages. I would have aimed for 1 observable, that returns an object holding properties for each of these things, and sending several messages. Is that not what streams are suppose to do? Then the local code can use filters as part of the subscriptions. The major benefit of having 1 is that it becomes easier to make it generic and abstract away, which brings us to point 2.
Currently, due to each viewModel having different numbers of observables and methods of different names (but effectively doing the same thing) the guys create a new custom protocol (equivalent of a java interface) for each viewModel with its N observables. The viewModel creates local variables of PublishSubject, BehavorSubject, Driver etc. Then it implements the procotol / interface and casts all the local's back as observables. e.g.
protocol CarViewModelType {
isSuccessObservable: Observable<Car>
isErrorObservable: Observable<String>
isLoadingObservable: Observable<Void>
}
class CarViewModel {
isSuccessSubject: PublishSubject<Car>
isErrorSubject: PublishSubject<String>
isLoadingSubject: PublishSubject<Void>
// other stuff
}
extension CarViewModel: CarViewModelType {
isSuccessObservable {
return isSuccessSubject.asObservable()
}
isErrorObservable {
return isSuccessSubject.asObservable()
}
isLoadingObservable {
return isSuccessSubject.asObservable()
}
}
This has to be created by hand, for every viewModel, of which there is one for every screen and there is 40+ screens. This same structure is copy / pasted into every viewModel. As mentioned above I would like to make this all generic. Have a generic protocol for all viewModels to define 1 Observable, 1 local variable of generic type and handle the cast back automatically. The method to trigger all the business logic could also have its name standardised ("load", "fetch", "processData" etc.). Maybe we could also figure out a few other bits too. This would remove a lot of code, as well as making the code more readable (less messy), and make unit testing much easier. While it could never do everything automatically we could test the basic responses of each viewModel and have at least some testing done by default and not have everything be very boilerplate-y and copy / paste nature.
The guys think that subscribing to isSuccess and / or isError is perfect Rx + MVVM. But for some reason subscribing to status.filter(success) or status.filter(!success) is a sin of unimaginable proportions. Also the idea of multiple buttons and events all "reacting" to the same method named e.g. "load", is bad Rx (why if they all need to do the same thing?)
My thoughts on this are:
- To me its indentical in meaning and architecture, one way is just significantly less code.
- Lets say I agree its not textbook, is it not worth bending the rules to reduce code.
- We are already breaking the rules of MVVM to introduce coordinators (which I hate, as they are adding even more unnecessary code), so why is breaking it to reduce code such a no no.
Any thoughts on the above? Am I way off the mark or is this classic Rx?16 -
wow....what a great way of representation.. your screen is doing something else and screen cast something else...1
-
I spent three days looking for an error that caused my app to not displaying the layout (the app still was running but it was a black screen). On the third day, i discovered that when I register a SensorEventListener I have to cast the listener to SensorEventListener, otherwise it wont load, or even show errors on the logcat.
-
I want to play some games in my free time, what would be the best option for me ?
choice 1 : ps5 or xbox?
choice 2 : monitor or 4k tv
choice 3 : above choices or simply buy a windows laptop?
context :
1. i have never been a hardcore gamer. i don't dig multiplayer global kinda games like pubg, or other fps. I rather like offline story games like takken or NFS most wanted 2005
2. my current laptop is a macbook. i started development with windows laptop years ago, and at that time i was free enough to complete most wanted 2005 and max payne 1/2 (with cheats) i liked gta vice city / sanandreas as well, but i could not pass its missions and would rather end up roaming around
3. i recently played it takes 2 , some bmx bike racing and some archery game with my friend on his PS5 and damn i liked that crispy super fast and detailed graphical games. might be a good investment for relaxation and weekend time pass
4. i am shifting homes and in need of a personal tv/display as I don't want to share family tv anymore. i don't really watch any cable tv shows apart from news channels and mainly consume ott content (netflix ,prime Hotstar etc) i am wondering if a display could also be mounted on wall and could be able to run otts vis some firestick, jio stick or google cast etc.
5. as i mentioned that i never had a taste for gaming, i wonder if all above would be a bad choice and if i should simply buy a good windows laptop
( whatever that technology is , all i want is to control that screen content with a remote, like we do in tv)
So what's best for me?10 -
big heaping dose of fuck apple !
They don’t seem to allow vnc
Because their apps can decide whether you can cast your screen to something like uxplay to keep you from displaying your own screen to your computer !!10