where can I enter api-key of wakatime in eclipse? - api-key

I am trying to use wakatime in eclipse to trace my code work,but I can't find the place to enter the api key.If you know about it, please help me out.Thanks!!

To put API-key in Eclipse, let come into File > Waka Time > API Key then paste API-key.
To view your api key: https://wakatime.com/settings/api-key
FAQ entry about changing your api key: https://wakatime.com/faq#change-api-key

Related

NSPhotoLibraryUsageDescription in Xcode8

Update:
I attempt to add a String value to the "NSPhotoLibraryUsageDescription" key.
And it works.My build version is now available on my TestFlight.
ps: 构建版本 means Build Version
But I want to know why Apple Store just let me add String value for "NSPhotoLibraryUsageDescription" key rather than "Camera Usage Description" or "Location When In Use Usage Description"?
And how to localize the info.plist.
Old:
I've uploaded many build versions to iTunes Connect.But TestFlight shows none of these build versions.
Then I search this issue on stackoverflow. And I know this is caused by usage description. I add the NSPhotoLibraryUsageDescription in my Info.plist.
However, Apple Store team email and tell me that:
Dear developer,
We have discovered one or more issues with your recent delivery for "Family Health Tracker". To process your delivery, the following issues must be corrected:
This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
They still tell me add NSPhotoLibraryUsageDescription
Localizing of info.plist file may be very unuseful, especially if you use many languages in your apps.
The simplest way for localizing NSPhotoLibraryUsageDescription, NSLocationWhenInUseUsageDescriptionor NSCameraUsageDescription keys is to describe it in InfoPlist.strings file.
Create new *.strings file with name InfoPlist;
Press Localize... button in file inspector and choose the default language;
Add new records in your new InfoPlist.strings file. For example
in English:
NSLocationWhenInUseUsageDescription = "Location usage description";
NSPhotoLibraryUsageDescription = "Photos usage description";
NSCameraUsageDescription = "Camera usage description";
For more information Apple docs
Make sure that "NSPhotoLibraryUsageDescription" has value assigned before uploading the app to iTunesConnect.
Simply add these lines to your info.plist file
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string> //For NSPhotoLibraryUsageDescription issue.
To localize the Info.plist:
Click your Info.plist
Show your Utilities, then click File inspector
This is a button Localize, click it.
I had the same problem with two applications, the solution shows you the itunnes connect via mail:
info.plist review your file and tries to add the following fields:
Privacy - Photo Library Usage Description
Bluetooth Sharing - NSBluetoothPeripheralUsageDescription
each with a text explaining the reason for its use.
You can check here the permissions that now requires iOS 10 in its info.plist here:
https://blog.xamarin.com/new-ios-10-privacy-permission-settings/
This worked for me.
Try this it work for us,
<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library.</string>
For more details please refer Best Answer
Hope this will help for some .
The missing keys are related to some APIs requiring some usage descriptions defined in the .plist keys. Before adding any keys if you know that your app doesn't make any specific usage I will recommend you take a look at this official guide from Apple to identity faulty API classes. As an example I simply have a comment out on a line containing UIImagePickerController. This was enough to get the binary rejection from Apple; while I didn't access to the user photo library. Once you validated this step you can go ahead with other solutions mentioned here.

Can i hide the line "powered by instamojo"?

I create a payment link using instamojo. But when it is loading it shows a line "powered by instamojo" at the bottom of the payment link. Is there anyway to hide that text?
Yes, it is possible to hide this line by using this app:
https://www.instamojo.com/apps/details/com.instamojo.remove_branding/
(This link is only accessible when you're logged into your Instamojo account)
You don't need to use any app or pay anything to remove it. If you are a developer , you can remove it simply by downloading the im-embed.min.js script and comment out the line below
function o(e) {
return true;
// c(e).parent(".im-checkout").append('Powered by Instamojo')
}
Yes , exactly as a developer we don't need to work on any instamojo app as such , all we need to do is
extract this link from the script file what instamojo guys provide https://d2xwmjc4uy2hr5.cloudfront.net/im-embed/im-embed.min.js by loading this link in browser the script file "im-embed.min.js" will be downloaded , after that you can copy this file to your local folder and start making changes as per your requirement, in the developer console
similary you can work on stylesheet by extracting the link from im-embed.min.js

How to get project badge via GitHub API?

I have build a resume page for my self, and list all my projects there by using GitHub API. Some of the project are document which have rtfd build passing badge, some are python projects which have travis-ci and pep-lint badges.
Now, I want to display the badges as with the projects, how should I use with the API?
My page is here: http://gh.windrunner.info/resume/#/github
You could also use a different API with https://github-shields.com/
See "How to embed live Github PR status in your blogs & docs"
Consider the PR https://github.com/cloudfoundry/bosh/pull/715.
The URL doesn't indicate if the PR is open/merged/closed.
The cloudfoundry/bosh/pull/715 portion of the URL is copied directly into the following base URL:
https://github-shields.com/github/ + cloudfoundry/bosh/pull/715 + .svg gives a URL that redirects to the PR.
https://github-shields.com/github/cloudfoundry/bosh/pull/715.svg
As an image URL it gives cloudfoundry/bosh/pull/715
Awesome, it was merged!
For the status of a project, the OP kxxoling reports in the comments having found shields.io:
https://img.shields.io/badge/<SUBJECT>-<STATUS>-<COLOR>.svg
it indicates how to get the status of a badge.
If there none badge added for that project, it will return a inaccessible badge like this: https://img.shields.io/travis/kxxoling/z42-doc.svg =>
For projects like https://github.com/kxxoling/z42-doc (which does have a badge in it), you need to fetch the README and then search through it for possible badges. Without knowing what language you'd prefer to use, I'm going to write some pseudo-code
First you need to retrieve the README that GitHub identified as the one to render on your home-page. You can do this by doing
GET /repos/kxxoling/z42-doc/readme
Host: https://api.github.com
Accept: application/vnd.github.v3.raw
If instead you'd rather parse HTML, change "raw" to "html" in the last header, e.g.,
GET /repos/kxxoling/z42-doc/readme
Host: https://api.github.com
Accept: application/vnd.github.v3.html
With the contents of the README, now you just need to parse it for links or directives that are specific to the mark-up languages you chose for your READMEs. You can parse them out with regular expressions or an HTML/XML parsing library of your choosing (if you're retrieving the rendered content from GitHub).

Example for Otrkit example in Xcode ios

I wanna encryption using OTR, so i use the module from github
https://github.com/ChatSecure/OTRKit
i followed that read me file but i cant able to done the encryption,
is any one use the module "OTRKit" from github,
produce simple example for using OTRKit in xcode like encrypt a message "Hello" and Decryot that,(shows text in alert box is enough).
i hope will some one help me,
Thank u...

Use of XMLHttpRequest in Dashboard widget failing

I am unable to get an XMLHttpRequest object to work correctly in a Dashboard widget I am writing. I've isolated it to a trivial example not working in the global scope of the main.js file:
xhr = new XMLHttpRequest;
xhr.open( 'GET', "http://google.com", false );
xhr.send('');
When the last line is executed I get the error "ABORT_ERR: XMLHttpRequest Exception 102" (this is in the Dashcode debugger).
Does anyone have any idea what could be wrong here?
You need to select "Allow Network Access" in the "Widget Attributes" pane.
OK, I've found it (three hours): you need to add the following key to the Info.plist file:
<key>AllowNetworkAccess</key>
<true/>
I've got the same trouble unresolved even after AllowNetworkAccess were added to my info.plist. I've tried to change this key to AllowFullAccess, but nothing changed. After system reboot it worked fine o_O
The steps to take are:
From the menu, choose "Dashcode > Preferences..." and click on the Destinations tab.
Below the left column, click on the plus sign to create a new destination.
For an external website, choose FTP in the Type drop down. Fill out the Server, Path, User name and Password. Close the Preferences pane.
Back in Dashcode, click on the Widget Attributes icon in the left column.
Check the boxes of Allow network Access and Allow External File Access in the main column.
You should be able to run the widget without the 102 Exception error (if you are online)