Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Subject
Comment
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


420chan is Getting Overhauled - Changelog/Bug Report/Request Thread (Updated July 26)

What is the cheapest way to add co-op support to my video game?

View Thread Reply
- Sun, 20 Aug 2017 23:17:46 EST 9venZ0d6 No.37160
File: 1503285466870.jpg -(633274B / 618.43KB, 1745x1229) Thumbnail displayed, click image for full size. What is the cheapest way to add co-op support to my video game?
I want my players to be able to play co-op but portforwarding and explicitly hosting a server would kill off a lot of potential players. Aside from hosting servers myself, is there a way to let people play co-op without anyone allowing incoming traffic from the internet?
>>
Ernest Waddledale - Mon, 21 Aug 2017 13:23:00 EST bkh8m0qR No.37161 Reply
You can use a server to mediate the network transversal of two clients and then let them talk to each other. That's how WebRTC works and it's dirt cheap to run the server.
>>
Charles Gallylat - Thu, 24 Aug 2017 11:55:42 EST 9QSfnS0r No.37163 Reply
The steam framework has a multiplayer network api that is sort of "free" to use, with the exception that your game will now be locked into their platform.
>>
Polly Choffinggold - Sat, 26 Aug 2017 15:49:38 EST P6PS9CBz No.37167 Reply
You can try NAT traversal techniques like hole-punching, but there's still going to be some routers that won't let people host game sessions without explicit port-forwarding.

Java versus Python

View Thread Reply
- Mon, 31 Jul 2017 22:09:34 EST ddyPydmV No.37128
File: 1501553374819.jpg -(49279B / 48.12KB, 559x254) Thumbnail displayed, click image for full size. Java versus Python
If I'm interested in programming simple, 2D games, which language am I better off with? Perhaps Python is the answer? It seems to be good for making simple games due to its pygame program. On the other hand, Minecraft is programmed in Java and is a great game.

What does /prog/ think?
1 posts and 1 images omitted. Click View Thread to read.
>>
James Callerwodging - Wed, 02 Aug 2017 14:12:18 EST 9QSfnS0r No.37131 Reply
For simple 2d games you'd actually should have a look at processing, it has been made for this kind of stuff and just feels like programming a retro home computer.

Don't try to write games in java unless you already are proficient in it for other purposes. Using unity and c# may sound like overkill for something simple but you sure as hell would be faster than using freakin java.
>>
Hannah Gablingdale - Sun, 06 Aug 2017 08:20:25 EST Ybduti9u No.37137 Reply
I had the exact same question. Didn't answer that completely but turn out that pyglet and pygame are piss easy to use, while in java there is just a lot more boilerplate code but maybe with more possibilities with low level stuff (?? Didn't look into that much, probably you'd have more luck with c++ with low level shit like memory management)
Plus pyglet and pygame are both easy to get started with as well as possible to do advanced stuff with. For 2d games they are pretty much complete, in the end you only need images to "blit" into the window, math for collision detection, physics, 2d depth effects (if you wanted), plus basic shapes like lines, circles or rectangles. OOP should probably take care of the rest, which python is completely capable of. I'm not an advocate of OOP but for game programming it fits very well.
>>
Ebenezer Nollystone - Sun, 06 Aug 2017 18:05:27 EST gLfws0AG No.37138 Reply
>>37131
>For simple 2d games you'd actually should have a look at processing,
Yeah no, unless you want to code a pong or something extremely simple like that. It's very barebone and very slow. It's good as a pure learning experience (like bouncing squares around or whatever), but you'll probably want to switch to something else fairly quickly.

Java is fairly fast if you use an OpenGL binding like LWJGL, that's what Minecraft does. Performance is "similar" to a C++/OpenGL game speed-wise. It's also hard to do stuff the wrong way since there isn't that many ways of doing something in the first place, unlike Python. The language can get very verbose, but this is not really an issue if you use Eclipse.

I wouldn't recommend Python as a beginner because you'll most definitely use the language wrong. It can get very slow if you don't know what you're doing. This probably won't matter for whatever you will be doing, though. You will get results faster, but you won't learn as much.

I guess it depends on your abilities as a programmer.
If you don't know shit about programming then processing might be a good start.
If you programmed a few things but want to delve into game-programming big time then Java/LWJGL would be OK. Or even C++/OpenGL. The amount of things you will have to learn will be overwhelming at first, but it will definitely be worth it in the long run. It's standard and these kind of technologies will still be around for a looong time.
If you have some experience and just want to play around with shapes/colors/motions etc then Python/Pygame would be great. Python is more of a scripting language for me, I'm sure you can make great commercial games with it, but the bar is lower than with other languages.

Don't use unity or unreal because all you'll learn is either unity or unreal. You can literally drag'n drop FX from a store into your game, use visual programming for gameplay, etc. This sounds great on paper (and it is) but you'll never learn anything that way. You're a programmer, not an artist.

I never liked Python and I wrote my first game in Java so I'm pretty biased.

Scheme and C in one project

View Thread Reply
- Wed, 28 Jun 2017 07:36:33 EST M2B2u4Js No.37091
File: 1498649793698.jpg -(230329B / 224.93KB, 595x596) Thumbnail displayed, click image for full size. Scheme and C in one project
I am working on a project in C.
It would be real neato if I had a way to evaluate a Scheme expression in the same project also.
Is there a (preferably BSD-licensed, but any open-source one will do) implementation of Scheme which can be statically linked to my program?
4 posts omitted. Click View Thread to read.
>>
Molly Dellystock - Thu, 20 Jul 2017 16:56:18 EST WwsCpz20 No.37119 Reply
Thanks for the recommendation guys,
I eventually went for one called tiny-lisp. https://github.com/matp/tiny-lisp
Conveniently, the license permits me to take it and use it in my project, modifying it as I want.

>>37115
I think I found it on one of those clickbait shits called "Top 10 awkward family photos" or something. The children were told they could wear what they wanted or something
>>
Jarvis Crirrychot - Sat, 22 Jul 2017 13:02:29 EST T/bDhTRa No.37122 Reply
>>37115
it's a spaz/tard/whatever...
look closely at his hands... it's armrests on a wheelchair. mom has her hands on the headrest.
especially the brother in the middle looks like he had a talking-to about his "special" family member.

kid clown can't sit properly and might have lost his right index finger as well... or the costumer lost patience.

web-hosting that supports java?

View Thread Reply
- Sat, 18 Mar 2017 01:47:25 EST SWJfiJ9j No.36616
File: 1489816045734.jpg -(316133B / 308.72KB, 1600x1200) Thumbnail displayed, click image for full size. web-hosting that supports java?
I'm somewhat new to software development (just started my second year of education)
I want to start experimenting with doing server shit / applets etc.

Can anyone recommend inexpensive web-hosting that let's me run applications on their server? Is this even a thing?
>>
Nell Ceblingwitch - Sat, 18 Mar 2017 10:27:26 EST WLOo3E7i No.36621 Reply
>>36616

If you're just experimenting, I would suggest just installing Tomcat on your machine and use that.
>>
Shitting Bozzletock - Sat, 18 Mar 2017 14:13:04 EST 0Wz3cQnI No.36622 Reply
Servlets, Spring, and JSP are things, but the only people who are interested in Java web services today are only in it for the JVM. Also, no one wants to run your applet in their browser. No one.

custom PHP Framework

View Thread Reply
- Mon, 07 Mar 2016 10:16:06 EST 5O5Et4Rv No.35282
File: 1457363766264.png -(45520B / 44.45KB, 410x233) Thumbnail displayed, click image for full size. custom PHP Framework
Sup

wrote this php framework and would appreciate some constructive criticism.

https://github.com/SIB-FRANCE/Polyfony2

(questions about why write another framework, and why not use Symfony, Phalcon, Laravel… I'm not interest in)

Thanks
1 posts omitted. Click View Thread to read.
>>
Phineas Clittingchick - Sun, 26 Jun 2016 06:46:28 EST vn92kpWi No.35768 Reply
>>35282
> database abstraction
Like every other framework you fail to grasp the nature of data and databases and support the ignorance of uneducated programmers.

For comparison, what do you think of the following "programming abstraction"?

> function setVar($varname, $value)
> function getVar($varname)
> function makeFunc($funcname, array $statements)
> function callFunc($funcname, $param1 = null, $param2 = null)


Python Curses and Unicode?

View Thread Reply
- Thu, 15 Jun 2017 00:06:52 EST UelYniJo No.37066
File: 1497499612658.jpg -(141192B / 137.88KB, 1920x1200) Thumbnail displayed, click image for full size. Python Curses and Unicode?
Hai /prog/ How do you print Unicode characters with the curses engine? I've tried googling it, but can't find a direct answer. I get a UnicodeEncodeError when using the addstr(). Does curses not support Unicode? Are there other options to use that are like curses but use Unicode? I don't wanna go to stackexchange cuz they're dicks
12 posts and 1 images omitted. Click View Thread to read.
>>
Angus Fonderdock - Sat, 24 Jun 2017 23:57:48 EST h+zCLZ09 No.37083 Reply
>>37082
>>37082
Thanks for the suggestion pal. It didn't quite work for me, but I might be doing it wrong. Are you using the default Mac terminal or do you use the Xquartz terminal? I'm using the default generic one. I installed Xquartz - does the Xresources file apply to only the xquartz terminal, or does it also apply to the default Mac terminal?
Thanks for the assistance!

Convert this file to PNG.

View Thread Reply
- Mon, 26 Jun 2017 12:44:29 EST wVfdD7B/ No.37084
File: 1498495469448.jpg -(153984B / 150.38KB, 640x480) Thumbnail displayed, click image for full size. Convert this file to PNG.
I bought a comic from comixology and downloaded the files to my android. I wante to make a local backup.
Here is one of the files http://www69.zippyshare.com/v/0KizzaQS/file.html
Can someone convert it to PNG?
Pic unrelated.
3 posts omitted. Click View Thread to read.
>>
David Sirringson - Tue, 27 Jun 2017 14:54:18 EST oLIL5vaK No.37090 Reply
>>37089
There is no drm free option for this comic. I downloaded the comic on my android and it was a sequence of files and I uploaded one of them at Zippyshare to see if someone can open it.
But thanks.
>>
John Sirrydotch - Thu, 29 Jun 2017 11:28:25 EST 9QSfnS0r No.37093 Reply
If you are buying crippleware digital products and then ask people to de-cripple it you are part of the problem. There are plenty of places where you can drm-free products and just imho if the authors can't be bothered to supply that option at any price then I can't be bothered to give them money for it.
Not if there is anything that's not somewhere on torrents/usenet/scene sites.
>>
John Sirrydotch - Thu, 29 Jun 2017 11:40:38 EST 9QSfnS0r No.37094 Reply
OP sorry if that response seems preachy,
but just download a pirated version of the comic you bought and think that is your backup.
Then just buy comics from people who actually don't sell you defective files.

9/11

View Thread Reply
- Tue, 27 Jun 2017 02:54:28 EST PQNCtl9i No.37086
File: 1498546468140.jpg -(42883B / 41.88KB, 475x288) Thumbnail displayed, click image for full size. 9/11
some girl named EmilyisPro on Twitch.tv claimed that she can send radio signals to people and also said that she did it while in a plane! she's apparently a walking cell phone.
she's endangering our national security and I don't know who to contact!
fix my problem.

ISO

View Thread Reply
- Sat, 17 Jun 2017 13:28:42 EST D3O7TRoe No.37073
File: 1497720522706.png -(1157756B / 1.10MB, 1920x1200) Thumbnail displayed, click image for full size. ISO
Menu driven installer tutorials, howto.

Wanting to build a CLI menu installer to run system commands similar to setting up a headless server. Would need to work in SSH.
>>
Ebenezer Shittingfoot - Sat, 17 Jun 2017 19:04:40 EST MSuE7kG8 No.37074 Reply
>>37073
The quick-and-dirty way would be to use bash and something like this:

#!/bin/bash

while true; do
echo ''
echo 1 - Do thing 1
echo 2 - Do thing 2
echo 3 - Do thing 3
echo q - Quit
echo ''

read -p'>' -n1 option
echo ''

case $option in
1)
echo You have selected option 1
;;
2)
echo You have selected option 2
;;

3)
echo You have selected option 3
;;
q)
Comment too long. Click here to view the full text.
>>
David Checkleworth - Sat, 17 Jun 2017 20:45:40 EST MSuE7kG8 No.37075 Reply
1497746740284.png -(6509B / 6.36KB, 484x316) Thumbnail displayed, click image for full size.
You can also use whiptail if you're looking for something more fancy:

#!/bin/bash

selection=$(whiptail \
--backtitle "This Is The Backtitle" \
--title "This Is The Title Title" \
--default-item Boobies \
--menu "Please select something" 20 75 8 Boobies "This is a description of boobies" Kittens "This is a description of kittens" Drugs "This is a description of drugs" 3>&1 1>&2 2>&3)
echo You selected $selection


https://en.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail

triangular tiling

View Thread Reply
- Sat, 13 May 2017 05:12:13 EST LBUM/d2l No.36900
File: 1494666733428.png -(17146B / 16.74KB, 375x286) Thumbnail displayed, click image for full size. triangular tiling
Heya
I'm making a thing in C where I want to restrict screen positions to junctions on a triangular grid.

Got any ideas on a kind of data structure I could make?
The grid itself should be able to be relocated around on-screen if wanted.
I need it to allow me to get position of the nearest triangle junction, based on some input position.
Additionally, it should allow me to get positions of adjacent triangle junctions.

Any suggestions?
4 posts and 1 images omitted. Click View Thread to read.
>>
Cedric Droshkere - Wed, 31 May 2017 02:13:39 EST P6PS9CBz No.37011 Reply
>>37008
I agree, if two triangles share a vertex then they must be adjacent. This is true in any number of dimensions.
>>
Edward Dozzlebury - Sun, 04 Jun 2017 17:05:46 EST z/6RzCAH No.37041 Reply
>>37011
i guess it depends on your definition of adjacent, but what i meant was, if they share two vertices, they must be adjacent.
>>
snurrepupp - Mon, 05 Jun 2017 18:42:29 EST LBUM/d2l No.37058 Reply
>>37041

Yeah. Touched briefly on using vertices in my prev post.
I'm in the process of redoing my not-strictly-D20-related shit to better accommodate vertices. Gonna have a go once that's done.

I guess I'll be back when I run into more trouble I can't work out.
Or alternatively, when I can provide a download link to the finished thingy.

database

View Thread Reply
- Mon, 22 May 2017 09:22:58 EST zPn+Vj4S No.36964
File: 1495459378981.png -(596449B / 582.47KB, 1024x552) Thumbnail displayed, click image for full size. database
hi to everyone,
do you know a source where i can learn relational database theory easily?
thanks in advance
1 posts omitted. Click View Thread to read.
>>
Doris Blatherstock - Sun, 04 Jun 2017 02:22:53 EST HC1vVHLz No.37030 Reply
Yes, CMU
http://db.cs.cmu.edu/courses/

The beginner courses are only slides/pdfs, but the "advanced" (it's not that advanced) course has full lectures on youtube.
>>
Priscilla Babbercocke - Sun, 04 Jun 2017 08:09:41 EST p6i2oGw1 No.37036 Reply
The manga guide to databases is half decent, but my favorite book is Toon Koppelaar and Lex de Haan's Applied mathematics for database professionals. A pdf version is easily found online.

I also recommend you read Codd's paper A relational model of data for large shared data banks. Read it, look up the words, reread it until you get it. Then read it a few more times.

It's useful to understand hierarchical, network, relational and ER data models, to be able to distinguish them and translate data models between them. The meaning of terms like entity, relationship and relation depend on the particular data model you're using. Every online blog and tutorial will teach you a mismash of concepts mostly based on the old network data model but call it ER modeling. If you want to understand the real entity-relationship model, read Chen's paper The entity-relationship model - toward a unified view of data.

CJ Date's An introduction to databases is like the reference bible, but I'm not sure it's the best starting point.

Don't bother with Wikipedia, it's overcomplicated and not very accurate. Ignore blogs, online tutorials (hurr tutorialspoint), product documentation, etc. Ignore anything that mentions OOP / classes.

Programming Stories

View Thread Reply
- Mon, 29 May 2017 22:15:16 EST FNUGTkco No.37007
File: 1496110516216.jpg -(30817B / 30.09KB, 570x570) Thumbnail displayed, click image for full size. Programming Stories
Given the turbulence /prog/'s been through recently I thought it would be fun to have a thread about experiences in programming. Tell us about your triumphs, defeats, crazy situations you've been in, times you've learned super-cool stuff, times you've had to learn super-uncool stuff, weird office politics, weird government politics, crazy people you've worked for, bat-shit insane APIs, Sales and HR, clueless management and all that good stuff.

Let's have a story thread.

crack it

View Thread Reply
- Mon, 17 Apr 2017 20:09:51 EST 2vyiCPer No.36727
File: 1492474191394.jpg -(5659B / 5.53KB, 224x224) Thumbnail displayed, click image for full size. crack it
..-. ..- -.-. -.- .. -. --. / -. --- .-. -- .. . ... / --. . - / --- ..-. ..-. / -- -.-- / ... - .-. . .- --
10 posts omitted. Click View Thread to read.
>>
Celt !BzcOsK03.w - Thu, 25 May 2017 21:07:13 EST Dd9yZva2 No.36990 Reply
1495760833029.jpg -(461912B / 451.09KB, 696x1100) Thumbnail displayed, click image for full size.
>>36942
>>36941
>>36915
Hi there, I'm a mod. I've responded in post >>>/420/237164. Please reply on the /420/ board to it and help clarify what you guys want done, and once I'm clear about it, I'll do what you guys request if there's a clear consensus.
>>
Celt !BzcOsK03.w - Thu, 25 May 2017 23:56:13 EST Dd9yZva2 No.36993 Reply
>>36990
As per >>>/420/237171, BrU has been dealt with for now: His threads are locked, his IPs are banned for a week, random unrelated posts by him in threads were people are trying to talk have been deleted and he's being told he's on his last strike.

If he comes back and simply does the exact same act, he'll be permabanned, no questions asked.

Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.