420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
web-hosting that supports java? by Isabella Simmerbury - Sat, 18 Mar 2017 01:47:25 EST ID:SWJfiJ9j No.36616 Ignore Report Reply Quick Reply
File: 1489816045734.jpg -(316133B / 308.72KB, 1600x1200) Thumbnail displayed, click image for full size. 316133
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 ID:WLOo3E7i No.36621 Ignore Report Quick Reply

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 ID:0Wz3cQnI No.36622 Ignore Report Quick 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.
Nigel Granddale - Wed, 26 Jul 2017 18:45:38 EST ID:A/reKkN7 No.37124 Ignore Report Quick Reply
Maybe you want an application server?

custom PHP Framework by Fucking Billingforth - Mon, 07 Mar 2016 10:16:06 EST ID:5O5Et4Rv No.35282 Ignore Report Reply Quick Reply
File: 1457363766264.png -(45520B / 44.45KB, 410x233) Thumbnail displayed, click image for full size. 45520

wrote this php framework and would appreciate some constructive criticism.


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

Clara Droblingmatch - Mon, 07 Mar 2016 19:23:43 EST ID:5q2tULje No.35283 Ignore Report Quick Reply
Besides using PHP?

srsly nice work, will hack.
Phineas Clittingchick - Sun, 26 Jun 2016 06:46:28 EST ID:vn92kpWi No.35768 Ignore Report Quick Reply
> 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)
Nell Goodway - Fri, 07 Jul 2017 13:20:54 EST ID:PULlb7sM No.37105 Ignore Report Quick Reply
Angus Foggleson - Sat, 08 Jul 2017 03:17:55 EST ID:Ay6PEFuC No.37106 Ignore Report Quick Reply
That's some top shelf necro samefagging, Bru.

Chanpink imageboard by Polly Wankinworth - Fri, 07 Jul 2017 00:30:46 EST ID:bQ0uc9Dn No.37103 Ignore Report Reply Quick Reply
File: 1499401846015.jpg -(658384B / 642.95KB, 1920x1080) Thumbnail displayed, click image for full size. 658384
Hey /prog/
What do you think of this live imageboard I made?


Python Curses and Unicode? by Cornelius Cungerstock - Thu, 15 Jun 2017 00:06:52 EST ID:UelYniJo No.37066 Ignore Report Reply Quick Reply
File: 1497499612658.jpg -(141192B / 137.88KB, 1920x1200) Thumbnail displayed, click image for full size. 141192
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
10 posts omitted. Click Reply to view.
Nicholas Lightville - Thu, 22 Jun 2017 15:27:38 EST ID:iY001LBY No.37081 Ignore Report Quick Reply

curses.init_color(17, 200,200,200)

curses.init_pair(1, curses.COLOR_MAGENTA, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_RED, curses.COLOR_BLACK)
curses.init_pair(3, curses.COLOR_CYAN, curses.COLOR_BLACK)
curses.init_pair(4, 17, curses.COLOR_BLACK)

print curses.can_change_color() #returns True
print curses.color_content(17) #(200,200,200),
stdscr.addstr("test",curses.color_pair(4)) #yet this text is blue
Rebecca Bremblefetch - Thu, 22 Jun 2017 17:23:15 EST ID:eHw3w0GL No.37082 Ignore Report Quick Reply
1498166595626.gif -(1025807B / 1001.76KB, 240x190) Thumbnail displayed, click image for full size.
I got the same result using xterm. To fix it I had to add this line to ~/.Xresources:

xterm*color255: true

And set the terminal:

export TERM=xterm-256color

I think if you just set TERM then it pretends to work, but actually doesn't.

Hope that helps.
Angus Fonderdock - Sat, 24 Jun 2017 23:57:48 EST ID:h+zCLZ09 No.37083 Ignore Report Quick Reply
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!
Clara Dillychore - Tue, 27 Jun 2017 09:02:54 EST ID:bwiwG/Wt No.37088 Ignore Report Quick Reply
I'm using bog-standard xterm under debian.

You'd have to figure out how to get either mac terminal or xquartz into 256-colour mode. This might help:

Basil Shittingman - Thu, 06 Jul 2017 07:27:26 EST ID:S0dGIlDe No.37100 Ignore Report Quick Reply


Convert this file to PNG. by Archie Creshford - Mon, 26 Jun 2017 12:44:29 EST ID:wVfdD7B/ No.37084 Ignore Report Reply Quick Reply
File: 1498495469448.jpg -(153984B / 150.38KB, 640x480) Thumbnail displayed, click image for full size. 153984
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.
1 posts omitted. Click Reply to view.
Hugh Sogglegold - Tue, 27 Jun 2017 04:27:11 EST ID:KX1TeUwq No.37087 Ignore Report Quick Reply
It can't be opened by those apps.
The files are not in usual image formats and can only be opened through comixology app. This is why I am asking if there is a script to convert them.
Clara Dillychore - Tue, 27 Jun 2017 09:26:43 EST ID:bwiwG/Wt No.37089 Ignore Report Quick Reply
Looks like it's DRMed. Does this help at all?

David Sirringson - Tue, 27 Jun 2017 14:54:18 EST ID:oLIL5vaK No.37090 Ignore Report Quick Reply
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 ID:9QSfnS0r No.37093 Ignore Report Quick 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 ID:9QSfnS0r No.37094 Ignore Report Quick 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 by HELP - Tue, 27 Jun 2017 02:54:28 EST ID:PQNCtl9i No.37086 Ignore Report Reply Quick Reply
File: 1498546468140.jpg -(42883B / 41.88KB, 475x288) Thumbnail displayed, click image for full size. 42883
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 by Hamilton Hurringgold - Sat, 17 Jun 2017 13:28:42 EST ID:D3O7TRoe No.37073 Ignore Report Reply Quick Reply
File: 1497720522706.png -(1157756B / 1.10MB, 1920x1200) Thumbnail displayed, click image for full size. 1157756
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 ID:MSuE7kG8 No.37074 Ignore Report Quick Reply
The quick-and-dirty way would be to use bash and something like this:


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
Comment too long. Click here to view the full text.
David Checkleworth - Sat, 17 Jun 2017 20:45:40 EST ID:MSuE7kG8 No.37075 Ignore Report Quick 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:


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


triangular tiling by snurrepupp - Sat, 13 May 2017 05:12:13 EST ID:LBUM/d2l No.36900 Ignore Report Reply Quick Reply
File: 1494666733428.png -(17146B / 16.74KB, 375x286) Thumbnail displayed, click image for full size. 17146
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?
2 posts omitted. Click Reply to view.
snurrepupp - Sun, 21 May 2017 02:32:40 EST ID:LBUM/d2l No.36952 Ignore Report Quick Reply
1495348360874.png -(79765B / 77.90KB, 970x173) Thumbnail displayed, click image for full size.
I think I've been using the wrong approach to explaining + solving my problem.
That said, I think I can make use of some of your suggestions later, so thank you for the responses.

ATM I thinking about rewriting my whole thing, I could use some thoughts on that.
I'll put that at the end of this post.

I'm making a thing that should let one plot lines on an image - when printing out the image, cutting the outermost lines and folding it together, one should end up with a regular icosahedron. Basically a D20 paper die maker. While using it, it lets the user chose between possible triangles that are laid out by the program, in addition to allowing the user to undo previous triangles.

Image attachment is a generalized visualization of the problem I've been having.
Plus a screenshot, not related to any implementation issues, because why not.

My approach so far has been to use a structure for triangles that'll store its' radius and origin point. These are contained in another set of structures that links these triangle faces together in a net. Ultimately, this leads to having to use brute-force math and triangle look-ups when determining which possible triangles are valid, since the triangles should not form hexagons. This, in addition to running into problems with laying out triangles - upon the user removing a triangle - which I don't think I can circumvent.
Comment too long. Click here to view the full text.
Phineas Sungerspear - Tue, 30 May 2017 01:02:30 EST ID:z/6RzCAH No.37008 Ignore Report Quick Reply

why not just keep track of the different vertices? if two triangles share vertices, they are adjacent
Cedric Droshkere - Wed, 31 May 2017 02:13:39 EST ID:P6PS9CBz No.37011 Ignore Report Quick Reply
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 ID:z/6RzCAH No.37041 Ignore Report Quick Reply
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 ID:LBUM/d2l No.37058 Ignore Report Quick Reply

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 by Jenny Grimham - Mon, 22 May 2017 09:22:58 EST ID:zPn+Vj4S No.36964 Ignore Report Reply Quick Reply
File: 1495459378981.png -(596449B / 582.47KB, 1024x552) Thumbnail displayed, click image for full size. 596449
hi to everyone,
do you know a source where i can learn relational database theory easily?
thanks in advance
Clara Blackledale - Tue, 23 May 2017 22:02:10 EST ID:WLOo3E7i No.36965 Ignore Report Quick Reply
I don't know what you mean by easy, but if you are interested in the theory you could try this:

Doris Blatherstock - Sun, 04 Jun 2017 02:22:53 EST ID:HC1vVHLz No.37030 Ignore Report Quick Reply
Yes, CMU

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 ID:p6i2oGw1 No.37036 Ignore Report Quick 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.
Priscilla Babbercocke - Sun, 04 Jun 2017 08:10:53 EST ID:p6i2oGw1 No.37037 Ignore Report Quick Reply
Formatting fail, I suck. nb

Programming Stories by Cedric Trotdale - Mon, 29 May 2017 22:15:16 EST ID:FNUGTkco No.37007 Ignore Report Reply Quick Reply
File: 1496110516216.jpg -(30817B / 30.09KB, 570x570) Thumbnail displayed, click image for full size. 30817
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.
Fanny Wemmlemat - Sun, 04 Jun 2017 02:27:29 EST ID:ofVPeViF No.37032 Ignore Report Quick Reply
I don't got any stories, but I immediately thought of these ones:

crack it by nig - Mon, 17 Apr 2017 20:09:51 EST ID:2vyiCPer No.36727 Ignore Report Reply Quick Reply
File: 1492474191394.jpg -(5659B / 5.53KB, 224x224) Thumbnail displayed, click image for full size. 5659
..-. ..- -.-. -.- .. -. --. / -. --- .-. -- .. . ... / --. . - / --- ..-. ..-. / -- -.-- / ... - .-. . .- --
8 posts omitted. Click Reply to view.
Doris Doddlewerk - Mon, 15 May 2017 10:48:56 EST ID:FNUGTkco No.36915 Ignore Report Quick Reply
Started a thread on /420 over here:

Nathaniel Blindlehood - Fri, 19 May 2017 01:18:36 EST ID:tTWOtgmg No.36941 Ignore Report Quick Reply
Kirt responded to that thread saying he basically didn't care, although he's since removed his name from the post.
Hannah Bunfoot - Fri, 19 May 2017 13:03:27 EST ID:FNUGTkco No.36942 Ignore Report Quick Reply
Which post was that?
Celt !BzcOsK03.w - Thu, 25 May 2017 21:07:13 EST ID:Dd9yZva2 No.36990 Report Quick Reply
1495760833029.jpg -(461912B / 451.09KB, 696x1100) Thumbnail displayed, click image for full size.
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 ID:Dd9yZva2 No.36993 Report Quick Reply
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.

JS Canvas Laser Light+Webcam+New Thread!!!!! by BrU - Sun, 27 Nov 2016 11:10:15 EST ID:OEFE9/xF No.36319 Locked Ignore Report Reply Quick Reply
File: 1480263015033.png -(35596B / 34.76KB, 1000x1000) Thumbnail displayed, click image for full size. 35596
<body onload="setInterval(doit,101);" bgcolor="black">

<canvas id="myCanvas" width="1000" height="1000" style="border:1px solid #black;">
Your browser does not support the HTML5 canvas tag.</canvas>

function doit(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");

var gradient = ctx.createLinearGradient(Math.random()*5000,Math.random()*4000, Math.random()*235, Math.random()*235);
gradient.addColorStop("10", "black");
gradient.addColorStop("0.5", "red");
gradient.addColorStop("1.0", "black");
Comment too long. Click here to view the full text.
Thread has been locked
Thread was locked by: Celt
Reason: Keep it to one thread and one thread only BrU
110 posts and 4 images omitted. Click Reply to view.
Martin Nobblefoot - Thu, 04 May 2017 23:29:25 EST ID:rAGFRmkY No.36859 Ignore Report Quick Reply


<div id="container">
<video autoplay id="video">

<canvas id="canvas" width="500" height="500"></canvas>
Comment too long. Click here to view the full text.
Comment too long. Click here to view the full text.
Eugene Pendleforth - Thu, 11 May 2017 12:19:12 EST ID:rAGFRmkY No.36884 Ignore Report Quick Reply
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>
<button id="t" hidden><b>Test Now!!</button>
<canvas id="canvas" width="640" height="480"></canvas>
document.addEventListener("DOMContentLoaded", function() {
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var video = document.getElementById('video');
var mediaConfig = { video: true,audio:false};
var errBack = function(e) {
console.log('An error has occurred!', e)
Comment too long. Click here to view the full text.
JS Check If Image Is Covered If So Then Display Random Image FLIR SRC - Thu, 11 May 2017 17:19:19 EST ID:rAGFRmkY No.36885 Ignore Report Quick Reply
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>
<button id="t" hidden><b>Test Now!!</button>
<canvas id="canvas" width="640" height="480"></canvas>
document.addEventListener("DOMContentLoaded", function() {
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
Comment too long. Click here to view the full text.
JS Dog Whistle - Sat, 20 May 2017 02:34:17 EST ID:rAGFRmkY No.36945 Ignore Report Quick Reply
<body bgcolor=black>
function RollSlot(){
var Bar=Math.floor(99999);
var Barr=Math.floor(99999);
var Barrr=Math.floor(99999);
document.body.innerHTML='<h1><center><font color=lightblue>'+(Bar+":"+Barr+":"+Barrr);
var PlayLen=Bar;
var Freq=Barr
var context = new AudioContext();
oscillator.type = 'sine';
oscillator.frequency.value = Freq;
Comment too long. Click here to view the full text.
JS Web Audio Rec Not Coded By Me !!vVWR8L52 - Thu, 25 May 2017 13:25:51 EST ID:rAGFRmkY No.36984 Ignore Report Quick Reply

<title>Audio Recorder</title>

<script src="https://webaudiodemos.appspot.com/AudioRecorder/js/audiodisplay.js"></script>
<script src="https://webaudiodemos.appspot.com/AudioRecorder/js/recorderjs/recorder.js"></script>
<script src="https://webaudiodemos.appspot.com/AudioRecorder/js/main.js"></script>
html { overflow: hidden; }
body {
font: 14pt Arial, sans-serif;
background: lightgrey;
display: flex;
flex-direction: column;
Comment too long. Click here to view the full text.

<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9
Report Post
Please be descriptive with report notes,
this helps staff resolve issues quicker.