what's the most sensible way to find the number of digits in an int (without converting it to a string) in C?
please respond
regards, highschool dropout who can't into math
What made you think you can be a competent programmer without math?
Programming is all math.
>>56166247
i'm working on it senpai
>>56166101
divide by 10 until you reach 0, keep track with a counter starting at 1 if the number != 0
is this worth it?
>>56166082
There's no 4k content besides some porn, but my Roku TV + Plex is great
>>56166082
Why insignia?
how do i unlock lain mode /g/?
Go visible
http://fauux.neocities.org/
>>56166002
Upload to the Wired
You gotta take Accela.
Are hdds/ssds in the 2.5"/3.5" form factors deprecated? M2 drives seem better in every single way except maybe durability, or risk of getting fucked up during installation, but it's no worse than ram really
Call me when they aren't 2x the price per gig
>>56165853
you forgot cooling
yes, some new ssds literally overheat
>>56165891
Tru dat
A couple cheap heatsinks fixes it for the most part though
FUCKING AMD MAKE MORE OF THEM REEEEEEEEEEEE
how about release the fucking 490 already so i can decide on whether to buy an nvidia or fucking an amd
>>56165925
480 nitro+ will be gud. 8 pin finally.
Whats their fucking problem
What kind of crap you have to put up with if you run your own mail server?
Like, do services like Gmail accept your mail or does it end up in spam?
http://lmgtfy.com/?q=cons+of+running+your+own+mail+server
unintelligent amphibian poster
I'll get downvoted for this, but are there any good Windows email servers?
looking at some kind of sd for macbook that was getting shilled at unbox therapy
get down the page... seeing the 'testimonials'
peep Julia
>>56165751
>looking at some kind of sd for macbook
Kill yourself.
>>56165858
i dont even have a mac
i was curious because it looks like a weird SD card turned sideways
i seriously don't undertstand what the fuck is it, or why is it different from an SD card
check for yourself, its called a TarDisk
https://www.amazon.com/TarDisk-Storage-Expansion-MacBook-Retina/dp/B00ZSUBEDY/ref=as_li_ss_tl?s=electronics&ie=UTF8&qid=1471582919&sr=1-3&keywords=tardisk&linkCode=sl1&tag=socialtech109-20&linkId=a15e8d8bd4cb694fc71f1bc3303b7d6d
is it just snakeoil tech?
>>56165902
Literally just a half size SD card so that it doesn't stick out. They make them for Surface and other high profile devices as well.
So I have been wanting to move onto Linux for a while now, but having a GTX 980 I feel it would be kind of a waste, as Linux does not really need such capabilities. There's also the thing that I don't want to lose muh vidya, and I feel dual-booting might be too much of a hassle.
Some time back I came across some info on GPU passthrough for VMs, and as I understand it, it is possible to run a VM on Linux with passthrough with very little performance loss. Since I have a multimonitor setup, I have been thinking of getting a smaller card that can drive 3 monitors for running Linux, and leave the 980 disabled for when I need to pass it through to a VM. Though I have never done something like this before so I don't know if its even viable.
Has anyone tried doing something like this in the past? Is it really as straightforward as it seems, or is it more hassle than dualbooting?
If you try dual-booting, but find yourself not booting to windows to game because you need the linux side to finish some long duration task, then the VM/passthrough route is worth it. Otherwise it's too much of a pain, just easier to reboot.
Sell it and get something amd
I have a question that's somewhat related.
If the GPU is disabled for Linux in order to use for GPU Passthrough, can I still use the ports on the GPU for the monitors?
Does anyone even use this anymore?
>>56165558
Why wouldn't you? It's much more convenient than going through a news website's front page.
>>56165558
Fucking normalfags fuck off.
For muh podcasts.
I use Windows and I've never paid for software.
Piracy makes everything free software.
Why support inferior software when you could be supporting pirates who are the real good guys fighting the good fight.?
>>56165550
>Piracy makes everything free software
Pirate the source code of windows and post it here please
i fucked your mom last night because she was free.
Not free AS free beer..
Is Zen going to be locked to Win10 just like Kaby Lake?
How will I avoid the Telemetric Jew now?
>>56165304
Kaby Lake's not limited to Windows 10, neither will Zen.
mokou a shit
>>56165328
Didnt MS say all CPUs after 2017 couldnt support Win7 or 8?
Or did I mishear?
>tfw it took me 30 fucking minutes to do this problem
I fucking suck. How long will it take /g/? Don't bother if you've already done this problem please.
Retard brute-forcing comparisons don't count and neither do functions like ^(1/2) or any other cheap tricks.Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Example 1:
Input: 25
Returns: True
Example 2:
Input: 17
Returns: False
>failing on trivial problems
just use stack overflow
>>56165296
>do my homework for me pls
>>56165296
Three minutes later :#include <stdio.h>
#include <stdlib.h>
int isPerfect(int input){
for(int i = input; i > 0;i--)
if(input % i == 0)
if(input / i == i)
return 1;
return 0;
}
int main(int argc, char* argv[]){
int input = 0;
printf("input : ");
scanf("%d", &input);
printf("\n");
if(isPerfect(input))
printf("Perfect !\n");
else
printf("NOT perfect !\n");
return 0;
}
Here's your fucking homework
I was using my pc and i had a sudden power outage, the pc has booted up, all fans are working, no overheating anywhere, should i be worried, can it damage anything seriously
i have this PSU
http://www.thermaltake.com/products-model.aspx?id=C_00002713
>>56165231
Kill yourself
>>56165231
>I was using my pc and i had a sudden power outage,
Get a surge suppressor
> the pc has booted up, all fans are working, no overheating anywhere,
Get a surge suppressor
>should i be worried, can it damage anything seriously
Get a surge suppressor
>i have this PSU
You put several hundreds, if not thousands of dollars into your computer but cheaped out on a 50 fucking dollar fucking surge fucking suppressor.
No, that fuse on your power is not a surge suppressor. This is :
https://www.amazon.com/dp/B017VXT1E4
>>56165315
They have them at Home fucking Depot http://www.homedepot.com/p/Tripp-Lite-Spike-Cube-1-Outlet-Direct-Plug-In-600-Joules-Surge-Suppressor-SPIKECUBE/203139343
>had a chance to try a 144hz screen everybody keeps hyping around
>test some games out, even set low graphics settings to have those so wanted fps
>see absolutely no difference from 60hz
Ok guys, so what was I supposed to see there? High refresh rates seriously look like a meme to me after this experience. Should I give it a second chance?
You don't see a difference in games. You see quite a big difference with UI stuff (animations look smoother) but that's about it. You're better off getting a good 60hz or 120hz monitor, and the only reason to get 120hz is so you can play 24/30/60fps video without judder or interpolation.
>>56165215
Oh I am, I have 2 Dell U2417's and I'm very happy with them. This one is from a friend, that swears by the smoother fps while gaming. Well he must have better eyesight than me, because I saw nothing different.
>>56165170
I hear you. You can spot the difference a bit, but nowhere near enough for it to be worth it.
When I first saw one of the mythical 144hz displays I was disappointed. Really underwhelming.
2k doesn't seem that worth it either. Though I can't really comment on that since I have no experience with it.
hey guys i have a problem that confuses me. my gaming rig has of late had problems running the games it has always run on the same level of graphics it usually pulls without a sweat plus more when i do it drops the framerate to like 10 or something in average. why is my rig acting like this its only a half year old
>>56165048
>he bought an nvidia card
Nice job sparky. NVIDIA is known to gimp their older cards with driver updates. That is exactly what happened to you.
>>56165320
what? does that mean i need to updatethe driver thats it? or that it needs an update that nvidia is shit at making?
not following the term gimp
>>56165320
Can confirm, whether intentional or not (jk of course it's intentional) newer drivers have been slowly gimping my performance in gta5. Gtx970.