Quantcast
[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology


View post   

[ Toggle deleted replies ]
File: 976 KB, 1280x720, vlcsnap-2018-03-19-03h08m08s069.png [View same] [iqdb] [saucenao] [google] [report]
66674533 No.66674533 [Reply] [Original] [archived.moe] [rbt]

Previous >>66666905

>what are you working on, /g/?

>> No.66674541

>>66674533
I'm sorry, but you seem to have posted the wrong op picture.

>> No.66674551

>>66674261
>>66674261
>>66674261
?

>> No.66674557

Why are you guys so obsessed with japanese cartoons?
Just let it go already

>> No.66674576

>>66674533
i want to fug nenecchi

>> No.66674578
File: 187 KB, 1024x819, 1478387598018.jpg [View same] [iqdb] [saucenao] [google] [report]
66674578

whats the most redpilled programming language?

>> No.66674581

So I have a collection of large PNG images that I have to share regularily but since they're 100-200 MB each due to high res, I wanted to downscale them to, say, a maximum width/height of 2k for sharing purposes. Can someone just double check on what I'm doing to make sure I don't end up with fucked up proportions?
image = Image.open(os.path.join(root, file))
(width, height, ) = image.size
(new_width, new_height, ) = (width, height, )

if width > 2000:
new_width = 2000
new_height = math.ceil(height * (2000 / width))
elif height > 2000:
new_width = math.ceil(width * (2000 / height))
new_height = 2000

image.resize((new_width, new_height, )).save(os.path.join(OUT_PATH, file))

>> No.66674587

>>66674541
no, I didn't :^)

>> No.66674595

>>66674557
anime website

>> No.66674599

>>66674578
the one you've settled on after using at least a dozen others

>> No.66674627

>>66674581
compress them retard

>> No.66674640

Doing polymorphism in C is really retarded.
Most of the memory required by the object is consumed with function pointer

>> No.66674648

Posted this before at bump limit
Been trying to find a decently efficient solution for this algorithm with no success. Looks NP complete to me. My shitty brute force algorithm takes ages on my craptop.

>you are given a list of numbers within the range 1-20 and an integer k.
>find the maximum possible size of S, where S is a set of pairwise-disjoint subsets of the list, and every element of S sums to k.

>> No.66674651

Is ther a good library in Java for doing advanced String interpolation?

Something like:
"There are {count(var)} keys:
{printlist(keys)}"


The strings would be dynamic, which is why I can't just declare a couple of vars before hand.

>> No.66674692

>>66674627
Already batched them through optipng but I cannot zip then, they have to be uploaded as is.

>> No.66674693

>>66674648
>pairwise-disjoint subsets of the list
uhhhhhhhhhhhhhh
does this mean tuples of 2 numbers taken from the list

>> No.66674733

>>66674651
not possible but you can do something like
("There are {%count} keys:
{%printlist}", var, keys)

>> No.66674735

>>66674693
It's just a fancy word for tuples of n numbers taken from the list and there should be no overlap between the tuples.
So from the list [1, 2, 3, 3, 4] you can take out (1, 2, 4) and (3, 3)

>> No.66674794

>>66674733
Wait, does that apply a function to the variable?

This would be so much easier in Python or Ruby.

>> No.66674816

>>66674735
Alright I think I get it, I'll try making my own shitty bruteforce algorithm

>> No.66674852

>>66674794
no its a function that returns a string and i just left out a name
the function would be
String format(String fmt, Object... values)

>> No.66674896

>>66674640
>polymorphism
If you're trying to call a function and you don't know which one you want to call, you haven't done your analysis correctly.

>> No.66675008

>>66674896
Retard

>> No.66675588

>>66674640
just use one pointer to a table of function pointers
embedding the function pointers in the struct itself is only necessary if you plan on rebinding methods.

>> No.66675654

>>66674578
Assembly. Learn that and you'll see how fucking inefficient the code most people write is.
It also gives you a perspective on which features and concepts in high-level languages are actually useful and which ones are actually just unnecessary crud that is more trouble than it's worth.

Also, the most Jewish programming language is (((Common Lisp)))

>> No.66675704
File: 21 KB, 624x129, Screen Shot 2018-07-09 at 6.12.40 p.m..png [View same] [iqdb] [saucenao] [google] [report]
66675704

"C_Cpp.default.intelliSenseMode": "clang-x64",
"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.clang_format_style": "Google",


VS Code
Why linter no linting?

>> No.66675749

public class MyProgram {

private class SomethingString {
}

public static void main(String[] args) {
SomethingString str = new SomethingString();
}
}

On This case SomethingString must always be a static class?

>> No.66675821

Exercise 3-1 of the K&R book asks to write a function that copies string s into string t, while converting any instances of "\n", "\t", "\a", etc. into their single char (non-visible) representation. In any case, am I allowed to increment i in the switch? Given that s == '\\' HAS to be evaluated first, I would think that this is allowed. However I'm not sure.
void escape_reverse(char s[], char t[]) {
int i = 0, j, g;
for (i = 0, j = 0; s[i] != '\0'; ++i) {
switch ( (s[i++] == '\\') ? s[i] : -1) {
case 'n':
t[j++] = '\n';
break;
case 't':
t[j++] = '\t';
break;
case 'v':
t[j++] = '\v';
break;
case 'b':
t[j++] = '\b';
break;
case 'r':
t[j++] = '\r';
break;
case 'f':
t[j++] = '\f';
break;
case 'a':
t[j++] = '\a';
break;
default:
t[j++] = s[i];
break;
}

}
t[j] = '\0';
}

>> No.66675833
File: 91 KB, 1200x886, DP8HAPGUMAAQV4F.jpg [View same] [iqdb] [saucenao] [google] [report]
66675833

>what are you working on, /g/?
Killing myself.

Whenever I have to deal with HTML, JS and CSS I really miss the time I used to write Delphi/Borland C++ for a living.

>> No.66675839

>>66675821
As a side note, the function works on my machine, however I did not know if this was because I got lucky in how the compiler decided to handle the conditional expression.

>> No.66675901

>can't handle rust
go back to python you pussy, you are not fit to be programmer. Klabnik was right, only 1% of people like me are fit to program and we prefer rust naturally. Enjoy your fucking buffer overflows shitters.

>> No.66675904

>>66674533
Been messing around with the dynamic memory subsystem of my pet OS.
The biggest changes are:
1. The page allocator now allocates its own memory
2. I introduced a fine-grained userland allocator (based on liballoc), which allows faster and more granular memory allocation (i. e. Does not allocate 4K pages for every little malloc).
There is a small caveat to point 2, that is, the kernel still uses the page-level allocator internally, and indeed some syscalls return coarse-allocated memory areas, which must be handled by *_coarse primitives, bypassing liballoc.

>> No.66675941

>>66674578
probably javascript. its the language that the web is written in, after all! that's what my intro to programming professor said in first semester. :) :) :)

>> No.66675952

>>66674640
void foo(struct foo_data *d, struct foo_ops *f)
{
f->bar(d, f);
}

foo_data contains only the raw data (fields).
foo_ops are he function pointers (methods).
This is even more powerful than C++ or Java style polymorphism because you can easily swap in a different set of behaviors whenever you want (effectively changing the 'base class').

>> No.66676073

>>66675904
Damn that sounds cool. Godspeed.

>> No.66676089
File: 50 KB, 680x400, 1422546788638.jpg [View same] [iqdb] [saucenao] [google] [report]
66676089

How do you write pointers, /dpt/?
A) int *foo/int *const foo
B) int* foo/int* const foo
C) int * foo/int * const foo

I use A, but I see B pretty regularly, too.

>>66674651
Kotlin and groovy use a syntax very similar to that
"There are ${count(var)} keys:
${printlist(keys)}"

>> No.66676092

Why are Java programmers generally so dense?

>> No.66676100

>>66676073
Thank you!

>> No.66676105

>>66675901
I prefer Idris, Haskell in a pinch

>> No.66676119

>>66676089
const T *v in C and T const* v in C++.

>> No.66676135

>>66676089
I keep seeing you around here lately. You're pretty good. Keep it up and you may find an invite to the /dpt/ private channel in your inbox.

>> No.66676192

>>66676089
I use B since it's clearer that int is a pointer, the type doesn't get mixed with the id.

>> No.66676309
File: 57 KB, 500x694, tumblr_p5ssfnGqBZ1vp4m0do1_500.jpg [View same] [iqdb] [saucenao] [google] [report]
66676309

>>66676135
>/dpt/ private channel
uwu

>>66675821
Generally speaking, in C, if it compiles it's allowed. What you're doing isn't dependent on any compiler-specific extensions to the language

>>66674640
It's pretty fucky, but sadly C was never really designed with polymorphism in mind. I kinda wish a compiler would come along that was willing to throw backwards/sideways compatibility to the wind for the sake of adding some features like that.

If it's a situation where you can get away with using generic types instead, and you're using GCC/a compiler with the GNU 11 extensions, you can use _Generic() and/or typeof().

>> No.66676320

>>66676089
foo: *mut T/foo: *const T

>> No.66676335 [DELETED] 

>>66676309
>>/dpt/ private channel
>uwu
I feel bad now, there's no such channel (well, there might be a discord but it's bound to be garbage). I just wanted to cheer you up anon. Also
>uwu
What's this?

>> No.66676344

>>66676089
var dickp: ^TDick;

>> No.66676370
File: 305 KB, 817x880, 1528470160361.jpg [View same] [iqdb] [saucenao] [google] [report]
66676370

>>66676335
>I feel bad now, there's no such channel
well what the fuck, let's make one

>>66676320
people say rust's syntax is shit but this level of specificity and general lack of edge cases in its type system is actually pretty nice

>> No.66676394

>>66676370
Have you tried Idris or Agda?

>> No.66676426

>>66676370
How many images do you have of that character?

>> No.66676477

>>66676089
B, because it's a pointer to an int. While I will accept & maintain code written by A's, C is completely unacceptable and there's no logical reason to declare pointers like that

>> No.66676558

>>66674533
R8 >>66676508

for each road going towards destination:
if road_allows_big_rig:
push road to map
set map[road][length] = road.length
set map[road][delta_towards] =
squareRoot((destination.X - road.X)^2 + (destination.Y - road.Y)^2)

for each road in map:
for each other_road going towards destination,
where (other_road.coordinates / ((pi*(road.length/2))^2 * scale) as circle):
if road.coordinates in circle:
if other_road.delta_towards < road.delta_towards:
map[road][roads_in_front] += other_road;
else if other_road.delta_towards > road.delta_towards:
map[road][roads_behind] += other_road;
if destination in circle:
map[other_road][leads_to_destination] = true;

for each road in map where roads_behind == null, road_counter, route_counter:
start:
if (road.leads_to_destination):
set routes[route_counter][path] += destination;
set routes[route_counter][distance] =
{
distance = 0;
for each road in routes[route_counter]:
distance += routes[route_counter][road].length
return distance;
}
route_counter++;
road_counter = 0;
continue;
else if road_counter == 0:
set routes[route_counter][path] = road;
else:
shortest_road;
for front_road of road[roads_in_front]:
if road[roads_in_front][front_road].index == 0:
shortest_road = front_road;
else:
if shortest_road > roads_in_front:
shortest_road = front_road;
routes[route_counter][path] += shortest_road;
road = shortest_road;
road_counter++;
goto start;

>> No.66676582

>>66676089
B

>> No.66676674

I've finally (mostly) completed How to Design Programs. Neat book: I think it's perfect for someone computer-savvy who took maybe one programming class in their life. Probably not ideal for a true beginner for self-learning, and it's a lot less "magical" than what I perceived from SICP (although, it builds up to SICP's stuff by eventually incorporating a lot of math and even teaching you how to make a basic interpreter). I do like that it makes clear the different types of recursion, but accumulators probably shouldn't be such a late (and apparently optional) topic, considering their usefulness.

Anyway, off to learn more Racket.

>> No.66676683

>>66674557
mental illnes

>> No.66676785

>>66676674
How is Racket as a Scheme?

>> No.66676843

Any Angular webfags in here? What's your preferred syntax for subscribing to an Observable?
A)
this.service.Get().subscribe(ret => {
this.value = ret;
}, err => {
console.log(err);
}, () => {
this.SortValues();
});

B)
this.service.Get().subscribe(
ret => {
this.value = ret;
},
err => {
console.log(err);
},
() => {
this.SortValues();
});

C)
// Other?[code][/code]

>> No.66676872

>>66676843
>>>/g/wdg
no one wants you here

>> No.66676879
File: 48 KB, 738x420, DevMT.png [View same] [iqdb] [saucenao] [google] [report]
66676879

>>66674533
Finished my vim theme "DevMT" inspired by psychadelic art. Pls rate and suggest improvements.

>> No.66676957

>>66676785
I'm not too certain, and I'm definitely not qualified to give a great answer. But from what I've gathered, it hews more towards the R6RS side of things (indeed, one of the members of the PLT group had input on R6RS and was highly positive to it). So, between that and just taking a look at what's in its standard library/modules, it's not small and certainly doesn't try to be.

Racket does a couple of "nonstandard" things: lists are immutable by default, whereas they're mutable in Scheme. And, as mentioned, it incorporates a lot of extra stuff: an interesting one is pattern matching.

Performance-wise, Racket is pretty good, being closely behind Chez/Gambit. And personally, I think Racket's documentation is pretty great.

The biggest thing is that, if you create Racket programs with the Racket mindset, it can be a little awkward going to a a more implementation-agnostic Scheme style. You can write R6RS Scheme (by using "#lang r6rs" and then crafting the file as you would normally), but Racket otherwise doesn't *force* you to do things the Scheme way, for better or worse.

>> No.66676998

>>66676879
itrs shit at least make parens different color for constraxcst

>> No.66677014
File: 312 KB, 1024x1139, 1524662845386.jpg [View same] [iqdb] [saucenao] [google] [report]
66677014

>>66676426
it is a number with 3 digits and I'm not willing to give any more detail than that

>>66676394
I think the argument for the third option is that you can say int x, or you can say int const x but you can't say intx or int constx, so having the * directly before the variable name without a space is inconsistent with other type qualifiers. Seems frivolous, but it kinda makes sense.

>>66676843
Not a webfag but A looks cleaner to me.

>> No.66677033
File: 30 KB, 640x480, dailyprog-teletext-blink.gif [View same] [iqdb] [saucenao] [google] [report]
66677033

>>66674533

>> No.66677048
File: 41 KB, 475x731, 1528411958038.jpg [View same] [iqdb] [saucenao] [google] [report]
66677048

>>66672311
I went and did life stuff but that isn't auto tune, that's her real voice, haven't you heard good live singers? Lana Del Rey 10 years ago sounded like she was auto tuning during live concerts, here's proof.
https://www.youtube.com/watch?v=ACSTDof8QL0

She has an amazing voice.

>> No.66677062

>>66676998
>itrs
>contraxcst
what is that?

>> No.66677095

>>66677062
I mean goof on the guy for his typos, but he made a good point. Why the shit are the parens the same colour as everything else?

>> No.66677114

>>66677095
> Why the shit are the parens the same colour as everything else?
because i don't know how to change that in vim?

>> No.66677116

If I'm scraping a website, and the website doesn't want me to do that, how can I keep it from knowing I'm a script?

>> No.66677124

>>66677116
just do shit very slowly

>> No.66677132

>>66677114
https://www.google.ca/search?q=change+vim+paren+colors

>> No.66677147

>>66677116
use chrome's user agent

>> No.66677161

>>66677124
I had been using a two minute delay and I got caught, guess I'll increase it further.

>>66677147
I was using a Firefox one, which I assume has the same effect.

>> No.66677220
File: 80 KB, 848x586, rec-fft-clrs-pseudocode.jpg [View same] [iqdb] [saucenao] [google] [report]
66677220

trying to think how to do lines 10-13 with linked lists and no iterators.

>> No.66677245

>>66677161
keep it at 2 minutes and have it do other random stuff while waiting that a human would do.

>> No.66677293

>>66677220
You used this font on purpose?

>> No.66677326

>>66677220
Is this homework?

>> No.66677327

>>66677293
No, it was an accident.

>> No.66677337

>>66677326
hobby/free time

>> No.66677349

I'm studying for the AWS exams so I can make more money. Is there a better use of my time or? I plan to do the microsoft certs afterwards.

>> No.66677355
File: 393 KB, 1280x720, Screenshot_20180708-121258.jpg [View same] [iqdb] [saucenao] [google] [report]
66677355

>> No.66677388

>>66677245
Could you give an example or maybe point me in the direction of a resource that could teach me how to make a script act like that? Maybe just like, open random links in random intervals?

>> No.66677399

>>66677349
AWS certs are great.
Making 140k in Toronto because of AWS.

It's no SF Bay, but mortgage isn't nearly as fucked either.

>> No.66677405

>>66677388
Not the same anon, but if you're using Selenium, you can just create functions to "do random shit". Have a function that will scroll around, another that might open a new tab and click on things. It wouldn't be too hard, just try to mimic what a normal human would do.

>> No.66677423

>>66677405
I was just using Python on its own, but I'll look into Selenium, seems like what I need. Thank you!

>> No.66677435

>>66677423
Of course. There are also wrappers(?) (might be libraries) for a couple of other languages like C# and Java if you're more familiar with those.

>> No.66677441
File: 16 KB, 265x90, riscv-logo.png [View same] [iqdb] [saucenao] [google] [report]
66677441

Has anyone here tried to program in RISC-V assembly? If you have, what do you like/dislike?

>> No.66677456
File: 87 KB, 900x1200, nock.jpg [View same] [iqdb] [saucenao] [google] [report]
66677456

>>66674578

>> No.66677472
File: 582 KB, 1280x720, C_dpt.jpg [View same] [iqdb] [saucenao] [google] [report]
66677472

>> No.66677483

>>66677472
I hope one day Dennis Ritchie rises from the grave and kills Bjarne Stroustrop

>> No.66677510

>>66674581
c = 2000 / max(width, height, 2000)
(new_width, new_height) = (round(c*width), round(c*height))

>> No.66677515

>>66674640
http://libcello.org/

>> No.66677535

>>66674651
It sounds like you want a template engine like https://github.com/spullara/mustache.java.

>> No.66677538

>>66674648
>list of numbers within the range 1-20
Convert this into a map of value => count
[1,1,3,5,5,5,5,1,2,1]
becomes
{1: 4, 2: 1, 3: 1, 5: 4}
This will speedup operating on the input; not sure about the rest of the problem tho

>> No.66677550

>>66675833
>Delphi
Web still can't really compete with Delphi, Access and VB.

>> No.66677563

>>66677510
Hmm yeah but I've just been mostly wondering if scaling down that way while keeping the ratio makes sense in the context of keeping the proportions but I guess it does.

>> No.66677564

>>66675901
>Klabnik was right, only 1% of people like me are fit to program and we prefer rust naturally.
I doubt a literal Communist would say it.

>> No.66677584

>>66676674
>I've finally (mostly) completed How to Design Programs.
Fuck yeah, my shilling has paid off.

>> No.66677609

>>66677563
The code scales images down to no more than 2000x2000 and doesn't touch smaller images.

>> No.66677630

>>66674581
lacks seam carving

>> No.66677643

>>66677630
You don't need seam carving for proportionate scaling.

>> No.66677667
File: 127 KB, 1232x582, DevMT2.png [View same] [iqdb] [saucenao] [google] [report]
66677667

>>66677388
tried all that but no difference.

Here's the vim file and a test file just to demonstrate.

>> No.66677934

how old can a computer be while it is safe to assume that opengl 2.0+ works on it?

>> No.66677995

>>66677934
probably anything in the last decade

>> No.66678390

>>66677934
Nvidia cards should support it since GeForce 6, which is from 2004.

>> No.66678407

>>66675941
barfs

>> No.66678421

>>66678390
what about integrated video cards? I just want to show a 2d picture and manipulate its colors (gamma, contrast, rotate, and other effects).
actually I'm ok with using legacy opengl like 1.3 but I don't know how to do these effects without shaders, and I can't find tutorials about it.

>> No.66678504

>>66678421
I bought a mid-range laptop that had it in 2005

>> No.66678642
File: 116 KB, 699x781, 1519091361645.png [View same] [iqdb] [saucenao] [google] [report]
66678642

How do i get started with encryption? what are some good recommended books, I'd rather learn how to do it in C but im flexible

>> No.66678897

Reading SICP right now (on 1.17 Square Roots with Newtons Method) and was wondering
1: Is there a better scheme interpreter on Linux then MIT-Scheme
and
2: What can I use Scheme for in everyday life?

>> No.66678906

template <typename C, C ...chars>
constexpr void operator"" x() {
// Any compile time computation you want on chars
}

int main() {
"asdf"x;
}


I found a way to get compile-time known strings in C++ in an acceptable way.
Might be able to use this to parse format strings at compile time to get both type safety and user defined type support.

>> No.66678928

Rate my code please, no trolls only constructive criticism please! ^W^

if (tits == true){
showtits;
else{
gTFO;}}

>> No.66678960

>>66674557
>Complaining about anime on a Turkish underwater basket weaving forum
Why?

>> No.66679063

>>66674627
PNG is a lossless compression already, further compression would be lossy.

>> No.66679075

>>66674533
learning regular expressions in python. Why didn't I learn this before?

>> No.66679085

Alright so I get the point of scoping things like this
somefunc (params)
{
//Some irrelevant bullshit
{
//Scoped bullshit
|
|

But why do I keep finding people shoving huge shunts of bullshit into them?
Just write it into a separate fucking function, right? Am I missing something?
Is this some weird one-time-only inline bullshit?
If its inline just put it in the regular fucking function!

>> No.66679096

>>66679085
putting it in an extra function has overhead

>> No.66679116

>>66679096
Yeah but unless theres a real scoping value to it, why fucking bother?
Its still on the stack, and freeing little bits of shit off the stack in the tiny time your function runs on the stack seems so utterly irrelevant

If it were full of huge allocations sure, again, I see that
But they never are
They're always these tiny 4 line scoped functions that do one whole operation with tiny allocations
FOR WHY

>> No.66679130

Fast is more important than simplicity.
Simple is better over correctness.

>> No.66679143

>>66679116
i dont know whos code you're looking at, I wouldn't bother making a new scope for something that had none of its own variables but maybe they're just doing it out of their own idea of good practise

>> No.66679145
File: 10 KB, 240x214, man.jpg [View same] [iqdb] [saucenao] [google] [report]
66679145

>>66679130
what

>> No.66679156

>>66674648
Set your master list, include k as a list by itself loop 1 to k with inner loops for adding lists that allow k/loopvar possible elements, you can do the rest

>> No.66679161

>>66679130
I'm pretty sure correctness is the most important thing, otherwise what is the point of having a program that doesn't do what it is supposed to do? If a program is fast but doesn't do what it should, it is useless.

>> No.66679182

Help guys im interviewing to go to flatiron school and my portfolio is just the javascript for killwhitey,today

>> No.66679184

Alright you chucklefucks, I got memed into learning me some lisp
1. Should I read sicp first?
2. Clojure or clisp?
3. If clisp what book? Let over lambda seems interesting, but definitely not a beginner book?

>> No.66679192

>>66679184
Sicp
Elisp or clisp (one is actually used)
Ur mum

>> No.66679238

why does this segfault? more importantly, why does this compile?

#include <iostream>
using namespace std;

int main() {
cout << "asdf" << endl;
main();
}

>> No.66679281

I'm going through cs50, it's pretty hard.

The hardest part so far though is the limitations of C, and how it's just..Not very friendly as a language.
I kinda wish they'd just start with python.

>> No.66679309

>>66679238
That causes an stack overflow, that's why it segfaults.
It compiles because it's valid C++.

>> No.66679314

>>66679238
Infinite recursion
It's perfectly valid syntax

>> No.66679334

>>66677441
I have not however it is on my todo list. I think I'm going to try writing an assembler while trying to get more acquainted with it.

>> No.66679389

In Python, how do I sort part of a 2D list, but not all of it? I know how to sort the whole list with itemgetter, but I can't move the last row for the purposes of the program I'm writing

>> No.66679435

>>66679389
Couldn't you save the last row individually, remove it from the 2D list, sort the now modified list, and the re-add the last row?

>> No.66679444

>>66679281
>I kinda wish they'd just start with python.
toy language

>>66679389
slice it

>> No.66679508

>>66679444
Okay, so I tried slicing, code here

list2 = sorted(list2[0:9][0:4], key=itemgetter(4))
for row in range(0,11):
for col in range(0,5):
if(col==0):
print('%-15s' % (list2[row][col]), end='')
elif(col==4):
print(format(list2[row][col], '20.2f'))
else:
print(format(list2[row][col], '15.0f'), end='')

And it printed the first few rows properly, but gave an index out of range error afterwards. So then I have to ask, did slicing it like this remove that last row, and if so, how do I retain it?

>> No.66679533

>>66679238
>using namespace std;
Gross. Horrible practice. Commit suicide.

>> No.66679564

>>66679533
suck a dick, fag

>> No.66679582

>>66679184
Depends on the Lisp you want to learn. The four major Lisps of relevance are Common Lisp (many implementations), Clojure, Scheme (many implementations, including Racket, which by default isn't strictly a Scheme), and Emacs Lisp.

1) SICP is semi-generic enough to be used with any of the four Lisps listed above, but you'll save yourself a lot of trouble by using a Scheme implementation. That said, it's great for learning programming and thinking: as with How to Design Programs, the whole point of choosing Scheme was to not focus on teaching the language. As such, there are lots of neat tricks in Scheme that go unexplored.
tl;dr: yes if you want to fall for the SICP meme, no if your real goal is to learn a Lisp and you already kinda know how to program
2) Clojure.
3) Practical Common Lisp.

>> No.66679640

>>66679582
>and you already kinda know how to program
Yeah, thats why I'm on the fence, I've been on and off programming for years now (never created anything complex tho desu) and people always say that it's a beginners book

>> No.66680028

>>66679640
I mean, it *is* (kinda) a beginner's book, but it's arguably a beginner's book to computer science in general, not strictly programming and not strictly the given language (Scheme). SICP is good in that it's readable to someone at any skill level -- but it's like a reference manual to the basics of computer science as a whole.

As a springboard to future programming/CS activities, it's mediocre.

>> No.66680105

I have a JPG file which I suspect has been "XOR encrypted" with an 8-character password. I wrote this to "decrypt" it, but it stops at 374 bytes (the original file is several kilobytes long). What am I doing wrong?
#include <stdio.h>
int main(int argc, char** argv){
char content[8], password[8], header[8] = {0xFF, 0xD8, 0xFF, 0xE1, 0x00, 0x16, 0x45, 0x78};
int j,i=0;
FILE *ff = fopen(argv[1],"r");
FILE *oo = fopen(argv[2],"w");
if (ff){
fread(content,1,8,ff);
for(i=0;i<=7;i++) password[i]=header[i] ^ content[i];
fwrite(header, 1, 8, oo);
do{
i=fread(content,1,8,ff);
for(j=0;j<i;j++) content[j]=content[j] ^ password[j];
fwrite(content, 1, i, oo);
}while(!feof(ff));
fclose(ff);
};
fclose(oo);
return 0;
}

>> No.66680238
File: 31 KB, 128x128, 1529495957655.png [View same] [iqdb] [saucenao] [google] [report]
66680238

Is there any reason to use Integer class instead of regular int in Java? From what I read it's so that you could easily use the x.toString() function, but is there really no other benefits beside that? because if it's just changing the integer to string, there are many other ways to do that.

>> No.66680263

>>66680238
Automatic un/boxing makes it redundant in most cases

>> No.66680278

>>66680238
Integer is passed by reference and int is passed by copy
I think generic types need the Integers insted of ints (ref types in general) for some obscure java reason

>> No.66680318

>>66678906
Fuck. Turns out it's just a GNU extension.

>> No.66680486
File: 927 KB, 1920x1080, lowpolidog.jpg [View same] [iqdb] [saucenao] [google] [report]
66680486

What argument can I use in a VSCode Task to save the built .exe in the ${fileDirname} instead of the root folder?
pls help

>> No.66680606

>>66680238
Generics.
Only Integer can be used as a type parameter, not int.

>> No.66680613

>>66680318
No it isn't, it's a C++11 feature.
https://en.cppreference.com/w/cpp/language/user_literal

>> No.66680652

>>66680613
No, templated user defined string literals aren't.
keyword: templated

>> No.66680660

>>66680652
>If the literal operator is a template, it must have an empty parameter list and can have only one template parameter, which must be a non-type template parameter pack with element type char

>> No.66680739

Why do I get this when I try to run my code with visual studio code (linux) ? I've tried changing the folder permissions, but that didn't work. I guess I could just run VS code as sudo, but that sounds like a really bad idea, right?

>/home/USER/Documents/hello_world.py
bash: /home/USER/Documents/hello_world.py: Permission denied

>> No.66680768

>>66680739
chmod u+x hello_world.py

>> No.66680783
File: 122 KB, 1100x808, Stalin's son Yakov Dzhugashvili captured by the Germans, 1941.jpg [View same] [iqdb] [saucenao] [google] [report]
66680783

>>66674533
>what are you working on, /g/?
A fucking demo.

As a programmer how do I avoid being forced into client-facing roles?

It used to be that I'd go with the team that presented our work or met with clients/partners/stakeholders just in case there were some technical issues, we had to liaison with techs on their side, or on the off chance they needed an opinion from someone who actually know how the systems work behind the scenes. A few times due to the 'proper' people being unavailable I ended up being the one to actually present part or all of the system and, long story short, the people in charge decided I'm really good at it and clients like me so I should do it more often.

The only problem is I hate interacting with clients and it makes me miserable, I'd much rather just stick to development, but I'm an unassertive fuck and when the manager goes "oh, it will only be an hour or two, just re-use the last presentation, [Big Name Stakeholder] loved it last month!" I end up agreeing. And he's my boss besides so I can't really fight back too hard, I enjoy my job in all its other aspects.

>> No.66680820

>>66680660
Does not apply to string literals.
Try it yourself in clang.

>> No.66680990
File: 12 KB, 480x360, hqdefault.jpg [View same] [iqdb] [saucenao] [google] [report]
66680990

Does anyone here know how to add a .py module to Python in VS Studio Community 2017?

Is there a better alternative to VS Studio? How is it better?

Please answer. Thank you.

>> No.66680999

>>66680990
>VS Studio Community

>> No.66681024

Im in ubuntu, when i right click an icon in the launcher i have multiple launch options
(firefox: open a new window, open a new private window)
(gEdit: open a new window, open a new document)
Im assuming that each option has a different runtime arg.

What is this called, i want to do it for my exe/ my .desktop and dont even know what to google.

>> No.66681032

>>66680999
I meant Microsoft Visual Studio Community 2017.

>> No.66681050

>>66681024
desktop [action]
i just needed to open firefox.desktop.
i dont need u fucks.

>> No.66681070

>>66674533
I need to run selenium and control some of the webdriver actions through WPF/winforms. But while the browser is running it hangs the control window. What am I missing? Do I need to run it in a separate thread to make the winform work?

>> No.66681124
File: 52 KB, 320x240, lisp.jpg [View same] [iqdb] [saucenao] [google] [report]
66681124

>>66674533
Can someone please recommend me a language in which EVERYTHING has the same syntax?
Something like Lisp but without the annoying parenthesis

>> No.66681163

>>66681124
Haskell

>> No.66681183

>>66681124
Scheme

>> No.66681201

>>66681124
This one: >>66681163
Haskell is basically a more a modern Lisp. If ML was described as Lisp with Types, then Haskell can be described as Lisp on Steroids or something, I don't really care.

>> No.66681215

>>66677033
Who are the most senior members of your clique? I want to make sure not to make them look stupid, and to laugh at all their jokess

>> No.66681289

>>66681201
>Haskell is basically a more a modern Lisp. If ML was described as Lisp with Types, then Haskell can be described as Lisp on Steroids or something,

wtf? Lisp is distinct from Haskell or ML in purpose, philosophy and reality.

>> No.66681300

>>66677033
Who the fuck are those people?

>> No.66681302

>>66681201
Haskell has little to do with Lisp, it's actually based on Lambda calculus, while Lisp just borrowed the notation for anonymous functions.

>> No.66681322
File: 86 KB, 628x628, 12741891.jpg [View same] [iqdb] [saucenao] [google] [report]
66681322

I really feel lost with learning data science. I feel like I am retaining the knowledge but when I get to programming I can't decide what a meaningful use of a dataset could be. E.g. the house price index of a country.

Does anyone have a good first project I can jump into and just focus on for a few days?

>> No.66681381

>>66681322
what are some influential factors behind house price

>> No.66681429

>>66681302
The ignorance in this post is astounding.

Haskell is a collection of several typed lambda calculi.

Lisp is, at its core, a very elegant implementation of the untyped lambda calculus.

Please never spread your ignorance again, holy shit.

>> No.66681451

>>66680990
Just use VS Code or PyCharm Community. Visual Studio isn't a good python anything.

>> No.66681519
File: 69 KB, 850x479, lisp_lc.png [View same] [iqdb] [saucenao] [google] [report]
66681519

>>66681429
> Lisp is [an] implementation of the untyped lambda calculus.
Wrong, but you don't have to take my word for it, see what McCarthy himself has to say about it.
> ignorance
> ignorance
At least I've spent some time reading on the history of the language, you're just repeating the old memes McCarthy himself warned against.

>> No.66681536

Is Perl/Perl 6 worth trying?

>> No.66681577

>>66681322
make cities:skylines 2 but skip the graphical parts

>> No.66681587

>>66681429
holy shit btfo extreme edition 2018
>>66681519
>airhorn.flv

>> No.66681599

>>66681429
I would seriously consider deleting your account after >>66681519

>> No.66681618

lambda calculus is trash.

>> No.66681627

>>66681618
delete this post then delete you're account

>> No.66681634
File: 84 KB, 800x800, brainlet03.png [View same] [iqdb] [saucenao] [google] [report]
66681634

>>66681618
>wot de fuck i cant do it, it must bee trash

>> No.66681637
File: 82 KB, 992x744, qOJAKMb.jpg [View same] [iqdb] [saucenao] [google] [report]
66681637

>>66681429
>>66681519
REKT

>> No.66681638

>>66681618
better than turing machine t b h

>> No.66681909

>>66681536
no, useless now that modern langs are a thing

>> No.66681935 [DELETED] 

/biz/ here. Everything is red today so I thought i'd ask.
What are the best books to learn how to become a full stack JS programmer?

>> No.66681967

>>66681638
No, turing machines are unironically superior.

>> No.66682004

how can he ever recover from this >>66681429
>Lisp is, at its core, a very elegant implementation of the untyped lambda calculus.
>>66681519
>Wrong, but you don't have to take my word for it, see what McCarthy himself has to say about it.

>> No.66682018

>>66674557

anime website

>> No.66682039
File: 50 KB, 383x453, 30 rocny energetak.jpg [View same] [iqdb] [saucenao] [google] [report]
66682039

>>66674557
gee, who could be behind this post

>> No.66682063
File: 102 KB, 1280x936, Camelia.png [View same] [iqdb] [saucenao] [google] [report]
66682063

>>66681536
>current year
>using any version of perl
shiggy

>> No.66682076

>>66682063
I never understood why they ditched the based stylish camel for this retarded autistic logo.

>> No.66682162
File: 48 KB, 600x400, kitty-721.jpg [View same] [iqdb] [saucenao] [google] [report]
66682162

>>66682076
>I want a logo for Perl 6 that is:

> Fun
> Cool
> Cute
> Named
> Lively
> Punable
> Personal
> Concrete
> Symmetric
> Asymmetric
> Attractive
> Relational
> Metamorphic
> Decolorizable
> Shrinkable to textual icon
> Shrinkable to graphical icon

>In addition, you can extend just about anything by attaching "P6" wings to it. I also take it as a given that we want to discourage misogyny in our community. You of the masculine persuasion should consider it an opportunity to show off your sensitive side. :)
>Hence, Camelia.
>Larry

https://github.com/perl6/mu/blob/master/misc/camelia.txt

>> No.66682185

>>66682162
programming langs should take note from debian and not spend more than 5 minutes on their logo.
It's so simple but everyone knows it instantly.

>> No.66682197

>>66682185
Only white man can make good logo, not that niggerlicious flat design generic shit

>> No.66682205

>>66682197
get back to work terry.

>> No.66682214

Daily reminder that __auto_type, statement expressions and local functions make gnuc acceptable lisp.

>> No.66682225

>>66682214
that's a really low bar for lisp desu
and i honestly thought it couldn't get any lower.

>> No.66682233

>>66682225
XML makes Java acceptable Lisp.

>> No.66682240

>>66681519
>although if someone had started out with that intention, he might have ended up with something like LISP.
Just because he didn't intend to make an implementation of untyped lambda calculus, doesn't mean it isn't.

>> No.66682243

>>66682214
statement expressions are at once a pleasant addition and also an indictment of standard C's inexpressiveness

the extra parens are gay just let me do

>> No.66682310

>>66682240
That's a pointless distinction, you might as well cal Python, PHP, C++11 and 90% of modern languages "an implementation of untyped LC" since all these languages have first-class functions and closures. There's nothing special about Lisp in its relationship to LC.

>> No.66682321

>>66682310
shh you'll rile them out

>> No.66682342

>>66681163
>>66681183
Haskell doesn't really seem like having the same syntax for everything, and Scheme still has the annoying parenthesis

>> No.66682359
File: 14 KB, 893x128, this means simon peyton jones hates you.png [View same] [iqdb] [saucenao] [google] [report]
66682359

Anyone know why my Stack gives me these messed up chars in its output?

>> No.66682360

>>66682342
what exactly do you mean by "same syntax for everything"?

>> No.66682367
File: 36 KB, 640x640, 1507714189582.jpg [View same] [iqdb] [saucenao] [google] [report]
66682367

What language should I learn in my summer break? One that's fairly easy and has fairly good support
The only thing I know is how to write Pong in Visual Basic

>> No.66682373

>>66682359
Might be character encoding?

>> No.66682433

>>66682373
Yeah that sounds very possible. Gonna check it out now

>> No.66682454
File: 576 KB, 1366x617, hmm.png [View same] [iqdb] [saucenao] [google] [report]
66682454

what kind of fuckwad doesn't use monospace for code?

>> No.66682463

>>66682454
Go programmers I'd assume

>> No.66682466

>>66682454
i've watched a talk where one guy used the indie movie title font for code.

>> No.66682468

>>66682463
Rob Pike BTFO

>> No.66682481

>>66682463
that's c++

>> No.66682482

>>66682367
>pic
Why does he have a Turk flag?

>> No.66682527
File: 801 KB, 275x275, 1519898772148.gif [View same] [iqdb] [saucenao] [google] [report]
66682527

>build program with debug profile, runs fine
>run with a debugger attached, segfaults immediately

>> No.66682531

>>66682367
C# is kiddie tier easy/sexy and has excellent support on windows

>> No.66682535

>>66676089

I always use A. When I use B and want to declare multiple pointers,
int* a, *b doesn't look pretty at all

>> No.66682551

I'm starting a computer science degree in about 2 months, what should I make sure I know before I start so I don't seem like a retard?

>> No.66682553

>>66676089
int const *const ptr;

>> No.66682556

LISP is the typical Jew language. It's used by academics to demonstrate their abstract bullshite theories and never to accomplish anything in the real word.

C is the Aryan man's language. It was born out of necessity for the purpose of developing the Unix operating system. It's a very pragmatic language.

>> No.66682560
File: 28 KB, 742x418, 1505016811764.png [View same] [iqdb] [saucenao] [google] [report]
66682560

>>66682482
this is the turkish century, whitey

>> No.66682561

>>66682360
For example in Python some stuff is like:
>arg1 fun arg2
some stuff is like:
>fun(arg1,arg2,arg3,etc)
some stuff is like:
>fun arg1:
> arg2
> arg3
> arg4
> etc
some stuff is like:
>arg1.fun(arg2,arg3,arg4,etc)
and many others...

In Lisp *everything* is like:
>(fun arg1 arg2 arg3 etc)

>> No.66682571

Is there any easy way to play an mp3 file in a plain C program?

>why use C
It's the only language I'm comfortable with right now

>> No.66682589

>>66682561
in haskell everything is like fun arg1 arg2 arg3 etc

>> No.66682590

>>66682561
block declarations have their use though?
Why are you against features?

>> No.66682594
File: 98 KB, 440x615, 1531226180172.jpg [View same] [iqdb] [saucenao] [google] [report]
66682594

>>66682551
most people you'll meet will be utter retards who joined CS for various reasons other than real passion for the subject
just keep to yourself and try not to act smart
if you want to get ahead, see the /sci/ sticky http://4chan-science.wikia.com/wiki/Computer_Science_and_Engineering
alternatively, https://teachyourselfcs.com is shorter and more to the point
(you won't get through much in just 2 months anyway)

>> No.66682614
File: 1.08 MB, 800x600, 1502597744798.png [View same] [iqdb] [saucenao] [google] [report]
66682614

>>66682556
TAKE THAT BACK
TAKE IT BACK TAKE IT BACK TAKE IT BACK

APOLOGISE

>> No.66682625

>>66682614
>shut it down

>> No.66682712
File: 323 KB, 646x595, 1530854038246.png [View same] [iqdb] [saucenao] [google] [report]
66682712

ok i can add numbers together and stuff

how do i make a box to click that triggers a part of my code instead of this text game business

or a box to click that shows another box which is also clickable - when does the programming get to that?

>> No.66682715

Guys how do you match case on the replacement?

for example, in python:
re.sub('wot', 'replacement', 'wot da fuck')
# 'replacement da fuck'
# but
re.sub('wot', 'replacement', 'WOT da fuck', flags=2)
# 'replacement' instead of 'REPLACEMENT'


Help?

>> No.66682727

>>66682712
dumb frogposter

>> No.66682741

>>66682712
>ow do i make a box to click that triggers a part of my code instead of this text game business
>
>or a box to click that shows another box which is also clickable - when does the programming get to that?

You get to it whenever you want to, but trust me, you don't want to. GUI work is boring, painful, annoying, uninteresting and stupid.

>> No.66682751

>>66682571
Yes. Get a library that does it for you.

>> No.66682756

>>66682712
GUI library for your language.
or be a top lad and write your own wrapper for vulkan/DX + GUI lib.

>> No.66682806

>>66682756
>vulkan
epic meme

>> No.66682817

>>66682556
nice pasta

>> No.66682820

>>66682806
it's unironically fun and better than OGL in every way. Better learn it now because OGL is on its way out.

>> No.66682838

>>66682751
I tried using the fmod API but all the examples where in c++

>> No.66682851

>>66682715
run regex twice: once to extract the group and verify if text to be replaced is uppercase or not. Then run regex replace with substitution text having correct case based on first result. It can be even same regex pattern in both cases, just once as group matching, 2nd time as replace.

Not sure if regex has the feature you are asking for, as 'matching' case could mean handling different string lengths or TeXTlikeThiS.

>> No.66682858

>>66681519
>The author said something, so it must mean its correct!
Reading must be a very boring experience in your world. Even if McCarthy didn't INTENTIONALLY make Lisp as an implementation of the untyped lambda calculus, it's still an implementation of the untyped lambda calculus.

You are still an idiot (and doubly so, for thinking that someone saying that X isn't X really means it mustn't be X). I thought I'd told you to never post again?

>> No.66682863

>>66682820
I'm not suggesting ogl either
DirectX is the way to go
You've got direct2d, proper debugging with vs, amp interop, and better integration with the windows ecosystem
Only reason to do ogl imo is if you want web stuff. Other than that, crossplatform is not an argument - apple dropped it, and nobody takes literal communists seriously

>> No.66682897

>>66682863
>DirectX is the way to go
>3dpd
absolutely gross
You can actually use vulkan on linux without WINE, (which they just implement using vulkan anyway) and it offers much more control over your pipeline.

>> No.66682983

>>66682897
>You can actually use vulkan on linux
what part of "nobody takes literal communists seriously" don't you undersand?

>> No.66683014

>>66682983
w-we'll get there eventually!
0.10% +0.03%

>> No.66683032

>>66682863
>apple dropped it
They dropped support because they couldn't get Vulkan to play nice with Metal.

Their in house AMD shit is a clusterfuck.

>> No.66683051

>>66683032
which is sad considering how nice Swift turned out.
They were so close to a decent dev platform.

>> No.66683075

>>66682983
I like your effort trolling mate. Keep it up lad.

>> No.66683082

>>66682454
I don't, because I don't use a shit language where whitespace and alignment is important
the only reason to use monospace for code is if you're using a language like that, in which case you need to switch languages, or if you want to feel like H A C K E R M A N

>> No.66683108

>>66682858
>it doesn't matter the author explicitly said X, not-X is still true because I feel like it.
"Unintentional implementation of ULC" is a meaningless concept since 99% of the dynamically typed languages can be said to be one to the same extent Lisp is. There are no special relationship between Lisp and ULC.

>> No.66683119

>>66683075
>bashing your pitiful 0.0001% market share is "trolling"
le epic! XD

>> No.66683130

>>66683082
>a shit language where whitespace and alignment is important

>it's another "thing is bad because python"
Meanwhile in good langs, whitespace means you type less with much more readable code.

>> No.66683179

>>66682897
From my experience, Vulkan let you do more configuration than DirectX which is very useful, but I still prefer DX just because I know it better. Those differences and procedures between these two from initialization to creating shaders are marginal.

>> No.66683265

Should I learn directx/opengl/vulkan or whatever first or a engine like unity? I've been told that the second is better. I have a background as a webshit programmer.

>> No.66683277

>>66682863
>apple dropped it, and nobody takes literal communists seriously
Fucking Apple. You really can't trust commies, they're only interested in money.

>> No.66683283

>>66683265
1. do you just want to make gamu
2. do you want to actually get better at programming and make gamu eventually?
Learning a graphics API means you could have your own Unity but good, someday. It's all about if you want short term or long term investment.

>> No.66683339

>>66683265
Do you just want to experiment with making a game? Go with a game engine.
Do you want to make a game but also have some control over what's going on? Go with a framework.
Do you want to learn everything through and through while implementing everything yourself? Learn a graphics API.

>> No.66683395

>>66683265
Learn DirectX if you want to avoid the basedboy crowd

>> No.66683407

>>66683395
how much is MS paying you pajeet?

>> No.66683418

>>66683407
Fresh basedboy ass pcm

>> No.66683420

>>66682594
thanks man

>> No.66683428 [DELETED] 

>>66683395
Try spelling it as "seubeu" like the Germans do

>> No.66683448

>>66683428
I'm not avoiding the filter. I'm embracing it

>> No.66683451

>>66683108
Please never quote my posts again.

>> No.66683455 [DELETED] 

>>66683428
But then it'd be pronounced zoy-boy

>> No.66683473
File: 23 KB, 250x351, 250px-Victor_Tsoi_1986_cropped.jpg [View same] [iqdb] [saucenao] [google] [report]
66683473

>>66683455
>Zoy

>> No.66683492

>>66683428
rapaz-soja

>> No.66683500

>>66683455
ßoyboy?

>> No.66683510

>>66683500
ßeubeu

>> No.66683535

Fuck off to /int/ or /lit/, dumb krauts.

>> No.66683545 [DELETED] 

>>66683535
ßeubeu detected

>> No.66683548 [DELETED] 

coeвый мaльчик

>> No.66683619 [DELETED] 

>>66683535
băiat the soia detectat

>> No.66683642 [DELETED] 

>>66683535
rapaz-soja detectado

>> No.66683724
File: 13 KB, 404x223, Selection_006.png [View same] [iqdb] [saucenao] [google] [report]
66683724

I have a dataframe with lots of columns.
I'm plotting columns [0..N-1] against column N.
Most of them have no relation, and look like picrelated.
Which statistical tool can I use to discard them? I've never EVER understood the difference between correlation and covariance.

>> No.66683743 [DELETED] 

>>66683500
boyboy?

>> No.66683871

>>66683724
principal component analysis

>> No.66683924

>>66683871
Nono, I have to do this discarding before PCA.

>> No.66683938

>>66682367
Python is really easy and really widespread
But I personally prefer Lua.

>> No.66683952

>>66682359
Those look like ansi escape sequences, probably color codes, your terminal emulator probably can't handle them.

>> No.66683961

>>66683938
I found Lua to not be so suitable for scripts that you'd normally use Python for due to lack of proper error handling and exceptions. Much easier to get your script to shit itself during runtime without a way to recover.

>> No.66683962

>>66683924
Do any of your things have a lot of missing data?

>> No.66684004

>>66683962
nope. none of the sort. some columns, however, have low variance ( constant all the way, only 1-0, 0-3 range)

>> No.66684039

>>66684004
Well it depends on the data
Sex is only 0-1 but it's usually important

>> No.66684145

>>66684039
Still, if say I just want to plot the ones that don't look like a line, when i write:
for col in relevantcols:
if magic_function(dataframe.col, dataframe.N):
>do shit<


whatd be the magic function? havent had a proper statistics teacher and it's really bringing me down that I have to make up for that that in parallel with the tasks at hand.

>> No.66684182

>>66684145
i guess you could calculate correlation coefficients and remove the column if it's too close to 0

>> No.66684185

>>66683952
strange, getting similar result when different emulators. Something must be messed up. It's not super important but it does spam up the view a bit.

>> No.66684191

>>66684145
>>66684182
using lsfit(x,y).coef or something like that (I assume this is R)

>> No.66684240

>>66683724
Can you explain what your data is? The yellow line doesn't seem to be uncorrelated for example

>> No.66684255

Is msgpack a good choice for serialization when doing persistent local stuff that needs to be fast in Python? If not, what should I be using?

>> No.66684330

>>66684255
>fast in Python
You need to be writing assembly

>> No.66684402

/r/ing that CS101 webm about how CS is not a science nor is it about computers.

>> No.66684424

>>66675704
significant whitespace is degenerate
set up a formatter if you want to make your code kawaii

>> No.66684457 [DELETED] 

>>66684402
>/r/

Back to /r/eddit.

>> No.66684477

>>66684457
holy fucking shit imagine being this new

>> No.66684488

>>66684457
>what are the /r/ and /wsr/ boards?

>> No.66684495

>>66684424
>language could enforce 1 style only which would improve compilation speed among many other benefits
>nah lmao muh braces
>just install this extra bloat to fix it

The absolute state of software because autists refuse to change their baby duck ways.

>> No.66684529

>>66684457
Newfaggotry: The Post.

>> No.66684559
File: 2.42 MB, 320x240, 1498652923985.gif [View same] [iqdb] [saucenao] [google] [report]
66684559

>>66684402
here's the bloated gif

>> No.66684588
File: 93 KB, 400x400, 1528539121656.jpg [View same] [iqdb] [saucenao] [google] [report]
66684588

Learning web dev.
As soon as i think that JS clicked with me and i figured out the logic, i try and make something on my own and just stare at the editor not knowing where to start.
Shit's frustrating.
I'm determined to learn, and really enjoy it, but it can be disheartening when i sat here for 9 hours and seemingly haven't learned anything new.

I should really start with simpler JS projects i can complete and build my knowledge on that.
What did you do when you started out? Any suggestions of really simple projects (which don't include APIs as i don't know how those work yet)?

>> No.66684610

>>66684330
stupid assemblyposter

>> No.66684652

>>66678928
If (tits)
{
try
{
showTits();
}
catch (Exception ex)
{
gTFO(ex);
}
}

>> No.66684660

>>66684588
literally just googled js syntax as i needed it because i didn't bother through an actual book.
That being said, you should just learn Elm & Elixir so webdev is a lot less painful.
http://elm-lang.org/examples/buttons
https://guide.elm-lang.org/install.html
And then get: https://github.com/architectcodes/elm-live
for delicious live-reloading.
https://elixir-lang.org/install.html

>> No.66684677

>>66684588
the first language I learned was javascript too, and the first program I wrote by myself was a program that took in a string representing another javascript program and output true if it would terminate and false otherwise (but it didn't run the program in the string, it just read it)

>> No.66684694

>>66684559
Thanks

>> No.66684705

>>66684660
I mean, that's cool, but i really want to focus on my vanilla JS knowledge. I doubt learning another language would help me with that

>> No.66684731

>>66684705
>my vanilla JS knowledge
why, companies don't even use vanilla JS anymore. They use FOTM framework.
And FP is slowly taking over front-end. Better to be ahead of the curve, and Elm can compile to JS anyway.

>> No.66684739

>>66681322
Go through this practical data science course
http://www.datasciencecourse.org/lectures/

What you need is something that provides open data, like Climate Science or whatever department of stats has to offer.

>>66681381
This data is obfuscated, so they can conceal money laundering and offshore speculation but OP could do a good survey on it

>> No.66684766

>>66684731
>why, companies don't even use vanilla JS anymore
I know they don't. I'm new to programming in general and JS is my first language. What is the point of learning a different language that compiles to JS or learning a JS framework if i don't even know how the vanilla language works?
I want to be comfortable in the language before i can build up my knowledge to language-related shit

>> No.66684783

>>66682594
>https://teachyourselfcs.com
This covers everything except actual computer science, ie: theory of computation.

There's some good theory based meme lists around if anybody is interested https://functionalcs.github.io/curriculum/

>> No.66684787

I am trying to attach a debugger to a program on windows, but it tells me a debugger is already attached.
I already tried hooking IsDebuggerPresent but it didn't help.

>> No.66684818

>>66684766
Because no one gives a fuck how JS works because no one wants to, because it's a terrible language. You're not gonna write beautiful or fast JS. Your logic is good for systems langs. But web dev is all about results.
I mean learn vanilla JS, but you're gonna find out companies will pick framework experience over thorough knowledge any day.

>> No.66684852
File: 323 KB, 1121x1123, microsoft windows better.jpg [View same] [iqdb] [saucenao] [google] [report]
66684852

>use windows for main OS because reasons
>cant conveniently make use of tools like virtualenvwrapper after just pip installing them
how do i avoid this feel?

>> No.66684884

>>66684852
install debian
VM windows if you need it

>> No.66684892

>>66684852
Run a headless VM with Linux and ssh into it and attach a shared storage so you can access files on your hard drive? Then just edit shit locally and run in the VM.

>> No.66684922

gitlab because muh freedumz
or
github because muh quantity

>> No.66684927

>>66684818
Sure, but when applying for junior web dev roles in the future, i count on my knowledge being tested by the company. Keep in mind, this is my first programming language and i'm new to the programming logic in general, so i'd like to have a decent grasp on how i should approach a problem.
I'm following a course, and there was this exercise: https://codepen.io/anon/pen/wxvxEz

I can follow along with understanding, and i know what each line is doing and why. But when it comes to actually starting something like this on my own, i'm just lost as i don't even know how to appoach the problem.

I'd like to solve that issue before diving into frameworks and additional languages.

>> No.66684928
File: 51 KB, 1552x856, Selection_008.png [View same] [iqdb] [saucenao] [google] [report]
66684928

What could a boxplot like this show me?
Every box is a feature of the dataset.
What other sort of plot could be useful for me?

Jesus what a mess of data.

>> No.66684932

>>66684922
gitlab for muh free private repo

>> No.66684979

>>66684588
React is easy
https://news.ycombinator.com/item?id=17475130

Just build some shit, like a sample classifieds site or msg forum. The 'backend' just needs to do simple things like receive intructions and give a reply.

>> No.66684982
File: 438 KB, 300x300, 1517604500160.gif [View same] [iqdb] [saucenao] [google] [report]
66684982

>memset is in string.h
Literally why, it should be in stdlib along with all the -allocs.

>> No.66685010

>>66684982
This always rattled my jimbobs.

>> No.66685026

>>66684979
Should i really learn a framework before knowing vanilla JS and understanding programming concepts and approaching a problem first?
You all seem to recommend this approach

>> No.66685031

>>66684982
c is hastily designed shit, more shocking news at 11.

>> No.66685050

>>66684982
memset is an antipattern. Headers are an antipattern. C is an antipattern.

>> No.66685055

>>66685026
literally just learn the basic syntax and move on to a framework.
No one cares about the ins and outs of JS, because it's just a google away.

>> No.66685058

>>66685031
Are you implying C is designed?

>> No.66685077

>>66685058
yes, but even designing as you go is designing, doesn't make it good.

>> No.66685274

>>66685026
Yes, go on libgen.io and hacker news, search for everything react.

Make a ton of small things, like a mini shopify clone or something. Begin to move to proper programming books such as SICP once you're fluent in a framework just so you can max abstract said framework. Then go freelance on local Craigslist as a jr react dev see what happens, or apply to places like toptal or whatever other freelancer sites. Then make your own money making site

>> No.66685553
File: 71 KB, 947x946, layers.jpg [View same] [iqdb] [saucenao] [google] [report]
66685553

>>66683724
Hahahaha
this is what """data science""" has brought us
python brogrammer mathlet tards who completely F A I L at the most basic of statistical topics, importing some library and plugging in a dataset
Working your way up to using that ML library, kid?

>> No.66685728

>>66684884
i cant do GPU passthrough tho

>>66684892
that sounds like a hassle desu

>> No.66685760

>>66685728
>that sounds like a hassle desu
nah it doesn't take long to set up

>> No.66685762

>>66685728
then just use WINE

>> No.66685794

>tfw too hot inside to program
autumn when

>> No.66685831

>>66685794
have a fan blow directly on your monitor so your face isn't getting hit by all the heat.

>> No.66685893

>>66685831
>>66685794
Just get a small 4-6 inch desk fan and put it next to your monitor and wear closed headphones or in ears to block out most of the sound

>> No.66685911

>>66685893
>wear closed headphones
worse because they'll make your head hot.
Also after having a fan on for so long your ears will tune it to background levels.

>> No.66685977

>>66685911
Well if you have leatherette headphones yeah, but with velour it's fine, but yeah IEMs are nicer if it's super hot

>> No.66686435

>>66677535
This looks very relevant, thank you!

>>66676089
>>Kotlin and groovy use a syntax very similar to that
I thought the "use kotlin" guy from the previous thread was joking. Hoo boy, another reason to use Kotlin.

>> No.66686492

>>66678928
more like tits==true? showtits(): GTFO();

>> No.66686674

>>66686492
tits? showtits : GTFO;

>> No.66686708

>>66686674
So it's going to return a function pointer?

>> No.66686827

>>66686708
They weren't putting the () after the function calls, and there's no prefix on the variables. This is obviously ruby.

>> No.66686863

>>66686827
Is it not a JS ternary operator?

>> No.66687019

>>66686492
OwO what's this

>> No.66687394

>>66685760
it would require buying hardware

>> No.66687567

>>66687394
????????????????

>> No.66687619

>>66687567
>VM
nevermind im retarded

>> No.66687710

regex makes me want to kill myself lads.

>> No.66687733

>>66687710
it's just about parsing man dunno why it'd throw you into an existential crisis

>> No.66687773

>>66687733
>match one thing
>break another
>fix that
>break two others
>repeat until i have 500 char long regexes full of arbitrary hacks.

>> No.66687785

>>66686492
>wanting to see some hags chest fat

>>
Name (leave empty)
Comment (leave empty)
Name
E-mail
Subject
Comment
Password [?]Password used for file deletion.
Captcha
Action