Open in app

Sign in

Write

Sign in

Kieran Andrews
Kieran Andrews

80 Followers

Home

About

Feb 29, 2020

How to use ActiveStorage in Rails 6 to upload files to s3

Active storage is a layer inside of rails that helps you connect with cloud services like AWS. Its also connects to other providers like Azure and Google cloud. …

3 min read

How to use ActiveStorage in Rails 6 to upload files to s3
How to use ActiveStorage in Rails 6 to upload files to s3

3 min read


Dec 2, 2018

Yii and Authorization Rules (RBAC)

One thing that has recently puzzled me with my discoveries of the Yii PHP framework is to do with how authentication rules work. (In particular RBAC) I have been recently working on a big project for work that is quite complex with quite a few different systems that are all…

PHP

3 min read

PHP

3 min read


Dec 2, 2018

Codeigniter and Netbeans

I have recently stumbled on some really awesome tools, Code Igniter and Netbeans IDE for PHP development. I’ve used eclipse for Java development through uni and found it really great. …

PHP

2 min read

PHP

2 min read


Dec 2, 2018

Vancouver

Vancouver is an amazing city. So alive and vibrant. It has an arty feel to it. Its bigger than Adelaide but the main shopping areas felt emptier and less alive compared to say Rundle Mall in Adelaide. I spent most of my time in Granville St in the Samesun backpackers…

2 min read

2 min read


Dec 2, 2018

Web Development

I am currently really enjoying working at Bigwig wired in Adelaide doing web development for them. I really enjoy working with a team of designers and then turning the designs into reality and integrating them into CMS’ for clients. I have very quickly accelerated my knowledge of css, and JavaScript…

Web Development

1 min read

Web Development

1 min read


Dec 2, 2018

jQuery Scrolling Box

I am currently working on a website that requires some scrollable elements on it. The design specification is to do away with the scroll bars to allow for a better more simplistic design. Now I remember this being done in the past in flash, but I wasn’t going to be…

JavaScript

2 min read

JavaScript

2 min read


Dec 1, 2018

PHP Debugging

Recently while working on a particular project we had some strange errors that came up. In the usual php like way, the error messages where not very helpful and didn’t allude to what the actual problem was. Have you seen an error like this before? **Headers Already Sent on line 392 ** Invalid argument supplied for foreach()… Well, this handy functionality that I discovered in php made my life easier.

PHP

1 min read

PHP

1 min read


Dec 1, 2018

My Startup Weekend in Adelaide

I recently attended startup weekend in Adelaide. I was really excited because it would be a good opportunity to build something and test my new skills I had learn recently programming ruby (and using rails). The weekend started on Friday night where attendees had the chance to pitch their ideas…

Heroku

2 min read

Heroku

2 min read


Dec 1, 2018

The mystical “Tableless” Model for rails

I had a bright idea for an improvement for the app I am currently working on. I have a Rails model that has only 2 rows in the database and the data is never changed, it has quite a lot of relationships and is used quite extensively. My idea was to remove the database out of the equasion and create a Model that would be entirely self dependent. Here I will show you my methods of maddness: def MyModel include ActiveModel::Validations include ActiveModel::Conversion extend ActiveModel::Naming def self.attr_accessor(*vars) @attributes ||= [] @attributes.concat( vars ) super end def self.attributes @attributes end def initialize(attributes={}) attributes && attributes.each do |name, value| send("#{name}=", value) if respond_to? name.to_sym end end def persisted? false end def self.inspect "#<#{ self.to_s} #{ self.attributes.collect{ |e| ":#{ e }" }.join(', ') }>" end end

1 min read

1 min read


Dec 1, 2018

Map Reduce: My recent talk

I recently made a talk for Map Reduce with a focus on Ruby. You can see the slideshow here http://slid.es/kieranandrews/map-reduce-in-ruby I presented the slide at Adelaide.rb Meetup and at work. Originally published at kieranandrews.com.au.

1 min read

1 min read

Kieran Andrews

Kieran Andrews

80 Followers

I enjoy building software, making web applications, surfing, snowboarding and cooking!

Following
  • Orren Prunckun

    Orren Prunckun

  • Wil Wheaton

    Wil Wheaton

  • Trey Huffine

    Trey Huffine

  • Thoughtworks

    Thoughtworks

  • Adam Keily

    Adam Keily

See all (148)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams