Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. S

    What should I learn next? Mention anything

    I'm feeling bored. My job involves linux, k8s, docker, sql etc. What should I learn next? I want to learn music but it's expensive to purchase good musical instruments. I don't like learning drawing, new foreign language etc. I like to learn programming. But I'm not sure what should I learn...
  2. S

    C++ Which C++ book should I read?

    I've finished a 50hr course on C++ and my basics are somewhat clear although I'm not confident of it. So, I am looking to improve my C++. My ultimate aim is to study data structures and algorithms in C++. As I said earlier, I've already grasped basics of C++. Since my ultimate goal is to...
  3. S

    Which of these projects are easier in order?

    CS Notes selling site for my country. blog website Meme templates website Movies like "movie_name" recommender Reminder in calendar. Video watched percentage calculator from a playlist. Like in udemy. Another blog where anyone can create an account and post. Locally hosted book search engine...
  4. S

    How do I learn programming?

    For eg: Currently I am trying to learn bash shell scripting, text processing using bash etc. But the problem is I don't think I can learn it. Why? Because I don't know programming. In particular, problem solving. I don't know problem solving at all. I try my best but I fail. In the past, I tried...
  5. S

    C++ How does changes in user defined function gets reflected in main function in call by address?

    I've asked my question in the figure below as picture speaks 1000 words. My question in short is same as title. Code: #include<iostream> using namespace std; void change(int*,int*); int main() { int x,y; cout<<"Enter values of x and y"<<endl; cin>>x>>y; change(&x,&y)...
  6. S

    JavaScript What does the x and y value mean here? Can you show in a figure?

    function checkBoundaryCollision() { if (x - ballRadius <= 0 || x + ballRadius >= canvasWidth) { dx = -dx; } if (y - ballRadius <= 0 || y + ballRadius >= canvasHeight) { dy = -dy; } } Full code here: https://codepen.io/pelko/pen/gOjXdaq
  7. S

    What should I do Before I give up programming?

    I'm in the verge of giving up programming and wondering what could I do before I give up to make sure I did what everyone did. I've a bachelors degree in computer science. I didn't do it as well as I'd have liked to do, but that degree has gave me familiarity with most terms used in basic...
  8. S

    JavaScript How to reflect the ball at an angle?

    Here's the full code: https://codepen.io/pelko/pen/MWBpNmL When a ball collides with bat or walls, I want the ball to be reflected with an angle, how do I do it? I suspect there's lots of physics to it. So, should I stop this project here? I'd have to probably build a part of game engine…Can...
  9. S

    JavaScript How to paint an element in screen using javascript?

    <div class="body"> <div id="board"> <div id="bat" class="bat"></div> <div id="ball" class="ball"></div> </div> </div> This is my HTML. I've done CSS For all of them and generated this: Now, I want the bat to move left and right when I press arrow keys...
  10. S

    JavaScript input Direction confusion in snake game javascript?

    Here's the full code: https://codepen.io/pelko/pen/jOpBmPN This is the code that I'm interested in: window.addEventListener("keydown", e => { inputDir = { x: 0, y: 1 }; moveSound.play(); switch (e.key) { case "ArrowUp": inputDir.x = 0; inputDir.y = -1; break...
  11. S

    JavaScript Why will the if condition be executed in this recursive snake game?

    I'm currently watching tutorials to build projects as I'm still not in a phase where I can carve a project that I want all on my own. Currently, working on a snake game. let speed = 2; let lastPaintTime = 0; //Game functions function main(ctime) { window.requestAnimationFrame(main); if...
  12. S

    JavaScript How does props program flow work in react js?

    App.js: import React from 'react' import Helloworld from './components/HelloWorld'; import Users from "./components/Users"; const App = () => { return ( <div> <h1>List of Users</h1> <Users name="Zino Emi" job="Developer" /> <Users name="Lionel Messi" job="Web Developer"...
  13. S

    Date not passed via props in react js

    App.js import './App.css'; import Subscription from './components/Subscription'; // import Myroutes from "./Myroutes.js"; function App() { let subscriptions = [{ id: "1", date: new Date("2021", "3", "23"), title: "Monthly Subscription", amount: "125.60" }, { id: "2", date: new Date("2020"...
  14. S

    CSS Bring navbar at center CSS

    https://demo.w3layouts.com/demos_new/template_demo/28-07-2021/biodata-liberty-demo_Free/2002651968/web/index.html This is the website that I am trying to build. This is my current navbar. This is what I want to build. My focus is on "Home" to "Contact". I want to put it at the center of the...
  15. S

    HTML Input type checkbox not working properly in HTML.

    <body> <form> <div> <input type="checkbox" name="mailing-list" id="mailing-list" value="no" /> </div> <div> <input type="submit" value="SUBMIT" /> </div> </form> </body> Initial value of checkbox is “no”, I click in checkbox...
  16. S

    Python page not found 404 django

    Goal: 127.0.0.1:8000/about Should give: welcome to to about us page 127.0.0.1:8000/contact Should give: welcome to contact page Problem: Both are giving "page not found at /" Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/contact/ Using the URLconf...
  17. S

    Why did we remove multiple document types within an index in ElasticSearch?

    The answer is this-: Because we can't declare a field of different data types within a same index in different document types. Say there's an index called "college". Then there are document types called "student" "teacher" "administration" "staff". What problem would occur if we allow this...
  18. S

    Lucene confusion

    What is the difference between creating an index vs adding a document to index in this figure? The below figures are taken from a different source-: https://www.cs.ucy.ac.cy/courses/EPL660/labs/LAB03/LAB03.pdf And in this figure what's the difference between creating a lucene document and...
  19. S

    I need a networking(computer networking) forum to ask a basic network desing question.

    Any recommendations. It's not beginner material rather intermediate but isn't professional material. So need sth in between. Please recommend sth.
  20. S

    I am hosting my own html file as example.com in apache webserver, but example.com shows other page.

    I am doing IP based virtual web hosting. This is the edited part of configuration file-: Listen 80 <VirtualHost *:80> DocumentRoot "C:\Apache24\htdocs\eg1" ServerName www.example.com # Other directives here </VirtualHost> <VirtualHost *:80> DocumentRoot...
Back
Top Bottom