LanceBPC

u/LanceBPC


r/PurdueHousing•

I'm looking to sublease my bedroom in a 2b 2b apartment at HiVine for the summer.

Rent:

$905 per month (I'll give 50% off for the month of May) + $30 Internet + Electricity/Water

Move-in:

May 7th - July 24th (move-in date adjustable)

Amenities:

• Furnished with dresser, bed, night stand, sofa (see photos) • 5 minutes walk to PMU and Target. About 10-20 minutes walk to other parts of the academic campus. • Java House, Hot Box Pizza, AJ's and Everbowl located downstairs! • Spacious room with lots of natural light • 9ft ceilings

DM if interested!!!

10

r/GalaxyS23•

So basically when having a call, and I try to play music through a streaming service like Spotify or YouTube vanced, the call volume is substantially louder than the music being played. I have tried downloading sound assistant and adjusting the app volumes individually, but the music is still too soft. Never had this issue previously on the S10.

Edit: this is the s23+

11


r/learnjavascript•

So I'm not sure what is happening that is causing this, but what I'm trying to do is get the current tab URL of the user, and then compare that with what is in the array of designated URLs, and if the URLs do match, then I change the content of the webpage. I currently have a script that is linked to my popup HTML, and within that script, I'm querying the current tabs URL, and comparing it, and if it matches, I send a message to my content script, so it changes the contents of the webpage.

13

r/learnpython•

So I'm trying to make it so that my labels update every time my button is clicked, but the text stays the same. It works for the first button click, but it doesn't update each time afterwards.

          for x in range(24):
            print(ret_val[x])
            new_L = Label(root, text=ret_val[x] + "\n")
            new_L.pack()

I'm looping through a fixed-size list and trying to display the contents of the list each time around.

14



r/learnjavascript•

So I'm making a chrome extension and I'm trying to have it where the user is able to enter some text, and I store that text in an array, and then use that array in my other functions in the script. I think this might be a scope issue, but I'm not sure.

var blockedWebsites = ["www.youtube.com"];

window.onload = function() {
  var form = document.getElementById("formBox");

  form.addEventListener("submit", function (event) {
    event.preventDefault();
    link = document.getElementById("textbox").value;
    blockedWebsites.push(link);

    console.log(blockedWebsites[1]);

  });
};

I'm using this event listener that grabs the text f

39

r/C_Programming•

So I have a binary tree, and I'm trying to store the memory addresses of those nodes into a dynamically allocated array.

So I'm starting off by allocating the memory for the array (hope that is correct)

struct node *arr = NULL;                                                                                                                                                                                    
arr = (struct node*)malloc(sizeof(struct node) * matching);

Then I pass this array into another function to do the recursive work of traversing the binary tree in prefix order. However, when I try to store the memory address of the struct into an index of the array, it gives me a

310

r/learnjavascript•

So I'm trying to make a chrome extension that blocks certain websites and a video will play, however, the video isn't showing up when the page loads.

​

 <video oncontextmenu = "return false;" controls autoplay controlslist = "nodownload">

<source src ="video.mp4" type = "video/mp4">

 </video>
11

r/javahelp•

So I'm trying to read a file like this

MMMMMMMMMMMMMM
MMMMMMMMMMMMMM
MMMMMMMMHMMMHH

and I'm able to read each line successfully, but I'm having trouble making it into a 2d char array. Like I want each letter in each line to be it's own character in the 2d array, but it's not working as intended.

while ((line = br.readLine()) != null) {
for (int i = 0; i < rows; i++) {
for (int j = 0; j < columns; j++) {
for (int h = 0; h < line.length(); h++) {
char value = line.charAt(j);
System.out.println(value);
playerOneBoardList[i][j] = value;
}
}
}
}

Like when I print this, all it gives me is an array full of M's which is not wha

26

r/spotify•

Spotify connect

Technical Issue

So my roommate and I are on the same internet, and somehow on my Spotify I can control what music he's playing. This just started to happen today, so I don't know why this is the case.

21

r/Purdue•

So I don't see my pin for open registration. I know it was supposed to be sent when I met with my advisor during VSTAR. The only email I got was the advisor class recommendation for Fall 202, and I don't see a four digit pin there.

113