Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by zapt02 on Monday June 15, 2015 @07:45AM
(#9718724)
Having all kind of issues with this. Dropped in a subfolder (/var/www/html/sitecake)
The following AJAX errors are everywhere:
Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/html/services/application/cake/libs/debugger.php on line 398
Strict Standards: Non-static method Configure::read() should not be called statically in /var/www/html/services/application/cake/basics.php on line 213
Warning (512): SQL Error: 1030: Got error 28 from storage engine [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by capsule_toy on Tuesday June 16, 2015 @01:16AM
(#9723945)
Looks more like a configuration issue. The big clue is s/he dropped your code into a sub-directory but s/he's getting error in code not in that sub-directory (i.e. - not your code).
My guess is the docroot is set to /var/www/html with CakePHP server configuration.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by nikolamircic on Monday June 15, 2015 @11:12AM
(#9719811)
Sorry guys, server was overwhelmed by ProductHunt and Hacker News visits. We did demo part 'lean way' so it could not cope with uploaded content. It should work now!
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by erikb on Monday June 15, 2015 @09:44AM
(#9719202)
The basic idea is awesome. Because the demo doesn't work: Do you support markdown text? Or is it a wysiwig editor that expects you to click buttons above the text editor to get something formatted?
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by nemexy on Monday June 15, 2015 @09:52AM
(#9719238)
Something like a wysiwig editor. I didn't tried markdown, but it didn't look like supporting it. Small change was pretty easy to make but I didn't play with bigger changes or dropping something more heavy.
I guess we will see when the demo is back online or you can install it somewhere to try it out. It looked pretty good.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by potatron on Monday June 15, 2015 @06:49AM
(#9718563)
Just to be clear, I'm not the original author. It's just something I've been using with success for mom & pop style websites and felt it was underexposed for being so simple (and free to boot).
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by baldfat on Monday June 15, 2015 @07:35AM
(#9718691)
Once I read it I thought this is exactly what I would use for friend projects. Personally I find most web tech to be a horrible hack and don't enjoy working on it. This would be quick and easy and allows me to just hand off quickly.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by nikolamircic on Monday June 15, 2015 @12:49PM
(#9720521)
We wanted to stay simple as possible and use wide spread technologies. So HTML pages for templates, PHP for server side, file system for storage and drag and drop for editing.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by potatron on Monday June 15, 2015 @06:57AM
(#9718574)
Basically you just mark out some <div> tags as class="sc-content", and they'll become drag&drop WYSIWYG editable. The changes get written right back into the file, so you don't need anything other than PHP 5.4 and write permissions. You can even remove the SiteCake file again, and your site will just keep working (as static HTML).
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by jtreminio on Tuesday June 16, 2015 @11:07AM
(#9726309)
Note that the theregister.co.uk link points back to ircmaxell's blog.
The SO link is for an answer from 2009, pointing to an email from 2006.
ircmaxell's blog is spot on - if you actually bother to read what it says. Not keeping a very important part of a webserver up to date with security releases is insecure. Is that a surprise to you, or anyone?
Is Windows or OSX or Linux insecure because they have security patches coming out all the time? What's insecure is user behavior when they keep running old, unpatched versions of software.
You're spreading FUD, repeating words and showing links without actually taking the time to understand the message they are trying to convey.
Case in point: PHP being "heavy". A PHP app can be as lightweight or as heavy as you need it to be. The more you build and the more it does, the "heavier" it becomes. If you throw a proper caching solution at a codebase, it becomes much better, but this is true for anything.
Look at the TechEmpower Benchmarks [0] - PHP raw is usually towards the middle, upper-middle of the pack. Of course, it gets handily beaten by compiled and multi-threaded languages.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by potatron on Monday June 15, 2015 @07:52AM
(#9718750)
Well, my use case is neighbour/friend websites (I'm not really a web person, but I "do computers", so I get asked a lot). Buying a $3/month domain with PHP webspace, slapping this and some HTML on it and basically being done is simple for me. I mean, compared to a "real" CMS... YMMV, of course.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by vog on Monday June 15, 2015 @08:01AM
(#9718775)
Is it really impossible to get Python hosting (or better) for $3/month?
I remember that here in Europe, you can get an own virtual machine for roughly $5 to $8 per month, and Python webhosting must be less expensive than that to compete.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by allendoerfer on Monday June 15, 2015 @10:55AM
(#9719702)
If you buy any webspace it will have PHP installed 99% of the time. There is a huge number of garden-variety webdesigners that server small businesses. These people are used to a combination of PHP + Apache + MySQL + phpMyAdmin. They can install Wordpress on that and know enough JavaScript to modify a gallery script to do what they want.
A Python webspace is much harder to find. Even if they would find one, they could not use it, because online resources for Python are targeted at people that either want to learn to program or already know how to program, not at people that want to use tools as building blocks.
Re:SiteCake: Tiny, simple, flat-file, drag and drop CMS
by laumars on Monday June 15, 2015 @10:57AM
(#9719723)
It wasn't me who downvoted you, but if I had to guess why, it would be because administrating a full instance of Linux just to run a CMS is a long way off the ease of dropping a PHP file on shared hosting.
The following AJAX errors are everywhere: Strict Standards: Non-static method String::insert() should not be called statically, assuming $this from incompatible context in /var/www/html/services/application/cake/libs/debugger.php on line 398
Strict Standards: Non-static method Configure::read() should not be called statically in /var/www/html/services/application/cake/basics.php on line 213
Warning (512): SQL Error: 1030: Got error 28 from storage engine [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
It just doesn't work, which is a shame.
My guess is the docroot is set to /var/www/html with CakePHP server configuration.
I guess we will see when the demo is back online or you can install it somewhere to try it out. It looked pretty good.
- http://www.theregister.co.uk/2014/12/31/want_to_have_your_se...
- "Over 78% of PHP installs are insecure" - http://blog.ircmaxell.com/2014/12/php-install-statistics.htm...
- http://stackoverflow.com/a/1567392
The SO link is for an answer from 2009, pointing to an email from 2006.
ircmaxell's blog is spot on - if you actually bother to read what it says. Not keeping a very important part of a webserver up to date with security releases is insecure. Is that a surprise to you, or anyone?
Is Windows or OSX or Linux insecure because they have security patches coming out all the time? What's insecure is user behavior when they keep running old, unpatched versions of software.
You're spreading FUD, repeating words and showing links without actually taking the time to understand the message they are trying to convey.
Case in point: PHP being "heavy". A PHP app can be as lightweight or as heavy as you need it to be. The more you build and the more it does, the "heavier" it becomes. If you throw a proper caching solution at a codebase, it becomes much better, but this is true for anything.
Look at the TechEmpower Benchmarks [0] - PHP raw is usually towards the middle, upper-middle of the pack. Of course, it gets handily beaten by compiled and multi-threaded languages.
[0] https://www.techempower.com/benchmarks/
I remember that here in Europe, you can get an own virtual machine for roughly $5 to $8 per month, and Python webhosting must be less expensive than that to compete.
A Python webspace is much harder to find. Even if they would find one, they could not use it, because online resources for Python are targeted at people that either want to learn to program or already know how to program, not at people that want to use tools as building blocks.