/sqt/ - Stupid Questions Thread

Stupid question thread.
Ask your stupid questions here.

>Read

>GNU/Linux questions?
>PC building?
>Programming questions?
>Good, cheap, laptops?
>Cheap electronics?
>Windows questions?
>Where can I get Win10 LTSB?
>How do I activate Win10/Win7?
pastebin.com/smjvLZN4
pastebin.com/quC0gz4j
pastebin.com/gHCCFBkt
pastebin.com/4LvsAFk7

Previous thread:

Attached: 127.jpg (571x571, 49K)

Other urls found in this thread:

cpubenchmark.net/cpu.php?cpu=Intel Core i7-8850H @ 2.60GHz&id=3247
youtube.com/watch?v=N65uFX6Kvpw
better-dpt-roll.github.io/
twitter.com/NSFWRedditImage

I have a column in a spreadsheet(libreoffice calc) that is formatted "MM/DD/YYY HH:MM:SS"
How can i make a adjacent cell show the hour difference between the cells in the column. So it its 3 hours apart, it will show "3".
But every entry in this column might not be the same day and there might not be an entry for every day. How can i format the cells next to them to automatically show the differences as data is added??

does anyone know who's bitch this is

all i know is i'm her bitch

My desktop's CPU is the 3770K, which is benchmarked at 9520. My laptop's CPU is the 8850H, which is benchmarked at 13372. Does this mean my laptop is 40% faster than my desktop?

benchmarked at what measure? half precision point? single precision point? double precision point? your mom?

cpubenchmark.net/cpu.php?cpu=Intel Core i7-8850H @ 2.60GHz&id=3247

I'm setting up a home server, mostly for file sharing and backups. Which should I do:
1. Use the 4tb 3.5" hard drive I already have in there, or,
2. Use two portable hard drives in a raid, extracting the 2.5" drives from their enclosures if need be, even though doing so would cost more than what I spent on the computer?
There's not enough room in the case for anything else.

I know who she is.

I'm a fucking brainlet.

What's the actual difference between an SSD and a "Lite" SSD? They're both 1TB but the lite one is $120 cheaper.

Attached: Confused High King with Interrogation Marks.png (256x256, 43K)

Sorry for the delayed response. but the m4p I'm talking about is not video, it's protected aac. Will it work too?

Is there any possible way I could access someones phone if we're connected on the same wifi? Are there also any apps that work the best for things like this?Also whats the best language for a beginner?

not with that command. try this from the files' directory

ffmpeg -i *.m4p *.mp3

Well that was the one I tried before. but it just spits out *.m4p invalid argument
ffmepg.exe is in the same folder as the m4p songs.

There's no class of device called a 'lite' SSD, so you're going to have to look up a review or something. Usually the difference between the cheap and fancy SSDs is performance and write endurance.

You can't use wildcards that way.

FOR %%A IN (*.m4p) DO ffmpeg.exe -i "%%A" -c:a libmp3lame -q:a 0 "%%~nA.mp3"
You can put this in a batch script or use it via the command line. In the latter case use % instead of %%.

hmm will give it tomorrow a go. Thanks so far.

Learning Java and I'm a noob.

>We have been guilty of bad programming style; we have created a method that prints an object, printPerson. The recommended way of doing this is by defining a method that returns a "character string representation" of the object. In Java, a method returning a String representation is called toString.
Can someone explain this to me a bit better please? Why is printing an object (the string) a bad thing?

Attached: 1540614677790.png (536x458, 273K)

I have an arraylist of coordinates, they are coordinates for pixels of a specific shape from a bigger picture with various different shapes, if I want to scale down only this specific shape on this picture how would I approach it?

I can only think of claiming the rectangular bounds surrounding the shape and shrinking that down like I would a normal image, but what if I had picture in pic related? I want to be able to resize both the star and the black blob, I have separately stored both of their pixels' coordinates, I'm just not sure how to use it for scaling down

Attached: file.png (326x314, 5K)

What is the difference and relation between GRUB2 and the BIOS? It seems to me that the grub config has some kind of impact on BIOS, but maybe I'm retarded.

ur not gonna make it

i want to get into devops, where do i start?

What does printPerson do? If you just print an object you'll get something like type@hashcode.
So I'm guessing your assignment is figuring out how to print the object with it's actual contents as string.
You can override the toString method (google the documentation) to fit your object or just do your own thing. Again guessing since you mentioned Person you'll probably write something like "Name: " + person.name... the rest of your attributes and print that in any way you want.

HVAC question. If my furnace has a leak and is leaking carbon monoxide, can I avoid death simply by leaving the furnace off? Google was surprisingly unhelpful.

If it's off, it's not going to gas you. Recommend purchasing a CO detector anyways.

presumably no fire = no monoxide, yes?
does turning the furnace off remove the fire?

Oh sorry, print person is just

public void printPerson() {
System.out.println(this.name + ", age " + this.age + " years");
}

And the correct way is

public String toString() {
return this.name + ", age " + this.age + " years";
}

But why is returning a string/object better than printing it directly?

I guess I misunderstood your assignment a bit then.
If the only goal is to just print it, it's whatever. But if you return it as String you can also assign in to variables or further manipulate the string.

this.name and this.age are both strings.

Apparently it's bad programming to print strings when you could return them in a method.

Writing a toString method for the class allows some conveniences like
System.out.print(person);

Why is JEDEC prefixes still a thing? All it does is confuse people

>but maybe I'm retarded
A bit. GRUB loads your OS. BIOS loads your motherboard's settings.

Whats a good laptop for it's quality of screen and digitizer? I want it for drawing but don't know anything about which laptops have things important to drawing like a good hinge or levels of pressure for it's digitizer. The other specs can all be midrange.
I already have a dedicated tablet so it's fine if there is no decent solution.

Any way to disable the saving of clipboard history on Galaxy S5? Just realized this feature existed yesterday and saw a clipboard full mostly of my passwords for various things since I use keepassdroid to logon on my phone, obviously this is a terrible security risk. I can clear it manually which I did but how to prevent it saving stuff at all

try:
ffmpeg -i filename.m4p -a:c copy filename.mp3

So I have a bunch of Christmas shows/movies that I have downloaded that I want to randomly cycle through playing and I also have adverts that I want to be played after each thing. I made psuedocode for what I want to accomplish. What code would be the easiest to accomplish this in?

Attached: psuedocode.png (464x534, 15K)

Is there a program that has tagging for media file that isnt hydrus. I've tried it but its a giant piece of fucking shit that dosent even work after you spend hours setting it up.

How do you install windows xp on UEFI?
Tried changing to legacy mode but once i boot the iso, it gives me a BSOD right after loading the installer.

movies = [shows go here]
adverts = [ads go here].shuffle

trap('INT') { exit }
loop do # unattended looping
movies.shuffle.each do |m|
video_player(adverts.rotate![0])
video_player(m)
video_player(adverts.rotate![0]) # ads before and after because we are rude
end
end

>and I also have adverts that I want to be played after each thing
Weird.

Something like this python should werk (I just wrote this right now and haven't tested it):
import os, subprocess, random

def random_ad(ad_files):
return random.choice(ad_files)

ad_files = os.listdir('ad_folder')

for video in os.listdir('video_folder'):
#mpv is the video program being called but any program is suitable
subprocess.call(['mpv', video])
subprocess.call(['mpv', random_ad(ad_files))

Thanks for the help, I'll try them both out!

Christmas advertisements are always fun, don't judge.

Remilia from touhou, dude

my computer (windows 7) recently started doing this dumb shit where clicking a program on the task bar will not restore the window and instead it will just start flashing orange on the taskbar and i have to actually press minimize on the current window and then click into the other window on the task bar

what is this shit and how do i make it stop?

more complete example, suitable for something like a rpi
#!/usr/bin/ruby
$VIDEO_PLAYER="butt" # HEY BUDDY CONFIGURE THIS

def video(path)
`#{$VIDEO_PLAYER} "#{path}"`
end

movies = `find "#{ARGV[0]}" -type f`.split("\n")
adverts= `find "#{ARGV[1]}" -type f`.split("\n")

puts "discovered #{movies.size} + #{adverts.size} files:"
puts movies
puts adverts

trap('INT') { exit }
loop do # unattended looping
movies.shuffle.each do |m|
video(adverts.rotate![0])
video(m)
video(adverts.rotate![0]) # ads before and after because we are rude
end
end

caveats:
>no non-media files in the folders please

Can I still free upgrade from windows 8.1 to windows 10?

Is it possible to have uBlock redirect certain URLs automatically? Like, for example, can I write a filter to redirect all twitter.com image URLs to the :orig location?

Attached: 1445657183021.jpg (380x360, 87K)

I have no fucking idea why, but my sound in windows 10 just fucking stopped working. Originally I thought it was my sound card, but when I used a live usb of Ubuntu MATE the sound worked perfectly fine. I ended up reinstalling windows, the sound worked perfectly fine for about an hour before just completely cutting out again. Anyone else have the same problem?

I can "turn" the volume up and down, but nothing is being outputted, including system sounds. Not through my headphone jack or through my speakers.

man, what even is the point of computers

Yes but you have to be retarded. Search for "Windows 10 accessibility upgrade". Seems like they made this a bit more difficult to do than it once was but you should still be able to upgrade for free.

my desktop is 4 years old now and i'm thinking of building a new one. is there anything i can keep from my old build or should i just start from scratch?

To err is human but to really mess things up you need a computer.

just turn your old comp into a nas

Also
>inb4 just download linux
I would love to but I currently don't have a harddrive to back up my computer to and I don't feel like re downloading all that porn

How many canadabucks should I price my setup at?

>GTX 1080 8GB GPU
>I7 8700 CPU
>16GB RAM
>237GB SSD + 2TB HDD
>MSI 144HZ 1080P Monitor
>Mechanical Keyboard
>Mouse
>Speakers

I'm using arch and youtube videos stutter every couple seconds. CPU usage spikes during this time and from what I've seen, there is no way for me to enable hardware acceleration because of a lack of support on chromium and firefox. I've also tried a vaapi version of Chromium but it didn't make a difference. The GPU im using is the GTX460M. Is my only way out a cpu and/or gpu upgrade?

>canadabucks
We're using hashcoins now

youtube.com/watch?v=N65uFX6Kvpw

What are some of the benefits of rooting a tab s3? If I google shit like that it’s all results saying you shouldn’t do that.

depends on what your old PC has

why doesn't the second one work?
It just gives me 3, 4, 5, 6, 7.
I'm new , pls no bully

#include

int main()
{
int stuff[] = {3, 7, 2, 9, 16};
int i;
int *ps = stuff;

for (i=0; i

>there is no way for me to enable hardware acceleration because of a lack of support on chromium and firefox
Read the arch wiki on hardware accel, you can make both browsers force it
>460M
Get h264ify to force x264. Most videos are vpx9 which isnt acceleratable.

you need *(ps + i) instead of what you have

The pointer deference operator (*) has a higher precedence than the addition operator.
So the code is parsed as
printf("%d\n", (*ps) + i);
and will become
printf("%d\n", 3 + i);
Use more parenthesis to change that
printf("%d\n", *(ps + i));

i love TPB but im serious guys

I remember now from K&R, thanks homies

I remember trying to make the browsers force it and using h264ify and neither worked. I'll go through the arch wiki again in case I missed something. Thanks.

For RAM, is there a difference in brands?
Are cheaper ones shitter than say RAM that costs $50 - $60 more dollars?

Attached: serveimage.jpg (500x500, 15K)

I have a 480gtx and both firefox and chromium have accelerated video and use 264 hardware decoding with x264ify
Look for "accel" in chrome://flags on chromium and youll have to look at the firefox wiki page but its in the about:config options page.

Also make sure you have vdpau installed

sounds like some accessibility shit you turned on, check ease of access center in control panel and disable everything you see (like sticky keys, filter keys, etc)

Noticed sometimes my fan lately seems to stall out if I turn it stright to the lowest setting without letting it warm up forst wtf

Yeah the cheap ones don't have all those bitchin air intakes and fancy colors and stuff

ever notice how room fan settings always go from off to max power, then low? it's for a reason

RAM is only made by 3 different companies. Samsung, SK Hynix and Micron. Companies like GSkill, Corsair, etc all they do is put the RAM ICs on a PCB and stick a heaksink on them and sell to end customers.
Just pay for the speed you want and hope to god it works at its advertised speed.

>two PCs in sleep mode
>turn on one
>the other starts as well
Is this some kind of default LAN setting for Windows or am I part of a botnet?

Attached: 1436134418179.gif (269x270, 387K)

Possibly and yes you're in the ms windows botnet.

>youtube fullscreen
>can scroll down to see the rest of the page and scroll back up to have it in fullscreen
holy shit, are we in the future now? when did this happen.

>are we in the future now?

you and I both, brother

Please? Anyone?

What's the best way to polish your programming skills? I fell for the school memes and managed to get a small time gig to keep me comfy, but I feel like I don't know shit and the job itself has few opportunities to really grow. So I've resigned myself to constantly look up different frameworks or languages and try to learn them on the weekends, but I don't feel like I'm getting any better.

Is it possible to reliably use a computers hardware to Identify it? I know Microsoft is able to tell what computer owns the license to a computer by the hardware in it and i'm trying to make a program that will give one vote to one computer and there can't be anyway for someone vote multiple times from one computer.

Also if someone were to turn off the computer and change a component and thus changing the Hardware ID I wouldn't care. I just don't want the computer to be able to change the ID while it's running.

The best way is by actually making something. Think of a project and start doing it. If the project is complex or large then break it down. When you don't know how to do something look it up.

where can i find more of this lusty loli?

My router keeps doing this randomly throughout the day. Is it just a piece of shit that's not working anymore or is someone on my network fucking around with shit / tracking my info?

Attached: Capture.png (174x223, 14K)

You think it's worth it to suffer through a cs minor if one of the weedout courses is kicking my ass?

pussy

>If the project is complex or large then break it down.

I probably need to get better at this, I've tried that same approach in the past, but usually just convince myself whatever project I'm working on, is stupid.

I appreciate the suggestion though, I'll keep trying that approach.

It helps if it's something you'd actually use or think is interesting. Alternatively try your luck here.

better-dpt-roll.github.io/

Thanks! I'll probably resort the generator, mainly because I have the creativity of a stone.

im assuming this is some sort of LE spy tool? nothing even comes up on google about it

Attached: program.png (585x384, 26K)

I did a search and "the mask productions" has a bunch of malware associated with it.

For anyone that has had one, is there any percivable difference between a 10-bit display and an 8-bit one?

I'm trying to decide whether to buy an HDR display (one of the ones that are Vesa displayhdr 400 certified) that's 8-bit or a slightly older one that is true 10-bit and has that over 1 billion colors.

Please halp

can someone explain how to get this plastic off w/o ruining the connector.

Attached: IMG_20181112_231927931.jpg (4032x3024, 2.31M)

Why the fuck is it so confusing to find samsung b die memory

i trying to format my disks in a for linux and windows to run on it and i am wondering if you can have two partitions with a contingous partition on one disk. i made an illustration to show what i mean.

Attached: volumes.jpg (800x600, 56K)

i have 3 .DAT files that I want to combine together into a single .mp4

how can i do that on a mac?

shave off what you can with a razor, and meld+wipe off the rest with steel wool

Lost modular cables for corsair psu.
Have another cable from a different psu that fits and works, but I'm scared for long term damage.
Want to power for hdd's should I?

How come autohotkey is so much better at detecting context change events than my shitty mouse built in software?

I think those cables are pretty standardized, unless it's some bottom of the barrel chink shit that's gonna short out or something I don't think you should worry