After several years enjoying yoga for the healthy benefits, I’m starting to realize the monetizing missed because I was focused on getting healthy and flexible. There’s an entire world of people who do yoga, share it on social media, and pretend it’s big deal.
I challenge you to pretend to care about yoga, and in a big way.
Change someones way of yoga-ing.
Make up a new yogi-wordi.
Inspire some one go yoguh.
Pretending to care about Google+ shutdown is key to sounding really technical, but the truth to pretending about anything, is a good list of things to pretend to care about. Like Yoga!
Who doesn’t have a yoga time in their life?
Pretending to care about yoga is about as hip as it gets but to be full granola, you need to do at least 30 days straight, and share your adventures each day. Perfecting one pose is key to building a brand to giving a shit about yoga.
Being proud of doing nothing, in a picture, is really fun.
Watch how this yoga champion does nothing.
Make sure the image has a better view than your yoga skills, and you will always be the best on your instagram feed!
Benefiting your body with each movement, capturing it, and pretending yoga is your life for a few months will probably capture the attention of your relatives and closest friends!
#3 Pretend to care about yourself
Pretending to care about yourself is easy when you finally stop procrastinating about doing yoga.
Pretending to care about yourself is a great way to get social acceptance really quickly!
Be sure to blast out a lot of random shit to your friends and family over your cellphone.
Pretend others care about you caring about yourself!
If they are next to you, text them about how much better your day is than most people that are near you. But it’s good to have them near you.
Nothing says you’re having a good day like staring at your phone for an endless amount of time, without any thought about when the last time you took a break from facebook.
In an elevator? Get on your phone and tell someone about how great your day is and show them something you can do.
In the car, get on your phone and tell people how good you look.
#4 Pretend to care about other people
Find a quick minute to post about something, that implicates you in a good light. Drop politics, voting, all that important stuff – keep it simple. If you get a chance to update your facebook picture to something helpful looking, you’re gold for a few months.
Pretend you care about someone else, and sing a song for them.
But it’s really about the picture, and you don’t know anything about playing music.
When did caring about someone matter beyond the image, and if the image doesn’t happen, it didn’t happen. So that’s important to know before dealing with any non-image engagement. Screw that.
Nothing says you give a shit, like a picture of an old doctor.
You know I care when I have doctor eyes on you.
Look at my gold watch too, that screams I care about you, and your time.
Glad we had this important discussion. I’m married.
Post a hopeful picture on your facebook and pretend it’s you helping some old person, and say something like.
“It feels great to help others.”
#5 Pretend to care about a hipster.
Not all hipsters, just a hipster.
Wow, you don’t live in Austin do you.
Beards covering double chins are the new classic hipster.
Skinny jeans are comfortable but hey,… You damn hipster.
Let’s pretend hipsters are a big problem, and pretend we need to care about people who are super super hipster.
No not you, stock image hipster girl.
We are talking about all the hipsters that take a lot of time out of their week to prepare for practically zero interactions with people. But take an exuberant amount of time getting ready, preparing, and potentially exercising to the point that it’s considered weird.
Hipsters are equally as important as Google+ shutting down their entire social media forum.
Google is about as annoying as that annoying hipster person…
Deleting everything… lol
Come on now.
Deleting everything seems a bit rash.
But I understand, from a digital marketing perspective, it makes sense.
AI, Artificial Intelligence, is not scary and I want to set you at ease.
Right now, the only fear you have is the developer using artificial intelligence for bad.
Simple enough, right…
Consider the available technology. Video recognition using basic web cams, automated roaming robots in a maze, and all kinds of cool stuff.
AI, or artificial intelligence, is a mission based application.
It’s not scary, yet.
The AI, or application, performs a task or set of tasks.
It stores data, in a database, or in memory.
It gets smart or it does not get smart. I know that sounds weird but most things don’t really work and we live in a world of failure.
End of story.
Don’t be scared of AI…
AI learning is free.
The basic application of AI can be exposed by looking at how a developer at google uses tensorflow, a machine learning library in python, and teaches a video game to shoot a basketball – perfectly.
AI… It’s like saying, we want to get better at basketball…
There’s a lot of options when it comes to getting good at one sport. Let’s take away all the granularity of the sport and only talk about one aspect of the game…
We want to get better at SHOOTING.
We want to make a computer, get better at shooting a fake basketball, and that’s not scary.
But we don’t want to worry about actually playing the sport.
AI is like basketball, sorta
We want to reap the benefits of understanding exactly how hard to throw the basketball, to earn points. Because that’s the point of life right?
In computer science, artificial intelligence (AI), sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and other animals.
Unless someone starts programming the robot dog to bark up the wrong tree, then we may need to worry.
AI could be scary if…
If we used image recognition and built AI to make killing people a successful mission. AI could be very scary if it could reason with attacking humans and use video to identify humans, using image recognition, and instead of opening doors for people, maybe it squishes their skull.
If the developer generates this possibility, it could happen.
Today, opening the door is what the robot dog does.
It makes an action, based on decisions it has been programmed to make. It is programmed to open a closed door. And if that program was set to recognize someones face, get close, and squish the face…
That would suck.
Robots will fuck up a watermelon.
Some robots are doing other things… Like…
Some robots are built to do other fun things. They are utilizing existing technology to have a bit of fun.
Artificial intelligence has a ways to go before we need to stress because programming a robot to make a decision to destroy it’s master would not likely be something any developer would be interested in doing.
We should avoid technology related to weaponizing robotics, and avoid the rare chance of military grade decision making robots, attacking people based on video rendering. If it goes wrong, we could quickly see some of this biggest killing sprees the world has ever seen.
It’s likely learning Kubernetes isn’t your priority, that’s good because I’m not going to teach you Kubernetes in this blog post! My goal is to talk about Kubernetes from 1000 feet in the air. The Blimp view for dumbies, like me.
My goal is to explain what Kubernetes can accomplish, the basics, and links to dive deeper. I’m doing an interactive tutorial online w/o a setup/install with Kubernetes right now, and I believe that can be saved for another tutorial.
Kubernetes is a portable, extensible open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem.
But like most things, it’s not error resistant.
Good to know @christianposta!
Anyways… Google open-sourced the Kubernetes project in 2014. Check out github for hacks, free code, easy access to making life less error prone.
No, not necessarily. A lot of these systems and best practices are still unknown to the business units and it’s likely you won’t see any “non-technical” teams sprinting away with Kubernetes. Although, with the right amount of training, an analyst could be very independent to solve using micro services.
Wtf are micro services?
Dr. Peter Rodgers introduced the term “Micro-Web-Services” during a presentation at the Web Services Edge conference in 2005.
Microservices – also known as the microservice architecture – is an architectural style that structures an application as a collection of services that are (source)
Highly maintainable and testable
Organized around business capabilities.
Wiki defines it as…
Microservices are a software development technique—a variant of the service-oriented architecture (SOA) architectural style that structures an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight. The benefit of decomposing an application into different smaller services is that it improves modularity. This makes the application easier to understand, develop, test, and become more resilient to architecture erosion. It parallelizes development by enabling small autonomous teams to develop, deploy and scale their respective services independently. It also allows the architecture of an individual service to emerge through continuous refactoring. Microservices-based architectures enable continuous delivery and deployment.
Sure we can’t axe IT today but if we could, I think most of the industry would have a considerable amount of “free time”… thus we find projects like – https://kubernetes.io
by Tyler Garrett
Kubernetes – modern web serivces
With modern web services, users expect applications to be available 24/7, and developers expect to deploy new versions of those applications several times a day.
Modern website deployments are now managed on similar container environments, optimized for the type of website. Like my website, musicblip.com, is on a containerized installation at siteground. (if u need a good host, DM me on twitter for a discount @ siteground, happy to help!)
By Tyler Garrett
Containerization helps package software to serve these goals, enabling applications to be released and updated in an easy and fast way without downtime.
End goal here is “helps” your smart people with “easy” and “fast” ways to solve project goals or problems, with less setting up, optimizing, or overall playing the bullshit game that is IT checks and balances on legacy systems.
By Tyler Garrett
Kubernetes helps you make sure those containerized applications run where and when you want, and helps them find the resources and tools they need to work.
Kubernetes is a production-ready, open source platform designed with Google’s accumulated experience in container orchestration, combined with best-of-breed ideas from the community.
At the end of the day, we have a bunch of data now living a breathing all over our microservices, and I rather enjoy what Cadenas was saying in 2006 about AI in theory w/ building micro services or new perspectives.
“We implement perspectives as new services, installed directly on the data source by the users.”
By Cadenas, L.E., Hernandez, E., 2006, in IFIP International Federation for Information Processing, Volume 217, Artificial Intelligence in Theory and Practice, ed. M. Bramer, (Boston: Springer), pp. 189-198.
Each new service, now may contain a potential of failure, as our landscape evolves quickly… What’s next? How do we solve for the future if we have no clue what these tools do?
Luckily, I found Chris discusses solving this new landscape of managing distributed data. Which starts to call into account ACID accompliance, which I must say, most people in analytics today have no idea what ACID compliance means, so fun fact… Throw that around next time you need some brownie points.
Here’s what Chris discusses & offers eventuate as a solution to the major challenges ahead.
“Microservices accelerate development and enable businesses to innovate faster and stay ahead of the competition. But one major challenge with the microservices architecture is the management of distributed data. Each microservice has its own private database. It is difficult to implement business transactions that maintain data consistency across multiple services as well as queries that retrieve data from multiple services. (source)”
#2. The other is to act as a reverse-proxy to web application backends. The three servers I just mentioned have a combined market share of 94.7 % (according to this statistic) and are named Apache 2 (or httpd) (written in C), nginx (say “engine ex”) (also written in C) and Microsoft IIS (written in C++).
The term web service is either
(generic) a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web, or
(specific) a web service implemented in the particular technology or brand, W3C Web Services.
In a web service, the Web technology such as HTTP—originally designed for human-to-machine communication—is utilized for machine-to-machine communication, more specifically for transferring machine-readable file formats such as XML and JSON.
In practice, a web service commonly provides an object-oriented web-based interface to a database server, utilized for example by another web server, or by a mobile app, that provides a user interface to the end user. Many organizations that provide data in formatted HTML pages will also provide that data on their server as XML or JSON, often through a web service to allow syndication, for example Wikipedia’s Export. Another application offered to the end user may be a mashup, where a web server consumes several web services at different machines, and compiles the content into one user interface. (source)
End goal with writing about URL shortening is to key in on people who want to generate an online footprint. It’s free and easy to build a following. You need to start early, and this is one of many ways to do it.
Pretend you’re the little kid from Pokemon, ash. Ash is competitive and likes collecting more Pokemon balls than other people, he would have enjoyed MySpace, friend request any Pokemon he wanted.
Well, now you’re a grown up City ash.
You’re this little box, little box 📦 ash.
A little red website who sells “red colorings of red boxes.”
You’re a practical red box lobster.
“Raaaah,” you say on Google+.
Red boxes are great i #love #red #boxes.
Then you post that on 4 different box loving google+ groups.
Four green little pokemon balls, you own them, they point back at your red-box-sales website. Following me so far?
(Oh hey, google.com links pointing at your website, blog, cat blog, red box store, pokemon backpack nightlight, etc… you can see 4 green circles and know those represent green links, you pasted in your google+ account. It’s just an app on your smartphone, laptop, or desktop. Google+ is free and builds organic traffic by increasing your ranking.)
Shortlinking for counting clicks.. *big yawn*
A shortlink counting service would tell you which of these 4 links is being clicked the most, what country, etc… giving you a quick view into your incoming traffic.
Wow, biggest yawn ever. This is boring. But, you need to know basics and that’s what this URL shortening wiki is all about. Teaching you the moves.
The current mind set is to paste the same link over and over, wait a day or several days to get an update, aka google analytics & google webmaster tools. (Maybe you’ve never heard of either of these tools? They are essential to getting ranked on google and understanding user behavior on your website.)
It’s easy to add shortlinks to your typical social media output and boost your footprint quickly. I recommend adding a variety of shortlinks pointing at every web page you have ever generated, and share those on blogs, websites, comments, and with your mates on facebook, instagram, medium, blogger, wordpress, pinterest, etc.
Adding a shortlink to a social media post online
Adding a shortlink to your home page, as you add something hilarious on Facebook, is a bonus. Someone might click it. But google isn’t scraping private Facebook pages, or much of Facebook what so ever.
So, post again on google+ for example, like below:
It’s important to rank a website and get traffic on your website. Your website. Not someone else’s website. Shortlinks, will help you rank.
With that said, let’s discuss URL shortening.
Google is good at counting shortened links
It counts how many quality links point at your website. So like the whiteboard above:
We can pretend — “5 links” a google robot counted.
If you’re a website with..
You aren’t selling boxes 📦.
Everyone says URL shortening is all about counting clicks, customizing your links, making links more actionable, etc.
What most people don’t tell you is that “shortlinks rank websites better.”
Ifyou want to know why people use URL shortening services, how I learned about URL shortening,…etc.
I wrote a little “url shortening wiki,” and hope to bridge an entrepreneurial gap with you today.
So, scroll beyond the list of link shortener services and read through the url shortening wik at the bottom of the blog. It helped me rank on google for complex terms and generates free leads.
Here’s the list of url shortening services – I’m going to explain below, show you what it looks like, and get you started.
Google URL Shortener Goo.gl is the ultimate of all short links services.
It’s currently one of the first “big names” to retire their service completely and progress it to a thing called “deep linking” — which essentially says, some people want to link you to their application, and not just a web page. I’m using goo.gl as the first example because it’s a good point to make, sometimes shortlink services stop! Google will continue the links, but some will not and it’s important to treat shortlink generation like a video game, otherwise it’s very boring and a bad investment of time.
Just because Goo.gl shortlink generating service is dead, does not mean you can not get Goo.gl shortlinks generated to help you diversify your SEO portfolio. It’s not the best solution, but find a friend or someone with access, and ask them for a couple of goo.gl links. Do it before March 13, 2019.
What’s cool about this inactive service is that you will find out more about newer versions of the technology google is looking to implement in place of this service.
#2) Hootsuite’s — Ow.ly
Hootsuite acquired Ow.ly, I think, I don’t know. Ow.ly is easy, signup, they don’t spam you, go to your dashboard, the link builder is easy enough to click around and figure out — also you can schedule posts to social media here.
Ow.ly has been around for a bit and Hootsuite’s founder has a good story to go along with his success, which makes it cool to support the company by generating ow.ly links.
Ow.ly is a short version of a link, that isn’t all that short, but what’s nice is it’s easy enough to generate a few links quickly, and that’s helpful.
#3) Bit.ly’s — Bit.ly
Bit.ly is a nice little link counter with a great interface for users who want to drive the needle. The other two click counters above are also helpful, powerful, but I think Bit.ly takes the overall cheese from a usability perspective.
If you’re in the market to spend a little money, I would start here, the free version works plenty and it’s the best option for customizing links currently.
Bitly is a URL shortening service and a link management platform. The company Bitly, Inc.was established in 2008. It is privately held and based in New York City. Bitly shortens 600 million links per month, for use in social networking, SMS, and email. Bitly makes money by charging for access to aggregate data created as a result of many people using the shortened URLs.
1705 impressions, 14 engagements, 15 or 14 total clicks going to the blog post about Sentiment Analysis.
The math offers conversion rate based on my output. I can start catering my content to be more like this post, as it worked more than other posts, which I was able to quickly identify and check with bit.ly.
WordPress has an option to generate a shortlink when you’re in the editing mode on your post. If you don’t have a couple WordPress blogs, you may want to know that it’s free and a cool place to learn about blogging.
Highlight that text and copy paste it as your next link to this blog!
How to make a wp.me backlink.
If you’re looking to learn how to generate a WP.me backlink, above should help you understand that the base install of wordpress will have that button available. Also, the free version of wordpress @ wordpress.com allows you to do a similar workflow!
You can find it while you’re generating your first post! It’s easy to start, and don’t pay for anything at the start!
More from Tiny.cc, and how they recommend using tiny urls.
One of their pitches:
“Measure the conversions for links and understand your traffic with Tiny’s statistics. We can help grow your audience and increase traffic. Shorten a link for your ad campaign and track it. Hide a link. Have an address that you don’t want to reveal… such as an affiliate link? Cloak and redirect it — the recipient will only see a short address containing the tiny.cc domain. Make a link to your online survey or invitation. And Tiny has more advanced tools such as a traffic filter that is perfect for marketing, surveys or research projects.”
#7) Is.gd’s — Is.gd a URL Shortener. Mmmm, tasty URLs!
Is.gd offers a free URL Shortener and it’s nothing crazy, until you see the stats!
Shortening 1,298,339,529 URLs
That have been accessed 63,903,074,539 times
Crazy numbers, 63 billion accesses. A little math will explain to you how heavily used is.gd appears to be!
QR.net is a QR code service by QR GmbH. The QR GmbH was founded in 2011 and is specialized in QR codes.
The main focus lies on the surplus value for our users. Here you create a dynamic QR code unlike many simple solutions. We offer many advantages: For example you can change the target URL of your QR codes later and view detailed statistics about the QR code calls. Our QR codes are optimized so that they can easily be printed and captured.
#10) Gg.gg’s — URL Shortener — URL Shortening Service
GG.gg is the fastest and easy way to share (so they say on their website), save, track your links. You can use GG.gg via our website or you can download GG.gg browser extentions. You can create also custom short url if You wanna get easy to remember url. GG.gg uses powerful webservers so all Your links works extremly fast.
Before you get started, I recommend you try to treat building short links, tiny urls, and short link services.. like a game!
You need to get all the short links, all of them, gotta catch em all, and hope your pokemon ball doesn’t break.
Sometimes pokemon balls break, the link breaks, which means you need to choose what pokemon ball store you buy from.
If a shortlink service decides to stop providing the service, you might lose your links pointing at your domain. Let’s discuss everything in more granularity below.
Okay, last thing about pokemon and shortlinks.
The game requires you to run around, and capture pokemon, as a collection.
If you collect a lot of shortlinks, pointing at your blog, website, service page, or content online that you want to RANK higher. You will rank higher. Shortlinks carry a lot of SEO power and help you boost your ranking on searches such as Google, Bing, Yahoo, etc…
Why do I even shortlink?
Shortlinks make big links less ugly.
If you send someone a long link, they will think you are crazy.
Short links are better when you need to show off the link.
Shortlinks are better because they are inviting, explains what you get, and doesn’t look like spam.
Also, if there’s a service to capture the amount of clicks, we could identify the same link two times on 1 website, email, etc… To understand what people click the most.
A story: I applied to hundreds of jobs and had a link to my portfolio. It wasn’t until I started learning about shortlinks, where I was able to understand if people speaking to me, read my resume, and if they did read my resume, what links did they click in my resume. Without knowing your audience and their habits, how are you expected to convert the user to a customer, check if your employee clicked on a link you sent them, or question people reading your resume because they clearly didn’t click to see your portfolio… Hmmm…
Let’s start building short links!
Free shortlink generators or URL shorteners are free, free of course because why would I pay for a redirect!?
You can build your own version of small URLS on your domain rather easily with most web developer tools/plugins.
But you can also use one or several shortlink tools available online. It typically takes 2 to 5’clicks and boom you have a shortlink!
You can make our own short links on your domain. But this stuff works too.
For example, I used to rank on Tableau Consulting in 140 countries, in the top 5 on google. I learned about shortlinks while trying to catch up to all the cheating happening in these searches.
Using shortlinks is a strategic way to beat cheaters, Each link is a +1, and google keeps track of what people are clicking on in your article — but without a different link, to count, how can I tell you clicked on this link, or this link to our tableau consulting squeeze page?
It’s important to diversify the links,..
Because google counts these as direct links pointing at your domain, every link is a +1. Your competitor only cares about links, not where it’s coming from, so the outlier is, don’t cheat like them!
The google algorithm is programmed by measuring the amount of links out there. Every link takes them to a new source of data, a new page of html. The shortlink service or URL shortener offers you the ability to generate a link that takes you wherever you program the traffic to go.
Generally, 🤖these shortlinks last forever. If the webmaster or creator of the service decides to kill it, all of the links die. It’s a risk — so play with caution and excitement.
Finding a shortlink service that works, is like running into a digital kind of pokemon, and you gotta catch’em all. Some will escape, buy better poke balls.
Did you enjoy the comprehensive list of shortlink generator services?
Hopefully you enjoyed the list, if you’re looking to learn more about things I blog about, check out dev3lop.com.
Ready to start learning python? You may think installing python 3.7 is the right step, I recommend starting with python 2.7 and upgrade if necessary. If you insist, here’s how to get python 3.7 on windows 10 pc.
After this blog you will..
install python 3.7 on windows 10
use python 3.7
links to tutorials and beginner info
Installing python on windows PC!
If you’re running Windows: the most stable Windows downloads are available from the Python for Windows page. Screenshot walkthrough, step by step, on bottom of recommendations portion, built for new people learning to install python on windows PC for the first time.
Begin the download and follow screenshot instructions below.
If you get stuck or lost — you can ask me for helpIf you’re a first timer, and you just think python 3.7 install on windows 10 is the next best step…
Please, read through and learn from my awful mistakes.
Need to learn more about python install and my recommendations?
I made a bunch of stupid mistakes learning python because there’s lame ass websites ranking and they don’t really have very good content. Like Python For Beginners — spams malicious popup ads, I blog about it in that link.
Before we begin, I want to mention…
I also write about uninstalling python 3.7 because my project ended up requiring 2.7, which is available natively if you have a macbook!
Quick hint, keep your installer! You likely don’t need python 3.7 today if you’re new, and you likely will be better off using an older version, which will have more documentation, college courses, smarter people than me… Blogging about these older versions, for over a decade… But if you insist. The answer to installing python 3.7 is one header down.
If you’re not already using pycharm, I strongly consider you find a smart python writing tool, if you really need python on your local computer, I’m going to recommend stop…
Downloading and installing on your local machine isn’t necessary and could cause issues if you already have a version installed and you’re not familiar with the basics… I understand because I, Tyler Garrett, also sucked a lot at this portion and felt obliged to share the solution and the journey.
Screenshots from installing python on windows PC Python Release 3.7.0
Open your executable.
Or if you’re not that techie, navigate to your download folder…
Or search your computer for python-3.7.0-webinstall.exe
Testing to see if python 3.7.0 installed on your windows machine
“Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.” Source.
“The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, https://www.python.org/, and may be freely distributed. The same site also contains distributions of and pointers to many free third party Python modules, programs and tools, and additional documentation.” Source.
So if you’re not sure what you should download, and you’re not looking to use a PC with python, go look here to begin.
Here’s a quick deep dive into python.
By the way, the language is named after the BBC show “Monty Python’s Flying Circus” and has nothing to do with reptiles. Making references to Monty Python skits in documentation is not only allowed, it is encouraged! Source.
Python allows you to split your program into modules that can be reused in other Python programs. It comes with a large collection of standard modules that you can use as the basis of your programs — or as examples to start learning to program in Python.
If you do much work on computers, eventually you find that there’s some task you’d like to automate.
Previous version of the python 3.7 blog, back when i typed more than coded.
Install python, or do my how to install python 3.7 windows 10. This can be accomplished using the python installer at python.org. Setting up Python 3.7 on windows 10, the non-developer tutorial for those who don’t want to figure out every little aspect, and prefer having someone teach them the path to success. Read more of my python struggles here.
Python 3.7 is rad — I wanted to originally use it but I realized I was not able to shorten links with the tinyurl library, so I reverted back to a version that allowed me to use the tinyurl library (python 2.7).
After you download the latest version of python, like python 3.7, you have a little bit of a journey ahead of you. Let’s begin.
Python requires a type of installer to gain access to complex libraries written in god only knows… The goal is you don’t need to write these complex libraries from scratch, you can call them up, with non-complex code, and get away with practical murder from an automation perspective.
I’m excited about the fact that I can build what I want in a few lines of code — and so far it makes sense. But to get to the point of making your apps, we need some foundation, a means of downloading, there are a few methods, let’s start with the pip method first.
Seriously, 2.7 is easier for newbs. Go there first. I’m learning on 2.7 and after writing this blog for 3.7, I realized I wanted to be on a later version to use fun stuff like building short links with tinyurl in python.
Setting up Python 3.7 Pip on Windows 10
Next steps are rather easy, you can follow along, and setup your python pip installer — without breaking a sweat, on windows 10.
Right click the website and save this to your desktop.
Double click the get-pip.py file, and wait for the installer to complete. That’s all, now pip works. Check it by following this next step.
Testing PIP is working with your new python 3.7 install on windows 10
Open your cmd terminal thingy, hit the windows key, type cmd, hit enter. Your terminal should automatically popup.
Type “pip” in CMD to learn more about pip
/!\ Before do anything, install or upgrade the Setuptools Python package. It contain compatibility improvements and add automatic use of compiler
pip install — upgrade setuptools
install microsoft visual C++ 14 — setting up visual studio build tools 2017
Installing microsoft visual c++ 14 seems to be necessary when setting up lxml, a type of parsing tool that allows you to quickly parse XML and HTML, which we will want to build our web parsing, or scraping tools.
Will know if our pip install lxml errors clear up after this restart (oh yeah and restart is necessary here).
Getting this pip installer thing going takes a little bit, but luckily I’ve consolidated it here lol.
The install takes a little bit of time too.
Here’s what you need to check out to knock out the visual studio portion.
Run the installer, don’t select anything other than default settings, and click install. It takes a little bit, and then you need to restart.
Once we get back from the restart, we will do the following pip installs.
pip install lxml (breaks with out c++14.0.)
pip install requests (ran this early, seems to install no hiccups.)
pip install beautifulsoup4 (ran this early, seems to install no hiccups.)
Will report back and iron out these posts more later.
If you have trouble with your pip install on python2 vs python3, or something along those lines, check out this next blog… sometimes you can get ahead, and there are a few things to ensure you have completed, like the above mumble jumble.
Update, started using pycharm and rather enjoying it. It’s a type of code editing “easy mode” application that you might want someone to walk you through a few times. Or google a youtube video. I figured it out without googling or looking anything up, which means you can fly past me with the right mentor.
Below is a quick tutorial on using a type of “find and replace” across a CSV file or you could do this find and replace on a TXT file too.
I’m not a developer, just another blogger, blogging about learning python.
I’m building use cases that are similar to a typical business analyst or data analyst.
The goal is to build a user friend guide, that allows end users with any skill level to understand the methods used to handle “find and replace” in a file, using python.
You get a CSV file or TEXT file and want to scrape over the entire file, and output it with your modifications. Find and replace is the term I would think you would google if you wanted to do a find and replace in python over a CSV.
Python, without any downloaded libraries, will do a find and replace on the data above. You can copy and paste the data above into a .txt file, and change the extension to .csv — if you don’t have an excel software on your computer, or you can use Google sheets and make your own data problem.
Our goal is to clean the 3.
The 3 in the https://tylergarr3tt.com link because it’s not accurate.
For whatever reason this is going to be used by a developer and they are asking me to find and replace the “errors.”
Errors in the sample data generate a use case to learn how to do a find and replace on a CSV file, which taught me that using the a previous “text file” tutorial, I was able to handle the same ETL like solution, with simple python code, and no odd libraries to be imported.
No downloaded libraries means you’re free to only get access to python on your work station, this is key in enterprise situations where every new download becomes a new request of your IT department. A new request means a new approval from your manager too.
by tyler garrett
Our use case will generate a full “find and replace python solution” and a few more obvious data issues.
We will remove “3” and replace it with “e” in python below, to help us move down a path of learning and solving your use case today.
The code to find and replace anything on a CSV using python
text = open("input.csv", "r")
text = ''.join([i for i in text]) \
x = open("output.csv","w")
We are not using any “imports” because this is all native python capability.
text = ''.join([i for i in text]) \
Allows you to “find and replace” using one line of code.
It looks like 2 lines of code because python lets you put a space and a “\” in front of a long line of code. The space + “\” lets me see what I’m doing easier that writing one wrapping line of code.
An example that may require a “ \” in front of your code, looks something like…because it’s easier to read.
Simple python transformation can be complicated.
Above image of code is an exaggeration to show you that python lets you break up your find and replace or you can do it in one line. I do it because I would go absolutely crazy if it wasn’t for that little feature, so if you’re like me, woop woop. This is a big help, otherwise
→write it like this…
text = ''.join([i for i in text]).replace("3", "e")
Above code lets us quickly replace “3”’s with “e”’s and lets us heal our link column in the csv file. Find and replace may require a more granular approach which will be covered in another lesson.
Final code to find and replace text in a CSV with python
Find and replace text or letters in a csv with python is simple, super fast, faster than any SQL stuff I’ve played with in the past, so — if you need to bulk process a CSV or TEXT file — python is a great direction because it’s easy to understand.
text = open("input.csv", "r")
text = ''.join([i for i in text]).replace("3", "e")
x = open("output.csv","w")
‘’.join is cool because it allows you to add anything, to each row of data.