[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: 334
Thread images: 56

File: 1491340732993.jpg (51KB, 640x548px) Image search: [Google]
1491340732993.jpg
51KB, 640x548px
What are you working on, /g/?

Old thread: >>59778843
>>
File: 1490574698149.jpg (23KB, 200x250px) Image search: [Google]
1490574698149.jpg
23KB, 200x250px
Thank you for using a desu image
>>
File: c master race.jpg (27KB, 500x600px) Image search: [Google]
c master race.jpg
27KB, 500x600px
>>59785901
Trying to get a grip on Java after years of deep C++ and C.

What the fuck does static do in simple terms?

What the fuck is a super class? What does extends do? What is Override?

Jesus Christ Oracle. What the fuck
>>
>>59785921
static stuff lives in global scope
>>
>>59785901
dmd backend has been converted to the Boost License
https://forum.dlang.org/thread/[email protected]
>>
>>59785921
a public static method is basically a global function
>>
reposting from previous thread
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>

#define AMOUNT_OF_STUFF 40

//Learned my lesson! No more easy flags
/*void win(){
system("/bin/cat ./flag.txt");
}*/


void vuln(){
char * stuff = (char *)mmap(NULL, AMOUNT_OF_STUFF, PROT_EXEC|PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);
if(stuff == MAP_FAILED){
printf("Failed to get space. Please talk to admin\n");
exit(0);
}
printf("Give me %d bytes:\n", AMOUNT_OF_STUFF);
fflush(stdout);
int len = read(STDIN_FILENO, stuff, AMOUNT_OF_STUFF);
if(len == 0){
printf("You didn't give me anything :(");
exit(0);
}
void (*func)() = (void (*)())stuff;
func();
}

int main(int argc, char*argv[]){
printf("My mother told me to never accept things from strangers\n");
printf("How bad could running a couple bytes be though?\n");
fflush(stdout);
vuln();
return 0;
}


do i need to write the machine code for system("/bin/cat ./flag.txt"); and then pass it to the port running this program?
>>
I want to learn graphics programming. I already know some C. Not too deep, but I can work my way through its features.

I've made the same question in the last DPT but I have received only a vague answer.

Where do I start? I hear I'll have to learn linear algebra and stuff. Is there any book that walks through it all, or any interesting material that I would find useful for that end?
>>
I wanted to make a stock trading game until I realized real-time stock information costs a small fortune. So now I'm thinking on using an alternative data set as stock information. My current plan is to make a script that runs on a set interval which counts the occurrences of words on 4chan. An alternative idea is to calculate the popularity of the current airing anime by counting the amount of times its mentioned on 4chan. Any other suggestions?
>>
>>59785921

static means it is the same for all instances of the class
>>
>>59786151
isn't scraping against the tos?
>>
>>59785937
somehow i learned this by reading K&R and i have no idea why that was in there. it was the first time i understood what static meant. mental since c's the furthest away from poo you can get
>>
hey guys, I could use some help with this template thing. I have a vector2 type that looks somewhat like this:
template <typename T> struct vector2
{
using V [[gnu::vector_size(2 * sizeof(T))]] = T;
union
{
V v;
struct { T x, y; };
};

template <typename U> constexpr auto promoted() const noexcept
{
return vector2<decltype(std::declval<T>() + std::declval<U>())> { *this };
}

template <typename U> constexpr vector2& operator*=(const U& rhs) noexcept
{
auto lhs = promoted<U>();
lhs.v *= vector2<U>{ rhs, rhs }.promoted<U>().v;
return *this = lhs;
}

/* all other functions omitted */
};

for some reason the promoted() function fails here. it's supposed to ensure both operands are the same type. I use it in many other functions and operators where it works just fine, but not here.
error: invalid operands to binary * (have 'vector2<float>::V {aka __vector(2) float}' and 'vector2<int>::V {aka __vector(2) int}')

any ideas why this is happening?
>>
>>59785982
You need to pass the correct file descriptor to mmap, right now you're passing stdout to it.
>>
>>59786194
I won't scrape, I'll use the API.
>>
Here is KRC classic "detab" problem.
Wrote this in fucking 10 lines. Those sjw stack overflow cuckders gave me 20+ line of codes.
#include<stdio.h>
int main(){
int c;
while( (c = getchar()) != EOF){
if( c == '\t')
while((c=getchar()) == '\t' && c!=EOF)
putchar(' ');
putchar(c);
}
}
>>
>>59786223
oooh wait nevermind. I'm stupid.
>>
>>59786225
i can't alter this code at all to clarify, can you explain to me a bit more what you mean? what exactly is the code doing? i thought it was reading in some arbitrary bytes of data and then executing them
>>
>>59786255
this just replaces tab characters with a space character, make it take an argument that's the tab width and replace tabs with that number of spaces lad
>>
>>59786223
holy fuck you are using all of c++11 features.
I have never used
>template
>decltype
>auto
>constexpr
>>
File: nepgear x totori.png (665KB, 744x1052px) Image search: [Google]
nepgear x totori.png
665KB, 744x1052px
>>59785991
I have a few links though I haven't worked through them myself.

You need a good understanding of matrices and vectors.
http://chortle.ccsu.edu/vectorlessons/vectorindex.html

I've heard good things about Computer Graphics - Principle and Practice.
https://u.nya.is/pxzvbu.tar.gz
Here's some textbooks on the subject, I just hoard things and don't look at them. There's some OpenGL stuff as well.
>>
>>59785921
Static applied to a method means that you can use the method without an object instance of the class.

So for example, String.format(fmt, ...) is static.
You call it using the class name, followed by a dot and the method name e.g:

String exampleStr = "World";
String example = String.format("Hello %s!", exampleStr);


If String.format wasn't static, you'd have to create an explicit string and call the method on it e.g:

String exampleFmt = "Hello %s!";
String exampleStr = "World";
String exampleFull = exampleFmt.format("World");


Sometimes using non-static calls actually makes the code easier to read, but usually static system calls or core utils are better kept static.
>>
>>59786303
I didn't understand.
>make it take an argument that's the tab width?
what is tab width
>>
>>59786304
>never used template

nigga how

have you never written a data structure

do you make every single program type specific
>>
>>59785991
For now just get familiar with the API.
http://www.glfw.org/documentation.html

Later on there are two bibles you should read, first is "Computer graphics: C version," second is "Real time rendering" by Tomas Akenine-Moller.
>>
Tried to recreate >>5978057 but it looks like Wolfram's Pokemon indices don't go by Pokedex number in some of the later generations.
>>
>>59786367
Ghost is streaming right now
>>
>>59785921
> after years of deep C++
nigga all the things you just asked about are in C++ too
>>
>>59786330
In my line of work. I just maintain code. never made anything for myself.
>>
>>59786379
Where?
>>
>>59786326
Tab width is the number of spaces that constitute one tab.
Default is usually 4. But some cancer webdev shits use 2.
>>
>>59786326
you're misunderstanding what tabs are, tabs (in unix at least, idk about windows) are just a single character '\t'. in text editors you can change your tab width, so a tab can be four spaces, 2 spaces, 8 spaces, whatever. in the text document, though, it's all just represented by a single '\t'. are you reading the book or just doing the exercises?
>>
>>59786308
>>59785991
Also, don't read latest Graphics principles and practice. The older version has C implementation which is better.The newer version has fucking C# implementation using WPF.
>>
>>59786399
True Capitalist Radio
>>
>>59785991
Anton's OpenGL.
Only this book is needed to start from basic.
>>
how is it called that system characteristic that do not shit itself, when there are for example 10000 users at the same time?

scalability?
>>
>>59786422
Did you even read what I posted?
I uploaded the C version of that book.
>>
>>59786415
this dude on my software engineering class project team uses a single space as a tab. he did work exclusively on the front end, just copy and pasting stuff he finds online, so of course he has a load of LOC on our github. he told the professor today he did 80% of the project. literally nothing he made interacted with any backend whatsoever, no buttons had any functionality
>>
>>59786417
Reading and doing exercise.
In chapter 5 now. But there is problem in chapter 5 that asked to redo chapter 1 detab and entab.
I forgot how I did chapter 1 previously. It was 1 and 1/2 months ago.
I still haven't understood the problem.
I understand replace tabs with "blanks".
So 2 tabs get replaced with 2 space which is a blank.
What exactly is the question asking?
>>
>>59786438
yes
>>
>>59786390
yes but largely ignored
>>
>>59786437
>>59786422
>>59786359
>>59786308

thank you people. Will look into it right now.
>>
File: 1491052708564.png (313KB, 700x995px) Image search: [Google]
1491052708564.png
313KB, 700x995px
unsigned long long main(unsigned long long argc, *argv[9223372036854775807])
{
for(unsigned long long long = 1; long != 0; long++) {
printf("the ride never ends :^)\n")
}
return 1;
}
>>
>>59786444
>Whenever I see link in 4chan i ignore the post
how do i know you are not nsa who wants to inject virus into my computer nigger
>>
File: 12wef.png (17KB, 628x308px) Image search: [Google]
12wef.png
17KB, 628x308px
Does "Load balancing" have a single word with the same meaning?
>>
>>59786562
long is a reserved keyword
you give smart anime posters a bad name

>>59786584
somehow I know this post isn't a joke and you really are fucked in the head from all the botnet memes
>>
>>59786447
Does he wear thick glasses and dyes his hair blue?
Pls describe him i want to related to a smilar guy I know in office.
>>
>>59786603
>smart
>anime posters
what did he mean by this?

>>59786585
not really
>>
>>59786562
%s/l/d
>>
File: image.jpg (42KB, 499x500px) Image search: [Google]
image.jpg
42KB, 499x500px
>>59786603
>smart anime posters
>>
>>59786639
>strcmp for hash function
>>
File: monodevelop.png (265KB, 1691x814px) Image search: [Google]
monodevelop.png
265KB, 1691x814px
>>59785901
i tutor students who learn C#. is monodevelop good enough to build projects with high school students? i wan't to completely get rid of windows so no more visual studio for me.
>>
>>59786637
BANNED
>>
>>59786654
yes.
>>
File: detab.png (4KB, 663x265px) Image search: [Google]
detab.png
4KB, 663x265px
Is this correct?
is everyone getting to do the captcha twice? annoying
>>
>>59786308
>I just hoard things and don't look up
What is your life?
I was wondering how I did good in college, got job in MNC company. And how I am about to finally start my own company.
Is this because most people are very lazy to actually learn and read technical books?
>>
>>59786607
he's mexican
>>
>>59786478
the file should look exactly the same before and after
>>
>>59786731
Maybe you just had everything handed to you.
>>
File: DUDE KLEIN BOTTLES.jpg (7KB, 200x150px) Image search: [Google]
DUDE KLEIN BOTTLES.jpg
7KB, 200x150px
Does anyone know how to easily access my non-OS drive for terminal display in a PowerShell script? Microsoft's documentation is fucking garbage
>>
>>59786808
Let me guess
>Loan Debt
>weed
>friendship
>Television
I avoided above things.
>>
>>59786889
not everyone got a free ride from daddy, you friendless neet

I bet you're gonna make some remark about me projecting, but you're making yourself out to be a clueless brat.
>>
include\c++\bits\stl_algobase.h(224,7): error : could not convert '#'vec_cond_expr' not supported by dump_expr#<expression error>' from '__vector(2) int' to 'bool'

oh wow gcc that is very helpful.
>>
>>59786654
I'm a professional C#/.NET dev and I use mono at home on Ubuntu. Works great. Nothing you'd want to try and deal with for professional work, but way more than you need for personal projects and tutoring. iirc. most classrooms teaching with C# these days use mono
>>
>>59786859
<drive letter>: e.g
e:
>>
can someone post the dpt project github?
>>
>>59787054
???
>>
>>59787071
yes for the project roulette
>>
>>59787080
https://better-dpt-roll.github.io/
>>
beginning to learn Vulkan
seems nicer than openGL, but theres still so much fucking housekeeping before anything can be drawn
>>
>>59786225
>correct file descriptor
mmap doesn't need (and ignores) a file descriptor with MAP_ANONYMOUS
>>
File: yuki.jpg (29KB, 622x350px) Image search: [Google]
yuki.jpg
29KB, 622x350px
>>59787114
>but theres still so much fucking housekeeping before anything can be drawn
Am I the only one who enjoys writing boilerplate?
>>
>>59787136
hello CRUD monkey
>>
>>59787085
>4chan thread quality analyzer
System.out.println("dogshit")


but Conway's Game of Life looks interesting. always wanted to something with emulating evolution
>>
>>59787136
Here
>>
File: 1457833772361.png (574KB, 601x1068px) Image search: [Google]
1457833772361.png
574KB, 601x1068px
>>59787136
Present
>>
>>59786151
in case you happen to see this, I've gone into this territory before and what I did was to create an account with a bank that was easy for me to get API access... I used Trade King iirc and was able to set up a dev account easily after I created a brokerage account and was able to use their API which provided real time quotes.
I do not remember if there were limitations like only X amount of API calls / $time_period, but it's a feasible avenue for this kind of thing.

If you are not familiar with brokerage accounts don't worry, you can open one pretty easily and get approved for just stock trading (all you need for API access) and you don't ever have to use it or put money in it. I opened the Trade King account solely to get API access and never once put money in it or traded with it - I actually have like 3 other brokerage accounts that I trade out of
>>
Is there an alternative to > and >> in batch to dump the console output in a file? not necessarily during the execution.
If it could dump after the previous command is completed, it would be good enough for what I'm doing.
>>
File: 1481144220091.jpg (50KB, 720x720px) Image search: [Google]
1481144220091.jpg
50KB, 720x720px
What language should I use to do all of my computation at compile time?
>>
File: shia_no.webm (2MB, 1159x640px) Image search: [Google]
shia_no.webm
2MB, 1159x640px
>tfw your cohort at work writes shit-tier code

I don't know what else to say
>>
If Haskell was competent it would have type level lambdas restricted to patterns. Higher order pattern unification is decidable and it would make newtype gymnastics (Flip, Compose, etc.) unnecessary.
>>
>>59786889
>>59787299
Who said this?
>>
>>59786308
>tar.gz

what the hell is this
>>
>>59787317
It's Turing complete, of course it is and will forever remain incompetent.
>>
>>59787296
C++
>>
>>59787343
gzipped tarball
>>
>>59787358
I said language, not "language".
>>
>>59787358
*this;
>>
C++ question regarding virtual inheritance.

class Base 
{
std::map<std::string, int> whatever;
}

class DerivedOne : public virtual Base
{
DerivedOne()
{
whatever["wall"]=1;
}
}

class DerivedTwo : public virtual Base
{
DerivedTwo()
{
whatever["blah"]=6;
}
}


If I inherit from one of these derived classes, everything works fine, but if I inherit from both, their default constructors are called but they don't insert those values into the map they share. I'm not really looking for a fix, I'm just curious why that is.
>>
I don't understand why we make the distinction between compiling and assembling.
>Assembly language
Each line of the program is "assembled" into one line of code.
>High level language
So something like C has more abstractions, but just because it's not line-for-line, we call it compiling?
>>
File: 1491248421947.jpg (23KB, 640x640px) Image search: [Google]
1491248421947.jpg
23KB, 640x640px
>>59786649
It was strlen.
>>
@59787392
>POO
>inheritance
>>>/r/ibbit
>>
>>59787396
>Each line of the program is "assembled" into one line of code.
Meant to say one line of machine code.
Either way, I don't see the difference because in the end it all ends up as machine code.
>>
>>59787396
>we
Speak for yourself.
>>
File: 1475966634199.png (313KB, 568x409px) Image search: [Google]
1475966634199.png
313KB, 568x409px
>>59787409
I see you're still at it, anon-kun.
>>
>>59787396
>>Assembly language
>>High level language
Whom'st've're't'll said this?
>>
File: 1459224897516.jpg (111KB, 1280x720px) Image search: [Google]
1459224897516.jpg
111KB, 1280x720px
>>59787429
Can you repeat the question?
>>
File: 1488337099580.jpg (118KB, 1269x710px) Image search: [Google]
1488337099580.jpg
118KB, 1269x710px
>>59787436
W-What question?
>>
>>59787436
YOU'RE NOT THE BOSS OF ME NOOOWWWW
>>
File: 1483721177622.png (94KB, 396x395px) Image search: [Google]
1483721177622.png
94KB, 396x395px
>>59787510
Why would you want to know that?
>>
Fixed it
>>
File: 1490402655469.png (371KB, 832x868px) Image search: [Google]
1490402655469.png
371KB, 832x868px
>>59787548
Because you're confusing me, anon!
>>
>>59787429
>568x409
>313 KB
>>
File: 1489045058607.jpg (49KB, 279x307px) Image search: [Google]
1489045058607.jpg
49KB, 279x307px
>>59787578
I think you need to re-examine your assumptions.
>>
>>59785982
Try sending it shellcode on stdin. Search for "x86 /bin/sh shellcode", should be less than 40 bytes.
>>
>>59788066
Also to send it, just do:

printf "\x01\x02...." | ./program
>>
>>59788086
I'm pretty sure this can hack your system.
>>
>>59788102
I'm assuming this is from a "hack this system" challenge thing.
>>
Any free courses that teach programming? Good ones preferably
>>
>>59788164
the /dpt/ school of hard knocks
>>
File: 1462202732353.png (11KB, 832x868px) Image search: [Google]
1462202732353.png
11KB, 832x868px
I'm having so much FUN.
Does anyone know about interesting dither matrix that aren't listed in http://caca.zoy.org/study/part2.html

func Ordered4fast(gray *image.Gray) *image.Gray {
bounds := gray.Bounds()
ditherMatrix := [4][4]uint8{
{15, 195, 50, 240},
{135, 75, 180, 120},
{45, 225, 30, 210},
{165, 105, 150, 90},
}

for y := 0; y < bounds.Max.Y; y++ {
for x := 0; x < bounds.Max.X; x++ {
if gray.GrayAt(x, y).Y < ditherMatrix[x%4][y%4] {
gray.SetGray(x, y, color.Gray{0})
} else {
gray.SetGray(x, y, color.Gray{255})
}
}
}

return gray
}
>>
>>59788086
>>59788066
i'm going insane trying to solve this man. here's the command to connect to the port
nc shell2017.picoctf.com 34621
and this is what i'm running
printf "\x48\xbb\xd1\x9d\x96\x91\xd0\x8c\x97\xff\x48\xf7\xdb\x53\x31\xc0\x99\x31\x
f6\x54\x5f\xb0\x3b\x0f\x05" | nc shell2017.picoctf.com 34621


and it's just not working. i got no idea why. i've tried different machine code commands that i've found around
>>
>>59785901
Working on my imageboard: 4kev.org
>>
>>59788250
do you want a banner?
>>
>>59788250
Nice but this is for /wdg/.
>>
File: as gods.png (461KB, 381x826px) Image search: [Google]
as gods.png
461KB, 381x826px
I'm usually not one to ask these sorts of things, but alas, does anyone have issues of IEEE Computer Graphics and Applications they could share?

They seem to be $19 per article, which is out of my budget, to say the least.
>>
>>59788361
this kind?

http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7879134

you won't get any free
>>
>>59788408
Yeah, that kind. They're stupidly expensive.

I'll have to figure something out.
>>
File: 1466965486208.png (33KB, 601x1068px) Image search: [Google]
1466965486208.png
33KB, 601x1068px
>>59788198
>Does anyone know about interesting dither matrix
Forget about that, making my own is even funner.
>>
File: bg4.jpg (1MB, 1365x768px) Image search: [Google]
bg4.jpg
1MB, 1365x768px
>>59788479
Dither me up senpai
>>
>>59788506
Check out my new pattern.
ditherMatrix := [5][5]uint8{
{130, 170, 210, 250, 110},
{220, 60, 20, 70, 150},
{180, 50, 10, 30, 190},
{140, 90, 40, 80, 230},
{100, 240, 200, 160, 120},
}
>>
File: 1479407234234.png (62KB, 1365x768px) Image search: [Google]
1479407234234.png
62KB, 1365x768px
>>59788540
I'm retarded.
>>
>>59788540
What's this language?
>>
File: s.png (5KB, 300x100px) Image search: [Google]
s.png
5KB, 300x100px
What's the first thing you search for, when looking for finding vulnerabilities in a website?
>>
File: 1481133179077.png (541KB, 700x989px) Image search: [Google]
1481133179077.png
541KB, 700x989px
i'm so retardedly bad at wargames and ctf's and people to do them to get better, but i literally am just bashing my head against a wall. the people say "how to do this is easy, just google x" and then i can't find anything on x in the first 10 pages of googling what they say to. what's some BOOKS and crap and i can read on actually learning about this stuff? i hate banging my head against walls and when i find the solution by guessing i don't learn anything from it anyways
>>
File: 1489689626808.jpg (51KB, 828x960px) Image search: [Google]
1489689626808.jpg
51KB, 828x960px
Anyone doing google code jam?
Qualification round ends on Sunday.
>>
>>59788548
Thanks, new wallpaper
>>
>>59788548

Is there any reason you opted for this dithering method as opposed to others?
>>
File: 1486359357186.png (395KB, 960x955px) Image search: [Google]
1486359357186.png
395KB, 960x955px
>>59788598
>implying I or any regular on /dpt/ does anything productive
>>
>>59788598
FUCK I forgot
Why haven't you posted earlier anon
>>
File: 1474635262682.png (34KB, 700x989px) Image search: [Google]
1474635262682.png
34KB, 700x989px
>>59788561
Go

>>59788611
I'm implementing anything I can understand for a top sikrit project. I implemented F-S error diffusion the other day.
I'm just having a lot of fun coming up and testing patterns right now.
Look at this one, aren't these central dots cute?
>>
File: centercircle.png (839KB, 1365x768px) Image search: [Google]
centercircle.png
839KB, 1365x768px
>>59788668
>Look at this one, aren't these central dots cute?

Reminds me of something I've done before.

>I'm implementing anything I can understand for a top sikrit project. I implemented F-S error diffusion the other day.

Ah, I see. When I implemented dithering, I did Floyd-Steinberg as well.
>>
>tfw always fall back on temp variables and a retarded amount of if statements whenever i get stuck on a problem

i am never going to get rid of this habit, my code always ends up looking like shit
>>
>>59788642
>>59788817
Who are you quoting though?
>>
>>59788817
If you have variables your code is already going to be shit independent of anything else.
>>
>>59788823
I'm quoting implications made by anons.
>>
>>59788833
Where? I don't see that text.
>>
>>59788852
:^)
>>
>>59788862
What is this 9gag symbol supposed to represent?
>>
>>59788817
devise a solution and then optimize.
I always have the habit of trying to solve or problem in the most elegant, performant way which leads me to try to optimize my solution while I'm trying to come up with one which is incredibly difficult.
It is much better to develop a solution in a shitty way and then make it better
>>
>>59788823
>>>/jp/
>>
I'm trying to get Pi with a Monte Carlo simulation using the thing with the circle inside a square of side 2r. However, when I run the program the result is always 0.00000, and I think I'm doing something wrong converting long to double or something. Help?

import javax.swing.JOptionPane;
import java.util.Random;

public class montecarlo
{
public static void main( String[] args )
{

double aproxPi;

double randomX;
double randomY;

long samplesAll = 0;
long samplesHit = 0;

String samplesString;
long samplesNeeded;

Random generator = new Random();

samplesString = JOptionPane.showInputDialog( "ayy homm *smacks lips* ho many samples dog?" );
samplesNeeded = Long.parseLong( samplesString );

for( long counter = 0; counter < samplesNeeded; counter++ )
{
randomX = ( generator.nextInt( 2000000001 ) - 1000000000 ) / 10000000.0;
randomY = ( generator.nextInt( 2000000001 ) - 1000000000 ) / 10000000.0;

samplesAll++;

if( randomX*randomX + randomY*randomY <= 2500 )
{
samplesHit++;
}
}

aproxPi = (samplesHit/samplesAll) * 4;

System.out.printf( "%.5f" , aproxPi);

}
}


This is what I wanna do in case you need to know: https://www.youtube.com/watch?v=VJTFfIqO4TU
>>
>>59786761
>
What uni?
>>
>>59788598
Gonna give it a go tomorrow. Not gonna be able to make the next round even if I advance, but should be fun.
>>
So I've finally been able to sell something and make money and hoo diggity am I making a lot of money.

What's the best thing that I, as a developer, could invest in that would make my life actually easier and not just be a waste of money? I was thinking a realtime backup / git NAS
>>
>>59788933
have you tried this thing called debugguh

should be
aproxPi = (samplesHit * 1.0f /samplesAll) * 4 * 4;
I think

>>59788598
here we go
registered
thanks for reminding fampai
>>
>>59788993

Dude I don't have an IDE but I added a message to show the amount of hits. Apparently I got 9,814,416 hits of 50,000,000 tries, so there's something wrong like what you pointed out. That still doesn't explain why I get 0.00000 out of the double variable, I'm sure the value is being lost somehow because I set the digits to 100 and it was just 0.00000000 till 100.
>>
>>59785921
How the fuck have you been programming for years, allegedly in C/C++, and have no idea about how the address space in memory works.
>>
>>59788993
(samplesHit/samplesAll) is always 0
(samplesHit * 1.0f/samplesAll) is not
>>
>>59788598
>large datasets
How the fuck am I supposed to deal with array indexes that are 10^18 in size?
I don't think I have enough memory to participate even if I resort to bitpacking
>>
I'm supposed to be learning Maya for my new job but the lecture series I have is so boring.
>>
SET FileSize1=32768
FOR %%I in ('FileName.bin') do SET FileSize2=%%~zI
IF %FileSize1% NEQ %FileSize2% (
@ECHO Not the same!
) ELSE (
@ECHO The same!
)
PAUSE


This crashes the whole script. What's wrong with it? I just wanted to do stuff if the file size equals the known value.
>>
>>59787431
I believe those terms originated in the early 1960s, most likely at IBM.
>>
File: languages3.png (17KB, 522x384px) Image search: [Google]
languages3.png
17KB, 522x384px
It ain't wrong
>>
>>59789147
Fuck my life: ('FileName.bin') must be (FileName.bin) to work, it seems to be working as intended when I remove the apostrophes.
>>
Is python really as bad as you guys make it sound? What other programming language does the same thing that python does(for websites), but has a better perfomance?
>>
>>59789246
Java
>>
Is there is an esoteric language which you can actually use for general purpose programming?
>>
>>59789265
So, will a person who is already familiar with C have an easier time learning Java? I want to learn Java, after at least learning a bit of C++.
>>
=> 59789288
>I want to learn Java, after at least learning a bit of C++.
>>>/r/ibbit
>>
>>59789285
C
haha jk
>>
>>59789285
Idris
>>
>>59789246
>Is python really as bad as you guys make it sound?
If the list of its "features" doesn't make you puke then you are probably the kind of subhuman it's aimed at. In which case go ahead, use your garbage just like you were programmed to do by your parents.
>>
>>59789288
Yes, Java has C-style syntax.
>>
>>59789314
What exactly is 'esoteric' about Idris?
>>
>>59789316
I don't even use python. I was just asking because it gets a lot of shit from people of this community. Even though, there's a lot of people getting paid for that "shitty" programming language.
>>
>>59789299
:3
>>
>>59789335
>I don't even use python.
Of course, that was clear by your post and it's obvious I acknowledged that since I said "go ahead and do x".
>I was just asking because it gets a lot of shit from people of this community.
Are you unable to form an opinion of your own?
>Even though, there's a lot of people getting paid for that "shitty" programming language.
I see, that explains your childish view of reality quite well.
>>
>>59789316
>>59789355
What about Python if it was CL?
>>
can I do this in C?

bool var = functionThatReturnsInt();
>>
>>59789246
>python
>websites
... there are many languages better than python for websites and if you are worried about performance you should drop python all together,
python is only good for newbies and fast prototyping.
when it comes to actually developing shit fuck pythong
>>
>>59789372
It would certainly be better, but not by a whole lot. I wouldn't go as far as to call it a subhuman language though.
>>
>>59789374
Yes
>>
>>59789386
What about if it was Haskell, but occasionally the compiler punched you in the balls for using Python?
>>
>>59789355
>Are you unable to form an opinion of your own?
How can I have an opinion about a language that I have no experience first hand experience with. I am not gonna blindly hate on something just to fit in on this community.
Also, my point was that it can't be THAT shitty if they are people making a living from it. No matter how you look at it, at the very least those "subhuman python users" are at least making money from their "shitty code". It doesn't sound that bad to me.
>>
>>59789388
Why? If sizeof(bool) is 1 and sizeof(int) is 4?
>>
>>59789355
>>59789417
But yes, I do agree, the syntax, and the lack of features is indeed daunting.
>>
>>59789420
Narrowing
>>
>>59789420
In C bools are just integers where 0 is false and everything else is true.
>>
>>59789394
Slightly better, but still pretty low grade.
>>
>>59789450
What would be high grade?
>>
>>59789436
Thanks for the technical term, will read up on it.
>>
>>59789417
>Also, my point was that it can't be THAT shitty if they are people making a living from it.
Are you twelve or something? Only a child or a retard would make this kind of statement.
>at the very least those "subhuman python users" are at least making money from their "shitty code".
Which doesn't somehow imply that the language isn't shitty.
>It doesn't sound that bad to me.
The prospect of using a shitty language to earn money you mean? The language itself is garbage.
>>
>>59789459
Something which combines Coq and assembly in an elegant manner.
>>
>>59785921
Static vs shared
class SampleClass{
public static void sampleMethod(){
//...
}
public void otherMethod(){
//...
}
}
//sample implementation
public static void main(String[] args){

SampleClass.sampleMethod();

SampleClass sc = new SampleClass();
sc.otherMethod();
}

Shared code requires class instantiation whereas static code may be called without instantiating anything.

Other examples include:
// this method does not require its parent class to be instantiated to be called
System.out.println("whatever");
//this method does
Scanner input = new Scanner(System.in);
String inValue = input.nextLine();
>>
Linked lists are shit, when they are the only compound datatype in the language.
>>
>>59789493
Isn't that like trying to combine sugar and fæces?
>>
>>59789533
Linked lists are shit, end of story.
>>
>>59786390
>>59786553
C++ sounds like fucking garbage from a C# perspective.
>>
File: linus-torvalds.jpg (113KB, 391x300px) Image search: [Google]
linus-torvalds.jpg
113KB, 391x300px
>>59789533
>>59789540
Excuse me
>>
>>59786654
>>59786954
>> most classrooms teaching with C# these days use mono
ANON PROVIDES NO EVIDENCE
Meanwhile my University utilizes Visual Studio
>>
>>59789572
What are you implying?
>>
should I learn C++ or C# if I want to learn the OOP meme if I'm already fairly competent in C?
>>
>>59789595
You can learn Java as well.
>>
>>59789595
>OOP
>>>/r/abbit
>"meme"
>>>/b/
>>>/v/
>>
>>59789595
Do you want to be a .NET dev someday? If so C#, otherwise there's no reason to bother with C#.
>>
>>59789604
Can I be a .NET dev if I know VB?
>>
>>59789603
>2k17
>platonism
>>
>>59789609
Sure technically with F#, C++, VB, and C#, but the majority of .NET jobs now a days want a C# dev especially for new stuff and not maintaining old codebases.
>>
>>59789611
This is a non argument. It's rhetoric as the Greeks described.
>>
>>59789629
How fucking sad that we're still stuck on shitty OOP languages for almost everything, it should be illegal to use Java or C# for new projects.
>>
What is the preferred direction of struct composition in C? Top down or bottom up or bidirectional with some tag system in place to know how to go both directions?
>>
>>59789573
Yeah and they use Borland C++ in India. What is your point exactly?
>>
>>59789603
Thanks for the cancer.
>>
File: warning.png (3KB, 874x116px) Image search: [Google]
warning.png
3KB, 874x116px
Why am getting this warning?
#include<stdio.h>
int doggo[2][4] = {
{0,1,2,3},
{4,5,6,7}
};
//doggo is an array of size two having array of integer array of size 4

main(){
int **ref = doggo;
}

>>
>>59789642
>it should be illegal to use Java or C# for new projects.
That's unnecessary and simply a waste of tax money. Just publicly executing every OOP user should be enough.
>>
>>59789663
>int **ref

what the fuck is this
>>
>>59789533
What language is this?
>>
>>59789663
Because after decay, doggo's type is int (*)[4] (pointer to array of 4 ints), not int ** (pointer to pointer).
Doing
int **ref = &doggo[0][0];
or equivalent will work, though.
>>
>>59789693
English.
>>
>>59789709
What is ``English?" I've never heard of this programming language.
>>
>>59789717
Sorry, I didn't think about programming languages.
Prolog.
>>
Programming should be done in Norwegian.
>>
>>59789700
Why doesn't this work then
int *ref[4] = doggo;
>>
>>59789735
I heard Norway has best software developers in world?
What is your pay scale in US dollars?
>>
>>59789761
That's an array of 4 int pointers.
The correct way to declare that is
int (*ref)[4] = doggo;
>>
File: 081.png (14KB, 165x115px) Image search: [Google]
081.png
14KB, 165x115px
>>59788830
>If you have variables your code is already going to be shi
que?
>>
>>59789788
What the fuck do you want access to main memory when you have CPU registers that operate 10 times faster?
>>
File: wayland-screenshot.png (144KB, 1920x1080px) Image search: [Google]
wayland-screenshot.png
144KB, 1920x1080px
>>59785901
FreeGLUT finally supports Wayland Display Server Protocol.
>>
>>59789775
I think you can earn up to $400k in Oslo
>>
>>59789825
What does the workload of a 400k a year programmer look like? What the fuck do you have to do?
>>
>>59789834
probably more of a manager than programmer.
>>
>>59789814
>hasn't heard of register allocation
>>
who else here microcontrollers? and why is the stm32 so comfy?
>>
>>59789834
Usually 35-40 hours a week, and minimum 5 weeks paid vacation by law. You get paid overtime on top of salary if you work more or are on call outside office hours.
>>
>>59789226

ASSEMBLER have poor performance, unless it's written for specific MODEL of the cpu.
>>
>>59789862
Go to bed Dmitry.
>>
>>59789777
whao Just few pages back I read this and I forgot. FUck me
>>
>>59789777
i wish C didn't even have the [] sugar, it just makes things more complicated. nice numbers btw
>>
>>59789825
>ohio
anon pls
ohio is a shithole
>>
>>59789884
Who are you quoting?
>>
>>59789864
Russia is big.
>>
>>59789908
Go to bed anyway, it's the weekend.
>>
>>59789814
hello I am pajeet and I don't know anything about programming
please fuck my face
>>
Can snakes learn to program?
>>
File: cute anime pic 0582.jpg (28KB, 456x496px) Image search: [Google]
cute anime pic 0582.jpg
28KB, 456x496px
>>59789814
>>
>>59789814

Because depending on your instruction set, you have at most 32 registers, and likely around 16. And two of those are going to be reserved for the stack and base pointer by convention.

Also, accessing memory in L1 cache is between 2 and 4 instruction cycles, not 10. 10 would be more like your cost of going to L2 cache IIRC.

Oh, and beyond that, arrays. Can't do indexed access with registers.
>>
File: 1491621144035.png (116KB, 1023x596px) Image search: [Google]
1491621144035.png
116KB, 1023x596px
Does anyone know why pic related is happenn?
I installed https://github.com/moonlight-stream/moonlight-pc/releases x64 bit for Linux. And when i launuch it, it just does this.
I removed Java Manually by deleing it from /usr/Java
Then did sudo dnf remove jrc_version_X_X_XX, re inatlled the lastest Java and it still gave me the error


No one was able to help me in /fglt/ So i thought i'd ask here.
>>
>>59790088
https://docs.oracle.com/javase/7/docs/api/java/awt/HeadlessException.html
>>
>>59790088
No idea but I wouldn't expect a dev that can't even write a markdown document correctly to be able to produce usable code.
>>
>>59790070
Your face is a register
>>
>>59790123
>dev
>>>/g/wdg
>>
Should I hire a female programmer who dresses like a slobby guy?
>>
>>59790194
Why does it matter? What really matters is if they are any good at programming
>>
>>59790204
She seemed pretty good at interview.
>>
>>59790194
You should trap a /g/entooman from /dpt/ and make him go through hormone therapy.
>>
>>59790212
What would that accomplish?
>>
>>59789991
If your snake didn't start learning to program within 3 days of hatching its already too late you stupid bitch. By day 2 my hognose was already fluent in 3 lisp dialects.
>>
>>59790194
go ahead
if it goes wrong you can always fire them
>>
>>59790217
What would it not accomplish is the better question.
>>
>>59790253
I'm really unsure though. She was able to write a parser from scratch with no errors, but she doesn't know anything about UML or Agile.
>>
>>59790194
You should always hire dumb people.
Never hire anyone who is too smart.
You don't know the consequences of not able to comprehend what that i.robot dude is doing with your source code.
I run an online marketting firm. My clients are small business.
This dude whom my friend suggested to employee was intelligent.
I didn't need him but my friend offered him job.
What did I get?
He left and is doing solo marketting using concepts of Node js api I wrote myself alone in a room.
All my work is lost.
I was not aware of any legal procedure so I din't care to do anything.
>>
>>59790275
>sit someone down in an interview
>okay, lets start off easy, can you implement a C compiler in x86_64 for us?
This isn't real because you don't actually give interviews and if you did you wouldn't be asking the internet whether to hire someone or not.
>>
>>59790321
We didn't ask her to implement a C compiler, nitwit. Nor is it the first or only thing we ask people to do.
>>
Is there something wrong with this condition?

while((ptrBegin != &line[strlen(line)]) && (ptrEnd != &line[strlen(line)]))


My program is not entering this loop and it's not because the conditions aren't met.
>>
>>59790342
You can use (p + i) instead of &p[i]
>>
File: 1458617689106.jpg (12KB, 236x265px) Image search: [Google]
1458617689106.jpg
12KB, 236x265px
Rate my fizzbuzz implementation.
main_go [Occ=LoopBreaker] :: Int# -> [[Char]]
main_go =
\ (x_a2kA :: Int#) ->
:
@ [Char]
(case modInt# x_a2kA 5# of _ [Occ=Dead] {
__DEFAULT ->
case modInt# x_a2kA 3# of _ [Occ=Dead] {
__DEFAULT ->
case $wshowSignedInt 0# x_a2kA ([] @ Char)
of _ [Occ=Dead] { (# ww5_a4NX, ww6_a4NY #) ->
: @ Char ww5_a4NX ww6_a4NY
};
0# -> lvl2_r4PT
};
0# ->
case modInt# x_a2kA 3# of _ [Occ=Dead] {
__DEFAULT -> lvl1_r4PS;
0# -> lvl_r4PR
}
})
(case x_a2kA of wild_Xn {
__DEFAULT -> main_go (+# wild_Xn 1#);
10# -> [] @ [Char]
})
>>
>>59790383
abhorrent / 10
2bh
>>
>>59790275
>she can program but she doesn't know about UML and Agile
Good, keep that nonsense out of her fucking head, just tell her "produce graphs like this, we'll work in iterations, blabla"
>>
looking for a solid C# book / reference I can blow through quickly so I can focus on the more advanced concepts. all of the books I have found are > 1000 pages long, or treat you like you've never programmed before
>>
Non-friendly reminder that Rust is for straight white men.
>>
>>59790383
pretty/100
>>
>>59790383
>the more obscure and un-readable my code, the better!
I bet you think you're pretty smart too.
this is why you are, and forever will be, a NEET
>>
File: 1461049540904.gif (2MB, 500x500px) Image search: [Google]
1461049540904.gif
2MB, 500x500px
>>59790441
Thanks!

>>59790466
In what way is that code unreadable or obscure?
And who are you quoting by the way?
>>
it's fucking late and I haven't slept well all week so I don't even logic anymore

     char* line = "This is a test string.";
char* ptrBegin;
char* ptrEnd;

ptrBegin = line;
ptrEnd = &line[strlen(line)];

if((ptrBegin != &line[strlen(line)]) && (ptrEnd != &line[strlen(line)]))
puts("true");
else
puts("false");


Why is the condition false? ptrBegin is not pointing at the end of the array while ptrEnd is. Since both of the pointers aren't pointing at the end of the array, shouldn't this evaluate to true?
>>
speaking of akari, the bbs needs purged and spam-protected.
>>
>>59790491
>akarin
i would like to change my rating to very pretty/109
>>
File: 1436466816362.png (439KB, 760x720px) Image search: [Google]
1436466816362.png
439KB, 760x720px
Have you read your SICP today?
>>
>>59790553
No.
>>
>>59790553
no, because I have a real job and I'm not autistic.
>>
File: 1486600903057.png (333KB, 596x720px) Image search: [Google]
1486600903057.png
333KB, 596x720px
>>59790553
I'm too stupid and lazy.
>>
>>59790503
some1 pls help, I can't go to sleep until I finish this shit ;____;
>>
>>59790503
You literally assigned &line[strlen(line)] to ptrEnd right before that if statement, why wouldn't ptrEnd != &line[strlen(line)] not evaluate to false
>>
>>59790582
*why would ptrEnd etc etc...
>>
>>59790579
see >>59790582
Get some fucking sleep dude.
>>
File: 250px-Prog.jpg (34KB, 250x262px) Image search: [Google]
250px-Prog.jpg
34KB, 250x262px
>>59790571
>he thinks his 40k p.a. java code monkey job entitles him to talk shit on SICP when people like Peter Norvig and Paul Graham praise SICP
my fucking sides
>>
>ptrBegin = line;
>ptrEnd = &line[strlen(line)];
>if((ptrBegin != &line[strlen(line)]) && (ptrEnd != &line[strlen(line)]))

PtrEnd points to the end but you used !=
>>
>>59790609
six figure embedded C but nice try weeb
>>
>>59790582
>>59790603
>>59790630
I'm fucking retarded, thanks
>>
>>59790503
>>59790630
>>
File: discord-ui.png (294KB, 1280x887px) Image search: [Google]
discord-ui.png
294KB, 1280x887px
hey fellas, can i create picrelated look with QT without much fuss? or should i fall for Electron meme
>>
>>59790635
>six figure
That's all?
>>
>>59790641
No worries anon. Shit happens, just get some sleep and keep learning
>>
File: 1460080460514.png (54KB, 340x394px) Image search: [Google]
1460080460514.png
54KB, 340x394px
>>59790641
S L E E P
>>
>>59790650
Please no more Electron shit, anon.
>>
Why is every fucking startup using Python, Go, Node, Ruby, or some other shitlang?
>>
Imagine some crazy person wrote a Linux system call interface for javascript or some other high level language, turning it into a systems programming language. From there they could implement all of the standard GNU programs as functions.

Today, that kind of stuff is hidden by "standard I/O" interfaces that are really just basic functionality. I wonder what programming would be like if the full Linux interface was available in the language.

What do you think programming anons?
>>
>>59790650
You're gonna have a lot of fuss either way. The only reason people go apeshit over electron is that it lets web developers write desktop apps without having to learn a new language. And it (in theory) lets people use the same code on web and desktop.

If you're not already experienced in web dev, then there's not much point in electron over something like qt.
>>
>>59790709
DUDE FAST DEVELOPMENT
>>
>>59790709
Because they're starting a new project and want to choose something they think will be fun and keep them from burning out.
>>
>>59790719
But it's not because they have shit performance and they encourage code full of bugs.

If you want fast development and you're too stupid to get the types right then use Lisp and you'll get reasonable performance as a bonus.
>>
File: 3610154048314_600.jpg (44KB, 600x600px) Image search: [Google]
3610154048314_600.jpg
44KB, 600x600px
>>59790709
>WTF why are these companies using readable, fast-prototyping languages? Why aren't they coding in x86 ASM like I am? I am such a special snowflake and I am very smart, you see.
This attitude needs to die on /g/ holy shit
>>
>>59790740
Who are you quoting?
>>
>>59790730
But those languages are shit. You think they're fast until the project becomes slightly complex and then they become a fucking disaster and either development slows to a crawl or you have to rewrite the whole thing in a language you should have been using from the start.
>>
>>59790734
>they encourage code full of bugs
Maybe if you're an idiot and don't know the language, sure.
>>
>>59790710
Access to syscalls isn't what makes a language a systems programming language
>>
>>59790747
I'm quoting >>59790709

it's what he said
>>
>>59790734
>Lisp
Its not nu-dev friendly.
Python and JS shit can easily be taught to womemes and nu-devs. They'd get confused by Lisp not being one thing and struggle to pick a flavor.

Also its much easier to find a SO answer to [overly simple problem].
>>
>>59790740
You don't know what the fuck you're talking about. Those languages are not readable and they're not fast-prototyping either.

I don't program in x86 ASM, by the way. I use high-level languages that aren't garbage.

Sorry you failed your ML/Haskell/Lisp/whatever classes.
>>
>>59790761
>python isn't readable or useful for fast prototyping
>i know better than everyone xd i am le special snowflake
Go start your own startup using exclusively Haskell and see how far you get

fucking idiots
>>
>>59790757
>WTF why are these companies using readable, fast-prototyping languages? Why aren't they coding in x86 ASM like I am? I am such a special snowflake and I am very smart, you see.
Nowhere in that post did he say that. Are you sure you linked to the correct post?
>>
>>59790760
Fuck nu-devs, they're shit. Give me bearded CL wizards every time.

>>59790750
Are you deluded? Python et al are designed to work against you. They make refactoring code into a minefield.
>>
>>59790761
>ML/Haskell/Lisp
But all of them are merely pleb filters and garbage.

>>59790772
Who said this?
>>
>>59790772
Oh yes, Haskell is the only high-level language I could be using, you idiot.
>>
File: 903.jpg (7KB, 200x135px) Image search: [Google]
903.jpg
7KB, 200x135px
>>59790773
I linked to the correct post, he said that in >>59790709

Now, the question is who are YOU quoting?
>>
>>59790782
>But all of them are merely pleb filters and garbage.
I'm sorry you couldn't handle SICP and it caused you to switch to a communications major.
>>
>>59785982
Good god. Reminds me of that day Capcom installed a driver in the computers of Street Fighter V players for "anticheating purposes". It worked just like your code, but ran in kernel mode and with OS protections disabled.

https://mobile.twitter.com/TheWack0lian/status/779397840762245124
>>
>>59790788
>i-if you don't use Haskell y-your language is shit!!!
>I am so smart and le special snowflake because I know le functional programming language xddddddddddddddd monads are so randumb xdd anonymous functions xd currying xddddddd
Fuck off faggot
>>
>>59790801
I don't even use Haskell, but it's very telling that you think it's the only language I could be using if I think shitty languages are shit.
>>
>>59790790
He didn't say that, the word "WTF" doesn't even appear in his post.
>>59790797
What exactly in my post stated or even implied that?
>>59790801
Who are you quoting, plebbitor?
>>
>>59786194
Who gives a shit? It's not like they're gonna do anything about it.
>>
File: 1485900942588.jpg (61KB, 500x381px) Image search: [Google]
1485900942588.jpg
61KB, 500x381px
>>59790816
>use lisp, nevermind that there are no libraries for it xdddd le car!!! le cdr!!!! xddddddddddd
>i am so le smart, not like those nu-devs xdd, i am special and unique snowflake xdd *tips fedora*
>>
>>59790801
>>59790837
PMS?
>>
New thread:
>>59790848
>>59790848
>>59790848
>>
>>59790847
mad faggot mad that his functional programming special snowflake gimmick was called out
>>
@59790837
who wrote that?
>>
>>59790837
>there are no libraries for [lisp]
Were you dropped on your head as an infant?
>>
>>59790857
Who thee quoteth?
>>
>>59790711
>>59790684
i could make GTK look good, but it doesn't have static build on win, dynamic linking grabs 20-30 gnu libs, also there's hardcoded project structure

QT looks like it's 1999, QT Material look sucks dick(also fuck Google), to get rid of native window frame i will have to rewrite everything that has to do with that frame. showroom.qt.io apps look shit-tier design-wise

embedded browser (ie Electron) seems like the only solution that allows me to have full control over UI/UX, so i though i'd write core in C/C++ and client in React/Electron.

maybe there's some perfect GUI framework i'm missing that has static linking and modern theming support without native bullshit?
>>
>>59790870
If you use electron you shouldn't be allowed to program.

If you want full control over UI/UX, use SDL2 or similar.
>>
>>59787554
What's going on?
>>
>>59788458
>>59788408
>>59788361
sci-hub doesnt have them?

I'm looking for this kinda thing as well. Stuff like ISO standarda are expensive as fuck
>>
File: 1471478015308.gif (320KB, 530x700px) Image search: [Google]
1471478015308.gif
320KB, 530x700px
Hey guys would like some advice on my Java Project.

This is a college project and my program is a Car Park Management system.
My issue is I'm looking to add a String in which I can write simple methods on; such as Comparing and splitting as this is required in the project. I hope I'm not being too ambiguous.

This is my Object Class for my ArrayList:
public class CarSpace 
{

public String spaceLocation; // Example: {01,55,23}
public char spaceZone;
public String spaceType;
public boolean spaceOccupied;
public double spaceHourCost;
public double spaceWidth;
public double spaceLength;



I was thinking of adding a 'Booked' String where it would Store a name ( e.g "John Doe" )
as I could write methods to mess with that. Anyways I'm asking as maybe a different perspective would help.
String should be Car Park / Car Space related :^)
>>
>>59785901

Fixed some major bugs
#!/bin/bash

best_rendition=$(youtube-dl -F $1 | grep '(best)')
format=$(echo $best_rendition | awk '{ print $1 }')
extension=$(echo $best_rendition | awk '{ print $2 }')
youtube-dl -f $format $1

video_title="$(youtube-dl -e $1)"
download_filename="$(youtube-dl --get-filename -f $format $1)"
duration=$(expr $3 - $2)
output_filename="${video_title}_clip_${2}-${3}.webm"
ffmpeg -i "$download_filename" -ss $2 -t $duration -c:v libvpx -b:v 1M -c:a libvorbis "$output_filename"


Usage
./youtube-to-webm.sh '82WwqXyyWXg' 6 10
(Create a webm from youtube video from the 6 second mark to the 10 second mark.)
>>
>>59790870
https://github.com/vurtun/nuklear
>>
>>59788668
Why does zooming that image produce weird visual effects?
>>
>>59788984
What are you selling? How did you pull it off? Tell us more
>>
>>59789095
Larger integers? Who said they have to be word length? Who said they have to index data in the physical machine's address space?
>>
>>59790194
Depends. How's the sex?
>>
>>59790609
Haven't seen that picture in a long time. Doesn't the /dpt/ twitter use it?
>>
>>59790752
Then what is?
>>
File: Ease of use.png (636KB, 933x632px) Image search: [Google]
Ease of use.png
636KB, 933x632px
>>59791056
I made a Unity asset
A Unity asset that includes a fucking AWFUL kludge in the physics code and they are delaying letting me update which pisses me off but ayy whaddayagonnado
https://www.assetstore.unity3d.com/en/#!/content/81638
>>
>>59790383
What fucking language is this?
>>
>>59792607
My language. Called AnimeLANG for now.
Thread posts: 334
Thread images: 56


[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.