Information Technology

Watch an AI robot program itself to, er, pick things up and push them around

The Register - 7 hours 19 min ago
Why can't robots just learn to do things without being told?

Vid Robots normally need to be programmed in order to get them to perform a particular task, but they can be coaxed into writing the instructions themselves with the help of machine learning, according to research published in Science.…

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

Learn Programming - 7 hours 24 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 32 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]

Laptop for school, practically no gaming

Total budget and country of purchase:*

-$650 or less, USA.

Do you prefer a 2 in 1 form factor, good battery life or best specifications for the money? Pick or include any that apply.

-no to 2 in 1 and battery life would definitely be a plus. I'd like IPS if possible.

How important is weight and thinness to you?

Somewhat important, not a total dealbreaker if it's not ultra-thin. Thin bezels would be a plus.

Which OS do you require? Windows, Mac, Chrome OS, Linux.


Do you have a preferred screen size? If indifferent, put N/A.


Are you doing any CAD/video editing/photo editing/gaming? List which programs/games you desire to run.

-No editing, only game will be Football Manager which isn't hard to run, will be mostly using it for schoolwprk/excel.

Any specific requirements such as good keyboard, reliable build quality, touch-screen, finger-print reader, optical drive or good input devices (keyboard/touchpad)?

And SSD is definitely a requirement. I don't need too much storage so a 256GB SSD only laptop isn't off the tables. Other than that, nothing else.

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

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

Learn Programming - 7 hours 36 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 36 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 37 min ago


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(!

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 40 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]

Verizon will give subscribers free access to anti-robocall tools

Engadget - 7 hours 40 min ago
Verizon will give all its subscribers free access to its spam alert and call blocking tools, so long as their phones can support the features. The carrier originally rolled out those tools over a year ago as part of its $3-per-month Call Filter add-o...

How can you detect if the user has already subscribed to a product when implementing IAP with StoreKit

iOS Programming - 7 hours 42 min ago

I’m asking for some guidance. I have implemented IAP in an app we are building at work. I would like to ask how I can know if user has already subscribed. I did some research and states that I would need to do a receipt validation by setting up a server of my own. I don’t have any backend experience. Is there an easier way one would recommend.

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

Durable studying laptop matte display

I will be fast. 13"-14" Laptop with matte display (really hate the reflections and my bother has a ThinkPad whose screen looks so much better). I won't game on it, just maybe LoL that anyway is not so demanding. Used mainly to study pdfs when traveling (that happens quite often). From Europe <1500€.

Thanks to anyone who can help!

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

Medicine student,decided to learn programming

Learn Programming - 7 hours 50 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]

Looking to run tasks like a subscription

Is it at all possible for Tasker to receive have actions running in parallel?

I'd like to have different people text me and then receive a motivational text every day for a week. The idea is that each week long "subscription" would be handled by Tasker alternating the WAIT action (which I believe is handled by an alarm being set for Tasker to do an action, rather than an actual countdown) with a SEND SMS action.

It seems like the current set up works OK if only one person texts in, but a 2nd "subscriber" picks up the text stream at that point and the texts to the original "subscriber" stop.

I have set the collision handling to run both tasks at the same time.

It seems it is theoretically doable for Tasker to do this, but any help would be appreciated!

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

Destroy scene not working.

I have a scene with a number picker and a button. The button runs a different task and is supposed to destroy the scene after it is pressed and run the task but the screen just stays up. I have tried changing the "display as" settings but that doesn't seem to help.

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

Tasker standalone app runs task immediately instead of waiting for profile to trigger

I'm making a standalone app for my friend to help him download youtube videos.

I have a Profile with "Application > Youtube" and "Variable Set > %CLIP" as triggers which detects when you copy a link to clipboard while in the youtube app. When this happens it runs a task which brings up a menu asking if you want to proceed.

This works fine when the profile is running from Tasker but when I export a standalone app from the project and run the app, it just comes up with the menu straight away. I want it to run in the background and wait for the conditions to be met before bringing up the menu.

Can anyone help me?

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


Learn Programming - 8 hours 4 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'



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

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

Learn Programming - 8 hours 5 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]