• Breaking News

    Monday, July 15, 2019

    [C++] Multiplying 2 ints appears to return the wrong result Ask Programming

    [C++] Multiplying 2 ints appears to return the wrong result Ask Programming


    [C++] Multiplying 2 ints appears to return the wrong result

    Posted: 15 Jul 2019 08:10 PM PDT

    How does Uber work?

    Posted: 15 Jul 2019 09:50 PM PDT

    Hi! I've been wondering this for a little while. This isn't my field of expertise, so I don't know what I don't know, and I don't know what questions to ask or how to phrase them. I'll try my best:

    Uber has an app for their drivers and an app for their passengers. When a passenger requests a ride, the service finds nearby drivers, puts them in an order of best match to worst match based on a few factors (the most obvious of which is proximity), and pings those drivers in order on their app until one accepts the ride.

    Technically speaking, what is happening there? In other words, if you were to build a system like that from scratch, what would you need to do? Which technical protocols are in use here?

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

    How to engage a co-worker that completely rewrote all my contributions to a project

    Posted: 15 Jul 2019 08:29 AM PDT

    I recently started work on a new project and was fortunate enough to be given a few weeks to add a new piece of functionality to a reasonably small application.

    The developer who had written almost all the functionality to date gave me a fair handover before taking off on holiday for two weeks.

    When the developer came back, I walked him through my changes, explaining where things could probably be better and gave him a bug to work on to get them familiar to the project again.

    The bug should have taken 2-3 hours tops to fix, but instead the developer spent 4 days completely rewriting the work I had done.

    They definitely improved some sections of the code, but then also made some changes that seem completely opinion based.

    Beyond calling out the work as completely unnecessary, is there anything I should consider doing first?

    How have your experiences in these situations been?

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

    How to contract a good API developer when you don't know anything about programming?

    Posted: 15 Jul 2019 07:13 PM PDT

    Yeah, só here it is!

    I wanna build a new flight aggregator (a.k.a. Skyscanner, momondo, Kayak, etc) and launch it as a start-up (yeah, nothing new, I know...)

    I know how to start a new business but don't know anything about programming at all.

    All I know is that I need an API to be developed. I started searching for freelancers online but I'm kinda lost because: 1- I don't know how to discover If the candidates are good enough. Don't know how to test they. 2-I don't know what to make a technical description of the job to be done 3-I don't know how to see If the job they deliver is good enough 4-I don't know how much $$$ to offer.

    What can I do to start this project? (funny answers will be replied with even funnier comments haha)

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

    Finished learning vuejs

    Posted: 15 Jul 2019 06:15 PM PDT

    Hello im just an it student i finished learning vuejs and i want to know why im confused when i try to create a website on my own (ik the codes and everything) but i feel like idk how to code how to arrange my files and my codes and how i train myself to be professional and even tho i can call myself a fullstack developper after learning it (ik somebackends)

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

    [Technical] Windows Always on Top

    Posted: 15 Jul 2019 10:00 AM PDT

    Good day Reddit programming community,

    I have an app idea, with its key feature being that it always stays on top of other windows.

    I have looked briefly at this feature in Windows, and it seems that having a window stay on top is no easy task.

    For example, Chrome, or any web browser, would not have this feature (correct me if I am wrong).

    Moreover, even if I am able to create a native application for Windows, would I still need to install another third party program, like Autohotkey, for my application to work?

    In summary, if I am able to make a simple standalone GUI that can stay on top of other windows, then I can build my app into that GUI and be forever grateful of that feature.

    Any suggestions on creating this feature would be greatly appreciated. Thanks for your help.

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

    CS paradigm for reducing the number of comparisons given an array of conditions (JS)?

    Posted: 15 Jul 2019 05:15 PM PDT

    Hi All,

    I am trying to improve the efficiency of a loop which

    1. Looks up a list of conditions that may apply to the current context
    2. Checks all conditions against the current context
    3. Executes any callbacks for passing conditions.

    The problem is that I have a ton of condition objects to check which share the same structure and often times check the same conditions (ex. 7 different conditions all execute when (recordType is type1, type2, or type3)).

    Since the conditions are known ahead of time is there a way to flatten or 'tree-shake' my conditions so that I am executing the minimum number of comparisons? I'm mainly interested in static methods but dynamic methods could work too.

    Conditions are stores as JS objects in the with the assumption that an empty array means all values pass for that attribute:

    {

    "recordTypes":["type1","type2","type3"],

    "roles":["admin","manager"],

    "subsidiaries":[],

    "custom":[(eventType === "create")],

    "callback": function(){

    callbackOne();

    callbackTwo();

    ...

    }

    }

    And executed like:

    conditions.forEach(function(condition){

    var passing = false;

    if(condition.recordTypes.indexOf(context.recordType) !== -1){

    passing = false;

    }

    if(condition.roles.indexOf(context.recordType) !== -1){

    passing = false;

    }

    if(condition.subsidiaries.indexOf(context.recordType) !== -1){

    passing = false;

    }

    if(condition.custom.indexOf(false) !== -1){

    passing = false;

    }

    if(passing){

    condition.callback();

    }

    });

    Any help is appreciated!

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

    Why are you supposed to pay for ISO (and other standards organizations) standards?

    Posted: 15 Jul 2019 07:54 AM PDT

    Trying to install HLA (High Level Assembly)

    Posted: 15 Jul 2019 12:12 PM PDT

    I'm going through a book on programming in assembly language, and I can't get past the install.

    I asked the question on stackoverflow- https://stackoverflow.com/questions/57032541/installing-hla-high-level-assembler-on-macos-mojave , but it hasn't attracted any attention.

    If anyone has any ideas of what I can do or what I need to learn to solve this problem, I would really appreciate it.

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

    Library for webautomation with multiple profiles (cookies, proxies)

    Posted: 15 Jul 2019 11:53 AM PDT

    I'm lookign for a recommendation, since there are many frameworks out there and there might be a more niche one fitting my use case better than the popular ones.

    I'm looking to automate a browser game, so I need a JS engine. Rendering optional but would be a plus.

    I also need support for using different HTTP proxies and cookie storage per instance/tab.

    I'm open to any programming language, my order of preference would be Kotlin/Java > Python > C# > JS.

    I experimented with Pupeteer, PhantomJS and Selenium in the past, but didn't really work well for multiple sessions (cookies & proxies) out of the box. Does anyone have recommendations on what I could use here without major headaches? Thanks!

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

    I have just started learning Angular JS and I need some help in creating my own Login Page.

    Posted: 15 Jul 2019 02:23 AM PDT

    THis is the stack I am about to use for my first web project.

    Front End: Angular 8 Back End: PHP Database: Firebird 

    This is my first actual project that doesn't involve a coarse,etc. I am stuck at the basic login page, which will take user-data from the Firebird database. As of now, I haven't found any confident source which guides me to do that.

    I am following the project structure from the official Angular tutorial.

    Here is my github page to see my project

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

    Resources to improve project and task estimating?

    Posted: 15 Jul 2019 05:08 AM PDT

    Can anyone recommend any resources on project estimation? I am working along side the Solutions Architect, and we have a team initiative to improve the quality of our pre project estimations.

    Can anyone recommend some good learning material on the subject? Books, tutorials, online learning, free or paid, doesn't matter, we have the time and available budget.

    Thanks.

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

    Advice to Get Started with Machine Learning Using R

    Posted: 15 Jul 2019 08:08 AM PDT

    Hi all,

    I am a geoscientist with very limited experience in R, but I am working to figure it out. I recently learned about machine learning, more specifically "unsupervised" machine learning, and I think that these tools could be extremely useful to help address a problem I've been working through. To sum it up, I want to compare chemical concentrations predicted by a model with manual samples collected over a large region, as I suspect that one specific region will not be accurately represented by the model.

    I have been unsuccessful in my attempts to find an intuitive beginners guide to learn this method of programming, is there a way I can learn to use machine learning while having little to no R experience? Are there any packages I can download that are more of intuitive templates?

    Thank you,

    theyhydrogeologist

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

    Are there any free Flash IDEs?

    Posted: 15 Jul 2019 06:49 AM PDT

    Hey there!

    I would love to make a game with Flash and was wondering if there are any free Flash IDEs available?

    I looked at Adobe Flash/Animate, but it costs about ZAR 1000 and I can't afford that amount...

    Thanks in advance!

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

    Applescript `is at shell prompt` doesn't seem to work with iTerm2?

    Posted: 15 Jul 2019 06:31 AM PDT

    I'm trying to use applescript to open a new iTerm2 window open a new tab then execute a series of commands, waiting for each to finish before continuing on to the next.

    tell application "iTerm2" tell current window create window with profile "QA" tell current session delay 4 # delay to give the iTerm2 profile time to load and execute its commands write text "sleep 10" repeat while not (is at shell prompt) # I've tested and we never run code in this loop, so it appears `is at shell prompt` is always returning true delay 0.5 end repeat write text "ls -lh" # I'm expecting the sleep 10 to end before the ls -lh command is written, but its written immediately end tell end tell end tell 

    Here I'm expecting the `sleep 10` command to finish before the script exits the while loop, but it doesn't the code in the while loop is never accessed.

    So `is at shell prompt` appears to be always returning true.

    Reading https://www.iterm2.com/documentation-scripting.html I know `is at shell prompt` requires shell integration to function and if not installed it will always return false. So because `is at shell prompt` appears to be returning true and that I can see the little blue triangle in the left margin of my terminal mentioned under "How to use it" here https://www.iterm2.com/documentation-shell-integration.html I think shell integration is setup.

    Kind of my first go around with applescript here Anyone have any ideas what I'm missing?

    My best guess is that I'm supposed to tell `is at shell prompt` what specifically to look at some how, maybe its looking at the wrong shell or a background shell or something?

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

    Recursion schemes

    Posted: 15 Jul 2019 03:47 AM PDT

    I recently became interested in recursion schemes, and I noticed that almost all implementations are in typed languages supporting recursive types (Haskell, Scala, etc.) although recursion schemes also exist in Javascript.

    I would have thought that it would be the opposite, with recursion schemes finding use in bringing structure into languages with weaker structure, to avoid bugs in using general recursion.

    Is there a reason why untyped languages are less interesting in the context of recursion schemes? Are they less useful?

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

    Is this possible (Diagram included) and where can I buy such a device?

    Posted: 14 Jul 2019 11:54 PM PDT

    Can I buy a device that presses a PHYSICAL button when a boolean or something is triggered by an android app or website? So basically, I just need a device that can receive a true/false signal from wifi and then click a physical button to open a garage door when true is activated. I hope this makes sense, thanks. Here's a diagram https://imgur.com/a/dlWJCEX

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

    No comments:

    Post a Comment