Posts

Showing posts from 2016
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
Djikstra's shortest path: find shortest path from one node to another DIRECTED WEIGHTED GRAPH NODE==VERTEX==discrete position EDGES: directed vs. undirected order of G # nodes size of G # edges unsettled means they haven't been evaluated
When associations are based on reference, not values, think arrows, not what value is stored at the location the arrow starts, nor what value is stored at the location of where the arrow ends. A binary tree Linked List ALL nodes @ EACH depth an INNER class cannot be static NESTED classes STATIC NON-STATIC PUBLIC PRIVATE proj 1, proj2, proj3, ...., projn dependencies(proj1 is depended on by proj2) (proj(n-1), projn) topological sort for every edge (a, b) a appears before b in the linear order MUST BE ABLE TO PICTURE THE DATA STRUCTURES ONE USES TO MANIPULATE THE PROBLEM WEBPACK replace Gulp Grunt         Module loader: require.js, browserify NODE JS: playform javascript runtime event driven non blocking input outupd data intensive real-time app run across distributed devices  SERVER SIDE networking apps React creates class    html with html element property ReactDOM renders   html, get dom element FLASK
Design a method to find the frequency of occurrences of any given word in a book . What if we were running this algorithm mUltiple times? if(word== book.word) while book.next != null Given two straight line segments (represented as a start point and an end point)' compute the point of intersection, if any. x0 y0 x1 y1 a0 b0 a1 b1 imperative programming vs functional "compute the point of intersection" what does it mean for two line segments to intersect === different slopes   OR they have the same slopes which means they better be the same line Point intersection(Point start1, Point end1, Point start2, Point end2){ if(start1.x > end1.x) swap(start1, end1) if (start2.x > end2.x) swap(start2, end2);   (make sure things are referring from same reference location if(start1.x > start2.x){     swap the x's and y's compute lines case parallel lines = > must have same y intersept otherwise we can n...
Percentile is way more informative than average accessible and transparent integrate geographies timeframes content areas cases and case load
IPUMS - CPS Integrated Public Use Microdata Series Current Population Survey decennial - every ten years constructed variables for family interrelationships (Peeps within the same household) speed up analysis of family structures and characteristics conflicting goal of compatibility and completeness Bureau of Justice Statistics crime criminal offenders victims of crime operation of justice systems federal state local policymakers COMBAT CRIME EFFICIENT AND EVENHANDED JUSTICS Center for Medicare and Medicaid services CMS- Health and Human Services (HHS). Medicare Medicaid the Children’s Health Insurance Program (CHIP) the Health Insurance Marketplace. Department of Veteran Affairs patient care federal benefits to veterans and their dependents.  VA operates largest integrated health care system in the nation, with more than 1,700 hospitals, clinics, community living centers, domiciliaries, readjustment counseling centers, and other facilities. Health and ...
Amazon ws calls something pre authenticated URL OAUTH- log in without exposes your password MIME - Multipurpose Internet Mail Extensions POOL-TEST-ON-BORROW   connection is borrowed from "pool" validation query will sent? need to find the dbconfig.xml file Bunch of language kernels Notebook client in the web browser talk to notebook server NONCLUSTERED COLUMNSTORE INDEX - has a rowstore table heredocs: strips indentationi COALESCE: first expression that does not evaluate to null

learnings

Image
REPO: basic interaction with db: run scripts, retrieve query results: SCRIPT, QUERY, CONNECTION Model: a WHOLE table breaks into...... ModelInstance: individual records: UPDATE, SAVE DirScan: scan a DIRECTORY: COLLECTION, SAMPLE, how to process FILES       SasScanner: for sas database files Find one associated record by type and name row count, column count, date created variable: label, type, length Periodicity: data updated....two months go by.....SAME data updated....two months go by.....SAME data updated Seeding a database with data, seed.yml file etc. DETERMINE COLLECTION agency name: hhs collection name: tanf sample name: 2008 a fulltext index is faster than a like or full query cus it looks for a partial piece type thing SQLServerDataSource MICROSOFT SQL server SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG= 'cmr' ; Model: what data structure looks like in db, but mak...

row % col % not showing up

Wh Male 13% Female 29% Gr 13% 43% Pur 50% 14% Or 25% 14% Moves by column, left to right

My reaction to having to read things one too many times

Makes sense to know the sample size, the average, and the average distance each point deviates from the average. Using these numbers, one can calculate the confidence interval When I don't understand,  or just can't process the words, and I end up reading it three times, and the third time I realize what I'm doing, and it makes me so damn heartbroken, my heart gets ripped open, because I am spending a moment on this earth, on my existence, forcing myself to TRY TRY am I going against my own tide. I have such a problem with empty existence. And it is in those moments where I panic at an empty existence. That I could read a sentence three times, like a robot, and not absorb the words. Not only NOT absorb the words, but watch as they send a signal to fill my brain with burning bubbles, like a Willy Wonka chocolate factory suffocation, spinning around and around, brain clenching. Data collection came from two sources (felt heart jump writing this sentence) Periodic popu...
Depending on the initial condition, gradient descent may end up at different local optima. Doubly stochastic normalization STOCHASTIC: Analyzed statistically but not precisely predicted Spectrum analysis of affinity matrix : Pairwise affinity matrix to measure similarity, then NORMALIZE, Logistic regression: Classification into discrete groups. Set a threshold Prediction is given by sigmoid function g( Cost: need one minimum

10_28_2015

Gaussian distribution Expectation maximization: Maximum likelihood or "a-posteriori"

11_2_2015

Posterior predictive distribution unobserved observations aka PREDICTION CONDITIONAL ON observed data Similar to term "maximum likelihood"

11_9_2015

Log Likelihood You have a parameter, you can produce a probability density function given a set of observed values. Log likelihood says take the observed values and find the likelihood of the parameter in the same probability density function kind of way. probability of a DATA VALUE FIXED parameter FIXED data set probability of PARAMETER

Learning 11_13_2015

Hazard model > survival model Survival model time passes..... an event occurs..... reason(variable) associate with why x amount of time passed before the event occurred

01_07_2016

Orlin New Job Understanding R on R     Model: HOW the Rails App (RA) talks to the data        ActiveRecord::Base maps class to the data table        Reading attributes in model doesn't need self        Setting attributes in model need "self"     Controller :Binding between the Model and View REST Representational State Transfer show == select == get create==create==post update==update==post destroy==delete==post post makes a change get just pulls and shows info CoffeeScript removes unnecessary syntax from javascript language, like function() HTTP Statuses 200 ok 201 created 422 unprocessable 401 unauthorized 102 processing 404 not found Learning about routing How form tags specify path, link_to's livetablesController if in the parameters there is a chart, go to chart thing, otherwise go to table all_chart_options collect all options for each chart     all_chart...

Orlin daily learnings

Table with two row variables, by default should display a single chart with first row variable and count. See if register button on orpud prior to temp_user sign in works.

the mystery of the select2

So right now, I drag a little droppable item into a select box and some of the code is our and some is from select2 of the internets. Code works when we drop variables in there. Code doesn't work or hasn't actually been written to do things when something is removed minimumInputLength just has to do with each chosen item must be greater than or equal to it's length accept: allows you to add a condition by which the droppable must meet in order for it to be dropped

Finding out where a CSS rule came from

Gotta go to the developer tools and highlight the element, then click "computed" tab and I saw something called element.style, this could be from style.css, but in my case it was a different possibility, the css can be set in ones javascript file, which was the case for me this time. Say we have a data table with 15 columns, and only 10 columns fit on the screen. Well, a scroller automatically shows up on the data body, and you can easily scroll to see the last 5. The problem is, the titles (data headers) don't move at all, so after scrolling, the user is misinformed as to what the data represents. Header and body will stay together horizontally . I finally found the source for how we implement dataTables taken from https://datatables.net Turns out I just needed to add one extra attribute in the base grid options available in our unique widget implementing dataTables!