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
R

raddevus

@raddevus
About
Posts
6.1k
Topics
765
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Electron Projects
    R raddevus

    It's probably not you. They are in the middle up upgrading their project templates and many (most) of them are behind. Also, they are messed up on their .NET version right now. Their old templates use .NET 6.x but the new code is .NET 8.x which works better. They move a bit slow. they also just (in the past few days) updated the react template one to a current version of React. Are you building the React project specifically? If so I will try getting it set up and create a github repo you can clone, if you want.

    The Lounge question

  • Copy-pasting...
    R raddevus

    I have the same experience. For a while there were many places that CTRL+C CTRL+V didn't work. Linux terminal, for example still doesn't like CTRL+V paste. However, CTRL+INSERT SHIFT+INSERT work there with no problem.

    The Lounge javascript cloud csharp linq com

  • Electron Projects
    R raddevus

    You could also do it in the new Photino.NET (see photino website[^]). This allows you to build cross-platform apps (via HTML & JS) but then the backend is C# code (instead of NodeJS stuff). I wrote up a complete article on this here at CP: Photino: Open Source, Cross-Platform, Desktop Note-Taking App, via .NET Core[^] Photino offers smaller footprint than Electron & it runs on C# which makes me happy. Plan on updating C'YaPass to Photino soo. I really already did -- took the HTML, JS, CSS and pasted it into a Photino project and it wrapped it up with no problems. Pretty cool.

    The Lounge question

  • Electron Projects
    R raddevus

    I have! Some of Electron is a pain, but it has allowed me to build my Password Manager (C'YaPass) and deploy it to both the *Windows app store[^] and the Snap Store[^] (Linux app store). You can also get my app at my GitHub GitHub - raddevus/CYaPass-Electron: The official C'YaPass desktop app built on Electron (runs on Windows, Linux, Mac)[^] Check out the readme at GitHub for how you can clone the repo and run it immediately. Because of Electron, C'YaPass runs natively on every OS platform (well, the big three macOS, Windows, Linux). You can get all of the install packages (for any OS) at my official CYaPass site (download landing page): C'YaPass: Forget All Your Passwords | Downloads[^] (RPM, DEB, DMG (mac), AppImage (linux exe)) You can even try C'YaPass directly in your browser -- nothing to install: https://cyapass.com/js/cya.htm[^] *My app is FOSS (Free Open Source Software) and links are to each app store. Questions That was a lot. Got any specific questions about what was difficult, annoying , etc. about ElectronJS? Happy to help.

    The Lounge question

  • VStudio Updates: Via social media
    R raddevus

    But then you read just a few replies....

    Quote:

    Tick @aleh_tiktack · 2h Is it possible to modernize UI ? I know that there a feature flag, but it changes maybe 20% of UI. So many white pages, progress bars in dark mode, outdated icons and so on? Mads Kristensen @mkristensen · 2h We're working on it. Huge task, but it's coming.

    and...

    Quote:

    Kirk Marple @KirkMarple · 2h Please, please fix the “Code search freezes randomly” issue on the Dev Community forum. Makes Code Search unusable on the current preview release.

    Here's a good'un

    Quote:

    Andreas U. @MartyMcFly75 · 2h Wh3n are you going to rework the "new" resource editor which never was production ready and is a total disaster. I wonder how that piece of intern quality code ever got greenlighted.

    Wow, maybe I found my new job. I'll read all the X.com posts & then post them here. :rolleyes:

    The Lounge visual-studio csharp sales collaboration beta-testing

  • VStudio Updates: Via social media
    R raddevus

    Because you don't use social media, but you need to know this update (because you been griping about VStudio for so long (me too) ). :rolleyes: Also, hopefully, it's not just Marketing, but it probably is... :-D

    Quote:

    Mads Kristensen @mkristensen It's humbling hearing all the positive feedback from the recent features and fixes we've put into Visual Studio. I know some of them were old feature requests that took a long time for us to act on. On behalf of the VS team, thank you! 1:27 PM · Oct 16, 2024 · 2,463 Views

    The Lounge visual-studio csharp sales collaboration beta-testing

  • Switchboard operators...
    R raddevus

    Have you read the book, Linchpin: Are You Indispensible[^], (2008) by Seth Godin By coincidence I am listening to it for the 11th time -- yes I'm serious. I read this book twice and now I listen to it every year, at least once, since I first read it. Here's a gem:

    Linchpin:

    The difference between what an employee is paid and how much value she produces leads to profit. If the worker captures all the value in her salary, there’s no profit. As a result, capitalist profit-maximizing investors have long looked for a way to turn low-wage earners into high-value producers. Give someone who makes five dollars a day an efficient machine, a well-run assembly line, and a detailed manual, and you ought to be able to make five or twenty or a thousand times what you paid in labor.

    The author is not saying this is a great idea. He is saying it is "the way the system works". And when a system works, the people are going to work the system. People who understand that are going to "work the system" with AI. Yes, it is too bad. It's why we all have to grow / get skills that AI cannot reproduce easily. I understand you are one of those who thinks this too and who has skills.

    The Lounge question career

  • Generate SHA256 Hash of every file on my computer.
    R raddevus

    If You Give A Mouse A Cookie* I'm on a path to do a weird thing: generate the SHA256 hash of every file on my computer (store filename and hash in db). To do that, I started thinking about how I might set multiple instances of the process to do a portion of the work so it'll be (overall) faster. I figure I could write every directory on my system to a sqlite db then let numerous processes grab a folder, get all files, independently of each other. That made me start wondering about how much data it would be to store every directory on my system in a sqlite database. Wrote A Quick C# Program I wrote a quick little C# program that: 1. user gives starting path 2. program iterates through every directory 3. writes each directory to the sqlite db. Fast Iteration, Slow Insert I (of course) discovered : 1. it's super fast to iterate over the directories. It can iterate over 239618 directories in my Linux user directory in a few seconds. 2. It's super slow to use EntityFramework to insert those dir names into the sqlite db. Super slow means it takes more than 10 minutes. Two Weird Parts (but maybe expected) So, instead of inserting the records into the db directly I write data to a file (yes,it's 239,618 lines long) Data looks like (pipe delimited):

    239609|/home/fakepath/faker|2024-10-15 17:16:27

    Weird 1 C# iterates all those directories and writes to file in 2-3 seconds Weird 2 (also kind of wonderful) sqlite imports that data (over 239 thousand rows) in less than 1 second on the SQLite command line: > .import allPaths.dat finfo Import command takes file name with data and the target table name (finfo) I'm figuring this will make a lot of people say, "yeah, I figured so". :-D *In that book, one thing leads to another. Give a mouse a cookie, he'll want some milk. To get the milk you'll have to...

    The Weird and The Wonderful database learning csharp css sqlite

  • Where is...
    R raddevus

    PIEBALDconsult wrote:

    I discovered that VS won't allow you to change the field names.

    That's very odd. That ability should be tied to the version of C#. I think it came on in C# 7.0. VS can be annoying at times. I really like using VSCode any time I can -- especially since I've moved to Linux and can't run VS.

    The Lounge question

  • Where is...
    R raddevus

    Two more things (cuz I'm so excited!). 1) I used an honest-to-goodness C# Tuple in that code and I think it actually makes sense in this case.* 2) I'm also planning on writing a GUI** for this code later so user can traverse through folders for choosing source & target folders. * I've never had a terribly good reason to use a tuple before but I've seen a lot of examples that seemed to be using them for tuple-sake. ** I will use Photino[^] to build the GUI when I do this. It'll be a great use of Photino, I think.

    The Lounge question

  • Where is...
    R raddevus

    Richard Andrew x64 wrote:

    Does it also remove the duplicates?

    Not yet, but I am going to add a switch the user can provide to do that too. Oh, you can see the (very quickly written code) at my github: GitHub - raddevus/iPhotoGrabr: Unzips photos from iCloud downloads (.NET Core 8)[^] Hope you can use it too. I also build the EXE as a standalone for win10 (though I'm dev on Linux) to make it easier to use on my wife's win11 machine. Take a look at the buildForWin10.sh (shell script) You can use the command in that file to build on Win10/11 too.

    The Lounge question

  • Man Who Accidentally Threw Hard Drive Containing 8,000 Bitcoins Worth Half A Billion Dollars In Landfill Sues Local City Council For Not Excavating The Site
    R raddevus

    Kent Sharkey wrote:

    filed a lawsuit

    Phew...so glad to hear that litigation and lawyers are involved. :rolleyes: I mean what would the world be without?

    The Insider News com

  • Where is...
    R raddevus

    Yah, no one good or smart comes here any more. <==== (edit: This is a joke!) I'm still here most days. :rolleyes: Here's my TLDR; My wife was downloading photos from iCloud (iphone) so she could print them. Discovered that 9/10 photos she downloaded were downloaded as zip files. Apparently a lot of her photos were on "live photo" which includes a "video" portion. So, when you take that photo and download from iCloud you get a zip which contains the .MOV and the JPEG. We just want the JPEG so she can print some pix. I wrote a .NET Core console app that: 1) allows user to point at directory where all those zips (100 or more) are and will pull out every JPEG and save them all into folder provided by user 2) Run another command on the app and it'll tell you if any of the images are duplicates. I'm really excited by this little utility because it is really cool and has a lot of uses. You can use it to tell you if you have any duplicate files. It runs SHA256 hash on every file and then tells you if any two files are dups. :cool: The CP Problem See how excited I am to talk about this? This would normally become a CP article. But :wtf: should I do now? Bummer :sigh:

    The Lounge question

  • Let's Help Dave
    R raddevus

    Ah, the Clive Cussler technique... (It's obvious, you are Dave.)

    Quote:

    Clive Cussler, the renowned adventure novelist, had an interesting and somewhat unconventional start to his literary career. When he finished his manuscripts for “The Mediterranean Caper” and “Iceberg,” he struggled to find a literary agent. To overcome this, he created a fictional literary agency called "The Charles Winthrop Agency"1. Cussler went as far as purchasing a thousand sheets of blank letter paper and having a friend design a logo for his fake agency. He then sent out letters to real literary agents, including Peter Lampack of the William Morris Agency, pretending to be a representative of this non-existent agency12. His creative approach paid off, and he eventually secured representation, which helped launch his successful writing career.

    The Lounge com help question learning

  • Well this is (moderately) interesting
    R raddevus

    In case your hiring, he has his resume here => chrismaunder.github.io/docs at main · ChrisMaunder/chrismaunder.github.io · GitHub[^] :-D Spoiler (from the Summary section). he talking 'bout CP, right?

    Maunder's resume:

    A heavy-lifter with a passion for launching projects and doing so with next-to-no funding and copious duct-tape.

    The Lounge com sysadmin discussion

  • Begun Backing Up My CP Articles
    R raddevus

    Marc Clifton wrote:

    Given I have 260 articles and 8 tips/tricks,

    Wow! I feel your pain. I only have 88 articles & it is seriously painful. Many of them I will just "leave behind".

    The Lounge html question

  • Begun Backing Up My CP Articles
    R raddevus

    I asked Copilot about your sig line and here's what it told me (below). Very interesting, I had never heard of that.

    Copilot said:

    This phrase originates from the ancient Greek poet Archilochus and has been popularized by the philosopher Isaiah Berlin in his essay "The Hedgehog and the Fox"1. It contrasts two different ways of thinking and approaching the world: Foxes are seen as versatile and adaptable, drawing on a wide range of experiences and strategies. They know many things and can handle various situations with flexibility. Hedgehogs, on the other hand, focus on a single, overarching principle or idea. They know one big thing and apply it consistently to everything they encounter. In essence, the phrase suggests that while foxes are cunning and resourceful, hedgehogs are steadfast and focused23. This metaphor is often used to describe different types of thinkers or problem-solvers. Do you see yourself more as a fox or a hedgehog in your approach to programming and technology?

    The Lounge html question

  • Begun Backing Up My CP Articles
    R raddevus

    honey the codewitch wrote:

    But there's the code and everything too

    Yeah, the code is the one challenge. The save as saves the css, html and even the individual images but not the code. :sigh: Kind of a pain.

    The Lounge html question

  • Begun Backing Up My CP Articles
    R raddevus

    honey the codewitch wrote:

    Even thinking about backing them up freaks me out

    I know it's quite painful. But most of my articles I wrote so I'd remember the content better and so I could refer back to them. I've referred to my article on SQLLocalDb tool usage (Dev's User Guide To SqlLocalDb (Sql Express)[^]) numerous times over the years. I definitely grabbed that one. I also wrote 5 chapters of Electronics For Makers which exists here an nowhere else. Backing them up isn't too bad, if you, 1. go to search & search for your author name (that'll give you a list of your articles in reverse chrono order (newest first) 2. open each one in a new tab 3. click "get html for article" 4. save as Not too bad.

    The Lounge html question

  • Begun Backing Up My CP Articles
    R raddevus

    Amarnath S wrote:

    thinking of rep points. They'll all vanish into thin air.

    :thumbsdown: I was thinking about the same thing. It's kind of a bummer. :sigh:

    The Lounge html question
  • Login

  • Don't have an account? Register

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