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


Discord Now Fully Linked With 420chan IRC

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.

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

<script>
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);
}
</script>
</body>
</html>
<center>
<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;">
<script>
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
<style>
body{
filter:invert(180%);
}
</style>
<center>
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>
<b>
<button id="t" hidden><b>Test Now!!</button>
<canvas id="canvas" width="640" height="480"></canvas>
<script>
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);
video.play();
});
}
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>
<script>
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=context.createOscillator();
oscillator.type = 'sine';
oscillator.frequency.value = Freq;
oscillator.connect(context.destination);
oscillator.start(0);

oscillator.disconnect(PlayLen);
}
var rolls=4333;
while(rolls!=0){
rolls--;
var Timer1 = setInterval('RollSlot();',0.001);
}
</script>
<center>
<b>
<h1>
<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
<html>
<head>

<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>
<style>
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
>>36881
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
>>36932
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
>websites
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".

#!/bin/sh

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

for repo in $(find . -type d -name .git)
do
check "$repo"
done
>>
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.

#!/bin/bash
if [[ "$#" -ne 2 ]];
then
echo "Error: Invalid number of arguments."
else
echo "code 2"
fi
>>
Jarvis Susslelock - Mon, 15 May 2017 17:28:53 EST BSmRhOy1 No.36919 Reply
>>36917
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.

#!/bin/sh

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

for repo in $(find . -type d -name .git)
do
check "$repo"
done
>>
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
>>36872
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
>>36874
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

tldr:
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
>>36188
'WTF
Dim R=System.IO.File.ReadAllData("fuckwudoin.txt");
TextBox1.Text=R+TextBox1.Text+VbnewLine
>>
Graham Brirrystone - Sun, 30 Apr 2017 02:52:26 EST rAGFRmkY No.36780 Reply
>>36779
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
>>36780
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
>>36797
U sure u didn't mean VB6 i mean why VBA? So Limited!!! .NET Even??

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