Zend tool project provider creation error - zend-framework

Trying to create a provider using the ProjectProvider using the following code:
zf create project-provider testng actionName
I receive the following error:
No node was found to append to.

found out that zfproject.xml doesn't have <projectProvidersDirectory enabled="false">
just add it to the projectDirectory node

Related

Keycloak Userstorage SPI: Provider not found?

What are the requirments to make the Keycloak 17.0.0 find the provider?
[error]: Build step org.keycloak.quarkus.deployment.KeycloakProcessor#configureProviders threw an exception: java.util.ServiceConfigurationError: org.keycloak.storage.UserStorageProviderFactory: Provider my.own.package.UserStorageProviderFactoryImpl not found
If I clone the project from baeldung and I start the keycloak, it works. It finds the provider. (https://www.baeldung.com/java-keycloak-custom-user-providers)
As I see the followings have to happen to make it work:
have a class that implements the UserStorageProviderFactory interface:
public class UserStorageProviderFactoryImpl implements UserStorageProviderFactory<MyImplementation> {}
create the META-INF and services folders and create the org.keycloak.storage.UserStorageProviderFactory file that contains the path to given factory:
mvn clean package --> copy jar to Keycloak/providers and should work
What do I miss? What is extra in the baeldung project that make it work while my project is not found when I start the keycloak?
https://www.keycloak.org/docs/latest/server_development/index.html#_user-storage-spi
Your class should be name SomethingUserStorageProviderFactory without the word 'impl'. Your provider class should have the same pattern name, for example, SomethingUserStorageProvider.
Official documentation gives more interesting information’s (https://www.keycloak.org/docs/latest/server_development/#_providers) and if you take a look at baeldung's code, he due the same pattern name.

How to resolve dependency issues with C# script csx file in visual studio code?

I am trying to create an azure function program with a service bus queue trigger template using a csx file. But I am having issues resolving dependencies. To be honest, i am very confused about the project structure that is mentioned in [this doc] (https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp). I've tried two approaches.
First approach...
Create a folder named MyAzureFunc in a visual studio code and manually add a function.json , project.json, project.lock.json, and run.csx. Then, outside of the MyAzureFunc folder I add a host.json and local.settings.json. This approach leads to dependency issues.
Second approach...
Create an Azure Function project with service bus queue template in visual studio code that generates a completely different folder and project structure. I'll then remove most of the auto-generated files and manually add in the structure mentioned in the first approach. This still leads to dependency issues.
Some possible reasons i believe this could be happening is the following...
1. Framework versions - my project.json calls for "net46", but when i create an azure function in visual studio code using the service bus queue template it implements "netcoreapp2.1"
2. The need to run some command to recognize the package dependencies
3. Some project configuration needed to work with csx
I believe the important file here is the project.json. Below is the code...
{
"frameworks": {
"net46":{
"dependencies": {
"MongoDB.Driver": "2.6.1",
"MongoDB.Driver.Core": "2.6.1",
"MongoDB.Bson": "2.6.1",
"SharpZipLib": "0.86.0",
"RabbitMQ.CLient": "5.0.1"
}
}
}
}
Below is the code for the packages i'm trying to use in my csx file...
#r "Newtonsoft.Json"
#r "Microsoft.ServiceBus"
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ServiceBus.Messaging; --> ERROR
using Newtonsoft.Json; --> ERROR
using MongoDB.Driver; --> ERROR
using MongoDB.Bson; --> ERROR
using MongoDB.Bson.IO; --> ERROR
using RabbitMQ.Client; --> ERROR
using ICSharpCode.SharpZipLib.Zip.Compression.Streams; --> ERROR

sails­postgresql Error while using sails lift command?

While running $ sails lift command , I am getting this error.
info: Starting app...
error: Trying to use unknown adapter, "sails­postgresql", in model `adminintro`.
error: Are you sure that adapter is installed in this Sails app?
error: If you wrote a custom adapter with identity="sails­postgresql", it should be in this app's adapters directory.
error: Otherwise, if you're trying to use an adapter named `sails­postgresql`, please run `npm install sails-sails­postgresql#0.10.x`
Please help me out guys ...
Got the answer ... It was unicode mistake . I have copy n pasted the code for local.js from one of my coworker's pdf file. So when I pasted that code in my local.js "-" was replaced with some unicode http://www.fileformat.info/info/unicode/char/00AD/index.htm .. and that was causing this issue..

How to implement ArcMenu for Android?

I'm trying to get ArcMenu for my application.
The code runs great by itself, but I don't know how to make it work with another project.
It doesn't look like an Android Library project...
When trying to use this project with my own, this is what I get in Eclipse's console:
res/layout/arc_menu.xml:4: error: No resource identifier found for attribute 'fromDegrees' in package 'com.capricorn'
res/layout/arc_menu.xml:4: error: No resource identifier found for attribute 'toDegrees' in package 'com.capricorn'
res/layout/ray_menu.xml:4: error: No resource identifier found for attribute 'childSize' in package 'com.capricorn'
res/layout/ray_menu.xml:4: error: No resource identifier found for attribute 'leftHolderWidth' in package 'com.capricorn'
EDIT
I forked ArcMenu and published it on Github.
Now a better recode of it appeared: https://github.com/siyamed/android-satellite-menu
I recommend you use that one.
it seems that on your XML you didn't properly define the namespace.
for example for all the android framework stuff is:
xmlns:android="http://schemas.android.com/apk/res/android"
I suggest checking on your examples what would be for the ArcLibrary.

Facebook C# SDK

I'm starting out with the Facebook C# SDK and trying to run the MVC Sample on my test server and am running into the following error:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Facebook.Web.Mvc.ViewUserControl'.
Source Error:
Line 1: <%# Control Language="C#" Inherits="Facebook.Web.Mvc.ViewUserControl" %>
Source File: /Views/Facebook/LoginButton.ascx Line: 1
I've set up several MVC 2.0 projects in the past and have followed the instructions on the getting started section on http://facebooksdk.codeplex.com/ (added and changed setting in web.config, etc.)
What am I missing in order to run the sample project(s).
You are using a very old sample from the SDK. The problem is that the class Facebook.Web.Mvc.ViewUserControl does not exist. That was only in a very early alpha build. I would recommend downloading the new sample to get started. You can get that here: http://facebooksdk.codeplex.com/releases/view/54371#DownloadId=160969