• Breaking News

    Thursday, April 30, 2020

    Can anyone please tell me what on Earth is RESTful? Ask Programming

    Can anyone please tell me what on Earth is RESTful? Ask Programming


    Can anyone please tell me what on Earth is RESTful?

    Posted: 30 Apr 2020 08:09 AM PDT

    I hear this thing a lot, but I have no ideia what it is a about. And what is the difference between an API and a RESTful API?

    thank you!

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

    How can I pull and organize huge amounts of html data?

    Posted: 30 Apr 2020 10:17 PM PDT

    I'm trying to recover an old forgotten Xbox gamertag using the database of TrueAchievements.com. My plan is to use a script or program to recover every gamertag from a few select games and then compare these lists for common names. Each list will be 50,000 to 300,000 names long. What's the best way to recover and store this data for analysis?

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

    Do the references of a .NET Standard project also need to be .NET Standard?

    Posted: 30 Apr 2020 05:42 PM PDT

    So I'm creating a .NET Standard library that will be used for a .NET Core application, and I'm a little confused on whether every reference needs to be .NET Standard or how that works. If that's the case I'm might need to go down a rabbit hole and port all the references and then port the references of those references and so on.

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

    Any programmers willing to help me conduct a Field Survey Report for a college class?

    Posted: 30 Apr 2020 05:41 PM PDT

    I hope it's okay to post this here. I am a college student taking a career counseling class for credits that involves conducting a Field Survey Report (just an interview about your job really) from the line of work I have been studying throughout the class.

    Due to current events, my original plans for this fell through and I am desperate for anyone right now. I need someone who works (or recently worked) in some kind of computer programming role and I would need to ask for and include some basic details about the interviewee such name, job title, place of employment in the report. So if that is something you are not comfortable with I completely understand.

    It should not take too long, I have a list of 12 questions that range from how this job affects your lifestyle to what you value most about your job. I would like to conduct it through email, private messages here, or discord also works if you like discord. Thanks to anyone who's taken the time to read this!

    submitted by /u/chef-danger
    [link] [comments]

    People with bad memory, how do cope with remembering syntaxes?

    Posted: 30 Apr 2020 10:37 AM PDT

    It so happened that my memory went terrible over last year somehow, now I am even struggling to remember basic syntaxes of web.dev and python. Anyone can relate? How do you deal with this?

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

    a question about vb in google sheets

    Posted: 30 Apr 2020 07:24 PM PDT

    I'm not a programmer or anything, I'm only at the point where I can find scripts to enhance spreadsheets or edit macros. I just wanted to know how to make an alert popup in google sheets that contains the text from a given cell on a given sheet? I've figured out how to make an alert popup, but not how to set its text as the content from a cell. Thank you so much!

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

    can a program that decodes a hex into an image be used in reverse so that an image stores a program?

    Posted: 30 Apr 2020 07:07 PM PDT

    So I got to thinking after watching a video on the way the first gameboy decoded hex to display images and I found out that a LOT of data could be compressed this way. So I was wondering why we can't reverse this and instead of having a program decode a hex to display an image why can't an image be used to store a program and would it be any better than storing the program the way we do now?

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

    Need help with AWS Lambda, AWS API, DynamoDB, and python

    Posted: 30 Apr 2020 05:09 PM PDT

    Hey all!

    This is homework, that is now past due... i asked the professor for help and he won't ( sounds dumb but welcome to my crap college)

    So, i have to create a function in lambda using python. This program must connect and pull data from a dynamodb. The data is a team, its sport, and its last few scores.

    The input is from the API gateway, like this. (edited of course) api.us-east-1.amazonaws.com/poo?Sports=Football&Teams=Cowboys

    The problem is the API is only returning null,

    and the code returns

    Response:

    {

    "errorMessage": "'Sports'",

    "errorType": "KeyError",

    "stackTrace": [

    " File \"/var/task/lambda_function.py\", line 36, in lambda_handler\n theResults = theIfWorld(event, context)\n",

    " File \"/var/task/lambda_function.py\", line 13, in theIfWorld\n firstchoice = event['Sports']\n"

    ]

    }

    This is my python lambda code:

    import sys

    import botocore

    import logging

    from botocore.exceptions import ClientError

    from boto3 import resource

    import boto3

    from boto3.dynamodb.conditions import Key, Attr

    def theIfWorld(event, context):

    firstchoice = event['Sports']

    secondchoice = event['Teams']

    lasport = firstchoice

    lateam = secondchoice

    dynamodb = boto3.resource('dynamodb')

    table = dynamodb.Table('thesports')

    response = table.query(

    KeyConditionExpression=Key('Teams').eq(lateam) & Key('Sports').eq(lasport)

    )

    for i in response['Items']:

    print("The ", i['Teams']," Scores are: " ,i['FirstScore'],i['SecondScore'],i['ThirdScore'])

    def lambda_handler(event, context):

    theResults = theIfWorld(event, context)

    return{

    'Yarrrr':theResults

    }

    This is my API JSON under -GET- Integration Request

    {

    "Sports": "input.params('Sports')",

    "Teams": "input.params('Teams')"

    }

    And the image is a screen of my dynamodb

    The image

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

    C++ malloc() error with Matrix operator overloading using pointers; please help!

    Posted: 30 Apr 2020 04:52 PM PDT

    Hey guys, I was wondering if you could help me understanding what I'm doing wrong with this operator overloading I'm performing (I'm working on repl.it, if that matters). I have created a class called Matrix that contains set and get functions for the rows and columns of the matrices that I am sending to it. The arithmetic operators I am overloading are the "+", "-", and "". So my code for overloading the three operators is as follows: //plus operator overload int operator+ (Matrix trix1) { int r = this->rows; int c = this->cols; int mat = new int[rc]; //mat = (int)malloc(rcsizeof(int)); for(int i=0; i<r; i++) { for(int j=0; j<c; j++) { *(mat + ic + j)= (m1 + ic + j) + (trix1.m1 + ic + j); } } return mat; delete[] mat; }

    //minus operator overload int* operator- (Matrix trix1) { int r = this->rows; int c = this->cols; int mat = new int[rc]; for(int i=0; i<r; i++) { for(int j=0; j<c; j++) { (mat + ic + j)= (m1 + ic + j) - (trix1.m1 + ic + j); } } return mat; delete[] mat; }

    //times sign operator int* operator* (Matrix trix1) { int r1 = this->rows; int c1 = this->cols; int r2 = trix1.rows; int c2 = trix1.cols; cout << r1 << " " << c1 << " " << r2 << " " << c2 << endl; int mat = new int[r1c2]; for(int i = 0; i < r1; i++) for(int j = 0; j < c2; j++) for(int k = 0; k < c1; k++) (mat + ic2 + j) += (m1 + ic1 + k) * (trix1.m1 + kc2 + j); return mat; delete[] mat; }

    Int m1 by the way is a pointer defined as a private member of the Matrix class. For all three operators I am overloading, the operation goes perfectly for only 2x2 matrices, but for 2x3 or higher dimension matrices, it returns this following error:

    main: malloc.c:2401: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed

    I have no idea what this means, I have tried searching up numerous StackOverflow answers, but nothing could explain why it goes wrong only for matrices higher than 2x2 or 2x3. I was wondering if someone here could clarify the mistake I am making. Thank you in advance!

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

    Is Java AWT worth learning in 2020?

    Posted: 30 Apr 2020 04:47 PM PDT

    I'm interested in dabbling with graphics and, in the book I'm reading, the authors use AWT as an introduction. The current version of the book came out only a year ago, but I'm wary about it since it seems like almost no one uses it at all.

    So, as the title states, it AWT worth starting with? Or would it be better to learn JavaFX or Swing first?
    Or neither. Maybe JavaScript has something else that is more superior and far more rewarding?

    I don't really want to waste my time learning something that wouldn't be beneficial.

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

    Portable Git-based Project Manager

    Posted: 30 Apr 2020 05:16 AM PDT

    Hey Guys!

    does anyone know a portable(for external drives/usb) Project Manager tool that uses git and is somewhat similar to GitLab(repo, issues, merge-requests, ci/cd? - but no groups/teams etc.)

    Platform: osx/win10.

    does a tool like this even exists?

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

    Help with Apple shortcuts

    Posted: 30 Apr 2020 04:10 PM PDT

    Do u know how to lock an app using Apple Shortcuts? Because what I have sets up a password up but The password wall will activate even if the password is correct and the app is reopened how do I get around that loop( I'm kinda stupid)

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

    Twitter development account approval

    Posted: 30 Apr 2020 04:10 PM PDT

    Hey, I have applied for Twitter developer account and after a month Twitter has sent me this email asking two questions. I have no clue to respond to them. I just need the API to build a Wordpress plugin that people will use to plan their marketing campaigns. This plugin will have tweets data and activity and stuff to help plan twitter campaigns.

    Response from Twitter:

    Thanks for responding, but we still don't have enough information about your intended use case, and public sector end-users, to complete our review of your Twitter developer account application.

    We need these additional details about your intended use of Twitter content:

    A list of the government or public sector entities that will have access to Twitter content, or information derived from Twitter content, under this use case.

    Please note, we require an exhaustive and complete list of all public sector entities who would have access to Twitter content under this use case. Failure to provide an exhaustive and complete list constitutes a violation of the Developer Agreement and may lead to enforcement action, including a potential suspension of access.

    This requirement does not apply to public sector entities with whom you may work or do business, but who would not have access to Twitter content, or information derived from Twitter content, under this use case.

    The specific use cases of your product or service by government or public sector entities, including information about:

    How Tweets and Twitter content will be displayed to users of your product or service, including whether Tweets and Twitter content will be displayed at row level, or aggregated.

    Can anyone tell me how do I respond to these questions?

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

    Do You Find Yourself Recoding the Same Features?

    Posted: 30 Apr 2020 03:56 PM PDT

    I am trying to revamp my coding portfolio during quarantine and I find myself coding the same features over and over again for different side projects. Have an idea for a website that requires user signup? Implement authentication and authorization, ect.

    Right now my solution is to create a couple of bolierplate files that I can spin up since most of my project ideas tend to have the same baseline features. I was wondering if anyone has or knows of any other solutions?

    To-do app tutorials are great but how many side-projects are plain to-do apps? Most of the time I find myself ripping the basic CRUD features of to-do apps or taking singular features from similar tutorials and trying to find a way to merge them into my project.

    I am aware of frameworks. But say I am a developer who is using react and firebase. Each time I start a new project, I have to build a login/signup page and then create protected routes. I can find tutorials that accomplish those tasks, but then if I have another project idea, I have to create all of the features again. Are there any services that offer boilerplate with some included features?

    I have an idea for a project that consists of creating boilerplate tutorials for basic app features i.e. auth, payments, bank account linking, email signups, ect. No styling, just plain business logic. Then a developer could just grab the basic features, customize the style, and add more to create a unique project. So I guess my last questions are, what are some features that form the basis of most side projects? and would this be valuable to a developer?

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

    Soccer Analytics

    Posted: 30 Apr 2020 03:12 PM PDT

    I'm a CS freshman who wasn't able to land an internship for the summer. I figured that I might start doing a project that interests me and learn new things about both programming and soccer, which are two of my hobbies. A simple thing that I had in mind is some statistic works such as probability of winning a penalty shootout if a player in your team kicks the first penalty. In addition, eventually I would like to start doing things like heat maps and some interesting charts.

    Now unfortunately I have almost no idea on how to start. I was wondering if anyone could guide me and tell me how I can even begin doing such tasks.

    Thanks!

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

    What would be the easiest and/or way for a know-nothing to write a predictive keyword argument bot?

    Posted: 30 Apr 2020 09:32 AM PDT

    Basically over the last ~4 years I've doing a thing where I save arguments or shitposts or responses that are then posted automatically in response to specific keywords and/or general arguments. Like 2 years ago i did a project on 4chan, mostly on /ac/(art critique), where I had a spreadsheet of automated responses based around common keywords that would be said frequently.

    Like id post paintings with specific types of mistakes or problems, such as using black paint on skin tones or not doing highlights or using dirty brushes or muddy colors etc. So the bot would just be "muddy" = paragraph argument about whether muddy is bad and why I do it. In that response is normally some kind of trigger word or argument designed to solicit specific responses that lead to them saying more predicted keywords and the conversation generally escalating to existential rants about the meaning of death or whether time is entropy or how the industrial revolution was a goof etc.

    It often led to people getting really upset and endlessly arguing against me copy-pasting responses to every predicted keyword. Then it led to me coming up with multiple possible responses to the same keywords and using a coin or dice app to pick which response. Started kind of being organized in terms of turns and stages and stuff, like if they say muddy a second time on their second turn, this is the second response.

    Then i started thinking about how to create an algorithm for when there are multiple keywords close together/in the same sentence etc for trying to predict more complex arguments that don't involve a human sometimes making logic calls. Etc etc. Got to the point where I was like "I need to figure out how to code this" and I gave up.

    Like how would I be able to code that as an If-then kind of belligerent autoresponse bot as an art spearmint goof if the only coding experience I have is cheating on crusader kings 2 and deleting the underwear file in Bannerlord?

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

    RAPTOR

    Posted: 30 Apr 2020 01:14 PM PDT

    Please!!!!!! Does anyone know how to use this program?!?!?! Help me

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

    How to correctly take user Input in Java using IntelliJ Idea

    Posted: 30 Apr 2020 10:27 AM PDT

    Hi guys, I just recently started learning Java and my friend told me to post all my queries over here for help.

    Anyways, I am facing some trouble in taking input from user in IntelliJ. The code I have written seems to work fine for online compilers just not for IntelliJ. Please help me resolve this error guys. Here's the code: Code

    Also, any tips for learning Java will be greatly appreciated. Thank you all in advance

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

    Can i use javascript as front-end and python as back-end website?

    Posted: 30 Apr 2020 10:22 AM PDT

    i read that javascript, python, and ruby is commonly used in web developing. Ruby is easier to learn but many big website like google don't use it and using python/javascript instead. So can i use js as my front-end and python as back-end or do you have any recommendation programming language that suit? (i don't have any programming background)

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

    Cost estimation for a mobile app

    Posted: 30 Apr 2020 09:29 AM PDT

    Hey guys,

    we are a group of business administration and engineering students from the university of Ghent tasked with creating a hypothetical enterprise. Our idea is to develop a mobile app that makes paying by way of a bank terminal easier and safer for people with visual impairment. The app would work as follows: when the user presses his/her phone against the terminal, the amount due would be transferred through NFC to the user's phone. This amount would then be read (through headphones) to the user via Text-to-Speech. After the user confirms the amount, the app would redirect to the user's preferred banking app and the purchase would be complete.

    As we do not possess enough knowledge about app development to assess if this would be possible (let alone implement this ourselves), we chose to outsource this. Given the current crisis however, few companies have time to help out students right now. Which we completely understand.

    So our question is: would something like this be possible? And if yes, what would be a good estimate for the cost of development? Thanks in advance!

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

    Python - creating encryption key

    Posted: 30 Apr 2020 08:01 AM PDT

    Hi, does anyone know how to create an encryption key for a python program please?

    Or any links for the most suitable method. creating a TCP simulator and want to encrypt a packet.

    Many thanks

    def to_json(self): #function to convert a packet into a json string and then encrypt the string
    #the packet object gets converted into a dictionary first with keys set to represent the variables of the class
    packet = {"message": self.message,
    "syn_flag": self.syn_flag,
    "ack_flag": self.ack_flag,
    "fin_flag": self.fin_flag,
    "rst_flag": self.rst_flag,
    "ack_number": self.ack_number,
    "seq_number": self.seq_number
    }
    json_string = dumps(packet) #the pack is converted into an unencrypted json string

    current_key_pos = 0 #variable to keep track of which position in the key the stream cipher is currently on
    encrypted_json_string = "" #variable to record the encrypted json string as it is produced

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

    Consulting: Can you blog about solutions used at clients?

    Posted: 30 Apr 2020 03:22 AM PDT

    Do you blog about programming?

    Recently I developed something in .NET Core to query and download files from SharePoint using the Graph SDK, apparently the customer wants to sue my employer because I blogged about it. All the code is anonymous and there is no trace back to the customer.

    Basically it involved only a couple of snippets.

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

    What came first TF-IDF or Google?

    Posted: 30 Apr 2020 07:06 AM PDT

    WILL PAY MONEY$$$$$ HELP WITH/DO MY PROJECT ASAP.

    Posted: 30 Apr 2020 01:21 PM PDT

    Can someone please do my /help me on my final project. I have to use jupyter Notebook here are the assignment details. PM me if you can help ASAP, I will provide the necessary files (one of the files provides more detailed and concise instructions, easy to follow) shouldn't be too much work, set up and outline for code already provided. Willing to pay money! !!!!

    ***using jupyter notebook on anaconda

    This note contains all the material we discussed the final project. Also, it consolidates information that has been previously posted on Sakai or emailed to you.

    Your final project is to build a classifier that predicts the gender of a person based on ten brief essays this person writes about himself or herself. The base data set for this project is a file containing nearly 60,000 personal profiles from the online dating service OkCupid. The assumption we make is that men and women use different words to describe themselves in the context of online dating. Each of the 60,000 profiles in the data set contains 10 essays answering various questions (describe yourself; your idea of a perfect vacation; etc).

    On 4/20 and 4/22 we explored the dataset and worked on a scaffold notebook related to this project. Those files, as well as the data set, are listed below:

    • the dataset (this is a zip file about 56 MB and expands into a CSV file about 150 MB large);
    • a simple notebook exploring the dataset;
    • a notebook with an outline for the work needed.

    The data set is quite large, but the exploratory notebook imports only 100 records, for simple experimentation and familiarization. You may increase the number of imported records, but be mindful of your computer's limitations. My recommendation is that you do all your code development with 100-800 records. When you are satisfied with your code, you can test it with 2500 records, and then the entire data set.

    Your deliverable for this project is a notebook that:

    1. reads the dataset from the file profiles.csv (the notebook and the csv file are expected to be located in the same folder);
    2. creates a data structure that maps the presence or absence of words in each user's essay;
    3. use the map from above to create training and testing data sets associated with the gender of the user;
    4. use the sets above to determine the efficiency of a Gaussian Naive Bayes (GaussianNB) classifier and of a Support Vector Machine (SVC) available from the sklearn package.
    submitted by /u/yeezyyeezy1997
    [link] [comments]

    No comments:

    Post a Comment