Switch account on eclipse - codenameone

Until now I was using my free personnal account to develop with Codename one. I couldn't send my builds anymore because I have reached the 1MB limit. Now my compagny bought a basic subscription and I would like to use it but I can't: when I send my build the server, it tries to send it with my personnal account. I tried to solve that issue downloading a new eclipse version but it doesn't work.
How can I sent my builds using my new basic account ?

You can solve this by changing the password of your free account here, which will prompt you for new login details when you send a build... then you can enter your basic account details when prompted.
Note: Codename One may suspend your basic account if they discover it's been used by multiple users within your company. They have one account one user policy, so don't abuse it. The only account that MAY be shared by multiple developers within a single company is an Enterprise account.

Related

SOLUTION: google cloud sdk issue: 'callers must accept terms of service'

Known issue:
Installing google-cloud-sdk (linux package or from tarball) has a quirk where you cannot create projects from the command line before accepting the terms of service.
Steps to reproduce:
Download sdk, untar, move folder to home directory and add google sdk root directory to PATH using install.sh
Initialize and login with: $ google init
Create a project from the CL: $ gcloud projects create --set-as-default
This will spit out an error like:
ERROR: (gcloud.projects.create) Operation [cp.5641973328385684887] failed: 9: Callers must accept Terms of Service
I hazard a guess that accepting the terms of service have not been built into the command line initialization yet. Omitting such a fundamental step to an installation process should be illegal, with consequences ranging from death by a thousand key-stokes, to 'build an operating system in headfuck'... but that's just me...
We find the solution in the most unholiest of places: the google cloud control interface (cloud console).
Go to your cloud console
Create a project by selecting 'select a project' (top-left next to "Google Cloud Platform" and then 'create project' (top-right in the popup window).
This will prompt the terms of service agreement and you may carry on after agreeing to the terms of service.
I hope this helps whoever else stumbles upon this most infuriating of errors.
Live long and prosper
Bitshift
Let's not be so dramatic with "death by a thousand key-strokes". This is a security measure that should be implemented. Security is not always convenient but can save your checking/credit account a lot of grief.
Imagine this theoretical scenario. You provide me with a service account that has the roles to create a project. I create a new project. This project is created under your Google Billing Account. I know what I am doing with Google IAM so I remove you from the new project and make myself the Project Owner. Now you have no access to the new project but your credit card is paying the bills for my project. I think you would then be screaming "death by a million key-strokes".
There are two types of projects:
Independent projects not part of an organization.
Projects that are part of an organization.
If you are part of a Google Cloud Organization, you can easily create projects up to your quota limit (default is 5). No prompting, accepting TOS, etc. Using the CLI to create a new project is effortless.
If you are not part of an Google Cloud Organization then you are basically creating a new account, you need to set up account billing, accept terms of service, etc. This means that you should not use the CLI to create a new project as the CLI does not prompt you for the items that a new project requires. Why, the CLI should be using a service account. The service account is not the IAM member that owns the account. This forces you to log into the Google Cloud Console using your User Credentials to create the new project.
For anyone getting this message when trying to create a dialogflow agent:
Go to https://console.cloud.google.com, login and accept the displayed terms and conditions.
Afterwards it worked for me...

How to access mysql database from android application in order to create login and logout using Java i.e., without php?

I have made the android app for my college. In that I have made the Login Activity page. Also, I have designed one web portal for my college consisting of the details of students such as their name, admission no., roll no, contact no. etc. using Mysql workbench. Now I want to access this Mysql database from my android application in so that I can login into the application using roll no. as the username and contact no. as the password.
I want to do this whole thing using Java and without php.
You may consider developing a Servlet to run on a container (e.g. TOMCAT). The Servlet (which is developed in Java) would access the database. Here you have an example of how this is done.
EDIT:
First, you need to add to your app the ability to send HTTP(S) requests. Plenty of examples in the Web.
Second, you need to deploy a Servlet container software product (I suggest TOMCAT).
Third develop a simple Servlet to handle post requests and access MySQL (again, plenty of examples in the Web, including some that you can almost copy-paste as-is).
Fourth, create a WAR file of the Servlet and deploy it into your Servlet container (if TOMCAT, under the folder webapps).
You will have to fine-tune configurations, but it should be straightforward.
Good luck!!!

Sonarqube plugin development 'Decorator' alternative?

With the release of sonarqube 5.2, the decorator and batch components have been deprecated. Going through the code I found that they want us to use MeasureComputer instead.
Now, I had a plugin which needs the email settings of the sonar setup, fetch some basic user information and the assignee of each issue.
How do I access the email settings and user information?
Update
As per this JIRA ticket, the data associated to the analysis is sent to some compute engine which resides at the sonar server. This is where the issues are created, assigned e.t.c. So, the information regarding the issue will no longer be available even in some PostJob.
User finder alternative: I am now using the user web service to fetch information I require as far the author of the issue is concerned.
IssueFilter helps me lay my hands on each issue that is reported.
My purpose here is to create a custom report immediately after the analysis where a link to each issue is shown. I don't think I'll be able to achieve this using the sonar plugin.

codename one build is redirecting to some other account

Whenever I try iOS debug build, the ipa is being sent to some expired account that I heve not set so far. I have my own codename one account and want netbeans to send these builds to my account only.
NOTE: I am using Netbeans on Mac 10.9 machine.
Thanks,
Changing accounts is against the Codename One terms of service and by doing so you are risking banning.
Assuming this is a one time thing you can login to the old account and change the password there. Then send a new build.

Automatically Create New JIRA User Accounts

We have JIRA for our faculty/staff at the college I am applications developer for. The JIRA is fine-tuned for them to report issues to maintenance and I.T. We use LDAP for external authentication of user passwords.
Right now, if someone new joins our company, I have to manually add a new user to JIRA. I am wondering if there's a way to create a batch process that checks the LDAP, and if there's a new user, automatically creates a user account on JIRA for them. Has anyone done this before?
What version of JIRA are you using.
Version 4.3.x has simplified the user directory configuration quite a bit, including the support for creating a JIRA user at first login
Check out following article
http://confluence.atlassian.com/display/JIRA043/Connecting+to+an+LDAP+Directory#ConnectingtoanLDAPDirectory-AddingUserstoGroupsAutomatically
Francis

Resources