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

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 324
Thread images: 43

File: 1492872655475.jpg (2MB, 1920x3272px) Image search: [Google]
1492872655475.jpg
2MB, 1920x3272px
old thread: >>60235248

What are you working on, /g/?
>>
File: 1489369594975.gif (328KB, 420x360px) Image search: [Google]
1489369594975.gif
328KB, 420x360px
Is compiling to C a lot easier than compiling to LLVM or assembly?
>>
nth for clojure
>>
nth+1 for Rust
>>
GIVE ME A PROJECT TO WORK ON
I'LL HELP YOU FOR
F
R
E
E
>>
File: 1492872021319.png (720KB, 2015x2204px) Image search: [Google]
1492872021319.png
720KB, 2015x2204px
How wasteful is it to call a function multiple times in a higher order conditional statement just so you don't have to create another variable?
>>
>>60244318
Probably. But it depends of the source language. If you rely on TCO C89 is not the best target.
>>
>>60244282
Shinobu-chan a cute!
>>
>>60244327
I post this a lot. But it's because I think it's good.
Learning how to guide yourself through a design without pre-planning (which is often something you need to revise anyway) is something that comes with experience. But you can help yourself by having a better perception of where you are with your code exactly and what information you can extract from your work.
I recommend watching
https://hero.handmade.network/episodes
Episode (day) 27. It's probably the best day so far. Most of this series is about game engine development. Most of what's done is done for reasons which may not be all that apparent to someone who just wishes to make something. The goal of the series is really to teach programming as a craft. How to do exactly what you find you're having trouble with.
But spending 300*1.5+ hours to gain an understanding of this by osmosis may be way too much. So I recommend this one episode. It's the most information dense episode in this regard. Episode 26 explains game engines in general and why he has chosen to do certain things this way so far. So it's slightly less relevant but I'm just putting it out there as the second best.
The forums on that site is very helpful for new developers (who already know their languages) too. Especially if you have well formed intelligent posts.

How to explore software solutions is something that you rarely get concrete tips on. My mom has been in software since they had punch cards and she told me that she didn't get this until she had been at work for at least 10 years. It's far too long. Which is why I really like this show. It's a person with good merits who teaches what he loves.
>>
>>60244454
>If you rely on TCO C89 is not the best target
What? Why?
>>
>>60244425
Make me a sandwich
>>
>>60244478
Where should I mail it?
>>
>>60244318
The thing with llvm is that as long as it's not broken the optimizer can do lots of good things. With C you're implying a bunch of things in your code. Often this can hinder a compiler from making what you really wanted.

Outputting asm isn't too hard. Optimized asm is harder.
>>
>>60244454
Isn't there some Scheme which compiles to C?
>>
File: cathat.png (684KB, 600x600px) Image search: [Google]
cathat.png
684KB, 600x600px
>>60244318
depends on what you're doing.

A lot of modern languages have very nice bindings to LLVM.

If you're at all familiar with Haskell, it's actually a great language for compilers. Very easy to make parsers, full AST transformations with plated (not to mention how useful lenses can be for complex transformations), easy to make repls, easy to use LLVM bindings.
>>
>>60244282
How do we get more anime girls into CS?
>>
Is pluralsight good?
I want to learn python and they have a path to learn it or something like that.
>>
>>60244509
Make company policy to reward every bug free commit with sweet parties.
>>
>>60244501
That's what I'm writing it in. I'm almost done with the core language and interpreter.
Should I try compiling a simple imperative language first?
>>
>>60244438
Depends entirely on how much work the function is doing and how many times you call it, but it's probably fine.
>>
>>60244318
Completely sincere answer: There are multiple tradeoffs.

The obvious upside of compiling via C is that it makes portability easier. If you don't have the manpower to maintain different backends for different architectures, and you need to compile for unusual targets, like AVR, then this is a good point in C's favor.

The downsides are numerous. LLVM has a well defined code generation API that makes it easy (relatively) to avoid undefined behavior. I don't know of any such libraries for generating C. If you roll your own, you're likely to shoot yourself in the foot by tripping over the many "gotchas" in C semantics. At any rate you will find the optimization passes in C compilers to be unreliable for your code, and you'll have to introduce your own optimization passes, which would not be a problem in LLVM.

If your language is intended to be used for low level code, there are all kinds of low level operations that aren't supported by C. In some cases, like bit rotation, you can hack these together yourself, but a C compiler won't necessarily recognize them and turn them into an efficient operation on the target CPU. You can fix this with target-specific assembly, at the risk of potentially much more horrible undefined behavior. This will not be fun to debug.

If your language is intended to run on x64 and ARM, and you're just compiling via C because you heard LLVM was unfashionable, then you're an idiot.
>>
>>60244604
>>60244318
Listen to this guy anon. This is a good post.
>>
>>60244549
The only thing I've found is that there's much more documentation for imperative-ish languages than functional languages out there.

I've never made a particularly complicated functional compiler, but I don't think it would be too hard if you're willing to study (possibly in the form of reading the code of existing compilers).
>>
File: huh.jpg (26KB, 239x268px) Image search: [Google]
huh.jpg
26KB, 239x268px
why cant i access self paced courses on edx?
I got the link from the git thingy that someone linked in the old thread
https://github.com/open-source-society/computer-science
the courses didnt start yet so i assume there are old versions of the courses they link to, otherwise why would they tell me to do a course which they cant know is good.
>>
File: 14846745414091.jpg (58KB, 850x1021px) Image search: [Google]
14846745414091.jpg
58KB, 850x1021px
Is there a difference between the CoC and dependently typed lambda calculus?
>>
>>60244318
Yes.
Much much easier.
>>
>>60244604
LLVM is a huge clusterfuck to learn and just outputting C is a whole lot easier than learning how to use LLVM.
>>
lol @ "programming" in python
>>
>>60244471
Thank you for this, Ill check it out.
>>
File: idris.png (444KB, 816x1049px) Image search: [Google]
idris.png
444KB, 816x1049px
>tfw to intelligent for hasklel
>>
>>60245089
good lad
>>
>>60244800
You're not wrong. My post was from the point of view of using it in production. If it's primarily a learning project and he just wants to get up and running, C might be the easier way forward.
>>
>>60245122
Edwin, is that you?
>>
What did you rewrite in Rust today /dpt/?
>>
>>60245140
Yes it is me.
Abandon all who do not preach the way of Dependent Typesâ„¢
>>
>>60245164
Who would win in a programming fight between you and Edward Kmett?
>>
>>60245180
I'd knock that chubby manlet on his ass.
>>
File: 1475767120670.jpg (55KB, 610x396px) Image search: [Google]
1475767120670.jpg
55KB, 610x396px
>decide to try VS2017
>mfw
HOW THE FUCK DO I GET 2015 BACK
FUCKING SHIT
>>
are there any actual working people here or is this general filled with NEETs who can write fizzbuzz in C and spam anime pictures only?
>>
>>60245210
Professional OCaml coder here.
>>
>>60245196
>ass
>not arse
Impostor!
>>
File: 1469634327410.gif (396KB, 500x537px) Image search: [Google]
1469634327410.gif
396KB, 500x537px
>>60245210
I work in the CVS call center, if that counts
>>
Writing a LCD driver for the PL111 LCD interface now, to understand how LCD's work.
>>
>>60245215
Professional Haskell coder here, get rekt
>>
>>60245210
Professional Android coder spamming anime pictures here.
>>
>>60245242
I am not jealous of your lazy language.
>>
>>60245210
>working people
People whose day consist of mindlessly developing some shitty "app" tend not to have programming as a hobby.
>>
>>60245251
>android coder
>>
>>60244471
How can you even stand Casey talking?
The constant smacking, gulping and other stupid habits that he does every 5 seconds or so are so unbearable.
>>
>>60244517
It's great if you get it for free
>>
>>60245251
there's easier ways to get attention anon, like sucking my cock
>>
>>60245281
I import GitHub libraries, glue them together with StackOverflow code snippets and get paid. That makes me a coder :^)
>>
File: 1472935186224.jpg (46KB, 400x400px) Image search: [Google]
1472935186224.jpg
46KB, 400x400px
Should the undo operation of a hex editor undo every single edited/inserted/deleted byte separately or should it undo chunks of edited/inserted/deleted bytes?
>>
>>60245347
Definitely the latter. There have been text editors that worked the other way. They're horrible to use.
>>
What's a good way to get started with data science?
>>
File: 1427220397529.gif (974KB, 500x281px) Image search: [Google]
1427220397529.gif
974KB, 500x281px
Alright, I'm done with visual studio
Where do I go from here, codeblocks?
For C++
>>
>>60245433
GNU Emacs.
>>
>>60245433
Clion
>>
>>60245433
VS Code
>>
>>60245433
Qt Creator tbqh.
Even if you don't use qt.
>>
File: do_you_use_rust.png (55KB, 1252x544px) Image search: [Google]
do_you_use_rust.png
55KB, 1252x544px
>>
>>60245566
but who are the respondents

does 64% of earth's population really use rust
>>
>>60245590
official survey
>>
>>60245610
if it's an official rust survey on www.rust.com asking www.rust.com users if they use rust do you think the results are going to mean anything
>>
>>60245639
It shows a crumbling community.
>>
>>60245590
>3k
>population of earth

hmm
>>
>>60245702
Are you acquainted with the concept of statistically significant samples, anon?
>>
File: AAAA.png (2KB, 475x28px) Image search: [Google]
AAAA.png
2KB, 475x28px
>try making a program that uses a singleton
>it keeps opening itself, creating hundreds of singletons
oh god what have i done

singleton was a mistake
>>
>>60245753
your a mistake
>>
>>60245753
>>60245782
b t f o
we did it reddit
>>
Trying to solve fizzbuzz.
>>
>>60244425
https://gitla.in/ezechiel/Eternity
Currently figuring out image scaling. Can't use glOrtho tho because it's deprecated in OpenGL 4.5, gotta calculate the transform matrix manually and hand it to OpenGL with glUniformMatrix4fv.
>>
Anybody knows what is the different between this two things? they give different results.

public class Test{

Test(){
//constructor
}

public void methodA(){
//stuff
}

public void methodB(){
Test test = new Test
test.methodA();
//Calling methodA with Test Class's object
}
}


and

public class Test{

Test(){
//constructor
}

public void methodA(){
//stuff
}

public void methodB(){
methodA();
//Calling methodA directly.
}
}
>>
>>60245889
shit wrong code let me fix the first code:
public class Test{

Test(){
//constructor
}

public void methodA(){
//stuff
}

public Test methodB(){
Test test = new Test
test.methodA();
return test;
//Calling methodA with Test Class's object
}
}

>>
>>60245915
>calls new Test being itself a Test
Why is this retardation allowed?
>>
>>60245889
>object
>>>/r/abbit
>>
>>60245889
>>60245915
Test test = new Test();

>The language is ~~~, and I'm now going off 4chan to research this baby tier question by myself.
ftfy.
>>
I'm working on a program that helps me simulate tabletop adventures.

The tabletop game I designed myself, the app helps me run the game online since my friends and I can't always meet up. we run the campaign over kik or Facebook. The app allows me to take all their stats into consideration and make the calculations for me.

Like for a luck roll, its usually just "whats your luck? well you need to roll this to make this happen"

the app will allow me to make it more complex (because fuck it why not)

and compare your luck to your opponents luck and the situation at hand and other factors like speed reflex of the character intelligence etc.
>>
>>60245970
>The language is ~~~
you can say "sh*t" on here, buddy
>>
>>60245889
>>60245915
If you do this

Test test; 
test.methodB();


The second example will call have methodB call methodA on the same object. The first example with create a new instance of Test and call methodA on that instead.
>>
>>60244744
I wonder the same thing here.
>>
Suppose one knows java, and they want to learn android development; can they just look at some online docs and start programming right away, or should they read a book about the topic?
>>
>>60245089
Can you upload it please? I can only find samples of it.
>>
File: shitpost.jpg (83KB, 800x542px) Image search: [Google]
shitpost.jpg
83KB, 800x542px
>>60245970
>>60245951
>>60245967
i am a beginner did i ask something wrong?

>>60245970
>baby tier question
can you give me the keywords so i can google it.

>>60246136
i thing i get it(i think). I have to use another class to call methodB like the fist code.
btw thank you for being polite :3
>>
how can i get beyond beginner level?
send help
im stuck
what book, what course, what video series? ;_;
>>
>>60246219
HtDP
>>
>>60246219
SICP

>what video series
None
>>
>>60246219
just like make things
>>
>>60246285
SICP is a beginner book though.
>>
>>60246314
You can't get beyond the beginner level if you haven't read it however.
>>
>>60246219
>what video series?
this must be the last option.
>>
>>60246219
Beginner level of what?
>>
File: 1494051182359.png (47KB, 573x694px) Image search: [Google]
1494051182359.png
47KB, 573x694px
Some anon asked for help with this on the last thread. It looks like the equations on the image are wrong; this code makes the correct plot. Just make sure you have gnuplot installed.
#include<stdlib.h>
#include<stdio.h>
#include<math.h>

#define N 10000

int main(void) {
FILE * plot = popen("gnuplot", "w");
fprintf(plot, "plot '-'\n");
double xn = 0.1, yn = 0.1, x, y;
for (int i = 0; i <= N; i++) {
fprintf(plot, "%g %g\n", xn, yn);
x = pow(1.0 - (1.0 - fabs(yn - xn)), 2);
y = sqrt(1.0 - (1.0 - fabs(1.0 - xn - yn)));
xn = x;
yn = y;
}
fprintf(plot, "e\n");
fflush(plot);
getchar();
pclose(plot);
return EXIT_SUCCESS;
}

Compile with
gcc plot.c -lm -o plot
>>
>>60246414
pretty cool
>>
>>60246495
>i thing i get it(i think). I have to use another class to call methodB like the fist code.

Without knowing what you're trying to accomplish, it's hard to give real advice. But it will probably help to understand how the syntax of a method works. Methods have a hidden parameter for the object it's being called on.

Test test;

//so this
test.methodA();

//is the same as
Test::methodA(&test);


That parameter is called "this" and is a pointer to the type of the object. Methods use that pointer to get the correct members and methods to work on.

methodB(Test *this)
{
methodA(); //same as this->methodA(); //same as Test::methodA(this);

Test test;
test.methodA(); //same as Test::methodA(&test);
}


In this example, this and &test are both addresses of Tests but test is a new object that was declare in the method.

>btw thank you for being polite :3

LONDON
O
N
D
O
N
>>
I have a coworker who riddles code with debug messages like System.out.println("a") can I report him to management?
>>
>>60246414
Nice. But what is it?
>>
I want to shotgun approach my CG and system programming courses with one project. CG requires the project to be done in WebGL with some shitty JS frameworks I don't know shit about. How do I access Linux syscalls from JS?

I found this demo. https://s3.amazonaws.com/mozilla-games/ZenGarden/EpicZenGarden.html
Looks like it downloads and compiles something at the initialization. Idk if it's a part of the web app compiles on my machine and then runs while the controller/view stays in browser or what? If it's so then how much can I do with this? can I use my syscalls here, like open files, fork and maybe write a simple (local cause idk shit about networks) server that would communicate with multiple instances of my web app with POSIX/SystemV IPC?
>>
>>60246620
a sharkfin
>>
>>60246620
Wrong pic.
>>
>>60246620
pantsu
>>
>>60246627
>How do I access Linux syscalls from JS?
do you really think websites should be allowed to do that
>>
>>60246573
I've seen worse.
>>
>>60246657
>do you really think websites should be allowed to do that
Wyy not. They just need to implement a security layer on syscalls that can be fully customized by users.
>>
>>60246690
>Wyy not.
If that ever happens, I'll go full RMS.
>>
>>60246717
If we can configure security on syscalls, the security of Linux would be improved. Think about it, today it's nothing or everything, so any program I run has full access to all my user session.
>>
>>60246744
>Think about it, today it's nothing or everything, so any program I run has full access to all my user session.
Except for websites running in your webbrowser I hope.
>>
>>60246285
not that beginner anon, but:
>Google sicp
>It's written in the 70s.
>Go to Images.
>Full of anime and pony shit.

?????
>>
Anyone here have experience with Deepstream?
It almost seems too good to be true. Also the lack of its own MySQL connector...
>>
>>60246157
I don't know if any books would help, but you definitely won't get far looking at online docs. Look at on online course, maybe?
>>
File: 1489615923286.png (1MB, 1000x1280px) Image search: [Google]
1489615923286.png
1MB, 1000x1280px
>>60246887
https://mitpress.mit.edu/sicp/

>It's written in the 70s.
No, the second edition is newer.

>Full of anime and pony shit.
Hm? Never seen pony stuff about SICP.
>>
>>60246620
Looks like some sort of strange attractor. This is possibly a chaotic dynamical system.

That means the system, altough deterministic, behaves in an unpredictive way and is sensible to initial conditions, but still its states evolve to a well-known figure, fractal surface, curve, etc, known as an attractor.

Slightly changing the initial conditions completely changes the values over time but they still adhere to the same curve.

Take a look on the Lorenz Attractor.

#include<stdlib.h>
#include<stdio.h>
#include<math.h>

#define N 10000

int main(void) {
FILE * plot = popen("gnuplot", "w");
fprintf(plot, "plot '-', '-'\n");
double xn = 0.1, yn = 0.1, x, y;
for (int i = 0; i <= N; i++) {
fprintf(plot, "%g %g\n", xn, yn);
x = pow(1.0 - (1.0 - fabs(yn - xn)), 2);
y = sqrt(1.0 - (1.0 - fabs(1.0 - xn - yn)));
xn = x;
yn = y;
}
fprintf(plot, "e\n");
xn = 0.101, yn = 0.101;
for (int i = 0; i <= N; i++) {
fprintf(plot, "%g %g\n", xn, yn);
x = pow(1.0 - (1.0 - fabs(yn - xn)), 2);
y = sqrt(1.0 - (1.0 - fabs(1.0 - xn - yn)));
xn = x;
yn = y;
}
fprintf(plot, "e\n");
fflush(plot);
getchar();
pclose(plot);
return EXIT_SUCCESS;
}
>>
>>60246970
Clarifying: the code is not the Lorenz Attractor but just a comparison of the same system with two different initial conditions.
>>
File: VID_20170506_194916398.mp4.webm (2MB, 1920x1080px) Image search: [Google]
VID_20170506_194916398.mp4.webm
2MB, 1920x1080px
Hello,

I can do FizzBuzz while being connected to the Internet.
Is this good?
>>
>>60247065
This is dank. That's the resolution on that display and how much do they cost?
>>
>>60246817
The problem is not the websites, it's firefox itself.
>>
File: arrays.png (16KB, 966x484px) Image search: [Google]
arrays.png
16KB, 966x484px
What's the easiest/most efficient way to go from the first array to the second array in the pic?
>>
>>60247094
128x64
It is a oled display with the 'ssd1306' controller. They are available with i2c or spi bus. Cant display much on em, but they are fuckin crisp and only cost something between 5 n 10 bucks
>>
>>60247100
not tested
int *bigger (size_t h, size_t w, int *matrix) {
int i;
int j;
int *ret;
if ((ret = malloc (4 * h * w * sizeof (int))) == NULL) {
return NULL;
}
for (i = 0; i < 2 * h; i++) {
for (j = 0; j < 2 * w; j++) {
ret[2 * w * i + j] = matrix[w * (i / 2) + (j / 2)];
}
}
return ret;
}
>>
>>60247139
Thanks anon.
>>
>>60247119
Thanks. 128x64 is a bit small, I'll see if I can find bigger ones.

>>60247100
https://en.wikipedia.org/wiki/Nearest-neighbor_interpolation
>>
Who here /put Linux adverts in Windows builds of their software/?
>>
>>60247139
all those uninitialized variables..
>>
>>60247266
They all get initialized before being read.
>>
>>60247266
There are no uninitialized variables there.
>>
>>60247266
Where my little code monkey? When I do C i do it like a true C coder.
>>
Finnes det et bedre programmeringsspråk enn Idris?
>>
File: 2017-05-06-201712_732x733_scrot.png (34KB, 732x733px) Image search: [Google]
2017-05-06-201712_732x733_scrot.png
34KB, 732x733px
rate my word cube program lads
https://github.com/wrclark/ye/blob/master/wordcube.c
>>
>>60247266

List of local variables that aren't parameters:
i, j, ret

ret is initialized on line 5
i is initialized on line 8
j is initialized on line 9

Each variable is first referenced on the line it is initialized on such that no variable is referenced until after it has been initialized.

There are no instances of use before initialization.
>>
>>60247400
Don't put those kind of things in a github.
>>
>>60247400
>Ubuntu
Most basic bitch distro
>>
>>60247430
It's not enough anon. You must prove that each pointed int of ret is initialized.
>>
>>60247447
how come?
i dont work with programming or anything its just a hobby
>>60247459
it just werks
>>
>>60247459
but that isn't what anonymous asked you to rate
>>
>>60247278
>>60247295
>>60247317
>>60247430
>all variables are initialized! check line X, Y and Z!

this is how i can tell you never worked in a real project before. sure its easy to keep track of initialization when you're running "hello world" type of applications.

declaring a variable without initializing it is BAD PRACTICE, it can lead to use before initializing which is a runtime bug, not even caught at compile time.
>>
>>60247494
>declaring a variable without initializing it is BAD PRACTICE, it can lead to use before initializing which is a runtime bug, not even caught at compile time.
Have you once in your life used a C compiler anon? Please shut the fuck up, you're just showing your ignorance here.
>>
>>60247494
>it can lead to use before initializing which is a runtime bug
This is why you compile with -Wall -Werror -pedantic.
>>
>>60247494
>not even caught at compile time
that sounds like a shitty compiler
>>
>>60247526
You forgot -Wextra -Wno-parentheses
>>
>>60247494
The opposite is true you mong.
>>
>>60245210
I'm a student.
>>
>>60247517
>>60247526
>>60247529
>t. never worked in a real life project
you guys have no idea how messy things are out there. and no you cant just decide to run the compiler with X or Y flags, 99% of the time its not your decision.
>>
>>60247555
this
your code should run with your boss' compiler and flags
>>
>>60247555
>and no you cant just decide to run the compiler with X or Y flags, 99% of the time its not your decision.
I wouldn't work in any company that didn't use at least those flags.

I've worked professionally with C and C++. Have you?
>>
File: 1486025897064.png (35KB, 378x392px) Image search: [Google]
1486025897064.png
35KB, 378x392px
Rust is the future.
>>
>>60247555
>99% of the time its not your decision.
You're right. It's not your decision, it's mine. And nobody argue with me about code in real life.
>>
>>60247592
Rust and ATS are the future of systems programming.

Idris is the future of applications programming.
>>
>>60247621
>ATS
What is it?
>>
>>60247640
https://en.wikipedia.org/wiki/ATS_%28programming_language%29
>>
>>60245514
I haven't been using qt for years and still stick to qtcreator for C and C++ development.
>>
>>60247580
>>60247617
lol, ok you dont want to learn then dont learn, whatever.
>>
>>60247656
Learn what? You evidently have nothing to teach us.
>>
>>60247656
You have nothing to teach me kiddo. We're not in the same league.
>>
>>60247621
>Rust and ATS
Which one of them should I learn?
>>
>>60247760
I'd go with Rust for now, and pick up ATS when it's more mature.
>>
File: 1493494384918.gif (523KB, 900x650px) Image search: [Google]
1493494384918.gif
523KB, 900x650px
>can't figure out how to dynamically load textures in my game loop since it will cause my game loop to hang
I guess the only way to do this is create another thread?
>>
>>60247672
>>60247703
>kiddo
that ragekid though
>>
>>60247592
what color theme is that?
>>
>>60247760
Rust. ATS syntax is a clusterfuck for now and it has a grand total of 2 users (including a complete lack of libraries, though it has good C interop). ATS having a full proof system does mean it's easier to relax the borrow-checking constraints that can be a pain in rust, however.
>>
my classmate said he'd pay the beers next time if I manage to run a functional battleships program, so here I am.

So far this is what I have, what I'm missing is printing the "decoy" matrix through JOption, modify indexes as the player finds a boat, and guess that's it. Though I know this is most likely not functional, and I can't check because I'm on my phone which doesnt support JOption stuff.

Mind giving me a hand on this one?

(code in next comment, too long for this one)
>>
>>60247888
oh, it's Java btw

import javax.swing.JOptionPane;
public class Main{

public static void main(String[] args){

int matriz[][] = new int[5][5];
char matrizI[][] = new char[5][5];

posicionarBarcos(matriz);
matrizFalsa(matrizI);
procesoJuego(matriz, matrizI);

}

public static void posicionarBarcos(int[][] matriz){

int contador = 0;

for (int x = 0; x < matriz[0].length; x++) {
for (int y = 0; y < matriz[0].length; y++){
int aux = (int) (Math.random() * 2);
if (aux == 1) {
if (contador >= 10){
aux = 0;
}
contador++;
}
matriz[x][y] = aux;
}
}
}

public static void matrizFalsa(char[][] matrizI) {
for (int x = 0; x < matrizI[0].length; x++) {
for (int y = 0; y < matrizI[0].length; y++) {
matrizI[x][y] = '-';
System.out.print("|");
System.out.print(matrizI[x][y] + " ");
}
System.out.print("|");
System.out.println(" ");
}
}

public static void procesoJuego(int matriz[][], char matrizI[][]){
for (int x = 0; x < matriz[0].length; x++) {
for (int y = 0; y < matriz[0].length; y++) {

int aciertos = 0;
int x = matriz[x];
int y = matriz[y];

if(aciertos<10){
JOptionPane.showInputDialog("Ingrese coordenada x");
int coordenada1 = Integer.parseInt();
JOptionPane.showInputDialog("Ingrese coordenada y");
int coordenada2 = Integer.parseInt();

if(coordenada1 == x && coordenada2 == y){
JOptionPane.showMessageDialog(null, "Le diste!");
aciertos++;
else{
JOptionPane.showMessageDialog(null, "Fallaste.");
}
}
}
}
}
}
>>
>>60247879
ATS. Rust syntax is a clusterfuck for now and it has a grand total of 2 users (including a complete lack of libraries, though it has good C interop).
>>
>Java
public static boolean test (String s){
Pattern pattern = Pattern.compile("\\d{3}");
Matcher matcher = pattern.matcher(s);
if (matcher.find()){
return true;
}
return false;
}

>Javascript
var test = s => /\d{3}/.test(s)

Truly what a disgusting language
>>
>>60247917
....................................
>>
>>60247791
Who said this though?
>>
>>60247809
Custom.
>>
>>60247919
public static boolean test (String s) {
Pattern pat = Pattern.compile("\\d{3}");
return (new Matcher().matcher(s).find());
}
>>
>>60247970
care to share? looks pretty sweet
>>
>>60245251
>sample
Disgraceful. Check filenames before saving
>>
>>60247971
Much better.
>>
>>60247971
>>60247919
public static boolean test (String s) {
return (new Matcher().matcher(new Pattern.compile("\\d{3}")).find());
}
>>
>>60245210
Java backend service developer here. I make sure cable TV only goes up to space and back down to local providers once all of the business rules are met.

>>60244282
I'm working on writing Ada to bare metal ARM microcontrollers. I'm hoping to learn the Spark 2014 subset and use it to write provably not-shit software.
>>
public static void main(String[] args){
ArrayList<String> a = new ArrayList<String>(255);
a.add(2, "praise kek");

for(String s : a){
System.out.println(s + ".");
}
}


Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 2, size: 0 at  java.util.ArrayList.rangeCheckForAdd(ArrayList.java:661)
at java.util.ArrayList.add(ArrayList.java:473)


wat
>>
>>60248018
I like the above version more. Even though it's an extra line, the lines are about the same length and have obvious goals
>>
>>60248049
length != capacity
>>
>>60247971
wait this isn't correct you're not actually using pat, just declaring it
>>
>>60248062
Same thing happens after calling
ensureCapacity(255)
>>
>>60248018
And in this one you're not actually using your String s parameter
>>
I am finishing a program and have come upon a problem
I have 3 search fields through which users can search a database by different values.
I programmed the fields to be dynamic, so that everytime you type something in the field, it already filters the result.
However, right now, the result displayed applies the filter from only one field.
Do I need to program to include all the fields? 1 represents text in field, 0 means empy field.
Do I need to do
0 0 0
0 0 1
0 1 0
1 0 0
0 1 0
0 1 1
1 1 0
1 0 1
1 1 1

So that it takes in consideration data from all fields or is there a different, better way?

Another examlpe
Field 1 has 2 typed in, when you type 4 in the second field, the results update to display 24xxx
If I type 3 in the third field it displays 24xx3
Help
>>
>>60248083
>>60248062
>>
>>60247985
It's a modified version of Kugel for Geany.
https://pastebin.com/Xm1TU1bQ
Author name is the original author.

Just pop it in ~.config/geany/colorschemes/ and switch the color scheme in geany.
>>
a program to kill all white people
>>
>>60247905
you're not accessing a 2d array correctly around line 50
you're redeclaring x and y around line 50 too
>>
>>60248036
so you press a JButton?
>>
>>60248094
https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html
>The capacity is the size of the array used to store the elements in the list. It is always at least as large as the list size.

?
>>
>>60248111
checked and thanks!
>>
String[] strings = new String[10];
Object[] objects = strings;
objects[0] = new Integer(7);


Defend this, Java users.
>>
>>60248147
perfectly valid behavior. the reference in object[0] now points to a new Integer object while the previous String object is now unreachable
>>
>>60248132
yeah, I messed up the format and didnt think of redeclaring

what do you mean by not accessing the 2D array right? that it won't print in rows and columns?
>>
>>60248167
But now my String array has an Integer in it!

(Actually, the third line of the snippet will throw an exception.)
>>
>>60248167
So what happens if you use strings[0] afterwards?
>>
File: 1480455960907.jpg (55KB, 276x276px) Image search: [Google]
1480455960907.jpg
55KB, 276x276px
>>60244282
so someone here told me to do a monty hall simulation as a small project for pajeet level C# coding. Problem is, the two scenarios do not give the supposed statistical difference.

What am I fucking up here?

Random rnd = new Random();
for (int i = 0; i <= 1000000; i++)
{
int[] doors = { 0, 0, 0 };
var car = rnd.Next(3);
doors[car] = 1;
int choice = rnd.Next(3);
int montyShow;

do
{
montyShow = rnd.Next(3);
}
while (montyShow == 1 || montyShow == choice);

stickWins = stickWins + doors[choice];
switchWins = switchWins + doors[3 - choice - montyShow];
}

textBox1.Text = stickWins.ToString();
textBox2.Text = switchWins.ToString();
>>
>>60248133
I write the software that makes the JButton appear when media from porn companies is marked as porn and that the correct billing info is wired up. (An a thousand other business rules)

Ops team pushes the JButton.
>>
>>60245301
I got it from free. I'll download the entire path.
>>
>>60248254
do you need to update that often?
>>
>>60245271
speak for yourself, fuck boi
>>
File: 1462699649983.png (66KB, 238x192px) Image search: [Google]
1462699649983.png
66KB, 238x192px
link html tutorials, i cant do this programming shit
>>
>>60248336
>>>/g/wdg
>>
>>60248090
pls respond
>>
>>60247472

Well, I'm not the one who wrote it, but let's see here...

The original matrix has h*w entries, while the new matrix has 4*h*w entries, suggesting that it is blown up 2 times in either direction. Anon iterates with i from 0 inclusive to 2*h exclusive, and j from 0 include to 2*w exclusive. The iterator j represents the column number, and the iterator i represents the row number of the new matrix. Assuming there is no duplication of assignment operations, this should make 4*h*w unique matrix accesses. Since w never changes over the course of the function, 2*w should be taken to be a constant, we'll call it C. We know j is always less than C from the conditional in the second inner loop, when i increments by 1, and j is reset to 0, the address C*i + j is one greater than the previous iteration. As such, each access is one greater than the previous access, and all 4*h*w elements are accessed.
>>
>>60248224
I think you need to do
doors[montyShow] == 1

because I don't know how having montyShow != 1 has anything to do with it seeing as you place your car at random.
>>
>>60248274
Rules change when media producers contracts are added or renewed. Sales people are involved. Happens quarterly. Most of the rules use a rules engine we wrote, but there's some manually coded stuff too.

In an ideal world there would is no need whatsoever for the software I write, but we get payed to make sure contracts are followed and people can order porn on their tv.
>>
>>60244318
Make your own code generator and emit machine code directly.
Language implementations should be completely self sufficient with zero external dependencies, and not rely on big bloated monstrosities.
>>
>>60248639
OCaml is dependent of C compiler. How do you want a language to bootstrap without another compiler?
>>
>>60248461
shit, you are right. Thanks
>>
>>60248686
False and google it retard.
>>
File: 1488387498979.png (549KB, 1920x1080px) Image search: [Google]
1488387498979.png
549KB, 1920x1080px
I have finished Jumping into C++, but now I have a chronic case of the "What now"
Most of the stuff needed for most of the stuff in pic relates eludes me, it's like I'm missing something between knowing the building blocks and what's actually needed to make a program that's not just a stupid monofunction console application.

Should I move onto another book? How do I learn how to actually make stuff?
>>
>>60248698
I just work every week with someone who has write access on the github of OCaml.
>>
>>60248743

Have you tried wearing a skirt?
>>
>>60248748
>I just neet all day and hallucinate a reality that will never happen
Fascinating.
>>
>>60248209
There is no afterwards. The third line will throw an ArrayStoreException.
inb4 type erasure
>>
>>60248774
Please have a look here anon https://github.com/ocaml/ocaml/tree/trunk/byterun
>>
How similar are React and React Native? Or is this like a Java/Javascript thing?
>>
>>60248785
Maybe you should do that yourself. Or get a brain, either should work.
>>
>>60248686
When you bootstrap it you can obviously use whatever.
But once it's self-compiling you longer need that bootstrapping, and you should rewrite it in itself.
>>
>>60248809
It's the C code of the ocaml vm (ocamlrun) used to bootstrap the ocaml compilers that you can found here https://github.com/ocaml/ocaml/tree/trunk/boot

Why do you argue about that?
>>
File: proof.png (35KB, 749x258px) Image search: [Google]
proof.png
35KB, 749x258px
How good is /dpt/ at math? Can you solve pic related?
>>
>>60248951
We're not going to do your homework
>>
>>60248988
>can't solve it
>d-do your own h-homework!
that damage control tho
>>
>>60249003
not him but your post sounds exactly like someone who's trying to get anonymous internet users to do his homework
>>
>>60249024
I've already solved it. I'm merely curious as to whether /dpt/ can do it, or is just a bunch of slackers.
>>
>>60249046
t. hasn't done his homework
>>
>>60249046
asking the internet to solve a homework-level question just out of curiosity sounds like an excuse
>>
>>60249046
then give us part of the proof
>>
>>60248951
Base case: fib(1) = 1, verified.
Induction: (phi * phi^(n-1) - psi * psi^(n-1)) / sqrt(5) = (phi^(n-1) - psi^(n-1))(phi + psi) / sqrt(5), QED.
>>
>>60249178
thanks for the homework bud :^)
>>
File: 1493626996466.jpg (9KB, 225x225px) Image search: [Google]
1493626996466.jpg
9KB, 225x225px
>>60245210
pro Java dev here. Despites all the hate, it's quite okay.
>>
>>60248049
You know ... I don't really understand this either. What is the benefit of declaring a capacity?
>>
Shit I just need to send an authenticated and encrypted HTTP request to a server using python. The only things I care about right now are:

1. The sender can prove its identity to the receiver
2. The receiver, and only the intended receiver, can decrypt the message

Should I implement some RSA scheme and pray that it's safe or is there a standard way for this in python?
>>
>>60249290
Efficiency
>>
>>60249305
>python
>secure
>ever
There's a reason we don't let your kind write code that actually needs to be secure.
>>
File: 1467149910660.jpg (36KB, 657x527px) Image search: [Google]
1467149910660.jpg
36KB, 657x527px
>>60249323
>
>>
>>60249358
Sorry anon, that was mean.

But rolling your own auth scheme is generally a bad idea.
>>
>>60249289
It's definitely much better now than it used to be, but it's moving so, so slowly and it's still not Good Enough (tm).
>>
>>60245210
NEET.
Depression.
Thousands of unfinished ambitious projects.
>>
>>60249319
But what is it actually doing? I thought it was akin to a dynamic array, but you'd actually be able to insert an element at index 2 if you allocated an array of that capacity.
>>
>>60249441
I'm no javafag, but I guess ArrayList is a list that uses an array to store data, and reallocates that array to grow in size. It behaves like a list, e.g. you start with zero elements and can add and remove, but you can't assign by index.
Capacity constructor is provided so you won't have to reallocate that underlying array, because you know ahead of time the amount of items you're gonna need.
>>
>>60249434
>Thousands of unfinished ambitious projects.
Like what?
>>
>>60244425
Can you program a not-shitty version of tictactoe in assembley for me?
>>
Is there a book or a "manual" which contains the list of all things people implicitly expect me to do? I mean in social situations.
>>
>>60249430

>>60249358
Wasn't even me. I know it's stupid. I'm just frustrated at not being able to find anything even remotely usable with python. I just want to
encrypt_for_transport(path_to_key, message)
>>
>>60248639
So I should write my own linker and assembler?
>>
The user should type a name and it needs to be put in a char array. How do I do it in C?
>>
Final project for my computer science class. I have to make a game using JavaFX, it's due on Wednesday, I've barely started, and I have four other classes I have to worry about.

Fuck my life.
>>
>>60249569
Hire a pajeet do to it for you for 10$
>>
>>60249614
I'm Indian myself though.
>>
>>60249569
Why didn't you start it sooner? Just find something and copy it.
>>
>>60249541
I have a feeling most Python libraries available are just going to be wrappers around C libraries.
>>
>>60249626
Then just pay your teacher to do your work for you.
>>
File: 1488143910221.jpg (48KB, 330x319px) Image search: [Google]
1488143910221.jpg
48KB, 330x319px
>>60249626
>he can't even OOP in loo
>>
>>60249569
How complex does the game have to be?
>>
>>60249505
Textured renderer for implicit surfaces. Collision system for scenes built by implicit surfaces.
System for recognising interesting posts for generic sources (training is supposed to be source agnostic).
Some UI/UX focused systems for sorting/moving files that can have a sensible visual representation (pictures, text files, videos) quickly in human time.
Linux module to speed up packet processing.
It's all just crap though. Never get far into any of it. The collision system mentioned is still just single point vs implicit scene and I haven't even made a broad phase collision system for the non-implicit entities.
>>
>>60249569
Make a game in the console then visualise it using javafx.
>>
>>60249654
> a pajeet who cant even POO
May death come to him quickly
>>
> mfw no /wdg/ thread because all webmonkis are busy hustling paper
how do you neets feel about web-oriented devs making money while you shill and debate obscure langs all day?
>>
>>60248743
>Cannot do anything besides standard i/o
And so another pajeet was born
>>
>>60249772
>web-oriented devs making money
Oh yeah, I'm really jealous of that 60k starting in the bay area.
>>
>>60248804
>>60249772
>>>/g/wdg/
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
post your github
>>
>>60249872
Post yours before.
>>
File: 1493648941556.jpg (260KB, 1280x847px) Image search: [Google]
1493648941556.jpg
260KB, 1280x847px
>>60249569
>>60249626
Follow your indian heritage of copypasting stack overflow until you get something barely functional berriden with bugs that fails on a myriad of cases and is highly unmaintainable, you will make your turd ancestors proud and you'll even get some free time to creep on girls on instagram and facebook
>>
>>60249872
Better: post how many stars you have on your most popular repo
56 here
>>
>>60249889
github.com/torvalds
>>
OOP belongs in LOO
>>
>>60249914
C sucks!
>>
>>60249872
I could post mine, but it's empty.
And it has been empty for the past 4 years.
>>
>>60249893
>Indians creep on girls
Yeah I do see that a lot. Anyone have an explanation?
They have arranged marriages. Why would they need to?
>>
>>60249912
1337 stars here. Not even kidding.
>>
>>60249912
>56
it's about what?

let me guess: written in JS?
>>
>>60249942
No, it's an UI library
C#
>>
>>60249914
No doxing.
>this isn't doxing
Tell that to the mod who banned me for posting a (my own) throwaway email.
>>
>>60249872
I'm scared to, anon.
>>
>>60249798
>his mindset revolves around someone paying him salary
you would make a good wife someday
>>
File: output3.webm (3MB, 1280x720px) Image search: [Google]
output3.webm
3MB, 1280x720px
>>60244282
The future is now.
>>
>>60249981
>using basic functions of OpenGL
>using a C library with more than 5000 lines that does all the work

i can do that too
>>
File: Capture.png (950B, 164x44px) Image search: [Google]
Capture.png
950B, 164x44px
>>60249914
>everyone on Earth is a contributor to the linux kernel
No wonder it's so shit
>>
>>60249981
Post the full image.
>>
>>60250008
Didn't know Earth had infinitely many people. No wonder it's so shit.
>>
>>60250003
Buy my mixtape.
>>
>>60250003
>write your own driver for your closed source graphics card
No thanks.
>>
>>60250038
Earth's population growth is non convergent, so yes.
>>
File: me.jpg (122KB, 1280x720px) Image search: [Google]
me.jpg
122KB, 1280x720px
>>60249981
>name + tripcode
>tiling anime desktop
>shitty blog post
i bet you post in desktop and everyday carry threads too
>>
>>60250069
pleb detected
>>
>>60250106
Only two of those things are abhorrent though.
>>
File: 1488068804688.jpg (21KB, 314x400px) Image search: [Google]
1488068804688.jpg
21KB, 314x400px
>>60250106
At least I don't save im@s images.
>>
>>60244282
*loops forever*
#include <stdio.h>

int main()
{
int result[4];
for (int number_current_matches = 0, i = 1; number_current_matches < 4;
i++)
{
//printf("Matching %d\n", i);
int sum_multipliers = 0;
for (int j = 1; j <= i; j++)
{
if (i % j == 0)
{
sum_multipliers += j;
}
}
if (sum_multipliers == 2 * i)
{
//printf("\tSUCCESS! %d is perfect\n", i);
result[number_current_matches] = i;
number_current_matches++;
}
}
printf("%d\n", result[0]+result[1]+result[2]+result[3]+result[4]);
return 0;
}
>>
>>60249933
Indians are the result of a twisted sick joke of what if evolution was focused on the most unlikable traits instead of survival
>Universally considered to be the most ugly race, no single race considers them beautiful
>Small dicks
>Disgusting smell
>No personal hygiene habits
>No sense of empathy or community
>Dicks even smaller than estrogen filled asians
>Pathological liars
>Highly propense to mutations like 6 heads or 15 arms
To name a few
>>
File: 1474249017807.jpg (118KB, 1200x986px) Image search: [Google]
1474249017807.jpg
118KB, 1200x986px
How to become C++ pro?
>>
File: chen_unsure.png (48KB, 315x209px) Image search: [Google]
chen_unsure.png
48KB, 315x209px
>>60250238
>>
>C++ language parsing is non-deterministic

Defend this.
>>
>>60250272
So?
>>
>>60247592
Is that Visual studio?
>>
File: 1489658452200.png (28KB, 655x509px) Image search: [Google]
1489658452200.png
28KB, 655x509px
WHY DOESN'T THIS WORK REEEEEEEEEEEEEEEEEEEEEEEEEEEEE

return Directory.GetDirectories(Directory.GetCurrentDirectory());
>>
>>60250272
provide an example
>>
@60250341
>incorrect usage of "REEEEEEEEEEEEEEEEEEEEEEEEEEEEE"
I don't want reddit stink nearby. Fuck off.
>>>/r/abbit
>>
>>60250341
RTFM
>>
>>60250341
I want to populate a combobox with the results of getting all the directories in a directory so I can select which directory to write files into.
>>
>>60245655
or it shows a lot of new users going on their site?
>>
>>60244454
I thought the standard didn't say anything about TCO? Which would mean it really depends on the compiler, not the dialect.

>>60245064
It's Turing-complete and has I/O. The only problem is that it's slow.

>>60245200
Just use Dev-C++ lol.

>>60245566
>>60245590
>>60245610
>>60245639
>>60245655
>only 2/3s of rust users use rust
literally cucked

>>60245753
Maybe you should only use the singleton pattern when you know for sure that you'll only ever need one instance of that object?

>>60247494
If your functions are large enough that it's hard to tell if a variable has been initialized or not, then your functions are too large.

>>60247555
Then whoever is in charge of compiler options is an idiot. Not my problem. Is it my fault if a program crashes because I was told to write it in C but the build team tries to push it through a Fortran compiler?

>>60248147
String inherits from Object, so any valid reference to a String is also valid reference to an Object.

>>60249566
#define BIG_ENOUGH 5000
...
char buf[BIG_ENOUGH];
gets(buf);
>>
>>60250373
deallocate yourself
>>
>>60250373
Don't tell me how to meme you shitlord I didn't embark on the path of wizardry in order to get my meming questioned by simpletons.
>>
>>60250425
I'm talking about the TCO of the source language. After compilation you'll have very few calls but a lot of goto.
>>
>>60250238

Effective Modern C++ is the book I've seen mentioned in high regard
>>
>>60250470
>meme
>meming
So basically you're admitting that you're a redditor then.
Back to your subreddit
>>
>>60250230
why do you say that you have only 4 values in your array when it is initialized but when you want to add them together you say you have 5 values to add together?
>>
>>60245210
Everything I've made is just to make fapping easier.
>>
Have you done your SICP today, /dpt/?

https://sarabander.github.io/sicp/
>>
>>60250341
You can use GetDirectories(".")
>>
>>60250425
autismo
>>
File: 1493334880854.jpg (44KB, 480x470px) Image search: [Google]
1493334880854.jpg
44KB, 480x470px
>>60250341
>>60250389
Works on my machine, i really hope you're taking into account that Directory.GetCurrentDirectory() returns the current working directory of your application so in most barebone cases you'll get an empty array because you haven't specified subfolders inside your build
>>
// __
// ___( o)> i am the wise duck of code, your code will compile without errors,
// \ <_. ) but only if you say "compile well ducko"
// `-----'
>>
>>60250499
>she thinks memes are a reddit thing

>>60250525
Do you get paid for it though?
>>
>>60250601
>Do you get paid for it though?
No.
>>
>>60250586
suck my cock
>>
>>60250586
be the duck of no access violations pls
>>
>>60247621
>checkout idris
>http://docs.idris-lang.org/en/latest/reference/uniqueness-types.html?highlight=garbage
Almost sold. I fucking hate the meaningful indent, though. Also where the libraries at?
>>
>code is a complete joke
>b... but it's a systems programming language
Fuck you. I know it's Leddit, but Rust hate is always appreciated.
https://www.reddit.com/r/programming/comments/69necf/the_grass_is_always_greener_my_struggles_with_rust/
>>
>>60250773
Fuck off back to plebbit
>>
>>60250788
Fuck off Hitler.
>>
>>60250773
>Fuck you. I know it's Leddit, but Rust hate is always appreciated.
XD WE DID IT REDDIT
>>
>>60250773
>R*ditors shitting up /dpt/
What next?
>>
>>60250805
Mozilla hiring Syrian rapefugees to work on Rust.
>>
>>60250805
>What next?
We shill video gaemz and make 20 more graphics card threads
>>
NEW THREAD AVAILABLE
>>60250799
>>60250799
>>60250799
>>60250799
Thread posts: 324
Thread images: 43


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.