SixPairs

December 1, 2013

GetProjectItemTemplate

Filed under: Uncategorized — Ceyhun Ciper @ 00:05

Getting the “Text Template” template:

var template = <EnvDTE80.Solution2>.GetProjectItemTemplate(“TextTemplate.CSharp.zip”, “CSharp”);

 

January 26, 2011

Visual Studio Folder Explorer

Filed under: Uncategorized — Ceyhun Ciper @ 16:56

Sometimes I want to explore my folders from inside Visual Studio instead of Alt-Tab’ing to Windows Explorer; there are already excellent tools to do that on Visual Studio Gallery. But what they do is ephemeral; as soon as you close your session your folder structure is gone. What is more, they don’t let me annotate the folders that I am interested in or eliminate uninteresting ones from view without deleting them. On the other hand, I sometimes need to have different sets of the folders persisted so that I can concentrate on them later on. Furthermore, I also need to bring home the folder structure of some servers I have been using at work and persist some comments about them.

So, it is not just a question of exploring the file system from VS.

Therefore, I wrote a small DSL that lets me choose the folders that I am interested in, annotate them and persist the set that I want to peruse later. It is posted on the Visual Studio Gallery.

Actually, the real impetus for me was to migrate my old VS2008 C++ projects to VS10 so that I can uninstall VS2008; but I don’t remember their locations! So, I have to categorize the folders as C++ or other solutions, at the very least, and then as VS2008 and VS10. Even before categorizing, it is a good idea to give a description to all relevant folders; what were they for, will I be needing them, do they depend on anything else…

November 11, 2010

SVG to XAML Conversions

Filed under: Uncategorized — Ceyhun Ciper @ 16:53

I have finished the initial usable versions of an “SVG to XAML Conversion Suite” on graphspe.com.

The reason why I needed to do it is that, although there are some other tools out there, they have some drawbacks:

  1. Some of them render text as paths
  2. Most don’t behave in a free-threaded environment so that I can’t use them immediately from my web sites, web services or parallel batch converters
  3. Even if they render text correctly, it appears in the wrong places
  4. Some can’t handle “100%” sizing (which becomes 0, so no visuals); in general, canvas sizes are not measured correctly
  5. Most are not friendly to GraphViz’ svg output

While the suite is not perfect, I have control over which features I need so that I can implement/modify them.

SvgLibLogo Svg2XamlLibLogo SvgControlLogo Svg2XamlBatchLogo

November 17, 2009

Tree Drawing Language

Filed under: Uncategorized — Ceyhun Ciper @ 03:53

I have just developed an embedded language to represent trees and draw them on a WPF canvas in XAML, and published it on the tree drawing language section of my domain specific languages page.

Its usage is extremely simple:

"ceo (cfo (accounting hr planning) cio (operations it))".ToCanvas() → Canvas
"ceo (cfo (accounting hr planning) cio (operations it))".ToXaml() → Xaml
"ceo (cfo (accounting hr planning) cio (operations it))".ToTree() → Tree

tree-language-screenshot-2  tree-language-screenshot-1

So, one can simply printf to a string and immediately obtain a tree along with its drawing.

November 5, 2009

SVG to XAML Conversions

Filed under: Uncategorized — Ceyhun Ciper @ 14:11

I have finished the initial usable versions of an “SVG to XAML Conversion Suite” on sixpairs.com.

The reason why I needed to do it is that, although there are some other tools out there, they have some drawbacks:

  1. Some of them render text as paths
  2. Most don’t behave in a free-threaded environment so that I can’t use them immediately from my web sites, web services or parallel batch converters
  3. Even if they render text correctly, it appears in the wrong places
  4. Some can’t handle “100%” sizing (which becomes 0, so no visuals); in general, canvas sizes are not measured correctly
  5. Most are not friendly to GraphViz’ svg output

While the suite is not perfect, I have control over which features I need so that I can implement/modify them.

SvgLibLogo Svg2XamlLibLogo SvgControlLogo Svg2XamlBatchLogo

November 2, 2009

SVG to XAML Converter

Filed under: Uncategorized — Ceyhun Ciper @ 15:30

Svg2XamlLibLogo

None of the converters that I tried could convert my GraphViz svg output to XAML, so I decided to write my own.

It is posted on graphspe.com.

XamlTune converted text to paths!…

…with the paths in wrong places on top of it! (no ”middle” align?)

The xslt solution (don’t remember the url) did not work at all.

Well I should say that non-programmatic solutions were not in my periscope.

So this is what I did:

Svg2XamlLibUsage

Create a free website or blog at WordPress.com.