I'll start...
Do Xeon CPU's support M.2x4? I understand they only support 1 graphics card.
How do I change the Windows 10 login screen? Everywhere I've looked keeps telling me about changing the lockscreen rather than the login one.
If I use a constructor:class rectangle
{
public:
rectangle (int, int);
double length, width;
double area ()
{
return length*width;
}
};
rectangle::rectangle (int l, int w)
{
length = l;
width = w;
}
int main ()
{
rectangle rect1(4, 5); // Valid declaration
rect2; // invalid declaration
rect2.length = 6;
rect2.width = 4;
}
My declaration of rect1 works,...
Comment too long. Click here to view the full text.
What's it like to have fast internet /g/?
Got a coding (run time) efficiency question here, /g/. Very long, sorry.
So I made this small program in java since it's the language I'm most comfortable with. Basically what it does is compare a sample small part of an image (say, 10x10 pixels, like on the right) with every other image in a database, looping through each pixel in each image looking for an exact match (like on the left). Uses the BufferedImage class and .getRGB() etc.
The database is currently just a folder with subfolders. The program first makes an arraylist of file names (with C:/Database/[foldername], etc) and then goes through each picture. The picture files are named after the related link it can be found at. (Eg. The google logo would be at location (C:/Database/google.com/logo.png, if an image were from google.com/subsite/somepic.png it'd be called C:/Database/google.com/subsite/somepic.png).
So, it works. The only problem is, there's thousands of pictures (at most 100k+, but most of them under 100x100 pixels) it needs to potentially iterate through, and this is related to a contest (details not important, it's legal and everything), so time matters. I know someone made a similar program that can find the answer in under a minute, and mine can take a long time - say 30 minutes + (probably more, I forget the exact amount), depending on how many images it checks before the match.
Now the tips this person gave me were that he used an actual database (MongoDB) and he used Python. Also, apparently he made it a lot faster by checking if the colors in the sample were similar to the colors in the image and it works that way. But I can't figure out how he did that, since template sizes/image sizes/range of colors used in the match image are all variable.
CONTINUED SLIGHTLY ON NEXT POST (sorry this is so long, I'm aware there's a decent chance no one will even read this).
My main questions here are, generally speaking, how to improve the efficiency of this program. I know java is often seen as clunky and slow, but would moving to another language be that much faster? Would C be fine? I don't know any python, and I know a bit of C, so I could try using that. Think the database is much faster than a filesystem? & Any ideas on that last part, the "checking for color similarity"?
I appreciate any input.
No answer OP but I will still give you a bump
C could make it potentially faster,
but first of all you have to get your algorithm right,
a lot of searches can be skipped,
look for something like text search algorithms, since they are similiar, but just in 2d, and then think about how you could apply that knowledge to 3dimensions.
Just think of more and more ways of how you know when to skip parts of the image, and you should be able to make it a lot faster.
Parallelize the process for each image (too bad you can't just spawn 100k threads in java)
Also java sucks in general, just switch for your own...
Comment too long. Click here to view the full text.
Has anyone gotten bored of smartphones? They're all the same now and there's hardly a difference between phones now and 2 years ago. I don't see a reason to upgrade my G2 unless it's to ironically get a Windows phone since it's different...
That's because you use a Toy OS (iOS, Android, WP)
Once you ascend to Meego on the Nokia N9 with a full GNU/Unix subsystem you will change your mind
>>51274434
my G2 got the common G2 problem where part of the screen simply stops responding to touches. I didnt drop it or anything, it just started happening a bit one day, kept getting a bit more noticeable over the week. Then it was just always like that from then on.
After 3-4 weeks I upgraded to the Note5. If it hadn't been fucking up though, I probably would have stayed with the G2.
I have, My first smartphone was an iPhone 4 then I got the Galaxy S3... I still use the S3 because nothing has really made me excited to upgrade. In all reality I don't really use my phone for anything more resource intensive than browsing the web so that might be why.
>tfw Red Hat unlike Canonical contribute directly to the entire Linux ecosystem
Seriously, anyone who uses ANY Linux Distro is running software developed by Red Hat or one of it's 4,500 employees. This is reason alone to ditch Ubuntu and use Fedora. Instead of waiting forever for new things to come to Ubuntu you get the latest and greatest directly from the company who makes it.
Unlike Red Hat, Canonical contributes jack shit to Linux development.
>>51274392
FEDORA HAS NO PACKAGES
E
D
O
R
A
H
A
S
N
O
P
A
C
K
A
G
E
S
Just get arch tph fám
>>51274392
Nobody asked for systemd, PulseAudio, udev, and other poison Red Hat has injected into Linux.
What the fuck just happened?
I looked at my icons, and they all had a 'tick' on them (pic related). I don't have any file sync software/dropbox bullshit.
A minute or two later, they had a 'shared' icon on them
And a few minutes later they're back to normal.
Am I part of the botnet?
>>51274291
Literally happened a minute or two later
>>51274291
>Uses Windows
>asks if he's part of the botnet
Anon I...
>>51274297
And now
God
Don't let technology replace your family, /g/...
technology ruined my life
>>51274277
>what is a black box?
Oh no I don't have to carry around a bag of shit anymore if I use one device responsibly.
>le looking down at le phone le zombie meme
Did you ever think they were looking down at an e-mail or a business related task.
Hi Windows users, what made you decide to eat big cummies?
big cummies
>>51274261
>windows users
>/g/
ayylmao
Anal sore hand-to-mouth fecal excrement consumer detected.
>>51274261
What compels you to eat shit from your hands? :^)
Share horror stories of getting tech help from shitty services like Geek Squad and how they fucked up you or your friends' tech.
Story related
>give grandmother old laptop i used to use in school
>expect her to just use it for Facebook and such
>grandmother complains about her pc running slow
>hands it over
>fucking 6 different anti viruses and half are fake
>open browserComment too long. Click here to view the full text.
top fucking kek
>>51274207
>grandma calls up, computer is fucked
>he drops it off
>10,000 toolbars
>reformat
>install Arch Linux
>compile everything from source
>get superior rolling release minimal system
>force all daemons and proessces, x windows, etc required to be manually started (like...
Comment too long. Click here to view the full text.
No stories, but am bumping
What does /g/ listen to? Also music player thread.
>>51274142
bumpin
Linux PC gaming thread!
/thread
>shilling for non-free software on /g/
>shilling for productivity killer software
God you're worse than the Androidiots
>Please restart your computer to complete the installation process.
install gentoo
>>51274078
>implying you don't have to reboot on kernel updates.
Also certain driver updates require you to kill a bunch of shit and then reload the drivers. It's easier to reboot sometimes.
>>51274093
>implying you do after 4.1
brand new Chromebook vs. used ThinkPad of the same price
Should have bought a fucking N9 you dense idiot
>>51273990
Who said that they bought anything you dumb faggot?
>>51274027
OP clearly doesn't know how to formulate functional phrases
What /g/ related Youtubers do you watch?
Hi guys technigger here
Linus tech tips, but he is so cancer now, was better a few yars ago. Also watch teksyndikate.
DasGregor
Linux4unMe
Other thread is at about 290 replies.
Expect waifus.
Htop
inb4 anime all over the place again
>>51273578
tried, this happens
its easier to say "fuck it" and just use regular top instead
What's with /g/ changing senpai to senpai? What are the other changes if any?
Also desktop thread. Shitty Win8.1 desktop reporting for duty.
Fuck. F A M get's changed to Senpai.
>>51273488
>"get's"
kill yourself
>>51273483
how new are you? the wordfilters have been active for awhile now.
s.m.h. t.b.h. f.a.m.