I wanna start learning C++ so I checked the various sites that give somekind of Teaching Scheme.
Went to CodeWars, this pops in and I can't figure out why it doesn't execute properly.
Never coded a damn thing in my whole life apart from HTML and some PHP a long time ago.
Shouldn't it be something like this?
int multiply(int a, int b)
{
int result;
a = 2;
b = 1;
result = a * b;
return result;
}
The site then goes like this:
Expected: equal to 12
Actual: 2
>>58733124
Another weird thing is, the "compiler" goes like this
Expected: equal to 2
Actual: 12
when I go 2*6.
>>58733124
You pass numbers into a function, then define them in the function as something else. For example, if I ran multiply(3,5), I'd expect to get 15.
>>58733124
why are you setting a and b
they are set in the function call
and don't open dumb threads like this in the future
post in >>>/g/sqt or if programming related in >>>/g/dpt
Why should I care about net neutrality?
>>58733073
>Sorry, if you want to visit that website, it'll be an extra $20/month. Thanks for choosing Comcast!
>>58733112
>Comcast is making their users unhappy by putting pay walls on things that don't cost the company anything to maintain, time to start a business that provides the same service for the same price and not charge extra to access certain addresses
>>58733128
>Hmm, I'll just switch providers!
>Oh, wait, know, there are no other providers in my area. They have a monopoly.
>I'll start my own!
>Wait.. nothing in the law says that Comcast has to let anyone else use their infrastructure... so they don't
>if I want to start an ISP I'll have to dig up the streets and lay cables to every house in town! This is looking expensive..
>I'll need permits to do all that. Wait.. Comcast has (((lobbyists))) who give lots of (((campaign contributions))) to my state lawmakers, and they're in no hurry to make it easier to lay cables
patrician edition
Previous thread >>58730399
>Not sure what private trackers are all about?
The mission of /ptg/ is to promote the highest possible standards of tracker service by providing members with opportunities for professional development, by recognizing technical competence through examinations and by advancing the interests of its members.
>Have a question?
FAQ http://pastebin.com/LQxkS1mU
WIKI https://wiki.installgentoo.com/index.php/Private_trackers
MORE REFERENCE https://gitla.in/ptgGuide/ptgGuide/tree/master
IRC #ptg irc.rizon.net 6697/9999 SSL only
>News
When autism reaches critical levels, news will get posted in this thread.
Want it sooner? Do it yourself or read the old thread.
Use >>>/g/ptg as a link to find the /ptg/ thread.
Remember the following:
>Staff occasionally read these generals and have posted here before.
>Staff may pretend to be normal users asking for invites and when you invite them, they ban you for inviting strangers
>This is a thread for educational purposes only don't offer or ask for invites.
>go to APO interview
>no need to wait
>give proofs of ratio from nya, bakabt and general ratios of your utorrent program
>tell few of your favorite albums
>YOURE IN, BOY! Welcome and GL!
>go to PassingHandPhone interview
>have to wait SEVERAL HOURS
>get scolded for asking invite (why not try your luck if you already waited so long, lol?)
>Copy paste answer to the question - "This looks like a quote from the interview site. You failed. Good luck next time"
Gee, i wonder which site is better and actually made FOR PEOPLE.
>>58732898
Apooloo is for retards
PTH is for patricians with high IQs.
>>58732925
Fuck you! APO is THE best MP3 site!
ITS NOT LINUX ITS GNU LINUX!!!!!!!!!!!!!!!!!!!!!!!!
Fucking normies did this
>>58732867
It's not GNU, it's Unix/GNU, or Unix ∙ GNU as I have recently taken a liking to calling it.
haha that is indeed something i'd expect a hercules beetle to say
I recently found an iphone 5 at a music festival. I want to get into the contacts and call someone who knows the owner. anyone have any ideas how i can do this? i dont know the phone number, the passcode or anything. if this is not possible did i score a phone?
give it back, Tyrone
>>58732846
>noko
>>58732846
Push the home button until Siri comes up.
Ask "Siri, who owns this phone?" and Siri will bring up the contact info.
tfw running bleeding edge software before it's out
>Dona Sarkar is the Leader of the Windows Insider Program at Microsoft.
>Dona attended University of Michigan, where she studied Computer science
>>58732811
wtf i love windows now
>>58732811
what a butterface. her lower part of the face looks like james earl jones.
>>58732868
Wow, gay
who here
>windows PC
>linux laptop
>ios phone
masterrace here?
>>58732752
>t. iToddler
A laptop, desktop, and smartphone are all PCs.
I run Gentoo on my laptop and my Nexus 5X. I loving using Qubes OS with the Gentoo hardened kernel on my desktop. I use GPU pass-through with a Windows 10 hvm for gaming, and I even managed to get audio working with a simple workaround. I get the fluid speed and lack of bloat with Linux, and the gaming performance of DX12 on one system with less than 1% framedrops from native windows.
>macbookpro
>Windows pc
>android phone
t. superior race
left or right?
Not an office wage cuck, so neither.
>>58732685
neither, faggot >>>/lgbt/
>>58732685
Turn the desks around so they face each other instead.
Just Bought a desktop for 200 including a 22" monitor.
It got a i5 processor, probably 3000 series and a AMD 7870.
Wha games can I max out on this babe. Can it run overwatch?
Also was that a good deal or did I er hussled?
Should run Overwatch pretty well @ 1080p
Should run anything you throw at it, more or less
>>58732700
"I'm an adult who only uses their computer for jacking off to lolis and shitposting to /g/"
okay so i got my s7 online and it came in the box chinese. i eventually figured out how to change the language and keyboard to english. but then, when i went to factory reset it, it went back to chinese. anyone know how to fix this?
pic somewhat related
Do the same thing that you did to turn it to English last time.
Did you buy it directly from Samsung? Makes sense that it came in Chinese because Samsung is a Chinese company!
>>58732533
Samsung is Korean kek. nah but i got it from this site called Kogan. (live in aus btw)
just put fresh eom on it
I'm able to upload facebook profile pages through archive.is. Which means facebook doesn't think that it was a proxy / bot and doesn't even asks for captcha. It even shows the man who was logged in (!!!) to his facebook when he did a shot of pages (picrelated).
When I'm trying to archive ip-check site, it shows my own IP saying that I'm under the Netherlands proxy.
How does it even work? How is this not banned? Isn't it a huge security hole? Please explain.
Additional question: how do you think, is facebook going to ban this way of retrieving pages? Because it's potentially harmful for the security, i.e. as harmful as usual proxies, vpns and tor nodes, which are "banned" there (i.e. being asked to write the captcha).
>>58732465
http proxy is http proxy
if you can't log in to facebook using this, then it is useless for malicious attacks and therefore doesn't need to be banned
>>58732484
Quite interesting. I've tried to shot some facebook page by myself and it showed the same Nathan being logged in. Then question is how is he not banned for "suspicious activity"? Probably thousands of pages are being shotted by this user.
>>58732484
Yes, but why are usual proxies asked to complete the captcha, and this one -- not?
Hey /g/
How the fuck can you shitters use i3? How do I adjust my volume? Why is it so ugly? Why not just use openbox?
>How the fuck can you shitters use i3?
autism
>How do I adjust my volume?
probably with some stupid config option or error-prone bash script you copy off of the project's website, like with every other dumb tiling manager
>Why is it so ugly?
because it's hurrdurr minimal and because it's not designed to integrate with any mainstream graphic toolkit.
>Why not just use openbox?
Why not just use a real DE and organize your terminal windows in tmux instead of using someone's hobby project WM and spending all your time in config files duct-taping together the basic functionality in a real desktop.
>>58732328
Sure? DE suggustions? KDE has too much tearing.
>>58732337
>too much tearing.
Sorry, if that's your criteria you're fucked. The tearing will go away when everyone moves to Wayland, which only GNOME has done so far. I use LXDE.
Does anyone know the name of the program that manually generates config files for mpv on the fly based on inputs?
Bump again
>>58732284
vim
>>58732422
Its not vim you stupid fuck
>hey buys blu ray players
>>58732281
How am i supposed to watch my blue rays when the internet is down??
blu-ray discs are great for making backups
>>58732281
Its too much expensive for the moment
And like if is only a player not a writer Fuck off
2 is fine
>>58732163
But three is better
The setup i would love i 3 monitors and a big screen tv above them for laying in bed and watch movies
>>58732163
>used 2 displays for years
>switched to 3
>damn, so much space, amazing
>third was just standing somewhere on the right, effectively unused
>at some point i gave it away to my family
yep, 2 is fine
i'm even thinking about buying one of those 21:9
>>58733759
>watch movies
stop fapping faggot