code-sharing

How do you share code between projects/solutions in Visual Studio?

I have two solutions which have some common code, so I'd like to extract it out and share it between them. Furthermore, I'd like to be able to release that library independently because it might be useful to others. What's the best way to do it with Visual Studio 2008? Is a project present in more than one solution? Do I have a separate ...

Ruby on Rails modules, code sharing, and community

Prologue: I know about gems. I use Drupal at work. In case you don't know, Drupal is modules. There is a framework and a core framework, but when you build a site in Drupal, installing and configuring modules is most of the work. So what, being new to Rails, I have a pet project and I am trying to build a login/user system. I've read...

Do you know any code sharing sites?

I am always looking to organize and make my resource bookmarks better and easiar to access when I need them. 1 thing I really like is code sharing sites, they let you enter in code and then give you a special link to give a friend or a user on this site even to show then code, This is a very useful tool I believe. So below is my lis...

Code sharing in GWT app engine

I have an Employee class @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String firstName; @Persistent private String lastName; ...

Can different git-svn clones of the same svn repository expect to be able to share changes then git svn dcommit ?

Hi, I've read a great deal of "go from svn to git" and other "git-svn workflow" articles on the web, and still I think they often deal with overly simple situations. They are often targeted at guys who just want to use git and hack locally, without using the full power of git, like pull, fetch, merge and the like between multiple develo...

Codeigniter Shared Resources - Opinions Wanted

I run multiple websites all running off of a single installation of CodeIgniter on my server (separate application directories and a single system directory). This has been working fabulously and I don't see any reason to change it at this point. I find myself writing library classes to extend/override CI all of the time and many times...

Share c# class source code between several projects

I have written a class that will handle internal logging in my application. Now I want to use this class in another new and totally separate project. I could simply copy the file to the new project folder, but I would like to only have one copy of it to maintain so that all changes in it will apply to both projects over time. I can use...

The right method of sharing database variables (asp.net)

I have been sharing database variables using the following code: Namespace DataAccessVariables Public Class Vars Public Shared s As String Public Shared con As String = WebConfigurationManager.ConnectionStrings("Dev").ToString() Public Shared c As New SqlConnection(con) Public Shared x As New SqlComma...

What do you do with GitHub repositories you no longer maintain?

What do you do with GitHub repositories you no longer maintain? For whatever reason a project is started with a GitHub repository and then sometime later it's abandoned Perhaps it was an experiment that didn't work out. Perhaps you replaced it with a commercial product. Or perhaps you found a similar project to what you were doing an...

What components have you built that you are reusing over and over again for your desktop applications?

We are building our internal library of components up, and was wondering what everybody has in their library of reusable components for your organization, for desktop applications. Our list currently includes only a couple of components: Logon, Security and User Group functionality System Tray / Service Framework Component for Interne...

Where to post code for open source usage?

I've been working for a few weeks now with the Google Maps API v3, and have done a good bit of development for the map I've been creating. Some of the things I've done have had to be done to add usability where there previously was not any, at least not that I could find online. Essentially, I made a list of what had to be done, sear...

Cocoa framework development: sharing between projects

I am currently developing a handful of similar Cocoa desktop apps. In an effort to share code between them, I have identified a set of core classes and functions that can be common across all of these applications. I would like to bundle this common code into a framework which all of my current applications (and any future ones) can link...

Are there Code-Sharing Websites?

Since I'm not the most outspoken or outgoing person at college, I don't talk to a great variety of people. Most of them don't readily like talking and discussing programming, which is a real shame. While I try to read code a lot from this site and other's like code.google or Project Euler, I often find myself asking, "What would people...

Silverlight 4 Assembly Sharing Problem

I have a WPF .NET 4.0 class library referencing a Silverlight 4 class library. The SL library compiles fine but when I compile the WPF class library, I get: Error 2 Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been ...

2 Apks running in 1 process (sharing code and data)

Hi, I know there are many posts around the issue I am facing but I havent been able to see any yet which addresses my issue. This is what I am doing: Create 2 apks. (1 with an activity - lets call it F1App and 2nd with a service - F1Service) Both APKs have same sharedUserId and same android.process and are signed with the same key - ...

The type '...' exists in both 'Util.dll" and 'Util (Silverlight).dll'

Hello! I'm attempting to follow David Betz' wonderful advice on how to use a library project in both your .NET and Silverlight code. In particular, I'm using his File-Level technique: I have a .NET library project already set up, so I created a Silverlight project, and added links in the latter to the former's files. Unfortunately, the...

Open source software for code sharing?

What's a good open source software for code sharing?. I work in a research institute and we want to support one inhouse. Perhaps some sort of pastebin app might work as long as it's code savvy? Any ideas are most welcome. ...