Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

Jammer 0

@Jammer 0
About
Posts
991
Topics
265
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • System.Data.SQLite gives attempt to write to read only database
    J Jammer 0

    Did you ever get to the bottom of this? I've just started seeing the same behavior on an app that has been stable for years. Really odd.

    Jammer My Blog | JamSoft

    C# help csharp database sqlite winforms

  • Porting Prism WPF Framework Apps to .NET 5
    J Jammer 0

    Hi All, I was just wondering if anyone here had done much in this space yet? I've just come off the back of attempting to port my Prism/WPF app and had to basically walk away from the port for now. So many issues. I managed to get things compiling but deployment turned into a nightmare. It gets a little grating when all the tutorials and guides always bang on about how simple this is due to them using some noddy application knocked up in 5 mins for a demo. Since it's a WPF app none of the projects reference each other which means a hell of a lot of the migration tooling just cannot figure out what to do with the projects. I couldn't get the original exe project to behave at all so ended up rebuilding it from the ground up as a .NET5 exe. That being said this project started life in VS2008 and I think it's high time I rebuilt ALL the projects from the ground up. There is surely noise in some of them from previous migrations. One of the main deployment issues came from all the baggage some 3rd party libraries bring with them. I couldn't find a solid workaround for directory probing at runtime for instance. There is talk about hacking this with deps json files to kid the runtime into thinking the directories are NuGet repos. Also manually handling Assembly loading using Resolve events but my god that got hairy and feels like an utter hack. Add in the mix some of these libraries are doing lots of P/Invoke and integrating external C++ DLLs and I just couldn't get the deployment structure right. All in all an incredibly frustrating experience. I've hived off the progress into a branch to revisit. I honest think I need to wait a few versions.

    Jammer My Blog | JamSoft

    .NET (Core and Framework) csharp c++ dotnet visual-studio wpf

  • Looking for Bootstrap, TypeScript,Vue and Vue Router Guide to Building a Navigation Bar
    J Jammer 0

    I'm pretty green with Vue & TypeScript and I'm looking to just build some components. I can find lots of pre-rolled things but this is a learning exercise. I'm struggling to find a decent article or blog post using all these techs. Dose anywhere here have some good up-to-date links to articles or blog posts?

    Jammer My Blog | JamSoft

    JavaScript javascript css tutorial question learning

  • Sigh ... What to do ... another mess.
    J Jammer 0

    I'm inclined to agree with you. Had a chat with one of the other contractors today and we've both come to the same conclusion. Head down, get on with it.

    Jammer My Blog | JamSoft

    The Lounge help winforms business collaboration tools

  • There may be trouble ahead ...
    J Jammer 0

    Not to mention the rise in 3D printing. This will have drastic effects on logistics in the future. Dependency will fall to those that can print items nearer to their point of consumption.

    Jammer My Blog | JamSoft

    The Lounge com game-dev announcement

  • Sigh ... What to do ... another mess.
    J Jammer 0

    Hey All, So I've landed my new gig. The team is a mix of perms and contractors (I'm a contractor). The team is great, a really nice bunch of people. However ... The main product being ported to new tech is big and complex (I like complex, that isn't the problem) and legacy in places, that also isn't a problem. The problem is that the business threw this major web site build at their in-house Windows Forms developers that had never built a web site before, let alone one as complex as this and basically they've screwed the pooch. I have no idea exactly when the project started but the first batch of contractors went in last year. There is a lot of code already and they are really under pressure to deliver quickly. It's barely 20% of the final product and its complete spaghetti already. I'm on my first task and what should have taken a day at most is now on day 3 and barely started. It took most of the first day to even figure out where to put any new code. They have taken multiple web frameworks and approaches and munged them altogether. Missing the fundamentals of each and using bits of each framework for various tasks. It runs sooooooooooooooo sloooooooooowly. I would normally work through stuff like this and gradually improve things etc. But this re-write already needs a re-write. Due to how they have set things up gradually improving things just isn't an option. I honestly cannot see the project getting delivered to production. If it does get there it's going to be one holy nightmare to support, costly and no doubt very error prone. I know at least one other contractor on the team feels exactly the same as me. Everyone else seems to just be business as usual. Developer productivity is completely shot to pieces. The potential impact on the business is huge and expensive. I feel a responsibility to highlight my thoughts but I also have no idea who made some of the decisions or any of the historical politics. The feeling I get is an undercurrent of a few people knowing this but not really knowing what to do about it. I have no idea what to do or say at the moment so for me it's also going to be business as usual. I have no idea what the reaction would be to me saying anything. Nor who would be most offended or become defensive. The problem I have personally is that I feel adding to the mess is morally wrong. Not to mention that this is going to make my work life for the next however long extremely stressful and entirely unenjoyable. How have you guys dealt with these situations?

    The Lounge help winforms business collaboration tools

  • Blurring the Lines Between Interfaces and Abstract Classes
    J Jammer 0

    SO that's one interview question killed ... lol :)

    Jammer My Blog | JamSoft

    The Lounge csharp com help question

  • VSTS Workflow / UX
    J Jammer 0

    Coming from years of using TeamCity, Jenkins, Hudson, JIRA, BugZilla, YouTrak etc, etc, I've had to start using VSTS. I can't figure out if I'm being a luddite or it isn't that great a tool. I'm finding it a really unpleasant experience. It feels like it's in my way rather than helping me. The total lack of time booking to tasks is just plain odd. You can only leave time on a task or add remaining time, there's no facility to say I did 3 hours on this ... I'm just not groking it. It feels like there are so many screens and pages to delve into to do even the simplest of things. Am I alone? :(

    Jammer My Blog | JamSoft

    The Lounge design devops question workspace

  • Licensing Options Experiences
    J Jammer 0

    I'm sure this gets asked a lot but it seems like a saturated market and next to impossible to differentiate the products on offer on anything other than price. I've recently started looking for licensing options for one of my .NET WPF applications. I'm a one man shop so budget is restricted. Since I'm also unsure how well things will go in terms of sales I'm reluctant to spash big buck$. I've got a small I'd like to have: Ecommerce payment handling and license fullfilment Online license management / sales portal Perpetual version limited licenses (valid for v1.0-v1.x / v2.0 would be an upgrade) Although I'm also toying with a subscription model. I'd rather go with a hosted solution for the management as purchasing and hosting a Windows hosting environment is often more expensive than paying someone else to do it. The solutions I've been looking at are: http://www.ssware.com/ (has an obfascator on sale too) http://www.licensespot.com/ http://www.infralution.com/products/licensing\_system.html Any personal experiences with the above options would be really appreciated, or similar alternatives to look at would also be great.

    Jammer My Blog | JamSoft

    Sales / Marketing csharp html wpf com hosting

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    In the instance of Categories it's because they are simple lookup values loaded into a view model for, for example, binding to a combobox. BUT they are also useful as values used in foreign key relationship in the database. Resex is the best way to handle automatic localisation utilising standardised approaches for this in the .NET framework but also have value in the database.

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    That's what RESX files are ...

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    It's either a case of filter what you're interested in on the way into the database or shove it all in there and filter on the way out of the database. I opted to only put relevant stuff into the database which means that considering the data is 99.99999999% handled in reads not writes I opted to make the read more efficient.

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    I might not have explained my question properly to be honest. Localising an application using Resx and custom UI binders for XAML, iOS and Android Xamarin apps is fine. I've done all these things before. Handling RTL globalisation in WPF apps is also something I've done before as well. I was basically looking for inspiration regarding taking localised strings from RESX files and populating various database tables with lookup values for things. What I've ended up doing is implementing the Builder pattern to aggregate key value pairs from these RESX files and utilising my repository pattern bits to automatically populate these lookup tables on the initial creation of the SQLite db3 file. My base builder class looks like this (not perfect by a long shot, there is no abstraction of the connection I can use for instance):

    public abstract class LookupBuilderBase where T : class, IEntity, new()
    {
    protected SQLiteAsyncConnection AsyncConnection;
    protected IDictionary LookupData;
    protected IRepository Repository;
    protected readonly IList Data = new List();

    protected LookupBuilderBase(SQLiteAsyncConnection conn, IDictionary lookupData)
    {
        AsyncConnection = conn;
        LookupData = lookupData;
    }
    
    public async Task Execute()
    {
        CreateRepository();
        BuildData();
        await InsertData();
    }
    
    protected abstract void BuildData();
    
    protected virtual async Task InsertData()
    {
        foreach (var item in Data)
        {
            await Repository.Insert(item);
        }
    }
    
    private void CreateRepository()
    {
        Repository = new Repository(AsyncConnection);
    }
    

    }

    I can then write builders like this:

    public class CategoryBuilder : LookupBuilderBase
    {
    public CategoryBuilder(SQLiteAsyncConnection conn, IDictionary lookupData)
    : base(conn, lookupData)
    {
    }

    protected override void BuildData()
    {
        var values = LookupData.Where(x => x.Key.StartsWith("Category"));
        foreach (var keyValuePair in values)
        {
            Data.Add(new Category { Name = keyValuePair.Value });
        }
    }
    

    }

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    I wasn't really looking for general information on app globalisation, I've developed a few globalised apps in my time but I've not been in my current specific situation and wondered if there was a relevant pattern. Thanks anyway.

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Inserting Localised Lookup Data into a Fresh Database
    J Jammer 0

    Didn't really know where to ask this so went for the lowest common denominated forum! C# FTW! Anyway, I was wondering if this was a problem that had already been solved but I'm not aware of the generalised approach. I have an MvvmCross based solution that uses SQLite as the data store. All the common functional goodness is in a core PCL project, all fine and dandy. In this core PCL I have the data access stuff along with resx files containing any strings needed in the various application UI projects. When the application starts up it initialises a connection to the SQLite database. If the database doesn't yet exist and requires creation (think very first run of the application) it needs to create the database and populate it with some initial data (just for ease of setup with some generic lookup data). This data is fully editable by the user but this is more of a convenience task to get the user up and running quickly without burdening them with loads of config before being able to do something useful. What I'm looking at is using localised resx data for the source of this look-up data. I can think of a few ways of doing this but before I pop off and roll a solution I was wondering if there were any generalised approaches to this scenario that people had used before. Googling hasn't turned anything up thus far so I thought I'd cast the net out to you lot first.

    Jammer My Blog | JamSoft

    C# csharp asp-net database sqlite design

  • Best font for programming?
    J Jammer 0

    I ended up settling on Hack. Works great on a high-res screen and (imo) is the easiest on the eyes for long coding sessions.

    Jammer My Blog | JamSoft

    The Lounge question

  • Best font for programming?
    J Jammer 0

    I've got a whole page dedicated to this topic! Programming Fonts - jammer.biz[^]

    Jammer My Blog | JamSoft

    The Lounge question

  • Create own language translator in C#
    J Jammer 0

    The mind boggles! PS: Was wanting to talk with you regarding that little bit of space you have in your sig for rent ... ;)

    Jammer My Blog | JamSoft

    C# tutorial csharp com algorithms

  • ASP.NET MVC4 / WebAPI OAuth - DotNetOpenAuth
    J Jammer 0

    Hi All, I've been using DotNetOpenAuth in my MVC / WebAPI solutions for a while now and I've attempted to upgrade to MVC5 and WebAPI2 twice now and due to so many issues with DotNetOpenAuth I've failed both times to get it all working. Since this project seems to be either dead or moving at a horrifically slow pace what are the alternatives for both a client and server solution? I'm stumped at how some people seem to have gotten it to work as I'm failing miserably. Thanks, James

    Jammer My Blog | JamSoft

    ASP.NET asp-net csharp sysadmin architecture question

  • Code Project Rep Sharing
    J Jammer 0

    Perfect! Thanks.

    Jammer My Blog | JamSoft

    Site Bugs / Suggestions php question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups