Sulu : How can I create new bundle in Admin? - bundle

How can I create bundle in sulu admin and bundle link under webspace like content?
I have followed Symfony create bundle document. I have created bundle but not able to access it into sulu admin.

Related

Firebase CLI - “Invalid project ID specified”

I'm trying to use Cloud Functions in my Firebase project.
I'm trying to initialize the CLI features in a new folder in my Mac. I opened a folder which called CloudFunctions and ran the firebase init command into this folder, and this is what happens:
It doesn't ask me if I'd like to set a new default project ID for this folder, but it's using an old project ID which is probably wrong.
When I try to run firebase use <my_project_id> I get this error:
but as you have seen above, running firebase init fails because the default project ID is wrong.
The CloudFunctions folder is currently empty, it doesn't have firebase.json file or any other file.
The Firebase CLI will look in the current directory and all of its parent directories for a .firebaserc file that describes a project. You probably have a .firebaserc file in your home directory, which it thinks is the project that you're currently working on. Move that file out of the way (and figure out if it's actually something you want to keep using).

Upload my Yii2 Project to CPanel

I have developed my Yii2 application locally and zipped the file and uploaded to CPanel under File Manager -> Public_html -> data. Now how can I access my application through the web? What is the url for my project? Should I do another installation? Please help me I'm stuck here.
Your projects are accessed trough the web folder. You have to point your Document Root of your domain to that folder.
If you cant make it work, you need to add your directory structure to the question.

basic web2py issue: how to test a web2py package?

The package I downloaded is not in .w2p form. It is a folder with different files in it. And I cannot 'install/upload' the folder onto the web2py server. So how can I convert the folder into a w2p file? Or how can I test it locally?
There is no need to convert to a .w2p file in order to install an app. All you have to do is create a folder inside the /web2py/applications folder, and then place all the folders/files of the app inside that new folder. For example, if you want the new app to be named "myapp", create a /web2py/applications/myapp folder, and place all the app folders/files (i.e., /controllers, /models, /views, etc) in that folder.
If for some reason you can't easily upload the app files to the server (i.e., no FTP access) and you must rely on the web2py admin app to install applications, you can manually create your own .w2p file. The .w2p file is just a .tar.gz file that has been given a .w2p file, so all you have to do is tar and then gzip the set of folders/files and give the resulting archive a .w2p extension. Then install via the admin app as usual.
Alternatively, if you can run web2py on your local machine, you can simply copy the files into an app folder on your local machine, and then use the admin app on the local machine to pack the app, which will create a .w2p file. There are standalone web2py binaries for Windows and Mac, so it should be easy to run a local copy, even if you don't have Python installed.

How to create a combined Command-line/Library package

I want to turn my package which is a combination of application and lib into a package.
MY SITUATION
App X is just a script.dart file that creates files inside the root of app X.
runs fine!
currently for testing I create a new app APP and copy app X inside the APP/packages folder.
but when I run APP/packages/X/script.dart via darteditor I get
cant open file /package/X/c:/APP/X/script.dart
which is wired since I just right click script.dart and run.. is that a wrong path bug?
additionally I checked what if I run script.dart from inside the APP root folder, and I see that the script will open but as soon as I try to create/write a file with
file.writeAsStringSync(contentString, encoding: Encoding.ASCII);
I get
Breaking on exception: FileException: Cannot open file 'C:\APP' (OS Error: Access is denied.
what is the difference when developing a package and using it as a lib packages in sense of filesystem user rights?
currently my structure is
app/bin/script.dart (scripts executed by user)
app/tool/helperScript.dart (functions called by the script in bin)
future structure will also include
app/lib/lib.dart and
app/lib/src/libHelper.dart
UPDATE
Current Workaround
In my other question how to test dart pub package someone answered:
as seen here I can use the path option in pubspec file.
so instead of having my app inside the users package folder I would
-create an application package,
-the user adds a path to my app in his pubspec (providing the path in the console)
-user executes my scripts
this workaround fixes my file access issues but since the user application would now have path inside pubspec
1.the user can't deploy his package (without editing his pubspec)
2.the user would have to copy my console app to the server he runs his app on
(hmm but I am thinking now, since the local machine is only development, he would have to do the same stuff on his production server anyway)
so I guess for the moment I will stick with this approach but
I am still interests in
how to access the absolute app root path from within a lib package
Thank you
ps.
since the current solution is create application package and let the user tell you the path and since the problem has evolved I changed the title from
How to access app root path from inside a combined app/lib package
to
How to create a combined Command-line/Library package

install iOS ad-hoc app failed

I've a problem by installing an ad-hoc build to my iOS test devices.
When I run the app via XCode, there is no problem, but from the moment I create a signed ad-hoc app (*.ipa), the app is not able to install via iTunes or the iPhone configuration tool.
What I've done:
- Creating a distribution certificate
- Creating an app ID (com.project_name.*)
- Creating a distribution provisioning profile including the distribution certificate, all devices UUID, etc.
- In the plist file I set "Bundle identifer" to "com.project_name.app_name"
By creating the ad-hoc file, I've chose the distribution certificate for code signing. This certificate is also set in the project file --> build settings --> Code-Signing
When I install the app in itunes, there comes an error dialog which just says, that it was not possible to install the app.
Make sure you are not using special characters in bundle identifier.
The bundle identifier string identifies your application to the
system. This string must be a uniform type identifier (UTI) that
contains only alphanumeric (A-Z,a-z,0-9), hyphen (-), and period (.)
characters. The string should also be in reverse-DNS format. For
example, if your company’s domain is Ajax.com and you create an
application named Hello, you could assign the string com.Ajax.Hello as
your application’s bundle identifier. The bundle identifier is used in
validating the application signature.
If your bundle identifier is correct,
Please validate your ipa file with following steps:
Step1: rename yourapp.ipa to yourapp.zip
step2: Extract content of yourapp.zip, you will see content in Payload
folder.
Step3: locate yourapp.app in payload folder.
Step4: rightclick on app and click "show package content"
Step5: in package content, locate "embedded.mobileprovision"
step6: Open "embedded.mobileprovision" in text editor. and check if
your device id exist there.
If your device id is there, Your build is correct. otherwise, rebuild by checking all code.
Note: Please make sure you have selected "Ad-hoc" while creating distribution file and not "App store".
The problem wasn't the app.
My solution: Export the app as Xcode-Project (same way Organizer --> Archive --> Distribute) to another mac. Think about the certificates. You will have to export the private keys from your first mac too (*.p12 files).
Open the XCode-Project from your second mac, sign it with the provision profile and install it via itunes.

Resources