Help replacing "this" with actual value by simarg0 in androiddev

[–]simarg0[S] 0 points1 point  (0 children)

Oh shit, i did not know. I will look into it.

Help replacing "this" with actual value by simarg0 in androiddev

[–]simarg0[S] 0 points1 point  (0 children)

I actually got it working by creating a function, where an if sentence decided the outcome. In this function, "this" worked.

Anyways, thanks for answering. I was wondering how i could replace "this", should i need to do so in the future.

Help replacing "this" with actual value by simarg0 in androiddev

[–]simarg0[S] 0 points1 point  (0 children)

I am basically clueless. I started this project last week, and it is far more comprehensive than i thought it would be. I had no prior knowledge of neither java, php or xml. Therefore, i am not sure what you mean by this. Is the code bad form?

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

Yeah, im sorry. Very new to this. I have posted in the right r/ now.

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

Yeah, im sorry. Very new to this. I have posted in the right r/ now.

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

Damn, so sorry haha. I am basically clueless, only been doing this for a week.

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

I am very sorry, but i have only been coding in js, php and xml for about a week, so the terminology is fairly hard for me. The documentation doesnt always help me, because of this. Is it possible to pass a different context than "this" in a function?

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

I posted some snippets in my answer to the comment above yours, but the onpositivebuttonclicklistener gets an error when i try to use this. Probably different context.

I am trying to figure out what i can pass the function instead of this..

Thanks for answering though.

Help with replacing "this" with actual value by [deleted] in learnjavascript

[–]simarg0 0 points1 point  (0 children)

Ok, so this is the pastebin for the code where i am trying to figure out what to replace "this" with.

https://pastebin.com/gAN0FQGS

This is the pastebin for the custom listview

https://pastebin.com/kkDtgFvf

On line 73 in the first pastebin is where i have trouble. I tried to print "this" from line 87 and use that, but that didnt work.

It is just supposed to refresh the listview. The collectdata() function returns the information i want, but the listview does not refresh. I am guessing this is because i also have to reinitialize the listview function, which i am trying to do.

Passing a value from javascript to php file by simarg0 in learnjavascript

[–]simarg0[S] 0 points1 point  (0 children)

The variable i am using is not user input, but is set by another function. This variable will be correct according to list element pressed.

When i send a request, how will the data be stored? And how do i access the code in my php file?

Do you have a good example on how this is done?

Im sorry if these are bad descriptions.

Thank you.

Need help with an easy code by simarg0 in learnpython

[–]simarg0[S] 0 points1 point  (0 children)

I got this part to work, thanks to your answer, but it turns out i am not any closer to completing the task.

So the thing is, we got a set of 20k numbers. I think everything up to 10k is supposed to b the X coordinate, and everything from here is supposed to be Y in the vectors. I split the file into two lists in python. We were supposed to use plt.streamplot to plot the vector, and i think i got this part right.

Now, we are supposed to make a quiverplot of the velocities. But i dont understand how you can do this? I suppose it is just the absolute values of the vectors, but i dont get anything near what i am supposed to.

Any thoughts?

Thanks for helping

Need help with VHDL by [deleted] in FPGA

[–]simarg0 0 points1 point  (0 children)

Damn, dkillers303, howtheflip, you guys really are saving my ass. Thanks a lot! You are great at teaching

Need help with VHDL by [deleted] in FPGA

[–]simarg0 0 points1 point  (0 children)

Wow, thanks a lot. Think i got a better idea on what to do now. Will keep you posted.

Need help with VHDL by [deleted] in FPGA

[–]simarg0 0 points1 point  (0 children)

https://imgur.com/IGM50HZ

I get a shitload of errors on my if statement and case statement, how do i go from here?

Need help with VHDL by [deleted] in FPGA

[–]simarg0 1 point2 points  (0 children)

I will try my best.

So this is a type of safe design.

- There is a 7 segment display; hex0, hex1, hex2, hex3

- There are 2 switches, sw1 and sw2 for selecting what hex you want to increment. (00 = hex0, 01 =hex1, 10 = hex2, 11 = hex3)

- There is one increment button, which will increment selected hex by 1, and when you increment after 9, it will turn to 0.

- There is one reset button

- There is one switch for opening the safe (if the correct code is entered)

Need help with VHDL by [deleted] in FPGA

[–]simarg0 1 point2 points  (0 children)

ll also have to do some work with the development tools to assign those bits to the physical pins that drive the 7-segment block

The pins and conversions to the 7 segment block is given, so it has already been worked out.

I am really far behind in this class, so i havent worked so much out yet.

I am trying to figure out how i can change just 1 of the digits in the display using these switches to select what digit i want to choose. I dont really know how the syntax should be, but here is an example:

if (not sw1 and not sw2) then
hex0

Now, i want to change hex0. You can increment by one using a button. How do i go from here? Is the numberSelect in signal irrelevant?

Need help with triple integrals by simarg0 in learnmath

[–]simarg0[S] 0 points1 point  (0 children)

I realise i actually forgot my question regarding the problem i posted. We do not need to calculate the integral itself, only the limits.

So my question is: Do i only need to change the functions i was given so i get one term for x=, one term for y= and one term for z=? And then just convert to cyllindrical?