[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 72
File: 1443744512113.png (218 KB, 1152x648) Image search: [Google]
1443744512113.png
218 KB, 1152x648
Previous thread: >>53947631

What are you working on, /g/?
>>
Threadly reminder that all languages/libraries/code made after 1980 is bad and you should feel bad.
>>
>>53956330
>no qt trap in OP-post
SAGE
>>
Trying to muster up the will to work on my ARM64 microkernel project called GNU Turd

Everything feels so pointless and empty
>>
File: 14-stunning-white-p1-rear-view.jpg (272 KB, 1280x853) Image search: [Google]
14-stunning-white-p1-rear-view.jpg
272 KB, 1280x853
>>53956389
KILL YOURSELF FAG
>>
>>53956393
>Everything feels so pointless and empty

Feel for you anon.
>>
Is it true that girl clothes makes you better at programming?
>>
File: 1452006127546.png (172 KB, 1031x1000) Image search: [Google]
1452006127546.png
172 KB, 1031x1000
>base 64 encryption function
>>
>>53956426
NO IT MAKES YOU A FAGGOT
>>
>>53956399
>no qt trap riding a qt car
SAGE

>Implying qties don't like cars
HAHAHA
>>
>>53956437
there is a sperg that gets incredibly butthurt over car pics as if cars are less programming related than traps
>>
What would be the best way to convert some part from a string into an int, in C++?
Say I have something like this:
ab123c45d

How do I get the 123 and 45?
>>
How do I make a computer obey commands expressed in natural language?
>>
File: 1399339118264.jpg (58 KB, 294x295) Image search: [Google]
1399339118264.jpg
58 KB, 294x295
>tfw you will never program yourself a gf
>>
>>53956467
I don't want to say regex but

regex
>>
Can anyone explain this notation? It's from K&R 5.11 (Pointers to Functions).

// declaration
void qsort(char *linep[], int left, int right, int (*compare)(void *, void*);


// use
main(){
qsort((void**) lineptr, 0, nlines-1, (int (*)(void*,void*))(numeric ?
numcmp : strcmp));
}
>>
File: indoctrination.png (821 KB, 1600x1200) Image search: [Google]
indoctrination.png
821 KB, 1600x1200
>>53956478
You can do it.
>>
File: cosynega.png (89 KB, 832x552) Image search: [Google]
cosynega.png
89 KB, 832x552
>2016
>Still coding solutions by hand instead of evolving them
>>
>>53956501
I can't read binary
>>
>>53956540
NOT SURE IF TROLLING OR RETARDED
>>
>>53956491
it is a pointer to function
>>
>>>/r9k/27753540
i love r9k so much. you're also welcome to give your own input as well ofc
>>
>>53956549
Teach yourself how to do it then.
>>
>>53956491
use a book that is not older than you are
>>
>>53956555
Not him, but it's true. In the future all programs will be grown, not developed by hand. Programming jobs will be limited to developing the building blocks of neural networked applications, and even that might be replaced by AI.
>>
File: slide_21.jpg (122 KB, 960x720) Image search: [Google]
slide_21.jpg
122 KB, 960x720
>>53956555

>codemonkey
>never heard about genetic programming

keke
>>
>>53956584
>memeing this hard
grow me a fizzbuzz
>>
>>53956593
Already been done.
>>
>>53956587
congrat kids, when you pass that 'evolutionary algorithms' course, you will learn how shitty GA is
>>
>>53956587
can you please fucking kill yourself

>a fucking powerpoint slide

you have nothing substantial to show for yourself
>>
File: feels.jpg (19 KB, 500x382) Image search: [Google]
feels.jpg
19 KB, 500x382
>>53956414
>>
>>53956601
fizzbuzz has already been done but it doesn't mean you can't write it

now "grow" it if it's so "good" and "useful"
>>
>>53956593
>grow me a fizzbuzz
Can be done, but I won't do it for you.

How to do it:

1) Write a VM that executes bytecode
2) Write a function that checks that VM bytecode produces output identical to fizzbuzz
3) Evolve bytecode until it passes 2) test
4) ?????
5) PROFIT!
>>
>>53956603
Ofc there is a whole lot of metaheuristics, that can be applied to GAs and other evolution algos. btw I'm not a student already hehe
>>
>>53956607
>can you please fucking kill yourself
NO

>you have nothing substantial to show for yourself
I have, and I'll have even more.
>>
>>53956629
>2) Write a function that checks that VM bytecode produces output identical to fizzbuzz
this means that you have to write it by hand to start with, which nullifies any advantage you'd get out of doing it the "evolutionary" way (outside of trying to "evolve" an optimization)

and you can't get anything non-trivial or creative out of it, you'd have to "lead by example"
>>
>>53956566
What is the first "(void**)" for and why is it in front of lineptr? lineptr is a pointer to an array of chars.
>>53956583
K&R is the best C book. And I'm going to do development in other languages too. I'm just doing this to train my fundamentals.
>>
At work it's my job to extend the backoffice system.

Right now I rewrite the backoffice system for myself, but better and for my smarthome system (while waiting for the hardware). It's something like therapy for me, not being restricted by the code at work. I can rewrite things and try different approaches as often as I want.
>>
>>53956682
>it teaches about ``generics'' in C
>best book
C fags should forget about generics or move to C++
>>53956682
>What is the first "(void**)" for and why is it in front of lineptr? lineptr is a pointer to an array of chars.
because it is a bad book
>>
>>53956607
take your meds loser
>>
>>53956657
>this means that you have to write it by hand to start with, which nullifies any advantage you'd get out of doing it the "evolutionary" way (outside of trying to "evolve" an optimization)

Nope, it's just that fizzbuzz example is retarded. Usually in the real world it is easy to write a test that checks the solution, but it is hard to find the solution itself.

For example I can write a simulator that has a robot with sensors in a room full of obstacles. I can say that robot should explore as much area as possible while bumping into obstacles as little as possible. This is easily expressed as a fitness function.

The control program that satisfies this fitness function is much harder to come up with, so I evolve it.

I have done it (^:
>>
>>53956729
you're the loser who should take your meds, you're delusional as fuck about the capabilities of ML
>>
>>53956330
Haskell web application.

I'm just mentioning this because over the few last threads I found out that some people get really butthurt for some reason.
>>
>>53956724
No it's not. It's apparent you don't even know C and are just being salty.
>>
>>53956748
I'm not him, anon (^:
>>
>>53956731
>robot with sensors in a room full of obstacles
this is very specific, this is the type of thing that ML could be used for, but it's not useful for general-purpose programming
>>
>>53956752
I use C++ at work, I know C enough to not use it. generics in C is an shit. books that does not follow newer standards are even worse
>>
>>53956731
cool didn't know sethbling posted on /g/
>>
Since it got glossed over in the past thread, i've been trying to figure out how to push an object with a BoxCollider2D back against another object with a BoxCollider2D. In the next post i'll post the formula i'd normally use but isn't working correctly in unity.

using UnityEngine; 
using System.Collections;

public class player : MonoBehaviour {
// Offset
private Vector2 pos;

// Offset Direction
private int x,
y;

// Offset Speed
public float speed = 1.5f;

// Use this for initialization
void Start () {
// set the position
pos.x = this.transform.position.x;
pos.y = this.transform.position.y;
}

// Update is called once per frame
void FixedUpdate () {
// reset position
pos = this.transform.position;

// reset offset direction
x = 0;
y = 0;

// set offset direction
if (Input.GetKey (KeyCode.UpArrow)) {
y = 1;
}
if (Input.GetKey (KeyCode.DownArrow)) {
y = -1;
}
if (Input.GetKey (KeyCode.RightArrow)) {
x = 1;
}
if (Input.GetKey (KeyCode.LeftArrow)) {
x = -1;
}

pos.x += x * speed * Time.fixedDeltaTime;
pos.y += y * speed * Time.fixedDeltaTime;

this.GetComponent<BoxCollider2D>().transform.position = pos;
}

void OnTriggerEnter2D(Collider2D other) {
if (other.gameObject.name == "solid") {

}
}

void OnTriggerStay2D(Collider2D other) {
if (other.gameObject.name == "solid") {

}
}

void OnTriggerExit2D(Collider2D other) {
if (other.gameObject.name == "solid") {

}
}
}
>>
>>53956794
this is the formula i'd normally use but it's not working this time around
/*
I didn't test this but looking through some of my own code it's identical to what i'd use
*/
if ( collision ) {
// Collision on east side
if ( x > 0 ) {
if ( offset.x + box.w > other.offset.x )
offset.x = other.offset.x - box.w;
// Collision on the west side (the best side)
} else if ( x < 0 ) {
if ( offset.x < other.offset.x + other.box.w )
offset.x = other.offset.x + other.box.w;
}
/*
Unity actually has me messed up on the one below, since + is up in unity
when it's usually down in something i'd make.
*/
// Collision on south side
if ( y > 0 ) {
if ( offset.y + box.h > other.offset.y )
offset.y = other.offset.y - box.h;
// Collision on north side
} else if ( y < 0 ) {
if ( offset.y < other.offset.y + other.box.h )
offset.y = other.offset.y + other.box.h;
}
}
>>
>>53956426
https://www.theguardian.com/technology/2016/feb/12/women-considered-better-coders-hide-gender-github

But I think maybe it's not the girl clothes. I think it's being a girl. So go MTF and don't change clothes.
Maybe just castrate yourself. Certainly less of a man anyway.
>>
>>53956771 (Me)
because when programming, you usually have a specific solution that you want to implement, you don't have that kind of problem that you want to "evolve" a solution for
>>
>>53956771
>this is very specific, this is the type of thing that ML could be used for, but it's not useful for general-purpose programming

Hedge funds often use genetic programming to come up with models of stock market. They don't talk about it too much though.
see https://www.reddit.com/r/MachineLearning/comments/3zv4fk/genetic_algorithms_in_machine_learning/cypcisg for example
>>
>>53956764
top kek what a moron, he can't even tell who's who from the rage xd
>>53956780
C wastes alot of productivity time making you procure things that don't exist as libraries and inventing constructs like classes
>>
>>53956793
I'm not him. I'm not famous at all.
>>
>>53956820
YES THERE ARE SITUATIONS WHERE ML IS APPROPRIATE BUT YOU'RE A DELUSIONAL FUCKTARD IF YOU SAY IT'S ALWAYS BETTER THAN ORDINARY PROGRAMMING
>>
>>53956815
For these kinds of problems if you have enough data tuples ("technical task", "developed code") you can train a model on it. Earlier in the thread there was an example of such approach.
Wait 2-4 years and it will work for small functions. Just say what you want and model will write it for you.
>>
>>53956838

It's always better given enough data & compute (^:
>>
>>53956097
So, roughly speaking, I'd need an AudioDevice object incapsulating the stuff I need to play the sounds, then an AudioObject of sorts having the actual stream and associated oscillator(s), and that would be it, maybe?
>>
>>53956330
Checking cause I'm a noob, base64_encode does nothing else but encode the data meaning it's reversible without needing a key, yes?
>>
>>53956780
>>53956836
>C wastes alot of productivity time making you procure things that don't exist as libraries and inventing constructs like classes
If I was trying to be "productive" I'd use Python. Right now I'm trying to teach myself programming. I'm doing K&R as a learning exercise basically.
>>
>>53956893
gtfo
>>
>>53956836
>C wastes alot of productivity time making you procure things that don't exist as libraries and inventing constructs like classes
That's a good thing if you actually want to be good programmer. Most languages have gigantic standard libraries that contain implementations of many useful data structures and algorithms. This wouldn't be a bad thing, but unloading all this onto a beginner means they never actually learn programming, they just learn to import everything when the going gets tough. C is good. Since it has a tiny standard library, it forces you to implement most things yourself, which is crucial if you ever intend to be anything more than a CRUD code janitor.
>>
>>53956880
ML with infinite resources is like having an endless supply of pajeets and time. it's suited for certain tasks but for a lot of tasks it's still shit.
>>
File: php masterrace.png (2 MB, 1598x1585) Image search: [Google]
php masterrace.png
2 MB, 1598x1585
>>53956330

has anyone else noticed that girls with big tits tend to be nicer and less bitchy than flat chested girls?
>>
>>53956929
Well, can agree with that.
>>
>>53956937
yes, it's natural, higher status people (whether male or female) are less shitty
>>
>>53956957
but there was also a really hot girl with a cup tits who works at my lifeguard job i went on a date with who was mega cunt after (idk why???) she was definitely high status
>>
>>53956937
Confirmation bias.
>>53956957
Not true at all.
>>
File: 1458775871066.png (1 MB, 1000x1400) Image search: [Google]
1458775871066.png
1 MB, 1000x1400
>tfw no hime gf
>>
>>53956995
big titted girls have a healthier hormonal profile probably

>>53956999
>all people are equal and nothing can be measured
ok retard

https://www.youtube.com/watch?v=dD1hPoKzz8I
>>
File: 20bIFwr.png (865 KB, 600x598) Image search: [Google]
20bIFwr.png
865 KB, 600x598
Anyone else needs to tire themselves out before they start working on their own projects?
>>
File: ferrari f12 maxresdefault.jpg (107 KB, 1280x720) Image search: [Google]
ferrari f12 maxresdefault.jpg
107 KB, 1280x720
>>53957004
kill yourself
>>
File: fuckoff.jpg (136 KB, 542x700) Image search: [Google]
fuckoff.jpg
136 KB, 542x700
>>53957012
>equality is bad rah rah rah
No one even said that. Just that you can't judge personality based on chest-size, dumbfuck.
>>
>>53956937
flat chested girls are always tsundere~
>>
File: php_origins.png (335 KB, 1280x720) Image search: [Google]
php_origins.png
335 KB, 1280x720
Are you hardcore enough to be a PHP inventor, anon?
>>
File: chestlets4.jpg (208 KB, 480x601) Image search: [Google]
chestlets4.jpg
208 KB, 480x601
>>53956999
chestlet detected
if(girl.isChestlet()){
girl = null;
}
else{
patOnHead(girl);
}
>>
File: 1458946060439.jpg (126 KB, 490x977) Image search: [Google]
1458946060439.jpg
126 KB, 490x977
>>53957046
flat chest best chest!
>>
>>53957046
from my own experience big titted girls (not counting fat chicks) have definitely been nicer

the youtube video talks about a study - never mind i'm not doing this, quit wasting my time FUCKING RETARD FUCKING KILL YOURSELF FAG
>>
>>53956893
Yes it just encodes the string in b64. It can be decoded back.
>>
>>53956937
No its generally the opposite. Girls with big boobs are more forward though. I dunno, maybe the shifted center of mass has that effect..
>>
>>53957078
>from my own experience big titted girls (not counting fat chicks) have definitely been nicer
https://en.wikipedia.org/wiki/Confirmation_bias
>>
File: tsundere a shit.png (511 KB, 1024x424) Image search: [Google]
tsundere a shit.png
511 KB, 1024x424
>>53957050
i used to like tsundere but have since realized tsundere a shit
>>
>>53957107
ok keep believing that retard
>>
>>53957078
Are you me?
>>
>>53957122

check em
>>
>>53957066
I'm a male. Retard detected. Do you believe in Jesus too?
>>
File: chestlets2.jpg (45 KB, 436x395) Image search: [Google]
chestlets2.jpg
45 KB, 436x395
>>53957126
do you get pegged by your flatchested girlfriend?
>>
>>53957135
I never said one was better than the other. I said trying to determine personality based on chest-sized makes you so stupid that it's almost inconceivable that you can even feed and dress yourself.
>>
File: 1459372659891.png (718 KB, 800x600) Image search: [Google]
1459372659891.png
718 KB, 800x600
>tfw no robot gf to program
Imagine how cool would it be to program your very own unique gf!
>>
>>53957164
Correlations happen all the time. Sometimes they are informative.
>>
>>53957116
Yes, you are retarded, and yes I will keep believing in basic logic. Something you lack.
>>53957180
Your rectum is not a correlation.
>>
File: 1347146893270.png (231 KB, 800x800) Image search: [Google]
1347146893270.png
231 KB, 800x800
>>53957164
>so stupid that it's almost inconceivable that you can even feed and dress yourself.

tfw no robot gf maid to feed me and dress me
>>
>>53957185
i'm not gonna tell you my life's story so yeah keep believing you can refute something which i and many other people and probably many scientific studies have observed with what you believe is your "basic logic"
>>
>>53957164
deny it all you want but you can determine personality from chest size. if you don't want to face reality then that's another issue. i've only had 2 girlfriends, 1 was a small B and one was a large C, bordering on D (while being slim, shit was so cash. she's JUSTed now but she used to be tight bodied). small B broke up with me after a few weeks because i texted a girl in my homeroom asking if she wanted to play wow together since i heard she had an account (more accurately she nagged me so hard about it i had to break up with her but same shit), and the D cup girl let me suck her tits in the back seat of my car before school every day in the parking lot and let me smother myself between her tits.

man i wish i was in highschool again
>>
  int kilo;
int cent;


cout << "what is your weight in kilograms?" << endl;
cin >> kilo;
cout << "what is your height in centimeters?" << endl;
cin >> cent;
cout << kilo/cent; sqrt(2);

What am I doing wrong /g/?
>>
File: 1457903527316.png (1 MB, 1080x1920) Image search: [Google]
1457903527316.png
1 MB, 1080x1920
>>53956794

Eh first of all use min(value1, value2) and max instead of those disgusting if/else cases.

What is not working? There is nothing obviously wrong with the code so just experiment with parameters and see what happens.
>>
>>53957239
int and float are different things and behave differently when divided
read about floats
read about casting ints to floats
or maybe just replace "int" with "float"
>>
>>53957239

What you are doing wrong is that you are trying to get debugging help without describing

1. what you want your program to do
2. what your program does instead
>>
>>53957292
The output of your bmi for 170/70^2 is 2.4, I want it to make it so that it outpus 24.
>>
>>53957314
 cout << kilo/(cent sqrt(2));
>>
File: thisisyou.jpg (38 KB, 248x251) Image search: [Google]
thisisyou.jpg
38 KB, 248x251
>>53957202
>>53957211
> Confirmation bias is the tendency to search for, interpret, favor, and recall information in a way that confirms one's beliefs or hypotheses, while giving disproportionately less consideration to alternative possibilities. It is a type of cognitive bias and a systematic error of inductive reasoning. People display this bias when they gather or remember information selectively, or when they interpret it in a biased way. The effect is stronger for emotionally charged issues and for deeply entrenched beliefs.
>>
>>53957346
and africans are equally as intelligent as east asians, everything else is just confirmation bias amirite
>>
>>53957344
error: expected '(' before sqrt.
>>
File: 0005.png (22 KB, 710x139) Image search: [Google]
0005.png
22 KB, 710x139
>>53957395
>resorts to racism to attempt to justify that he's stupid enough to actually think that tit size is a reliable indicator of personality
You're not, that's for sure. I hope kami-sama forgives me for being baited this hard.
>>
>>53957344
>>53957239
the fuck?
bmi would be kilo/sqrt(cent/100)
>>
File: 1455476024879.jpg (149 KB, 800x820) Image search: [Google]
1455476024879.jpg
149 KB, 800x820
>>53957465
>racism
>>
>>53957465
i challenge you to show a single example of a non-fat naturally big-titted bitch
>>
File: trumpisaclown.jpg (272 KB, 1024x768) Image search: [Google]
trumpisaclown.jpg
272 KB, 1024x768
>>53957484
>Drumpf
>>>/pol/
>>
File: cucks for bernie sanders.jpg (79 KB, 960x664) Image search: [Google]
cucks for bernie sanders.jpg
79 KB, 960x664
>>53957534
>>>/tumblr/
>>
File: MRA.png (398 KB, 800x600) Image search: [Google]
MRA.png
398 KB, 800x600
>>53957545
>anyone who doesn't like Drumpf must go to the tumblr boogeyman
Oh, so does that include the majority of the country? http://www.realclearpolitics.com/epolls/other/trump_favorableunfavorable-5493.html

Fuck off back to your containment board, neckbeard. >>>/pol/
>>
File: wanted.jpg (55 KB, 540x720) Image search: [Google]
wanted.jpg
55 KB, 540x720
>>53957545
>>
>>53957600
how come you're apparently unable to show even a single example of a non-fat naturally big-titted bitch

there are countless small-titted bitches, and if tit size doesn't mean anything, there should be plenty of big-titted bitches that you could readily demonstrate
>>
>>53957534
>>53957600
hello rebbit
>>
>>53957545
I'm not involved in this, but I hope you know that when /pol/ types call others "cucks" that's mostly psychological projection on their part. They're obsessed with it because it's their biggest fear. Ironically they're the only ones worthy of the title.
>>
>>53957634
keep telling yourself that

it's mostly just a meme because of the kek->cuck filter
>>
>>53957628
>>53957507
There are millions of those. And I was talking about personality not body fat. I think you realized you lost this argument a long time ago. You're just embarrassed about it so you're trying to waste time.

I'm going to close this thread now. That means I not only get the victory, but I also get the last word. Have fun knowing your inevitable response tears won't be read.
>>
>>53957677
this is just sad. i'm glad you're leaving so we don't have to see more of your inane bullshit
>>
File: whut up reddit.jpg (558 KB, 3264x2448) Image search: [Google]
whut up reddit.jpg
558 KB, 3264x2448
>>53957534
>>
>>53957633
https://www.reddit.com/r/the_donald
>>
>>53957650
>implying it's not psychological projection
it is. who thinks about black cock more than racists? the hatred comes from trying to mask internal feelings of inadequacy. /pol/ types call everyone "cuck" like children because, like children, it's their ultimate fear.
>>
File: comfy.png (167 KB, 376x328) Image search: [Google]
comfy.png
167 KB, 376x328
>gotta install windows xp for compiling windows builds
>installing virtualbox and a cracked copy of windows xp
>install guest-extras ISO
>everything just works
>VM even resizes resolution when resizing the vm window
i forgot how comfy virtualbox is
>>
>>53957534
>muh drumpf
>>>/back where you came from/
>>
what can i do over the summer to get something to put on my resume/level up my csci abilities without having an internship? i'm waiting until summer after junior year to apply for an internship since that's what year they all want you to be in, but i'm essentially a year ahead bc i took a bunch of AP classes in highschool so i'm taking all junior level classes already
>>53957677
thread's too old to be deleted retard how nu r u
>>
>>53957730
ok kid
>>
>>53957634
excuse me, but I have a degree in armchair psychology, and I think you have autism
>>
>>53956491
currently trying to learn this shit.. its so hard.
>>
File: CbNHCb9UcAAS7fp.jpg (151 KB, 600x983) Image search: [Google]
CbNHCb9UcAAS7fp.jpg
151 KB, 600x983
>>53957737
>>53957729
>>53957633
This is a no-retard zone. Nobody gives a fuck about your science denying psuedo-fascist. Stop shilling for him.
>>
>>53957743
make a program/game
>>
>>53957758
He's not autistic. He's pretty much spot on.
>>
>>53957771
fuck off fag
>>
File: 1446512724802.jpg (973 KB, 1920x1080) Image search: [Google]
1446512724802.jpg
973 KB, 1920x1080
>be me
>have 20 little shitty projects I work on written in visual basic and C# in the most god awful way.
>Do winforms and asp.net applications.
>WPF is apparently satan
>get sent tickets from IT because I'm the smart guy
>we get a new project to do
>literally no upfront planning except a basic concept, they want to come up with features as we go along
>they tell me to code it anyway
>we put it into production next week and they are still thinking up features to add
>mfw I can't tell them no
>55k/year
>>
>>53957793
He's just responding to /pol/ack cancer.
>>
>>53957782
it's literally a meme spawned from the kek-cuck filter. it wasn't a thing before mjewt added the filter
>>
File: the source of all racism.jpg (150 KB, 640x835) Image search: [Google]
the source of all racism.jpg
150 KB, 640x835
>>53957771
did you know the cutoff for mental retardation was an IQ of 80, but it had to be lowered because over half of all black americans were considered retarded?
>>
>>53957809
>go back to /r/eddit
>/pol/ack cancer
yeah fuck off fag
>>
what is the best ebook reader for ganoo
>>
>>53957825
rekt
>>
>tfw programming a parser in C with a headache
>>
>>53957733
>tfw drag a window in windows xp
no lag
>tfw drag a winows in host linux desktop
tiny but noticeable lag
>>
>>53957743
make a game or an app, market it.
>>
>>53957897
>>53957776
is java and libgdx a good framework to develop a game in? i tried once before and i still have an ebook for it on my hard drive. i'd ask in agdg but they all use gamemaker
>>
>>53957825
damn son
>>
File: CbNHCb9UcAAS7fp2.jpg (229 KB, 596x983) Image search: [Google]
CbNHCb9UcAAS7fp2.jpg
229 KB, 596x983
>>53957825
>did you know the cutoff for mental retardation was an IQ of 80
You have to have 100 IQ minimum to post in this thread. That disqualifies basically 95% of Republicans and 100% of Trump shills.
>implying blacks are responsible for right-wing IQ scores
Uh-huh. Lets see:
>Idaho, 90% white, average IQ 87
>Utah, 90% white, average IQ 87
>Montana, 90% white, average IQ 90
Destroys your hypothesis doesn't it? Sorry. It's science:
>The research finds that children with low intelligence are more likely to hold prejudiced attitudes as adults. These findings point to a vicious cycle, according to lead researcher Gordon Hodson, a psychologist at Brock University in Ontario. Low-intelligence adults tend to gravitate toward socially conservative ideologies, the study found. Those ideologies, in turn, stress hierarchy and resistance to change, attitudes that can contribute to prejudice
>>53957864
>being mad enough to reply to yourself
>>
>tfw dont have enough memory to compile my haskell program
fug
>>
>>53956467
std::vector<int> getNumbers(const std::string &in)
{
std::vector<int> ret{};
std::string tmp{};

std::for_each(in.begin(), in.end(), [](const char ch) {
if (isdigit(ch))
tmp += ch;
else
{
ret.push_back(std::stoi(tmp));
tmp.clear();
}
});

return std::move(ret);
}
>>
>>53957927
not really but you probably don't know any better anyway so you could use libgdx
>>
>>53957841
take your own advice. >>>/pol/
>>
>>53956378
That's why I only ever use FORTRAN
>>
>>53957943
hahahahahaha that's so fucking bad how could you possibly justify this joke of a language
>>
>>53957990
this is getting really old can you just shut the fuck up fag
>>
>>53958009
you shut the fuck up.
>>
File: west coast choppers trump.jpg (252 KB, 1024x1558) Image search: [Google]
west coast choppers trump.jpg
252 KB, 1024x1558
>>53957941
>>
File: CK0A9t3.jpg (179 KB, 1200x1200) Image search: [Google]
CK0A9t3.jpg
179 KB, 1200x1200
>>53958041
Is some tatted white trash losing customers supposed to teach me something? How is that even relevant?
>>
>>53958063
it's a fake hat you willfully delusional fucking retard
>>
File: wdg vs dpt trump bernie poll.png (1 MB, 1045x776) Image search: [Google]
wdg vs dpt trump bernie poll.png
1 MB, 1045x776
>>53958063
we can even go round 2
http://strawpoll.me/7329631/
>>
>>53958063
>white trash
Meanwhile you're a NEET faggot shitposting on an image board.
>>
>>53958097
>strawpoll
http://www.realclearpolitics.com/epolls/other/trump_favorableunfavorable-5493.html
>>
>>53956794
you're not using it correctly..

At all.
>>
my handwriting recognition program works boys
>>
>>53958122
>comparing this thread with the general population
>>
>>53958089
>trumplet getting this mad over his fake hat
Maek amukicuh grate ageen! lol!

He hired illegals to build Trump tower too. This is why low IQ is associated with being a Trump supporter. Because you have to swallow so much bullshit and not be smart enough to know better.
>>
>>53958122
BTFO
T
F
O
>>
File: g dpt trump poll round 2.png (783 KB, 1141x607) Image search: [Google]
g dpt trump poll round 2.png
783 KB, 1141x607
lol it's just one trump hater samefagging
>>
>>53956629
Holy fucking shit what a retard you are

You realize if it EVER produces anything all it will just be by doing something equivalent to
print('1 2 fizz 4 buzz piss etc')


Get over this retarded obsession or at the very least STOP FUCKING POSTING ABOUT IT ON HERE nobody gives a fuck and you're not intelligent in the slightest
>>
>>53958108
>projecting this hard
>>
>>53958214
There's not even 20 people browsing this thread right now. You posted that on /pol/ and then linked it here at the same time.
>babbys first "look how smart I am" moment
>>
>>53958262
actually, i purposefully didn't give pol the link. i did post the image there though to laugh at you. currently, the score's 12 for 3 against, and now i WILL share the link with pol
>>
>>53957729
www.reddit.com/r/4chan
>>
>>53958262
I see 43 Ips browsing this thread.
>>
>>53958122
>soros sponsored "unbiased" shill site #324155938
>>
File: loltrump.png (119 KB, 920x593) Image search: [Google]
loltrump.png
119 KB, 920x593
>>53958277
> i did post the image there though
>admitting that you brigaded your own poll
I'd feel tempted to do that too given the reality.
>>
>>53958262
>berniefaggot can't count
What a shocker. Voting for someone with the same disabilities as yourself.
>>
>>53957261
    void OnTriggerStay2D(Collider2D other) { 
//print (other.gameObject.name);
if (other.gameObject.name == "solid") {
//print ("pos(" + pos.x + "," + pos.y + ") col(" + other.transform.position.x + "," + other.transform.position.y + ")");
// Collision on east side
if ( x > 0 ) {
if ( pos.x + 1f > other.transform.position.x )
pos.x = other.transform.position.x - 1f;
// Collision on the west side (the best side)
} else if ( x < 0 ) {
if ( pos.x < other.transform.position.x + 1f )
pos.x = other.transform.position.x + 1f;
}
// Collision on south side
if ( y > 0 ) {
if ( pos.y > other.transform.position.y - 1f )
pos.y = other.transform.position.y - 1f;
// Collision on north side
} else if ( y < 0 ) {
if ( pos.y - 1f < other.transform.position.y )
pos.y = other.transform.position.y + 1f;
}
this.transform.position = pos;
this.GetComponent<BoxCollider2D> ().transform.position = this.transform.position;
}
}


it "jitters" and if i move along both the x and y axis i get warped between the four corners of the other object.

>>53958127
probably
>>
>>53958296
Nope. 43 unique IPs in a two hour time span. He posted that poll and got 20 IPs within 10 minutes. He was bullshitting and posted it in other places too.
>>
>>53958300
>>>/pol/70474657 you can see here that there's no way to construe this as brigading, since there's no way for them to access the poll unless they go to g, search the catalog for dpt, and then find my post with the link to the poll in it
>>
File: entern-trumpisnoreagan-2.png (34 KB, 575x442) Image search: [Google]
entern-trumpisnoreagan-2.png
34 KB, 575x442
>>53958300
keep trying bud, I'm sure something will stick sooner or later :-]
>>
>>53958307
His screenshot was from earlier. At the time of that post it was nearly 20 votes.
>drumpf faggot can't logic
What a shocker. Wait no it's not.
>>
>>53958097
>88% pro trump
fuck yeah
>>
>>53958319
Dont do that. Get the rigidbody component. You're moving the transform and not the rigidbody. Set your direction and speed in Rigidbody velocity. Collisions only work when you're not touching transform.position.

You're recreating (shittily) the built-in fucntionality.
If that's what you're going for, keep going.
>>
>>53958337
>43
>his
Nice samefag, faggot. When you said that there were 20 people the counter was already above 35.
>>
>>53958298
The site doesn't create the data. Nice try!
>>
I want americans to leave.
>>
File: trumpbtfo.png (129 KB, 920x590) Image search: [Google]
trumpbtfo.png
129 KB, 920x590
>>53958327
I don't have to try. I have reality on my side and not strawpolls I post on /pol/ while hoping people don't notice, lol. Oops.
>>
>>53956330
Is there an alternative to modulo that can find the lowest divisor. I'm dealing with some big ass numbers.
>>
>>53956330

Nothing wrong with this.
>>
>>53958388
Lol Jesus. It's kind of his fault though. He sealed his own grave by basing his strategy around appealing to extremists.
>>
>>53958359
i'd prefer to do my own physics, I don't understand rigidbody2D and when I added one to my player object and to the "other" object, nothing happened.

can you show me some code for the rigidbody velocity?
>>
File: 1459109394770.jpg (83 KB, 946x749) Image search: [Google]
1459109394770.jpg
83 KB, 946x749
>>53958368
>>53958388
>>53958418
>soros sponsored "unbiased" shill poll #324155938
>TRUMP IS REALLY LOSING THIS TIME GUYS!! FOR REAL!!
>>
>>53958421
>i'd prefer to do my own physics
then why are you using jewnity
>>
>>53958324
>not screencapping the post with the link
>not screencapping the irc chatroom
>>
So i'm trying to copy a multi dimensional array into a jagged array and cant use any array system methods. I'm getting some fucking error that i don't understand, can anyone explain what i'm doing wrong?

            int[,] results ={
{ 4, 7, 9, 3, 8, 6},
{ 4, 8, 6, 4, 8, 5},
{ 4, 7, 9, 3, 8, 6},
};

int[][] array = new int[results.GetLength(0)][];

for (int i = 0; i < results.GetLength(0); i++)

for ( int j = 0; j < results.GetLength(1); j++)
{
array[i][j] = results[i,j];
Console.Write(array[i]);
}
>>
>>53956378
>the c-standard is bad
>>
>>53958434
>m-muh conspiracy
That site doesn't create the data.
>>
>>53958437
so I can get something listed on the eshop, I don't believe nintendo gives you a gcc compiler for it, just unity or some html5 thing which I have heard is very slow and limited.
>>
File: spacevstabdickvsvag.png (12 KB, 370x124) Image search: [Google]
spacevstabdickvsvag.png
12 KB, 370x124
wow
maybe female programmers really are better after all
>>
>>53958439
i already told you that the post was 12 for 3 against before you claimed that i got pol to raid it, so i actually did get pol to raid it as i openly said so, to show you what a raided poll actually looks like, which is 25 to 4 as it is now. now stop shitposting and if you care so much take it to leftypol
>>
>>53956780
please stop talking about shit you don't know about
>>
File: 1447812872296.png (188 KB, 428x395) Image search: [Google]
1447812872296.png
188 KB, 428x395
>>53958473
lmao shill exposed
>>
>>53958501
>anyone who posts facts is a shill
Argumentative tactics for emotional children.
>>
>>53958421
>i'd prefer to do my own physics, I don't understand rigidbody2D and when I added one to my player object and to the "other" object, nothing happened.

Dont recreate the wheel. Or if you want to, write your own engine.

Unset "trigger" on your coliders.

Here's Literally all the code you need:
http://hastebin.com/nedesamebi.vala
>>
File: 1453745119332.jpg (42 KB, 600x394) Image search: [Google]
1453745119332.jpg
42 KB, 600x394
>>53958521
hello shill
>>
>>53958492
it shot up to 20 unique IPs well before that was even possible. it was raided and you're not clever. stop being mad about it and just move on with your life.
>>
>>53958479
Java checkstyle doesn't work with tabs so I use spaces.
>>
>>53958479
why the fuck would anybody use spaces?
tap tap
tap tap
tap tap
>>
>>53958537
>anyone who disagrees with me is a shill
>anyone who posts data I can't refute is a shill
>>>/pol/
>>
>>53958552
IDE's automatically insert them upon tabbing.
>>
>>53956330
>What are you working on, /g/?

I have a fucking program that passed initial testing, but is crashing on some Windows PCs with no survivors (i.e. exception handling is not triggered so no high level info).

After the client gave me a unit that's crashing, I attached WinDbg only to discover that for some fucking reason a DLL that the app relies on can get in a situation where it calls free() on an already freed pointer. This DLL is being called by a higher level language and it just doesn't trigger the normal exception handlers.

The C runtime that DLL relies on just goes down. (The one fucking thing I don't like about C is that some of the core functions were written by people who assumed users would know what they were doing. Then Pajeet writes a library that relies on one of those. I'm sorry, but in a world of code monkeys and Pajeets free() needs to safely handle invalid pointers.)

Client needs this working for everyone like...now.

Odds of getting a fix from the DLL vendor in the next 6 months? Slim. Next week? None.

The dependency is not a simple one where I can just re implement the behavior and eliminate the DLL. That would take months.

So right now I'm looking at directly modifying the DLL, or creating a wrapper DLL, to wrap the caller in a function with an exception handler that can catch/avoid the error.

Which may or may not solve the problem. If the caller is fucking up it then there may be worse memory corruptions in that situation.

Sometimes I hate programming. Those times usually involve running into someone else's shit.
>>
File: 1451988700017.jpg (247 KB, 835x1204) Image search: [Google]
1451988700017.jpg
247 KB, 835x1204
>>53958562
S H I L L
H
I
L
L
>>
>>53958547
well bud, first off, 12 + 3 is 15, not 20, and second, i don't see why you take it as impossible that there's 20 (15) people lurking dpt. also, this is the post >>>/pol/70474657 i made, so feel free to turn your autism down and put yourself in the shoes of a pollack, and go through the steps it would take to find that poll, and then ask yourself how likely it is that 20 people actually did that when it's hard enough as it is to get people to even click a link. none of this is programming related, btw
>>
File: damage.jpg (101 KB, 650x650) Image search: [Google]
damage.jpg
101 KB, 650x650
>>53958576
>anyone who disagrees with me is a shill
>anyone who posts data I can't refute is a shill
>>>/pol/
>>
File: 1457058511902.png (291 KB, 327x429) Image search: [Google]
1457058511902.png
291 KB, 327x429
>>53958596
S H I L L
H
I
L
L L I H S
>>
>>53958587
it was close to 20 when I checked around 10 mins after. for scale it took this thread 2 hours to hit 40 IPs. it was raided and you're not clever. stop being mad you got caught and just move on with your life.
>>
File: trumpbtfo2.png (129 KB, 920x588) Image search: [Google]
trumpbtfo2.png
129 KB, 920x588
>>53958614
>anyone who posts data I can't refute is a shill
>>>/pol/
>>
>>53958526
>>53958614
>>53958596
>>53958576
>>53958537
>>53958521
>>53958501
>>53958434
Dont you people have your containment threads?
>>
>>53958622
explain how it was raided? go through the process to explain how pol got to that poll from the initial picture i posted before you claimed i raided it and i proceeded to show you what an actual raid looks like (27 for 4 against) and none of this is STILL programming related
>>
>>53958526
something about unityengine.vector2 and no definition for getaxis
>>
>>53958629
/pol/ faggots won't stop posting about their retarded candidate.
>>
>>53958636
because you obviously posted a link. it was close to 20 when I checked around 10 mins after. for scale it took this thread 2 hours to hit 40 IPs. it was raided and you're not clever. stop being mad you got caught and just move on with your life.
>>
>>53958654
And you keep feeding them by replying. You're just as bad.
>>
>>53958654
MUH BERNIE
>>
>>53958654
it's mostly just you who keeps posting those polls
>>
File: magagrill.png (170 KB, 376x328) Image search: [Google]
magagrill.png
170 KB, 376x328
>>53958629
>>53958654
>>53958672
eat shit
>>
How are you supposed to fizzbuzz in Clojure?

(dotimes [z 100]
(if (zero? (mod (+ z 1) 15))
(println "fizzbuzz")
(if (zero? (mod (+ z 1) 3))
(println "fizz")
(if (zero? (mod (+ z 1) 5))
(println "buzz")
(println (+ z 1))))))
>>
>>53958646
ops. Rename the variable to something that's not Input and it'll work.
>>
>>53958672
I haven't replied to any of them. Just saying, as usual, /pol/ cancer is what ruined the thread. They won't shutup.
>>
>>53957534
REMINDER THAT THIS FAGGOT RIGHT HERE GOT TRIGGERED AND STARTED THIS SHITFEST
>>
>>53958660
the post i made is right there, friend. there is no link to the poll in the thread until you claimed that i raided it, at which point i did to show you what a raided poll looks like (28 for and 4 against now)
>>
>>53958706
That's a reply to someone else, so not quite.
>>
>>53958718
you didnt show the other post you made because you thought you could get away with it. it was close to 20 when I checked around 10 mins after. for scale it took this thread 2 hours to hit 40 IPs. it was raided and you're not clever. stop being mad you got caught and just move on with your life.
>>
>>53958726
fucking idiot, it was just a back to /r/eddit image
>>
>>53958696
What the fuck are you doing talking about programming in /dpt/?
>>
>>53958726
No, that's what exactly what happened. Poor tumblrite saw picture of Trump and xir's head exploded :(((
>>
>>53958696
Why not use cond?
>>
>>53958699
if I drop it in it does nothing and if I go back to the scene and drag it to my other object it flips out lol

pre-made engines make no sense, and there's no documentation on the internet catered to my brain, so i'm gonna need to know more
>>
>>53958740
He was obviously triggered if he had to use it. You have to go the source of the reply chain.
>>53958747
No it's not. That's a reply to someone else. That can easily be reworded as "Poor /polshit/ saw someone say the word racism and the neckbeard's head exploded :((((".
>>
>>53958757
Okay, what the fuck do you want to achieve?
>>
>>53958739
the time you claimed i raided the poll was 20:07:43
>>53958262

the first time i submitted the link the strawpoll in the thread was 20:09:40
>>>/pol/70475158
>>
>>53958770
ok well thanks for contributing to this fascinating discussion
>>
>>53958770
Triggered kike/spic detected. Why do pictures of Trump upset you so much?
>>
>>53958782
>not screencapping the other post with the link
>not screencapping the irc chatroom
>>
>>53958791
I'm not him. Triggered whitey/neckbeard detected.
>>
>>53958770
D E N I A L
E
N
I
A
L

>i-it was him!!
>>
>>53958796
i'm not IN an irc chatroom, and there WAS no other post with the link before that. you're so fucking delusional. where's the fucking janitor by the way?
>>
>>53958811
D E N I A L
E
N
I
A
L

>i-it was him!!
>>
>>53958809
>I'm not him.
sure you aren't
>>
>>53958823
>copy pasting replies now
feel the bern!!!
>>
>>53958818
>take my word!
obviously you're going to lie about it when your scheme was caught. it was close to 20 when I checked around 10 mins after. for scale it took this thread 2 hours to hit 40 IPs. it was raided and you're not clever. stop being mad you got caught and just move on with your life.
>>
>>53958773
I want some motha fuckin 2D physics, i'm literally moving a black around in any direction at 1.5f speed, if I collide against something I wanna be pushed back proportionally
>>
>>53958825
No, I'm him.
>>
>>53958843
shut up, faggot
>>
>>53958854
No I am.
>>53958841
maek my IQ great again!
>>
>>53958870
no I am.
>>53958865
fuck you. lick my balls.
>>
>>
File: 1454819286348.jpg (112 KB, 941x960) Image search: [Google]
1454819286348.jpg
112 KB, 941x960
>>
>>53958853
Okay, give me 10 minutes.
Thread replies: 255
Thread images: 72

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.