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
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.
3 posts omitted. Click Reply to view.
>>
Matilda Duttingnane - Mon, 20 Feb 2017 13:05:04 EST ID:WLOo3E7i No.36523 Ignore Report Quick Reply
>>36521
create a cron job that runs a bash script every 30 seconds
the script will look something like this if you are using a mySQL database:
wget -o result.txt http://site.com/thing.json
data=$(cat result.txt)
mysql -uroot -ppassword -e "USE mydb; INSERT INTO mytable VALUES ('$data');"
>>
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.


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
>>
Shitting Bicklelone - Sun, 19 Feb 2017 10:40:13 EST ID:PoLvUut+ No.36516 Ignore Report Quick Reply
https://www.w3schools.com/

Or just download textbooks from libgen.io and do the projects/exercises.
>>
Caroline Senderwot - Sun, 19 Feb 2017 18:46:10 EST ID:dluvNLbx No.36517 Ignore Report Quick Reply
VBA has been a dead language for the better part of a decade. It still sees some use, but no one is learning it.
>>
Clara Woshtug - Mon, 20 Feb 2017 03:04:22 EST ID:YL0YFsWq No.36518 Ignore Report Quick Reply
>>36515
I don't know why you wrote VBA/SQL, they are not related or even similar.

You can learn both online to a point, but as someone said VBA isn't widely used outside of financial people writing shitty code behind their Excel spreadsheets. The best way to learn VBA is to record a macro of you doing something manually (small amount of steps at first) then reading the generated VBA to understand it, then editing it and playing it back. There is a LOT of info about VBA online.

If you want to learn SQL I would advise you to install XAMPP ( https://www.apachefriends.org ) and follow some tutorials. You can develop simple (and very insecure) websites/tests using PHP and MySQL while you're learning.


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.


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


Some sort of virus by Clara Clayshit - Fri, 18 Mar 2016 15:59:37 EST ID:kvn5FzQz No.35325 Ignore Report Reply Quick Reply
File: 1458331177571.png -(5015B / 4.90KB, 418x66) Thumbnail displayed, click image for full size. 5015
I need this program away entirely.
2 posts omitted. Click Reply to view.
>>
Nell Darthood - Sat, 14 Jan 2017 01:56:36 EST ID:cpPd0VLJ No.36454 Ignore Report Quick Reply
>>35325
It looks like a Chinese program. What makes you think it's a virus?
>>
Esther Shakeworth - Sat, 14 Jan 2017 21:24:20 EST ID:4edaUUL5 No.36456 Ignore Report Quick Reply
It looks like you need to format your drive and install a Linux distribution.
>>
Hannah Churringfark - Thu, 02 Feb 2017 16:06:46 EST ID:92Hu3tgI No.36497 Ignore Report Quick Reply
>>36454
>Chinese letters
>Virus Confirmed
>>
Albert Pablingworth - Thu, 02 Feb 2017 20:14:13 EST ID:DkJ9qDoR No.36498 Ignore Report Quick Reply
>>36497
They're actually not letters but rather logograms which represent entire words.
>>
Martha Manderfield - Mon, 13 Feb 2017 20:56:11 EST ID:1joa5uVv No.36507 Ignore Report Quick Reply
>>36498
ur thinking of heuroglyphics


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.
>>
Cedric Pickwell - Sun, 12 Feb 2017 02:20:17 EST ID:cpPd0VLJ No.36503 Ignore Report Quick Reply
If you wish to avoid threading, then you can do all of this on a single-thread if you create the message-box with a timer attached to a callback (say ticks once every second or so).
>>
breakabond - Sun, 12 Feb 2017 10:23:21 EST ID:1joa5uVv No.36504 Ignore Report Quick Reply
>>36503
What's your going rate?
>>
Cedric Pickwell - Sun, 12 Feb 2017 16:45:51 EST ID:cpPd0VLJ No.36505 Ignore Report Quick Reply
>>36504
I don't have a going rate. You should post this question on the Windows subsection of Stack Overflow.
>>
Martha Manderfield - Mon, 13 Feb 2017 20:38:18 EST ID:1joa5uVv No.36506 Ignore Report Quick Reply
>>36505
cmonnnn make it for me


If you can hack this you are a wizard by Augustus Wemblelock - Fri, 10 Feb 2017 11:24:20 EST ID:RhO2TfLd No.36500 Ignore Report Reply Quick Reply
File: 1486743860258.jpg -(168986B / 165.03KB, 714x1024) Thumbnail displayed, click image for full size. 168986
I'm trying to submit an Instagram comment on an image from the browser - i'm finding it fucking impossible, though it really shouldn't be.

Getting the text in the input is fine, its just then dynamically submitting the comment (like when you press return).

Shiiiiiiiit if someone can do this...you will be my hero.
>>
Fuck Wenkinwodging - Sat, 11 Feb 2017 03:52:13 EST ID:cpPd0VLJ No.36501 Ignore Report Quick Reply
>>36500
Instagram supports an API that anybody can register to use:
https://www.instagram.com/developer/


UNIX Based Operating System For the People by Hugh Gozzleford - Sat, 28 Jan 2017 01:15:33 EST ID:STgZO5Su No.36481 Ignore Report Reply Quick Reply
File: 1485584133672.png -(25980B / 25.37KB, 825x470) Thumbnail displayed, click image for full size. 25980
I basically want to create an Operating System that has all the benefits of Windows, and all the polish and "security" Macintosh OS X. I figured that I would start with the UNIX/LINUX kernel and build from there.

How hard would that be to accomplish. I mean there are a lot of Linux distributions out there. If I had ten people to work with me how long would it take to have a alpha version of my Operating System ready that is compatible with most if not all commonly used hardware.

I know that Android OS, OS X,and iOS are all built on UNIX. In addition to all Linux distributions.
9 posts and 2 images omitted. Click Reply to view.
>>
Augustus Mogglefield - Sat, 28 Jan 2017 23:08:17 EST ID:h1oxKujY No.36491 Ignore Report Quick Reply
1485662897569.jpg -(30101B / 29.40KB, 370x250) Thumbnail displayed, click image for full size.
>>36490
I'm a venture capitalist. I did withdraw from an Operating Systems class in College. Programming and Software engineering is way above my head. I do know that all user processes are built on top of the kernel if that is the way you could put it.

Hardware<Kernel<User Interface.
>>
Graham Pepperford - Sun, 29 Jan 2017 07:13:55 EST ID:9QSfnS0r No.36492 Ignore Report Quick Reply
>>36491
>I'm a venture capitalist.
>I'm Just an idea guy.
>I post on an druggie image boards obscure programming forum.
>Nothing to do with actual programming.

right, get out.
>>
Nigel Sumbleset - Sun, 29 Jan 2017 11:38:21 EST ID:5vr1L8pL No.36493 Ignore Report Quick Reply
>>36492
I do what I please.
>>
Hamilton Pockdock - Wed, 01 Feb 2017 19:42:53 EST ID:FgGq0PB+ No.36496 Ignore Report Quick Reply
>>36491
Yea if you had attended some classes in college you would learn that you can't just throw around the "support" word and think it means something. "Support VR", "support hardware component X", "Support software Y" is stuff that concerns a OS only partly.

For instance, let's take the easiest to understand example: don't you think that IF it was possible, ALL Linux distributions and even MAC OS and Android devices would support running EXE files natively? That is not the case because Windows and every other OS is different in its architecture (before you ask, there is a project on Linux to make Windows code run natively -not with a compatibility layer like Wine-, but it's mostly abandoned because it was very difficult to develop), how it handles memory, syscalls, I/O and everything; also notice how you can't run most Linux programs on android because they differ in how the system is implemented.

But that is not the only thing that matters. Say you build YET ANOTHER operating system (it hasn't been done before, the internet is full of OS's that have been started and abandoned), maybe based on Unix (provided you know what that means), or maybe to accomplish all the great things you want to, you write a WHOLE another OS. It is never going to grow as fast as Windows did in its own time. That is because in the past there were not many operating system and windows basically the only one competing. PLUS they did a lot of shady shit for marketing for which they also got sued.

Basically you talk like a fag and your shit is all retarded; get out of here and stop wanting to waste people's time to "build" ideas that even you don't know specifically. Programming is not an aproximation. It is not a book, or a movie, or a play, where you can give the "general ideas" and then go on from there. Doing that can be beautiful in art, but software development? Computers do exactly what you tell them to do, and to do that, you need to KNOW EXACTLY what you want them to do.

My advice is get your nose into 3-4 books about OS development and computer architecture just to start, because that is the VERY LEAST you can …
Comment too long. Click here to view the full text.
>>
Nigel Warringlit - Fri, 03 Feb 2017 22:33:09 EST ID:e7bTcYy7 No.36499 Ignore Report Quick Reply
1486179189075.png -(38895B / 37.98KB, 620x790) Thumbnail displayed, click image for full size.
>>36489
> I would start open source with my distro and try to build our own unique programs with more powerful features. If the user base for my distro grows enough then companies like Adobe and Microsoft may begin to add support. Or we could program a runtime environment like wineskin that allows more seemless useage of Windows and even Apple programs.
So basically you want to be a shittier version of Canonical? I don't think you understand at all. Thousands of people are slowly building everything you already described for free except this:
>and try to build our own unique programs with more powerful features
Because anyone who does this will get boycotted by the open source community for being capitalist scum. I know you're market is the general consumer but quite often the moment they touch open source shit they stick with it.


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?


Learning post code academy by Archie Craffingback - Wed, 11 Jan 2017 20:20:36 EST ID:AtsFlC7n No.36450 Ignore Report Reply Quick Reply
File: 1484184036841.jpg -(2518328B / 2.40MB, 2240x1604) Thumbnail displayed, click image for full size. 2518328
Looking for something to do after code academy

Can't find anything.

I just finished the lessons of Javascript, Python. Should I learn another before moving on?

what do I move onto?

Thanks,
7 posts and 1 images omitted. Click Reply to view.
>>
Simon Greenville - Thu, 19 Jan 2017 00:04:41 EST ID:W/zS63TD No.36473 Ignore Report Quick Reply
>>36468
I think it'd be better to learn the more modern problem solving methods, then only after that, maybe learn C to understand how it's happening behind the scenes.
>>
Fucking Suzzlebanks - Fri, 20 Jan 2017 03:44:22 EST ID:AtsFlC7n No.36475 Ignore Report Quick Reply
>>36467
besides algorithmic theory, Ive done a good part of that already

I like the delve into whatever

every CS person loves helping me, its neat
>>
Fucking Suzzlebanks - Fri, 20 Jan 2017 03:45:45 EST ID:AtsFlC7n No.36476 Ignore Report Quick Reply
>>36468
I enjoy it because its like a puzzle
and its more engaging than doing suduko everyday

I am replacing physical puzzles with this because its a skill that may or may not make me feel less lame for wearing two nintendo powergloves while blasting new wave retro wearing ray bans
>>
Charlotte Crullerfuck - Sat, 21 Jan 2017 14:42:03 EST ID:sGFR0zid No.36479 Ignore Report Quick Reply
>>36475

If your goal is just to challenge yourself, and you want to explore algorithms, I really recommend codingame.com . There is a large set of challenges that range from straightforward to extremely difficult, and there are also open-ended challenges like designing AIs to beat other AIs in races. And then every few months they have online hackathon type events.
>>
Henry Clibblehall - Mon, 23 Jan 2017 19:44:33 EST ID:AtsFlC7n No.36480 Ignore Report Quick Reply
>>36479
that sounds fun, thanks


silly java question by Nicholas Pondleman - Wed, 18 Jan 2017 04:54:58 EST ID:zKC23xNi No.36465 Ignore Report Reply Quick Reply
File: 1484733298660.jpg -(83487B / 81.53KB, 480x600) Thumbnail displayed, click image for full size. 83487
Hi sorry if the question may sound dumb but i must do a for each in a class, with an arraylist which is placed in another class and i am unable to do that because it seems that arraylists are visible only in their class and if i do a get method i can't do the for each
thanks in advance
2 posts omitted. Click Reply to view.
>>
Esther Brookham - Wed, 18 Jan 2017 12:09:00 EST ID:sGFR0zid No.36470 Ignore Report Quick Reply
>>36469

Note this is a horrible practice but if you want direct access to the instance variables from different classes (not subclasses) you only get it with public access modifiers.
>>
Shit Maffingteck - Wed, 18 Jan 2017 16:45:54 EST ID:9QSfnS0r No.36471 Ignore Report Quick Reply
>>36470
This entirely depends on preference and/or the language you're programming in.
If it's necessary to observe some state of your object that can not be changed in the same manner it's fine imho.
>>
Shit Maffingteck - Wed, 18 Jan 2017 16:56:18 EST ID:9QSfnS0r No.36472 Ignore Report Quick Reply
>>36471
s/can not be changed/can be changed/
>>
Charles Blazzlekotch - Thu, 19 Jan 2017 17:10:57 EST ID:VE+xmvqo No.36474 Ignore Report Quick Reply
>>36472
You type like a fag and your shit's all unix.
>>
Charlotte Crullerfuck - Sat, 21 Jan 2017 14:38:35 EST ID:sGFR0zid No.36478 Ignore Report Quick Reply
>>36471

This is a Java thread, we're only talking about Java.


Help me with Java by Albert Focklewill - Wed, 11 Jan 2017 08:49:00 EST ID:VyheDnFA No.36448 Ignore Report Reply Quick Reply
File: 1484142540583.jpg -(14021B / 13.69KB, 259x194) Thumbnail displayed, click image for full size. 14021
I must learn java and i study it since october but i really didn't understand much
i have some skills with assembly (IJVM) and C but i find Java really hard
do you have any tips or books to suggest me?
>>
Hedda Dundlepan - Wed, 11 Jan 2017 14:45:20 EST ID:sGFR0zid No.36449 Ignore Report Quick Reply
If you want an "intro to programming book that is also a good introduction to Java" you could try "Java: An Introduction to Problem Solving and Programming," which was not bad except for the dozens of weird typos my copy had. If you want a "I am already decent at programming and I want something that talks to me at my level" book, I'd suggest "Core Java."
>>
Lydia Blythebanks - Sat, 21 Jan 2017 11:36:47 EST ID:QFj3NJQM No.36477 Ignore Report Quick Reply
>>36448
Create an Android app, doesn't matter if idea exists already. I recommend gang of four design patterns book.


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.