[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Archived threads in /g/ - Technology - 3140. page

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

What is the best desktop enviroment, and why is it KDE?
27 posts and 9 images submitted.
>>
File: KUCK-DE-fs8.png (56KB, 1713x845px) Image search: [Google]
KUCK-DE-fs8.png
56KB, 1713x845px
KDE is for cucks.
>>
>>59940316
t. minimalistic cuck
>>
>>59940398
How is KDE minimalist?

File: logitech_g430_gaming_headset_02.jpg (41KB, 1000x734px) Image search: [Google]
logitech_g430_gaming_headset_02.jpg
41KB, 1000x734px
Any audiophiles that know there stuff give me some insight here?

I have this G430 headset that has 7.1 Audio. But the microphone/stereo adapter to usb is broken. Will it still give me 7.1 Audio? Is there a way to check?
8 posts and 1 images submitted.
>>
You're a moron.
>>
>>59940296

k
>>
>>59940278
ask them to give you new one
protip, say that it never worked since you bought those

An eggsecutive running LOONIX?
7 posts and 3 images submitted.
>>
File: 1492392590231.png (102KB, 258x281px) Image search: [Google]
1492392590231.png
102KB, 258x281px
>>59940167
why is this thread haunting me

go away
>>
good thread. I watch mr robot but understand nothing.

What i understand is:
warning spoiller alert:

I think elliot is a autistic anti-social retared(and not likes anime thats very surprising) and he is not even exists. He is talking with his dead father all the time and call him a asshole. Sometimes he can't even control his brain. He wants to save the world from bad guys and only weapon he has his hacking knowledge. So he tries something but everthing fucked up. So the bad guy from e corp tyrell wants to cooperate with elliot because he is bored from working with old piece of shits and he has a crazy bitchy wife and because of her he kill his boss wife ;) whatever. When tyrell gets lost elliot goes to jail. Elliot watches cp with his black friend in jail. After then they meet with killer american psycho tyrell for last shot but stupid elliot thinks he is real as his imaginary friends and wants to stop everthing. But gets shot. FBI know everything btw.

Also there is one nice hot chick in the series but i think she has no nudes yet. (elliot's childhood friend)
>>
>>59940167
This was the scene where I dropped the show.

File: b_tree_insert_nonfull.png (37KB, 374x372px) Image search: [Google]
b_tree_insert_nonfull.png
37KB, 374x372px
I'm trying to implement a B-Tree based on the algorithm provided on the book Introduction to Algorithms, 3rd Edition.

The relevant chapter can be found on the link: http://staff.ustc.edu.cn/~csli/graduate/algorithms/book6/chap19.htm

I'm currently stuck on the procedure B-TREE-INSERT-NONFULL.
The recursion provided (line 17) results in a Nullpointer as none of the childs x->c[i] exists on this point.

The implementation in C that I came up with is as follows:
void b_tree_insert_nonfull(node* x, int k)
{
int i = x->n;

if (x->leaf == true)
{
while (i >= 1 && k < x->key[i])
{
x->key[i + 1] = x->key[i];
i = i - 1;
}
x->key[i + 1] = k;
x->n = x->n + 1;
// DISK WRITE X
}
else
{
while (i >= 1 && k < x->key[i])
{
i = i - 1;
}
i = i + 1;
// DISK READ X->C[I]

if (x->c[i]->n == 2 * t - 1)
{
b_tree_split_child(x, i);

if (k > x->key[i])
{
i = i + 1;
}
}
b_tree_insert_nonfull(x->c[i], k);
}
}


/g/ what am I doing wrong?
6 posts and 2 images submitted.
>>
>implying knows how to code

There all virgins qho cant doe thts why thy make fun on js

Also i = n.x is not the same as int i = x ->n
>>
>>59940143
>>>/dpt/
>>
check out your split routine, it's probably not fixing up the pointers in the parent properly

File: google_pixel_07.jpg (82KB, 1200x675px) Image search: [Google]
google_pixel_07.jpg
82KB, 1200x675px
>jobless NEET
>knows programming

Give me some app ideas.
89 posts and 6 images submitted.
>>
an app to kill yourself
>>
Make a crude copy of a classic video game and watch people get addicted to it.
>>
>>59940098
An app to help cucks find guys for their girlfriends to fuck.

File: t3_59f9so.jpg (60KB, 650x843px) Image search: [Google]
t3_59f9so.jpg
60KB, 650x843px
What are you working on right now? Is it for job, for resume, for learning, or for fun purposes?
32 posts and 3 images submitted.
>>
>>59939998
I suddenly forgot, I'm just gawking at that picture.
>>
why didnt the bishes in mass effect look like this?
>>
>>59939998
python and MATLAB. have to use DH conventions to code a robotic hand. the math is str8 forward, but the code is turning out to be a faggot cunt bitch motherfucker.

File: board1.jpg (32KB, 375x325px) Image search: [Google]
board1.jpg
32KB, 375x325px
Don't tell me this is the max Intel can get Skylake-EX in DIMM count without affecting bandwidth? Are you fucking serious? Naples has 32 fucking DIMMs slots.

http://www.anandtech.com/show/11277/upcoming-lga3647-skylake-xeons-a-tyan-2p-skylakesp-motherboard-leaked
277 posts and 39 images submitted.
>>
>>59939902
Naples could actually go up to 48 in a 2P format.
>>
>>59940144
Where would you fit that?

And how can you get 48 DIMMs from 8 memory channels per CPU? Isn't 32 max?
>>
How did Intel allow AMD to catch up and arguably pass them? They were so far ahead.

File: 1080.png (22KB, 482x432px) Image search: [Google]
1080.png
22KB, 482x432px
Can you beat this?
65 posts and 39 images submitted.
>>
File: Untitled.png (116KB, 1363x1017px) Image search: [Google]
Untitled.png
116KB, 1363x1017px
>>59939861
probably not
>>
also
>post your epilicious specifications
>area you a virgin
>>
File: Screenshot_20170417_215613.png (98KB, 1583x617px) Image search: [Google]
Screenshot_20170417_215613.png
98KB, 1583x617px
>>59939861
Pretty much.

File: images.jpg (5KB, 225x225px) Image search: [Google]
images.jpg
5KB, 225x225px
I've been programming using scripting languages for nearly 7 years now. I don't have a background in computer science, rather in biology so I felt at home using Perl/Python/Bash for everything.

Now I want to use C++, taking advantage of strong typing to speed up my programs.

However, nearly everything I work with requires strings. For example, one of the basic file formats I work with is called a VCF, a tab-delimited text file.

Explain to me /g/ents how come C++ does not have a simple split function for strings?!!!

WHY IS THERE NOT A FUNCTION IN THE STANDARD LIBRARY TO DO THIS SIMPLE TASK???!!!

In Perl

#!/usr/bin/perl
open IN, $ARGV[0];
while(<IN>){
chomp;
my @row = split /\t/, $_;
print $row[3],"\n";
}close IN;


In Python

#!/usr/env python
import sys
with open(sys.argv[1]) as f:
for l in f:
row = l.rstrip('\n').split('\t')
print row[3]


In C++ I'm using a split.cpp and split.h files compiled with another main.cpp. YOU WOULD THINK THERE WOULD BE A SIMPLE split FUNCTION BUT NO. I DON'T THINK THEY SPLIT STRINGS IN DENMARK. FUCK C++

>general C/C++ hate thread
78 posts and 16 images submitted.
>>
>>59939744
> Explain to me /g/ents how come C++ does not have a simple split function for strings?!!!

Because if you are 2 retarded to implement this you're self, then you should just kys yourself :^)
>>
File: ALLAH.gif (620KB, 480x281px) Image search: [Google]
ALLAH.gif
620KB, 480x281px
>>59939772
split.h
#ifndef __SPLIT_H
#define __SPLIT_H

// functions to split a string by a specific delimiter
#include <string>
#include <vector>
#include <sstream>
#include <string.h>
// split a string on a single delimiter character (delim)
std::vector<std::string>& split(const std::string &s, char delim, std::vector<std::string> &elems);
std::vector<std::string> split(const std::string &s, char delim);

// split a string on any character found in the string of delimiters (delims)
std::vector<std::string>& split(const std::string &s, const std::string& delims, std::vector<std::string> &elems);
std::vector<std::string> split(const std::string &s, const std::string& delims);

template < class ContainerT >
void tokenize(const std::string& str, ContainerT& tokens,
const std::string& delimiters = " ", const bool trimEmpty = false)
{

std::string::size_type pos, lastPos = 0;
while(true)
{
pos = str.find_first_of(delimiters, lastPos);
if(pos == std::string::npos)
{

pos = str.length();

if(pos != lastPos || !trimEmpty) {
tokens.push_back(typename ContainerT::value_type(str.data()+lastPos, (typename ContainerT::value_type::size_type)pos-lastPos));
}

break;
}
else
{
if(pos != lastPos || !trimEmpty) {
tokens.push_back(typename ContainerT::value_type(str.data()+lastPos, (typename ContainerT::value_type::size_type)pos-lastPos));
}
}

lastPos = pos + 1;
}
};


#endif
>>
>>59939869
split.cpp
#include "split.h"


std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems) {
std::string delims = std::string(1, delim);
tokenize(s, elems, delims);
return elems;
}

std::vector<std::string> split(const std::string &s, char delim) {
std::vector<std::string> elems;
return split(s, delim, elems);
}

std::vector<std::string> &split(const std::string &s, const std::string& delims, std::vector<std::string> &elems) {
tokenize(s, elems, delims);
return elems;
}

std::vector<std::string> split(const std::string &s, const std::string& delims) {
std::vector<std::string> elems;
return split(s, delims, elems);
}


main.cpp
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include "split.h"
using namespace std;
int main(int argc, char* argv[])
{
if (argc < 2) { cerr << "ERROR: MUST HAVE ONE ARGUMENT" << endl; return 1; }
ifstream in_buf(argv[1]);
string line;
vector<string> samples;
while (getline(in_buf,line,'\n')){
if (line.find('#') != 0) {
vector<string> fields = split(line, '\t');
cout << fields[3] << endl;
}
return 0;
}


Ok but why do all this work when you can do this?

@array = split /\t/, $line; 


I really really want to use C++ for my research but this is infuriating

331 posts and 39 images submitted.
>>
Does a VM protect you from viruses?
Lets say I want to open a document, which happen to be a virus, if I do it in a VM, would my actual OS be protected and remain clean, or would it get compromised as well?
>>
>>59940114
The host computer should be OK. If it's ransomware or something that will infect all files then you'd want to make sure there are no network drives or shares leading back to the host.
>>
>>59940114
It aims to do so and I generally wouldn't hesitate to run malware in one.

Nothing's perfect though. There have been many VM escape exploits.

File: nani?!.jpg (134KB, 800x800px) Image search: [Google]
nani?!.jpg
134KB, 800x800px
old thread: >>59933073

What are you working on, /g/?
326 posts and 34 images submitted.
>>
First for Rust
>>
>>59939666
go away satan
>>
>>59939666
Also, check'em

>>59939671
Fuck off, Jesus

File: robbie_rotten.jpg (119KB, 1252x1252px) Image search: [Google]
robbie_rotten.jpg
119KB, 1252x1252px
What are you working on, /g/?

Previous: >>59933073
7 posts and 2 images submitted.
>>
>>59939581
Thanks for using Anime picture~
(^~^|)
>>
My program that is totally better than a professional solution because I browse 4chan and that makes me more important!!!

T. Any user in this thread
>>
>>59939618
Yes

File: etsy.jpg (9KB, 200x200px) Image search: [Google]
etsy.jpg
9KB, 200x200px
how do you pronounce it
32 posts and 5 images submitted.
>>
Etsy.
>>
eck-set-ra
>eck as in the ship's dECK
>set as in 'SET that down'
>ra as in a woman's bRA
>>
>>59939305
etc

File: Fedora_wtf.png (216KB, 410x308px) Image search: [Google]
Fedora_wtf.png
216KB, 410x308px
So I heard about fedora workstation and wanted to check it out for myself.

I go on their website and see pic related as "ad" for their OS...

What in the actual fuck did they think when they made this?
7 posts and 2 images submitted.
>>
this is an old meme

welcome to /g/ newfriend
>>
THICC
>>
>>59939119
Is that beast really still on their page

File: Xiaomi-Mi-Mix-2-carcasa.jpg (216KB, 1268x664px) Image search: [Google]
Xiaomi-Mi-Mix-2-carcasa.jpg
216KB, 1268x664px
Are there any upcoming true groundbreaker smarthones right now beside the mi mix 2?
10 posts and 3 images submitted.
>>
>>59939064
The iPhone 7s. Honestly they are the only ones innovating. Apple has never delivered a disappointing phone.
>>
File: 4.jpg (196KB, 698x1528px) Image search: [Google]
4.jpg
196KB, 698x1528px
>>59940954
(You)
Saged
Reported
Banned
Leaving thread
>>
File: 1451700150539.png (91KB, 800x600px) Image search: [Google]
1451700150539.png
91KB, 800x600px
>>59940954

Pages: [First page] [Previous page] [3130] [3131] [3132] [3133] [3134] [3135] [3136] [3137] [3138] [3139] [3140] [3141] [3142] [3143] [3144] [3145] [3146] [3147] [3148] [3149] [3150] [Next page] [Last page]

[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.