Learned something dumb today. I was having trouble getting the angular-scroll package to work at all. Then I remembered having similar problems months ago. Best to write this down to remember once and for all.
Add the –save flag
Most front-end packages on GitHub have installation procedures that look like this:
However, if you’re using a task manager like gulp or grunt to squash vendor scripts, you’ll probably also need to add the
--save flag in order to actually add the package to your bower.json config file.
bower install angular-scroll --save
Add the package to your angular module
Can’t also forget to add the package to the angular app module
Quick link: Floating input labels
Not quite ready for prime-time due to browser support, but I’ll post it ’cause it’s cool and I’d love to use it soon.
Eric Portis has written the best tutorial/explanation I’ve seen yet on implementing responsive images. I gave up on making responsive images when working on my portfolio because I couldn’t find consistent and understandable best practices. Now I may go back and try it again.
The key takeaway is that you declare the format of the image with srcset and then use the sizes attribute as the media query.
The tutorial: Srcset and sizes
A quick reference example:
sizes="(min-width: 36em) 33.3vw,
alt="A rad wolf" />
A good reference for me to learn better. JS: The Right Way
I’m building a realtor’s personal website. Since I have never worked with realty, I need to learn a few things about MLS searches. Here’s a quick summary of my learnings followed by some process.
1) There are many many MLS databases. Each area/firm/agent has their own. These databases are their secretly guarded stash of people’s homes and their connected agent. Agents have their own action list of homes. These can be managed by things like open realty, a myPhpAdmin but for homes…
2) Getting access to search MLS databases requires a realtor that is a member of the MLS owner group.
3) If permission is granted by the MLS Provider, one can create a query and ftp whichever listings you want to your own database. Permission may require $$.
4) Most often 3rd party companies just provide the code that figures out how to display the listing info. (A good webdev/designer should be able to do this decently)
5) Some companies offer to host the MLS info, but that just takes the place of the original MLS. Heavy lifting here depending on how many people input into the database. These services are really only useful for big agencies like Century 21 who supports hundreds of agents.
- Installing Open Realty 2.5.5 into a test site -> success, easy
- Installing WordPress into test site -> success, easy
- Open Realty 2.5.5 doesn’t actually querry an existing MLS but just allows realtors to input listings themselves. Not useful for me.
- Need to contact Century 21 and ask how to get MLS access. May need actual realtor to make call.