Messsage from sigruna14 in MacGuyver - Skills & Academics #tech

sigruna14 2018-01-29 23:55:18  

You're talking about this? Wholesale string copy?

Why Tea 2018-01-29 23:56:55  

Are you wanting to hit the individual characters in the string and substitute? I think I did miss the gist of what the question is. You have variable length strings, in an array structure (pointers to a bunch of strings) but you want to change just individual characters at will?

sigruna14 2018-01-29 23:59:48  

It is an array of three strings, each of which is three characters long. It starts out with each string being `"000"`. I need to be able to reach in and change the zeroes to ones where necessary.

Why Tea 2018-01-30 00:00:36  


Why Tea 2018-01-30 00:01:01  

But you want to reach in and "touch" each one individually, at will.

Perihelion - CA 2018-01-30 00:01:20  

Pointer math

sigruna14 2018-01-30 00:01:23  


Perihelion - CA 2018-01-30 00:02:16  

Add data type size to array pointer to access each char

Perihelion - CA 2018-01-30 00:03:03  

Assuming your language won't let you index the array like a normal person

Perihelion - CA 2018-01-30 00:04:13  

That's all indexes are anyway. Array pointer + index * data type size

sigruna14 2018-01-30 00:04:19  

Well I mean, obviously it won't.

sigruna14 2018-01-30 00:04:42  

So do like `*array + (sizeof(char) * 2)`?

Perihelion - CA 2018-01-30 00:04:49  


sigruna14 2018-01-30 00:13:59  

@Perihelion - CA Nope, "lvalue required as left operand of assignment"

Perihelion - CA 2018-01-30 15:36:18  

I think you have to use &array to let it know you're treating the array like a bit literal

Perihelion - CA 2018-01-30 15:44:29  

Ok do this for c++ *(array+2) to get value

Perihelion - CA 2018-01-30 15:44:58  

Array + 2 for mem address reference

sigruna14 2018-02-01 18:08:59  

I'm having a weird problem. Anybody wanna help?

ThisIsChris 2018-02-01 19:45:47  
ThisIsChris 2018-02-02 16:10:48  

@sigruna14 is it a C thing?

sigruna14 2018-02-02 16:11:25  

Yeah but it works now. Actually you want the code? See if you can break it. I think it's working. Still need to document it but I can tell you what it accepts.

sigruna14 2018-02-02 16:11:57  
ThisIsChris 2018-02-02 16:13:47  

Yeah let's do it man @sigruna14

sigruna14 2018-02-02 16:14:18  

Okay, I'll DM it to you. But first I'm gonna try to change how I find the command line args to be a little less ridiculous.

ThisIsChris 2018-02-02 17:04:50  


Deleted User 2018-02-04 16:51:39  

Hey does anybody know how to put music behind a video I’m editing… I’m using iMovie app

JesseJames 2018-02-04 17:32:38  

@Deleted User you just have to have an audio file on your phone. Select the plus on the left side and then select audio.

Deleted User 2018-02-04 20:00:54  

@JesseJames many times it won’t allow me to upload the song..”copyright” infringement is what the message says... I just (like five mins ago) bought a GoPro .... will that be easier to operate ya think ?

JesseJames 2018-02-04 20:14:29  

The GoPro editor is really good. I like iMovie though because I know it better. Where did you download the song from? Also you will have the same problem with copy rights on GoPro editor also. The best thing to do is find music on soundcloud that is royalty free. @Deleted User

Deleted User 2018-02-05 18:02:01  

I need a WordPress guy

Louis Loire - NY 2018-02-05 18:37:54  


Deleted User 2018-02-05 18:40:56  

I need a c++ guy

Deleted User 2018-02-05 21:51:36  
Deleted User 2018-02-05 23:56:08  

@Deleted User what would that entail?

Deleted User 2018-02-06 00:23:19  

Dm me, I'm in class @Deleted User

Anti Weeb Aktion 2018-02-06 00:38:34  

@Deleted User I'm pretty good with C++ fam

Deleted User 2018-02-07 02:39:05  

Hey Does anybody know how to download videos off YouTube?

Deleted User 2018-02-07 02:41:41  


ThisIsChris 2018-02-07 04:22:03  

@Deleted User get `youtube-dl` it is a command line program which turns people off but it really is the only thing that works without fail.

Deleted User 2018-02-07 05:10:26  

Thank you @ThisIsChris

sigruna14 2018-03-01 16:01:38  

@everyone Okay well now I've got a damn JS event listener that refuses to add to a button. It's like the most basic thing ever so idk what's the problem.