« first day (2833 days earlier)      last day (2100 days later) » 

9:21 AM
@Howdy_McGee @TomJNowell It was just a demonstration about how to cross the 100 post limit. I didn't optimize or consider optimization here.
 
9:39 AM
Btw, does anyone use the Slack application? I'm looking for a place to share admin passwords of the projects, and I'm not sure if Slack's private channels are safe enough.
 
9:52 AM
I don't remember what was the service, but you should google for a one time messaging type of service.
not sure it is exactly what you look for
 
We have a private channel for the developers to share project details. But I don't know if slack's private channel are truly private and encrypted, safe enough to store password and stuff.
Right now I'm using telegram to do so, since it claims the messages are end-to-end encrypted.
 
frankly, does it really matter? at some point you need to trust someone that even if he has the ability will not aabuse it
 
I actually don't, since the last time Valve took abuse of my private messages.
 
the benefit/cost of being extraa paranoid are usually 0
oh
I have nothing smart to say, all distrebuted systems should be assumed as not fully private
 
Yea I don't like to be paranoid, but happened to me. Trying to avoid it for a second time.
I guess I have to go with the old fashioned "paper hidden under pillow" method
 
10:12 AM
the most secure one actually :)
I have relevant password in my FF "memory". Don't even remember it it is "shared" with FF central, but it shiuld be encrypted
other place are apps on my PC with no external access to it unless I am fully hacked
windows notes sometimes
the big problem starts when it needs to be shared with others
 
Yea exactly. I have a list of my passwords, all at least 32 char long, stored in a file, on an encrypted drive. But I was thinking about sharing them in a single place, rather than switching from skype to telegram to slack to ... :P
 
 
3 hours later…
1:33 PM
@JackJohansson actually last night I considered bandwidth I wrote an initial CRON that would pull the categories, wait 5 minutes and CRON the 1 category with a delay till it reached the post count wait an additional 5 mins from each pull.
 
@Mᴏɴᴋᴇʏ It's already 6 o'clock here, too tired to understand all those nested 5 minutes :P
Did you add the cron jobs from your cpanel?
 
did it locally for testing but yes will move to hosting
its 0800 here son, lol gotta get at it today
 
1:50 PM
I meant the cron job, if you did it on localhost you probably used wp-cron
 
no I used launchd on my mac
and it executes a shell script
didnt think about wp-cron facepalm
 
Why everyone has better tools than me.
 
learn, I do a lot in shell
actually right now I'm building a desktop app that will do image manipulation for clients that submit incorrect files to the printer.
 
What language do you write in?
 
AppleScript, Bash, AWK, sed and Perl. Learning jr with WP-JSON which is what led to the question
 
1:58 PM
I can't learn couple of languages at the same time
 
its how I roll =P
 
I have to learn the first one so deep that the language becomes my B**
Then I can move to the next
 
wish I could spend more time in WordPress but I've hit a road block. I like JavaScript and wanted to learn how to become a full stack developer but I'm torn and dont want to nuke my brain
@JackJohansson ha ha
 
Nah I'm moving away from WP, trying to understand PHP and then add some framework flavor to it
 
I love WP and love learning what it can do but I dont give it the time I can
@JackJohansson bummer was wanting to work on a project
 
2:01 PM
@Mᴏɴᴋᴇʏ Doesn't mean I don't do anything at all or I forget it:D
Python is overwhelming too these days, I'll probably go for that after PHP
 
shoot some people I know are like that, they spend so much time in a language they hate it
 
Except WP is not a language
 
well true to that
 
It helped me a lot in the past years, but now it just became too easy. add action, do action, here's your site, ready
 
I've been wanting to build a custom post type that pulls API data into it
 
2:04 PM
I also thought about using WP, but not using any built-in function, instead using pure PHP
register_post_type()?
 
somewhat. I used the settings API where I enter my API ID and password. In the post I wanted the ability to allow a user to click a button and it would populate the fields in the post.
 
Speaking of settings API, you could also take a look at Redux Framework to speed up your projects
 
explain what it is, never heard of it
 
Here's their website
It's an advanced settings API
All you need is to include the PHP file and start adding setting fields
it automatically generates, sanitizes, load and manage your settings
Say you need to add a field to select a post. Instead of querying and doing hard labor, you add a select post field, and the redux will output a field containing posts for you.
 
@JackJohansson but doesn't that defeat learning how to do something??
 
2:12 PM
Yes, it does. But it also helps quick production. I first did learn how to create a settings API, then I started to use redux for commercial production
 
I rather learn how to build it so I can support it
 
Can't afford to spend a week on adding about 200 different options when you can do it in an hour :P
 
but I gave myself Summer 2019 to release this project =P
 
Ok then I'm gonna have to redirect you to this xD
 
plus I'd make them into plugins and make a private repo and re-use each plugin for app deployment
 
2:14 PM
Alright, I thought it's a nice framework and it won't hurt if you know about it. WP itself is a framework after all.
 
ha ha
 
Something like this.
Nah I don't have twitter account. How so?
 
ah nevermind
 
Fake account :P
@Mᴏɴᴋᴇʏ Anyway if you have any issue with this, I'll be happy to help. This time you need to ping though xD
 
@JackJohansson well I was gonna hit you up on twitter but you dont have an account and beyond twitter and github those are the only two social areas I use
unless we plot a private room for powerful mods * evil smerk *
 
2:22 PM
You can always try email and stuff
or that one!
 
whats this email you speak of
 
Do you mean generally what is an email or do you mean specifically my email xD
 
all the above
 
My email address is on my profile
 
is it really?? I never noticed, lol
 
2:24 PM
Yap recently added
 
ah cool. snap I didn't realize you were in ireland, I dont think many on WP.SE are US East coast based =/
 
I'm not living in ireland right now
 
always wonder who here is on a Mac?
 
Ya if you mean MacDonald
 
@JackJohansson I wouldn't share password on any communication service, encrypted or not, you're best either sending password reset links for new accounts so that they can create their own users, or using a password manager with team features
otherwise audit logs etc are worthless if you're all sharing the same admin account
and slack history can be read
 
2:30 PM
@TomJNowell But we both need to have the password, so resetting is not an option
 
it'll notify everybody if a slack admin does that mind
@JackJohansson not if you have different accounts
and again, password managers
lastpass and 1password both support shared vaults
 
Not every host offers multiple admin accounts for cpanel
@TomJNowell I have a yes/no question about CDN. Is it possible to use a CDN without changing the URLs, just by tunneling the DNS?
 
I'm not sure that would be optimal, to have a CDN serve just a subfolder you would need a load balancer/proxy of some kind to route that subfolder
tbh it really isn't worth the hassle
and it's not even the most performant option
 
Because I've activated Cloudflare's CDN but the URLs aren't changed
 
a subdomain would be superior
cloudflare isn't an image CDN though
it sits directly infront of your site
so all requests are served from cloudflare
 
2:38 PM
Ya so it's theoretically possible
 
@TomJNowell I thought it could be used as one?
the paid version that is
 
I wouldn't recommend cloudflare unless you're spending money, if you want fast images I'd recommend Photon, the DNS response times for .com servers is actually significantly faster than a lot of rivals
@Mᴏɴᴋᴇʏ it's not an image CDN, it's an everything DN
 
looking up Photon now
I need an image and JSON CDN =/
 
so stop thinking of it as something that serves images, think of it as something that acts as another layer of caching inbetween your server and the internet at large
Photon for images, Object cache + REST for JSON
or varnish
 
ya I saw that, and also saw where you can do custom page rules which is what I was thinking if my shared hosting is acting up
 
2:39 PM
varnish/object cache are more than enough
eitherway, CDN's won't save you from expensive queries in REST API calls
and boooo shared hosting boo
you don't go for shared hosting if you want performance, or even decent security
 
but I dont know of an alternative that fits all my needs
 
VPS' and managed hosting
 
without killing the wallet just for a local community project
WP Engine has been on my radar
 
the cheapest digital ocean droplet outperforms shared hosting for the same price, and lets you install object caching/varnish/etc
and when I say outperform, that's a major understatement
 
@TomJNowell think you said that to me once, need to go look at that now
 
2:42 PM
my entire multisite, with my main site, community projects, and frontenberg, sits on a single Digital Ocean VPS, which used to be the cheapest droplet for a long time, but I upgraded to the next one up so I could do one or two things
the homepage itself is about 30ms to transfer once it's been seen
 
sorry new to app dev, I'm still trying to figure out and estimate how to serve the site in a way with WP. The dev is the easy part the deploy always is a pain =/
 
most of the transfer time is Typekit and Google analytics
git pull on a VPS
or composer install
keep the entire public_html folder in a git repo, push from local, pull to server, ignore the wp-content/uploads folder
put an object cache in there, memcached/redis, and the appropriate object-cache.php to match
then either setup varnish, or use the batcache plugin
 
ya I do that already with a simple theme for all JS, CSS and images
 
well there you go, add it as a composer dependency or a submodule in a larger repo
and do your plugin updates via git
 
those last two I've never done and will need to learn
 
2:46 PM
well you can clone the same repo your server uses into a local dev
run the plugin updater, and add the changes to git and push them up to github/bitbucket etc
then either manually git pull on the server
 
oh I see
 
or have a cron job that does it regularly, or have a php script that does it that you can tie to a webhook so it happens automatically
just make sure to disable auto-updates in the wp-config.php on your server
the best deployment is automatic deployment
e.g. on VIP Go, production is the master branch, as soon as stuff gets merged into master it gets pushed to production servers
and other branches represent other environments like pre-prod
IIRC pantheon is similar, as is WP Engine
for Go we made master a protected branch so that code changes are done via PR and get reviewed
then once we approve, they can merge when they want to deploy
for my own site I use a webhook and a PHP script to update my theme automatically
 
@TomJNowell ya I do that and lock out everything
 
though I might change how it all works
you can also make everything except wp-content/uploads read only to the user the web server runs as
 
@TomJNowell that's a good idea
 
2:50 PM
so even if an attack is succesful, it can't modify any files
though if it did, git would be able to tell via git status
 
so when's the blog post =)
 
eh lots of people have done similar posts
 
gonna have to build everything locally before getting DigitalOcean..
 
VVV should be fine for that :)
 
what is VVV?
 
2:56 PM
local dev with vagrant
 
15 mins in here and I realize my development workflow is all wrong . . . .
 
git flow ftw
 
I couldn't get into VVV on windows - it's just so slow to start up and spin up a new site.
 
Windows is slow even for serving pages. An apache on linux servers way faster than windows.
 
Sure, but local dev.
 
3:07 PM
The first time I tried apache on linux I couldn't actually believe how fast is it, or actually how slow was windows.
 
Nginx is faster
 
Tried that too, not much faster
Litespeed however is much faster
But you know, $$$$
Litespeed license for a 4 core VPS is over 1000$
 
3:30 PM
I question the assertion that nginx is faster than apache, very much depends on what you do. If you have a proper cdn like cloudflair, nginx will bring very little extra speed under the best configs
when you use nginx you actually not comparing nginx to apache but fpm to mod_php
TTFB of the HTML is the most important aspect of the web site speed, and unless you are flickr you just do not care about the performance of static resources, or just use a cdn for them
The main problem with cloudflair that is not documented anywhere, is that if your site has little traffic they will evict your resources from the servers.
 
there's also no guarantee your site will be faster with them, especially on the free tier
some sites are actually slower
 
which might make actual sense but it is kinda unexpected as it is not explictly said anywhere
each of their servers is independent so result might be different based on geo location... might also have some other not documented aspect that will make a site slower
 
4:03 PM
@Mᴏɴᴋᴇʏ how about this tomjn.com/?p=862&preview=1&_ppp=b63c3f670a
 
@TomJNowell I feel special an article written after me, will read it tonight after finishing this app
it be cool if you wrote about setting up the Digital Ocean, too. That would an awesome read because its gonna take me some time to sift through the documentation
ah it's only a preview, why not publish it so I can share it? That's a good mention
 
because this way I can get feedback and make edits before i publish
saves 5 or 6 copies appearing in peoples RSS reader, or out of date versions arriving in subscribers inboxes
 
4:20 PM
@TomJNowell forgot about that
 
 
1 hour later…
5:37 PM
hi
i have install unit testing scaffold for a plugin using wp-cli. Now i am getting fatal error because wordpress is trying to find my plugin file at wp_content/foo-bar/foo-bar.php where my plugin file is wp_content/foo-bar/foo.php
my plugin directory name and plugin file name is different..
 

« first day (2833 days earlier)      last day (2100 days later) »