Leave these fields empty (spam trap):
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
[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


Discord Now Fully Linked With 420chan IRC

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

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

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)

1 posts omitted. Click View Thread to read.
Phineas Clittingchick - Sun, 26 Jun 2016 06:46:28 EST vn92kpWi No.35768 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)

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


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.


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
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
echo ''

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

echo You have selected option 3
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:


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

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

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.


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

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

Locked View Thread Reply
- Sun, 27 Nov 2016 11:10:15 EST OEFE9/xF No.36319
File: 1480263015033.png -(35596B / 34.76KB, 1000x1000) Thumbnail displayed, click image for full size. JS Canvas Laser Light+Webcam+New Thread!!!!!
<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");

ctx.fillStyle = gradient;
ctx.lineWidth = 10;
ctx.fillRect(100, 1000, 500,250);
<body bgcolor="black" onmousemove="setInterval('doit()',0.3);" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay>

<canvas id="canvas" onchange="doit;" onchange="doit;" width="500" height="500" style="opacity:1.0;fillColor:none;">
var ii=1;
Comment too long. Click here to view the full text.
112 posts and 4 images omitted. Click View Thread to read.
JS Check If Image Is Covered If So Then Display Random Image FLIR SRC - Thu, 11 May 2017 17:19:19 EST rAGFRmkY No.36885 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:true};
var errBack = function(e) {
console.log('An error has occurred!', e)
if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
video.src = window.URL.createObjectURL(stream);
var cct=getBase64Image(video)
var ctt=getBase64Image(video);
var doc=document.getElementById('t');
document.addEventListener('mousemove', function() {
Comment too long. Click here to view the full text.
JS Dog Whistle - Sat, 20 May 2017 02:34:17 EST rAGFRmkY No.36945 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;

var rolls=4333;
var Timer1 = setInterval('RollSlot();',0.001);
<font color=lightblue>
Loading One Second..
JS Web Audio Rec Not Coded By Me !!vVWR8L52 - Thu, 25 May 2017 13:25:51 EST rAGFRmkY No.36984 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;
height: 100vh;
width: 100%;
margin: 0 0;
canvas {
display: inline-block;
background: #202020;
width: 95%;
height: 45%;
box-shadow: 1px 1px 10px blue;
#controls {
display: flex;
flex-direction: row;
align-items: center;
Comment too long. Click here to view the full text.

Learning :)

View Thread Reply
- Tue, 04 Apr 2017 21:14:57 EST yjZMJkkc No.36683
File: 1491354897228.png -(65204B / 63.68KB, 176x218) Thumbnail displayed, click image for full size. Learning :)
Anyone know any good websites that teach you coding?
5 posts and 1 images omitted. Click View Thread to read.
Esther Pallerbadge - Wed, 17 May 2017 05:49:05 EST 3yt7HO4G No.36932 Reply
are all coders this salty? man this board is like a 50/50 split of enthusiasm and anger
Sophie Genkinstedge - Wed, 17 May 2017 09:23:56 EST b2Dm/aZr No.36937 Reply
It'a at least 75% Bru. Also, if someone told me that was spam I would think that's very plausible. Is that your link? Do you think codebabes is a neat thing that deserves to be seen?
Nathaniel Parringdock - Sun, 21 May 2017 06:19:01 EST 5TS5kFz5 No.36953 Reply
Nah, you want books m8. Codecademy is trash btw

Random Bash Scripts

View Thread Reply
- Mon, 15 May 2017 17:26:19 EST BSmRhOy1 No.36917
File: 1494883579283.jpg -(42222B / 41.23KB, 506x600) Thumbnail displayed, click image for full size. Random Bash Scripts
>You have some *.aac files and you want to convert these to *.mp3 files with the "ffmpeg" utility. Use the "-i" and "-acodec" options for ffmpeg and add ".mp3" to each found *.aac file's base part (the part without ".aac"). Hint: "man bash" and "Parameter Expansion".


check () {
dir="$(dirname "$1")"
cd "$dir"
if git remote | grep -e '^origin$' >/dev/null
echo "==> $(basename "$dir") <=="
git fetch -t -p origin

for repo in $(find . -type d -name .git)
check "$repo"
Jarvis Susslelock - Mon, 15 May 2017 17:27:10 EST BSmRhOy1 No.36918 Reply
>Create a bash script that check the number of command line arguments and prints "Errornvalid number of arguments." if the amount is not 2 it returns with code 2.

if [[ "$#" -ne 2 ]];
echo "Error: Invalid number of arguments."
echo "code 2"
Jarvis Susslelock - Mon, 15 May 2017 17:28:53 EST BSmRhOy1 No.36919 Reply
oh son of a bitch this was the wrong one the description of this script is

>Create a bash script that manages your own git repositories. You have your own git repositories in one directory (done with "git clone <address>") and the script should enter each of these subdirectories (let's call them "projects"). When a project is found with supported configuration, the project is updated with "git pull" and successful update can be checked from the non-existence of the "Already up-to-date." string.


check () {
dir="$(dirname "$1")"
cd "$dir"
if git remote | grep -e '^origin$' >/dev/null
echo "==> $(basename "$dir") <=="
git fetch -t -p origin

for repo in $(find . -type d -name .git)
check "$repo"
Jarvis Susslelock - Mon, 15 May 2017 17:43:32 EST BSmRhOy1 No.36920 Reply
Anyone wanna do this one?

>Create a bash script that uses "rsync" command for backups and restores. The first argument should be either "backup" or "restore" and the second one is an optional argument specifying "realrun". The purpose of the "realrun" option is to avoid applying changes that won't be correct changes (without the option). If "realrun" is not set, use "--dry-run" option in rsync. Note that rsync supports huge number of different options. The most important ones are "--archive", "--relative", "--verbose", "--progress", "--human-readable", "--delete" for backup. Delete will cause changed not yet backed up to be lost. One option is to use the "--include-form" option for including only specific directories.

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