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
J

jkirkerx

@jkirkerx
About
Posts
2.5k
Topics
435
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How do you deal with technical debt?
    J jkirkerx

    I'm near wrapping up a project written in 2003-2008, where it was done cheap and dirty and the level of technical debt is near bankruptcy. These young kids that wrote it during University managed to achieve something that looked decent on the outside, and a disaster on the inside. The customer paid $30K for the program and thought it was a bargain, but didn't know that the code was unreadable, went out of date the day it was finished and could not be fixed. The debt added up to about $350K in 2024 to replace the program done the correct way. To me, it's a subject of due diligence, morality, fiduciary like an investment advisor managing your money, because overall in the end, your managing the customers money or capital investment in their project. So I will call it ideology where proper practices and principles must apply to ensure integrity and durability. Something to think about to support your argument and raise that level of quality.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge question

  • Which monitor would you choose?
    J jkirkerx

    Well, I made the mistake of being too cheap last year when I bought 2 more 27" monitors, the Dell U2722 which is 2K+ with DP and HDMI. I should have bought the one you mentioned, Dell Ultrasharp 27" U2723QE. That Samsung looks nice with Thunderbolt 4 support, would work nice on my new Mac Mini. Apple wants $2K USD for theirs made by Sony. Most of these panels are made by the same companies, and OEMs buy them and add a interface package to them, encase them in plastic and offer them for sale. Consider the video interface first, how your going to hook them up, and your video card and it's ports, like DP over HDMI. And the cables do make a difference, where I found 8K cables to be cheaper than 4K cables, and worth the price. Run a separate DP cable to each monitor, if your card supports it, or you can daisy chain DP with a single card port with the Dells. I like Dell, and even though I'm a ViewSonic reseller, I haven't bought one yet. PC's seem to lean towards Display Port, and Macs lean towards HDMI, and now Thunderbolt 4. The Samsung looks appealing to me, but no DP ports so I will pass on that one. And high end NVidia cards like DP ports as well.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge com question

  • So, about PHP...
    J jkirkerx

    I didn't read the replies first, but will post my response to the question. I started working on a customers PHP project in Sept 2020, which was written in PHP 4.2 between 2004 to 2010 by some Chinese students from China. They did a terrible job, and everything you can possibly do wrong they did wrong. I can't even read the code. Anyways, it was so bad, that I told the customer that they really need to sort of start from scratch again. Why I chose pure PHP 7.4 for them. Drum roll please .... Because of time and money ... So many of the new technologies are constantly being updated so fast, that it's hard to keep up with the changes. PHP 7.4 is still that Swiss Army knife that can do almost anything, and PHP doesn't bug you to update code, or doesn't require a team of skilled software engineers to maintain over decades. Once you write it and deploy, it can run for a long time without more time and money. I can move on to the next project, and the customer can use their new app for years to come, and pass that app to their next generation of children that will take over the business when they come home from College or University. Our economy in the US has a strong service sector, comprised of small business owners with family involved, and have become generational now spanning their services across decades of time. I look at pure PHP 7.4+ from an economic point of view, and not from a superior technology point of view, considering time, labor, capital investment and maintenance being more stable and predictable across good times and bad. I don't agree with PHP Laravel as being a framework built on PHP, but opted for pure PHP, in which I was able to build a near MVC type of Web Application using modern objects and smarter HTML views with the objects, and include robust HTTP request and response handling, and robust security features. I have no regrets in my decision for my customers path forward, and I'm very happy with the results. Well that's my argument for PHP. May not be what you were expecting to hear or read, but I hope it satisfies your thirst to know why.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge javascript c++ php com design

  • CPUs that lock past operating systems, question about them on a global scale.
    J jkirkerx

    I'm not really sure about this, so I thought I would ask here, since it's global exposure. It's my belief that if I bought a modern computer with a Intel or AMD CPU, that I can't load and run Windows 7 32 bit. Sort of like the notion that AMD and Intel put fuses in the CPU, so upon firing up the CPU, it locks that CPU to the motherboard, and you can't remove the CPU and sell it, and put another CPU in. So I've been led to believe that a modern computer bought in the USA, has a CPU with a lock that won't load Windows 7, or go backwards with an OS. But then I think of the UK, and how do they buy new computers that can run Windows XP, or Windows 7? Or like in Thailand, a friend bought a new laptop with an Intel CPU that runs Windows XP. Is it just the USA? or certain countries, and other countries don't have that restriction? I'm trying to gather information on this, so I can upgrade some computers at the office, and run Windows 7 32 bit until we can find some accounting software that is 64 bit that we like. Still running DOS apps from the 90s here, because we are old and like them. Well we own them and they work fast and efficient.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge question com help

  • New Monitor Advice
    J jkirkerx

    Since you mentioned the refurbished Dells ... I'll make a new post here and ask the question, but thanks! you planted a seed for me.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge visual-studio com graphics question

  • New Monitor Advice
    J jkirkerx

    I doubt Asus makes the monitor, and it's just glass made by somebody, perhaps sourced from Viewsonic that has been packaged and branded Asus. I use the Dell U2719 at the office, U2722 at home. The last 2 digits represent the year of design, thus 22 means 2022. I'm very happy with them, but they are not 4K monitors, they are 2.5K or 2K plus. I chose Dell because I use Dell computers and don't build my own anymore. The only bummer is the new Dell soundbar which sounds terrible, like an old AM radio from the 70s.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge visual-studio com graphics question

  • Setting a CORS header, and allowing my Javascript modules that are inlined
    J jkirkerx

    I ended up with this, a compromise between using a hammer to nail it through with no more console errors, and fixing several security issues for the better. By hammering it, I can get the app running for the owner to evaluate and test, and then consider more security fixes and upgrades. Font-Awesome or the FortAwesome free version I removed all the Font-Awesome errors, but removing the all.min.js JavaScript file from the header elements. Turns out I don't need that JavaScript, and what it does is this.. Instead of using the fonts from Node_Modules, it fetches the latest version of the fonts and other stuff, to replace what Node_Modules has, and does things like monitor the use of the product, and causes licensing issues where it's no longer the free version. Well, the files it fetched were the free version files at least, so I got something right that I tossed in the trash. Diagnostics I used Mozilla FireFox at first, but it gave me generic information back, that never changed. I assume the headers I was inspecting was for public consumption. I ended up having to use Chrome in Developer mode, to see the real headers being returned from the response of the web page loading. ECMA Script Modules I used this to solve that issue in CSP. The use of a nonce. Declaring a master module that references child modules on a web page.

    script type="module" src="/assets/scripts/core/core.module.js" nonce="">

    Inline scripts I used this in the CSP rule below, to solve script within a element, calling onclick or onchange

    script-src-elem 'self' 'unsafe-inline' 'unsafe-hashes';

    onclick="core.setProjectType('', 'landscape')"

    SVG like spinners and things you embed on the web page

    img-src 'self' data: w3.org/svg/2000;

    Warning This is not my best work, and not completed yet, but gets the project back up and running so I can finish it and be done with it. This work does leave me with a little more work to beef up the security some more, but on my terms and not the web server or browsers terms. If your clueless about this subject, then you can use this as a reference to model something for yourself. Remember I'm not an expert on this subject, but do understand the point. And I spent many hours doing research and reading, plus testing. It doesn't matter that this is PHP, because the principals are the same with most w

    Web Development javascript php asp-net com sysadmin

  • Setting a CORS header, and allowing my Javascript modules that are inlined
    J jkirkerx

    This is what is being outputed by the web server IIS server on server somnething version. { "name": "content-security-policy", "value": "default-src 'self'; script-src 'self' swanpools-pcad-dev.occloud9.com; style-src 'self' 'unsafe-inline'" }, Not even close to the header I wrote in PHP. I looked at IIS and didn't see any prepared headers. I'll dig down in PHP.ini and expand my search. And run the header in report only mode until I fix it. Chrome is telling me I'm in report only mode, but not Firefox.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    Web Development javascript php asp-net com sysadmin

  • Setting a CORS header, and allowing my Javascript modules that are inlined
    J jkirkerx

    I replaced the script tags on the web pages to this ...

    So I don't have COR errors, I have Content-Security-Policy errors. This error is from the input element onchange event, where I wasn't able to add an event listener, because of the data I needed to popular the function call. I'll have to rethink this. Content-Security-Policy: The page’s settings observed the loading of a resource at inline (“script-src”). A CSP report is being sent. Source: coreExternal.setCommissionFinishedDate(t… 72 assignCommission.phtml OK, so this is not easy, and will require me to do way more research on the subject, and rethink some of the code in this project.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    Web Development javascript php asp-net com sysadmin

  • Setting a CORS header, and allowing my Javascript modules that are inlined
    J jkirkerx

    I'm at the end of the project finally, and I'm putting the wraps on it. I started programming headers in PHP for cache, and then it expanded into security as well. I built a system of ECMAScript modules, and my entry point module is being blocked by my CORS header. I can't figure this out, and could use some guidance on the subject. Here is what I have. /assets/scripts/core /assets/scripts/core/coreExternal.module.js coreExternal.module.js content

    window.coreExternal {
    setCommissionStartDate,
    setCommissionStopDate, and so forth

    On the WebPage, I use a script tag to load coreExternal This call to the module, makes the window.coreExternal functions look like dangerous inlined script. This is my PHP header for CORS

    $nonce = base64_encode(random_bytes(16));
    header("Content-Security-Policy: default-src 'self' *.fontawesome.com; script-src 'self' 'unsafe-inline' /pcad/assets/scripts/core/ https://kit.fontawesome.com/ 'nonce-".$nonce."' 'sha256-...'; style-src 'self'; img-src 'self' data:;");

    From reading the documentation from Content Security Policy, I added 'unsafe-inline' which should sledge hammer out my modules, but they are still blocked. Error Message: Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). Source: coreExternal.setCommissionStartDate(this… assignCommission.phtml My Questions I don't do CORS stuff everyday, just once every few years, and this is the first time I've done it in code, and not used the web server to program this. Perhaps I have the concept going but failed in execution, well I'm sure that's it. 1. Do I need the access-control headers? 2. Did I paint myself into a corner using modules the way I did? 3. Is one policy canceling another policy? I still have issues with these error messages as well

    Quote:

    Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). Source: --bs-breadcrumb-divider: '>'; viewVendors.phtml

    The manual style I added to the table element

    Quote:

    Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). Source: width: 100%; border: none; viewVendors.phtml

    These are my headers in PH

    Web Development javascript php asp-net com sysadmin

  • YouTube Ads
    J jkirkerx

    I pay for YouTube Premium with no ads. I use YouTube for financial research on my investments, so It's worth it for me to pay so I can shorten the time spent researching every night. But the trigger was the last election cycle in 2022 when I got bombarded with political ads that infuriated me, the same ads running over and over. That's when I clicked on the free trial and never looked back.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge delphi question

  • Looking for suggestions, and clarify a few things for a beginning Apple programmer
    J jkirkerx

    The emulator was quite impressive. I had setup a iPhone 15 Max, and it was a complete iPhone including the apps that come with it, and worked just like an iPhone. I'm not sure if it's tied to my iPhone so that messaging and stuff works. But I get what your saying where I will hit a wall again with the emulator, and may have to buy the real thing. I don't own a Android phone, and I know the emulator will only take me so far for that platform. And I don't really want to buy phones and tablets. I'll be careful on this, can't really borrow phones here, and I'll only get one chance from friends to test it before they lose patient with me. Great advice! and food for thought moving forward with a plan when I get to that point. I bought one of the books based off it's reviews, the IOS one and not the Cookbook.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    Objective-C and Swift swift ios help c++ javascript

  • Looking for suggestions, and clarify a few things for a beginning Apple programmer
    J jkirkerx

    Last night after bowling, I spent an hour watching programming tutorials on Swift, and most of the videos were 2 minutes in length. One video said that Swift is like an overlay over the OS, that takes care of memory management, garbage collection, and is pretty close to being a full blown programming Language. So it does sound like Swift is like what C Sharp is to Windows. But it looks sort of crazy to me, where let is a const I think, opposite of JavaScript, and you declare type last, instead of first. On one hand it looks overwhelming, yet on the other it looks kindergarten to code with. I picked out these 2 books, but haven't committed to them yet. This is a cookbook, which might offer some useful suggestions for getting me going [https://www.amazon.com/gp/product/1803234458/ref=ox\_sc\_act\_image\_1?smid=ATVPDKIKX0DER&psc=1\](https://www.amazon.com/gp/product/1803234458/ref=ox\_sc\_act\_image\_1?smid=ATVPDKIKX0DER&psc=1) And this one, to get a better overall look at IOS in general. [https://www.amazon.com/gp/product/1837630569/ref=ox\_sc\_act\_image\_2?smid=ATVPDKIKX0DER&psc=1\](https://www.amazon.com/gp/product/1837630569/ref=ox\_sc\_act\_image\_2?smid=ATVPDKIKX0DER&psc=1) I'm not really looking forward to this, but oh well, here goes feet first. And I'm not jumping on the IOS app ban wagon to make money off selling apps, those days are gone with just 7 major apps being consumed by 90% of phone time use by users, so that's a tough market to beat. Hey thanks for the suggestions and clarity on Swift versus Objective C. Hopefully I can create something my friends like and will use.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    Objective-C and Swift swift ios help c++ javascript

  • Looking for suggestions, and clarify a few things for a beginning Apple programmer
    J jkirkerx

    I recently bought a Mac Mini, loaded up XCode and created my first app, the demo iPhone app and ran it on my Virtual iPhone on the Mac, so that part works now. I have a couple of questions about Xcode and this project I created, that wasn't too clear to me on some YouTube videos. I sort of get what Objective C is, but not to clear on it. And I sort of get what Swift is, but not clear on it. Is Objective C the base language? I was looking at the sample code generated and it looks like some sort of controller view system, sort of like Microsoft MVC. Or are libraries already created in Objective C and I use Swift to write simple code to execute logic and generate it to the a assigned view or screen, where the underlying Objective C code executes it. I was just book shopping on Amazon and the web, and so many books are published on the subject, some promoting Objective C and others promoting Swift, so I'm not sure what book to buy. My goal is to write a robust iPhone app that collects data and stores it in the cloud or on the device like where, when and notes, and then a larger app like on a iPad or Mac can analyze the data and help find fixes for the user. It's a sports app to help players be better. I need to move fast on this and would appreciate your experience and thoughts. Or any books that I can read to catch up on this technology. I was going to React Native, but was told to just build the app with native tools by Apple.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    Objective-C and Swift swift ios help c++ javascript

  • How to Reference a local image file to display it
    J jkirkerx

    That sounds more like a game to me. :) Or gaming technology, I think you can layer things, I'm not a gaming programmer so I don't know, but I think it's possible. (I haven't gamed in decades now). You should be able to program hidden buttons that would change the picture like a transition of scene. I did some quick research, and they have JavaScript Libraries that allow you to create Game like or 3D stuff. Babylon must be open source, could be a start.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    JavaScript java javascript html tools tutorial

  • How to Reference a local image file to display it
    J jkirkerx

    I think you should rethink what your trying to accomplish. Perhaps choose another path ... I read your post and it makes little sense to me, where you used the word "Screen" instead of "browser" or "window". JavaScript manipulates the DOM, which is a collection of HTML elements in a browsers view or tab. Most of the time, you create a web page using HTML, and if needed, you can write some JavaScript to move an element, change the word or color of a element. Or listen for events to occur, and fire a function when that event occurs. You can make web pages from 100% JavaScript, but it's time consuming, unless your app requires that level of sophistication. In other words it's really expensive to choose this method. Consider writing a Windows app, or Mac app, you didn't say what platform you work with. Or take a lesson in HTML and how to create web pages first. I think your putting the cart in front of the horse here.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    JavaScript java javascript html tools tutorial

  • Thinking about buying a new workstation with AMD Ryzen Threadripper PRO 7955WX, questions about power consumption
    J jkirkerx

    :omg: I bought the Dell Precision 7865 Tower Workstation, with the Ryzen 5955WX, 1 TB boot and 64 GB Ram with the RTX A4000. I was skeptical over the price offered by my Dell Rep, $3249 total, for a Lenovo 620 same config was $4600, Dell 7865 with same config at BH Photo was $4866. After I bought it and saw the order details, it's like Dell gave it to me near cost. It's amazing how fast technology advanced over the last 3 years, and this computer seems to have been outdated in less than 15 months, and now on clearance. Gonna be nice to have a modern computer at home that is a little more powerful than what I bought in early 2022, a 10 core Xeon with same specs for about $3200. Hey, thanks for the input on power consumption, and talking me out of the new Thread Ripper or 7000 series considering my use for the computer. That would have been overkill for me, and perhaps require me running another dedicated 15 amp circuit from the panel to the computer in the garage. I just upgraded my garage late 2022, with new LED lights, 4 more circuits, repair and finished the drywall and new primer and paint, and I'm done with that can of worms. On a side note, on Xmas day I decided to put together the iPhone app that my friends have been bugging me about for years, and spent hours setting up for it, to find at the end I needed a Mac if I wanted to use React Native with Expo, over .Net Maui, so I bought a Mac Mini that night. I have a iPhone, iPad and watch, but I don't have an Android phone, and I had to laugh :(. I really wanted to upgrade my home computer (2011 6 core Xeon), and wasn't considering a Mac, but this Dell deal made both possible for the price of just one high end build.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge com testing beta-testing help question

  • Thinking about buying a new workstation with AMD Ryzen Threadripper PRO 7955WX, questions about power consumption
    J jkirkerx

    ;)

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge com testing beta-testing help question

  • Thinking about buying a new workstation with AMD Ryzen Threadripper PRO 7955WX, questions about power consumption
    J jkirkerx

    I'd consider it, but this is a tax write off for me, and it's easier for me to write off a new canned system and depreciate it over a custom built system when I Schedule C this purchase for 2023. I just use these things as tools now, and this purchase gives me insight into some of the stocks that I own, to get a better understanding of where technology stands today and where it's going in the future. It's a tax and investment strategy for me, and a research tool. But thanks for the offer!

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge com testing beta-testing help question

  • Thinking about buying a new workstation with AMD Ryzen Threadripper PRO 7955WX, questions about power consumption
    J jkirkerx

    To all: I was wondering the same thing about do I need that much power? When I was shopping or looking, the Dell 7975 was the only model with AMD that I can find ($7300). But I looked again today, and clicked on Deals or Bargains and found the older Dell 7965 model with the .. AMD Ryzen Threadripper PRO 5955WX (64 MB cache, 16 cores, 32 threads, 4.0GHz to 4.5GHz, 280 W) - 1 CPU step up from the bottom. It's $900 more for the AMD Ryzen Threadripper PRO 5965WX (128 MB cache, 24 cores, 48 threads, 3.8GHz to 4.5GHz, 280 W) and seems like a lot more money. (Dell 7965) for 1/2 the price, which seems more realistic to me, price and affordability as well ($3600). I wasn't really sure just how much computing power the Dell 7975 has, but it looks like I could design a winning Formula one engine, or create an animated movie with it and that would be overkill for me. I just want to be able to use Avid Media Composer to make YouTube videos on car repairs, and edit 4K video, plus write code. On the side: I have my old Dell T3600 that I bought in 2011, I took home last year for my new home office, and I miss the power I have at the work office, plus using Windows 11. I do more intense computing at home and would like something more powerful than what I bought in 2022. I'll buy the Dell 7865 instead, and that should last me a long time.

    If it ain't broke don't fix it Discover my world at jkirkerx.com

    The Lounge com testing beta-testing help 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