/sqt/ - Stupid Questions Thread

Attached: 5a812ce11fc270ed0bb8e22d045efdd6-700.jpg (1120x700, 55K)

Other urls found in this thread:

stackoverflow.com/questions/14374878/using-reflection-to-set-an-object-property
stackoverflow.com/questions/2426671/variable-length-dynamic-arrays-in-java
extensions.gnome.org/extension/1160/dash-to-panel/)
ubnt.com/
twitter.com/SFWRedditImages

What's the best distro to put on a RPi? I just want to mess with Python, read my books and browse Sup Forums.

My main pc for 4 years won't turn on. LED comes on on the motherboard when plugged in but when pressing the power button nothing happens. I've double checked all the connections. Am I right in thinking it's probably the psu? I don't have a spare to check with.

>install win10 on an ssd on laptop that ready have a win10 on hdd
>everything goes smooth
>install some ATK driver and reboot
>something went wrong :(.jpg
Now it wont even go to recovery menu(i don't even know what keys to pres to get into it) and pendrive that i installed win10 from won't get to the first menu, its stuck on loading.
inb4 normie get out. No. I'm instaling it for my normie friend who is pissed when I'm telling him to get win7 instead.Laptop in question is asus ROG GL552VW
there is no "best distro". Get the most mainstream one.
>I don't have a spare to check with.
That's the worst part. Maybe the power button is broken. Use something metal to boot pc.

External hard drive vs. portable

Assuming r/w speed isn't a concern, is there any other reason to use an external over a portable?

Thinking of getting a Brother printer for my parents. On the site it says the space needed for drivers is 650 MB. Is this normal? Does it just install a bunch of bloatware?

Attached: 1515361597600.png (284x240, 95K)

Does brand matter, or is it just for shilling fanboys?

Attached: Untitled.png (2719x1903, 422K)

>That's the worst part. Maybe the power button is broken. Use something metal to boot pc.
Already tried that I'm afraid, no use.

Cheaper per GB usually.
Some USB ports do not have enough voltage to run a portable.

Can't think of other reasons. I would go with a portable for most cases since dragging around an extra adapter is a hassle.

Can anyone recommend me a good C drill book? I need to get back on shape

Attached: alckmin-divulgacao-twitter.jpg (300x250, 15K)

Some companies have a lot better customer service and return/warranty policies that others. Other than that, just go for what does best in reviews.

Sounds fair enough. Thanks.

Attached: yzenlroah0j01.gif (1000x1000, 1.63M)

You can most likely use it with the default windows printer drivers. The driver download will most likely contain their print software that would be needed to set-up wireless printing/managing its network/password, or something. You might need to download it on one device and set everything up, but once it's on the network it should be accessible without any of that bloat.

In Java I have an ArrayList of Objects. These Objects do not support clone() and do not have a constructor, and I am not allowed to add one. I'm supposed to loop through a file with a scanner and add objects to this arraylist based off what I see. How the heck do I do this? I'd set a temp one and set the values of the object then add that, but then it just sets them all to the last one (since it's just one obj in memory)....

I've had Malwarebytes scanning for 12 hours, slowing down the entire machine (it's a toaster) and it's still not complete.
It hasn't found a single threat. I think it's about 70% done. Should I cancel it and let it go, or see it out?

Attached: 6a0133ec490e97970b017ee46b39b1970d-800wi[2].jpg (800x622, 24K)

let it finish or you risk just having to do it all again

Are you allowed to use reflection?

stackoverflow.com/questions/14374878/using-reflection-to-set-an-object-property

>but then it just sets them all to the last one
You might not be reinitializing the temp variable on each loop.

// Adds three identical objects to the ArrayList
List list = new ArrayList();
Foo tmp = new Foo();

for (int i = 0; i < 3; i++) {
tmp.setValue(i);
list.add(tmp);
}

// Adds three unique objects to the ArrayList
List list = new ArrayList();

for (int i = 0; i < 3; i++) {
Foo tmp = new Foo();
tmp.setValue(i);
list.add(tmp);
}

thanks!!

Im about to migrate my 1TB porn external hard drive to a 2TB one. My laptop doesn't have usb 3.0 so im using an expresscard adapter. The thing is im getting 10MB/s speed transfer when copying from one drive to the other, both are on usb3.0 external enclosures and both are plugged in on the same expresscard adapter.

Why the fuck is it so slow? If I copy a file from my laptops internal drive to either external drive it does over 100MB/s without problems. The only thing that comes to my mind is some sort of bottleneck inside the expresscard but even then 10MB/s is too fucking slow for a card that I know can do over 200MB/s transfers.

Also whats the most simple and basic cloning software for Windows? if its portable then even better. And is there any advantage if I clone it versus copying files through the Windows file manager?

Attached: 1519708564749.png (443x678, 334K)

Are you transfering a huge zip file? otherwise multiple small files make file transfers is slower than big single files.

Which Piratebay proxy is safe to use?

Most are "safe" to use if you have an adblocker. Just use common sense.

But instead of using Piratebay use yify for movies, fitgirl for PC games, nyaa.si for anime etc

I don't know where to put this question, but I am seeking to get a laptop that prioritizes price and performance at the expense of build quality, so what laptops would be good to play games on well, and has a relatively low price? If it helps expand my options, I do not really care about aesthetics. Anyway, thank you for your suggestions.

All sorts of files, about 3/4 of it is images and the rest high definition videos but I think you're right. I just did a test transfering 20GB of large sized videos from the old drive to the new one and got an acceptable 60MB/s, probably has to do with fragmentation on the old drive. Still 10MB/s was too slow.

I think the adapter is working properly then. Any no frills cloning software you can recommend?

Clonezilla is the paranoid tier clone tool.

Something as barebones as Clonezilla btw, I'd use Clonezilla but there's no way to make usb3.0 work on it.

I don't think any company would deliberately market their laptops having bad build quality but what is your exact budget?

Used laptop with a GPU.

why is the /catalog/ not refreshing correctly? i'm on brave browser

need suggestion for a new dsl modem/router
key features are being able to see what systems are using what bandwidth, boot users off the network
Bonus points: can partition the bandwidth to specific machines

>programs repeatedly close and system stops responding because of IO errors
>grub fails to boot entries because of disk errors
will all this go away when i clone onto a new hard disk, or will i have to install everything from scratch so all the system and grub stuff is error free?

is it ok to leave your computer on all the time?

is there such a program for windurrs that lets you mass hash a folder then save them, and then lets you mass verify the hashes of the folder if you ever suspect corruption?

fixed it :^)

what programming languages haven't changed?
how useful are those languages?

i know a lot of programming languages update and get new features added over time to where they become incompatible with older versions (python 2 and python 3 come to mind)
so i was just wondering what are some languages, if any, that haven't changed today compared to when they were first released.

>I would go with a portable for most cases since dragging around an extra adapter is a hassle.
That's why I'm considering a portable too.

I'm just looking for 4TB of storage to archive music, ROMs, and videos. Won't get used too often, really just concerned with reliability.

anyone got the ms paint version of this?

Attached: Macuser.jpg (2048x1536, 529K)

I'd ask this in the programming general but its a pretty stupid question.

In Java, I want to create an array but I'm not sure how large because it will be based on user input. I want to use a "while" loop to accomplish this but I need a sentinel value, in this case I'm using any non-int value.
Can anyone point me in the right direction?

Attached: 1474376378858.jpg (2000x2000, 547K)

ls | while read each; do echo $each >> hashlogs.txt ;cat $each|md5sum >> hashlogs.txt; done

dynamic array

>that haven't changed today compared to when they were first released.
probably none
it would be hard to find a programming language that was released as its final version in its debut

Humor me on this but aren't arrays length fixed upon creation? The first thing that came to mind was a dynamic array but I wasn't sure if Java supported it.

ArrayList or HashMap

>need suggestion for a new dsl modem/router
dont buy an all in one, purchase units seperately
buy a plain modem, whatever you need.
then as router purchase an odriod xu4 and you can do all of this and way more

Is libreSSL really any better than openSSL?

>stackoverflow.com/questions/2426671/variable-length-dynamic-arrays-in-java

use libressl

The -5v LED isn't lit, is my psu fucked?

Attached: IMG_0464.jpg (4032x3024, 1.88M)

I bought an 8 TB external hard drive on sale from Best Buy. I cracked it open to use as internal storage. It's a WD Red drive, a NAS drive. It spins down when not use very quickly, but I'm worried about that affecting the drive lifespan. Should I be making sure it keeps spinning at all times? I have my PC running near 24/7 anyway.

Thanks anons, I'm leaving soon so I'll try to implement this later.

For what its worth, its for a program that takes user input, checks to see if the input matches something within an inventory array, if it does then it adds the user input to an order array.

Good luck user, reminds me of myself 8 years ago when I started out.

Is there a way to use gtkinspector to get css classes of gnome panel elements? (extensions.gnome.org/extension/1160/dash-to-panel/)

I can't seem to attach it via the shortcuts nor via the finder it has.

Attached: 8ce84.png (1039x525, 179K)

c#
I want to communicate between a list objects and the WPF side.
There is a button on the main window, which adds a new T object to the list (said T object contains a generated button, which helps to work with the newly generated list related functions ),and also to the wpf listbox(which contains the button of the T object).

in the main scope there is a "temp" T object(which I use as the currently selected object ref, I feel it's bad practice), right now I load the newly generated object, so I can make changes on the list, and switch between list elements, as long as I edit the last (aka the "temp") T object I can switch back and forth(also it has a drawing mechanism, and i can visually see the changes easily).
So if I add object a1, make changes on a1, add a2, make changes on a2, everything is fine, I can switch back and forth, each T object changes are sort of "saved"(this is a really bad word I know), but as soon I make changes on a1, and switch to a2 and a1 back again, nothing is saved( by it's nature it still thinks I'm working on a2), the problem is the function in the T button in the view cant access the main section.

How do manipulate the T "temp" in the main from the T button click function ?

pic unrelated

Attached: 1514579723847.jpg (534x401, 36K)

I want to make pic related. The only source is overpriced audiophile bullshit.

How can I splice two USB cables together so that it gets the +5v from another source, such as a USB wall charger, and only have data go through the other end.
Do I just separate ground and +5 on one cable, and data -/+ on another?


pic related is $100

Attached: split power.jpg (1400x1400, 119K)

trying to compile qbittorent on debian jessie
configure: error: Could not find qmake
but I have qmake in /usr/bin/qmake
wat do

this may not work on all sources as they use the associated voltage drop to initiate handshaking.
but yes you could just splice two cables together.

If my program displays text using a certain font, will it display correctly on a system that doesn't have that font installed? C# .NET pleb here

it's kind of easy to test yourself, I'd include it in the resource files

>resource files
doy. thanks

seems like a "USB 2.0 One B Male to Two USB A Male Y-Cable"

How do I set the source of an Image control on WPF, using C# code?

Why do people get mad when I use the word coding?
> It's PROGRAMMING or DEVELOPMENT
> SOFTWARE ENGINEER not coder

I'm not a native english speaker and they seem to mean the exact same thing.

Because "coding" doesn't always imply programming. It could be a medical coder for instance. Additionally coding is often a term used by novices and by extension, a means in which to identify one.

Yes as long as your OK with the electricity it consumes

Does anyone work in AI / Drone / Machine Learning?

What's it like? I kind of want to be a C++ / Python developer in some sort of AI field but that could just be me being naive.

I just made one in a few minutes, it works, and does exactly what I fucking needed. Gets rid of noisy USB audio off my main PC. Fucking goddamn spent like $120 on a new PSU thinking mine was bad. Oh well, at least I got to redo all my cables.

Attached: split power.jpg (1024x1365, 954K)

fucking edit. I am STILL hearing fucking audio noise when plugged into this PC. much, much lower tho. WTF. is the shit getting over the data line? the fuck else can I do?
The power is coming from an liner power source.

And its not interference from anything else. as soon as I touch the USB cable to the back of my PC I start hearing the low pitch noise out of my speakers.
I am getting clean audio off my phone, and laptop.

They took -5v out of the ATX spec years ago. It hadn't really been used for much since ISA sound cards died off in the late 90s. I have an old Antec PSU from 2007 that doesn't have -5v. My Sparkle from 2005 has it though.

let it spin down, but increase the timeout if you can. You don't want it spinning for hours and hours when its not needed, but you also don't want unnecessary spindown/spinup cycles.

>turn monitor on
>screen goes black after a couple seconds
>power light is normal, not sleeping
>can see image when shining a light on the screen
Replacing caps didn't fix it, could it be the fuse instead? I could swear I'd done a test on the fuse before and it checked out, but maybe I somehow didn't check it correctly?

I use win10 and I just did a system reset and now my headphones aren't being detected
none of these google results are helping

What would cause simple programs to start taking ages to open and have fuck-huge ram usage spikes while doing so? It didn't used to be like this.

Attached: 1373404190482.jpg (2272x1704, 1.28M)

Need a good browser for Dark Web.
looked at Tor supposedly that's not secure was also looking at Tails but same thing I guess.Major newfag here.

A little late but w/e.
var bitmap = new BitmapImage();

mediaStream = new FileStream(entry.FilePath, FileMode.Open, FileAccess.Read, FileShare.Read);
try
{
bitmap.BeginInit();
bitmap.CacheOption = BitmapCacheOption.None;
bitmap.StreamSource = mediaStream;
bitmap.EndInit();
}
catch (Exception e)
{
image.Source = Helpers.NoImage;
CloseMediaStream();
return;
}

bitmap.Freeze();
image.Source = bitmap;

Rooted S6, TWRP, etc, has worked fine for months
Suddenly I get "Custom binary blocked by FRP lock on boot"
I noticed yesterday my window animation/transitions/etc in the developer settings had all reset for some reason, so I'm thinking the OEM unlock was disabled somehow
How fucked am I? Can I just flash the firmware and reset it or something? If I can do the process from scratch without losing my TWRP backups I can at least reset my phone to a month or two ago from my last backup, but since there's no SD card will it wipe the whole fucking thing?
I'm fucking ripshit right now, I absolutely did not change my developer settings

yeah I'm at a loss
realtek isn't even fucking installing and I don't know what else to try

halp

I appreciate your input, thought my PSU was toast.

Most are all pretty good. asrock tends to be cheaper overall but not worse. Gigabyte/Asus/MSI all are about the same too. Just read reviews and measure dimensions etc; pcpartpicker doesn't always filter perfectly.

Why is :
try:
do_stuff
except:
pass

considered bad practice in Python? I know I technically have to raise an error but there are plenty of cases where that's completely useless?

Unlimited budget: research ubiquiti ubnt.com/
Less money: Don't buy a router/modem combo. Zoom makes good modems and Asus generally has good software

If I buy a laptop with an ssd from someone and they wiped the windows install and reinstalled windows, what's the likelihood of being able to get files recovered from the old install using standard file recovery stuff?

i changed permissions to read only and this happened. now i can't access it even when i revert permissions to how they were before. how do i fix this?

Attached: halp.gif (320x426, 39K)

is edge really that bad ?
What exactly makes it worse than Chrome

check device manager for audio hardware
try disable and re-enable device
or re-install driver, you can download them on chip vendor site

extension support? ublock origin / umatrix / mouse gesture
js performance?

how do i get around my cricketwireless 2gb bandwith speed limit?

WITHOUT

ROOT
LET ME SAY IT ONE MORE TIME
WITHOUT ROOT

ALSO

whats the best rooted phone to date so i dont have to put up with this

could someone explain to me the difference between 'shell', 'bash', and a 'terminal'? the book seems to use them interchangeably.

my googling has failed me
im using find to list files that end in a certain extension which is great
but what i really need is that files name and the folder it's in, i do not need the full path

currently using
find . -name "*.mp4" -printf '%f\n'

which outputs like
mov1.mp4
mov2.mp4

even though they're in different folders, but what i need is this:

folder1/mov1.mp4
folder2/mov2.mp4

I'm wonder how I can make sure that all of my internet traffic is going through my VPN adapter once I turn it on.

i.e.: if I have a virtual machine running, and then I turn on my VPN adapter, will my virtual machine still be using my normal network adapter to communicate with the internet, or does it seamlessly hop over to the VPN adapter without me restarting the virtual machine?

"shell" is the generic term for the concept of software that acts as an outer layer that you interact with in order to give instructions to the "core" machine itself. in other words, an interface. since GUI became commonplace, the term "shell" mostly refers to command line interface.

"bash" is a type of shell, used in Linux, macOS, and presumably BSD and Unix.

"terminal" is a userland application that provides a command line interface shell.

so for most intents and purposes, they are interchangeable. though i presume you were genuinely curious.

Are there any overclocking guides for dummies?

The terminal (program) is used to access a shell (environment) which, on Linux, uses bash (language)

i got it wew

find . -name "*.mp4" | cut -sd / -f 2-

Why is winrar utilizing barely any of my cpu here when there doesnt seem to be a bottleneck?

Attached: winrar.jpg (594x69, 14K)

I have done nothing all day, but watch harry potter instead of coding, cleaning my room, or doing anything productive.

How do I start being an actual adult?

thank you!

Probably accessing the disk. Looks like you're de/compressing something on a USB2.0 device.

That's not bad bash-fu for starting out. Nice one.