/dpt/ - Daily Programming Thread

old thread: What are you working on, Sup Forums?

Other urls found in this thread:

pastebin.com/GpsLrG9k
twitter.com/SFWRedditImages

First for Go

Installing Fedora like the Linux bible told me to

old threads about to die

can someone help me with rails?
this guide told me to make this Category in seeds.rb, is that right? shouldn't Category get it's own index or something?

Reminder that unityfags and winbabies are not allowed in this thread.

Implementing macros in my lisp

How is this image related to programming in the slightest?
Get this Sup Forums tier garbage out of here.

...

Nothing.
How do you guys find stuff to do? I've been pretty much sitting in front of an empty IDE for 3 days.

cool thanks

I only do big projects (i.e. take 1+ years to complete). This way I never run out of things to do, as I have more than enough time to figure out a new project. Of course the initial project might be tricky, but after that it is easy.

impressive render, although light is a bit off

>Draw a girl
>Call it a boy
How the this acceptable?

Same desu.
I could solve yet another project euler problem.
Or learn yet another language.
Or write yet another sorting algorithm/whatever generic compsci practice problem.

But those things don't give me the same enjoyment anymore.
I want to try making something bigger, something that's actually useful... a complete product, in a sense.

My problem is just that I can't think of anything that would be fun or useful enough that I would stick it through and see the project to its end. Everything is either too big in scope, dead boring or has been done before a million times.

I am using the bash on windows thing. Am I a programmer yet?

I don't know what it means to put women on a pedestal. They just scare me so i stay away from them.

grow the fuck up

You're treating women as unapproachable deities.

Stop.

hi, i need a little help reversing this proprietary thumbnail
already tried emailing the devs, no response
found on some forums that what i'm looking at is a base64 encoded png stream
here's an example pastebin.com/GpsLrG9k
the final image should have a 16:9 ratio, unsure of the size..

what i've done so far: figured out that the charset used is [a-z,A-Z,0-9] and [.+] but standard base64 encoding uses + and / instead of + and .
replacing .'s with /'s didn't work, replacing +'s with /'s and .'s with +'s didn't work. by didn't work i mean i decode the base64 as binary and write it to a png file, but the file doesn't open at all in an image viewer

do i need to fucking try every permutation of possible mappings of the current char set to the real base64 one? how will i test to see if i get a valid png out of it?
using python.. here's my code so far
import base64
import xml.etree.ElementTree as ET

xmlfile = './test_thumb.xml'

tree = ET.parse(xmlfile)
root = tree.getroot()

b64 = root[1][0].get('data')
b64 = b64.replace('.','/')

# padding (unnecessary)
# b64 = b64 + "=" * ((4 - len(b64) % 4) % 4)

bb64 = bytes(b64, 'utf-8')
png_recovered = base64.b64decode(bb64)

f = open("./test.png", "wb")
f.write(png_recovered)
f.close()


any help is appreciated

What's scary about them?

everyone knows wearing girls clothes makes you a better programmer

good lad

pic related
just pick one of the yellow ones or red and get at it.

he's probably ugly and he thinks they're like the valley girls on tv who wince when ugly people talk to them

>hi, i need a little help reversing this proprietary thumbnail
See the button on your keyboard that says PrtScr\nSysRq?

>everyone knows wearing girls clothes makes you a better programmer
Disagree, I find it easier to work when wearing boys clothes.

You're autistic if you really believe that

i'd like to do it programmatically because there's about 1000 of them in total
i already implemented a hacky solution of opening up the file and using ffmpeg to make a screenshot but said program uses a proprietary codec so i have to use the original source files , which if i plan to release this for other people to use is too large of an assumption

i want her feet

I want to tickle her feet and do humiliating thing to her and them.

>her

ugh

What is Sup Forums's opinion of smalltalk?

>or anybody else that you know
Such a bad idea, it will include even people that I hate.

Thats another phrase i dont understand, at least in this context.
It implies that i'm acting childish right? But whats childish about avoiding things you don't want to be around?
I don't really see them as any better or worse than me, they just make me feel uncomfortable.
I can't say for sure. I just feel anxious and uncomfortable around them.
Don't really know what to feel about my appearance.

It's one of the "one hammer to nail them all" languages that fail to gain notable traction for this very reason.

Well in any case you are missing the header.
Base64 files start off like this: data:image/png;base64,

But you're right in that it's not normal base64. It could be some other standard encoding I'm not familiar with, but if you're unlucky they've rolled their own in which case you need to reverse the binary that encoded them.

Can you articulate why you feel uncomfortable around women?

They're people too, in the same way that children are people too.

Is it because they have different genitals to you?

Was thinking of making a lan chat program similar to picto chat on the old DS, except people connected on the same network/subnet talk to each other. The similarity to picto chat being that there's no central server, people just send off messages and other people listening receive them.

The thing is, I don't know too much about it, I've only ever made P2P socket connections between two sockets that were aware of each other. Any good resources on this?

It's a meme you dip

The fact that is has lambdas (blocks) and uses them constantly for everything in a way that fits perfectly with OOP; makes me wonder why Java took two decades to implement them.

Seriously though, why is Java such a complete piece of garbage? It came after smalltalk and was directly inspired by it. Shouldn't the designers have thought "this block concept is pretty neat, let's include it" at some point during the early design of the language?

I guess i'm afraid that i'm going to do something to offend them, and they're going to hate me for it and hope i die.
Well i'm afraid of people in general. Its just that i'm more afraid of women.

pls explain extern in c pls

REMBER


NO windwos
NO gui editors
NO ides
NO c#
NO Unity
NO fucking game shit

Keep dpt PURE

Remember, no russian.

>NO spelling
>ONLY fizzbuzzes

>I guess i'm afraid that i'm going to do something to offend them, and they're going to hate me for it and hope i die.

Are you afraid that they're all SJW hair-dyed freaks that will accuse you of rape or sexism or whatever?
You spend too much time on this board.

>just pick one of the yellow ones or red and get at it.
To be honest, I kind of avoid doing programming challenges. They just don't give any enjoyment, and I have a hard time motivating myself to develop something, that seems actually useful to myself. Kind of like said.
However, doing something is probably better than doing nothing at all, so thank you anyways. I'll try some of the challenges you posted. It's probably more exciting than I assume.

>NO fucking game shit
Game shit is fine as long as you are making an engine in a proper language and with proper free libraries.

OP, millions of people in other parts of the world hate you and hope you die. Just to put this all in perspective.

If you're not deliberately trying to offend or provoke someone, they won't hate you and wish ill upon you. Most people just don't have time for that, and are mentally stable enough to keep any faux pas you commit in perspective. They might think you're a jerk, but really, so what? Fuck 'em.

Speaking of free libraries, should I be using gcl or clisp?

You should just stop caring so much about what other people think of you. That will lower the stakes of being around others and should help with your anxiety.

You summbitch

Some example for projects that scale nicely regarding effort and still are useful are random generation tools for things. For example, a random wallpaper generator.

NETWORKS

Write a Sup Forums parser, which reads posts and does basic spellchecking on them before serving them to you.

>Keep dpt PURE
Then you fuck off first pls.

Steelbank is the fastest and the one under the most heavy development to my knowledge.

Why do you fucks care about this social outcasts gynophobia?
Just let him figure out hos own shit, this thread is for programming.

But is it free?

I just got a job offer for $125k software dev in San Francisco. I should be thrilled but I am second guessing myself, moving and all

Can anyone else weigh in their thoughts about the area, moving for a job, or something?

Yes, it's 100% free as in freedom.

what company
if you dont want the job i'll take it

Fordi jeg vil hjelpe ham. Han må slutte å være redd for kvinner.

that's not enough to live comfortably
account for cost of living when looking @ salary
that being said, being in the SF area as a programmer means it'll be easy to find another job in a year or two

so why aren't modern operating systems made with persistent memory by default

i.e.

- all operations automatically persist to permanent storage, and memory is only used as cache

- every time you boot your computer, it always resumes the exact same state you were in before shutting down

- you never have to save files because your editor's complete state is already on your hard disk

etc

Whats the desired salary range to live comfortably? I thought that salary would be a lot better than what I imagined most places. Im pretty new to the industry

Work out how much your living costs will be, and what your commute will be. I'd much rather take $110k in Pittsburgh than $125k in parts of Cali.

It's called hibernate.

>$125k software dev
Take it

>that's not enough to live comfortably
What the hell are you talking about? If you are just 1 person then you can live very comfortably even with $25k.

not sure about in the city, but 125k is more than fine if you live outside the city and just take bart or commute every day

Why is javascript so shit?

Trying to learn it, because that's where all the jobs are, but this nonsense is so bad, that it's making me miss Java.

What kind of retard thought dynamic "typing" was a good idea?

Speak american u terrorist

that's not what i'm talking about

what if shutdown was transparently the same as hibernate because everything is automatically always persisted to disk

indeed

In the bay area, housing is stupid expensive.
He will barely be able to scrape by with 125k a year.

Dynamic typing isn't really the main issue. Weak typing is. Look up JSfuck on wikipedia.

how much experience do you have?

I suggest you look at the city on a map from streetview. The pay might be awesome, but it's going to be jarring if you've never been to a city before. The streets are very uneven. So sure you can walk everywhere, but it's nasty in places.

The homeless problem, well, it's bad.

If you can tolerate the city, I'd say go for it. You'll have amazing opportunities. Literally places you can walk to for a different job a few blocks down.

>Why is javascript so shit?
Some fags say it is because Eich only had two 2 days time for the design, but honestly, most experienced devs could create something less defective in 2 hours. Eich is simply incompetent.

>What kind of retard thought dynamic "typing" was a good idea?
If you have only little time to implement the interpreter and its API to the host, it may seem like a good idea.

traps can have qt feet for me to smell

Its more about the fear of the actions they may take due to their hate

How do you guys build Interfaces? I'm lol n00b programmer and use wxWidgets for my Interfaces

Then maybe you shouldn't act rapey around women then, user.

Nej, norsk er bedre enn engelsk.

making a Movie night bot for my Telegram group.

Uploading movie posters are done, now it's just getting up to speed with sqlalchemy so I can actually save and tally the votes.

Weak typing is definitely a larger problem, but dynamic typing hides valuable information from the programmer while reading through the code, and when you are debugging, it makes reasoning about logic a lot harder.

He could have at least gone for a real lisp, not the monstrosity that we ended up with.

Would that all devs would simply refuse to use JavaScript, or to compile to it, and demand better working conditions.

What do you mean? Like someone will attack you or something? That isn't something you have to worry about most of the time unless you are violent first.

live in the east bay, commute by BART. Just avoid coming in around 9:00 to 10:00am if you don't like standing for an hour.
Hope you like Mexican and Asian food. (and their 'fusions')

>What kind of retard thought dynamic "typing" was a good idea?
More like who thought duck typing was a good idea.

Enjoy your rape charges.

Qt atm. wxWidget is a valid option, though.

My ratings for multi-platform solution:

Qt: the best, beats hands-down even most native toolkits in regard of comfort
wx: pretty good, suffers a little of not enough devs, since GUI frameworks are a number game
GTK: suffers from only about five devs which are insane and/or slaves to GNOMEs mental illness, at this point no multi-platform
Swing: It sure looks Enterprise
Browserengine based: Pure hell, as soon as you have to use your own GUI by CSS, rather high input latency and slow startup
Tcl: ok for everything that is not much more than a dialog
Everything else: irrelevant

A group of children are returning from playing outside, and some might have gotten dirty. Ten seconds after they come inside, their parents begin calling out "all children with muddy faces head outside", and repeat it every ten seconds as long as there's at least one child with a muddy face still inside.

The children cannot see their own face, and the only action they can take is to either remain inside or leave. Once they've left, they cannot return. They cannot communicate with the other children in any way. Each child can see the face of every other child.

Describe a protocol that all the children can follow such that in finite time, for any number of children and any number of children with muddy faces, all the muddy-faced children will leave and none of the clean-faced children will leave.

Hints (do not read if you want to solve from scratch):
>There's no trickery in the wording.
>The problem can be solved in O(n) in number of muddy-faced children.
>Actual hint, might spoil the solution: if every child knew the exact number of muddy faced children, they'd be able to determine if their own face is muddy by counting the number of muddy faces they can see.

fuck

Cool, I'm glad I at least chose a good one, I'll take to learning qt once I get (to my satisfaction) proficient with wxWidgets. I'm in school for pretty much being a code monkey because I don't have the drive to learn literally anything by myself. So I figured paying out my ass for college would motivate me.

Not necessarily physical violence, but any number of things from verbal/emotional attacks to shaming tactics to spreading bad rumors about me which make my life harder.

ngl tbqh senpai this is pretty gay

Why do Sup Forums hate PHP?
Real argument
I think it is super eazy way to build web apps.

> >Actual hint, might spoil the solution: if every child knew the exact number of muddy faced children, they'd be able to determine if their own face is muddy by counting the number of muddy faces they can see.


that is the solution

however, if they don't know how many muddy faces there are, which they don't, because they can't see themselves, they could just use their hands to communicate and tell each other which of them are dirty.

bogus question tb.h

Are you me?

I literally went out and bought the Linux Bible at Microcenter like three days again and am doing the same thing

>I'll take to learning qt
No need to that imho, since wx pays the bill.
Unless it somehow kicks the bucket in the mean time.

As a rule of thumb, GUI libraries all suck, at some point you will have to apply some weird workaround or implement some custom widget.

if you're gonna be a code monkey, might as well start learning web UI frameworks. Angular, React, yadda yadda. As long as you know a couple HTML/JS buzzwords to put on a resume you'll be able to nab something.

It's internally inconsistent and fairly insecure by default. Next question.