/dpt/ - Daily Programming Thread

Old thread: What are you working on Sup Forums?

Other urls found in this thread:

rakudai-kishi.wikia.com/wiki/Nagi_Arisuin
hackage.haskell.org/package/array-0.5.1.1/docs/Data-Array.html
hackage.haskell.org/package/matrix-0.2.1/docs/Data-Matrix.html
wiki.haskell.org/Arrays
pastebin.com/zRSqHZHj
cplusplus.com/reference/cstdio/fopen/
math.stackexchange.com/questions/549254/why-is-a-repeating-decimal-a-rational-number
twitter.com/NSFWRedditGif

Anime is garbage

the other one just got deleted
why are the mods such cunts

Traps are not allowed.

but this op is a trap too

>given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place?

any haskell gurus know how i should approach this?
there's a trap in this op too. it's from rakudai kishi no cavalry

So C primer plus or what book for C?

Are you so delusional that you think there is a penis on everything?

use haskell to open photoshop
rotate 90 degrees
export to same file format
???
PROFIT

rakudai-kishi.wikia.com/wiki/Nagi_Arisuin

Threadly reminder that you should not refer to the act of programming as coding. It is improper and makes you look like a 16 year old

You are a programmer, not a coder

Software Alchemist is GOAT
Developer is okay
Magician is okay
Software Magus is okay
Software Engineer is okay
Software Architect is okay
Computational Conjurer is okay
Information Systems Sorcerer is okay
Purveyor of Programs is okay
Code Guru is questionable

Archmage is reserved for only the most senior of programmers

Writing in HTML and CSS is not programming, therefore it should be referred to as designing

I want to make a website. Is learning HTML, CSS and Javascript worth it? or should I use something like Dreamweaver?

Being petty and pedantic makes you look like a child.

57592210
not one word

Where does "femnigger" rank on this list?

Java/C++ developer here, my job is slowly being converted from writing applications to data validation and report building using SSRS/SSIS and other Microsoft products..

Been thinking about practising some embedded coding for a couple jobs near me.. Would .NET Micro Framework be the best to dig into?

Any recommended books and/or projects to try to practice Embedded programming on?

You guys are quite fucking impolite, what the fuck ? I thought /dpt/ was family friendly.

Fuck off

>get a lot done
>can't check any of it in because I need to spread out my commits so my github calendar has something every day

I hate myself

sorry about the rudeposters

kys my friendo
why do you have to commit something every day?
it will show that you once submitted a quadrillion lines, that should be enough for a couple days
everyone with a brain will see that you can take time off after a big commit

Irrational numbers are spooky.

How can they just go on forever and not repeat?

why tho?

>spook theorem.pdf

Through God, all things are possible

study this
[1,2,3
,4,5,6
,7,8,9]
`ninety`
[7,4,1
,8,5,2
,9,6,3]

do you see the pattern?

oops, ninety is supposed to be unary
anyways, ignore it
the second list is the output

autism

writing a robot that will apply to jobs and stuff on craigslist.

i got taht part wrote now to how sending emails? i'm using python btw any libraries that make sending emails with possible attachemnts good use?

HTML/CSS and Javascript are the current staples for front end web development. But you will also need to learn HTTP and back end programming which could be a ton of languages. Elaborate on what you want to make.

if its nxn, then
ninety = concatMap reverse . transpose

What's even more spooky is that the numbers are evenly distributed.

that should work for NxM, though

sin(pi) how many numberers r there?

Only in normal numbers. Not all irrational numbers are.

three fitty billion

More than one.

just did it with lists of lists

λ> rotateMatrix [[1,2,3],[4,5,6],[7,8,9]]
[[3,6,9],[2,5,8],[1,4,7]]
λ>

the data structure pages confuse the fuck out of me, other than lists and tuples. i tried to use the "matrix" import and then the array import and couldn't make sense of either

what data structures page

hackage.haskell.org/package/array-0.5.1.1/docs/Data-Array.html
hackage.haskell.org/package/matrix-0.2.1/docs/Data-Matrix.html
wiki.haskell.org/Arrays

I have ideas for 2 websites. One is very simple (portfolio, sales) and the other one I think is complex.

I studied HTML and Java like 18 years ago but I know nothing about coding anymore, I thought about learning because I'm NEET and can't pay anyone to do this for me

Ok, what's the problems with the imports?

well for one it tells me
λ> :m Data.Matrix

:
Could not find module `Data.Matrix'
Perhaps you meant
Data.Ratio (from base)
Data.Ratio (needs flag -package haskell2010-1.1.1.0)
λ>

Data.Matrix isn't included by default. You have to install it. At the command line, type "cabal install matrix"

Anything with dynamic content is going to require going beyond html/css/js front end stuff.

Start with relearning html/css and js then pick a modern back end framework to work with

Some back end options:
>django
>ruby on rails
>node.js w/ libraries
>Go and its 3000 back end web libraries

Also lurk /wdg/

You're using GHCI?
Make sure you actually have the packages installed, or alternatively, you can set up a small cabal project with a bunch of dependencies, then use "cabal repl"

Thanks

i didn't even have cabal installed. it took forever installing matrix but it did. was that because of a lot of dependencies i had to DL or does it just take a long time?

Just rewrote my Python tool in C and cut down execution time from 8.5s to 1.7s.

>img
wtf

So are you saying you did a piss poor job or what is this tool?

No its far more spooky when they're not.

I did an okay job.

The tool's bottleneck relied heavily on the bitarray package (made in C) so I wondered how much of a gain I would get doing the same thing using bit arrays directly in C.

implement a fold in java

i skipped to the last line, top jej

>the numbers have the same random chance of appearing
>there are ten numbers
>all of them have a ~1/10 frequency
Soo magical

>wonder why my code isn't working, having taken this advice before
>undo the changes suggested in this post
>code works

I've got this program for making a .tar, my teacher wants it so if I call the program again it just adds more files, but my program overrides the old file and I dont know why.

pastebin.com/zRSqHZHj

See cplusplus.com/reference/cstdio/fopen/
>write: Create an empty file for output operations. If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file.
This, in particular:
>If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file.

You don't want to use fopen with mode "w" to add more stuff.

If they did repeat, then they'd HAVE to be rational.

math.stackexchange.com/questions/549254/why-is-a-repeating-decimal-a-rational-number

And we know from many proofs that irrational numbers HAVE to exist.

I've been referring to myself as loser all this time.

Is there a way to edit a specific index in a buffer in WebGL?
And will I have to recreate the VAO if I do that?
I'm wanting to do liquid simulations.

I just cycled through a bunch of those options and none of the changed anything

Let's see those github profiles, /dpt/. You haven't been slacking, have you?

I dont have github, all my code is closed source.

"Software Developer" is what it says on my contract and what I will states for any official questionnaire. "code monkey" otherwise.

haha, can't even do it

anyone done something like this? I have a linux server running that is monitoring some things via cron jobs and want it to trigger alarm on my android phone based on what it's seeing. right now I just have it emailing me.

I want to write some more image filters, just for shits. What do?

Write a filter that makes tripcodes disappear

Welcome to Sup Forums.

Not possible.

user was right

i love haskell so much

haskell is cute
cute

can you do /pol now

he might get a virus

(it's a shit)

>/pol
>one slash
into the >>>/reddit/ you go my friend

says the C# dev

C# is (((multi-paradigm))) and it's good.

C# is inferior in every respect to Haskell

Incorrect.

Wrong.

Explain

If hasklel is so useful why no company uses it?

Gen Z confirmed for most based generation. If we wiped millennials off the face of the planet the world would instantly become a better place to live in.

They're on the anti-haskell masturbation train

It's painfully slow

Only for large high performance applications

If hasklel is so marvelous then why do universities prefer to teach lisp over it?

Because jewniversities are filled with old, shriveled up kikes and (((LISP))) has been their favorite language since the 70s.

Universities are fucking retarded

I'm currently learning Haskell at my University on the contrary.

back to /o/ fag

Does anyone bother to learn perl now in days? What's it used for in the real world besides parsing large amounts of data?

Why don't you go back to Sup Forums where you belong?

i don't even know why everyone here fawns over lisp, it must be a meme or something

i can't even generate a hello world executable that's not 50 mb at least

how about you go back to your board already and stop shitting up /dpt/

>= Natural =
So all that puffy is actually the bush?