Jump to content

Neftex

Member
  • Posts

    816
  • Joined

  • Last visited

Posts posted by Neftex

  1. 10 hours ago, Gat Pelsinger said:

    Tell me, is it right to tell a fellow power user who is trying to overclock his CPU to first go and get a degree as an electrical engineer?

    what do you mean by this? isnt that exactly what youre doing?

    @Avocado Diaboli is telling you the simple way to start programming (aka overclock in your metaphor) while you are trying to get the degree before you enrolled a single class. not even, youre asking other people to do the study for you and give you results

  2. first of all fix the naming, class names start with capitals, variables start with lowercase, then fix formatting

     

    now i could be totally wrong but you have 2 bean definitions of the same class (A, B) but when youre autowiring you dont specify which one to use? - not applicable since youre using autowiring by name

     

     

    from the looks of it, this is exactly what youre trying to do:

    https://springframework.guru/autowiring-in-spring/

  3. 1 minute ago, starsmine said:

    It still needs to be turned on in bios to be able to do any of that. and on average you gain more frames then you lose. 

    the average depends on games you play, so no its not always a positive

  4. @TheJudge91 youre copy pasting issues mentioned on other sites, you should look at the reality (im no genius but look at my implementation above)

    • back button does not break because im not navigating the iframe, im navigating the whole browser tab
    • iframes work fine with screen readers - "Generally, using iframes won’t negatively impact the experiences of people who use screen readers and other assistive technologies. However, iframes must have meaningful titles." https://www.boia.org/blog/why-are-iframe-titles-important-for-accessibility
    • css styling works fine on the iframe, yes there are exceptions but they are not needed here
    • i very much doubt performance/memory is a problem for a simple header menu

    apart from using static page generator like @maks112 mentioned, i think its the best option for a static website without javascript

     

    but since OP returned and said he changed his mind and going modern with javascript, then framework makes the most sense right now

  5. @Sakuriru

     

    case 1 assumes he needs to do that and it seems to me he doesnt (in fact it seems he wants to avoid javascript because he didnt want to use the javascript solution he found)

     

    case 2 if you look at the bar, its 100% width and the links are centered. seems like there should be no problem with scaling unless he has like 15 links and tiny window

     

    case 3 hes not using any context right now, no mention of context in the post.

    i dont understand the second part about requiring two navigations - youre not navigating the iframe, the links in the iframe navigate the browser tab to a different page

     

    technical debt of 1 line of code in each page, assuming he will even need to change it

    other.htmlindex.htmlheader.html

  6. @oofki @Sakuriru

    im really interested in hearing why iframe is a bad solution in this specific case

     

    security? no issue here since its same origin page?

    loading multiple files? framework generated pages will also load multiple files, like javascript chunks? also the files are cached in browser anyway?

    not being able to load the iframe? the main page loads anyway, you just wont see the bar?

    compatibility? its been supported since forever?

    you get all this on a static website without even requiring javascript on the client + you dont need to learn any new language/framework/server tech

     

    (yes yes framework is better in a sense of user experience like not reloading the pages while navigating on the site) but if hes building a static website then why not iframe?

  7. 1 minute ago, oofki said:

    It’s not that simple. But I’ve been a web developer for 20 years. I’m not going to encourage bad practices. 

    well your idea was to use a framework or even server generated page for what seems to be a simple static website which to me seems overkill and unnecessary burden for the poster. if what he posted is really just what he needs then iframe makes the most sense to me

  8. 51 minutes ago, oofki said:

    I disable the other one(s) in device manager 

    this isnt safe enough imo, especially since i wont be in control of the work OS

     

     

    how about some middleware OS that i could install on the work drive that would then boot the work OS with limited hardware access? i remember unraid was shown on the channel a while ago, would that work and perform well?

     

    I have 2 sata disks and 1 m.2 - I could install work OS on one of the sata disks and airgap it with a sata power switch extension like this one https://www.aliexpress.com/item/4000601282955.html to prevent writes from personal OS. And with the middleware on the work drive i could probably disable access to the personal disks

  9. I would like to have my system set up for work and for personal use. I have 3 disks, i plan to use one for work and the other 2 for personal use. Each use case will have its own Windows OS install. What i want to achieve is that work OS cant touch the data on personal disks and the other way around.  I will not have full control of the work OS so settings there will not guarantee much. I wanted to disable the disks in bios but the board doesnt have that option. I cant air gap the disks because some are m.2 and i wont take the pc apart every time i want to boot the other OS. Is there a way to solve this?

  10. theres many ways to fix it for example

    you could just copy paste it right under the toggle function call

    or you could do it as part of the toggle function

    or you could do it as part of the addition function (this would require more changes, because youre sending parameters to that function "before" that if statement runs)

  11. 12 hours ago, wasab said:

    These companies will eventually need to rewrite their applications at some point. Much of the banking mainframe still run on COLBO programmed apps made back in the 1900s and nowadays most of these colbo devs have long since retired, and for some more than retired. It is as much a strong case for companies and industries to adjust to the shift in technology and skills/talents as it is for workers to adjust to the demand of the industries and employers. Likely in the future, if they are to make changes to these legacies system, it may come to a point that a future software architects would tell them it is actually cheaper to rewrite them from scratch than it is to maintain them 

    rewriting doesnt necessarily mean using new/different language. companies will want to save money which means choosing language where they can hire skilled people for less money or have their current employees do it

×