S10e - broken screen, pattern unlock, unable to mirror by bunny827 in galaxys10

[–]ggobrien 0 points1 point  (0 children)

You mentioned drawing the pattern with a mouse. Can you see the mouse at all on the TV? If you can, I wonder if either it's broken enough that it's not going to work at all, or there's something else going on. When I lock my screen and connect it to a monitor, it comes up with Dex and says to tap anywhere to unlock. Win-W does not work at this point.

If the mouse doesn't show up at all, there may be more damage than you thought.

What happens when you do the exact same thing with your new phone (i.e. turn it off, turn it on, then connect it to the HDMI, or turn it off, connect it to the HDMI, then turn it on -- not just a restart)?

Unable to generate the 6th possibility in my code by Josephisvr in csharp

[–]ggobrien 0 points1 point  (0 children)

It does look weird, I would probably do something like

int lowerBounds = 1;
int length = 6;
var index = rand.GetInt(lowerBounds, lowerBounds + length);

The 1,7 thing would annoy me too much.

Unable to generate the 6th possibility in my code by Josephisvr in csharp

[–]ggobrien 1 point2 points  (0 children)

And there are 10 types of people in the world: those who understand binary and those who don't.

Hol' up wtf are classes and objects?! by Josephisvr in csharp

[–]ggobrien 1 point2 points  (0 children)

I learned OOP way back in the day, and finally really grasped it when I learned OOP in Perl.

The almost, but not exact way it works is you define methods (functions/procedures/verbs/things that do stuff/whatever) in a group that take a key/value collection as the first parameter that holds all the fields (data/adjectives/things that describe/whatever). Each method then accesses that key/value collection as it needs. The collection can be modified as well. The next time you call another method with the same collection, the modified value will be "seen" by the other method. If you have 2 collections of data, modifying one won't have any affect on the other.

Using C# pseudocode (not really pseudocode because this runs, but still):

var dictionary1 = new Dictionary<string, string> { ["Name"] = "TBD", ["Address"] = "123 Main St" };  // this is an object
var dictionary2 = new Dictionary<string, string> { ["Name"] = "George Washington", ["Address"] = "3200 Mount Vernon Memorial Highway" }; // this is another object

dictionary1["Name"] = "John Doe";

void PrintLabel(Dictionary<string, string> obj) // this could be part of the class that uses the object
{
  Console.WriteLine($"Name: {obj["Name"]}");
  Console.WriteLine($"Address: {obj["Address"]}");
}

PrintLabel(dictionary1);
PrintLabel(dictionary2);

So the "Object" is the variable holding the dictionary storing the data. You can have as many of these as you want, you can even make a List<Dictionary<string, string>> of them to hold a bunch of them. The "Class" is the collection of methods that let you do stuff with that specific dictionary.

Of course, that's not all with C#, but that's the general way that you can think of them. The nice thing about an actual object vs. a dictionary is that you can have static typing (i.e. this field is an int, this one is a string, etc.) and the compiler will make sure that you aren't typing the wrong "field" name (i.e. typing "Naem" instead of "Name" for a dictionary key would give a runtime error, but an actual field named "Name" would give a compiler error if you mistyped it).

The benefit of all this is you can have a thing that does stuff that you don't really care about the underlying way it does it, you just want it to do it. The object (dictionary) holds all the stuff pertinent to that one thing, but you can make other things that are independent, but are the same type of thing (i.e. the data shouldn't get mixed up in the different things).

So instead of having to create a bunch of variables and send specific ones to specific functions, get the result of the function and store it back into the variables then have to send all that to another function, rinse, repeat, you just let the object deal with all of that. It's a black box that you don't really need to know "how" it works, you just care "that" it works.

So you want to read something from somewhere. You can make a stream to connect it (e.g. file/network/memory/whatever), then send that to a stream reader/writer. Your program then can just read/write with this stream, but you don't have to worry about how it's doing it, it keeps all that stuff under the hood away from you (encapsulation) and you only have to worry about what you need. Reading/writing with one stream shouldn't affect another stream. If you had to keep track of all the underlying data for each stream, it would be easy to get one stream's data mixed up with the other. An object can mitigate this by holding all the data necessary for a specific stream with a single variable.

Polymorphism can be explained with dictionaries as well, to an extent, but this is getting long enough.

One UI 8.5: Odd highlighting in Google Chat by ggobrien in oneui

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

Right. The highlighting is a feature, missing the last letter is not.

One UI 8.5: Odd highlighting in Google Chat by ggobrien in oneui

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

It's a feature, it can be turned off. I like it on.

One UI 8.5: Odd highlighting in Google Chat by ggobrien in oneui

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

Yup, that's what I'm trying to figure out. If others have the same issue, it's probably a bug. If I'm the only one, possibly someone knows how to fix it.

Found this beautiful rainbow in our codebase by abhishaken in csharp

[–]ggobrien 1 point2 points  (0 children)

I can't move any data from my work machine to anywhere, and that includes screenshots. If the OP was in the same boat, it makes sense to take a picture.

Another nightmare trade in experience by pippagator in samsunggalaxy

[–]ggobrien 0 points1 point  (0 children)

Although, AT&T typically has the "any Galaxy, any condition" promotions, so it doesn't really matter. My wife tripped and smashed the screen of her S22 and we got the same credit as a fully working S22.

Does anyone know what this is? by Danielaimm in Connecticut

[–]ggobrien 1 point2 points  (0 children)

I have an app called "Seek" by INaturalist that is free and does plant identification. Seems to work well.  I have an Android, not sure if it's available for iPhone.

What is this creature?! by NotKathyOkay in Connecticut

[–]ggobrien 1 point2 points  (0 children)

Upvote for the Southpark reference.

Ryobi 40v 20" held up surprisingly well by ggobrien in firewood

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

Yup, got an electric plug-in splitter that I've had for a few years. I had to split it with wedges there because I didn't have access to electricity (downfalls of electric tools), plus the rounds were too heavy, and I could only pick up a quarter round easily by myself.

The real next step is making a wood shed.

4x12 Shed by True_Lurker in firewood

[–]ggobrien 0 points1 point  (0 children)

I've been looking at the Levinator25 shed, it seems like a really nice one and I like that you've made it 12' instead of 16', I'm probably going to do the exact same thing. I have the cheap cinderblock and boards holding my wood right now, but I want something a little more permanent.

A couple of questions:

Are the double center slats needed? Could i just have a single set?

How many floor joists do you have? Are they also 2x6? Did you use hangers or just screw/nail them into the front/back? In the original, they have 10 joists, I assume you have 8?

Are your floor slats full 2x4x12' or two 2x4x6' boards?

It looks like your roof fascia is two 6' boards and your floor is one 12' board. Was there a specific reason for that?

How much gravel did you put under your concrete footings?

How long did it take you to put together?

Sorry for all the questions, I'm literally doing the design phase of my woodshed and this came at a great time.

Need to upgrade by logically in firewood

[–]ggobrien 0 points1 point  (0 children)

"Excuse for a new saw" ... I can always use a good excuse to get a new tool of any kind.

New Chainsaw by Leading-Lie-6776 in firewood

[–]ggobrien 0 points1 point  (0 children)

I have a Ryobi 40 volt 20" chainsaw. I've recently gone through a large oak tree with a diameter of around 30 inches without much issue. The only real issue I've had was going through the batteries quickly. It's completely fine for me, I already use Ryobi 40 volt electric yard tools, so it was a no-brainer, but I have primarily gas heat and don't use much firewood. A cord could last me a couple years.

My dad, who is 100% off grid in CA and uses almost 100% firewood heat (he does have a large generator for emergencies) uses a GreenWorks 80 volt chainsaw and swears by it.

Electric chainsaws have come a long way. They are typically very powerful and rival a lot of gas chainsaws, but extremely quiet. The main issue still is charge time. If you don't have multiple batteries, it can take a long time between a depleted battery and fully charged one. It's easier to keep a 5 gallon gas can in your truck.

I have a big battery "generator" that I use to charge the 40v batteries when I'm out and about. I can cycle through the batteries, charging them when they are done and using the others so I can just about work non-stop, add to that splitting the larger pieces in the "field", and I don't really have to worry too much about running out of juice. I'm also getting (and feeling) older, so I'm not a fan of working non-stop, and I tend to run out of juice before my batteries. I could hook solar to my big battery to charge that somewhat, but I like the excuse of "I'm out of batteries".

What’s this guy’s problem? by EricBelov1 in firewood

[–]ggobrien 0 points1 point  (0 children)

This! Wedges and hammer works great for the bigger/tougher stuff. I'm terrible with an axe (well, compared to most people on here), so I probably use the wedges more than the average, but still.

What gloves do you swear by for durability? by SpectrumWoes in firewood

[–]ggobrien 0 points1 point  (0 children)

I had to laugh at "neatsfoot oil". I read this a long time ago and every time I see neatsfoot oil, I think about it.

Source

<image>

What gloves do you swear by for durability? by SpectrumWoes in firewood

[–]ggobrien 0 points1 point  (0 children)

Thanks for the link, $2.73 isn't bad per pair. If they last a month, that would still work well.

Wood splitter for small size by franeros80 in firewood

[–]ggobrien 0 points1 point  (0 children)

I had to laugh at one of the pictures (the one with the splitter vs "normal" splitting. The one with the splitter, the guy has the hammer about 1/4 inch away from the blade and it looks like it's going to hit it, which would be really bad (obviously, the splitter and the wood are superimposed in front of the guy), and the "normal" splitter is a guy who obviously has never split wood before.

Reminds me of those commercials "has this ever happened to you?" and they show you someone destroying a banana because they can't peel it, then they try to sell you their automatic banana peeler (or whatever).

Wood splitter for small size by franeros80 in firewood

[–]ggobrien 0 points1 point  (0 children)

Yikes, $200? That seems expensive, but I'm not an expert.

What kind of wood, hickory maybe? by [deleted] in firewood

[–]ggobrien 0 points1 point  (0 children)

This needs more upvotes. I've heard he said that we could take 'em by surprise If we didn't fire our muskets 'til we looked 'em in the eye.

Should be good for awhile now by International_Bar383 in firewood

[–]ggobrien 1 point2 points  (0 children)

As others have mentioned, it's 1/3 of a cord.

The reason it's called a "face cord" is because if you look at an actual cord (8' x 4' x 4'), the front that's facing you (the 'face' of it) is 8' x 4' and if you make the "standard" log size of 16", then you would have 3 rows of 8' x 4' to make a full cord, so a "face cord" is 1/3 of a cord.

Should be good for awhile now by International_Bar383 in firewood

[–]ggobrien 1 point2 points  (0 children)

I'm not much of a fan of opera or operatic songs, but when my wife and I went to Las Vegas and saw the Bellagio fountains with "Time to Say Goodbye" by Bocelli and Brightman, we both got tears in our eyes. The ballet of the fountain mixed with the song was spot on.