Create a new git repository from one folder contained in another git repository

When your repository is becoming too big and you using git sparse checkout is not what you want because you just want to get rid of some folders but still want to keep the commit history, then you need to do the following :

for example, you have the following folder structure in Repo_A:

https://someserver/Repo_A.git
-> src
-> documentation
-> src-feature1

you want to put src-feature1 in another new git repo : Repo_B
Continue reading Create a new git repository from one folder contained in another git repository

PostgreSQL – new jsonb feature exploration – insert, query, index

In this post, I will explore the (not really new) postgreSQL jsonb feature as my objective is to compare nosql performance in real scenarii.

Prerequisite:
  • postgreSQL 9.4.4 installed (you can check by issuing the following : select version();)
  • pgAdmin installed
  • this runs on a HP probook 6560b
    • Processor Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    • 16 G of ram
Roadmap

Exploring GraphDB – Access Neo4J with .net driver (Create, Delete and Match)

Still on my path to

“what is GraphDB and what are its limitations… from the eyes of a developer”

I had to access it from code. I choose to do it in .net and first created a simple access library that I will surely evolve during my learning. (you can check it here : CExtensions-Cypher). I also created a feed for this on Myget : MyGet cextensions-cypher feed. As of this writing I used version 0.1.0-CI00001. (so early birds, be patient or contribute)

Note : You can also simply connect to Neo4j by just adding the package Neo4j.Driver.

If you want to use my library with VS2015, just add the feed in your Nuget Package Manager settings (Package sources) and add it to your project.
Continue reading Exploring GraphDB – Access Neo4J with .net driver (Create, Delete and Match)

Exploring GraphDb – Getting Started with Neo4J

To get up and running with a graphDb is pretty simple and faster than I thought. I started my learning with Neo4J installation on a Windows (running windows 7).

simply by going this way : neo4j getting started or going directly to the download link.

1) from there :

  • you can choose the free community edition
  • then select the Other Releases link
  • I choosed Neo4j 3.0.3 for windows 64 bit, but this depend on your platform.

Continue reading Exploring GraphDb – Getting Started with Neo4J

VSIX Extension : how to add an icon to your command

This post explains how to add an icon to your VSIX extension.
(this was done using visual studio 2015 and relates to the following project : CExtensions-EFModelGenerator. see the Extension project)

A. Get a .ico file. You can create one or get a png file and find a converter online… there are plenty of them.

B. open your *.vsct file and add a GuidSymbol Element. To generate the guid : from file menu : Tools => Create Guid

 <GuidSymbol name="EfModelCommand_Icon_Symbol" value="{363F9640-FBB7-4403-AB20-9A53EA067ECA}">
      <IDSymbol name="EfModelCommand_Icon_ID" value="1" />
 </GuidSymbol>

To generate the guid : from file menu : Tools => Create Guid, select registry format, copy and paste it

create_guid

Continue reading VSIX Extension : how to add an icon to your command

How Do I manage my OSS builds and versioning with MyGet.org and Nuget.org

I write this post, because everytime I start a new project, I wonder what is the correct configuration. So I will keep things in sync from here.

1. Build with Myget

nota : I use Myget for my dev builds and nuget only for beta, rc and prod releases.

  • First create a new feed from www.myget.org => simply click on New Feed button

Create_feed
Continue reading How Do I manage my OSS builds and versioning with MyGet.org and Nuget.org

Generate Poco classes from SqlServer or Oracle using CExtensions.EFModelGenerator

This post is about a new library CExtensions-EFModelGenerator for generating poco and dbcontext classes from Oracle or Sqlserver databases.
(support for other databases can be provided through customization).

with this library it could also be possible to generate code for java, javascript and other by implementing a custom Serializer (check the Test for mor info and more samples).

This post guides you through how to generate code from Sqlserver. (also check the Sample folder in the repo)
Continue reading Generate Poco classes from SqlServer or Oracle using CExtensions.EFModelGenerator