420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
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
Subject
Comment
[*]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
File

Sandwich


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
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
..-. ..- -.-. -.- .. -. --. / -. --- .-. -- .. . ... / --. . - / --- ..-. ..-. / -- -.-- / ... - .-. . .- --
36 posts and 1 images omitted. Click Reply to view.
>>
Hannah Pinningshit - Thu, 18 May 2017 02:13:39 EST ID:rAGFRmkY No.36939 Ignore Report Quick 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');
Comment too long. Click here to view the full text.
>>
Eric Frazin More Mandleibrot iterations - Thu, 18 May 2017 14:33:13 EST ID:rAGFRmkY No.36940 Ignore Report Quick Reply
<style>
body{
filter:saturate(14433334%);



}

</style>

<center>
<body onmousemove="setInterval(drawe,300)"
bgcolor="black">
<video id="video" autoplay hidden>
</video>
Comment too long. Click here to view the full text.
>>
Nathaniel Blindlehood - Fri, 19 May 2017 01:18:36 EST ID:tTWOtgmg No.36941 Ignore Report Quick Reply
>>36915
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
>>36941
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.
>>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.


Mandelbrot by Graham Brirrystone - Sun, 30 Apr 2017 08:57:18 EST ID:rAGFRmkY No.36798 Ignore Report Reply Quick Reply
File: 1493557038154.png -(157658B / 153.96KB, 1500x1500) Thumbnail displayed, click image for full size. 157658
<style>

canvas{
filter:contrast(4038%);



}
</style>
<center>
<canvas id="canvas" width='1500' height='1500'></canvas>

<body bgcolor="black" onmousemove="drawe" onmousedown="drawe" onchange="drawe" ondoubleclick="drawe;">
<video id="video" autoplay hidden>
</video>
Comment too long. Click here to view the full text.
75 posts and 9 images omitted. Click Reply to view.
>>
JS Web Audio Kool Vertical Visual FX SRC - Thu, 25 May 2017 15:00:45 EST ID:rAGFRmkY No.36985 Ignore Report Quick Reply
<body>
<canvas class="visualizer";id="canvas";width="2940" height="2900"></canvas>
</body>
<script>
var context = new AudioContext();
var analyser = context.createAnalyser();
var WIDTH = 3300;
var HEIGHT = 3300;
var osc = context.createOscillator();
osc.frequency.value = Math.random()*WIDTH+HEIGHT;
function makeConnection() {
osc.connect(analyser);
}
function playSound() {
analyser.connect(context.destination);
Comment too long. Click here to view the full text.
>>
JS Web Audio Kool Vertical Visual FX SRC - Thu, 25 May 2017 15:08:52 EST ID:rAGFRmkY No.36986 Ignore Report Quick Reply
<body>
<canvas class="visualizer";id="canvas";width="2940" height="2900"></canvas>
</body>
<script>
var context = new AudioContext();
var analyser = context.createAnalyser();
var WIDTH = 3300;
var HEIGHT = 3300;
var osc = context.createOscillator();
osc.frequency.value = Math.random()*WIDTH+HEIGHT;
function makeConnection() {
osc.connect(analyser);
}
function playSound() {
analyser.connect(context.destination);
Comment too long. Click here to view the full text.
>>
JS Web Audio Kool Vertical Visual FX SRC - Thu, 25 May 2017 15:14:05 EST ID:rAGFRmkY No.36987 Ignore Report Quick Reply
<body>
<canvas class="visualizer";id="canvas";width="2940" height="2900"></canvas>
</body>
<script>
var context = new AudioContext();
var analyser = context.createAnalyser();
var WIDTH = 1000;
var HEIGHT = 1000;
var osc = context.createOscillator();
osc.frequency.value = Math.random()*WIDTH+HEIGHT;
function makeConnection() {
osc.connect(analyser);
}
function playSound() {
analyser.connect(context.destination);
Comment too long. Click here to view the full text.
>>
JS Web Audio Kool Vertical Visual FX SRC - Thu, 25 May 2017 17:43:49 EST ID:rAGFRmkY No.36988 Ignore Report Quick Reply
<body>
<canvas class="visualizer";id="canvas";width="2948" height="2948"></canvas>
</body>
<script>
var context = new AudioContext();
var analyser = context.createAnalyser();
var WIDTH = 3300;
var HEIGHT = 3300;
var osc = context.createOscillator();
osc.frequency.value = Math.random()*WIDTH+HEIGHT;
function makeConnection() {
osc.connect(analyser);
}
function playSound() {
analyser.connect(context.destination);
Comment too long. Click here to view the full text.
>>
Angus Febberwell - Thu, 25 May 2017 20:26:57 EST ID:wvExJDk0 No.36989 Ignore Report Quick Reply
<style>
body{
filter:invert(434%);

filter:hue-2(999999999999deg);
filter:hue-3(99999999999deg);
}

</style>

<center>
<body onmousemove="setInterval(drawe,300)"
bgcolor="black">
<video id="video" autoplay hidden>
</video>
Comment too long. Click here to view the full text.


JS Canvas Laser Light+Webcam+New Thread!!!!! by BrU - Sun, 27 Nov 2016 11:10:15 EST ID:OEFE9/xF No.36319 Ignore Report Reply Quick Reply
File: 1480263015033.png -(35596B / 34.76KB, 1000x1000) Thumbnail displayed, click image for full size. 35596
<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");
Comment too long. Click here to view the full text.
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
<style>
body{
filter:brightness(322%);
}

</style>
<center>

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


<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
<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: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
<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');
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>
<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);
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
<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;
Comment too long. Click here to view the full text.


JS Password Generator First Attempt (Positive And Negitive Feedback Are Welcome) by BrU - Mon, 21 Dec 2015 08:31:48 EST ID:+6d1kOO+ No.34905 Ignore Report Reply Quick Reply
File: 1450704708843.png -(97637B / 95.35KB, 1366x768) Thumbnail displayed, click image for full size. 97637
<center>
Password:<br>
<input type="text" name="password" id="password"><p>
Strong<input type="checkbox" id="s1" name="s1" onclick="javascript:m1.checked=false;
w1.checked=false;"/>
Medium<input type="checkbox" id="m1" name="m1" onclick="javascript:s1.checked=false;
w1.checked=false;"/>
Weak<input type="checkbox" id="w1" name="w1" onclick="javascript:m1.checked=false;
s1.checked=false;"/><p>
<button onclick="javascript:
if(s1.checked==true){
GenStrongPass();
}
if(m1.checked==true){
GenMedPass();
Comment too long. Click here to view the full text.
483 posts and 8 images omitted. Click Reply to view.
>>
JS Rainbow Text/Rect Iteration SRC - Thu, 25 May 2017 01:22:15 EST ID:rAGFRmkY No.36974 Ignore Report Quick Reply
<style>
body{
filter:grayscale(180%);
filter:brightness(99999999999999999999999999999999922222222222222%);
filter:invert(180%);
}
</style>
<center>
<body bgcolor="black" onmousemove="drawe();">
<video id="video" autoplay hidden>
</video>
<canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
<script>
var ii=1;
var video = document.getElementById("video");
Comment too long. Click here to view the full text.
>>
Phoebe Gellerman - Thu, 25 May 2017 01:34:30 EST ID:rAGFRmkY No.36975 Ignore Report Quick Reply
<style>

body{

filter:grayscale(983e2%);
filter:brightness(50000000000000000000000000000000%);
filter:invert(180%);
}
</style>
<center>
<body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay>
</video>
<canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="1500" height="1500" style="opacity:1.0;fillColor:none;">
<script>
Comment too long. Click here to view the full text.
>>
JS Text Webcam Fade FX SRC FINAL - Thu, 25 May 2017 05:23:25 EST ID:rAGFRmkY No.36977 Ignore Report Quick Reply
<style>
body{

filter:invert(4482%);

}

</style>
<center>
<body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay hidden>
</video>
<canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
<script>
var Text1=prompt("Enter Text:")
Comment too long. Click here to view the full text.
>>
JS Text Webcam Fade FX SRC FINAL - Thu, 25 May 2017 05:50:48 EST ID:rAGFRmkY No.36978 Ignore Report Quick Reply
<style>
body{

filter:invert(4482%);

}

</style>
<center>
<body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay hidden>
</video>
<canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
<script>
var strt=prompt('Enter Start Color:');
Comment too long. Click here to view the full text.
>>
JS Text Webcam Fade FX SRC FINAL Contrast Mode - Thu, 25 May 2017 05:58:58 EST ID:rAGFRmkY No.36979 Ignore Report Quick Reply
<style>
body{

filter:contrast(84942%);

}

</style>
<center>
<body bgcolor="black" onmousemove="drawe();" onmousedown="drawe" onchange="drawe" ondoubkeclick="drawe;">
<video id="video" autoplay hidden>
</video>
<canvas id="canvas" onchange="drawe;" topmost=false onchange="drawe;" width="500" height="500" style="opacity:1.0;fillColor:none;">
<script>
var strt=prompt('Enter Start Color:');
Comment too long. Click here to view the full text.


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
>>36964
I don't know what you mean by easy, but if you are interested in the theory you could try this:

https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-830-database-systems-fall-2010/index.htm


Learning :) by Priscilla Blackhood - Tue, 04 Apr 2017 21:14:57 EST ID:yjZMJkkc No.36683 Ignore Report Reply Quick Reply
File: 1491354897228.png -(65204B / 63.68KB, 176x218) Thumbnail displayed, click image for full size. 65204
Anyone know any good websites that teach you coding?
3 posts and 1 images omitted. Click Reply to view.
>>
George Sottingstig - Thu, 11 May 2017 04:59:14 EST ID:bkh8m0qR No.36881 Ignore Report Quick Reply
>>36876
Not sure if spam. The site is the right kind of pathetic, but also stale. nb.
>>
Cyril Druvingkere - Sun, 14 May 2017 08:48:39 EST ID:ZVivcFXs No.36909 Ignore Report Quick Reply
Codecademy.com , YouTube
>>
Esther Pallerbadge - Wed, 17 May 2017 05:49:05 EST ID:3yt7HO4G No.36932 Ignore Report Quick Reply
>>36881
are all coders this salty? man this board is like a 50/50 split of autism and anger
>>
Sophie Genkinstedge - Wed, 17 May 2017 09:23:56 EST ID:b2Dm/aZr No.36937 Ignore Report Quick 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 ID:5TS5kFz5 No.36953 Ignore Report Quick Reply
>websites
Nah, you want books m8. Codecademy is trash btw


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
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?
>>
Jarvis Grandgold - Sat, 13 May 2017 16:44:55 EST ID:P6PS9CBz No.36903 Ignore Report Quick Reply
>>36900
I'm not entirely sure what you mean when you say "triangle junctions". Do you mean to try and get the two closest triangles, or the closest adjacent triangle to the triangle that the input position lies within?

In any case, if the triangles are guaranteed to lie within a regular plane (like the image you showed) then you don't need any data-structures, you can simply procedurally pick the triangle. In the picture you showed the triangle's column would be (floor(iPosition.x / triangleWidth) ) and the triangle's row would be something like (floor(iPosition.y / triangleHeight + iPosition.x / triangleSlopeFactor) ). Getting adjacent triangles using this method should be straightforward because you can simply check the neighboring rows and columns of triangles to find adjacent ones.

If you are dealing with an arbitrary polygon soup of triangles (ie, not in a regular grid like in your picture) and you want to efficiently store the triangles for selection then you should use a spatial partitioning data structure, such as a quadtree/octree, a K-D tree, a BSP tree, or a hash-grid. Then for finding the closest triangle to the point you can walk the tree until you find the node that the input position belongs to and then do a brute-force test against all triangles within that same node (of course, if there are no triangles in that node then you have to search neighboring nodes, but getting neighboring nodes in a tree is very straightforward). For triangle adjacency, that's trickier for an arbitrary polygon soup. The geometric rules for triangle adjacency are that adjacent triangles must share at least one common vertex, so you should search for triangles that share at least one vertex with your current triangle.
>>
Phyllis Lightdale - Mon, 15 May 2017 14:47:34 EST ID:9QSfnS0r No.36916 Ignore Report Quick Reply
I'd have a look for some 3D rendering toolkit based on OpenGL.
Even if you don't need 3D geometry dealing with triangular meshes is what they are made for.
Even if you don't actually use one it might give you plenty of insight.
>>
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.


I would go to a VBS forum, but... by breakabond - Sat, 11 Feb 2017 07:27:55 EST ID:1joa5uVv No.36502 Ignore Report Reply Quick Reply
File: 1486816075377.png -(11163B / 10.90KB, 359x171) Thumbnail displayed, click image for full size. 11163
I want to make a better GUI for this script. The script is supposed to accept an input string and a number -> wait -> type that string and simulate enter key in loop.
Like a basic emergecny beacon of sorts

set shell = createobject("wscript.shell")

strtext = inputbox("Message :")
strtimes = inputbox("Number of times to spam")

if not isnumeric(strtimes) then
wscript.quit
end if
msgbox "You have 5 minutes to end wscript.exe"
wscript.sleep(300000)
for i=1 to strtimes
Comment too long. Click here to view the full text.
8 posts omitted. Click Reply to view.
>>
Fanny Grandford - Sun, 19 Mar 2017 13:19:37 EST ID:8Wkw9vVF No.36624 Ignore Report Quick Reply
>>36604
Do
Dim Vb As Integer
Vb = MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
If Vb = VBYes Then
Exit Loop
End If
Loop Until Vb=VBYes
>>
Jenny Gebberhodging - Sat, 25 Mar 2017 11:06:55 EST ID:rAGFRmkY No.36633 Ignore Report Quick Reply
<style>
video{
filter:contrast(2);
}
canvas{
filter:invert(180%);
}
</style>
<center>
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>

<canvas id="canvas" width="640" height="480"></canvas>
<script>
Comment too long. Click here to view the full text.
>>
Martin Nobblefoot - Fri, 05 May 2017 10:26:35 EST ID:rAGFRmkY No.36861 Ignore Report Quick Reply
<html>
<body bgcolor="#000000">
<canvas id="myCanvas" width="5500" height="5550"></canvas>
<script>
var x=500;
var y=500;
document.addEventListener("keydown", function(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var grd=ctx.createLinearGradient(0,0,200+x,200+y);
grd.addColorStop(0,"white");
grd.addColorStop(0.1,"red");
grd.addColorStop(0.2,"yellow");
grd.addColorStop(0.3,"green");
grd.addColorStop(0.4,"aqua");
Comment too long. Click here to view the full text.
>>
Martin Nobblefoot - Fri, 05 May 2017 13:16:36 EST ID:rAGFRmkY No.36862 Ignore Report Quick Reply
<embed src=data:>
>>
Eliza Grimway - Fri, 19 May 2017 19:47:15 EST ID:rAGFRmkY No.36943 Ignore Report Quick Reply
<html>
<body bgcolor="#000000">
<canvas id="myCanvas" width="5500" height="5550"></canvas>
<script>
var x=500;
var y=500;
document.addEventListener("keydown", function(){
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
var grd=ctx.createLinearGradient(0,0,200+x,200+y);
grd.addColorStop(0,"white");
grd.addColorStop(0.1,"red");
grd.addColorStop(0.2,"yellow");
grd.addColorStop(0.3,"green");
grd.addColorStop(0.4,"aqua");
Comment too long. Click here to view the full text.


Random Bash Scripts by Jarvis Susslelock - Mon, 15 May 2017 17:26:19 EST ID:BSmRhOy1 No.36917 Ignore Report Reply Quick Reply
File: 1494883579283.jpg -(42222B / 41.23KB, 506x600) Thumbnail displayed, click image for full size. 42222
>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
)
Comment too long. Click here to view the full text.
>>
Jarvis Susslelock - Mon, 15 May 2017 17:27:10 EST ID:BSmRhOy1 No.36918 Ignore Report Quick 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 ID:BSmRhOy1 No.36919 Ignore Report Quick 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
Comment too long. Click here to view the full text.
>>
Jarvis Susslelock - Mon, 15 May 2017 17:43:32 EST ID:BSmRhOy1 No.36920 Ignore Report Quick 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 by Esther Fanlock - Sun, 23 Apr 2017 09:32:52 EST ID:ItvfE3hu No.36752 Ignore Report Reply Quick Reply
File: 1492954372194.png -(199403B / 194.73KB, 396x283) Thumbnail displayed, click image for full size. 199403
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.
1 posts and 1 images omitted. Click Reply to view.
>>
Lillian Handlegold - Mon, 24 Apr 2017 02:35:45 EST ID:iXj4lNK/ No.36754 Ignore Report Quick Reply
>>36753
One of those is not like the others.
>>
Oliver Brookdock - Wed, 10 May 2017 00:42:59 EST ID:PEkzfHII No.36872 Ignore Report Quick Reply
>>36754
sql?

they probably mean pl/sql or lumped em
>>
Archie Pimbleway - Wed, 10 May 2017 01:58:01 EST ID:8AGoqQnQ No.36873 Ignore Report Quick 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 ID:8AGoqQnQ No.36877 Ignore Report Quick 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 ID:ZVivcFXs No.36910 Ignore Report Quick 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? by Clara Forringstock - Wed, 10 May 2017 02:42:36 EST ID:CO0b6fPY No.36874 Ignore Report Reply Quick Reply
File: 1494398556151.jpg -(330800B / 323.05KB, 1280x960) Thumbnail displayed, click image for full size. 330800
any programmer on asp and azure here?
>>
Phineas Grandstone - Wed, 10 May 2017 02:59:23 EST ID:P6PS9CBz No.36875 Ignore Report Quick Reply
>>36874
There's probably lots of people who know ASP and Azure here.


BASIC bitches by Frederick Havingwick - Mon, 15 Feb 2016 09:55:12 EST ID:v+xSbxsp No.35166 Ignore Report Reply Quick Reply
File: 1455548112204.jpg -(142590B / 139.25KB, 640x480) Thumbnail displayed, click image for full size. 142590
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.
2 posts and 1 images omitted. Click Reply to view.
>>
Eliza Marringtat - Tue, 16 Feb 2016 12:40:05 EST ID:5q2tULje No.35175 Ignore Report Quick Reply
Basic is senseless on a modern machine imho.
If you are doing it for sports get a Sharp PC-U6000 or one of the even older models and use that. It's more fun when you are restricted by 32kb of program memory :-)

If you are on a android tablet with a bluetooth keyboard install Termux and you can run python, php and even c++, and you have a full on vim with plugins and stuff.
>>
Eliza Marringtat - Tue, 16 Feb 2016 12:45:40 EST ID:5q2tULje No.35176 Ignore Report Quick Reply
If you need incentive: There is a whole bunch of system calls in these Sharp calculators where you can access the largely undocumented rom codes.
And there is a micro jack port which is used as a modem port to transfer between machines, props if you make a synth out of it.
>>
Eliza Marringtat - Tue, 16 Feb 2016 14:00:35 EST ID:5q2tULje No.35179 Ignore Report Quick 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 ID:v+xSbxsp No.35252 Ignore Report Quick 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?
>>
Jarvis Gimmerman - Mon, 01 May 2017 20:37:39 EST ID:D5M/Ztac No.36828 Ignore Report Quick Reply


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