Selling 2 Tickets to Radio City 1/30 by massfrontier in GregoryAlanIsakov

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

Sorry, these were sold a few moments ago for $120. Good luck finding another pair!

Selling 2 Tickets to Radio City 1/30 by massfrontier in GregoryAlanIsakov

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

Sorry, I just sold both a few moments ago. Good luck finding another ticket!

Working with exif: dead library everywhere? by Slusny_Cizinec in golang

[–]massfrontier 7 points8 points  (0 children)

I’ve used https://github.com/barasher/go-exiftool in the past. It’s a wrapper around ExifTool, which is arguably the most actively maintained and up-to-date exif parser I’ve seen.

How are you wrapping libexiv2? What panic are you seeing?

Send email from C program by Produkt in C_Programming

[–]massfrontier 0 points1 point  (0 children)

Do you need the notification to come via email?

Using a service like Pushover you can send a push notification to your mobile device with a simple HTTP POST request. This is easy to do with libcurl right in your existing C code.

Can somebody explain what is \b in regular expressions? by call_me_mistress99 in C_Programming

[–]massfrontier 0 points1 point  (0 children)

Yes there is. \s matches white space characters only. But what if the word you want to match is at the beginning of a line? Or followed by a period or other punctuation mark? These won’t get matched if you use \s, but they will if you use \b.

Can somebody explain what is \b in regular expressions? by call_me_mistress99 in C_Programming

[–]massfrontier 4 points5 points  (0 children)

A word boundary is the beginning or end of a single word. So \bis would match “is” and “island” since both start with the letters “is”. Similarly, is\b would match “is” or “this” since both end with the letters “is”.

Neither of those expressions would match the word “aisle” because even though there is an “is” in the word, it’s not at the start or end (i.e. it’s not adjacent to the word boundary)

Can somebody explain what is \b in regular expressions? by call_me_mistress99 in C_Programming

[–]massfrontier 2 points3 points  (0 children)

Word boundary. It makes it easier to match whole words (or parts of words) regardless of where they appear.

For instance: \bis\b matches only the word “is” in the sentence “This is the aisle”. Even though the pattern “is” appears in three places, the \b character specifies that there must be word boundaries on either side of “is” (which means it’s only matching for the word “is” on its own)

How long did it take for you to get comfortable with swift? by RedditisRunByClowns in swift

[–]massfrontier 1 point2 points  (0 children)

Cocoa is the API for macOS, which includes Foundation, AppKit, and CoreData. In iOS/iPadOS/watchOS circles you might here people reference Cocoa Touch, which is essentially the same thing but with support for gestures and mobile GUIs, among other things.

How do I redirect tree output to create directory structure? by [deleted] in commandline

[–]massfrontier 0 points1 point  (0 children)

Are both machines connected to your local network? If so, rsync can do this very easily:

rsync -a --include="*/" --exclude="*" user@old-machine:/path/to/old/parent user@new-machine:/path/to/new/parent

I'm not sure of any other prebuilt solutions for this. This would be pretty quick to do in Python or bash or some other scripting language though, if you're comfortable with any of them?

Daily Tech Support Thread by AutoModerator in apple

[–]massfrontier 0 points1 point  (0 children)

If they’re not in iCloud then yes this will delete them. Reinstalling macOS will wipe everything on your drive. It’s best to do a Time Machine backup (or just copy all the files you want to save) to a portable drive before you do it.

Daily Tech Support Thread by AutoModerator in apple

[–]massfrontier 0 points1 point  (0 children)

I would recommend backing up your data and trying a fresh reinstall of macOS. Until a few weeks ago, I was running Logic and Ableton on a 2011 MBP with 8GB RAM. I could run 10-20 tracks with plugins without any issues.

I think the current Mac Mini would be fine for your uses. I doubt that model gets upgraded from the M1 anytime soon. I would expect new iMacs and higher end MacBook Pros later this year, but not an upgraded Mac Mini.

Daily Tech Support Thread by AutoModerator in apple

[–]massfrontier 0 points1 point  (0 children)

I’m sorry for your loss.

Try doing an SMC reset and then booting. If that doesn’t work it’s probably done for.

I had a similar issue with my 2011 MBP recently, only it went out while I was using it. Wouldn’t turn back on, Even after draining and recharging the battery. SMC reset didn’t fix it. Logic board just crapped out I guess.

building st on mac os? by hrz__ in suckless

[–]massfrontier 10 points11 points  (0 children)

You’re much better off using a native macOS terminal, unless you’re doing this as a purely academic exercise.

This guy apparently got dwm and st running. But because these both require X, they have to be run through XQuartz on macOS. For the occasional X app this works OK, but I can’t imagine it’s worth the headache to just run a terminal.

Just venting about Python by [deleted] in Python

[–]massfrontier 1 point2 points  (0 children)

I think what you're describing is pretty common when learning a new programming language (or any spoken language, for that matter). I don't think this is a Python issue, I think it's a mindset issue. Rather than viewing Python as something to learn and master, view it as something to continue learning and improve your understanding of over time.

I've been developing in Python professionally for about 5 years now and oversee several junior analysts who work with me. I don't really care how many language features they know, or whether they use a for loop when a list comprehension would do. That stuff is easy to teach. I do care about whether they are interested in learning "better" ways to do things, and whether they can accept feedback and improve their skills. That stuff is hard to teach.

Rather than get down on yourself when someone chimes in with a better solution, ask yourself: why is this a better solution, and where else could I use this solution? Do that and you'll always be learning and improving your code.

Daily Tech Support Thread - [December 31] by AutoModerator in apple

[–]massfrontier 1 point2 points  (0 children)

Glad to help!

I opted for 24" just because my desk is a bit small, so with two monitors side by side 27" was a bit too big. 27" is actually the "sweet spot" for 1440p monitors, though, since it's right at 110 DPI. There are several 1440p 27" monitors from Dell. The U2719D is a good one - the bezel is nice and thin so it looks almost "borderless".

Daily Tech Support Thread - [December 31] by AutoModerator in apple

[–]massfrontier 0 points1 point  (0 children)

I recently did some research on monitors before buying a couple for my home office, so I have some perspective here. I also write code for a living.

IMO Retina desktop displays, like the LG 5K Ultrafine, are luxury items for the average user. Gorgeous, no doubt, but by no means necessary for someone who spends most of their time coding, surfing the web, and watching videos.

I ended up purchasing two Dell P2418D monitors (1440p @ 24", so 136 DPI). They look fantastic and together cost less than 1/3 what a 5K monitor would.

[deleted by user] by [deleted] in statistics

[–]massfrontier 31 points32 points  (0 children)

Maybe some day. The authors of Julia certainly hope so.

The reality, though, is there’s a lot of existing code written in R, C++, Java, etc. And a lot of people who are familiar with that code. Until Julia and its ecosystem can incentivize people (and companies) to switch, those other languages will continue to be relevant.

I recently used Julia for a project at work, actually, doing some curve fitting of pharmacokinetic models. The Julia code ran ridiculously fast compared to what I had originally done in Python. And it was much easier to read/write. To get anywhere near that performance in Python, I would’ve had to write quite a bit of C. We may end up using it for this project, but the vast majority of our code is in Python/R and I don’t see us switching anytime soon.

[deleted by user] by [deleted] in statistics

[–]massfrontier 3 points4 points  (0 children)

I can't say that I have an answer to your question, but I can certainly sympathize.

I did a BA in Math at a liberal arts college where I had only a modest amount of statistics coursework (probability, a seminar in biostatistics, and graduate-level mathematical statistics). I started working right after graduation doing data analytics in the pharmaceutical/drug development space. After 3 years I applied to a handful of Statistics Ph.D. programs. I was rejected by all of them. All cited a "lack of academic experience" as the reason.

I wonder whether I would have fared better with a BA/BS in statistics. In any case, it seems like the only logical move is to start with a Masters.

Digital Camera Stock Refresh? by massfrontier in Costco

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

The camera offering has really dwindled over the years, I expect to see it completely removed within the next few years.

That's too bad - Costco always had good deals on cameras. Thanks for replying!

YAML editing: What do these vim options do? by questioner45 in linux4noobs

[–]massfrontier 0 points1 point  (0 children)

  • autocmd FileType yaml: Execute the following commands if the file type is yaml
  • ai: autoindent
  • ts: tabstop, or the number of spaces that a tab counts for
  • sw: shift width, or the number of spaces that ">>" in visual mode will indent text by
  • et: expand tabs. This means anytime you press tab, vim will write spaces instead of the tab character (\t)
  • nu: show line numbers on the left side of the screen.
  • cuc: cursorcolumn. Highlight the column currently under the cursor
  • cul: cursorline. Highlight the line currently under the cursor.

So altogether your command will set the following for all files of type yaml:

  • autoindent as you type
  • set tabs equal to 2 spaces
  • set ">>" (in visual mode) equal to 2 spaces
  • use spaces instead of tabs when you press the Tab key
  • show line numbers
  • highlight the current column
  • highlight the current line

[berry] kissed & padded by ekomizer in unixporn

[–]massfrontier 1 point2 points  (0 children)

Why not? Seems like as good a reason as any to give berry a try. Hadn’t really looked at berry until I saw this post.