repository

one project, two versions? (sandboxed and nonsandboxed version)? any easy way to maintain the code?

这一生的挚爱 提交于 2019-12-06 14:39:00
I have developed a cocoa project and right now it has two versions, both sandboxed and non-sandboxed version. there are some differences between the sandboxed and non-sandboxed version, but the majority is the same. ie. for sandboxed version I will have limited access to certain directories, and in order to access some directories like desktop I'll have to add the entitlement. for the non-sandboxed version, I'll have no limitation on the directories, also I am allowed to add the "check for update" aka sparkle framework etc. both are still in testing mode (ie. not yet submitted to the mac app

Download artifacts archive from Artifactory

让人想犯罪 __ 提交于 2019-12-06 14:16:31
I'm testing Artifactory 4.2.0 PRO. The really nice feature is the possibility to download an archive of all files produced by the build by executing, something like: curl -XPOST -u admin:password -H "Content-Type: application/json" http://localhost:8081/artifactory/api/archive/buildArtifacts -d ' { "buildName": "Vehicle Routing Problem", "buildNumber": "3", "archiveType": "zip" }' > build.zip However, I'm unable to find if there is a possibility to do the same (download archive) when specifying exact properties using AQL. I have been trying to upload other artifacts with properties exactly the

Doctrine2 basic; Proxies, Repositories

狂风中的少年 提交于 2019-12-06 13:51:19
I can use Doctrine2 and it works. But i really dont understand what i am doing.. I don't understand what are proxies, i have created em all from command line, but do i really need them ? How Doctrine2 annotations work? Does Doctrne2 file scan every time to find the repository class file from the Entity annotation ? i think i need some resources to understand the basic consepts of the ORM.. Project is working but i am not so sure that is working as it should be.. Thanks Ok, first thing to understand is that your database tables and relationships are 'mapped' to your php 'entities'. For example,

How to not return an specific column using PagingAndSortingRepository

三世轮回 提交于 2019-12-06 13:05:08
I know the title may sound a bit confusing, but I did not know how to summarize my problem on the title. My main problem is that I do not want to return an specific column using PagingAndSortingRepository. Imagine the following scenario: I have two entitys, one called Users: @Entity @Table(name = "users") public class User implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotBlank() @Column(name = "name") private String name; @Column(name = "password") private String password; } And one called Cars: @Entity @Table(name = "car") public class Car

CQRS code duplication in commands

醉酒当歌 提交于 2019-12-06 12:30:31
I have a question about code duplication in the command side of the CQRS principle. Been following the articles from: https://www.cuttingedge.it/blogs/steven/pivot/entry.php?id=91 https://www.cuttingedge.it/blogs/steven/pivot/entry.php?id=92 It seems to me that this approach of separating each command in it's own class is going to give some code duplication when retrieving the entities from the data store. A bit contrived perhaps but let's say for example I have a command where I want to reset a users password given his email-address and a command where I want to update the user's last login

Service Layer are repeating my Repositories

自闭症网瘾萝莉.ら 提交于 2019-12-06 12:11:54
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service layer that are used by controllers of my application. Everything are using Unity to inject dependencies (ISessionFactory in repositories, repositories in services and services in controllers) and works fine. But, it's very common I need a method in service to get only object in my repository, like this (in service class): public class ProductService { private readonly IUnitOfWork _uow; private readonly IProductRepository _productRepository; public ProductService(IUnitOfWork unitOfWork, IProductRepository

How to skip initial revisions in svnsync sync (to fix broken repository)

血红的双手。 提交于 2019-12-06 12:03:47
I want to sync/copy a single project out of a moderate large SVN repo using the (usual) sequence svnadmin create %mirror% rem make insecure dummy hook echo rem dummy > %mirror%\hooks\pre-revprop-change.bat svnsync init %mirror_url% http://svn/original/... svnsync sync %mirror_url% This works but takes long time, see related question . In fact I do not need any revisions prior to e.g. r=17830. And the real problem is that the original repo seems to be corrupt before this revision and I can't convert it to hg, so I try to workaround ... Question: Is there a way to fake the newly created repo

Combine a base project that is growing in child projects in git repository except git submodule or subtree merge methods

戏子无情 提交于 2019-12-06 09:49:28
问题 There are some child projects: "Project 1", "project 2" and so on in the future. Also, There is a project that named: "Base Project" and it's foundation of other projects. "Base Project" is a content management system (CMS). All projects have their own git repositories. "Project 1" , "project 2" and others uses "Base Project" to develop and grow. There are some methods in git like submodule or subtreemerge. but don't seem to fit here. "Base Project" not should be clone into a sub directory.

repo gets stuck after downloading

橙三吉。 提交于 2019-12-06 08:53:49
I'm using repo to download Android source code (ICS). However, repo gets stuck after downloading about 6.2G data. The last lines of repo's output is: remote: Counting objects: 249, done remote: Finding sources: 100% (129/129) remote: Getting sizes: 100% (144/144) remote: Compressing objects: 100% (24/24) remote: Total 129 (delta 69), reused 127 (delta 68) Receiving objects: 100% (129/129), 15.60 MiB | 2.17 MiB/s, done. Resolving deltas: 100% (69/69), completed with 46 local objects. From https://android.googlesource.com/platform/prebuilt * [new branch] ics-factoryrom-2-release -> aosp/ics

Maven. Repository authentication

爱⌒轻易说出口 提交于 2019-12-06 08:25:18
问题 I tried setup deploy to local repository: -- settings.xml -- <server> <id>myrepo</id> <username>deployer</username> <password>123456</password> </server> -- pom.xml --- <repositories> <repository> <id>myrepo</id> <url>http://myserver.com/artifactory/libs-release-local</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> when I execute "mvn