|
But it will take them an infinite amount of time to finish the two beers.
“We close at midnight, better drink it fast!”
|
|
|
|
|
Bars I go to last call has nothing to do with whether one has emptied the glass. They are out the door regardless.
|
|
|
|
|
Google's "Bard" will now "search" your inbox and drives; if you let it.
I'm dropping out.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Gerry Schmitz wrote: I'm dropping out. School? Bard? Google? Society? Human race?
|
|
|
|
|
The grid.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
What could go wrong?
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
|
|
|
|
|
Gerry Schmitz wrote: your inbox and drives
Keyword "your".
Just give it time, and we'll be reading reports on how, for months/years, people were able to also include anyone else's inbox/drives when they also opted in. Or not even had to opt in...
|
|
|
|
|
yep, "do no evil" went bye bye a long time ago.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Thought I'd put this in a separate post here.
I didn't realize that so many coders are trying generative AI to write code now, but I'm guilty of it as well, only I didn't have to come to CP and ask for human help to fix my AI help.
I spent the last week using AI to write code around my code, to optimize database functions in PHP8. I asked AI or ChatGpt to add try and catch statements, 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 in this app I'm trying to get finished.
It made lots of mistakes at first, but I told it to remove certain stuff that wasn't compatible and it remembered the instructions for about 4 hours, and then it went dumb on me, and I had to start again with training. Seems like ChatGpt has multiple personalities, one that is lazy, one that is eager to help, and one that over helps and needs to be toned down, told that personality to keep it simple.
This was a case where it didn't steal someones code, but stole the coding style and structure from someone and added it to my code. ChatGpt says it can't run code, but it was able to recognize small mistakes in the code I inherited and fix them for me, and then brag about it. It also recognized database functions that should be transaction based and suggested the change and made them for me. It even went as far as breaking down large functions into multiple functions, and told me to complete that work my self, or fill in the blanks.
I got lucky and was able to use generative AI to perform work for me that was acceptable to use. But I can see how in the hands of new programmers, it can be a disaster if you don't understand what it presented or how it works.
That's my recent experience which was more positive than negative this time. Plus I had to know if this AI and companies claiming to use AI was just hype or not. Guess the question is one day in the future their going to charge money to use it, and if it's worth it or not.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Beware the villagers with pitchforks...
|
|
|
|
|
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.
|
|
|
|