• Breaking News

    Tuesday, July 30, 2019

    Github Tutorial Ask Programming

    Github Tutorial Ask Programming


    Github Tutorial

    Posted: 30 Jul 2019 01:26 PM PDT

    Hey! I am new to GitHub, want to manage a project I am building, tried finding a tutorial for all the features to manage a project with multiple people, and what each feature means, couldn't find any helpful ones.

    Can someone suggest me a tutorial for learning how to use GitHub effectively? Thanks!

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

    How to create and deploy a website that displays data from a Python script?

    Posted: 30 Jul 2019 04:37 PM PDT

    I have a set of python scripts that generate data as a personal project. These scripts run every day on a through the crontab daemon on a Raspberry Pi and write this data to a text file. I'd like to display this data on a dynamic website/web app that updates itself every time the scripts generate new data.

    As far as I understand Python's Flask would be the simplest way to make such a website, but I would prefer to use HTML/CSS and Javascript (and libraries like React) so I can build my resume.

    I have tried searching online, but I am not exactly sure where to start with this. I have a basic understanding of how a website works (i.e. buy a domain, setup DNS records, setup port forwarding or use hosting service), but any additional tips/explanations/corrections/tutorials would be helpful. What services/languages should I use and how should I go about creating and deploying such a website?

    Note: I have basic experience in HTML/CSS and Javascript and am down to learn more.

    Edit: I want the script, which is a Reddit Bot, to run on the Pi to save money on cloud computing and host the website using a cloud provider to avoid port forwarding from my home network, as I have just learned this will be a massive pain due to my ISP.

    submitted by /u/1UglyGod
    [link] [comments]

    Trying to provide information to my high school CS students on types of jobs programmers do

    Posted: 30 Jul 2019 08:41 PM PDT

    As the title states, I'm looking to provide information to my high school computer science students about the many different jobs that programmers have and do. Their idea of programming and coding is always only video games and/or what they see in TV/Movies. I'd love to give them real-world information. So, /r/AskProgramming, what kinds of jobs do you have?

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

    Question about SSh and gitlab

    Posted: 30 Jul 2019 10:54 AM PDT

    1. How does SSH work for gitlab? I read though the instruction of generating/checking my ssh. Kind of confused?
    2. I just follow the instruction and i use git bash or something to ask it to generate ssh?
    3. why do i need to enter email address? will they send the ssh key to email? where does the key get stored/saved?
    4. should i follow the instruction provided by gitlab or can i just use git bash to generate ssh? is ssh per project/repository?
    submitted by /u/ConceptionFantasy
    [link] [comments]

    [C++] Find substring within a string, where first delimiter is non-unique and second one is unique

    Posted: 30 Jul 2019 08:36 PM PDT

    Hello,

    So as the question suggests, I am looking for a substring within a string using two delimeters. First one is non-unique but the second one is unique.

    Over on stackoverflow, I found the solution to the opposite problem: Unique 1st, Non-Unique second. Link (second top reply)

    Code:

    unsigned first_delim_pos = s.find(start_delim); unsigned end_pos_of_first_delim = first_delim_pos + start_delim.length(); unsigned last_delim_pos = s.find_first_of(stop_delim, end_pos_of_first_delim); return s.substr(end_pos_of_first_delim, last_delim_pos - end_pos_of_first_delim); 

    According to the author if that solution, getting my solution is easy. All I have to do is " just reverse the logic between the first delimiter and second delimiter". I do not understand this. I have tried several things and failed.

    Any help would be appreciated! Please and thank you.

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

    How to convert a single integer to a single character?

    Posted: 30 Jul 2019 08:19 PM PDT

    The post title says all. I can't figure out how to use itoa.

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

    Where to get data sets to learn python libraries?

    Posted: 30 Jul 2019 02:06 PM PDT

    Starting my master's degree in chemical engineering and wanted to learn python instead of re-learning Matlab. I'm thinking of starting with NumPy or SciPy but I was wondering if there's a place to get data sets that I can perform operations on to learn the libraries.

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

    Faking LDAP response to a .net web application

    Posted: 30 Jul 2019 03:29 PM PDT

    I have a web application that queries for users to active directory, For testing reasons I need to be able to retrieve custom information from AD, So how I can "Mock" the Active directory response?

    For example: Webapp queries for list of users. Fake Active directory retrieves my custom users.

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

    C++ Object Size & Bit Equality

    Posted: 30 Jul 2019 03:29 PM PDT

    Edit: memcmp returns 0 on equality. :/

    Hi all. I'm working on my first real C++ project and working through all the kinks.

    I've got an abstract class GameState which declares a virtual Size and an Equals function (among other things). Size() returns sizeof(Implementing Class). Equals() (seen below) zeroes some memory then compares Size() bytes.

    I'm sure there are better ways to do this--and feel free to let me know--but my main worry right now is that Equals nondeterministically returns false negatives (probably false positives too, haven't checked yet).

    Running this on two hypothetically equal objects, I can see in the debugger that all their fields are equal and "view memory" displays equivalent strings of bytes. I did notice that "view memory" only displays around 512 bytes whereas sizeof indicates the objects take up around 536. So my best guess is that "new" doesn't actually zero initialize struct padding? That seems unlikely to me--and I would have assumed both vtable pointer and struct padding would show up when viewing object memory in a debugger--but I don't have any other ideas.

    Any input? Thanks.

    bool GameState::Equals(GameState *other) { size_t o_size = other->Size(); if (o_size != this->Size()) return false; int cval_me = this->cache_value; this->cache_value = 0; int cval_other = other->cache_value; other->cache_value = 0; bool eq = memcmp((void*)this, (void*)other, o_size); this->cache_value = cval_me; other->cache_value = cval_other; return eq; } 
    submitted by /u/caustic_kiwi
    [link] [comments]

    ARE YOU THINKING ABOUT HAVING YOUR FIRST WEBSITE MADE OR MAYBE YOU JUST NEED A BETTER ONE?

    Posted: 30 Jul 2019 08:27 PM PDT

    We have real-life experience in helping businesses like yours. Our customers build a long-term relationship with us. If you share our passion, then speak with us.
    We will be happy to call you at your preferred time and discuss more in details.Click Here

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

    If you could only use one language for the rest of your life, what language would it be? And why?

    Posted: 30 Jul 2019 07:30 AM PDT

    Recreating tinder

    Posted: 30 Jul 2019 08:16 AM PDT

    A friend of mine wants to develop an app that pretty much works like tinder just with different intentions etc. He asked me to help him but tbh I'm just a beginner Most of the time it's a whole team that works on developing an app & I don't want to give him hope because I'm pretty sure that we can't do it alone My question is: Is it even possible for 1-2 people to develop a tinder-inspired app?

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

    [Java] Is initializing a child class but declaring a parent class, fine?

    Posted: 29 Jul 2019 09:51 PM PDT

    I'm Initializing child classes, but declaring all of them by their parent class:

    Parent object=new child();

    Java Doc says this about declaring:

    " , this declaration also reserves the proper amount of memory for the variable."

    ( https://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html )

    Now, I know it's possible, but is this the best way of initialization. according to the quote the declaration reserves the needed amount of memory, how is it reserving the needed amount, properly, if it doesn't know which child class i'm going to Initialize. is it going to assume the largest amount?

    Thank you.

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

    Has anyone worked with developer coaching?

    Posted: 30 Jul 2019 03:27 AM PDT

    To be precise, I'm not talking about:

    • A conventional teacher.
    • A mentor that shows you the ropes at a new workplace.
    • A more senior developer who teaches you a few tricks ad-hoc.
    • An agile coach or scrum master who primarily focuses on team performance.

    I'm talking about something more in line with traditional sports coaching - someone who consciously and continuously works with you to improve your skills as a programmer.

    The reason I ask is because I've often ended up in this role throughout my career - coaching fresh graduates and getting them to the level where they can be productive programmers. At the same time, I haven't actually heard a lot of discussion about this role, and the assumption still appears to be that skill improvement is the responsibility of the developer alone - possibly with the help of a company sponsored course.

    Have you either coached or been coached, and how was your experience?

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

    Applying for CS course

    Posted: 29 Jul 2019 10:46 PM PDT

    Not sure if this is the right place to ask but I am planning on visiting a few UNI's to enquire about their computer science course. I am not experienced with this and would like to know if there are any key questions that I should ask about the uni or course. Any key things to look out for when making a decision. What to be cautious of. Anything helps.

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

    Where do I go from here?

    Posted: 29 Jul 2019 11:20 PM PDT

    So a few days ago I finally finished the 4hr "freeCodeCamp" video on programming with C. I had been following along with each lesson daily, and saving the code in code::blocks for future reference. I felt like I was learning a lot until I reached the end. They covered Variables, Functions, Nested for loops etc -- and yet I feel like I'm still missing something. I feel like it would be impossible to program anything other than a four function calculator with what I know. Yet people are programming Arduino robots, websites, apps with cool GUIs, and all the other cool stuff I naively thought I would be able to program after a 4hr youtube video. So the logical conclusion is that they know something I don't, but what? After you've learned all the fundamentals, where do you go from there? How do you know what you still need to know?

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

    No comments:

    Post a Comment