« first day (3326 days earlier)      last day (1612 days later) » 

2:39 AM
Does anyone know of a resource on how to create "rich UI" console applications?
Like calcurse.org for example
 
 
3 hours later…
5:56 AM
@RoelvanUden Yes, RabbitMQ for queue management and Quartz.net for Scheduling and Job management
@Inisheer when you say rich UI, do you mean tables and menu on a console ap
 
6:41 AM
@Inisheer The original unix library for this sort of UI was called "curses" (later replaced by "ncurses"). A good place to start is by searching for ".NET curses library" or something similar.
 
 
3 hours later…
9:21 AM
Morning frens
@Sakthivel I highly recommend Roel's suggestion. I use RabbitMQ which processes around 23k messages in a working day, which triggers the application that consumes them to look at a file and process whatever's in it
 
 
1 hour later…
10:32 AM
@CaptainObvious Yeah, im agreeing to @RoelvanUden and im kinda relieved that im going in the right way ! Thanks guys !
 
V.7
10:47 AM
@Inisheer You mean TUI?
There a bunch of these
curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications. The name is a pun on the term “cursor optimization”. It is a library of functions that manage an application's display on character-cell terminals (e.g., VT100). == Overview == Using curses, programmers are able to write text-based applications without writing directly for any specific terminal type. The curses library on the executing system sends the correct control characters based on the terminal type. It provides an abstraction of one or more windows that maps onto...
 
 
3 hours later…
1:31 PM
Ok, officially handed in my notice at work. Regardless of which of the final two contenders I'll finally go with, I'm leaving this project at the end of the year.
 
avner is done?
 
I've got one offer, will probably get another on Tuesday, and I'll have to decide between them.
 
i see
 
@AvnerShahar-Kashtan Anything good?
 
anything of the two that you like?
 
1:36 PM
@MadaraUchiha They're both good offers at good companies (Microsoft and Google). I'm waiting for the final approval at Google because I prefer that choice (mostly for logistical reasons), and then I'll decide.
 
bigger/smaller team,
different environment,
different tech stack,
different projects,
 
So it's that time of week again. Not Hector but still in a yellow diamons so it still counts
 
Very different tech stacks. Very different projects.
 
@AvnerShahar-Kashtan Neat! Good luck!
 
go to Microsoft and fix C# :D
 
1:37 PM
It's just fine the way it is. :)
 
-_-
 
@AvnerShahar-Kashtan Maybe you should go and work for @Wietlol, that way you can fix wietlang.
 
@MadaraUchiha I wouldn't dare mess with perfection.
2
 
@MadaraUchiha to be fair, I could use someone with LLVM IR experience...
or WASM
 
I have neither.
With so many ASP.NET and other MS libraries being open source these days, it would be nice if some plugin for VS could pull sources automatically from github when debugging.
Java has had automatic source JAR downloads for a while now.
 
1:51 PM
@AvnerShahar-Kashtan If only you were in a position to work on that...
Like, hypothetically, working for Microsoft...
 
@MadaraUchiha My job offer is in Azure Data Explorer, not on VS.
 
2:05 PM
I hate javascript so much
I have something that works perfectly in debug on my machine
But as soon as it hits the actual dev server to run on it breaks
 
@CaptainObvious Uh...huh
Node?
or client-side?
 
All client side, because js is hard
 
Webpack?
 
Basically I used JQuery's .load function
And on my machine it loads the content and sticks it in a div
But on the server it loads the content and then nukes the page
Nothing in the console whatsoever
 
How does the DOM look?
 
2:17 PM
I'm not sure
 
Does the console respond?
Type 42 into the console
Do you get 42 returned?
 
Is it up anywhere publicly available?
 
2:19 PM
Nope
Hold on I've got something
Uhhh
 
Wait... you have a syntax error...
 
Oh no that comes up on both and appears on page load
That's there before the issue arises and on my machine still goes past it
Here's something though. The entire <body> tasg has been deleted, and the <head>'s entire content is this:
<head><link href=\"/lib/bootstrap/dist/css/bootstrap.min.css\" rel=\"stylesheet\"></head>
Don't mind the escaped quotes, it came from the console
 
Code?
 
?
Hold on I've got a last ditch idea
 
@CaptainObvious Show your jQuery.load() usage
 
2:25 PM
Oh one sec
it's nothing fancy though, doesn't even use a callbackl
$("#printDialogContent").load("PrintUi");
 
Is it possible that #printDialogContent isn't there?
 
Which must be working at least partially because the request is actually made
 
Also I'm assuming the HTTP request returns successfully with good content etc?
 
Yeah the request comes back absolutely perfectly
 
Wait...
Is the response an HTML partial, or a full HTML document?
 
2:33 PM
Partial
I think
But it's the same response I get from my machine either way
 
I have no idea. What version of jQuery?
Also, try to replace the function with
 
async function InvokePrintDialog() {
  $('#printDialog').modal('show');
  const res = await fetch('PrintUi');
  const html = await res.text();
  document.getElementById('printDialogContent').innerHTML = html;
}
(trying to see if it's a problem with load specifically, or if some other tomfoolery is up)
 
Okay I'll give that a go
 
Worth noting that this won't work for older browsers (re: Internet Explorer), it's only for testing, for now.
 
2:37 PM
Yeah I'm supporting Chrome and firefox (both up to date) so it's good
Huh. That works kinda
 
"kinda"?
 
Well the included js that is loaded doesn't execute anymore
 
...
Let me guess
That <script> tag that isn't getting loaded has document.print() calls in it
 
Nope
The printing is done server side, it's another ajax request later on. Nothing to do with client side printing
 
If you return $('whateves').load(), and remove the <script> from your response, does that work?
 
2:42 PM
I'll try that
 
In general, requesting HTML and plopping it in the DOM is Bad Practice™, and the browser will refuse to execute scripts that way.
jQuery does dark magic to make that part work.
 
But it worked with load
oh
 
In general, to execute a script you need to document.createElement('script'), either s.src = 'external url' or s.innerHTML = 'javascript', and add it to the DOM through .appendChild() or other such methods
jQuery, if I remember correctly, parses the HTML response and does just that.
 
Yeah, looks like Load works fine when there's no script in the doc it's loading
 
Can share the script?
 
2:46 PM
Sure one sec, not particularly fancy
Wait hold on
OH SHIT
It wasn't my js that was the problem
I was reimporting all the jquery and bootstrap js and whatever in the document that is loaded
And if I remove that, but readd my original js it all works fine
There it is for good measure though
 
IMHO: put all this code on your original HTML document, and trigger whatever needs triggering in the callback (or better, using await) of your .load().
Don't dynamically load uncontrollable scripts.
 
But that'll just make the original page bloaty
 
@CaptainObvious 80 LoC is not bloaty, and nobody will read your HTML
frontend apps nowadays have hundreds of thousands of lines of code.
You're good.
 
Hi,
Design question: When making an interface that represents different APIs (say azure maps services & Google maps services)
for example: GetNearByLocatons(searchQuery) has different response types for each service, how can the interface handle them both (what is the return type of the GetNearByLocatons)
is it marker interface?
 
2:56 PM
You'll need to make something which covers the important parts of both responses
And then map stuff across from the roginal response to the new type
 
@mshwf You can make the interface generic, but a better solution is to make your own object that represents the information in your own terms and concepts, and have both methods return that.
 
We would call that a "canonical model" enterpriseintegrationpatterns.com/patterns/messaging/…
 
@CaptainObvious the shared parts have a different structure,
 
They're not shared then are they
 
@MadaraUchiha the interface will encapsulate other methods, each may return different types
@TomW I want to have simple interface that can GetNearByLocatons ,GetNearByServices, GetAddress.. etc, regardless of the map service I will use, at the end they do the same job, but have different implementations and response types,
 
3:06 PM
@mshwf That's not a thing.
 
adapter pattern
 
An interface is a contract, something the consumer can rely on for methods existing and accepting/returning the expected types.
You can't take two interfaces and make them into one.
You need to normalize the output from both libraries to something that can be shared between the two
 
@mshwf You can see how projects such as Geocoding.net do it - just like @MadaraUchiha and @TomW and @Wietlol say, they abstract the individual providers behind an adapter than converts the queries and the responses to a shared model.
 
I'll take a look at that project, thanks
 
3:53 PM
Hey I was saying that too
Kinda
 
4:11 PM
Wandering through that linked repository I found github.com/chadly/Geocoding.net/blob/master/src/…
What an arbitrary collection of non-similar things
"types of places"
 
I mean, it covers most things
Ah yes, "Populated place"
 
ICanHasCoordinates
 
Or even better, Hemisphere
Oh shit they've even got Planet
 
4:35 PM
I have an issue locating one configuration file which resides in the solution home, because the working directory when the application starts is the \path\to\solution\bin\debug directory. Which is the proper way to handle this ?
 
What sort of configuration file is it?
 
it contains the database connection settings
database.config
i need to read it to get the connection string
now I have it in the root of the solution and I was expected to read it with just refering to its name
but the working directory is in the bin/debug
 
copy to bin/debug?
 
I was thinking that this is the proper way
Is it a good way to solve this by coping it ?
should I put it in the release as well ?
 
there should be a "copy always" option in the properties of the file
that way, the build process will copy it for you
 
4:39 PM
ok, this is what I needed
but the properties I see are
build action: none
Copy to output path "Do not copy"
...
and this setting is grayed out
 
then iDunno
 
I was in debug mode
I am idiot
I wasn't able to change it because I was in debug mode
I think this is it
thanks!
 
Its so close to home time
 
5:27 PM
Working practices question. I'm using gitflow (the technique, not the tool) and I'm doing some work on a feature branch
Develop is new so at the moment it's empty
I started work on getting a website ported into the solution, and realised as I was doing it that the website actually needed some general-purpose deployment infrastructure that I was planning to do anyway, and will be used by a lot of different stuff
The deployment fluff is also in that branch
Arguably it should have been another feature branch, and done first.
Would you cherry-pick the deployment infrastructure commits into a new feature branch, and then merge that feature branch back to develop first?
or is that not worth doing if everybody understands what's been done and why
 
6:22 PM
@AvnerShahar-Kashtan Yes, thank you!
 
 
2 hours later…
8:30 PM
The struggle is real
 
@CaptainObvious Did you end up working it out?
 
Oh yeah
6 hours ago, by Captain Obvious
It wasn't my js that was the problem
6 hours ago, by Captain Obvious
I was reimporting all the jquery and bootstrap js and whatever in the document that is loaded
Basically I was just being retarded
 

« first day (3326 days earlier)      last day (1612 days later) »