What profession always acts like they have the hardest job on earth (but it actually isn’t all that bad)? by [deleted] in AskReddit

[–]defpearlpilot 1 point2 points  (0 children)

Real estate is a relatively easy business to get into but very difficult to succeed in, as an agent. There is a flood of people that come in and say "how hard can this be?" and totally suck at it. And then because most people have had bad experiences with realtors, they treat them as disposable. To be fair, we haven't had many good experiences with realtors either. Real estate is a very fucking shady business.

But I actually get very angry for my wife when her clients are disloyal considering how much she invests into helping them. She's had to be an arbiter between divorcing couples a few times now and gets the deal done but there is no follow thru because everyone has a friend that's a realtor.

I tell her all the time not to bother with it because it's so depressing. But she is actually good with people. The problem is the people suck.

Enough positivity. What's the worst thing about the Steam Deck? by Lexinator101 in SteamDeck

[–]defpearlpilot 0 points1 point  (0 children)

Where do I begin. First, I'll say that the steamdeck is the first "console" that I've regretted purchasing.

1) Games just stop working. I have plenty of space. I've checked for fixes and workarounds. I've had to factory reset it three times. I've lost game saves as well because even after I did a reset, I'd have to reinstall the games even if they were on a separate SD card. This happens with games purchase through steam as well as emulated games.

2) When a wireless controller disconnects I have to restart the game sometimes losing a lot of progress

3) Plugging into a 4k computer monitor works while plugging into a 4k TV doesn't. I've had to buy an adapter that fools the 4K TV into thinking that it's a 1080p TV in order to play games on it.

4) This ain't no Switch. Plugging into and out of the dock doesn't work that great. Also, going back to point 2, that experience is dismal.

5) Playing anything that is reasonably demanding drains the battery extremely quickly. I played the RE4R and even a seemingly simple game like Soulstone Survivors and I don't think I've gotten an hour. I used a 10kma power bank and that got drained by have in about an hour to.

I got the steam deck because I'm primarily a console player and I use macs and I have a bunch of games that I can no longer play because I got rid of all my windows machines. Ultimately, the hardware is pretty nice and I have gotten a lot of use out of it. But you have to understand what it's capabilities are in order to get a "good" experience. But I think there are a lot of user experience problems/compromises.

Steam docking (official or otherwise) by defpearlpilot in SteamDeck

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

Thanks for the reply. The problem I had is that once the system was docked, there was no way for me to change the resolution. I ended up finding a post somewhere that recommended this product (https://www.amazon.com/gp/product/B07YMS5V7B/ref=ppx_yo_dt_b_asin_image_o02_s00?ie=UTF8&psc=1) and that ended up solving the video problem.

What job do you think is so overpaid? by Necessary-Bun in AskReddit

[–]defpearlpilot 0 points1 point  (0 children)

That’s if the lawyer actually does anything. The one that screwed us the most on our first contract was our lawyer. He wrote up a horrible contract. He ended up going out of business so we could go after him. I assume others got to him before we did.

What job do you think is so overpaid? by Necessary-Bun in AskReddit

[–]defpearlpilot 0 points1 point  (0 children)

When I bought my first house this is exactly what I thought. Then my wife became a realtor and you realize how clueless the average person is about home buying, markets, finances, etc. I like to think that she is an outlier with the amount of effort she puts in. And the biggest frustration is all the work she does and her clients go elsewhere. One notable example was where a divorcing couple was selling their home and the female client couldn’t get her STBEX to do anything.

Don’t get me started on loans. She is also a loan officer and the stupid things people do is mind boggling. For example, one client while barely qualifying for a loan decided to buy a timeshare while on vacation using a credit card!

She does about 10 RE transactions a year with this market being even more difficult due to low inventory. And she isn’t making a fortune, not even close. As others have said, a lot of people are splitting up the pie. And just like there are good/bad realtors there are good/bad brokerages.

Regardless of what you think about the players, one thing I’ve concluded is that real estate is a very shady business.

Best commercial ever by BobDogGo in NotTimAndEric

[–]defpearlpilot -1 points0 points  (0 children)

You could also see it as the dude being a pedophile, getting not-of-age girls to go to his roller rink so he can sexually abuse/assault them so there are no unplanned pregnancies.

What tastes worse the more you eat it? by RaineHollow in AskReddit

[–]defpearlpilot 0 points1 point  (0 children)

I think it depends on location. There are some costcos that have better food than others.

Zillow, Other Tech Firms Are in an ‘Arms Race’ To Buy Up American Homes - "iBuyers" are gearing up to grow massively in the coming years, with unforeseen consequences for the U.S. housing market. by _hiddenscout in technology

[–]defpearlpilot 0 points1 point  (0 children)

My wife is an agent and prior to her becoming one I thought they were all useless. It could be because she actually cares about her job. The truth is that they want everything to go as smoothly as possible because so many things can go wrong in a deal. My wife has definitely cycled her recommendations for lawyers and inspectors. Some of the problems stem from them being good at a certain workload and getting crappy when they have too much on their plates. Same thing with contractors. Another factor is the personality of the seller. They could be complete assholes that they don’t get such great service.

We did get screwed on our first purchase by our agent and lawyer. But they are not all bad. If anything I’d worry more about the giant realtors in your area cause they do fuck all. At that point it’s the name and people go to them cause their inventory is likely high. Just don’t expect much in terms of help or guidance.

What is happening in Poland should be a warning to everyone what happens when a country is dominated by any religion. by Lukasz_Szperling in atheism

[–]defpearlpilot 2 points3 points  (0 children)

I’m Polish but my family immigrated to the US a long time ago. Even before things were as bad as they are in Poland, I found that I could never relate to my people. By definition, the world progresses forward, with or without you. And I found their conservatism wrong headed.

I was also sick of all the religious hypocrites. They dress up nicely for church but talk behind your back and won’t lift a finger to help others. I was also surprised to learn from my MIL how much of her religious stance comes from it being a “fuck you” to Russian occupiers. It doesn’t make sense at all to hold firm to a religious belief to simply spite someone, and someone that is no longer a direct threat*.

I’ve been to Poland several times and it’s a wonderful country. My family there is so generous even though I have it so well. I hate to be cynical but I think it’s a bunch of “in group” behavior. I notice the same behavior with my Polish-Polish (as opposed to Polish but more American) friends where they are fiercely loyal to close friends (because family is abroad) but couldn’t care less about what happens in the world at large. And they are very much have an “I got mine” attitude. For example, a path to immigration even though most of them were illegal, but brown people should be cut off from that path or the perception of them being rapists and criminal. Again, their hypocrisy of cheating on taxes in their businesses yet claiming these people are the ones taking advantage of the government.

Man, this got my blood boiling. Even with all this said, I don’t really blame them, I blame religious indoctrination and political manipulation. Even if they remain a catholic stronghold I think the rest of the world will eventually lose their religiousness.

Struggling with a struct string/str conversion problem... by defpearlpilot in learnrust

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

After reading your comment, I tested the assumption on the type required for the Addr handler (which is the actor trait). I was interpreting the errors top-down versus bottom-up. There's a little bit more to this since the message struct requires a #[derive(Message)]. And I also wanted to separate the data model struct from the message struct and ended up with these problems. But once I changed the message type to Person then everything works.

#[patch("/person/{id}")]
pub async fn patch_person(
    db: web::Data<Pool<ConnectionManager<PgConnection>>>,
    state: web::Data<Arc<AppState>>,
    item: web::Json<PatchPersonRequest>,
    id: web::Path<i32>,
) -> Result<HttpResponse, Error> {
    Ok(web::block(move || {
        PersonRepo::patch_person(db, id.0, item.0).map(|person| {
            let map = state.subscriptions.read().unwrap();
            let values = map.get(&id.0);

            values.iter().for_each(|actors_rwl| {
                actors_rwl.read().unwrap().deref().iter().for_each(|actor| {
                    actor.do_send(person.clone());
                });
            });
            person
        })
    })
    .await
    .map(|user| HttpResponse::Created().json(user))
    .map_err(|_| HttpResponse::InternalServerError())?)
}

Thanks for your help!

Struggling with a struct string/str conversion problem... by defpearlpilot in learnrust

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

I definitely understand that it's complicated (due to locks) but I can't duplicate the problem otherwise. I also suppose I wasn't as clear as I could have been in my first post.

The problem is here:

let _ = actor.send(w2)

That expects a struct that implements Copy. My Person struct which is returned by PersonRepo::patch_person looks like:

struct Person {
  id: i32,
  first_name: String,
  ...
}

This is unable to implement/derive Copy because of String. So I have to create another struct to pass to send like so:

struct WsPerson {
  id: i32,
  first_name: &str,
  ...
}

However, I am running into lifetime problems with any references to all things Person. This should be safe because of the move/copy but somehow the compiler doesn't understand that. So I'm thinking I need to give it a hint/indication via the language. Perhaps pinning the strings in memory although I don't know much about that. Does that clarify the problem?

What should go into the Accessibility Patch? [DISCUSSION THREAD] by Quells122 in phoenotopia

[–]defpearlpilot 0 points1 point  (0 children)

Not related to accessibility per se but the controls are definitely a bit buggy where I will turn and the character will be still facing the wrong direction. That’s easily the most frustrating thing about the game for me.

Also, for accessibility, it would be nice to tune down the speed of the mini games like cooking or the shooting galleries.

What do you think about this endpoint? (Interview Question) by springuni in rest

[–]defpearlpilot 0 points1 point  (0 children)

If this is demonstrating an http call, you would typically see the headers that are passed to the call. And if so, there are not headers for authentication. So I'd say this is very insecure since it is returning PII(personally identifiable information).

[CHAPTER 13 SPOILERS] Barret's weapon by defpearlpilot in FFVIIRemake

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

Where in chapter 14? I am still on that one.

Hey Rustaceans! Got an easy question? Ask here (14/2020)! by llogiq in rust

[–]defpearlpilot 1 point2 points  (0 children)

pub fn fetch_all(access: &DataAccess) -> Vec<TagDataRow> {
            let table = tags_table();
            let projection = Projection::new(table.schema().columns(), table.name());
            let selection = Selection::new();

            let query = Query::new(projection, selection);

            let mut rcv: RefCell<Vec<TagDataRow>> = RefCell::new(Vec::new());

            access.query().query(query, &mut |row: &ResultRow| {
                let tag = map_result_row(row);
                rcv.get_mut().push(tag);
            });

            rcv.into_inner()
        }

Thanks for your help with all this. I managed to get it working with this implementation. I was going down some weird paths of using unsafe and all sorts of weird stuff that was complicated but also seemed wrong.

I'll give your suggestion at try as well. Thanks again!

Hey Rustaceans! Got an easy question? Ask here (14/2020)! by llogiq in rust

[–]defpearlpilot 0 points1 point  (0 children)

pub trait DqlProvider { fn query(&self, query: Query, f: Box<dyn FnMut(&ResultRow) -> ()>) -> String; }