/dpt/ - Daily Programming Thread

Alexander Brooks
Alexander Brooks

This is /dpt/, the best subreddit of Cred Forums

In this thread:
r/programming
r/compsci
r/ReverseEngineering
r/softwaredevelopment

Read this before asking questions

mattgemmell.com/what-have-you-tried/
catb.org/~esr/faqs/smart-questions.html

What are you working on ?

All urls found in this thread:

mattgemmell.com/what-have-you-tried/
catb.org/~esr/faqs/smart-questions.html
gist.github.com/YoEight/9710441
credforums.com/thread/56878511/technology
|g'
plnkr.co/edit/kwCPUGVjesAOL61moMH9?p=preview
docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html
github.com/liviu-/ding
en.wikipedia.org/wiki/Operators_in_C_and_C++#Bitwise_operators
credforums.com/thread/56888846/technology
gist.githubusercontent.com/alessonforposterity/832da4fab11e10609dad/raw/258df12378399919ae088ba8731a7571d9c2c947/drgn.txt
kernel.org/doc/Documentation/volatile-considered-harmful.txt
lkml.org/lkml/2007/5/8/372
credforums.com/thread/56891261/technology

Ryder Bell
Ryder Bell

kpop > anime

Mason Phillips
Mason Phillips

What datatype should I use to store an 8-digit numeric account number?

Justin Allen
Justin Allen

tfw to intelligent from programming in functional languages

Zachary Ward
Zachary Ward

an int

Jacob Perez
Jacob Perez

Thank you

Noah Miller
Noah Miller

gist.github.com/YoEight/9710441

Wyatt Carter
Wyatt Carter

i thought dynamic programming would be some crazy technique but it's just caching previous computations
wtf

Luis Kelly
Luis Kelly

welcome to the world of _ Oriented Programming and _ Driven Design

Logan Reyes
Logan Reyes

Caching previous computations is not really what dynamic programming is about. Dynamic programming is the process to find a way to be able to cache those previous computations and use them efficiently. Dynamic programming is about smart recursion.

Bentley Roberts
Bentley Roberts

old thread is kill so ill repost

Whats the easiest way to make android apps. I know c++ really well but have barely used java. So id like to use c++ since I dont have to think about the syntax of everything.
Not looking for a super complicated touch screen master piece game. A basic gui with buttons and a large box that displays dynamically is really all Im looking for right now.

Jordan Phillips
Jordan Phillips

to intelligent

You sure are.

Nathaniel Butler
Nathaniel Butler

Why does every build tool suck?

Austin Hall
Austin Hall

I`ve been working for a while now on a new chan engine, LynxChan.
It provides admins flexibility, performance and customization.
I am currently beta testing it`s 1.7 version and working on a new front-end for it.
The engine can be found over gitgud.io/LynxChan/LynxChan
Pic related, the new front-end, Penumbra Lynx

Levi Young
Levi Young

Intelligence doesn't necessarily mean your brain connects to your fingers well.

Personally i find stupid typos in almost every post i write. Words my brain knows how to spell, but my fingers are GTOW.

Nolan Green
Nolan Green

It's your lie, tell it how you want.

Angel Mitchell
Angel Mitchell

Old: credforums.com/thread/56878511/technology
What are you working on, Cred Forums?

Jose Cook
Jose Cook

Destroying the FSF once and for all

Gabriel Martin
Gabriel Martin

I agree, this is homosex.

Leo Morris
Leo Morris

#!/bin/sh
if [ $# -ne 1 ]; then
echo "Usage: $0 <link>"
exit 1
fi

wget $1 -qO - | egrep 'File: <a href="[^"]+' -o | cut -d'/' -f 3- | sed 's|^||g' | xargs -i{} -P10 wget -q -nc --show-progress {}


rate my bash skills Cred Forums

Juan Campbell
Juan Campbell

It's a script/10.

Camden Garcia
Camden Garcia

bash

might as well be using PHP

Levi Barnes
Levi Barnes

Android studio supports C++ via the NDK. I don't know if you can avoid Java if you want to use the built in UI elements. I've used this setup for an app that used OpenCV and it works fine, but it's not simple.

The EASIEST way to create an app is to learn Ionic 2. Seriously. It's not C++. It uses Typescript and HTML which is cancer, but it's so fucking easy. Download a starter and start modifying it

Aaron Williams
Aaron Williams

savage

Angel Gutierrez
Angel Gutierrez

I am going to post some corny motivational images and build forms, how fucking exciting.

Goal: Build form in Angular 2 w/ validation.

Noah Carter
Noah Carter

Are you productive during your day, user?
Or does Cred Forums occupy all of your time?

Hunter Stewart
Hunter Stewart

When I'm at school, I'm not shitposting, so there's that.

Noah Garcia
Noah Garcia

tfw to intelligent for oop

Adrian Edwards
Adrian Edwards

tfw to intelligent too learn python

Nicholas Ross
Nicholas Ross

You messed your o's up.
It's pythoon

Evan Price
Evan Price

Changed my cursor colour to bright pink
Can't concentrate as it's such a beautiful improvement to my qol

Dominic Cook
Dominic Cook

I really don't want to start a derail or anything, but why are so many Q&A sites filled with Pajeets?

The only major site where I don't get meme answers is Stack Overflow.

Leo Perry
Leo Perry

probably because they're trying to promote their career somehow. how? idk, maybe they include a link to their profile on their resume or think people will click on their account and see links they have to their pajeet version of linkedin or something

Noah Bailey
Noah Bailey

aren't we all

Luke Butler
Luke Butler

what has changed in python over the last ten years? is it any less shit?

Stack Overflow
i see them there too

they're trying to promote their career
this is my assumption

Samuel Turner
Samuel Turner

I remember when my dad got a toaster at work. We used to borrow bread from from friends and go in at night to toast copies

Zachary Davis
Zachary Davis

I remember when my dad got a cd burner at work. We used to borrow cds from from friends and go in at night to burn copies.

I remember when my dad got a dildo at work. We used to borrow lube from from friends and go in at night to fuck copies

Nicholas Collins
Nicholas Collins

keked too hard

Jayden Martin
Jayden Martin

...30 minutes later, I have a working router base. Wow, fml:

plnkr.co/edit/kwCPUGVjesAOL61moMH9?p=preview

Jayden Turner
Jayden Turner

pronounced like c'thun

Lincoln Anderson
Lincoln Anderson

Goal: Build form in Angular 2 w/ validation.
30 minutes later, I have a working router base
Can't make this shit up.

Jaxson Richardson
Jaxson Richardson

so, how do we help Cred Forums?
I say:
- move the backend to Go, since PHP is slow and uses too much CPU/memory
- create /consumer/ board, add referrals to all amazon/ebay URLs posted there
- have images/gifs converted/compressed client-side, somehow...

Noah Howard
Noah Howard

Did I write the jni methods correctly?

I hadn't even heard of jni until 10 minutes ago, I've guessed based upon how other methods are written inside this class.

Anything obviously incorrect?

Eli Gray
Eli Gray

What's a good way to compress 3D arrangements of voxels? 1D or 2D compression algorithms would give suboptimal performance.

Jeremiah Phillips
Jeremiah Phillips

- move the backend to Go, since PHP is slow and uses too much CPU/memory
Let's rewrite everything in latest meme langugaes
Yeah no. PHP is probably fine for Cred Forums. I doubt Cred Forums is CPU constrained. More so bandwidth constrained.

- create /consumer/ board, add referrals to all amazon/ebay URLs posted there
helps nothing
- have images/gifs converted/compressed client-side, somehow...
insecure

Ayden Nguyen
Ayden Nguyen

I guarantee that you have no idea how Angular 1 or 2 works, and likely don't even know javascript. Ib4 "javascript" is a meme language.

That may be, but it's a meme you better learn on top of your serverside unless you are a data science / math / machine learning professional.

I can make a form and send it to the server in about 5 mins, but not with a new library I have never used.

Feel free to get it done before me. You have my base to use.

What I need is email input with regEx to check for validity and password with hidden/unhidden buttons. Submit gets toggled based on form validity. Go for it.

Owen Campbell
Owen Campbell

Switch to C# and you won't have to deal with JNI.

Samuel Mitchell
Samuel Mitchell

PHP is probably fine for Cred Forums
I have no love for Go but please don't meme dangerously, user.

Lucas Jenkins
Lucas Jenkins

What would the problem be?

Carter Gonzalez
Carter Gonzalez

I plan on learning C# soon, but I need java for Android development

Aaron Bennett
Aaron Bennett

Yeah no. PHP is probably fine for Cred Forums. I doubt Cred Forums is CPU constrained. More so bandwidth constrained.
No, it boils down to storage. Uploading images from 200,000 simultaneous users take bandwidth yes, but it also takes a lot of storage space, which needs to go fast.

Michael Nelson
Michael Nelson

Storage is cheap as shit. And all the images and videos hosted on Cred Forums at any given time isn't going to be more than a few gigs. You could probably host it all in ram is you wanted.

Connor Bailey
Connor Bailey

Who else struggles to write code unless they're constantly referencing previous code they've written?

If I want to do x, y or z, I have to google or find documents in which I have already done this as a reference, otherwise I get stuck.

Nolan Myers
Nolan Myers

I doubt Cred Forums is CPU constrained
the mere act of going from, say, 8 servers to 1 or 2 would help

Jayden Carter
Jayden Carter

Writer w; // i'm sorry, I must be declared outside the try block
try {
...
} catch (IOException e) {
...
} finally {
if (w != null) {
try { // here comes another try/catch block!
w.close();
} catch (IOException e) { // i am so sorry
...
}
}
}

Elijah Carter
Elijah Carter

probably not that much though I would guess. Maybe I'm wrong.

Benjamin Hughes
Benjamin Hughes

        function lumberAI(xCord, yCord){
var hasTrees = false;
for(i=1;i<dimensions;i++){
var maxX = (xCord+i>dimensions) ? dimensions:xCord+i;
var maxY = (yCord+i>dimensions) ? dimensions:yCord+i;
var minX = (xCord-i<0) ? 0:xCord-i;
var minY = (yCord-i<0) ? 0:yCord-i;
console.log("cycle:" + i);
console.log("max X: " + maxX + ", max Y: " + maxY);
console.log("-----------");
for(;minY<maxY;minY++){
for(;minX<maxX;minX++){
if(map[minY][minX].type=="T"){
hasTrees = true;
}
console.log("min X: " + minX + ", min Y: " + minY);
}
}
if(hasTrees){
break;
}
}
}

Why wont the outer loop increment? I just started messing with JS so sorry if it's obvious.

Noah Clark
Noah Clark

Stupid frogposter

Mason Murphy
Mason Murphy

Go has basically Java-level performance, with less memory usage and easy concurrency
according to some benchmarks (that I can't remember now), one the fastest webservers out there is made in Go

Jordan Martin
Jordan Martin

You don't have to lecture me, kid. I remember the times when 'inobtrusive JavaScript' was a thing and 'responsive design' was just starting out.

I actually made a few AJAX-ridden websites that would take seconds to load, with all the flashy shit that's standard now. (I wish I could direct you to the exact library I used, but thankfully I've already forgot its name.)

It was around the time that Backbone, Ember, Angular and other shitstains that went completely against the solid paradigm were becoming mainstream that I decided to quit webdev. Quite frankly, I'm glad I did.

Blake Gonzalez
Blake Gonzalez

is dimensions > 1?

Jaxson Russell
Jaxson Russell

the current static thumbnail generation it has doesn't help at all with storage either, they should honestly switch to dynamic thumbnailing

Levi Myers
Levi Myers

Do any of you faggots actually know anything about hardware programming or microcontrollers in general? Or is this thread just script kiddies?

Connor Clark
Connor Clark

I can make a form and send it to the server in about 5 mins, but not with a new library I have never used.
Also, what do you do if the client has disable JavaScript? Just serve a blank page? What if the user circumvents the JS validation, which is trivial in any case? You still do validate on the server anyway, right?

Jason Richardson
Jason Richardson

This is why checked exceptions are fundamentally wrong.

Jack Bennett
Jack Bennett

I used to know a little about it, but as a 16yo I could financially afford to experiment and play with microcontrollers that break just from static electricity.

Blake Brooks
Blake Brooks

hardware programming
not real programming

Juan Long
Juan Long

Whoops, it was actually 'unobtrusive'. Sorry about that.

William Roberts
William Roberts

Yes, always!

Lincoln Green
Lincoln Green

If you are pulling in over $140,000 and doing "real-work", more power to you. There is a paradigm on here where people shit on full-stack like it's beneath them. The catch is that it's only beneath you if you can do the real jobs.

Also, what do you do if the client has disable JavaScript? Just serve a blank page?

Sure, most real companies assume js is enabled and if it's not, you tell them to fucking enable it or fuck off. Same with outdated browsers.

What if the user circumvents the JS validation, which is trivial in any case? You still do validate on the server anyway, right?

That's a pretty silly question. Every API call is checked on the backend. Logins go through an Authentication server to issue a token, which again, gets checked on every call.

P.S. I hate front-end too, but a lot of back-end work is also fucking with libraries / monotonous shit.

Josiah Rogers
Josiah Rogers

What are you using right now you stupid fuck?

Cooper Rodriguez
Cooper Rodriguez

I'm drinking from a water bott-
Holy shit, I had no idea that water was programming!

Brandon Nguyen
Brandon Nguyen

I can build a combination lock out of basic logic-gates and have before. Completely useless "skill" irl. I am the "javascript script kiddie" above.

Someone recently asked me to do math in hex and binary at an interview. I lolled, but am glad I knew how.

Brayden Taylor
Brayden Taylor

As if you needed more proof this thread is tweens roleplaying.

Jordan Williams
Jordan Williams

A purely functional Cred Forums browser written and proved correct in Agda, exported to Haskell with clearly separated side effects using monads and algebraic effects with handlers running on pure energy generated from the interactions between prezygohistomorphic prepromorphisms in the ∞-category of co-presheaves on Grothendieck quasitoposes.

Connor Gomez
Connor Gomez

It's sad that you think your job has to be programming or it must be worthless, and yet decide to go to a programming board and insult people for programming.

You are a glorified electrician.

Ethan Sullivan
Ethan Sullivan

Ah, so you're using software on a hardware product.

You should stop pretending lad, you're just looking sad at this point.

Ian Reed
Ian Reed

OK, no hard feelings.

Jaxon Gutierrez
Jaxon Gutierrez

ah so you're using software on a hardware product
Not him, but congratulations on not understanding my post.

You live in some weird world where merely USING something makes it programming related.

Ethan Cook
Ethan Cook

Ah, so you're using software on a hardware product.
No, it's pure energy.

Kevin Smith
Kevin Smith

Sounds familiar.

Connor Cox
Connor Cox

You're doing a good job convincing me that you're not using hardware in any way shape or form to use the software.

Stop roleplaying.

Jeremiah Sanchez
Jeremiah Sanchez

What the fuck are you talking about?
Did you even read my post?
I am in fact using hardware

Logan Lopez
Logan Lopez

hurrr, I'm hardware programmer, pay heed to me, you lowly germs

Adrian Rogers
Adrian Rogers

Need some help with c.

I have an int set to a random number.

How would i then set that number to an array?
ex:

random = 1234;
array_random={1,2,3,4};

Is there a simpler way then doing a for loop and dividing?

Jacob Adams
Jacob Adams

Also
script kiddie doesn't understand an energy-based OS would, by definition, be hardware, if it facilitated running a kernel and running operations

Stop roleplaying.

Zachary Morales
Zachary Morales

check /dpt/
it's full of cancer

William Roberts
William Roberts

cycle:1
cycle:2
cycle:3
Why wont the outer loop increment?
What are you talking about?

Justin Diaz
Justin Diaz

Can I shorten this regex and capture the same things?

([0-9]+[baka])( [0-9]+[baka])*

It sho

Gabriel Edwards
Gabriel Edwards

docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

Jaxon Baker
Jaxon Baker

lol that should be "s mh" instead of baka fuck u hiroshima

([0-9]+[hms])( [0-9]+[hms])*

Leo Barnes
Leo Barnes

([0-9]+[abk])( [0-9]+[abk])*

Lincoln Myers
Lincoln Myers

what's a a checked exception?

Benjamin Wood
Benjamin Wood

yeah sorry it wasn't baka lol

Ayden Brown
Ayden Brown

lua is best language

Jack Bell
Jack Bell

In that case no. Perhaps change [0-9] to \d.

Asher Walker
Asher Walker

sucks for me

Aiden Moore
Aiden Moore

Look it up first, and if you don't understand it, then maybe I'll explain further.

Leo Garcia
Leo Garcia

exceptions

That's what you get for not using conditions

gigamonkeys.com/book/beyond-exception-handling-conditions-and-restarts.html

Gabriel Clark
Gabriel Clark

C being a programming language of the past, you will have to use the programming techniques of the said past.

# Submit to the power of Python
array_random = [int(x) for x in str(random.randint(0, MAX))]

Nathan Martin
Nathan Martin

but it can't do

[ [i for i in range(0,10)] for j in range(0,5) ]

Wyatt Perry
Wyatt Perry

exceptions you are forced to catch.

Benjamin Diaz
Benjamin Diaz

map (read @ Integer . pure) . show . abs

Jose Gonzalez
Jose Gonzalez

I could do this easily with log10 and bitwise fuckery, but you'd have to reverse it afterwards.

Andrew Cruz
Andrew Cruz

for i = 0, 10 do

Daniel Wood
Daniel Wood

rate & review my tool guise github.com/liviu-/ding

Jaxson Campbell
Jaxson Campbell

Which IDE do you guys use for C/C++?

Zachary Brooks
Zachary Brooks

Is that @ type application? How does it work?

Noah Gray
Noah Gray

Vim

Christian Hall
Christian Hall

I dont'e think .so/

Hudson Thompson
Hudson Thompson

@ isn't a function

Juan White
Juan White

you need to enable the TypeApplications extension

Henry Diaz
Henry Diaz

Vim+YouCompleteMe+tmux

Elijah Sanchez
Elijah Sanchez

it substitutes type variables

Robert Ramirez
Robert Ramirez

Fine. If it's that complicated, i will.

Joshua Gray
Joshua Gray

Programming in C is so tedious.

Joshua Scott
Joshua Scott

MIT
Not GPLv3
Into the trash it goes.

Colton Edwards
Colton Edwards

Nice. I remember it was discussed some time ago. The syntax sucks, but I guess it's useful enough to justify its use sometimes.

Chase Price
Chase Price

Why does so much of Cred Forums go into IT or have these meme certs?

Adam Williams
Adam Williams

CLion with vim plugin

Christian Smith
Christian Smith

what should I do with my odroid-c2

Hunter Bell
Hunter Bell

:((

Hunter Wilson
Hunter Wilson

Please expand upon this thought. What are you working on right now that makes you think this, what language would you rather be using, how would that language makes things easier for you and why aren't us using that language?

Landon Howard
Landon Howard

Hey Cred Forums, I'm a complete newbie on C, and I've been studying some code and I was wondering what is the meaning of the & and ~ operator when doing assignments?
e.g
char character;
#define ASCII_Z = 0;
long digit;
digit = character & ~ASCII_Z;

what is happening with the digit variable?

Carson Baker
Carson Baker

Haskell is actually running out of syntax imho

a @ t
and
[email protected]
are not the same

Luke Allen
Luke Allen

MSVS

Isaiah Nelson
Isaiah Nelson

malloc an array of size length of the string version of int
map over the string version of the int
for each, add the the int to the malloced array
profit

Aiden Phillips
Aiden Phillips

fugg, GHC was a mistake.

Levi Rogers
Levi Rogers

My main issue is this
I would like there to be a bang pattern for compile time evaluation.

! and ~ are already taken
What short/concise thing could be used?

Colton Watson
Colton Watson

GPLv3
not BSD 4 clause
It's like you're asking to be cucked by GNU/rms

Nicholas Sullivan
Nicholas Sullivan

I thought I'd have a go at making a small game engine in C. Managing memory manually, that sort of stuff. I'd rather be using C++ or C#.

Ryan Bailey
Ryan Bailey

Spice it up with ¡

Hunter Ross
Hunter Ross

en.wikipedia.org/wiki/Operators_in_C_and_C++#Bitwise_operators

Jonathan Cooper
Jonathan Cooper

quick, give me an idea so I can do something in c!!!

Caleb Rivera
Caleb Rivera

~ is a bitwise not
& is a bitwise and
Time for you to learn binary

Lucas Wilson
Lucas Wilson

cucked by GNU/rms
Explain. Richard M. Stallman (PhD) intentions are and have always been pure.

Isaiah Bennett
Isaiah Bennett

VM

Dominic Adams
Dominic Adams

tfw no InterrobangPatterns

Connor Bell
Connor Bell

tell spencer i said hi

Blake Miller
Blake Miller

ywn use -XPilcrowPatterns

Chase Watson
Chase Watson

communism
pure

Nolan Rogers
Nolan Rogers

okay

Hudson Morgan
Hudson Morgan

Just for the xp of having done something in C, or why?

Nathaniel Baker
Nathaniel Baker

fuck off

Mason Wilson
Mason Wilson

Richard M. Stallman (PhD) intentions are and have always been pure
That pedophile birdfucker is known for coopting projects and either kicking out the original developers or making them answer to him just for using the GNU license and being pretty

Noah Morgan
Noah Morgan

Just for the experience of doing it in C.

Hudson Bell
Hudson Bell

i for i
what were they thinking? Fuck me.

Joshua Foster
Joshua Foster

honorary doctorate
doesn't count

Sebastian James
Sebastian James

Good. That'll give you a sense of what must actually be going on under the hood when you're using higher level libraries.

Luis Hall
Luis Hall

I guess you could say that code could make the whole world blind

Jacob Foster
Jacob Foster

An OS

Austin Cruz
Austin Cruz

Carlos!!

Dylan Harris
Dylan Harris

So far, I get the feeling that higher level libs/langs do a hell of a lot of memory allocations.

Jaxson Reed
Jaxson Reed

credforums.com/thread/56888846/technology
noice

Noah Myers
Noah Myers

I know that but...
I've never seen it being used in assignment operators.

Mostly, just for checking if statements.

Samuel Fisher
Samuel Fisher

that's the only time a scriptfag will ever get sexts

Jayden Wood
Jayden Wood

Correct.

Liam Morris
Liam Morris

``no``

Jonathan Diaz
Jonathan Diaz

How do I get valgrind to stop and take me to gdb when it finds an error?

Sebastian Anderson
Sebastian Anderson

what is better for developing web applications java or c#?

Isaiah Murphy
Isaiah Murphy

C#

Luis Morris
Luis Morris

I never have the problem that i lack for something to do, programmingwise.
I always ha a project i should be working on, if i could just work up the drive to do it.

Thomas Ward
Thomas Ward

care to explain?

Brody Evans
Brody Evans

ASP.NET is popular and well supported.

C# is generally a much better language than Java.

Matthew Murphy
Matthew Murphy

tfw contracting for Java shop and they are convinced Java is actually good and try to push it for projects
tfw got out of it...this time
tfw realizing the place I got placed in uses straight SQL-commands instead of entity mapping

Shiggy diggy.

Liam Barnes
Liam Barnes

Why wouldn't you be able to use bitwise operations in assign expressions?
After all, all assignment is, is storing a bit-pattern in a chunk of memory.

Charles Cox
Charles Cox

I'll bite since most here won't say much.

If you are actually using bash use

!#/usr/bin/env bash

Also if you intend to use some bashism then use '[[' instead of '[' since '[[' is a bash builtin and '[' is going to make an external call to /bin/[

Fetch line is hard to read and tough to trace through, limiting your pipes makes for better shell code ( in my opinion ). While it isn't as hacky or as fun if its not a oneliner I try to avoid using more then 2 pipes per command.

Also, learn AWK, the grep,cut,sed could all we done in awk cutting out 2 pipes.

Further more there isn't much bash involved here, if you really want to write bash code see if you can eliminate the grep, cut, and sed by using just bash.

Last but not least, most autistic tip I'm going to give... egrep is not specified as part of POSIX, use grep -E which I know is contradictory to me pushing bashisms.

Luis Long
Luis Long

you won't have to deal with java

Connor Wright
Connor Wright

lel. Any company that uses Java is going to be shit tier. Java is only common because it's taught in every university, so if you can't be bothered to learn anything new, Java is probably all you know and you probbaly think it's the best.

Julian Moore
Julian Moore

Playing with Processing. Something a bit easier after the L-systems this time.

Tyler Sullivan
Tyler Sullivan

Hey anons, how can i do this:
Get data from one file1.txt and insert it into bottom of file2.txt with shell?

Nolan Taylor
Nolan Taylor

cat file1.txt >> file2.txt

Ryan Wilson
Ryan Wilson

git gud
more lurk
cat file1.txt >> file2.txt

Camden Flores
Camden Flores

I'm trying to invert a matrix in C via Gauss-Jordan elimination but I am screwing up somewhere in my code.

    for(j = 0; j < n; j++)
{
int temp = j;

//Finding maximum jth column element in last (n - j) rows
for(i = j + 1; i < n; i++)
{
if(inverted[i][j] > inverted[temp][j])
{
temp = i;
}
}

//Swapping row which has maximum jth column element
if(temp != j)
{
for(k = 0; k < n * 2; k++)
{
double swap = inverted[j][k];
inverted[j][k] = inverted[temp][k];
inverted[temp][k] = swap;
}
}

//Performing row operations to form required identity matrix out of the input matrix
for(i = 0; i < n; i++)
{
if(i != j)
{
double row_op = inverted[i][j];

for(k = 0; k < n * 2; k++)
{
inverted[i][k] -= (inverted[j][k] / inverted[j][j]) * row_op;
}
}
else
{
double row_op = inverted[i][j];

for(k = 0; k < n * 2; k++)
{
inverted[i][k] /= row_op;
}
}
}
}

Thing is, inverted before and after shows the Identity matrix in the right places for the augmented matrix but the numbers are all wrong for some reason. Someone please help.

Cameron Moore
Cameron Moore

Nice random walk, guy.

Leo Gray
Leo Gray

nice blog

Isaiah Myers
Isaiah Myers

break the code up a bit

Jayden Gutierrez
Jayden Gutierrez

How do I access an element thats inside a struct and that struct is inside another struct in C?

im trying to do (*stk).head.data but its not working

"stk" is a pointer to the structure that has the element "head" which is a pointer to another struct which has an element "int data"

Brayden Morales
Brayden Morales

Why even post if you are going to ironically suggest I was not on topic? Why are you even here if you aren't contributing anything programming related or asking for help?

Jose Young
Jose Young

(*stk).head.data should work fine
stk->head.data too

assuming head is not a pointer

he's just a cunt, ignore him

Christopher Thompson
Christopher Thompson

Nobody's going to read your shitty code.

Juan Gutierrez
Juan Gutierrez

I doubt it would make much difference if I separated out the clearly documented 3 sections inside the loop into separated functions.

Ethan Adams
Ethan Adams

element "head" which is a pointer to another struct
assuming head is not a pointer

Blake Reed
Blake Reed

yes it would, because then if you trust that your functions work, then people reading can just see the top level logic

Bentley Thompson
Bentley Thompson

head is a pointer. Im trying to learn stacks and head is the top of my stack which is a pointer to the other struct which has the data in it

Nathaniel Wood
Nathaniel Wood

stk->head->data
or
(*((*stk).head)).data
you can't use . on pointers
you want ->, which is the same as (*p).x

Landon Fisher
Landon Fisher

Anyone have a link to the 5th edition of C++ Primer PDF? One that is not like 100 MB please.

Daniel Thompson
Daniel Thompson

thanks my dude it worked

Gavin Powell
Gavin Powell

The top level logic is clear from the one line documentation and no one is going to reuse max-j element column, swap row with max jth column and Gauss-Jordan subtract/division functions.

It's not like the logic is using way too much nesting either.

Nathaniel Cox
Nathaniel Cox

there should be a deftype in c
which is basically typdef but with arguments reversed

deftype month
struct { int number
, int days
, char name[10]
}

Nolan Morris
Nolan Morris

so you're trying to take each digit of a random number (say, 1234 is the given random number as posted) and then put each individual digit into an array (giving [1, 2, 3, 4])?

said it best I believe. some itoa fuckery combined with malloc should do the trick.

Samuel Martin
Samuel Martin

Why do you all hate Ruby (the tripfag)? He's helped me a number of times.

Gavin Turner
Gavin Turner

t. Ruby the tripfag

Zachary Rodriguez
Zachary Rodriguez

He's a nice guy and all, but unironically thinks ruby is a good language. Sadly this means he is clinically retarded.

Jacob Edwards
Jacob Edwards

No one hates Ruby the tripfag.

OSGTP is a bit of dick, though.

Eli Anderson
Eli Anderson

:( i like mommy AND daddy

Adrian Sanchez
Adrian Sanchez

he's kinda autistic and he cares too much about "setting the record straight"

Kevin Jenkins
Kevin Jenkins

oh God I'm dieing

Xavier Cruz
Xavier Cruz

OSGTP is a bit of dick, though.

What did I do?

But.. why?

Jack Evans
Jack Evans

so pretty much like 90% of /dpt/ posters?

Luis Moore
Luis Moore

for readability

Kayden Ortiz
Kayden Ortiz

OSGTP is just mad that OOP is on its last indefensible legs

Kevin Williams
Kevin Williams

tfw not autistic enough to tripfag on this board

Blake Morris
Blake Morris

Shut up doggo.
If you only like niggers, is Ruby a black person?

Parker Williams
Parker Williams

((^¦ )[0-9]+[hms])+

Cameron Moore
Cameron Moore

Ruby is a good language, but people do Javascript-esque stuff with it like the abomination of Ruby on Rails.

My opinion is that Ruby, and any dynamically typed language, really is not meant for very big applications (>100k LOC). Typing is very handy and prevent very horrible screwups in code that gets that large but people have used these languages for large codebases and I have no idea what kind of rationale they would have to do that.

Ethan Cruz
Ethan Cruz

if you act like it's normal people won't care
Hahaha, that's some complete lack of self-awareness right there.

Brody Collins
Brody Collins

OSGTP actually convinced me on the whole negress thing. Niggers maybe stupid violent apes, but some of their women are pretty nice...

Evan Robinson
Evan Robinson

(^¦

Matthew Murphy
Matthew Murphy

any dynamically typed language, really is not meant for very big applications (>100 LOC).
ftfy

Owen Phillips
Owen Phillips

Or anything business-critical really. If you wanna dick around and make a program to rename some files or whatever then sure feel free to use ruby or python or whatever.

Christian Howard
Christian Howard

It doesn't really help readability when everybody's been subjected to standard typedefs for 40 odd years.

If you only like niggers, is Ruby a black person?

Who said I only liked niggers? I just think black women are sexy.

Das it mane.

Cooper Ross
Cooper Ross

genius

do you think

((| )\d+[baka])+
would work as well?

Tyler Edwards
Tyler Edwards

how do i get those garish colours for myself?

Carson Anderson
Carson Anderson

meant

((| )\d+[hms])+

Caleb Sanders
Caleb Sanders

If your regex thing supports \d, sure. why wouldn't it?

Jaxon Evans
Jaxon Evans

what is this meme?
are there sources for this oop hate?

David Foster
David Foster

C++:
using type = othertype;

D:
alias type = othertype;

Haskell:
type type = othertype

Xavier Myers
Xavier Myers

we've had this discussion again and again and again

go through the archives if you want to know why OOP is shit and why it's dying

Nicholas Hughes
Nicholas Hughes

no sorry, i meant if i have nothing before | so instead of (^| ) to use (| )

Christian Nguyen
Christian Nguyen

responding to the guy who mentioned memory mapped files in the context of a text editor,

I'll think about it but I want to limit the complexity of the editor to maybe 1000 lines at maximum. I'm not exactly sure how to use a gap buffer and mmap (osx here) at the same time either.

Can I modify a mmap'd file without it changing the contents on the hard disk? Or would I have to load the segment of the file into a cache and modify it there? I'm worried that could lead to some complexity that I'd like to avoid.

Jeremiah Price
Jeremiah Price

( ?\d+[hms])+

Brandon Nelson
Brandon Nelson

I get what you're driving at, but C doesn't change much. That's kind of its thing.

Caleb Young
Caleb Young

go through the archives
implying anyone would ever do this

Luke Carter
Luke Carter

#define type othertype

Anthony Rogers
Anthony Rogers

are there sources for this oop hate?

Unbelievably contrived examples of user error.

Ian Morales
Ian Morales

Justify the existence of the visitor pattern

Bentley Morgan
Bentley Morgan

All programming errors are user errors. There would be no need for paradigms and type checking etc if everything everyone wrote was perfect everytime.

Dylan Ortiz
Dylan Ortiz

omg too good thank u

Ryan Ward
Ryan Ward

#define newname oldname

typedef oldname newname;

Score one for consistency, C.

Logan Flores
Logan Flores

Design patterns != OOP.

Christopher Allen
Christopher Allen

Like I said before, if I gave examples they would be just as contrived.

Nolan Cook
Nolan Cook

Justify its existence
do it now

Design patterns exist to "fix" problems inherent with OOP

Dominic Diaz
Dominic Diaz

do you guys code at home

what are you programming

Dylan Wood
Dylan Wood

Design patterns exist to "fix" problems inherent with OOP
You're going to have to justify that claim. That's like me claiming some retarded shit like dinosaurs never existing and expecting people to believe me.

Jordan Gonzalez
Jordan Gonzalez

I'm not going to speak for anyone else, but this picture quite accurately illustrates how i feel about oop.

Jackson James
Jackson James

there are plebs in this thread who unironically use arrays, loops and classes
This is how you do it right kiddos gist.githubusercontent.com/alessonforposterity/832da4fab11e10609dad/raw/258df12378399919ae088ba8731a7571d9c2c947/drgn.txt

Justin Martin
Justin Martin

suck on this logarithmic fibonacci

fib n =
fib_iter 1 0 0 1 n
where

fib_iter _ b _ _ 0 = b

fib_iter a b p q cnt =
if even cnt
then (fib_iter a b (p*p + q*q) (2*p*q + q*q) (cnt `div` 2))
else (fib_iter
(b*q + a*q + a*p)
(b*p + a*q)
p q (cnt-1))

Jonathan Thompson
Jonathan Thompson

I never leave my house so where else would I program?

Nathaniel Jenkins
Nathaniel Jenkins

How can you seriously compare those two statements

"Design patterns" are almost entirely used in OOP or by former OOP programmers
90% are "how can we avoid doing it the proper way so that we can still call it OOP and use inheritance and stuff"

Ethan Jenkins
Ethan Jenkins

Design patterns exist because people keep coming up with similar solution to similar problems.

Jayden Garcia
Jayden Garcia

to similar problems
To similar OOP problems

Jonathan Collins
Jonathan Collins

Idiomatic generic D code written by a ruskie with broken English is as fast C/C++/FORTRAN code plus hand-crafted assembly folded 10000 times by a team of crack jews for their processors only.

Brody Diaz
Brody Diaz

rewrite it in haskell

Christian Sanders
Christian Sanders

God bless that madman

William King
William King

Actually, you are partly correct. The problem domain that (programming) design patterns deal with is how to structure your code. OOP is a design paradigm that deal with how to structure your code.

Matthew Hernandez
Matthew Hernandez

Why does clang not have any output?

Dylan Phillips
Dylan Phillips

I don't get how you can continue to deny this
It's not "partly" correct it's entirely correct
Why the fuck do you think so many design patterns mention inheritance?

Samuel King
Samuel King

One could even say that OOP is itself a design patter, because it's a (some would add the qualifier 'alleged') solution to the problem of structuring your code.

Jack Jones
Jack Jones

I guess it's optimized away because you never actually use the struct.

Oliver Adams
Oliver Adams

Is it possible that gcc -O2 could be causing valgrind false positives?
Because valgrind tells me that there's errors on a certain line, I go to check it in vdb, and every single variable on that line has been optimized out so I can't know what's wrong.

Also, when i compile with -O0, the valgrind messages go away.

Julian Fisher
Julian Fisher

nada

Bentley Cruz
Bentley Cruz

It's been a while, but shouldn't -g give you the correct line number?

Easton Wood
Easton Wood

It's only partly correct because there are a lot of design patters that don't deal with oop at all.

Landon Wood
Landon Wood

Only seems to work when i disable all optimization

clang is B R O K E N

Asher Morales
Asher Morales

Looks like an optimization. Try -O0.

Brayden Gonzalez
Brayden Gonzalez

No, there are very few "design patterns" that are actually not remotely like the others at all and are just very broad statements.

If you're gonna go down this "planning is a design pattern" "testing is a design pattern" bullshit road, at least think it through

Michael Green
Michael Green

B R O K E N
R
O
K
E
N

Nicholas Lopez
Nicholas Lopez

Can these optimizations break things?
When I turned them off, they stopped breaking things

i dunno user what do you think

Benjamin Bennett
Benjamin Bennett

Yes, it's giving me the "right" line number, but gdb gives me nothing to work with, everything is optimized out.
I could see the values of the optimized away variables under -O0, but then the valgrind errors go away.

This makes me think it's a false positive and can be safely ignored.

David Evans
David Evans

clang is B R O K E N
Other way around, the other compilers are broken because they emit a useless copying loop.

Xavier Harris
Xavier Harris

i guess clang has never heard of memory mapped io

Kayden Russell
Kayden Russell

Why are there no decent c compilers for windows?

Dylan Taylor
Dylan Taylor

Then you should use volatile.

Wyatt Richardson
Wyatt Richardson

volatile

Jacob King
Jacob King

Cuz Windows sucks for programming

Elijah Morris
Elijah Morris

Why would it?

Josiah Sanchez
Josiah Sanchez

which one is objectively better

Carson Jackson
Carson Jackson

look ma i made a c program!
what's undefined behavior?

Ryder Russell
Ryder Russell

/dpt/-chan, daisuki~

Intel

kernel.org/doc/Documentation/volatile-considered-harmful.txt

That code has an undefined behavior: A variable is read while being uninitialized. Initialize OtherData then clang shall output some code.

Colton James
Colton James

The use of volatile in kernel code is almost never correct
almost never

Michael Bennett
Michael Bennett

kernel.org/doc/Documentation/volatile-considered-harmful.txt
Are you fucking retarded?

Jose Adams
Jose Adams

kernel.org/doc/Documentation/volatile-considered-harmful.txt
Did you even bother reading that?

Cooper Garcia
Cooper Garcia

Depends on how memcpy is implemented and which cpu families you're targeting.

Gavin Nguyen
Gavin Nguyen

not portable

Colton Adams
Colton Adams

1. This is sh, not bash
2. Quote variables
3. Use xml tools instead of grep/sed to get info from html

Caleb Walker
Caleb Walker

If you're gonna go down this "planning is a design pattern" "testing is a design pattern" bullshit road, at least think it through
What? No, that sound like bullshit.

I have here here a book called Game Programming Patterns by Robert Nystrom. I was going to list all the patterns from this book that have nothing to do with oop, but flipping through the book there were fewer than i had thought. Some notable examples though, are
observer
double buffer
game loop
event queue
dirty flag

Many other patters do deal with objects, so can be said to deal with solving the problems of oop, although i don't think any of the patterns deal with inheritance, which is often regarded as the central dogma of oop. And many of these patterns are actually nice ways of structuring your program even if you don't give a fuck about oop or inheritance.

I forget what my point was with this, but it's a pretty fun book. I recommend it.

Ethan Reyes
Ethan Reyes

I/O mapping
not portable
Yeah, no shit.
Next you're gonna tell us assembly is not portable.

Aiden Bennett
Aiden Bennett

Account numbers should most likely be stored as strings. Account IDs should be stored as integers.

The difference is meaningful leading zeroes and shit like that.

Evan James
Evan James

byte[8]

Aiden Ramirez
Aiden Ramirez

double buffer
Not a "design pattern"
game loop
Not a "design pattern"
event queue
Not a "design pattern"
dirty flag
Not a "design pattern"
observer
Retarded OOP design pattern

You've literally paid money to a fucking guy telling you that a boolean is a design pattern or vector<someAction> is a design pattern or update render loop is a design pattern

Xavier Ramirez
Xavier Ramirez

the logic behind a lock is portable. a lock is a lock, you use it the same way whatever architecture you are targeting. the behavior of volatile is not.

Brandon Rodriguez
Brandon Rodriguez

Doing some work with computer vision, I need some help trying to make this algorithm. I'll probably post this in /sci/ as well, but you all might be able to help.

I'm making an autonomous 1/8th scale racecar. I need a way to get the angle and radius of a turn.
Here's what I know: I know the point which the turn starts and the point which it ends. So effectively, I just need to make an algorithm that can get the angle and radius of a spline.

I had though about trying to treat the spline between A and B as the arc length of an ellipse but that doesn't give me enough information to solve for the angle and radius. Furthermore, I also need to find the apex of the spline. That should be much easier once I have the angle and radius since at that point I can just treat it as a parabola..

Any thoughts?

Gabriel Mitchell
Gabriel Mitchell

Retarded OOP design pattern
Observers are great. What's the alternative to this pattern?

Lincoln Hughes
Lincoln Hughes

I've edited a java library and added some new methods.

I try and call these methods from my program, but they're not recognised.

What am I doing wrong?

Java and Android studio
inb4 java is the problem

Josiah Phillips
Josiah Phillips

What am I missing here? Why doesn't this print the 3?

Hudson Mitchell
Hudson Mitchell

You made them public?

Nathan James
Nathan James

[e -> f a]

Caleb Diaz
Caleb Diaz

er...

Doesn't it completely depend on what kind of curve the real turn has? It could be a circle arc, or it could be a spline curve or whatever. Without knowing that how are you meant to estimate the curve?

Christopher Anderson
Christopher Anderson

the logic behind a lock is portable. a lock is a lock,
Who's talking about locks?
the behavior of volatile is not.
It doesn't need to be.

Adam Hernandez
Adam Hernandez

What's that mean?

Austin Wright
Austin Wright

it means don't try to fucking wrap everything in your oop nonsense

list of classes inheriting from some base class describing event reception
just use a container of functions you dumbass
like callbacks or shit

Leo Jackson
Leo Jackson

It does, I'm trying to find a general solution that works for all cases.

A spline curve can be a circle arc, but an arc is not always a spline.

All I know is the point A and B mentioned beforehand. Surely there's got to be a way.

Ryder Smith
Ryder Smith

Who's talking about locks?
kernel.org/doc/Documentation/volatile-considered-harmful.txt
lkml.org/lkml/2007/5/8/372

Luis Lewis
Luis Lewis

but my question was what's the alternative to the observer pattern?

just don't do it because it's nonsense
isn't much of an answer

Angel Hernandez
Angel Hernandez

I butchered that.. let me try again...

All arcs are splines but not all splines are arcs.

Jose Gutierrez
Jose Gutierrez

Use a container full of functions

Nathaniel Clark
Nathaniel Clark

i would use a bezier curve, and adjust the length of the control point lines as needed.

Jayden Thompson
Jayden Thompson

what do you mean by container? Like.. a collection of functions?

Elijah Roberts
Elijah Roberts

No one in this thread was talking about locks.
We were talking about memory mapped I/O,,which if you actually read your links you'll see they agree that it is the one cases where volatile is appropriate.

Justin Lopez
Justin Lopez

I suspected this post might appear.

These are all solutions to problems that appear, in this case specifically, making real time applications.

What you're doing going "i don't like design patterns, therefor anything i might like can impossibly be a design pattern, by definition". I which case further discussion i useless.

And observer pattern is a way to avoid having one part of the code constantly poking another part of the code and going "are we there yet? are we there yet?". It has nothing to do with oop.

Jordan Morgan
Jordan Morgan

I would, but most turns are going to be a quadratic Bezier curve. I have the start point and end point.. I'll need to find the control point if I want to use it.

Julian Bell
Julian Bell

anything really

You're retarded. ALL of those are not fucking patterns. Jesus Christ.
I guess I'm using the PostOn4chan Pattern right now and the FormBasicSentences Pattern.

The difference between observer and sense is that the sensible solution is just to store functions / callbacks and the stupid solution is to wrap functions inside OOP inheritance objects and then store objects just to stay on the bandwagon

Brandon Butler
Brandon Butler

It's all public.
I've been stuck for days /:

Andrew Barnes
Andrew Barnes

Nevermind, figured it out

Austin Clark
Austin Clark

Post more code than that senpai, otherwise we can't help. If it's too large, make a gist.

Jayden Jenkins
Jayden Jenkins

I'll need to find the control point if I want to use it.
yeah, so estimate where it goes. Not hard.

Adam Price
Adam Price

when does the stack call overflow?

Dominic Adams
Dominic Adams

anything really
How is a collection of functions a replacement for the observer pattern?

Brody Evans
Brody Evans

If all you have is two points, you might as well estimate the curve as the straight line between these points, for all anyone knows.
You also need the irrationality of your points, ie. the tangents, to be able to make a reasonable guess. If you have the tangents you can calculate a control point.

Jonathan Perez
Jonathan Perez

How do you think the observer pattern works?
[object1, object2, object3]
object1/2/3 contain pointers to vtables (which contain pointers to functions)

the rest is just closure

Levi Rivera
Levi Rivera

Have you imported that library?

Jaxson Price
Jaxson Price

qt

Jayden Flores
Jayden Flores

irrationality
*directionality

wtf? i'm starting to suspect my fingers are developing estranged limb syndrome

Noah Robinson
Noah Robinson

Are you sure you are building and linking to the updated library, the version that has your code in it?

Dylan Miller
Dylan Miller

right, well that effectively is the observer pattern to me. Half of all OOP design patterns are just a weird ways of avoiding first class functions.

Lincoln Clark
Lincoln Clark

Most of them are ways of avoiding the proper way of doing things. Because they're got to fit objects in there somewhere. Because it's all about OOP.

Jack Anderson
Jack Anderson

you are confusing a concept with its implementation.

Colton Taylor
Colton Taylor

Is it ok to have more then 1 index in table/mysql?

Aaron Rivera
Aaron Rivera

the proper way
In your opinion.

Joshua Phillips
Joshua Phillips

The fucking premise of the "observer pattern" is OOP.
If it comes bottled with a UML diagram it's probably more OOP trash.

Are you seriously saying fucking avoiding the normal solution for NO REASON OTHER TO INSERT OBJECTS is fucking reasonable?

Jonathan Rogers
Jonathan Rogers

you are talking about vtable which is an implementation technique among others.

Levi Evans
Levi Evans

I'll make a gist account tonight if I'm still stuck, thank you user

I've copied and pasted it into my /libs/ folder, replacing the original, rebuilt, cleaned, synced etc, and it still won't work

It's just not recognising what I've edited, despite my code being correct. Something is wrong in the setup, but I can't find any documentation

Jace Gray
Jace Gray

I'm actually interested in seeing you write a book or an article or something on the PROPER way of doing things. Something concrete, with examples, that a newb could actually learn from and avoid getting stuck in the oop quagmire.

I suspect that a lot of what you write would map directly to what the rest of us think of as design patterns.

Christopher Brown
Christopher Brown

The OOP way literally just fucking complicates things to add objects
How are you defending this

Adam Diaz
Adam Diaz

Are you seriously saying fucking avoiding the normal solution for NO REASON OTHER TO INSERT OBJECTS is fucking reasonable?
Of course it is.

When you design a fully OOP language, you set some constraints for that language. Sometimes you have to make adaptations to adhere to those constraints.

Just like many things in C are completely retarded, but they are that way for performance reasons.

I could come up with a million examples of things that are normal in OOP languages that you would have to do really dumb stuff to accomplish in functional languages.

Joshua Turner
Joshua Turner

credforums.com/thread/56891261/technology
credforums.com/thread/56891261/technology
credforums.com/thread/56891261/technology
credforums.com/thread/56891261/technology

Wyatt Robinson
Wyatt Robinson

You want to know the proper way of doing things?
I'll enlighten you

You see a problem
you find the solution

this is the difficult part
- YOU DON'T TRY TO FIT IT INTO OBJECTS -

you use the solution

Leo Peterson
Leo Peterson

Yeah, well, that's just, like, your opinion, man.

Eli Garcia
Eli Garcia

constraints
That's bullshit.
The reason they do it is because they think it's better.
They think OOP is a good thing.

They definitely don't do it because of "constraints". A "constrained" language looks like C, not like Java or C#.

Jaxon Campbell
Jaxon Campbell

What if your problem is to use objects.

Adam Mitchell
Adam Mitchell

I could come up with a million examples of things that are normal in OOP languages that you would have to do really dumb stuff to accomplish in functional languages.
Give one example.

Kayden Ramirez
Kayden Ramirez

Using objects is normally the problem

Caleb Perry
Caleb Perry

C a constrained language
It's actually the opposite.

Xavier Morales
Xavier Morales

But user, this is how design patterns emerge.

Nolan Hughes
Nolan Hughes

no, a design pattern is like this:

you see the obvious solution
you try to find a way to force fucking objects into it in the most awkward possible format
you brand it as the new Enterprise Observing Entity Component Pattern (TM) (C)

Luis Butler
Luis Butler

We clearly have different concepts of what a design pattern is.

Evan Ramirez
Evan Ramirez

a design pattern is an interface abstraction technique.

Gavin Hernandez
Gavin Hernandez

Yes, you think everything under the sun is a design pattern, and I don't.

Brayden Rivera
Brayden Rivera

#define
and
typedef
are two completely different things, low quality b8.

Jonathan Nelson
Jonathan Nelson

What? They're not conceptually similar? Asking for a little consistency in notation is too much to ask?

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit