repository

Is Kigg MVC application DRY? Can we tweak the Repository

北城以北 提交于 2019-12-10 18:56:13
问题 I was recently taking a look at the Kazi Manzur Kigg MVC implementation (Kazi rocks) and noticed some code that seemed to defeat the DRY/SOC principle. I'd love to have everyone's thoughts on a possible refactor to separate concerns. Kigg implements both an Add and Remove method on each repository class ( Note : BaseRepository has virtual methods than can be overloaded by each concrete implementation.) The implementations for the Kigg.Repository.LinqToSql.CategoryRepository and the Kigg

LibGit2Sharp CheckoutPaths()

给你一囗甜甜゛ 提交于 2019-12-10 18:03:02
问题 I did a commit (49916.....) now i want to checkout one file of the commit into the working dir. The file is named NEW.txt. If i type Git checkout 49916 NEW.txt into Git Bash it creates the NEW.txt file with the content in my working dir. But my LibGit2Sharp command does not want to work. What am I doing wrong? var repo = new Repository(repopath); var checkoutPaths = new[] { "NEW.txt"}; repo.CheckoutPaths("49916", checkoutPaths); I read every article which i could find about the checkoutpaths

How to prevent tracked config files from being changed by merges in git?

南笙酒味 提交于 2019-12-10 17:52:58
问题 I have a web project with two git branches (developing and production) and each one connects to a different server (dev and prod). Each branch has a set of tracked config files, such as different URLs, database options, sql exported files, etc. which are different on both branches. Every time I try to merge those branches I get a lot of conflicts in these settings files which need to be resolved manually, but every now and then I miss something. In short, it is a nightmare. My question is

How to delete a Sonatype Nexus OSS(3) Component from a Repository

与世无争的帅哥 提交于 2019-12-10 17:33:15
问题 its my first question here and i try to do my best. :-) If there should be something wrong, tell me simply and I correct myself. Im new to Sonatypes Nexus 3 OSS, and i cant find a way to delete a component from my repository. A package from my repository has become useless and now I would like to delete it. The artefacts I deleted already, but the package remains. I use the web ui and I think that I just missing something. Update: You find the page that show the packages in: Browse >

Can Nexus/Artifactory store a copy of an internet Maven artifact?

自古美人都是妖i 提交于 2019-12-10 17:32:51
问题 I would like to have Nexus (or Artifactory, we're not decided yet) store a copy of an artifact when it is downloaded from a public repository on the internet (like Maven Central). Basically, if you don't have the jar in your local repo and the repo manager doesn't have it either, I want to ask the repo manager for the jar, have it send it to me, and store it both in the repo manager and in my local repo. Then, when another person asks the repo manager for the same jar, it sends it to them

Determine via C++ whether a program is installed in Linux

[亡魂溺海] 提交于 2019-12-10 16:12:13
问题 I would like to make a system call to a Linux program from my C++ code, but I would like to check whether the program is installed on the user's machine first. In Ubuntu, I can determine whether a package associated with that program was installed using a system call like dpkg -s gifsicle and parse its output. gifsicle here is the program name. However, it's possible that the program (e.g. gifsicle ) was compiled from source and thus does not appear in the Ubuntu package repository. What's a

How can I checkout the OpenJDK from the mercurial repository?

懵懂的女人 提交于 2019-12-10 16:08:14
问题 How can I checkout the the sources of the OpenJDK? I want see if some bug fixes work. The last download is very old. I use the the mercurial URL http://hg.openjdk.java.net/jdk6/jdk6. But I see only a revision of 58 and some make files in the repository. It does not look like the sources of the OpenJDK. Is this the wrong repository URL? It is list on the project home page at http://openjdk.java.net/projects/jdk6/. I have never work with mercurial before. What am I doingg wrong? 回答1: Try http:/

maven2 - how to list all resources repository url from pom file

╄→尐↘猪︶ㄣ 提交于 2019-12-10 15:59:06
问题 I'm looking for something like this: List<URL> urls = listURLFromPOM("c:\pom.xml"); .. http://repo1.maven.org/maven2/org/apache/ibatis/ibatis-core/3.0/ibatis-core-3.0.jar http://repo1.maven.org/maven2/org/apache/camel/camel-activemq/1.1.0/camel-activemq-1.1.0.jar ... 回答1: You can use the Maven Dependency Plugin to analyze the dependencies of you POM. mvn dependency:list -DoutputAbsoluteArtifactFilename=true -DoutputFile=dependencies.txt 回答2: A dependency is not aware of its "source repository

Checking out svn repository without .svn files

老子叫甜甜 提交于 2019-12-10 15:16:27
问题 I have an svn repository on my dedicated server (Centos 5.5) at /var/svn/myRepository. I just want to copy those files into my production folder /var/www/myWebapp. As far as I am understanding SVN I could only use svn export on my local project folder which has all the sourcecode and additional .svn files. But on my dedicated Server I just have the repository. How can I get the sourcecodefiles, without those .svn files out of that repository into my /var/www/myWeapp folder? 回答1: No. You don't

Re-factor my DAL code to a Domain Driven Design or more modern design (C# 3.5)?

人走茶凉 提交于 2019-12-10 14:45:27
问题 The development is limited to Visual Studio 2010 (Client approved software). We need to access the data through stored procedures. I want to avoid making it too complex with an aggressive schedule. Most of the design I see involve EF and LINQ, Not sure how to design for procs? I want to create a separate code library project (used Web UI): Application.Domain - Interact get/put stored procedures, entities Application.Web - containing Web UI (JQuery, AJAX), WCF Service Can anyone give me sample