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

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

Thread replies: 255
Thread images: 28
File: KEK.gif (983 KB, 640x360) Image search: [Google]
KEK.gif
983 KB, 640x360
old dpt: >>51278956

Have you had your morning cola today?
>>
How do i rotate a 2D matrix 90 degrees?

I can't even wrap my head around how I would do this programatically.
>>
First for GPL or go home.
>>
/dpt/ - Manchild autism edition.

What're you working on, /g/?
>>
its evening at turkey btw, no morning cola m8
>>
>>51282680
>Blender
blender is already being used by big corporations, though...

>doesn't provide features that people need
GIMP has a shitload of features. if people don't know how to use it, don't blame the software, blame the retards that want to be spoonfed... like you.

btw, since we are comparing the quality of free software vs that of propietary, have you people seen the (in)famous quality of the software made by Adobe (or even that of Microsoft...)? ;)
>>
>>51282762
anime is for cu᠎cks

same goes for GPL users tb᠎h fa᠎m
>>
>>51282762
D!
>>
tb᠎h fa᠎m
>>
>>51282781

Like cords? Linear translation.
>>
I made a program that starts up iexplorer.exe every 30 minutes. I put it in my friend's startup folder and now I'm just waiting for him to restart

#include <windows.h>

#define ever (;;)

int __stdcall WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
for ever
{
Sleep(1800000);
system("start \"\" \"C:\\Program Files\\Internet Explorer\\iexplore.exe\"");
}
return 0;
}
>>
>>51282798
BSD is for money grabbing brogrammers.
>>
>>51282824
My roommate leaves his computer unlocked all the time, I might have to jack this script from you
>>
File: non destructive editing.webm (2 MB, 972x644) Image search: [Google]
non destructive editing.webm
2 MB, 972x644
>>51282796
>GIMP has a shitload of features
Can GIMP do this? :^)
>>
>>51282819
no, like
a b c   g d a 
d e f =>h e b
h i j i f e
>>
>>51282824
I approve
>>
>>51282837
This is not safe for work. I am at work.
>>
File: Insta-image-2.jpg (150 KB, 1080x1284) Image search: [Google]
Insta-image-2.jpg
150 KB, 1080x1284
>>51282819
>mfw

elements of the first row you make into elements of the last column, are you an autist or something? you literally just use to for loops
>>
>>51282837
>pic
why is it covered in shit??
>>
>>51282858
how is it not safe? there are no genitalia anywhere? just sanic
gotta go fast mane
>>
>>51282867
He doesn't even know his alphabet, cut him some slack. It can't be easy to see the keyboard through a helmet.
>>
please all programmers who have an job answer this

what is your $/hour rate, your total experience and state/country ?
>>
>>51282847
oh, you are THAT guy. yes, it can, in a different way, but it can. suck my dick if you want it to do YOUR way, fucking autist.
>>
>>51282867
can't you do it with a matrix multiplication instead of using fucking for loops?
>>
>>51282902
I get 300k a year. I've only started programming last year desu
>>
>>51282847
yes
>>
File: cWouj8T.jpg (100 KB, 548x984) Image search: [Google]
cWouj8T.jpg
100 KB, 548x984
>>51282920
I just assumed he was doing like intro to c in the first year or something, we did it all the time, for loops for days
>>
All free content creation software is shit because it's written by programmers.

In order for software to be good, an artist has to babysit the programmer constantly and pay him minimum wage to keep him in check.

Free software is nothing but a code monkey's delusion of grandeur, an arrogant notion that a mere code monkey can create software without being told what to do.

When a codemonkey writes graphics software, you get GIMP. When an artist commands a codemonkey, you get Photoshop.
Remember your place, codemonkeys.
>>
>It's the user's fault my software is shit
Freetards, everyone.
>>
>>51282781
>how to rotate by 90 degrees
multiply by i

>how do I do that for a matrix though
[[0, -1],[1, 0]] is i assuming a standard representation
>>
>>51282995
>it's the programmer's fault if I can't be an entitled retard and have the software do the things I want the way I want
>it's also the programmer's fault if I can't be an entitled retard and steal their hard work
>>
>>51282902
I program, but I don't have a job as a programmer.
$14.25/h
Canada.
At work now tʙH ғᴀm
>>
>>51282995
>never submits a bug report
WAAAAAAAAAAAAA YOUR SOFTWARE IS SOO BROKEN FUCK YOU FREETARDS
>>
>>51282949
>>51282920
>>51282867
>>51283023

jeez i've never done this shit before

i'm thinking something like N=sqrt(number_of_elements) to create a 2D array of size NxN
and then for looping like
rotated[min+k][min+l]=array[max-i][min+j]
>>
>>51282964
I'm not sure what you're trying to compare but I am sure that you're fucking retarded and a shill for no good reason.
>>
>>51282920
>implying you don't use for loops with matrix multiplcation
Unless you're doing GPU processing, you'll be doing for loops.
>>
>>51282781
https://en.wikipedia.org/wiki/In-place_matrix_transposition
>>
>>51283033
so you're not rotating an element represented by a 2x2 matrix

I don't know what you're trying to accomplish but it sounds like you need to step back and start with fizzbuzz
>>
>>51282995
once again, do you consider Adobe's software "quality" software?
>>
Currently working on porting a program I made from Windows to Mac... More bugs than an outback dunny.

Also still testing a HTML5 chatroom I've been working on:

http://raskie.com:85/

Opinions/ideas welcome.
>>
>>51283062
I'm rotating a square of letters 90 degrees to the right.
the letters come in the form
a b c d e f g h i j k l m n o p
to represent
a b c d
e f g h
i j k l
m n o p

i need to return them like so:
m i e a n j f b o k g c p l h d
which represents
m i e a
n j f b
o k g c
p l h d
>>
>>51283115

1st row becomes last column
2nd row becomes 2nd last column
etc.

It's not that hard dude.
>>
File: 9780132545235.jpg (25 KB, 400x430) Image search: [Google]
9780132545235.jpg
25 KB, 400x430
>>51282762
worst thread ever ffs

>>51282781
read it
>>
>>51283115
(map reverse (apply map list (quote ((a b c d) (e f g h) (i j k l) (m n o p)))))
>>
>>51283115
Dude stop spamming your shitty problem.
>Find transpose of matrix
>reverse each row
There, done. Stop being a faggot.
>>
>>51283044
>Unless you're doing GPU processing
that's the only really interesting use of matrices
>>
>>51282854
where did the c go
>>
>>51283214
With that, it comes with a huge amount of background and opengl. Which you begin to understand by doing matrices without gpu processing.
>>
It's SO better than 4chan for making dumb questions?
>>
>>51283248
matrix multiplication isn't that hard...

https://www.mathsisfun.com/algebra/matrix-multiplying.html

you don't need to restrict yourself to fizzbuzz-tier programming 101 type solutions
>>
Even the fat fuck RMS had to add a run time library exception to GCC because even he new nobody would use it if they had to be chained to his retarded, viral license.

That's right: even RMS knew that GPL is a crock of shit and pussied out of enforcing it fully.
>>51283025
>not being shit is out of the scope of my shit software
:^)
>>
>>51283273
I never said it was. I said GPU processing needs a bit of understanding before you realize what's happening.
>>
is it a bad idea to read a text file with fgetc and rewind()?
>>
>>51283271
4chan is better imo but SO will also answer dumb questions because those keks will do anything to get points
>>
>>51283167
Haskell wins once again
import Data.List
rotate x = map reverse $ transpose x

Enjoy your parentheses bloat.
>>
>>51283214
in programming, yes, outside of programming there's a thousand other things

this is not even the point of his homework, it's to fucking use for loops
>>
>>51282781
Literally just rotate everything clockwise. Draw it out on paper with a 4x4, 5x5, and 6x6 matrix. You'll figure it out.
>>51283023


>>51282837
I'm impressed with his dedication.

>>51282964
I see where you're coming from and agree that you're right in a number of cases. I'm definitely no good at GUI design.

But there are cases (does Paint.NET count, I can't recall if it's OSS...) where you're incorrect.
>>
>>51283311
>import Data.List
>>
>>51282762
Help guys, I don't know how to do this and I must do it by tomorrow.

Write a C program that calculates the square root of a number without using sqrt from math.h
>>
>>51283335
Well anon, how do you square roots on paper?
Do it like that.
>>
>>51283335
ask newton
>>
>>51283335
Use the babylonian method. I once used that just to try it in R.
>>
>>51283335
No problem, just use sqrtl or sqrtf instead.
>>
>>51283335
do anyone have the webm with the notepad having a 10k ifs fizzbuss?
>>
>>51283335
(define (sqrt x)
(define (sqrt-iter guess x)
(if (good-enough? guess x)
guess
(sqrt-iter (improve guess x) x)))
(define (good-enough? guess x)
(< (abs (- (square guess) x)) 0.001))
(define (improve guess x)
(average guess (/ x guess)))
(sqrt-iter 1.0 x))
>>
>>51282837
Nice looking cock. Too bad it's attached to a fucking loonie
>>
>>51283335
I got you senpai.

float sqrt(float number)
{
__asm {
fld number
fsqrt
}

return number;
}
>>
>>51283462
Says the faggot.
>>
>>51283427
you didn't define square you retard
but good job copypasting straight from the book
>>
>>51283471
guess what else I didn't define, average
guess why
because I imported them you retard
>>
>>51283488
I do lazy evaluation of code, if one function is wrong I don't bother with the rest. That's why I didn't find average.
>>
>>51283335

Hint: It's in the MIT Python book.
>>
>>51283462
>nice looking cock
>barely 5 "

wat
>>
>>51283503
you're not so bad after all anon that was pretty funny
>>
Rate my brainstorm.
I'm fucking trying to figure out why theses two give me two different results.

root.add((((i * (Math.sqrt((Math.pow(args1[1], 2)) - (4*args1[0]*args1[2])))) - args1[1]) / (2 * args1[0])));
root.add((i * Math.sqrt(Math.pow(args1[1], 2) - 4*args1[0]*args1[2]) - args1[1]) / 2*args1[0]);


Kill me now.
>>
>>51283335
>how do i google
>>
>>51283471
Square is defined in MIT Scheme already, no biggie.
>>
static const int or #define?
>>
File: 0a9.jpg (42 KB, 404x404) Image search: [Google]
0a9.jpg
42 KB, 404x404
>>51282824
>#define ever (;;)
>>
>>51283686
>for ever
>>
>>51283335
Sorry. I only know how to do it in python
from math import sqrt
n = sqrt
if n(9) == 3: print(True)
>>
>>51283682
don't use define it's just annoying searching for a variable and it turns out it's on top of the file
>>
>>51283731
>ctrl + f
>"varname"
>search through the list found
>>
>>51283686
desu senpai it's amazing

I first did it as a joke. But it honestly makes life so much better. I mean, my entire life has been improved since I did it... I feel happier... more whole. Does that make sense? I guess not. All I know is that without it, I would be an empty shell. A shell without a purpose. But now I have a purpose. All thanks to for ever.
>>
>>51283725
>not while(1)
>>
>>51283787
for ever has a nicer ring to it
>>
>>51283787
>missing the fucking joke staring you in the face
>>
>>51283798
>>51283805
fucking normie ass faggots

it's not even "forever", it's "for ever" which is even lamer
>>
>>51282837
Like 0.2.

I only drink one occasionally if I didn't get enough sleep or I just feel shitty for whatever reason.
>>
#include <stdio.h>

#define (;_;) (;;)

int main(void)
{
for (;_;)
{

}

return 0;
}
>>
>>51282902
Same as >>51283028

I'm more of a sysadmin/BI role, but I program.

~42k, cost of living is really low here, too.
>>
>>51283835
You're bitching about semantic grammar and we're the normies?
How's the short bus treating you?
>>
>>51283856
while(1) or while(true) is the way to do an infinite loop. for(;;) or for ever is gay as hell

>first week of programming
>oh hayy you can make it say "for ever" xDDD
>>
>>51283837
>+1 upboat
>>
>>51282964
And that's why Kickstarters are fucking terrible, always.

They've already been paid. Their motivation is lower and they have no objective money or time management skills.
>>
>>51283507
I said nice looking, not nice size. Learn 2 read & comprehend senpai
>>
>>51283882
That isn't the point, retard.
Lighten up and learn to laugh.
Better yet, off yo'eureself.
>>
>>51282964
OBS is pretty much the best streaming software out there, for what it's worth.
>>
>>51283837
#define tfw for
#define nogf (;;)
>>
>>51282964
>>51283884
these

kickstarters are usually made by entitled hipster fags that are just trying to rip people off for a quick buck with minimum effort put into it
>>
But I'm primarily an artist, but I also code. What does that make me
>>
>>51283924
A jack of all trades master of none.
>>
>>51283897
>off yo'eureself
HAHAHA very funny xDDDDDDDDDD you're spleling is so random :DDDDDDDD
>>
>>51283924
homosexual
>>
>>51283944
I deliberately did that to see if you'd comment on it.
You did. This conversation is now over.
>>
>>51283924
If you're doing both for free, an idiot.
>>
>>51283924
a mobile game programmer
>>
>>51283897
>misspelling yo'eu'reself
>>
>>51283924
>>
>>51283939
I guess. It's nice to have multiple things to be good at though.

>>51283945
I'm a pedophile, not a faggot, faggot.

>>51283960
I do neither free

>>51283961
Fuck, I have actually made mobile games for myself to play
>>
>>51283958
Your anal virginity is over, that's the only thing that is over now.
>>
>>51283958
holy shit you can't be this fucking retarded. i only commented on it to insult your pathetic sense of "humor". the "for ever" "joke" is so fucking old that hardly any programmer worth his salt finds it funny. go back to stackoverflow faggot
>>
>>51283996
>damidge cuntrowl.
>>
>>51282824
if ever i > 0
console.log("i is 0")
for ever
i = getinput()


doesn't work.
stupid.
>>
>>51284020
>>
>>51284040
>tumblr
Well that explains everything!
>>
>>51284049
LOLOLO XDDD NICE MEME BRO

>implying you're not too stupid to realize that i found it on google image search
>>
>>51284059
>has to search for his memes on google
>doesnt have a meme folder
NORMIEE
>>
>>51284049
>he doesn't follow some porn artists on tumblr
zone and that guy who makes gumball porn gifs post there you newfriend.
>>
Good Vim tutorial? Pretty much just know the basics of movement at this point
>>
>>51284059
>trying this hard to make the >imblying meme
>>
>>51284070
I HAVE A FUCKING SARCASTIC "HAHAHA" GIF WITH JIM CARREY SOMEWHERE BUT MY MEME FOLDER IS SO BIG AND YOU'RE SO WORTHLESS THAT I COULDN'T BE BOTHERED TO DIG IT UP
>>
>>51284075
>follow porn artists
First off, I understood little of what you just said. Second, no, I blow my load to porn "artists" and go on with my day. I sure as hell don't find my porn on tumblr.
>>
>>51284088
Calm it down young spastic. Your angry face will get stuck like that for (;;).
>>
>>51284099
I'm not him, but you're missing out. Some of the best fresh porn is on Tumblr desu senpai
>>
>>51284080
not use vim

there's your best vim tutorial. there is LITERALLY no reason whatsoever to use vim. no one in the industry does it, it's just bunch of neckbeards of /g/ that use it.
>>
guide me in the right direction /g/ents

>be me, cs undergrad
>taking OS class this semester
>group project for 15% of the grade, me and one other

the assignment is to write a c module that takes info from a linux kernal (grab pid, status, etc) and have a bash script take that info and print it out to a table

>nigger partner drops the class, tells me just now
>decide im going solo on this

I havent done any of these things before but this is a really easy assignment, right?
>>
>>51284127
THIS
>>
>>51284080
>vim
only pretentious fucks use vim, please use an IDE and ST/Emacs depending on what you're doing
>>
>>51284148
actually using intellij + vim commands
>>
File: 1429635006076.png (30 KB, 200x193) Image search: [Google]
1429635006076.png
30 KB, 200x193
>Algorithm doesn't work on a certain edge case
>Go out for a drive
>Figure that it should work for that case anyways
>Make no changes to the code
>Come back
>Algorithm works on that edge case

What even is programming?
>>
>>51284215
I hope you enjoyed the show
>>
>get hyped about my final year project
>read a lot of papers
>it's already been done
>change it a bit
>read more papers
>it's already been done
>change it more
>read more papers
>it's been done and it's more advanced than i can even understand
>change it again
>it has been fucking done again
i'm just sad at this point. supervisor meeting tomorrow and he keeps pressuring me into "starting" but i have no fucking clue what im even doing. it's just depressing now. i have 30+ papers opened in multiple tabs and i can't make myself look at them
>>
File: le lebron face.jpg (139 KB, 600x599) Image search: [Google]
le lebron face.jpg
139 KB, 600x599
>>51284277
Thanks, it was bretty ebin I must admit.
>>
>>51284294
I don't know how it works in your country but here people usually ask somebody at the CS lab for suggestions.
>>
>>51284294
Anon, do something that's uniquely useful for something you're interested in.

What are you hobbies?
>>
>>51284336
jerking off to Emma Watson, next question?
>>
>>51284294
make a furry porn generator
>>
>>51284350
I like you.
>>
>>51284350
Webscraper that goes though all well-known pornsites and scans the images for faces that are similar to that of Emma Watson.
>>
>>51284350
Make a robot that detects things like muscle contractions, breathing, heart rate, then use neural networks to control the rate of a jacking off contraption. Should take 5 minutes, tops.
>>
File: XTA9PCA.png (1 MB, 1920x1080) Image search: [Google]
XTA9PCA.png
1 MB, 1920x1080
>>51284391
that's practically impossible but I feel I owe something to you for giving me that suggestion so search for "Emma Watson faked with after effects", first pornhub link. Aside from a bit around the neck it looks so real, we're not far from making fake realistic porn with images of real people from all the data they leave on the internet such as pictures/videos/ and so. Imagine the possibilities? That girl turned you down? No matter body boy! Just go home put your VR head set on, select her, the program then goes to all the data she ever WILLINGLY left on the internet and based on that data generates a 3D realistic model that looks like the real girl, moves like the real girl, even talks like the real girl both in voice and in the way she forms sentences and so on. Imagine such a world!? We're gonna remove the whole fucking concept of identity! HA!
>>
>>51284476
that's just creepy anon
>>
>>51284476
>practically impossible
Nigga. If Google can come up with thousands of pictures of eggs for their captcha. You can come up with at least one porn star that looks like Emma Watson
>>
>>51284476

You need to get laid desperately.
>>
File: CS-GCwjXAAAVXcm.jpg (49 KB, 768x1024) Image search: [Google]
CS-GCwjXAAAVXcm.jpg
49 KB, 768x1024
>>51284527
>WILLINGLY

is kind of a key word here. we're not raping anyone's data, they gave it away...

>>51284555
>implying such a pornstar wouldn't be famous already
>implying I have the same processing power as google

nigga wat

>>51284557
that's not the point, we're gonna make virtual women anon! be excited!
>>
>>51283427
Shouldn #'square be defined or replaced with #'sqr? Might be Racket-specific, I don't read the S*RS
>>
>>51284580

have sex
>>
>>51284080
vimtutor comes with vim
>>
>>51284594
even if you have a gf you can't have sex anytime you wish, she must wish it too, and she won't wish it as much because of how stronger male sex drive is compared to hers, so you'll be left to your hands most of the time anyway. You think a woman would have sex with you 7 times a day? In what fucking world you live in? And if that wasn't enough she will probably have issues with you watching porn/masturbating, fucking women...

>3DPD
>EVER

this way you could have sex anytime you wish, how ever you wish, everything would be legal.
Imagine you put in the simulation of Emma Watson they you want her to get raped by you while mein kampf, you could do that! and she will sound and look like the real thing. honestly now I mostly jerk off to the possibility of this being real someday
>>
>>51284588
sqr is racket specific

it's in racket/math

which is not the same as (require math)
>>
>>51284580
Nigga. That's not a lot of processing power desu. All you have to do is learn a bit more about facial detection. The most power you'll need is just the bandwidth and storage. But a 3tb drive is a hundred bucks and if you don't live in the third world, you should be alright. Unfortunately it's been done before. Forgot the website. But basically it stores a bunch of porn star faces, and then uses a picture the user uploads to find the porn doppelganger.
>>
I have an integer in register $s1.
I'd like to print it out to the terminal.
I am running into problems trying to move it into $a0 so I can syscall.

Help /g/.
>>
>The Mythical Man-Month
holy fuck i always thought it's 'man-moth'. it sounded way cooler desu
>>
>>51284527
this
>>
>>51284672
>because of how stronger male sex drive is compared to hers,
if only

>tfw no sex drive and feeling bad when gf wants to sex
>>
>>51284350
>>51284476
overrated af what do you even see in her

you wouldn't give a shit if it wasn't for the harry potter movies
>>
>>51284527
sjw detected, back to the rust forums please
>>
>>51284672
>autism

are you here to talk about (realistic) ideas for your project or could you just fuck off to >>>/sci/ please
>>
>>51284854
>you can like celebrities, but only for valid reasons, which I get to choose
really nigger
>>
for the guy who asked about his sorting algorithm in the last thread, this is the fixed version
void sort(int arr[]){
int temp;
for(int i = 0; i < 5; i++){
for(int j = i; j < 5; j++){//j=0 changed to i
if(arr[i] > arr[j]){//i removed the i<4 because it was unnecessary
temp = arr[j];
arr[j] = arr[i];
arr[i] = temp;
}
}
}
}


This algorithm is kinda shitty though so I wouldn't recommend using it for anything practical.
>>
>>51284977
>not using sleepsort
cmon son
>>
>>51282762
How the fuck do you compare two stacks to each other to see if theyre equal in c++. Just spent 30mins staring at this on an exam and still didnt get it. I feel like an idiot for not getting it.
>>
>>51283311
>importing modules like a javababby
>calling the feature that enables lisp to process programs as data bloat
I shiggy didgeridoo
>>
>>51285020
pls...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#define ARRMAX 10

int check (int array[ARRMAX]) {
for (int i=0; i<ARRMAX-1; i++) {
if (array[i] < array[i+1]) return 0;
}
return 1;
}

void printarray (int array[ARRMAX]) {
for (int i=0; i<ARRMAX; i++) {
int color_chance = rand() % 5;
char color_string[5];
if (!color_chance) {
strcpy(color_string, "\033[32m");
} else {
strcpy(color_string, "\033[0m");
}
printf("%s%02X%s ", color_string, array[i], "\033[0m");
}
putchar(10);
}

int main (void) {
int sorted = 0;
int unsorted[ARRMAX];
srand(time(NULL));
for (int i=0; i<ARRMAX; i++) {
unsorted[i] = rand() % 100;
}

while (!sorted) {
for (int i=0; i<ARRMAX; i++) {
int choice = rand() % ARRMAX;
int temp = unsorted[choice];
unsorted[choice] = unsorted[i];
unsorted[i] = temp;
}
printarray(unsorted);
sorted = check(unsorted);
}
puts("SORTED!");
printarray(unsorted);
return 0;
}
>>
>>51285021
depends on what you mean by "equal"

>they are the same object
see if the pointers are the same
>they have the same values
recursively have the same problem of what "equal" means
>they have simple values for which there is no ambiguity about equality
iterate and compare element by element

problem
>>
>>51284938

The thing is, nobody would actually want to be with her. She's a raging mega-feminist bitch.
>>
>>51285020
this
>>
>>51285045
rust programmers probably like her desu
>>
>>51285043
basically overloading the == operation so see if they have the same elements and size. But you cant just iterate through a stack is the problem. you can only pop push and peek.
>>
>>51283649
>
 / (2 * args1[0])

>
/ 2*args1[0]

gotchu senpai
the first one divides by args1[0], the second multiplies by it
>>
>>51285021
Assuming you're only allowed to use stack operations: pop off the given stacks and push the elements onto two temporary stacks, comparing the elements at each iteration. Then reverse the process when you're done.
>>
File: eclipse.png (16 KB, 379x106) Image search: [Google]
eclipse.png
16 KB, 379x106
>running nothing but gjewgle chrome, windows explorer, notepad, mspaint and eclipse
>6 GB RAM
>eclipse freezes for like a minute or more
absolutely fucking fantastic
>>
>>51285091
INTELLIJ
N
T
E
L
L
I
J
>>
Is it autistic to use unsigned for loop counters?
>>
>>51285103
J E W S
E
W
S
>>
>>51283958
>I was just pretending to be retarded
>>
>>51282964
>In order for software to be good, an artist has to babysit the programmer constantly and pay him minimum wage to keep him in check.
and then you get Flash.

>>51285091
yep, eclipse is a piece of shit.
blame C++
>>
>>51285059

Not even rust programmers.
>>
>>51285122
kinda

quicker to just write int
>>
>>51285123
DROP JAVA AND USE D THEN
R
O
P

J
A
V
A

A
N
D

U
S
E

D

T
H
E
N
And use Linux for programming
>>
>>51285090
Thats what im thinking now. They were a dick a told us to use the prototype void stack::operator == (stack&) or something like that. I guess I could have just made it so that the function made a new stack object that was a copy and then popped from there. But I dont see how to do this without new and I figured new was too far off the mark. It uses an array but that shouldnt matter.
>>
How does code virtualization prevent reverse engineering? I get that you feed your program to a virtual processor with a different instruction set, but it still runs on top of a real kernel, and a real processor. Wouldn't it mean that the instructions would be mostly the same if the program is the same, even if the virtual processors are different.
>>
File: haha you funny guy.jpg (17 KB, 283x420) Image search: [Google]
haha you funny guy.jpg
17 KB, 283x420
>>51285158
>>
>>51285182
it's another layer of obfuscation

skiddies ain't gonna bother with that
>>
>>51285123
DrJava desu senpai.
>>
File: 0-003.jpg (44 KB, 500x517) Image search: [Google]
0-003.jpg
44 KB, 500x517
>>51283311
>>51283325
>>51285033

Here's Haskell with no pre-given functions.
>Haskell>Lisp any day every day
suckMyFunctionalCock faggot = [cumGargle [] you | you<- faggot]

cockMonger [] = []
cockMonger ([]:xss) = cockMonger xss
cockMonger ((x:xs):xss) = (x : [h|(h:_)<-xss]) : cockMonger (xs:[t|(_:t)<-xss])

cumGargle z [] = z
cumGargle z (x:xs) = cumGargle (x:z) xs

a = ["abcd","efgh","ijkl","mnop"]
>>
File: not rare pepe.jpg (51 KB, 550x532) Image search: [Google]
not rare pepe.jpg
51 KB, 550x532
I finally get this shit works.
I could have implemented a conversion from double to rational but I'm done for today.
Rate my mindfuck m80s.

http://pastebin.com/raw.php?i=TfPvKjZh

Best part for thoses who don't give a fuck :

args0 = "2x2-4x+1.replace("-", "+-").split("\\+");
for(int j = splitOffset; j < args1.length - 1 && args0[i] != ""; j++)
{args1[i] = Integer.parseInt(args0[i].replace({"x2","x"}[j], ""));}
delta = Math.pow(args1[1], 2) - 4 * args1[0] * args1[2];
root.add(-args1[1] / 2 * args1[0]);
root.add((i * Math.sqrt(Math.pow(args1[1], 2) - 4 * args1[0] * args1[2]) - args1[1]) / (2 * args1[0]));


Mfw I will never do as WolframAlpha.
>>
>>51282798
>same goes for GPL users tb᠎h fa᠎m
>desu senpai
wtf did they remove the filter?
>>
>>51285176
If this is a stack class that you would be creating then i don't see why you couldn't just look through the inner data structures of both objects
>>
File: 1-002c.png (11 KB, 200x200) Image search: [Google]
1-002c.png
11 KB, 200x200
>>51285235
>Mfw I forgot a cockMonger...
suckMyFunctionalCock faggot = [cumGargle [] you | you <- cockMonger faggot]

cockMonger [] = []
cockMonger ([]:xss) = cockMonger xss
cockMonger ((x:xs):xss) = (x : [h|(h:_)<-xss]) : cockMonger (xs:[t|(_:t)<-xss])

cumGargle z [] = z
cumGargle z (x:xs) = cumGargle (x:z) xs

a = ["abcd","efgh","ijkl","mnop"]
>>
>>51285246
>not knowing Cyrillic alphabet

baka tb᠎h fa᠎m
>>
daily reminder there will be no jobs for you after learning to program, only painful suffering
>>
>>51285427

speaking from experience?
>>
>>51285427
>not having a job lined up already for when you finish your degree
literally how
>>
>>51285427
For you perhaps, there was one for me.
>>
>>51285122
are you comparing your iterator to an unsigned integer?
>>
Looking for a neat way to put persistent, but also highly fluctuating info.

Thought about xml first, but it'll be accessed from several threads.

Then I thought about sql, but it's a little overkill for a locale program.

At this point I might just make an xml parser with a job queue, but that would mean another thread and another interface to define.

any suggestions?
>>
>>51285489
json, not xml
>>
File: IMG_20151110_170644.jpg (3 MB, 2448x3264) Image search: [Google]
IMG_20151110_170644.jpg
3 MB, 2448x3264
code :: haskell
ok, so I created a data structure along with functions for creating a tree wich has at the top node the number we want to find the prime factors of, and at the outermost nodes, it has the actual primes
now, since the path isn't linear, and I'm not sure how to extract those numbers from the tree
only thing I can think about is that all left nodes are prime, but I don't want to assume that, how can I even prove that, is there a workaround to this, pls halp /g/, I'm dumb
>>
>>51285489
Use sqlite.
>>
>>51285489
Use a small DBMS
>>
>>51285384
no DESU
>>
>>51285544
dafuq that was even in Cyrillic
>>
>>51285514
I can smell paper & pen ink from your image, am I going insane?
>>
>>51285158
hopw you wrote a program for that meme
>>
>>51285263
No Im not creating a stack class. Just a member function. So Im pretty sure I have no way of accessing the second stacks private data with the standard stack functions.
>>
>>51285235
>>51285278
Looks like you vomited a day's worth of curry, Pajeet.

>not declaring types
>calling yourself worthy of haskell
>>>/trash/

You know you didn't have to import anything, you could have just used zip instead of transpose. Same thing as apply map list.
>>
>>51285244
>java
>everything in main
why
>>
>>51285499
never used it befor, but I'll take a look

>>51285521
that sounds actually quite nice

I'll test both approaches
thx
>>
>learn 2 program
>sorry we only like normies who use javascript and html that make frontends
>low level propgramming? lmao theres no need for that dude theres nothing to program but front ends
>oh but its so easy to get le programming job just look at the hundreds of freelance jobs aout t here, you just have to be a normie and look like a hipser say your a javascript ninja with full stack brogramming skills.
>hey guys i can implement a compiler in javascript using OOP even though javascript is high level as fuck
> I made a hundred useless applications in javascript and I got hried

this my friends is the current state of programming, it is a shit field to be in. I suggest to bail before its too late
>>
>>51285587
yeah, nobody does that, now, can u help me pls
>>
Hey guys, anyone know if it is possible to disable the mouse functions and then use your laptops touchpad as a generic touch input for use in other programs? I can think of a few cases where a 2d control surface would be very useful...
>>
>>51285091
>select 25 lines of code
>this unironically happens again
>>
>>51285091
keklipse use netbeans
>>
>>51285642
can we just all agree that san francisco should get nuked into oblivion?
>>
>>51285642

I used to think this was just a meme but 90% of the jobs I've applied to require some sort of javascript/CSS/ knowledge
>>
File: cucklipse.png (36 KB, 500x297) Image search: [Google]
cucklipse.png
36 KB, 500x297
>>
File: 1443299624612.jpg (600 KB, 1180x1483) Image search: [Google]
1443299624612.jpg
600 KB, 1180x1483
>>51285642
Wwweb dev is the most atrocious thing I have ever had to endure, wanted to slit my wrists when I had to fix some bugs in my company's RESTFUL MEAN website.
>>
>>51285729
>>51285702
>>51285091

See, people like you are the problem.

What should happen:
>Eclipse keeps crashing
>Find a way to reproduce
>Run under debugger to nail down the issue
>Fill in a detailed bug report

What happens:
>Eclipse crashes
>Keep getting frustrated and shit talking Eclipse
>Repeat ad infinitum
>>
>>51285699
>using a laptop
>>
Why are crypto algorithm not measured in terms of the size of your password?


I mean brute forcing the password is much easier than cracking the crypto.
>>
>>51285642
>>51285718
>>51285726
>>51285771
you guys should read this thread:
>>51242573
there are some gems there...
>>
>>51286054
If you know how the algorithm works, for example how they get salted, it's easier to brute-force it.
>>
>Your application was reviewed
>>
File: SLL_keygen_success.png (748 KB, 4000x2560) Image search: [Google]
SLL_keygen_success.png
748 KB, 4000x2560
>>51282762
OH FUCK YES, my keygen works to generate all valid serials. Their stupidly long algorithm is mine, not overly complex just really long.

Fucking hilarious, however the activation code is unique to machine environment and name, but serials are generic for everyone.

Keygen code is pretty long, as you can see from scrollbar on VS.

> don't ask me what the program is >.>
>>
>>51286307
visual studio
>>
Guys, anyone who know prolog got a moment? I need some help for some simple list syntax.
>>
>>51286427
##prolog in freenode
don't be retarded, /dpt/ is shit
>>
A function writes to a pointer to int8. Is it okay to initialize an int32 or int64 to zero and send the address of it to the function?
#include <iostream>
void foo(int8_t *p) { *p = 127; }
int main() {
uint64_t i64 = 0;
foo(reinterpret_cast<int8_t*>(&i64));
cout << i64 << endl;
}

Will this print 127 on all platforms?
>>
>>51283991
You have made games for yourself? What kind of games can the same person make and play and not find boring?
>>
>>51286490
no
>>
>>51286307

SWF Lock Load eh
>>
>>51285828
In a perfect world were we all have this much free time
>>
>>51286505
Some elaboration as to why this in fact is the case would be appreciated anon.
>>
>>51286307
how long did this take you?
>>
>>51286490
It's ok in the sense that if int8_t == char then it's allowed to alias any other object pointer, and p+i should be successive bytes of the object.
However you're not guaranteed to get 127 in all platforms due to endianess, although in practice everything you'll ever run is little endian so you'll always get 127.
>>
>>51286454
I actually asked there as well. No one is responding. Either way I'll ask my question and if someone can answer I'd really appreciate it.

relevant code:

validMoves(Type, List, [(X:Y)| T], _) :-
(Type == trn),
not(member((X:_), T)), not(member((_:Y), T)),
validMoves(Type, List, T, _).


tnr == Tårn == Tower (in Norwegian).

Right, so I'm programming the N queens problem and I'm doing it for the Tower/Castle piece.

I have a list of X:Y, each pair being a Castle piece on the board.

I want to check if there is another piece in the array with the same X or Y value. If two pieces has the same X or Y value then they can kill each other and the program should return false.
>>
>>51284171
Realizing that the things change when observed.
>>
>>51286499
i enjoy playing my own arcade game
>>
>>51286307
http://www.verticalmoon.com/products/swflockload/swflockload.htm
>>
>>51286307
Nice, good to see something cool in this thread among the shit talking, language wars and the one weeb that keeps posting the fucking stupid Webm
>>
can someone post that image with all the projects so I can roll pls?
>>
>>51286499
Guy you're reacting to here. Simple little board and chance games you can play on your own to entertain me during my travels. They exist on the store, but I like to have my own version so I could build AI or solvers for them and integrate those.
>>
>>51286533
>if int8_t == char
int8_t can't be anything else
>>
>>51286533
So i need to create a local int8, send that to the function, than convert it to int64. Got it.
>>
>>51286584
no. go to codeeval.com or similar sites instead. or just google it
>>
>>51286629
>codeeval.com

That site is for major scrublord.

Personal projects are the one true programming exercise. You get to have fun doing what you want, and you also get to learn.
>>
>>51286666
Quads confirm
>>
>>51286595
Yeah it can.
>>
An algorithm I _must_ use has the time complexity O(n! * 2^n). Thankfully there is a constant time and a polynomial time shortcut which detect ~90% of cases.
>>
>>51286629
why not?
>>
>>51286689
You're wrong.
>>
>>51286666
>or similar sites
>or just google it
but, honestly, I don't see how someone can see programming as "fun".
I myself have no life whatsoever, and yet I consider programming painful.

>>51286705
because retards will flood the thread with "roll"
>>
>>51286709
Nope.
Thread replies: 255
Thread images: 28

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

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