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
G

Gwyll

@Gwyll
About
Posts
8
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Anyone still know IBM RPG?
    G Gwyll

    I have a friend that can't retire at 70 because she's a 35yr RPG expert. Makes over $300/hr. fixing critical issues and has a backlog of waiting clients.

    The Lounge javascript cloud learning csharp linq

  • I don't like CSS
    G Gwyll

    Look at `CSSStyleSheets`. ```js const rules = new CSSStyleSheet(); rules.insertRule("selector {rules}"); document.adoptedStyleSheet.push(rules); ``` This provides some separation and you can replace all `` tags with `<script>`.</x-turndown>

    The Lounge html css design question javascript

  • CSS is awesome.
    G Gwyll

    My favorite thing about CSS is how it spits in the face of the "Single Responsibility Principle". I would argue that CSS is not a UI descriptor. CSS has no structural aspects - it alters existing structures, it doesn't declare/describe them.

    The Lounge css design help question

  • Why is javascript so disliked
    G Gwyll

    I really used to dislike JavaScript until I realized it was the engines/environments not the language itself that was the problem.

    The Lounge javascript

  • Why is javascript so disliked
    G Gwyll

    I agree with most of this with the exception of "Not OO". JS is not OO in the Data/Procedure or Data/Procedure/Relational (C++, C#, Java) sense. But it is OO in the Process/Message model. Though none of these are "Object Languages" that confirm to Classical Object Theory. Thus "Object-Oriented" and not "Object".

    The Lounge javascript

  • 405 Error for WebSocket with WSS but not WS (ASP.Net)
    G Gwyll

    I think I'm getting closer. I found a change in Edge that says it no longer uses the Windows certs - but manages its own. It doesn't seem to pick up my/VS self-gen'ed dev cert. Going to try to figure out how to do a manual import and see if that helps.

    C# help csharp asp-net visual-studio

  • 405 Error for WebSocket with WSS but not WS (ASP.Net)
    G Gwyll

    This is all in my own environment and https works on the site/server but not with sockets (wss). This is (basically) code that I had running fine on .Net6, so I'm thinking there could be a config setting. I discovered it when I started upgrading (to `WebApplication`) some old (working) apps. It also works (WSS) when I'm running Fidder. If I close Fiddler, it quits working.

    C# help csharp asp-net visual-studio

  • 405 Error for WebSocket with WSS but not WS (ASP.Net)
    G Gwyll

    Banging my head on a likely simple problem... I'm getting a 405 on a WebSocket connection with WSS but not WS. Vanilla project in VS with this code. Starting with HTTP works. Starting under HTTPS faults 405. ``` public static class Program { public static void Main (string [] args) { var builder = WebApplication.CreateBuilder ( args ); var app = builder.Build (); app.UseWebSockets (); app.MapGet ( "/" , (HttpContext http) => http.Response.WriteAsync ($$""" self.Socket = new WebSocket(`${location.origin.replace("http", "ws")}/socket`); """ ) ); app.MapGet ( "/socket" , Connect); app.Run (); } static void Connect (HttpContext HttpContext) { _ = HttpContext.WebSockets.AcceptWebSocketAsync ().Result; } } ```

    C# help csharp asp-net visual-studio
  • Login

  • Don't have an account? Register

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