/sqt/ - Stupid questions thread

New sqt, previous one is kill.

Post your small/stupid questions here, rather than creating a whole thread for it Don't bump the thread, wait for an answer rather. Take at least 10 seconds googling your question.

For GPU/Linux/headphone/bsd/programming/webdev check the catalog for their generals too.

Redirect people starting dumb threads here.

old:

Other urls found in this thread:

docs(dot)oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html#step9
learn.yancyparedes.net/2012/03/setting-up-javac-command-on-windows-7/
amazon.co
windowsmatters.com/2015/04/17/windows-8-1-x86-u1-pe-with-updateable-usb-portable-apps-2/
stackoverflow.com/a/1675446
downloadcenter.intel.com/download/26544/Graphics-Intel-Graphics-Driver-for-Windows-7-8-1-15-36-?v=t
videocardbenchmark.net/gpu_value.html
twitter.com/NSFWRedditVideo

Re-asking from the previous thread

>just rubber

The metal part was probably torn out at some time. I wouldn't use what connector.

molex to sata connector is one of the low quality ones. It works, but you should get a quality one.

Reposting from previous thread

I have a P4 shitbox which started to restart randomly. Temps are OK, voltages are the following:

Vcore: 1.370
3.3v: 2.96-3.3 mostly stays under 3v
5v: 5.175
12v: 12.2-12.3V

Is it kill? If yes, can I get away with a $15-20 PSU since it's a legacy system?

From other thread:
Fans connect to Molex cable which can take connection from back and plug into stuff from front.
PSU has peripheral/molex plug which looks basically identical but doesn't plug into back of fan molex.
Wrong plug or shoddy build quality?

couldn't say, there's countless mostly-worthless generic PC clones with all kinds of beige cases
only certain kinds of things become valuable, simply being rare isn't enough, it has to also have some kind of nostalgic and/or historical significance to it

that said, nostalgia varies from person to person, even something generally considered uninteresting could be valuable to the right person

So just installed kodi (os = win 8.1 64 bit, updatesdisabled) what this muh program wont start because api-ms-win-crt-locale-|1-1-0.dll is muh missing?..
So someone said install vs cpp 2015 and got
Tried installingvs 2015 what this
Error 0x80240017: Failed to execute MSU package.
[03B0:06E0][2017-02-02T18:28:22]e000: Error 0x80240017: Failed to configure per-machine MSU package.
[03B0:06E0][2017-02-02T18:28:22]i319: Applied execute package: Windows81_x64, result: 0x80240017, restart: None
[03B0:06E0][2017-02-02T18:28:22]e000: Error 0x80240017: Failed to execute MSU package.
[07D0:0DB0][2017-02-02T18:28:22]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{74d0e5db-b326-4dae-a6b2-445b9de1836e}, resume: ARP, restart: None, disable resume: No
[07D0:0DB0][2017-02-02T18:28:22]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{74d0e5db-b326-4dae-a6b2-445b9de1836e}, resume: ARP, restart initiated: No, disable resume: No
[03B0:06E0][2017-02-02T18:28:22]i399: Apply complete, result: 0x80240017, restart: None, ba requested restart: No

Can an event listener in Java have more than one event source?

>The metal part was probably torn out at some time. I wouldn't use what connector.
Welp, I guess I'm better off re-purposing an old PSU then.
>molex to sata connector
How do I make sure the soldering is in the right order? I don't want to fry my device by suppling 12V instead of 5V.

Pic?

Top is basically what the back looks like.
Bottom is from a guide for connecting the fan controller but mine doesn't fit.

All my cables are zipped up and tucked away in the case.

Just received a 1k bursary from uni for being a poorfag.
the 1k bursary can only be used with a linked tech shop. The linked tech shop has a limited range of products and im looking to purchase a laptop as my current one died. This will be my main pc. i can purchase the standard one and ill only have to add £44.00 or i can add £300 for 16gb ram and 512ssd (next pic)

what do you think Sup Forums?

fuck forgot pic

Hi, retard here.

I'm following this tutorial : docs(dot)oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html#step9

And the command doesn't work. (It says the command doesn't exist)

What do ?

Check the pins alignment.
Shoddy quality probably.

OS?

the extra 300 one

W7.

How the hell do I gain root access on Bluestacks?

In short, is an Interface in Java basically just an Abstract class that can't be instantiated?

If you type
java -version
into your terminal.

Which of these is it?
C:\Users\hal>java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

C:\Users\hal>docs(dot)oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html#step9
'https:' is not recognized as an internal or external command,
operable program or batch file.


If it's something like the latter, have you installed a jdk?
On ubuntu and similars it's sudo apt install openjdk-8-jdk -y

If you're on windows, go to oracle.com and find the jdk there.

That's the most obvious thing that can have gone wrong.

I have the 3 lines you have (with different versions).
I've put both jdk and sdk just to be sure already.

Is there a Sup Forumsuide for getting a technology-related job?

Like what certifications are good, what languages are good to know, and suggestions for building experience?

I have a degree already, in applied mathematics (useless by itself), so I'm looking at how to build on top of that.

No. It's not an abstract class. They serve two different purposes conceptually.

An interface is a contract. Everything that implements an interface must have these methods. We put no other restraints on your implementing class other than that these methods are there.

Think about Collection for example.

An abstract class is basically saying that there is some framework for a proper object, but that you have to fill in the blanks. It puts your extending class in the inheritance hierarchy. It's a class that lacks some things to be complete.

They're therefore not the same, and the people who like one will generally not like the other. I'm more of an interface guy, but I use abstract classes from time to time when they make sense.

one is a "contract" the other is a "basis" for classes

Dude, I'm sorry, I meant:
C:\Users\hal>javac -version
'javac' is not recognized as an internal or external command,
operable program or batch file.


Because javac is the compiler, and if you can call the compiler your development kit is installed properly.

java -version is just the runtime. It's for starting java programs, not making them.

It tells me :
javac 1.8.0_121

But only if I'm in the folder containing javac.

bumpo

That's the problem right there.
You haven't set up your path correctly.

> learn.yancyparedes.net/2012/03/setting-up-javac-command-on-windows-7/

Tells you how to do it on Windows 7.
Just google "set path for" + your OS and you'll be fine. You'll want to include the jdk bin folder (the one that has javac in it).

Telegram isn't working on my computer & my smartphone. It doesn't send messages and stay in Updating...

Is it the same for you guys ?

So an abstract class essentially states "we have these methods, use them if you want"
And an interface states "we have these methods and since you're using me you MUST implement them"?

step nine is the ant command? go back to step four and make sure you installed ant completely:

>Ensure that the Apache Ant executable file is in your PATH environment variable so that you can run it from any directory.

Could someone help me with this?

Will do.
I didn't realize what that sentence meant, had no idea I had to do that.


If i have to Ensure that the Apache Ant executable is in my PATH environment variable and that I have to do that with javac, I put both in the same variable with the semi-colon to separate right ?

Because that's how my files are.
C:\Program Files\Java\jdk1.8.0_121\bin
C:\Program Files\Java\apache-ant-1.10.0

What's the best cheap printer I can buy? Need it only for school so I don't really plan on printing much meaning it doesn't have any bells or whistles

Only requirements are:
>cheap
>b&w/color
>won't break within the semester

Optional:
>ink isn't too expensive

Thanks in advance

So I have to put this apparently :

C:\Program Files\Java\jdk1.8.0_121\bin;C:\Program Files\Java\apache-ant-1.10.0\lib

(lib contains an executable jar file called ant)

Bit scared desu they repeat over and over on internet how a mistake can fuck up the computer

>
amazon.co dot uk/Epson-Expression-XP-245-Wi-Fi-Printer/dp/B01JOYHAZA/ref=sr_1_2?s=computers&ie=UTF8&qid=1486047600&sr=1-2&keywords=printer

amazon.co dot uk/HP-DeskJet-2130-All-in-One-Printer-x/dp/B014FEATWU/ref=sr_1_3?s=computers&ie=UTF8&qid=1486047600&sr=1-3&keywords=printer

They're all the same really. Ink is usually going to cost an arm and a leg.

Alright, I did it and can do javac -version from anywhere. Thanks

But the ant jar still doesn't work

update

So it said : Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_121\lib\tools.jar
Apache Ant(TM) version 1.10.0 complied on December 27 2016

So I copy-pasted the tools.jar from the jdk to the jre and then : Apache Ant(TM) version 1.10.0 complied on December 27 2016

But now :

C:\Program Files\Java\JDBCTutorial>ant jar
Buildfile: C:\Program Files\Java\JDBCTutorial\build.xml

compile:
[echo] JDBC Tutorial is using C:\Program Files\Java\jdk1.8.0_121\bin\javac as Java compiler

jar:
[jar] Building jar: C:\Program Files\Java\JDBCTutorial\lib\JDBCTutorial.jar

BUILD FAILED
C:\Program Files\Java\JDBCTutorial\build.xml:67: Problem creating jar: C:\Program Files\Java\JDBCTut
orial\lib\JDBCTutorial.jar (AccÞs refusÚ) (and the archive is probably corrupt but I could not delet
e it)

Total time: 0 seconds

C:\Program Files\Java\JDBCTutorial>
fug

Is there a way to have Windows on CD/DVD/USB?
Similar to linux live session?
I have some hardware (3D printer+portable water cutting) that doesn't have drivers for linux.
Since I'm using a laptop, I don't have the enough space to run a VM or dual boot.

If default value doesn't match the check constraint will it be set anyways?
If I want default value to be NULL do I have to change the check constraint to also accept the NULL value?

(in MS SQL Server)

Telegram or Discord? Wich one is more secure? I don't really like the fact that telegram has my phone number, but I've read bad things about discord.

Thanks dude! I just needed an idea of where garbage ends and reliable begins. I'll look into these two for sure

you can encrypt voice in Teamspeak 3

you can run an installed copy of windows from a usb-attached hdd
it's actually a lot easier to do that now than it was pre-win8

a livecd is also possible, sort of, but that's not what you want (trust me, i'm a dolphin)

Currently have a re-purposed desktop running as a plex server and I want to upgrade it.

Currently it has;
>i7-870
>4GB of ram
>4 2TB hdds in RAID 1+0
And some PSU and GPU.

I was thinking of
>Using Antec P380
>Upgrading storage to 8x4TB
>Using a fx-8320e and recycle a 990x board I have

Thoughts?

what is the best full tower case im going to get for air flow for $100?

What's the best way to move windows + games to an ssd, and keep all other files on the original hdd? So far it looks like my best bet is to store everything that isn't windows on a third drive, do a clean install on ssd, and format.

Is there an actual quick and good way to download/install/upgrade my windows drivers?

all 3rd party software I find needs payment

Driverbooster is free. Uninstall it after though, because it constantly pops up.

RX 470 8gb or RX 480 4gb?
Almost the same price, which should i pick and why?
Not going to upgrade for at least three years afterwards.

>usb-attached hdd
Does it have to be HDD?
>pre-win8
So I need a Win 8.1/win 10 iso?
And just choose the specific storage medium USB flash drive at the time of install? then set the boot order in BIOS?

I've also found this
windowsmatters.com/2015/04/17/windows-8-1-x86-u1-pe-with-updateable-usb-portable-apps-2/
Does it provide anything better over installing it?

When I use a VPN and TOR browser, does using a normal browser affect my anonymity?

I just recently got fiber internet; upgrading from 1mbps DSL.

it's a 50/50mbps plan, which is usually what I get. I have one wired PC, on which I usually get 45-65mbps upload and download, and my higher end wireless devices, like my phone and PS4.

My main PC, however, which is the left screenshot in my pic, is usually much slower, ranging from 12-30mbps download, but uploads usually around 30mbps. This is on wifi, and a wired connection is not feasable for me at the moment. The speed is so much lower than my phone, which is the right screenshot . These tests were done right after each other in the same location, about 10 inches apart. This is probably about 20-25 feet from the router, with a couple walls in between, but the speed is great on my phone.

What can I do to improve the speed on my PC? I am using an Asus wireless USB adapter (ASUS USB-N13). According to its product page it's supposed to be capable of 300mbps. My suspicion is that my wireless adapter just isn't performing as it should, and I'm thinking maybe I should buy a new wireless adapter. Does this seem like a reasonable theory, or is there anything else I should check first?

Also if anybody has any recommendations for adapters they would be much appreciated.

Depends on what extensions you have installed on that browser.

I only have Violent Monkey, uBlock Origin and Magic Actions for YouTube.

Yes, you're compromised.
Tor browser is just FF+ extensions

>Does it have to be HDD?
not specifically
>So I need a Win 8.1/win 10 iso?
it's easier with 8.0+, but you can do it with older versions, it just requires a bit more effort
>just choose the specific storage medium USB flash drive at the time of install?
it will refuse usb drives normally, you need to install it without it knowing it's a usb drive
if you're using 7 or older, look up a guide, as there's more you'll need to do in addition

Looking for a recommendation.

I have a server with:
3x storage HDD's (8tb)
1x SSD for the OS

Proxmox VE is installed, and I'm running OpenMediaVault as a VM.

Now there's a list of software I'd like to have installed which all needs access to the HDD's

- Plex
- Deluge web client
- Sickbeard
- Zoneminder
- etc...

You get the point. So my question is, where do I install this software? On a separate VM, or do I install it on the OpenMediaVault VM?

Will several VM's having physical access to the hard drives at the same time cause problems?

>if you're using 7 or older, look up a guide, as there's more you'll need to do in addition
That sound too much of a hassle for a thing that I'll use 1-2 times a week.
What about this windowsmatters.com/2015/04/17/windows-8-1-x86-u1-pe-with-updateable-usb-portable-apps-2/
Does it allow installing drivers?

don't bother with PE unless you know you need it, it's not the normal, complete version of windows

When typedefining a struct - why declare a name pre- and post- declaration?

e.g This makes sense:
typedef struct
{
int stuff;
} stuffholder;

Declare struct containing stuff called stuffholder. Okay.
This confuses the shit out of me:
typedef struct stuffstruct
{
int stuff
} stuffholder;

What the fuck is 'stuffstruct' for? In most tutorials I've seen it's never referenced again after this.

>don't bother with PE unless you know you need it, it's not the normal, complete version of windows
What's the difference from the regular/complete version?

I just need it to run the drivers and some applications.

I have R61 Thinkpad.

Should I install 32bit or 64 bit linux on it?

PE stands for "preinstallation environment", it's the "windows" used during windows setup
i have only personally messed with the PE's that came with XP, 2003, and briefly vista
driver and software support is limited, normally there's also a time limit (as PE is not meant to be used for long periods anyway), though i believe there are cracks that disable this

but hey, nothing wrong with playing around with something new
build yourself a PE disc if you like, see if it does what you want it to do
just don't be surprised if it doesn't

Could someone explain to me please why Afterburner and CPU-Z are telling me clock numbers of 135/324 while GPU-Z is telling me 1114/1753?

I'm only just right now starting to look into overclocking for PC gaming so I'm quite ignorant about all this stuff at the moment.

Also, I can't get the Heaven benchmarking software to install (keeps telling me files are corrupted) so what other benchmarking software do you recommend? Thanks.

what's the benefit of using a wifi cable?

oh, i will, however, recommend against using pre-made PE-based bootdiscs unless you're absolutely certain of the trustworthiness of the developer(s)
dodgy modified windows discs are asking for trouble

is it possible for a VM performing undefined behavior to damage the host machine?

>running win7
>debian VM in virtualbox
>writing a simple "hello world" OS for op systems class
>emulating my OS in Qemu in Debian
>hundreds of Qemu crashes from undefined behavior before I get it to work correctly

Turned it in yesterday, but today I got an error that crashed Win7 without a bluescreen, something about memory. Restarted and ran CHKDSK, which didn't find anything. Computer works fine now, but my curiosity has been piqued.

also ran win memory diagnostic, forgot to mention that.

I see.
I'll try doing that.
Worst case I'll just get HDD caddy, and put HDD in it and install windows and swap it whenever I need it.
It's annoying how you need a whole environment for a small thing.

One last question if I run this Window 8.1 PE, does it have access/modify the Linux partition /HDD.
Since it's formatted with ext4, at most it would be able to delete it?

stackoverflow.com/a/1675446

Is there a way in java to *recursively* iterate through an array without any helper methods and extra parameters?
The recursive function would just have the array parameter, nothing else.

b-bump?

are coffee filters for cleaning heatsinks really that good or is it all just meme

>The recursive function would just have the array parameter, nothing else.
That's how it's done generally, not sure what you're looking for here.
Have a method taking the array which is calling itself.

are mexicans for changing light bulbs really that good or is it all just meme

>does it have access/modify the Linux partition /HDD. Since it's formatted with ext4
not ootb, though there are some programs for windows that allow some degree of access to ext4 volumes
you can always delete/format them though, of course

Well I need to print out each element of the array one by one.
I could easily do this:
void func(array, index){
if(index < array.length)
print(func(array, index++));
}
but I can't have an "index" parameter. it has to be just the array.

the code i put there is very wrong btw (i realized i tried to print out a void function) but i hope you get the idea

Intel's latest graphics driver is 15.36.33.4578 for haswell processors, but when I run the installer, it reports as 10.18.14.4578. Are they being obtuse with the numbering or is it not installing properly? I got the driver directly from intel, just to be clear.

downloadcenter.intel.com/download/26544/Graphics-Intel-Graphics-Driver-for-Windows-7-8-1-15-36-?v=t

Is it worth replacing the stock cpu cooler?

That's a shitty way for them to do it. I bet they receive a huge kickback from that shop.

Anyway, here's my thoughts.
* It looks like the RAM can be upgraded but I'm not sure about the SSD. They don't specify its interface so it might be soldered.
* If it is soldered, you'll have to go for the higher end one because 256GiB is not going to be enough for your sole drive.
* If it's a regular SATA or m.2 drive and you don't want 4G, I think it would be okay to go with the cheaper one and upgrade later
* Are you happy with a 13" display? Will you be using an external monitor too?

it is if you're having problems with the CPU overheating.

not my case than, it's just that i always see build with huge cpu coolers and keep wondering why. Thanks, user.

Thanks!

they will do the same work for much cheaper?

What type is your array?

I think I slowly start understanding you, are you looking for a loop or are you dealing with objects having children which have again n children etc?

if you have a simple one dimensional array then just for/foreach loop through them, you don't need a recursive function for that.

What's the best bang for my buck when it comes to upgrading my GPU from a 660? I can spare about 150 bucks, but I should be able to hide from the bullies and use my lunch money to save enough for maybe 200 bucks.

Pissmark says 1060 3GB is pretty good.

videocardbenchmark.net/gpu_value.html

But our teacher is asking us to do it in a recursive function. Using a loop to do it would be extremely easy.

It's an integer.

Basically here is the easy and most obvious way to do it recursively:

void IterateRecursively(int[] array, int index){
if(index == array.length-1){
System.out.println(array[index]);
}else{
System.out.println(array[index]);
IterateRecursively(array, index+1);
}
}


But there has to be NO "int index" parameter on my function.

rx 470

What's the exact wording of the task you got?

Check for continuity between the respective pins on each side of the adapter.

what would be a good gpu to upgrade to from this?
mostly just looking for good game performance since this one doesnt really hold up to newer games

1080

First she taught us what recursion is by using the example above, then she said "now as your homework, try to do the recursive function I gave you earlier but without this "int index" parameter. You should be able to do it with just the int[] array parameter."