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

Your second post in this thread doesn't look like credit card code. Looks like voting code. Mistake?

eman_12 commented: yes your are right i post wrong qestion +0
rproffitt 2,701 https://5calls.org Moderator

The conversion between radians and degrees is: degrees = radians * 180 / pi .

You should be able to do this when the need arises.

aphry1303 commented: Where do i put this exactly in my function? When i calculate the derivative of this func, it does not work. +0
rproffitt 2,701 https://5calls.org Moderator

I see 9 such projects at https://github.com/topics/magic-the-gathering?l=c%2B%2B

Why start from scratch?

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

In short, if you want to use a handler to write to the log, then that's what you use and never use other methods to write to such log.

Tutorial at https://docs.python.org/3/howto/logging-cookbook.html seems complete enough to me.

clife commented: Thanks rproffitt, It looks good, will go through it +3
rproffitt 2,701 https://5calls.org Moderator

So the if statement can't be used? Harsh assignment there. Remember I have to take your words as they fell.

saadbangashh commented: We can use if statement and other basic tools +0
rproffitt 2,701 https://5calls.org Moderator

This looks like homework. As such you get to write and do the homework so let's hear where you are stuck.

Siti_4 commented: yea it is my Final Assessment. I tried and this is how far I can get. +0
rproffitt 2,701 https://5calls.org Moderator

It doesn't cost that much to make an app that's usable both on desktop and mobile.

I want to add that I've worked with Android apps for a while. We use Google's own Android Studio. But the app alone isn't what cost we have to consider. Depending on the app you need servers, services and you can choose cloud or not for the backend. Almost all apps I know of require some server to host data or services. I usually find the would be developer to be shocked what such can cost both in monthly fees and the development.

As to the OP, I had hoped they would come back with more questions.

RobertFromBk commented: I don't know how much cloud storage costs, but its it every develops objective to create an app used by as many as possible? +0
rproffitt 2,701 https://5calls.org Moderator

Thanks for the fairly complete code, but it appears your problem statement has changed.

I take it your new problem is: "I need doge to show 35 when i open the page"

If you want the Doge item to show 35 when it opens, then here's some thoughts.

  1. Line 7 might be:
    document.getElementById("secondnum").value = 35;
  2. Or line 6 would set the value. Maybe from https://www.w3schools.com/tags/att_input_value.asp or
    <input type="number" id="secondNum" name="secondNum" value=35></br></br>
rproffitt 2,701 https://5calls.org Moderator
  1. Prior to my reply I used an online Javascript system to double check I could multiple with and without using Number(). Both appear to give me the same result (the result of the multiple.) Can you give a solid example where you are having difficulty with this multiplication? Just one line for me to pop into Javascript please.
  2. No issue here?
  3. Seems to be no issue yet.
  4. Let's try some examples for me to put up online. There may be a typo here as to "2 2 numbers".
rproffitt 2,701 https://5calls.org Moderator

LBM Solutions. We offer multi-level marketing software with MLM software solutions for your business

So your current offerings aren't very good?

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

Something is missing here. This might be you attempting to write a tutorial but stopped or it could be part of a homework assignment.

While few here will do homework for others, please take some time to either complete the tutorial or tell others what you need.

ALI_418 commented: I only need to do the add, delete, and update operations on the balanced tree algorithm in databases only using the SQL server +0
rproffitt 2,701 https://5calls.org Moderator

I'm a bit more concerned that someone is writing passwords to some archive/log/database.

Why do folk keep doing that? More at https://blog.moertel.com/posts/2006-12-15-never-store-passwords-in-a-database.html

rproffitt 2,701 https://5calls.org Moderator
clementer commented: Yes +0
rproffitt 2,701 https://5calls.org Moderator

A, consider the following.

  1. "Create a c++ program that reads a CSV file and prints the rows at even positions. For example, if the CSV file has 10 rows, print rows 2, 4,6, 8 and 10"
  2. "print the rows in even manner"

Sorry but I can't begin to guess what "print the rows in even manner" means here. Your top post actually doesn't sound hard at all but maybe there's more to the assignment than stated?

Abhirami_1 commented: I don't know how to print the rows in even manner +0
rproffitt 2,701 https://5calls.org Moderator

Maybe this is easier than it sounds. The CSV lines don't split over a CR/LF (see https://en.wikipedia.org/wiki/Comma-separated_values ) so for this assignment there appears to be no need to parse the CSV content.

Just a simple while loop with a conditional if and print statements.

Psuedo code might be:

open input file.
while not eof input file
    {
    readline()
    if not eof input file
        {
            readline()
            print a line
        }
    }
close input file
Abhirami_1 commented: I don't know how to print the rows in even manner +0
rproffitt 2,701 https://5calls.org Moderator

Would you mind if I reduce your duplicate postings?

Dani commented: I removed them +34
rproffitt 2,701 https://5calls.org Moderator

This looks similar to https://forum.photonengine.com/discussion/14626/rpc-problem-with-photonviews

Even if it's not, you should ask in that forum as it's more likely to have fellow developers there.

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

What comes with W10. But I don't use torrents, cracked apps or such.

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

It's been years since I've been on the MicroChip PIC but it appears your code call to Lcd_cmd() is the issue.
This is very similar to the discussion at https://forum.mikroe.com/viewtopic.php?t=24108

Refactor/rewrite to not call those functions in your interrupt routine.

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

Which compiler is this? Why I ask is that iostream is a header file that contains functions for input/output operations ( cin and cout ).

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

The question here is unclear. No mention of what you tried and in what language.

Udara_1 commented: through the internet +0
rproffitt 2,701 https://5calls.org Moderator

Welcome to DANIWEB.

It's been a while but I had a few projects on the MicroChip.com PICs among others. Today I like the Arduino system since a starter kit such as "ELEGOO UNO R3 Board ATmega328P ATMEGA16U2 with USB Cable Compatible with Arduino IDE Projects" is going for under 15USD here, delivered to my door.

For big ideas, the Rasberry Pi is a fine system.

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

Each save can be specific to each object.

Look closely at the example from the link above:
` My.Settings.ComicList.Add(txtdata.Text)'

That ComicList would change name to match each object.

But hey, if you want to do this all in your own code, with files, readers and writers, loaders and savers, that's your choice too.

Aurora51x commented: I'm not using Visual Basic +0
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
  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

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

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. 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

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

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

Some want members to write the code or app for them. I don't see that here. What I do see is help for a function, a line of code or such but not the entire solution or app.

Remember I can read the comments you made and removed so to discuss the steps you created and to compare them to your code to see where it diverged I'd have to see and read that design document. Some tend to rush into code before they have how it will work step by step. Or "I know what the result should be" and think that's enough. (it's not.)

There are places you can get apps and code written for you such as fiverr.com.

-> Back to what you have above. I don't see that code doing what you asked. Specifically it doesn't seem to keep track of office capacity and when it gets full then what to do when that happens.

Cyril1 commented: I have also tried to read the office file into an array-list, that didn't work too. if office capacity is full, another shift starts. +0
rproffitt 2,701 https://5calls.org Moderator

Let's say you want to use that bank. Then they would be asked how to add this to shopify or some other system.

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

I see over 10 supported payment systems at https://www.shopify.com/payment-gateways/macao-sar

Why work hard here?

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

You left out why you need to do this. There are ways to keep variables during a session so I can't guess why you pass by the URL.

Example: https://www.javainuse.com/spring/springboot_session

Sarahle commented: This work with php , no ? +0
rproffitt 2,701 https://5calls.org Moderator

Not much to work with here but in the old 23 year Visual Basic 6 IDE, you find NEW FORM then OK that, then click and drag the objects you want onto the form.

While this creates the form, it's anyone's guess what more your boss wanted today.

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

I didn't do a deep inquiry but think it could be the old GMT vs Local Time issue again. Think about your number of hours difference from GMT.

Quick fix may be to add 2d or put an if statement to use 2d if after 12AM.

helloworld2021 commented: ok ill try that way first. tq for reply +0
rproffitt 2,701 https://5calls.org Moderator

That's over 500 lines so it's best if you call out what fails and what lines you feel need a closer look.

ComSciNum7 commented: Completely understandable! I think the main problem is in in the remove and insert functions, everything else tends to stem from those two functions? +0
rproffitt 2,701 https://5calls.org Moderator

I don't see it in the supplied information. But a friend works such and they run into limits all the time.
https://firebase.google.com/docs/firestore/quotas#:~:text=10%20for%20single-document%20requests,also%20applies%20to%20each%20operation. for reference.

Saboor880 commented: rproffitt I created new firebase account, and just started to insert data, Just after my first insertion, I started facing this problem. +3
rproffitt 2,701 https://5calls.org Moderator

Everyone starts somewhere. I take it you are still learning how to search for such so here's how I would look.

-> https://www.google.com/search?&q=udemy+opengl

Eu_531 commented: So, the single way to learn is to buy courses or books? +0
rproffitt 2,701 https://5calls.org Moderator

Say hi to Mr. Burns for me!

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

Read https://www.daniweb.com/posts/jump/2156447 first.

I'm not the person to ask about this as there were people I know (they have seen become homeless and lost in the world) over gambling addition.

They burned through half a million dollars in a very short time.

Dima_5 commented: I think if you go to the game with the mind, then nothing like this happens. +0
rproffitt 2,701 https://5calls.org Moderator

device name is not in the API as I know it. Even https://www.freecodecamp.org/news/exploring-device-detection-for-better-user-experiences-in-2020/ doesn't know it.

Now from memory there are ChromeOS devices that register with Google but I'm going to call that proprietary and private to Google's own world. Not something we can use at large.

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

Just me thinking it through the ??? section in psuedocode:

while there are objects in the queue
{
  for loop interating the names vector from first to last
    {
     if there are objects in the queue, pop one into the named vector
    }
}
Gabriela_4 commented: Thank you so much, i think it would be more difficult ,but I was thinking of a harder solution :) +0
rproffitt 2,701 https://5calls.org Moderator

In regard to "as I want." To me this was a two step solution. Step 1 was to use a common word frequency routing and the second to grep out as required the results of step one.

I'm running into folk that want ready to use code/app for their assignments. For that you head to job sites like Fiverr and others.
Here we discuss possible solutions and when we are really stuck the problem is presented along with what is the issue. If the issue is you need a completed app then it's off to sites that sell such.

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

This sounds like we can re-use prior works.

  1. First we need that word count. Here's Rosettacode:
    https://rosettacode.org/wiki/Word_frequency

  2. Now we have those counts, a grep will be fine. Here's an example I can copy and work over:
    https://www.daniweb.com/programming/software-development/threads/152550/how-can-i-grep-a-file-using-c

Remember I take it this is a real need and not homework.

Haneen_1 commented: the first one doesn't work as i want..i will try with the second one +0
rproffitt 2,701 https://5calls.org Moderator

The "connect" you describe is typical. But you left out what exactly you need this server to do.

Before we get into Filezilla, I want to share that last week our office uncovered a laptop running Windows 8. To bring it into the fold we gave it a shot at a W10 upgrade. Huzzah! It worked and we saved 100 bucks on the license. Along with this laptop there was another back on Windows 7 but that failed (not the only one may I add) to upgrade. It appears Microsoft has shutdown the free upgrades from W7 now.

-> I can't guess what you are looking to do exactly but hey, what you noted does "connect." And Filezilla is a known good server but is that what you need?