Posts

Mono GTK on Windows

 I'd like to use visual studio but visual code with mono.exe on the side is what I'm currently doing. I'm able to get WinForms to work however I'm running into difficult trying to run GTK on windows.  Unhelp Q/A - https://stackoverflow.com/questions/51132090/mono-compliling-gtk-on-windows its unhelp because I already have the complier working and referencing the package properly. Its just windows doesnt pick up GTK inorder to run it. https://stackoverflow.com/questions/51132090/mono-compliling-gtk-on-windows Possible Solution https://stackoverflow.com/questions/16417342/mono-gtk-hello-world-deploy-to-windows GTK Notes https://www.mono-project.com/docs/gui/gtksharp/beginners-guide/ mcs -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\gtk-sharp.dll" -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\glib-sharp.dll" -r:"C:\Program Files\Mono\lib\gtk-sharp-2.0\atk-sharp.dll" hello.cs mono hello.exe Unhandled Exception: System.IO.FileNotFoundException: Coul

What about throw ex? With Api Response

In my case I have a httpresponse that doesn't fail to make a response but fails to get the results which in turn doesnt map out to the model. This mapping is a soft rule, where something might map and if they don't the api says why. In that case its a 200 response code and I don't get an exception either.  https://stackoverflow.com/questions/2999298/difference-between-throw-and-throw-new-exception  public bool SubmitOrder(Order objOrder, ref int iID, ref OrderResponse objOrderResponse, ref string sRtnMsg) {             try {                 var contJson = JsonConvert.SerializeObject(objOrder);                 var jsFormatted = JToken.Parse(contJson).ToString(Formatting.Indented);                 Log.Trace("Submitting Order: With {0}", jsFormatted);                 var flagError = false;                 var error = "";                 var accessToken = GetToken();                 Client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(&

Windows & Service Development

 As a consultant I've been able to start developing application and services at the lower levels of the operating system. Which is pretty interesting compared to what I use to do. I find myself doing the same thing with my web development. WPF -  https://en.wikipedia.org/wiki/Windows_Presentation_Foundation#:~:text=Windows%20Presentation%20Foundation%20(WPF)%20is,NET%20Framework%203.0%20in%202006. Understanding the .NET family https://en.wikipedia.org/wiki/.NET_Framework https://docs.microsoft.com/en-us/windows/apps/desktop/choose-your-platform https://en.wikipedia.org/wiki/Universal_Windows_Platform_apps

Javascript: async with Orchard?

More of my development in a CMS is backend, using ravor views and having multiple js files this issue seems to keep coming up. async function would seem like a good solution but for now I dont need it instead I've been getting using orchard's fluid sync to include the files before or after in the view. In this context I'm not waiting for the file but letting it run when its loads. For script to find something on the page I need it to wait sometimes for other things to load but setting it to the footer is the proper way to resolve this. {% script name:"customscript", at:"Foot" %} Still I feel like the role of the js code isnt being properly handled if it needs be inserted at a certain part of the page. This may just be a problem with how I think with single page applications vs a cms.

EFCore - Parallel Async

This is no longer needed but maybe can be used for real-time example projects. Currently dont have any use for it. https://stackoverflow.com/questions/44063832/what-is-the-best-practice-in-ef-core-for-using-parallel-async-calls-with-an-inje https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/ I've also been moving away from EF in favor for Dapper, still using tasks that might be unless until I write myself an example.

Handling Raw Html

For sometime now I've been at a point in my research to find the proper way to handle raw html. Sometimes you need your api to push raw html with syntax that can't be edited once its submitted.  Handling all html in a 2D array where the first in just the html tag and the second is a child's value which can also be a html tag. { ["p"]["test"]  This may also be another case to start my project with a headless orchard core project. Using fluid syntax might be the better way to allow an api to take information and using a custom javascript library to convert html to the api? 

Image Enhancement Research

For some of the projects I have in mind this would be a great way to handle poor quality images, for example schematics that have low pixels. From there I would have an easier time convert to svg files but that is a project later down the road. For now this is something I need to keep in mind of. msmsajjadi/EnhanceNet-Code: EnhanceNet: Single Image Super-Resolution Through Automated Texture Synthesis (official repository)

Popular posts from this blog

Installing Windows on Acer chromebook 15 cb3-532

Entity Framework: ToListAynsc & WhereAsync

NLog 4.6.2 Console Application