package-managers

PHP & Composer, how do I combine composer.json files

房东的猫 提交于 2019-12-04 13:09:44
Can someone explain how I'm supposed to use composer with a php. I have a composer.json file in my doc root that downloads the core packages for my project, but then when I want to add another project like google+ php sdk found here https://github.com/googleplus/gplus-quickstart-php/ what do I do with that composer.json file? do i combine them manually? Do I just download that composer.json into a different dir? my current composer.json file looks like this { "name": "fuel/fuel", "type": "metapackage", "description": "The FuelPHP framework", "keywords": ["framework"], "homepage": "http:/

Package(Plugin) Management for Vim

僤鯓⒐⒋嵵緔 提交于 2019-12-04 07:39:17
问题 Emacs 24 looks like it will have a package manager. What package management options are there for Vim? 回答1: I am now using VimPlug for my own Vim setup, and I definitely recommend it. Installation is very simple, and it is fast, pretty and effective! I used to recommend Vundle in this answer. But Vundle is no longer maintained, and there are better alternatives. 回答2: Plugin management for vim used to be a pain in the traditional way by spreading plugin files across the whole personal vim

Get All Activities by using package Name

我怕爱的太早我们不能终老 提交于 2019-12-04 05:11:09
I want to get all activities present in Application as a list by using PackageInfo. Please tell me is there any way to do this. Thanks in advance. Bharath Kumar Bachina I got answer to my question as follows. public static ArrayList<ActivityInfo> getAllRunningActivities(Context context) { try { PackageInfo pi = context.getPackageManager().getPackageInfo( context.getPackageName(), PackageManager.GET_ACTIVITIES); return new ArrayList<>(Arrays.asList(pi.activities)); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); return null; } } Try below code: final PackageManager pm =

Dependency management and build tool for JavaScript

喜你入骨 提交于 2019-12-04 05:08:01
I have many JS snippets and files shared across multiple projects. I have to either copy-past them into a single file for each project, or serve them as individual files on cdn. Both are bad ideas. Is there any dependency management and build tool like Maven for JavaScript? Ideally it would take a set of js dependencies and build a single js file which can be served on cdn. I can write a script to do that. But I'm looking to find if anything comparable to Maven exists for JS. Update 2014: Based on answers here and my research following are most popular tools: Bower, NPM, RequireJS, Browserify,

How do I permanently set a new Default project in the VS NuGet Package Manager console?

拥有回忆 提交于 2019-12-03 23:31:55
I am using VS2012 and every time I reopen VS, the Default project in the NuGet Package Manager console has been reset to what seems like a arbitrary project, and I have to use the dropdown list to reset to the appropriate project. How can I set (and persist this setting) for the default project for the package manager console? As it stated in documentation here Package Manager Console's Default Project is whatever project set as StartUp Project on your solution level. You can control StartUp project using right click on project in solution explorer and choosing Set as StartUp Project : or from

When using Swift Package Manager how can I generate an Xcode project file for development

别说谁变了你拦得住时间么 提交于 2019-12-03 22:29:48
I am using the new open source Swift Package Manager and am able to download the files. I want the manager to create a "development environment" (Through Xcode) based on the packages it retrieved. Has anybody dealt with this? Kostiantyn Koval Update: as mentioned in other answers, you can now generate Xcode project files with this command: swift package generate-xcodeproj Original answer: The Swift Package Manger (SPM) is cross platform, It works on Mac and Linux. The Xcode is Mac OS only, so I don't think SPM will be hard integrate to work with Xcode. SPM can do 2 things: Build swift source

What does conda do when “solving environment”

半城伤御伤魂 提交于 2019-12-03 22:06:50
Whenever I run conda install/remove/update <package> , it tells me it's "Solving environment" for some time before telling me the list of things it's going to download/install/update. Presumably it's looking for dependencies for <package> , but why does it sometimes remove packages after doing this operation? For example, as I was trying to install Mayavi, it decided it needed to remove Anaconda Navigator. Furthermore it does not provide an option to perform only a subset of the suggested operations. Is there a way to specify that I don't want a package removed? You can add --debug option to

Installing nuget package from GitHub

风流意气都作罢 提交于 2019-12-03 16:29:40
问题 The command: Install-Package curve25519-uwp installs version 1.0.3 of this package (https://www.nuget.org/packages/curve25519-uwp/) On GitHub there is a version 1.0.4 that fixes a specific error I am facing. Can anyone explain how to get that package installed? I am using visual studio 2015 community edition with git tools installed. 回答1: With NuGet, there is no way to take a pre-version from a Git repository. You could: Ask for the release of a new version of the NuGet package, or at least a

How make bower build the package?

早过忘川 提交于 2019-12-03 16:04:43
问题 Is there a way to make bower run a package grunt after it was cloned from GitHub? I'm trying to use Bower but one of the packages I'm using is the Bootstrap extension, x-editable. The problem is that while other packages push a fully built version to github so when installed by Bower you have a built version x-editable expect you to run a grunt file to build the package. That is a common practice in other package managers like npm but I could find how to make Bower build it on install. Which

Searching PyPI by topic

人盡茶涼 提交于 2019-12-03 15:37:46
问题 For every python package you can specify a list of classifiers. Among others there is a Topic classifier, that puts the package in the specified categories that can be browsed on PyPI. For example, numpy has the following topics: Topic :: Software Development Topic :: Scientific/Engineering Is there a way to search by topic programmatically using pip search or other third-party libraries? 回答1: You can search PyPI by classifier via the XMLRPC API, using the browse() method: try: import