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
software engineers by Ian Fonningfield - Mon, 31 Aug 2015 21:30:52 EST ID:L/We2WuN No.34527 Ignore Report Reply Quick Reply
File: 1441071052066.jpg -(51758B / 50.54KB, 960x774) Thumbnail displayed, click image for full size. 51758
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.
32 posts and 5 images omitted. Click Reply to view.
Shitting Gudgecocke - Fri, 15 Apr 2016 02:24:02 EST ID:oZPR2pbJ No.35490 Ignore Report Quick Reply
>You mean type errors?
I'm not sure you understood what I said... but, basically, I mean I'd rather have a compile-time error (Type errors are (usually) one such error of this kind.) than a run-time error. I'm not saying that it's a silver bullet, but only that it's better than what it came before it.

>I'm convinced that persistent programming problems are intractable.
I hope that you don't think that confusing feet with meters is an intractable problem.
Frederick Peblingbutch - Wed, 23 Nov 2016 15:12:27 EST ID:QFj3NJQM No.36310 Ignore Report Quick Reply
shittiest part is the fucking meetings

fun part is not finding a solution from stackoverflow or github and building it yourself
Eugene Sickleridge - Mon, 28 Nov 2016 15:56:10 EST ID:o7NpBz5X No.36336 Ignore Report Quick Reply
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 ID:e7bTcYy7 No.36437 Ignore Report Quick Reply
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 ID:D7/rI9fU No.36438 Ignore Report Quick Reply
Yeah but you still have to touch Java and are therefore living in sin.

where to start? by Edward Hepperforth - Tue, 15 Nov 2016 21:01:50 EST ID:fItQgQqz No.36297 Ignore Report Reply Quick Reply
File: 1479261710490.jpg -(32631B / 31.87KB, 447x456) Thumbnail displayed, click image for full size. 32631
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
9 posts and 1 images omitted. Click Reply to view.
Shit Benderspear - Sat, 24 Dec 2016 18:59:01 EST ID:9QSfnS0r No.36406 Ignore Report Quick Reply

Look the meme programmer is back this isn't the old textboard /prog/, which is still around, so join your fellow outlaws from the future.
Fanny Clongerstock - Sun, 25 Dec 2016 08:02:41 EST ID:nBZoNZP6 No.36407 Ignore Report Quick Reply
Implying you even did any of this you scrub.
lisp is a meme, fuck functional programming
George Fiblingchut - Mon, 26 Dec 2016 03:50:03 EST ID:mfkLzG/S No.36412 Ignore Report Quick Reply
>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 ID:FNUGTkco No.36418 Ignore Report Quick Reply
1482943437588.jpg -(60780B / 59.36KB, 529x529) Thumbnail displayed, click image for full size.

Scotty, give me maximum pretentiousness.
Henry Pickspear - Thu, 29 Dec 2016 20:39:18 EST ID:29ygicdt No.36432 Ignore Report Quick Reply

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

Makefile problem by Hannah Drummlewill - Wed, 28 Dec 2016 13:47:24 EST ID:677AANqx No.36419 Ignore Report Reply Quick Reply
File: 1482950844378.png -(5817B / 5.68KB, 225x225) Thumbnail displayed, click image for full size. 5817
I`ve been trying to make a project on unix, but yesterday I ran to a problem I just simply cannot solve.
I work on windows mostly and am Makefile noob.

I have everything installed up. But makefile yields: ".lib/arduino.a" no file or directory.
I figured out it must be some logical mistake in makefile; that it wants arduino.a before it is compiled.

Could anyone help me out?

Makefile: http://pastebin.com/QNGT1XNm
Readme: http://pastebin.com/ZtEA3SqW
Directory structure: http://pastebin.com/JLe8XNRB
5 posts omitted. Click Reply to view.
Hannah Drummlewill - Wed, 28 Dec 2016 15:53:02 EST ID:677AANqx No.36425 Ignore Report Quick Reply
Guys that`s it I guess.

.lib/arduino is not valid unix path, as far as I know.

I changed it to "lib/arduino" and it got further. I still get error, but different one.

Thank you very much for your help.
Hannah Drummlewill - Wed, 28 Dec 2016 16:16:04 EST ID:677AANqx No.36427 Ignore Report Quick Reply
Ok, it seems I`m wrong anyway.

I left only arduino build section and tried to make:
make: lib/arduino.a:: No such file or directory
make: *** [all] Error 1

What is the reason?
  1. The build needs aduino.a but they did`t send me the file with the rest of the project.
  2. The makefile includes BUILDING the static library "arduino.a" but it is not able to build it because I do something wrong.

Is there any possibility it caused by the reason no. 2?
Molly Casslelock - Wed, 28 Dec 2016 16:52:35 EST ID:kEUrK4GZ No.36428 Ignore Report Quick Reply
If you read through the makefile and did everything you were told to do, one likely possibility is that you're using the wrong version of something. The makefile is copyrighted 2013, so look into that.
Thomas Greenhood - Wed, 28 Dec 2016 19:10:25 EST ID:9QSfnS0r No.36430 Ignore Report Quick Reply
If you are tired of writing your Makefile by hand try out platformio.
It creates project files based on imported libraries via a few command line commands.
Nathaniel Dradgework - Thu, 29 Dec 2016 14:21:32 EST ID:sGFR0zid No.36431 Ignore Report Quick Reply
1483039292221.jpg -(166021B / 162.13KB, 1332x1776) Thumbnail displayed, click image for full size.

>I changed it to "lib/arduino" and it got further. I still get error, but different one.


c++ by Dont hack meh - Thu, 22 Dec 2016 14:24:32 EST ID:Jf4pElwU No.36392 Ignore Report Reply Quick Reply
File: 1482434672770.jpg -(6913B / 6.75KB, 182x251) Thumbnail displayed, click image for full size. 6913
Anyone that can explain how to return the value after the change?

using namespace std;
class Pyre
float width;
float depth;
float height;

float change(float, float);
Comment too long. Click here to view the full text.
7 posts omitted. Click Reply to view.
Trustred - Fri, 23 Dec 2016 04:01:29 EST ID:Jf4pElwU No.36400 Ignore Report Quick Reply

what can i use instead of swap then if i need to change the base (50,50) with the height (100) with just calling one method. the base still needs to be a square after the switch and only one called method is allowed.
Trustred - Fri, 23 Dec 2016 04:57:58 EST ID:Jf4pElwU No.36401 Ignore Report Quick Reply

thx alot!

i ended up doing this

Pyramid Pyramid::change(float &side1, float &side2)
side1 = side2;
return *this;

and called three times

pyr.change(pyr.depth, pyr.height);
Comment too long. Click here to view the full text.
Hannah Soblingwater - Fri, 23 Dec 2016 10:47:44 EST ID:9QSfnS0r No.36402 Ignore Report Quick Reply
If you just use assignment instead of std::swap you'll override the left hand side but leave the right hand side as it is.
Be aware that using Pyramid Pyramid::change(float &side1, float &side2)
will just use the memory location of whatever you pass into that function, even it doesn't belong to the current instance of Pyramid.
This defeats the purpose of making it a method.

you could as well use
pyr.depth = pyr.height;
pyr.height = pyr.width;
pyr.width = pyr.depth;

for the same result.

Comment too long. Click here to view the full text.
Hannah Soblingwater - Fri, 23 Dec 2016 10:54:35 EST ID:9QSfnS0r No.36403 Ignore Report Quick Reply
it should be

float Pyramid::constantAreaSide() {
return (float)pow(Pyramid().baseArea(), 0.5);
Archie Duckbanks - Sun, 25 Dec 2016 19:24:22 EST ID:9QSfnS0r No.36408 Ignore Report Quick Reply
Check out these youtube playlists:

Most channels related to c++ are highly autistic and that guy actually is watchable, highly recommend it. It doesn't cover everything you have to learn but it explains the whole brain-cancer inducing stuff c++ exhibits in a digestible way.

Finding Code Behind Submit Button by George Wobblestock - Sun, 18 Dec 2016 17:06:59 EST ID:W/zS63TD No.36384 Ignore Report Reply Quick Reply
File: 1482098819204.jpg -(5336B / 5.21KB, 268x121) Thumbnail displayed, click image for full size. 5336
This is all I have:
<tr><td align="center">
<input type="submit" value="Find me a scale!"><br>

I don't web dev, so where do I start to look? I'm assuming if it's JS then I can find it at least. Here's the page in question
1 posts omitted. Click Reply to view.
Nigel Snodspear - Mon, 19 Dec 2016 05:49:18 EST ID:eKgr8qwE No.36386 Ignore Report Quick Reply
1482144558641.png -(41704B / 40.73KB, 1072x782) Thumbnail displayed, click image for full size.
What this guy said.

The whole load of info you enter is inside a form, and when you click the button all the elements on the form get submitted to the action url shown in this pic. You can use the dev tools inside firefox or (probably) chrome to see this.

You're not wrong in thinking that there could have been a click event handler attached to the button that maybe did some validation of the form details before sending in a different way.
Nigel Snodspear - Mon, 19 Dec 2016 05:50:18 EST ID:eKgr8qwE No.36387 Ignore Report Quick Reply
1482144618641.png -(141157B / 137.85KB, 1394x642) Thumbnail displayed, click image for full size.
Here's what happens when you click the button, on the network tab of the dev tools you can see the request along with the details I entered. Notes C and E.
John Gedgechatch - Mon, 19 Dec 2016 11:04:38 EST ID:bjMQSk50 No.36389 Ignore Report Quick Reply
1482163478712.jpg -(208301B / 203.42KB, 1117x765) Thumbnail displayed, click image for full size.
Here you go, other posters were right. Doesn't appear to be JS, just a standard form and GET submit to the same PHP page/script.

In this case, you won't be able to get the code for the actual processing of the form, as the PHP is executed on the server before you see the results. It's not like JS where you can freely view the source in your dev tools.
Thankful OP - Tue, 20 Dec 2016 05:09:02 EST ID:F+scHBch No.36390 Ignore Report Quick Reply
Blast! It's PHP! And I would've gotten away with it too if it weren't for you meddling web-devs and your server-side scripts.
*shakes first*
*induces cringe*
*too far? probably*
/me kills self
Ebenezer Goodfield - Tue, 20 Dec 2016 07:13:51 EST ID:eKgr8qwE No.36391 Ignore Report Quick Reply
If you wanted to be a real scrub you could enumerate all possible inputs, write a script to try them all then scrape the results. The info is probably out there somewhere else anyway.

Just saw they have an 'API' [ http://www.scales-chords.com/api/ ] so maybe they are open to sharing the data with you? Email the guy who runs the site and ask.

Greedy algorithm versus curious algorithm by Martin Shittingwill - Sun, 18 Dec 2016 16:03:41 EST ID:9pEy9era No.36383 Ignore Report Reply Quick Reply
File: 1482095021180.png -(31733B / 30.99KB, 377x428) Thumbnail displayed, click image for full size. 31733
Who will win?


ES6 is fucking retarded by Augustus Nollerput - Tue, 18 Oct 2016 01:48:29 EST ID:IWfbDUK4 No.36246 Ignore Report Reply Quick Reply
File: 1476769709316.png -(72298B / 70.60KB, 893x933) Thumbnail displayed, click image for full size. 72298
Since I know you're all script-faggots, what's the best way to get a Javascript job? Have all the nerds already taken them? Should I kill myself now that I've devoted over a year of my life to this twisted language? Thanks /prog/, go fuck yourself.
9 posts and 1 images omitted. Click Reply to view.
Emma Fivingworth - Sun, 11 Dec 2016 10:00:25 EST ID:qRxJCjo+ No.36360 Ignore Report Quick Reply
what are some example projects that would look good to employers? i'm doing one of those coding boot camp things and i've really taken a liking to javascript. i have an OOP background, java, c#, but also really love functional languages, just started learning haskell.

yes ES6 is kinda stupid though also, just worked on a project with a person who exclusively used arrow functions
Walter Backlechidge - Wed, 14 Dec 2016 14:32:06 EST ID:+Ue5tBQC No.36369 Ignore Report Quick Reply
Free vid course. go vanilla or go fuck yourself
Ernest Crunkinforth - Fri, 16 Dec 2016 12:04:45 EST ID:KPocSsNJ No.36376 Ignore Report Quick Reply
Why no, I do not want to opt in to someone's advertising opportunity. Thanks for asking.
Beatrice Bunspear - Sun, 18 Dec 2016 11:46:00 EST ID:+Ue5tBQC No.36382 Ignore Report Quick Reply
It's free real estate tutorials. Just use a disposable mail.
Cedric Dashstodge - Mon, 19 Dec 2016 10:56:47 EST ID:6AJt8tju No.36388 Ignore Report Quick Reply
Are they better than the thousands of other video tutorials and books on the topic I can get without giving an email?

I doubt it.

Moving an object along a line in java w/ slick2d by Betsy Donkinkare - Sat, 17 Dec 2016 19:22:56 EST ID:SWJfiJ9j No.36378 Ignore Report Reply Quick Reply
File: 1482020576040.jpg -(100637B / 98.28KB, 439x249) Thumbnail displayed, click image for full size. 100637
I'm trying to make a missile commander game.
When you shoot your missile, it spawns at it's starting x/y and needs to move in a straight line towards the co-ordinate where the mouse was clicked.
How would I go about generating a list of the x/y coordinates between these two points in a straight line?
Thanks in advance.
Hannah Dockletit - Sat, 17 Dec 2016 19:38:00 EST ID:WLOo3E7i No.36379 Ignore Report Quick Reply
given your starting point (x0, y0) and you mouse click point (xM, yM), you just take x percent of the starting point and (1 - x) percent of the ending point.

so a point 45% between your starting point and your mouse click would be (x, y) where:
x = (x0 * (1 - 0.45)) + (xM * 0.45);
y = (y0 * (1 - 0.45)) + (yM * 0.45);

depending how many points you need, just generate them in a loop.
Betsy Donkinkare - Sat, 17 Dec 2016 20:00:37 EST ID:SWJfiJ9j No.36380 Ignore Report Quick Reply
1482022837040.jpg -(52373B / 51.15KB, 640x475) Thumbnail displayed, click image for full size.
this worked really well! thank you!
have an ancap meme as a reward.

New to C++ by Killian - Mon, 12 Dec 2016 00:11:42 EST ID:bQwdXCse No.36361 Ignore Report Reply Quick Reply
File: 1481519502615.jpg -(37105B / 36.24KB, 433x455) Thumbnail displayed, click image for full size. 37105
I recently bought a "C++ for dummies" book and although some of the aspects are confusing I am able to write pretty simplistic programs and arduino code.

Anyone else new to programming? Any suggestions on books?
7 posts and 2 images omitted. Click Reply to view.
Killian - Thu, 15 Dec 2016 18:25:07 EST ID:bQwdXCse No.36373 Ignore Report Quick Reply

It wouldn't really be all that sad if the inventors of google, facebook, and 420chan were found all dead... no one gave you permission to track my location... inventors cut up... ending in their face being chopped up with stargates in their bodies Pushing the buttons that really PISS THEM OFF...

I don't like the inventor of stargates, portals, color, internet... Because you all take so much and give so little... you don't bring emotional support to youth you simply - while wishing hopeing preying that it is no me talking to you.
Edward Bittingpudge - Thu, 15 Dec 2016 20:02:15 EST ID:kHhxMTEA No.36374 Ignore Report Quick Reply
1481850135540.png -(114165B / 111.49KB, 660x1010) Thumbnail displayed, click image for full size.
>That feel when you get possessed by the spirit of netjester, pbuh.
Esther Sapperkidging - Fri, 16 Dec 2016 10:03:44 EST ID:+Ue5tBQC No.36375 Ignore Report Quick Reply
This is not /stim/ my man
Killian - Sat, 17 Dec 2016 15:01:40 EST ID:bQwdXCse No.36377 Ignore Report Quick Reply
Sometimes what you + just isn't financially what I want... That's why our group has declined to accept any gifts from stargate +ing technology builders...

Your technology, your wholes in time space are too dangerious and if some of you had it your way you'd be pushing other peoples buttons all day wishing someone would find an innocence body their only to death it while 100% space +ing rapid growth mutants beg for the space of moment 1 + praying that moment one never sees all the innocence rapidgrowth mutants death.

So what ever.
Martin Sesslebury - Sat, 17 Dec 2016 20:35:57 EST ID:V5hbNNkO No.36381 Ignore Report Quick Reply
Get off the Internet, Terry Davis. You're drunk and crazy.

Are "soft" tech jobs useless? by Angus Chollymere - Sun, 06 Nov 2016 12:02:44 EST ID:RzCYRoD4 No.36282 Ignore Report Reply Quick Reply
File: 1478451764629.jpg -(85962B / 83.95KB, 958x1313) Thumbnail displayed, click image for full size. 85962
tech companies, are positions like:
-> Project/program Managers
-> "User Experience" Designers
-> Scrum masters

Just fucking useless and meaningless compared to developers and engineers who do the real work?
6 posts omitted. Click Reply to view.
George Geshnirk - Mon, 28 Nov 2016 19:32:27 EST ID:c9gFFBFz No.36339 Ignore Report Quick Reply
my work paid way too much for me to spend two days high as fuck in a Marriott becoming a scrum master. My work uses waterfall and I don't think most of my coworkers (or manager for that matter) even know what scrum is. I think this sort of inefficiency is due to being (indirectly) payed by taxpayers and making murder rocket software for The Man, who takes longer to update to the latest version than we take to develop two
Lydia Pickwill - Mon, 28 Nov 2016 23:04:36 EST ID:e7bTcYy7 No.36341 Ignore Report Quick Reply
Gov pays the leach to make murder rocket software. Leach pays politician to make Gov pay him more money. Leach slows production for more money without fear of losing contract. Steady tax payer income for the leach. Some trickles down to you.

Cedric Grandshaw - Tue, 13 Dec 2016 07:29:17 EST ID:2SsDO2ou No.36365 Ignore Report Quick Reply
>My work uses waterfall
I would place money on this not being the truth, unless you work in defence.
The name 'Waterfall' was conceived by someone writing a book/paper saying 'hey, look at this (mostly) hypothetical shit way of working, no one does this, we do other things'.

Pure waterfall means that if you find a bug after you shipped, then that bug will never be fixed. LOL2BAD SUX2BU.
Agile is a set of rules that almost no one 'working Agile™' follows to the letter, but the basic gist is, plan a short piece of the larger work, do it, review how it went, then repeat the next bit until you're done or run out of time/money.

SCRUM is a proscribed set of meetings that help you 'be Agile™'.
Both are management techniques that don't really need non-developers involved but junior project managers are now called scrum masters to make them feel better about their worthless existence.
Cedric Grandshaw - Tue, 13 Dec 2016 07:32:18 EST ID:2SsDO2ou No.36366 Ignore Report Quick Reply
So I completely missed the fact you say you work in the defence/murder sector.
Still not strictly pure waterfall I'll bet. I used to train rocket/radar/C2 guys how to write good software. Mostly intelligent and decent people, shame they use their brains thinking of better way to kill people...
Clara Tillingshaw - Wed, 14 Dec 2016 10:10:32 EST ID:gA3E5l0l No.36367 Ignore Report Quick Reply
Somehow we have all the resources in the world to kill people better but when it comes to keeping them alive it is impossible to get funding. Humanity is in the middle a protracted mass suicide.

Advice? by Charlotte Clonderstut - Sun, 20 Nov 2016 09:57:41 EST ID:sRAnM3Nm No.36308 Ignore Report Reply Quick Reply
File: 1479653861545.gif -(10060B / 9.82KB, 200x200) Thumbnail displayed, click image for full size. 10060
I think I may have come to wrong board but I am looking for advice. I want to get into the sysadmin field I have experience with Hypervisors and setting up VMs and setting them up for automation. I am really confident in my skills in a enterprise and other mixed enviroment setting but I don't have any formal job experience and an my resume looks pretty dismal.

It seems like most employers want a degree in a crazy field to get a entry level position, I'll be going for an LPIC, Network+/CCNA/RS and CCNA DC cert in a few days. Any tips for a guy shooting for a sysadmin job or a data center tech?
Phyllis Cludgemitch - Sun, 20 Nov 2016 11:03:55 EST ID:jekbcXzU No.36309 Ignore Report Quick Reply
You need to know people. Part of the advantage of going to school is that if nothing else your professors can recommend you. You'll want to try to make friends.
Samuel Bittinghidging - Wed, 23 Nov 2016 15:19:14 EST ID:9QSfnS0r No.36312 Ignore Report Quick Reply
Pretty much, and you don't need a degree for sysadmin tasks, and certs are only worth something if you ace them and get apply for a job over the institute where you're taking the test.
The public job offerings are from people who don't have anybody doing their IT inhouse who want to get away from a third party service contract. Avoid them.

Try to meet somebody who has the position you want and try to get them to ask around for you if they're hiring.
Fucking Dadgebury - Sat, 10 Dec 2016 00:18:48 EST ID:rOfvwfN5 No.36358 Ignore Report Quick Reply
Will do I was thinking of trying to hunt for bars where people with these kinds of positions might hang out and try to make some friends. Maybe I should join a tech based slack chat or something for my area.
Sophie Moshsick - Sat, 10 Dec 2016 04:21:11 EST ID:9QSfnS0r No.36359 Ignore Report Quick Reply
hackerspaces, meetups.com or irc

How do you deploy your python flask/django/whatever apps? by Cornelius Gopperford - Tue, 06 Dec 2016 11:57:07 EST ID:gEtE4wNA No.36353 Ignore Report Reply Quick Reply
File: 1481043427275.png -(19604B / 19.14KB, 570x360) Thumbnail displayed, click image for full size. 19604
Right now, I spin up an EC2 instance, create a new user, install pip and virtualenvwrapper on it, make a virtualenv for my app, put environment variables in postactive, make an ssh key for the user, git push the code, pip install dependencies, create supervisord config file to run gunicorn in virtualenv (and celery or whatever if needed), configure nginx to forward gunicorn, then pray that I didn't forget a step.
I've been playing around with scripts and git hooks to automate some of the process, but I'm also looking around for existing deployment solutions.

Ideally I would just like to spin up a server from a template and be able to push the code up and get it up and running.

Heroku does this beautifully, but too expensive if you need more than a single hobby dyno.

How do you do it?
Oliver Cirringwot - Tue, 06 Dec 2016 16:53:24 EST ID:xZVBmzCD No.36354 Ignore Report Quick Reply
I don't, but there's Ansible, Chef, Puppet, a bunch of things to choose from. I think Salt is the pythonic solution du jour.
David Favingstone - Wed, 07 Dec 2016 10:55:38 EST ID:gEtE4wNA No.36355 Ignore Report Quick Reply
Definitely lots of options out there. I'm reading up on Salt right now, also Fabric.
I found this tutorial which is very similar to my deployment method, and the author links to a fab script to automate the process. https://github.com/realpython/flask-deploy

Looks like it gives you a lot of control over the process, since you're just writing a python script rather than filling out a config file. I've started using cookiecutter-flask for my latest project, so I might be able to include template supervisor/nginx/etc config files and a fab file in my project template.

I've been working from the mindset that I'm gonna need ssh access to the application user, so I was wondering how I would automatically generate a key-pair for it and copy the private key to my machine, since I won't have ssh access to it until I have the key.
But maybe I don't even need it, I'll always have a key for the admin user so I might just keep the git repo under admin's home and use the post-receive to set the work tree to app user's folder.

Jenny Honeycocke - Wed, 07 Dec 2016 18:02:26 EST ID:uXHlOpBk No.36356 Ignore Report Quick Reply
Configuration is one of those things where the short path to the best practice is finding the right thing to copy/paste from.
Edward Fubberlock - Fri, 09 Dec 2016 13:24:32 EST ID:9QSfnS0r No.36357 Ignore Report Quick Reply
learn to use docker-compose, there probably is a ready made yaml file for flask,nginx,mysql, etc..
Has the advantage of being able to use the same tools in production and development, no need for virtualenv.
The only issue are unattended updates/updates in general but you can migrate that if you choose base images which are regulary updated and write your dockerfiles in a way that you can rebuild you images in production.

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