/sqt/

Stupid Questions Thread

Other urls found in this thread:

amazon.com/gp/product/B0155KMZYI/
bend.craigslist.org/sys/5702029721.html
newegg.com/Product/Product.aspx?Item=N82E16813128843
support.microsoft.com/en-us/help/20527/windows-10-activation-troubleshooter
twitter.com/NSFWRedditGif

Why niggers are black?

The first time I used Tor I felt like I was part of a secret club and it felt so edgy.

I don't feel edgy anymore

What software do I use to feel edgy again?

best ebook reader?

Gentoo

Why doesn't this work



var contacts = [{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
}, {
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
}, {
"firstName": "Sherlock",
"lastName": "Holmes",
"number": "0487345643",
"likes": ["Intriguing Cases", "Violin"]
}, {
"firstName": "Kristian",
"lastName": "Vos",
"number": "unknown",
"likes": ["Javascript", "Gaming", "Foxes"]
}];


function lookUpProfile(firstName, prop) {
// Only change code below this line
for (var i = 0; i < contacts.length; i++) {
if (contacts[i][prop] !== undefined ) {
if (firstName == contacts[i].firstName) {
return contacts[prop];
} else {
return "No such contact";
}

} else {
return "No such property";
}

}
// Only change code above this line
}


// Change these values to test your function
lookUpProfile("Akira", "likes");

>From last thread
I've got a whole THREE stupid questions
- I'm a windows ten fag who just installed Iridium. All of my extensions and everything work fine, but I use Google Docs and such for work, and noticed I can't "sign in to chrome", but I can sign into any google service just fine on the individual pages. Anyone know what's going on?
- Another Iridium issue, videos never play anywhere in my browser. Youtube, facebook, twitter, xvideos, nothing works. I tried reinstalling Java and even adobe flash player but nothing works.
- Iridium is also recording my history in incognito tabs, and it doesn't go away when I clear history. All my porn still shows up when I'm typing shit into the search bar. wtf is going on?

>return contacts[prop];
Guess the [i] is missing?

Not all blacks are niggers, and not all niggers are black.

They all work about the same. Get a used kindle if you're a cheap motherfucker.

>he fell for the iridium meme

I posted the wrong version. Let me repost the right one

function lookUpProfile(firstName, prop) {
// Only change code below this line
for (var i = 0; i < contacts.length; i++) {
if (contacts[i][prop] !== undefined ) {
if (firstName == contacts[i].firstName) {
return contacts[i][prop];
} else {
return "No such contact";
}

} else {
return "No such property";
}

}
// Only change code above this line
}


// Change these values to test your function
lookUpProfile("Akira", "likes");


If I run it, FreeCodeCamp tells me

>"Kristian", "lastName" should return "Vos"
>"Sherlock", "likes" should return ["Intriguing Cases", "Violin"]
>"Harry","likes" should return an array

Help user

Linux

Is Iridium a meme? A friend of mine mentioned it as a Chromium alternative and me likey

How much does having a splitter on the cable connection to a cable modem affect the SNR?

This is comcast btw.

You're effectively only checking Akira's properties. The second if statement will fail if the name isn't Akira and it hits the return statement

I'm practising JS using an AJAX website where one of the pages has a slideshow. Right now I run the init function each time this page is visited, but this results in duplicate eventListeners. So, I have a function that unbinds the events before binding them once again.

Is this retarded? I feel like running functions based on individual elements is bad practice.

slideshow: {
init: function() {
App.slideshow.off();
App.slideshow.container.classList.add('slideshow');
App.slideshow.currentImage.classList.add('active');
App.slideshow.on();
},

on: function(){
App.el.win.addEventListener('keydown', App.slideshow.keys);
App.el.win.addEventListener('mousemove', App.slideshow.mouse);
App.slideshow.container.addEventListener('click', App.slideshow.click);
},

off: function() {
App.el.win.removeEventListener('keydown');
App.el.win.removeEventListener('mousemove');
App.slideshow.container.removeEventListener('click');
}

Sup /sqt/ my old laptop is dying and I'm thinking of buying this PC:
amazon.com/gp/product/B0155KMZYI/
and adding a 750ti and a Qcore processor to it.
I'm running on a budget of $500 and the PC + the GPU and Monitor I'm thinking of getting are already taking $400 of that budget.
So to put it it simply, what is a good quad core processor I can get for ~100 bucks?

I've also literally never built a PC before, let alone upgrade one.
How hard is building a PC?
and more importantly, Will the PC I'm thinking of building, likely be able to play M&B:Bannerlord at a good framerate when it comes out?

Where can i get those LED stripes that go on back of the monitor for ambient lights for cheap?

Clunky, but if you don't care about reusability then it's probably fine. When I did a lot of jQuery we did similar junk. Could also probably set a flag when you bind events for the first time.

This probably sounds pathetic

Does having a high watt psu affect how much power comes out the plug? Reason I'm asking is because I've got an RM850 which i used with SLI, a bunch of drives and OC everything. But now half of that is gone, nothing is OC'd, 1 GPU, 1 SSD + HDD left. I just feel that running them with such a high wattage PSU is just overkill

It should only pull as much power as your components need. Your PSU efficiency also plays a role

Build your own, its cheaper.

I5-6400 and a H110 or B150 motherboard and a $40 case and a EVGA 500B shouldnt be more than $400.

Its easy.

Any secure folder encryption software for android?

thanks senpai

Well, I'd rather learn properly, and as far as I know reusability is key. My rationale was that if I run the function when the container element isn't in the DOM it will throw an error, and the event listeners will be useless. What's a smarter alternative?

Are you adding the container element via JS or is it in the markup? If the latter, use something like

document.addEventListener('DOMContentLoaded', function() {
//do stuff
});

Read logicalincrements, then PCpartpicker to find cheap prices.

Ask for help here then and post your stuff.

Is this a bargain or what

bend.craigslist.org/sys/5702029721.html

ebay they probably have them at aliexpress too. Look around so you don't pay to much they should probably be around $10-20 for 10m with everything included(ac adapter, remote, led-strip).
I would recommend getting those with three LEDs in one diode for better color.

They wont adapt to what's on the screen like in your pic though.

Seriously what the fuck is going on

For some reason, when I import a track Adobe Premiere will take the original audio and double it, making it sounds super shitty and I have to delete the extra track every fucking time I move it into the sequence. The second audio track is not apparent in the actual recording, because I would be able to hear it. How do I stop this shit

It's in the markup, and I'm already running JS after the DOM is loaded. The sequence is kind of like this:

>1. be in homepage, body class "home"
>2. click ajax link that empties body and inserts contents of "project page"
>3. body class is now "project"
>3a. if body class is "project" run Slideshow
>3b. Slideshow caches newly added DOM elements from "project page"
>3c. Slideshow adds event listeners that control elements from "project page" and creates a slideshow

The part I'm unsure about is 3a. I don't know how smart it is to be really specific about what to run and when. I've tried finding tutorials on managing code and multiple features across pages but haven't found anything relevant.

Where can I go to download college textbooks?

So generally when you're adding content via ajax or some other async method you can just do things in the callback function. In jQuery it would look something like

$.get(url, function(stuffToAddToPage) {
// add stuff to page > run Slideshow > add events
});


Is that not an option here?

I was asking for stuff like on that picture. I found something called ambilight but its 60 dollars.

Yeah, that's how i'm doing it. The ajax callback runs a single init function that includes:

>3a. if body class is "project" run Slideshow

But i feel like i'm not really getting the modular code pattern.

init: function() {
App.homeInit();
App.singleInit();
//other stuff
},

homeInit: function(){
if( App.el.body.hasClass('home') ) {
App.grid.init();
}
},

singleInit: function(){
if( App.el.body.hasClass('project') ) {
App.slideshow.init();
}
}

install gentoo

When are you adding the home and project classes? If it's in the ajax callback, where you're also running the init functions, you shouldn't have to double check. Can just assume they'll be there.

I'm imagining

function callbackFn() {
// add content to page
// call init functions, no need to check if App.el.body.hasClass('home/project') -- can assume content has already been added since these are synchronous
}

Anyone use the vimperator addon for firefox and 4chanX?

When I'm on the catalog page and use the shift f hint shortcut to open something in a new tab it hides the selected link, but only when 4chanX is on.

I've looked through all the options on 4chanX but nothing I've found stops it from hiding.

Anyone else had this problem and managed to find a solution?

Makes sense. I'm adding the classes when when clicking on the ajax links that have a data-class.

Would people even buy not so good pc parts such as a g3258, ECS B86H3-M Motherboard, DDR3-1600MHz RAM on ebay or amazon? I want to sell them and put that money towards getting newer and better shit.

How would i tell 7z to go through a text file full of passwords?
7z a -p
somehow

I'm building a pc and the cpu isn't here yet, how can I test out the parts and wiring without the cpu

Gotcha. I'd definitely defer all slideshow related logic until after the ajax call returns, then you can just do everything synchronously in order.

Wouldn't that attempt to run the slideshow functions (cache, event listeners) regardless of DOM content?

If I am only gonna invest the time in one should I learn C or C++. This would not be my first language so how noon friendly it is does not matter.

very noob unfriendly
join the python master race user.

Nope, you should be fine there.

var hml = document.createElement(someHtmlToAdd);
html.addEventListener('keydown', App.slideshow.keys);
document.body.appendChild(html);


Yours will likely look a bit different, but as long as the only async thing you do is the ajax call, the rest will run in order.

whoops. meant "var html" in the first line

Thanks for the help kind user

gotchu. best of luck

Is it possible to get Windows 10 for free legally despite being past the upgrade app deadline?

Yeah just say you're handicapped and they'll give you it for free

What IDEs should you use for the following languages:

C#
C++
Java

What math prerequisites do I need for programming languages?

None?

Visual Studio
Visual Studio if on Windows, eclipse for C++
eclipse

none, just pick a language and do some tutorials

Okay, that's what I thought, but someone on another board said Sup Forums hates those. Also, this was the only thread on this whole board that didn't appear to be complete garbage.

Thanks!

Who cares what Sup Forums hates or likes, just go with what suits you best.

Are there any linux distros to make printing "just werk"? I'm having so much trouble.

Just trying to be a bit more savvy. I tend to assume the simplest solution is the best, which is how people end up using IE all their life.

Did nVidia physically damage my components? Or is it a salvageable software incompatibility that I can probably fix?

I tried installing an nVidia legacy driver to improve PhysX performance in Borderlands 2 on my GTX 1070. Doing so caused crashes while playing Overwatch, giving me errors like 'IRQL_NOT_EQUAL_TO' or something like that as well as some PCI instruction missing. Uninstalled the driver and then got more crashes. Uninstalled ALL nvidia drivers/software and got even more crashes like 'BAD_MEMORY_POOL'. Wiped my SSD and reinstalled a fresh Windows 8, but it would get to 100% and crash, telling me I had a BAD_MEMORY_POOL. Tried reinstalling, and on the 5th attempt it miraculously worked.

Now I'm trying to upgrade back to Windows 10 but I'm still crashing right before the installation finishes giving me bad memory pool errors or PCI instructions missing. I removed the GPU, reset the cmos battery, and tried swapping around the RAM to different slots and trying them individually. Ran memtest86 which gave me a bunch of errors, but I'll have to run the test with the individual sticks for a few nights. On my Motherboard I'm getting a code 51 in the LED display, which according to the manual means it's a memory startup issue.

Specs:
6700K i7 @ 4.0 GHz
Gigabyte GA-Z1709X-UD5 TH motherboard
GeForce GTX 1070 EVGA SC (Removed for now, using the i7 integrated graphics)
32 GB RAM (Corsair Vengeance, 2 sticks of 16 GB each)
Samsung 850 EVO 500 GB SSD
EVGA Supernova 850w G2

Computer is about a month old. Didn't experience any instability before installing that stupid legacy driver. I know that there's some kind of RAM and/or PCI-E slot issue going on, but I don't know if that's software-related or something got damaged. I always use an anti-static wrist strap when touching any components, no exceptions, I don't have money to throw away over something dumb like being careless. My previous PC was an i7 920 with a GTX 285 that lasted me 7 years and still works.

what drivers should i install for an AMD card on fedora?

RHEL - 6 or 7

or the generic linux one?

In windows phone, what is the name of the youtube app?

Tube HD

Thanks.

people use silver coils in water cooling loops as a an anti-microbial. Can we or do we use similar technology to fight bacterial blood infections?

How do I update my BIOS and how do I make sure I don't fuck up. I've already got the motherboard make and model number ready and set to go but I don't know how to install it without fucking up hard.

That said, how I do un do my fuck up if it happens.

i'm currently using apple headphones and it randomly pauses my music (as if it pushed the middle button on the remote), how do i fix?

I'm trying to use my gtx 1080 as an external gpu and I just can't get my computer to detect the fucking thing.

I've been using an r9 380 with no issues.

At first the 1080 wouldn't let me boot when it was connected, but I just had to connect the auxiliary power cable to the adapter and it at least lets me boot.

The card looks like it's running when I start it up.

I've installed the correct drivers.

PhD if Haskell

How do i fix this so the yellow bar goes away. It doesn't show how far along you are in the video, just how much is loaded, unless you mouse-over it.

I know its a small complaint but i spent an hour trying to figure out what to adblock to make it go away and it wouldn't.

I use Firefox

If I got an SSD could I image my OS and Steam shit onto it and still have all the other applications read off the HDD I have?
Or would I need to clone over shit like photoshop as well?

Wow that did not answer my question at all.

Should I replace my CPU cooler after 3 years?

C++

no, just it from getting too dusty and you're set

Why is windows update so shit? if i can even get the thing to find the updates its takes hours and when i do it sticks on 0% downloaded until it restarts. and even when you get them to download 70% of them fail causing the whole process to start over again.

how do i fix this fucking mess

What chat bot should I have talk to users of dating apps who don't read my profile?

fug, meant to post this image

Justbeurself_2.0

Facebook prev did end-to-end encryption on messenger, and added in secret conversations. you activate it in your settings on tablet/phone. However, I can't seem to start any secret conversations with any one but they can with me.

Does any one know what I need to do? Am I missing something?

Stop that user. You want the gov even more down your throat? Stay with 8.1 or 7 at least

get another pair of headphones. They sound like the pause/play/mic button is damaged. I would suggest next pair of ear buds, get yourself an altoids can (big version) and carefully roll them up on your fingers and place them in there. I do this with my work ear buds. Been find for almost close to 2 years I think

If I have learned anything from Microshaft is that they have no idea what the fuck they are doing any more. They have a bunch of dumbasses working on the OS. I could trust Sup Forums making windows great again compared to M$.

I would say, just uninstall and reinstall all the updates.

I am, and it's working, but I get too many unwanteds who only look at the pic before sending lewd messages.

Fuck it. VimFX werks.

>Compsci vs Software Engineering degree
1) does either look better on a resume? Are both equally employable?
2) any other tips for deciding
I've got about a month to pick.

are you a grill?

60 FPS never feels like 60 FPS in any of the games I play and there's this phenomenon I can only call "micro-stuttering" despite only running one GPU.
Google said to run a latency test and I got pic related.
What can I do about this?

>computer from 2010 is slow
>tried removing bloat and ccleaner and shit
>advised to open it up and clean out the dust but im scared ill fuck something up

Will this help at all? Or stick to Windows 7?
I only use chrome and casual CS: Source

specs:
>Acer 5560-Sb410
>AMD A6-3400M, 2.30 GHz
>AMD Radeon HD 6520G, 512 MB
>6 GB DDR3 Memory
>640 GB HDD

Don't update your bios unless you have a good reason.

Which version of windows?

You can clone your existing system as is, but any programs you would want to move to the HDD would have to be reinstalled. I would suggest putting steam entirely on the HDD because games are huge and some of them will get bitchy about being installed on a different drive than the steam client. The steam backup/restore option is surprisingly helpful for transitioning.

> Sup Forums making windows great again
I would use that OS even if it dragged my computer into the pits of hell.

fucking memes everywhere.

Bump?

Had to replace my motherboard because the Type-C port was dead, and now Windows is de-activated. Any way I can get a free or cheap copy of Windows 10?

So let's say I'm animating a game on Flash, and using Actionscript to code everything. I have an animation when the character is ducking and looping when he continues to duck, but I want to give him an "unduck" animation to show him while he's standing.

How would I go about doing that? How do I make the animation do something when a key is no longer being pressed?

I forget actionscript (only used skiddie AS2 stuff) but I recall a OnRelease or Release event handler to trigger said animation. or maybe KeyUp (as opposed to KeyDown)

You're probably going to have a tough time getting much money out of it, but selling it is still better than letting it sit unused forever.

a cousin netbook has a pirated windows and her problem is that facebook webcam is not working in the sense that her friends can't see here.

any idea on what to look for?

So im going to be building a new computer soon and i have no idea what the differences between most mobos in the same price range really means. I'm going to get a I5 6600K and im looking for a good lower price mobo, and i have settled my sights on this

newegg.com/Product/Product.aspx?Item=N82E16813128843

From reviews i have seen its pretty good, especially since when i do start to OC i'd probably only do a slight OC. Are there any better boards in the price range that you guys know of?

how to stop wlan_rx_wake? I know it's something to do with my router but I'm not sure what to do.

You can probably install windows 7, use daz activator, then use the assistive technology ugrade to get legit win10.

See^ Or you could buy a key off kinguin. Also you can try reactivating your existing activation by calling the microsoft hotline or using the troubleshooter

support.microsoft.com/en-us/help/20527/windows-10-activation-troubleshooter


If you have a lot of feedback on your ebay account you could probably sell it, otherwise try craigslist. You won't get a lot on craiglist tho.

Reinstall the webcam drivers and double check your facebook/browser settings

Is sage a misspelled version of sega?