Create a local business facebook page outside the US?

I want to create a Facebook Page for a business in Mexico. I am stuck part way through. Here is a screenshot: Create a facebook page Business or brand facebook page form Local business facebook page Correct the highlighted fields -- city, state

It looks as though the Local Business category requires a US address. It asks for a city and state. (Mexico also has states… ) I created my user profile while living in the US, and I think that may be the problem.

Searched for answers in the forum, which is typically super helpful, but not this time. Maybe I’m having a hard time formulating the correct search phrases. It’s hard when the error message is so generic.

I tried:

  • “create local business facebook page in mexico”
  • “change locality facebook page”
  • “required city and state for local business outside america facebook page”

I specifically want people to see the address.

What does it want me to correct it to? On top of that, I’m fighting autocorrect. It doesn’t allow custom input. Typing in these fields only brings up options from a dropdown selector. If I try to write “B. C.” instead of “Baja California”, it will autocorrect.

Access a docker container from outside the network

I made a windows server vm on Azure. I installed a docker image called microsoft/dynamics-nav. When you run that image, it gives you a link that I use to access the app. I now want to use the app but not from the browser of the vm itself. But rather from let’s say, the library. Basically external network. I exposed the port 80 of the app to port 9090 docker run -d -p 9090:80 -t microsoft/dynamics-nav and then went to external network PC, typed in the public IP of the azure vm machine, ip.ip.ip.ip:9090 and it didn’t work. I know I am messing something up, can someone please guide me?

What’s the safest way to make home server available from outside the network?

I have an old laptop that I decided to use as a server, with some samba shares and whatnot (making available some dvd rips and the like), and I’d like to be able to access the files in it from not only inside my home network, but also the outside network.

I read about port knocking, and that seemed like a decent idea — until I realized that because the server would be behind a router it might not be the best idea unless I get a new router that allows for it specifically. Then I read a bit more, and realized it might not be as safe as I’d originally gathered.

While investigating if my router allowed for port knocking, though, I came upon the notion of the DMZ — ’cause my router lets me configure that and all. My understanding of this, though, is that I’d need to make the whole server available to the world, and I’m not entirely sure how complicated it’d be to set up proper protection on a server in a router’s DMZ, to later SSH into it from the outside.

Finally, while trying to get some answers out there, I also crossed paths with the idea of maybe getting a RaspberryPi and making it a VPN server so I can VPN into my home network. However, once again, not sure how vulnerable to exploitation that’d be.

I have a limited knowledge of security principles, not being a pro or anything, hence the doubt on this. My knowledge of iptables, for instance, is very limited, so I wouldn’t know how to properly protect the router if I put it in the DMZ.

Is one of the three methods mentioned above generally preferred, in terms of safety? And what methods of securing it are generally recommended too? Bonus points: is one of them easier to set up too?

18 word mnemonic seed that contains word outside of BIP39 wordlist, struggling to recover BTC

I was recently asked to recover a sum of lost Bitcoin bought in 2015, but have been unable to as of yet. I have only been provided with: a passphrase/password, a 12 word mnemonic phrase(valid under BIP39, but shows no transactions in electrum, regardless of use of passphrase), an 18 word mnemonic phrase(the majority of which are not in the BIP39 wordlist, nor the electrum old/new wordlists, e.g. mccartney, hopkinton), and the address: 1CfadqyBDRPt62S9UvBHDPtqRu2kSvwPPu.

I have already tried a large number of combinations with the 12 word mnemonic and passphrase on the website, and none of the addresses provided have yielded a connection with the given address. The 18 word mnemonic is not accepted, and provides the error message: ‘X not in wordlist, did you mean X?’

Any help/ideas would be appreciated.

What can Artificer’s Alchemical Homunculus do outside of combat?

In the new version of the Artificer UA Artificer class one of the specializations is Alchemist. The alchemist gets the ability to create an Alchemical Homunculus.

The description has a section on actions in combat

In combat, the homunculus shares your initiative count, but it takes its turn immediately after yours. The only action it takes on its turn is the Dodge action, unless you take a bonus action on your turn to command it to take one of the actions in its stat block or to take the Dash, Disengage, or Help action.

RAI, outside of combat, what can it do (other than the actions listedabove)? I see it has perception skill of +4, but unlike a normal homunculus it doesn’t list a telepathic bond of any kind. I would assume this means that all commands must be verbal, but it can’t talk to relay information back to the player.

Is it smart enough to do things like hover over something and bounce up and down to get the party’s attention? I realize we’re getting into areas of GM fiat, but I wanted to know if I missed something in the description for how capable it is to follow orders given outside of combat.

Solving a PDE outside a sphere

I want to find $ p(r,t)$ in below equation outside a sphere with radius r_0.

$ \partial_t p(r,t)= \frac{D}{r^2}\partial_r (r^2 \partial_r p(r,t))$

The boundary condition is $ \partial_r p(r,t)|_{r=r_0}= 0$ and the initial condition is $ p(r,t=0)= a \delta(r-r_0)$ , in which $ a$ is a constant.

I tried separation of variables ($ p(r,t)=R(r) T(t)$ ) to write the equation as:

$ \frac{\partial_t T}{T}=\frac{D (2 r \partial_r R+r^2 \partial_r^2 R)}{R r^2}= -\alpha^2,$

where $ \alpha$ is a constant and one can solve it to write $ R$ as:

$ R=c_1 \frac{cos(\alpha r)}{r} + c_2 \frac{sin(\alpha r)}{r}$ .

Using boundary condition one can find how constant $ c_1$ is related to the constant $ c_2$ . The problem is, there is no constraint on $ \alpha$ and I don’t know how can I write the general solution to this equation (since in usual problems of separation of variables, we usually have a constraint which one can use to write the general solution as a summation). Can anybody help me to write the general answer to this problem?

How to check whether a file exists, outside a Makefile rule?

This is a pseudo code:

if .gitignore exists      GITIGNORE_PATH := .gitignore else     GITIGNORE_PATH := ../.gitignore fi  all:      do_build... 

I tried to search this, but they always show how to do this inside rules, as in:

$  (UBIN)/%:     @if [ -f '$  @' ]; then \         $  (CC) $  (CFLAGS) -o '$  @' $  (OBJS) -L $  (ORAHOME) $  (ORALIBS) \         $  (LNKPATH) $  (DSTN_LIBS); \         echo ""; \     fi 
  1. Testing if a file exists in a make file
  2. Testing if a file exists in makefile target, and quitting if not present
  3. How to check if a file exists in a makefile

Differences between Visual Studio Data Source vs External Database outside of Visual Studio

I’ve worked with many databases outside of visual studio. When I find myself working in Visual Studio having to work with either Oracle Express, SQLite or MS SQL Express – I have never used the DataSource feature. Now I’ve reached a point where I am needing to utilize the Database Explorer now called Server Explorer feature and I’m looking for an intro as well as an explanation as to the benefits of using this feature as opposed to manually coding against my databases.

The reason I’m curious now is due to my having to work on an existing project that did use this feature. Since I don’t have it installed I received the below error/prompt:

enter image description here

My question now is asking to know which route should I take? Do I do the work of installing SQL Server Express outside of Visual Studio and then I add it or does this installation all work seamlessly from within Visual Studio? Perhaps I’m confused and there is no different route to take and I simply just need to install SQL Express and then I add it as a datasource? This is where I’m slightly lost.

Should there not be methods intended to be only called from inside of the package, but from the outside of the class they’re defined in?

Note: This is a follow-up to this question on StackOverflow.

I have to write a wrapper in Python to an external API, accessible through HTTP. The code is supposed to be publicly available on GitHub.

For this reason, I thought, it would be nice if a person cloning this repository wouldn’t see tons of warnings. I opened my own code in PyCharm just to see if that was the case. It wasn’t.

However, since I’m afraid what these warnings are pointing at is a design issue, please let me start by showing (in a simplified way) the design I came with:

Firstly: There are two methods to authenticate the HTTP connection. For this reason, I have a ConnectionBase abstract class, that is implemented by two concrete classes, each using one of the two available authentication methods. So far so good.

But here problems start. There is an ApiClient class that is supposed to contain wrappers of all those API routes. This ApiClient class, of course, has to make use of an instance of ConnectionBase. In addition, since there are so many API calls to provide wrappers for, I thought I’d break them into categories.

Finally, this is how (roughly) the definition of ApiClient looks like:

class ApiClient:     def __init__(self, connection):         self._connection = connection      # forwarding method     async def _make_call(*args, **kwargs):         return await self._connection._make_call(*args, **kwargs)      class _Category:         def __init__(self, client):             self._client = client          # another forwarding method         async def _make_call(*args, **kwargs):             return await self._client._make_call(*args, **kwargs)      class _SomeCategory(_Category):         async def some_api_call(some_arg, other_arg):             return await self._make_call(blah blah)          async def other_api_call(some_arg, other_arg):             if some_arg.some_condition():                 other_arg.whatever_logic_here()             return await self._make_call(yadda yadda)      class _OtherCategory(_Category):         async def yet_another_api_call(some_arg, other_arg, yet_another_arg):             #...             return await self._make_call # etc etc      @property     def some_category(self):         return ApiClient._SomeCategory(self)      @property     def other_category(self):         return ApiClient._OtherCategory(self) 

In this fashion, assuming that the user of my lib wants to make a call to this external API and that client is an instance of ApiClient, they would type:

client.some_category.some_api_call(some_arg, other_arg) 

I believe that my use of underscores is clear: I’m preceding with an underscore all names that are not meant to be called by the end user of my lib. I thought this was the most important distinction: far more important than the distinction between variables private to a class: because the latter is nothing but an aesthetic issue, while the former is a usability issue: after all, exposing a (hopefully) clean, well-defined and intuitive public API is the very purpose of writing libraries!

Yet, PyCharm frequently complains that I’m accessing protected members of classes from outside of these classes. Apparently, and according to the linked SO question, the Pythonic understanding of a name preceded by an underscore is: This member is internal to this class and NOT the way I was understanding it, that is: This member is internal to this package.

So, all such lines are producing warnings:

await self._connection._make_call  await self._client._make_call 

etc etc in other places of my code.

But then: Am I supposed to clearly distinguish between methods supposed to be called by the user of my lib and methods supposed to be called only from within my lib (or users who know the internal workings of my package and know what they’re doing)?

If yes, then how if not by an underscore, which apparently means a different thing?


Well I don’t know, because as it is clear from my questions on this site, my knowledge of design patterns is underwhelming… But a hypothesis of how this situation should be understood rises up in my mind… A pretty radical hypothesis…

Maybe the correct interpretation is that there should be no methods that are intended to be called from outside of a class but not from outside of the package and/or by the end user?

I mean, I’m constantly seeing talks about the need to break dependencies, about how bad it is to have code that is so closely intermingled and tightly coupled… Perhaps such methods are examples of this unwanted coupling? And in all cases where I’d like to put an underscore in the beginning of a method name but PyCharm complains, this simply means that the existence of such a method constitutes a coupling in my code that should not be there and therefore there should not be such a method at all?

And I was so proud of myself that I made use of dependency injection 😛

On a more serious note: I have strong doubts if the above, dire interpretation is correct. In Uni I had a basic course on OO design. The instructor said something along the lines of, IIRC:

Please do remember that inheritance should be used in case of an is-a relationship, not a has-a relationship. An example of an extremely bad inheritance is a car inheriting from a wheel or from a gas pedal. Such cases should be handled by composition instead.

So, since an API client is not a connection used by this API client and since a category of an API call is not a client, I thought that it would be wrong to make API client inherit from a connection or to make a category inherit from the client – even though doing this would make PyCharm stop complaining and issuing warnings. Instead I used composition. However, if composition is used, I can’t see how can I get rid of methods that are intended to be called from within my lib, but not from within the class they’re defined in and not by the end user.

I suppose there must be a basic design principle I’m ignoring out of ignorance.

Could you enlighten me please?