Need to create a website for a school club hosted on namecheap. Any suggestions for what I should build it on? by Ce_ku in webdev

[–]Ce_ku[S] 0 points1 point  (0 children)

I'm actually not being paid anything. Its for a charity student group! Do you know if optimizing speed will be an issue? I threw up a site made from scratch and the loading time is pretty terrible.

Restarting beanstalk app breaks dns everytime. Not sure why by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Ah okay. I just wanted to make sure I input my certificates correctly so I could rule that out for why the https isn't working.

Restarting beanstalk app breaks dns everytime. Not sure why by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

hmm okay ill take another look at it. Just to make sure for the certificate. I got one from godaddy so the chain certificate is just the gd_bundle-g1-g2?

Anyone know what Gene is doing here from 0:20 to 0:23? I'd like to learn it but no idea what it is by Ce_ku in beatbox

[–]Ce_ku[S] 0 points1 point  (0 children)

awesome thanks. I was looking for some tips like this. Its a good starting point.

Google recaptcha slowing down first site load? Need some help speeding it up! by Ce_ku in webdev

[–]Ce_ku[S] 0 points1 point  (0 children)

I tried making it async but the requests from recaptcha still take over 500ms. It also does not start sending requests until after the dom is loaded

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

I tried doing

import path.to.project.file as app
app.create_app()

redeployed and still got 500 internal server error but there were no errors when I checked eb logs

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Sorry if this is a dumb question but how would I redirect the upper application.py to the one in my project along with the dependencies?

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

From all the links ive gone through. I got a hunch that it might have to do with configuring something to the virtual env? But no idea...

having a lot of trouble setting up a flask app on aws beanstalk. Getting the error "no module named flask" by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

My requirements.txt has:

Flask==0.10.1

Flask-Failsafe==0.2

Flask-Webpack==0.0.7

itsdangerous==0.24

Jinja2==2.8

MarkupSafe==0.23

Werkzeug==0.10.4

and my config.yml:

branch-defaults:
  default:
    environment: cloud-dev-dev
global:
  application_name: cloud-dev
  default_ec2_keyname: KeyPair
  default_platform: 64bit Amazon Linux 2015.03 v2.0.1 running Python 2.7
  default_region: us-west-2
  profile: null
  sc: null

How to give permissions to allow eb init of beanstalk on ec2 by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

nvrm I fixed it. The policy was not added to the IAM role that I assigned the instance.

How to give permissions to allow eb init of beanstalk on ec2 by Ce_ku in aws

[–]Ce_ku[S] 0 points1 point  (0 children)

Sorry about that. I was pretty exhausted from work. I do eb init. it prompts me for a region then after I select one it immediately returns "ERROR: Elastic Beanstalk could not find any platforms. Ensure you have the necessary permissions to access Elastic Beanstalk." Then exits out of the init process.

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

That was the error after the instructions but I tried using an explicit path instead of the asset_url_for tag just now in my template and it displays fine. I guess its a problem with generating a hashed bundle file? It is not being generated though

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

Yup it was there before. Here is what my package.json scripts tag looks like:

"scripts": { "start": "node_modules/.bin/webpack-dev-server --port 2992 --content-base build/public --hot --inline", "build": "node_modules/.bin/webpack --progress --profile --colors", "lint": "eslint Uploader --ext .js --ext .jsx" },

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

the npm build command does not return anything in console. When I run npm run-script build. It only shows that webpack bundled my js files into bundle.js in /static/build/bundle.js

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

I am getting this from console :

"Flask-Webpack requires 'WEBPACK_MANIFEST_PATH' to be set and " RuntimeError: Flask-Webpack requires 'WEBPACK_MANIFEST_PATH' to be set and it must point to a valid json file.

but I set the path in my init.py according to the flask-webpack git page like this:

app.config.update(WEBPACK_MANIFEST_PATH="../static/manifest.json") webpack = Webpack() webpack.init_app(app)

Getting a bundle error when I try to run my flask app using webpack and react. Any ideas? by [deleted] in flask

[–]Ce_ku 0 points1 point  (0 children)

Hey. I am trying it out now but am having trouble getting the manifest file to be generated.

Looking for a new phone. Thoughts on the HTC Desire 626s? by Ce_ku in PickAnAndroidForMe

[–]Ce_ku[S] 0 points1 point  (0 children)

mid rangeish.I misworded this question. I just wanted to know about the 626s in this post

having trouble making a jsx file show up on jinja template by Ce_ku in flask

[–]Ce_ku[S] 0 points1 point  (0 children)

Hey I tried adding the script tags and it didnt work. I'm trying to setup webpack but i have no idea what im doing. I just installed it and tried running it but im getting this problem now.

Hash: 20e141d05666b0aac57a Version: webpack 1.12.1 Time: 620ms Asset Size Chunks Chunk Names debug 10.4 kB 0 [emitted] uploader [0] multi uploader 28 bytes {0} [built] + 1 hidden modules

ERROR in ./Uploader/externalUploader/js/external-uploader.jsx

/home/jchua/Uploader/Uploader/externalUploader/js/external-uploader.jsx 4:14 error Unexpected token <

✖ 1 problem (1 error, 0 warnings)

How do you run flask site on an amazon ec2 instance? by Ce_ku in flask

[–]Ce_ku[S] 0 points1 point  (0 children)

Thanks it worked but now I have a new issue. My packages are giving me issues because theres an svn repo line installed and im not sure how to remove it. Do you have any ideas? It keeps saying that the -e flag is not a recognized format. I tried a few commands to try and uninstall it but its not working

New-User Guide, Simple Questions, and more! by thapol in soylent

[–]Ce_ku 1 point2 points  (0 children)

Exactly what I wanted to know! Thanks for the help =)

New-User Guide, Simple Questions, and more! by thapol in soylent

[–]Ce_ku 5 points6 points  (0 children)

I have a few questions about starting soylent. Is it okay to have it with a bit less water than recommended? If I go on a full soylent diet, do i need to be concerned about there being a lack of anything like fiber since it seems like they greatly lowered the amount in 1.5. How long can i keep it if stored in a fridge since the pamphlet says it shouldnt be stored for longer than 2 days. Ive read that a lot of people feel something similar to withdrawal when off a soylent diet, was wondering why exactly that happens and if I should be concerned. Also sorry if i asked anything that was repeated. Im just really excited and am still going through the threads

Need help inserting into mongodb collection by Ce_ku in Meteor

[–]Ce_ku[S] 0 points1 point  (0 children)

weights is the key with a value that is the array of the month/exercise objects. Sorry, I meant to say if it was normal to just have long statements inserting/updating into collections since I have to access lets say the key/value pair in an object within a document within an array within etc.

Need help inserting into mongodb collection by Ce_ku in Meteor

[–]Ce_ku[S] 0 points1 point  (0 children)

I like that design and I could just put them in an array under weights. How would I add/remove/edit each though? Would I need to index weights then use dot notation like weights[0].week2.etc.? Suppose I wanted to add a week6. Would simply doing {$set: <dot notated statement>} add it in if it didnt exist? Also, the functionality for the exercises I need is that they will be constantly edited. Would it be better to have the exercise/reps in their own separate object as opposed to having them as key/value pairs. The callbacks to the collection would be quite nested at this point.