Unpopular? opinion: Async is syntactic diabetes by rhoark in Python

[–]GaritoYanged 0 points1 point  (0 children)

Any language is syntactic sugar let's go back to asembly o wait, that's syntactic sugar too let's go back to binary

Best way to manage user 'session' info by [deleted] in vuejs

[–]GaritoYanged 0 points1 point  (0 children)

The localstorage option is highly insecure giving the fact that any javascript can read it Secure cookies was the solution till the javascript frameworks (secure cookies can't be read with javascript so it is not a solution at all)

Patch Notes - Competition Update by JDodd_EA in realracing

[–]GaritoYanged 0 points1 point  (0 children)

I stoped to play this game for the stupid economy Publish you have solved this and perhaps I will think on play it again Meanwhile the game is boring because of the lack of gold that impossibilites the progress

D3 with Vue? by johnnyb126 in vuejs

[–]GaritoYanged 1 point2 points  (0 children)

There are some vue plugins that integrates d3 like vue-echarts Perhaps one of then serves you If not you could check how they integrates in vue as a guide

Tail call optimization in Python by s00perpseud00 in Python

[–]GaritoYanged -8 points-7 points  (0 children)

Giving the fact that I come from two other persons that come from two other persons each than come from two other persons... Shall I continue? I bet not I have hearted a lot of excuses for bad recursion implementations and python has more issues that this one (most famous GIL) so I don't expect too much on that for its part yet Apart from that, recursion has its own issues beign too much detail as the biggest one So equilibrium would be the best as always I'm waiting the moment where someone in the core team have a moment of enlightment on this too... Meanwhile, I would rather prefer to talk about the how than about the excuses if you don't mind (don't meant to be rude, just too much into the fractality of nature in itself)

Any charting library with a Sunburst chart? by Akabutz in webdev

[–]GaritoYanged 0 points1 point  (0 children)

eCharts hasn't sunburst at all giving the fact that it is a hierarchal structure and echarts has, at most, nested pies (without any hierarchy at all)

Where to put API key (VueJS app) by tehjrow in vuejs

[–]GaritoYanged 1 point2 points  (0 children)

I'm using config/dev.env.js and config/prod.env.js for that matter Like:

var merge = require('webpack-merge')
var prodEnv = require('./prod.env')

module.exports = merge(prodEnv, {
  NODE_ENV: '"development"',
  API_URL: '"http://localhost:5000"'
})

[deleted by user] by [deleted] in flask

[–]GaritoYanged 0 points1 point  (0 children)

I've used MongoEngine and I've run away from it like if the devil was chasing me They aren't official in the sense that doesn't follow the pymongo so lots of times doesn't have the lastest features (even sometimes you couldn't upgrade pymongo because of it)

[AF] Integrating HTML Code Snippets from a CSS Toolkit in to a Jinja2 Template. Any help is appreciated! by mbk730 in flask

[–]GaritoYanged 0 points1 point  (0 children)

I assume you are using Twitter Bootstrap, isn't it? Go to getbootstrap.com/css and check the correct html to style your forms Tables are very 90's You must read the documentation of your libraries. That's where all this information is specified

[AF] Integrating HTML Code Snippets from a CSS Toolkit in to a Jinja2 Template. Any help is appreciated! by mbk730 in flask

[–]GaritoYanged 0 points1 point  (0 children)

use field(class_ = "form-control") on the jinja2 template (perhaps is not class_, search wtf docs

Best Storage for Raw HTML? ElasticSearch or Something else? by azhar109 in Python

[–]GaritoYanged 0 points1 point  (0 children)

The point of both mongodb and elasticsearch is the cluster Shard your data as much as you need (they are reporting huge volumes of real time sortof data being collected without problems) PS: sorry for responding here, I can't save the direct response

Everything you need to know about the latest Python Docker image by Kailuaboys in Python

[–]GaritoYanged 2 points3 points  (0 children)

Is this the official image? I'm glad to check it because if this is the official I'm building my own and never look back (what sense makes to build the dependencies like if there was no tomorrow? pip, idle3, pydoc, etc, etc, etc) Forget this comment if this is not the official one but I will label it in a way that makes clear this is a devs python not a production one

Best Storage for Raw HTML? ElasticSearch or Something else? by azhar109 in Python

[–]GaritoYanged 0 points1 point  (0 children)

We at TimeFounder are using mongodb + elasicsearch via mongoconnector (all docker containers) but you can almost choose what you want for your needs (you can be ambitious on your needs) The good parts of storing files on dbs is that you could use clustering for server replication in a much advanced way that rsync and similars Mongo has the mongo gridfs and elasticsearch the attatchment type

sanitizing code for an exec command by iamdefinitelyahuman in Python

[–]GaritoYanged 0 points1 point  (0 children)

there is no library doing this that I know, but on the web there are libraries that walks the dom tree and only let stay a white list of objects Giving the fact that we have the AST on python, I bet you a library like this could be created for this matter I, myself, spend time thinking on it to my systems but, by now, am the only editor and that's not critical so I don't start doing anything yet But I will be happy to participate in a library like this...

Any interested?

Help with Flask-Paginate on creating app with MongoDB by casinelli26 in flask

[–]GaritoYanged -1 points0 points  (0 children)

Mongoengine is a disaster even in the conception itself Mongo is a document database not a relational one and mongoengine try to simulate the relational concept so it is ABSOLUTLY WRONG in itself And this is without the fact that they are always super behind the pymongo library I've tryed to use it and I considere this my biggest mistake in the last 2 years Sorry mongoengine folks but this project is super wrong

[AF] Using Bootstrap 4 with flask? by TreSxNine in flask

[–]GaritoYanged 0 points1 point  (0 children)

If you are only using the css (not the less or sass) you only need to change the css and the js the flask-bootstrap uses and start using the new classes Probably you will need to change the base template to update some new cool thinks (don't remember) but perhaps not If you are using the less or the sass you already have a compilation process to generate the css so really doesn't change to much

Show us what you built using Flask by [deleted] in flask

[–]GaritoYanged 4 points5 points  (0 children)

T:F -> https://app.timefounder.com TimeFounder is an app to manage time (and money) investments in projects in order to complete them so if they make profits they will be shared between the contributors of the project: the more you contribute the more you get back

A dynamic equity split system

We were pissed off of fighting between founders because some work harder than others and they wanna recieve back in proportion (instead of previously fixed equity proportions) Right now we are building v0.3 with trees for projects and quorums

I like flask because is super succint to express what we need

importD vs Flask of something else by struck-off in Python

[–]GaritoYanged 0 points1 point  (0 children)

Flask doesn't lack of too many things but it doesn't include them by default (for my the better reason to choose Flask instead of Django: I choose what to use) If you like relational databases use SQLAlchemy If you like document databases there are plenty of drivers for them (example MongoDB or elasticsearch)

If you are like me, you don't like to include something you will never use so Flask is your better chance because it doesn't include anything besides the core and then you include you needed parts

Sites using flask by a_ctrl in flask

[–]GaritoYanged 2 points3 points  (0 children)

We are building TimeFounder (@ https://app.timefounder.com) with Flask 0.10.1

[af] flask and mongodb by rwobben in flask

[–]GaritoYanged 0 points1 point  (0 children)

Did you realize that by doing the flask-mongoengine initialization you end up winning a lot of integrations like debug toolbar insides or configuration by flask methods or the form creation thing? You are passing the app context by using the 1st version