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
P

Praveen Raghuvanshi

@Praveen Raghuvanshi
About
Posts
119
Topics
50
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Review DDD solution for a car manufacturing station
    P Praveen Raghuvanshi

    Can you share some thoughts on modelling this problem?

    Design and Architecture design oop architecture performance help

  • Review DDD solution for a car manufacturing station
    P Praveen Raghuvanshi

    I have recently started exploring DDD and planning to use it. I am looking for some clarifications for which I have created a sample problem and designed a solution using DDD followed by some questions. Please go through it and revert should you need further details. Problem Statement: Architecture a manufacturing station for Vehicles which allows assembling of different parts and creating a vehicle. Architecture Style: Domain Driven Design (DDD) Domain terms and relationships - Manufacturing Station may have 0…* vehicles - Vehicle may be a Car/Truck etc. - Vehicle may have Engine, Transmission, Wheels, Music Player, Rear View Camera, etc - Engine could be of Petrol/Diesel - Transmission could be Auto or Manual - Wheel may have Tube or Tubeless Tyre - There may be millions of parameters within a vehicle such as Speed, RPM, Tyre Pressure. - A group of parameter belong to a certain component (Engine, Transmission, Wheels, etc). Hierarchical representation of System - Manufacturing Station o Vehicles  Car/Truck • Engine (E) o Petrol/Diesel • Transmission (T) o Auto/Manual • Wheels (W) o Tube/Tubeless • Parameters (Could range upto millions) o Speed - E o RPM - E o Coolant - E o Tyre Pressure - W o Audio Level o RearCameraOn o DoorLocked DDD Solution ------------- Bounded Contexts (Identified) Station Vehicle Engine Transmission Wheels Bounded Context Details Bounded Context – Station Aggregate Root o Station  Slots : List Entities o Slot o Vehicle : Car/Truck Value Objects Repositories o StationRepository Services o SlotService Events o VehicleAllocatedToSlot o VehicleDeallocatedFromSlot Bounded Context – Vehicle Aggregate Root o Vehicle : Car/Truck - How to manage inheritance and new vehicle types such as Bus  Parameters: List Entities o Registration o Chassis Value Objects o Manufacturer o Model o Parameter  Name  Value  Type  Default Value  Unit o Audio System Repositories o VehicleRepository Services o AssemblingService Events o

    Design and Architecture design oop architecture performance help

  • Architecture for Qt Mobile App and Azure mobile services
    P Praveen Raghuvanshi

    Thanks Vunic!

    Design and Architecture csharp architecture wpf testing mobile

  • Architecture for Qt Mobile App and Azure mobile services
    P Praveen Raghuvanshi

    I am planning to follow the C4 technique for Software architecture by Simon Brown as it seems to be agile and incremental. C4 model poster - Coding the Architecture[^] Thanks again for your inputs on this.

    Design and Architecture csharp architecture wpf testing mobile

  • Architecture for Qt Mobile App and Azure mobile services
    P Praveen Raghuvanshi

    Thanks Richard. Can you suggest what should be covered in overall design? Is it going to UML diagrams(Component, Class, Use case). In Agile world, how much design would be enough for such an application.

    Design and Architecture csharp architecture wpf testing mobile

  • Architecture for Qt Mobile App and Azure mobile services
    P Praveen Raghuvanshi

    We are in the process of Architecting a mobile app to be developed using Qt and Azure Mobile Services. Coming from C#.Net background and worked on WPF applications, it's something new for us. We have used MVVM, MVP in past along with Layered architecture. Which architecture pattern will be the best fit for this kind of application? Read about Layered and Onion architectures. Onion architecture provides loose coupling in a better way and adhere to DDD somewhat. Please suggest if something else will be a good fit. Also, like to know which development methodology(DDD/BDD/TDD) shall be used considering the duration to be 4 months.

    Design and Architecture csharp architecture wpf testing mobile

  • Revamp/Rewrite a slow WPF Application
    P Praveen Raghuvanshi

    Sounds Good. Appreciate your prompt response and enlightening on the subject :)

    Praveen Raghuvanshi Software Developer

    Design and Architecture csharp wpf wcf performance question

  • Revamp/Rewrite a slow WPF Application
    P Praveen Raghuvanshi

    Thanks for sharing the strategy and quoting the story the of Netscape Navigator. Recently, I came across the developing the software using Microservices and I am planning to consider it. Can you share a strategy for "Replacing parts of the old system, bit by bit"? I saw you have a good experience in C# and Winform. Maybe something you can share from that experience. Have you ever moved or thought of moving Winform application to WPF?

    Design and Architecture csharp wpf wcf performance question

  • Revamp/Rewrite a slow WPF Application
    P Praveen Raghuvanshi

    Appreciate your thoughts on this.

    Design and Architecture csharp wpf wcf performance question

  • Revamp/Rewrite a slow WPF Application
    P Praveen Raghuvanshi

    We have a WPF/Winform standalone enterprise application and it has become an Elephant with lot of features. This has impacted the performance immensely and adding/modifying anything is a big pain now. The application is used to configure the hardware parameters and communicates two-way within local network. The application follows MVVM architecure, however due to legacy code everything can't be changed to MVVM. We are planning to revamp/rewrite the application and looking for the options available. A typical usage of the application display around 1.2GB memory in task manager. The application has canvas with rectangular objects displayed in a network fashion. If we have around 200 objects and perform select all and drag/drop to some other location, it takes around 5 seconds and its not smooth. Reason for slow application: - Mix of WPF and Winform modules. When we create few objects, legacy code is in Winform which creates controls dynamically. As a result operation can't be pushed to background thread. - Lot of Styles and Templates to give a good look and feel. - Lot of objects stays in the memory. Some objects are duplicated for copy/paste functionality. - Third party libraries - Caliburn for MVVM : Allow easy DI, however as we have lot of objects, getting an object from huge collection of objects makes it slow. - Infragistics Technology in consideration: Revamp: - Web Services: Reuse the C# code and move it to some web service. WCF/Web API - Windows Services: Keep most of the things in the windows service and make the WPF client thin - Improve performance - Make code asynchronous as much as possible. - Optimize styles and templates - Perform time consuming operations on the web services on the cloud - Store objects in the database and use information from there. Rewrite: - Web based application using new technology stack such as MEAN. Note: Team Expertise is in .Net/C#, however we are open to other technologies. Question: Revamp OR Rewrite the application? Which technology stack to consider? Looking forward for your valuable suggestion.

    Design and Architecture csharp wpf wcf performance question

  • Auto deployment of web application
    P Praveen Raghuvanshi

    Hello, We have a desktop application which interacts with the devices in Local Area Network using our own proprietary protocol. We are planning to put some features on a web and mobile application. I have created a website using HTML5/AngularJS and a WCF service to access the features. The website is configured and deployed on IIS server on my development machine. We wanted to provide a installer to the customers to deploy the website on the machine in which desktop application is installed, so that they can access the website on mobile and other platforms. Is there a way to create a installer that will ask port number and deploy website automatically and allow user to access the website using URL such as http://localhost:1234/Myapp OR http://<hosted system IP address>:1234/MyApp. Found similar things : Perforce(p4Web), TeamCity, Atlassian(Crucible). Don't know how to achieve this. Thanks in advance!!!

    Praveen Raghuvanshi Software Developer

    Web Development sysadmin csharp html wcf windows-admin

  • File Upload doesn’t work on Mobiles
    P Praveen Raghuvanshi

    I have created a small web app using HTML5 + AngularJS to upload custom files(such as with extension *.xyz). It works fine on Desktop browsers(IE, Firefox, Chrome). However on mobile browsers, it fails to detect the file and gives ‘Unsupported file format’ in android and iPhone only gives an option to select images. Is there a way we can upload the custom(*.xyz) files using ‘input’ element with type=file? How can I make file upload mobile browsers compatible?

    Praveen Raghuvanshi Software Developer

    JavaScript question html android ios

  • Access a web page through IP and port no (VS2013, HTML5, AngularJS)
    P Praveen Raghuvanshi

    I am new to web development and started with HTML5 and AngularJS. Listened to 'AngularJs Patterns clean code' by Jon Papa on Pluralsight. Downloaded the sample app 'modular' and created a small SPA following the sample app. The app is created using Visual Studio 2013 ASP.Net Empty website project template. The directory structure is as follows in Visual Studio 2013. -- Solution 'Tools' ---------- 'Tools' - Project ------------------- bower_components -------------------------- angular : other js files at the same level ------------------- src ----------------------- client ---------------------------- app ---------------------------- index.html <<<===== Project Properties settings: ----------------------------- Project properties -> web -> Start Action -> specific page -> src/client/index.html Servers -> IIS Express -> Project Url: http://localhost:23263/ Running project using F5, opens a webpage with Url: http://localhost:23263/src/client/index.html#/ The page loads as expected. Questions: Q1: I would like to open the page with reference to path of index.html such as http://localhost:23263. What setting needs to done to achieve above thing? Q2: For sample application 'modular' I need to setup node.js and gulp and run the gulp server which listens to a specific port and when I type http://localhost:port_no, the index.html page is opened. Also, I am able to access the page on another device using the IP and port no. How can I achieve this? I didn't publish my website to achieve this, just started the node server. Looked a similar tutorial for developing an angular app using visual studio 2013, unable to achive above thing. http://jaliyaudagedara.blogspot.in/2014/06/creating-empty-aspnet-project-powered.html Thanks in advance!

    Praveen Raghuvanshi Software Developer

    Web Development javascript csharp html asp-net question

  • WPF migration frame work 3.5 to 4.5 framework
    P Praveen Raghuvanshi

    Might be useful : https://visualstudiogallery.msdn.microsoft.com/47bded90-80d8-42af-bc35-4736fdd8cd13[^]

    Praveen Raghuvanshi Software Developer

    WPF csharp wpf dotnet design sysadmin

  • Getting started with Javascript
    P Praveen Raghuvanshi

    I would recommend starting with Javascript fundamentals video tutorial on Channel9. The best part is everything is done using notepad and no editors used in order to explain the basics. Here is the link http://channel9.msdn.com/Series/Javascript-Fundamentals-Development-for-Absolute-Beginners[^] Also, course on HTML5 by same author is also good.

    Praveen Raghuvanshi Software Developer

    JavaScript tutorial learning javascript

  • Play/Pause/Stop media through ASIO driver using C#
    P Praveen Raghuvanshi

    Thanks for the response! I'll have a look at them.

    C# csharp com help question

  • Play/Pause/Stop media through ASIO driver using C#
    P Praveen Raghuvanshi

    Hi, I am looking for a solution to below requirement. - Play/pause/Stop media through ASIO driver. - Flexibility to perform above operations at specified channels. - Flexibility to Play/Pause/Stop media at specified channels without affecting other channel. I am able to achieve first 2 requirement through NAudio library. However, third and most important is not possible through NAudio as mentioned in the link http://stackoverflow.com/questions/14989516/multichannel-player-for-mono-channels/15006743#15006743[^] I am using Dante Virtual Soundcard(DVS) for ASIO driver. Questions: 1- Is it possible to control the channels individually in a ASIO driver ? 2- I have been looking at alternate options(DawnAudio, Bass.net) and didn't have success with the 3rd requirement. Is there any other C# library available to achieve 3rd requirement ? I already posted a message few days back, however that was specific to NAudio and through this message, I am looking for a solution using any library(Free/Paid). Appreciate any help on this.

    C# csharp com help question

  • Playing media with 2 different channels in stereo file using NAudio library
    P Praveen Raghuvanshi

    Hi, I am using NAudio library to play songs using an ASIO Soundcard. Currently, AsioOut class exposes 'ChannelOffset' property to select the channel. If we are playing a Stereo file with ChannelOffset as 4, the media will be played at Channel 4 and 5. The Stereo file will have Left and Right Channel which will play the media at Channel 4 and 5. So, whatever user specifies, right channel will be assigned to a channel incremented by 1. I need to provide the flexibility to the user to specify the channel number for both the Left and Right Channel. So, if user specifies 4 and 7, the left channel will play media at 4 and right channel at 7. Is there a way to achieve this using NAudio and specifically for ASIO soundcard ? Any suggestion or workaround is welcome!

    Praveen Raghuvanshi Software Developer

    C# question

  • Web technology for an application developed using WPF ?
    P Praveen Raghuvanshi

    Hello, We have developed an desktop educational software using WPF/C# technology. The software will be used by School teachers and Parents. We are planning to make a web and mobile version of it. We have limited experience in web development. Some of the team members have limited knowledge on ASP.Net and I do not have experience in web technologies. I am evaluating the best platform to develop the web version of the application. Looking at the trend, I see below technologies available. 1- Silverlight: Easier as we have experience in WPF. However, put limitation to install silverlight on the machine. Also, seems future of it not bright. 2. ASP.Net MVC5: might be useful as we are aware of the .Net/C#. Read that it's not the best for multiple browsers. 3. ASP.Net MVC5 + HTML5/CSS: Latest technology and provides nice webpage. I am bit confused between a ASP.Net MVC5 and (ASP.net MVC5 + HTML5/CSS). Both the technologies are new to me and I have to learn and develop. I am more inclined towards (ASP.net MVC5 + HTML5/CSS) as it is the latest. Looking forward to your views and also let me know if there is something better for a novice web developer. Thanks!

    Web Development csharp html css asp-net wpf

  • Following Option for users...
    P Praveen Raghuvanshi

    I do agree with Suvabrata. I found article WPF Control Patterns. (WPF and XAML Patterns of Code Reuse in Easy Samples. Part 1)[^] very informative and author has mentioned its 1st of the multi-part series. It would be great if we can follow the author/user and receive notification if something new is posted by them. Looking forward to a 'Follow' feature.

    Site Bugs / Suggestions announcement
  • Login

  • Don't have an account? Register

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