• Breaking News

    Tuesday, September 22, 2020

    Game developers, what are some breaktroughs (big or small) you made when coding? Ask Programming

    Game developers, what are some breaktroughs (big or small) you made when coding? Ask Programming


    Game developers, what are some breaktroughs (big or small) you made when coding?

    Posted: 22 Sep 2020 09:41 PM PDT

    I'm talking the typical * scratches head for days, then bangs its head on the desk and becomes enlightened * kind of breakthrough, whatever that is: gfx, physics, AI, controls, UI/UX, etc.

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

    Weather data thing

    Posted: 22 Sep 2020 11:43 AM PDT

    School project I want to know what do I have to do to send my data to this website. I will make a user interface but I am not sure how to transfer my data to the website through API Anything you can teach or recommend is welcome. This is the website. https://wow.metoffice.gov.uk/support/dataformats

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

    Why are some features hard or impossible to implement?

    Posted: 22 Sep 2020 11:19 PM PDT

    I am not that experienced with programming, so pardon my ignorance.

    I have heard a few times that certain features are hard or impossible to program. Why is this so? What makes them hard? I would be glad if someone also provided an example of something that is hard or impossible to program.

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

    How do I connect web app and android app same the database?

    Posted: 22 Sep 2020 10:32 PM PDT

    Basically what the title says. From my understanding you need to build a rest api and host the web backend on a cloud service, but this seems too complicated. My friend could connect to a MongoDB database to his node.js app with just an api key. How can I connect an android app to the same MongoDB database?

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

    Any tips on how to get to the point [faster] where you can start making additions and changes to someone else’s code?

    Posted: 22 Sep 2020 05:58 PM PDT

    I always spend a lot of time familiarize my self with an existing project to the point I feel I need more of a structured way to utilize my time.

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

    Is there a way to turn VSCode into an RStudio like environment?

    Posted: 22 Sep 2020 08:10 PM PDT

    Spyder is very RStudio like but I want to be able to use VSCode.

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

    Why I am getting confused while building a project in JavaScript?

    Posted: 22 Sep 2020 07:34 PM PDT

    I just completed my JavaScript course including jquery and React on Codecademy and udemy. But when I am trying to build something, I get confused.

    Its about three months and I couldn't find the idea of how to write the code to output a specific goal. Nothing is coming out to my head.

    And also when I googled, I found that my learning was not enough what I learn on Codecademy. There is more to learn and become expert.

    I could not find any complete JavaScript course that teach me everything(including how to accomplish a goal).

    My question is...

    1. Is it normal to everyone when they are just starting out in JavaScript or any programming language?
    2. Why I am obsessed. How to get rid of that? It seems that I don't have the ability to become a programmer. Really?(I have a Computer Application degree)
    3. Did it happened to you at the first time?
    4. Is there any tricks to find the easiest way to output a specific goal?

    Please suggest me some positive advice. I am not kind of person to just give up.

    Thanks in Advance.

    Irfan Habib

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

    How would I go about making a Xbox design lab type thing

    Posted: 22 Sep 2020 06:34 PM PDT

    So I want to make a customizer for my works website so people can view what the the finished product would be, but I have no idea how I would do something like that. I am wanting it to be similar to the Xbox design lab. I have looked online but haven't found anything. Any and all help is appreciated.

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

    Java Cel.lular Automota NullPointerException Error

    Posted: 22 Sep 2020 12:11 PM PDT

    Hey Guys, I recently have been working on this code project however since I get this error I cant do anything really and I am stuck, I would be very happy if you can help me. The error that is displayed in my terminal is:

    Exception in thread "main" java.lang.NullPointerException: Cannot

    load from byte/boolean array because "this.currentGeneration" is null

    at Cellulitis.draw(Cellulitis.java:52)

    at Cellulitis.modeA(Cellulitis.java:74)

    at Cellulitis.run(Cellulitis.java:109)

    at Cellulitis.main(Cellulitis.java:122)

    My code is here:

    https://pastebin.com/5n49hMMT

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

    Is there a master list of python hint/tips?

    Posted: 22 Sep 2020 03:12 PM PDT

    I'm going through CodeCademy currently and was wondering if there is a cheat sheet to help me memorize things. Like how you could look at a list of hot keys for normal computer use.

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

    Python homework help

    Posted: 22 Sep 2020 02:19 PM PDT

    Can anyone help me with the first part of this homework I am so confused,

    Part 1: The Greedy Cashier

    You bought something and deserve some change less than a dollar. A greedy Cashier uses larger coins first to make change. You will write this two ways. First write greedy1(total) which makes change one coin at a time. Is the change more than 25c? if so, add a quarter and subtract 25 from the given total. If no more quarters fit, do the same for dimes, nickels and pennies, while the total is > 0. Based on the fact that 99 is the maximum input, you have to only test 3 times for quarters, 2 for dimes, once for a nickel, and 4 times for pennies.

    Write a function Printcoins1(q,d,n,p) which greedy1 calls to print out the answer. (You might use a small function which reconstructs the total from the 4 coin counts.)

    For 87 cents change, I give
    3 quarters
    1 dimes
    0 nickels
    2 pennies

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

    Guys a question, please answer it thank you.

    Posted: 22 Sep 2020 05:07 PM PDT

    Suppose you will be writing a program that involves the number of units of a course in your chosen curriculum (e.g. say the variable is units). What is the most appropriate data type that you will associate to the variable?

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

    Chrome Video Playback Issue

    Posted: 22 Sep 2020 11:40 AM PDT

    Hi All.

    So my client has an issue. I have done some through testing and just can't figure is out.

    Steps Followed:
    Setting the src attribute of an HTML5 Video Element and then on the element invoking the .play() function [note that the user has interacted with the site in the past few minutes]

    Issue:

    • Audio Plays but video stays blank.

    Notes:

    • Tested this on multiple Laptops/PCs and Only 2 of the Laptops does not display video, both are running windows 7 with an up-to-date chrome web browser.
    • I have also turned off hardware acceleration for video.

    Non of my attempts seem to get this video to playback.

    This is the video in question (just a test video, nothing to personal or secure access only) https://storage.googleapis.com/clipdrop-prod/videos/candidates/q-100-c-62.mp4?avoidCache=1?&145

    The video is encoded with this using FFMPEG with these options

    -loglevel panic -preset veryfast -movflags faststart -vf scale=-1:480 -c:v libx264 -crf 23 -c:a aac -bitrate 2000000 -maxrate 2200000 -bufsize 1500000

    Perhaps should I change my encoding options and if so, which options and to what values.

    TIA

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

    How to connect android app to web app

    Posted: 22 Sep 2020 10:11 AM PDT

    I wan't an android app and a web app that are almost the same, like Facebook. The web app should preferably be in Node.JS. I have read about REST API's, but I have troubule understanding how they work. Any help, advice or recourses are apriciated.

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

    Data replication between clients via a central server - what is the computer science theory behind this?

    Posted: 22 Sep 2020 06:05 AM PDT

    Hello, I don't have any formal background in computer science, just what I've picked up over the years, so apologies if this is a basic question, and if I'm using the terminology wrong.

    The scenario I'm interested in is this: I have several clients that need to update parts of a set of data held on a central server, while also receiving updates of the data they have an interest in.

    What I've programmed so far is:

    • client sends a subscription request to the server for an object with a specified data type and id (unique key)

    • server responds with the current data for this object

    • client then sends a series of updates for that object, on subsets of the object's properties - depending on the property, the update operation will be addition (so to get a distributed sum of all values submitted from the clients) or substitution

    • server sends back acknowledgements to these updates so the client knows they have been received and applied

    • server sends a similar series of updates to the client, depending on what the client is subscribed to

    Each update from a client also has a sequence number that is incremented for each update, so the server can reject duplicate updates. This is in case the connection fails and the client doesn't receive the acknowledgement, and tries to send the update again later.

    My question is, what have I built here, in terms of computer science theory? I have some problems with my design and I'd like to read up on how professionals would tackle this problem, and the theory behind it.

    Problems include:

    • having the server efficiently check which updates have already been applied

    • what to do if a client sends different updates with the same sequence number

    • how to handle updates sent out of order

    And other things that I don't really want to figure out from scratch, would much rather listen to the experts.

    Thanks!

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

    Help - why won't this makefile do it's thing?

    Posted: 22 Sep 2020 04:23 AM PDT

    Hi all,

    Have been following instructions on how to compile (?) a makefile but it's refusing to work:

    GPU=0 CUDNN=1 OPENCV=1 OPENMP=0 DEBUG=1 ARCH= -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,code=[sm_50,compute_50] \ -gencode arch=compute_52,code=[sm_52,compute_52] # -gencode arch=compute_20,code=[sm_20,sm_21] \ This one is deprecated? # This is what I use, uncomment if you know your arch and want to specify # ARCH= -gencode arch=compute_52,code=compute_52 VPATH=./src/:./examples SLIB=libdarknet.so ALIB=libdarknet.a EXEC=darknet OBJDIR=./obj/ CC=gcc CPP=g++ NVCC=nvcc AR=ar ARFLAGS=rcs OPTS=-Ofast LDFLAGS= -lm -pthread COMMON= -Iinclude/ -Isrc/ CFLAGS=-Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC ifeq ($(OPENMP), 1) CFLAGS+= -fopenmp endif ifeq ($(DEBUG), 1) OPTS=-O0 -g endif CFLAGS+=$(OPTS) ifeq ($(OPENCV), 1) COMMON+= -DOPENCV CFLAGS+= -DOPENCV LDFLAGS+= `pkg-config --libs opencv` -lstdc++ COMMON+= `pkg-config --cflags opencv` endif ifeq ($(GPU), 1) COMMON+= -DGPU -I/usr/local/cuda/include/ CFLAGS+= -DGPU LDFLAGS+= -L/usr/local/cuda/lib64 -lcuda -lcudart -lcublas -lcurand endif ifeq ($(CUDNN), 1) COMMON+= -DCUDNN CFLAGS+= -DCUDNN LDFLAGS+= -lcudnn endif OBJ=gemm.o utils.o cuda.o deconvolutional_layer.o convolutional_layer.o list.o image.o activations.o im2col.o col2im.o blas.o crop_layer.o dropout_layer.o maxpool_layer.o softmax_layer.o data.o matrix.o network.o connected_layer.o cost_layer.o parser.o option_list.o detection_layer.o route_layer.o upsample_layer.o box.o normalization_layer.o avgpool_layer.o layer.o local_layer.o shortcut_layer.o logistic_layer.o activation_layer.o rnn_layer.o gru_layer.o crnn_layer.o demo.o batchnorm_layer.o region_layer.o reorg_layer.o tree.o lstm_layer.o l2norm_layer.o yolo_layer.o iseg_layer.o image_opencv.o EXECOBJA=captcha.o lsd.o super.o art.o tag.o cifar.o go.o rnn.o segmenter.o regressor.o classifier.o coco.o yolo.o detector.o nightmare.o instance-segmenter.o darknet.o ifeq ($(GPU), 1) LDFLAGS+= -lstdc++ OBJ+=convolutional_kernels.o deconvolutional_kernels.o activation_kernels.o im2col_kernels.o col2im_kernels.o blas_kernels.o crop_layer_kernels.o dropout_layer_kernels.o maxpool_layer_kernels.o avgpool_layer_kernels.o endif EXECOBJ = $(addprefix $(OBJDIR), $(EXECOBJA)) OBJS = $(addprefix $(OBJDIR), $(OBJ)) DEPS = $(wildcard src/*.h) Makefile include/darknet.h all: obj backup results $(SLIB) $(ALIB) $(EXEC) #all: obj results $(SLIB) $(ALIB) $(EXEC) $(EXEC): $(EXECOBJ) $(ALIB) $(CC) $(COMMON) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(ALIB) $(ALIB): $(OBJS) $(AR) $(ARFLAGS) $@ $^ $(SLIB): $(OBJS) $(CC) $(CFLAGS) -shared $^ -o $@ $(LDFLAGS) $(OBJDIR)%.o: %.cpp $(DEPS) $(CPP) $(COMMON) $(CFLAGS) -c $< -o $@ $(OBJDIR)%.o: %.c $(DEPS) $(CC) $(COMMON) $(CFLAGS) -c $< -o $@ $(OBJDIR)%.o: %.cu $(DEPS) $(NVCC) $(ARCH) $(COMMON) --compiler-options "$(CFLAGS)" -c $< -o $@ obj: mkdir -p obj backup: mkdir -p backup results: mkdir -p results .PHONY: clean clean: rm -rf $(OBJS) $(SLIB) $(ALIB) $(EXEC) $(EXECOBJ) $(OBJDIR)/* 

    and the results:

    MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc. Error makefile 33: Command syntax error Error makefile 35: Command syntax error Error makefile 37: Command syntax error Error makefile 39: Command syntax error Error makefile 43: Command syntax error Error makefile 48: Command syntax error Error makefile 50: Command syntax error Error makefile 54: Command syntax error Error makefile 56: Command syntax error Error makefile 60: Command syntax error Error makefile 64: Command syntax error Error makefile 67: Command syntax error Error makefile 91: Too many rules for target './obj/%.o' Error makefile 94: Too many rules for target './obj/%.o' *** 14 errors during make *** 
    submitted by /u/sierrafourteen
    [link] [comments]

    How to keep track of values

    Posted: 22 Sep 2020 07:00 AM PDT

    Hello everyone, I have a quick question. I play a game that has an online economy where the prices of the item changes multiple times a day. The price is listed on the item's trading website so I know where I need to pull the price from. What would be the best way to go about creating a program that allowed me to track the price of the item at whatever pace I want and then log those values so that I can use them later to process the data?

    The thing is this game has 15,000+ unique items and I am wanting to be able to do something like this.

    ~~~~~~~~~~~~~~~~~~~~~~

    Insert the name of the item I want to track

    Go to that page and pull the value

    Log the date and value

    Store each different item in a unique text file

    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    What would be the easiest language for that?

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

    ASP.NET Security Policy

    Posted: 22 Sep 2020 06:56 AM PDT

    I have a controller and the controllers actions must accessed according to the security police "OnlyCustomers".

    Can anyone give me some pointers on how to do this?

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

    Help me understand how min-width property works

    Posted: 22 Sep 2020 06:56 AM PDT

    When I uncheck min-content, flex is working, all childs inside "card_container" div takes up the available space in "view_port" div.

    But with width: min-content on, I was thinking would make only first div visible (Div 0). But it also shows a bit from next div. Why?

    Anyways, I found 2 good posts regarding width: min-content :

    Those answers didn't help me yet to get "aha moment" why my code behaves in the way it behaves. Can someone explain this in plain english?

    Code example:

    HTML

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="styles.css"> <title>Vanilla CSS, JS slider from scratch</title> </head> <body> <div> <div class="view_port"> <div class="card_container"> <div class="card"> 0 </div> <div class="card"> 1 </div> <div class="card"> 2 </div> <div class="card"> 3 </div> </div> </div> </div> </body> </html> 

    CSS

    .view_port { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 420px; height: 200px; border: 4px solid goldenrod; background-color: red; overflow: hidden; } .card_container { display: flex; width: min-content; } .card { width: 350px; height: 200px; background-color: blue; border: 2px solid black; box-sizing: border-box; font-size: 2.5em; color: white; } 
    submitted by /u/jsjuris89
    [link] [comments]

    Looking for help to decide what language to learn and what jobs to go for

    Posted: 21 Sep 2020 11:54 PM PDT

    Hi! I'm currently looking to go to uni to become a software engineer or something similar to it. I'm not entirely sure to be honest..

    I'm from Sweden and currently living here but I'd rather go to USA for work after uni, ofc I will stay here if that's not an option.

    Now I have done some research, but after speaking to people irl I feel like I've been getting mixed signals on what coding language is the best to learn etc.

    My question really is what coding language should I look at if I want to do work in coding and preferably make good money from it too? I've got python downloaded and all I've done so far is a couple of tutorials so I'm not bound to it just yet. Any suggestions are appreciated! I wouldn't mind learning multiple languages, starting with whatever is the best for beginners I guess.

    Side note is that I absolutely love solving problems or just making something much more simple than it already is. I wanted that said because hopefully someone's got a good advice of what kind of job I should look for since I'm not sure at all what I'm really looking for..

    Thanks everyone!

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

    Noobie here - Have some questions

    Posted: 22 Sep 2020 02:25 AM PDT

    So for a bit of context , i just finished highschool in computer science and got into a pretty good college for computer science with artificial intelligence ..we were taught c and c++ in school and now i feel it's pretty outdated... I'm real passionate abt this subject and feel i need to get a head start on others and stand out..i have a few questions and I'd like you guys feedback

    1 what ide shld i use and what language should i learn ( been thinking of python)

    2 i wanna learn everything about Ai and start working on projects...how should i proceed with this? ( Wait for college professors or study online) ( if online ..from where and which course)

    3 i wanna participate in lots of hackathons and build a powerful resume by the time I graduate..so how do i begin ... I really wanna win hackathon and builld projects

    4 is ubuntu better or should i stick with windows?...and what are the other useful software i should get

    . . Would really appreciate any of u pros replying Thank you for your help.

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

    [Question] People who post memes on AI can rule/destroy the world? Do they even know how AI works?

    Posted: 22 Sep 2020 12:14 AM PDT

    Just a Question

    People posting memes on How AI can destroy the world or AI can rule the world in which they show the initial stages of their model xd....Do they understand that after some time with enough data the model can get better?

    IDK what's wrong with me I'm not able to accept it as a joke or meme!

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

    excited about this one

    Posted: 22 Sep 2020 07:41 AM PDT

    I am launching a new webinar series! Kicking things off talking about a kubernetes Internal Developer Platform, thought folks here might be interested! Can join us here https://humanitec.com/webinars/internal-developer-platform

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

    No comments:

    Post a Comment