• Breaking News

    Monday, October 26, 2020

    Why do so many scam websites actually deliver on their promises if you press the right buttons? Ask Programming

    Why do so many scam websites actually deliver on their promises if you press the right buttons? Ask Programming


    Why do so many scam websites actually deliver on their promises if you press the right buttons?

    Posted: 26 Oct 2020 05:53 PM PDT

    I dunno if this quite fits here, it doesn't have to do with coding per se, but malware. How come there's so many "too good to be true" websites that are actually too good to be true? Yeah, they do everything in their power to make you click on the wrong button, but if you dodge all the phish hooks there's actual value in using the website. I'm talking about the kind that let you download Youtube videos and watch movies for free and torrent games, softwares, porn, etc. Any time I've played around with these sites I can usually get what I want with seemingly no consequence (although I will admit I caught a weather bug once a few years ago). If the goal was to scam people, why give them a chance to get the actual product, and unscathed at that? Is it to build trust so they tell their more gullible friends about it? It just seems like a lot of work and kind of counterproductive to the con.

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

    Shall I really use eclipse over intellij just because my tech leader say so?

    Posted: 26 Oct 2020 12:05 PM PDT

    I used to work with Intellij in the past three years and never had a problem. So I am more familiarized with Intellij and I find it more powerful. Lately, I have joined a team that works with eclipse as Java IDE. And my tech leader said that I must conform with the team and use the same IDE although I explained to him that I am more productive with it and switching to eclipse will get me through a learning curve again.

    Is conformity a valid argument from him?

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

    As a linux kernel developer

    Posted: 26 Oct 2020 06:32 AM PDT

    Well, I need a genuine advice on what are the benefit of being linux kernel developer. What type of job opportunities will come along the way if I contributed to linux kernel. To say, I want to contribute to linux kernel but also want to use that skill to earn money in means of job, contract or freelance. Is it possible?

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

    What development environment promises the least amount of time spent fighting with your IDE or dependency management?

    Posted: 26 Oct 2020 01:42 PM PDT

    Is my current level of frustration clearly evident from my question? Well, I'm sure we've all been there. I ask the above as someone currently programming iOS (using Xcode and CocoaPods). I'm not criticizing my current platform and toolset. I just want to know, has anyone found a place in the programming world where you spend less time fighting with your tools and more time actually programming? If so, what is that? Thanks!

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

    What do you guys think of my first project?

    Posted: 26 Oct 2020 09:57 PM PDT

    This is my first project for my portfolio, Do you guys think it is strong for a first project? If you hire JR devs what would you think of something like this

    Heroku hosted: https://movie-lookup-mattr.herokuapp.com/

    Git Hub Repo: https://github.com/mattColeRichardson/Matthews-Movie-Rating-System

    Feel free to be harsh, but constructive criticism please, I just want to be a better programmer.

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

    Question about git rebase vs merge

    Posted: 26 Oct 2020 02:25 PM PDT

    Example : Let's say I had made 20 commits on my feature (let's call it "F") branch. Then when I finished feature F, I rebased my branch on the dev branch to get the latest changes. Then my MR got validated, and my branch got merged into dev.

    Then let's say a few days later, we discover the app crashes on simulator, and we find out it happened before my feature F.

    Then two months later, we discover a bug on my feature on simulator. Now if I want to test which commit introduced the bug, I'll get a crash, on every commit of my feature branch, even if it was not crashing back then.

    TLDR; When you go back to an old commit in your history, you possibly cannot test it because a bug was introduced on the branch it was rebased on, even if it was working at the time.

    Or maybe I am missing something here ?

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

    How do I sync a user's Amazon account with my website?

    Posted: 26 Oct 2020 05:33 PM PDT

    Not too sure where else to ask so if this is not the place please feel free to point me in the right direction.

    Basically, I am wanting to sync a user's Amazon account with my website when they sign up for my e-commerce site.

    This is to get access to purchase history, recommendations, etc.

    Is there any way to do this? Thanks

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

    Python3: how to allow operators as a string input (eg. and, or, not)

    Posted: 26 Oct 2020 05:23 PM PDT

    I'm making a program where I take a sentence or collection of words as a string input. Problem is, if the word "and" or any other built in python operator is in the string the program throws an AttributeError.

    I've tried searching online but I can't find a good answer. Can anybody enlighten me??

    Thanks guys!

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

    How can I test how many "instructions" your cpu can make in a second?

    Posted: 26 Oct 2020 03:49 PM PDT

    In a programing fundamentals video I saw a long time ago I learned how to write a script that counted the number of 'instructions' the cpu could do and print that number to the terminal. I totally forget how to do this and i'm having trouble finding a quick resource. Can someone link me to a resource? I'm not sure if instruction is the right term

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

    What’s an industrial way to handle P2P connections?

    Posted: 26 Oct 2020 03:03 PM PDT

    I have a bunch of users that send messages to each other. UDP hole punching is a bit of a hack so I need a server that users connect to that forwards messages between clients.

    Are there any paid services where I can do this? I'm happy to sort out a dynamic DNS if I can't get a static IP, and I'm happy to write the parallel C++ program for handling connections if the service doesn't provide their own API.

    It's a toy project at this stage but I want to design it in a way that could grow into something commercial.

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

    Whats the best way to deal with this, Invalid LatLng object: (undefined, undefined)?

    Posted: 26 Oct 2020 02:55 PM PDT

    The last string object of the .csv is an empty string. What is the best way to deal with it so the undefined error is not thrown?

    var earthQuakeData; function preload() { earthQuakeData = loadStrings('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.csv'); } function setup() { var map = L.map('map').setView([32.36198331510819, -64.77092742919922], 0.5); mapLink = '<a href="http://openstreetmap.org">OpenStreetMap</a>'; L.tileLayer( 'https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' + '<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' + 'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', maxZoom: 5, id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1 }).addTo(map); for (var i = 1; i < earthQuakeData.length; i++) { var data = earthQuakeData[i].split(/,/); // console.log(data) var lat = data[1]; var long = data[2]; L.marker([lat, long]).bindPopup('test').addTo(map) } } 
    submitted by /u/Gr1mTV
    [link] [comments]

    Looking for a durable laptop with good specs that supports Ubuntu

    Posted: 26 Oct 2020 11:02 AM PDT

    I'm newer a developer, but my current laptop is kind of a clunker for budgetary reasons. I'd like to upgrade now but there are a few specific things that I need.

    My last two computers were Acer Aspire and Thinkpad Edge e545. They both were decent budget workhorses, but BOTH computers ended up with broken hinges long before the actual computer stopped working. Extremely frustrating to have a perfectly good computer ruined by a cracked hinge,

    So, I need a laptop with at least 8gb of ram preferably 16g of ram, solid state hard drive preferred. Easily upgradeable. One of the things that appeal to me about the true Thinkpads is the accessibility of the internal hardware. But it needs to be more durable than my past computers, I can't have a hinge breaking after a year. And lastly, it needs to have good support for Ubuntu. My development requirements are getting more specific, and I'm running into a lot of issues with windows.

    Any recommendations? I'd like to stay under 1000.

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

    How likely is UDP hole punching going to work?

    Posted: 26 Oct 2020 02:28 PM PDT

    I want to have users connect to each other on a lightweight 'seed' server and then send bulky data directly to each other over a network. I can use a dynamic DNS service for the server but the users will most likely be behind NAT. I read about UDP hole punching. As far as I can tell it's a bit of a hack? If users are on home computers, is UDP hole punching likely to work for most users? Is it bad to rely on or is it fairly standard for P2P connections?

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

    What headphones do you use while coding?

    Posted: 26 Oct 2020 08:15 AM PDT

    What headphones do you use? I'm looking to get some that will be good for use during hours of work, so comfort is a must. If they double as solid gaming headset that would be a plus as I am a pc gamer. Budget is pretty open, willing to pay a bit more if it means all day comfort and quality

    Thanks for the help!!

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

    Python help

    Posted: 26 Oct 2020 01:42 PM PDT

    So im trying to make a program count how many odd numbers were generated. I have where it will print from a random range of numbers and will seek out any odd numbers but now I need to say how many of those numbers were odd. For example lets say these showed up on the output after my code. 27 49 11 53 I want it to print something like " 4 odd numbers were generated". Any help would be greatly appreciated.

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

    Unit tests are > 50% of repo size. How to reduce?

    Posted: 25 Oct 2020 10:14 PM PDT

    I maintain a scientific data repository and we have unit tests to make sure changes don't affect key calculations. However, over time we've added so many unit tests that they are now well over 50% of our repository. It's now taking 30 minutes just to clone the repository, and most of the time when we need to clone it's not to run unit tests.

    Is there any way to mitigate or eliminate the outsized effect the unit tests are having on our ability to do other stuff? I was thinking maybe just zipping the test vectors, which would reduce the data size by about 80%. If there's something else we could try, I'd be open to it

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

    Question for the NDS

    Posted: 26 Oct 2020 07:33 AM PDT

    So i was wondering what programming language did the Nintendo DS console was built on. I'm very curious on how the console operates and would like to put my questions here on this subreddit.

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

    Program with multiple variables

    Posted: 26 Oct 2020 01:24 PM PDT

    Hello guys, I'm having trouble with my homework, I would be really grateful if you guys can help me.

    I need to write a program where you can enter sales for 4 salespersons for 5 months

    example

    sp (saleperson) 1: jan: 200. feb: 200, march: 200, april: 300, may: 150

    sp 2: jan: 100. feb: 200, march: 500, april: 300, may: 0

    sp 3: jan: 150. feb: 300, march: 500, april: 300, may: 50

    sp 4: jan: 70. feb: 50, march: 40, april: 120, may: 100

    Then the program needs to print the following information:

    The salesperson that had more sales in those 5 months

    The salesperson that had the least sales in those 5 months.

    The month that had the most sales.

    The month that had the least sales.

    The sum of the sales between the 4 employees in those 5 months.

    And that's it.

    I know how to write it I think but I reckon it's not the most efficient way, my principal concern is the variables, as I was going to create the following variables.

    sp1, sp2, sp3, sp4

    and then I was going to create

    sp1_jan, sp1_feb, sp1_mar, sep1_april, sep1_may

    and that for each of the 4 salespersons

    I know it sounds dumb and I reckon there must be an easier and more efficient way, however I've only written simple programs with one or two variables, simple operations and ifs and loops.

    Is there another way that I can do this? I'm not asking for the code or anything like that, I'm just asking for some guidance about what can I use or research in order to not create a huge amount of variables and make a redundant mess.

    Thanks.

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

    Making Facebook Chatbot from Zero

    Posted: 26 Oct 2020 12:54 PM PDT

    My native language isn't really popular. So there aren't Chatbots using my native language. What are languages supported for making Facebook/Messenger chat bot from zero? What libraries are used?

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

    A question about unit tests and code coverage

    Posted: 26 Oct 2020 12:10 PM PDT

    As part of a programming assignment, I've been asked to write a function which converts numbers to their respective word representation. These numbers could be anywhere from 0 - 999,999. (including up to 2 decimal places)

    I've been asked to 'provide unit tests that do a code coverage of 90%'. I have no idea what this means. Can anyone please elaborate?

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

    Areas of software development that aren't fast paced?

    Posted: 26 Oct 2020 08:21 AM PDT

    Hello!

    I've been a web developer for a few years now. Even though I manage to keep up, I'm still quite overwhelmed by how much of everything there is to learn and how many layers of abstractions there are. It also feels a bit like doing the same things over and over again.

    I'm looking for areas of development, project ideas etc that are more stagnant/stable but still interesting. Something that I can have fun working with and master instead of playing catch-up. It doesn't have to be commercially viable.

    Some resources, courses etc. would also be greatly appreciated besides the ideas.

    Cheers!

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

    [Android] How to find mEditText at each position of ViewPager2?

    Posted: 26 Oct 2020 11:37 AM PDT

    I have a few EditText views in a ViewPager2. When I click the save button, I would like to update a database String to hold each editText's value separated by commas. So something like

    ViewPagerAdapter.java

    for(int i = 0; i < getItemCount(); i++) { String databaseString1 += editText1.get(position).getText().toString(); String databaseString2 += editText2.get(position).getText().toString(); //etc... } 

    The problem is, I don't know how to get a separate ID/position for each editText.

    I also have a List<String> that I'm using to set the EditText's initial values, so if it's easier to update that on each page scrolled or something and then save it to the database, that could work too. I tried using a TextWatcher to do this a couple days ago but I couldn't get it to work, plus I heard it was too resource heavy in the onBindViewHolder.

    I could really use some help here. Any suggestions?

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

    I got crt and txt file (with private key text), how to use them for securing postgresql connection (centos) and how to create client certificate file for windows machine (to import with mmc)?

    Posted: 26 Oct 2020 11:34 AM PDT

    Are there any popular, widely-used languages that are finished being worked on?

    Posted: 26 Oct 2020 11:07 AM PDT

    It seems every widely-used language is still having work done. This makes sense for something like Rust and Elixir, even JS and Python, but it seems like C++ is still having work done on it too.

    Are there any that are just finished? Like not receiving any huge new features every year, but have not fallen into obscurity?

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

    Creating a fillable form

    Posted: 26 Oct 2020 11:06 AM PDT

    Hi everyone,

    I'm looking to create a form or questionnaire that a user can fill out, and have those answers load into a database where I can track submissions. Google Forms and Microsoft forms are close to what I'm looking for, but they lack certain functionality; such as if a user were to go back and change the answers, I would want to track those changes.

    What would be the best way to do this?

    Thanks

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

    No comments:

    Post a Comment