Posts

ADVERTISING STYLES

storytelling      lifestyle focus MARKETING OBJECTIVES AWARENESS Brand - those MORE likely to pay attention to ads and increase awareness Local - geographic proximity Reach - Max # ppl CONSIDERATION traffic - send more people to a destination ON or OFF facebook engagement - comments, shares, likes, event responses, offer claims app installs -  video views lead generation - collect lead info from ppl interested in your business CONVERSION conversions - valuable actions (ex. adding payment info, making purchase) product catalog sales - automatically show products from catalog based on target audience store visits - promote geographic business location to those nearby AUDIENCE SELECTION Geographic location age gender language Detailed targeting include/exclude :  DEMOGRAPHICS INTERESTS BEHAVIORS Connections Facebook pages - people who like, friends of people who like, exclude Apps - same as above Events - same as...
some url/category/action_within_category create an instance of the category controller and then calls the action with that instance looks for template to display the action and result heading to /views/say and seeing if it finds a specific template for that action
Model - persistent data business logic CART USER LINE_ITEM PRODUCT. RELATIONSHPS BETWEEN THE MODEL OBJs has_many or belongs_to like line_items belong to a cart and a cart has_many products/line_items  models have attributes  data validations VIEW presenting yourself, default edit, new, form, index, show helpers for view behavior keeping views slim ATOM CONTROLLER Find and fetch data  put data in instance vars callback actions CONCERN - common controller logic GET - new, index, show, edit POST - create PUT - update DELETE - destroy ACTIVE RECORD: maps  CRUD many_to_many - has_and_belongs_to one_to_many one_to_one scope :last_n_days, lambda {|days| where('updated < ?', days)}    then you call it with orders = Order.last_n_days(7) create, create!, save, save!    ! always sends back an exception in create vs create! you may not know if it truly was written unless use ! Defining your data, locating and ...
a bunch of methods that can be used with any other class (MIX IN) a method is a group of several expressions(block) that can be referred by a name, passed arguments, associated with one or more objects higher order function takes a function as a param or returns as a result AREL relational algebra  returning the reply for the first comment, a table joining itself why is that easier in arel than sql, because sql qould require aliasing CONTEXT When    user logs out when    user logs in when    not valid or With TEST VALID EDGE NOT VALID ex  describe destroy do        context 1: WHEN resrouce found => 200        context 2: WHEN resource not found        context3 : WHEN resource not OWNED expect DONT SHOULD expect dont should expect dont should expect means in my mind i think i know what will come rather than should, if what comes isn't what i thought obl...
1 works with 2,3,4,5 2 works with 7,8 matrix - n x n search horiz, vert, diag whenever you visit a location, and then visit a connected location, you do not want to revisit the old as you continue to find adjacent cells FINAL: can only be assigned once getOrDefault(Object key, V defaultValue) Returns the value to which the specified key is mapped
800 ms response time AINT BAD an endpoint that is used a lot HSL - Hue, Saturation, Lightness NONaggregated column ARTSHOW ARTWORKS The way it is organized now, is the sections are rendered once and then javascript hides or displays based on href clicked       1) ajax on the images if user clicks on a specific collection orrrrr a dropdown ellipsis: omission of superfluous words event.preventDefault() : default action will not be triggered $ -> $ (".prof_content"). dotdotdot watch : true wrap : 'word' ellipsis : ' ' after : "span.more" menus = window .menu_items $ . cookie ('dd', screen . width + "x" + screen . height , { expires : 7, path : '/' }); doResize () $ ('.show_dlg'). leanModal () window . section = window .profile_layout['profile'].homepage $ ( window ). resize -> doResize () $ ('.prof_menu_item'). click (event) -> event....
64 bit computer  -> 64 switches that can turn on or off 0 - 2^64 - 1 Hashtable create an array that acts as a references table for storing elements without having to worry about order and being able to return those elements efficiently