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


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
Scheme and C in one project by Clara Nicklewater - Wed, 28 Jun 2017 07:36:33 EST ID:M2B2u4Js No.37091 Ignore Report Reply Quick Reply
File: 1498649793698.jpg -(230329B / 224.93KB, 595x596) Thumbnail displayed, click image for full size. 230329
I am working on a project in C.
It would be real neato if I had a way to evaluate a Scheme expression in the same project also.
Is there a (preferably BSD-licensed, but any open-source one will do) implementation of Scheme which can be statically linked to my program?
1 posts omitted. Click Reply to view.
Betsy Binkinhatch - Sat, 15 Jul 2017 09:00:31 EST ID:/J5GcbqQ No.37111 Ignore Report Quick Reply
Tinyscheme looks as though it's approximately what I need. THanks for the recommendation!
Is there some way to actually call the evaulator thingy and pass it a C string? I was hoping to do something like

int x = eval("(function arg1 arg2)");
Ernest Pummerkotch - Sun, 16 Jul 2017 12:51:29 EST ID:e7bTcYy7 No.37112 Ignore Report Quick Reply
Guile is exactly what op wants but Guile does not compile to C nor does it even compile. Its a c library that allows you to call guile-scheme code from C and also define C methods and values that can be called from that code.

This tutorial will have you make a simple tortoise api to GNU plot then forward that api to a guile script or repl.
Nell Fanbury - Wed, 19 Jul 2017 00:17:16 EST ID:puU0YpJr No.37115 Ignore Report Quick Reply
Is that a little kid or a midge?

I feel like this is one of those images around the internet that's always seen but the backstory is never found. Until a few years later you read the context in some Taiwanese website randomly bumped into online and it's anti-climatic because the context you had envisioned was so much better.
Molly Dellystock - Thu, 20 Jul 2017 16:56:18 EST ID:WwsCpz20 No.37119 Ignore Report Quick Reply
Thanks for the recommendation guys,
I eventually went for one called tiny-lisp. https://github.com/matp/tiny-lisp
Conveniently, the license permits me to take it and use it in my project, modifying it as I want.

I think I found it on one of those clickbait shits called "Top 10 awkward family photos" or something. The children were told they could wear what they wanted or something
Jarvis Crirrychot - Sat, 22 Jul 2017 13:02:29 EST ID:T/bDhTRa No.37122 Ignore Report Quick Reply
it's a spaz/tard/whatever...
look closely at his hands... it's armrests on a wheelchair. mom has her hands on the headrest.
especially the brother in the middle looks like he had a talking-to about his "special" family member.

kid clown can't sit properly and might have lost his right index finger as well... or the costumer lost patience.

SQL???? by Frederick Billingham - Thu, 29 Jun 2017 23:03:54 EST ID:CWRrpPJ1 No.37095 Ignore Report Reply Quick Reply
File: 1498791834108.jpg -(13839B / 13.51KB, 312x311) Thumbnail displayed, click image for full size. 13839
heya proggers

what are the career prospects for those proficient in SQL and SQL alone?

Took a year long course in marketing research and I realize the databasers seem more of my folk than than the marketeering knobs.

What languages complement SQL? What are some good resources for learning SQL?

Thanks proggies
2 posts omitted. Click Reply to view.
Charles Poggletack - Thu, 06 Jul 2017 03:12:10 EST ID:9QSfnS0r No.37099 Ignore Report Quick Reply
>Are you nuts? SQL is second only to JavaScript on the list of popular technologies on StackOverflow's 2017 developer survey. SQL has its flaws but there's hardly anything comparable.
That's probably not what the post was meant to say. SQL is still very popular for uses where it is appropriate, meaning medium amount of loosely coupled data.
But (gladly) many people stopped using it to store lots of tightly coupled data, they use NoSql DBs like ElasticSearch and such.

Another factor is that SQL is a pain to keep secure and that is regarded as a widely accepted fact, it's just that there isn't any practical real alternative as of yet.
Priscilla Bingerworth - Mon, 17 Jul 2017 07:47:32 EST ID:2Zau/Z1R No.37113 Ignore Report Quick Reply
Building databases is a hefty job and is usually split in three phases, sometimes assigned to different teams: analysis, design and realization. Writing SQL is involved only in the last part, and is merely a translation of the output of the "design" phase (which is based on the output of the analysis, duh)
If you want to get serious about databases, I suggest learning first and foremost about relational algebra, ensuring the integrity of data, Entity-Relationship diagrams, use-case design, first order logic (FOL) and the relational model of data. That is required and necessary to having the logical and semantically correct model for your data, independent of which DBMS you are going to chose. It is a very tricky subject at first and you should never start writing any SQL code without first analyzing what you want to build, because there are often many ambiguities in our imagination and lots of stuff that just needs to be analyzed in order to get an optimal, coherent result.
Lydia Buzzcocke - Wed, 19 Jul 2017 15:10:59 EST ID:hh4uYXvR No.37117 Ignore Report Quick Reply
> what are the career prospects for those proficient in SQL and SQL alone?
not many, unless you're a Microsoft SQL (TSQL) guru. You do need to know your way around the OS the DB is on as well, if you are to solve problems with the SQL server.

Unless you're also a programmer in some way, you're unlikely to get your foot in, as you are expected nowadays to not only manage the DB and be able to query, but to expand it and integrate it in a product as well.
Where I work (as a sysadmin), the programmers take care of DB layout, integration etc... I just take care of the server, user rights and make sure it all runs smoothly and is backed up.

The REAL challenge is balancing the workload properly between DB and programs...

What languages complement SQL? What are some good resources for learning SQL?
Any language can speak to any language, provided there's an API or library
The answer really depends on if you want to make practical apps or websites. C# is a good (albeit Microsoft-centric) start, as you can both do .exe apps and websites (with ASP.NET) quite easily. I find both MSSQL and Visual Studio have some good features to help beginners along and save time.

If you decide on C#, have a look at LINQ to SQL and Entity Framework (and linqpad for debuggin' and tweakin') as those can help you make safe DB calls without too much fuss.
Comment too long. Click here to view the full text.
Betsy Bommlebut - Thu, 20 Jul 2017 12:50:07 EST ID:xjxP6QN5 No.37118 Ignore Report Quick Reply
> Entity Framework
If you do this you'll never really understand data. Avoid object-relational mappers like the plague (cause they are a plague), see >>37113 for the straight dope
Wesley Bardhood - Fri, 21 Jul 2017 14:41:06 EST ID:9QSfnS0r No.37121 Ignore Report Quick Reply
Sometimes you are forced to, because your colleagues are using it or your boss wants you to use it because they think it makes your codebase portable across database daemons.
I hate ORMs with fervor but I still use one almost every day.

A ridiculous sequence of courses by Doris Blatherstock - Sun, 04 Jun 2017 02:38:16 EST ID:HC1vVHLz No.37033 Ignore Report Reply Quick Reply
File: 1496558296564.jpg -(18091B / 17.67KB, 480x360) Thumbnail displayed, click image for full size. 18091
Hello, I made and actually did all this (including the 'grad level' research electives, except for the coding theory book)

It's easier than it looks, it took me 3 years to do that. I did it about 3-4 hrs a day at first but then everything kind of snowballed and I finished it with only 1hr a day after the first year. These days I'm finishing The Art of Computer Programming series, I'm done up to book 4A and doing 4B draft at the same time. I just do it 20-30mins a day.

I cannot shill TAOCP enough, it totally changed me from amateur to professional computer scientist by just doing hundreds and hundreds of exercises. 20mins a day, for one year, it's all you need for the first book. Anyway, pick and choose what you want from this list and enjoy

I make money from cloning shopify apps, and I work P/T on https://turtle.ai/ though much more infrequently these days. I started out shilling myself on elance (now "upwork") as a jr developer and literally taking jobs from 3rd world countries for less than I would spend on lunch. I also work 2 days a week at my local university doing "ML" (statistics) for a cancer research lab making peanuts but it's research, and fun to do, and I don't need the money. The book in that above link, "Parallel and Sequential Algorithms" was directly responsible for the lab hiring me. Anyway anons I'm here to tell you to try this have a good day.
4 posts omitted. Click Reply to view.
Charles Crickleman - Mon, 10 Jul 2017 20:29:55 EST ID:Ay6PEFuC No.37109 Ignore Report Quick Reply
What do you mean code schools? Like programming boot camps? Most of those are legit, but you only get out what you put in and they're more about tools and concepts (e.g. for front/back end web development) than the basic skills that you need to be a decent programmer.
Graham Himmerham - Tue, 11 Jul 2017 14:10:19 EST ID:MNLHjix1 No.37110 Ignore Report Quick Reply
Okay, could you recommend any?
Anything to look out for?
Polly Boddlelock - Wed, 19 Jul 2017 00:15:00 EST ID:9plGIS8Y No.37114 Ignore Report Quick Reply
Thanks for the curricula brah. Currently learning about learning. Real interesting stuff. I'm already a fast learner but maybe knowing how it works will help me git gud faster.
Lydia Buzzcocke - Wed, 19 Jul 2017 14:42:05 EST ID:hh4uYXvR No.37116 Ignore Report Quick Reply
Thanks for the link, I could use a touch-up on specifically my math (esp. algrebra) and problem solving skills...

Lots of great reading in there. "Parallel and Sequential Algorithms" is really interesting

That's my summer vacation covered :-D
Archie Fongerlodging - Thu, 20 Jul 2017 22:30:07 EST ID:eZVREo4y No.37120 Ignore Report Quick Reply
Anon quit being a fag and mentor me on making money in crypto

custom PHP Framework by Fucking Billingforth - Mon, 07 Mar 2016 10:16:06 EST ID:5O5Et4Rv No.35282 Ignore Report Reply Quick Reply
File: 1457363766264.png -(45520B / 44.45KB, 410x233) Thumbnail displayed, click image for full size. 45520

wrote this php framework and would appreciate some constructive criticism.


(questions about why write another framework, and why not use Symfony, Phalcon, Laravel… I'm not interest in)

Clara Droblingmatch - Mon, 07 Mar 2016 19:23:43 EST ID:5q2tULje No.35283 Ignore Report Quick Reply
Besides using PHP?

srsly nice work, will hack.
Phineas Clittingchick - Sun, 26 Jun 2016 06:46:28 EST ID:vn92kpWi No.35768 Ignore Report Quick Reply
> database abstraction
Like every other framework you fail to grasp the nature of data and databases and support the ignorance of uneducated programmers.

For comparison, what do you think of the following "programming abstraction"?

> function setVar($varname, $value)
> function getVar($varname)
> function makeFunc($funcname, array $statements)
> function callFunc($funcname, $param1 = null, $param2 = null)
Nell Goodway - Fri, 07 Jul 2017 13:20:54 EST ID:PULlb7sM No.37105 Ignore Report Quick Reply
Angus Foggleson - Sat, 08 Jul 2017 03:17:55 EST ID:Ay6PEFuC No.37106 Ignore Report Quick Reply
That's some top shelf necro samefagging, Bru.

Chanpink imageboard by Polly Wankinworth - Fri, 07 Jul 2017 00:30:46 EST ID:bQ0uc9Dn No.37103 Ignore Report Reply Quick Reply
File: 1499401846015.jpg -(658384B / 642.95KB, 1920x1080) Thumbnail displayed, click image for full size. 658384
Hey /prog/
What do you think of this live imageboard I made?


Python Curses and Unicode? by Cornelius Cungerstock - Thu, 15 Jun 2017 00:06:52 EST ID:UelYniJo No.37066 Ignore Report Reply Quick Reply
File: 1497499612658.jpg -(141192B / 137.88KB, 1920x1200) Thumbnail displayed, click image for full size. 141192
Hai /prog/ How do you print Unicode characters with the curses engine? I've tried googling it, but can't find a direct answer. I get a UnicodeEncodeError when using the addstr(). Does curses not support Unicode? Are there other options to use that are like curses but use Unicode? I don't wanna go to stackexchange cuz they're dicks
10 posts omitted. Click Reply to view.
Nicholas Lightville - Thu, 22 Jun 2017 15:27:38 EST ID:iY001LBY No.37081 Ignore Report Quick Reply

curses.init_color(17, 200,200,200)

curses.init_pair(1, curses.COLOR_MAGENTA, curses.COLOR_BLACK)
curses.init_pair(2, curses.COLOR_RED, curses.COLOR_BLACK)
curses.init_pair(3, curses.COLOR_CYAN, curses.COLOR_BLACK)
curses.init_pair(4, 17, curses.COLOR_BLACK)

print curses.can_change_color() #returns True
print curses.color_content(17) #(200,200,200),
stdscr.addstr("test",curses.color_pair(4)) #yet this text is blue
Rebecca Bremblefetch - Thu, 22 Jun 2017 17:23:15 EST ID:eHw3w0GL No.37082 Ignore Report Quick Reply
1498166595626.gif -(1025807B / 1001.76KB, 240x190) Thumbnail displayed, click image for full size.
I got the same result using xterm. To fix it I had to add this line to ~/.Xresources:

xterm*color255: true

And set the terminal:

export TERM=xterm-256color

I think if you just set TERM then it pretends to work, but actually doesn't.

Hope that helps.
Angus Fonderdock - Sat, 24 Jun 2017 23:57:48 EST ID:h+zCLZ09 No.37083 Ignore Report Quick Reply
Thanks for the suggestion pal. It didn't quite work for me, but I might be doing it wrong. Are you using the default Mac terminal or do you use the Xquartz terminal? I'm using the default generic one. I installed Xquartz - does the Xresources file apply to only the xquartz terminal, or does it also apply to the default Mac terminal?
Thanks for the assistance!
Clara Dillychore - Tue, 27 Jun 2017 09:02:54 EST ID:bwiwG/Wt No.37088 Ignore Report Quick Reply
I'm using bog-standard xterm under debian.

You'd have to figure out how to get either mac terminal or xquartz into 256-colour mode. This might help:

Basil Shittingman - Thu, 06 Jul 2017 07:27:26 EST ID:S0dGIlDe No.37100 Ignore Report Quick Reply


Convert this file to PNG. by Archie Creshford - Mon, 26 Jun 2017 12:44:29 EST ID:wVfdD7B/ No.37084 Ignore Report Reply Quick Reply
File: 1498495469448.jpg -(153984B / 150.38KB, 640x480) Thumbnail displayed, click image for full size. 153984
I bought a comic from comixology and downloaded the files to my android. I wante to make a local backup.
Here is one of the files http://www69.zippyshare.com/v/0KizzaQS/file.html
Can someone convert it to PNG?
Pic unrelated.
1 posts omitted. Click Reply to view.
Hugh Sogglegold - Tue, 27 Jun 2017 04:27:11 EST ID:KX1TeUwq No.37087 Ignore Report Quick Reply
It can't be opened by those apps.
The files are not in usual image formats and can only be opened through comixology app. This is why I am asking if there is a script to convert them.
Clara Dillychore - Tue, 27 Jun 2017 09:26:43 EST ID:bwiwG/Wt No.37089 Ignore Report Quick Reply
Looks like it's DRMed. Does this help at all?

David Sirringson - Tue, 27 Jun 2017 14:54:18 EST ID:oLIL5vaK No.37090 Ignore Report Quick Reply
There is no drm free option for this comic. I downloaded the comic on my android and it was a sequence of files and I uploaded one of them at Zippyshare to see if someone can open it.
But thanks.
John Sirrydotch - Thu, 29 Jun 2017 11:28:25 EST ID:9QSfnS0r No.37093 Ignore Report Quick Reply
If you are buying crippleware digital products and then ask people to de-cripple it you are part of the problem. There are plenty of places where you can drm-free products and just imho if the authors can't be bothered to supply that option at any price then I can't be bothered to give them money for it.
Not if there is anything that's not somewhere on torrents/usenet/scene sites.
John Sirrydotch - Thu, 29 Jun 2017 11:40:38 EST ID:9QSfnS0r No.37094 Ignore Report Quick Reply
OP sorry if that response seems preachy,
but just download a pirated version of the comic you bought and think that is your backup.
Then just buy comics from people who actually don't sell you defective files.

9/11 by HELP - Tue, 27 Jun 2017 02:54:28 EST ID:PQNCtl9i No.37086 Ignore Report Reply Quick Reply
File: 1498546468140.jpg -(42883B / 41.88KB, 475x288) Thumbnail displayed, click image for full size. 42883
some girl named EmilyisPro on Twitch.tv claimed that she can send radio signals to people and also said that she did it while in a plane! she's apparently a walking cell phone.
she's endangering our national security and I don't know who to contact!
fix my problem.

ISO by Hamilton Hurringgold - Sat, 17 Jun 2017 13:28:42 EST ID:D3O7TRoe No.37073 Ignore Report Reply Quick Reply
File: 1497720522706.png -(1157756B / 1.10MB, 1920x1200) Thumbnail displayed, click image for full size. 1157756
Menu driven installer tutorials, howto.

Wanting to build a CLI menu installer to run system commands similar to setting up a headless server. Would need to work in SSH.
Ebenezer Shittingfoot - Sat, 17 Jun 2017 19:04:40 EST ID:MSuE7kG8 No.37074 Ignore Report Quick Reply
The quick-and-dirty way would be to use bash and something like this:


while true; do
echo ''
echo 1 - Do thing 1
echo 2 - Do thing 2
echo 3 - Do thing 3
echo q - Quit
echo ''

read -p'>' -n1 option
Comment too long. Click here to view the full text.
David Checkleworth - Sat, 17 Jun 2017 20:45:40 EST ID:MSuE7kG8 No.37075 Ignore Report Quick Reply
1497746740284.png -(6509B / 6.36KB, 484x316) Thumbnail displayed, click image for full size.
You can also use whiptail if you're looking for something more fancy:


selection=$(whiptail \
--backtitle "This Is The Backtitle" \
--title "This Is The Title Title" \
--default-item Boobies \
--menu "Please select something" 20 75 8 Boobies "This is a description of boobies" Kittens "This is a description of kittens" Drugs "This is a description of drugs" 3>&1 1>&2 2>&3)
echo You selected $selection


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
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?
2 posts omitted. Click Reply to view.
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.
Phineas Sungerspear - Tue, 30 May 2017 01:02:30 EST ID:z/6RzCAH No.37008 Ignore Report Quick Reply

why not just keep track of the different vertices? if two triangles share vertices, they are adjacent
Cedric Droshkere - Wed, 31 May 2017 02:13:39 EST ID:P6PS9CBz No.37011 Ignore Report Quick Reply
I agree, if two triangles share a vertex then they must be adjacent. This is true in any number of dimensions.
Edward Dozzlebury - Sun, 04 Jun 2017 17:05:46 EST ID:z/6RzCAH No.37041 Ignore Report Quick Reply
i guess it depends on your definition of adjacent, but what i meant was, if they share two vertices, they must be adjacent.
snurrepupp - Mon, 05 Jun 2017 18:42:29 EST ID:LBUM/d2l No.37058 Ignore Report Quick Reply

Yeah. Touched briefly on using vertices in my prev post.
I'm in the process of redoing my not-strictly-D20-related shit to better accommodate vertices. Gonna have a go once that's done.

I guess I'll be back when I run into more trouble I can't work out.
Or alternatively, when I can provide a download link to the finished thingy.

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

Doris Blatherstock - Sun, 04 Jun 2017 02:22:53 EST ID:HC1vVHLz No.37030 Ignore Report Quick Reply
Yes, CMU

The beginner courses are only slides/pdfs, but the "advanced" (it's not that advanced) course has full lectures on youtube.
Priscilla Babbercocke - Sun, 04 Jun 2017 08:09:41 EST ID:p6i2oGw1 No.37036 Ignore Report Quick Reply
The manga guide to databases is half decent, but my favorite book is Toon Koppelaar and Lex de Haan's Applied mathematics for database professionals. A pdf version is easily found online.

I also recommend you read Codd's paper A relational model of data for large shared data banks. Read it, look up the words, reread it until you get it. Then read it a few more times.

It's useful to understand hierarchical, network, relational and ER data models, to be able to distinguish them and translate data models between them. The meaning of terms like entity, relationship and relation depend on the particular data model you're using. Every online blog and tutorial will teach you a mismash of concepts mostly based on the old network data model but call it ER modeling. If you want to understand the real entity-relationship model, read Chen's paper The entity-relationship model - toward a unified view of data.

CJ Date's An introduction to databases is like the reference bible, but I'm not sure it's the best starting point.

Don't bother with Wikipedia, it's overcomplicated and not very accurate. Ignore blogs, online tutorials (hurr tutorialspoint), product documentation, etc. Ignore anything that mentions OOP / classes.
Priscilla Babbercocke - Sun, 04 Jun 2017 08:10:53 EST ID:p6i2oGw1 No.37037 Ignore Report Quick Reply
Formatting fail, I suck. nb

Programming Stories by Cedric Trotdale - Mon, 29 May 2017 22:15:16 EST ID:FNUGTkco No.37007 Ignore Report Reply Quick Reply
File: 1496110516216.jpg -(30817B / 30.09KB, 570x570) Thumbnail displayed, click image for full size. 30817
Given the turbulence /prog/'s been through recently I thought it would be fun to have a thread about experiences in programming. Tell us about your triumphs, defeats, crazy situations you've been in, times you've learned super-cool stuff, times you've had to learn super-uncool stuff, weird office politics, weird government politics, crazy people you've worked for, bat-shit insane APIs, Sales and HR, clueless management and all that good stuff.

Let's have a story thread.
Fanny Wemmlemat - Sun, 04 Jun 2017 02:27:29 EST ID:ofVPeViF No.37032 Ignore Report Quick Reply
I don't got any stories, but I immediately thought of these ones:

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