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

/dpt/ - Daily Programming Thread

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

Thread replies: 324
Thread images: 27

File: DPT.png (389KB, 934x1000px) Image search: [Google]
DPT.png
389KB, 934x1000px
Old thread: >>55817516

What are you working on /g/?
>>
>combat for your game is broken for three days.
>no syntax or type errors.
>program flow/stack-traces are clean and as expected.
>FRUURURUASSAFFNADBJKLGDN
>Working on unrelated feature to take mind off of frustration.
>Glances over to player initialisation.
>Overwrote player1's attack button with player2's

What are the simplest and most frustrating moments for you?
>>
File: 1332662589834.jpg (44KB, 601x695px) Image search: [Google]
1332662589834.jpg
44KB, 601x695px
Nothing.
>>
(defmacro schlomo (&whole whole &rest args &aux (judaism-level 3))
(dotimes (i judaism-level (list 'quote whole))
(setf whole (list whole))))

(schlomo shekelberg) ; => (((SHLOMO SHEKELBERG)))
>>
>>55829497
muh fucking == vs .equals()
>>
>>55829497
>not letting players use custom keybindings
fucking stop right now
>>
Pythonpinhead here.


My currently response to 'charmap' coedec errors and UnicodeEncodeErrors is just skipping over it. I dislike this.


How do I finally and irrevocably learn to AVOID UNICODE ERRORS!?
>>
>>55829563
Chill man. I'm not publishing this version.
Just prototyping in python to see if I can be bothered with going further. I haven't even got infrastructure to animate shit yet. I like to "sketch" out a program to get an idea before I start the real deal in a faster language.
>>
String rot13(String message){
String res = "";
for(char a: message.toLowerCase().toCharArray()){
res += (a>='a' && a<='z') ? (char) (((a -=84) % 26) + 97): a;
}
return res;
}

looking for a new programming challenge someone post an img please :)
>>
File: image.jpg (89KB, 585x741px) Image search: [Google]
image.jpg
89KB, 585x741px
>>55830028
here's a (cute) img
>>
File: 1452471092796.png (372KB, 1280x720px) Image search: [Google]
1452471092796.png
372KB, 1280x720px
>>55830028
>All of those reallocations
>>
>>55829598
Bump
>>
>>55830028
>3dpd
>((a -=84) % 26) + 97 and a>='a' && a<='z'
>:)
Stop
>>
HOOOOOLY FUG
O__ I just found the hardest bug ever to take me to solve
L___it was all becaused of memcpy
Y___this function behaves differently between linux and windows
F___in windows memcpy is the same as memmove
HOOOOOLY FUG

PLZ REPLY SO THAT EVERYONE CAN SEE AND LESS PEOPLE WILL COMMIT SUICIDE
>>
>>55830100
>>55830242

how would u do it? :)
>>
>>55830296
>Y___this function behaves differently between linux and windows
You are a retard, calling memcpy while overlapping the memory is UB.
>>
File: 1458291757416.jpg (158KB, 1350x1375px) Image search: [Google]
1458291757416.jpg
158KB, 1350x1375px
Memory mapped IO ports.
Yay or nay?

>why the fuck would you do that?
Well, the IO subsystem in the VM I am making has 4kb (maybe more, like 1mb) granularity. meaning a device that wants to map some of it's local memory into the address space must be page aligned and can only map a minimum of 1 page. this is great for simplicity and usually not a problem for buffers, but it can be a bit wasteful for word sized ports for like commands and statuses and stuff.

So I thought, what if I had a standard builtin device (we'll call it the IO port hub) that mapped about 64K or so into the address space and provided an interface to other devices to map their IO ports into that 64KB space at word granularity, and the IO port hub passes on reads/writes to the device owning whatever port was accessed.

Good idea or plain retarded?
>>
>>55830296
>using memcpy for overlapping segments
>blaming the underlying operative system
you are a fucking retard arent you?
>>
>>55829524
better

(defparameter *jew-first-names* 
'((schlomo . 5)
(herschel . 4)
(itzhak . 5)
(moshe . 4)
(ezra . 3)))

(defmacro defnames (&optional (jew-first-names *jew-first-names*))
(cons 'progn
(mapcar
(lambda (c)
`(defmacro ,(car c) (&whole whole &rest args &aux (judaism-level ,(cdr c)))
(declare (ignore args))
(dotimes (i judaism-level (list 'quote whole))
(setf whole (list whole)))))
jew-first-names)))

(defnames)

(herschel lieberman-bergblattstein) ; => (((((HERSCHEL LIEBERMAN-BERGBLATTSTEIN)))))
>>
Hi guys, Im not sure if this is the right place to post but Im looking for advice on which programming language I can learn which is simple enough for a "boke" like me to understand and at the same time can have real world application (meaning I can get a job). Any advice? Also is programming/software development a field for logic experts? I am not really good at logic.....
>>
File: image.jpg (33KB, 266x403px) Image search: [Google]
image.jpg
33KB, 266x403px
>>55830445
html/css/js would suit you
>>
>>55830445
>"boke"
>>>/japan/

You should try web development. There's a web dev general here too.
>>
>>55830509
>>55830495

Im not from Japan, but I do love japanese stuff.
So both of you are suggesting web development? Is it easy though? like I said I am not good at logic, which I believe is required if you're jumping in the programming industry?
>>
>>55826052
Your suggestion to use a nested loop got me thinking, and after a bit more reading, I realized that there is in fact a way to find the digits in binary (top of pic related). With that said, I keep getting an error where sometimes, I get "inf" as a result of a calculation.

std::string getBinDigitsOfLog2()
{
double sum = 0;
std::string outputLogString = "";
for(int desiredNum = 3; desiredNum < 40; desiredNum++)
{
sum = 0;
for(int i = 1; i < desiredNum; i ++)
{ // ∑(1 to desired digit)
sum += (modExponentiation(2.0, (desiredNum-1)-i, i)/ i);
if(sum > 1)
sum = sum - static_cast<int>(sum); // Same as mod1
}
for(int i = desiredNum; i < desiredNum+3; i++)
{
sum += 1/(i * modExponentiation(2.0, i-(desiredNum-1), i));
if(sum > 1)
{
sum = sum - static_cast<int>(sum); // Same as mod1
}
}
int temp = sum*2;
outputLogString += std::to_string(temp).substr(0,1);
std::cout << "SUM = " << (sum*2) << std::endl;
//modExponentiation(sum, 1, 1)
}
return outputLogString;
}
>>
>>55829467
Why is she upside down?
>>
>>55830587
She must be doing high jump.
>>
>>55830587
>she
>>
>>55830596
Why is she doing a high jump whilst holding a book?
>>
>>55830509
>>55830559
i thought he typoed "bloke" kek
>>
>>55830616
Because she's a dumb anime bitch who doesn't know any better.
>>
>>55830613
Trapfags really are delusional. You'll list absolutely anything as a guy, just because you want to be a special snowflake and pretend that you're gay.
>>
Python 2 vs Python 3.
Why is there even a divide?
Which is better, technically speaking?
>>
>>55830662
fuck my ass daddy
>>
>>55830668
>Python 2 vs Python 3.
Always use the newest version available.
>Why is there even a divide?
Because whoever designed python is retarded and made it so version 3 wasn't backwards compatible.
There are a bunch of fags stuck on version 2 because not every library has upgraded to version 3 yet.
>Which is better, technically speaking?
They're both terrible.
It's like comparing dog shit to old dog shit.
>>
C is for homos
>>
>>55830717
C is for fat NEETs who spend all their lifes fapping to anime, writing useless tiny programs for their arch linux desktops and bitching about OOP (even though they haven't written anything bigger than fizzbuzz-tier program amd know nothing about software architecture).
t. software engineer at big telecom company
>>
>>55830662
Joke's on you, I was only ironically being a faggot.
>>
>>55830765
Any news from the street, Pajeet?
>>
>>55830794
Rajesh took the fattest shit out here.
>>
>>55829467
Hello /g/entleman I am new to programming and I'm trying to make a simple alarm clock with python but when I run it i get an error and I don't understand what is the problem, what does it mean?
  File "alarm.py", line 5
dt = list(time.localtime())
^
IndentationError: expected an indented block


Here's my code:

import time
import os
not_executed = 1
while(not_executed):
dt = list(time.localtime())
hour = dt[3]
minute = dt[4]
localtime = time.asctime( time.localtime(time.time()) )
print "Local current time:", localtime
print "Start alarm at:"
print "Hour:"
alarmhour = raw_input()
print "Minute:"
alarmminute = raw_input()
print "Alarm will start at: %r : %r" % (alarmhour, alarmminute)
if hour == alarmhour and minute == alarmminute:
print "WAKE UP!!!"
os.system ("ncmpcpp play")
not_executed = 0
>>
>>55830794
damn it feels good to be right. You're clearly triggered, you fat cunt.
>>
>>55830828
python does not use ( ) in that fashion
and
python uses indentation white space for logical blocks

while not_executed:
dt = list(time.localtime())


if you don't indent the dt = ..... line it crashes
there are other, similar mistakes in your example. you need to fix them all
>>
>>55829467
Working on a commandline Wikipedia article downloader.

Essentially, you first set the path, using the -setpath command so you don't have to constantly input the path when saving a article.

Then, you can either view the article, or save the article using -view or -save command respectivly.

The command goes like this after setting the path:

giki <-view/-save> <topic>

So, for instance:

giki -save Adolf_hitler

And it will download the wiki article pertaining to Adolf Hitler, and save it to your path.

It's a work in progress, but i am happy with the results, it's made entirely in NodeJs.
>>
>>55830909
>it's made entirely in NodeJs

Stopped reading right there.
>>
>>55830828

i know you are doing it for a learning experience, but there is a shell command for that: http://linux.die.net/man/1/at
>>
>>55830939

>stopped reading post at the last word.

ok
>>
>>55830909
Do you know of the commander package?
https://www.npmjs.com/package/commander
Its been a help for my shell scripts.
>>
>>55830335
static string Rot13(string message)
{
var arr = message.ToCharArray();
for (var i = 0; i < arr.Length; i++)
{
var a = arr[i].ToLower();
arr[i] = a >= 'a' && a <= 'z' ? (char)((a -= (char)84) % 26 + 97) : a;
}

return new string(arr);
}


Don't know java so here's C# instead, I'm sure you can understand why your code is terrible.
>>
>>55831176
>isn't even using LINQ

Come on, Java has streams now.
>>
i'm starting to get into programming but struggling a bit on logic stuff. is logic something you get better with over time/ with more practise?
>>
>>55831256
Definitely, you're learning a whole new way of thinking.
>>
File: 0vloiw2.jpg (201KB, 538x799px) Image search: [Google]
0vloiw2.jpg
201KB, 538x799px
>>55831176
So basically, you solve it the exact same way - except avoiding Javas terrible way of appending strings.

Fair enough, although I much prefer the for-each loops for problems such as these, I'd probably use a string builder to avoid recreating the string in each iteration.
>>
>>55830939
At least he's not using Ruby.
>>
>>55831242
static string Rot13(string msg) => new string(msg.ToLower().ToCharArray().
Select(a => a >= 'a' && a <= 'z' ? (char)((a -= (char)84) % 26 + 97) : a).ToArray());


The point was to make the code faster, not slower.
>>
>>55831281

Speaking of Ruby. This is a pretty interesting project

https://crystal-lang.org/
>>
>>55831299
>no braces
Why do they do this.
>>
>>55831299
Horrible, just horrible.

>Language Goals
>Have a syntax similar to Ruby

Suffering.
>>
>>55831288

Faster shmaster. Why not use LINQ & lambdas. It's the future.
>>
>>55831272
sweet thanks
>>
>>55831334
I use lambdas a lot, I just don't use the ones related to IEnumerable.

This is how I would do it:
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static T[] SetAll<T>(this T[] array, Func<T, T> getter)
{
for (var i = 0; i < array.Length; i++)
array[i] = getter(array[i]);
return array;
}

static string Rot13(string msg) => new string(msg.ToLower().ToCharArray().SetAll(a => a >= 'a' && a <= 'z' ? (char)((a -= (char)84) % 26 + 97) : a));
>>
>>55831334
Show us how you'd do it!
>>
Can someone explain what is happening here?
I'm working with tkinter and wanted to seperate this frame for a plot and some checkboxes as its own module to make it cleaner.

class matty(tk.Frame):

def __init__(s, m=None):
tk.Frame.__init__(s, m)
s.grid()
s.f = tk.Frame(s)
s.f.grid(sticky='news')
# etc


Main question
What is happening in tk.Frame.__init__(s, m) and how can s.f.grid to itself as the parent?

class App:

def __init__(s, m):
s.f = tk.Frame()
s.f.grid()

a = matty(s.f)
a.grid()

root = tk.Tk()
main = App(root)
root.mainloop()


I'm pretty new to OOP and tkinter so sorry if this shit is obvious.
>>
>>55831368
Fuck, I overlooked something. I would actually do it like this.

static string Rot13(string msg) => new string(msg.ToCharArray().
SetAll(a => { a = a.ToLower(); return a >= 'a' && a <= 'z' ? (char)((a -= (char)84) % 26 + 97) : a; }));
>>
File: Aye63dh[1].png (9KB, 318x386px) Image search: [Google]
Aye63dh[1].png
9KB, 318x386px
Why is there 2 21s printed at the end of my C program
Code:
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>

typedef struct{
int* n; //our int
sem_t sem; //our semaphore
} args;

void *second_thread(void* data){
args *thread_args = (args*) data;

printf("Thread Two\n");

while (*thread_args->n < 20){

sem_wait(&(thread_args->sem)); //wait for the semaphore to unlock, then lock it.

(*thread_args->n)++; //increment n by 1
printf("(Two): %2d\n", *thread_args->n); //print n

sem_post(&(thread_args->sem)); //unlock semaphore
sleep(1); //sleep one second
}
//printf("Two Down\n"); //if I uncomment this, 21 is not repeated and everything works as expected
exit(0);
}

int main(int argc, char** argv){
int n = 0;
pthread_t thread;

args th_args = {&n}; //struct that is passed into second_thread
sem_init(&(th_args.sem), 0, 1); //initialising the semaphore

printf("Thread One\n");

/*
Starts function second_thread in a new thread
and passes the struct to it with a pointer
*/
pthread_create(&thread, NULL, second_thread, (void*)&th_args);

while (1){
sem_wait(&(th_args.sem)); //wait for the semaphore to unlock, then lock it.

n++; //increment n by 1
printf("(One): %2d\n", n); //print n

sem_post(&(th_args.sem)); //unlock semaphore
sleep(1); //sleep one second
}
return 0;
}

output is pic related.
Shouldn't it be impossible for two equal values to be printed considering that there's an increment just before the printf statement?

n++; //increment n by 1
printf("(One): %2d\n", n); //print n
>>
>>55831276
use a
>>
>>55831400

It's too late. He already posted the linq version.
>>
>>55831461
undefinded behavior
>>
>>55831498
Please explain, where's my mistake
I know it's undefined behaviour somewhere, because as I wrote in the code comments, if I add the print statement to second_thread, all works as expected.
But I don't get what's wrong.
>>
>>55831461
//our int
//our semaphore


Please tell me you're a student and your professor is making you do this.

I mean, how could we possibly know it's our int and not the neighbour's instead.
>>
Okay, it's me (the guy that's been working on the spigot algorithm for pi), and I feel like I'm at least a bit closer to finishing this... I'm following Wikipedia's explanation to how to get each digit of pi through a combination of finite and infinite sums (LHS) and my code is on the Right Hand Side.... Problem is, I have no idea why I'm getting negative numbers for some of these...

Any ideas?

(PS: anybody know where I can ask /sci/ this? They don't seem to have a CS-problems thread)
>>
>>55831524
Nah, I'm self-learning. Guess I'll remove it
>>
>>55831522
its how printf works
>>
File: killer bird.jpg (29KB, 412x430px) Image search: [Google]
killer bird.jpg
29KB, 412x430px
Is this now a programming challenge thread?

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

void rot13(char* str) {
char c;
for(;*str != '\0';str++) {
c = tolower(*str);
if(c >= 'a' && c <= 'm') {
*str += 13;
} else if(c >= 'n' && c <= 'z') {
*str -= 13;
}
}
}

int main() {
char str[] = "faggot";
rot13(str);
printf("%s\n",str);
return EXIT_SUCCESS;
}
>>
>>55831461
>calling exit() from a thread.
No.
>>
File: 2016-07-30_08-40-10.png (11KB, 499x387px) Image search: [Google]
2016-07-30_08-40-10.png
11KB, 499x387px
fuck this shitty software
>>
>>55831624
Why don't you just use modulo?

>>55831642
Are you saying that git is shitty, or "git-for-windows" is shitty?
>>
>>55831642
svn that corrupts every 50th byte is superior amirite
>>
File: O5dEzt7[1].png (9KB, 338x368px) Image search: [Google]
O5dEzt7[1].png
9KB, 338x368px
>>55831578
Was it the format string?
I changed it to %2i and it seems to work now
Though it didn't always fail before so I don't know.
How could this happen though, seems like a weird glitch even for undefined behaviour.

>>55831625
why?
>>
>>55831578
Not him, but I seriously don't see it.
At first I thought of a data race on `n`, but the semaphore-based locking looks fine.
Then I thought of a data race on some static buffer used for printf, but (1) I don't think printf uses a static buffer, and (2) again, the locking seems right.
Now it looks like commenting out the call to exit() makes it behave reasonably, but I don't see why exit() would make the other thread re-print its last printf.
>>
>>55831650
>Why don't you just use modulo?
TOO SLOW MY BOY
>>
>>55831665
>why?
You're going to get shit like double flushes of buffers and other related nonsense.
Just exit and join the thread "properly".
>>
Does anyone have that programming roll chart?

I'm at a loss what to program
>>
python swap case letters without using swapcase method.

why doesn't this shit work?

string = 'tEcNoLogy'

for i in string:
if i.islower():
i = i.upper()
elif i.isupper():
i = i.lower()

print string

>>
>>55831731
Please don't ask for that shit, and don't post that in this thread.
We don't need 50 shitty rolling posts which add absolutely nothing to these threads.
>>
I imagine changing the variable i doesn't affect the string.
>>
>>55831734
nvm fixed
>>
>>55831731
https://better-dpt-roll.github.io/
>>
Hur programmerar man en flickvän?
>>
File: shitty.png (2KB, 260x171px) Image search: [Google]
shitty.png
2KB, 260x171px
Found an SQLi vuln on my city's bus tracker website, cracked the hash and I'm now stealing GPS data so I can make my own bus tracking site.

They made it look like pic related, a static image that you need to reload the page to see updated. I made the coordinates load into Google maps as markers and loaded in a custom .KML file I drew for the bus path.

How can I make it look like it's real-time(ish)? The GPS data is sort of regular at 5-6 seconds and I'm receiving speed and course, as well. Right now, the markers jump from position to position.
>>
>>55831879
speak american please
>>
>>55831891

Use the previous points to calculate trajectories, or just buffer a few points
>>
http://www.ogre3d.org/forums/viewtopic.php?f=11&t=85638

Still Looks like Unity
>>
>>55831891
Interpolation
>>
>>55831624
>not portable
m8...
>>
>>55831993
here we go again with the not portable meme.

POST THE FUCKING PORTABLE VERSION OR GET THE FUCK OUT
>>
>>55830028
muh semen!
>>
>>55831624
my strong.encode('rot13')
>>
What's this meme that this or that language teaches "good practices"?

I've often read that C teaches "good practices" and Java teaches "bad practices".

Just what does that mean?
>>
>>55832063
C encourages you to use direct constructs to solve your problems.
Java encourages you to create massively over-engineered object hierarchies which don't even fir your problem.
>>
>>55832063
C encourages you to use direct constructs to solve your problems.
Java encourages you to create massively over-engineered object hierarchies which don't even fir your problem.
>>
>>55832104
Why did you copy-paste my reply, even going as far to leave my typo in?
>>
>>55832063
it's just old people being old

>back in my day, we didn't have your fancy ohpeepee crap, sonny!
>>
>>55831993
It's portable though.
>>
Is there a framework available in Rust to write websites? It should have a template engine and a way to stream files to the client.
>>
>>55831642
spotted the university student who couldn't merge a branch if his life depended on it
>>
>>55832008
>>55832127
It makes the assumption that 'a' through 'z' are all sequential characters.
The standard does not guarantee this, and a truly portable solution does not exist.
>>
>>55832140
No, I mean if you put it on a USB drive you can carry it around with you.
>>
>>55832008
no need to get mad, just learn the language
>>
>>55832134

https://github.com/flosse/rust-web-framework-comparison

There are a few.
>>
>>55831896
>american
>>
>>55832140
>and a truly portable solution does not exist.
Actually, thinking back on that, there is a portable solution.
It does require switching over every letter though.
>>
>>55832220

Shh.. This country is trying to keep people at that level of intelligence.

I mean why else are we mass poisoning our food supplies, water supplies, and keeping mercury / formaldehyde in the vaccines.
>>
What's wrong with my logBASE10 (2) Spigot Algorithm?

#include <iostream>
double modExponentiation(int base, int exp, int m);
std::string getBinDigitsOfLog2();

int main(int argc, const char * argv[]) {

std::cout << getBinDigitsOfLog2() << std::endl;
return 0;
}

std::string getBinDigitsOfLog2()
{
double sum = 0;
std::string outputLogString = "";
for(int desiredNum = 3; desiredNum < 1000; desiredNum++)
{
sum = 0;
for(int i = 1; i < desiredNum; i ++)
{ // ∑(1 to desired digit)
sum += (modExponentiation(2.0, (desiredNum-1)-i, i)/ i);
if(sum > 1)
sum = sum - static_cast<int>(sum); // Same as mod1
}
for(int i = desiredNum; i < desiredNum+3; i++)
{
sum += 1/(i * modExponentiation(2.0, i-(desiredNum-1), i));
std::cout << "\t\t i = " << i << "\t DN = " << desiredNum << std::endl;
if(sum > 1)
{
sum = sum - static_cast<int>(sum); // Same as mod1
}
}
int temp = sum*2;
outputLogString += std::to_string(temp).substr(0,1);
std::cout << "SUM = " << (sum*2) << std::endl;
//modExponentiation(sum, 1, 1)
}
return outputLogString;
}
//log2 = ∑ 1/(k*2^k)


double modExponentiation(int base, int exp, int m)
{ //base^exp mod m
int result = 1;
base = base % m;

for(int e_prime = 1; e_prime <= exp; e_prime++)
{
result = (result*base) % m;
}

return result;
}
>>
>>55832134
>arewewebyet.org
>>
File: 1468812434054[1].jpg (314KB, 1261x1000px) Image search: [Google]
1468812434054[1].jpg
314KB, 1261x1000px
>>
>>55832812
>for N00bz

No chip8 emulator?
>>
>>55832843
Didn't have one handy, so I grabbed the first one I saw off of rebeccablacktech
>>
File: indent style tiers.png (8KB, 287x510px) Image search: [Google]
indent style tiers.png
8KB, 287x510px
Facts.
>>
>>55832879
while ( x==y ) {
something ();
somethingelse ();
}
>>
>>55832909
The cancer tier
>>
>>55832909
Refugee tier.
>>
>>55832909
>space between the function and the parenthesis
>space between the parenthesis and the parameters
>no space between the variables and the operators
kill yourself
>>
>>55832879
while x == y :
something()
somethingelse()

>>
>>55832879
GNU is the best.
>>
>>55832879

filter(data, [](auto x) { return x == y });
for( auto x : data) {
something();
somethingelse();
}
>>
>>55832843
It's number 078
>>
>>55832964

Inb4 I forgot to capture y in the lambda.
>>
>>55832909
This fag is so wrong he's almost right.
while ( x == square( y ) ) {
something( );
somethingElse( );
}
>>
>>55832879
K&R a best.
>>
>>55833033 (checked)
while ( x == square( y) )
{
something( arg1, arg2);
somethingElse( );
}
>>
Can go automatically derive functors?
>>
can someone explain lambdas for a plebian? they look so difficult and scary!
>>
>>55833100

Gah..

while ( x == square(y)) {
something(arg1, arg2);
something_else();
}
>>
>>55833115
They're little functions you can pass around, anon
>>
>>55833134
... what?
>>
I woke up a bit drunk.
How do I stop the inevitable hangover \ make it less painless?
>>
>>55833172
lots of water
vodka and tomato drink
>>
Does anybody a pdf or anything that lists all google test framework macro assertions etc?
Can't find it, i thought it would be an easy find, almost obvious.
>>
muh readability
package controller

import (
"net/http"
"os"
"path/filepath"
)

type listPage struct {
Title string
Files []File
}

type File struct {
Name string
Path string
}

func List(w http.ResponseWriter, r *http.Request) {
file, err := os.Open(r.URL.Path)
if err != nil {
writeError(w, err)
return
}
defer file.Close()
info, err := file.Stat()
if err != nil {
writeError(w, err)
return
}
if info.IsDir() {
infos, err := file.Readdir(-1)
if err != nil {
writeError(w, err)
return
}
files := make([]File, len(infos))
for i, info := range infos {
files[i] = File{
Name: info.Name(),
Path: filepath.Join(r.URL.Path, info.Name()),
}
}
write(w, "list.tpl", listPage{
Title: r.URL.Path,
Files: files,
})
} else {
http.ServeFile(w, r, r.URL.Path)
}
}
>>
>>55833172

Just hydrate. That is all you can do to help mitigate some of the hangover.
>>
>>55833161
Huh? That's all they are anon, little bitty bitty functions. You can pass them around like biscuits.
>>
>>55833172
Porridge, made with oats, full fat milk, and salt
>>
>>55833208
like a function pointer?
>>
>>55833161
you point to a function and pass it as an argument, this is usually used to allow you using ad hoc functions in pre built shit
>>
>>55833229
Think of them as like bowls of sweets. You put some sweets in the bowl and then pass it to where you want it to go, then when the bowl is tipped over, your sweets are in there.
>>
>>55833228
>>55833202
>>55833194

Thanks /dpt/
Seems like everyone here knows a little bit about everything.
Is getting drunk part of being a programmer?
>>
>>55833251
Yes, look up the Ballmer peak.
>>
>>55833245
that doesn't help :(
it just makes them more difficult and scary!
>>
>>55833271
They're functions that can keep some state inside them.
>>
>>55833271
What's scary about a bowl of sweets?

Okay, think of them as a dog in a box. You've got to make the dog bigger than the box.
>>
>>55833301
like a static in c?
>>
>>55833301
That's not going to help him
>>
File: le retard snake.jpg (24KB, 400x400px) Image search: [Google]
le retard snake.jpg
24KB, 400x400px
>need to solve problem in le meme snek
>problem fucking begs for function overloading
>can't do function overloading in le meme snek
>look online for workaround
>"Function overloading or any function that depends on the type of inputs is just not Pythonic™, you should use keyword arguments instead"
>except I don't need keyword arguments, I need exactly two arguments that can have different types
>can't be assed to deal with clunky decorators, so I resort to conditional type checking
>"Using conditionals is not Pythonic™, you should use try-except constructs instead because muh EAFP"

Anyone that contributes to this shitty meme language or its shitty meme culture needs to be gassed before getting thrown out of a helicopter. If only Peter Norvig just wrote a macro that converts pseudocode to Lisp instead of meddling in this meme language. I'm going back to C++.
>>
>>55833336
>not pythonic
What the fuck does that even mean?
>>
>>55833311

A lambda is basically a ad-hoc scoped function.
>>
>>55833336
>too retarded for python
anon...
>>
>>55833311
Yeah, pretty much.
>>
>>55833358
Exactly, it's like a dog in a box.
>>
>>55833360
It's the other way around, the language is far too retarded for me, or anyone else for that matter.
>>
Can I implement functors in go?
>>
>>55833384
its possible to write the linux kernel in scratch and you're struggling with a fizzbuzz in python
>>
>>55833384
It's perfect for bootcampers.
>>
>>55833346
Not easily understood by pythonistas (baristas).
>>
>>55833196
pls respond
>>
>>55833403
Hey, don't be like that.

There's plenty of people who worked 30 years in a manual industry or a trade, and now they've been made obsolete and they need a new job, so they went to a two week code bootcamp and learned Python, and now they're just as good as somebody with a decade of experience writing software and a CS degree, don't you dare suggest they're not, you shitlord.
>>
>>55833395
>its possible to write the linux kernel in scratch
Oh boy, just imagine how slow that would be.
>>
>>55833435
No

Use a better testing library
>>
What's the best overall general purpose language?
I'm voting C#.
It's old, but not too old so it's still alive and well.
It's easy to learn and has a great documentation.
Runs on Windows, Mac, Linux.
Lots of both integrated development and command line tools.
Syntactic sugar out of the ass.

Is C# the best overall general purpose language?
>>
>>55833485
No, Haskell is.
>>
Can someone suggest me a good and easy to use graphics / gui library?

It can use either C++ or C#.
I already know SFML, but there's no easy way for me to create interface for it fast, and I'd rather spend my time working on other things that making a gui toolkit.
>>
>>55833485
C++.
>>
>>55833485
Common Lisp
>>
>>55833504
Qt?
>>
My Extremely Clever Algorithm doesn't work in a few edge cases.

Should I:

a) add some conditional fig leaves for those edge cases
b) spend the next few hours thinking of an Extremely Clever Algorithm that WILL work in those edge cases
>>
>>55833485
C++
It has everything you mentioned about C#, but it's not bound to Microsoft shaft.
>>
>>55833524
c) Tell us more about what is doing so we can actually help, cunt
>>
>>55833524
Create abstractions for those edge cases, which you can fill out later.
>>
>>55833530
>C++
Deprecated, use Rust instead.
>>
>>55833524
It depends, if speed isn't important or you catch those cases early (meaning you don't repeat the conditional stuff more than once) i would go with a).
>>
is this good practice?
python code btw
match = re.finditer (
re.compile(r'(http\:\/\/\w\.\w+\.\w+\/\w+.(jpg|png|jpeg|gif))'),
r.read()
)
>>
>>55833535
It's too advanced for /sqt/ and unpublished.
>>
>>55833509
>>55833530
Too old.
>>
Can I get any kind of code reuse out of go?
>>
>>55833550
No thanks, don't want my neghole pozzed.
>>
>>55833550
C will never die but Rust isn't it's successor, C++ is. It will never die either. It's successor probably won't be known for another 2 or 3 decades at least as it's a language that's rapidly improving now.
>>
>>55833559
*for /dpt/
>>
>>55833571
>rapidly improving
>not just throwing new features at it hoping that it will remain relevant
>>
>>55833559
Are you the same guy who said he came up with a groundbreaking optimization algorithm a couple days back?
>>
>>55833558
What about this:
^http:\/\/[^/]+\.(jpg|png|jpeg|gif)$
>>
So I'm a completely beginner in python and I copy and paste the code of this web crawler to try to learn how it works. If I try to run it it appears that there is a syntax error in
if tag  'a':
why is this a problem? the person that made the crawler said it was ready and It just was copy and paste it. The entire code it's in here: (Bottom) http://www.netinstructions.com/how-to-make-a-web-crawler-in-under-50-lines-of-python-code/
>>
>>55833575
Well, if we're too stupid to understand the problem, then we're too stupid to help you.
>>
>>55833591
>groundbreaking optimization algorithm
kek
>>
>>55833602
Don't use Python, it causes cancer.
>>
>>55833602

Here's the first part of the web crawler:

html.parser import HTMLParser  
from urllib.request import urlopen
from urllib import parse

# We are going to create a class called LinkParser that inherits some
# methods from HTMLParser which is why it is passed into the definition
class LinkParser(HTMLParser):

# This is a function that HTMLParser normally has
# but we are adding some functionality to it
def handle_starttag(self, tag, attrs):
# We are looking for the begining of a link. Links normally look
# like <a href="www.someurl.com"></a>
if tag 'a':
for (key, value) in attrs:
if key 'href':
# We are grabbing the new URL. We are also adding the
# base URL to it. For example:
# www.netinstructions.com is the base and
# somepage.html is the new URL (a relative URL)
#
# We combine a relative URL with the base URL to create
# an absolute URL like:
# www.netinstructions.com/somepage.html
newUrl = parse.urljoin(self.baseUrl, value)
# And add it to our colection of links:
self.links = self.links + [newUrl]
>>
>>55833591
Nah, it's just a fuzzy hash map string matching adaptation for a specific type of data.
>>
>>55833632
Delete this post, it contains a known carcinogen
>>
>>55833602
Protip: learn Python first before copy pasting random snippets.
>>
>>55833504
If it's windows only, then definitely WPF
>>
>>55833395
>its possible to write the linux kernel in scratch
>In Python
Haha no.
>>
>>55833731
>he can't write assembly code in python
Haha yes.
>>
>>55833390
>Can I [..] in go?
No.
>>
>>55833762
Why not?
>>
>>55833770
Nope.
>>
>>55833654
Welp, at least can you tell me if there's an actual error in the code or is just me being dumb and not knowing how to use it
>>
>>55833758
You can't do assembly in python.
>>
>>55833781
But why???
>>
>>55833799
Because no.
>>
>>55833787
You can call into a C library and that counts
>>
>>55833809
Then that's not really making a Linux kernel in Python is it? you're still being supported by C libraries.
In the end, you can't do fucking shit without C.
>>
>>55833826
Yes it is. If you use a Python library backed by C, you're still using Python. If not, then all the scientific computing and machine learning that gets done wouldn't actually be in Python, which is impossible because that would make Python look less good.
>>
>>55833826
maybe (you) can't
gods such as myself can do anything
>>
>>55833804
Is it because of generics?

Tell me about the generics
>>
>>55833336
>problem fucking begs for function overloading
please, there's no need for overloading to do fizzbuzz
>>
>>55833863
would you like to suck my monad?
>>
>>55833855
Okay, write me a bootloader in pure Python, NO C and NO assembly, because gods such as yourself can do anything, right?
Oh and you need to rewrite your BIOS and other firmware in Python and flash it onto your motherboard because booting your bootloader from your current firmware would be relying on C and assembly.
Also, you must write the Python interpreter you will be using in Python, good luck with that, but as you said, gods such as yourself can do anything, right?
>>
>>55833905
I wanna bimap you and your bifunctor
>>
>>55833911
>write me
suck me first, I don't work for free
>gods such as yourself can do anything, right?
of course
>>
>>55833948
>suck me first, I don't work for free
Sure, where do you live faggot? I'll suck you dry and you'll write me an entire computing stack in pure Python.
>>
>>55833787
Neither in C.
>>
>>55833559
>"I'm too advanced for /dpt/"
>asking for help on /dpt/
>>
>>55833971
knew you're a faggot :^)
>>
File: Minitokyo.162997.jpg (84KB, 1024x768px) Image search: [Google]
Minitokyo.162997.jpg
84KB, 1024x768px
>>55829467
How do I use visual studio?
Trying to get into C# winstack coming from linux and I have no idea what I'm doing.
Help me.
>>
>>55833632
Dude it's only python nobody needs that many comments.
They are actually getting in the way.
>>
>>55833632
Might be time for some Beautiful Soup.
>>
>>55834239
New project
Click OK
You're done, was that so hard?
>>
Person A:
>uses a macbook
>uses Atom because it's open-source

Person B:
>uses Linux
>uses Sublime Text because it's faster than atom

Is person A right? apple is not open source is it? can person A use the argument of open-source event though hs is using a macbook?
>>
>>55834430
Who the fuck cares, Anon.
>>
>>55834430
How long did it take to come up with this retarded scenario?
>>
>The C Programming Language
>Exercise 2-7
>Write a function invert(x,p,n) that returns x with the n bits that begin at position p inverted (i.e., 1 changed into 0 and vice versa), leaving the others unchanged.

So I came up with a solution:

unsigned char getbits(unsigned char x, int p, int n)
{
return (x >> p - n + 1) & ~(~0 << n);
}

unsigned char invert(unsigned char x, int p, int n)
{
return (x & ~getbits(x, p, n)) + getbits(~x, p, n);
}


But I am pretty unhappy about it... How would /dpt/ do that
>>
>>55834467
unsigned invert(unsigned x, int p, int n)
{
return x ^ (~(~0 << n) << (p - n + 1));
}


JUST
>>
>>55833602
>>55833632
>>55834285
Pic is the original code without comments.

So I fix the syntax error just by adding "==". But it's seems it's not working yet, sometimes it finds the word but only in the first page other times it doesn't find the word in a page that obviously has it, at least I'm learning a lot
>>
>>55834430
Person C:
>uses a Lemote Leeyong
>uses emacs because vim refers to the devil
>>
>>55834462
>>55834450
just looking for opinions
>>
>>55834430
Why the fuck would anyone use an editor that isn't Emacs
>>
>>55834603

It's nice to not have foot pedals as a near mandatory addition to negate the greatly increased risk of carpal tunnel and stress related injuries from your editor.
>>
>>55834603
well, in fact, person A uses emacs and Atom
>>
>>55834634
Pressing C-x C-s is really that hard?
>>
>>55834528
thanks
>>
>>55834239
>visual studio
It's trash
>>
>tfw i wrote my first Android app today
>tfw it's a Tic Tac Toe game
What next?
>>
>>55834833

You're trash!
>>
>>55834856
burger king
>>
When I run this the printed out statement goes in sequential order. Why is this?

Thread[] threads = new Thread[numOfOrdersToProcess];

for(int i = 0; i < numOfOrdersToProcess; i++){
int fileToCheck = i + 1;
String newFile = baseFile + fileToCheck + ".txt";
Integer id = readID(newFile, idMap);
OrderRunnable r1 = new OrderRunnable(itemsMap, idMap, totalMap, newFile, id, resultsFile);

System.out.println("Reading order for client with id: " + id);
threads[i] = new Thread(r1);
threads[i].start();

}

for(int i = 0; i < numOfOrdersToProcess; i++){
threads[i].join();
}
>>
>>55834884

Hail to the king, baby.
>>
>>55834919

Because the print statement occurs sequentially?
>>
>>55834766

Over time emacs does indeed tend to cause RSI.

The heavy usage of ctrl , alt key combos puts the hand in awkward positions and over time these build up and cause injury. The only way to avoid this is using specific keyboard layouts and other devices to reduce the extra stress.

Basically if you want to use emacs all day for editing code you should probably invest in a nice ergonomic mechanical keyboard with the control + alt keys spaced for natural hand position or use foot pedals.

Most of the developers who helped initial create emacs have suffered seriously debilitating hand injuries over the years.
>>
>>55834948
Do I need to put the print statement in the run method?
>>
I need to code a Mac /iOS app. But I do not have a mac Myself. Which would be the best cross platform sdk? I have been taking an interest in Xamarin, but I would like further feedback.
>>
>>55835001
idk, I feel pretty comfortable. Years of pressing control to crouch in games might have helped.
>>
>>55835044

It feels fine now. But, the fact of the matter is if you're not actively taking steps to avoid it you're greatly increasing the risk of RSI and carpal tunnel by your choice of editor.

I should also note that if the only shortcuts you're using are C-x and C-s it kinda kills the point of using a editor like emacs.
>>
Hey i need a little help with my c++
class TestClass{
public:
int s[3][3] = /* WHAT GOES HERE? */

//constructors and shit
};
>>
>>55835026

If you want to to be displayed in the order that it actually occurs, it needs to occur WITHIN the thread.
>>
>>55835306
You just give the array a name, and initialize in the constructor.
>>
>>55835306
http://lmgtfy.com/?q=initialize+2d+array+c%2B%2B
>>
>>55835306
an int
>>
>>55835338
But it's not going to be used in that class. It's constants for an inherited class.
>>55835341
>>>/out/
>>
>>55835331
I don't want it to go in order but it does.
>>
>>55834634
>>55835001
Not if you swap caps with control like any sane person would.
>>
>>55835306

You don't initialize class variables when you declare them. You do it in the constructor. If your compiler supports c++11 or higher (it should). You can do this

#include <iostream>

class TestClass {
public:
int s[3][3];

TestClass() :
s{ {0, 0, 0}, {0, 0, 0}, {0, 0, 0} }
{
}
};

int main(int argv, char** argc)
{
TestClass x;

for(auto i = 0; i < 3; ++i) {
for(auto j = 0; j < 3; ++j) {
std::cout << x.s[i][j];
}
std::cout << std::endl;
}
}
>>
>>55835508
: s{}


will set them all to zero as well.
>>
>>55835508
That's an instance variable. You do initialize class variables at declaration.
>>
java question
if originalString had the value "Hello Bob"
then, with newString = originalString.substring(0, originalString.indexOf(" "));
newString would have the value of "Hello"
but how could I make newString instead have the value of "Bob"
>>
>>55835626
Gee, I wonder. The only non obvious thing is
originalString.length()
>>
>>55835626
Not a java person, but either:

originalString.substring(5);


which will assume the upper bound is the end of the string, or explictly:

originalString.substring(5, 8);
>>
>>55835547

I was being explicit just in case the anon asking was intending to use a non-zero default value.

>>55835586

I keep forgetting that feature was added.. It's just too ingrained to do all the initializations within the constructor.
>>
String[] ss = new String[10];
Object[] os = ss;
os[0] = new Integer(30);
System.out.println(ss[0]);


Java BTFO

Why would anyone use such a broken language?
>>
>>55834430
>>uses Sublime Text because it's faster than atom


everything is faster than atom u nigger
>>
File: 1395431082354.gif (1MB, 263x250px) Image search: [Google]
1395431082354.gif
1MB, 263x250px
>>55835794
>Primitives are capitalized
>Methods start with a lowercase
>>
>>55835852
They're not primitives, anon.
>>
http://www.strawpoll.me/10870211/
http://www.strawpoll.me/10870211/
http://www.strawpoll.me/10870211/
http://www.strawpoll.me/10870211/
>>
>>55835794
Looks like you need to learn pointers first you faggot
>>
>>55836091
Where is GNU/Linux?
>>
>>55836129
Somewhere next to Ubuntu/Windows
>>
>>55836153
Ubuntu is not there though
>>
>>55833390
By functor do you mean class with one method or the match thing?
>>
File: this article is real and true.png (329KB, 711x610px) Image search: [Google]
this article is real and true.png
329KB, 711x610px
>>55836164
I don't believe gnu
>>
>>55836200
I assume he means a mapping between categories
>>
>>55833565
Yes, but how to depends on what exactly you are trying to do.
>>
>>55834528
>~0
b-but isn't that 1?
>>
>>55836316
no
>>
>>55834528
Also can somebody explain this?
So he's shifting everything left by n, and then shifting that left by p-n + 1...
And then inverting it?
How can this work?
>>
>>55836316
not unless you're dealing with a single bit
0 = 00000000.00000000.00000000.0000000
~0 = 11111111.11111111.11111111.11111111
>>
>>55836359
The first invert turns the 0 into 0xFFFF.... Shifting that to the left resets n lowest bits. The second invert sets the low bits, and then the mask gets shifted into place, with zeroes in the low bits. Then xor inverts the bits of x set by the mask.
>>
I am infinitely more productive when under the influence, but I don't want to rot my brain and liver. Is there anything that gives the same effect while being safe and legal, or will I stay a codelet forever?
>>
>>55836586
weed
>>
>>55829467
fuck weaboos
>>
>>55835794
Why do people still use Java?

>>55836655
He said safe and legal
He said he doesn't want to rot his brain
He wants to be more productive
>>
>>55836586
you've got a substance abuse problem, go see a therapist about this right fucking now

if you think youre underachieving without influence of drugs and such you can spiral into a pretty nasty drug addiction
>>
>>55836681

Legal in parts of the united states.

New research has proven it to actually be a effective treatment for cancer. Newer studies have also been finding that Marijuana has no long term effect on or Concentration.

It is one of the least harmful "Vices" one can pickup.

Just continue to accept your social programming / conditioning. It's perfectly fine anon one day you will make the choice to find your information and form your own unbiased opinion.
>>
>>55836848
that doesnt mean you cant get addicted to it

also anon doesnt have cancer, and please give me a link to those studies your talking about
>>
writing toy app in kotlin, seems a decent language desu
>>
>>55836935
>JVM
>android
Why?

>>55836848
Destroys your mental health
Destroys your productivity
Destroys your personality
Destroys your life
Funds terrorists
Funds street gangs

I wish in the UK teens who took drugs actually went to fucking jail like the law says, rather than being perpetually let off.

"i-it's not 110% confirmed" "look at these handpicked studies" "what happens in real life doesnt matter" "its my body i do what i want mom!!"
You are the tobacco industry of the 20th century.
>>
>>55836967
Why not? I already code in java for work, and android is just a toy for me, kotlin seems fun for now
>>
>>55836981
Java is horrendous
Android is horrendous
>>
what's this?
["hip", "hip"]
>>
>>55837004
yeah but it pays my bills, and in the real world java is one of the most used languages.
>>
>>55837018
hip hip array. Reported.
>>
>>55836891
http://www.tandfonline.com/doi/abs/10.1080/13803395.2014.893996

http://onlinelibrary.wiley.com/doi/10.1111/j.1360-0443.2011.03574.x/abstract

http://www.cancer.gov/about-cancer/treatment/cam/patient/cannabis-pdq

http://www.higherperspectives.com/there-are-now-100-scientific-studies-that-prove-cannabis-cures-cancer-1429984852.html

http://www.pnas.org/content/113/5/E500

Shall I added more ? Perhaps the studies showing that addiction and movement to other drugs is mainly a factor of socio-economic conditions?
>>
>>55837026
and everyone who uses java uses it because everyone uses it
>>
>>55837052
i use it because they pay me to use it, if it was for me i'd code in ruby or golang
>>
>>55837075
>golang
you are a fan of verbosity then?
>>
>>55837081
i'm a fan of good languages, you are just a low quality troll
>>
>>55836848
>DUDE WEED IS GOOD FOR YOU LMAO!

I can't wait for it to be legal so that people will stop these incredible fantasies about its mystical powers.
>>
>>55833911
You really are a stupid faggot aren't you.

https://us.pycon.org/2015/schedule/presentation/378/

And I'm willing to bet you have never even touched a bootloader before to know your fucking ass from your head when it comes to systems programming.

Kill your fucking self.
>>
File: bopit.jpg (17KB, 600x235px) Image search: [Google]
bopit.jpg
17KB, 600x235px
DUDE WEED LMAO
>>
>>55835869
No, strings in Java are objects except they have magical primitive-like properties. It's very consistent and logical ;)
>>
>>55837094
You use Java and want Ruby and Go

What the fuck do you know about good languages?
>>
>>55837114

Lets face it. The only reason it isn't legal already is our political system is run by corporations and has been directly saying fuck you to the people for decades.

Really as programmers we should "accidentally" write in some more routes for "Hackers" to mass release dirt on our politicians.
>>
I need to learn C# and ASP.NET MVC. Anyone have good recommendations?
>>
>>55837159
They don't. They're just immutable.
>>
>>55837187
I'll put the raspberry pi in the thermostat.

>>55837197
>complex (+) operator semantics
>not magic
Why can't I overload + for my bigints? Because Oracle tells me I can't, and that "operator overloading is harmful!!"
>>
>>55837139
dude nice bong
>>
>>55837224
Operator overloading in Java can fuck things up badly. Imagine Pajeet overloading the '==' operator.
>>
>>55837311
>Imagine Pajeet overloading the '==' operator.
Luckily someone as racist as you wont be working on a codebase with more than 1 contributor.
>>
>>55837224
>have to use .isEquals()
>.add, .sub etc
I wish these anti-operator fags would go away
In Haskell you can infix functions with backticks, that's pretty nice

>>55837187
pic
make a thread elsewhere
>>
>>55837311
Imagine someone changing == to actually compare values. That would be great.
>>
NEW THREAD!!

>>55837362
>>
NEW THREAD
>>55837364

NEW THREAD
>>55837364

NEW THREAD
>>55837364
>>
File: Adolf-Hitler1-e1393973773926.jpg (11KB, 200x235px) Image search: [Google]
Adolf-Hitler1-e1393973773926.jpg
11KB, 200x235px
>>55837345
Joke's on you, I already do.
>>55837363
It'd be great to use for testing string equality.
>>
>>55837311
>a language made to be used by idiots
Thanks for reinforcing my disdain for Java
>>
>>55837382
kill yourself spammer
>>
>>55831542
What editor/ide is this?
>>
>>55837187

Are you some sort of psyop agent? Get the fuck out.
>>
I want to make a simple language for learning purposes
Do I need to read that 5000 page dragon book?
Thread posts: 324
Thread images: 27


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