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


Harm Reduction Notes for the COVID-19 Pandemic

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.

Neural Networks

View Thread Reply
- Sun, 23 Apr 2017 09:32:52 EST ItvfE3hu No.36752
File: 1492954372194.png -(199403B / 194.73KB, 396x283) Thumbnail displayed, click image for full size. Neural Networks
Just what is up with neural network? How do they work? How are they useful for a hobbyist? Isn't it just for huge data crunching and pattern detection and shit of the like?

What incentive is there to learn how to program them, and what are the easiest languages? What are the hardest? Where does C come into this?

Really curious because NN for some reason and everyone and their gran is on the hype train.
3 posts and 1 images omitted. Click View Thread to read.
Archie Pimbleway - Wed, 10 May 2017 01:58:01 EST 8AGoqQnQ No.36873 Reply
Basically, neural networks are good for complex problems for which there is no straightforward solution. they are an attempt to model the way the human brain works, with neurons and axons and such. you give them an input, and then using what is essentially a series of matrix vector multiplications, the neural network arrives at an output, or a set of outputs. there are a number of ways to 'train' a neural network, the two i see a lot are evolution and back propagation.

i suggest you check out the youtube channel 'carykh' if you like learning from videos at all, and they're also quite fun. but he's not really an expert. you should check out this online textbook also: http://neuralnetworksanddeeplearning.com/chap1.html
Archie Pimbleway - Wed, 10 May 2017 18:59:59 EST 8AGoqQnQ No.36877 Reply
im guessing ios. to my knowledge there is no programming language named ios.
Cyril Druvingkere - Sun, 14 May 2017 08:53:09 EST ZVivcFXs No.36910 Reply
There is a guy on youtube doing a series on GTA V and making a self-driving car with a NN in python and a way of "reading" the screen in order to feed it into the neural network.

Too lazy to copypaste the link right now but just search "gta v python neural network self driving car" on YouTube and it should come up

Any programmer?

View Thread Reply
- Wed, 10 May 2017 02:42:36 EST CO0b6fPY No.36874
File: 1494398556151.jpg -(330800B / 323.05KB, 1280x960) Thumbnail displayed, click image for full size. Any programmer?
any programmer on asp and azure here?
Phineas Grandstone - Wed, 10 May 2017 02:59:23 EST P6PS9CBz No.36875 Reply
There's probably lots of people who know ASP and Azure here.

BASIC bitches

View Thread Reply
- Mon, 15 Feb 2016 09:55:12 EST v+xSbxsp No.35166
File: 1455548112204.jpg -(142590B / 139.25KB, 640x480) Thumbnail displayed, click image for full size. BASIC bitches
nah none of those

So I modded a cigar box to fit my kindle fire, then later added a small bluetooth keyboard and bam. instant laptop. It's the shit and I'm not ashamed of showing it off.

I got a BASIC programming app for it and it works great (a few minor bugs) and even came with some sweet code snippets and samples. However, I'm having trouble finding BASIC forums on the web. all I can find is VB shit and that's not going to help me.

specifically I'm having trouble with a do until loop with some if statments inside it.
for some reason the until doesnt register after the ifs. Can you use brackets\braces\parentheses? tried those a few ways and it wouldnt work

BASIC (not VB) forums and such, where are they?

pic related. eyeball cover front cam. signet cigar box. removed mostof body but keptj bottom / top and clasp. hidden compartment under keyboard.
4 posts and 1 images omitted. Click View Thread to read.
Eliza Marringtat - Tue, 16 Feb 2016 14:00:35 EST 5q2tULje No.35179 Reply
Also, although I haven't tried there's MSX basic, with a quite active scene around them. Seriously if you code basic you do it on a vintage machine or at least an emulator.
And you learn it by reading the Handbook, as they are very simple languages (Different variants of BASIC) which you can learn to grasp in their entirety which is quite something considering the complexity of modern languages.
Augustus Parrypen - Mon, 29 Feb 2016 10:11:18 EST v+xSbxsp No.35252 Reply
1456758678474.png -(273042B / 266.64KB, 400x600) Thumbnail displayed, click image for full size.
OP here. got the programming on the kindle thing figured out.
but now I have a new problem

turning on bluetooth isn't difficult, but takes like 8 swipes\taps and that's 6 too many for me. in the BASIC app, the code to turn on Bluetooth is "BT.OPEN", then, if your bluetooth isn't on, you are asked permission to turn it on. Simple! only 2 taps. HOWEVER, I can't for the life of me find a way to open a text file directly from the homescreen. (Though if you open it through the file explorer it will actually open it from the BASIC app by default, sweet!) I'm looking into getting android studio on my computer to just build my own simple apps like this, but it kind fo defeats the purpose of this project.

anybody know anything bout that?

Baby's First Visual Basic Project

View Thread Reply
- Tue, 20 Sep 2016 06:49:27 EST 5WG+TwiW No.36167
File: 1474368567188.jpg -(11243B / 10.98KB, 212x300) Thumbnail displayed, click image for full size. Baby's First Visual Basic Project
I'm about to commit myself to a project that may span the rest of my life. I have decided to stop being a NEET and try to make the world a stranger place through programming. I already have my free Visual Studio... what do I make for a first project?
25 posts and 1 images omitted. Click View Thread to read.
Graham Brirrystone - Sun, 30 Apr 2017 02:51:30 EST rAGFRmkY No.36779 Reply
Dim R=System.IO.File.ReadAllData("fuckwudoin.txt");
Graham Brirrystone - Sun, 30 Apr 2017 02:52:26 EST rAGFRmkY No.36780 Reply
WPF and Window Forms Work too classes are not required!!!- Gary From Menifee
Reuben Blurryfog - Mon, 01 May 2017 01:04:46 EST rAGFRmkY No.36819 Reply
JK that fool is a noob and a bi**ch this is EAF aka BrU

Excel automation

View Thread Reply
- Sun, 30 Apr 2017 03:17:57 EST sjT5DuRU No.36782
File: 1493536677095.png -(114258B / 111.58KB, 1444x906) Thumbnail displayed, click image for full size. Excel automation
Hi, I'm experimenting with automation in Excel/VBA, I'm trying to click on the "use another account" element but Spy++ and FindWindowEx can't locate it, but HP UFT can. UFT reads that it has the same HWND as the parent. Can any provide a solution to this?

tl;dr: how to use WinAPI to locate a static element that doesn't have a HWND?
5 posts omitted. Click View Thread to read.
Graham Brirrystone - Sun, 30 Apr 2017 07:39:39 EST rAGFRmkY No.36792 Reply
The only case where HWND would be differnt would be if ur lookin at a MDI Form. Admin privs have nothing to do with it what version of win are u ha.. i mean testing . - Gary the snail.
Fanny Murdwell - Sun, 30 Apr 2017 08:20:46 EST b2Dm/aZr No.36797 Reply
Automating a GUI security prompt using VBA, huh? Do you have plans to make this a hat trick?
Graham Brirrystone - Sun, 30 Apr 2017 14:57:32 EST rAGFRmkY No.36811 Reply
U sure u didn't mean VB6 i mean why VBA? So Limited!!! .NET Even??

Former beginners

View Thread Reply
- Tue, 11 Apr 2017 04:13:55 EST CXy47cRy No.36707
File: 1491898435709.jpg -(39661B / 38.73KB, 600x450) Thumbnail displayed, click image for full size. Former beginners
What did you do before you were good enough at programming to work with it?
I used to know some programming (i had a few courses in it a bunch of years ago in university before i dropped out) but i think i was very, very far from being able to work with it. What kind of stuff did you program when you weren't very good?
13 posts omitted. Click View Thread to read.
Shitting Sabblebury - Sat, 29 Apr 2017 22:16:23 EST VGkaBTKz No.36776 Reply
There is only one way https://www.youtube.com/watch?v=dvwkaHBrDyI

You find a large open source project, in other words software that people actually use, and you go through the feature request list and ask to implement one of them. The reason why you ask is because somebody else could be doing it at the same time. There will probably be a contributers guide you can read for style which you will want to follow.

You start with the easiest feature. The project will give you feedback how to fix your commit if it's missing things or badly written. The users will then find bugs in your feature and you will fix them.

Then repeat. Keep doing this: writing features and fixing bugs until you get good enough at programming that this is no longer an impossible task for you. This is the only, the best, the single most effective way to get good at programming by yourself if you don't have a "mentor" or Sr. Dev sitting beside you.
Emma Weggleford - Sun, 30 Apr 2017 11:33:55 EST m0fnFolr No.36810 Reply
I was imagining something like this even though I have no idea how it works yet.
Right now I'm mostly doing simple exercises but it's going pretty well so I should be able to get decent at it after I've put more time into it.

What's some good stuff to think about when trying to figure out what would be easy to do?


View Thread Reply
- Sat, 15 Apr 2017 00:02:23 EST TI6IU0t+ No.36720
File: 1492228943306.jpg -(11926B / 11.65KB, 247x204) Thumbnail displayed, click image for full size. Fintech
In job ads for developer jobs in the financial sector, I often get the impression that their requirements aren't awfully strict.
It almost looks like it should be easier to get jobs there than anywhere else, is it like that or have I misunderstood everything?
I barely know anything about this stuff and was just curious so my lack of knowledge could mean that my impressions are wrong.
Shitting Sabblebury - Sat, 29 Apr 2017 22:34:28 EST VGkaBTKz No.36778 Reply
Yes, the reasons why they aren't strict is because Wallstreet knows that finding a developer who's an expert in literally everything is a unicorn, so what they do is partner a developer with a mathematician or AI/machine learning type expert, and they work together to build HFT or whatever trading strategy they're doing. They typically want ex video game devs, so somebody with C++ knowledge that can be given a spec to implement though lately they've been looking for functional programmers.

It's also a who you know type job, it's hard to get in at first because most of these jobs are never advertised but once you do get in you quickly network as half your coworkers will leave to work for some other hedge fund and often recommend you. That's when you make the gargantuan money in finance tech as you get large performance bonuses but work 60+ hours per week.

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