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
S

Sharp Ninja

@Sharp Ninja
About
Posts
35
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I had been looking for ideas for a code generator
    S Sharp Ninja

    The use of a pretrained model to create Code Generators is bad enough. It's not impossible to see what was created, but not directly easy, either. And how many people would bother to even try? For those who do care about what code generators are putting into their code any WHY, then being able to see the algorithm being injected via source code of the generator is helpful, but here all you have is a collection of Tensors that are impossible to reverse engineer. If stuff like this becomes common, we are doomed.

    The Lounge design csharp visual-studio com graphics

  • Visual Studio for Macintosh
    S Sharp Ninja

    > Cordially yours, p!ssed off with Xcode. Totally understandable. :wtf:

    The Lounge csharp delphi swift visual-studio question

  • Elon goes to war
    S Sharp Ninja

    Metallica's One is a near perfect adaptation of the store.

    The Lounge com announcement

  • Underappreciated feature...works surprisingly well
    S Sharp Ninja

    Xi Jinping is a real life Bind villian.

    The Lounge help announcement

  • Would a desktop document management application be something that people would want?
    S Sharp Ninja

    How about the fact that Google Docs are barely compatible with each other and don't allow live content embedding between documents.

    The Lounge csharp database sqlite wpf com

  • Would a desktop document management application be something that people would want?
    S Sharp Ninja

    Not all document types are searchable as plain text.

    The Lounge csharp database sqlite wpf com

  • Software Development: The Great Equalizer
    S Sharp Ninja

    Started programming at 13 (1984) and never considered that my goal, which was computer engineering. Dropped out of engineering school 3 times, then lived for four years just wearing different hats. Went back to school to do Computer Science after doing web development from 94 to 96. Learned the fundamentals and left school in 2000 without a degree and have had a very successful career thereafter. But its hard emotionally, I think this profession tends to chew people up with the hours and mind games some people play.

    The Lounge c++ tutorial question career

  • Binding is the new Spaghetti
    S Sharp Ninja

    Binding in UWP and WinUI not only gives you binding on functions, but allows you to specify a callback for two-way binding.

    The Lounge csharp wpf winforms wcf

  • Binding is the new Spaghetti
    S Sharp Ninja

    Are you reading the code in Notepad? Simply right-click the path of the binding and select "Go To Declaration". Also, the value in the `DataContext` property is a dead giveaway, too.

    The Lounge csharp wpf winforms wcf

  • What tools and services do you now consider part of your daily workflow?
    S Sharp Ninja

    * Visual Studio 2019 + Re# 2020 * VSCode plus about 5000 extensions * Azure Data Studio plus lots of extensions * Windows 10 20H1 (.net Framework 4.8) * Windows Terminal * WinGet/Chocolatey/Scoop * WSL2 + Pengwin * Docker Desktop (Linux in WSL2) * SQL Server * Azure DevOps (Git, Pipelines) * Azure WebApps * Azure SQL

    The Lounge csharp javascript database postgresql sql-server

  • Programming languages - fun vs. disciplined
    S Sharp Ninja

    In summer of 2000, I printed the C# language spec on the day of the first public CTP release, went to a coffee shop and read all of it. I then got giddy as a guy stuck between VN6 and Java and knew salvation had come.

    The Lounge performance csharp c++ javascript python

  • Use SQL Server database as Windows file system
    S Sharp Ninja

    This is the response I was looking for! Going to definitely check these out.

    The Lounge database sql-server sysadmin question

  • Use SQL Server database as Windows file system
    S Sharp Ninja

    Are there and drivers for Windows that can use a SQL Server database as a file system?

    The Sharp Ninja

    The Lounge database sql-server sysadmin question

  • Need a word
    S Sharp Ninja

    "Who knows?"

    The Lounge com question discussion announcement

  • So ... Brexit is due in two weeks. But what if other countries decided to leave?
    S Sharp Ninja

    Why would France do it lie anyone else?

    The Lounge com question

  • Offline web apps
    S Sharp Ninja

    Uno Platform is what you want. It supports all phone and desktop platforms from a single codebase.

    The Lounge csharp mobile javascript sales android

  • Copy text from console window
    S Sharp Ninja

    Just did an experiment. I opened CMD.exe and CTRL-A worked. Then I typed powershell.exe and powershell opened in the CMD.exe window. CTRL-A no longer works. Exit powershell to CMD.exe and CTRL-A works again. So PowerShell is eating CTRL-A and not doing anything with it.

    C# csharp visual-studio tools question

  • call enum as argument in Method?
    S Sharp Ninja

    In your UI, you have an event handler for the dropdown list, so we'll start from that perspective. ```csharp public void DropDownSelectChanged(object sender, EventArgs args) { // assuming the sender is the drop down var ddl = sender as DropDown; // whatever the actual control is in your GUI Calculate(ddl.SelectedItem); } ``` The Calculate method will then call the appropriate Action to react to the state of the application. ```csharp // These get set in your constructor. public Action MoreApplesAction {get; set;} public Action FewerApplesAction {get; set;} public void Caclulate(Fruit selectedFruit) { // Of course, these should be properties somewhere var Apple = 5 var Orange = 1 // It's OK to create guards like this to // enhance readability, but don't be surprised // when someone objects because of the memory // allocation. var MoreApples = Apple > Orange; var FewerApples = Apple < Orange; switch(selectedFruit) { case Apple: if(MoreApplies) MoreApplesAction?.Invoke(); break; case Orange: if(FewerApples) FewerApplesAction?.Invoke(); break; } } ```

    The Sharp Ninja

    C# csharp data-structures tutorial question

  • Copy text from console window
    S Sharp Ninja

    `CTRL-A` is supposed to select all text in a control or context in Windows. However, it doesn't seem to work in either the PowerShell window or Windows Terminal. I would be very curious about a solution as well.

    C# csharp visual-studio tools question

  • The Wonders of Team View
    S Sharp Ninja

    So I'm now working 100% remote. Loving it. New work sent me an really powerful laptop to use. The screen is dying, and so I'm using Team View to remote into it from another laptop and it's practically perfect since Team View gives you access to everything, not just a virtual screen.

    Where I am: Member Photos collaboration
  • Login

  • Don't have an account? Register

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