Alan Reid


38,810 Experience
304 Lessons Completed
7 Questions Solved


Posted in What are your goals for 2018?

Hatchbox is an amzing platform! Crystal sounds interesting, i may take a peek at that too.

Post like these are great, and they allow you to see if you managed to hit your goals for the previous year too :) I didn't haha

Posted in What are your goals for 2018?

Hello all,
Last year I posted a similar post, and it was really popular. So first off how many of your goals did you complete? Here's the previous post as a reminder of what you may have posted.

So let me start the thread off...

Well 2017 was a crazy and busy year for me, other than beign a dad to my 3yo son (going on 18) I changed jobs twice and am now happily working to improve the fintech industry at Bud. Bud is a cool little app (Web, iOS and soon Android) which aggregates all your finacial products, some exciting times and busy ones to come!

So i got my Pi's all up and running, but never actually used them to host anything. So this will once again be a goal for 2018.

Other things i want to achive

  • Better understandig of VueJS, and Node.
  • Rebuilt my personal site, and contribute articles to medium again - maybe a development post a week.
  • Finish off my Pi project (one day, haha) and host a project.
  • Contuning to improve my development skills, and get back into rails on my side projects.
  • Get back into contributing to GoRails, i havent done enough during 2017 so want to get more involved int he community here.

So ladies and gentlemen, what are your goals for 2018?

Don't forget to have an amazing Christmas, and a Happy Ner Year!

Posted in What are your goals for 2017?

Nice work Sascha

Posted in 2 sites... 1 DB?

knew i could trust asking in here!

yeah an API would have been my first option as it sems the most logical, however now you have mentioned ActiveResource i think i will have a look at that :)

basically i need to have them running off the same DB, but i want to keep the sites seperate so each site can be updated without effecting each other.

thanks for all the infor Chris, and Jacob. :)

Posted in 2 sites... 1 DB?

Hello all! It's been a while since i was here, but i am back!

So today I would like to get some opinions on a project I am working on. So here we go...

What would be the best way to architect 2/3 sites (one comsumer, one business, one godmode/admin - maybe) running off one DB?

One solution i have come up with is to have an API, which dones all the leg work, then the sites - and eventually mobile apps could use that to deal with data. I assume this would need to be token based auth so its secure, and i think Chris has a great video covering this.

An other would be to edit a connection string, but i dont know if you can do that in Rails, i know you can in .NET which is why i thought about it.

Any one else have a better solution? All help or suggestions would be much appreciated thanks :)


Posted in Dynamically create sass variables in rails

Inline styles are not ideal, you could always create a class, and reference it in the header in a style tag. Then inject the colours into that?

.custom_class_1 { color: colour here; }
.custom_class_2 { color: colour here; }

then maybe set the colour in the application controller and cache it somehow?

Posted in What are your goals for 2017?

I've put the cluster on hold for a bit due to other commitments. However i will finish it off soon and update :D It's all built now, just need to setup NGINX, and set one Pi as a load balancer. I am also tempted to get a Pi just as a DB server.

I recently seen that Angular will be skipping to Version 4, they are missing 3 due to one of the compents being out of sync to the rest of the framework. So with that in mind I have found some courses on Pluralsight which I am going to use to learn Angular 4.

DartCSS is fully underway now, so i am developing a modular CSS library. Doughnut has been retired as the name. I chose Dart as it mixes the names of my 2 youngest kids together (Daisy and ARThur) ;)

Posted in Freelance advice

I agree with Chris on what he posted. For me a lot of the work i got when i was doing freelance work was via old contacts and recomendations which made it much easier.

One thing i would say, and its VERY important, have a contract!! Don't start any work before its signed, otherwise you will find yourself doing work for free - not good. I was burned from this as i forgot to get it signed.

Test the water with your daily rate, you will find that people who value the work you do and your skillset will pay the premium. You will also find some who want it cheaper, seriously dont budge on your costs as you then start to devalue yourself. You will find most people will pay what you charge (DON'T FORGET THE CONTRACT!!). Also, have a look online to see the contractor rates for the work youre doing. I know you can get up to £450 (plus VAT) a day for development in the UK - obviously depending on your skillset.

Working from home can be hard, there are lots of distractions. I would suggest here that you make sure your work area is cornered off from the rest of your home - or pop to a local coffee shop if you can. You need to try and avoid the distractions, but once you can you will be well away and get things done.

Marketing wise, I would suggest learning the basics of SEO for when you build websites. Its not just an extra you can charge for but it will make sure you write clean code. As for self marketing, get yourself a site and show off your work, maybe blog or post to Medium just to get your name out there. You will soon find work coming in without the need to self promote too much, mainly from word of mouth.

Posted in Anyone with experience using Quilljs?

I have used Quill, it wasn't too bad to implement if i am honest. I didnt use any Gem, i simply included the require JS script and the div. It really was that simple.

I would agree with others here, Google is a massive help. But Chris has built a fantastic comminuty here at GoRails along with a wealth of amazing resources. With that I would say never be affraid to ask questions, there is always someone out there who can provide you with the help and advise you are after.

Don't give up, keep going!! Remember you have a whole community here to help and get you through the times where you keep hitting your head against a wall! haha

Posted in What do you listen to while coding?

This weeks choice of music has been the Aucoustic Cafe playlist on Spotify :)

Posted in How to make form fields to display placeholder text?

haha no problems mate ill see if i can get a sample togeher using your screens to try show what i mean.

Posted in How to make form fields to display placeholder text?

Ok back, sorry about this got dragged off onto some other tasks haha.

Any how looking at how the data is loaded it seems that item is getting prepopulated when you load yo the show.

Ideally what you want to do is not load that item on that textbox and only highlight one of the selected projects, and have the new task seperate. So when you click add project (the + icon) it takes the name from that box and creates a new project.

This would be the same for the task too.

I have it in my head, and may not have explained it properly haha but hopefully you can get an idea of what i am talkign about.

Posted in How to make form fields to display placeholder text?

Hi Aidan,
Give me a sec just rewriting this post :) I can see what your issue is.

Posted in What do you listen to while coding?

So i had an interesting chat with fellow community member Jacob, and we are wondering what music do you listen to while you're coding?

What really gets you in the zone as you work hard creating your projects, or helps you block out those distractions that always seem to pop up.

For me recently its been the new Busted album, yes sad but true! Busted released their new album Night Driver recently and well, its my most listened to album at Present. The songs are not like their previous albums and are a bit more chilled.

Another albums is MoS: Acoustic Anthems really nice and chilled, a great mix of artists which are mostly acoustic as the album says.

Posted in What are your goals for 2017?

@Adrian yeah its crazy! Kids are like sponges so its great to get them involved at a young age i think personally. My son has had this book since he was born..

Posted in What are your goals for 2017?

Here's a sneaky peek...

Posted in Lots of trouble using LESS in a paid theme.

SASS and LESS are actually quite easy to convert to each other, I know this is old but happy to help anyone if needed.

Posted in What are your goals for 2017?

@Nick, yeah continued learning for Rails is still my main aim. I also have Angular 2 on my mind. I am also looking to relaunch my CSS library with a new name too :D So will be quite cool. I will let you know about the Pi stuff, so far my lil server is working well. Should have a stack of them setup early next week.

@Patrick, Good Luck with the business mate, i hope it works out well. - Nice site btw. And even more luck with the family, kids are great but they grow up way too quick! My son is almost 3 and he's already telling me about how hes coding, and messing with terminal commands to make his server faster, while hes on his iPad haha :-/ - what have i created?!

Posted in What are your goals for 2017?

Hello all!
Hope you all have a great holiday and heres to an awesome 2017 to you all :)

One of my goals for 2017 is to learn new stuff. One of the things i want to do, is to expand my understanding of how my app would work if hosted across multiple servers. While also learning abit more about non-IIS hosting enviroments - I come from a .NET background.

Well to kick off 2017, and further this goal I've invested in some Raspberry Pi's which will become my development test server.

All is good so far, I have it all set up and working well with just one Pi device, and I'll be moving on to add more nodes shortly. I will be posting my findings on my blog soon, so I will share the link here if anyone is interested once I'm done.

From what I have read so far some people are hosting sites with around 50k monthly visitors on a cluster of 2 Pi 2's so its pretty cool. Well to me it is haha :)

I was wondering if anyone has tried this before? I'd be keen to hear how you did it.

Finally, what are your goals for 2017? I have a couple more, but please feel free to share yours too, and then check back to see if you managed to complete them later in the year.

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.