• Breaking News

    Saturday, June 5, 2021

    Debugger in Segger shows incorrect size of the array Ask Programming

    Debugger in Segger shows incorrect size of the array Ask Programming


    Debugger in Segger shows incorrect size of the array

    Posted: 05 Jun 2021 08:51 PM PDT

    I am using Segger IDE and I have an array of size 8, but the debugger shows its size is 7 even though the last element is shown when I expand the array

    The array type is uint8_t though it seems as if it's interpreting as string, thus last index being a null terminator? But why would that be the case?

    And yes I'm aware I'm not using std::array as it isn't supported on Segger IDE.

    submitted by /u/Kax91x
    [link] [comments]

    Looking for Spring Boot mates

    Posted: 05 Jun 2021 03:41 PM PDT

    Hey everyone. Im learning Spring Boot for a while and Im struggling a bit. So I thought it would be good idea to have couple mates in this with me who will code, help and learn together. We will create somethings and put it in github.

    So I basically know JavaSE and have shallow experience in Spring boot.

    Im looking for eager to learn and serious mates who wont back up in a week :)

    Drop PM

    submitted by /u/Go-Rumble
    [link] [comments]

    Need help and serious feedback (python programming)

    Posted: 05 Jun 2021 10:24 PM PDT

    Dear programmers, I do programming videos and would love if you can give me some serious feedback on how I can do best my videos, here is my channel: https://youtube.com/c/AmineMBoulouma And the last project I worked on is a complete python course here: https://youtu.be/vQqisFjAnsE

    Please let me know of your thoughts about the channel and how I can do it best. Thanks you!

    submitted by /u/flambok
    [link] [comments]

    First Time Web app making help

    Posted: 05 Jun 2021 03:11 PM PDT

    Overview:

    I am currently trying to make a calculator for a popular Gacha game. The user inputs what character/weapon they want to level from the current level, and it tells the materials needed. I have an excel file currently acting as a "database" for this information, and I am using numpy and pandas to do the data manipulation on Google Collab. This works on a local side. I want to try and create a website where I could do this and also display pictures associated with the items listed. This is a brief overview, I will go into further detail for each section

    Backend:

    Like I mentioned this is using numpy and pandas and an excel file for the backend. Additionally, I will be making a folder that has all the images of the materials, characters, and weapons stored to be displayed.

    I am not sure how this would behave on a web application for back end since on a local side I just have to use the file path and it will upload. How would all that work in terms of back end? Would I need an API at all?

    What would be a good database to use to store this information besides an excel file? On top of that is there any cheap web servers I could use to host?

    Front End:

    I am not really a front end person so I can only think of reactUI and node, but is there any premade templates or apps that I could use to help build the front end instead of from scratch?

    Misc Questions:

    I want to be able to save these calculations. How do I go about storing them?

    If you could also link programs that you think I will need to help make this easier on me since this essentially full stack dev at this point.

    I am also making this on Windows. Not sure if that may make a difference or not.

    submitted by /u/SpartanSavior01
    [link] [comments]

    Framework or workframe?

    Posted: 05 Jun 2021 08:58 PM PDT

    Probably this question is more for r/grammar or something but, given the meaning of framework (frame of work) shouldn't the word be workframe? I'm sorry if this is a stupid question, also I'm not a native speaker btw so maybe for you it's just natural to spell it that way. Thank you.

    submitted by /u/robertdeniro_ok
    [link] [comments]

    How did you find your right/actual programming career path?

    Posted: 05 Jun 2021 08:40 PM PDT

    Hello, I hope all of you reading this post are doing great!

    I am a college student and recently changed my major to computer science. So far, I like the courses and really enjoy making programs by my own. I have knowledge in java, C++, and recently started learning the basics of python in my free time.

    However, I know that I must start thinking in a career path to follow after college. There are too many programming branches and paths that is hard to make a decision. But, I feel this attraction for machine learning, AI, and app development. Those call my attention the most.

    So, I would like to read your experiences and decisions that make you all follow your actual programming path!

    Btw, what programming language do you recommend for app development on Android and machine learning/AI. I am planning to build my own Jarvis

    submitted by /u/Jaaavsss
    [link] [comments]

    How can you separate database migration tools from main application?

    Posted: 05 Jun 2021 12:15 PM PDT

    So, I have a python app that uses alembic, a tool to create database migrations. Currently, this is embedded into my app, however I want different apps to be able to access this database.

    I don't want to have to recreate the migrations for every application out there. I figure the easiest thing to do is to separate the migration part. However, my testing on my python application depends on this migration part.

    How could I go about switching that out? I'm unsure of how I should proceed.

    submitted by /u/Tarsonis444
    [link] [comments]

    libraries to build a GUI builder?

    Posted: 05 Jun 2021 07:37 AM PDT

    I need to write a small text editor with some GUI builder. Right now, I'm trying out Monaco API. What are some GUI builder libraries that would help me with that? I think saw some while ago that poshgui did use a react library or something otherwise it would be to complex and take too long to build it themselves. The application is for desktop(if we really end up using electron.js, the app is going to be packaged into an executable). Anything I could integrate with electron.js is valid. Thanks in advance

    submitted by /u/MacASM
    [link] [comments]

    Need helping integrating front end with back end..

    Posted: 05 Jun 2021 10:22 AM PDT

    Hello everyone, I need some guidance on my project

    I have a project that uses python and everything works perfectly. I enter the data I want it to utilize in the appropriate variables in the code editor(Pycharm) click run, and the program does exactly what I need it to...but only on my machine

    How can I have it so a user can have all of the underlying code dependencies installed "with the click of a button" from a website so it can run locally on their machine? To do this ill also have to make a simple user interface that will set the data in the mentioned variables above. This has been having me stuck for some time now, as I'm unsure which questions to ask

    submitted by /u/Zzz1324
    [link] [comments]

    can't I swipe away my notifications on zenfone 6 because of Android 11? Does the iPhone have this problem?

    Posted: 05 Jun 2021 07:23 PM PDT

    Worst part is that there is no way to fix it.

    Do you know any way to modify it? some java programming?

    submitted by /u/hwpcspr112
    [link] [comments]

    TensorFlow Help, need one last final push

    Posted: 05 Jun 2021 08:48 AM PDT

    I want to utilize my GPU for machine learning tasks, specifically with Tensorflow. I've correctly created the nvidia data science stack image, and pulled docker tensorflow from nvidia's site. The last two lines of the tutorial i've followed are throwing an error:

    mkdir ~/shared_dir

    docker run –gpus all –shm-size=1g –ulimit memlock=-1 –ulimit stack=67108864 -it –rm -v ~/shared_dir:/container_dir nvcr.io/nvidia/tensorflow:20.12-tf2-py3

    This returns docker: invalid reference format.

    Does anyone have any suggestions as to what is going wrong with the formatting of my docker command? Thank you.

    submitted by /u/nsway
    [link] [comments]

    Hidden startup app

    Posted: 05 Jun 2021 07:09 AM PDT

    I'm using this app called EZ mic and it automatically runs at startup. I can't turn off the automatic startup using msconfig command and I can't find it in task manager either. Is there any way to find this app and ban it from starting up?

    submitted by /u/SnHDave
    [link] [comments]

    Trying to request.get('url') Ebay but Ebay asks to verify Account

    Posted: 05 Jun 2021 08:54 AM PDT

    Hi all, I have used python's request.get in the past with zero issues. Today I am trying to use it to look at Ebay html. However almost (keyword almost) everytime I try to use it, instead of the expected html being returned, ebay returns html that asks to verify my account. I have tried using request.post(url, data=payload) with no luck. Anyone else run into this issue as websites get harder and harder to scrape? How did you work around it? Thanks!

    submitted by /u/mwspencer75
    [link] [comments]

    How to use templates in C++?

    Posted: 05 Jun 2021 03:45 AM PDT

    So, I needed some kind of logger for my program that would print whatever I give to it to console. I made it with templates, because I want it to print any data types. First, I made only in Logger.h file, tested it in my main() function, just to see if it works, and it does. Then I included it in my Init.h file, because I want to know how the initialization goes. Added some calls of it to print some initialization steps, tried to compile it to test it, and... it failed to compile, saying my logging functions are already defined. I tried to separate it into Logger.h and Logger.cpp, and then it failed again. This time saying my functions does not have body. I searched for it, but I couldn't find how to do it correctly so functions made using templates can be included in several files. Whatever I tried, it either says I have duplicate definitions or it doesn't see the body of my functions.

    submitted by /u/S0ZDATEL
    [link] [comments]

    Help with Microsoft Word Macro: finding and replacing certain usage of words

    Posted: 05 Jun 2021 11:13 AM PDT

    Hello, I'm trying to put together a manual macro to help edit some documents but I'm having trouble setting distinctions so it only edits certain usages of the word. For example I'm trying to use the following:

    With Selection.Find

    .ClearFormatting

    .Text = " million"

    .Replacement.ClearFormatting

    .Replacement.Text = "-million"

    .Execute Replace:=wdReplaceAll, Forward:=True, _

    Wrap:=wdFindContinue

    End With

    But only have it apply to money amounts. So for example, the document will have multiple instances of financial amounts written like:

    Revenue increased 76% to $5.2 million, compared to $2.9 million for the same period last year, and up 62% from $3.2 million in the fourth quarter of 2020.

    For these, I'm trying to get the macro to change them all to:

    Revenue increased 76% to $5.2-million, compared to $2.9-million for the same period last year, and up 62% from $3.2-million in the fourth quarter of 2020.

    This is simple but I need it to exclude non monetary amounts, so for example, if its something like:

    Userbase increased 63% to 6 million from........

    I guess what I'm trying to do is have some macro text that adds an exception and sees that since there's no dollar sign, to exclude it from the edit.

    Also is there a way to have changes applied only to text outside of an opening and closing quotation mark?

    For example:

    Revenue increased 76% to $5.2 million, compared to $2.9 million for the same period last year, and up 62% from $3.2 million in the fourth quarter of 2020.

    I want to change all instances of compared to into compared with, which I can do with the same find and replace macro above but I'm trying to avoid changing anything enclosed with a quote.

    Like:

    "I am proud to congratulate our team for our revenue increase of 76% to $5.2 million, compared to $2.9 million for the same period last year," said CEO X....

    In this case, I want the compared to excluded from the edit.

    Thank you, any help would be much appreciated.

    submitted by /u/Judification
    [link] [comments]

    Getting Average Value of the Past 6 Months Within a Group

    Posted: 05 Jun 2021 09:29 AM PDT

    I'd like to get the average of the past 6 months for each parternadvertiser--however the current output I am getting isn't giving me the correct average. Code below:

    select activitydate, console_org_name, partneragency, partneradvertiser, org_sales_owner ,sum(gross_revenue_allocation)as gross_revenue ,sum(avg(gross_revenue_allocation)) over (partition by console_org_name, partneragency, partneradvertiser order by activitydate RANGE INTERVAL '6' MONTH PRECEDING) as prior6monthavg from data_provider_payout dpp group by activitydate, console_org_name, partneragency, partneradvertiser, org_sales_owner 
    submitted by /u/IAmMaximus
    [link] [comments]

    Why does 'no matching function for call' happen in my CPP code? The parameter types are the same as their corresponding argument types.

    Posted: 05 Jun 2021 02:36 AM PDT

    no matching function for call to 'Television::Television(std::__cxx11::string&, double&, int [num], int&)'

    #include<iostream> using namespace std; class Television{ private: string displayType; double dimension; string* connectivitySupport=NULL; public: Television(){} Television(const Television& b){ displayType=b.displayType; dimension=b.dimension; if(b.connectivitySupport){ delete [] connectivitySupport; int length=sizeof(b.connectivitySupport)/sizeof(b.connectivitySupport[0]); connectivitySupport=new string[length]; for(int i=0;i<length;i++){ connectivitySupport[i]=b.connectivitySupport[i]; } } } Television(string dt,double d,string arr[],size_t length):displayType(dt),dimension(d){ if(connectivitySupport){ delete [] connectivitySupport; } connectivitySupport=new string[length]; for(int i=0;i<length;i++){ connectivitySupport[i]=arr[i]; } } void output()const{ cout<<"Display type : "<<displayType<<endl; cout<<"Dimension(inches): "<<dimension<<endl; cout<<"connectivity support types:\n"; if(connectivitySupport==NULL){ return; } for(int i=0;i<sizeof(connectivitySupport)/sizeof(connectivitySupport[0]);i++){ cout<<connectivitySupport[i]<<endl; } } }; int main(){ cout<<"Enter degault TV display type :\n"; string dt; cin>>dt; cout<<"Enter dafault TV Dimension :\n"; double d; cin>>d; cout<<"Enter the number of connectivity modes\n"; int num; cin>>num; int arr[num]; cout<<"Enter default TV connectivity support types :\n"; for(int i=0;i<num;i++){ cin>>arr[i]; } Television def(dt,d,arr,num); def.output(); cout<<"Enter TV numbers :"; cin>>num; Television tvarr[num]; int cus[num]={0}; while(1){ cout<<"Enter index of TVs required of custimization(input -1 to end)"; int id; cin>>id; if(id==-1){ break; } cus[id]=1; cout<<"Enter TV#"<<id<<" display type :"; cin>>dt; cout<<"Enter TV#"<<id<<" Dimensioin :"; cin>>d; cout<<"Enter the number of connectivity modes\n"; int num; cin>>num; int arr[num]; cout<<"Enter TV#"<<id<<" connectivity support types :\n"; for(int i=0;i<num;i++){ cin>>arr[i]; } tvarr[id]=Television(dt,d,arr,num); } for(int i=0;i<num;i++){ cout<<"TV#"<<i<<endl; if(cus[i]!=1){ def.output(); }else{ arr[i].output(); } } return 0; } 
    submitted by /u/hwpcspr112
    [link] [comments]

    Suggest websites that hold programming competition regularly.

    Posted: 05 Jun 2021 07:47 AM PDT

    Looking for suggestions of good websites that hold programming competetions regularly. Thanks.

    submitted by /u/shubha360
    [link] [comments]

    running php file

    Posted: 05 Jun 2021 06:21 AM PDT

    hey!

    so im using the xampp for the server, i did all the things needed in the IDE, but when i open it from the IDE (phpstorm) its not opening the full directory so the file is not found.

    for example, instead of:

    http://localhost/demo1/tryit.php

    it gives:

    http://localhost/tryit.php

    this happens when i open in the ide my project (which is inside the htdocs folder) and open the file.

    when i open the entire htdocs in the ide i can go to the file from there and it works good.

    how can i fix this problem? obviously i dont want everytime all the stuff in htdocs to be display.

    thanks!

    submitted by /u/MrSirCR
    [link] [comments]

    Creating a crosstabulation or frequency table in R

    Posted: 04 Jun 2021 11:03 PM PDT

    I have a strange dataset that shows data similar to the following:

    Group Subgroup Sample Size Response Percent
    Education High School 1027 Total 100
    Education High School Yes 32
    Education High School No 68
    Education College 2052 Total 100
    Education College Yes 35
    Education College No 65

    What I need to be able to do is create a table or crosstabulation showing the different subgroups of education by extracting the percent "yes" for the sample size.

    I've been able to subset and extract using df[(df$Subgroup == "High School" & df$Response == "Yes") , ]$Percent but I haven't been able to extract multiple values and turn them into a table.

    submitted by /u/SoulStudies
    [link] [comments]

    Automating desktop software?

    Posted: 04 Jun 2021 10:59 PM PDT

    Since most desktop software doesn't have an API, I was wondering if there was a way I could automate without one.

    For instance, I thought that maybe there exists a tool that repeats certain mouse positions and clicks, either by explicitly passing a series of positions to move the mouse, or by recording one iteration of what I want, and having the program repeat it

    Does such a thing exist? Using a Mac if that's relevant

    submitted by /u/greentriangles1
    [link] [comments]

    No comments:

    Post a Comment