version

Best approach for Free and Paid versions of Android application?

可紊 提交于 2019-12-21 02:26:08
问题 I have developed an Android app which I want to be available both as free and paid version. What is the best approach? I can think of three solutions: Split the project into two branches and maintain both of them. Create a library project and have two additional projects, one 'Free' and one 'Paid' version. Use in-app billing. Q: Which solution is the best? And why? Some things to consider: My app is around 1.5 MB (AdMob excluded). I'm currently targeting Android 2.2 (Froyo). I do have some

How to use Mercurial for version control of text documents?

半世苍凉 提交于 2019-12-20 14:35:10
问题 This is not exactly a programming question, however I think it fits here better than in the TeX group I want to use version control for keeping track of changes of text files (which are used to create LaTeX output. (As I am no programmer, I don't have deeper experience with version control system yet.) I'd like to use Mercurial for that, and I'm working on MacOS X 10.6. The files are about job applications, so mostly 3 files for each company: a letter of motivation a CV and one file with the

Facebook PHP SDK 4.0 : Getting Long Term Access Token

无人久伴 提交于 2019-12-20 10:52:00
问题 I'm trying to use the PHP sdk v4.0 to get a long term access token for PAGE management. I'm grabbing the access token from the user's login (Yes, I'm grabbing the Page-specific access token). Then sending it to the endpoint as specified in documentation, but I'm not getting any results and I'm not getting any errors. Could I know what is the correct code snippet to use? This is the code I'm using so far $endpoint = '/oauth/access_token?'; $endpoint .= 'grant_type=fb_exchange_token&';

Facebook PHP SDK 4.0 : Getting Long Term Access Token

99封情书 提交于 2019-12-20 10:51:12
问题 I'm trying to use the PHP sdk v4.0 to get a long term access token for PAGE management. I'm grabbing the access token from the user's login (Yes, I'm grabbing the Page-specific access token). Then sending it to the endpoint as specified in documentation, but I'm not getting any results and I'm not getting any errors. Could I know what is the correct code snippet to use? This is the code I'm using so far $endpoint = '/oauth/access_token?'; $endpoint .= 'grant_type=fb_exchange_token&';

Automatic version number both in setup.py (setuptools) AND source code?

♀尐吖头ヾ 提交于 2019-12-20 09:15:31
问题 SITUATION: I have a python library, which is controlled by git, and bundled with distutils/setuptools. And I want to automatically generate version number based on git tags, both for setup.py sdist and alike commands, and for the library itself. For the first task I can use git describe or alike solutions (see How can I get the version defined in setup.py (setuptools) in my package?). And when, for example, I am in a tag '0.1' and call for 'setup.py sdist', I get 'mylib-0.1.tar.gz'; or 'mylib

FileVersionInfo and AssemblyInfo

老子叫甜甜 提交于 2019-12-20 09:11:50
问题 Given this snippet from Blah.dll's AssemblyInfo.cs: [assembly: AssemblyVersion("3.3.3.3")] [assembly: AssemblyFileVersion("2.2.2.2")] And then in a separate .exe: var fileInfo = FileVersionInfo.GetVersionInfo("/path/to/Blah.dll"); fileInfo.ProductVersion == fileInfo.FileVersion == true; Other SO questions show ProductVersion being "correct", curious if there is something odd about how I'm using it. Shouldn't ProductVersion be "3.3.3.3" and FileVersion be "2.2.2.2"? What would cause it to

How to fetch Java version using single line command in Linux

天大地大妈咪最大 提交于 2019-12-20 08:30:54
问题 I want to fetch the Java version in Linux in a single command. I am new to awk so I am trying something like java -version|awk '{print$3}' But that does not return the version. How would I fetch the 1.6.0_21 from the below Java version output? java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) 回答1: Redirect stderr to stdout. Get first line Filter the version number. java -version 2>&1 | head -n 1 | awk -F

jquery 1.4.2 working for iCheckBox and not jquery 1.6

旧街凉风 提交于 2019-12-20 06:13:49
问题 I am using this jquery plugin for Apple like checkbox button. However when I use jquery version 1.4.2 it works perfectly but when I try to use jquery version 1.6. that plugin doesn't work. I tried debugging javascript using IE9 developer toolbar but it is not throwing any error. Thank you. 回答1: EDIT: got it working in FF4 as well now, see this: jQuery 1.6: backgroundPosition vs backgroundPositionX and FF4 compatibility Got it working with jQuery 1.6.x and 1.5.x (in Safari and Chrome on Mac,

jquery 1.4.2 working for iCheckBox and not jquery 1.6

落爺英雄遲暮 提交于 2019-12-20 06:13:06
问题 I am using this jquery plugin for Apple like checkbox button. However when I use jquery version 1.4.2 it works perfectly but when I try to use jquery version 1.6. that plugin doesn't work. I tried debugging javascript using IE9 developer toolbar but it is not throwing any error. Thank you. 回答1: EDIT: got it working in FF4 as well now, see this: jQuery 1.6: backgroundPosition vs backgroundPositionX and FF4 compatibility Got it working with jQuery 1.6.x and 1.5.x (in Safari and Chrome on Mac,

Command Python2 not found

僤鯓⒐⒋嵵緔 提交于 2019-12-20 05:35:31
问题 I have to use Python2 for the following command: python2 -m pip install SomePackage in the command line. I get the message that Python2 is not found, but I have definitly installed Python 2.7.1. When I run python --version I get the output Python 3.5.1 . Edit: I use Windows. And the commands whereis and env were also not found. 回答1: Under windows you have to use: py -2 yourfilename // for python2.x py -3 yourfilename // for python3.x 回答2: If you really have installed python2.x and it is on