/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Previous thread:

Attached: MILF.jpg (520x340, 79K)

Other urls found in this thread:

java2s.com/Tutorial/Java/0261__2D-Graphics/DrawRectangle.htm
mathbits.com/MathBits/Java/Graphics/GraphingFill.htm
twitter.com/NSFWRedditVideo

SICP makes me feel like a brainlet

>she
>begin amazing at coding

Learning Erlang.
10/10 can recommend.

>she

Wait until you chucklefucks figure out some people don't go by he or she pronouns

You ignore those people because they're seeking attention.

We should ban C, C++, Java, C#, and Python from being taught in university CS programs. They have no academic merit. They are industry warts. If companies want people to use them then they should provide training.

(attack helicopter)

t. zoomer web ""dev""

Erlang is for people who can't write code that doesn't crash.

We should preemptively ban JS from being taught in them too.

So, everyone then?
Or do you claim that you've ever written a sizeable piece of software which can't crash?

>tfw web dev
>tfw making $102K
>tfw not in SF

feels good

>Or do you claim that you've ever written a sizeable piece of software which can't crash?
Yes. I have.

fizzbuzz doesn't count

Show your work user. Code or gtfo.

Gender type is Turing complete rigth? /dpt/

...

erlang so good that everyone in the field is doing his own programming language to avoid it (efl, elixir, joxa, clojerl, ...)

Imagine designing a language, and deciding that integer overflow shouldn't throw a massive fucking exception right then and there.

Attached: slip into something more comfortable quake.jpg (614x696, 76K)

Ask to pony 1/ 0 = 0

It seems to be because of zoomer webdev brainlets who can't stand the idea of a language which doesn't have every feature they can think of while trying to take their mind off of their wife getting fucked by tyrone.
Erlang is not perfect but it doesn't look like the "erlang vm based" languages which followed it are much better.

nice projection

this is so wrong

Resuming pic related, send help senpaitachis. Any pointers forward appreciated.
>Windows
>Python or Java
>draw pic related on screen
>do it from scratch

Never done any graphics programming. No idea where to start.

Attached: how the fuck.png (304x263, 2K)

Except I don't have a wife who is getting fucked by Tyrone and don't have some weird obsession with fat bloated languages, and I'm not a zoomer.
Where is the projection? Or maybe I hit too close to home?

Drew Red,Blue,White and green rectangle, overlap made cute effect.

Java use swing.
java2s.com/Tutorial/Java/0261__2D-Graphics/DrawRectangle.htm

mathbits.com/MathBits/Java/Graphics/GraphingFill.htm

SetColors and use fillrect

enjoy it while it lasts, web dev will eventually get automated or just resumed to drag-n-drop visual BS

t. delusional jelly retard

>Java use swing.
Do you know what "from the scratch" means, Mudasir?

why are you getting to dirty thoughts, you fucking cuckold-er?

I found myself wanting a program that takes source files, renders code blocks as visual blocks, and allows you to drag and drop them in a 2D space that represents files.

For example, you could have 2 squares for files, and inside those squares are more squares that indicate functions, and I could just drag the entire thing from file A to an arbitrary position between blocks in another file.

Even though I could use my text editor, I want to get a visual overview of an entire project and make what are essentially just lexical and hierarchical layout changes, quickly.

Does something like this exist?

Attached: drag and drop bullshit.png (1714x809, 34K)

I sure do Rajesh Kumar,

that's gay user
and this is coming from a girl (male)

Attached: 1437783907849.jpg (1024x1502, 263K)

get help

I think over 70% of my porn collection is Asian ladyboys so it checks out.

On topic, I think this would be useful in the same way vim and emacs treat text as objects for faster editing, I want something that does the same for movement alone. And has some level of awareness of programming languages so you could move a function but pull its declarations or dependencies too.

I could improve the reading experience for developers drastically for an entire project in just seconds in 1 view/context.

Then you are my new best friend ,thanks you be! :)

>I think over 70% of my porn collection is Asian ladyboys so it checks out.
Rawr x3 *nuzzles* how are you *pounces on you* you're so warm o3o *notices you have a bulge* o: someone's happy ;) *nuzzles your necky wecky~* murr~ hehehe *rubbies your bulgy wolgy* you're so big :oooo *rubbies more on your bulgy wolgy* it doesn't stop growing ·///· *kisses you and lickies your necky* daddy likies (; *nuzzles wuzzles* I hope daddy really likes $: *wiggles butt and squirms* I want to see your big daddy meat~ *wiggles butt* I have a little itch o3o *wags tail* can you please get my itch~ *puts paws on your chest* nyea~ its a seven inch itch *rubs your chest* can you help me pwease *squirms* pwetty pwease *sad face* I need to be punished *runs paws down your chest and bites lip* like I need to be punished really good~ *paws on your bulge as I lick my lips* I'm getting thirsty. I can go for some milk *unbuttons your pants as my eyes glow* you smell so musky :v *licks shaft* mmmm~ so musky *drools all over your cock* your daddy meat I like *fondles* Mr. Fuzzy Balls hehe *puts snout on balls and inhales deeply* oh god im so hard~ *licks balls* punish me daddy~ nyea~ *squirms more and wiggles butt* I love your musky goodness *bites lip* please punish me *licks lips* nyea~ *suckles on your tip* so good *licks pre of your cock* salty goodness~ *eyes role back and goes balls deep* mmmm~ *moans and suckles* o3o

what the fuck

Attached: no mass effect.gif (245x245, 530K)

I may like boys, but I don't like faggots.

I'm trying to transform pandas dateframe from int to string.
I've tried apply and str but it is not working for me.
Can I get spoonfed ?

Dataframe*

python:
import tkinter, random
def within(m, v, f):
if v < m * f or v >= m * (1 - f):
return True
return False
def color_at(w, h, x, y):
if within(w, x, 0.1) or within(h, y, 0.1):
return '#ec1c24'
if within(w, x, 0.12) or within(h, y, 0.12):
return '#09a2e6'
if within(w, x, 0.2) or within(h, y, 0.2):
return '#ffffff'
return '#1eb04e'
WIDTH = 400
HEIGHT = 400
t = tkinter.Tk()
i = tkinter.PhotoImage(width=WIDTH, height=HEIGHT)
for y in range(HEIGHT):
for x in range(WIDTH):
i.put(color_at(WIDTH, HEIGHT, x, y), (x, y))
c = tkinter.Canvas(t, width=WIDTH, height=HEIGHT)
c.pack()
c.create_image(0, 0, image=i, anchor=tkinter.NW)
t.mainloop()

Anyone using ElastiCache? How does pricing and convenience compare to rolling your own Redis data store?

DO NOT fall for the aws meme, whatever the product is. It's the most overpriced overhyped piece of shit in the whole market.

Actually it should make more sense to just use < and > and use m - 1 instead of m.

Maybe you're right. i keep seeing comments like yours popping out everywhere saying it ends up being really expensive.
I also don't like all the buzzwords and meme words they use for everything.

anyone who knows a little bit of assembly or related to this:
im making comercial software for business and Im using an inline function to check if the user has unlocked the software with his credentials to prevent it being cracked too soon. the thing is that im not sure if i should inline this function EVERYWHERE or on every "if" statement at least, because im worried that the crackers probably wont find every single time the function is used and it would en up fucking up the program for the end-user and cause bad reputation since most people use cracked shit. what do you think?

Attached: fragile.jpg (750x750, 76K)

its very fast c++ software, so I can literally inline this function everywhere, but i'm not sure if I should.

Just opensource it, one less thing to worry about.

>anyone who knows a little bit of assembly or related to this:
Any self respecting cracker will stop patching in skips to skip the check and will look for a way to make the check succeed every time after they find the third check.
Solution: stop with the software licensing meme, sell support not software. I wouldn't use any software where I could see and modify the software, even if I couldn't distribute the modified software.

Kek

its core functionality will be an opensource API. Im trying to make a business out of it by offering support to interested companies/ advanced users

>software
>business
>money
>2018 A.D.
user, I...

Attached: 843894783247.jpg (852x480, 34K)

>Wake up
>Have a cold and can't focus
>Take ibuprofen, paracematol and amphetamine
>Can focus

Current year best year

Attached: velociraptor shark bazooka dinosaur.png (691x555, 516K)

I want it to be easily cracked but at least take a few days after relase. I just need to be sure that the crackers dont release it fucked up under the hood.

>amphetamine
wut

>2000+18
>still not having your own software company

>underestimating satan trips

It would take someone with experience about an hour at most to break what you're describing.
The limiting factor is how long it takes before someone with experience bothers.
Making the checking more complicated isn't going to cause any problems.

I’m not sure if I understand. If you know it’s going to fuck up the state then don’t let the software run. On the first failure present the user with a pirate copy detected prompt or something.

>no moda
not gonna make it

Never tried it. Might buy some to test.

Attached: golden ratio.jpg (704x703, 82K)

What are some good drugs for someone with a low attention span and anxiety? I've looked into phenibut for self medication, but what are some other good ones? My psychiatrist is not the prescription type, so I'll have to seek another psychiatrist.

Attached: elliot_ep2.jpg (640x411, 49K)

Don't abuse it though. Went overboard during last year's exam season - at peak, didn't sleep 2 days before an exam, and just popped moda, icecream, and peanut butter; now I feel like I've dropped 20 IQ points

Amphetamine or Methylphenidate is what is usually prescribed for ADHD.
Not sure how they affect your anxiety part.

>didn't sleep 2 days before an exam
I only take when I wake up, it never affected my sleeping schedule.

> I feel like I've dropped 20 IQ points
Doubt it. I know people who constantly stay awake for 3-4 days (for some reason) and their brains *seem* unaffected so far. Not something I'd recommend of course, and it probably can mess you up in the long run, but one time here and there probably has an insignificant effect on your brain.

ok, pretty good then. I found this to be the only method tedious enough for the cracker since apparently they would have to "delete" the inlined function each time.

indeed, but looking at the code will end up being vomit inducing. the function appears many times.

pic related is a real computer architecture genius, however it is worth to mention that she was a man until the late 1960s and had surgery to become a woman

>it is worth to mention
Is it tho?

> IBM fired Conway in 1968 after she revealed her intention to transition[21] to a female gender role.
Based and redpilled. Too bad he transitioned so late - he missed the lynchings of fags and other degenerates.

Attached: 1489738585438.png (604x516, 88K)

There's a reaspn for that.

Dumb fucking frogposter

hey Jow Forums, how would you overload an operator without implementing a friend function?

Remember the day of the G A S is coming, sodomite

Attached: 412841723482.png (1015x1527, 441K)

It really isn’t. You’re as delusional as a tumblrite who believes communism is coming

Working on placing my face in those titties and going "blubablubabluba"

That’s a man

At the same time, those are titties.

>delusional
I've got news for you - both are coming, and only one will triumph - the side of the light, of love, and of life.

Hail victory!

Attached: 1536145602785.jpg (3000x2055, 1.18M)

I know. But you can still pretend those bolt-ons are real by placing a bag over its head.

Who's the burn victim?

A mentally ill person.

Wow, someone really got triggered deleting all those posts.

>mfw a mod got triggered by this thread
>mfw I have no face

rude

Remember tranny income outside prostitution is programming Jow Forums is tranny board.

What do they tell people to call them in Spanish or French?
They can’t stop at English. If they are serious about pronouns, they gotta say what to call them in every language.

I've yet to see someone use other pronouns than "il/elle" in France. tbqh anything other than that would sound pretty fucking stupid

>the general circlejerks on programming kneesocks
>gets triggered by a transgender person
Stop screeching, you should know by now that being transgender usually correlates with being good at programming/IT.

Attached: Sophie_Wilson.jpg (640x426, 291K)

Indeed, I want to make a program that deletes all the watermarks in a .pdf file.
I'm thinking, the program should be able to open the .pdf as if it were a series of images of the same size, iteratively delete everything within a given set of coordinates which corresponds to the watermarks in each page, iteratively fill the holes with a chosen color, and then convert the images back to .pdf format; however I have no idea how to actually achieve that much.
Gentlemen, what can I do?

>Trolling next Women day put image “happy day women in tech”(text) and put only dozens MtF as women.

>mfw this faggot janitor submitted a ban request
>mfw he deleted my post but not the post by the other user that says basically the same thing
>mfw I still have no face
You faggot janitor, if you're going to be a retarded cock sucker at least so it right

Attached: Screenshot_Photos_20180906-171614.png (1920x1080, 2.64M)

didn't even read the context but you should be permabanned for uploading a fucking MOBILE PICTURE OF YOUR SCREEN - in fucking .png

I know it's a long shot but does anyone here know how to print formatted string in MIPS?
Tried to google but couldn't find the answer, answer that I would understand at least

I tried following my book's vague example and this is what I ended up with but it only prints "Hello, number is %d\n" without replacing the placeholder

.data
pro: .asciiz "Hello, number is %d\n"

.text
addi $t0, $zero, 3
la $a0, pro
move $a1, $t0
jal print

.text

print:

li $v0, 4
la $a0, pro
syscall

I'm so sorry user, I never phonepost but this faggot janitor tried to ban me so I can't post for 15min from my computer

Step 1: Realise that this isn't how PDF works;
Step 2: Realise that PDF is a horrid mess;
Step 3: Maybe try solving the problem by removing PDF objects within a region;
Step 4: Realise this is not going to work and give up.

Stop drawing attention to my post user, I don't want it deleted too.

You need a routine to replace "%d" with the number.

how do i set a value in an ArrayList of ArrayLists?

Its not letting me use A[1][1] = XYZ;