Ad

Monday, December 11, 2017

Finding Repeats in an Array or a List - Technical Interview in Python Patterns

Practice using Hash map.

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

Ready to make money on the internet? Well, hold your horses, it is not that easy, but developing themes is free to start, though time consuming to optimize, but once you have a product, you can deploy it on any platform. Here are some resources to get you started!

Free themes and giveaways can attract followers, ratings and get you started in the theme business

Shopify Theme and Shopify Partner Program

Shopify allows you to take a cut from retail store subscriptions and sell your themes. You can fetch up to $120 - $2000 dollars. 

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

Animators and manga artists are thriving on Tumblr. If you were to monetize on tumblr, make sure you know your audience. Here's an example of an artist blog on Tumblr http://tzysk.tumblr.com/ Here''s another thousandskies.tumblr.com


What's a beginner friendly tutorial for getting started with theme development on Tumblr?

Apparently General Assembly Dash has a Tumblr Theme project. It guides you throw basic HTML and CSS and essentially that's what you need to get started. It will walk you through creating a basic bubble shaped profile picture and an input field to collect email addresses.

Amazon supports native ads on Tumblr

Technically Amazon supports banner displays and CPM ads on Tumblr but implementing it on the Tumblr side is a different issue all together. Pay attention Tumblr community guidelines and term of services is always the way to go.


Take Advantage of the Build-in Viral Factors

As someone who has done a lot of social media and content marketing, I think Tumblr has the most re-sharable form of blog posts. It's almost as instant as Favoriting a post. The newcomer with this prowess is Medium. Customize themes should not hinder this experience. In fact, it should highlight social shares and showcase them. 

Sunday, December 10, 2017

Great Adobe Tutorial : Basics of Smart Objects :: Photoshop Tutorial

Manipulate smart objects in Adobe Photoshop



Great Adobe Tutorial : Basics of Smart Objects :: Photoshop Tutorial

Manipulate smart objects in Adobe Photoshop



New Google Doodles Teaches Kids How to Code

Celebrating 50 years of kids coding and the learn to code movement, Google Doodle let's visitors play a mini bunny (rabbit) chases carrots game. Player will solve the puzzle using drag and drop (much like MIT Scratch and other beginner, kids friendly learn programming languages). It's easy for players to drag and drop loops, forward, turn left and turn right to command the bunny. The loop block is quite smart, can automatically resize based on how many other individual blocks it contain.  These puzzles are not trivial. To beat the levels, players need to experiment and think hard about the logic.



The real challenge is to get the optimal solution. If you have beat a level with the optimal route, you will get a ribbon!


You can access this coding game in the Google Doodles archive: https://www.google.com/doodles/celebrating-50-years-of-kids-coding

To learn more about learn-to-code resources, news and career job opportunities subscribe to our blog! We cover learn to code and we were featured on Fast company Venture Beat and TechCrunch!

subscribe@uniqtech.co
subject: Learn to Code

Saturday, December 9, 2017

Natural Language Processing with Python

A trick to test input type str.isalpha() str.isalnum()
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.

Sudoku Solver using Python Technical Interview Question

In this post, I want to share two tutorials for learning to implement a Sudoku Solver in Python. One is from Geeks for Geeks http://www.geeksforgeeks.org/backtracking-set-7-suduku/ I like the code base and especially the 3 x 3 box logic. But I think it could have been improved implementing a Sudoku solver class. The variables can be made more readable and self.grid, self.loc can be instance variables, then it's easier to pass them into the methods find_empty_loc(), used_in_row() etc. It was hard for me to understand the video tutorial of Geeks for Geeks because the audio quality is quite jarring.  Quinston's video explanation is more elegant, but the code is less readable, especially the 3 x 3 grid logic. If you find better solutions please let me know. Here's my implementation of this Sudoku Solver in Python loosely based on Geeks for Geeks with more pythonic variable names and method names. https://github.com/theoptips/technical_interview/blob/master/sudoku_geek.py



Finding Repeats in an Array or a List - Technical Interview in Python Patterns

Practice using Hash map. def find_repeat(numbers): seen = set() for n in numbers: if n in seen: return n else: seen.add...