• Breaking News

    Saturday, November 30, 2019

    What have you been working on recently? [November 30, 2019] learn programming

    What have you been working on recently? [November 30, 2019] learn programming


    What have you been working on recently? [November 30, 2019]

    Posted: 30 Nov 2019 08:04 AM PST

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Found a Free Resource to Help Understand Data Structures and Algorithms

    Posted: 30 Nov 2019 05:55 PM PST

    https://opendsa-server.cs.vt.edu/ODSA/Books/Everything/html/index.html I found this cool resource on Data Structures and Algorithms. It is like an interactive textbook. It is free and java-based. Thought some of you might find it helpful.

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

    Found this event to help newbies build upon their competitive and algorithmic skills. Do star and check em out!

    Posted: 30 Nov 2019 02:34 PM PST

    https://github.com/SVCE-ACM/A-December-of-Algorithms-2019

    I've completed their 2018 challenge and it was so good. I'm not a newbie but it still feels good to try the basic and intermediate concepts. So are you still pondering about how to spend your holidays? Fret not, December of Algorithms 2019 is here. Get ready to sharpen your minds and learn new skills. It doesn't matter if you are a seasoned programmer or an absolute beginner! All you have to do is implement 31 problems in the 31 days of December.

    Unlike before they have three levels of certifications (Beginner, Intermediate and Advanced) to show your expertise in algorithms based on the number of days have completed plus a lot of swags for each of those levels too!

    Do star, check em out and show your support!

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

    I'm having a hard time learning CSS positioning

    Posted: 30 Nov 2019 07:13 AM PST

    Hey, I've been learning programming for a while now, and I want to become a front-end developer. The problem is, when I try to create my projects all of them don't result in the way I was expecting, because I can't position the elements the way I want to.

    So, do you guys have any tips on learning CSS positioning, and what you did when you were in my position, and also if you guys could suggest me some easy projects I appreciate it.

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

    Learn stress management to help you progress in programming.

    Posted: 30 Nov 2019 02:21 PM PST

    To some people learning to program may be much easier than learning stress management or other soft skills that are equally as important in your overall success. To help get programmers out there to evaluate their own personal stress management ability I wanted to share my thoughts on this subject with the growing coders here.

    I hope this can help people to reduce any stress that may be silently blocking their own progress.

    https://beapython.dev/2019/11/30/stress-management-for-software-developers/

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

    Quick project for early begineers

    Posted: 30 Nov 2019 08:03 PM PST

    https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension

    This is a quick super simple guide on creating a Firefox extension. Just gives any mozilla.org a red outline, but as someone who's skills are lacking it was very cool to see it quickly in action. If anyone has some other similar starter guides out there do share.

    edit: I was doing this guide just while practicing/learning Vim shortcuts. 2 birds, one stone.

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

    How to go about making a day and night cycle circuit

    Posted: 30 Nov 2019 09:39 PM PST

    The title might be a little confusing, essentially, I'm trying to think about how I might be able to make a program that would dim lights A and B after a certain amount of time, and brighten lights C and D simultaneously, then rinse and repeat. Been trying to think about how to go about this, any suggestions? (sorry if this post makes no sense, I'm pretty new to programming lmao)

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

    Looking for a front end dev to collaborate on a chrome extension

    Posted: 30 Nov 2019 12:20 PM PST

    I am making a chrome extension which adds playlist support to bandcamp.com

    I have the basic functionality in place but would like to find a collaborator who is better than me at CSS and can spiff up the user interfaces.

    I am just making this as a hobby project, there will never be any money involved. But it could be a cool thing to put on your resume.

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

    C++ - Help with my while loop (wont display array)

    Posted: 30 Nov 2019 08:02 PM PST

    So I'm making a card game called 66 (26 cards only, Hearts and Spades represented as H/S, first to 66 score wins) Whole code, minimalist and it does compile.

    #include <iostream> #include <cstdlib> #include <time.h> #include <ctime> #include <ctime> #include <string> #include <vector> #include <unordered_map> using namespace std; int main() { //declare variables const int SuitNum = 2; //number of suits in a deck const int FacesNum = 13;//number of cards in each suit int CardNum = 0;// variable to keep track of number of cards in deck string card = ""; //variable to hold array combos being assigned to vector int turn = 1; string PlayedCardP1; string PlayedCardP2; int scorep1 = 0; int scorep2 = 0; //create array for card labels const string suits[] = {"H","S"}; //unordered map for face labels and to hold values unordered_map<std::string,int> CardValue = {{"2",2},{"3",3},{"4",4},{"5",5}, {"6",6},{"7",7},{"8",8},{"9",9}, {"10",10},{"J",11},{"Q",12},{"K",13},{"A",1}}; //unordered map declaration to bind values to deck unordered_map<string,int> DeckValue; //Create vector to store deck names in. vector<string> Cards; //Generate the deck for (int i = 0; i < SuitNum;i++) //iterate through suits { for (auto j : CardValue) { card = j.first + suits[i]; //declare card DeckValue[card] = CardValue[j.first];//add card to deck map and assign value Cards.push_back(card); // add card to vector CardNum++;// raise card number for every card added to deck } } do { cout<<"Turn "<<turn<<endl; //display cards for player 1 cout<<endl; srand(time(0)); cout<<"Player 1 "; while (CardNum > 13) { int RCard = rand()%CardNum;//generate a random number based on number of cards left in deck string DrawCard = Cards.at(RCard); // access a random card //access vector syntax: vector.at(place_value); Cards.erase(Cards.begin() + RCard); // remove cards from vector so they cant be called twice //erase vector element syntax: to erase the 6th element = myvector.erase (myvector.begin()+5); CardNum--; //lower available cards //print card and its value cout<<"["<<DrawCard<<"]"; } cout<<endl; cout<<"Select Card to Play: ",cin>>PlayedCardP1; cout<<endl; //display cards for player 2 cout<<endl; srand(time(0)); cout<<"Player 2 "; while (CardNum > 0) { int RCard = rand()%CardNum;//generate a random number based on number of cards left in deck string DrawCard = Cards.at(RCard); // access a random card //access vector syntax: vector.at(place_value); Cards.erase(Cards.begin() + RCard); // remove cards from vector so they cant be called twice //erase vector element syntax: to erase the 6th element = myvector.erase (myvector.begin()+5); CardNum--; //lower available cards //print card and its value cout<<"["<<DrawCard<<"]"; } cout<<endl; cout<<"Select Card to Play: ",cin>>PlayedCardP2; cout<<endl; turn=turn+1; cout<<endl; } while (scorep1 < 66 || scorep2 < 66); } 

    However, on the second turn of the game, the cards won't display anymore. The problem probably lies here which I tried to modify:

    while (CardNum > 13) 

    When I tried to modify above, it gave player 1 all the cards instead of only half.

    Output sample (red line should also have the yellow highlighted part but minus the played card)

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

    Need help with a setting up configuration file for a program (Unix/Linux)

    Posted: 30 Nov 2019 09:58 PM PST

    If someone can help me get this figured out I would be very thankful. The program that I am using is called gallery-dl and used to download images from a wide range of websites. I got it running on my android phone using the Terminal emulator "Termux" but I can't figure out how to change the download output location. The program uses a JSON based file format for the config file. The output path I would like is /storage/emulated/0/Pictures

    Any help is appreciated!

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

    Advice to Aspiring Programmers - My Two Cents Worth

    Posted: 30 Nov 2019 07:31 PM PST

    Fellow programmers, we have all been there – getting one's bearings and looking for some good advice before venturing into a career in coding. Well, here's my two cents worth.

    Firstly, you should have a good grasp of variegated algorithms. "Grokking Algorithms: An Illustrated Guide for Programmers and other Curious People" by Aditya Y. Bhargava, is an easy to follow book with lots of examples.

    Make flowcharts to visualize program flow; write pseudocode to have the plain English version of the program at hand.

    "Mathematics for Computer Science" – a book by Eric Lehman, F. Thomson Leighton & Albert R. Meyer provides the requisite mathematical background; it's available under the Creative Commons license.

    Start out programming in Python. "Automate the Boring Stuff with Python: Practical Programming for total Beginners" – a website by Al Sweigart – is a breezy introduction to the currently in-demand language.

    When beginning your sojourn into programming, in addition to common tropes – like commenting your code extensively, and using descriptive names for classes, functions and variables – refer to "Beautiful Code" – a guide to write elegant & eloquent code, edited by Andy Oram & Greg Wilson.

    Once you are set, read "Gödel, Escher, Bach: An Eternal Golden Braid" by Douglas Hofstadter. It's a fascinating treatise on the philosophy of computer science that transmogrifies your perspective on programming.

    AI (Artificial Intelligence) is today's megatrend. Don't get left behind; "AI for Everyone" – an online course by the AI guru Andrew Ng - demystifies concepts for the layman. While on the subject, "An Introduction to Genetic Algorithms" – a book by Melanie Mitchell – gives cool insights on the underrated field of evolutionary computation.

    Utilize the popular StackOverflow website for gleaning different answers to the programming problems encountered on an everyday basis.

    Last but not least, play chess, go or real-time strategy games to develop a logical bent of mind that is conducive to programming.

    All the best for your career!

    Note: I am not affiliated to any of the aforementioned resources. I merely found them useful.

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

    First web app

    Posted: 30 Nov 2019 11:18 PM PST

    So I am a pretty (very) novice programmer. I have done a few beginner courses on basic web dev and python, but I've never really done it very seriously.

    Will I just came up with an idea for a web app that is pretty basic (in theory) that I would love to pursue as I think I could make at least a small monthly income from it.

    However, most of my limited programming experience is in just a basic text editor or a web - based environment. Can anyone point me in the right direction for developing a web app?

    The idea involves essentially a relatively simple calculator based on a trip pulled from the Google maps api (which would come from the app users' customers) and a few other inputs (from the app users). It would be hosted on their site. That's the part that seems out of reach to me, making it so they could add their inputs (essentially variables in the equation) and just have it up on their site.

    I feel like I'm bad at explaining this, but I have lurked on the sub for a while and it seems like everyone is pretty helpful so I figured I would at least try to get some help.

    Thanks a ton, even if I can't figure it out.

    submitted by /u/Valuable-Scholar
    [link] [comments]

    Any tips/advice for resources on going from doing Edabit to Leetcode (Python3)?

    Posted: 30 Nov 2019 05:20 PM PST

    I'm learning Python3, and I can do some (if not most) of the Edabit questions, but whenever I attempt to filter through the easy Python3 Leetcode questions, I seriously am unable to even know where to start.

    I'm trying to learn how to crack the coding interview through exercises and practices, but where I struggle is the coding interview questions (which most of them are on Leetcode).

    For some reason, Edabit is the perfect kind of difficulty for me right now, but Leetcode appears to be too difficult.

    Are there any resources or recommendations on how to ease an individual into Leetcode coming from Edabit?

    Thanks!

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

    Is anyone aware of this obscure software?

    Posted: 30 Nov 2019 10:42 PM PST

    So I was wondering if there exists any sort of functions or online software that could essentially take any picture (i.e. a leaf outside) and then that code be converted into a simplistic graph.

    For example, I received code for a Matlab assignment that produced a simple sailboat using matrices.

    I also once saw a man who made a website that took a picture and turned that picture into an excel spreadsheet by coloring different cells like pixels (so maybe something like that).

    Any ideas are helpful! Thanks!

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

    What i need to know to write IDE ?

    Posted: 30 Nov 2019 10:11 PM PST

    i want to create an IDE .

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

    Not sure if i want to be a programmer.

    Posted: 30 Nov 2019 09:50 PM PST

    You see i love working with computers but when i was signing up for college i wasn't sure what i wanted to do so i picked computer science and engineering. The thing is that i suck at both programming and calculus. I feel like you need a lot of dedication into programming but I'm not interested enough to dedicate myself to it; i just don't feel the same as i use to about it. Is there any other route i can go to with working with computers? I know there's alot but any advice?

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

    Trying to return to programming, I have one program I want to make. I got FreeBASIC. Is there a developer program like QBASIC.EXE used to be?

    Posted: 30 Nov 2019 09:49 PM PST

    I can't even find the installation on my computer.

    The only thing I will need to learn is how to draw squares of particular colors and shades. I don't want to get really into programming, just make this one simple tool.

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

    Multiplication & division in Hardware help!!!!

    Posted: 30 Nov 2019 08:55 PM PST

    Hi guys! I'm in an assembly course right now and I'm really struggling with multiplication and division. I need to create a signed multiplier and divider in logism without using the built in mult and div arithmetic units. I'm not sure at all how to approach this and any help would be appreciated. I understand the process on paper but I really don't know how to convert it to logism

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

    Does anyone else get frustrated sometimes?

    Posted: 30 Nov 2019 08:54 PM PST

    By frustrated I mean do you ever get aggravated that you have this grand project but you can't ever seem to figure out how to get it off the ground. Or even worse, you get it started and the momentum is good and then you just get stuck in a point where not only do you not understand a topic, you don't even know what topic you need to research to get past the hurdle.

    I love programming and it has helped me solve plenty of problems but this has happened so many times.

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

    Should you be a ServiceNow Developer?

    Posted: 30 Nov 2019 04:58 PM PST

    I made a YouTube video on ServiceNow Development

    https://www.youtube.com/watch?v=JpkUKOTUY7A

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

    Should I start or with Lua or Python (complete beginner)

    Posted: 30 Nov 2019 08:30 PM PST

    Hello everyone, I recently decided to finally learn programming. I am completely new to the subject, and I've seen many people online recommending Python as a beginner language. However, my main goal is to make video games, and Lua kind of seems like a more tempting language for that field. Many of my favorite games are written in Lua—such as Garry's Mod, Civilization V and VI (a portion of it was Lua, correct me if I'm wrong), and some others. I would love to be able mod and script these games. There aren't many projects like this I can see myself doing this with python though, although I know it's great for software development and automation; I would be more interested in being able to apply my knowledge to video games.

    Anyway, I would appreciate feedback from you guys; which language do you think I should learn first?

    Thank you for providing responses and reading!

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

    GPU speeds on deepfacelab

    Posted: 30 Nov 2019 08:14 PM PST

    Currently on shitty 940mx

    Its 10k iteration at 3 hour process training.

    Im thinking of upgrading my laptop to 1650 gtx gpu.

    Would that speeds up the training process?

    I could get 2080rtx laptop but pricewise a tad bit steep.

    Pc is out of the question as I move around pretty much every week

    Thanks guys

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

    Seriously how can i improve my skills ?

    Posted: 30 Nov 2019 12:41 PM PST

    Hey, so it's been 3 months since i started Computer Science classes in college. We are learning algorithm and Java as our main language in programmation (I'm willing to learn other languages like C or Python as well) Currently we are studying Classes and Objects (i guess)

    Anyway, lately i had this huge problem and that is that i'm not completly able to make complete programs by myself from 0 to the end when we are giving tasks to do like display a game of tic ta toe or anything else. There is always something that blocks me and i have no idea what to do.

    When i say" something that blocks me", i don't mean a problem i found when i try to compile the code, No, i mean i have no idea what code i have to write to advance in the coding and finally complete the task.

    So basically the recurrent question that comes to my mind is ; "WHAT DO I HAVE TO DO NOW ?"

    This issue is even more serious when we have an exam and in a limited amount time i have to figure what i have to write to make a program that answer the task. I get stock and have no idea what do i have to do to make it work. I know what i have to do i understand what the task/exercice ask me to do but the issue is HOW ? WHAT DO I HAVE TO WRITE SO IT CAN DO THAT ? (btw we don't have access to internet during exams)

    Anyway i tried to know what was the problem, why can't i know what to do and why the others always know...

    Didn't understand something in the lesson ? Or is it something that i may have missed ? Did i have to think into the problem even more to try something logical, try to use the code but in a another way and try to make the program work ? (Understand, that i'm bit slow to apprehend things and understand how they work. Unlike my classmates who can undertstand faster something)

    My issue is that i need to know what code i need to use to advance in the coding and be able just to test the program and also to know how can i use a code or command differently so i can think about a problem even more logically.

    I don't know if what i say is comprehensive but right now i think what i need to do is to improve my brain process of thinking. I need to think even more logically about the problem and try to use different ways of coding. As i said i'm slow to understand things and when i analyse a code to understand how it works it takes a good of time (not really a big amount but it's still something) but i still end up understand (i really get happy when this happens).

    So i need to know what do i have to do improve myself and my current skills ?

    I really feel sad when i see others being able to resolve and be to complete what they want if though they are just like, in their first year of C.S.

    Do you have suggestions (websites, things i can do, etc..), i'm willing to do anything just so i can improve myself and finally be able to do things by myself instead to ask for help from my classmates (yes asking is ok but not too much i want to rely on myself more)

    I'm ABSOLUTELY NOT willing to give up anytime, even if i'm slow to understand things i pretty sure i can improve that as well.

    Thanks for reading, i'll wait for your answers

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

    Swift Learning

    Posted: 30 Nov 2019 08:08 PM PST

    What's a good, reliable source of learning Swift and SwiftUI? I would like to avoid books, but if it's the best option, I'll do it.

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

    How should I start tackling low level programming as a high level intermediate?

    Posted: 30 Nov 2019 08:42 AM PST

    Briefly for context: I'm 19 years old, started programming fairly early with Python. As I grew up I taught myself C++ and Java through online tutorials and Youtube videos. I'd describe myself as an intermediate (solid grasp of OOP and somewhat familiar with memory management) and did lots of small projects.

    The older I became the more I cultivated a sort of passion for lower level stuff. I installed MS-DOS on a virtual machine (including drivers and a functioning text browser) that I'm very comfortable using, and messed around with the very basics of x86 Assembly with NASM and 6502 for homebrew NES games, so I'm not going into this completely blind.

    I want to get into the brutally low level aspects of programming, I'm talking manually programming an EEPROM chip on a Motorolla microcontroller, or making my own OS down from the kernel, or writing my own compiler (which i assume is pretty far in the future but a lad can dream) but being the relatively normie high-level programming kid, I have absolutely zero idea where to start with the "Hardmode new game+" of programming. What tools do I use to program en EEPROM? Which assembly should I use for the kernel loader? How is a compiler even structured in the first place?

    I don't want to have my hand held through the process but I'd love to be pointed in the right direction and be given advice that I wish I'd have known sooner.

    (P.S. I'm from a tiny mediterranean country where shipping electronics is a pain in the ass so my budget is fairly tight)

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

    No comments:

    Post a Comment