• Breaking News

    Wednesday, May 19, 2021

    Looking to host my REST API Ask Programming

    Looking to host my REST API Ask Programming


    Looking to host my REST API

    Posted: 19 May 2021 01:20 PM PDT

    Hello!

    I'm a C# ASP.NET junior dev and have worked with Code First C# Databases, RESTful API's, MVC & Vue (a frontend framework sort of like React) to create websites.

    Now at work and during my education, I've never handled deployment.

    At this time I have a personal project. I have succesfully hosted my relational MySQL Database on phpMyAdmin and can update it from my local desktop.

    The next hurdle seems way harder though. I cannot find a good answer to how I can host my RESTful API. (My hosting site let me know they do not host C# or anything of the sort)

    I found some posts suggesting Azure, AWS, others, but for every post I find I find equal people protesting those.

    What is a good site to host my first REST API? I'm looking for something that can go beyond Minimum Viable Product and I'd like to host my website under the hosting service I'm currently using (so not paired hosting with the API).

    What would the costprice look like for an API that's deployed and being used by clients?

    I realize this depends on the amount of traffic, but assume a basic API used for, let's say, posting orders in a online shop (though website/app/w.e, it all would communicate through the API).

    Any tips are very very welcome as I feel I'm swimming in the dark researching this.

    Thank you

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

    How do you get more moments of genius?

    Posted: 19 May 2021 08:52 PM PDT

    Always amazed at the moments that I wake up in the middle of the night and have the answer to a programming problem. Today I struggled all day with a problem, took a break to get dinner, and when I came back, solved it in less than 5 minutes.

    How do I get more of these moments? How do you get these moments of genius?

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

    Should I continue self-teaching if I can’t get into a boot camp?

    Posted: 19 May 2021 03:17 PM PDT

    I've applied to a few local boot camps as well as Kenzie Academy, and I failed the logic assessment for all of them except Lambda. Based on what I've researched, Lambda doesn't sound like a good idea. I'm reasonably intelligent, I graduated college with honors, but coding boot camps seem to be my Achilles heal. Does this mean programming is not for me, or should I continue self teaching?

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

    Efficient alternatives to counting for large data-sets in Postgresql.

    Posted: 19 May 2021 08:22 PM PDT

    Hi, I've been looking for some help with this for a while but can't seem to find any. I'm using Postgresql and SQLAlchemy, but I think this is a higher level organizational problem, rather than an implementation problem.

    Say I have a table like this:

    ID START_TIME STRING1 STRING2 

    This could be reformatted as multiple tables with ID and STRING1, and ID and STRING2, doesn't matter I'll do it either way. So, this table will have millions of records, and I need a live count of rows for every permutation of STRING1 and STRING2 (2000-3000 allowed permutations).

    This is far too much to generate the permutations and count for each using filters and counts. So my first solution was to create a second table, which stores counts. So every time I insert a permutation I count it and store it, so instead of 3000 counts, it's 3000 simple look-ups.

    This works. But then I cannot filter by date, which I want to be able to do. For each of the 3000 counts, it should be for a time-frame set by the user. So I'm looking for a workaround to allow easy look-ups of stored counts that will still allow me to filter by time-range.

    Any Ideas?

    submitted by /u/doom-goat
    [link] [comments]

    Programming with bad PC?

    Posted: 19 May 2021 03:03 PM PDT

    Hello, I've wanted to learn to code/program on python or C#. My friend recommended me app called Visual Studio and I installed it so I can code. Problem is my computer is really slow, I tried using it but it's not just to slow. Do you know can I still program with my PC. Any sort of app that has important tools but is not needy would be of great help, thanks

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

    How Should I Learn C++?

    Posted: 19 May 2021 03:59 AM PDT

    Hi there! Throwaway because I deleted my old account. I'm trying to get back into programming. Have a small amount of experience with C++ but it's a bit all over the place. I want to learn it at an advanced level and I have experience with various coding languages. Should I buy online courses or hire a tutor? I prefer learning with a teacher but I need to make sure that spending the extra money is justified. If I also do get a tutor, I need to ask how I should find the right one! Thank you!

    submitted by /u/One-Tap9947
    [link] [comments]

    (preferably) Cross platform C GUI library?

    Posted: 19 May 2021 01:15 PM PDT

    Hello there. I want to create a GUI app in C (not C++ preferably) and I need a good cross platform GUI library (I am a C beginner)

    GTK just refuses to work for me, so that is out of the question, and I would rather not use QT because it is in C++

    Any suggestions?

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

    How uniform is random.random() really?

    Posted: 19 May 2021 09:45 PM PDT

    Specifically in the range of lower numbers? When generating exponential random variables using inverse transform sampling i.e using -ln(random.random()) , can I expect significant error compared to the actual distribution? Also if one were to do int(-ln(random.random())) would there be any error that was exploitable? In other words if someone generated rv from int(-ln(random.random())) would I be able to make better guesses than from the actual distribution?

    I figure sources of error could be in the RNG for the uniform 0,1, error in log (although I tested and it is very accurate I believe) and floating point error from casting as an int.

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

    C deleted value restoration not working

    Posted: 19 May 2021 12:57 PM PDT

    When i try to reintroduce the value that i deleted using the memorie pointer it doesn't introduce the proper value. Can someone tell me why and how?

    #include <stdio.h>
    #include <stdlib.h>
    #define LIMIT 100 // Specifying the maximum limit of the queue
    /* Global declaration of variables */
    int queue[LIMIT]; // Array implementation of queue
    int front, rear; // To insert and delete the data elements in the queue respectively
    int i; // To traverse the loop to while displaying the stack
    int choice; // To choose either of the 3 stack operations
    int *memorie;
    void insert(); // Function used to insert the element into the queue
    void delet(); // Function used to delete the elememt from the queue
    void display(); // Function used to display all the elements in the queue according to FIFO rule
    void insert_delet();
    int main()
    {
    front = rear = -1; // Initialzing front and rear to -1 indicates that it is empty
    do
    {

    printf("1. Insert\n2. Delete\n3. Display\n4. Exit\n5. Insert deleted value\n");
    printf("Enter your choice:");
    scanf("%d",&choice);
    switch(choice)
    {
    case 1:
    insert();
    break;
    case 2:
    delet();
    break;
    case 3:
    display();
    break;
    case 4:
    exit(0);
    break;
    case 5:
    insert_delet();
    break;
    default:
    printf("Sorry, invalid choice!\n");
    break;
    }
    } while(choice!=4);
    return 0;
    }

    void insert()
    {
    int element;
    if (rear == LIMIT - 1)
    printf("Queue Overflow\n");
    else
    {
    if (front == - 1)
    front = 0;
    printf("Enter the element to be inserted in the queue: ");
    scanf("%d", &element);
    rear++;
    queue[rear] = element;
    }
    }

    void delet()
    {
    if (front == - 1 || front > rear)
    {
    printf("Queue Underflow \n");
    }
    else
    {
    printf("The deleted element in the queue is: %d\n", queue[front]);
    int*memorie=queue[front];
    front++;
    }
    }

    void display()
    {
    int i;
    if (front == - 1)
    {
    printf("Queue underflow\n");
    }
    else
    {
    printf("The elements of the queue are:\n");
    for (i = front; i <= rear; i++)
    printf("%d\n", queue[i]);
    }
    }
    void insert_delet()
    {
    int *memorie;
    if (rear == LIMIT - 1)
    printf("Queue Overflow\n");
    else
    {
    if (front == - 1)
    front = 0;
    printf("Elementul sters a fost reintrodus: ");
    rear++;
    queue[rear] = *memorie;
    }
    }

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

    How can I pull data from the Microsoft Graph API and insert the data into my C#.NET Windows form grid?

    Posted: 19 May 2021 03:01 PM PDT

    I'm working on a project where I have to get any tasks inside of Microsoft Planner from the Microsoft Graph API and then load the tasks and their information into a grid in a C#.NET Windows form. The only direction I've been given is to use Microsoft Power Automation, but I'm completely new to all of these Microsoft Programs. How could I go about doing this?

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

    Creating an online store. Any tips?

    Posted: 19 May 2021 02:32 PM PDT

    I'm currently creating an online store platform with multiple retailers, stores, and customers. It's in nodejs but the stack doesn't matter much here. I was wondering if there are resources on architectural choices or datamodels choices that are important to be made when creating an online store?

    For example, how to store money values, how to store transactions, etc. Or common gotchas when creating an online store.

    Thanks

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

    Is it true that many developers are using amphetamine and cocaine to code?

    Posted: 19 May 2021 04:50 PM PDT

    How can I round up a divided expression in a GNU linker script?

    Posted: 19 May 2021 12:18 PM PDT

    This is my linker script: ``` // omitting beginning to save space SECTIONS { . = 0x0; bootloader 0x7c00 : { bootloader.o(.text) } kernel _kernel_loc : AT (ADDR(bootloader) + SIZEOF(bootloader)) { EXCLUDE_FILE (*bootloader.o) *(.text .data .bss .rodata .comment .eh_frame) } }

    _kernel_size = (SIZEOF(kernel) / 512) + (SIZEOF(bootloader) / 512); // <- HERE _bootloader_stage1_size = SIZEOF(bootloader) / 512; // <- HERE ```

    Correct me if I'm wrong, but I'm pretty sure that in the last two lines, the result is rounded down after being divided by 512. I need it to be rounded up. Strangely, I can't find anything about it online or in the man pages.

    How could I divide by 512 while rounding up to the nearest integer?

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

    Content Spinner

    Posted: 19 May 2021 09:46 AM PDT

    There was a tool phylix.com I don't know if you are aware of it but what it did, it made the text lookalike but untrackable from plagiarism tools like Copyscape.

    Do you know how it works? It simply replaces letters, symbols etc with the ASCII code. The idea is that likely the shitty plagiarism checks d not render those codes, and thus it looks unique to them...

    Do you happen to know any tool that does the same thing as I can't find after a lot of research on it?

    Thanks

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

    Safest way to transfer a private key through a transaction

    Posted: 19 May 2021 03:17 PM PDT

    Using the blockchain network for the transaction, is there a safe way transfer private key information to someone?

    The only method I can think of is sending an encrypted message. Is there a way to do it via the blockchain during the transaction itself so it's mutual and the buyer isn't waiting on someone to send them private keys?

    This might sound pointless or confusing, but I really need help finding a safe solution for this.

    Just to clarify the private key being transferred is a separate key to the private keys being used during the transaction.

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

    How to learn different programming languages without getting confused?

    Posted: 19 May 2021 04:41 AM PDT

    Hi programmers! I am a student of computer tecnology. During my university years, I've learned C, C++ and Java. Nowdays I'm studing Python for a project. Sometimes I get confused with Java ( I passed a lot of months in studing it).

    Clarely, Python and Java are similar for some aspects but sometimes I am afraid to confuse syntax or declarations...

    Have you ever experienced something like this? How can handle studing different programming languages?

    submitted by /u/Unusual-Gene-7812
    [link] [comments]

    Interactive Map html?

    Posted: 19 May 2021 10:00 AM PDT

    I'm doing an internship for my degree (Mechanical Engineering) and they, for some reason, have put me in charge of the website for the project. Id love to create a map of the united states that when you hover over a state text pops up showing project participants that are located there. Is this possible in css/html? Would anyone be able to assist me with this?

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

    Improving NFT protocol

    Posted: 19 May 2021 08:28 AM PDT

    Edit: if this issue can't be fixed, is NFT a fad? What use does it have if copyright law needs to get involved?

    I had an idea that would stop people from reuploading art and selling it as a stolen item.

    Stating copyright law protects against NFT thieves to me defeats the purpose of blockchain technology.

    The NFT blockchain protocol (whichever one that may be) should have a way to read the actually data of the artwork being uploaded to prevent a copy from getting minted.

    Could this work or is there not enough data provided in media data like jpg, png, mp4, etc?

    The other method is utilizing artificial intelligence to automate censorship of stolen items but I don't like this idea.

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

    Recommended books for reverse engineering and malware?

    Posted: 19 May 2021 03:42 AM PDT

    I know it takes assembly language and computer architecture as requirements, but I can't choose these two courses because of time conflicts with my other courses, and I have a blank section of time doing nothing and I hate this.

    ASSEMBLY LANGUAGE AND MICROCOMPUTER

    Week Date Content and topic 1 2020/09/06~2020/09/12 Introduction to Processor and Embedded System Design 2 2020/09/13~2020/09/19 The ARM Architecture 3 2020/09/20~2020/09/26 The ARM Architecture 4 2020/09/27~2020/10/03 vacation 5 2020/10/04~2020/10/10 The ARM Assembly Language Programming 6 2020/10/11~2020/10/17 The ARM Assembly Language Programming 7 2020/10/18~2020/10/24 Architectural Support for High-level Language 8 2020/10/25~2020/10/31 Architectural Support for High-level Language 9 2020/11/01~2020/11/07 Midterm exam 10 2020/11/08~2020/11/14 ARM Organization and Implementation 11 2020/11/15~2020/11/21 ARM Organization and Implementation 12 2020/11/22~2020/11/28 The ARM Instruction Set 13 2020/11/29~2020/12/05 The ARM Instruction Set 14 2020/12/06~2020/12/12 The Thumb Instruction Set 15 2020/12/13~2020/12/19 The Thumb Instruction Set 16 2020/12/20~2020/12/26 Architectural Support for System Development 17 2020/12/27~2021/01/02 Architectural Support for System Development 18 2021/01/03~2021/01/09 Final Exam 

    ASSEMBLY LANGUAGE AND MICROCOMPUTER LABORATORY

    Software development flow on Zedboard Use of Library IP on Zedboard Custom IP Development on Zedboard-1 OS-boot Device driver project... 
    submitted by /u/hwpcspr
    [link] [comments]

    Game developers of the sub, could my ideas for map design work?

    Posted: 19 May 2021 07:13 AM PDT

    I am a newbie to everything programming and developing related so I am not sure if this would work or if this already exists. My idea is to attach a light source to a playermodel's head and record where light falls and the texture of each surface that light hits, then a new map would be created that only renders what the player would see and leave out any invisible parts. As a result, a map could save space and resources.

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

    Is there a way for me to make a URL like a reddit post?

    Posted: 19 May 2021 02:30 AM PDT

    Take example I have a row on my news table titled "Most Beautiful Girl in the World" with id 1. Instead of putting the id on the URL "foo.com/news/id", I want to make it "foo.com/news/most_beautiful_girl_in_the_world", just like reddit does it for their URL on their title. But I don't know how to do it. Is there a way I can do it? And how do I make it so that the URL is always unique if it exist same title on the database?

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

    Has anyone attempted this? (AI that develops code for you)

    Posted: 19 May 2021 05:52 AM PDT

    I have this phenomenal idea that you can create a tool for an example that dictates the number of if statements. And it would automatically do the programming for you. You could fix manually some of the bug codes to develop the individual application. But It's surprising how no one has created something similar to the Bootstrap template. But for real world applications.

    submitted by /u/Ubuntu-Warlord
    [link] [comments]

    How to handle multiple user roles on a website? [ HELP ]

    Posted: 19 May 2021 05:09 AM PDT

    Hi everybody,

    Appreciate you reading this.

    I'm currently trying to make a website that will have multiple user roles. One will be a generic user (email, password and maybe a name will be required) and the other will be a business account (generic info+ address, phone #, TAX ID...).

    The main thing that will separate them, apart from the required info, is that the generic user, once logged in, will be able to access a special page from which they'll be able to post, send pics, etc. And the business account, will be able to access a special shop page.

    If you've had experience with this kind of website before I'd greatly appreciate you leaving a comment or upvote.

    Is this something that can be done with "of the shelf" solutions, or would it benefit from a bespoke solution?

    Thanks, Martin.

    P.S. I doesn't matter if the solution is a paid option, and I'll be here awhile for any question you might have for me.

    P.S.S The special shop page will be a "dumbed down" version optimized for wholesale.

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

    No comments:

    Post a Comment