Hydlide Blog

On this blog I will post most of the stuff which is keeping me busy. Currently I am working on the following projects:

 

From this day you can download the complete Wordpress Hijack project I have been working on in the last 2 weeks from my github account located here:

https://github.com/edwinvdheide/wordpress-frontend

The project is similar as the set up I am using right here.

Enjoy!

Posted on August 1, 2014

wordpress

View details »

Lets see here… where to get started. First of all, I have kind of finished what I started to do in the last couple of days. However, the model on how I am putting this thing together needs a change…

And this one will be a different game changer then I had planned before. So bare with me, I will explain:

paradigm

On the left you can see the structure on how things are originally developed. Wordpress gets a separate folder as being the back-end of things, while hijack is just the front-page render part.

While I know that this set up would be ideal, since it separates the front-end (website) from the back end (admin).

However, while thinking about this for existing platforms, this paradigm will totally fail. Since:

- wordpress is most likely installed in the root folder
- no one would want to move the complete installation of wordpress (since thats kind of like murder to do so).

To sort out this issue, I am starting to write down a plan so these 2 things can ride next to each other inside the root folder.

My only main concern here is the way that wordpress uses a rewrite rule to send everything through wordpress:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ –
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>

While my own rewrite rules do the exact same thing. The only thing that needs to be different in this context is, if the directory contains wp-admin (that is the default of the admin panel of wordpress).

So when this happens it needs to redirect back to wordpress.

To make a long story short, I am not going to use the index.php as my own rewrite rule script, I’ll alter this, test it and see what happens.

 

Posted on July 30, 2014

wordpress

View details »

So to keep you up to date (about a project no one really cares about, but I do… since I am all up for this stuff). I have been implementing a straight feature to present a menu:

- build by categories…

Since this is something I personally need… someone else might just want to use the menu builder of wordpress. Unlucky you, this will not be an option in the initial release.

My main goal here is to load up wordpress faster then fuck. And to be honest, I have been looking at the way that the menu structure is build up with in wordpress itself.

It uses a recursive parenting model, and to be honest I against this for now. Since recursive parenting means, the more levels you nest the slower the system gets…

and if you like slow systems, stick with wordpress templates, or either go with a menu build in html that you can control yourself to speed things up.

And this last part is actually the part I am going for. A menu sits inside a separate template file. It can be modified in a notepad editor (why not) and you have your own custom made nested menu done in no time…

Posted on July 29, 2014

wordpress

View details »

So today I did 3 different things:

- fixed the category pages
- added a breadcrumb section for the posts
- fixed an issue regarding preg_match using tags (reduces load time)

Last thing on my todo list is integrating a menu structure. Which is easy since I can dump the menu from wordpress and stick this in the template.

So I am almost done. Give it one more day.

Posted on July 28, 2014

wordpress

View details »

Now that most thing are in to place regarding my wordpress hijack project. Currently there are a few things I would like to do:

- installing wordpress in the same directory where hijack is located at (this one will be tricky because of the default rewrite rules that sit inside wordpress).
- having a navigation render like breadcrums and categories and such
- infinite scrolling for the frontpage (just as a cool gizmo).
- create a file caching system (do I want to?)

However my drive for this project is load time. And the way I am currently benchmarking things are kind of like comparing apples with peanuts. But it does give a cool way on showing how this hijack method is performing.

Make note: Wordpress uses a caching mechanism (like memcache) while hijack does not. It just gets the entries directly fed from the database without any caching in between. But think about the impact it will have when it does get one.

I have done 2 different methods:
- cold start (no cache)
- hot start (with cache)

The bench mark I am using is a single page load, while running x-debug in the background to measure how fast things load up.

Screenshot from 2014-07-27 22:39:51

At the bottom of the screenshot it shows the amount of time it takes to execute the default wordpress cold start.

which is 2.78 seconds.

Comparing this with the cold start of my own hijack method:

Screenshot from 2014-07-27 22:41:57

The load time is 0.24 seconds

Once the memcache is filled up, wordpress starts to perform much faster:

Screenshot from 2014-07-27 22:43:23

In this case it takes 0.55 seconds to load the same content. While my own hijack method executes it in 0.22 seconds

Screenshot from 2014-07-27 22:44:30

Google Pagespeed

a different story will be be measuring the twenty fourteen template using google pagespeed. Since it measures the way the page renders at the same time.

But still, I always like to compare this while making a “template”.

Screenshot from 2014-07-27 22:45:54

This is the results of Wordpress rendering the page. 81/100 isn’t a bad score at all.

Screenshot from 2014-07-27 22:48:43

While my own hijack method scores better (but still can improve). 86/100 isn’t that bad.

Screenshot from 2014-07-27 22:53:24

Screenshot from 2014-07-27 22:56:59

As an additional test, I am posting 2 requests from webpagetest. The first one is from wordpress, the second from hijack. While there is barely any difference, the time to first byte is faster with hijack.

That makes perfect sense since hijack does render the page faster. The only neglectful part is the time it takes to download the page. Since both are similar in size (12kb vs 11kb), so the time it takes to download the page will be similar.

File caching

Now I might add, I have added “create a file cache” to my todo list. However, while I look at the way this thing performs right now, I am not sure if I really need one.

Things that might be improved

There are however some things I could improve over time. First of, I have noticed the amount of preg_replace functions that take place to render the content. This is something I took directly from the wordpress formatting section.

However, I think I can optimize this section since there are some parts that make you go “hmmm?!”.

Another thing that is on my to do list is to check if all the queries running by hijack right now might need additional indexes on the tables. But that is a matter of testing the queries and benchmark those.

 

Posted on July 27, 2014

wordpress

View details »

Currently I am trying to integrate the soundmanager 2 with reasonexperts. I had this working in the development set up, while pushing things live things started to give all kinds of javascript errors.

I am trying to figure out what is the cause of this. But I’ll get back to this one.

My aim is to have this player:

http://www.schillmania.com/projects/soundmanager2/demo/360-player/canvas-visualization.html

integrated with the articles. Something I wanted to do for a long long time, but never had the time to actually do it.

Update:
I have figured out why the error was occurring over here. I am using yuicompressor to minify the javascripts. And soundmanager doesn’t like yuicompressor. Its being compressed using jsMin. Ok, now that is not so awesome.

To sort out my issue, I am using a cat (combine script files) to have the minified version made with jsMin embedded in my own yuicompressor file.

Update2:

One of my biggest here is to integrate it with ckEditor. While ckEditor is nice as its being used with many CMS tools out there. The main issue here is that ckEditor also “cleans up” the code while typing stuff.

To make it all work, I added the following two lines to the config:

config.extraAllowedContent = ‘iframe;div‘;
config.allowedContent = true;

And this allows the div tags.

 

 

Posted on July 27, 2014

Uncategorized

View details »

I usually won’t be a fan of VSTi. Serious… I am not. There are some VSTi that I however can re-use in Reason without having to think about.

http://cinesamples.com/product/drums-of-war

The cine samples drums of War is just one of those VSTi which are marketed as being a Virtual Instrument. But in fact they are just a bunch of layered samples (same as AbSynth… serious…)

Most of the instruments in drums of war are packed with some EXsessive sampler unit called the EXSFourtyTwo whatever…

While I have an NN-XT sampler in my Reason rack, I can load those samples up in there. Layer them, use combinators, reverb and what not.

Anyhow, there are some nice touches to this sample package (as I see it as a sample package now). It holds different types of drums, while at the same time they are recorded with different hits.

And this by itself is quite useless when you just browse the samples (since they all sound the same to me). But once you start layering the bits and pieces inside an NN-XT it becomes a total different story.

This is the part I like…

 

Posted on July 26, 2014

music

View details »

Today I have resumed my Wordpress Hijack project. And I am getting quite close to release this bitch…

The initial pagination system has been implemented, and it kind of works the same way as pagination from Wordpress.

The first segments is : /page/ then it is followed by a number… So
page 1 = /page/1
page 2 = /page/2
and guess what page 3 would look like?
page 3 = /page/3

exactly…

Additional, I have “fixed” a dreaded bug for setting up linebreaks. Initially, it just came down to calling the Wordpress formatting function in correct. It was just changing

wpautop($text,false)

to

wpautop($text,true)

and that was it… But the time it took me to find it, I won’t bother mentioning it ;)

Additional, I changed the layout just a tiny bit using the getbootstrap wrapper. Now things look like a 3 column layout (1 column left, 1 column right, and content in the middle).

However, once I am done, creating a new template from this should be rather easy (once you know Aich Tee Em El).

Since I have recently set up a github account, I think I will publish the source files through there. Saves me from setting up a repo here and making it public and so on.

So, 2 things can get off my todo list. Almost there.

Posted on July 26, 2014

wordpress

View details »

During the week I have started to re-arrange the articles on the site reasonexperts.com. While at the same time, I have posted a snippet on every content page, something about this issue.

What really doesn’t come as a surprise to me at this point is that the link of the discussion I have posted is not being requested as much as I would like..

So there for I will have to come up with the changes myself. And personally, I would like to take this pretty far, but that would just take me a long time to cover it.

In the current state, I have 3 main different tutorial segments and these are:
- reason rack
- tutorials (everything)
- video (video specific)

Reason for me putting the videos separated from the rest, is because I have figured that videos are something one would want to see, others would not…

While the videos are from a SEO perspective rather bad, this means that people looking for a specific tutorial through google will most likely jump to a text tutorial, rather a video tutorial.

Other people would just use Youtube to find videos. Thus the separation on that level is already made.

However, I like to have this on my own site. There for the separation between the segments.

Another thing that I am willing to “create” (but I haven’t figured out yet how to do this) is to have a page that would guide you through the different topics like an index page which goes from topic 1 to the next and so on. Kind of like a book… my only problem in this realm is that people wouldn’t really look at a site like this… But I am willing to give this a try.

Call it the step by step guide through reason.

I do believe that a lot of content should be rewritten while doing this, since it requires a different teaching method and so on. Also, it will be another long term project. Since I have already “tested” this with a subject about the redrum drum computer. In its current stage it has 6 different pages, yet it took almost 2 weeks to create it like this… That says something.

At the same time I am dealing with Thors hammer, and from my point of view this project gets priority over the new content (aka, book like structure). Since the structure will be another year or so before it gets finished.

Posted on July 25, 2014

reasonexperts

View details »

I just watched a thread about someone who would like to dig up a 4 year old story. Which is all fine. The person in particular hasn’t seen what happened in those 3 years. But ok, lets not go there.

Reason for me posting right now, is this thread posted on the PUF (yeah, drama… here goes!):

https://www.propellerheads.se/forum/showthread.php?p=1494032

First of all, I like to thank John Richards for contacting me about the thing. He asked me gently to post something on a Reason forum, and I answered that he had my consent to do so.

Personally, I am not going to wonder around that much on forums like these, since I think it is a waste of my precious time. This is just one of those moments… since now I have to reply to it, but I don’t want to do this on the PUF since it is going to be “one of those debates”.

The thing that kind of gets to me right now, is a single line that is put WAY OUT OF CONTEXT (yes… CAPS!).

After his issues with PH he kind of took all of his anger out on those who liked his site. I.E he deleted it. Now it is back up again but who know for how long?

Sure it starts with another line, this one…

Well, he made a hell of a job creating a lot of videos and tutorials for the Reason users.

To back up my thought of process, this was the recording I did a few days later when “the thing actually happened”… here goes again.

To put the whole thing in to context… here goes this one podcast once again… (I recorded this 4 years ago).

Now to think about that at the exact same time period I was heaving health issues. I won’t be using this as an excuse, but at the same time I am… since this could have ended up pretty nasty. As in… dead wise nasty.

So, what would have been the difference as in: I would have died back then, while making the stuff that I was doing and not really taking care of life as we know it?

Or… what if I did keep the site as it was back then, would it really make a difference? Nope, it wouldn’t since at that given time PH already made note that they they didn’t really care much about it.

Also, take note that some sites are getting “tweeted”, or posted on their blogs what ever. Just think it of this: I was the messenger telling the company to wake up. And the only way I could make this message valuable is to take action at the time. Which I did…

I am not regretting anything I have done in the past, heck… if I was in the same place as I would be now, I would do it the exact same way!

However, things are different now. Since Tsor (the sound of reason) was more a community aspect, which PUF didn’t offer (and still doesn’t). Reasonexperts.com is just a tutorial site, which means, I just write stuff and I don’t care what happens with it.

My complete life environment has changed and I look at thing a bit different. I mean back in the days TSOR / Reason was my life… now it isn’t any more. And the irony here: PH has a big role in this. Not me… I just act on how they act like. Simply said.

In addition, I might just conclude this story that:
- TSOR was all done in my free time. I had a steady job next to this

- I had +400 mails on a daily basis

- People really didn’t care that much that the site was down (serious, I counted them, there is one message I saw in my other mailbox where someone was really asking what happened to the site, and another comment on youtube was in the same context).

- Its the internet, sites come and go… same stuff happened to empornium.us back then… Just saying

- Reasonexperts is just another take on how I wanted TSOR to be like, me just having fun while making tutorials… and TSOR was almost like work to me (next to my steady job)

- People (like “yourself”) should look at the bright side of things, if there are people willing to help out, embrace them… not judge them on things they did 4 years ago.

- Have ever made a website and maintained it for 10 years straight in your free time, and came up with the content I posted on a daily basis? That is something else to think about

- Reasonexperts.com might just be a one day fly… who knows, its been running for 3 years now

Ok, that should sum things up for now.

 

 

Posted on July 24, 2014

Uncategorized

View details »

view