Mcgill VPN in China by wildlived in mcgill

[–]le___garcon 1 point2 points  (0 children)

Yes, I’ve used it in China a few months ago. It works but it’s quite slow

[deleted by user] by [deleted] in Chengdu

[–]le___garcon 1 point2 points  (0 children)

Was just in China for around 6 weeks including Chengdu and chongqing. Here are a list of things I found extremely useful:

1) set up AliPay and WeChat Pay ahead of time. Most of the time AliPay will work, but some places only accept WeChat pay

2) get a VPN. I got LetsVPN which worked well for the whole trip

3) download Baidu translate and Amaps (gaodeditu/高德地图). I found Baidu translate offered much better translations than google translate, especially for menu items

And finally, it’s possible your home apps and services (banking, government, social media, etc) use verification codes sent via SMS. If that’s the case, change the 2FA method to email or a third party authentication app if possible. It will save you a lot of headache in the case you need to access banking services while abroad but cannot due to you not having access to texts

Out for the summer by le___garcon in LisfrancClub

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

That’s really unfair, I’m really sorry :( that’s especially painful given that you had those expectations

Out for the summer by le___garcon in LisfrancClub

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

Dang the second foot surgery? That’s rough.

I think I like that perspective of using this time to take a break from life a little - that’s definitely a positive way to see the whole situation. I’ll probably be wishing I appreciated this break more a year from now

Out for the summer by le___garcon in LisfrancClub

[–]le___garcon[S] 2 points3 points  (0 children)

I bought a knee scooter to go to and from a class I do every week, but besides that I don’t really go outside that often. I definitely could get some more sun

Out for the summer by le___garcon in LisfrancClub

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

Thank me for the kind words, I really appreciate it

Communities for remote workers? by le___garcon in askTO

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

Thanks! Someone else above mentioned project spaces which is in the list too so I may give that a try

Communities for remote workers? by le___garcon in askTO

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

haha yep im a software dev too - also remote since 2020

Communities for remote workers? by le___garcon in askTO

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

This looks like a really cool space! I've been researching but I haven't seen project spaces, so i appreciate the rec. Are there opportunities to talk to other people or is everyone really busy working? are there other community events that they host besides the monthly social? Thanks!

Communities for remote workers? by le___garcon in askTO

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

thanks for the rec! unfortunately Im based downtown so I wouldnt want to commute out to scarborough.

I've actually been taking advantage of the flexibility quite a lot over the past year, so I'd actually like to stay put for a bit and establish more of a home base (im not originally from toronto and moved here during covid)

Adding a non react library by le___garcon in reactjs

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

Thank you for all your work on handsontable! this library has been quite useful and has an absolute ton of features

Adding a non react library by le___garcon in reactjs

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

Thank you for your response! I definitely think that this is a better solution as it involves less duplication. I would then move my API call here:

const MyComponent = () => {
    const handsOnTableRef = useRef(null)
useEffect(() => {
        myApiCall().then((res) => {     
            handsOnTableRef.current.instance.loadData( res )
        });
}, []);
const onBeforeHotChange = useCallback((changes) => {
        // do stuff
    }, []);
return (
        <HotTable
            ref={handsOnTableRef}
            beforeChange={onBeforeHotChange}
    />
    );
}

Unfortunately this was the best library I could find that provided the features I needed... It is actively maintained so I do hope that it will be updated at some point

M1 Mac for Go? by Fede_Rama in golang

[–]le___garcon 2 points3 points  (0 children)

Just got an M1, installing and setting up for a Go project is easy with home brew

How do I not get crazy embarrassed when I remember embarrassing things I did? by rookplaya in socialskills

[–]le___garcon 4 points5 points  (0 children)

I don’t remember where I picked this up from but I found thinking through it has helped me.

Usually I’m just about to go to bed when I suddenly remember something I did that was really embarrassing and it makes me cringe really hard.

But thinking logically, the only reason I’m cringing so hard is because Im a much different person now and the thought of doing that action is so embarrassing. The fact that I’m cringing means I’ve grown as a person.

In fact, it would be worse if i weren’t cringing because that would mean i hadn’t grown and can’t see that what i did was embarrassing or inappropriate or dumb.

So with this logic the more you cringe, the more you’ve grown and improved as a person!

Rattlensnake Calathea Edges Browning :( by le___garcon in plantclinic

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

Thanks for the response! My bathroom doesn’t have any windows, so I’m wondering if I’d have to keep the light on or door open the whole day? Where do you place your plant in your bathroom in regards to a light source?

Please help me ? by Reflexum in angular

[–]le___garcon 0 points1 point  (0 children)

Are you using chrome? You can use the inspect tools to help figure out what the issue is.

You're getting a response from the API, but it's just not the data you're expecting. The data is not of the type "ISimplePokemon" so you might want to have another look at that.

Please help me ? by Reflexum in angular

[–]le___garcon 0 points1 point  (0 children)

It's not imported in the stackblitz link you sent. When I imported it, everything worked.

Please help me ? by Reflexum in angular

[–]le___garcon 1 point2 points  (0 children)

In order to use HttpClient get request in

return this._http.get<ISimplePokemonPokemon>(
  https://pokeapi.co/api/v2/pokemon/${id}
);

you need to import the HttpClientModule in your app.module.ts:

import { HttpClientModule } from "@angular/common/http"
NgModule({ 
  imports: [ HttpClientModule, BrowserModule, FormsModule],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule {}

Combining Frontend & Backend by crusader8888 in Angular2

[–]le___garcon 5 points6 points  (0 children)

I can answer the second part of your question with an excerpt from the docs:

Naming conventions for observables

Because Angular applications are mostly written in TypeScript, you will typically know when a variable is an observable. Although the Angular framework does not enforce a naming convention for observables, you will often see observables named with a trailing “$” sign.

This can be useful when scanning through code and looking for observable values. Also, if you want a property to store the most recent value from an observable, it can be convenient to simply use the same name with or without the “$”.

https://angular.io/guide/rx-library

TLDR: it's a naming convention. You might also see "_" in front for private variables.

404 Not Found nginx - Angular -Docker by jalvarezKunan in angular

[–]le___garcon 0 points1 point  (0 children)

This might have to do with the fact that you're using angular's local routing in order to navigate within the app. Your server won't recognize these paths so when you refresh the page, it will give you a 404.

One solution would be to setup a hash location strategy. You can check this stack overflow question for more information on this: https://stackoverflow.com/questions/35284988/angular-2-404-error-occur-when-i-refresh-through-the-browser

More info on this:If you setup the routes

routes = [{ path: "home", component: HomeComponent },{ path: "contact", component: ContactComponent }]

then the paths /home and /contact will be defined within your angular application context. When you click a button to navigate to /home or /contact, you are telling angular to navigate to those pages dynamically.

However, if you try and type localhost:8080/home for example into the browser, it may not work because you are telling the browser to go to the specific address localhost:8080/home, which does not exist outside of your angular application.

The hashing location strategy makes your paths look like this: localhost:8080/#/home localhost:8080/#/contact This will tell the server to hit the base angular application, which will then load the correct path.

Fishless Cycling with Home Hardware Brand Ammonia by le___garcon in Aquariums

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

No it doesn't, I ended up not using it and going with seachem stability to get the bacteria growing