• Breaking News

    Wednesday, October 28, 2020

    Math in web dev learn programming

    Math in web dev learn programming


    Math in web dev

    Posted: 27 Oct 2020 06:20 PM PDT

    Hi, I'm self-studying to be a web developer, mostly front-end for now, and I wonder how much math do I need to be good at it.

    Mostly because I recently finished a course of calc 2, and I don't really know if a should go for discrete math or full html/css, javascript, react, etc.

    What would you recommend me and why? Also, thanks in advance! :)

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

    Code Review: A little board game framework, MCTS AI, and a reversi game implemented using them

    Posted: 27 Oct 2020 01:36 PM PDT

    Hi! I`ve never done any serious programming and I do want to improve, so I want every kind of remarks and comments imaginable. I am especially interested in the overall design: is that the right way to organize classes? What should I do to make my code more idiomatic and easy to read?

    Two words about the inner workings:

    There are two main classes: Game and MCTSPlayer. The first one is just an abstract class with a couple of methods and some hints on how to implement actual games. The second implements the simplest form of MCTS algorithm, storing a graph of all known games as a dict[Game, NodeInfo]. That graph is sometimes trimmed to save some memory by deleting games that are unreachable from the current one. For that, a class that inherits from the Game can implement __lt__, so that if a and b are instances of the same game a<b would mean that a is unreachable from b. In the main file, there is a function interactive that implements a simple console interface: one can input your moves one by one, input many moves and undo, and see how the program estimates probabilities of winning for both players.

    main.py

    from othello import Othello from mctsplayer import MCTSPlayer from game import GameState def interactive(): g = Othello() p = MCTSPlayer(g) games = [g] while not g.finished(): print(g) print(g.possible()) print(g.state) if g.state == GameState.BlacksMove: s = input() if s.startswith('apply '): ms = eval(s[5:]) for m in ms: g = g.with_move(m) continue if s == 'pop': g = games.pop() games.pop() p.update_game(g) continue try: x, y = map(int, s.split()) except ValueError: print('Invalid input') continue if (x, y) not in g.possible(): print(f'Invalid move {(x, y)}') continue g = g.with_move((x, y)) p.trim_to() p.update_game(g) elif g.state == GameState.WhitesMove: bm = p.best_move() print(bm) g = g.with_move(bm) p.update_game(g) if g != games[-1]: games.append(g) interactive() 

    othello.py

    from enum import Enum from game import Game, GameState from copy import deepcopy class OthelloPieces(Enum): White = 1 Black = 2 Empty = 3 def flip(self): if self == OthelloPieces.White: return OthelloPieces.Black if self == OthelloPieces.Black: return OthelloPieces.White return OthelloPieces.Empty class Othello(Game): def __init__(self, base: 'Othello' = None): self.board = dict() self.state = GameState.BlacksMove if base is not None: self.board = base.board.copy() self.state = deepcopy(base.state) else: self.board[(3, 3)] = OthelloPieces.White self.board[(4, 4)] = OthelloPieces.White self.board[(4, 3)] = OthelloPieces.Black self.board[(3, 4)] = OthelloPieces.Black self.changed = True self.possible_memo = None self.possible_memo = self.possible() def with_move(self, pos: tuple[int, int]) -> 'Othello': ret = Othello(self) assert pos in ret.possible(), 'Invalid move: ' + str(pos) + ' in game \n' + str(ret) x_0, y_0 = pos piece = OthelloPieces.White if ret.state == GameState.WhitesMove else OthelloPieces.Black opposite = piece.flip() to_flip = [] ds = [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)] for dx, dy in ds: to_add = [] add = False for i in range(1, 8): x = x_0 + dx * i y = y_0 + dy * i if not 0 <= x < 8 or not 0 <= y < 8: break if (x, y) not in ret.board.keys(): break if ret.board[(x, y)] == opposite: to_add.append((x, y)) if ret.board[(x, y)] == piece: add = True break if add: to_flip.extend(to_add) for p in to_flip: ret.board[p] = piece ret.board[pos] = piece ret.change_state() ret.changed = True if not ret.possible(): ret.change_state() ret.changed = True if not ret.possible(): ret.change_state(True) return ret def change_state(self, force_end=False): if {(x, y) for x in range(8) for y in range(8)} != self.board.keys() and not force_end: if self.state == GameState.WhitesMove: self.state = GameState.BlacksMove elif self.state == GameState.BlacksMove: self.state = GameState.WhitesMove return w = list(self.board.values()).count(OthelloPieces.White) b = list(self.board.values()).count(OthelloPieces.Black) if w > b: self.state = GameState.WhiteWon if w < b: self.state = GameState.BlackWon if w == b: self.state = GameState.Draw def possible(self) -> list[tuple[int, int]]: if not self.changed: return self.possible_memo ret = [] ds = [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)] piece = OthelloPieces.White if self.state == GameState.WhitesMove else OthelloPieces.Black opposite = piece.flip() for x_0 in range(8): for y_0 in range(8): good = False if (x_0, y_0) in self.board.keys(): continue for dx, dy in ds: started = False if good: break for i in range(1, 8): x = x_0 + dx * i y = y_0 + dy * i if not 0 <= x < 8 or not 0 <= y < 8: good = False break if (x, y) not in self.board.keys(): break if self.board[(x, y)] == piece and started: good = True break elif self.board[(x, y)] == opposite: started = True else: break if good: ret.append((x_0, y_0)) self.possible_memo = ret self.changed = False return ret def finished(self): return self.state in [GameState.BlackWon, GameState.WhiteWon, GameState.Draw] def __repr__(self): ret = [['-' for _ in range(8)] for _ in range(8)] for x in range(8): for y in range(8): key = (x, y) symbol = '-' if key in self.board.keys(): if self.board[key] == OthelloPieces.White: symbol = 'O' if self.board[key] == OthelloPieces.Black: symbol = 'X' if key in self.possible(): symbol = '.' ret[key[1]][key[0]] = symbol return ''.join([''.join(l) + '\n' for i, l in enumerate(ret)]) def __str__(self): ret = repr(self)[:-1].split('\n') ret = ''.join([str(i) + l + '\n' for i, l in enumerate(ret)]) ret = ' 01234567\n' + ret return ret def __eq__(self, other): if type(other) == str: return repr(self).replace('\n', '') == other.replace('\n', '').replace(' ', '') if type(other) == Othello: return self.board == other.board and self.state == other.state def __hash__(self): return hash((frozenset(self.board.items()), self.state)) def __lt__(self, other): assert type(other) == Othello return len(self.board) < len(other.board) 

    mctsplayer.py

    from time import time from game import Game, GameState from dataclasses import dataclass from random import choice @dataclass class NodeInfo: """ W: number of children where white won B: number of children where black won V: number of visits P: list of parent games """ W: int B: int V: int P: list class MCTSPlayer: def __init__(self, game: Game): self.game: Game = game self.known: dict[Game, NodeInfo] = dict() def update_game(self, game: Game): self.game = game def playout(self, state: Game) -> GameState: gt = type(state) g = state if g not in self.known.keys(): self.known[g] = NodeInfo(0, 0, 1, []) while g.possible(): p = g.possible() m = choice(p) parent = gt(g) g = g.with_move(m) if g in self.known.keys(): self.known[g].P.append(parent) else: self.known[g] = NodeInfo(0, 0, 1, [parent]) if g.state == GameState.WhiteWon: self.known[g].W += 2 elif g.state == GameState.BlackWon: self.known[g].B += 2 else: self.known[g].B += 1 self.known[g].W += 1 self.backpropagate(g, state) return g.state def backpropagate(self, g, state): stack = self.known[g].P c = 0 while stack: i = stack.pop() if i not in self.known: continue c += 1 if g.state == GameState.WhiteWon: self.known[i].W += 2 elif g.state == GameState.BlackWon: self.known[i].B += 2 else: self.known[i].B += 1 self.known[i].W += 1 self.known[i].V += 1 if i == state: continue stack.extend(self.known[i].P) def best_child(self) -> Game: children = [self.game.with_move(i) for i in self.game.possible()] m = 0 b = None for c in children: v = 0 if c not in self.known.keys(): self.playout(c) if self.game.state == GameState.WhitesMove: v = self.known[c].W/self.known[c].V if self.game.state == GameState.BlacksMove: v = self.known[c].B/self.known[c].V if v >= m: m = v b = c return b def best_move(self) -> tuple[int, int]: g = self.game known = self.known p = g.possible() c_to_move = {g.with_move(i): i for i in p} start = time() new = 0 while time() - start < 2: best = self.best_child() self.playout(best) new += 1 print(new, 'new playouts') bc = self.best_child() print(f'P(W) = {known[bc].W / known[bc].V/2}, P(B) = {known[bc].B / known[bc].V/2}') print(f'len(known) = {len(known)}') return c_to_move[bc] def trim_to(self): for k in list(self.known.keys()): if k < self.game: del self.known[k] 

    game.py

    from abc import ABC, abstractmethod from enum import Enum class GameState(Enum): WhitesMove = 1 BlacksMove = 2 WhiteWon = 3 BlackWon = 4 Draw = 5 class Game(ABC): def __init__(self, other=None): if other is not None: self.board: dict = other.board self.state: GameState = other.state @abstractmethod def with_move(self, m) -> 'Game': pass @abstractmethod def possible(self) -> list: pass @abstractmethod def __lt__(self, other): pass 

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

    Remembering vs understanding

    Posted: 27 Oct 2020 03:44 PM PDT

    For all of the veteran coders out there. How much of your coding do you remember vs have to look up? I find that my problem is that I code slow because often I'll have to look things up many many times before I begin remembering how to do something without checking. Is this fairly normal, or is my memory just bad? I find that I understand the code well after I look it up and implement it. The problem is that if I had to go back and use that same piece of code the next day, I'll have to look it up again. For example, in JS, if I needed to implement an XHR request, I know each part of it. I understand how it works. I could spot if something is missing. The problem is that I can't remember the small details and syntax and would need to pull up a template of a basic XHR request in order to implement one into my code.

    Is this fairly normal, or am I behind? Any tips for remembering things like this?

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

    Why use a recursive function instead of an iterative function?

    Posted: 27 Oct 2020 05:11 PM PDT

    In one of my college classes, we've just touched on the subject of recursive functions. An assignment had us convert an iterative function in an old program from a previous assignment into a recursive function.

    I don't understand the benefit of recursive functions. In both situations, we're repeating the same commands until our condition statement is no longer true, then returning a value.

    However, the recursive function splits the while loop from the iterative function into an if-else statement and has an additional return statement. Overall, I feel like this is messier and just plain uglier.

    I'm assuming there are situations where you can't use one or the other, but I can't imagine what that would be.

    Iterative:

    def newton(square): TOLERANCE = 0.000000001 squareRoot = 1 while abs(square - squareRoot**2) > TOLERANCE: squareRoot = (squareRoot + square / squareRoot ) / 2 return squareRoot 

    Recursive:

    def newton(square, squareRoot = 1): TOLERANCE = 0.000000001 if abs(square - squareRoot**2) > TOLERANCE: return newton(square, (squareRoot + square / squareRoot ) / 2) else: return squareRoot 

    also I didn't know about optional parameters until this unit, but afaik it can work in both situations

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

    Is there a way to overcome the disabled Community Captions on Youtube through programming?

    Posted: 27 Oct 2020 01:00 PM PDT

    As I know Google disabled it because it was "rarely used and had problems with spam/abuse". But most of us agree it did benefited a lot of us. I as a non-native english speaker I've bennefited from it (it's easier to learn the language when you listen while you read), deaf people might be the most benefited from all.

    I had the idea if it could be done from the outside of youtube, and there's the captions API for youtube which accepts uploading a file (I guess it's a .srt file). Idk how succesful could it be but my idea is syncing a video with a caption viewer before uploading it and upload it when it has a satisfactory result.

    I'm not even sure if it is worth the fight but I had the insight and I wanted to share it.

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

    Is it necessary to rot learn programming?

    Posted: 27 Oct 2020 07:55 PM PDT

    So for the past year I've been learning web dev and gotten into the habit of googling syntax. Many people say that syntax is not important as long as you got the logic right so that's what I focused on. I complete online certifications like HarvardsX's CS50W and University of Michigan's Python for Everybody. This has allowed me to get right into making half decent web apps but that has come at the cost of me having to look up basic stuff too often.

    I realized this yesterday while applying for a job as a Diango dev when the recruiter asked me to make a simple web scraper for quotes in 5mins. I froze and even though I've made plenty web scrapers in the past, I couldn't do it. He then thought that perhaps I'm rusty with web scrapers and asked me to make a simple fibonacci series prog using recursion in 2 mins. Aaaaaand I froze again.

    I was scribbling random text trying to get it to work but I couldn't. He was also asking me random programming questions related to python and django while I was 'coding' those programs which I was fortunately able to answer. But in the end he was convinced that I couldn't code at all.

    Since then I've been wondering whether I'm even cut out for programming or not. I have been learning to code for nearly a year making backends using django and front ends using vanilla js but it feels like all that effort was pretty pointless if I cant even write 5 liners without googling it.

    After the interview I felt stupid and made the two programs and memorized them.

    How did you guys learn programming? Did you memorize programs and libs or just focused on making what you wanted to make.

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

    Trying to create a method to return a string in reverse order, keep getting an error

    Posted: 27 Oct 2020 11:28 PM PDT

    I'm trying to create my own method that accepts a string parameter and returns it in reverse order, but I keep getting a vague error message. I created two for loops, one to return the string with the char's in normal order, which works perfectly, but the reverse for loop is the one that's giving me the issue for some reason. It works as intended if I replace .length() with a normal int value thats the actual length of the parameter, but I want the parameter to be able to change, so .length() is needed.

    I'm not really seeing why it wouldn't work, could anyone give this a look over and point me in the right direction?

    The error code is:

    at java.lang.String.charAt(String.java:658)

    Java returned: 1

    public static String reverse(String str) { String r = ""; /* for(int i =0; i<str.length(); i++) { r+= str.charAt(i); } */ for(int i = str.length(); i>0; i--) { r += str.charAt(i); } return r; } 
    submitted by /u/Oppai-no-uta
    [link] [comments]

    Any tutorials or courses that only have little to no Front end? C++ or Python

    Posted: 27 Oct 2020 10:37 PM PDT

    I've been making just simple apps and I can definitely say that I dont like front end. I made a visualizer and it took me more time to design the page than doing the actual algorithms and such. Styling just becomes trial and error at certain times.

    So any courses recommendations? Paid courses are welcomed. I really just need some good courses to add to my list if ever I dont know what to do again.

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

    Help! I'm looking for a conference talk and cannot find it via web search...

    Posted: 27 Oct 2020 06:43 PM PDT

    So, I watched a conference talk video (YT or Vimeo, probably) a year or so ago and I've been searching for it on the web for some time without any luck. Here's what I recollect about the talk, and I hope that it will spark someone's memory who also saw the talk:

    1) The topic was about program correctness using formal methods

    2) The speaker was female

    3) I thought the title of the talk was something like "Writing True Programs" or "Proving Programs True" or something to that effect. I definitely recall that the speaker specifically played to the anachronism of talking about "truth" in the context of software, where such a metaphysical concept seems irrelevant.

    4) The speaker goes on to describe a game theoretic scenario played out between two adversaries, and she illustrates one with a smiley-face emoji and dubs him "the smiley-face guy" and the other with a purple-devil-face emoji and dubs him "the bad guy"

    5) The basic concept was that "the bad guy" is allowed to make arbitrary changes to the hardware that "the smiley-face guy"s software is supposed to run on (error-free) and the software is supposed to properly handle all the various failure cases, reaching a correct shutdown/exception condition.

    I can't remember the rest of the details of the talk but it was a really high-quality talk, and that's why I wanted to go back and watch it again in-depth this time.

    Any tips, hints, leads, DMs, cross-posts... anything is appreciated!

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

    Learning C++ as my first language, thoughts?

    Posted: 27 Oct 2020 10:13 PM PDT

    I've been researching and people have been saying once you learn C++ learning other languages will be easier so here are my questions:

    - Is it worth it learning C++ as a first language? and is it worth it to learn at all

    - Where can I learn C++ for free online?

    - If you don't think learning C++ as a first language is a good idea, what other languages can you suggest?

    PS: I've been trying to learn Python in code academy for about a month now and getting nowhere because I don't like the approach of code academy I just feel confused since I don't really feel like I'm learning since it just tells me what to do so I think learning a different language will be better. Although I did learn some concepts of if elif and functions but that's it.

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

    I need help writing an algorithm for a project

    Posted: 27 Oct 2020 05:59 PM PDT

    Hello Reddit, I need help!

    I'm not the best at programming, so I have a question. I'm working on a personal project, where I'm going to be using sensors attached on a tight, the sensors would collect the data according to time ( approximately every 0.5 seconds ) and positions, save it into a CSV file. Then I'm looking to write an algorithm that would then compare the data in the file to a variable and print something such as " adjust your position".

    I don't know if I'm explaining this well, but so far I have found a way to read the file and print it out. but I need any tips.

    I'm using java!

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

    how would you use a enum for gender as a member of a class?

    Posted: 27 Oct 2020 05:37 PM PDT

    I want a member variable of my class to be gender.

    I think it would be best if I could assign that gender variable with either male or female values.

    I think it would make sense to have a gender enum which contains male and female. But I can't use the name gender for the enum because I use that for the gender variable which will be assigned the gender from the gender enum.

    Could you write in C++ or C# (prefer C#) how you would make the enum and the class to accomplish this in a nice way?

    Oh, and I almost forgot, do you think the enum should have a third option for unselected or something similar? What do I initialize gender to before I know what the gender is (which is filled in when the object is created)=

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

    Light book suggestions

    Posted: 27 Oct 2020 05:24 PM PDT

    Hi I've downloaded a lot of Programming and predominantly Python textbooks to use to study python. I was wondering if there's any recommendations for more lighter reading for Python and programming in general any book recommendations that aren't just cumbersome textbooks that are a bit difficult to read.

    I'm kinda interested in something a bit lighter for a beginner to read occasionally when I'm in a coffee shop/chilling and not in a full on study mode but I still want to be productive.

    Sorry if the question is a bit vague thanks though.

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

    New to programming and I have some questions I hope you can help with

    Posted: 28 Oct 2020 12:50 AM PDT

    Hello, I just started my journey into programming with the hope of becoming a software engineer or website developer someday. I've done a bit of research and looked around for advice from reddit and youtube channels, and so far more than a little confused on where to start. So a bit of background info, I don't have a computer science degree or any sort of professional work experience but i am interested in entering the field. The problem is I don't really know where to start so i have many questions that I hope someone might be able to help me with.

    1. I heard that python is a great introductory language into programming, but what if you're not as interested in machine learning? Would python still be as applicable in other areas like app making or in front end engineering? Or would javascript/html5/etc be better suited?
    2. Also, can someone with experience in front end and back end programming share what their experiences are? What are differences/challenges? What is the day-to-day tasks or work you need to do? 3
    3. . I saw this video about what the fastest way to enter the field was, I'm wondering if this still holds true today and whether it's a good decision to make?
    4. Also how are the interviews for a job as a developer like? Does anyone mind sharing what their experience was like? Or if you were recruiting someone for the job, what are the tests/questions you would give?

    Thank you guys in advance!

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

    What to learn for basics of machine learning ?

    Posted: 27 Oct 2020 12:12 PM PDT

    Hey guys. I will keep it short. I want to create a bot that learns how to build sentences. I searched the web and somehow every site recommends something else. What do you think I should learn to create this basic task ? I know the task is basic but the process is hard. So no misunderstanding here. I will use python and wrote a web crawler that takes random wiki articles and extracts the text and puts them in a DB where the different building blocks of the sentence is already split up in word groups (like adverbs).

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

    What are some benefits and downsides of attending a Hackathon?

    Posted: 28 Oct 2020 12:24 AM PDT

    Hello, I'm freshman. My professor yesterday asked if we wanted to attending a Hackathon organized by my city. I've never attended any programming contest, so I'd like to know more about its benefits and downsides. Thank you!

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

    sWIFT playground solutions

    Posted: 27 Oct 2020 06:23 PM PDT

    I am working my way through the Apple playgrounds tutorial for Swift. I would like to compare my solutions to the different challenges to other solutions. Is there a place where others post their code?

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

    Decoders vs Multiplexer

    Posted: 27 Oct 2020 10:22 AM PDT

    So I am having difficulty understanding the difference between the two.

    A decoder takes 2 inputs and based on the combination sets one of the out put gates high.

    A multiplexer takes 4 inputs and 2 select inputs which determine which one of the 4 ouputs get turned on.

    I have 2 question:

    1. Is my understanding correct?
    2. Is the decoders purpose to construct a multiplexer? what use does it have on it's own
    submitted by /u/HemishFromPerth
    [link] [comments]

    Should I do the free Harvardx Computer Science courses?

    Posted: 28 Oct 2020 12:05 AM PDT

    So basically I have this website idea that I'm pretty into that is basically an alternative to LinkedIn but it matches people with work they can be passionate about.

    My main issue is I've spent a week or two trying to learn flask as I already know a bit of python and it's proving difficult. It's hard to know whose instructions to follow in my own design as different youtubers do different things.

    So I though I could complete this. Has anyone done this before or have any thoughts on it? I'm not particularly passionate about coding, but I don't mind it, so I'd mainly be doing this to make my website idea and other ideas.

    let me know what you think :).

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

    I want to learn how to create an AI from scratch. Where do you start?

    Posted: 27 Oct 2020 08:06 PM PDT

    I really want to learn and make my own AI but I dont know where to start. I don't know what IDE to use. I'm fine with any programming language but I prefer python or C#/C++. I just want to make an AI to do simple task on computers (like sending emails or play a music) and maybe I could improve it more. Thanks in advance!

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

    Api request failed with error child “query” fails because [“query” is required]

    Posted: 27 Oct 2020 05:36 PM PDT

     useEffect(() => { async function fetchCommonNutritionData() { const response= await fetch("https://trackapi.nutritionix.com/v2/natural/nutrients", { method: 'POST', headers: { "x-app-id": "d789d836", "x-app-key": "37eff6ec81579e3b8b0d8512b4352c5d", }, body:{ "query":commonFoodName1, } }) const data = await response.json(); setCommonNutrition(data) } 

    What is going on? Why is it giving me this error? I can't see anything wrong. Help!

    I 'm using React

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

    Recommendation to implementation of extracting borders of pictures to analyze centeredness

    Posted: 27 Oct 2020 11:24 PM PDT

    Pre-note: Had no success at r/computervision so I will post it again here.

    If that title was too abstract for you, here is what I meant. I would like to how centered a basketball card is, only judging their borders. As can be seen in the picture below, I want to measure if the border size (the edge of the card to the edge of the picture). I denote the top and the bottom-top and the left-right borders with black and red respectively, but basically, all 4 measures should be equal to each other.

    https://imgur.com/a/82dmxN2

    The reason that I asked so is because, sometimes the picture is not always straight-up like the one above. I believe that the picture will always be tilted like so:

    https://imgur.com/a/f4fveD0

    My view is, grab the four corners, and straighten the picture, then measure the corners. This is where I have questions:

    • Is there any way to automatically straighten up a picture? Assuming that every card has a certain ratio of length-width.
    • How do I detect the width of borders, so that I can compare 4 widths together?

    I sort of have an idea for my second question...but I feel like that it is much more complicated than necessary, I will share it anyway if it helps. For any sorta memorabilia, there are usually grading companies. A score of 10 denotes perfection, including borders' width that I mentioned above. I can implement a machine-learning algorithm to train the machine to learn what the borders' width is on those graded-as-10 cards, then apply it to the unknowns. But as I said, this is probably too complicated - as I can just measure the width directly and compare all 4 widths together.

    If someone can point me to the correct dimension, I would greatly appreciate it. Thanks folks!

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

    Alternatives to repl.it classrooms?

    Posted: 27 Oct 2020 11:10 PM PDT

    Classrooms on repl.it is sunsetting and the proposed alternative (repl.it teams) is not cutting it. On repl.it classrooms, I am able to provide a question description, boilerplate code, and keep track and grade each submission, and also to send back feedback. . Are there any other services that provide such features? Paid and free services are both welcomed.

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

    Getting single file from Github repo

    Posted: 27 Oct 2020 11:08 PM PDT

    I created a repo and pushed it to Github. I forgot to add a README.md file so I created one on Github. I want to bring this README file (and only this file) down into my local repo.

    I tried to push some changes in another file but I got an error:

    hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    What command should I use? git pull origin master?

    https://git-scm.com/docs/git-pull

    https://stackoverflow.com/questions/18328800/github-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-h

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

    How good is LeetCode ?

    Posted: 27 Oct 2020 11:06 PM PDT

    Basically title. I am about to complete CS50, but I feel like I need some more practice before I am fully confident w/ my knowledge. I heard from some people on this sub that it isn't that good. Are there any other good alternatives if LeetCode is bad ?

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

    No comments:

    Post a Comment