I am beginning to transfer Arcath.net onto a new server.
This new server is allot more powerful than our current one. The production version of this site will have its own virtual machine, this of course means that I will be running multiple webservers on a single IP address, to do this I have had to setup a Reverse Proxy. This is causing a couple of issues when ever ive used the "CONTROLLER_url" route instead of the "CONTROLLER_path" route. I will be working to resolve this as I move the app across to its new server.
My Blog
Welcome to Arcath.net
Transfer to Server
Templating Engine
The next thing on my to-do list is a templating engine for train.
At the moment the template in use here is hard coded into train and anyone trying to change it will have a fun time doing so. My current line of thinking is to have "partials" for each template, probabbly taking the form of everything upto <% yeild %> and then another for everything after it.
Another big point is that there are elements of the site that are greatly improved by javascript, and all of them need the jQuery library so the partials will only be for the area inside the <body> tags. For any extra header info line javascript links and stylesheets there are a couple of helper methods that you can use.
That places the link tags for the two javascript files in the header just after the jquery library.
I hope to have something working in the next few days.
My Blog
At the moment the template in use here is hard coded into train and anyone trying to change it will have a fun time doing so. My current line of thinking is to have "partials" for each template, probabbly taking the form of everything upto <% yeild %> and then another for everything after it.
Another big point is that there are elements of the site that are greatly improved by javascript, and all of them need the jQuery library so the partials will only be for the area inside the <body> tags. For any extra header info line javascript links and stylesheets there are a couple of helper methods that you can use.
jsit 'firstjsfile', 'secondjsfile'
That places the link tags for the two javascript files in the header just after the jquery library.
I hope to have something working in the next few days.
My Blog
Little bit of downtime
Sorry about not warning you but the company we leech off for whitefalls internet having been doing some interior re-modelling which resulted in the modem being turned off for a few hours.
Everything is back up and running now, and as far as I can tell there is nothing wrong with whitefall
My Blog
Everything is back up and running now, and as far as I can tell there is nothing wrong with whitefall
My Blog
Train BBCode Editor
My latest project is the TrainBBCode Editor. It is an editor for my TrainBBCode gem that allows new users who have never used bbcode before to make nicely formatted posts, whilst still allowing the users who have mastered bbcode to type it them selves.
I left the ability to type in your own bbcode intact for a couple of reasons:
So the problem then became "How do you un-obtrusively add a preview of the content without having the developer modify loads of files?"
My Solution to this was to have a generator make a tbbce_controller with an index.js.erb view.
When the user presses the preview button the contents of the text area is sent to this view. This view then parses the bbcode and places the output into the div that holds the preview.
My Blog
I left the ability to type in your own bbcode intact for a couple of reasons:
- If a user has never seen that the site uses BBCode then when they go to a machine without Javascript enabled they will be faced with a white box and no hope to format.
- My friend always moans when I take away his ability to write the code himeslf
So the problem then became "How do you un-obtrusively add a preview of the content without having the developer modify loads of files?"
My Solution to this was to have a generator make a tbbce_controller with an index.js.erb view.
When the user presses the preview button the contents of the text area is sent to this view. This view then parses the bbcode and places the output into the div that holds the preview.
My Blog
Updates to TrainBBCode
There was a much needed update to TrainBBCode that i've finally got round to doing.
This update fixes a <br /> problem where it put <br /> when tables and other tags that put lines in by themselves.
This update has been pushed to gemcutter as version 0.2.7 and committed to github
My Blog
This update fixes a <br /> problem where it put <br /> when tables and other tags that put lines in by themselves.
This update has been pushed to gemcutter as version 0.2.7 and committed to github
My Blog
RIRCB
My Latest Project is a new IRC Bot, I know your about to point out that I make an IRC Bot every few months, the new one is based on the same design as the old one and I tire of writing it after a few weeks. But this one is very different.
Where as before the bots where centred around a parse list, where there was a massive IF statement that tested the received message against a REGEX pattern for every command I had written. This one has a dynamic number of commands, There are a couple of static commands hard coded into the Command class, but these are admin commands that everyone will need to run the bot properly anyway. It also only matches the string to one REGEX pattern, and then pulls the command you want to use out of the string.
This bot is designed more as a bot for anyone to download and use, rather than a bot specifically for me.
As allways the git repo is on git hub at: http://github.com/Arcath/RIRCB
And the info page is hosted here at:
http://www.arcath.net/pages/3
My Blog
Where as before the bots where centred around a parse list, where there was a massive IF statement that tested the received message against a REGEX pattern for every command I had written. This one has a dynamic number of commands, There are a couple of static commands hard coded into the Command class, but these are admin commands that everyone will need to run the bot properly anyway. It also only matches the string to one REGEX pattern, and then pulls the command you want to use out of the string.
This bot is designed more as a bot for anyone to download and use, rather than a bot specifically for me.
As allways the git repo is on git hub at: http://github.com/Arcath/RIRCB
And the info page is hosted here at:
http://www.arcath.net/pages/3
My Blog
Passenger is up and running again
Ive managed to fix passenger i hope it lasts longer than the last fix.
Passenger should work now and POST data is now sent to rails correctly and an error 500 is no longer triggered
My Blog
Passenger should work now and POST data is now sent to rails correctly and an error 500 is no longer triggered
My Blog
Passenger Down Again
Passenger is experiencing technical issues again, infact its exactly the same problem it had before, I am attempting to find another fix for the problem, although i remember applying them all last time i had this problem.
Hopefully i will have passenger working again soon.
My Blog
Hopefully i will have passenger working again soon.
My Blog
A New Version of TrainBBCode
There is a new Version of TrainBBCode! Version 0.2.2 provides a few new features aswell as some extra tags.
There is now a color tag that works like this:
[color=red]Red Text[/color]
that would output:
Red Text
the attribute for color can be either the hex value you want or and color listed on this page.
This version also has the beginnings of syntax highlighting for code. It has the optional dependacy of the Ultraviolet gem. This provides syntax highlighting using the text mate bundles. I am having issues installing one of its dependencies here on whitefall but on my ubuntu machine its installed fine, and appears to work but without a rails app to view the rendered html its rather hard to test.
My Blog
There is now a color tag that works like this:
[color=red]Red Text[/color]
that would output:
Red Text
the attribute for color can be either the hex value you want or and color listed on this page.
This version also has the beginnings of syntax highlighting for code. It has the optional dependacy of the Ultraviolet gem. This provides syntax highlighting using the text mate bundles. I am having issues installing one of its dependencies here on whitefall but on my ubuntu machine its installed fine, and appears to work but without a rails app to view the rendered html its rather hard to test.
My Blog
Merry Christmas from Arcath.net
Merry Christmas
Development of Train is going to slow down for a few days (probably until after new year) whilst i take part in the festive season and begin my assignment work for Uni
My Blog
Development of Train is going to slow down for a few days (probably until after new year) whilst i take part in the festive season and begin my assignment work for Uni
My Blog