HNHacker News
TopNewBestAskShowJobs

__app_dev__

135 karma · joined November 26, 2019

submissionscomments
__app_dev__··on Show HN: Web Components for easily displaying data in web apps – Code and Demo
Single Page App (SPA) Demo is here:

https://www.dataformsjs.com/examples/places-demo-web.htm

And an animated CSS Hello World that use a rotating Earth and Moon around the Sun:

https://www.dataformsjs.com/examples/hello-world/en/web.htm

__app_dev__··on Show HN: React JsonData Class for Displaying API Data – HN Clone Demo in Comment
View Hacker News Clone Demo Live Here: https://www.dataformsjs.com/examples/hacker-news-react.htm

Or view source code on GitHub: https://github.com/dataformsjs/dataformsjs/blob/master/examp...

This demo is browser based with Babel Standalone so give it an extra second or two on a phone.

This component is designed to work well with both `create-react-app` and directly in a browser.

Basic usage: <JsonData url="https://hacker-news.firebaseio.com/v0/topstories.json" isLoading={<ShowLoading />} hasError={<ShowError />} isLoaded={<ShowTopStories />} />

__app_dev__··on Retiring Internet Explorer
I had to support a really old site that another developer wrote on IE just over a year ago. Luckily I am no longer at that company. Basically 99% of development and sites worked with modern browsers but one needed site required IE6 compat mode. It would have taken months to rewrite and the company didn't want to spend resources on it. At my current job we also have a lot of IBM software that seems to work best in IE although only a few people still use it at work. Doesn't seem like IE will be retiring anytime soon.

The article (and site) from this post is very good.

__app_dev__··on Ask HN: Which programming languages to learn in 2020 for an experienced dev?
Definitely learn Python. It’s extremely popular with data science but also makes for a great general purpose scripting language. For Web Devleopment with Python the most popular options are Django and Flask. Django is an opinionated framework (like Ruby on rails) and has a large setup while Flask is un-opinionated and very easy to start something from scratch (like Ruby on Rails).

I’ve been programming with JavaScript for 20+ years now and learned Python only a few years ago. Actually I did some a very small project in it over 10 years ago but didn’t remember enough so I had to relearn (and it’s relatively quick to learn compared to other languages I feel). I’ve used it at 3 different jobs now for a variety of scripting tasks that I would have previously used C#/.NET or other languages for and I've developed a number of sites with Flask now (both on Linux and Windows with IIS).

If you are based on the US a lot of companies here that look for hire for C#/.NET and Java. Larger corporate type companies for .NET while Java is commonly used for high traffic sites (game engines, etc).

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks for sharing. SaltStack does look very nice. BTW, pure sh scripts like one from Chef are much more difficult to write simply because you have fewer options to work with.
__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Here are some links for [libapache2-mod-php] vs [php-fpm] for Apache (both Pro and Con plus install links).

For the first link where the developer switched to [php-fpm] his site could only handle 30 users at a time so his server side framework must have been very slow. As I mentioned the script from the post allows for 2500+ requests-per-second (tested 100 concurrent users) and allows for many more users with tweaking.

The setup for [php-fpm] with Apache is somewhat complex so I would recommend using nginx if you want to use [php-fpm].

https://smddzcy.com/posts/2017-09-16/migrating-from-mod-php-...

https://www.reddit.com/r/PHP/comments/4bi9a4/why_is_mod_php_...

https://tecadmin.net/install-apache-php-fpm-ubuntu-18-04/

https://serverfault.com/questions/645755/differences-and-dis...

https://stackoverflow.com/questions/47916133/need-to-install...

https://www.linode.com/docs/web-servers/apache/running-fastc...

__app_dev__··on Show HN: I built a browser based interactive React course
Great site jadjoubran! This one and your JavaScript site look very nice.

I would recommend allowing one or two pages for free without a login so anyone can try without the need for signing up. Then if they want more than a few pages they can sign up.

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Nice site, looks great for WordPress sites and servers!
__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks so much lhuser123! Yep, everything in once place to make basic web server setup as easy as possible.
__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks so much digitalsushi and h1x!

I really appreciate your nice comments! For the script I made it a readable as I possibly could since scripts like this need as much clarity as possible for security purposes and to help anyone who wants to re-purpose the script for their environment.

h1x you might want to take a look at my other shell script on this project as well. It's about ~1500 lines of well commented code and allows file encryption on many different Linux OS's.

https://github.com/fastsitephp/fastsitephp/blob/master/scrip...

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks iDemonix, Just to clarify the comments that read like Ansible advertisements are later down in the page now.

The script of the link (that I wrote) is intended as a starting point for a clean and secure web server setup without a third-party ops product - basically what you wrote “ where you could achieve the same in a few lines.”.

Rather than a few lines though the script from the line has a lot of checks and makes needed config updates. Since it’s a single script with no dependencies a developer or devops can easily copy it and modify it for their needs or environment.

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks! Yeah cutting out the middleman was a motivator along with allowing for an easy and secure setup of course. Seems like so many similar scripts out there are intended for selling products or services but sometimes all you really need is a simple web server.
__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Windows doesn't come with bash by default either ;)

Python is extremely easy to setup on Windows though.

Time have changed a lot though as you can now run complex bash scripts on the Windows Subsystem for Linux (published by Microsoft).

Windows Subsystem for Linux https://docs.microsoft.com/en-us/windows/wsl/about

Print Screens and Doc of running as Bash Script on Windows: https://fastsitephp.com/en/documents/file-encryption-windows

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks for posting. Can you provide some docs or links that show to use libapache2-mod-php for Apache? Most docs I've seen show using it for Apache.

For nginx the script is using php-fpm.

During testing with this script on a clean os I am able to achieve around 2500 to 6500 requests per second on the lowest cost VM's with both setup options (Apache or nginx) and 25k+ requests per second on higher cost servers.

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks for Sharing. Is this Chef script for a specific enterprise product? It's not really clear on their repository:

https://github.com/chef/omnitruck

And I see their cheapest product is $16,500/year.

The script I wrote is intended for a clean and secure install of either Apache or nginx and PHP without a complex setup or the need for third-party options so it will work on any cloud host. Currently the one I published only supports Ubuntu but I'll add more OS's in the future.

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Thanks for the link! I've opened it and will look at it in more detail.

Here it is for anyone reading this discussion: https://www.ansible.com/

Basically the reason I created this rather than relying on something else is that I wanted an easy script that can setup a full production Web Server environment for PHP without any dependencies other than the minimum needed.

The script is completely free and open source any easy to change in case someone wants to use it for Laravel, Symfony, or something else. Most automation scripts are used to sell additional products like Ansible so this script avoids that.

Currently the script works on Ubuntu only but I will expand to RedHat and other OS's as time permits. Of course if anyone can help contribute I would gladly accept.

__app_dev__··on Show HN: Bash Script to Install a Webserver and PHP on a Clean OS
Works on the lowest cost VM's on AWS ($3.50 USD per month) and the site still runs fast with low memory.

To run download then call the script: wget https://www.fastsitephp.com/downloads/create-fast-site.sh sudo bash create-fast-site.sh

Additional Docs in multiple langugages are here: https://www.fastsitephp.com/en/documents/install-php-on-linu...

__app_dev__··on Show HN: Display JSON and GraphQL Services with Vue and HTML (No JavaScript)
If you would like to view the source of the HTML page directly go here:

https://github.com/dataformsjs/dataformsjs/blob/master/examp...

And for a more advanced demo (full SPA) try this version:

https://www.dataformsjs.com/examples/places-demo-vue.htm

__app_dev__··on Show HN: FastSitePHP – New PHP Framework. Try the Online Playground
Thanks lioeters!

Also to try it out online (no login required, no cookies, etc) anyone can create a site here and create and run PHP code directly on a sever. Sites last for 1 hour.

https://www.fastsitephp.com/en/playground

← PreviousPage 3 of 3