/dpt/ - Daily Programming Thread

Haskell edition

What are you working on, Jow Forums?

Previous thread:

Attached: 1532244361422.jpg (1120x840, 130K)

Other urls found in this thread:

learnopengl.com/
download.gnu.org/projects/software/emacs/releases/22.1.9b/lisp/etc/nichijou_blue_v2.1.tar.gz
github.com/chromium/chromium
ix.io/1nXU
ptpb.pw/rFku
twitter.com/NSFWRedditGif

>What are you working on, Jow Forums?
motivation to do this school assignment

first for haskell

How do I into hard work???

>Haskell edition
>no code
checks out

first for frogposters

Attached: 1534385333928.png (271x186, 7K)

amphetamine

FUCKING CAPTCHA
WHY DOES GOOGLE EVEN GIVE A FUCK ABOUT CHIMNEYS

Attached: 1518915826960.png (1280x720, 436K)

I'll do it

>he needs to declare a name before assigning to it
tell me, do you need to state its type as well because the compiler can't do inference?

Thanks bro but I'm on it. If I can just typing stupid shit here I should have it done in like... 20 minutes.
Here I go

main = fuck user

Stop telling everyone about my school project, user.

Attached: 1538252074971.gif (320x240, 2.09M)

to track individual's carbon footprint

That reminds me that my pass is expiring tomorrow.

Attached: raw.gif (498x264, 920K)

without j*vvish drugs?

return . fuck . nigger $ you

>unwittingly piss off power-tripping mod
>$20 down the drain

great idea buddy

can't be done

you have to be pretty fucking autistic to get banned from Jow Forums

Build habits

i once got banned for a month for a offense that is typically 3 days because a mod saw that I had 20+ previous bans and wrote that in the ban reason

fucking mods get fucked

I got banned once for posting unspoilered titties in a onepagethread on /a/, but that's it. I was going to complain, but it was just a 24 hour dealie.

>I had 20+ previous bans
Reflect on your sins, my son

i mean you're gonna call me a mod shitter but that's perfectly valid.

Honestly, it's a lot easier than you think.

Is it possible to run Python code on a website and display the results? Is it also an issue of whether your hosting actually allows it?

You can't tell me than you haven't shitposted even once

as I said, pretty fucking autistic

10 years and I've only been warned for posting porn on /a/

typically online compilers just use a VM and pipe the results.

wtf opengl is awful
wtf i hate state machines now

I'm probably too passionate about certain subjects. I've had a few unwarranted bans, but 90% of them were justified.

>he still uses OpenGL 2

I derail entire threads with pointless arguments all the time so I'm not sure what you're doing that gets you banned

Any way I could do that on my local machine to see how it'd look? I don't have a website or hosting atm.
>OpenG
Ah, it ain't that bad. I think the hardest part for me was the lack of documentation or helpful tutorials on the net. I felt a lot more satisfied when I finished a small game though. Hell, I found OpenGL ES to be a whole lot worse and that was switching C++ to Java.

>clearly a get image
>banned for doing a get
you niggers are making me look like MIDF for pointing out your retardation.
granted those trips should have let you off.

It's done.

>I think the hardest part for me was the lack of documentation or helpful tutorials on the net.
who are you kidding? OpenGL has a wiki and online manual which are incredibly easy to read aswell as at least 5 in-depth, third party tutorials on how to do pretty much everything

JavaScript rocks!

Well, guess I was just an idiot that couldn't those tp-tutorials. I couldn't even find some Indians on YouTube.

Attached: 1538266342535.png (568x433, 122K)

learnopengl.com/
first google result
wow

Haha nice

>random

Attached: listenhereyoulittleshit.jpg (300x341, 46K)

user, stop being so aggressive!

>Nichijou Blue pack
>not saving them as PNG

Disgusting. Somebody cropped them and then thought "yeah, instead of leaving the transparency alone, I'm gonna add a background"

What are you trying to hide, you little shit?

Attached: 2018-09-30_23-10-41.png (524x180, 36K)

Jow Forums didn't handle transparency correctly back when Nichijou was airing. The thumbnails ended up with a black background.

>hurr durr I need muh motivation
>only takes 20 minutes
the 6 gorillion captchas for your posts took more time

where can i get this Nichijou blue pack?

Attached: message_me_back.jpg (567x545, 84K)

Just deleting any offtopic posts to appease mods.
Technologically speaking NichiBlue should get updated to .png, but no one would ever go through all that work.

Attached: IMG_1015_2.jpg (300x296, 26K)

Mainly I am the code monkey using C++. Recently I've been getting into data science (university teaches that). There was a first assignment and I sucked a dick.

How do I get good? Any books? Doing it in Python. While code might not be a problem and I will get there eventually, I feel I don't know what to do with values. I calculate medians, deviations but don't use KMeans and DBScan since I don't know gow to interpret them.

What do I do?

Attached: 1524484078546.jpg (646x797, 79K)

download.gnu.org/projects/software/emacs/releases/22.1.9b/lisp/etc/nichijou_blue_v2.1.tar.gz

My point was that somebody already went through the trouble of removing the background and decided to not save the images as PNG.

i've been had

Attached: shinji_coffee.png (714x940, 889K)

from my cold dead hard drive.

Although I'm pretty sure I don't have the final one, so maybe nyaa?

Attached: 275.jpg (363x210, 43K)

can i get uhhhhhhhhhhhhhhhhhhhhhhh
common lisp job?

Attached: no_guard_wife.png (650x376, 246K)

good job user

Abandon that gay ass field. It's somewhere between advanced statistics and just fucking guessing and making up shit as to why it worked. It's a hectic and non-nonsensical field for the type of people who enjoy memorizing and experimenting (scientist types). Just focus on the important parts and be happy: Engineering and mathematics.

you can get a clojure job.

lisp machine broke

Thanks bro

>Thinking I need to do a captcha
Do I look like a poorfag?

>non-nonsensical
I'm gay and stupid.

Can anyone please help? I am encountering a fair bit of trouble when I use hexadecimals in C++.
For some reason when I get to the larger numbers, it keeps outputting ffffffff in front of them. For ex: ffffffff9a245078
I think this has to do with data storage and it looping over and around, but I'm unsure how to fix it. I'm already using unsigned long long 's if that helps.
Please help anons I don't know too much about lower level errors as I'm presuming that this is.

Attached: pasta chick.png (1400x1400, 2.58M)

>it's another 'huge bug that doesn't happen inside of valgrind or a debugger' episode
Time to die.

Attached: 1537243747151.jpg (1280x720, 107K)

post code

>its an -O3 makes the program crash episode

sign extension probably.

I do. I just want to get through the course and receive a good grade. I believe tackling troubles there would help me.

Attached: 300x3001.jpg (300x480, 24K)

understandable, have a blub day

machine learning is an interesting tool that can be used to solve a problem in a completely different way with completely different benefits and demerits compared to traditional approaches--and that's it.

Never take machine learning to be more than that. If you do, you'll mire yourself in inane shit like interpretability, `````ethics'''''', the application and maintenance of black box systems with cascading dependencies upon one another....

Why projects in Python like Chromium needs to be built?
I thought the whole point of interpreted languages was not requiring being pre-compiled/built.

Attached: 154896214598455.png (207x243, 7K)

I can't post my code as it's for a school project, sorry. But it is working for lower numbers right now so I know the algorithm and whatnot is correct.

Thank you, I'm looking into this right now.

Attached: sloth.jpg (647x400, 73K)

there isn't a brainlet image that can properly do that post justice.

>chromium
>Python project
funny joke
have you heard of foreign function interfaces?

How do I install Flask with Python?
I'm trying to use pip, but it's not a recognized command apparently. Does pip come pre-installed with Python? I'm running the latest.

I checked this graph and the guide to build it says it requires Python and Visual Studio. That's all I know.

Attached: 15789621458985.png (986x58, 4K)

what sort of arithmetic operations are doing and between what types

>GitHub pull request from user with Anime avatar

Attached: 3a7.jpg (680x680, 77K)

Yeah, idk where you are buddy...
github.com/chromium/chromium

>people without anime avatars

Attached: 1529426459043.jpg (700x479, 21K)

i'm about to finish up my degree in biotechnology and realize I don't like working in the industry.. lol. im trying to expose myself to programming and CS to see if I enjoy it but im not sure if I should stick with something I don't enjoy. do you guys genuinely like to program?

pip comes preinstalled with python since a couple of years
if you can run python but not pip on a single terminal, try running the installer again and make sure it has the "set path variables" thing checked

I am moduloing the numbers to check if they are divisible by their own length. For example, if an 8 digit hex number modulod by 8 is equal to 0. If so, then I output it. Otherwise I'm checking for duplicates (so no one number has multiple of the same digit in it) and that's all.

A Chromium fork.
The core should be the same.

yes, it gives a nice dopamine high when I solve a programming problem

>do you guys genuinely like to program?
Yes

if you won't post code, at least post some i/o, both expected and actual

so I've got this website template I'm working on to learn PHP/JS (yes, I know) and I'm trying to deal with some crappy animations in several buttons on the home page

how can I trace the code where they're coming from to edit/delete them?

Debugging with the dev tools of your browser

Also

I just started to figure out frontend stuff last friday, having a hard time with this specifically

guess I'll try on that thread as well

You can get temp banned by mods while using a pass, but only admins can permaban a pass user. One of my pass was permabanned for joking about CP.

let's replace that

Attached: 1536111285398.jpg (251x231, 11K)

PlayerName = ""
EnemyName = ""
StartingAttack = 0
StartingPlayer = 0
SecondPlayer = 0

#Who attacks first?
StartingAttack = random.randint(0,2)
if StartingAttack == 1:
StartingPlayer == PlayerName
SecondPlayer == EnemyName
if StartingAttack == 2:
StartingPlayer == EnemyName
SecondPlayer == PlayerName

print("The character who starts attacking first is" + str(StartingPlayer))

How come it's not displaying the StartingPlayer as anything but 0?

Replace a few == with =

== compares
= assigns

> StartingPlayer == PlayerName

Just started Learning how to use pointers, can someone explain to me why

*dataPtr = tempNode->data;

can give me a different number to

dataPtr = &(tempNode->data);

Attached: 1514505603557.jpg (910x1050, 299K)

help me you faggots
ix.io/1nXU

i'm not clicking that virus

>help me you faggots
Separate the name of the person (or thing) you are addressing from the rest of the sentence with a comma, like so: "Help me, you faggots."
You're welcome.

ptpb.pw/rFku
with the compile error, not my english

leave

Attached: 743e87fbf109d0be41a27353b612cb11.jpg (368x451, 132K)