<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Alex Marginean on Medium]]></title>
        <description><![CDATA[Stories by Alex Marginean on Medium]]></description>
        <link>https://medium.com/@alexmarginean?source=rss-594db727cb1f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vYFHEPNc_pAE98V8SGRIkw.jpeg</url>
            <title>Stories by Alex Marginean on Medium</title>
            <link>https://medium.com/@alexmarginean?source=rss-594db727cb1f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:00:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexmarginean/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to get website metrics from Google Analytics with Flask Python]]></title>
            <link>https://alexmarginean.medium.com/how-to-get-website-metrics-from-google-analytics-with-flask-python-cb9a4a7e8e33?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb9a4a7e8e33</guid>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[flask]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Wed, 10 Mar 2021 22:31:49 GMT</pubDate>
            <atom:updated>2021-03-11T13:00:59.040Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDJ-USgoo2FiLS1jkQqzgA.png" /></figure><p>If you don’t know what Google Analytics does, it is a powerful tool created by Google which uses some scripts to determine all sorts of information about the users accessing your app. This app can be a website, mobile app, script or others that can track information such as location, the number of page loads, browser type, device type etc.</p><p>I’m going to show you how to retrieve those metrics from Google Analytics into your Flask app. The purpose of this task would be if you would like to process this data even further or just to display it on your app by making a custom interface/admin panel.</p><h3>Steps</h3><h4>1. Creating a simple Flask app</h4><p><strong>(</strong>You can skip this step if you’re implementing it on a website you’ve already made)</p><ul><li>Create a main.py file with the basic flask structure</li><li>Create a virtual environment and install the requirements</li><li>pip freeze the requirements into a text file</li><li>Upload your files to a hosting provider</li></ul><h4><strong>2. Creating a Google Analytics property</strong></h4><p><strong>(</strong>You can skip this step if you had already done this.)</p><ul><li>Go to <a href="https://analytics.google.com/analytics/web/">here</a> &gt; Admin &gt; Create property</li><li>Give it a suggestive name and fill in the other requested information about your app, click on advanced options and toggle “Create a Universal Analytics property”, input the URL and select “Create a Universal Analytics property only”</li></ul><h4>3. Link the Google Analytics property to your website</h4><ul><li>From the “Tracking Info” &gt; “Tracking Code” section of the property copy the “Global Site Tag (gtag.js)” script</li><li>Place the script in the head of your html file (place it in layout.html if you want tracking across every page)</li><li>Upload the changes to the server</li><li>Make sure the Realtime Users are updating when you access your website.</li></ul><p>! Keep in mind that it will take longer for the analytics for the past few days to show up</p><h4>4. Set up the Analytics Reporting API on Google Cloud Platform</h4><ul><li>Open the GCP <a href="https://console.cloud.google.com/">Console</a></li><li>On Home &gt; Dashboard click on <a href="https://console.cloud.google.com/projectcreate">Create project</a> and give it a suggestive name</li><li>Go to APIs &amp; Services &gt; <a href="https://console.cloud.google.com/apis/library">Library</a>, search for “Google Analytics Reporting API” and click on Enable</li><li>Open the <a href="https://console.developers.google.com/iam-admin/serviceaccounts">Service</a> page, select your project, click on Create service account and input a name and a description(the next two steps are not needed)</li><li>After you created your service account click the three dots icon then Manage keys</li><li>Click on Add Key and select JSON(a JSON file will be downloaded)</li><li>Place the downloaded file into your python project</li></ul><h4>5. Add the GCP Service Account to the Google Analytics account</h4><ul><li>From the previously downloaded JSON file copy the “client email” field (it should look something like this serviceaccount@gcpprojectid.iam.gserviceaccount.com)</li><li>On the Google Analytics &gt; Admin page &gt; View User Management(under the view section) click on the “+” button and Add user. Paste the email address that you copied and make sure “Read &amp; Analyze” is checked</li></ul><h4>6. Retrieve the data from the API using python and Flask</h4><p>Make sure that you are running the python app in virtual environment.</p><ul><li>Install the necessary libraries inside the virtual environment and add them to the requirements file</li></ul><pre>pip install google-api-python-client<br>pip install oauth2client<br>pip freeze &gt; requirements.txt</pre><ul><li>Flask app that retrieves the number of visitors from the past 30 days and displays them on a page.</li><li>Replace KEY_FILE_LOCATIONwith the name of the JSON file we downloaded previously and VIEW_ID with the one found in Admin &gt; Property &gt; View &gt; View settings. The function get_visitors() can be changed to get other types of metrics such as browser type, country or others. You can find more info about this in the <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-py">Google Analytics Response API documentation</a>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7aa656147b49a94a94885586ae179186/href">https://medium.com/media/7aa656147b49a94a94885586ae179186/href</a></iframe><ul><li>A basic structure of layout.html</li></ul><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>    &lt;head&gt;<br>         &lt;title&gt;Visitors&lt;/title&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>         &lt;h1&gt;The number of visitors from the past 30 days: &lt;span style=&quot;color: Cyan&quot;&gt;{{ visitors }}&lt;/span&gt;&lt;/h1&gt;<br>    &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Check out my <a href="https://alexmarginean.me/">website</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb9a4a7e8e33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Musical.ly was better than TikTok]]></title>
            <link>https://alexmarginean.medium.com/why-musical-ly-was-better-than-tiktok-9d0c894cf06b?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d0c894cf06b</guid>
            <category><![CDATA[tiktok-app]]></category>
            <category><![CDATA[musically]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[change]]></category>
            <category><![CDATA[nostalgia]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Thu, 24 Sep 2020 23:36:30 GMT</pubDate>
            <atom:updated>2021-01-31T23:27:30.695Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is musical.ly</h3><p>Musical.ly was a popular social media app where users could create short creative videos. The most popular type of videos was lip-syncing on music(usually high pitched fast sounds) followed by dance, comedy, artsy stuff, etc. The platform had a lot of talented users that would follow the trends or create their own content.</p><p>In late 2017 the app was bought by the company “ByteDance” and transformed into TikTok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NaQf-Lq-OwxjidP7iJzQdw.jpeg" /></figure><h3>Why was it better than TikTok?</h3><p>TikTok had demonstrated to bring even more users onto it and it is appreciated by a lot of people from all over the globe however, there are some facts on why I personally think the app was better before it was changed.</p><h4>1. “Featured” page instead of the “For you” page</h4><p>The featured page included hand-picked musical.lys of the most inspiring/influential people. Those videos had to be inspiring and creative. While the “For you” page on TikTok uses ML(Machine Learning) to recommend videos based on your interests, it sometimes goes wrong and displays videos that are not at all interesting for you. Because of that people often use the phrase “I’m on the wrong side of TikTok” — the algorithm might have suggested multiple videos of a specific niche that it wrongfully thought you are interested in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*mJgq5Ov2P_x-aPiicliyQg.jpeg" /><figcaption>The featured badge on the older version on musical.ly</figcaption></figure><p>While TikTok’s algorithm used in the “For you” page gave the possibility of going viral to almost any creator on the platform, it isn’t doing it for me… I feel like because I’m seeing different people with different content every time, I can’t really get inspired or find a specific type that I like. For me, this is too much. On musical.ly you were used to browsing the “Following” page more often because it had your own personality, your favorite people, and a lot of inspiration and creativity that you could expand at your own pace.</p><p>The “Following” page is still present on TikTok however, not many people are using it because of the “For you” page and the high number of content creators that you discover every day</p><p>It was a lot harder for your video to get featured but this made people hustle more and make better content and it forced creating communities of musers based on their interests in content, music, or other popular musers. The featured page used to include videos from the whole world to everyone, today I feel like I’m stuck with content from my own country on the “For you” page and there is no way to change it. You can still change your region from the settings however, it doesn’t seem to work that way.</p><h4>2. The trends and more creativity</h4><p>As I mentioned above, TikTok promotes any person and usually any type of video. My “For you” page is filled with storytimes, vlog like videos, just filming anything, bad comedy, random comment replies, etc. This app doesn’t seem to filter content as much so there aren’t many artistic, creative, or inspirational TikToks showing up.</p><p>Musical.ly was featuring only artistic content that inspired many people. A lot of the trends were based on cool transitions, video editing skills, acting, etc. One of my favorite trends was #sasswars and #velocity transition — Two trends that had to do with slow-motion videos that you had to shoot from your iPhone camera that would go hand in hand with the background music. I feel like at first TikTok used to feature some type of creativity like singing and the popular TikTok dances, but now that kinda went away with time.</p><p>Who remembers the #RippleEffect #SplashTransition and others?</p><h4>3. The community</h4><p>On musical.ly you got to choose who you want to follow based on either their Featured videos, song remake, etc. and because of that you had your favorite musers, sure you can follow people on TikTok but let’s be honest, who spends time on the “Following” page? That’s right, nobody. This is because it is way easier to be popular on TikTok and it wouldn’t be ethical if you were to follow every person you like.</p><p>Some of the most popular musers were: Loren Gray, Jacob Sartorius, Baby Ariel, Lisa and Lena, Kristen Hancheretc, Jojo Siwa, Johnny Orlando, and the controversial Paul Zimmer.</p><p>Some would say that musical.ly used to promote only beautiful figures, and although that might be true, it was a good point of inspiration for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*tzLAcSqwMFixrpbpYL5-pQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*7CaX8i6PcHapLG4l3VtTTA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*GVM5caVxIAWx-kI201iANA.jpeg" /><figcaption>Credits to influencermarketinghub.com for the screenshots</figcaption></figure><p>My favorite “smaller” musers were Marco Cellucci and Luciano Spinelli from Italy, Isaac James from the UK, Mady Vivian(also known as #GlitterQueen) and Autumn Klein from the US, Keanu Bruijnen from the Netherlands, and others.</p><p>Musical.ly has invented a lot of creative trends and because of that communities of people on youtube have started to make the well-known Musical.ly tutorials — tips and tricks on how to do the latest trends. The most popular muser that also did tutorials on youtube was Erick Skyes(another one of my favorites).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*1E-6yBgpOdEjf40TZQrbZw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*lM7HHyT8tBFJ3QeMOrSFcA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*ER92UKdKv40RjXCok1Ne6Q.jpeg" /><figcaption>Erick Skyes thumbnails from youtube</figcaption></figure><h4>4. The Crown</h4><p>Everyone on musical.ly worked really hard and used different methods to get a crown. It was the biggest achievement you could get on this app and you would get a lot of recognition for it.</p><h4>5. Badges</h4><p>Similar to the crown, there were little round badges that you could get on your profile based on your type of content. Getting a badge was also competitive but it felt so good if you were able to get one.</p><p>Musers had been able to get badges if they posted in the specific badge category, used #BadgeMe(badge name), and be consistent with their content.</p><p>The badge categories were: DIY/How to, Gamer, Food, Visual Art, Comedian, Vlogger, Style Guru, Transitioner, Talent, Animals, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*JA4RUPy1VMylmjXWx9Getg.jpeg" /></figure><h4>6. Muser leaderboard</h4><p>There was a real-time leaderboard with the most popular musers globally or from your country.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*xt_isq8aXeypZaD7_5Z-zg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*1qe9KQRtYLyR6r9Fnqo8fw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*6MXAAxEDpM8RXeyJE7Jlfw.jpeg" /><figcaption>1st images showcase an older version of the app</figcaption></figure><h4>7. Live.ly</h4><p>This was the best way for the musers to interact with their fans. The live broadcasts on live.ly showed the personal side of people’s life. They were fun and interactive and people would usually play games where they would get rewards or do other popular trends like making slime.</p><p>Everyone who had musical.ly must know the emoji game — a game played on live.ly where people had to type an emoji in the chat, the fastest person to type it would get a BFF, like, follow, duet, or reaction to their profile.</p><p>Live.ly was also a monetization tool. People could get musical.ly coins(by watching videos, getting them from their own live.lys or buying them with real money) and spend them on live.lys by buying gifts for the broadcaster that would have fun animations on top of everyone’s screen. At the end of the live stream, you had been able to see the top contributors and exchange your musical.ly coins to real money.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*T7EwPW--1EhIsECPBocBYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfMZko2bx_EuL2o3J_a0Ig.jpeg" /></figure><h4>8. Events, perks, influence</h4><p>Musical.ly used to organize a lot of contests(eg: #1MDanceAudition, #1MAuditionUS, etc.) where you could have gotten SWAG(backpacks, stickers, pop sockets, etc.) with their logo. Popular creators would also participate in musical.ly events mostly in the USA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0X7x897cM_Hz6oLK0OhmQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_hDafVHXlY8hyUgPd8-NA.jpeg" /></figure><p>If you were a muser you have at least one popsocket, that’s because it made it so easy to make transitions. Although popsockets were invented before musical.ly, they would be even more used after musical.ly made them a trend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*LFaUxcJjs6jZSZ9apJAWJg.jpeg" /></figure><p>Those are some of the reasons why I used to like musical.ly better than TikTok. Everything was inspiring then, musers will even remember the inspiring login screens with music and video, the April 1st Prank where you would get a notification thinking that Selena Gomez wanted to duet you, a longer character limit on your bio, and more. Keep in mind that everyone has different opinions and this is only my point on view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Q8xzZ6cTP6NMp0zRuZ96ig.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*sgOy6R9zbTlZBIv1SQA4cg.png" /><figcaption>Old design vs newer design (Credits to <a href="https://medium.com/u/f9253feae132">Hannah Moyer</a> for the screenshots)</figcaption></figure><p>Make sure to comment if you were a muser :) Live with passion, live musical.ly</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d0c894cf06b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Code-in Grand Prize Winners Trip — June 2019]]></title>
            <link>https://alexmarginean.medium.com/google-code-in-grand-prize-winners-trip-june-2019-eb2140a8b4d4?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb2140a8b4d4</guid>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[google-code-in]]></category>
            <category><![CDATA[san-francisco]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Sat, 07 Dec 2019 18:46:19 GMT</pubDate>
            <atom:updated>2019-12-07T19:26:09.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google Code-in 2018 Grand Prize Winners Trip — June 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eiii3VQ6isbHoJnlDucTOg.jpeg" /></figure><p>I worked so hard to get here but I’ve never thought that I’ll be able to achieve my dream of going to the USA. I am so thankful for all of the great Google Code-in 2018 mentors from Fedora Project who did their job the best and for Google and its GCI team because they were able to offer one of the biggest opportunities of my life.</p><p>Make sure to check out my experience during the GCI 2018 contest before reading this article.</p><p><a href="https://medium.com/@alexmarginean/winning-google-code-in-2018-experience-8aaebbff85c1">Winning Google Code-in 2018 Experience</a></p><h4>Leaving my home country (June 24th)</h4><p>The day started at 1 AM (GMT+2) for me. My flight was leaving at 6 AM. I had a 5-hour layover in Munich, Germany and I arrived at San Francisco International Airport at 2:30 PM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfvac7lTOEk8CblqS2aXhQ.gif" /><figcaption>Flight from Cluj Napoca — Munich</figcaption></figure><p>I took the BART from SFO to Powell Street subway station, then took a 10-minute walk and I arrived at Marriott Union Square Hotel at 4 PM</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8x8q_RZDqo4lRLJJfGOfg.jpeg" /><figcaption>Marriott San Francisco Union Square hotel at night</figcaption></figure><h4>Day 1 — Google San Francisco (June 24th)</h4><p>When we got to the hotel we needed to get ready fast because everyone was supposed to be in the hotel lobby by 5 PM. We went downstairs using the fast elevator from Marriott going 17 floors in about 10 seconds.</p><p>The Google Code-in — Google open source team gave us the badges that we needed to take everywhere and they informed us about our day and time spent in the US.</p><p>We took a shuttle bus to the Google — San Francisco office and the GCI team informed us about different places, attractions and fun activities we can do while we were on our way there.</p><p>The first thing we did at Google SF was eating and that was really exciting if you ask me. They arranged a big buffet that addressed even dietary needs for the people who needed that. The buffet included tasty foods such as coconut shrimp, spring rolls, and most importantly a candy bar with a bunch of fruits, cookies, brownies and chocolate fountains (which people were most excited about)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*haORiPgaw9KfSjqTZFLN_g.jpeg" /></figure><p>After we ate we went into a room where they introduced the Google team who was responsible for Google Code-in and the Grand Prize Trip. They gave us all a lot of Google swag(t-shirts, pens, stickers, backpacks, etc.) and a Google Pixel 3XL 128 GB phone with an original Google Fabric case which was awesome. We got to meet each other by playing a scavenger hunt game and the winner received a prize. I made some great friends who I still communicate with from countries like North Macedonia, Spain, India, Ukraine, USA, etc. After that, we played a raffle game where every participant was able to get different GCI, GSoC or Google Open Source merchandise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hcQWANY45pUIrzwXs7fDCw.jpeg" /><figcaption>Some of the Google SWAG</figcaption></figure><p>That night some of us met in the hotel lobby and decided to go through Chinatown by ourselves because it was so close to our hotel. That was a funfilled moment because we laughed and made lasting friendships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K6vsxaMx_LcK5uYT-eRV5Q.jpeg" /><figcaption>Chinatown at night</figcaption></figure><h4>Day 2 — Google Mountain View / Sunnyvale (June 25th)</h4><p>The second day started with visiting the Google Merchandise Store where we were able to buy merchandise using the 150$ gift card we received and the Android Statues Park from the Google Mountain View HQ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tf-KoSOqfvczNI5KaNYD0Q.jpeg" /><figcaption>Google Android Statues Park — Mountain View, CA</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFevpK4lbRoxnLKHBCw3ug.jpeg" /></figure><p>After we took some pics in front of the Android figurines we headed to the Sunnyvale Google Campus where 5 googlers held presentations on recruitment, Google Assistant, Android platform, ChromeOS and TensorFlow. The presentations and the speakers were amazing because we were able to ask any kind of questions, they respected each of them and didn’t consider any of the questions “stupid” as it often happens in my country. I personally gained knowledge, developed new ideas and got encouraged to pursue my dreams because of the events that happened at Google. Some students were able to answer Android related questions so they received Android figurines. Between the presentations, we were taking small breaks when we could enjoy ice cream, different sweets and snacks they prepared for us such as (Android shaped cookies were such a nice addition).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uDxkEZJlzm6EFiupW_aizA.jpeg" /><figcaption>Snack bar at Google Cloud Sunnyvale, CA</figcaption></figure><p>After the talks, each student got to eat lunch with a Googler from their own country, so I met a Googler from Romania. I got to talk to her about my experience with Google Code-in and I asked her about working at Google and about her life in the US and how she got there. She was so positive and encouraging, I’m really happy that I met her.</p><h4>Day 3 — San Francisco Fun Day (June 26th)</h4><p>Before arriving in the US we had to choose between a Cable Car tour of San Francisco and a Segway ride through Fisherman’s Wharf. I chose the Cable Car ride although Segway sounded more fun I never regret not choosing it because we get the BEST tour of San Francisco gaining knowledge about the city and it’s history and visited places that Segway riders didn’t have the opportunity to see such as Ocean Beach, the Presidio, Golden Gate Park, Billionaires’ Row and many more. My favorite spot we visited was Twin Peaks where we got terrific views of the city.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghgyeyuvraW0YQ0_vQs_kA.jpeg" /><figcaption>View of San Francisco from Twin Peaks</figcaption></figure><p>After that, we went to Ghirardelli Pub in Fisherman’s Wharf where we were able to choose from different tasty dishes like Macaroni and cheese, fish and chips, etc. Then we took short walks around Fisherman’s Wharf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8c3YdpnfA1zHlkDDdhC2A.jpeg" /><figcaption>Fisherman’s Wharf sign</figcaption></figure><p>At 1:30 PM we took shuttle buses to Golden Gate Bridge where some of us including me walked the whole bridge and back and it was so joyful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Iox6zpLbD0GaP4-7TTU3mQ.gif" /></figure><p>At 3:30 PM we went to Pier 40 where we boarded on a Cruise. We passed Alcatraz island and we went under the Golden Gate Bridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u7JpdcPxCkVAKuldm_PgVQ.jpeg" /><figcaption>Views of the Financial District</figcaption></figure><h4>Day 4 — Google San Francisco (June 27th)</h4><p>The last day ended with even more prizes and the Award Ceremony. Each of us got a trophy with our name on and our organization on it. Some of us were selected to be in one of the two videos Google planned to present for the announcement of the next Google Code-in (which are up right now and can be found at <a href="https://developers.google.com/open-source/gci/videos">https://developers.google.com/open-source/gci/videos</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RwI4CfekfjPCpq7eQH3HIg.jpeg" /><figcaption>GCI Students on cruise</figcaption></figure><p>This was the greatest experience of my life and I am so thankful for it. Visiting the US made me achieve one of my biggest dreams and I was the happiest being there because I met a lot of nice people and I got to experience some part of an American lifestyle. Google treated us perfectly and they arranged such a great trip from the tastiest and healthiest food and snacks to funfilled trips, talks and activities.</p><h4>Day 5 — The last official day (June 28th) — Day 8 (July 1st)</h4><p>The 5th day was supposed to be the last day there but when we were booking the tickets we had the opportunity to choose when to depart, and so we chose to stay 3 more days so we left on July 1st. On the 5th day, we visited more of San Francisco on our own, we saw Chinatown, The Coit Tower, Lombard Street and of course we had to eat burgers at In-N-Out Burger from Fisherman’s Wharf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PTvepgI7y-hVQBBphPsmTQ.jpeg" /><figcaption>Facebook HQ at 1 Hacker Way, Menlo Park, CA</figcaption></figure><p>Before the trip, I was trying to get a tour of the Facebook Headquarters from Menlo Park, CA by contacting a lot of people, this took me months to arrange but in the end, a Facebook recruiter was able to help me with this and so on the 6th day me and my dad picked up our rental car and we drove to Facebook HQ. There I met a great Facebook engineer who was also Romanian, talked to him about working at Facebook and he toured us around the beautiful Facebook campus (both the old 1 Hacker Way campus and the new buildings).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AXXIkPoSAhIWkoN0hWsbVg.jpeg" /><figcaption>Views of Apple Park from Apple Visitor Center</figcaption></figure><p>After leaving Facebook we headed to the Apple Park Visitor Center. The architectural design was stunning and there was a vibe only Apple can create, it was the same thing as the quality of an Apple product but for a place, everything was crystal clear and perfectly designed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QU94pIiRtWIvjIzv12kxhg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5mE7xX2VOFJOx4ToVyBsA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gBajK1Mpl_0M17iNH6L1tw.jpeg" /><figcaption>Panoramic view of the Apple Store</figcaption></figure><p>I took a lot of pictures while being there but I couldn’t include them all in this post. If you would like to see more pictures contact me and I’ll send you some.</p><p>Make sure to follow me on my <a href="https://www.instagram.com/alexmarginean/">Instagram</a> and check out my <a href="https://alexmarginean.me/">website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb2140a8b4d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Winning Google Code-in 2018 Experience]]></title>
            <link>https://alexmarginean.medium.com/winning-google-code-in-2018-experience-8aaebbff85c1?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8aaebbff85c1</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[winner]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Sat, 26 Jan 2019 20:15:29 GMT</pubDate>
            <atom:updated>2019-12-17T19:02:33.637Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6NnUiquEcdzXYLBgV9DzA.png" /></figure><h4>✏️ How I found out about it</h4><p>It was the Spring of 2018 when I participated in a contest and met lots of new people that were programmers or technology enthusiasts the same as myself. We talked about different things and a friend told me that I should participate in Google Code-in contest because a friend of his won the Grand Prize and he got a T-Shirt by solving only 3 easy tasks. For some reason, I thought Google Code-in was only for University students but immediately after he told me that I was eligible I looked it up and saved it as a bookmark. Funny right?</p><h4>⚙️ What is Google Code-in?</h4><p><a href="https://codein.withgoogle.com/">Google Code-in</a> is a contest to introduce pre-university students (ages 13–17) to open source software development. Since 2010, over 8100 students from 107 countries have completed work in the contest.</p><p>Because Google Code-in is often the first experience many students have with open source, the contest is designed to make it easy for students to jump right in. Open source organizations chosen by Google provide a list of tasks for students to work on during the seven-week contest period. A unique part of the contest is that each task has mentors from the organization assigned should students have questions or need help along the way.</p><p>Students choose tasks they wish to work on from the following categories: coding, documentation, training, outreach, research, quality assurance, and design. Students earn prizes for their successful completion of the tasks.</p><p>After school started in September every couple of days I was checking the Google Code-in website to see if the 2018 contest was announced.</p><h4>📣 Organizations announced (September 18)</h4><p>The organizations were announced and so I was looking for the best one. I checked what different orgs have to offer and I decided to pick <a href="https://getfedora.org/">Fedora Project</a> because it had the most tasks types I was already familiar with. (eg. UI Design, Web design, python, IoT, Linux, Git, etc.) and I felt a good vibe about it so I wanted to focus mostly on Fedora org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*uhslJL5JVFPDves4WwA6oA.png" /></figure><h4>What is Fedora Project?</h4><p>The Fedora Project is a community of people working together to build a free and open source software platform and to collaborate on and share user-focused solutions built on that platform. Or, in plain English, we make an operating system and we make it easy for you to do useful stuff with it.</p><h4>🏁 Contest opens (October 23)</h4><p>Yaaayyy! After waiting for so long I registered on the website, had my parent submit a Parental consent Form and I took my first task. I was looking through the tasks and my first two were basic beginner tasks. I finished them so fast and I was already thinking about the T-shirt (Btw the experience matters more than the T-shirt for me but the fact that I was so close to getting a T-shirt from Google was awesome).</p><p>After I finished the first two tasks, the third one wasn’t that easy and so it took me like 2/3 days but then guess what? I was eligible for the T-shirt 👕.</p><p>After my 3rd task, I really started to focus and work more and more on the tasks and to connect with the Fedora community so I can be a Finalist or a Grand Prize Winner. By the end of the contest I was able to complete 25 tasks some took me 2–5 days, others took me a lot. The longest time before completing a task was 15 days. I know 15 days sounds like a lot of time but it felt good working on it because I got to learn how to contribute and other new stuff.</p><p>Remember I said that I picked Fedora org because there were some familiar types of tasks? Well, there was also <a href="https://www.ansible.com/">ansible</a> and I wasn’t familiar with it at all. I tried to first take the tasks I was a bit familiar with but although it was intimidating I thought about taking ansible tasks so I can diversify them and learn something new. It was hard for me to learn to figure it out but I got help from a mentor and the great fedora GCI community. He guided me through ansible and he clarified every misunderstanding I had. Every time I encountered a problem there were either the mentors or the other participants that would help me. I also tried my best to help other participants if I already knew how to solve a problem.</p><p>I am so happy I chose Fedora because I got to learn different stuff from experienced people, how to communicate better, how to contribute, made connections and new friends. Now, my resumé is full of stuff and I already started to work on my own Open Source Projects and contributing to others.</p><p>You can check my work <a href="https://github.com/alexmarginean16/Google-Code-in-2018">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*j_ExX9shryKY9-GNIjp5uQ.png" /><figcaption>Completed 25 tasks from the Fedora Project organization</figcaption></figure><h4>🏆 Winners and Finalists announced (7 January)</h4><p>It was morning — 28th of December for me when I woke up and, checked my email and saw the title “<strong>You are a Google Code-in 2018 Grand Prize Winner!</strong>”. I jumped out of bed and told my parents. I worked so hard for it and I was so happy about this achievement. I tried my best to make good work so I can be selected as a Grand Prize Winner but I never thought that I could actually be the one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJkmrZQtFV9fnNC6pyGVkA.png" /><figcaption>Grand Prize Winner Certificate</figcaption></figure><p>My biggest dream is to work and move to Silicon Valley. Thanks to Google for helping me to take a big step in this direction and to everyone that supported me: Mentors from Fedora org, parents, other participants and my Romanian teacher that told me I don’t even succeed with any Computer Science contest I’m participating at. Hope this is just the start. I can’t wait until June 2019 to go to the USA 🇺🇸 and visit the Google Headquarters in Mountain View, CA.</p><p>I documented the Google Code-in Trip. You can find it here:</p><p><a href="https://medium.com/@alexmarginean/google-code-in-grand-prize-winners-trip-june-2019-eb2140a8b4d4">Google Code-in Grand Prize Winners Trip — June 2019</a></p><p>You can find more about myself at <a href="http://alexmarginean.me/">alexmarginean.me</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8aaebbff85c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing TensorFlow on Fedora 29]]></title>
            <link>https://alexmarginean.medium.com/installing-tensorflow-on-fedora-29-862573ef2ab9?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/862573ef2ab9</guid>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[tensorflow]]></category>
            <category><![CDATA[fedora]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Sun, 09 Dec 2018 12:29:36 GMT</pubDate>
            <atom:updated>2019-09-25T20:02:57.141Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUCTGaau8E1IEEvEgmfiyw.jpeg" /></figure><p>TF is an open source machine learning framework made by Google for everyone. Installing TensorFlow on Fedora 29 might seem hard but actually it isn’t a hard process at all.</p><p>More information about TF can be found at <a href="https://www.tensorflow.org/">https://www.tensorflow.org/</a></p><p><strong>Installation steps:</strong></p><ol><li>Pip is not installed on fedora 29 so pip needs to be installed by running the command:</li></ol><pre>sudo dnf install python3-pip</pre><p>2. Install virtualenv (the venv steps can be skipped in case of a system wide installation)</p><pre>sudo pip3 install -U virtualenv</pre><p>3. Creating the project directory</p><pre>mkdir &lt;name of project&gt;<br>cd &lt;name of project&gt;</pre><pre># Creates and changes the directory with any preffered name</pre><p>4. Check python version</p><p><strong>WARNING!</strong></p><p>Before creating the virtual environment make sure Tensorflow supports the version of python you have installed on your OS.</p><p>Check installed python version by typing python --version</p><p>Check supported versions of python at <a href="https://www.tensorflow.org/install/pip">https://www.tensorflow.org/install/pip</a> at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHVvFkBXiDwChnHsvr58fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*GxjmEocxA6h75tcnPrGLwQ.png" /></figure><p>In my case fedora 29 came with python 3.7 preinstalled and the latest supported version of python for tensorflow is 3.6 so I had to install python 3.6 by running:</p><pre>sudo dnf install python36</pre><p>5. Create Virtual environment</p><pre>virtualenv —system-site-packages -p python&lt;supported version you want to use&gt; ./venv</pre><p>so in my case:</p><pre>virtualenv —system-site-packages -p python3.6 ./venv</pre><p>6. Activate the virtualenv</p><pre>source ./venv/bin/activate</pre><p>you can also upgrade pip just to be sure everything works as expected</p><p>pip install --upgrade pip</p><p>7. Install tensorflow on the virtualenv</p><pre>pip install tensorflow</pre><p>8. Verify the installation</p><p>Now tensorflow should be installed in the virtualenv but to make sure it actually work let’s execute the command</p><pre>python -c &quot;import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))&quot;</pre><p>The command should output somthing similar to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*2TQYOfbcjdES3BFL-RxGUg.png" /></figure><p>In case you get an warning about the CPU you can run this to ignore it.</p><pre>python -c &quot;import tensorflow as tf; import os; os.environ[&#39;TF_CPP_MIN_LOG_LEVEL&#39;] = ‘2’; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))&quot;</pre><p>Now you can read the documentation of TensorFlow and start making some real projects.</p><p>9. To exit the virtualenv run</p><pre>deactivate</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=862573ef2ab9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Fedora ARM on a Raspberry Pi]]></title>
            <link>https://alexmarginean.medium.com/install-fedora-arm-on-a-raspberry-pi-eec5c0d470d3?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eec5c0d470d3</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[os]]></category>
            <category><![CDATA[fedora]]></category>
            <category><![CDATA[arm]]></category>
            <category><![CDATA[fedora-arm]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Mon, 26 Nov 2018 17:21:09 GMT</pubDate>
            <atom:updated>2018-11-26T17:21:09.102Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>Hey, In this post I’ll show you the easiest way to get started with Fedora ARM on a raspberry pi. This tutorial is for beginners that don’t want to get complicated so, it doesn’t require the use of the command line.</p><ol><li><strong>Download the Fedora ARM image</strong></li></ol><p>Go to <a href="https://fedoraproject.org/wiki/Architectures/ARM/Raspberry_Pi#ARMv7_supported_images">https://fedoraproject.org/wiki/Architectures/ARM/Raspberry_Pi#ARMv7_supported_images</a> and download one of the images listed by the “ARMv7 supported images”</p><p>After the download is complete you can go to step two.</p><p><strong>2. Download Etcher</strong></p><p>Etcher is a GUI tool that makes it easy for you to flash OS images to SD cards &amp; USB drives, safely and easily.</p><p>Go to <a href="https://www.balena.io/etcher/">https://www.balena.io/etcher/</a> click on the green arrow and select your operating system from there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSsKnKIPaF2cLdFgE2lCVg.png" /></figure><p>After download is complete you can go to the downloads folder and install Etcher.</p><p><strong>3. Flash the SD card with the Fedora ARM</strong></p><p>Take your micro sd card and insert it in your computer. If you don’t have a SD/microSD card slot you can use a SD card adapter.</p><p>Open etcher and click on select image. Go to the drectory where you saved your Fedora ARM image from step 1, select it an click on open.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*6K1IepIc6tx7S4Sotfnf9Q.png" /></figure><p>After the image is selected, you can click on “Select drive” and select your SD card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*588drtDG4hKR6YmKnMcerw.png" /></figure><p>Finally, you can click on Flash and wait for the proccess to finish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*S6O4jk0mYkv6-OqC5hH5-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*qjx6wDaCadwkzoT5sTRBgA.png" /><figcaption>Wait until 100%</figcaption></figure><p><strong>4. Boot Fedora ARM</strong></p><p>Now that you have your sd card flashed with fedora ARM you can insert your sd card into your Raspberry Pi, plug the necesary cables and fedora ARM should boot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8W1xHtNc_iKeduqvvrblrA.jpeg" /></figure><p>Go through the setup screen and input your own information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hp7Sru0-NSMUAQj8FTuAnQ.jpeg" /></figure><p>Once you do that you can use your fedora ARM os running on raspberry pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fk9IodMm_KeEGluzkGhabw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wj0WpYsJaovsG-Ec3sboAw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eec5c0d470d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YAML & YML files]]></title>
            <link>https://alexmarginean.medium.com/yaml-yml-files-a0cc018db4a9?source=rss-594db727cb1f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0cc018db4a9</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[yaml]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[syntax]]></category>
            <category><![CDATA[ansible]]></category>
            <dc:creator><![CDATA[Alex Marginean]]></dc:creator>
            <pubDate>Fri, 23 Nov 2018 16:16:44 GMT</pubDate>
            <atom:updated>2020-04-14T09:26:15.944Z</atom:updated>
            <content:encoded><![CDATA[<p>YAML is a human-friendly data serialization standard for all programming languages. It is commonly used for configuration files but could be used in many applications where data is being stored or transmitted.</p><p>YAML uses both <a href="https://en.wikipedia.org/wiki/Python_(programming_language)">Python</a>-style indentation to indicate nesting and a more compact format that uses “[ ]” for lists and “{ }” for maps making YAML 1.2 a <a href="https://en.wikipedia.org/wiki/Subset">superset</a> of <a href="https://en.wikipedia.org/wiki/JSON">JSON</a>.</p><p><strong>The syntax of a yml file</strong></p><p>YAML accepts the Unicode character set. The YAML document may be encoded in <a href="https://en.wikipedia.org/wiki/UTF-8">UTF-8</a>, <a href="https://en.wikipedia.org/wiki/UTF-16">UTF-16</a>, and <a href="https://en.wikipedia.org/wiki/UTF-32">UTF-32</a>.</p><p>“.yml” files can be recognized by the 3 lines “ — -“ at the beginning of the file and 3 dots “…” at the end of the file.</p><p>The meanings of some of the most used characters:</p><ul><li>“ ” Blank space indentation is used to denote structure</li><li>“-” is used to denote list members. Each member has to be on a new line.</li><li>“[]” is another way to denote list members in a single line, separated by a comma “,”</li><li>“: ” by using the colon and space, associative arrays are represented.</li><li>etc..</li></ul><p>Example of yml file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*ST8HNma5ev7jGkQgxKeUPQ.png" /></figure><p><strong>YAML &amp; Ansible</strong></p><p>YAML has different uses but one of the best uses it with Ansible.</p><p>Ansible uses .yml files for the specific playbooks. For Ansible, nearly every YAML file starts with a list. Each item in the list is a list of key/value pairs, commonly called a “hash” or a “dictionary”. All members of a list are lines beginning at the same indentation level.</p><p>Example of a simple list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/1*z4pibd9QIQpl9h6PBwJqbQ.png" /></figure><p>A dictionary is represented in a simple “key: value” form.</p><p>Example of a dictionary:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/1*CE2PFu_SPbjJ2jQGjKjtrg.png" /></figure><p>You can mix those two shown before and get lists of dictionaries. Possibilities are endless.</p><p>Example of lists of dictionaries:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*Fi0h2IBXS6xOT_xCrZGmvQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0cc018db4a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>