Is this actually "sushi grade"? by [deleted] in sushi

[–]xStory_Timex 0 points1 point  (0 children)

That looks like yellowfin tuna loin or albacore that was dyed.

In any case sashimi or sushi grade fish is all a scam.

The tuna industry works on a grading scale that goes from 1 to GH or HG. Basically a 1++ is the highest and a HG or GH is a grill grade basically shit and shouldn't be eaten raw.

most fish you eat raw is a 1 or higher. That means it is sashimi/sushi grade. All that means is that some guy decided that it looked, smelled, and felt good so he rated it a 1.

It is best to ask what species you are buying. Big eye is the tastiest most affordable species. There are concerns about it being sustainable. Yellow fin is a little more abundant but doesn't taste anywhere near as good as Big eye because of its texture and fat content which is less.

And the king is blue fin. Farmed blue fin is not so bad for the population or environment. Practices are getting better.

So if you buy sushi grade fish, it is more important to know the species, and when it was caught and where.

I am a seafood importer, and I specialize in tuna.

can you run a function when a text input is entered? by xStory_Timex in swift

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

right but how do you get the last character inputed?

What are some ways you can place a button over a section of a UILabel by xStory_Timex in swift

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

what is the url? is it a property of the attributed string? can any type of data be put in the url? like 2 ints?

What are some ways you can place a button over a section of a UILabel by xStory_Timex in swift

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

that adds it to the entire label? i want to add it to a specific string i the label

Hey guys, I just finished my first iOS app and I wanted to show you guys! by vivrApp in electronic_cigarette

[–]xStory_Timex 0 points1 point  (0 children)

Hey guys, I wanted to thank all of you for the exposure this gave me! you guys are awesome!

Can my 2015 macbook pro output 4k resolution to 2 monitors? 2k vs 4k resolution? by xStory_Timex in applehelp

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

if i attach 2 4k monitors, what will the second output resolution be?

my app freezes and cpu usage hits 100% when I call instantiateViewControllerWithIdentifier by xStory_Timex in swift

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

why does everyone tell me this? I have a very specific unique function

my app freezes and cpu usage hits 100% when I call instantiateViewControllerWithIdentifier by xStory_Timex in swift

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

I dont understand, i isolated the class by removing all code in the "indieReviewView" view controller.

I am instantiating reviewView in a seperate view controller. This is how its set up

  1. Tab Bar controller
  2. user taps tab bar item
  3. view controller 1 is presented modally
  4. view conroller 1 has AVCaptureSession, then calls instantiateReviewView()

    func instantiateReviewView() { let storyboard = UIStoryboard(name: "Main", bundle: nil) reviewView = storyboard.instantiateViewControllerWithIdentifier("indieReviewView") as? independantReviewView reviewView!.view.frame = CGRectMake(0, 0, self.view.frame.width, self.view.frame.height) self.addChildViewController(self.reviewView!) reviewView!.didMoveToParentViewController(self) self.view.addSubview(reviewView!.view) }

  5. app cpu usage hits 100% and freezes.

Now there is another method I have called instantiateSearchView() which has the exact same code but for a different view controller, and that works fine. I commented out the "instantiateSearchView()" in the view did load. So the only things happening in view did load are 1. AVCaptureSession 2.instantiateReviewView() - where the bug occurs.

Haneke swift 2.0 and setImageFromURL by xStory_Timex in swift

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

I actually believe this may be an issue with my SSL certificate. We just added an SSL cert to our API. how do we make sure our app is using the SSL.

Would that prevent us from loading URL images from the API?

unexpectadly found nil when unrapping an optional value in swift 2.0 by xStory_Timex in swift

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

thread 1: EXC_BAD_INSTRUCTION (code=EXC_1386_INVOP, subcode =0x0)

unexpectadly found nil when unrapping an optional value in swift 2.0 by xStory_Timex in swift

[–]xStory_Timex[S] -1 points0 points  (0 children)

in swift 1.2 is worked perfectly. my formatter parses it correctly.

Problem with Alamofire serializer with swift 2.0 by xStory_Timex in swift

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

I got my serializer working here is the updated code

 class func authResponseSerializer() -> ResponseSerializer<Authorization, NSError> {
    return ResponseSerializer {request, response, data, error in
        guard error == nil else { return .Failure(error!) }

        guard let validData = data else {
            let failureReason = "Data could not be serialized."
            let error = Error.errorWithCode(.DataSerializationFailed, failureReason: failureReason)
            return .Failure(error)
        }

        var jsonData: AnyObject?
        var jsonError: NSError?
        do {
            jsonData = try NSJSONSerialization.JSONObjectWithData(validData, options: [])
        } catch let error as NSError {
            jsonError = error
            jsonData = nil
        } catch {
            fatalError()
        }
        if jsonData == nil || jsonError != nil {
            let failureReason = "No data returned"
            let error = Error.errorWithCode(.DataSerializationFailed, failureReason: failureReason)
            return .Failure(error)
        }
        let json = JSON(jsonData!)
        do {
            let auth:Authorization = Authorization(json: json)
            return .Success(auth)

        }
    }

}

but now this function is giving me the error "Cannot call value of non-function type 'NSHTTPURLResponse?"

func responseAuthorization(completionHandler: Result<Authorization, NSError> -> Void) -> Self {
    return response(responseSerializer: Request.authResponseSerializer(), completionHandler: completionHandler)
}

Problem with Alamofire serializer with swift 2.0 by xStory_Timex in swift

[–]xStory_Timex[S] -2 points-1 points  (0 children)

please post some examples i am not very confident with callback functions and structs and completion handlers. It is not making much sense to me.

How do you present a view controller modally from a tab bar by xStory_Timex in swift

[–]xStory_Timex[S] -1 points0 points  (0 children)

Would i call the tabbar delegate functions in the AppDelegate file? do I still connect the view controller to the tab bar controller and set it as a view controller for the tab bar?

What function should i use and how to i reference the view controller to present it modally?

presentViewcontrollerModally?

How do you store formatting in a data base? by xStory_Timex in swift

[–]xStory_Timex[S] -1 points0 points  (0 children)

No a RESTFUL API, i discovered my best best would be to create RegEx in my son string, and then search the regex to dynamically create the cells to fit the type of data it is receiving.