• Breaking News

    Tuesday, October 6, 2020

    Hacktober Fest: How to participate and contribute to the open-source community as a beginner. learn programming

    Hacktober Fest: How to participate and contribute to the open-source community as a beginner. learn programming


    Hacktober Fest: How to participate and contribute to the open-source community as a beginner.

    Posted: 05 Oct 2020 05:55 AM PDT

    It's October which means it's Hacktober Fest time.

    Hacktober is an event from Digital Ocean which gives free 'swag' away for anyone that contributes 4 pull requests to open-source communities in the month of October.

    Making your first open-source pull request can be scary so here is a video on how to contribute to Hacktober Fest even as a complete beginner but still make helpful contributions.

    https://youtu.be/_Oq8PfZXmK4

    submitted by /u/Mackenzie-GG
    [link] [comments]

    Am I crazy or is Python way "easier" than C/C++? Help me appreciate lower level languages!

    Posted: 05 Oct 2020 07:45 PM PDT

    I love Python. It comes so naturally to me. I can flow with Python. With C or C++ it feels a lot more choppy or bumpy or just overal gross. I'm sure this is because Python is "high level" and C++ is "low level" but that doesn't make me enjoy coding in it. Give me your thoughts and opinions on this topic, I want to be more understanding towards it all because I want to love C++

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

    [C++] Why does 'A' - 'a' succeed in turning a char upper-case?

    Posted: 06 Oct 2020 12:15 AM PDT

    #include <iostream> using namespace std; int main() { char d = 'd'; d = d + ('A' - 'a'); cout << d; return 0; } 

    I'm confused...why does 'A' - 'a' turn it upper case? What's going on here?

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

    HCL Volt Hackathon

    Posted: 05 Oct 2020 09:48 PM PDT

    HCL has launched a Hackathon for its new Volt product (which, for the purpose of full disclosure, is an evolution of their established product HCL Leap)...

    https://www.hcltechsw.com/events/digital-week/hackathon

    There will be two finalist teams (you can participate as a team of one or as a team of two) and one winner per region (LATAM, North America, EMEA, Japan, and APAC). Each member of each winning team will win an Apple iPad Pro & Pencil 2, plus iPad Pro sleeve.

    Also, there will be knowledge transfer sessions and some mentoring to help with the development efforts. If you wanted to take your Web development skills further, this could be a good opportunity.

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

    Quick sort algorithm with four different pivot partition implemented in Javascript

    Posted: 06 Oct 2020 12:45 AM PDT

    I have recently implemented the quick sort algorithm in Javascript.

    It contains all the four different pivot partition method.

    1. First element as a pivot.
    2. Last element as a pivot.
    3. Mid element as a pivot.
    4. Random element as a pivot.

    Along the tail call optimization.

    Please give it a read.

    https://learnersbucket.com/tutorials/algorithms/quick-sort-algorithm-javascript/

    submitted by /u/know-prashant
    [link] [comments]

    Best way to build a Github portfolio for a university student just starting out

    Posted: 05 Oct 2020 05:01 AM PDT

    I was wondering if anyone could give me some advice on the best way to build my github portfolio as I want to prepare for the future in terms of employment when i graduate from my computer science degree. Should i put the projects i worked on in my different modules in university as well as personal projects or is the best way putting separate projects worked aside from the curriculum in university. If there are any employers or recruiters what does a good entry level github portfolio look like for employers where its not mainly about the many years of experience in the industry (as I'm only young). Thank you!

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

    Is there someone knows Psytoolkit?

    Posted: 06 Oct 2020 12:20 AM PDT

    Hello,

    I could not understand some codes. I could not find them its website either. I will write one by one, maybe you know some of them.

    1. option set &nogodelay 150 set &d 0 (At the beginning of the code, what are these "&" and "&d" signs? Moreover, what is about set funtion? I could not understand it)
    2. save STATUS &d &d &d &d RT BLOCKNAME (Again the same "&d" sign at the end of the task but why there are four of them?)
    3. set $STATUS1 STATUS (This time a "$" sign. I am not sure about it. What does that mean?)

    Could you please define / explain them?

    Thanks in advance.

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

    jpa.hibernate.ddl-auto should I put none or?

    Posted: 05 Oct 2020 11:52 PM PDT

    I am working on a Spring project and I found that when I added in more entities to h2 database it is giving me problems like it doesn't accept new entities.

    Can someone tell me should I use none or something else?

    Tks

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

    I am not sure what is the expected input in the "live" parameter in this query

    Posted: 05 Oct 2020 11:52 PM PDT

    I am new to using APIs and am trying the figure out what is expected from the "live" parameter here:

    https://www.api-football.com/documentation-beta#operation/get-fixtures

    I understood that it wants a list of ids written as follows:

    [157015-157016]

    But if a query this I get the following response:

    { get: "fixtures" parameters: { league: "39" season: "2019" live: "[157015-157016]" } errors: { live: "The Live field does not match the regular expression: [id-id-id...] or string: all." } results: 0 paging: { current: 1 total: 1 } response: [ ] } 

    Could someone help me understand this? Thanks!

    submitted by /u/2manyman
    [link] [comments]

    Am I ready for a front end developer position?

    Posted: 05 Oct 2020 05:41 PM PDT

    Hello everyone. I hope this is the right place to post this, if not I apologize and this post can be deleted. Throughout the last year i've been spending a good amount of time learning front end web development. There have been times where I have felt that this was not the right choice for me, but have always ended up coming back to it after a one day break from learning. Currently, I have come to a point where I am able to successfully code from scratch modern, responsive websites that interact with APIs using HTML, CSS, and JavaScript. I have also taken a look at and implemented React (with state and routing).

    I've put together a portfolio with a couple projects (including my portfolio which is made in React) but I feel as if it's not good enough. On one hand I feel that I am ready for a junior level position, but on the other hand when I see other people's projects I find myself lost.

    On a side note I am also currently attending an online coding school for a more structured way of learning which has been going really well and is furthering my knowledge. (I am far advanced for the first part of the program which is why I am looking into positions currently.) I started looking into junior front end positions (In the USA) but most of them seem to want 2+ years of experience. Looking at my portfolio, does it seem that I am ready for perhaps a junior level front end position? Are there any suggestions or advise that anyone can give me?

    Portfolio link: https://shaheerimran.netlify.app/

    Thank you for any help!

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

    Python Web Scraping

    Posted: 05 Oct 2020 11:33 PM PDT

    I am trying to scrape google search for 'x' link topics. Can this be achieved through beautiful soup? Or is there another library that makes it easier or at least gets the job done better? I need some tips and possible resources.

    Your help is much appreciated:)

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

    [javascript] Could someone help me understand this.

    Posted: 05 Oct 2020 11:07 PM PDT

    let p1 = { fname: "Jhon", lname: "Doe", }; let p2 = { fname: "Mary", lname: "Smith", }; let obj = { p1.fname: 22, p2.fname: 21, }; console.log(obj); 

    This gives me an error .

    let p1 = { fname: "Jhon", lname: "Doe", }; let p2 = { fname: "Mary", lname: "Smith", }; let obj = { [p1.fname]: 22, [p2.fname]: 21, }; console.log(obj); 

    this does not.....what is this syntax called and why am i not allowed to use the value of one object as key to another? and are there any alternatives?

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

    Multi-Tenant architecture for SaaS

    Posted: 05 Oct 2020 10:47 PM PDT

    For serving multiple tenants with a SaaS application, I heard muti-tenant architecture is a better option. I've also learned that we can use both node.js, python or Java to build a multi-tenant structure.

    My question is which programming language will be the best to build a multi-tenant architecture that will be cost effective?

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

    How to populate a *arr of structs? (from file)?

    Posted: 05 Oct 2020 10:34 PM PDT

    Hey, so I have an assignment that's driving me crazy.

    I have to use a 'person *person_db[5]'

    and then create a 'function init_db(filename)'

    This function will will read lines from a .txt and put that info into the *person_db.

    I can do this perfectly fine if it were just a 'person_db' but the fact that its (what I think?) an array of pointers to person(s)... I keep getting segmentation faults left and right.

    I've tried google but to no avail.

    Thanks if anyone can help!

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

    machine-learning deep learning CNN

    Posted: 05 Oct 2020 10:33 PM PDT

    Does anyone know LSTM for video classification?

    I need some help.

    Thanks

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

    Wrong Output

    Posted: 05 Oct 2020 10:17 PM PDT

    Hi, I have been coding a 2D array for the pair of dice. It should show the following when 2 is inputted, but there are no numbers showing:

    num1 num2

    num1 num2

    here's my code:

    https://pastebin.pl/view/b030d2ab

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

    I need a syllabus for c++

    Posted: 05 Oct 2020 10:17 PM PDT

    Hello, I am getting into c++, do you happen to know any reddit post or anything that has a very concrete c++ syllabus from beginner to profs. It would be a great help to me! I found a whole python syllabus telling me which course to take from start to end really detailed on this sub. If you come across one please let me know. Thank you in advance.

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

    Creating a database-centered website

    Posted: 05 Oct 2020 04:03 PM PDT

    Greetings,

    I have recently taken upon a project at my university that requires me to create a website that has a searchable database on it ,on which thousands of files will be stored, like this. I don't know html,css , or mysql which i think are necessary for this project. I have 6 months to complete it. What are my options here? Are 6 months enough to learn all this? I know some basic python and java.

    Thanks a lot

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

    Greenfoot Java Help

    Posted: 05 Oct 2020 09:53 PM PDT

    I'm using Greenfoot on a Mac and every time I add a bracket in the grey section (i.e. if (getY() <=0 { ), the closing bracket at the bottom of the green section disappears, which won't let the code work properly. Afterwards, Greenfoot crashed. Also, I have a second issue, there's a white space that I cannot get to go away (the white block of space above the yellow section).

    Is this a Mac-related issue with Greenfoot, or am I doing something wrong?

    If so can someone help me fix this problem??

    Screenshot of my work here: https://i.imgur.com/Y0uOnXi.png

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

    Are C++ binaries portable between computer architectures?

    Posted: 05 Oct 2020 03:40 PM PDT

    I'm learning about interpretation/compilation and I've read that most languages including Java and C# have portable binaries, meaning that compiled Java and C# code can be run on any computer even if it wasn't compiled on that computer

    Is this the case with C++ ?

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

    I can't get this website to look right no matter how hard i try.

    Posted: 05 Oct 2020 03:33 PM PDT

    Im trying to do this https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page.

    I can't for the life of me figure out how to structure my css so that its all a neat column going down.

    the core problem is that i cant create a navbar over an image and have that image take up the ENTIRE page width and only take up the entire header. Every time I come close I end up getting every other div invisible due to the overflow. And any edits I do to rectify it look terrible. I just cant get anything to go right. How is anyone creating a landing page with a navbar over an image so easily. HOW!

    My code looks like this.

    HTML

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="main.css">
    </head>
    <body>
    <header id="header">
    <img id="header-img" src="./abstract-5533222\_1920.jpg" alt="">
    <nav id="nav-bar">
    <ul>
    <li>
    <a class="nav-link" id="intro">Intro</a>
    </li>
    <li>
    <a class="nav-link" id="product">Product</a>
    </li>
    <li>
    <a class="nav-link" id="contact">Contact</a>
    </li>
    </ul>
    </nav>
    </header>
    <main id="main">
    <section class="intro" id="intro">
    <div class="overlay"></div>
    </section>
    <section class="product" id="product">
    Product Video
    <video id="video"></video>
    </section>
    <section class="contact" id="contact">
    <form id="form" action="https://www.freecodecamp.com/email-submit">
    <label for="email" id="email-label">Email</label>
    <input type="email" id="email" name="email" placeholder="Enter email" pattern="+@beststartupever.com" title="Please enter your email address" size="32" minlength="3" maxlength="64" required>

    <button type="submit" id="submit"></button>
    </form>
    </section>
    </main>
    </body>
    </html>

    CSS

    /*Image url(https://cdn.pixabay.com/photo/2016/02/19/10/35/nature-1209302\_960\_720.jpg);
    url(https://cdn.pixabay.com/photo/2020/08/31/18/14/abstract-5533222\_960\_720.jpg)\*/
    /* Borderbox Fix */
    html {
    box-sizing: border-box;
    }
    *, *:before, *:after {
    box-sizing: inherit;
    }
    /* Main Settings */
    body {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 1680px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    }
    #main {
    display: block;
    width: 100%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    }
    div {
    position: relative;
    overflow: visible;
    }
    section {
    position: relative;
    overflow: visible;
    }
    /* Header */
    header {
    overflow: hidden;
    background-size: cover;
    background-position: center;
    }
    #header-img {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
    border: 1px solid #000;
    }
    /* Navigation */
    #nav-bar {
    position: fixed;
    text-align: center;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    cursor: default;
    padding: 0px 20px auto 20px;
    }
    #nav-bar ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
    width: 100%;
    }
    #nav-bar li {
    display: inline-block;
    padding-left: 0;
    padding-right: 0;
    color: #fff;
    }
    #nav-bar ul, li .nav-link {
    text-decoration: none;
    display: block;
    padding: 10px;
    margin-left: 10px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: 0.5s ease-in-out;
    border: 2px solid transparent;
    }
    #nav-bar a:hover {
    font-size: 22px;
    transition: .5s ease-in-out;
    cursor: pointer;
    }

    Also no, i cant ask stackedoverlfow. I've run out options.

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

    How would I automatically get an image from a Digital camera once photo is taken?

    Posted: 05 Oct 2020 09:25 PM PDT

    I'm looking at a way to write some software that will take a image from a digital camera, load that into memory so I can email it out after I've done some image manipulation (ImageMagick).

    What has me stuck is how am I going to get the image once taken from the camera? (I can't have the user constantly plugging in the camera to upload the files).

    When the user takes a photo how can I get that photo onto my app? Is there a way to stream a byte array from a camera, and is a USB cable going to do that? Or is there a setting on the camera.

    Edit:
    It looks like some manufactures offer an CCAPI, is there any one size fits all or will I have to tailor this around the camera?

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

    I'm confident on my C# skills so I want to go learn ASP.NET CORE but....how

    Posted: 05 Oct 2020 09:23 PM PDT

    I'm nearing the end of my C# tutorials ( currently on inheritance and LINQ ) but I feel pretty confident about moving forward and build web apps using ASP.NET CORE but the problem is I dont want to use something outdated. I know Core is moving at incredible speeds, core v2 - core 3 and soon Core 5. I also hear that Core is going away soon or something like that so things are gonna be different.
    I have currently been looking at DotNetMastery for ASP.NET CORE MVC tutorials as well as youtube but I'd love to know what kind of resources you guys have been using in order to learn MVC / ASP.NET CORE.
    Thank you!

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

    fopen() in Kubuntu

    Posted: 05 Oct 2020 09:22 PM PDT

    Hi, I am very new to C so bare with me. I was following along with a tutorial today for fopen() The example given is in Windows as:

    fptr = fopen("C:\\users\\DeanWork\\Documents\\BookInfo.txt","w");

    How do I write this for Linux? I am also new to Linux, I am using Kubuntu. I tried the following but it kept failing to open the file:

    fptr = fopen("/home/user/Documents/BookInfo.txt","w");

    Thanks for any help!

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

    No comments:

    Post a Comment