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

penis pump

Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
Brute Force Compiler by Fanny Grandford - Sun, 19 Mar 2017 14:35:03 EST ID:8Wkw9vVF No.36625 Ignore Report Reply Quick Reply
File: 1489948503186.jpg -(118472B / 115.70KB, 500x716) Thumbnail displayed, click image for full size. 118472
I've just made what I call a brute force compiler. How does it work? Well it occurred to me that since a program is simply a sequence of bytes we can actually enumerate all the possible programs. So it does that, and runs each one in an emulator until the tests all pass.

One test is that the program should not have written to, read from, or branched to any byte in memory that it hasn't explicitly been given read write execute access to. Just to prove the idea, I put a second test in and that' passes if some memory location, which was initialised to 0, contains some non-zero value after the program has run. Sure enough, the compiler produced the following code (in 6502 assembly):
dec $7F
(that decrements the memory location I specified, so since it was initialised to zero now it'll obviously contain a non-zero value). And this is the shortest program that passes this test, and dec is the first opcode numerically which modifies a memory location in the necessary way.

My idea is that if we have enough tests, then we can use this to generate a program which matches some specification. (And since the programs are tested in a certain order, we also know that it's the shortest possible program that matches the specification).

So the next thing is: How can we get these necessary tests? Maybe I can automatically generate them from running an equivalent program. Maybe I can generate them from source code. Any ideas about that? Or any ideas about how useful this whole contrafibulation might be?
>>
Fuck Sigglekork - Sun, 19 Mar 2017 15:43:37 EST ID:S3TDz6jS No.36626 Ignore Report Quick Reply
What you have is logic programming and not-quite-genetic programming. I think the first problem you'll run into is that constraints are really hard to think about, often harder than solving the problem yourself. The second is that even far more sophisticated approaches are very slow in practice. These are the reasons Prolog isn't popular.
>>
Martha Wudgeridge - Sun, 19 Mar 2017 17:42:47 EST ID:9QSfnS0r No.36627 Ignore Report Quick Reply
There is current research on a topic like that.
The researchers have created a neural network capable of generating source code for a program that produces a required output scheme.

In a sense it's the only currently somewhat plausible way to do that.
https://techcrunch.com/2017/02/23/deepcoder-builds-programs-using-code-it-finds-lying-around/
https://openreview.net/pdf?id=ByldLrqlx
>>
Archie Bottinglack - Mon, 20 Mar 2017 03:50:28 EST ID:P6PS9CBz No.36628 Ignore Report Quick Reply
>>36625
This sounds like the principle applied to superoptimizers:
https://en.wikipedia.org/wiki/Superoptimization

The problem (both with your idea and with superoptimizers) is that with larger programs your search-space expands too quickly for it to be feasible to search all possible sequences of program bytecode. If you query:
Find me the fastest program that does this thing in less than 4 bytes, you're searching through 2^32 possible (though not necessarily valid) program sequences, but if you expand the search to 8 bytes then you're already at a size too large to search on a single computer in a human lifetime at 2^64 program sequences.

If you restrict your search to only valid programs, then the possibility-space is reduced, but only linearly so you're still stuck with the exponential-search issue only now you have fewer possible programs to enumerate.
>>
Phoebe Fanlock - Wed, 22 Mar 2017 16:57:02 EST ID:8Wkw9vVF No.36631 Ignore Report Quick Reply
Thanks for all your thoughts and input thus far.


>>36626
>constraints are really hard to think about
So maybe this thing would have a hard time with functions that have side effects and other unknowns and things which are hard to reason about (luckily those things are rare in good programs). But maybe this thing would work okay on a function which returns a value or set of values given an input. Something like a keyboard matrix decoder or a mathematical function. The constraint would be as simple as "You can use this region of memory for your own purposes. You can read from these locations. Put the return value here. Here is how the inputs map to the return value, including the don't-cares."
Of course, that might still be hard to compute...

>>36627
I haven't had time yet to read that paper properly yet, but the skim has been interesting. Neural nets are another interest of mine

>>36628
One application that has a (relatively) small search-space: automatically finding the transformations for a peep-hole optimizer. A peephole optimizer might look at four bytes at a time, seeing if a four-byte sequence may be replaced by shorter sequence.


python and you and me and you also by Lydia Cinnerkutch - Thu, 16 Feb 2017 16:17:09 EST ID:1UV84ceD No.36510 Ignore Report Reply Quick Reply
File: 1487279829548.jpg -(3283017B / 3.13MB, 3840x2160) Thumbnail displayed, click image for full size. 3283017
Hi this forum was helpful with teaching me a pythonic way to do something before so I'm hoping you can share another pattern with me for a new problem I have.

Using pandas to merge two dataframes based on time series info how can I expand the values in one dataframe that is based on daily information to match the dataframe based on the minute. I have two time columns one in format day/month/year ti:me in ten minute intervals and the other is day/month/year. So sample data looks like:

Time - A - b
1/1/2017 00:00:10 - 5 - 6
1/1/2017 00:00:20 - 3 - 2
1/1/2017 00:00:30 - 4 - 4 etc
&& in the other dataframe I want to merge it is

Time - Value1 - Value2
1/1/2017 - 9 - 1
1/2/2017 - 5 - 6
So it should look like
Comment too long. Click here to view the full text.
>>
Fanny Tillingfield - Sat, 18 Feb 2017 04:30:27 EST ID:dluvNLbx No.36513 Ignore Report Quick Reply
  1. Pandas isn't Python. The Pythonic solution involves a list comprehension and isn't what you want to do.
  2. Unless you're interested in the continuity of your date+timestamp value, I would split that permanently.
  3. Once you have a simple date column in each DF, what you're looking to do is merge: merged_df = df1.merge(df2, left_on='date', right_on='date', how='outer')
  4. 2017-01-01. That's how you'll format dates now. Forever.
>>
Phoebe Blemmlepire - Sat, 18 Feb 2017 04:41:18 EST ID:9QSfnS0r No.36514 Ignore Report Quick Reply
Why do store time/date in this fashion? Use unix timestamps and some library like dateutil to parse them.
I'd convert the time/date into timestamps the first chance I'd get then it's just a regular value and easy to deal with.
>>
Edwin Brondleforth - Tue, 21 Mar 2017 20:10:27 EST ID:JW2J65bb No.36630 Ignore Report Quick Reply
df1.merge(df2.reindex(index=df1.index, df1, method='pad'))


Python by Isabella Cupperham - Fri, 17 Mar 2017 08:11:58 EST ID:sIgWxmPi No.36612 Ignore Report Reply Quick Reply
File: 1489752718854.jpg -(716829B / 700.03KB, 2000x1000) Thumbnail displayed, click image for full size. 716829
So I was helped here, a few month back, choosing a cartesian point from a list by some criteria. Now i need to know how I can select an entry in another list, the criteria being that it has the same index as the entry from the previous list.

Dunno if relevant but here is how i get the cartesian point from the first list:

for point in lista:
avstand = abs(math.hypot(krok[0] - point[0], krok[1] - point[1]) - redskapslengde1)
if avstand < solution[0]:
solution = (avstand, point)

return solution
answer = get_min_distance(krok, redskapslengde1, lista)

So I want to summon an entry in a different list, with the same index as this answer. The latter list consists of single numbers, not x,y pair like the former.

Whoever answers this gets to fuck me in the ass if you can find me :)
Or a cake, if you can find that.
2 posts and 1 images omitted. Click Reply to view.
>>
Phineas Wishchine - Sat, 18 Mar 2017 09:06:08 EST ID:+gXm3O1V No.36618 Ignore Report Quick Reply
1489842368567.jpg -(3025903B / 2.89MB, 2000x1333) Thumbnail displayed, click image for full size.
>>36617
But not that, obviously.

https://www.youtube.com/watch?v=COCmaZA3d08
>>
Frederick Murdgold - Sat, 18 Mar 2017 09:32:35 EST ID:rAGFRmkY No.36619 Ignore Report Quick Reply
1489843955950.png -(127549B / 124.56KB, 1366x768) Thumbnail displayed, click image for full size.
>>36618
>>
Nell Ceblingwitch - Sat, 18 Mar 2017 10:21:55 EST ID:WLOo3E7i No.36620 Ignore Report Quick Reply
>>36612

There are a few ways you could do it. You could keep track of the index yourself while looping through the list, or just use the index function:

listb[lista.index(solution[1])]
>>
Shitting Bozzletock - Sat, 18 Mar 2017 14:21:41 EST ID:0Wz3cQnI No.36623 Ignore Report Quick Reply
>>36617
Just post your code on pastebin and maybe someone will make it do what you want for you.
>>
Reuben Blackdale - Mon, 20 Mar 2017 18:49:24 EST ID:7WN4whBM No.36629 Ignore Report Quick Reply
1490050164640.png -(27060B / 26.43KB, 757x462) Thumbnail displayed, click image for full size.
>>36620
Yea bich!
That's exactly what I was looking for.


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.
4 posts omitted. Click Reply to view.
>>
Graham Farryfock - Mon, 06 Mar 2017 16:31:04 EST ID:rAGFRmkY No.36598 Ignore Report Quick Reply
It's called VB6
>>
David Dubblegold - Tue, 07 Mar 2017 12:53:22 EST ID:rAGFRmkY No.36603 Ignore Report Quick Reply
Dim
>>
Untested Like This? - Tue, 07 Mar 2017 12:57:50 EST ID:rAGFRmkY No.36604 Ignore Report Quick Reply
Do
Dim Vb=MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
If Vb=VBYes Then
End
Else
Vb=MsgBox("Are U Sure U Wanna Stop This Shit?",VBYesNo)
End If
Loop Until Vb=VBYes
>>
Edward Himmermock - Wed, 08 Mar 2017 05:14:37 EST ID:YL0YFsWq No.36605 Ignore Report Quick Reply
>>36603
BrU strikes again
>>
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


web-hosting that supports java? by Isabella Simmerbury - Sat, 18 Mar 2017 01:47:25 EST ID:SWJfiJ9j No.36616 Ignore Report Reply Quick Reply
File: 1489816045734.jpg -(316133B / 308.72KB, 1600x1200) Thumbnail displayed, click image for full size. 316133
I'm somewhat new to software development (just started my second year of education)
I want to start experimenting with doing server shit / applets etc.

Can anyone recommend inexpensive web-hosting that let's me run applications on their server? Is this even a thing?
>>
Nell Ceblingwitch - Sat, 18 Mar 2017 10:27:26 EST ID:WLOo3E7i No.36621 Ignore Report Quick Reply
>>36616

If you're just experimenting, I would suggest just installing Tomcat on your machine and use that.
>>
Shitting Bozzletock - Sat, 18 Mar 2017 14:13:04 EST ID:0Wz3cQnI No.36622 Ignore Report Quick Reply
Servlets, Spring, and JSP are things, but the only people who are interested in Java web services today are only in it for the JVM. Also, no one wants to run your applet in their browser. No one.


bad at tech by Charlotte Greenson - Thu, 16 Mar 2017 12:21:25 EST ID:Zudx1stW No.36610 Ignore Report Reply Quick Reply
File: 1489681285293.png -(2817549B / 2.69MB, 1920x1080) Thumbnail displayed, click image for full size. 2817549
I graduated with a liberal arts degree from a top private uni in the US a year ago- i originally got admitted for electrical & computer engineering (a top 10 program) and just struggled like hell in that major for 3 years before dropping into a (semi-useless) liberal arts major so i could gtfo with a degree. my gpa is sub >2.5

I got a shitload of C's, D's and F's in my engineering classes cause I was/am immature, had no discipline and never did my homework. i never moved past the sophomore level of courses, i.e I only got to signal processing, circuits, 3D calc, diff eq, thermo, and a bunch of 'intro' programming classes in C++, python. i did way better in my liberal arts classes cause they were mostly jokes. didn't make it to any junior 'specialized' work or any capstones.

now i'm at a small 'consulting' firm where i'm basically an excel monkey/note taking bitch making a bit below 59k a year. Yes i'm lucky to even have a job but i'm a paper pusher and I feel like I'm wasting my potential every day in an industry i give 0 fucks about

i always get an itch to self-study Ruby or something and try and get back into tech, or go back to grad school (dubious with my poopoo gpa) and try again at something 'useful'- even though I blew tits at anything i touched related to tech. at work I still read tech articles, I still have hordes of engineering textbooks i flip through from time to time cause i feel nostalgic.

Should I move on and leave tech behind since I suck at it or is there a chance to redeem myself?
>>
Martha Gandlefoot - Thu, 16 Mar 2017 15:05:40 EST ID:zS1cdVxh No.36611 Ignore Report Quick Reply
>>36610

Why not learn what you're interested in on the side? If you develop skills and have good projects posted on github that's better than classes
>>
Doris Blusslefire - Fri, 17 Mar 2017 15:33:30 EST ID:9QSfnS0r No.36614 Ignore Report Quick Reply
Just so you know, no amount of programming that you can pick up in a few months will earn you 59k a year.

That being said if you don't think you are contributing something useful do it as a hobby get an Arduino, find some Hackerspace in your area and see where that takes you.
>>
Doris Blusslefire - Fri, 17 Mar 2017 15:40:53 EST ID:9QSfnS0r No.36615 Ignore Report Quick Reply
>>36611
>If you develop skills and have good projects posted on github that's better than classes
You can't really make a generalization like that.


Basic question from the unenlightened by William Wingerwedge - Sun, 19 Feb 2017 09:20:55 EST ID:3mRefssQ No.36515 Ignore Report Reply Quick Reply
File: 1487514055529.jpg -(10661B / 10.41KB, 275x206) Thumbnail displayed, click image for full size. 10661
With programming I know that theres levels to this shit, So I wanna know: Where can I go to learn VBA/SQL

I feel like getting a good grasp on advanced excel and access would help me tremendously when im looking to learn future programming languages
3 posts omitted. Click Reply to view.
>>
Graham Farryfock - Mon, 06 Mar 2017 16:15:08 EST ID:rAGFRmkY No.36596 Ignore Report Quick Reply
It Will Help U With VB6 and VBS not much more.
>>
Reuben Habblemot - Fri, 10 Mar 2017 02:27:40 EST ID:AljP2dDh No.36606 Ignore Report Quick Reply
>>36515
https://learncodethehardway.org/sql/
Go check this shit out. When it says "the hard way" it means learn by fucking doing it. It's straightforward. Learning SQL is a good investment of time.
>>
William Cushwark - Sat, 11 Mar 2017 14:56:14 EST ID:9QSfnS0r No.36607 Ignore Report Quick Reply
>>36606
No it's a case of unwarranted self important of the author that thinks teaching without explanation of the fundamental concepts would yield a better understanding.

This teaches by example too, but isn't dated shit. And it's not run by people trying to insult your intelligence.
https://www.sololearn.com/Course/SQL/
>>
Polly Garringwat - Sat, 11 Mar 2017 15:33:41 EST ID:b2Dm/aZr No.36608 Ignore Report Quick Reply
>>36607
But apparently it's run by people who want you to have an account. What ever happened to people reading a fucking manual and going over production code?
>>
Frederick Demblenat - Sat, 11 Mar 2017 21:21:37 EST ID:9QSfnS0r No.36609 Ignore Report Quick Reply
>>36608
The other thing want you to pay 20 bucks, (which also requires an account of a sort) whichever is worse?

>What ever happened to people reading a fucking manual and going over production code?
"Web 2.0" happened.
Back in the 00s you were fine only knowing about 3-4 different technologies to get a decent paying job in the IT sector. If you knew the LAMP stack you were golden already. Today you need to know 30-40 technologies to get a similar job and reading up on the official documentation of all of those would take longer than some of those are are considered the state of the art. (I slightly exaggerated)

Perhaps it's also that SW development has become a normie job in a way, heck people learning it communicate over Facebook groups instead of IRC and you are considered a uber nerd already if you code for fun.


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.
24 posts and 2 images omitted. Click Reply to view.
>>
Graham Farryfock - Mon, 06 Mar 2017 16:26:39 EST ID:rAGFRmkY No.36597 Ignore Report Quick Reply
>>36595
Still Am I MC Now Too!!
>>
Graham Farryfock - Mon, 06 Mar 2017 17:05:49 EST ID:rAGFRmkY No.36599 Ignore Report Quick Reply
<style>
body{
filter:invert(38422334deg);


}
canvas{
filter:flip(18044);
filter:invert(180%);



}
</style>
<center>
Comment too long. Click here to view the full text.
>>
Esther Neblinghen - Mon, 06 Mar 2017 17:27:56 EST ID:G37uchdY No.36600 Ignore Report Quick Reply
<style>
body{
filter:invert(38422334%);


}
canvas{
filter:flip(180444);
filter:contrast(1830%);



}
</style>
<center>
Comment too long. Click here to view the full text.
>>
Esther Neblinghen - Mon, 06 Mar 2017 17:52:16 EST ID:G37uchdY No.36601 Ignore Report Quick Reply
<style>body{
filter:contrast(42180%);


}
</style>
<center>
<body bgcolor="black">
<video id="video" width="640" height="480" autoplay></video>

<canvas id="canvas" width="640" height="480"></canvas>
<script>
alert('Click The Moving Webcam.\n\nThis Will Check If The Camera Is Covered Or Not.\n\nAlso This Will Take A Still Snap Shot Image!!')
document.addEventListener("DOMContentLoaded", function() {
var canvas = document.getElementById('canvas');
Comment too long. Click here to view the full text.
>>
David Dubblegold - Tue, 07 Mar 2017 00:51:53 EST ID:rAGFRmkY No.36602 Ignore Report Quick Reply
<style>body{
filter:invert(180%);


}
</style>
<center>
<body bgcolor="black" forecolor="FFFFFF">
<video id="video" width="640" height="480" autoplay></video><br>
<button onclick="//window.print();"id="t">Check Visibility</button>
<button onclick="window.print();">Print Image</button>
<canvas id="canvas" width="940" height="980"></canvas>
<script>
//alert('Click The Moving Webcam.\n\nThis Will Check If The Camera Is Covered Or Not.\n\nAlso This Will Take A Still Snap Shot Image!!')
window.addEventListener("DOMContentLoaded", function() {
Comment too long. Click here to view the full text.


First programming language(s) to learn by Samuel Bardwater - Tue, 28 Feb 2017 04:15:25 EST ID:s5UXSHt+ No.36573 Ignore Report Reply Quick Reply
File: 1488273325559.jpg -(38187B / 37.29KB, 420x436) Thumbnail displayed, click image for full size. 38187
I was thinking of starting to try to learn python. I was just wondering, I know I can easily search up stuff but I want some stoner programmers to give me an idea of whether or not I want to pursue this. I wish to make MUD like games but with a GUI. What is the best language(s) to learn to make MUDS
4 posts omitted. Click Reply to view.
>>
Augustus Mippershaw - Wed, 01 Mar 2017 15:44:13 EST ID:9QSfnS0r No.36579 Ignore Report Quick Reply
>>36577
I didn't say that, doing the approach I mentioned and writing as much as possible in python and for instance a backend tool like flask would be my choice for this exercise for instance.
I just would advocate against a complete newbie trying to write a game in pygame or even worse with opengl bindings.

The one alternative that would make sense for me in that regard (writing a game to learn programming) would be processing.
It entirely depends on OP's background though, and I realize my suggestion was the least possible nerdy way do do it.

So, OP
If you really want to learn programming as a hobby, and definitely don't care about doing it in any modern way you could take a look the demoscene...
https://scene.org
In the archive/the ftp there are files about learning coding the way you used to learn it from the 90s onwards. And you'd start with C/C++, perhaps a little bit of OpenGL.
You might as well start here:
http://hugi.scene.org/online/hugi31/hugi%2031%20-%20index%20coding%20corner.htm
>>
Augustus Mippershaw - Wed, 01 Mar 2017 15:48:13 EST ID:9QSfnS0r No.36580 Ignore Report Quick Reply
>>36578
I couldn't leave without pointing out this is BS.
I've written full games on a graphical calculator with 32K program memory in BASIC. Do you even know what a mud is?

Quick look it up....
right, thought as much :)
>>
Phineas Brecklestock - Wed, 01 Mar 2017 16:42:41 EST ID:JfvrqUKV No.36581 Ignore Report Quick Reply
>>36580
Just because MUDs are simple doesn't mean your first MUD won't be hot garbage.
>>
Augustus Mippershaw - Wed, 01 Mar 2017 17:03:54 EST ID:9QSfnS0r No.36582 Ignore Report Quick Reply
>>36581
lol
>>
Phineas Brecklestock - Wed, 01 Mar 2017 18:18:25 EST ID:JfvrqUKV No.36583 Ignore Report Quick Reply
>>36582
True story: 20 years ago I made a large multiplayer map for an RTS (also simple), spent a long time uploading it over my Motorola 28.8, and two minutes into playing it with some strangers I was like holy shit everything about this was a mistake and I just disconnected.


Simple Linux Dev by Clara Woshtug - Mon, 20 Feb 2017 03:11:37 EST ID:YL0YFsWq No.36519 Ignore Report Reply Quick Reply
File: 1487578297992.jpg -(130895B / 127.83KB, 1080x1080) Thumbnail displayed, click image for full size. 130895
I want so accomplish something very simple with my CentOS webserver, but I'm not sure where to begin.

I need to visit a URL to some JSON then convert the JSON to a SQL insert statement, and I want it to run every 30 seconds lets say, forever.

There's nothing there that sounds particularly difficult but I don't even know what search terms I should be looking at. Any help is appreciated.
4 posts omitted. Click Reply to view.
>>
Clara Woshtug - Mon, 20 Feb 2017 17:16:44 EST ID:YL0YFsWq No.36524 Ignore Report Quick Reply
>>36522
Cool, jq looks like exactly what I needed, thanks.
I was going to hack something together but this looks perfect
https://stedolan.github.io/jq/tutorial/

>>36523
Thanks, seems like I'm on the right track. I've saved your example for tinkering with.
>>
Phineas Barryway - Tue, 21 Feb 2017 22:17:07 EST ID:YL0YFsWq No.36525 Ignore Report Quick Reply
I literally just spent 8 hours trying to install and set up fail2ban because, of course, within about 30 seconds of the server coming online it was being hammered by chinese bots. Turns out it was a problem with fail2ban that is being fixed right now. Fuck.
>>
Fanny Gudgespear - Fri, 24 Feb 2017 16:04:55 EST ID:9QSfnS0r No.36570 Ignore Report Quick Reply
>>36525
Ugh, fail2ban is a stupid stopgap measure and I can't stand that it's a common practice.
I it were up to me everything that's not intended to be accessed by the public would be behind a ssh tunnel. I know end user authentication and all that stuff is still an issue.
Again if it were up to me I'd just fucking force them to use a password which has enough entropy. Ever had to beg to be white-listed from a spam blacklist because some retard use the name of there dog as a password?
Cuz fail2ban won't save you that hassle, believe me.
>>
John Hocklehood - Sat, 25 Feb 2017 00:04:50 EST ID:YL0YFsWq No.36571 Ignore Report Quick Reply
>>36570
Fair enough, this is the first time I've had to administer a Linux server or even any kind of server. I noticed there were a lot of failures in the log so fail2ban was what I ended up with after a few minutes of searching around.

There's only me accessing it and it's just a cheap $5 box that I can trash and rebuild whenever but I'll look into what you're suggesting if you give me a link or two to readup.
>>
Frederick Fannerforth - Tue, 28 Feb 2017 07:02:30 EST ID:YL0YFsWq No.36575 Ignore Report Quick Reply
>>36571
Not that anyone cares but the server is up and running and everything is ticking along nicely.
I have scripts that are recording all the threads created on another chan board so I can do some analysis on trends, repost, etc.

Once the infrastructure was in place it wasn't hard to add some logging for 420chan. I am polling http://api.420chan.org/stats.json every 30 mins so hopefully in the future that I can produce some dank graphs, but there's isn't much info exposed.


server prob? by no name - Wed, 01 Feb 2017 14:15:17 EST ID:g3naDofA No.36494 Ignore Report Reply Quick Reply
File: 1485976517145.jpg -(31367B / 30.63KB, 480x343) Thumbnail displayed, click image for full size. 31367
is it possible to have 1 server (probably at your backyard or basement) and that would provide your website to whole world. . . i cannot afford to have servers on another country, and can somebody also reccomend a good server with at least 8gb ram. more man 4gb/s speed and storage of at least 500gb. . .
and how much will this whole cost me,.
if you have books on this topic pls include . i am just new to this server management and programming world, (you might have figured it out, i donot have money to pay for my college)
thankyou
>>
Hamilton Drallynadge - Wed, 01 Feb 2017 17:41:56 EST ID:Ep0R/dTc No.36495 Ignore Report Quick Reply
What are you trying to do exactly? Can you use a free or distributed hosting solution instead? Where are these numbers you have coming from?
>>
Augustus Nickleworth - Tue, 28 Feb 2017 02:46:04 EST ID:E1Wm7o2Y No.36572 Ignore Report Quick Reply
>>36494
Every piece of hardware can be turned into a server. As long as the machine has RAM, CPU and hard disk, you're good to go. That means that you can turn an old laptop into an okay-ish server.

I did the same thing from scratch and without knowledge last year with my old college laptop from 2005 and it went OK. It is REALLY confusing at first, but as long as you can google while doing things, you can do anything.


Get your hands on a piece of hardware.

Install a free OS (server edition). Example : ubuntu server (it has flaws but the community is large so finding answers for random errors is easy). it comes with prepackaged services and software to get your site going almost out of the box.

Secure it with firewall (ie UFW) and fail2ban

Get a domain name (a few bucks a year)

Configure your Apache, nginx or whatever
Comment too long. Click here to view the full text.


Windows Script/Program Send Email in the future by breakabond - Wed, 15 Feb 2017 06:36:51 EST ID:1joa5uVv No.36508 Ignore Report Reply Quick Reply
File: 1487158611086.png -(1031B / 1.01KB, 32x32) Thumbnail displayed, click image for full size. 1031
I want to remind myself of something in X days, so

What do you recommend for easily working with some sort of email API where I can run a program, and idk, something like this (please critique)

check_interval = 5 minutes // or longer depending on sys resources
while(True):
if current_date == reminder_date
send email to self && delete reminder
else
Sleep(check_interval)
>>
Martin Firrychedging - Wed, 15 Feb 2017 14:24:01 EST ID:YL0YFsWq No.36509 Ignore Report Quick Reply
>>36508
I don't know about sending the email (maybe you could write a macro in VBA?), but you could set a timer with the Windows Task Scheduler if you're on Windows. Of course it will only run if your PC is on though.
>>
Fuck Gimblehot - Thu, 16 Feb 2017 23:11:04 EST ID:nUiSQX6z No.36511 Ignore Report Quick Reply
Fuck all that shit nigga do it on linux and write a cron script that cats a file and pipes it to mailx.
>>
Ernest Hillykore - Fri, 17 Feb 2017 00:45:14 EST ID:j+2UyEq8 No.36512 Ignore Report Quick Reply
For sending a mail:

https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/send-mailmessage

Scheduling:

https://technet.microsoft.com/en-us/library/cc721871(v=ws.11).aspx


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