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

Simple Linux Dev

View Thread Reply
- Mon, 20 Feb 2017 03:11:37 EST YL0YFsWq No.36519
File: 1487578297992.jpg -(130895B / 127.83KB, 1080x1080) Thumbnail displayed, click image for full size. Simple Linux Dev
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.
6 posts omitted. Click View Thread to read.
>>
Fanny Gudgespear - Fri, 24 Feb 2017 16:04:55 EST 9QSfnS0r No.36570 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 YL0YFsWq No.36571 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 YL0YFsWq No.36575 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?

View Thread Reply
- Wed, 01 Feb 2017 14:15:17 EST g3naDofA No.36494
File: 1485976517145.jpg -(31367B / 30.63KB, 480x343) Thumbnail displayed, click image for full size. server prob?
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 Ep0R/dTc No.36495 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 E1Wm7o2Y No.36572 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

Get your site going. It should sustain a few dozen/hundreds simultaneous visitors with a crap hardware. It depends on your site (how heavy the content is, how fancy it is).

When you're set and confident (it was a matter of a 2 months working on the server a few hours a week, no prior knowledge about anything) you can do the same thing on a private virtual server, which costs a few bucks a month but gives you access to almost 100% uptime and okay hardware.

Windows Script/Program Send Email in the future

View Thread Reply
- Wed, 15 Feb 2017 06:36:51 EST 1joa5uVv No.36508
File: 1487158611086.png -(1031B / 1.01KB, 32x32) Thumbnail displayed, click image for full size. Windows Script/Program Send Email in the future
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 YL0YFsWq No.36509 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 nUiSQX6z No.36511 Reply
Fuck all that shit nigga do it on linux and write a cron script that cats a file and pipes it to mailx.

Some sort of virus

View Thread Reply
- Fri, 18 Mar 2016 15:59:37 EST kvn5FzQz No.35325
File: 1458331177571.png -(5015B / 4.90KB, 418x66) Thumbnail displayed, click image for full size. Some sort of virus
I need this program away entirely.
5 posts omitted. Click View Thread to read.
>>
Albert Pablingworth - Thu, 02 Feb 2017 20:14:13 EST DkJ9qDoR No.36498 Reply
>>36497
They're actually not letters but rather logograms which represent entire words.
>>
Matilda Feblingmire - Wed, 19 Apr 2017 12:19:19 EST S+TDDgvB No.36736 Reply
>>36498
I thought they represented entire syllables. nb

If you can hack this you are a wizard

View Thread Reply
- Fri, 10 Feb 2017 11:24:20 EST RhO2TfLd No.36500
File: 1486743860258.jpg -(168986B / 165.03KB, 714x1024) Thumbnail displayed, click image for full size. If you can hack this you are a wizard
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.

UNIX Based Operating System For the People

View Thread Reply
- Sat, 28 Jan 2017 01:15:33 EST STgZO5Su No.36481
File: 1485584133672.png -(25980B / 25.37KB, 825x470) Thumbnail displayed, click image for full size. UNIX Based Operating System For the People
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 1 images omitted. Click View Thread to read.
>>
Hamilton Pockdock - Wed, 01 Feb 2017 19:42:53 EST FgGq0PB+ No.36496 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 do to move towards your vision. Then you'll understand if what you have in mind is bullshit or maybe there is a way to make it real.
>>
Nigel Warringlit - Fri, 03 Feb 2017 22:33:09 EST e7bTcYy7 No.36499 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.

Learning post code academy

View Thread Reply
- Wed, 11 Jan 2017 20:20:36 EST AtsFlC7n No.36450
File: 1484184036841.jpg -(2518328B / 2.40MB, 2240x1604) Thumbnail displayed, click image for full size. Learning post code academy
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,
9 posts and 1 images omitted. Click View Thread to read.
>>
Fucking Suzzlebanks - Fri, 20 Jan 2017 03:45:45 EST AtsFlC7n No.36476 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 sGFR0zid No.36479 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.

silly java question

View Thread Reply
- Wed, 18 Jan 2017 04:54:58 EST zKC23xNi No.36465
File: 1484733298660.jpg -(83487B / 81.53KB, 480x600) Thumbnail displayed, click image for full size. silly java question
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
4 posts omitted. Click View Thread to read.
>>
Charles Blazzlekotch - Thu, 19 Jan 2017 17:10:57 EST VE+xmvqo No.36474 Reply
>>36472
You type like a fag and your shit's all unix.
>>
Charlotte Crullerfuck - Sat, 21 Jan 2017 14:38:35 EST sGFR0zid No.36478 Reply
>>36471

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

Help me with Java

View Thread Reply
- Wed, 11 Jan 2017 08:49:00 EST VyheDnFA No.36448
File: 1484142540583.jpg -(14021B / 13.69KB, 259x194) Thumbnail displayed, click image for full size. Help me with Java
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 sGFR0zid No.36449 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 QFj3NJQM No.36477 Reply
>>36448
Create an Android app, doesn't matter if idea exists already. I recommend gang of four design patterns book.
>>
Cyril Dartfuck - Thu, 02 Mar 2017 23:01:48 EST vJcy7jWV No.36584 Reply
1488513708392.png -(625396B / 610.74KB, 512x512) Thumbnail displayed, click image for full size.
>>36449
Thanks for the Core Java recommendation, took a bit of searching to find the right one but it's exactly was I looking for.
nb 'cause I'm new here and unsure what warrants a bump.

Storing lists as the factorized form of single numbers

View Thread Reply
- Wed, 04 Jan 2017 17:30:26 EST zu3jfUuo No.36440
File: 1483569026042.png -(30588B / 29.87KB, 317x332) Thumbnail displayed, click image for full size. Storing lists as the factorized form of single numbers
I was dealing with a SQL database earlier today and I was frustrated because I couldn't make a column hold a list of values in every possible row. I ended up just doing one-hot encoding (and adding 20 columns full of sparse binary data in the process) but I had a thought: what if you use all prime numbers as index values, then simply multiply them together to produce a single BIGINT value. Then, when retrieving data from the database, you simply factorize the value and the prime numbers it yields will tell you what members of the list are present in that row's entry. Like:

userID | movelist
1 -------| 1914

When I want to retrieve the move list for user 1, I'd just:
>SELECT movelist FROM db WHERE userID 1;
which yields 1914. Then I take this number and factorize it yielding [2, 3, 11, 29]. My movelist table looks like this:

index | move
2 ------| jump
3 ------| punch
5 ------| kick
7 ------| eat
11 ----| slash
13 ----| talk
17 ----| scream
19 ----| cry
23 ----| crush
29 ----| fly

I go through the list I generated by factorization and retrieve the details of each move. I eliminated 9 columns of data while only adding a factorization function (the movelist table would exist regardless). In large databases this can save you TONS of space. Now yes, you can only use the first 15 prime numbers before getting larger than BIGINTs can hold, but that's still 14 columns you can eliminate. There might even be a way to utilize different sets of the first 15 primes and store lists of indefinite length.

So my question is, can anyone think of a downside to this that I'm missing? I can't find anything about this on the net. Does it have a name?
3 posts and 1 images omitted. Click View Thread to read.
>>
Oliver Fandock - Tue, 10 Jan 2017 11:04:16 EST 9QSfnS0r No.36446 Reply
Using prime factorization this way is borderline retarded.

Srsly use bitfields.
1 ------| jump
2 ------| punch
4 ------| kick
8 ------| eat
16 ----| slash
32 ----| talk
64 ----| scream
128 ----| cry
256 ----| crush
512 ----| fly

People back in the day would have hit you over the head for that, now cpu cycles are cheap, but not that cheap.
The only advantage your method has is you can store multiple references to the same move in the same value, but as it looks you don't want to do this anyway.

And second if you are concerned about space savings don't use sql.
>>
Oliver Fandock - Tue, 10 Jan 2017 11:11:11 EST 9QSfnS0r No.36447 Reply
Also your method won't save any space versus bitfields because of the pigeonhole principle.

free video editors

View Thread Reply
- Sat, 26 Mar 2016 10:37:10 EST 6MSbhuhv No.35385
File: 1459003030988.gif -(2772899B / 2.64MB, 500x281) Thumbnail displayed, click image for full size. free video editors
can you suggest a good free video-editing software
(thats not too full of itself like Vegas or Adobe)
for Windows?
6 posts and 1 images omitted. Click View Thread to read.
>>
Hollunder Velvetglie - Sun, 10 Apr 2016 13:08:23 EST ZGfcy/cU No.35457 Reply
1460308103380.png -(883500B / 862.79KB, 1600x900) Thumbnail displayed, click image for full size.
>>35405
try Hitfilm.
It's free and can do everything the big ones can.
Runs much faster in my experience
and has even 3D-effects and every little plaything you'll need for prefessional editing.

But you'll have to register to get a free key.

(Key will be provided to your hitfilm-account. Just so you don't go insane like I did, while trying to unlock it!)
>>
Henry Pittbanks - Sat, 07 May 2016 17:13:13 EST UGUCRnOo No.35576 Reply
>>35427
>
>It's not widely used for this purpose, but Blender is the only open source cross-platform video editing software that's worth a damn.
>

Seconding this. Linux user here, I used to use Kdenlive, eventually got mighty sick of it crashing. Blender is rock solid.
>>
Fermented Sodapops - Sun, 08 Jan 2017 09:02:54 EST YoqtmZw1 No.36445 Reply
1483884174446.jpg -(170616B / 166.62KB, 1920x1080) Thumbnail displayed, click image for full size.
>>35457
best idea!

Makes me wonder why schools and univerities in this area keep wasting their money
on Vegas, Corel and other expensive and clunky crap!

Only thing that REALLY pisses me off about HF is the terrible way Hitfilm uses Slow-Mo-Effects!

Scrape a Web Page Help

View Thread Reply
- Sun, 25 Dec 2016 21:54:57 EST W/zS63TD No.36409
File: 1482720897775.jpg -(15813B / 15.44KB, 365x137) Thumbnail displayed, click image for full size. Scrape a Web Page Help
Okay I don't care how inefficient the solution is, but my situation is complicated because here is my page:
https://www.numbeo.com/cost-of-living/rankings_current.jsp

And you type a city into that search bar, and assuming you type something that matches exactly their entry -> you hit enter -> it takes you to a different URL page.

So if it was simple, I would just do it by url, but now I need to actually simulate typing and hitting enter, as well as handing that url direct
10 posts omitted. Click View Thread to read.
>>
Phineas Crabbleforth - Sat, 31 Dec 2016 14:20:20 EST tZM6suYH No.36435 Reply
>>36433
While you're being a stuck up cunt, why don't your greasy edgelord fingers and crack open a fucking book?
>>
Thomas Fanville - Mon, 02 Jan 2017 12:10:40 EST tMBsUfyx No.36439 Reply
>>36433
>implying that's what you get if you search it on youtube

software engineers

View Thread Reply
- Mon, 31 Aug 2015 21:30:52 EST L/We2WuN No.34527
File: 1441071052066.jpg -(51758B / 50.54KB, 960x774) Thumbnail displayed, click image for full size. software engineers
is anyone hear a software engineer or studying it? im starting collage and am think about studying it because of the high pay. an i have some questions.

>what skills do you need
>what was the biggest surprise about your work, something you did not expect.
>how are bonuses earned
>whats the shittest part about your job.
>what do you do day by day, like whats your day at work look like.
34 posts and 5 images omitted. Click View Thread to read.
>>
Eugene Sickleridge - Mon, 28 Nov 2016 15:56:10 EST o7NpBz5X No.36336 Reply
>>35486
So I'm kind of surprised to see someone trying to sell functional programming on here. Maybe you just haven't been around much yet, but "software people" do not want to use a functional programming language. Yes it would make them better programmers for learning it and would solve (or allow the automated solution of) many of their problems, but there is not an ice cube's chance in hell that anything other than Java, Microsoft's languages, C++, and other related atrocities will be used in the vast majority of applications. The reasons for this are social and political. Is it terrible that formal program verification is not being used on vehicles and in implants where program failure could cost human lives? Yes, but you would be better off not wasting your own life in trying to save all those lives lost to memory leaks.

There are limited real-world uses of functional languages in finance and in academia they are much more prevalent. Mathematicians and computer scientists do that stuff all the time. I do use Python for a lot of things myself, so I'm not a total fanatic when it comes to functional programming, but even Python would be an improvement over the state of things in commercial software development right now.
>>
Samuel Dadgenine - Sun, 01 Jan 2017 16:56:09 EST e7bTcYy7 No.36437 Reply
>>36336
Idk man, Scala hits a nice sweet spot for a functional language in a production environment because its compatible with existing java libraries. My employer switched to it a long years ago.
>>
Matilda Hassleham - Sun, 01 Jan 2017 18:55:03 EST D7/rI9fU No.36438 Reply
>>36437
Yeah but you still have to touch Java and are therefore living in sin.

where to start?

View Thread Reply
- Tue, 15 Nov 2016 21:01:50 EST fItQgQqz No.36297
File: 1479261710490.jpg -(32631B / 31.87KB, 447x456) Thumbnail displayed, click image for full size. where to start?
i have no experience with programming besides basic ugly HTML and would really like to get deep into it (not for career purposes, just curious) and was wondering what are good resources that you used/wish you had when you started? i'm really really trying to grasp this stuff but i feel like it keeps slipping right though my fingers
11 posts and 1 images omitted. Click View Thread to read.
>>
George Fiblingchut - Mon, 26 Dec 2016 03:50:03 EST mfkLzG/S No.36412 Reply
>>36407
>a meme

There are 2 languages.

Fortran based and LISP based.

If you learn one of them you know them all, Clojure, Java, C, Haskell, guess which lang they are from?
>>
Charlotte Hundlewell - Wed, 28 Dec 2016 11:43:57 EST FNUGTkco No.36418 Reply
1482943437588.jpg -(60780B / 59.36KB, 529x529) Thumbnail displayed, click image for full size.
>>36412

Scotty, give me maximum pretentiousness.
>>
Henry Pickspear - Thu, 29 Dec 2016 20:39:18 EST 29ygicdt No.36432 Reply
>>36307

was expecting you to say "practice", made me lol

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