<?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 Víctor Pérez Berruezo on Medium]]></title>
        <description><![CDATA[Stories by Víctor Pérez Berruezo on Medium]]></description>
        <link>https://medium.com/@victor.perez.berruezo?source=rss-f7f8d2697be9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4ZoqKd8hmve9tVRWK_WwAg.jpeg</url>
            <title>Stories by Víctor Pérez Berruezo on Medium</title>
            <link>https://medium.com/@victor.perez.berruezo?source=rss-f7f8d2697be9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:33:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@victor.perez.berruezo/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[Python Meetup: Our experience using Google Cloud for building a serverless webApp]]></title>
            <link>https://medium.com/@victor.perez.berruezo/python-meetup-our-experience-using-google-cloud-for-building-a-serverless-webapp-c90fd1e3dcb9?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c90fd1e3dcb9</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Fri, 14 Jan 2022 15:44:58 GMT</pubDate>
            <atom:updated>2022-01-14T15:44:58.207Z</atom:updated>
            <content:encoded><![CDATA[<p>#pybcn</p><p>Last November, my colleague and me had the opportunity to share with the Barcelona Python community a meetup about our experience building a webapp for the Barcelona City council <a href="http://bcnmarket.barcelona/">bcnmarket.barcelona</a> using Google AppEngine Cloud solution.</p><p>Here can be found the thread that followed the presentation:</p><h3>Python Barcelona on Twitter: &quot;&quot;Serverless WebApp using GoogleAppEngine&quot;, by Victor Pérez (@vperezb) and Carlos Gálvez pic.twitter.com/gq4D3KjmiT / Twitter&quot;</h3><p>&quot;Serverless WebApp using GoogleAppEngine&quot;, by Victor Pérez (@vperezb) and Carlos Gálvez pic.twitter.com/gq4D3KjmiT</p><p>Here you can find the presentation:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fembed%3Fid%3D1ZszcRhl0UPYzcguPMUbmkPw63I_qAd1GU1gPPDYi06o%26size%3Dl&amp;display_name=Google+Docs&amp;url=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1ZszcRhl0UPYzcguPMUbmkPw63I_qAd1GU1gPPDYi06o%2Fedit%3Fusp%3Dsharing&amp;image=https%3A%2F%2Flh4.googleusercontent.com%2F936dJ5cUGLUm8toje_1kpMFPOV7pHajJensuxCWoaNHhTSFtZU6H20NtwfyCi7fqOdxWKftNWRo2zg%3Dw1200-h630-p&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="559" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bd700626b67789cea67683f763f69c4/href">https://medium.com/media/7bd700626b67789cea67683f763f69c4/href</a></iframe><p>And here you can find the demo repository:</p><p><a href="https://github.com/vperezb/python-meetups/tree/master/2021_11_25_pybcn_meetup">python-meetups/2021_11_25_pybcn_meetup at master · vperezb/python-meetups</a></p><p>If you have any questions don’t hesitate to leave a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c90fd1e3dcb9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a simple QR generator in html/js with opening statistics tracking]]></title>
            <link>https://medium.com/tiendeo-tech/how-to-create-a-simple-qr-generator-in-html-js-with-opening-statistics-tracking-9fcdd305cd0?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fcdd305cd0</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[tracking-systems]]></category>
            <category><![CDATA[qr]]></category>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 17:08:23 GMT</pubDate>
            <atom:updated>2020-03-29T17:10:24.508Z</atom:updated>
            <content:encoded><![CDATA[<p>This post will show you how we created a simple QR generator with statistics using Google QR API and a couple of HTML files. Here’s the schema:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3HmFpZu3DILBexpb6cujzQ.png" /></figure><h3>The QR Generator .html</h3><p>First, we have the “qr_generator” it&#39;s a simple file with a form to write the destination URL as well as information and parameters that we want to have statistics about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*EjCxoyUkjgnneRruHbAFbg.png" /></figure><p>In our case, we want to add a parameter indicating the id of our customer and a free identifier that I called medium_post so all people using this QR will generate a statistic saying it’s from the post.</p><p>And the most important, the URL. We need to write it down exactly as we want it to be when the user reaches the Final Website, with its UTM or other custom parameters, in order to make actual trackers work.</p><p>As those previous parameters are “burned into the QR” double and triple check it and make sure everything works. As it will be probably will be placed in physical support, <strong>think about what can happen if you have a mistake or if someone uses it in 2 years</strong>.</p><h4>How the algorithm work</h4><p>We have multiple levels and steps and each one with its functionality, we play with encoding and redirect in order to deliver the desired parameters in each place. It remembers me of the Russian dolls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4GFR03SScaBC61Ny.jpg" /></figure><p>Well, first we need to send the user to the redirector. We do so by simply directing the request to that URL https://your.domain/redirect.html.</p><p>Then, as we need to have the final url and the parameters we add them in the url parameters. We did it like this: <a href="https://your.domain/redirect.html?url=myfinalurl">https://your.domain/redirect.html?url=https://my.final.url</a>?with=params&amp;identifyier=medium_post.</p><p>And finally use the <a href="https://developers.google.com/chart/infographics/docs/qr_codes">Google API</a> to retrieve the code.</p><h4>The real algorithm (Russian dolls approach)</h4><p>If you try to do this and use the Google API to get the code you will struggle with parameters and URL encoding, that&#39;s because we need to go through 3 steps of requests with its subsequent problems.</p><p>So the real algorithm, using the Russian dolls approach (don’t blame me plz) consists of starting from the final URL and start building from here the other requests. So, I’ll use the example I used in the QR.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90640fa5a9545a96c84983c85ef92e16/href">https://medium.com/media/90640fa5a9545a96c84983c85ef92e16/href</a></iframe><h3>The Redirector .html</h3><p>This file is the one-in-the-middle its job is to:</p><ul><li>Take the parameters from the url</li><li>Send the statistic with them</li><li>Redirect to the url recieved also in the parameters</li></ul><h4>Redirector algorithm</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4d5a170800f86cab04e5bf22e850d17c/href">https://medium.com/media/4d5a170800f86cab04e5bf22e850d17c/href</a></iframe><h4>The complete form to create the QR</h4><p>It will actually create QRs but it will not redirect you to the proper page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d19641592d56d472f9c8d28c63e3bc78/href">https://medium.com/media/d19641592d56d472f9c8d28c63e3bc78/href</a></iframe><h3>Where to reach me? 🏔</h3><ol><li>Here in <a href="https://medium.com/@victor.perez.berruezo">Medium</a>, <a href="https://github.com/vperezb">GitHub</a> or <a href="https://www.linkedin.com/in/vperezb-/">LinkedIn</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fcdd305cd0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tiendeo-tech/how-to-create-a-simple-qr-generator-in-html-js-with-opening-statistics-tracking-9fcdd305cd0">How to create a simple QR generator in html/js with opening statistics tracking</a> was originally published in <a href="https://medium.com/tiendeo-tech">Tiendeo Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Native Android & iOS Firebase Notifications (Google Cloud Messaging) — Product Owner Cheatsheet]]></title>
            <link>https://medium.com/tiendeo-tech/native-android-ios-firebase-notifications-google-cloud-messaging-product-owner-cheatsheet-71f8cbb49479?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/71f8cbb49479</guid>
            <category><![CDATA[product-ownership]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Thu, 19 Dec 2019 19:47:08 GMT</pubDate>
            <atom:updated>2019-12-19T19:47:08.599Z</atom:updated>
            <content:encoded><![CDATA[<h3>Native Android &amp; iOS Firebase Notifications (Google Cloud Messaging) — Product Owner Cheatsheet</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqKo7M16hJ00QRgWWXYmLw.png" /></figure><p>When creating digital products is usually needed to send notifications to our users. In this “Product Owner Cheatsheet” you will learn the basic knowledge to think and create products notification based.</p><p>You can always read the oficial documentation to have the latest version.</p><p><a href="https://firebase.google.com/docs/cloud-messaging">[Read More] Google Cloud Messaging </a><a href="https://firebase.google.com/docs/cloud-messaging">Firebase documentation</a></p><blockquote>Be creative. Everything can be done in several ways and each one has its pros and cons.</blockquote><p>To make it easier to explain I’ll use a fake News App as example. Presenting problems with <em>some </em>possible solutions.</p><h3>ThinksNews App briefing and User Stories</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*f-WkknTSi6Sh_5wjVSj6PQ.png" /></figure><p>ThinkNews is an app in which the user can read recent news and posts classified by categories. The user can also save posts for later.</p><h4>User stories</h4><ol><li>Each user subscribed to a category should recieve a notification when a new post is published within.</li><li>A user with an unfinished saved post should be notified after exactly 1 day.</li></ol><h3>Overview of the notification system</h3><p>Before starting to explain how to complete those user stories, let’s take a look on the basic architecture and concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evDbC2CXMzKKp-irPhIdhQ.png" /><figcaption>Conceptual schema of the client-backend-firebase system</figcaption></figure><p>On the upper schema we can identify 3 main actors:</p><h4>The <strong>CLIENT</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*QkQVrdACKjW97mW9US2Wpw.png" /></figure><p>Representing “the user” device, the installed app, the app instance with the Firebase Android or iOS sdk installed.</p><p><strong>Responsabilities</strong></p><ul><li>Retrieve the FCM Token from the Firebase Android and iOS sdk and send it to the backend.</li><li>Send the changes in “interests” made by the user in the app UI. (Suscribe and unsuscribe)</li><li>Show the notifications and customize them if its desired.</li></ul><h4>The <strong>BACKEND</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*z2v1Z46FM4WgqvJTgXxOww.png" /></figure><p>Representing “the brain” of the system, with databases, files and APIs…whatever.</p><p>A lot of business logic can take place in this place.</p><p><strong>Responsabilities</strong></p><ul><li>Recieve and store the tokens received from the app.</li><li>Recieve and store user interests. (Subscriptions / Unsubscriptions)</li><li>Suscribe FCM tokens to topics when user “subscribes” in the app.</li><li>Delete FCM tokens from topics when user “unsubscribes” in the app.</li><li>Send messages to topics or tokens depending on the business case.</li></ul><h4>The<strong> FIREBASE CLOUD</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3H3Iz6dyLPmlqBFn.png" /><figcaption>FCM Architecture</figcaption></figure><p>Acting as “the postman”, delivering to “the user” the messages orchrested by “the brain”.</p><p><strong>Responsabilities — but we don’t need to do anything</strong></p><ul><li>Send the messages to users and devices when the backend ask for it.</li><li>Keep stored the tokens suscribed to a token.</li></ul><p><a href="https://firebase.google.com/docs/cloud-messaging/fcm-architecture">[Read More] FCM Architecture</a></p><p>So, based on some user actions (subscriptions, likes, follow…) the backend, based on business logic will send notifications back to users.</p><p>Those notifications can be sent using two methods: by<strong> TOKEN </strong>or by <strong>TOPIC</strong>. Based on the business requirements we will use one or another.</p><p>And, as we need to make it work in both <strong>iOS </strong>and <strong>Android</strong>, we will need to look closely on each platform as their behavior is not exactly the same.</p><h3>Previous concepts</h3><h4>FCM token</h4><ul><li>Is the token we use to identify the app. Like an adress for mailing.</li><li>Is the id representing the app installed on the device in Google’s eyes. Each app instance has a different token.</li><li>We will use the FCM token to identify <strong>to who</strong> send which notifications.</li><li><strong>This token is born in the client APP</strong> so you will need to send it to your backend to store it.</li><li><strong>This token can exipre whenever Google decide</strong>. In this case onTokenRefresh() method will be triggered on the client, enabling the client to send the new token again to the backend.</li><li>Notification permissions must be granted to retrieve Firebase token.</li><li>This token has no need to be related to a specific user.</li></ul><h4>Topic</h4><ul><li>Topics are entities with meaning inside Google Firebase</li><li>Is an entity created to subscribe tokens in it.</li><li><strong>Topics are agnostic to the content architecture or business logic.</strong></li><li><strong>FCM Tokens can be suscribed into to topics.</strong></li><li>In our example app, the categories (like Politics, Travel, Sport ) are topics in which users can “subscribe”.</li><li>We can also suscribe tokens in topics representing age ranges, so we will have also the topics (…, 18–25, 26–43, 44–55, …).</li><li>We can have topics representing two or more kinds of grouping (category, age, city…)</li><li>Topics are identified with a free string. So be aware with the naming.</li><li>Limitation 1: Each FCM token can be subscribed to no more than 2000 topics.</li><li>Limitation 2: You can suscribe max 1000 tokens to topic in each batch request. But then you can make another request. The worst scenario is that you make so many requests that FCM responds with an 429 RESOURCE_EXHAUSTED error. If you reach that limit, good job, you have a huge user pool (hire me)!</li></ul><p><a href="https://firebase.google.com/docs/cloud-messaging/android/topic-messaging">[Read more] Firebase topics</a></p><h4>Audience</h4><ul><li><strong>Is a definition created by me</strong> to explain the concept “<em>combination</em> of topics” found in Firebase Docs in order to make it easier to internalize.</li><li>We can send messages to an audience created by a combination of topics using this kind of logical operations: &quot;&#39;TopicA&#39; in topics &amp;&amp; (&#39;TopicB&#39; in topics || &#39;TopicC&#39; in topics)&quot; . <a href="https://firebase.google.com/docs/cloud-messaging/android/topic-messaging#build_send_requests">More info</a></li><li>The audience represents the batch of users we will impact with our notifications.</li><li>A topic itself is an audience.</li><li>An audience has business value itself.</li><li>Examples: Politics is an audience; Politics &amp;&amp; 18–24 years is also an audience.</li></ul><p>You can also use a new topic instead this logical grouping by suscribing the people suscribed in Politics and 18–24 in a new topic called Politics_AND_18–24 . But then you will need to keep the logic in your backend. But then operations can’t be done in the fly. And more topics are created.</p><h3>Whether to send by token or by topic</h3><p>We have both possibilities, by token we can send a different message by user, but this also means that we will make a request to Firebase to achive it. Otherwhise, using the topic method we will send one request by notification.</p><p>Having this in mind we can think about a couple of examples:</p><h4><strong>2- If you have 2 users with an interest each and you send one notification by day:</strong></h4><p>Dont worry, you can go by token but:</p><p><strong>By token:</strong> The request rate will be 2/day — total: <strong>2 * day</strong></p><p><strong>By topic: </strong>First day: 1 request to suscribe + 1 request to send to topic — total: <strong>1 + 1 * day</strong></p><h4><strong>3- If you have 1000 users with an interest each and you send one notification by day:</strong></h4><p><strong>By token: </strong>The request rate will be 1000/day — total: <strong>1000 * day</strong></p><p><strong>By topic: </strong>First day: 1 request to suscribe + 1 request to send to topic — total: <strong>1 + 1 * day</strong></p><p>If we scalate this ammount to n where n = 200K or so, our token solution will not work at his fully potential as Firebase will start to increase response time until reaching an error for quota exceed.</p><p>Well, hope its enough to realise that depending on the situation its better to use one or another approach.</p><blockquote>So,</blockquote><h4>By topic</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*NzZ9HTkRmgUm8zAfD4s_8g.png" /></figure><ul><li><strong>Topic method allows scalability and can handle fast user growth.</strong></li><li>For this reason, use topic if business requirements allow this approach.</li><li>You should use it if you want to send a messages to a group of users.</li><li>You should use it if you have clear categories and users can suscribe to them.</li><li>You can still customize the notification in a particular way by passing a payload to a Push notification. (Example: If you want to send a notification each day at the same hour but with different messages)</li></ul><p><a href="https://firebase.google.com/docs/cloud-messaging/android/topic-messaging#build_send_requests">[Read More] Send messages to topics</a></p><h4>By token</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*0tplCI8kM3tUiecxzF-8mQ.png" /></figure><ul><li><strong>Use it if you can’t send by topic.</strong></li><li>You can use it if you have few users (so you dont care about performance).</li><li>You should use it if you need a high customized notification schedule. (Example: if you have a banking app and you want your users to be notified when a new payment is made)</li></ul><p>You target users by their token, you can send a fully customized notification. Due to Firebase API limitations this method shouldn’t be used to broadcast.</p><p><a href="https://firebase.google.com/docs/cloud-messaging/send-message#send_messages_to_specific_devices">[Read More] Send messages to registration tokens</a></p><blockquote>Other ways, not common but may help to think out of the box.</blockquote><h4>A pull approach</h4><p>If you are an app so big and so common and so importand and so so so.</p><p>You can schedule a method to request to your backend each x time if there’s a new message. <a href="https://www.vogella.com/tutorials/AndroidTaskScheduling/article.html#the-job-scheduler-api">[Read More]Android JobScheduler</a></p><p>This solution will be battery consuming and may not work if your App is not “white-listed” for the manufacturers. As your App may be killed after some time of inactivity.</p><h4>Hybrid</h4><p>You can even use a first push to trigger a pull to request information. This may break your backend if it’s not ready to hold a huge amount of requests.</p><h4>Geo-based notifications</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/0*ca-uWq76EnSPqzBd" /></figure><p>You can achieve some sort of geo-based notifications using geofencing. Ill try to write a post about it.</p><p><a href="https://developers.google.com/location-context/geofencing/">[Read More] Geofencing</a></p><h3>Platform: Android vs iOS &amp; Message type: Notification Message vs Data Message</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*GfUrppmCL96yRHYxa9INtQ.png" /><figcaption>Source: <a href="http://www.pricepony.com.my/blog/ios-vs-android/">http://www.pricepony.com.my/blog/ios-vs-android/</a></figcaption></figure><p>We have two main push types that we need to choose wisely depending on the functionality we want to achieve.</p><ul><li>Notification Message / Display Message</li><li>Data Message / Silent Message</li></ul><p><a href="https://firebase.google.com/docs/cloud-messaging/concept-options#notifications_and_data_messages">[Read More] Message types</a></p><h4>Notification Message (<strong>always visible)</strong></h4><p>You can send an <strong>always visible notification </strong>to the devices also <strong>with a custom data payload.</strong></p><p><strong>A default notification layout</strong> will be shown unless you override it with the custom info placed in de <strong>payload </strong>(or any process you start).</p><p><strong>Android</strong></p><p>If the app is on the background, depending on the OS version, the device, the battery settings … The PushNotification will arrive, but without the payload. If the app is on the foreground everything OK.</p><p><strong>IOS</strong></p><p>If the processing of the payload lasts more than 30 seconds the default notification layout will be shown.</p><h4><strong>Data Message (silent)</strong></h4><p>You can send a <strong>custom payload</strong> (.json) to the device <strong>without showing any notification</strong>.</p><p><strong>Then the app can choose whether to show or not a notification</strong>. In this case, you can also <strong>customize the notification layout</strong>.</p><p>In the tests we made around 2018 those notifications barely succeed to deliver when app is in background. We discarded this method, so i have not much information.</p><p>It might be a protecting layer so you cannot spam users with hidden notifications draining batery and starting background processes.</p><p>If the app is on the foreground everything OK.</p><blockquote>If you identify more variables or reasons that may affect the delivery, please comment below.</blockquote><p><a href="https://firebase.google.com/docs/cloud-messaging/concept-options">[Read More] Cloud Messaging concept options</a></p><p><a href="https://firebase.google.com/docs/cloud-messaging/concept-options#notification-messages-with-optional-data-payload">[Read More] Optional data payload</a></p><p><a href="https://firebase.google.com/docs/cloud-messaging/ios/client">[Read More] Firebase iOS Client</a></p><h3>Customize notifications</h3><p>Once the notification is recieved in the device we can modify its display by overriding the default appearence. We can use the data recieved in the payload to do so.</p><p>Starting from a simple notification like this one, we have some possibilities to make them look beauty and actionable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*C7O_5FZuErZVweihQhKHMg.png" /><figcaption>Simple notification</figcaption></figure><p>Known possibilities</p><ul><li>Add buttons</li><li>Add images</li><li>Add a large image when expanded</li><li>Add a long text when expanded</li><li>Add media controls</li></ul><p>You can find a good revision in the official docs here:</p><p><a href="https://developer.android.com/guide/topics/ui/notifiers/notifications">[Read More] Customize Android notifications</a></p><p><a href="https://developer.apple.com/documentation/usernotificationsui">[Read More] Customize iOS notificaitons</a></p><h3>Delivery Options</h3><p>In the docs you can find further detailed info about more delivery options.</p><p>For me the most valuable is the possibility to colapse messages into kind-off groups.</p><p><a href="https://firebase.google.com/docs/cloud-messaging/concept-options#delivery-options%C3%A7">[Read More] Collapsible messages, Priority, Message livespan…</a></p><h3>FCM Credentials, keys and tokens</h3><p>In the whole setup there’s a lot of keys and we must know wether from where they come and where they go.</p><ul><li><strong>Google Service Account Credentials</strong>: To allow your backend comunicate with Firebase API. You can download this file from Google Cloud Platform Credentials in API Keys section. Will be stored in the backend</li><li><strong>FCM token:</strong> As seen before, to allow Google identify the device in order to send the notification. Retrieved in the client from the Firebase SDK and sended to the backend to be stored.</li></ul><p><strong>iOS</strong></p><ul><li><strong>IOS GoogleService-Info.plist</strong>: To allow iOS App instances retrieve a FCM token from Firebase SDK. You can download this file from Firebase project and stored in the client.</li><li><strong>Apple Push Notification Authentication Key:</strong> To allow Firebase send notifications to Apple.</li></ul><p><a href="https://firebase.google.com/docs/ios/setup">[Read More] Setup Firebase on iOS</a></p><p><strong>Android</strong></p><ul><li><strong>GoogleServie.json: </strong>The Android equivalent to GoogleService-Info.plist. Can be downloaded from Firebase and will live in the client.</li></ul><p><a href="https://firebase.google.com/docs/android/setup">[Read More] Setup Firebase on Android</a></p><h3>Solving User Stories</h3><h4>1- Each user subscribed to a category should recieve a notification when a new post is published within.</h4><p>To solve this situation we just need to create a topic called like the category and suscribe the FCM tokens as soon as they tap on the suscribe button in the interface.</p><p>This interest triggered in the UI will travel to the backend and then to Firebase.</p><p>Then, when a new post is published the backend will build the message and send it to Firebase with the target topic.</p><p>All users suscribed to the topic will recieve the notification.</p><h4>2- A user with an unfinished saved post should be notified after exactly 1 day</h4><p>In this case we should use the token approach, as the message sent to this user will not be the same than the one to send to another user and even more hard to be coincident in time.</p><p>So, when the backend determine is the time, he will send a message targeted diretly to the FCM token of the user.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71f8cbb49479" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tiendeo-tech/native-android-ios-firebase-notifications-google-cloud-messaging-product-owner-cheatsheet-71f8cbb49479">Native Android &amp; iOS Firebase Notifications (Google Cloud Messaging) — Product Owner Cheatsheet</a> was originally published in <a href="https://medium.com/tiendeo-tech">Tiendeo Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Com demanar dades i morir en l'intent — Part 3: Autoritat Catalana de Protecció de Dades]]></title>
            <link>https://medium.com/@victor.perez.berruezo/com-demanar-dades-i-morir-en-lintent-part-3-autoritat-catalana-de-protecci%C3%B3-de-dades-3493c4e7570d?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3493c4e7570d</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 10:53:31 GMT</pubDate>
            <atom:updated>2019-09-29T10:53:31.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>Com demanar dades i morir en l&#39;intent — Part 3: Reclamar a l’<a href="https://apdcat.gencat.cat/ca/">Autoritat Catalana de Protecció de Dades</a></h3><p>Després d’haver reclamat a la GAIP pel silenci administratiu en la sol·licitud tant d&#39;informació pública, ens disposem a reclamar a la ACPD per no haver rebut resposta al tràmit en què exercia el meu dret d’accés a les dades personals d’acord amb l’article 16 de la Llei 32/2010, de l’1 d’octubre, de l’Autoritat Catalana de Protecció de Dades i d’acord amb el que estableix l’article 15 del Reglament (UE) 2016/679 del Parlament i del Consell, de 27 d’abril de 2016, relatiu a la protecció de les persones físiques pel que fa al tractament de dades personals i a la lliure circulació d’aquestes dades (RGPD).</p><h3>Reclamar a la ACPD</h3><p>Després de buscar a Google la pàgina de la ACPD (<a href="https://apdcat.gencat.cat/ca/inici/">https://apdcat.gencat.cat/ca/inici/</a>) arribem a la seva pàgina d’inici.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Gz8rdPmx3n0SWtzUCV5YA.png" /></figure><p>Així com a la pàgina de la GAIP es pot trobar ràpidament l’apartat per reclamar, no és així en el cas de la ACPD. De totes maneres sembla que pot trobar-se a “atenció al públic i entitats”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q1nwJ0kZgUpmNvzNdHkHrQ.png" /></figure><p>Arribem a una pàgina amb molt text i diferents formularis per a demanar informació. I a la part inferior podem trobar que un possible lloc per a reclamar es a seu.apd.cat (que ni tan sols és un link). De totes maneres sembla que la reclamació és per a les dades obtingudes per al seu propi formulari i no el “servei” que ofereix la agència per a que un ciutadà pugui denunciar que s’estan vulnerant els seus drets.</p><p>Així doncs, aqui no és on voliem arribar. Tornem a l’inici per a mirar de trobar el lloc adequat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QwoeUt7EB59Og4WtYg-4g.png" /></figure><p>Sembla que sota “Seu electrònica” &gt; “Tràmits” arribem a una pàgina amb moltes opcions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aO1QsganFFI1xbAsY8Xjkw.png" /></figure><p>Provem amb la reclamació:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWDbzL40sub9H-BfM2LMyQ.png" /></figure><p>Trobem molt text en el qual no tinc clar que es demana. Vull fer el tramit al que tinc dret, així que clico a “Accés al tràmit”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*miYpylZW94Cg1ZMI2DF3sQ.png" /></figure><p>Torno a tindre problemes amb l’autenticació.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*dpsFysEv7Oir-YUOu7uvNw.png" /></figure><blockquote>Ho he de deixar per avui perquè no puc continuar, la única sol·lució ha sigut utiilitzar un navegador en incògnit.</blockquote><p>Veig un apartat de reclamació i un altre de denúncia. Provo amb el de denúncia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KprP0H8GPJzEKU9W-DtWqw.png" /></figure><p>Novament una pàgina amb text i un botó per accedir al tràmit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rirsaw-B2EkR0lHDKq2wOQ.png" /></figure><p>Ens dirigeixen de nou a la nostra coneguda pàgina tramits.seu.cat</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*bnBQv0Bk5BoQDt-w8T5drg.png" /></figure><p>De nou un formulari infinit (i mira que he deixat el meu certificat digital).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*6OLF4eijqvLNfmSA-kMdnA.png" /></figure><p>I al final escric el motiu de la reclamació:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*tOLcE2CVTWbMkqo8yNQAZQ.png" /></figure><p>I finalitzo i envio la reclamació:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*3qq1A3sLj35HGc50In678A.png" /></figure><p>Realment, per tot el que m’he anat trobant, aquest és de lluny el procés més senzill.</p><p>I com no podia faltar, una nova carpeta ciutadana! Ja en van 4 (segur que n’hi ha una a cada entorn de treball)…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCGufZtTeZ0dPf6tbJCyBw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3493c4e7570d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Com demanar dades a l’Ajuntament i morir en l’intent — Part 2: Reclamar a la GAIP]]></title>
            <link>https://medium.com/@victor.perez.berruezo/com-demanar-dades-a-lajuntament-i-morir-en-l-intent-part-2-reclamar-a-la-gaip-74453e67a4a?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/74453e67a4a</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 10:21:36 GMT</pubDate>
            <atom:updated>2019-10-12T13:31:58.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>Com demanar dades a l’Ajuntament i morir en l’intent — Part 2: Reclamar a la GAIP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDYTJJaO-8AVj6FzYm3HAg.png" /></figure><p>La GAIP és un òrgan de control que proporciona al ciutadà una plataforma on reclamar si aquest considera que s’han vulnerat els seus drets en matèria d’accés a la informació pública. <a href="http://www.gaip.cat/ca/qui-som/que-es-la-gaip/funcions/">Més informació a la pàgina de la GAIP</a>.</p><p>En el moment d’escriure aquest post fa 4 mesos des de la data de sol·licitud d’informació i encara no he obtingut resposta.</p><p>Així que em disposo a fer una reclamació.</p><h3>Reclamar a la GAIP</h3><p>Cal dir que per a descobrir que el ciutadà disposa d’aquesta eina caldria indicar-ho. Un molt bon lloc seria a la Carpeta Ciutadana. Inclús que la solicitud fos questió de donar-li un botó.</p><p>Com això de moment no és així. Em dirigeixo a la pàgina de la GAIP disposat a fer la reclamació.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeRMX0yQphB0ZjnhzKeELA.png" /></figure><p>Ràpidament identifico el botó (si bé és veritat que podria destacar més).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gc9SXDVV-FyO9zrVLrcYwg.png" /></figure><p>Hi ha molts elements amb els que interactuar. Tot i així vaig a buscar el de “Comença”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*UkV9D95nx8RDZ7w3af9yNg.png" /></figure><p>Arribo a una altra pàgina amb MOLTS elements dels quals només m’interessa el del tràmit per internet. Al fer-hi clic es desplega més informació.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*ZxDgI3uYT8NhMuLXlh8BsA.png" /></figure><p>En principi sembla que he de descarregar emplenar i enviar. Veiem-ho. D’entrada faig clic a “Ves-hi”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUktrTG0RiOkk2QHHgjtAw.png" /></figure><p>Em porta a una altra pàgina on novament veig pasos i moltes interaccions possibles.</p><p>També hi ha un apartat de “condicions tècniques necessàries” un concepte bastant llunyà al de la majoria de la població.</p><p>Jo vull descarregar i enviar quan abans millor, així que faig clic a “Descarregueu-vos el formulari de sol·licitud”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rR5MQ1KWMBrNNm5Y" /></figure><p>Al descarregar el fitxer m’indica que no tinc les eines necessàries per a realitzar-ho.</p><p>Entenc que he de descarregar AdobeReader. Un software propietari (ja d’entrada em sembla un despropòsit).</p><p>Busco Adobe Reader a Google i arribo a la pàgina:</p><p><a href="https://get.adobe.com/es/reader/">https://get.adobe.com/es/reader/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVNuKoMh30-c8dsGLTHkpg.png" /></figure><p>Necessito 166mb lliures al meu dispositiu (que ja dono per descomptat que no serà el telèfon mòbil) i inicio el procés de instal·lació d’Adobe.</p><p>Un cop finalitzada la instal·lació torno a obrir el document de Reclamació descarregat prèviament. On primer es demana escollir entre si el reclamant és una persona física o jurídica (També es necessita coneixement per a això).</p><p>I he d’omplir un munt de camps més. Suposo que es justifica amb que es un tràmit amb l’administració. Espero que no s’em torni a demanar aquesta informació.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p71V6QtrqgbtfVtE6YZKxw.png" /></figure><p>Empleno les dades i empleno també els seguents apartats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcrhZqqP-QSmm9s0K8VgqA.png" /></figure><p>No tinc clar que vol dir això de mediació així que no ho marco.</p><p>Segueixo emplenant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NX918hoMak9BUfBpM6GyNw.png" /></figure><p>Em demana una còpia de la sol·licitud així que vaig a buscar-la. La tinc a la “Carpeta Ciutadana” de tramits.seu.cat. <a href="http://link/">Veure el post sobre els tràmits</a>.</p><p>Com ja fa estona que no entro a tramits.seu.cat s’ha caducat la sessió i he de tornar a fer la validació amb el telèfon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZYFJgLb94gzu8DhccczFpA.png" /></figure><p>Em segueix sortint l’error del token. Sembla ser que quan caduca la sessió no es pot renovar fins al cap de x temps. Segurament per discordança de temps de validesa dels tokens. No en puc demanar un nou ni utilitzar el d’abans.</p><blockquote>Ho he de deixar per avui perquè no puc continuar (14-Setembre)</blockquote><blockquote>2 setmanes més tard torno a tindre una estona per a dedicar-li (29-Setembre)</blockquote><p>Segueixo amb el problema de la passada setmana, per tant descarto que pugui ser tema de dates. Pot ser que ja estigui “corromput” el navegador, així que obro una finestra privada.</p><p>Sembla que puc accedir normalment, pero al arribar a la meva carpeta, no tinc cap instància.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z83D31Z52scdlhe1J3SrWQ.png" /></figure><p>Aquesta carpeta ciutadana no és la mateixa carpeta ciutadana que conté les meves instàncies.</p><p>Després de tornar a iniciar una finestra en incògnit i iniciar el procés desde 0 aconsegueixo obrir la carpeta ciutadana “correcta”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ybQxW9A31UrEgg6LDIR-DQ.png" /></figure><p>Descarrego la instància per poder adjuntar-la al formulari de l’GAIP clickant sobre el nom en blau sota d’Adjunts. (No és tant obvi que es pot descarregar).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*MplYQYacMlrOt4xnTOWciw.png" /></figure><p>La instància vaig fer-la el 28/05 i ara som a 29/09 :)</p><p>Procedeixo a adjuntarla al formulari.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpY97R14R-YJZU5JrKPIvQ.png" /></figure><p>Resulta que el nom amb el que he descarregat el document no serveix per adjuntar-lo a l’altre tràmit. Fantàstic.</p><p>Un cop canviat el nom i omplert el formulari procedeixo a desar-lo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*v95LmbT86YZsGFcdJ7Nq0g.png" /></figure><p>Accepto les condicions que no he llegit i Valido i deso. (És el que faria el 4% de gent que per necessitat hagi arribat fins aqui).</p><p>Ara torno a anar a l’GAIP. I Continuem amb el pas dos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcSPoCwI15gKjMWLm9YBCQ.png" /></figure><p>Crec que ho he fet tot així que passo al pas 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVlcyBuhki7K1MtWMH3vzw.png" /></figure><p>Adjunto el fitxer i clico a Envia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9A8l2-XJ6aeFfxEMQohmg.png" /></figure><p>Espero…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*11h8alMdgHYpSyE4Jx1FKg.png" /></figure><p>Error. Reintento la pàgina reenviant les dades del formulari:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFV-Un64wyQQwz8sp5ydig.png" /></figure><p>Sorpresa, un altre cop conectar-nos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rfSO3qdtJ3KPtWxMG-l7-w.png" /></figure><p>Una pantalla de càrrega… I per fi sembla que tot està en ordre! <br>Descarrego el document d’acusament de rebuda, però vaja, veurem si serveix d’alguna cosa.</p><p>Intento cercar la Meva Carpeta per veure si tot està ok, per a trobar-la em dirigeixo a tramits.</p><p>Trobo la meva carpeta però per sota del plec de la pantalla, és a dir, que he de fer scroll. (Podem veure com continua descarregant l’acusament de rebut, ja porta uns minuts).</p><p>Finalment s’ha descarregat i sembla que tot ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1AAe6rsjS4iqUD7mcKosQ.png" /></figure><p>Segueixo cap a la meva carpeta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJWEm-QDZ77p-0D2hAi1hw.png" /></figure><blockquote>És una “Meva Carpeta” diferent a les altres dues. YUHU!!!!</blockquote><p>Sembla que a més la petició s’ha fet per duplicat. És a dir, que la que havia donat error ha funcionat.</p><p>També m’ha arribat un correu de confirmació de la Gene, només un i no dos:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxpRViw_f0UwS7TBBkkPVg.png" /></figure><p>Gràcies a qui hagi arribat fins aqui, faré un nou post quan tingui més informació!</p><p>__<br>ACTUALITZACIÓ: Després de 4 mesos esperant resposta, només 12 dies després de reclamar a la GAIP tinc resposta!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74453e67a4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Com demanar dades a l’Ajuntament i morir en el intent — Part 1: Presentar una instància]]></title>
            <link>https://medium.com/@victor.perez.berruezo/com-demanar-dades-a-lajuntament-i-morir-en-el-intent-part-1-presentar-una-inst%C3%A0ncia-541ea0d85fa1?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/541ea0d85fa1</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 29 Sep 2019 10:21:36 GMT</pubDate>
            <atom:updated>2019-09-29T10:21:36.761Z</atom:updated>
            <content:encoded><![CDATA[<h3>Com demanar dades a l’Ajuntament i morir en l’intent — Part 1: Presentar una instància</h3><p>A mitjans de Juny de 2019 en un rampell de curiositat i indignació per la nova majoria absoluta a l’Ajuntament de Premià de Dalt vaig proposar-me treure’m del tinter un seguit de d’inquietuds que pel frenesí electoral no havia tingut temps de investigar.</p><p>Així doncs, el 24/05/2019 vaig disposar-me a fer 3 instàncies que haurien de servir per conèixer més a fons el funcionament i les pràctiques d’un ajuntament.</p><h3>Fer una instància</h3><p>Donat que tenia poc temps per a presentar presencialment les instàncies (bàsicament perquè l’horari d’apertura es solapa amb l’horari laboral de quasi qualsevol persona treballadora) vaig decidir intentar presentar-les telemàticament.</p><blockquote>De totes maneres, no tothom te perque saber que l’informació es demana via instància.</blockquote><h4>Presentar l’instància telemàticament</h4><p>Buscar la pàgina de l’ajuntament a Google i trobar-la: <a href="http://www.premiadedalt.cat/">http://www.premiadedalt.cat/</a> [Fàcil]</p><p>A la primera plana hi ha nombrosos apartats que pot fer-nos pensar que podrem demanar informació. Al menú: “Ajuntament”, “Premià de Dalt Soluciona”, “Seu electrònica” ; al módul blau: “OAC”, “Bústia ciutadana”, “Transparència”, “eTauler” i a una etiqueta: “CONTACTAR”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7xbA-MSvWNVrO1-I21rQw.png" /></figure><p>Entrant per ordre sembla que l’apartat Seu electrònica és el primer que pot respondre a les nostres inquietuds, malgrat no veure la paraula <strong>instància</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N01tmxfTiGUA858rDfWlIg.png" /></figure><p>Donat que jo vull informació pública entenc que el primer punt és el que em serà util. Així doncs hi navego.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3dj7qyB6AlezFuen9ufvjA.png" /></figure><p>Ara em trobo un munt de paràgrafs on s’em comunica que evidentment tinc dret a accedir a l’informació.</p><p>Es parla de prèvia ponderació, d’interés públic, persones afectades sense definir gaire que significa tot plegat. De manera que quan es denegui la solicitut (perque es denegarà) et podran dir una d’aquestes paraules i els estarà emparant “la llei”.</p><p>Així doncs, com qualsevol persona amb vida, llegeixo <strong>parcialment </strong>i segueixo buscant un lloc on pugui escriure el que vull demanar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNONWYjvZkii8G5bhfT3yQ.png" /></figure><p>Malgrat això només trobo un link ben petit on veurem que passa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRzIrAc4sMcXVPdcmYu5UQ.png" /></figure><p>Arribo a una pàgina on hi ha un botó gros que em comvida a emplenar una sol·licitud. Hi faig clic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cHsANiaUHLOB5dJ8wSS7Zg.png" /></figure><p>Comença el capítol per poder autentcar-se. <strong>Com si algú pogués fer mal demanant informació</strong>, sabent a més que no et donaràn tot el que no sigui “d’interés públic”, amb “informació personal” i les excuses que es puguin inventar.</p><p>Entenc que el reglament municipal demani que qualsevol tramitant s’identifiqui, però bé, fins on tinc coneixement, omplir un formulari amb les dades també es identificar-se.</p><p>Tornant al procés, faig click al Utilitza el idCAT Mòbil, no se el que és pero es un botó que em permet entrar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*FBj9rV9-0VWpRvVoXL-aPA.png" /></figure><p>No em deixa així que suposo que hauré de posar el meu nif i telèfon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*kP1PleSqp4k4CdIGuHCdgw.png" /></figure><p>Ara m’avisa que puc no disposar d’idCAT Mòbil i entenc que puc fer-me un compte.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*r9AIENms7xkk35O1QDKhRg.png" /></figure><p>Li dono a Comença (després de fer scroll) ja que és verd i diu comença.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*HmXgl2aUrPTL_33yrnSnHw.png" /></figure><p>Em demana moltes coses i finalment puc omplir-les. (En aquest punt hi ha un buit que desconec ja que estic recreant el procediment com si fos un nou usuari malgrat jo ja ho vaig realitzar).</p><p>Suposem que la resta del procés és correcte i em disposo a “Loguejar-me” utilitzant idCAT Mòbil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*SiBkI9l2VEH2mRwDjs0t0Q.png" /></figure><p>El pas extra de introduïr el codi, fa mandra però dona sensació de seguretat. Tot i així sembla que he tingut un problema en l’autenticació. Surten uns caràcters estranys degut a que el sistema d’autenticació no te la codificació adecuada.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*GGIMl2Phn4FLRbEtb26KSQ.png" /></figure><p>Faig click “aqui” i no pasa res.</p><p>Torno a iniciar tot el procés i finalment arribo a una pantalla com aquesta:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*D9DgJkacd6oatnomJAdbIw.png" /></figure><p>Aquest formulari és per a exercir el dret d’accès a les dades personals recollides per l’administració, ara me n’adono que no era el que buscava.</p><p>Així que torno a buscar a la pàgina de l’ajuntament.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vecQNaVOh2IknXE_GmL_pg.png" /></figure><p>Ara provo la seguent, que al fer click em duu a:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3qlPvrOh0RGGvoRltvRjxA.png" /></figure><p>Aqui veiem el que en realitat em fet al pas anterior. A banda hi ha molts pasos i fa mandra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbmiAHfhzbZOTW2PHAxmXw.png" /></figure><p>Provo ara amb tràmits, al cap i a la fi una instancia podria ser un tràmit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xb6PsIj6igerbLaSrmgtRw.png" /></figure><p>Arribem a una altra pàgina on s’indica que s’ha de fer click sobre la imatge per poder continuar. Tenint en compte que al Febrer de 2018 s’anunciava en tots el mitjans que s’havia “renovat” la web i era “100% accessible” trobo que o be no saben que es accessibilitat o els hi dona igual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UDz6po-x2GpaSkQt.jpg" /><figcaption>“Notícia” a doble pàgina de la nova i flagrant pàgina web</figcaption></figure><p>Percert, en cap lloc posa quan ha costat el pintat de cara. Perque funcionalment segueix èssent igual de dolenta que abans :).</p><p><em>El rentat de cara ha costat </em><strong><em>13.068 € </em></strong><em>amb un cost de manteniment de 440€ anuals. Però això només ho pots saber si vas al ple. La propaganda a la revista i la informació al ple.</em></p><blockquote>La propaganda a la revista i la informació al ple.</blockquote><p>Be, seguim, fem click a l’imatge i arribem a aquesta pàgina:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNRfv8T3v2ZZdzWI-OVAUg.png" /></figure><p>Sembla que ara ja si hem trobat el que necessitàvem. Cal fer notar que la url de la pàgina és molt complicada, fent que el usuari hagi de seguir de nou tots els pasos per accedir-hi.</p><p>Fem clic a instància genèrica. Fem click al botó.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*7CNrslYt_RZhnBreICFKeg.png" /></figure><p>Per fi arribo a un apartat on puc solicitar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*1cvq5cPK2qXtkifkZtqQhg.png" /></figure><p>Empleno i registro la sol·licitud.</p><p>Al cap d’uns dies, quan entro a mirar l’estat de les peticions acabo trobant-ho a la carpeta ciutadana. Primer he d’identificar que allà estarà l’historial de tramits. (Hauria sigut un nom més entenedor)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvpUPAXnjfMramGvPDn9QA.png" /></figure><p>Així doncs entro a la carpeta ciutadana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*mlgXYRJcz79jBpy0mqE9TA.png" /></figure><p>A dia d’avui (14/09/2019) han pasat uns 4 mesos i no he rebut cap resposta ni notificació així que em disposo a dirigir-me a la GAIP. Que entenc que ha de vetllar perquè es compleixi</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=541ea0d85fa1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Execute Google Apps Script functions or Sheets-Macros programmatically using Python & Apps Script…]]></title>
            <link>https://medium.com/@victor.perez.berruezo/execute-google-apps-script-functions-or-sheets-macros-programmatically-using-python-apps-script-ec8343e29fcd?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec8343e29fcd</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[google-api]]></category>
            <category><![CDATA[google-apps-script]]></category>
            <category><![CDATA[google-sheet-macro]]></category>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 04 Aug 2019 11:08:04 GMT</pubDate>
            <atom:updated>2019-08-04T11:08:04.566Z</atom:updated>
            <content:encoded><![CDATA[<h3>Execute Google Apps Script functions or Sheets-Macros programmatically using Python &amp; Apps Script API</h3><p>This week I received an email from a PyBCN community member with a problem related to a <a href="https://medium.com/@victor.perez.berruezo/python-meetup-automatize-reports-using-google-slides-api-at-pybcn-4f4cadb7ed7d">presentation I shared in a Meetup</a> the past month. I’ll present the problem and solutions so we can cover the main pain points in the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kV9CFhl4mtn_UPUkh06R2g.png" /></figure><h3>Problem</h3><p>Given a python program<a href="#633a">*</a> that retrieves a CSV file to be uploaded to Google Sheets we want to execute already existing Macros. <strong>This can’t be done with Google Sheets API</strong>.</p><blockquote><a href="https://developers.google.com/apps-script/guides/sheets/macros">Google Sheets Macros are bounded to Apps Script functions </a>, so we can “Apply a Macro” by finding his Apps Script function and executing it.</blockquote><p>So let’s check out a couple of solutions for this problem. One easy peasy solution and one … let’s say … funny solution.</p><h3>Solution1 — Using Scripts Native Triggers</h3><p>With this option, there’s no need to write any code as the solution is achieved by selecting and filling some forms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RuudnK5A82I1jPM7vqF8zg.png" /><figcaption>From <a href="https://script.google.com/home/all">https://script.google.com/home/all</a> hovering the row, on settings, click Triggers to reach this screen.</figcaption></figure><ol><li>Find the function, in the Sheet where macros are created, to do so you need to go to Tools &gt; Script editor &lt;&gt;. You should see a file named macros.gs with your already created macros.</li><li>Go to Edit &gt; Project Triggers . You should see an empty list of project triggers, let’s add a new one by clicking on the bottom-right button Add Trigger.</li><li>You can select here the function you want to execute, so select the macro and fill up the fields. You can choose to execute the function when Sheet is opened, is edited, it’s been changed or when a form is submitted. (You can also choose other triggers related to calendar events and other stuff)</li></ol><p>So once it’s done, the macro (or better said, the script function bounded to the macro) will be executed when the action defined in the trigger takes place.</p><h3>Solution2 — Using Google Apps Script API</h3><p>This solution is more elaborated as we have different contexts to manage, Google Cloud Platform, Google Sheets / Scripts Editor and our Python code.</p><p>We’ll need to link a Google Cloud Platform project to the Script and create credentials in the linked project to use the API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bau96QIMnxkDFHqeDUMClQ.png" /><figcaption>This warning is from the Google Guide <a href="https://developers.google.com/apps-script/api/concepts/">https://developers.google.com/apps-script/api/concepts/</a> and here the Issue tracker <a href="https://issuetracker.google.com/issues/36763096">https://issuetracker.google.com/issues/36763096</a>.</figcaption></figure><p>But don’t worry, we will use a workaround.</p><p>So whether or not having a Service Account we will need to create a new set of credentials.</p><p>So, let’s start step by step. Where each section corresponds to a different context.</p><h4><a href="https://console.cloud.google.com/">In Google Cloud Platform</a></h4><p><strong><em>We will call it “google cloud platform section”</em></strong></p><ol><li>Go to the project with you were working to upload de csv (or create a new one). There point to the 3 dots top right menu &gt; Project settings. There copy the Project number . Only numbers. <a href="https://console.cloud.google.com/iam-admin/settings"><em>Shortcut</em></a></li><li>On the Cloud Platform Hamburguer menu go to API &amp; Services &gt; Library and search for Apps Script API . There Enable the API for this project. <a href="https://console.cloud.google.com/apis/library/script.googleapis.com"><em>Shortcut</em></a></li><li>Create a new credentials json. Search for API &amp; Services &gt; Credentials . Then Create credentials &gt; Help me choose &gt; Apps Script API &gt; Other UI &gt; And continue . You will download a credentials .json file. <a href="https://console.cloud.google.com/apis/credentials"><em>Shortcut</em></a></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*6u40WRrw5PUJknlM11xphg.png" /><figcaption>Here we have our new credentials</figcaption></figure><h4>In the Google Sheets where we have the Macros</h4><p><strong><em>We will call it “Google Sheets/Scripts section”</em></strong></p><ol><li>Go to Tools &gt; Script Editor &lt;&gt;</li><li>Make sure you are on the desired script file and go to Resources &gt; Cloud Platform Project . And there paste the Project number copied in step 1 from the Google Cloud Platform section. <br>With that, we are linking the Apps Script project to the Google Cloud Platform project from which we created credentials in step 3 from the Google Cloud Platform section.</li><li>Again in the Script File menu go to Publish &gt; Deploy as API executable . Select the Script version (probably the Version 1) and then copy the API ID .</li><li>Again in the Script File menu go to File &gt; Project Properties &gt; Scopes . Copy your script scopes as we will need to define them when creating the authorization request on our python code.</li><li>Then copy your function names as we will need it also on our python code.</li></ol><blockquote>If you want to exectute secuentially some macros you can also create a Apps Script function in where you can execute all other functions. And then execute this new created function using the python code.</blockquote><h4>And finally our Python Code</h4><p><strong><em>“Python Code section”</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d2a4a0b98166c53720919422da7daa50/href">https://medium.com/media/d2a4a0b98166c53720919422da7daa50/href</a></iframe><h4>Notes</h4><p>I’ve tried to use the word script only in the Apps Script context to make it more clear, for this reason, to refer to the Python snippet I use the expression Python code or Python program.</p><h4>Resources</h4><p>Many problems can overcome as a lot of services and casuistics are taking place together. Here you can find a lot of notes which can help solve upcoming problems.</p><p><a href="https://developers.google.com/apps-script/api/how-tos/execute">Executing Functions using the Apps Script API | Apps Script API | Google Developers</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec8343e29fcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Meetup “Automatize reports using Google Slides API” at pybcn]]></title>
            <link>https://medium.com/@victor.perez.berruezo/python-meetup-automatize-reports-using-google-slides-api-at-pybcn-4f4cadb7ed7d?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f4cadb7ed7d</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Tue, 02 Jul 2019 21:47:16 GMT</pubDate>
            <atom:updated>2025-05-31T08:44:05.483Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, I’ll share all the resources used in the Meetup with a brief description of each. Presentation was based in <a href="https://medium.com/tiendeo-tech/automatize-presentation-reports-using-google-slides-api-3e0c7aa32c15">this previous post</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JmnmdIXTlvCKtpInTYywoQ.jpeg" /><figcaption>Photo from <a href="https://code.kiwi.com/">https://code.kiwi.com</a>, <a href="http://facebook.com/codekiwicom">fb.com/codekiwicom</a>, <a href="http://twitter.com/codekiwicom">@codekiwicom</a></figcaption></figure><p>The speech was divided into 3 blocks:</p><ul><li>Setting up a Python virtual environment</li><li>Create a project and retrieve keys to use Google Slides API</li><li>Useful functions and tricks to work with Slides and make reports</li></ul><h3>The presentation</h3><p>Any feedback will be welcomed!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F68FOP7sBDes%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D68FOP7sBDes&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F68FOP7sBDes%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6390d5fbdc76aff3cccc7ba8761a3b53/href">https://medium.com/media/6390d5fbdc76aff3cccc7ba8761a3b53/href</a></iframe><h3>Google Slides Presentation used in the Meetup</h3><p>Some parts of the presentation are missing because presentation was being build while executing Notebook functions on the fly.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fembed%3Fid%3D1p0ouOWDZxX7QemDeNk976KiDp6ooWYEc9DhMcuOpY7U%26size%3Dl&amp;url=https%3A%2F%2Fdocs.google.com%2Fpresentation%2Fd%2F1p0ouOWDZxX7QemDeNk976KiDp6ooWYEc9DhMcuOpY7U%2Fedit&amp;image=https%3A%2F%2Flh4.googleusercontent.com%2FwTQwd5K-KX32Wv_SGjQxcByQmBNyelmJKVVelL6g2qBncQ8o666Ac_6BfxQBQXUqadgcDw%3Dw1200-h630-p&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="700" height="559" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec8188cf0ffd622008e0679bfff7df3c/href">https://medium.com/media/ec8188cf0ffd622008e0679bfff7df3c/href</a></iframe><h3>Jupyter Notebook used to explain the functions</h3><p>This notebook use as a template the presentation itself and an example about how to:</p><ul><li>Copy template</li><li>Move new copied presentation</li><li>Replace text</li><li>Replace images</li><li>Retrieve Slide Notes</li><li>Delete Slides</li></ul><p><a href="https://github.com/vperezb/python-meetups/blob/master/2019_06_20__pybcn_meetup/bcn_python_meetup.ipynb">python-meetups/2019_06_20__pybcn_meetup/bcn_python_meetup.ipynb at master · vperezb/python-meetups</a></p><h3>Google API Support Module</h3><p>This module contains functions to simplify some actions using Google APIs. From now it has support to:</p><ul><li>Google Drive API</li><li>Google Slides API</li><li>Google Sheets API</li></ul><h4>To install via pip</h4><p>pip install google-api-support</p><p><a href="https://pypi.org/project/google-api-support/">google-api-support</a></p><h4>And Module Github repository</h4><p><a href="https://github.com/vperezb/google-api-support">vperezb/google-api-support</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f4cadb7ed7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Les dades obertes com a eina d’empoderament digital]]></title>
            <link>https://medium.com/@victor.perez.berruezo/dades-obertes-eina-empoderament-digital-c75b5007409a?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c75b5007409a</guid>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 09:59:47 GMT</pubDate>
            <atom:updated>2019-04-21T09:59:47.788Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h4>Monitorem al poder</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*78tQ4cQ4oN3nJLJGFKPxTw.jpeg" /><figcaption><a href="https://pixabay.com/images/id-1307227/">https://pixabay.com/images/id-1307227/</a></figcaption></figure><p>Els avenços tecnològics en el camp de les dades i la comunicació poden constituir eines per facilitar tant la col·laboració ciutadana com la millora i control de les institucions.</p><p><strong>La transparència</strong>, <strong>les dades obertes</strong> i <strong>la participació</strong> son el futur de la democràcia. Amb elles, la ciutadania hauria de poder conèixer, avaluar i participar en temps real a la gestió dels municipis (o país).</p><p>Veient que la ciutadania desconfia i reclama visibilitat i poder (més enllà de votar cada 4 anys), administracions a tota escala comencen a crear el que entenen per “portals de transparència”, “portals de dades obertes”, “processos participatius” i tota mena d’accions sovint cosmètiques per a fer veure que estan a la mateixa pàgina.</p><p>Malgrat els esforços i la col·laboració amb la societat civil de professionals que treballen per a la implementació d’aquests sistemes, el poder polític segueix exercint un control massa proper com per a poder desplegar una infraestructura de control real. “La transparència fa por”.</p><p>És per això, que en aquests moments de definició de l’ecosistema digital públic s’ha d’estar alerta per a que les institucions no <a href="https://ca.wikipedia.org/wiki/Cooptaci%C3%B3">cooptin</a> la sobirania que pot donar la tecnologia.</p><blockquote>La capacitat que te el poder per a identificar un corrent rupturista, fer-lo seu i desactivar-lo mal solucionant-lo (de manera que els grans interessos es vegin mínimament afectats) és el major perill per a qualsevol iniciativa de canvi.</blockquote><h4>Que son les dades obertes?</h4><p>Les dades obertes són el conjunt de dades que qualsevol organisme posa a disposició de tothom sense cap cost i en un format fàcilment reutilitzable i lliure.</p><p>En el cas de les institucions públiques, correspondria a tota aquella informació generada i gestionada amb diners públics.</p><p>En son exemples: Estudis, concursos, estocs, contractes, plantilla, sous, entitats, parc de vehicles municipals, dades de localització, us dels vehicles municipals i fins i tot <strong>dades generades per empreses contractades amb diners públics en el desenvolupament dels serveis objecte dels contractes</strong></p><h4>Que ens poden aportar les dades obertes?</h4><p>Les dades obertes poden permetre millorar la transparència i facilitar el control que la ciutadania exerceix sobre les institucions. És un canal continu d’informació objectiva* que pot ser interpretada lliurement i sense cost pels ciutadans. Habilitant-los a prendre decisions (o pressionar) amb criteri i coneixement.</p><blockquote>* El simple fet de recollir una dada i la manera en com es recull pot fer que les dades no siguin completament independents, s’haurà de treballar per a crear unes dades “pures” lliures d’interpretacions.</blockquote><h4>Com s’hauria d’enfrontar la publicació de dades obertes?</h4><p>Donat que l’objectiu final de les dades obertes és proporcionar a la ciutadania informació veraç i actualitzada dels processos i decisions preses pels diferents estaments públics, s’haurien d’identificar els punts que més conflictes d’interessos poden ocasionar i trobar la manera de publicar aquestes dades per procediment.</p><p>Actualment, encara hi ha poques dades i existeix una barrera tecnològica que impedeix que la ciutadania no experta les pugui consultar. I, moltes vegades les dades no son fàcilment manipulables.</p><p>Si es vol que les dades puguin aprofitar-se per aquells qui tinguin interès, hauran de seguir una sèrie de recomanacions que es poden trobar a la següent publicació: <a href="https://medium.com/@victor.perez.berruezo/com-millorar-lexperi%C3%A8ncia-d-an%C3%A0lisi-de-les-dades-obertes-fd42d81e80db">Com millorar l’experiència d’anàlisi de les dades obertes</a>.</p><h4>Que vol dir publicar dades per procediment i perquè és tant important?</h4><p>La publicació de dades no ha de ser un esforç afegit als processos administratius que actualment existeixen. Sinó que el procediment mateix hauria d’incloure entre les seves fases, passos on es publiquessin les dades.</p><p>D’aquesta manera no es depèn de que existeixi una “administració paral·lela” que s’encarregui de recollir i publicar dades, com passa ara a molts llocs.</p><p><strong>Al publicar dades per procediment no es deixa la possibilitat que per alguns casos es publiqui i d’altres no.</strong></p><blockquote>Si disposem d’un sistema que sense cap procés extraordinari publiqui les dades en un repositori consultable, estarem parlant d’un sistema de dades obertes per defecte “by default”.</blockquote><h4>Quins son els beneficis de publicar dades per procediment?</h4><p>El no poder actuar sobre el que, el com i el quan es publiquin les dades, hauria de causar sobre la classe dirigent una sensació de vigilància que alhora limitarà la mala praxis per por a ser “descobert”. Una mena d’<a href="https://ca.wikipedia.org/wiki/D%C3%A0mocles">espasa de Dàmocles</a>.</p><h4>Les dades obertes ideals</h4><p>La utopia de les dades obertes és que aquestes puguin ser consultades directament per l’usuari sense que ningú intervingui ni existeixi cap procediment per publicar-les. És el cas de publicar dades per procediment portat a l’extrem. D’aquesta manera, quan qualsevol ciutadà tingui curiositat per una informació, podrà dirigir-se directament al sistema de la institució i consultar-ho.</p><h4>Una eina d’anàlisi a temps real</h4><p>Un cop es disposi d’un sistema en que les dades es modifiquin periòdicament i per procediment. Es podran desenvolupar panells de control públics i visibles on es vegi tota la informació i activitat recent dels ajuntaments.</p><p>D’aquesta manera, amb una sola ullada a la plataforma es podran saber <strong>TOTS</strong> els darrers moviments. I no només els publicats als mitjans de comunicació institucionals que acostumen a ser imparcials i interessats.</p><h4>Alguns punts per pensar</h4><ul><li>Les dades han d’estar ordenades per a poder ser trobades, no per a poder dir que estan publicades.</li><li>Les dades han d’estar publicades per a poder ser analitzades, no per a poder dir que estan publicades.</li><li>Les dades obertes no han de ser vistes com amenaça per part dels representants públics que estan exercint per vocació i volen millorar el bé comú.</li><li>Quan es cedeix part del poder a la ciutadania s’estableix una relació de corresponsabilitat.</li><li>Costa molt guanyar la confiança de la ciutadania i molt poc perdre-la.</li><li>És probable que algú amb una mala experiència a les plataformes de participació no torni a consultar-les. A menys que sigui un tema tant transcendental que es vegi “obligat”.</li><li>El vocabulari que s’utilitzi s’ha d’adaptar al context de la ciutadania. S’ha de simplificar fins al punt de no perdre rigorositat i contingut.</li><li>Qualsevol persona hauria de poder trobar un registre a qualsevol conjunt de dades publicat sense necessitat d’ésser tècnic.</li><li>Les dades han d’estar en un format reutilitzable, lliure, gratuït, actualitzades, detallades, contextualitzades (interrelacionades)</li></ul><h3>Publicacions relacionades:</h3><h4>Com millorar l’experiència d’anàlisi de les Dades Obertes</h4><p><a href="https://medium.com/@victor.perez.berruezo/com-millorar-lexperi%C3%A8ncia-d-an%C3%A0lisi-de-les-dades-obertes-fd42d81e80db">Com millorar l’experiència d’anàlisi de les Dades Obertes</a></p><h4>Estratègies municipals per a l’apoderament digital</h4><p><a href="https://apoderamentdigital.cat/">Estratègies municipals per l&#39;apoderament digital</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c75b5007409a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to add SSH keys on Windows]]></title>
            <link>https://medium.com/@victor.perez.berruezo/how-to-add-ssh-keys-on-windows-6d1f38e006f3?source=rss-f7f8d2697be9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d1f38e006f3</guid>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Víctor Pérez Berruezo]]></dc:creator>
            <pubDate>Tue, 16 Apr 2019 15:01:00 GMT</pubDate>
            <atom:updated>2019-04-16T15:01:00.864Z</atom:updated>
            <content:encoded><![CDATA[<p>Few easy steps to add new ssh keys to syncronize a computer with your Github/Gitlab/GitWathever accounts so you can start managing your versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*9aRxphVnqpr5rsc5ZZZc0Q.png" /></figure><blockquote><em>Git page: </em><a href="https://git-scm.com/"><em>https://git-scm.com/</em></a></blockquote><p>We will need to create a key pair, a public for the Git server and a private for the computer. And then add the key into our Gitlab or Github account.</p><h3>Generate the ssh pair and save the private one in the computer</h3><p>I use PuTTYgen, you can download it <a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">here</a> choose puttygen.exe (a RSA and DSA key generation utility)</p><p>Once is opened:</p><ol><li>Click Generate.</li><li>Move the mouse through the blank area</li><li>(optional) Change Key comment field so you can identify the key i.e. home-desktop</li><li>Click Conversions &gt; Export OpenSSH key on the toolbar</li><li>Save it into ~/.ssh/my_custom_key_name</li><li>Add the brand new created key entering (<em>ONLY TESTED USING GIT BASH</em>):</li></ol><ul><li>eval $(ssh-agent -s) that returns something like Agent pid 123456.</li><li>Then ssh-add ~/.ssh/my_custom_key_name returning Identity added: /c/...blablabla.</li></ul><blockquote><em>If you need acess to two different git accounts, repeat the process by saving the key with a new name</em></blockquote><h3>Add the public key to Gitlab or Github</h3><ol><li>Copy the public key you’ve created (is under the text Public key for pasting into OpenSSH authorized_keys file).</li><li>Open your Github or Gitlab account and go into SSH keys settings screen.</li></ol><ul><li>GitLab: <a href="https://gitlab.com/profile/keys/">https://gitlab.com/profile/keys/</a></li><li>GitHub: <a href="https://github.com/settings/keys">https://github.com/settings/keys</a></li></ul><p>3. Create a New SSH key by pasting the content copied in step 1.</p><p><em>GRATZ! Now you can start working with Git!</em></p><h3>Common ssh error</h3><pre>Permission denied (publickey). <br>fatal: Could not read from remote repository. </pre><pre>Please make sure you have the correct access rights and the repository exists.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d1f38e006f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>