@GeekAndDad@mastodon.social
@GeekAndDad@mastodon.social avatar

GeekAndDad

@GeekAndDad@mastodon.social

The Dad of GeekAndDad, Mac & iPhone programmer, Maker.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

schwa, to random
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
  • GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa Neat! What light is that?

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa Thank you. I have negative to scan and my unused Epson V370 scanner has some kind of fogging on the inside surface of the glass so I have to figure something else out (apparently the anti-reflective coating they used on them degrades with time - even in storage :-/ ).

    schwa, to random
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel @schwa I do feel like there are benefits to that though (except documenting action environments like sports or whatever). Slow down, look carefully, and compose the shot.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa @pixel I do not, but that is included in “action environments” :-)

    GeekAndDad, to random
    @GeekAndDad@mastodon.social avatar

    Renewed one and letting the others expire… tomorrow! https://mastodon.social/@GeekAndDad/112317519815569088

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa 😂

    notice it wasn’t “yesterday”… there’s still time to slide backwards 😜

    rafa, to random
    @rafa@mastodon.design avatar

    Anyone has recommendations for a nice soldering kit?

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @dxzdb @rafa @bigzaphod I use a nice Hakko. Works well. I’m not interested in a programmable battery operated pencil because I don’t need to play Doom on my soldering iron and battery powered stuff lasts less long than plug into the wall in my experience.

    This one: https://www.adafruit.com/product/1204

    Plus more tips and flux and so on.

    Can spend more on fancier ones but this well enough for me.

    schwa, to random
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa Art!

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa Looks nice and grainy :)

    pixel, to mentalhealth
    @pixel@social.pixels.pizza avatar

    Swift debugging driving me nuts. #helpMe

    I have a multiline file that I’ve loaded into a string using String(contentsOfFile:encoding:)

    I'm trying to split the string using “someString.components(separatedBy: "==========\n“)

    But it... just doesn’t. I know that particular string does exist in the file multiple times.

    If I change the separator to just a linefeed it does split the file into 1600 items just fine. So for some reason it's not finding the "==========\n“ ?

    I'm stumped.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel Would “=\n” work?

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel Guessing the equal signs are different Unicode than you are typing into the source.

    Also wondering about a nonbreaking space or something between the = and the newline.

    Only other idea is escaping the “=“ (shouldn’t need to that I’m aware of but ¯_(ツ)_/¯). So:

    “=\n”

    But that seems very weird.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel What value are you using for encoding:?

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel I was going to recommend looking at it in BBedit :)

    Possible the editor is converting the character (normalizing it or something?) or the clipboard isn’t transferring it without conversion.

    I’d next hexdump the file and look at the bytes.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel oh doh!

    separatedBy: takes a CharacterSet, not a string constant.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel oh, no, there’s another definition in the protocol on a generic T. my bad.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel Using your test file gist pasted into BBEdit doc works for me.

     let s = try String(contentsOfFile: "/Users/dad/Downloads/testfile.txt",  
     encoding: .utf8)  
     let lines = s.components(separatedBy: "=\n")  
     print( "\(lines.count)")  
    

    -> 4

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel In Xcode Version 15.2 because macOS 13.6.6 on this M1 MBP.

    I’m in a macOS SwiftUI app because that was the easiest to do a quick test in for me,
    so import SwiftUI at the top.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel Just for giggles, try changing to NSString?

    // let s = try NSString(contentsOfFile: "/Users/dad/Downloads/testfile.txt",  
    // encoding: NSUTF8StringEncoding)
    
    and the rest?
    
    GeekAndDad,
    @GeekAndDad@mastodon.social avatar
    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @krzyzanowskim What Xcode/Swift are you using? (15.2, Swift 5.9.2 here).

    Starting to wonder if @pixel is on an alpha Xcode or something weird like that…

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @pixel Any luck with this?

    bigzaphod, to random
    @bigzaphod@mastodon.social avatar

    You may not like it, but this is what peak performance looks like.

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @bigzaphod There are a number of creative ideas to find something in the middle before ordering a PCB (though that’s getting a lot easier and cheaper according to folks I follow who do it regularly).

    Some examples: https://www.crowdsupply.com/ben-wang/perf-2

    But this is the most amazing one (they’re working on a new version with improvements):

    https://github.com/Architeuthis-Flux/Jumperless

    GeekAndDad, to random
    @GeekAndDad@mastodon.social avatar

    @schwa does the F2 have a film advance override button? Lets you wind the film advance so you can press the shutter again but it disengages the sprockets so the film doesn’t advance. Allows doing double exposures which can be fun :) (see linked post).

    Just another play item for your film camera fun. https://indieweb.social/@alwirtes/109337175618649191

    schwa, to random
    @schwa@mastodon.social avatar

    deleted_by_author

  • Loading...
  • GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa Had to go read what this was and read that it was built in to view cameras since the early days of photography and came to smaller format cameras in the 1960s.

    So now I’m curious if you have a lens for a DSLR you are using or if this is a digital effect.

    Thanks for introducing me to a new-to-me photographic thing!

    GeekAndDad,
    @GeekAndDad@mastodon.social avatar

    @schwa LOL - Looks like you dropped and broke it! that’s indeed “wild” looking.

    Sounds like a fun thing to play with.

    Thanks.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines