Your byte size news and commentary from Silicon Valley the land of startup vanities, coding, learn-to-code and unicorn billionaire stories.
Ad
Thursday, December 28, 2017
Using Python Pandas to analyze and visualize financial data
Shapeways Free 3D Model Checking Tool
Wednesday, December 27, 2017
LRU Cache Android Development Pattern
Beyond understanding LRU aka least recently used cache for technical interview here is another reason to learn the technique: you can actually use this in Android development
https://youtu.be/R5ON3iwx78M
Tuesday, December 26, 2017
Kadane's Algorithm - Maximum Subarray Problem
The Maximum Subarray Problem using Kadane's Algorithm
History and Trivia of Kadane's Algorithm
The Maximum Subarray Problem using Kadane's Algorithm
Maximum Likelihood Estimation
Upon observing data, what is the likelihood of the original population distribution.
Going on a tangent to Bayesian Statistics
Udacity video explains Maximum Likelihood Statistics Problems
Sebastian Thrun of Udacity explains Maximum Likelihood Estimator
Deriving Maximum Likelihood Estimator, Proof
Proof Mean MLE
Friday, December 22, 2017
Topics of Deep Learning with Tensorflow
Some technical terms you may encounter when studying deep learning Logistic Classification Stochastic Gradient Descent, Data and parameter tuning, Regularization, Convolutional Networks, Embedding, Recurrent Models
Understanding XOR in machine learning
An analogy of XOR is a person can not physically be at two places at the same time. So both of the input cannot be True. True XOR True is False. Another way to think about XOR is that XOR = OR - AND. That is to say XOR is everything OR stands for except the AND part.
Prepping the data, data preprocessing in machine learning
It’s a standard procedure to further divide the input dataset into train and test splits with shuffling. But some datasets do not do well with shuffling such as time series data. We cannot simply mix past data with present and future.
Is data linearly separable? SVM can employ different kernels to handle non-linear data. RELU and Sigmoid also generates non-linear output.
Data Transformation
sklearn.preprocessing.Imputer Imputation transformer for completing missing values. Handling missing value, process and replace NaN with mean, median, most_frequent etc.
Celebrating 200000 views milestone
Implementing a Trie in JAVA by Cracking the Coding Interview Author Tutorial Recommendation
Wednesday, December 20, 2017
Coin Change Problem with Memoization and DP by Cracking the Coding Interview Author Tutorial Recommendation
This is another coin change problem tutorial we recommend. This one is by Cracking the Coding Interview (the bible of coding interview) author Gayle Laakmann Mcdowell. The explanation is crystal clear and very helpful. The only thing it didn't cover in depth is the idea of using a coin (reduce sum) and withholding a coin (not reducing the sum) while increasing the index to process the next coin. This is also a memoization and dynamic programming problem.
Previously we recommended Coin Change problem by O'Neill Code. That one uses a bottom up greedy approach to solve for smaller denominations. Then add the ways up as approaching bigger denominations. http://www.siliconvanity.com/2017/11/coin-change-problem-dyanmic-programming.html
Tutorial highlights
Visualize using a coin versus not using a coin
Gayle Laakmann Mcdowell helps visualize using a coin vs withholding a coin. |
Visualize the need for memoization
Hacker Rank tutorial video coin change problem |
Coin Change Problem with Memoization and DP by Cracking the Coding Interview Author Tutorial Recommendation
Previously we recommended Coin Change problem by O'Neill Code. That one uses a bottom up greedy approach to solve for smaller denominations. Then add the ways up as approaching bigger denominations. http://www.siliconvanity.com/2017/11/coin-change-problem-dyanmic-programming.html
Tuesday, December 19, 2017
Insert with SQL — CRUD with SQL Database
INSERT INTO
tables_name
(col_1, col_2, col_3)
VALUES
(‘value_1’, ‘value_2’, ‘value_3’)
Sunday, December 17, 2017
Serialization - A Crash Course - Best Serialization Tutorial
Getting started with Python Pickle Module for saving objects (serialization)
Turn a variable called my_dataframe, my variable name for a Pandas Dataframe into a pickle file with extension pkl.
my_dataframe.to_pickle(file_name)
This tutorial introduces the idea of pickling of Python objections, Python Dictionaries for better loading speed, optimization and note pickling is used in Machine Learning as well.
Unlike other serialization libraries, pickle can serialize (flatten or "preserve") most python objects. It is also different from JSON, which is human readable. Pickle is binary, hence it is fast to load and small to store.
Check out the official documentation for this detail. Source 1
Source 1 https://docs.python.org/3/library/pickle.html
Pandas Vectorized Methods - Intro to Data Science
This Udacity data vectorization video shows that Dataframe.apply(Numpy.mean) can be used to calculate column mean. Pandas allow easy vectorization of data charts. DataFrame['col_name'].map(lambda x: x==0) check each data cell in the column if it is equal to zero. DataFrame.applymap(lambda x: x ==0) will check each data cell in the entire dataframe.
Subscribe to our blog. We help discover the best tutorials on technology and programming subscribe@uniqtech.co we are beginner and bootcamp friendly.
Vector math is not only optimized, speed wise, it's also clean and elegant.
Bird Dog - Restaurants of Silicon Valley
Visualize Random Uniformly Distribution of Data
http://www.sthda.com/english/wiki/print.php?id=238 |
What's the difference between uniform and random? Here're two illustrations from Britannica that do the job of explaining. Visit their web page below.
https://kids.britannica.com/students/assembly/view/108151 |
Banking on Bitcoin - Netflix's New Documentary on Bitcoin
If you are reading my blog, chances are you love technology, Silicon Valley and the clout of it all. Chances are you are aware that Bitcoin just skyrocketed and now it is even offered on the stock exchange for improved liquidity. This blog is not about investment, not about bitcoin but about Netflix's new documentary on the subject.
Banking on Bitcoin Netflix |
This documentary features interviews with experts, enthusiasts and opportunists of this crypto currency. Subtitles including English, Spanish, Chinese and French! Think of as a quick overview of Bitcoin's past and future to get you started.
For those who studied Netflix's business model, you might be aware of netflix's strategy to target niche interests since its founding: indie films, documentaries, foreign cinema and more. Recently it really stepped up original series like House of Cards and Stranger Things. It nature documentaries reservoir is arguably the best on the internet, except it's not playing Planet Earth 2. Have you seen Tales by Light? It's gorgeous. Have you seen Chef's Table? Delicious! What about that documentary on becoming Warren Buffet? Lovely narrative about nuances of Warren's life. This new documentary is definitely a perfect fit for this niche pipeline. Popular but not mainstream? You can probably find it on Netflix. Youtube too, but less interrupted on Netflix. These are not the Netflix and Chill movies though.
Startup Guide to Silicon Valley Tech - Books and Movies Recommendations
Know your unicorns
Joining the next YC batch? How to get into Y Cominbator as told by insiders
http://www.siliconvanity.com/search?q=y+combinator
http://www.siliconvanity.com/2013/10/y-combinator-startup-school-2013.html
http://www.siliconvanity.com/2013/10/y-combinator-startup-school-2013_21.html
Have you heard of the No.1 Startup Accelerator in America and in the World? Yes, the investor of Dropbox, Airbnb, Reddit, Stripe, Zenbenefits, Instacart and Weebly - some of the biggest startup and "unicorns" in the Silicon Valley. They have only invested in 940 companies so far. The odds are high. Want to get into YC? Besides talking to real YC alumni and founders you should probably read these books. And of course the essays by the "godfather" of the startup world Paul Graham, former YC partner and chief.
The Launch Pad: Inside Y Combinator
Review
—Eric Ries, author of the New York Times bestseller The Lean Startup
“The Launch Pad is an intimate look at the white-hot center of the new Silicon Valley star tup ecosystem. Stross’s account of the best new entrepreneurs and the exciting companies they’re building at startup schools is a great read for founders and would-be founders alike.”
—Marc Andreessen, cofounder, Andreessen Horowitz
About the Author
Guide to YC - what's YC and how to get in by an alum
Paul Graham: The Art of Funding a Startup (A Mixergy Interview)
These motion pictures surely are fun to watch quickly and get a sense of the startup culture in the Silicon Valley.
More startup bibles that you can read
Binge watching Silicon Valley (the TV show) already? We have the perfect book recommendations for you if you are finding "romance" in the Silicon Valley startup world. These are legit hustle blockbusters recommended by real Silicon Valley founders and YC alumni.
The Lean Startup by Eric Ries
Zero to One Peter Thiel Startup Venture Capitalist of the Year
The Startup Playbook: Secrets of the Fastest-Growing Startups from Their Founding Entrepreneurs
Saturday, December 16, 2017
Make art with code
Want to make tripy surreal art with Machine Learning? Google’s deep dream let you do just that. There’s a twitter account that highlights deep dream artworks. http://www.siliconvanity.com/2017/12/google-cs-first-teaches-you-how-to-make.html?m=1
Google CS First class teaches you how to make animated Google Doodles with simple codes.
Friday, December 15, 2017
Google CS First Teaches You How to Make Google Doodles Google Logos
How to make Google Doodles |
Subscribe subscribe@uniqtech.co follow us as we continue to highlight the best learn to code tutorials and experiences from learning to code to machine learning and beyond.
Wednesday, December 13, 2017
What is a Neural Network - Best Machine Learning Tutorials
How to Rotate a Matrix by Gayle Laakmann McDowell - Author of Cracking the Coding Interview
Personally because this particular problem is tedious I like to read blog format tutorials. I feel that written format works better for this question and the matrix spiral problem. This is one of the best video format I can find.
Reverse a Linked List in Python - Technical Interviews Programming Interview
class Node:
def __init__(data):
self.data = data
self.next = None
Each element of the Linked List is a node which contains data and a next pointer.
We use pointer to indicate a Python variable, which is not the same as the * operator.
To reverse a Linked List, you have to recursively put the current head as the previous node, the list head will become the second to last element and points to None, while the list tail is now the new head.
It's assume that the Linked List has a head pointer just like all Linked Lists defined by its abstract data structure (ADS)
current = head
prev = None
next = None
while current:
next = current.next
current.next = prev
prev = current
current = next
return prev
It gets a bit confusing in the middle. It's important to remember that the previous pointer starts with None, because the old head points to None after being reversed. Next serves as a temp pointer, we need to temporarily store current.next, and change it to previous. Since we just completed processing the current node, we store it in the new prev variable, which has the current and new current.next. Then store the next node as the current node. The order matters when assigning current.next and the new current.
Monday, December 11, 2017
Finding Repeats in an Array or a List - Technical Interview in Python Patterns
def find_repeat(numbers):
seen = set()
for n in numbers:
if n in seen:
return n
else:
seen.add(n)
return False #if no duplicate found
Instead of returning False, you can also raise an exception. Use this:
raise Exception('custom exception message here')
Getting started with theme development - theme development resources
Free themes and giveaways can attract followers, ratings and get you started in the theme business
Shopify Theme and Shopify Partner Program
Tumblr Custom Themes
Get inspired by Tumblr themes here https://www.tumblr.com/themes/Get educated and get inspired. Tumblr themes go up to $49 dollars and more.
https://www.tumblr.com/docs/en/custom_themes
Know your artists
What's a beginner friendly tutorial for getting started with theme development on Tumblr?
Amazon supports native ads on Tumblr
Take Advantage of the Build-in Viral Factors
Sunday, December 10, 2017
Great Adobe Tutorial : Basics of Smart Objects :: Photoshop Tutorial
Great Adobe Tutorial : Basics of Smart Objects :: Photoshop Tutorial
New Google Doodles Teaches Kids How to Code
The real challenge is to get the optimal solution. If you have beat a level with the optimal route, you will get a ribbon!
Saturday, December 9, 2017
Natural Language Processing with Python
For example 'a'.isalpha() == True -> True, '5'.isalpha() == True -> False
isalpha() only returns true if the string is completely alphabetical.
numbers need to use isalnum() which refers to is alpha numerical
More string type tricks here https://docs.python.org/3/library/stdtypes.html including how to check for spaces.
Friday, December 8, 2017
CS50 - Behind the Internet's most popular computer science MOOC class
Behind the massively popular CS50 class
Now the most popular computer science class in the history of computer science. Creator, however Professor David Malan has attracted over 1 million students World wide including Emerging tech hubs like India and Brazil. The Harvard professor attributes his success to newly found the popularity of computer science as a field, but the editor and author of departure seems to think it is because of David's natural showmanship. He is very good at employing props and leveraging industry experts. His class has also attracted prominent guest speakers such as Facebook founder Mark Zuckerberg. David has turned this traditional content into the new online medium. Cs 50 really stands out among 7000+ MOOCs among coursera Udacity and edx emerged as 3 major platforms.
The entire course lecture is free on Youtube. My personal favorites are CS50 shorts, excellent for quickly getting started on a new concept or reviewing an old one. Awesome CS50 shorts include Ruby on Rails, PHP, Sorting Algorithms and more.
The curriculum improves every year. The 2017 lecture series include:
https://www.youtube.com/watch?v=y62zj9ozPOM&list=PLhQjrBD2T3828ZVcVzEIhsHVgjANGZveu
The curriculum is comprehensive and informative. I recommend every bootcamp graduate and people learning to code, learning to program to quickly watch all lectures to solidify your coding foundation. Pro tip: use youtube 1.5x speed.
Python Dictionary, hash map a very useful data structure in technical interviews
Median the undervalued summary statistics - technical interviews
Technical interview formats - programming interview at Google what to expect
Statistics understanding why average can be misleading
Bitcoin and relationship joke
Thursday, December 7, 2017
String Manipulation in Python - Technical Interview with Python for Bootcamp Graduates
''.split()
Answer:-----
No. It will return an empty Python list array.
-----
What would happen if you try to join an empty array? [] Will it throw an error?
''.join([])
Answer:-----
No. It will return an empty string ''.
-----
Make a cat class - Programming jokes
Answer: my cat class should have functions that satisfy a cat's essential needs. Here's my pseudo code.
class cat:
eat()
sleep()
internet()
THE END
Integer Overflow in Python - Python for Technical InterviewsProgramming Interviews Series
Unlike other lower level programming languages. Python can dynamically resize arrays and integers to fit larger data. You are less likely going to run into integer overflow issues in Python. Also less likely going to have to worry about bit manipulation. What if this question comes up in an interview?
You can use float('inf') to represent positive infinity and - float('inf'), read it as negative infinity casted as a float, to represent really large negative number. Note you are casting the number as a float not as integer.
More familiar with the notion of MAXINT from JAVA? You can use an external module to cast integers. The module is called sys
import sys
my_max_num = sys.maxint
my_min_num = -sys.maxint
Here's a tip for beginners: why is this useful? Let's say you are asked to find a min in an array, which can contain both positive and negative numbers. You may want to initialize current_min as -sys.maxint
https://github.com/theoptips/technical_interview/blob/master/stock_profit_basics.py
Why not just set it equal to negative one? Well the array can contain other negative numbers smaller than one so that wouldn't work.
Uniqtech Technical Interview with Python series is geared towards learn to code, learn programming beginners and bootcamp grads. subscribe to our newsletter
subscribe
subject: technical interview with python
float('inf') will result in a floating point number. That's not always the desired result. Turns out, we can also get a maxint estimate from the sys module.
The above behavior is Python 2.x
The difference between Python 2.x and Python 3 can be viewed here. https://stackoverflow.com/questions/7604966/maximum-and-minimum-values-for-ints
Wednesday, December 6, 2017
Reverse a Python List in Place
React UI, UI UX, Reactstrap React Bootstrap
React UI MATERIAL Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms. Columns, grid
-
This review is updated continuously throughout the program. Yay I just joined the Udacity Nanodegree for Digital Marketing! I am such an Uda...
-
Can hack schools solve Silicon Valley's talent crunch? The truth about coding bootcamps and the students left behind http://t.co/xXNfqN...
-
The bogus request from P2PU to hunt for HTML tags in real life has yielded a lot of good thoughts. My first impression was that this is stup...