>Post an algorithm without revaling what it does
>We try to figure out what it is
>>54870799
Dijkstra's algorithm?
var foo = function(arr) {
for (var i = 0; i < arr.length; i++) {
var key = arr[i];
var j = i;
while (j >= 0 && arr[j - 1] < key) {
arr[j] = arr[j - 1];
j--;
}
arr[j] = key;
}
return arr;
}
collection.push(collection.splice(i, 1)[0]);
GTX 1070 vs Radeon RX480 thread
Okay, so euh whadda ya wanna talk about?
>>54870714
Well which one will you prefer and why.
>>54870723
Well i quess the 480 since it will be about 300 bucks less and it performs as well as a R9 390. In theory that is.
Also i'm a bit done with Nvidia, i've bought into the 670 a few years back. Should've went AMD instead.
>tfw never built my own PC
>only things I have changed is RAM on my desktop are RAM, keyboard on chinkpad/hard drives
>the very thought of fucking it up scares me
>CRRRREEEAKK when putting CPU in and the thermal paste
>getting all the cables managed well as well as airflow
>making sure I know the connectors on the motherboard
>connecting the cpu heatsinkComment too long. Click here to view the full text.
The first step to being good at something is being shit at it
>>54870665
>I have always ended up letting someone build for me because then I know it can't be fucked up
Wrong!
You have it backwards. When someone is building a machine for someone else, they'll do it quickly and take the bare minimum of precautions because there's a strict limit to how much they care.
When you're assembling your own machine, you do it slowly and carefully and take precautions.
Finally, do keep in mind that be being aware of ESD and...
Comment too long. Click here to view the full text.
>>54870742
The guy who built my machine made all the cables go in the front rather than behind the motherboard. It is such a mess inside but this system is old now.
Still fucking scared.
So i have this old Htc running 2.21. It basically works as a phone but other than that everything is shit. (can't even connect to the market)
i was wondering if there was a way to turn it into a fully working mp3 player, without having to use the android UI and then use a music app.
could i remap the haptic buttons or the optical mouse to act as basic mp3 players functions (previous, next, volume control ect) ?
not really tech savvy and all but i can understand what's going on don't worry
>>54870612
>Rockbox.org
says its unstable so yeah, might be shit, might not even work
>>54870660
says "unusable", fuck me, can't even read
>>54870660
they say on the website that it's unusable with adroid devices
Is this allowed in MVC pattern? Or should i really go through all the hassle of applying an observer pattern as well?
Controller:
listInView = listInModel;
I need some coordinates stored in the model sent to my view.
>>54870435
>design patterns
Found your problem, use C instead
One problem = one design pattern
Those patterns are here to keep the code clean. Don't mix them.
Every line of code should be studied at least 2 days before writing it down.
If you're not sure whatever or not you can do that, don't do it. K
>lincucks
>Update my kernel to 4.5
>Can no longer boot
>Literally forced to use a recovery medium to initilize muh ramdisk environment
>Waste half an hour of my day thanks to a fucking update
Thanks turdvolds
>>54870375
Your own fault for removing the distro's recovery boot option.
>winfag
>running same install from 3 years ago
>zero problems ever
Thanks, Bill
>>54870375
>wincuck
>update my kernel
>it removes my software without telling me also reinstalls all bloatware and adware
I have a Phenom ii X4 965BE, it's 8 years old now and I need a new CPU. All I do on my PC is game, so I was thinking of finding a cheap i5 CPU since their single core performance is top notch apparently, but since most games only use 1-2 cores would it hurt to get a good i3 dual-core instead and save a lot of money? Or are games today actually utilizing full quad-cores now?
i3 6100 is still an excellent choice for budget builds
Wait for Zen in October.
>Or are games today actually utilizing full quad-cores now?
Some even use all of my eight cores. (Planetary Annihilation, for example)
It probably makes a lot of sense to go for an i3 now, especially because you can't overclock new i5s till expensive K ones. You can also don't fall for a skylake meme and by a haswell i5, which would probably be a little more expensive than skylake i3.
t. fallen for a skylake meme and bought i5 6600(without K)
Debating about whether to major in CS or CE. At my school, computer engineering and CS share a lot of software classes just the CE of course has all the hardware classes which I'm just as interested in.
If I decided to major in CE over CS would it be difficult to get a job in software if I wanted to? I'm just worried that some HR person who can only open their email will look at my resume and go, "Hey this guys not a programmer! Well I'm not going to give him a callback."
>>54870259
>At my school, computer engineering and CS share a lot of software classes just the CE of course has all the hardware classes which I'm just as interested in.
I was in the same situation as you and did CS (because less math). Regretted it as fuck afterwards.
>If I decided to major in CE over CS would it be difficult to get a job in software if I wanted to
No. Plenty of CEs in the jobs I've had.
>I'm...
Comment too long. Click here to view the full text.
>>54870259
pick one or the other. there's no difference if you're gud.
>>54870285
why did you regret picking cs?
I can afford top configuration of either laptop.
Mostly for writing, video editing, some gaming but not hardcore.
Which one I buy.
Surface Book vs New Razer Blade 2016
>>54870223
the right one looks fucking sick.. if it just had blue lights on keyboard
>>54870241
lights are fully programmable in 16 million colors
>>54870263
I would get the right one, I guess it has better cpu and gpu than a surface book too (too lazy to research).
and touch is overrated. you dont want fingerstains on your screen
Don't care about the price, looking for a good phone to buy, simple as that. Pic unrelated
>>54870099
if you're not going to give us any information on what the fuck you want then you might as well go fucking find it yourself
read the sticky you dumb fuck
The market has decided against releasing a best phone in other to have the customers stuck in an endless upgrade loop as well as working on phasing out features that enable features not benefitting to the phone manufacturer such as sd card slots.
>>54870099
Samsung Galaxy S7 Edge
Are there any relevant open source CPU architectures?
I thought that /g/ loves any open source projects but almost nobody talks about open source hardwares. Why?
>>54870027
>Are there any relevant open source CPU architectures?
Off the top of my head, MIPS and OpenRISC.
>I thought that /g/ loves any open source projects but almost nobody talks about open source hardwares. Why?
Because /g/ is full of clueless retards that are just here to shitpost about their favourite Apple-vs-AMD-vs-C# pissing match.
Almost everyone who wants to actually talk about computers is long gone.
>>54870757
>>>Tom'sHardware
>>54870027
http://www.lowrisc.org/
Looks like some of the Raspberry Pi people are behind it, and it's probably a decent architecture (RISC-V).
What are its notable weaknesses and technological flaws/disadvantages? Why has it lasted so long?
>>54869830
HTML 5 was released at 28 October 2014
Whereas Flash was released at 1996, that's why Flash lasted so long because it was a available, popular and widely used web multimedia software platform back then. Youtube used it, as well as many other sites did.
The main weakness is Security, Adobe Flash Player is capable of executing malicious code.
>>54870341
HTML5/web tech still can't into smooth vector animations
>>54870488
https://codepen.io/chrisgannon/pen/QjKXXe
Should the Internet be taken seriously?
Name one thing that the collaborative efforts of the Internet has accomplished that actually matters in real life.
>Wikipedia
Already had that shit in book form and it was more trustworthy and accurate
>>54869824
>Instantaneous and cheap communication around the globe
Why are you teens so fucking edgy
>>54869824
>Name one thing that the collaborative efforts of the Internet has accomplished that actually matters in real life.
The linux kernel
>inb4 it isn't the internet
If you say this, then you don't know what the internet is.
Hos about sharing critical information.
Hi /g/ I just "learned" lua. By that I mean got through a tutorial. What is the next step? Also what is your language learning algorithm. Are there some specific programs you always create to get better understanding of language?
>>54869731
>What is the next step?
Think of a very small but useful program. Write it in that language.
I suggest a calculator.
>>54869731
Script to learn.
Don't learn to script.
Now gtfo.
>>54870144
Why not?
Hello, /g/.
I'm trying to mod a game executable. I just want to change some values around if possible.
I've managed to edit some game text in a hex editor but, except for some plaintext function names and such, everything else seems to be garbage characters.
I disassembled the binary but I have no idea what I'm looking at, and I tried converting the assembly code to C++ with a program called Snowman but that just looked even more ridiculous and unreadable.
How exactly do I go about finding basic variables in the game if I only have assembly code to work with? Any tips on reverse engineering?
>porn
>on a blue board
>>54869697
i'd delete that image if i were you
censor that nipple before someone gets mentally damaged or looses their job.