|
I forgot about that. I finished reading Sovereign Individual last week and they spoke of the Luddites, that burned down the textile factories because they installed a machine that would cut the fabric, to replace the man with huge scissors. The owner of the factory simply wanted to automate a few functions, and got killed over that.
Well, they still exists out there, so I'll keep a watch.
Luddite - Wikipedia
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Should they rename it Sybil[^]?
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.1.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Valuable first-hand detailed report: thanks !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I have slowly come to like and use Bing AI chat.
I don't ask it to write code.
I ask him question I would ask a colleague, such as "how do I do that"?!
In other news, PHP hey? Wow I didn't know people were still using that!
|
|
|
|
|
That's why I needed the help, PHP8 is widely used high up in large companies, but they don't post in forums, and hardly any help is available in books or online. It's not dead, just not well documented in how to use the database libraries.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: close the connection, free the statement, add error logging and include the function name in the error statements, add parameters and use prepared statements to over 900 database functions
One can only wonder how that even came to be.
|
|
|
|
|
It was a 23 year old PHP application, where the code was mixed in with HTML in a real bad way. I couldn't even read the code, that bad. Hardly any reusable code was written, so I picked out the code and created reusable functions and concentrated on creating models or objects first. It came down to not wasting time on bad functions that didn't work. Finally it was time to take the functions that actually worked correct and optimize them, and toss out the ones that were not being used. It's the project from hell, with never ending surprises from just poor design to begin with. I wonder why a university taught them this.
They wrote functions to repeat HTML or generate it, and inlined database code.
Here's a sample ...
$cost_sum = 0;
$select = '';
<pre>
$get_cost = "
SELECT SUM(proj_cost.Cost), proj_cost.Vend_ID
FROM proj_cost
INNER JOIN vendor ON proj_cost.Vend_ID = vendor.Vendor_ID
WHERE (proj_cost.Proj_ID = '$proj_no')
AND (proj_cost.Proj_Stage = '$proj_stage')
AND (proj_cost.Vers_ID = '$ver_no')
AND (proj_cost.Task_Oper = '$cat_ID')
AND vendor.delete_flag <> '1'
GROUP BY proj_cost.Vend_ID
ORDER BY proj_cost.Vend_ID ";
$res_cost = sqlsrv_query($conn, $get_cost) or Die(" 464:" . print_r(sqlsrv_errors()) . " <br /> ");
if (sqlsrv_has_rows($res_cost)) {
while ($row_cost = sqlsrv_fetch_array($res_cost)) {
$cost = $row_cost[0];
$vend_id = $row_cost[1];
$cost = $cost + $comment_cost;
if ($job_vendor == $vend_id) $cost_sum += $cost;
$vend_name = clsGetPart::getVendorName($vend_id);
echo "<td class='text-align-left' width='10%'>";
if ($job_vendor == $vend_id) {
printf("<p class='margin-text-indent font-weight-bold text-red'>$vend_name <br /><b>$%.2f </b></p></td>\n", $cost);
} else {
printf("<p class='margin-text-indent font-weight-bold text-black'>$vend_name<br />$%.2f </p></td>\n", $cost);
}
}</pre>
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: I wonder why a university taught them this.
Universities don't teach that. And a university education is not sufficient to produce even a reasonable professional programmer. Big O notation is absolutely worthless when one is trying to figure out why the third party service access code is failing.
I code for failures proactively. Others don't.
Some don't even code for failures at all in any reasonable way.
Some don't understand how failures can occur.
Some code for some types of failures while ignoring others (usually not even understanding that they can occur.)
Some incorrectly handle certain types of errors. Or perhaps even most for this category.
I can't recall anyone ever testing for errors even when they code for it until I review the code and point out the missing tests.
And this is not junior developers but seniors with decades of experience.
|
|
|
|
|
Thanks for the explanation. It's been on my mind for a long time and makes me upset everyday I work on this project. Like sizing a DB column for an email address with 13 varchars.
I asked myself the same question you asked me about how did it get this way in the first place, and why did they continue on this reckless path for 8 years. Because nobody was there to check the work and cared.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: Like sizing a DB column for an email address with 13 varchars.
lol...to be fair though not sure that is really an 'error' condition. Though it soon will be.
|
|
|
|
|
|
I contacted samsung support again, this time more expecting I'd probably just end up venting my frustration at samsung (otherwise nicely) at a poor employee because I didn't expect them to fix my problem (as I said not my first time). To be clear, I don't abuse customer service staff, it's not their fault but I make my dissatisfaction pretty plain at the same time.
I posted about this before, but basically I use a large 4k SmartTV as my dev machine monitor for reasons. It worked fine until samsung updated the firmware on it behind my back. Ever since it would start in the "Samsung TV" streaming service complete with sound whenever you turn it on. I'm often awake between like 2-4am. Furiously mashing the volume down button on my remote as soon as i power on, prepping to power off if the firmware lags and starts samsung tv before the volume hits zero. It was quite a bit more anxiety inducing than what I paid for.
I finally found the magic sauce, thanks to this employee, who basically
A) Got it to remember the source, and not automatically select a source for me
B) Got it to not start with the home menu shown anymore (it always had before, and I just lived with it)
After some further digging, I found out how to enable full range for the HDMI signal on the TV. QLED ain't OLED but I'll take even their "fake" HDR if they're offering. Expanded black range. woo
It's a fine monitor now. Better than when I started, so I guess my sister isn't getting a newish TV after all.
I'm still buying LG next time.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: I'm still buying LG next time.
A 'TV' or a 'Monitor'?
Just curious because for my computer I just always buy the second because that is what I look for.
I suspect I should probably always buy a monitor even when I want a TV because I plug in the sources anyways. The 'smart' stuff is useless to me.
|
|
|
|
|
The smart stuff is actually useful to me, because it means this monitor can serve double duty when I'm not at my desk working and hubby or I want to catch something on netflix.
I could live without it, but at a significant degradation to the usability of my space.
The primary reason I went with a TV however, was that it was a relatively inexpensive way to get 55 inches at 4k.
I don't like multi monitor configurations, so I use one big screen like it was 4 1080 monitors.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I spent over 3 hours with Samsung support last week, with a follow up earlier this week. My problem is that I could not add new apps on my Samsung Smart TV. It was working two weeks ago. The error message said that the Samsung server was down. After doing testing on the TV, and my Samsung tablet, I got a new message: Your account has been disabled. I have had my account since at least 2013 and have had no problems with it as I was able to report problems and get RMAs for defective Samsung SSD drives. Problem diagnosed, simple solution: Have Samsung re-establish my account.
You'd think that would be easy, but Samsung says they can't do that. The told me to open up a new account using the same email address. Okay, that seems like a possible workaround, but the only problem is that they now require me to enter my DOB. There is no logical reason that they need this information (It may be illegal for them to ask) and doing so may contribute to the chances of my identity being stolen.
Obviously, I am not happy with Samsung support and probably won't buy from them again. They still haven't fixed my refrigerator, which freezes up every two weeks requiring a manual defrost cycle, which sometimes requires disassembly of the entire inside of the refrigerator. A class action lawsuit was filed, which I joined, but I never heard back about it.
I am glad you were more successful with your monitor issues.
|
|
|
|
|
Hi all, booted my Win 10 Dell laptop this morning and somehow the screen resolution has changed and I can't get it back to how it was, I have a Dell U2715H monitor attached which apparently supports 2560 x 1440 res but this is not listed in the Display Settings dropdown, the recommended setting shown is 3840 x 2400 which immediately puts a thick black border on the monitor. I'm not aware of any updates that could have caused this ! any ideas guys ? everything is affected even Solitaire look half as big again as it normally does.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Is that a big black border that's unusable, or just a black box around your (now tiny) wallpaper?
The manual[^] says it has "full screen support for lower resolutions", but doesn't mention anything about higher resolutions. If it's set to a resolution higher than its maximum, I'd expect it to not work at all.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes it's unusable Richard, I've set it to 1920 x 1080 now which gets rid of the border but everything just looks wrong - I can't for the life of me think what has caused this
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Googling suggests this happens to others. And with different manufacturers.
Seems like I recall something similar one time. But I think that was because I had added a monitor. In that case the new monitor would just not show the correct resolutions. I think I had to unplug all of the monitors then add them back.
|
|
|
|
|
Worth a shot thaks
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Have you run Dell Command | Update to update the drivers, including possible updates to the Dell and Monitor BIOSes?
|
|
|
|
|
Check the update history* and see if you just had a automatic driver update, or manually update the drivers if not.
It's also possibly worth removing the monitor from the devices list and then scanning for it again.
I had to change my graphics card recently because a minor fix in a game meant my card didn't have sufficient ram to play at 1080: the best I could get then was 800x600 which was horrific to look at. But the fix was nothing to do with graphics (it was an anti-modder fix) so almost anything these days can affect seemingly unrelated systems!
* How to View and Block Recently Updated Windows Drivers - MajorGeeks[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
So, if this is using Intel Graphics, they do some weird things. I don't have the menu in front of me, but upon opening the Intel Graphics Control Panel app, there's a maintain display scaling checkbox and if it's not showing the proper resolution, change the refresh rate until you find the one you want. I've had to battle through this a couple of times with different monitors on our production floor. Between those two settings you should be able to get where you want to be.
|
|
|
|
|
I had this problem with a new Windows 11 laptop that I attempted to downgrade to the Windows 10 system it was replacing. The driver for the new adaptor was written only for Windows 11. I had to upgrade to Windows 11 before I could install the driver and fix the problem.
|
|
|
|
|
Something odd happened with win10 overnight. Not serious for me, but my desktop was scrambled.
|
|
|
|