Programming

The joy of caretaking

Programming - 6 hours 11 min ago
Categories: Programming

THREEjs Having Trouble With OrbitControls and Lighting

Learn Programming - 6 hours 16 min ago

Hi there,

I've loaded a 3D Model GTL File and I am having trouble implementing TrackpadControls as well as getting the lighting and shadows to show up correctly

The live site can be seen here and here is the jsfiddle

any help is appreciated. thank you!

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

Write 256 in binary while padding the binary numbers with zeroes to the nearest four . bits?

Learn Programming - 7 hours 10 min ago

This isn't making any sense to me. How Am I supposed to write 256 and it says pad the binary numbers on the left with zeroes to the nearest four bits.

The answer I got is 00000001 00000000

How am I supposed to pad that to 4 bits? He makes no sense. You can't.

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

[HOMEWORK] n-th composition of a function in python

Learn Programming - 7 hours 17 min ago

So the question is as such.

"Implement the repeated function, which takes a one-argument function f, a positive integer n, and a parameter x. It returns the result of composing, or applying, f n times on x, i.e., f(f(...f(x)...))."

So these are the functions I defined in global to use

def identity(x):

return x

def compose1(f,g):

def h(x): return f(g(x)) return h

def square(x):

return x*x

I figured that I needed compose1 and identity to combine f and x together first and assign it to another name so that I can input the name into the function for it to repeat itself. Then I use a while loop to repeat that n times.

so this is my code.

def composition(f,n,x):

counter = 0 while counter<n:

However, basically i got a lot of wrong answers and spent many hours trying to figure out what I don't know. Can anyone post some hints to guide me? Thank you very much!

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

NavDB 0.4 (beta) released

Programming - 7 hours 20 min ago
Categories: Programming

Early Career People, How Can I Best Add Value to This Community?

Learn Programming - 7 hours 21 min ago

I've been a long time lurker of this, and related subs. Been in the industry for a few years now.

Graduated university in Canada a year and a half ago, currently a Senior Engineer at a large software company in The Bay Area (Silicon Valley)  
 

I'm looking for ways I can give back to this community.
Specifically I'd like to add value to people considering a career in CS, currently in school, or just graduating.  
 

What do you wish there was more of?

  • AMAs?
  • 1-on-1 conversations with someone knowledgable?
  • More guides/tutorials/videos on interview prep?
  • General information about what life at Big Tech Companies is like?
  • Something else?

 
 
I know I wouldn't be where I am today if it wasn't for some great mentors in my life.
If I'm able to help even one person with their career, I'll feel like this is successful.

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

Converting byte array to hex string in java

Learn Programming - 7 hours 22 min ago

My program uses DatatypeConverter.printHexBinary to convert a byte array to a hex string, but my output isn't correct. The only difference between my code and the example code I'm emulating is that the latter uses Apache's Hex.encodeHexString, but wouldn't that give the same output?

submitted by /u/rat-butter
[link] [comments]

Need recommendation of a library for a loop station...

Learn Programming - 7 hours 22 min ago

Hi!

I'm new to programming with audio so I don't know how 'things' work yet.... But I don't want to pay 30$ for software I can possibly make myself(http://sonnit.co.uk/software.html)!

Basically, all I need to do is:

- Record audio into a buffer(simultaneously)

- Play audio from the buffer(simultaneously)

- Overdub

So... What's the easiest library for me to get started? Oh... and language doesn't matter.... It's probably going to be terminal only anyways.

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

How to create a VR game?

Learn Programming - 7 hours 25 min ago

I have no experience programming or crafting games. I aspire to create a simple VR game similar to beat saber. Where/how do I start learning how to do this? Free resources? Newbie topics?

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

NES-style CSS framework

Programming - 7 hours 35 min ago
Categories: Programming

Medicine student,decided to learn programming

Learn Programming - 7 hours 36 min ago

I saw many videos recently showing the good things about coding and I actually feel that the end result of learning to code is fun.I had some very basic intro to programming in c when I was in high school but I don't remember shit.I may have a very minute level knowledge about what coding is but I am starting from scratch.

I have decided on learning python.I know it can be used for app developments in android,but I cannot get the bigger picture.So can someone help me in understanding,like

use "this"-to code Use "this"- to learn to code Use "this"-to make an app out of python Where I don't know what the "this" are.

I don't know what more questions to ask too.So any help would be appreciated!

Please and thank you

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

[STUDY GROUP] Discord CPP C++

Learn Programming - 7 hours 50 min ago

G'day guys,

Last week i formed a study group with a few randoms, and loved it, since it brings us all close talking about programming helping eachother out. Mainly for CPP (C++)

We range in the ages of 18-30, personally im 21 myself.

We are all at different levels, we are looking for a few more people to keep it fully active 24/7. We are looking for beginners, intermediates and advanced to help improve our code, and give us insights. After this post i hope the rest is just word of mouth

We have keen people that are creating small projects as i type this message. Like a database system with cpp for a timetable, logging jobs, a lotto project and an unreal project

If your keen hit us up, and ill chuck you the Discord invite IP'

Legends

SkinBruv

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

[C++][Programming project: Rock, paper, Scissor][Beginner]

Learn Programming - 7 hours 50 min ago

Hello, This project is my first CS project on C++, and I have been struggling a bit. The problem I am having is that I am supposed to created a Rock, Paper, Scissor game that have an User Input and the Computer Input.

However, the Computer Input is to be randomly generated. For the computer to random generate, I used the command rand() % 3, so that it has a range from 0 to 2, and then I assigned 0-2 to corresponding rock, paper, and scissor for computer’s choice. And, the problem is that the project requires to predetermined “carefully chosen” so that the computer wins or the human wins.

Could anyone mind sharing a thought to help me in the line of thinking on how to predetermined a winner if the it’s random? Right now, I have been using if-else if to compare each possible scenario separately, such as if the computer picks Rock and user picks Rock, and it will be a tie, and it’s not working. Sorry for the long text and no written code, because I can’t get access to a lap and have to post it on a mobile. I’m deeply appreciate any line of thinking to set me up to solve this problem. Thank you.

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

Can somebody help me improve this baby app?

Learn Programming - 7 hours 58 min ago

https://github.com/jakehamtexas/Loan_Repayment_Utility

I tried to make the smallest project possible, basically. I'm hoping for some feedback. Is there anything that's counterintuitive, hard to understand? Any feedback is very welcome!

Project is written in C#, FWIW

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

Are programmers this cruel?

Learn Programming - 8 hours 2 min ago

A friend told me that it is hard to learn programming. Even in schools. He said that no programmer would teach me becouse that's how they could get rich that i can't program so i ask them to so some coding for money. And if I want to learn programming i have to get in this programmer community. Is this true? (sorry for bad English if i did write anything bad)

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

Pages