rproffitt 2,701 https://5calls.org Moderator

Another issue is the more you code in the commercial space the less choice you get on the language, the development environment and the process.

The bigger the app or design the more likely you don't have a choice about language, tools and methods. This may be the hardest to accept for the newest of programmers.

What this means is that you have to be flexible and learn on the go to be able to contribute to the project.

rproffitt 2,701 https://5calls.org Moderator

@Dani, that may be so but then my connections get polluted. Since I can't see how to control what's in my connections Reverend Jim's workaround looks great.

rproffitt 2,701 https://5calls.org Moderator

Hardware can do that too. If you feel it's too much to supply the reports why not have it repaired?

rproffitt 2,701 https://5calls.org Moderator

Those pictures look normal. No clues there. Let's check out your hardware. Supply the web links to the following tests.

  1. Speccy. Read how to share at https://www.piriform.com/docs/speccy/using-speccy/publishing-a-speccy-profile-to-the-web
  2. Userbenchmark.com Share that too.
rproffitt 2,701 https://5calls.org Moderator

In the first code passage, you declare a char called c, then on line 30 treat this char as if it was an array.

rproffitt 2,701 https://5calls.org Moderator

Your considerations are what matters. You have reasons to use these so share why you used them over writing your own or choosing another library.

rproffitt 2,701 https://5calls.org Moderator

This will be work but I'll share how I find the maker's remote part number for Samsung. A few ways.

  1. www.samsungparts.com Put in the TV and for many models the remote is in there.
  2. Google it. The full model number which for Samsung is some letters, numbers followed by 4 or 5 letters and then "replacement remote."

There are websites that may have build up such a database but they usually don't share since it's their pot of gold.

rproffitt 2,701 https://5calls.org Moderator

Java Database Connectivity (JDBC). I think we don't have to cover whether or not Java is involved. I was hoping it was the old issue I ran into long ago where it didn't work at the time with the JRE but did with the JDK. Some folk lost a lot of time over that small distinction. If it doesn't apply today, that's OK. My intent was to share since I haven't worked this in some time.

rproffitt 2,701 https://5calls.org Moderator

I haven't done this in years but https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-usagenotes-connect-drivermanager.html had me installing the JDK rather than the JRE. I haven't looked into this for a very long time.

rproffitt 2,701 https://5calls.org Moderator

Good to read it's still the things I don't need or care about. 99.9999% of the time I just need a better battery health report.

rproffitt 2,701 https://5calls.org Moderator

Did BatteryBar change? I never activated it, just install the free one since it will report what you askes and battery wear on most machines.

PS. Adding with edit. On worn batteries, predicting time remaining is not possible. I know folk will disagree but the more you encounter batteries with 70% or less remaining capacity the more you realize that predictions are just that.

rproffitt 2,701 https://5calls.org Moderator

I used the free version and it's still working fine days, years later. Are you sure you got the free version?

As to the DANIWEB eamail notification, I don't check since it may not be instant.

rproffitt 2,701 https://5calls.org Moderator

And a fine way to instantly tank your app's adoption rate. Need proof? Do you know anyone with said phone from a Microsoft company?

rproffitt 2,701 https://5calls.org Moderator

I no longer fix this. That is, I don't bother trying to get Windows to report this. I go get the free version of BatteryBar and get a better readout of the battery condition.

-> Second problem. Since the time remaining is not accurate it's probably best to not give remaining time. Why? Because how you use the laptop determines remaining time. The battery app can't guess if you are going to lower the brightness and browse the web, play a video or game. There is a 10 fold decrease in battery time for one activity to the next. Go get BatteryBar and call it a day.

rproffitt 2,701 https://5calls.org Moderator

So why bother with Dim result if you are not going to use the result? Make your code simpler. Docs on that call are on the web so check your syntax.

rproffitt 2,701 https://5calls.org Moderator

Did you try line 26?

rproffitt 2,701 https://5calls.org Moderator

Even at 2 minutes you might be doing better than Windows File Explorer (WFE.) Keep in mind that I won't go over a lot of prior discussions but will note that unless you build up some sort of cache to avoid a directory call the speed is limited by the speed of the OS, API and disk speeds.

It appears you search for files from the root so you may be traversing OS system areas which you would want to exclude. Maybe just search from the user home folder is best as your app usually doesn't need to go outside their home folder.

rproffitt 2,701 https://5calls.org Moderator

Apple laptops were great but recently their hardware issues such as the butterfly keyboard and a terrible design flaw have me no longer telling folk to go for Apple laptops if they can. https://www.youtube.com/watch?v=jahtu1_idVU may not seem to be all that terrible but when I was involved in embedded system design this was a thing we never did for the reasons you see in the video.

Today with so many stories of taking an Apple in for repair and what happens next is why I don't give the nod anymore. https://www.youtube.com/watch?v=o2_SZ4tfLns is an example where the store missed what it really was and quoted 1,200 for new board when it was a bent pin on a cable.

Apple appears to be working hard to impede other repair options.

rproffitt 2,701 https://5calls.org Moderator

More news about Edge. It appears this change will allow Chrome Add-ons. Very strange news give MSFT and GOOG relationships.

rproffitt 2,701 https://5calls.org Moderator

It appears your question isn't about finding such a tool but maybe about learning more about PHP. The PHP scripts are there for the taking but it appears something else is now the question.

rproffitt 2,701 https://5calls.org Moderator

I doubt MSFT will fix this as they are on IE11 now.

rproffitt 2,701 https://5calls.org Moderator

You left me confused. You wrote you don't share code then proceed to try to use shared code.

Beyond that, the C code you shared looks to be old command line stuff and no indication a windows system was in use.

For decades when I ran a small C app from the command line to today, it's the same as it was 2 decades plus ago with an exception I might be using Gnome or another system. Just open a bash shell, run the command or C app and all is fine. Not once does the base shell in a window system close on me.

rproffitt 2,701 https://5calls.org Moderator

By now you figured out that without asking what printer to print can't be avoided.

rproffitt 2,701 https://5calls.org Moderator

From my view I would be looking to read the usual JSON file in Python. But all that aside I do see folk kicking this and my approach around in prior discussions. Not much new going on here.

Read priors with https://www.google.com/search?q=convert+JSON+into+Python+data

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

That was interesting. When I went to find that opening message the navigation here didn't help.

OK, I want to get to my profile. No such menu at the homepage.

What is this Control Panel? Oh, that's my user settings.
OK, where is that member greeting? Don't see it in each area of the user settings. Nope, it's on a page that you click on "Continue to step 2" or such.

The more you look around the more you find stuff like this. If this was an Alpha release we would go with it but I feel sorry for newbies that land at the home page right now.

rproffitt 2,701 https://5calls.org Moderator

"Continue to Step 2 of 2" to me doesn't tell the there are more options. In my apps steps are steps and when there are pages of options we use "More options/settings."

Definitely needs testing with users that are new to DW and you give them simple tasks like "Edit your profile." Control Panel does not tell me I'm going to get to my user settings or profile. There's a disconnect from the menu text and where I'm going.

Of course once you get there by looking around then you know. Navigation signs need work.

rproffitt 2,701 https://5calls.org Moderator

So I went to my https://www.daniweb.com/connect/profile/update and I see Pitch but no Introductory Message.

Maybe I'm not in my profile yet? To me it seemed odd to tell a person to check their Profile but how to get there (could be wrong right here) was to click on your avatar then Control Panel.

I can't find this "Introductory Message." Never mind, it shows when I click Continue to Step 2 or 2. Still feels like this system is for folk that know where things are.

rproffitt 2,701 https://5calls.org Moderator

I have no problem with this. First I'll watch a little Austin Powers then off I go to find where this message is in my profile.

Let's hope it's clear where this is so I don't have to ask. The new DW seems to have a lot of "isn't it obvious" desings in it.

I'll top post when I get back about trying to find a member's posts. It feels clunky to say the least.

rproffitt 2,701 https://5calls.org Moderator

Small world. An ancient app that I wrote in VB6 with a SQL connection is dead on 64 bit Windows.

Because the company wants to move to newer Windows after 15 years they contacted me and we are working on a new version.
I can't tell what your app is or does but sometimes you have to get back to the developer to fix or upgrade.

rproffitt 2,701 https://5calls.org Moderator

In the news, Microsoft might be changing the render engine in Edge.

One of the banes of one lone web portal our group supports is to use many web browsers and devices. Thankfully that is not my job.

rproffitt 2,701 https://5calls.org Moderator

Be sure to try each command at the bash prompt to see how it works.

Also, try the older string concatention method. Example:
foo="$result $v"
Or forget v and foo then write:
foo="$result test"

JIBY_2 commented: (I have tried it using awk also but the result is same)result=`awk '$0 ~ /Dir=/{print}' $xv | cut -d'=' -f 2`; +0
rproffitt 2,701 https://5calls.org Moderator

A good start but is there a question or are you asking folk to run this code and see if it works?

rproffitt 2,701 https://5calls.org Moderator

In a discussion there was a "member called Unhnd_Exception. My bet is this is something other than a member.

It's likely just what the code coughs up when something happened other than return the member name. I'd be guessing here. So I called it a NPC. Unhnd_Exception also has 216 points!

My view is that I found it odd to have a different format for the review and I did scroll past the author. The author puts in effort to make the review so the entire point here is get them their byline front and center and if the review adds a full bio at the bottom, that's great.

Hey, what you have works, just odd to me. The Home Page? Still not getting it, always hitting lastest.

rproffitt 2,701 https://5calls.org Moderator

That doesn't seem to be too special. Some video editor (what is and how to use all over the web.)

You screen capture what you are making a tutorial of (again, screen capture discussions are well done.)

Then those video snippets are pulled into your video editor, you add your voice and done. Once in a while someone thinks it's done all with one app. My son's college major was Film production so nope, anyone thinking they can avoid choosing and learning their tools is in for a rude awakening.

rproffitt 2,701 https://5calls.org Moderator

Too similar to https://www.daniweb.com/programming/web-development/threads/518490/how-to-calculate-the-total-late-hours-of-an-employee-from-a-set-of-records#post2247605

Reposting rarely works.

I thought about your problem and you need to do this manually first, write down those steps then turn that into code.

rproffitt 2,701 https://5calls.org Moderator

The review page format may show the author but after all the content. They are not getting top billing like paper bylines.

https://www.daniweb.com/community-center/threads/518491/how-to-transfer-music-from-pc-to-iphone-xs is an OK post and if it was a review the byline at the top looks great.

About the NPC's. I guess you are gearing up for AI.

rproffitt 2,701 https://5calls.org Moderator

You didn't reveal which Unix. Also you didn't tell if you researched this question. That said I'd find out which Unix I'm running and then look to see if there is a Python for that Unix. After Python is installed then you run it just like the millions of other Linux machines so I'll now write about that.

rproffitt 2,701 https://5calls.org Moderator

I know a little about TVs in regards to USB sticks and drives.

First you have to dismiss the notion a Smart TV is anywhere near the capability of say Windows 3.0 from 1990. Many of these TVs are downright horrible and have issues like yours.

As to invisible files. Some may be the TV writing out where you paused or stopped viewing a video file so it can resume later.

It's possible you are using some Apple OS to do this click and drag. On FAT32 volumes you will indeed have a few extra files but if the TV maker did their job right these files should not show or interfere with playing video files.

rproffitt 2,701 https://5calls.org Moderator

Thanks happygeek.

In the review I linked to, pages down we get to about the author. Same for working snippets. Maybe for the snippets that have no author, that will just have to be a mystery contributor.

In this discussion you see the author up top just like any paper byline.
In the reviews and snippets it's at the bottom but that fails as replies kick in so you may fly past the author.

I'm marking this as solved even though I found it odd to see posts with no one gettiing their attribution or what appears to be a NPC.

rproffitt 2,701 https://5calls.org Moderator

Using your last pastebin, the embedded coder in me tells me that line 12 needs to be either moved or duplicated.

I think I would move that line to after the GPIO.output() statements. Why? Because in one case you didn't declare the GPIO.setup() before you set it high or low so you might send a pulse out that pin. And in another case you may be setting the pin HIGH but since GPIO.setup() was never called it doesn't work.

So my view is on startup, GPIO.setup() those pins and default state so you know what power up condition they should be at and in most systems you don't change GPIO.setup() during a run.

rproffitt 2,701 https://5calls.org Moderator

I looked but this is one of those common questions. Should I use a pointer to a single char? I'll write yes. It's not as if you initialized storage and then put the character into that memory location. You are saying "here's a character, now x points at that character." Hence you use the pointer to that string or char.

rproffitt 2,701 https://5calls.org Moderator

To go further we have to think and read more. To me you are setting the pointer's address to that single character so a pointer would be correct.

rproffitt 2,701 https://5calls.org Moderator

Here's an example discussion about this. Another look and it appears your first line 1 is not correct.
https://stackoverflow.com/questions/17813423/cout-with-char-argument-prints-string-not-pointer-value

Try
char *x='"Test";

rproffitt 2,701 https://5calls.org Moderator

You are leaning on your c++ compiler ability to convert a number to ascii. Think back to old C days. Now format it.

As this can be compiler dependent I would not lean on this too hard. Do it like we did in C.

rproffitt 2,701 https://5calls.org Moderator

I see nothing wrong with it spewing seemingly nonsense. Just like any number you have to convert it to a string somehow.

rproffitt 2,701 https://5calls.org Moderator

Comparing a discussion with the home page. When I see the Home Page, top and center of each card is the member who did something such as Viewed, Gave Reputation, Endorsed and so on.

Now you head to a discussion and who wrote this? Example at https://www.daniweb.com/programming/software-development/code/385622/google-map-control-vb-net
The author is nowhere in sight. I could be wrong but I could not find the post's author. Replies are formatted well so you know who replied and when, but something is truly strange with the original post there.

Reviews are slightly better like https://www.daniweb.com/hardware-and-software/hardware/mobile-and-wearables/reviews/518478/i-bought-a-galaxy-watch-on-black-friday-here-s-what-i-got-for-my-money but if a post's author is going to swap from bottom to top at least it should show ih the google map discussion.

Should the author/poster show in the google map discussion?
I'm also guessing Unhnd_Exception is a non-member character (NPC).

rproffitt 2,701 https://5calls.org Moderator

Your post lead me to think you dealt with path issues. Then you wrote about the latest Windows 10. Another programmer ran into an association issue where his choice of editor would not stick. This problem also extends to woes in systems like JPL.

If my sharing about a current bug that is causing developer headaches is not acceptable then just say so.

I didn't write one sentence about Java paths because, it's been done so many times before. I'm going to share other than that.

rproffitt 2,701 https://5calls.org Moderator

I'm of two minds on this. Let me write your question is "How do I write apps for an Android device?" And then it could be "How do I write gaming Apps for Android?"

My background is pre-Android on the PalmOS and now supporting our own (non-game) apps for our office and clients.

We use Android Studio. The biggest hurdle for new Android developers is learning how things work. This appears harder than learning a language.

So that's my go-to solution to write Android Apps. It's also free.

Next would be the big solutions like Unity. That's not cheap but gets you a cross platform app and then you are ready for the App Stores.

rproffitt 2,701 https://5calls.org Moderator

Thanks for the review. My son has one of the Samsung smart watches and I'm not sure which but it may be the 2.0 model. He seems to like it.

My first "smart watch" was long ago with the PalmOS powered watch by I recall Fossil. Really appropriate maker given how long ago that was.
This beast of a watch required daily without fail charging.