• Breaking News

    Wednesday, October 21, 2020

    How many positive integers less than or equal to 123456 have a multiple that consists of all the same digits? (eg 101 works since 101 * 11 = 1111 which consists of only 1s) Ask Programming

    How many positive integers less than or equal to 123456 have a multiple that consists of all the same digits? (eg 101 works since 101 * 11 = 1111 which consists of only 1s) Ask Programming


    How many positive integers less than or equal to 123456 have a multiple that consists of all the same digits? (eg 101 works since 101 * 11 = 1111 which consists of only 1s)

    Posted: 21 Oct 2020 10:41 AM PDT

    I'm currently helping my brother with a programming assignment that reads: "How many positive integers less than or equal to 123456 have a multiple that consists of all the same digits? (eg 101 works since 101 * 11 = 1111 which consists of only 1s)"

    We figured out a naive solution like this:

    def split(word): return [char for char in word] def all_same(items): return all(x == items[0] for x in items) numMultiple = 0 for i in range(1, 123457): for j in range(1, 123457): tmp = i * j strtmp = str(tmp) tmplist = split(strtmp) if all_same(tmplist): numMultiple += 1 print("final answer -> ", numMultiple) 

    Is there a smarter solution to this problem?

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

    Is there any way to know the language in which the application is programmed?

    Posted: 21 Oct 2020 09:21 PM PDT

    My friend has a mobile application and i just want to know which language he used to programming his app! So, is there any way to know which language he did use!

    By the way, i have asked him but there is no answer!

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

    Do you believe more successful devs around you make you a better dev?

    Posted: 21 Oct 2020 01:48 PM PDT

    I've always thought, that one of the most effective ways of personal growth is to surround yourself with more experienced and successful people.

    You begin to attract the winning mindset and formulas to make things work and become inspired by their insights and their sense of confidence.

    Do you agree with this in coding career? If you do, what's something you learned from them?

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

    Practically, what is the best way to store common libraries/modules developed in-house and used in multiple projects?

    Posted: 21 Oct 2020 08:54 AM PDT

    I have several modules/libraries that either I or my co-workers wrote, and these modules/libraries get used in lots of projects. Right now, these are not stored in any central place, and are just copied from one project to another and modified as needed. They are, in there originally written states, general enough to be useful in lots of projects and easily integrated with one another. The problem is, if we want to change something about how a particular modules works in several projects, we have to go make those changes several times.

    What are common practices for properly maintaining and storing libraries that get used a lot? Create a version control repository that houses them and import into other projects when necessary? I can see that working with git but maybe not svn as easily (but I am much more familiar with git).

    I suppose the main issue I would like to solve is that I am tired of copying common code from one project to another.

    I've tagged this as "Engineering" because it seems this question applies to how to go about solving a problem in an engineering workflow/team.

    Thanks!

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

    How much harder is it to develop a good search engine for video (say one that searches YouTube) than for text websites?

    Posted: 21 Oct 2020 09:12 PM PDT

    I'm just starting to learn programming, as I want to create a search engine that searches text websites as well as video. How hard is it to effectively create a good video search algorithm from the outside? YouTube obviously has it's own data so they can create a search algorithm tailored to that, but is there that much data on video available on the internet to make a search engine for video good?

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

    Is a temp agency a good way to get a foot in the door?

    Posted: 21 Oct 2020 07:45 PM PDT

    I got my bachelors in Computer Science in May but i've had a real hard time finding a job, closest I've ever gotten to a call back until recently was "we're going with other candidates but please keep applying k bai". I've just been working at Target to have some income but I'm not making any serious money and I want to move out of my parents house some day.

    I've gotten a call back from a temp agency and they seem pretty interested in me but I don't really know much about getting placed with something like that. Is this a good career move or should I just keep pounding the pavement best as I can on my off days?

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

    Differences between a "preprocessor" and "superset" ?

    Posted: 21 Oct 2020 03:25 AM PDT

    TypeScript is considered as a strongly typed JavaScript "superset".
    Sass is considered as a CSS "preprocessor".
    When transcompiling languages, I guess it implies : parsing, tokenizing, AST, compiling into some language but what does a "preprocessor" that a "superset" doesn't and vice-versa ?

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

    How to contribute to "The Computer Language Benchmarks Game"

    Posted: 21 Oct 2020 05:50 PM PDT

    I'm looking to contribute my own program to the Computer Language Benchmarks Game and from what I see, I need to submit my program via a Gitlab issue on https://salsa.debian.org/benchmarksgame-team/benchmarksgame.

    If anyone else has submitted how did you do so? I'm currently having the following 2 issues:

    1. I cannot make an account on https://salsa.debian.org. When i sign up it complains my email is not from an acceptable domain (gmail). Is this not meant to be open to the public?
    2. I can't get the benchmarking Python2 scripts to run because of missing dependencies that aren't present in my distro's repos (Fedora 32). I'm open to installing a VM with older repos and I tried running it on a Debian 10 VM, but I got the same dependency issue (namely import gtop missing - installing libgtop2-dev didn't help as it only seems to provide a python3 package).

    If anyone else has submitted a program previously, I would really appreciate if you told me how you went about doing that.

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

    What CSS framework would you recommend to pick-up in 2020?

    Posted: 21 Oct 2020 01:48 PM PDT

    So far I've tried just Bootstrap and a bit of Bulma.

    Tho there are Tailwind, Foundation, Materialize, Skeleton and many others (most of them I have not even heard before).

    I'm interested to hear what's your CSS framework of choice for this year and the main reasons behind your choice?

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

    Google Cloud API - Virtual Machine

    Posted: 21 Oct 2020 12:18 PM PDT

    Hi Everyone

    I approached a web dev to assist in setting up an API for my eCommerce site, and he recommended we use a virtual machine to handle our workflow. Essentially, my product is digital, and once the customer makes a purchase and the order fulfilled via the payment gateway, the product is delivered to them via email.

    My question is if it is really necessary to do so using a virtual machine or if there is a better way to achieve this?

    Many Thanks!

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

    Should I use gRPC with or without a full application framework?

    Posted: 21 Oct 2020 03:05 PM PDT

    gRPC on its own entirely supports an RPC framework. With it, you can use the server object to listen and dispatch calls. Generally speaking this is sufficient to deploy a simple application in.

    The main question I am interested in is in the professional setting, what is the general consensus on integrating a grpc framework on top of existing frameworks like Spring Boot or Dropwizard, especially when you are only interested in using the capabilities of gRPC and not rest?

    Is it worth investing the time to build around the additional capabilities you need just as logging, metrics, injectors, middleware, application configurations, etc that otherwise already come equipped with an application framework like Spring Boot or Dropwizard?

    Eventually, our org will want to deprecate support for rest and so we are looking for a progressive way forward in that regard.

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

    Run matlab written program with the same or less time in a .Net web app

    Posted: 21 Oct 2020 02:49 PM PDT

    I have this matlab program who takes inputs from an excel file and runs for like 2 - 3 minutes until the excel output is ready.

    Now, I need to put this into an ASP .net web app, what are the best options to run it fast as the same, or preferably in less time?

    Translating it to C# it pas from 2-3 minutes to something like 20-30

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

    Does c# have pointers/ is their garbage collection good? / are they default pass by value ?

    Posted: 21 Oct 2020 02:35 PM PDT

    I'm thinking about making a game. I took c++ in uni and I hated it. Had to manually control everything. Hopefully c# is a higher level language.

    Thanks

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

    Elastic Search vs Algolia

    Posted: 21 Oct 2020 02:07 PM PDT

    I've seen online that algolia is more expensive, but elastic search takes longer to set up. Does anybody have experience with how these two play out over time?

    Wondering if Algolia is worth the time investment now, given if you are successful...it seems like cost and scalability favor Elastic Search. Thank you!

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

    What social links should devs include in their resumes?

    Posted: 21 Oct 2020 01:48 PM PDT

    Including just an email might not be enough, as recruiters would like to take a deeper look of your online presence and developed projects.

    There are quite many to choose from - Personal portfolio, GitHub, Facebook, Twitter, Dribble, Behance, StackOverflow, Codepen, Codewars, LinkedIn, Medium, DEV.to and so on.

    So, which ones did make it in your current resume?

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

    Ghost parameters

    Posted: 21 Oct 2020 01:39 PM PDT

    Why Qt says "money.h:14: error: overloaded 'operator+' must be a unary or binary operator (has 3 parameters)" if there are only 2 parameters/arguments in "operator+"?

    money.h

    #ifndef MONEY_H #define MONEY_H #pragma once #include <string> using namespace std; class Money { public: Money(int, int); int getEuros()const; int getCents() const; string toString() const; //Money plus(const Money&); Money operator +(const Money& m1, const Money& m2);//here is a problem private: int euros, cents; }; 

    money.cpp

    #include <iostream> #include "money.h" using namespace std; Money::Money(int e, int c) { euros = e; cents = c; } int Money::getEuros() const { return euros; } int Money::getCents() const { return cents; } string Money::toString() const { return "EUR " + to_string(euros) +'.' + to_string (cents); } /*Money Money::plus(const Money& other) { return Money(euros + other.euros, cents + other.cents ); }*/ Money operator+ (const Money& m1, const Money& m2) { int e = m1.getEuros() + m2.getEuros(); int c = m1.getCents() + m2.getCents(); return Money(e + c/100, c % 100); } 

    main.cpp

    #include <iostream> #include "money.h" using namespace std; int main() { Money m1(2, 50); Money m2(0, 52); Money sum = m1 + m2; cout << "Sum = " << sum.toString() << endl; return 0; } 
    submitted by /u/Ingvarr99
    [link] [comments]

    Deciphering company names

    Posted: 21 Oct 2020 06:36 AM PDT

    I have a project that I have to do, and I've hit a wall where I have a list of 5000 company names (some duplicates) where I have to get the industry they belong to. I have done about 1500, taken from a file I had before but the others are blank.

    My programming knowledge is basic (Python, SQL).

    Rather than manually searching one at a time, was wondering if there was a way to do this programmatically?

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

    Hack obsolete Amazon Dash button to send email?

    Posted: 21 Oct 2020 08:41 AM PDT

    I'm looking to setup a simple inventory control for our stockroom. Years ago I was thinking about hacking a Amazon Dash button to send an email when pushed to notify the purchaser that inventory is low.

    I see in many of the guides to hack a button, it requires you to get some info from the Dash button by using Amazon's app. Amazon no longer supports these buttons so I'm wondering if anyone knows how I can get the information from the button without Amazon's app?

    Also, if anyone has done this before and has the easiest, simplest way to make the button send a short custom email, I would greatly appreciate the link or instructions.

    Alternatively, if anyone had any other options to use a physical, wireless, long lasting, cheap button to send an email, I'd be open to that as well.

    Just to add, I know there are tons of stockroom inventory options out there, but for the way my organization operates, I'm positive this is the best route.

    If there's a different sub I should be posting in, please advise and I'll move my question there.

    Thank you

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

    Any learning material for React.js?

    Posted: 21 Oct 2020 08:13 AM PDT

    I am not very used to web development yet- I used to work on Computer Vision projects until now. I have built small Vanilla JS projects, but that's it.

    I need to use React on the front-end for a large school project. I am not sure if I can divulge too many details of the project, but here are a couple of the features I'll be working on:

    1. User authentication
    2. A social page for creating new (text) posts and viewing older posts (and their comments), and upvoting/downvoting/commenting on them.
    3. A separate hub for uploading photos and documents- kind of like the resources page of any MOOC, except for that any user can put them up

    So far, I've followed through the following tutorials:

    https://www.youtube.com/playlist?list=PLDyQo7g0_nsVHmyZZpVJyFn5ojlboVEhE

    I'm looking for advice in terms of:

    1. The right roadmap for learning relevant React concepts
    2. Code quality and file structure of the components and screens

    I am sorry if a similar question has been asked before, or if my question is vague. Any help would be much appreciated!

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

    In which languages is a dictionary a native column type?

    Posted: 21 Oct 2020 11:08 AM PDT

    for example

    game_rules: {'player_age' < 30, state = 'NY'}

    in rails, JS or postgresql can you put a whole dictionary as a value for another key? is it cast as json, long string etc?

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

    Spreadsheet update request as a form

    Posted: 21 Oct 2020 07:21 AM PDT

    Can anyone recommend an online form builder that would work for this scenario?

    I have a spreadsheet with a list of customers, the total number of records is 2,500. Each customer is assigned to one of 50 Account Managers. I want each Account Manager to review their customer list and the associated contact name and then either approve the name, edit the name or mark the customer as "closed". I would like each record to display as a single form with those options with a next button to cycle through the list. Hope that makes sense.

    In the past we have sent each Account Manager their own spreadsheet to mark up and then e-mail back but I would prefer an online form option if I can find it.

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

    Making a Restful Web Service

    Posted: 21 Oct 2020 07:16 AM PDT

    Hi guys, I'm a bit in a pickle, 'cause this is one of those situations where I don't know how to properly search for a solution on google and I just find tutorials for stuff I don't really need.

    In short, I've been working on the backend of a project for work for the past few months, but said project has been put on hold when the front end dev was moved to another team.

    I want to try to save this project by starting to work on the front end but I don't know absolutely ANYTHING, save for a few javascript notions I forgot immediately after finishing the exam in uni.

    Right now, I have a database up and running (etcd.io), the backend is fully operational and I have created a small set of functions with Flask to implement the rest api.

    The problem is that I'm clueless when it comes to developing a web page: what I need to get started would be just a simple blank page with just a couple of buttons that would call some of the rest methods to get (and print) some of the data saved in the db but I literally don't know where to start.

    A few extra things:

    • The website (is it even correct to call it website?) needs to run only on localhost for now, and most tutorials go through explaining how to setup providers, url and stuff like that. It's already hard for me to understand all of this, that stuff just makes it harder to parse all the information I actually need
    • As IDE, I'm using Visual Studio Code and I CANNOT use anything else (the machine I use at work is filled with restrictions, including downloading and installing another IDE)
    • I just need some very basics information, right now I can't even set up an hello world page. Mind you, I know I can just create a txt file called index.html and run it, but I'm working on a remote machine on which I can work only using either VSCode or from terminal (putty, git bash etc)

    I know it's a very broad question to make, but just a few heads up would be absolutely great, I really want to try to save the project on which I've been working for months

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

    I found something weird in JS.

    Posted: 21 Oct 2020 10:59 AM PDT

    Well to make things simple: array = [x, y, zs...] is allowed [x, y, zs...] = array is allowed array = [...xs, y, z] is allowed [...xs, y, z] = array, is.... Not, allowed. (invalid syntax) This seems off, can I get any answers.

    submitted by /u/Californium-292
    [link] [comments]

    Scrap Zoominfo

    Posted: 21 Oct 2020 10:06 AM PDT

    Hello,

    I want to scrap info I get off zoom info via some kind of Macro, like the old imacro,

    Anyone got any ideas?

    Thanks

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

    No comments:

    Post a Comment