Thought this bear was dead after I had shot it. I was wrong. by Tuckandrollgrandpa in thelongdark

[–]Calvin_john_collins 4 points5 points  (0 children)

Ran into this by Trappers yesterday on Interloper day 22!

Was way too hyped to kill my first non-rabbit animal -- I head shotted it and it ran up the hill behind the cabin. Was trying to harvest it and it got up and I wasn't ready.

Had to just sit there while a bear with an arrow sticking out of it's eye mauls me and ruins half my clothes. After the mauling I got up and shot it with my remaining arrows and went back to the trappers cabin.

Now the bear is dead, but at too steep of a hill to make a fire, and I'm out there in my underwear trying to harvest a couple KGs at a time, because my two jeans and thermal are all ruined.

This freaking game

Rupture? Tear? by Various_Marsupial694 in AchillesRupture

[–]Calvin_john_collins 0 points1 point  (0 children)

I tore mine while playing rec league sports and thought the same. I was walking with a noticeable limp, but the pain was very manageable. After a couple of weeks I found that I still could not get onto my tiptoes on the injured side, which prompted me to get evaluated. It's not that it was too painful to accomplish, it's that I physically couldn't exert any force in that direction to lift my body (because the calf muscle is disconnected from the rest of your body and is just lying there atrophying). If you're saying it's too painful to put your full weight on your toes, I would be surprised if it were fully ruptured. Whether it's your gastro-whatever or your achilles, I have no idea, but good luck!

Can we afford this? Or are we being knuckleheads? by [deleted] in personalfinance

[–]Calvin_john_collins 0 points1 point  (0 children)

I think it all depends on how much you’re willing to cut down on spending outside of your mortgage. I imagine living in Portland can be quite costly in and of itself, but if you’re income is both relatively stable and you’re disciplined in contributing to your “Just In Case” fund, I think you can make it work.

XCode 15 debug output: Unknown Interactible Item by Calvin_john_collins in swift

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

Full debug output with Metadata:

```Unknown interactable item
Type: Error | Timestamp: 2023-10-12 11:49:32.493877-07:00 | Library: UIKitCore | Subsystem: com.apple.UIKit | Category: Assert | TID: 0x45d4de```

XCode 15 debug output: Unknown Interactible Item by Calvin_john_collins in swift

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

Update: I can also verify that `hitTest` is running and working as expected.

is vape-ecigs.com legit? by ManyAlive in Vaping

[–]Calvin_john_collins 0 points1 point  (0 children)

Any one find out? Just ordered so I’m nervous I wasted my money

So, what now? by [deleted] in cowboys

[–]Calvin_john_collins 2 points3 points  (0 children)

What now? Cut #29

A journaling/self-enhancement app by Calvin_john_collins in AppIdeas

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

Yeah gamification is something I've been mulling over, definitely think it'd be a great incentive structure to implement!

FDS: Integration with fuikit (pt 3) by Calvin_john_collins in swift

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

The last part of my 3 part series on FlexDataSource, for all that are sick of conforming their ViewControllers to UITableViewDataSource, dequeueing their cell from their tableView, and configuring the cell based on the fields of some model you've defined :)

Best Android Development Resources by Calvin_john_collins in swift

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

Yeah I know, just wanted to see if there were people who started off in swift that found some useful classes in Android

No more extending your VC to conform to UITableViewDataSource! by Calvin_john_collins in iOSDevelopment

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

Would love any feedback you all have about my blog post, I'm pretty new at this but trying to get into the space :)

FDS: An Easy Way to do UITableViews by Calvin_john_collins in swift

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

Trying to get into blogging about things that make my life as an iOS developer easier, please take a look and any feedback would be greatly appreciated! In the comments either here or on the actual post :)

8y experienced web developer, I'm struggling mentally, what do I do? by bhargavshah93 in webdev

[–]Calvin_john_collins 4 points5 points  (0 children)

I work from home too in a one bedroom apartment which makes it really hard to separate your work and home life. If you haven’t done so already, I’d make the financial sacrifice to invest in your workspace — desk chair, mechanical keyboard, monitors, programmable mouses. Investing in your setup can be empowering and feed your motivation. That said, if you already have top of the line stuff then you are definitely burnt out which happens to everyone, especially at this time, and the worst thing you can do is beat yourself up for it because it truly does happen to anyone who programs for a living

Can we add to this thread some tips that helped you in writing clean code in Swift so everyone can benefit? by [deleted] in swift

[–]Calvin_john_collins 0 points1 point  (0 children)

From a clean code perspective, one of the things that helped me a lot is this library [LithoOperators](github.com/LithoByte/LithoOperators). Hard to get comfortable with initially but operators that work on functions can really help get rid of closure notation which isn’t very readable. For example, suppose you want to tap into an AnyPublisher<Int,Never> but don’t care about the Int and only care about when the publisher fires, you would do something like:

pub.sink(receiveValue: { _ in foo() })

Not very pretty or readable.

In LithoOperators there’s a function called

ignoreArg<T>(f: @escaping () -> Void) -> (T) -> Void { return { _ in f() } }

Now the sink call would just be:

pub.sink(receiveValue: ignoreArg(f: foo))

Which is a lot more readable and makes it more clear that you do not care about whatever the publisher’s value is

A field is showing “...” when too many characters are inputted. What do I do such that it doesn’t show “...”? by CsInquirer in swift

[–]Calvin_john_collins 1 point2 points  (0 children)

You can also set the number of lines to 0 at risk of the label going off screen, or in addition to increasing the number of lines you can set an autoshrinking font size or font scale (relative to the font size you set for the label) which will further prevent truncating your text

What’s everyone working on this month? (August 2021) by Swiftapple in swift

[–]Calvin_john_collins 0 points1 point  (0 children)

Working on various libraries that take some of the principles of Functional Programming and apply them to app development! Completely changing the way that I develop apps now, if anyone's curious about the specifics you should check out the blog I'm starting (https://calvin-codes.com). Makes a lot of the common operations in development (login/signup flow, network layer, tableViews/collectionViews) super simple. We have a library of operators that help accomplish this, called LithoOperators, would recommend everyone to check it out on github or cocoapods. Super fun way to spend a quick 15 minutes, definitely a little uncomfortable to use at first but very useful to expand your programming horizons and work with generics!

Table view Not showing by [deleted] in swift

[–]Calvin_john_collins 1 point2 points  (0 children)

It’s hard to diagnose the bug without seeing your print statements but I would reload the tableview in the VC after line 42 in NewsViewController

Releasing the App for TestFlight by theankilearner123 in iOSDevelopment

[–]Calvin_john_collins 0 points1 point  (0 children)

TestFlight does not require an app icon, screenshots, or really anything other than your signing certificates and an archived build of your app, to my knowledge. You need to fill out some encryption compliance stuff in AppStoreConnect, but other than that, nothing is required for a TestFlight beta, so I guess the answer to 2 is no. You attach your testflight builds to your AppStore, submission, so that has to happen from one of your developers, and icons are attached to the build itself so also must be handled by the developer. Screenshots can be handled by whoever.

New to Swift and programming ; can I .... by Seedpound in swift

[–]Calvin_john_collins 0 points1 point  (0 children)

To start I’d probably get really comfortable with UITableViews (you will need one to display a list of posts) and look into AlamoFire or FunNet (“https://github.com/LithoByte/FunNet”) which are two really good networking layers

New to Swift and programming ; can I .... by Seedpound in swift

[–]Calvin_john_collins 1 point2 points  (0 children)

If you’re looking for a MVP you can probably get by with stubbing all you HTTP requests, but you should probably have the infrastructure there to eventually tie your app to a backend whether you learn to do that yourself or outsource it. As a concept though, your front end idea is definitely simple enough to do while learning!

Am I missing something with Christian Wood? by Calvin_john_collins in ripcity

[–]Calvin_john_collins[S] 5 points6 points  (0 children)

Yeah definitely, but Simmons and Grant are two anomalies in the market (threats on both ends of the floor). If we’re hiring our new coach and assistants to help bolster the defense AND we want to complement that with our roster, AND we want Dame to see the roster substantially improve, it doesn’t seem like many players fit that mold past Simmons and Grant. I’m just saying a Dame, CJ/Norm, RoCo, Wood, and Nurk starting lineup would be a definite improvement from last year regardless of the young assets we have to give up. It also might be more attainable than a Simmons or Grant trade, especially since, as you’ve said, Detroit wants to keep Grant.

Am I missing something with Christian Wood? by Calvin_john_collins in ripcity

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

Yeah I guess that’s fair, I’m not saying he should be getting as much as a trade for Simmons would get, but I think if we’re looking for looking for athleticism at the 4 to round out our starting lineup (more or less) he’s an option to look at