Legal/Performace ramifications of using outdated frameworks & unsupported languages?

I hope this is the best place for this – I would like to know how people deal with companies that use outdated frameworks or languages that are no longer supported and have reached end-of-life.

I know someone who is working for a firm that are using a very outdated PHP framework. Zend 1.x to be precise which was end-of-life in 2016 and their custom Zend framework hasn’t been updated for approx 7-8 years.

As these frameworks no longer receive any more support the chances of getting hacked increase not to mention the general performance decreases with outdated versions)

How would I approach this colleague as I feel using all the outdated stuff will just burn them in the ass – how do I best approach this?

What is this error TypeError: unsupported operand type(s) for +: ‘instance’ and ‘str’ and how do i fix it

I am writing a Python 2.7 script that takes a URL and checks if the server is responding if the server is online then it takes a file and combines it with the server address and then checks if the file is on the server depending on the results then it attempts to download the file the code is below. If someone could explain to me what is wrong with my code and how to fix it along with how the error occurred i would appreciate it. The downloading code comes from pythonforbeginners.com I have tried asking this on Stackoverflow and just got answers basically telling me to figure it out for myself and i got blocked from asking questions hopefully someone here can help me

!/usr/bin/python

import urllib2 Server = urllib2.urlopen(‘https://www.google.com’) File = ‘/Download.txt’ URL = Server + File if URL.getcode() == 200: Response = urllib2.urlopen(Server) Write = open(file, “w”) Write.write(response.read()) Write.close() else: print (‘ Just Testing’)

Mounting USB stick in single-user mode: unsupported sector size (0)

I’m trying to mount a USB stick in single-user mode (thankfully there’s nothing wrong with my Mac, I’m just trying some stuff out). These are the commands I’ve been running:

$   mount -uw /  $   mkdir /Volumes/drive $   mount -t msdos /dev/disk2 /Volumes/drive mount_msdos: Unsupported sector size (0) 

The USB drives connects to my system properly and is visible in /dev/. I’ve reformatted the drive as HFS and got the same error message. I’ve also tried another USB stick formatted in both FAT32 and HFS, to no avail. I assume this must mean that I’m doing something wrong here, but a quick Google search shows that most people succeed using this approach.

I’m running MacOS Sierra 10.12.6 on a mid 2012 MacBook Pro.

Mojave upgrade being suggested on unsupported Mac

My mother has a 2008 iMac currently running El Capitan. Every now and then it pops up the notification suggesting that she upgrade to Mojave. But if you actually try to download Mojave from the App Store, it says it’s not compatible with this Mac (according to Mac OS X Compatibility Guide, El Capitan is the latest version for her Mac). Why is it suggesting an upgrade that isn’t actually possible, and how can I stop the notifications?

Many web sites, including Is it possible to STOP the 'Upgrade to macOS High Sierra' message that keeps stalking me?, say to remove /Library/Bundles/OSXNotification.bundle. But there’s no /Library/Bundles folder on her Mac in the first place.

“unsupported dictionary type: pcre” postfix header_checks

I have the following header_checks in place on Postfix

/^Received:/ IGNORE /^X-Originating-IP:/    IGNORE /^X-Mailer:/            IGNORE /Message-Id:\s+<(.*?)@www.mainserver.com>/   REPLACE Message-Id: <$  1@www.domain.com> /X-Mailer-LID:/        IGNORE /^MIME-Version:/i PREPEND Precedence: bulk /X-Mailer-RecptId:/        IGNORE /X-Mailer-SID:/        IGNORE /X-Mailer-Sent-By:/        IGNORE /List-Unsubscribe:/        IGNORE 

Once I activate them in postfix/main.cf (after running postmap /etc/postfix/header_checks) postfix stops working. When I attempt to send an email I get the following error log

Jun 20 03:19:26 mail postfix/pickup[6813]: F37593F946: uid=0 from=<root@domain.com> Jun 20 03:19:26 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks is unavailable. unsupported dictionary type: pcre Jun 20 03:19:26 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks lookup error for "Received: by mail.domain.com (Postfix, from userid 0)??id F37593F946; Thu, 20 Jun 2019 03:19:26 +0200" Jun 20 03:19:26 mail postfix/cleanup[6819]: warning: F37593F946: header_checks map lookup problem -- message not accepted, try again later Jun 20 03:19:26 mail postfix/pickup[6813]: warning: maildrop/F27653F945: error writing F37593F946: queue file write error Jun 20 03:19:27 mail postfix/pickup[6813]: F42373F946: uid=0 from=<root@domain.com> Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks is unavailable. unsupported dictionary type: pcre Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks lookup error for "Received: by mail.domain.com (Postfix, from userid 0)??id F42373F946; Thu, 20 Jun 2019 03:12:51 +0200" Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: F42373F946: header_checks map lookup problem -- message not accepted, try again later Jun 20 03:19:27 mail postfix/pickup[6813]: warning: maildrop/2C3F23F172: error writing F42373F946: queue file write error Jun 20 03:19:27 mail postfix/pickup[6813]: 00EE13F946: uid=0 from=<root@domain.com> Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks is unavailable. unsupported dictionary type: pcre Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: pcre:/etc/postfix/header_checks lookup error for "Received: by mail.domain.com (Postfix, from userid 0)??id 00EE13F946; Thu, 20 Jun 2019 03:13:36 +0200" Jun 20 03:19:27 mail postfix/cleanup[6819]: warning: 00EE13F946: header_checks map lookup problem -- message not accepted, try again later Jun 20 03:19:27 mail postfix/pickup[6813]: warning: maildrop/924363F173: error writing 00EE13F946: queue file write error 

What is causing this? I believe it works on my old CentOS 6 installation but I am having problems with my Ubuntu 18.04 installation.

LSI MegaRaid 9261-8i detects drives as “Unconfigured Good (Unsupported)”

i just purchased 9 SAS drives to create my home storage. 8 drives will work in Raid 6 and the 9th drive is a spare. however, after purchasing the LSI MegaRaid 9261-8i and connected only 6 drives for testing, the card detects the cards as “Unconfigured Good (Unsupported)”. after digging on the internet, i found a similar problem that the drive was formatted with sector size 520, and the solution is to format it with sector size 512B. however, i can’t see the drives independently (directly) on Windows10 nor CentOs7.

MSM detects drives

i have installed MegaRaid Storage Manager on windows and it shows the sector size is 512B. however, when issuing the command MegaCli64.exe -PDList -aALL, it shows that the sector size is 0. My LSI Card My HDD Link

F:\Downloads\Compressed-07-14_MegaCLI\Windows>MegaCli64.exe -PDList -aALL  Adapter #0  Enclosure Device ID: 252 Slot Number: 0 Enclosure position: N/A Device Id: 52 WWN: 5000C500563289E4 Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06A Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c500563289e5 SAS Address(1): 0x0 Connected Port Number: 3(path0) Inquiry Data: IBM-SSG S7CR4P0         E06AZ1Z0D1K5  02E06A FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No    Enclosure Device ID: 252 Slot Number: 1 Enclosure position: N/A Device Id: 51 WWN: 5000C50055AAC5C0 Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06A Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c50055aac5c1 SAS Address(1): 0x0 Connected Port Number: 2(path0) Inquiry Data: IBM-SSG S7CR4P0         E06AZ1Z055N9  02E06A FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No    Enclosure Device ID: 252 Slot Number: 2 Enclosure position: N/A Device Id: 50 WWN: 5000C50056328B8C Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06A Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c50056328b8d SAS Address(1): 0x0 Connected Port Number: 1(path0) Inquiry Data: IBM-SSG S7CR4P0         E06AZ1Z0D1JN  02E06A FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No    Enclosure Device ID: 252 Slot Number: 3 Enclosure position: N/A Device Id: 53 WWN: 5000C500562714A0 Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06A Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c500562714a1 SAS Address(1): 0x0 Connected Port Number: 0(path0) Inquiry Data: IBM-SSG S7CR4P0         E06AZ1Z0CDBW  02E06A FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No    Enclosure Device ID: 252 Slot Number: 4 Enclosure position: N/A Device Id: 55 WWN: 5000C50056328EB8 Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06D Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c50056328eb9 SAS Address(1): 0x0 Connected Port Number: 5(path0) Inquiry Data: IBM-SSG S7CR4P0         E06DZ1Z0DALL  07E06D FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No    Enclosure Device ID: 252 Slot Number: 5 Enclosure position: N/A Device Id: 54 WWN: 5000C50055B43CE0 Sequence Number: 1 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS  Raw Size: 3.462 TB [0x1bb5bea00 Sectors] Non Coerced Size: 3.462 TB [0x1bb4bea00 Sectors] Coerced Size: 3.461 TB [0x1bb317000 Sectors] Sector Size:  0 Logical Sector Size:  0 Physical Sector Size:  0 Firmware state: Unconfigured(good), Spun Up Device Firmware Level: E06A Shield Counter: 0 Successful diagnostics completion on :  N/A SAS Address(0): 0x5000c50055b43ce1 SAS Address(1): 0x0 Connected Port Number: 4(path0) Inquiry Data: IBM-SSG S7CR4P0         E06AZ1Z05N22  02E06A FDE Capable: Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Hard Disk Device Drive:  Not Supported Drive Temperature : N/A PI Eligibility:  No Drive is formatted for PI information:  No PI: No PI Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Port-1 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No     Exit Code: 0x00  F:\Downloads\Compressed-07-14_MegaCLI\Windows> 

please help