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

You didn't clearly state where you are stuck. You did write " only able to save the comboboxes selected to a file " so I take that as you can examine the objects, save the information to a file.

At this point you need functions to:

  1. Read this file.
  2. Set the objects as you had before.

Since you can write a file, I might bet you can read the file back.

Can I ask why you want this to a file and not My.Settings?

Example: https://www.vbforums.com/showthread.php?848175-My-Settings-save-Combobox-Items

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

That's the goal. But you need to write functions (code) to do this. Can you tell the forum where you are stuck?

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

Q. What are you trying?

We know this is going to take a bit of code but no one can write it for you but in short, you make routines to:

  1. Query those combobox's to some array or such.
  2. Save such to the XML or other format file.
  3. A routine to read the XML or other file and set the boxes to those values.
rproffitt 2,701 https://5calls.org Moderator

Nothing told about make, model, age but hey, you could have the charger tested or if that costs my than a charger, get a new charger. Be sure the mains plug you use is good too.

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

Since it's a website, why is an app required at all? Just make the website mobile friendly.

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

Poorly formatted. Needs a better explanation of what to delete from what.

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

Here and most countries, privacy laws prevent you from asking governments and companies for information about people. But as you suspect there are other means such as hiring a private investigator to look into the matter. Stick to the city where they are at.

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

I do not currently use this version but in the past it was very easy. Just two steps.

  1. Create some textbox or object where we want the barcode to print.
  2. Set the FONT in that textbox to be a barcode font then put the number in that textbox.

In decades I've never had to do much more than this in many many apps.

rproffitt 2,701 https://5calls.org Moderator
  1. Appears to be homework, assignment or part of some course.
  2. You omitted the rest of the assignment with the code to test the system.
    See https://www.chegg.com/homework-help/questions-and-answers/mips-assembly-led-assignment-fall-2020-ledasm-create-object-file-called-ledasm-draws-red-l-q58176553
  3. By omitting the course in question I can't check if there were lessons that lead up to this assignment and offer any refresher ideas.

Advice: Go back over your coursework since it should have the information you need to work this assignment.

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

I don't understand your question here but hey, ☕.

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

Again no to getting this with the IP or MAC address. But in the interest of answering how a router gets that information:
Read https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Options and pay attention to Field 12.

Since your app can (eventually) get some IP and MAC address you might be able to get vendor information but for the name, it appears you have to ask the router. And that is going to change from router to router as there is no known API for that.

What you may want to research is the OpenWRT source code to see how they did this in that router code. I'm leaving such research up to you.

rproffitt 2,701 https://5calls.org Moderator
  1. Your top post asked for "device's name".
  2. Later reply muses about dns.gethostentry failures. (not presented as "why does this fail now?")
  3. Later you may be asking but didn't something else.
  4. Finally you tell about the old MAC addresse to vendor lookup which as you can guess with some billion devices out now can less than 100% a sure thing.

I don't mind discussing something but please make it clear what we are going to discuss. What is the question.

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

The code is poorly formatted so I can't tell if it's something with a semicolon or something else.

Next time use the Code Block tool in the editor when pasting code.

rproffitt 2,701 https://5calls.org Moderator
  1. MAC address: Read https://www.quora.com/What-info-can-you-get-from-mac-address
    So no, you can't get the device name.
  2. IP address: https://www.quora.com/What-information-can-be-gleaned-purely-from-an-IP-address
    Again no device name.
  3. https://en.wikipedia.org/wiki/Domain_controller covers a bit but is not in play here.
    Now if the machine information is surrendered say to some domain controller, then you ask there.
rproffitt 2,701 https://5calls.org Moderator

I'm guessing here you meant Udemy's course:

From 0 to 1: Learn Java Programming -Live Free,Learn To Code
An accessible yet serious guide to Java programming for everyone

Sorry but no I don't have such in PDF form. However if you wanted to discuss a particular problem most members of Daniweb will do that.
Sharing the solved exercise rarely accomplishes the goal (which is learning.)

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

It's your choice. It is not calculated.

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

Attribution to http://www.liangshunet.com/en/202005/494917182.htm
Read more there but here's their Javascript attempt (seems to work.)

<script type="text/javascript">
              function ChangeImgSrcWithoutId() {
                     var arrImg = document.images;
                     for (var i = 0; i < arrImg.length; i++) {
                            if (arrImg[i].getAttribute("tSrc") != undefined) {
                                   arrImg[i].src = arrImg[i].getAttribute("tSrc");
                            }
                     }
              }
              ChangeImgSrcWithoutId(); // Call
       </script>
rproffitt 2,701 https://5calls.org Moderator
  1. Don't add tags that don't apply.
  2. The ^ would be for Integers.

I did not check the results of this quick edit to follow:

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
    float diameter,height,volume;
    cout<<"Enter Diameter of Cylinder : ";
    cin>>diameter;
    cout<<"Enter Height of Cylinder :";
    cin>>height;
    volume=1.0/4.0 * height * 3.14 * pow(2.0, diameter);
    cout<<"Volume of Cylinder is : " <<volume;
return 0;
}
rproffitt 2,701 https://5calls.org Moderator

PS. Remember that unless told or there's a clue given I will think this is not homework.

This looks like HANGMAN so let's go get that app!

Read https://github.com/macalinao/mips-hangman

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

My question is: Why not use a MIPS C compiler? That's what we did on such a project.

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

Could it be the Python function noted at https://www.geeksforgeeks.org/python-sympy-coeffx-n-method/
Or is this homework where you can't use this?

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

I boiled it down to "discounted deals" which from my experience would never require bank account information. Maybe there was untold story here but as I've worked on the "is it Andrew Johnson" problem more than a few times.

Over verification does happen out there.

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

I didn't mean to abandon all vetting.

But first my background includes some surveilience systems and how we validate that you are you. One of the rabbit holes we must avoid is over verification. Example:

Let's say that a person says they are John Doe. They present their company id number and while this isn't that bulletproof the chances it's our Joe is very high. Now add in some PIN code and the we are in the 90+ percent range or close to 100%.

Now back to some clients I've had in the past. Once in a while they want it to be bulletproof so we can do that but you pay for the initial work and then over and over in maintenence.

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

Makes me wonder why write this if https://www.cplusplus.com/reference/algorithm/sort/ is built into C++.

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

Ah the perils of undocumented code. God and the coder knew what it did, now only God knows.

Since this is what it is you know that pseudocode is not exact so the conversion can be rubbish and still be a conversion. No one said you should have the following: C CODE to PSEUDOCODE to C CODE = same function from the final code! (Never happens.)

We also have the classic undocumented code so GIGO will be the result.

That out of the way you can take it line by line and write something, anything!

  1. Include libraries for the target language.
  2. Begin the main function.
  3. Declare an integer array of 6,3,1,5,7,4,2,8,9.

Keep going and while it doesn't tell us what this code did, it is garbage code so GIGO.

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

To the last question, yes and no. My background included writing code for a router long ago. So let's dive in.

  1. There is no magic here. To get data from the Internet without using your mobile network, then it has to be over WiFi, Bluetooth and in rare cases something else but for most it's WiFi.
  2. I'm not going to write a tutorial about "How VPNs Work" because that's done. If you had a more specific question we can kick that around.
  3. If a VPN fails, then we talk to the VPN PROVIDER.

Oh, wait, there's the magic word or phrase: "VPN PROVIDER." Not only must the data flow over some network (cellular/mobile/WiFi/Bluetooth) there must be some VPN SERVER out there that is reachable. Some VPN SERVERS are not. Example: Some in China, Iran, etc.

-> So for these to work:

  1. There has to be a VPN Server that is working. (Not up to you!)
  2. There must be a path for the data to flow (WiFi, etc.)
  3. Maybe other factors as Android OS version. I don't expect Android OS 1.4 to work today.
rproffitt 2,701 https://5calls.org Moderator

I thought that might happen. I've been in such discussion in real life and the principles and their goals were hidden. That meant you couldn't give a solution because not all was told.

Here it seems simple enough UNLESS there's a player that is overthinking this.

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

My view is this is classic overthinking. It's just a discount and not the end of the world if someone got a discount that shouldn't have. So the simplest solution is the usual transfer of just the information required. Names along should suffice. How cares if Andrew Johnson who isn't an employee gets a discount? It's a sale.

Andrew_77 commented: Totally unhelpful. +0
rproffitt 2,701 https://5calls.org Moderator

Please show your effort as noted at https://www.daniweb.com/welcome/rules

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

Did you post more than once? I can clean that up for you.

I'll skip making a tutorial here but I recall something like this question during a SQL seminar. The person was new to SQL and couldn't get past this. Their story was they had written their own database system and were new to SQL. Moving on: Read the article at https://mysqlserverteam.com/innodb-data-locking-part-2-locks/

The short answer is:

So, let me just say that this table shows locks taken by the Server, and that they indeed prevent other clients from trying to modify the table:

Read the entire article to learn more why I never had to worry about this.

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

Tried the Sunspider and it did not reload. It did countdown and run the test, but no reload.

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

More detail about best is needed here. I'm sure marketing is not a one and done endeaver. That is, some may need the new(?) social media and digital skills and others need to take graphic courses because they need to make product brochures to promote their company's products.

In short, elucidation required.

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

No. In your example the conversion does not look trivial. Try.

  1. Fiverr.com and similar to outsource the conversion.
  2. Go to this bot's source page and ask the authors if they have tried such.
  3. https://www.google.com/search?&q=c%23+python+convertor finds such but I have doubts it will result in a working bot for Discord and if it will be readable afterwards.

This seems like a lot of work just to see the code in Python.

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

When an extension fails, report it to its author.

It took a while for me to remember GreaseMonkey. Try that and remember it's your script to create. There are GreaseMonkey forums and Fiverr.com if you need others to write your scripts.

هات commented: See this site for example. It updates after the ten-second counter expires. +0
rproffitt 2,701 https://5calls.org Moderator
  1. As above.
  2. As above.
  3. Line 4 has a parentheses.
  4. Think again about your range tests. Why not test for bmi > = 15 on line 21?
  5. Think over all your ranges tests.
  6. Where is the closing bracket for main()?
rproffitt 2,701 https://5calls.org Moderator
  1. Which line number is throwing the error?

  2. What if BMI si 15.04? There are other holes in the ranges you tested for.

Kayra commented: Also got undefined function printf and scanf errors +0
rproffitt 2,701 https://5calls.org Moderator

PS. A good read -> https://forums.freebsd.org/threads/restoring-deleted-file-from-zfs-file-system.15720/
Yes, it's not UFS but the same rules apply. Such as "We only lose what we don't backup."

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

Most likely will need a few items to be successful.

  1. ALL use of this drive was halted IMMEDIATELY. If you need to know why, ask.
  2. The drive is attached to another system later after you install an app like https://www.ufsexplorer.com/raise-data-recovery-ufs.php
rproffitt 2,701 https://5calls.org Moderator

This leads to the next question:
Q. How do you determine the next row is filled with data?

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

From your comment, I might help. If I'm in town, etc.

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

To see the code in Python you would have to rewrite it in Python. I see I noted the two usual methods. The app you noted would not be a trivial conversion so only those that need it would do so.

Yumensh commented: is there websites or apps you reccomend for converting/translating the code +0
rproffitt 2,701 https://5calls.org Moderator

This needs more definition. I think you meant "split" where you wrote "sprit." If I guessed wrong then I will be wrong here.

  1. I will not attempt to write your code for you. This is your assignment, not mine.
  2. You need to define that "split" carefully. Examples:
    a. "This matches?" in the keyword file does or does not have to search across lines in the text file.
    b. "This matches does have to match across linefeed/carriage returns (harder but not that much.)

Break down the problem to steps. For example you must be able to code on your own the first part where you read a line from your keyword file. Then you test that before you work out how to look for a match in the text file.

Do that first.

Haneen_1 commented: yes , its split ,i will try with its , if i faced any problem will you help me? +0
rproffitt 2,701 https://5calls.org Moderator

Let's skip all that and read https://nadekobot.readthedocs.io/en/latest/guides/osx-guide/

Now back to your question. In conversions you work such in a few ways:

  1. Line by line.
  2. The whole enchilada. That is, you know what the app does and you write a new app that does that.

In closing I doubt only the above code is all that would be needed to convert this to Python. I take it you know that.

Yumensh commented: I have the bot set up,,I just wanted to see the code in python +0
rproffitt 2,701 https://5calls.org Moderator

Chrome doesn't do that. There are a few extensions: Download and install the Auto Refresh Blocker or Stop AutoRefresh extension from the Chrome Store.

هات commented: It does not work at all I have tried everything. I need programming commands that I can enter by checking the element or by pressing f12 console +0
rproffitt 2,701 https://5calls.org Moderator

This sounds like you need tutorials. Here's how I find this for that: https://www.google.com/search?&q=android+button+onclick+tutorial

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

I'd rethink this one. Maybe keep the code for the Plus and Minus button to simple x++ and x--- with the range check followed to a call to a new function that destroys the old text box array and display then creates a new text box array.

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

You left so much unwritten here. What target CPU, board and OS along with the display system.

This also looks like homework so beyond the missing detail, you must show your effort so far.
Read https://www.daniweb.com/welcome/rules

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

What is the question here?

Also, take more care with the tags you use.

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

That's not a good endorsement if the site didn't help you select. Tell the forum what you are looking for as to speed, quality and cost. Remember you only get two of those category from what I've seen.