## anaconda – Build conda package from a local C++ program

I am trying to build (and later upload) a conda package which would contain my custom program that I have developed in C++.
Simplifying the problem, I have a following `meta.yaml`:

``````package:
name: CoolName
version: "1.0.0"

source:
path: ./source

requirements:
build:
- make
``````

and the following `build.sh`:

``````make
``````

I have two questions here:
1) How and where should I copy the binary which is a result of the `make` compilation so that it is indeed recognized upon environment activation?
2) How should I specify g++ as a dependancy? I would like to have this package be later available for ‘linux-64’ and ‘osx-64’… In the building process (in the Makefile) I am using only g++.

## Get-spproduct -local stuck

I launched a get-spproduct -local command through powershell with the farm account, however it ran now for almost one hour.
Got the same behaviour with stsadm -o localupgradestatus. It just runs and never stops untill I kill the cmd/powershell window.
What could block the jobs?

Thanks

## c++ – What is the signifigance of the Dot Product in World to Local Transformations?

This is a vector projection. Dotting a vector like `AgentPosition` with a unit direction vector like `AgentHeading` or `AgentSide` gives you the signed length of the component of that vector parallel to that direction.

Doing it with each perpendicular axis direction lets you express a point from one coordinate system in a new coordinate system with those direction vectors as its basis.

So `AgentPosition.Dot(AgentHeading)` answers “how far is the agent from the origin, along the heading direction?” and `AgentPosition.Dot(AgentSide)` does the same for the side direction. Negating these flips the question: “how far is the origin from the agent, along this direction?”

Combined, `Tx` and `Ty` now hold the position of the world origin, from the perspective of the agent’s local coordinate system, where +x is its heading, and +y is its side.

A simpler version of this algorithm (assuming the heading and side vectors are perpendicular unit vectors, so no scaling or shearing) would be:

``````inline Vector2D PointToLocalSpace(const Vector2D &point,
Vector2D &AgentSide,
Vector2D &AgentPosition)
{
// Get the world space vector from the agent to the point.
Vector2D offset = point.Subtract(AgentPosition);

// Project this offset onto our heading & side directions to put it in local space.
Vector2D local;
local.y = offset.Dot(AgentSide);

return local;
}
``````

## deployment – How can I deploy an existing local site to Pantheon?

I have an existing local site that I’ve developed. In most “normal” instances, I would simply FTP the everything to the external host server, upload and install the database, and life would be good.

With Pantheon, it is frustratingly restricted. There appears to be no control over defining where Apache is configured to serve from. There are restrictions over file structure. And we can not SSH onto the server.

Pantheon appears to be a popular choice – but it appears that there is an assumption that a developer initiates the Drupal instance from Pantheon with all of its inherent configurations

Any experience actually creating a new instance of Drupal on Pantheon from an existing local environment?

BTW – their answer is to use `drush ard` to “archive the site”.. unfortunately, `ard` is no longer supported (Drush 9.x).

## remote access – How can I host my website myself on my local machine and make it accessible to everyone on the globe?

I wish to host my website myself on my machine but I don’t know how to do it. Also, I have set up Apache2 Virtual host on my Ubuntu 19.10 but nobody else can access the site except my local machine, so please how can I make it accessible to everyone?

## gn.general topology – When is a function not a local homeomorphism?

my background is engineering and I am very new to the topology.

I can understand the concept of a local homeomorphism, but I cannot come up with a concrete example that is a continuous surjection but not a local homeomorphism.

For example, if I have a map $$f:mathbb{R}^nto Usubsetmathbb{R}^m$$ ($$n>m$$) that is a continuous surjection, can it not be a local homeomorphism?

## network – Cannot Connect to local HTTP Servers – Synology

I have a network including multiple machines – PCs, Android, iOS, Mac devices and a Synology. My mac is running Catalina 10.15.4.

Everything connects to the Synology fine except the Mac over `http` or `https`.

I have connected Finder to the Synology shared drives using `afp://<servername>.local`.

All my other devices connect to any Synology hosted web sites fine using this address:

``````https://<servername>:port
``````

Using this on the Mac just times out. However if I add the `local` suffix, or I use the IP address, it works:

``````https://<servername>.local:port
``````

It pops up the self-signed cert warning (for the Synology cert) and then proceeds to the web site hosted on the Synology, such as GitLab or DSM Control Panel.

But seeing that I have all manner of scripts and repositories of code I can’t just have one machine throwing such a curve ball into my configuration. It seems many people have had issues with Catalina networking from reading this thread on the Synology forums. The problems and solutions described there are primarily about Finder connections, which work fine for me.

From all my reading online it seems the solution everyone quotes is to add search domains.

So I added `local` as a search domain to my Wi-Fi adapters Preferences -> Network -> Wi-Fi -> Advanced -> DNS tab. Rebooted (several times now) and I still cannot get the Mac to browse to the sites properly. I’ve also tried `.local`.

Nothing seems to work.

What other settings or configuration might help?

## network – Accessing Local Web Resources Requires local Suffix

On my Synology NAS I host various web based resources and sites and all my devices use the same addresses, such as:

``````https://<servername>:port
``````

However, for some reason only my Mac refuses to access these sites. I have to suffix the server name, such as:

``````https://<servername>.local:port
``````

So to try and get around this I read that you can setup search domains. So for the active adapter I went to Network -> Advanced -> DNS tab -> Search Domains and added a search domain with the value of `local`.

This hasn’t made any difference and it’s the only solution I can find online. It’s what everyone says to do.

I’ve clearly got something wrong somewhere, is there anything I’ve missed?

## kotlin.KotlinNullPointerException while accessing Data from local Room Database?

I am new into Kotlin and trying to learn, how to fetch Data with retrofit and store this data into a Room DB. But as soon as i start the Activity where this process takes place i get a NullPointerException. My guess is that the error occurs because the content of my database is Null when accessed.

If my code snippets aren’t enough, here’s a link to the GitHub repository from the mini-project I’m working on: https://github.com/Engin92/Dog_Breeds/tree/RoomDatabase

here is my complete errorlist:

``````E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.dogbreeds, PID: 14803
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dogbreeds/com.example.Breedlist.activity.DetailedViewActivity}: kotlin.KotlinNullPointerException
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:213)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit\$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
Caused by: kotlin.KotlinNullPointerException
at com.example.Breedlist.activity.DetailedViewActivityRepository.getBreeds(DetailedViewActivityRepository.kt:23)
at com.example.Breedlist.activity.DetailedViewActivityViewModel.getAllBreedList(DetailedViewActivityViewModel.kt:23)
at com.example.Breedlist.activity.DetailedViewActivity.onCreate(DetailedViewActivity.kt:42)
at android.app.Activity.performCreate(Activity.java:8086)
at android.app.Activity.performCreate(Activity.java:8074)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1313)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:213)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit\$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
``````

getBreeds function in DetailedViewActivityRepository:

``````fun getBreeds() : LiveData<List<CurrentBreedResponseItem>>
{
return RoomViewModel.database!!.currentBreedDao().getAllBreeds()
}
``````

getAllBreedList function in DetailedViewActivityViewModel

``````fun getAllBreedList(): LiveData<List<CurrentBreedResponseItem>>
{
return detailedViewActivityRepository.getBreeds()
}
``````

The DetailedViewActivity

``````class DetailedViewActivity : AppCompatActivity() {

lateinit var breedRecyclerView: RecyclerView
lateinit var detailedViewActivityViewModel: DetailedViewActivityViewModel

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_detailed_view)

breedRecyclerView = findViewById(R.id.breedRecyclerView)

detailedViewActivityViewModel = ViewModelProviders.of(this).get(
DetailedViewActivityViewModel::class.java)

if(isOnline(this))
{
detailedViewActivityViewModel.getBreedsFromAPIAndStore()
}
else
{
Toast.makeText(this,"No internet connection. Showing cached list!",Toast.LENGTH_LONG).show()
}

detailedViewActivityViewModel.getAllBreedList().observe(this, Observer<List<CurrentBreedResponseItem>> { breedList ->
Log.e(MainActivity::class.java.simpleName,breedList.toString())
setUpBreedRecyclerView(breedList!!)
})
}

fun isOnline(context: Context): Boolean {
val connectivityManager =
context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
if (connectivityManager != null) {
val capabilities =
connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork)
if (capabilities != null) {
if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR)) {
Log.i("Internet", "NetworkCapabilities.TRANSPORT_CELLULAR")
return true
} else if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)) {
Log.i("Internet", "NetworkCapabilities.TRANSPORT_WIFI")
return true
} else if (capabilities.hasTransport(NetworkCapabilities.TRANSPORT_ETHERNET)) {
Log.i("Internet", "NetworkCapabilities.TRANSPORT_ETHERNET")
return true
}
}
}
return false
}

fun setUpBreedRecyclerView(breeds : List<CurrentBreedResponseItem>)
{
breedRecyclerView.layoutManager = GridLayoutManager(this,2)
breedRecyclerView.setHasFixedSize(true)
}
}
``````

the class RoomViewModel, where i build the DB

``````class RoomViewModel : Application() {

companion object {
var database: BreedDatabase? = null
}

override fun onCreate() {
super.onCreate()
database =  Room.databaseBuilder(applicationContext, BreedDatabase::class.java, "breed_db").fallbackToDestructiveMigration().build()
}
}
``````

## How to have local Google Drive app sync folders shared with me?

In the web version of Google Drive, I have access to a shared folder under “shared with me”. It’s contents are updated frequently and I’d like to have a local copy through the Google Drive desktop app. I can’t figure out how to do this?