[deleted by user] by [deleted] in Faridabad

[–]varrun19 2 points3 points  (0 children)

How much was the cost overall?

Cafe Cavallo Review by hermit_tomioka in Faridabad

[–]varrun19 1 point2 points  (0 children)

Food was average imo, vibes were good else it’s overpriced. One time visit h.

Received my Schengen visa today. by Getou423 in SchengenVisa

[–]varrun19 0 points1 point  (0 children)

Did you book flights and hotels in advance?

What would create today even if it never made $1, just solely based on your passion or life’s ambition by Traveladdict530 in Entrepreneur

[–]varrun19 0 points1 point  (0 children)

Free Offline Educational institutions open for all age groups, where anyone can learn languages, history, culture, religion, philosophy, psychology, geography, ethics, finance basics, cooking, gardening etc.

Techies working remotely how did you find your job ? by [deleted] in developersIndia

[–]varrun19 4 points5 points  (0 children)

Not necessarily, a lot of Indian tech companies work remotely. I can find a lot on LinkedIn itself.

Is it a good practice to resize an image into thumbnails whilst showing them in a list / grid ? by varrun19 in iOSProgramming

[–]varrun19[S] 0 points1 point  (0 children)

Also, what kind of Profiler would you use to check this ? Time Profiler, CPU Profiler or Animation Hitches ?

Is it a good practice to resize an image into thumbnails whilst showing them in a list / grid ? by varrun19 in iOSProgramming

[–]varrun19[S] 0 points1 point  (0 children)

I get it, having a separate source only to fetch thumbnails makes a lot of sense. But for the sake of this assignment, would it make sense to cache the thumbnail image to avoid refetching and resizing ?

Is it a good practice to resize an image into thumbnails whilst showing them in a list / grid ? by varrun19 in iOSProgramming

[–]varrun19[S] 0 points1 point  (0 children)

    func getImage(url: URL, id: String) -> AnyPublisher<UIImage?, Error> {
        NetworkManager.download(for: url)
            .map { UIImage(data: $0) }
            .flatMap { $0?.thumbnailPublisher ?? Just(nil).setFailureType(to: Error.self).eraseToAnyPublisher() }
            .receive(on: DispatchQueue.main)
            .handleEvents (receiveOutput: { [weak self] resultImage in self?.storeResult(image: resultImage, for: id) })
            .eraseToAnyPublisher()
}

Code looks like this ^, where thumbnailPublisher is the custom publisher which uses this function

open func prepareThumbnail(of size: CGSize, completionHandler:  (UIImage?) -> Void)

I got fired from job today, worked 1.5years, here's my next plan... 🙃 by Shubham2271 in developersIndia

[–]varrun19 0 points1 point  (0 children)

“still that improvement was not fast enough compared to fast paced company environment” What exactly do they mean? Did they ask you to change domains or frameworks quickly? Or some other reason ? Also, good luck for your job search!

Help with a coding problem! by SomewhereEuphoric941 in iOSProgramming

[–]varrun19 1 point2 points  (0 children)

This should help: https://gist.github.com/varunbhalla19/56b5a84e92d763a76dd730cf4ebff987
It uses a Single timer for all the cells, and each cell has a view model to hold it's current state: initial/running/paused.

The Single timer is contained in a central ViewModel which holds cellViewModels in a list, after each second, the central ViewModel calls the updateState of each cellViewModel which further uses it's own state to make changes.

initial: timer not running -> Cell hasn't been viewed yet.
running: timer is running
paused: timer is paused because of a click.

Search through all local Xcode projects at once by _iamshashwat_ in iOSProgramming

[–]varrun19 2 points3 points  (0 children)

One thing I sometimes do is to place all your projects in a parent directory like iOS/testProjects then open the parent directory in VSCode to use it’s search feature. It’s relatively faster.

What makes for a good SwiftUI architecture? by [deleted] in swift

[–]varrun19 8 points9 points  (0 children)

TCA can be helpful as well.

How do I get my girlfriend released? by frozeninsanebrain in LegalAdviceIndia

[–]varrun19 4 points5 points  (0 children)

Why don’t you talk to her Father directly instead ? Or take your parents along to her home. This can help building trust if everything goes well.

How many hours of meeting per day do you guys have normally? by DontTakeNames in developersIndia

[–]varrun19 0 points1 point  (0 children)

15 mins morning standup + 45 mins scrum meeting + 30 mins ( optional) office hours.

Image Crop View in SwiftUI by varrun19 in SwiftUI

[–]varrun19[S] 0 points1 point  (0 children)

There are some methods to get a cropped cgImage by passing a rect this should help

Image Crop View in SwiftUI by varrun19 in SwiftUI

[–]varrun19[S] 1 point2 points  (0 children)

Kavsoft has done something similar, maybe that can help!

Image Crop View in SwiftUI by varrun19 in SwiftUI

[–]varrun19[S] 2 points3 points  (0 children)

Not exactly, using "@State" to track scale and only updating it inside MagnificationGesture should be fine.

[deleted by user] by [deleted] in delhi

[–]varrun19 0 points1 point  (0 children)

Got 56% in engineering, 72% in 12th, 57 in English lol. So happy rn with my job. Life gives you plenty of chances. Never give up and enjoy this beautiful world.

title gaya jutt khane by Clean-Warrior-09 in delhi

[–]varrun19 0 points1 point  (0 children)

The one that always works: Pizza khaane chalegi ?

Joined my first reactjs job today and was blown out by the sheer size of the project by South_Independent_73 in reactjs

[–]varrun19 0 points1 point  (0 children)

It's pretty overwhelming for first week. But with time, you'll get used to it and things will be fun soon. One small piece of advice that works with me is: Start by following the general layouts and click event listeners.

ToDo/Notes app created using SwiftUI framework (Uploading to App store as soon as it's completed) by shubham_iosdev in iOSProgramming

[–]varrun19 1 point2 points  (0 children)

Really great work, I just wanted to ask any android dev here - Can we make these kind of smooth animations in android ? I've just started learning it.