• Home
  • Interactive Resume
  • Blog
    • Coding
    • Health & Fitness
    • Success & Lifestyle
  • Contact
  • About

BAOSS

  • Home
  • Interactive Resume
  • Blog
    • Coding
    • Health & Fitness
    • Success & Lifestyle
  • Contact
  • About

Week 8 Day 4 – I’m loving CSS!

Home Coding Week 8 Day 4 – I’m loving CSS!
Week 8 Day 4 – I’m loving CSS!

Week 8 Day 4 – I’m loving CSS!

Mar 17, 2017 | Posted by Bao Le | Coding |

I’m pretty sure I made a slight breakthrough yesterday with my understanding of CSS. I was dragging my feet a bit on implementing my photo feed and photo details portion, but once I got into it, I was seriously rolling.

I set up my models, controllers, actions, reducers all with little hiccups. I did have a redesign in sample state to include user info though just so that I can access user profile photo and names. That took a relatively short amount of time, thank goodness. I then set up my presentational component so that I could see the container structure, which really helped with organizing for the CSS.

The worst part of the day, which wasn’t even that bad after I figured a work around, was seeding the database. I went and seeded 14 users using the Faker gem for Rails, that was the easy part. The other easy part was finding 100 or so photos so that I had a reasonable amount of seeded information. Once I found 100 photos, I uploaded to my cloud storage on Amazon’s AWS S3, that was also the easy part because I could just drag and drop all 100 files into their upload UI. The hard part was getting the link, that is until I found out that all the S3 links had the same prefix. I then found out that I could go into the directory, and copy and paste all the file names into a txt file, and then parse that txt file in Rails into an array, where I then mapped over and prepended the S3 prefex. And BAM! I have an array of ALL the links I needed. It was then just a matter of iterating through the links, creating new Photo objects with the links and randomly assigning a user with a user id number.

I was so into the project, I stayed at a/A until 1 am last night, went home and continued working until 2 am. I finished what I intended to do, and feel ahead of schedule =D.

That’s pretty much it for today guys! Time to pull ahead of schedule even more!

0
Share

About Bao Le

Web Developer at Dropbox. Reach out, I'd love to connect!

Contact Us

We're currently offline. Send us an email and we'll get back to you, asap.

Send Message

Let’s Connect!

© 2025 · imbaoss.com

  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
  • GitHub
Prev Next