850 replies, Replies 211 to 220

Soo I don't know why I was given an inhaler?

Seems odd. I know some people use them if they are hyperventilating- have you ever had issues like that?

- written
Programming Help

๐Ÿ˜„

I wish you luck! Like you said- Stack Overflow is amazing for specific questions, but if you've got more broad needs, feel free to ask here!

Also- tutorials are amazing! Now that you've slightly narrowed down what you're wanting, you should be able to find some walkthroughs on how to get things set up and running.

- written
Programming Help

PHP is REALLY old. It can't really be considered "newer technology" anymore.

That said- many people still use it, but, generally it's people that learned in it and don't know anything else and/or are working on a huge, long standing project and switching to anything else is too difficult.
I personally wouldn't recommend it. In my opinion, it's a really messy and ugly language.

You should be able to host anything on MediaTemple, depending on what kind of access to the box that you have. Since it's shared, you might not have root access which prevents you from installing/configuring anything new.

And generally yes, unfortunately the easier something is to start with and set up, the harder it is to scale/the less powerful it is.

Looks like MediaTemple works with PHP out of the box, so you should be good there- you could even stick with what you've got. ๐Ÿ˜Š

And yes- many people use React with Rails. Whether or not it "makes sense" is up to you, but it's been done and there are plenty tutorials out there that can help you get it set up and running.

- written
Programming Help

I highly recommend Github. It's amazingly powerful and convenient and easy enough to use that you can sufficiently incorporate it into your workflow within a few weeks and not really have to think about it much after that.

Plus it makes deploying much easier when your files are stored in a single location and your web host is connected there directly.

Speaking of which- you say you have a web host- what are you currently using?
A "database" is really just a big text file that sort of resembles a CSV. You can simulate storing in a database by saving your JSON in a simple file. If you want to have a folder and have each file named by some key, that's doable and a small step up from what you're doing now. However! This gets messy. It's not very scaleable- meaning it's hard to add things later if you need to- and it's quite slow. Databases save the data in a really clean and consistent way and they're generally set up in such a way that it's very easy to change and expand the data should you need to. So I'd recommend learning about/using one of those.

I've used PostgreSQL and MySQL the most, as well as a few others. The difference between each database type is the way you retrieve information. I prefer PostgreSQL simply because it's easy and works nicely.
You'll need to install a database to your web host in order to use it- but most web hosts will do that for you automatically.

Next you'll want a web application framework to handle the data on a server side. Using a JS based one might be tempting because you've already got experience with Javascript, but I personally don't recommend it. I don't like mixing responsibilities though. Javascript does front end functionality like manipulating a page, to me it doesn't make sense to use it to also interact with a database, but that's my opinion. ๐Ÿคทโ€โ™‚๏ธ

Then what you'll do is upon submitting a form, instead of storing that in a cookie with javascript, you'll pass it along to your web app backend, which will format it, serialize it, validate it or whichever and then feed it into the database, where it can be retrieved at a later date.

Any of the frameworks you mentioned would be good. I personally use Rails. I know of people that use all the rest, too.
Rails is known to be very easy to get up and running on small projects very quickly, however, it can have some scaling limitations that are slightly bigger hurdles than some others. (Not impossible, just a trade off- easy early game for a more difficult late game rather than the other way around.)


As for hosting- Heroku, DO, and AWS are all great. Here's my summary of each:

Heroku Very very easy to get started. Scales the worst. Also tends to be the most expensive after you have more needs than is covered by their free plan. However, because of the free plan, this is generally the best place to start.

Digital Ocean My personal favorite, DO is a great balance between freedom and guidance. They supply you tools to do what you need and the freedom to get deeper and configure things.

AWS By far the most powerful, also the cheapest. The downside is they basically drop you in a desert with a wrench and tell you to build a car without instructions or materials.
Okay, maybe not that bad. But AWS is the most difficult to start, and requires a foundation of knowledge in dev ops.

Finally, yes, in order to save the data for each user and not have that data accessible by other users, you'll likely need some sort of authentication.
If you want quick and dirty- when a user saves something you can assign them a pin/id/something and have them enter it when they come back to retrieve the info.
Authentication is a big nasty can of worms. Luckily, most mature frameworks have decent open source projects/libraries that can handle authentication for you. It's highly recommended you stick with these so you don't make mistakes that can cause your users harm. For example, it's considered very bad practice to store passwords in "plain text". Instead, you apply an algorithm that changes the password to something unrecognizable. Authentication libraries will usually do this for you so you don't have to worry. (As much. You should still do what you can to keep your server secure.)

Sorry if that was a huge load, but hopefully that answered a few of your questions, and I'm happy to help with any follow up questions you have.

Finally, to close, this website (Help-QA) is built with Rails, the code is hosted (open source) on Github, the server is hosted on Digital Ocean, and it uses PostgreSQL to run the database. ๐Ÿ˜Š

- written
I got Married year before.

Hm. Iโ€™d just let her throw her party and have some fun?
You can sneak away and not participate if you want. Say youโ€™re not feeling well or whichever, but with the goal of peace, I would just let her do her thing and you do yours.

- written
Had enough.

Whatโ€™s missing?

- written
Help.

So sorry to hear this. ๐Ÿ˜•

Ash- why do you feel like you have to do it?
You never HAVE to do anything. Especially something that stops you from ever doing anything again. So why is it that you feel that this is something that you absolutely must do?

- written
My phone was stolen at DBT.

Nevermind wrote:
My laptop. Anyway I got my phone back.
It was turned in to health and human services

๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰
Guess you were right after all. ๐Ÿ˜‰

- written
My sister-in-law passed away early this morning.

I'm so sorry to hear that. ๐Ÿ˜ž

Condolences to you and your/her family. Glad to hear that she isn't in pain any longer.

- written
Another English summer walk.

BuckingFastard(JN) wrote:
Hahaha I remember one for getting from England to somewhere like Japan and it said to jump in a canoe

That's the way people talk here.
'On the' isn't used anymore, it's on't

Thatโ€™s so strange. ๐Ÿ˜„

That looks like an amazing walk! Well done and thanks for sharing the great pics! ๐Ÿ˜Š

- written