repository

Java Eclipse IDE - Repository Errors

老子叫甜甜 提交于 2019-12-02 19:21:12
I've been up for hours now, searching online for a solution. I can happily say, this has really pissed me off. Upon opening 'Install New Software' I get "'Contacting Software Sites' has encountered a problem. Some sites could now be found. See the error log for more detail." Here's the error log: Some sites could not be found. See the error log for more detail. Unable to read repository at http://download.eclipse.org/webtools/repository/indigo/content.xml . Cannot assign requested address: JVM_Bind Unable to read repository at http://download.eclipse.org/eclipse/updates/3.7/content.xml .

How to switch android version in local repo?

假如想象 提交于 2019-12-02 19:19:15
I have downloaded whole working tree with the following command: repo init -u https://android.googlesource.com/platform/manifest repo sync -j8 After syncing successfully, I want to switch working tree to android 2.3.7. You see I didn't specify branch with "-b" parameter when "repo init". So I guess all tag info should be downloaded and I can easily switch to android 2.3.7 with the following command: repo forall -c git checkout android-2.3.7_r1 But it produces many errors like: error: pathspec 'android-2.3.7_r1' did not match any file(s) known to git. So how can I switch to android 2.3.7

How to Commit and Push Android App/Project to Pre-existing Empty Bitbucket Repository with Android Studio?

 ̄綄美尐妖づ 提交于 2019-12-02 18:53:26
So I'm running the latest version of Android Studio (0.6.1) and want to push to BitBucket because it has free private repos (let's avoid any Github vs BB comments). I've created a simple repo to test the VCS functionality and am using a new Android project with the default configs except the app is called 'TestApp' and the project file is located on my desktop. I've performed the following steps: VCS>Import into Version Control>Create Git Repository Use default path: "C:\Users\User\Desktop\TestApp" VCS>Git>Checkout from Version control Give https://sanecito@bitbucket.org/sanecito/testrepo.git

How to setup public git repositories?

不问归期 提交于 2019-12-02 18:21:58
I recently tried to setup git repo on a linux box and wasted about 10 hours with absolutely no results. There aren't any problems with compilation or anything like that, it's just configuration issue. 2 hours later I got mercurial to do everything i need: public repos web ui push/pull with per-user permissions (not tied to linux accounts) Everything that I can see about git assumes that you are either just running it locally, using github or already have everything setup. I'm either not looking for the right keywords or there just no or very little info on the subject. I do want to try git,

Using View-Models with Repository pattern

╄→гoц情女王★ 提交于 2019-12-02 18:14:24
I'm using Domain driven N-layered application architecture with EF code first in my recent project, I defined my Repository contracts, In Domain layer. A basic contract to make other Repositories less verbose: public interface IRepository<TEntity, in TKey> where TEntity : class { TEntity GetById(TKey id); void Create(TEntity entity); void Update(TEntity entity); void Delete(TEntity entity); } And specialized Repositories per each Aggregation root , e.g: public interface IOrderRepository : IRepository<Order, int> { IEnumerable<Order> FindAllOrders(); IEnumerable<Order> Find(string text); /

“git add” returning “fatal: outside repository” error

与世无争的帅哥 提交于 2019-12-02 18:08:42
I'm just entering into the wonderful world of git. I have to submit a bunch of changes that I've made on my program, located in a directory called /var/www/myapp . I created a new directory /home/mylogin/gitclone . From this directory, I did a git clone against the public repo and I was able to get the latest copy created. I'm now trying to figure out how to take all the files in my working folder ( /var/www/myapp ) and "check them in" to the master repository. From /home/mylogin/gitclone , I tried git add /var/www/myapp but I'm getting an error that the folder I tried to add is outside the

Download Nuget Packages Without VS/NuGet Package Manager

五迷三道 提交于 2019-12-02 18:01:25
How can I download NuGet Packages outside of visual studio? so it can be used to create offline packages. How to download NuGet Package without Visual Studio or Nuget Package Manager: Search your desired package at NuGet Official Site . Copy the end of the URL of the package page. For Example: http://nuget.org/packages/EntityFramework => Package Name is "EntityFramework" Enter the URL: http://packages.nuget.org/api/v1/package/ {Package Name} For Example: http://packages.nuget.org/api/v1/package/EntityFramework Răzvan Flavius Panda You can download NuGet packages outside of Visual Studio using:

C# Service Layer Design Pattern

旧城冷巷雨未停 提交于 2019-12-02 17:44:07
We are looking into creating a new project and are wanting to explore using the Repository and Service layer patterns, the aim to is create loosely coupled code which is fully testable using mock repositories. Please see below the basic architecture idea. We will be using interfaces to describe the repositories and inject these into the service layers to remove any dependencies. Then using autofac we will wire up the services at runtime. public interface IOrderRepository { IQueryable<Order> GetAll(); } public class OrderRepository : IOrderRepository { public IQueryable<Order> GetAll() { return

Subversion repository layout for libraries developed across different programs

不问归期 提交于 2019-12-02 17:42:24
I'm responsible for several (rather small) programs, which share a lot of code via different libraries. I'm wondering what the best repository layout is to develop the different prorgrams (and libraries), and keep the libraries in sync across all the programs. For the sake of argument let's say there are two programs with two libraries: Program1 Library1 Library2 Program2 Library1 Library2 Naturally, bug fixes and enhancements for the libraries should (eventually) merge to all programs. Since the libraries are being worked on while working on the different programs, using externals definitions

ASP.NET service vs repository layers

我是研究僧i 提交于 2019-12-02 17:32:41
What is the difference between a service layer and a repository? I have worked through a lot of demo ASP.NET MVC apps and most of them have just repositories. And some have a mixture of both. When do you use just repositories and when do you use services / or both? The same is true for ASP.NET web apps. Tawani Repositories act just as gateways to your data storage (sql database, xml file etc.) while services usually implement some business rules on your data before sending the data to be saved in the database via a repository. consider this example: class UserRepository : IUserRepository {