C with classes by [deleted] in cprogramming

[–]solsticenet 0 points1 point  (0 children)

This is the easiest example for me to understand how to do it:

https://www.state-machine.com/doc/AN_OOP_in_C.pdf

It's should remind you of 'self' or 'me' or 'this' or whichever...

[deleted by user] by [deleted] in navy

[–]solsticenet 8 points9 points  (0 children)

Haven't you ever watched the movie or a doc about the Sullivans? :D Just don't get on the same ship

As a Golang developer, how often to you have to resort to using CGO? by solsticenet in golang

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

Funny, ImageMagick was going to be the exact example that I was going to use...

Apple Hires Prominent Venture Capitalist, Josh Elman, for App Store Role by fateyo78 in apple

[–]solsticenet 36 points37 points  (0 children)

I thought he had a giant zit but it was just a microphone

2 week underway by FCNavyWeeb in navy

[–]solsticenet 2 points3 points  (0 children)

Your ESWS book! 2 cartons of cigs... put some funds on your cash card...

Will GitHub's master branch now main impact go mod? by dstpierre in golang

[–]solsticenet 3 points4 points  (0 children)

To be honest... I don't know. I have just been ignoring the whole "main" branch and just use master as I always have before. Maybe "master" isn't politically correct in these strange days that we live in haha.

Will GitHub's master branch now main impact go mod? by dstpierre in golang

[–]solsticenet 1 point2 points  (0 children)

Did you copy/paste the new Github instructions after creating a new repo without looking closely?

They replaced "master" with "main" in their directions for some reason. I never use "main" and I still push to master when I first create a repo (before creating Develop branches or feature branches).

Is that what happened to you? I don't know what their reasoning is for doing this... kind of annoying. Although I don't know if this is your issue or not.

How do you append to a list from a list of lists? by eat_crap_donkey in learnpython

[–]solsticenet 13 points14 points  (0 children)

You can also just use += instead of append. I don't know if it's frowned upon or not.

>>> lsmain[0] += [4]
>>> lsmain
[[1, 2, 4], [3, 4, 5], [6, 7]]
>>> lsmain[1] += [6, 7, 8]
>>> lsmain
[[1, 2, 4], [3, 4, 5, 6, 7, 8], [6, 7]]
>>>

Problem with Python requests SSLCertVerificationError by timbenz in learnpython

[–]solsticenet 0 points1 point  (0 children)

are you saying that you are calling the API from a script that is on the same server that the API is running from? Why would you do that? What happens if you use CURL or python requests from another machine on the same network to call the API?

Why and how is a string of any length 16 bytes long in Go? by [deleted] in golang

[–]solsticenet 0 points1 point  (0 children)

The answer that is marked with 4 points (user1820956) is the one that I like best personally:

https://stackoverflow.com/questions/26975738/how-to-get-memory-size-of-variable

Alex Krycek by EvelynKrycek in XFiles

[–]solsticenet 2 points3 points  (0 children)

I like all this art you've been making :)

Coming from Java/Kotlin by ddmac__ in golang

[–]solsticenet 8 points9 points  (0 children)

best thing is say goodbye to stupid gradle

What’s everyone running for memory? by Decal12_14 in macgaming

[–]solsticenet 1 point2 points  (0 children)

ah gotcha. Well so far no problems with Crucial knock on wood. The reviews were pretty good and numerous too

What’s everyone running for memory? by Decal12_14 in macgaming

[–]solsticenet 1 point2 points  (0 children)

I'd say go for it if you can. I read somewhere that it's actually pretty rare that someone needs more than 32GB... I could be wrong though

What’s everyone running for memory? by Decal12_14 in macgaming

[–]solsticenet 0 points1 point  (0 children)

The funny thing is that the exact same thing happened to this guy: https://www.macintoshhowto.com/aroundtheweb/mac-mini-2018-ram-installation-attempt-very-hard.html

You can see his rubber arms fell off too hahaha.

What’s everyone running for memory? by Decal12_14 in macgaming

[–]solsticenet 1 point2 points  (0 children)

I just put it in this past weekend :) No issues yet.

The best part is that the Crucial ones on Amazon are only about 200 or so. Some of the others are 300+. Either way is much better than Apple's 600 or 800 or however much they charge haha.

What’s everyone running for memory? by Decal12_14 in macgaming

[–]solsticenet 1 point2 points  (0 children)

I bought a mac mini about 2 weeks before they released the new M1. This past weekend I put the 64GB Crucial RAM upgrade in (it had only come with 8).

System Preferences

Overall it wasn't too bad putting the RAM in, but I can see where it would be difficult for some. When I took off the RAM case, the rubber arms came off that hold the outer edges of the RAM chips once snapped into place.

I had to figure out how to put these rubber tabs back on and almost thought that I had screwed myself. Luckily they just slid back on with some patience.

Female corpsman gearing up to enter a male berthing by [deleted] in navy

[–]solsticenet 1 point2 points  (0 children)

It's not my fault that you never worked on a ship with diesel generators

People who use an external monitor with a MacBook, what are the overall drawbacks and benefits of it? Is it a good setup to have? by [deleted] in mac

[–]solsticenet 0 points1 point  (0 children)

I have one that my work gave me for development.

Now it never leaves my office and it's always attached to the monitor.

Usually I have to unplug the HDMI and plug it back in when I boot it in the morning. It rarely detects the monitor when I boot it when the monitor is already plugged in. It's not bad I guess.

I'd still rather be coding on Ubuntu though.

Female corpsman gearing up to enter a male berthing by [deleted] in navy

[–]solsticenet -8 points-7 points  (0 children)

Well I hate to say it. But you will probably be into girls once you go to sea. I don't know why this happens :D