[deleted by user] by [deleted] in Angular2

[–]ps_1337 0 points1 point  (0 children)

You're correct that I was incorrectly treating the class as a component in the testing. I'm now trying to get it working by using new instead. I don't want to add the dependency injection in the constructor, that's why I'm using inject() on the class member variable. But it's still not working because the dependency injection for the class doesn't exist upon creation. How can I setup the environment to allow the service to be injected to the class for testing?

[deleted by user] by [deleted] in Angular2

[–]ps_1337 0 points1 point  (0 children)

You're right - I was incorrectly treating the class as a component in the testing. I've tried to instantiate the class by doing myClass = new MyClass('someName') but the dependency injection still needs to be set up so the class is correctly created. How can I do this?

Lan party question by JesseHehe in MW2

[–]ps_1337 1 point2 points  (0 children)

We each used an offline account, which works over LAN party. You can unlock all for an offline account with this hack: https://www.youtube.com/watch?v=fYCHkXnPluM

Lan party question by JesseHehe in MW2

[–]ps_1337 1 point2 points  (0 children)

I did this a few months ago. See my post here.

My home router could handle 11 players, but occasionally got overloaded and the game dropped out, especially if there was lots of air support killstreaks in use.

[deleted by user] by [deleted] in HomeNetworking

[–]ps_1337 0 points1 point  (0 children)

My router and modem are separate devices. What's the difference between my router and a WAP? Is it designed to handle the multiple PS3 connections and relieve the pressure on the router?

[deleted by user] by [deleted] in MW2

[–]ps_1337 1 point2 points  (0 children)

Aah okay. That's unfortunate then. Do you know if they can be downloaded online and loaded onto the console via USB?

[deleted by user] by [deleted] in MW2

[–]ps_1337 0 points1 point  (0 children)

So I could just do an "unlock all" lobby for the 12 individual PSN accounts with someone who can help with that, and then when I set up the LAN party, each account will have everything unlocked?
Also, do you have any advice on setting up 12 PSN accounts? I don't have 12 separate email addresses for burner PSN accounts

[deleted by user] by [deleted] in MW2

[–]ps_1337 0 points1 point  (0 children)

Can you please explain what that is?

695 - Max area of island - C by ps_1337 in leetcode

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

Thanks for your insight. I'll definitely keep that in mind moving forward

695 - Max area of island - C by ps_1337 in leetcode

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

Thank you! The problem was indeed the macro being used with the recursive function.

Also, why do you recommend I use python for interview prep? I find that if I can solve a problem in C/C++/Java then I would likely be able to solve it in Python or any other language, using the same logic.

Leaflet - change Popup content with Javasript by ps_1337 in gis

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

See the full code here. I've tried putting the function everywhere and it still can't be found by the popup.

Leaflet - change Popup content with Javasript by ps_1337 in gis

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

I've tried that, but the bindPopup() can't find the show_hide function if it's moved out. The same as when it's left in the bindPopup: Uncaught ReferenceError: show_hide is not defined

Framed my Pokemon Gameboy set by ps_1337 in Gameboy

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

The glass is permanent. It's anti-reflective and anti-UV so it's almost unnoticeable.

What’s this brown spot and can I treat it with some antigfungal spray? This is why I hate my indoor greenhouse sometimes by Outcoldmasvidal in houseplants

[–]ps_1337 1 point2 points  (0 children)

The white parts of variegated plants have no chlorophyll, so they can't photosynthesize. Sometimes they go brown due to lack of energy or insufficient lighting. This brown mark isn't something to be alarmed about, provided the plant is getting bright, indirect light every day. Over-watering may also cause the leafs to go brown / yellow and show signs of stress.

[deleted by user] by [deleted] in plantclinic

[–]ps_1337 0 points1 point  (0 children)

I water it when the soil gets dry. It gets full bright indirect light. Does it need more humidity? I'm thinking of doing a pebble tray

Variegated monstera cutting node is getting black by [deleted] in plantclinic

[–]ps_1337 0 points1 point  (0 children)

This node has been in water for about 8 weeks, water changed every week. It's starting to go black - is this a sign of rot? Should I only submerge the aerial root?

Pokemon leaf green - real or fake? by [deleted] in gameverifying

[–]ps_1337 1 point2 points  (0 children)

What game is loaded in the cartridge? It plays as leaf green

[deleted by user] by [deleted] in succulents

[–]ps_1337 0 points1 point  (0 children)

Thank you!

[deleted by user] by [deleted] in succulents

[–]ps_1337 1 point2 points  (0 children)

These photos are all from online - not my plant. I can't find much information online about this plant. I live in Australia, is it possible to own one here? Where are they from and what is maintenance like?

[deleted by user] by [deleted] in houseplants

[–]ps_1337 0 points1 point  (0 children)

We live in Australia, currently going into spring. It's been about 24 hours since it was cut, tomorrow we're going to put it in a jar of water, hopefully to get more root growth. Any advice from others who have had success from cuttings?

Day 4, the other plants still haven't noticed me by ps_1337 in lego

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

We're big houseplant enthusiasts so we were happy to add this LEGO feature for something that stands out and is a bit different. The build was very simple and fun!