• Breaking News

    Wednesday, August 19, 2020

    Job interview told me my resume showed I can code, but not that I'm a programmer. What am I missing? Ask Programming

    Job interview told me my resume showed I can code, but not that I'm a programmer. What am I missing? Ask Programming


    Job interview told me my resume showed I can code, but not that I'm a programmer. What am I missing?

    Posted: 19 Aug 2020 10:19 AM PDT

    I have an information systems degree, and I have coded a bunch on my own. I know a computer science degree would have screamed "programmer", but what aspects make the difference? Other posts say things like writing clean and compatible code, but there must be more. What are things I can study for general programming to move from "you know the languages" to "you know how to program"?

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

    How Pinterest works?

    Posted: 19 Aug 2020 05:18 AM PDT

    I searched the title, and always got a lot of videos on how pinterest is good for digital marketing. No doubt of that, the damn service is so good. Not only for marketing, for new ideas. Specially makeup and interior design. At least, to my experience.

    But I never could find how it works technically. First, I found there's no possibility of uploading images by users. I might be wrong, but in a lot of cases, what I found is only a bunch of images from other websites. So, it made a question in my mind "Is it a web scrapper?".

    After that, I only thought it searches among image sharing websites or services, such as instagram or deviantart. But later, I saw images from news agencies and fashion websites as well.

    So, where the content is coming from?

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

    [visual Basic] $5 to anyone who can help me with a VB issue, 10 mins max

    Posted: 19 Aug 2020 08:26 PM PDT

    Basically i am making a calendar and i am having trouble storing its content in a Microsoft access database any help through a 5 - 10 min zoom call and ill pay you $5 PayPal thanks

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

    Running into 404 error I don't know how to solve.

    Posted: 19 Aug 2020 08:18 PM PDT

    A project I'm working on keeps giving me this error: HTTP/1.1 GET /Static/js/jquery-3.5.1.min.js" - 404 Not Found I don't really know what it means or how to resolve it the JQuery file it's talking about is where it should be and I don't really know what to do with this information.

    submitted by /u/Wiseman-no
    [link] [comments]

    Program Help

    Posted: 19 Aug 2020 08:13 PM PDT

    Hey, small question here, I'm trying to get my program to loop based off user input but it does not restart at the beginning but at the beginning of the first if option. Thanks!

    // Name: Bank Account
    // Function: A standard bank account, with multiple classes to modify said account
    // Date: 2020-08-18
    import java.util.*;
    public class Driver {

    public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double balance = 0;
    double deposit;
    double withdraw;
    String startAgain = "";
    System.out.println("Welcome to TD Bank");
    System.out.println("Please type in (#) what you would like to do from the following options: \n 1. Display Balance \n 2. Withdraw \n 3. Deposit");
    double option = scan.nextDouble();
    do {

    System.out.println("Would you like to go back to the main menu? Y for yes and any other key to quit");
    startAgain = scan.next();
    if (option == 1) {
    System.out.println("Balance is: $" + balance);
    }
    else if (option == 2) {
    System.out.print("How much would you like to withdraw?: ");
    withdraw = scan.nextDouble();
    balance -= withdraw;
    System.out.println("New balance is: $" + balance);
    }
    else if (option == 3) {
    System.out.print("How much would you like to deposit?: ");
    deposit = scan.nextDouble();
    balance += deposit;
    System.out.println("New balance is: $" + balance);
    }

    else {
    System.out.println("Incorrect input, please try again");
    }

    }

    while(startAgain.equalsIgnoreCase("Y"));
    System.out.println("Have a nice day!");
    }
    }

    submitted by /u/fapping-to-you
    [link] [comments]

    Hey! What is your passion project?

    Posted: 19 Aug 2020 07:26 PM PDT

    Show off or tell about what you're working on!

    I'm working on a personal utility web app that tracks my budget, books I've read and want to read, note taking, and other a bunch of other features eventually.

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

    Sky imager project

    Posted: 19 Aug 2020 07:03 PM PDT

    Hello everyone,

    I'm working in a project and I'm still new to raspberry pi and python. So today I have faced a small problem.. in the other project they are using digital camera so they have used gphoto2 library but for me I'm using pi camera V2 and the coding is related to gphoto2 so the code is not working for me.. one another question how can I execute the code ? The code is included below you can check it and tell me what Am i doing wrong? Also why did he used browsepy?

    https://github.com/FSavoy/DIY-sky-imager

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

    Advice on building a project that analyzes the size of lakes in the US?

    Posted: 19 Aug 2020 05:20 PM PDT

    I want to take all the lakes in the US and see if a 1mile x 50ft box fits in them. Stuff I am not sure how to solve:

    - how to get a dataset for this

    - what a good stack would be

    - generally how to go about this

    I just want to get a list of all lakes/ponds/reservoirs/etc that fit the inputted dimensions first then would hope to give it a tinder-like front end.

    Cheers, appreciate any info at all

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

    [Language] Cons of your favorite language stack & most promising alternatives?

    Posted: 19 Aug 2020 02:49 PM PDT

    What kinds of problems do you enjoy solving (and/or solve for a living), and what language (and ecosystem) do you prefer? Does it come with any known issues - and if so - how do you work around them?

    What alternatives are you keeping an eye on, why, and what's stopping you from using them now?

    I'll go first. I find myself still strongly preferring Python for backend web development. I find the world of async in Python, language speed in general (and needing to resort to scaling sooner - or dipping into a lower level language to write an extension) occasionally a barrier. I also find myself wishing it had a stronger type system (something a lot more like F#). Dependency management and deployment can be painful.

    To work around these issues I utilize mypy, and also if needed will write an extension (Rust, Go, and even Nim are all excellent choices depending on the problem set, plus of course C if truly needed). But mostly I just make sure my testing is thorough - and leverage the right frameworks to optimize for speed (lately I've been loving Falcon + gunicorn/meinheld).

    I've been keeping a close eye on C#, F#, Kotlin, Nim, Scala, Go, Rust, Crystal, and Clojure as an alternative. But each for me currently has at least one killer issue holding me back. Maybe you've made a home in one of these languages and can dissuade me over?

    • C# -> Verbosity. It's just not a terribly expressive language. This impacts developer speed and maintainability.
    • F# -> Tooling. Unclear compiler errors, buggy syntax highlighting and autocomplete (in Rider EAP and VSCode). Computation expressions end up adding complexity to the codebase but are necessary for core functionality.
    • Kotlin -> As Java, Android, and JS evolve - it's unclear how Kotlin will continue to straddle these three hosts + native. The disconnect from the JVM in particular makes me wonder if it's a sustainable long term solution.
    • Nim -> I want to love Nim, but the ecosystem is small and not well maintained, with DSLs where APIs ought live. It's also rather easy to crash the compiler, or have unclear compiler errors.
    • Scala -> It's easy to overcomplicate things, 3.0 is around the corner and looking to be a breaking change on many levels, gradle support is lacking, and SBT is notoriously slow.
    • Go -> Lack of generics, lack of try/except and strictly opinionated error handling, dependency management, verbosity, references and pointers are additional complexity I'd prefer to avoid.
    • Rust -> Cognitive overhead of memory management, the syntax can be both verbose and cluttered/confusing.
    • Crystal -> Still in it's infancy - small ecosystem, compiler can crash, programs can segfault easily.
    • Clojure -> Maintainability of larger scale lisp-dialect programs, lack of static typing, and the limitations of being JVM hosted without the priority/visibility of a higher profile language like Scala.

    I enjoy a lot about all of the languages above, and am keeping an eye on all of them to see how they continue to evolve.

    So - what would you switch to today? What might you switch to in the future? Or why are you comfortable sticking with your favorite?

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

    Need help (will pay) with a Python-OpenDSS Co-simulation seminar

    Posted: 19 Aug 2020 02:30 PM PDT

    Hi people,

    I have a serious request for someone who can help me with a seminar that got over my head. I am willing to pay to get through the seminar, but do remember I am still a student.

    The goal of the seminar is to show the process of determining optimal location and size (power) of a single battery energy storage (BES) in a small distribution network using differential evolution in Anaconda to have less power losses in the network. The part with OpenDSS is handled, I just dont know how to optimize in Python

    P. S. OpenDSS is a free software we use to simulate a distribution network and do network calculations.

    I have the literature and necessary functions, but simply no idea where to even start. I thought that my understanding of distribution systems would overcome my lack of knowledge in Python, but I am very wrong and very overwhelmed.

    Is anyone willing to basically do the simulation part of seminar for some money?

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

    What does your company do?

    Posted: 19 Aug 2020 10:29 AM PDT

    I want to improve my github even more. I've been making some "cool" projects, but none of them are "Enterprise level".

    What I mean to ask is, what software applications does your company / the company you work for do? Why you do them and how?

    Obviously if you cannot talk about it that's not a problem, but for the ones who can, please let me know, I really need to improve my github and my programming experience.

    Thanks in advance!

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

    Basic know-how on how to write phonetic keyboard programs

    Posted: 19 Aug 2020 10:05 AM PDT

    Hello everyone,

    I am looking for literature on how to program a keyboard (like Bhasha India). The resource could possibly be any literature that you know of, that will be of help in developing a good keyboard software with high accuracy of word suggestion.

    Would you be so kind as to guide me on my journey?

    Thank you!

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

    Java - Why is the "pla" element not rendering properly?

    Posted: 19 Aug 2020 09:34 AM PDT

    import java.awt.Color; import javax.swing.*; class GUI{ JFrame f; JPanel com; JPanel mid; JPanel pla; GUI(){ f = new JFrame("Game"); com = new JPanel(); com.setBounds(0,0,200,200); com.setBackground(Color.green); com.setLayout(null); f.add(com); mid = new JPanel(); mid.setBounds(0,200,200,100); mid.setBackground(Color.blue); mid.setLayout(null); f.add(mid); pla = new JPanel(); pla.setBounds(0,300,200,200); pla.setBackground(Color.red); pla.setLayout(null); f.add(pla); f.setSize(200,500); f.setVisible(true); f.setLayout(null); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); int height = pla.getHeight(); int width = pla.getWidth(); System.out.println("Height : " + height + " Width : " + width); } } public class Main { public static void main(String[] args) { new GUI(); } } 

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

    Batch file help needed!

    Posted: 19 Aug 2020 01:05 PM PDT

    So i work for a hospital running big giant reports with tons of information and the software used only will export the data into a .txt file. But if manually changed into a .xls file they can be opened in excel and used correctly. Can anyone please explain to me how/if its possible to write batch file that would grab all the .txt files in a specific folder and re name them with .xls file extension ? This would help me tremendously, trying to make my workflow process less demanding i have to process several reports a day and this would help me a lot.

    Thank you in adavance

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

    Is passing a String instead of an int when calling a method a runtime or compile time error?

    Posted: 19 Aug 2020 06:56 AM PDT

    Ex:

    Public int add(int a){ whatever code here };

    Then calling add("20");

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

    HELP! Javascript class inheritance with HTML?

    Posted: 19 Aug 2020 12:39 PM PDT

    Have a basic calculator program that works great. When I establish it as a class: class Calculator {my code} I get "Uncaught SyntaxError: Unexpected identifier calculator.js:2"

    HTML:

    <!DOCTYPE html>

    <html>

    <head>

    <link rel="stylesheet" href="style.css">

    </head>

    <body>

    <a href="AlgebraCalculator.html">go to Algebra Calculator</a>

    <div class="center">

    <p id="screen">ENTER A NUMBER</p>

    <button class="button" onclick="newVal(7);">7</button>

    <button class="button" onclick="newVal(8);">8</button>

    <button class="button" onclick="newVal(9);">9</button>

    <button class="button" onclick="newTurn(); setOperation(1);">+</button>

    <button class="button" onclick="ac(); display();">clear</button>

    <br>

    <button class="button" onclick="newVal(4);">4</button>

    <button class="button" onclick="newVal(5);">5</button>

    <button class="button" onclick="newVal(6);">6</button>

    <button class="button" onclick="newTurn(); setOperation(3);">*</button>

    <button class="button" onclick="newTurn(); setOperation(4);">/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>

    <br>

    <button class="button" onclick="newVal(1);">1</button>

    <button class="button" onclick="newVal(2);">2</button>

    <button class="button" onclick="newVal(3);">3</button>

    <button class="button" onclick="newTurn(); setOperation(2);">-</button>

    <button class="button" onclick="performOperation();">enter</button>

    <br>

    <button class="button zero decimal" onclick="nowDecimal();">.</button>

    <button class="button zero" onclick="newVal(0);">0</button>

    </div>

    <script src="calculator.js"></script>

    </body>

    </html>

    Javascript:

    class Calculator {

    var x = 0;

    var y = 0;

    var turn = 1;

    var operation;

    function display() {

    if (turn == 2 && y !== 0) {

    document.getElementById("screen").innerHTML="" + y;

    } else if (turn == 3 || turn == 1 && x !== 0) {

    document.getElementById("screen").innerHTML="" + x;

    } else {

    document.getElementById("screen").innerHTML="ENTER A NUMBER";

    }

    }

    function newTurn() {

    if (turn == 1) {

    turn += 1;

    }

    }

    function nowDecimal() {

    if (turn == 1 && !x.toString().includes(".")) {

    x += ".";

    } else if (turn == 2 && !y.toString().includes(".")) {

    y += ".";

    }

    }

    function newVal(val) {

    if(turn == 1 && x == 0) {

    x = parseFloat(x.toString().substring(1) + "" + val);

    } else if (turn == 1 && x !== 0) {

    x = parseFloat(x + "" + val);

    } else if (turn == 2 && y == 0) {

    y = parseFloat(y.toString().substring(1) + "" + val);

    } else if (turn == 2 && y !== 0) {

    y = parseFloat(y + "" + val);

    }

    display();

    }

    function setOperation(val) {

    operation = val;

    decimal = false;

    }

    function add() {

    x += y;

    }

    function subtract() {

    x -= y;

    }

    function multiply() {

    x *= y;

    }

    function divide() {

    x /= y;

    }

    function performOperation() {

    switch(operation) {

    case 1:

    add();

    break;

    case 2:

    subtract();

    break;

    case 3:

    multiply();

    break;

    case 4:

    divide();

    break;

    }

    turn++;

    display();

    turn = 1;

    y = 0;

    }

    function ac() {

    turn = 1;

    x = 0;

    y = 0;

    }

    }

    class AlgebraCalculator extends Calculator {

    }

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

    [c#]Entering a variable to the program from console while opening it?

    Posted: 19 Aug 2020 12:26 PM PDT

    So lets say i made a console based text editor lets call it "txtedit" is there a way to load the file from the console using txtedit text.txt while opening the program?

    Im currently using c# however i would apericate if you give the answer both in c# and c++ since im planning to start using that.

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

    I'm trying to communicate from RasPi to Arduino via Rs485. I'm using an Usb to Rs485 converter on the RasPi side, and Max485 chip on Arduino side. Neither one picks up a message from the other.

    Posted: 19 Aug 2020 06:11 AM PDT

    I need to connect a RasPi to my existing RS485 network so I can access all of it via internet. I know both devices can send information, but it is not being received by the other

    I have a RasPi 4B, with a USB to Rs485 adapter. This particular adapter has two leds that light up when you are receiving information (RXD) and transmitting information (TXD). They are incredibly useful, and because of them I know that information is being sent out of the RasPi.

    The Arduino is an Arduino Mega, and is connected to a MAX485 Transceiver. I have used these chips extensively in an Arduino to Arduino network, and they function wonderfully.

    Wiring has been checked repeatedly:

    USB Adapter: A to MAX485 A, B to MAX485 B, GND to Arduino GND

    MAX485: VCC to Arduino 5v, GND to Arduino GND, RO to Arduino RX3, DI to Arduino TX3, DE/RE to Arduino pin 3.

    In the code below, I am not trying to send information back and forth. I just want to know if I received anything on the Arduino.

    Python Code:

    #!/usr/bin/env python3 import serial rs = serial.Serial( port="/dev/ttyUSB0", baudrate = 9600, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS, timeout=0, rtscts = True ) if (rs.isOpen() == True): rs.close() rs.open() rs.reset_input_buffer() outstr = "5" rs.write(outstr.encode(encoding = 'ascii')) 

    Arduino Code:

    void setup() { Serial3.begin(9600); Serial.begin(9600); pinMode(3, OUTPUT); //Set enable pin as Output pinMode(3, LOW); //Allows MAX485 to recieve Serial.println("Engaged."); } void loop() { while(Serial3.available()){ Serial.println("We got somethin"); //Lets me know if I somehow got something if(Serial3.available()){ byte data = Serial3.read(); Serial.println(data); } } } 

    I have multiples of each MAX485 chip and USB to RS485 adapters, and have tried using them in case something was broken inside the devices. No change.

    Thoughts?

    submitted by /u/The-Devils-Engineer
    [link] [comments]

    Help Getting JS Library to Work

    Posted: 19 Aug 2020 12:02 PM PDT

    Hello everyone, I'm just trying to get this library, that expands DIVs to full screen to work.

    Please let me know what I'm doing wrong.

    [Here's my code: https://jsfiddle.net/9ga0ywpb/

    Here's the code I basically copy-pasted from: https://codepen.io/colinlohner/pen/YQgXzq?editors=1100

    Not sure how to link my CSS to HTML in jsfiddle but the only difference is but the word "Lightbox" actually shows up. ]

    Thank you

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

    Looking for good back to Uni projects to refresh my mind

    Posted: 19 Aug 2020 11:57 AM PDT

    Hey guys so like the title says im looking for small to medium projects to do to refresh my mind. If have any good idea write it in the comments.

    Also if someone wants me to do something for then I can do it with a small fee (eventough thats not my main porpouse , and definitly the wrong place to advertise but I'm open to offers).

    Cheers

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

    Moq test passed on first run then failed subsequently

    Posted: 19 Aug 2020 08:01 AM PDT

    Hi,

    I am new to moq and unit testing so I hope I can get some help here.

    I am not sure if I am allowed to share the code.

    So, I will describe as best as I can.

    I run this MOQ test and it got passed in the first run.

    After that I changed one of the test variable and it failed and point out to me the reason why it failed. I am not sure how this message came about because I have another test which I have written that failed too but there is no explicit error message.

    Now, when I correct the variable I changed to its original it is supposed to pass the test, it doesn't and it gives the same old error message where I changed the variable.

    Can I know what should I do to make it pass again cos even I shut down the VS ide it is not giving me a passed test...it seems VS just remember the old test ....

    Please help me on this cos I think my boss is like ignoring me for good...probably thinking I am too lousy ....

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

    Software Release Party Gift?

    Posted: 19 Aug 2020 11:29 AM PDT

    Have you ever given your team gifts upon release of software? Have you received any?

    If so, what have you given/received?

    What would be something fun to gift/receive for a team of software devs?

    Not sure if this is the appropriate forum, apologies in advance if it is not.

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

    I have an amazon drive link with files, but it says I can download max 5 GB per download, and how do I transfer that directly to my google drive if I don't want to download all manually?

    Posted: 19 Aug 2020 06:54 AM PDT

    cargo transportation system we are not sure how to display the last part of our task

    Posted: 19 Aug 2020 10:31 AM PDT

    enter image description here

    Here is our code for the task we are almost finishing just the last part we are stuck at "Fastest: 3 trips (1 Van, 3 Mini-lorry, $645) " we are not sure how to display the values in the bracket we only able to display 3 trips. Is there a way to also display the values in the bracket stated as well? we use int min = *min_element(vTrips.begin(), vTrips.end()); cout << "Fastest: " << min << " trips" << endl; but this only display the 3 trips. Urgent we just left with this and we are done. highly appreciate the help if given.

    #include <iostream> #include <vector> #include <iterator> #include <fstream> #include<algorithm> using namespace std; class CTS //cargo transport system { int i; int cargo, lorryprice, vanprice, lorrysize, vansize, allOps; public: void set_cargo(int); void set_lorryprice(int); void set_vanprice(int); void set_lorrysize(int); void set_vansize(int); }; void CTS::set_cargo(int total_cargo) { cargo = total_cargo; } void CTS::set_lorryprice(int lorryP) { lorryprice = lorryP; } void CTS::set_vanprice(int vanP) { vanprice = vanP; } void CTS::set_lorrysize(int lorryS) { lorrysize = lorryS; } void CTS::set_vansize(int vanS) { vansize = vanS; } int main() { int cargo, lorryprice, vanprice, lorrysize, vansize, options, i, no_lorry, no_van, cost, trips; ifstream infile; infile.open("size.txt"); if (infile.is_open()) { infile >> cargo; infile >> lorryprice; infile >> vanprice; infile >> lorrysize; infile >> vansize; } CTS run; run.set_cargo(cargo); run.set_lorryprice(lorryprice); run.set_vanprice(vanprice); run.set_lorrysize(lorrysize); run.set_vansize(vansize); infile.close(); options = (cargo / lorrysize) + 1; no_lorry = (cargo / lorrysize); no_van = (cargo / vansize) + 3; if (cargo % lorrysize == 0) { no_van = -3; } if (cargo % lorrysize != 0) { no_van = ((cargo % lorrysize) / 10) - 3; } /*it = numbervan.begin(); for (auto ir = numbervan.rbegin(); ir != numbervan.rend(); ++ir) { cout << *ir << endl; }*/ vector<int> vCost, vVan, vTrips, vLorry; vector <int>::iterator it; for (i = 1; i < options + 1; i++) { int numberlorry = no_lorry; cout << "Option " << i << ":" << endl; cout << "Number of Mini-Lorries : " << no_lorry-- << endl; if (no_van >= -3) { no_van += 3; } cout << "Number of Vans : " << no_van << endl; int numbervan = no_van; if (numberlorry > numbervan) { trips = numberlorry; } else { trips = numbervan; } cout << "Trips Needed : " << trips << endl; cost = (numberlorry * lorryprice) + (no_van * vanprice); cout << "Total Cost : $" << cost << endl; vCost.push_back(cost); vLorry.push_back(numberlorry); vVan.push_back(numbervan); vTrips.push_back(trips); } int counter = vCost.size() - 1; //std::vector<int>::reverse_iterator ir = vCost.rbegin(); for (i = 1; i < 4; i++) { //cout << "Lowest #" << i << ": "<<cost<<endl; cout << "Lowest #" << i << ": $" << vCost[counter] << "(" << vVan[counter] << " Vans, " << vLorry[counter] << " Mini-Lorry, " << vTrips[counter] << " Trips)" << endl; counter--; } int min = *min_element(vTrips.begin(), vTrips.end()); // this line of code we figured out how to cout << "Fastest: " << min << " trips" << endl; //display the number of trips using algorithm return 0; } 
    submitted by /u/Impressive_Luck_6018
    [link] [comments]

    No comments:

    Post a Comment