<?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 Kemal Ahmed on Medium]]></title>
        <description><![CDATA[Stories by Kemal Ahmed on Medium]]></description>
        <link>https://medium.com/@kemalahmed?source=rss-bc0df7226b21------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zqIlX14_8t0NAwUH.</url>
            <title>Stories by Kemal Ahmed on Medium</title>
            <link>https://medium.com/@kemalahmed?source=rss-bc0df7226b21------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:04:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kemalahmed/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 I got my name on the ballot]]></title>
            <link>https://medium.com/@kemalahmed/how-i-got-my-name-on-the-ballot-daff9a76af0c?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/daff9a76af0c</guid>
            <category><![CDATA[youth]]></category>
            <category><![CDATA[ndp]]></category>
            <category><![CDATA[onpoli]]></category>
            <category><![CDATA[canpoli]]></category>
            <category><![CDATA[elxn44]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Sun, 29 Aug 2021 15:25:29 GMT</pubDate>
            <atom:updated>2021-08-29T15:25:29.391Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLP3MAr4IkxX1e2RV9Lz2Q.jpeg" /><figcaption>Picture by me — in front of our mobile office with riding president and CTO holding our first batch of signs</figcaption></figure><p>The Canadian federal elections are underway and I’ve been selected to be a candidate for the riding of York Centre in Toronto. As a young 27-year old, I’ve been asked numerous times how I got my name on the ballot. Here’s how.</p><h3>Before selection</h3><p>It started with becoming a party member. In 2017, I met someone with a who was being recruited to the New Democratic Party of Canada in a riding known as University-Rosedale, a new riding at the time. He suggested I join as well and I was very happy to accept position as disability rep as it was the first time getting involved with the political process and I have lived experience as someone with ADD. A lot of resources were directed towards this riding and it was very well organized, <strong>which taught me how to organize a good campaign.</strong></p><p>I started collaborating with my friend on some resolutions and went to a number of NDP and ONDP conventions to push these resolutions. In the process, I met a number of people who are now MPs and MPPs as well as some incredibly dedicated disability champions in the party. <strong>This helped me develop a niche within the party.</strong></p><p>In 2019, in the riding I live in, York Centre, I turned to the riding association there and abandoned my post in University-Rosedale as my own riding seemed to need the help more. I also became disability rep there and held my posts at the many caucuses within the party. <strong>I started building roots in my local riding association</strong>.</p><p>I also started heavily researching disability technology accessibility and became a certified professional accessible software developer. This helped me identify accessible solutions for software from Zoom calls to websites. I started a business helping non-profits with accessible software solutions.<strong> This gave me credibility within my niche</strong>.</p><p>When the global pandemic hit, this knowledge became critical and I started to heavily push the party to incorporate accessibility into practices, which<strong> got me recognition in the party as a go-to person</strong>.</p><p>So in February 2021, I put my name in as a potential nominee for the position of candidate. The riding association did a candidate search campaign for a few months and were happy with me being the candidate.</p><h3>After Initial Selection</h3><p>I then filled out a long, formal pre-vetting candidate application form. I was then vetted and had to clean my social media a bit. After the vet process, my profile was sent to head office to be confirmed by a team and after some time, I was confirmed to be an official potential nominee. We then scheduled a nomination meeting, which was uncontested, so I was selected. Some ridings have a contested nomination meeting, which means a number of potential candidates are good enough and riding members vote on who is the best for the position.</p><p>There is one last part of the process that is not widely publicized about getting on the ballot, which is electoral consent. Elections Canada requires 100 people registered to vote in the riding consent to me being on the ballot. These are heavily scrutinized so the recommendation is to get 150. As a smaller riding association, this is very difficult inside our membership, so we must go door-to-door to get people to sign up. I recently got those into the Returning Office and will be getting my name officially on the ballot on Monday!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daff9a76af0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop donating your customers’ data to Google Analytics]]></title>
            <link>https://medium.com/@kemalahmed/stop-donating-your-customers-data-to-google-analytics-b2522dd39a43?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2522dd39a43</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Tue, 28 Jul 2020 05:38:24 GMT</pubDate>
            <atom:updated>2020-07-28T05:38:24.370Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qomQoWX7ZbsfsG1yRWfsHA.jpeg" /><figcaption>Bridge in Switzerland — Kemal Ahmed</figcaption></figure><blockquote>This is a crosspost from <a href="https://dev.to/goatandsheep/stop-donating-your-customers-data-to-google-analytics-191?signin=true">dev.to</a> which is where the article was originally posted.</blockquote><p>In 2020, with better alternatives available, using Google Analytics (GA) to track your web usage is nothing short of donating data to a multinational corporation. Aside from only letting you sample 25% of your traffic, GA is a free ticket for them to sell your customers’ data to their advertising partners.</p><p>Compared to AWS Pinpoint, which is even <a href="https://aws.amazon.com/about-aws/whats-new/2019/07/amazon-pinpoint-achieves-hipaa-eligibility/">HIPAA compliant</a>, GA works by asking you to add a tracker to your website that cross examines your customers’ habits across all the websites they use to find out everything about them.</p><p>And if you think that’s okay, you should take your head out of the sand because consumers are demanding it. Please tell me how many of your users like the large cookie agreement popups that they have to dismiss…I-I mean read and accept just to consume your content. Agreements that you’re forced to have them agree to because you’re using cookie-based trackers like GA.</p><p>Tracker blockers are increasing in popularity so consumers can protect themselves against this tracking, reducing the effectiveness of your analytics.</p><p>Even if you want to be selling your customers’ data, data is the new oil and GA is Deepwater Horizon. As in raking it in, but also about to catch fire and sink. Tools like Pinpoint on the other hand keep the data in your closed system and even allows you to attach more extensive analytics like Kinesis. To train machine learning models on data you’ve collected would require you to create pipelines between data centres. It’s a single click:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*ttPVWrvmqx4bxSG4.PNG" /></figure><p>Currently, AWS Pinpoint requires you to import Amplify to your project. If you’re looking for a tracking-tag solution like for Google Analytics, it’s now that simple:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1bd03ce7df5763bcfd08d48bfb35d535/href">https://medium.com/media/1bd03ce7df5763bcfd08d48bfb35d535/href</a></iframe><p>This is thanks to an analytics package I built that uses Amplify to connect to AWS Pinpoint. If you’re interested in contributing, please <a href="https://github.com/goatandsheep/aws-web-analytics/">visit the project repo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2522dd39a43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Airbnb is still letting people book across closed borders]]></title>
            <link>https://medium.com/@kemalahmed/airbnb-is-still-letting-people-book-across-closed-borders-49b7d74bbeff?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/49b7d74bbeff</guid>
            <category><![CDATA[airbnb]]></category>
            <category><![CDATA[borders]]></category>
            <category><![CDATA[conspiracy-theories]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Sat, 11 Apr 2020 17:42:51 GMT</pubDate>
            <atom:updated>2020-04-11T17:42:51.616Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="The lakeside view of our lake." src="https://cdn-images-1.medium.com/max/1024/1*KIDwI1izKgzyMaRRpQ_59A.jpeg" /><figcaption>Who could say no to this view?</figcaption></figure><p>Last week we received a request to stay at our cottage in Kawartha Lakes, Ontario, for next weekend, April 18th. We were too lazy to shut down the bookings, which is our fault, but we knew nobody would try to book it. We knew wrong.</p><p>Airbnb penalizes hosts for cancelling or declining bookings. They are directly <strong>encouraging hosts not to cancel vacationers</strong>. We took the hit and cancelled anyways. It means it will be harder for us to regain our SuperHost status, but we’re not going to enable people to not social distance.</p><p>Our maximum capacity is 8, so whenever people book exactly 8, we always investigate to make sure they aren’t just claiming 8 and going to bring more. We weren’t going to accept it, but we were confused so we looked into them. To our utmost surprise, the prospective patrons were from Maryland, USA.</p><p>Keep in mind, Maryland is not a border state — it’s a 12 hour drive and after 8 of those hours, <em>they still have to get through the border patrol</em>. You’d think that with what’s going on, conspiracy believers would at most find a cozy retreat in upstate New York, which is also incredibly beautiful. You may think they are confident enough to convince the authorities that their family vacation is <em>essential</em>. Regardless, to have the confidence to be willing to drive 8 hours with a possibility of having to drive 8 hours back, is quite rare. <strong>They likely do not know the borders are closed.</strong></p><p>You may say the Canadian border control has not done enough to inform American citizens of the closure. Despite the widely stated laws, why did Airbnb let the booking go through in the first place? All users indicate their place of residency. It would be easy to know who is trying to book across borders and cancel their bookings.</p><p>We’ve loved that Airbnb has enabled us to share our cottage with the world and look forward to continuing to do that. In the past, Airbnb has listened to our complaints. We believe that Airbnb will do the responsible thing and change their policy to prevent illegal border crossings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49b7d74bbeff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Personal Internet Security Tips]]></title>
            <link>https://medium.com/@kemalahmed/personal-internet-security-tips-4d8ce6209477?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d8ce6209477</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[online-shopping]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[wifi-security]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Tue, 26 Feb 2019 04:20:55 GMT</pubDate>
            <atom:updated>2019-02-26T04:20:55.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eflmDXZn3JVwEZ3Dw20-3A.jpeg" /><figcaption>Cologne Cathedral Doors — Kemal Ahmed</figcaption></figure><h3>Passwords</h3><ul><li>Longer is better. Use a memorable phrase rather than short and complicated</li><li>Easier to not remember passwords using password managers, such as <a href="https://lastpass.com/f?11561486">LastPass</a></li><li>Social Logins are better than a password because we can’t always trust companies to store password securely and easier to remember. Just make sure to frequently check social plugins and restrict what they can do with your data</li><li>Biometrics (fingerprint, FaceID) are good as multi factor, but be cautious as the only authorization because it’s not something that can be changed</li><li>Change frequently. Maybe when watching Netflix</li></ul><h3>WiFi</h3><ul><li>Mobile Data is generally safer</li><li>Check that the WiFi name is correct</li><li>Don’t auto-connect</li><li>Make sure there’s a confirmation page</li><li>If you’re suspicious, use a VPN, such as <a href="https://play.google.com/store/apps/details?id=com.fast.free.unblock.secure.vpn">Secure VPN</a> (free + Android only) or <a href="https://protonvpn.com/">ProtonVPN</a> (freemium)</li><li>Delete anything downloaded that you didn’t click on</li><li>Use anti-virus software like <a href="https://www.avast.com/index">Avast</a></li></ul><h3>Online Shopping + Banking</h3><ul><li>Preferably use online retailers you can trust, although banks are pretty smart</li><li>Make sure you are on a secure network, through data and / or VPN</li><li>Don’t take a ride by clicking on links: get to the page you need to by bookmarks, typing directly, or double-checking the URLs in search results</li><li>Use cards with low spending limits or get <a href="https://getstackco.app.link/qX1lf4RJoU">pre-paid cards</a> (this card comes with free Netflix for a year)</li></ul><h3>If you get hacked</h3><ul><li>Contact federal government (and probably also me)</li><li>Don’t pay ransomware</li><li>Change all your passwords</li><li>Warn your banks</li><li>Run a full system scan with anti-virus</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d8ce6209477" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are frameworks necessary in 2019?]]></title>
            <link>https://medium.com/@kemalahmed/are-frameworks-necessary-in-2019-460c8c489d1f?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/460c8c489d1f</guid>
            <category><![CDATA[framework]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[polymer]]></category>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[2019]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 03:27:34 GMT</pubDate>
            <atom:updated>2019-02-20T06:39:56.014Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-D1zM21eeYiPkzeetSLOQ.jpeg" /><figcaption>Toronto Skyline — Kemal Ahmed</figcaption></figure><h3>Background</h3><p>For 5ish years, Google has been working on making Web Components a standard in browsers in an attempt to remove the need for frameworks. <a href="https://caniuse.com/#search=web%20components">For the most part they’ve been successful at it</a>.</p><p>To supplement the slow progress, they’ve come out with a polyfill library, Polymer and more recently, a ubiquitous JSX alternative, <a href="https://lit-html.polymer-project.org/">LitHTML</a>. Their newer libraries are pure Javascript and aim to simply polyfill the missing web components features, while reducing verbosity of using web components without libraries.</p><p>It can be a hard concept for new developers who would prefer an HTML-based layout like in <a href="https://vuejs.org/">Vue</a>, which is why the first push of web components spec was for the ability to bring custom elements into the web page through HTML imports. This eventually fell apart in favour of es6 modules.</p><h3>Starter Kits</h3><p>One of the most important things in setting up a framework or API is prototyping speed. As a result, many frameworks come with opinionated pre-built applications to use as a shell that get you up and running quickly with pre-built webpack configs, typescript, lints, state managers, SSR, etc.</p><p>For web components there is a small handful of starter kits. Google has built <a href="https://pwa-starter-kit.polymer-project.org/">pwa-starter-kit</a>. However, none of their kits have a webpack configuration that consolidates an issue where it is only compatible with libraries that are es6 modules. I settled on one that is based on create-react-app by react, called <a href="https://github.com/thepassle/create-lit-app">create-lit-app</a>, despite that it has been deprecated by the creator. There are a couple other promising starter kits, but they don’t seem sufficient yet.</p><p>One of the things I look forward to with web components through es6 modules is the standardization of documentation of custom elements. Javascript already has a great documentation system through jsdoc that can indicate important component aspects, such as properties and events.</p><p>Most frameworks operate in a way that encourages using custom filetypes, such as .jsx, .vue, or even .html. As a result, there is confusion and inconsistency of how the documentation should look and where it should go.</p><h3>Component Libraries</h3><p>As with many front end application frameworks, web components have a cult following in favour of the benefits of using web components. Google has even built a <a href="https://www.webcomponents.org/">web components store</a> that makes it easy to find available custom components.</p><p>However, due to frequent changes and compatibility concerns, there is much to be done in terms of consolidating the components so they can work well together.</p><p>Google has their own set of components that they’ve come up with whose aim is to be up to date with their material design specifications. However, it has yet to catch up with their latest library and keeping up to date with the specifications is unrealistic given the amount of resources they currently have.</p><p>A Finnish company, <a href="https://vaadin.com/components">Vaadin</a>, has come up with a set of enterprise-ready, premium components of their own. Some of them are paid components while others are free. However, the same issue remains that they have not been able to keep up with the library changes.</p><h3>Conclusion</h3><p>Web components have promised a lot and are still projected to be a major player in the future. Google has worked hard to make sure their web components libraries are up to date with the changing spec and best practices. However, these aggressive updates are also its downfall as the community struggles to keep up.</p><p>My hopes are that the best practices and libraries will stabilize in the coming months and the community will have time to catch up. Until then, <strong>we should continue to use frameworks</strong> for enterprise applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=460c8c489d1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating a CloudFlare website to EasyWP]]></title>
            <link>https://medium.com/@kemalahmed/migrating-a-cloudflare-website-to-easywp-d0721c0e7d6d?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0721c0e7d6d</guid>
            <category><![CDATA[namecheap]]></category>
            <category><![CDATA[wordpress]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Sat, 02 Feb 2019 18:10:15 GMT</pubDate>
            <atom:updated>2019-02-20T06:28:44.936Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migrating WordPress to EasyWP</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e8pJbX8Cb6NnUKf96vIH3g.jpeg" /><figcaption>Amsterdam — Kemal Ahmed</figcaption></figure><p>NameCheap’s EasyWP was not so Easy™️ to migrate to at first. However, with the help of support, I’ve discovered a good process.</p><h3>What is EasyWP?</h3><p>Namecheap, a company specializing in domain names, has launched a program that gives you managed Wordpress hosting that starts at just over $1/month.</p><h3>Is EasyWP right for you?</h3><p>Before you begin, if you’re doing this for someone, make sure that you can build it on their account directly because there is no method to migrate EasyWP websites between accounts yet.</p><p>Also, EasyWP does not yet support subdomains, so if this is a <em>blog.domain.com</em>, you’ll have to pick another provider for now. EasyWP is still a beta project.</p><p>And if you have any other doubts, don’t be afraid to take advantage of the exceptional, free 24/7 support and ask questions even to just confirm what you’re doing and <a href="https://www.namecheap.com/support/knowledgebase/subcategory.aspx/2239/easywp">read the documentation</a>.</p><h3>Initial EasyWP Setup</h3><p>Namecheap has an interesting UI design pattern: they have menus on the top <em>and </em>side instead of just one, which can be confusing. In the top menu, click on Wordpress &gt; Managed Wordpress.</p><p>Scroll down to the features that it has. I can confirm that the websites EasyWP generates are very fast. My issues with shared hosting speed variability motivated me to make the switch to managed hosting.</p><p>Definitely start with the “Bill Monthly” Starter in case you realize you dislike the service.</p><p>As you’re going through the creation screen, don’t initially use your own domain. You can always change this later. Start with a free, generated domain so you have something to test with. It doesn’t particularly matter what you enter here because you can change it all later.</p><p>To find your sites, go to Apps &gt; EasyWP.</p><p>That’s it! Go to your dashboard and click WP Admin! EasyWP is incredibly Easy™️ for initial setup and for new websites.</p><h3>Migrating your content</h3><p>I looked at a number of tools to migrate WordPress websites.</p><p>Some people recommended copying and pasting the whole project in a zip. This doesn’t work with EasyWP and probably won’t for most managed hosting. Imagine trying to manage someone’s Wordpress instance, but they’ve thrown away all the security tools and adaptations you’ve added to even make it possible.</p><p>Some recommended using Wordpress’s built-in import and export tools. However, that doesn’t actually import everything including posts, users, themes, plugins, etc.</p><p>I ended up using <a href="https://wordpress.org/plugins/all-in-one-wp-migration/">All In One Wordpress Migration</a>. Let’s call it <strong>AIOWM</strong>.</p><h4>AIOWM</h4><p>At first when you download it, you may think everything is behind a paywall, but you really only need to buy one tool because AIOWM backups are free. The only extension you need is the <a href="https://servmask.com/products/unlimited-extension">Unlimited Extension</a>. For $90, you get an unlimited license to restore AIOWM backups and a bunch of other cool stuff on as many websites as you want. The time it took to figure out how to import and export in chunks, through zips, etc. cost way more.</p><ol><li>Download AIOWM on your old website. Ideally also write down the version of Wordpress you’re using.</li><li>Generate a backup with everything. It bundles the files in the background, so I actually initialized the process on my phone on the bus and downloaded it to my computer when I got home.</li><li>Download the <em>.wpress</em> file to your computer.</li><li>Go to your website’s EasyWP dashboard and choose <em>SFTP Access</em>. Create some credentials</li><li>Download an SFTP program. I recommend <a href="https://filezilla-project.org/">Filezilla</a> on Windows and <a href="https://itunes.apple.com/ca/app/viper-ftp-lite-ftp-client/id1001007066?mt=12">Viper FTP</a> for MacOS.</li><li>Use SFTP (not FTP) to access the credentials from EasyWP.</li><li>Upload your <em>backup.wpress</em> anywhere on the server. This may take a while.</li><li>Move it to the <em>wp-content/ai1wp-backups</em> folder</li><li>Go to your EasyWP dashboard and select <em>WP Admin</em>.</li><li>Install the AIWM plugin onto the new site.</li><li>Before you continue, check to make sure the Wordpress versions align.</li><li>When you click on backups within the plugin, you’ll notice that your backup is there! Click restore from backup.</li><li>After the restoration has completed, open the website and it should work. You should even be able to login with the same user credentials as you had in the old site.</li><li>Double check the plugins to make sure they’re working the way you want them to. Some will automatically be disabled by EasyWP, but it’s probably for the better. If you have concerns about the plugins, contact the friendly support. I’d advise you to <em>completely</em> remove the plugins disabled by EasyWP. It can cause issues in later steps otherwise.</li><li>Some links and e-mail addresses will be linked to the easywp domain. Change those to the domain you’re moving it to.</li></ol><h3>Migrating DNS</h3><p>I’m going to try explain this in a way that is less geared towards the type of 3rd party DNS, but this is primarily focused on working for CloudFlare.</p><ol><li>If you haven’t already connected to your 3rd party DNS (e.g. CloudFlare) and you have a bunch of entries, I’d recommend you connect your site to the DNS now. EasyWP will wipe your DNS clean so moving it to the DNS is a way to keep it safe before it is cleared.</li><li>After it’s setup, change your nameserver settings from Custom DNS to BasicDNS.</li><li>In the EasyWP dashboard, change the associated domain to the correct one.</li><li>Go back to Advanced DNS settings pane and copy all the entries to your external DNS.</li><li>Switch back from BasicDNS to Custom DNS.</li><li>Double check that your images loaded properly.</li></ol><h3>CloudFlare settings</h3><p>You may get a number of script errors because of https, so make sure you enable the following:</p><ul><li>Always use HTTPS</li><li>HSTS (use default settings)</li><li>Automatic HTTPS Rewrites</li></ul><h3>Conclusion</h3><p>It’s tricky to do the EasyWP migration, but not impossible! Keep in mind that it’s a <strong>beta</strong> product and also how <strong>inexpensive</strong> it is. Happy hosting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0721c0e7d6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authorized AppSync Subscriptions]]></title>
            <link>https://medium.com/@kemalahmed/authorized-appsync-subscriptions-91df3a7a2f5?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/91df3a7a2f5</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Fri, 30 Nov 2018 17:25:30 GMT</pubDate>
            <atom:updated>2018-11-30T17:25:30.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ax4wHjcjSHLT23QLR3oiwg.jpeg" /><figcaption>High security walls in Paris — Kemal Ahmed (me)</figcaption></figure><blockquote>How can we make subscriptions in AppSync with regard for security?</blockquote><p>Before I go into it, AWS AppSync is a GraphQL backend service by Amazon. AppSync subscriptions are <strong>webhooks</strong> between your client and the server. In plain English, when your data changes, your front end changes <strong>immediately</strong> without the need for polling.</p><p>When you enable subscriptions, you don’t want users to be able to subscribe to <strong>private data</strong> updates of other users. You want to ensure only a single user has access to their data. For this demo the users are authenticated through Cognito and I’m using DynamoDB to store the data.</p><p>In this example, we have a set of parents who forget their children’s names.</p><blockquote>Hey…<strong>you</strong>! Go to your room!</blockquote><h3>1. Specify who is subscribing</h3><p>Make a parameter that specifies the user who is making the request to subscribe. Add the parameter in the mutation as well as in the subscription itself.</p><p>The schema could look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/edb88911864ece47becd9d46cef4082a/href">https://medium.com/media/edb88911864ece47becd9d46cef4082a/href</a></iframe><h3>2. Auth-guard the Mutation</h3><p>In the resolver, make sure to authorize the user within the mutation. I did this in a number of ways.</p><ol><li>I don’t let the mutation occur if the parentId parameter doesn&#39;t match the authorized username. This is the first line of defence to prevent faking on the update mutation.</li><li>I set the parentId as a sort key. This makes sure that only the parent has access to their kids on the database. If you don&#39;t do this, make sure to still add it as an attribute and do step (3).</li><li>I check that the resulting parentId is the same as the request identity. This is more useful if you don&#39;t use parentId as a sort key because you can&#39;t trust that the parentId the user is sending is the value associated with the child.</li></ol><p>Example request resolver:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/50bb7c99b09de52c8683b43b7369ed52/href">https://medium.com/media/50bb7c99b09de52c8683b43b7369ed52/href</a></iframe><p>Example response resolver:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b89384ea8a19ae48d3690ced6b2596f5/href">https://medium.com/media/b89384ea8a19ae48d3690ced6b2596f5/href</a></iframe><h3>3. Lie detect in the subscription resolvers</h3><blockquote>Will the user be able to receive change events with the security we already have?</blockquote><p>Yes. If a parent hacks the client and enters the wrong parentId (or the right one if you&#39;re spying!), they <em>will</em> receive change events because subscriptions just send back the response from the mutations based on the user <em>making</em> the mutation, <strong>not</strong> based on the user <em>subscribing to</em> the mutation.</p><p>To stifle the malicious parents, add a resolver to the subscription that lie detects the requesting parent. You can do any operation you want here:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fdafbe4d5e7b28b1cdcff6668351539/href">https://medium.com/media/3fdafbe4d5e7b28b1cdcff6668351539/href</a></iframe><p>I tried doing empty operations, but AppSync doesn’t permit this, so I just did a scan with a limit of 1:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99ed6d61b90585a508db45919d74f61f/href">https://medium.com/media/99ed6d61b90585a508db45919d74f61f/href</a></iframe><p>Don’t worry about authorizing the response because you aren’t asking for a parentId to be sent back:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf1a97cb70048b54fd9cc4776a1596da/href">https://medium.com/media/bf1a97cb70048b54fd9cc4776a1596da/href</a></iframe><p>Just put null.</p><p>And with that, your subscriptions and mutations are secure from nosy parents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91df3a7a2f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The component gatekeeper pattern]]></title>
            <link>https://medium.com/@kemalahmed/the-component-gatekeeper-pattern-589b3c45a039?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/589b3c45a039</guid>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[gatekeepers]]></category>
            <category><![CDATA[polymer]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Wed, 03 Jan 2018 00:55:44 GMT</pubDate>
            <atom:updated>2018-01-03T00:57:27.995Z</atom:updated>
            <content:encoded><![CDATA[<h3>The web component gatekeeper pattern</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wp9G9HKnY8J_Ek3pFl8zSg.jpeg" /><figcaption>Taken by Kemal Ahmed on Google Pixel XL</figcaption></figure><p><strong>Gatekeeper:</strong> a middle property that represents the <strong>server value</strong> in a <strong>display format,</strong> especially when you have asymetric conversions between the two</p><p>When I first learned about polymer.js, I was so excited about computed properties. I loved how you could take data from your server and convert it to whatever view you want in a clean way.</p><p>So last week when developing a date picker, I was looking forward to using computed properties to convert the server dates from a Unix time stamp (i.e. milliseconds since 1980) to the standard HTML date display format, “YYYY-MM-DD”.</p><p>Initially, using a computed property made it simple to convert to the appropriate date string using the moment.js timezone package.</p><p>But converting back to the server format didn’t work well at all.</p><p>I initially tried converting the server value to the display value and observing the input changes to trigger conversion to the server format, but it either crashed or created an infinite loop.</p><p>It turned out there were a number of reasons why it didn’t work:</p><h4>Issue 1: write loop</h4><p>When there was a change to the value property of my input field, the observer would trigger. Which triggered the timestamp observer.</p><p>This was solved easily, since <em>this.set</em> only triggers the change events when the value is actually different.</p><h4>Issue 2: initializing the value</h4><p>Initializing the date string had to be very precise because if you tried to initialize the value before the timestamp had been set, it would write an error to the timestamp.</p><p>And if you don’t initialize it at all, it would write <em>null</em> back as a new server value.</p><p>So I had a conditional that would only run <em>this.set</em> if both the display and server values were not <em>null.</em></p><h4>Issue 3: asymetric processes</h4><p>Initially I tried converting the value to milliseconds and then comparing with the saved value, but I quickly noticed that I was losing precision.</p><p><strong>Your conversions back and forth between the server format and display format may not be perfectly mirrorable.</strong></p><p>In my case, my input field was a date, precise to the day, and my save format was milliseconds since 1980.</p><p>If someone accidentally opens the date picker and I disregard the saved time stamp, they’ll have already overwritten the value.</p><p>I needed to make sure I saved only when there was changes in converted values.</p><p>On top of that, the client wanted to be able to be able to input values in custom time zones…</p><p>The way I overcame this was a gatekeeper property:</p><ul><li>The gatekeeper always represents the server value in the display format: it updates when either the timezone or saved value changed, but it could have been built to update using observers.</li><li>Upon change it replaces the display value</li><li>When the display value changes, compare it with the gatekeeper. If it’s the same, don’t apply the change to the server value. If not, set the stored value.</li></ul><h4>Conclusion</h4><p>When syncronizing a server value and a display value, a gatekeeper property controls changes, waits for values, and prevents loss of precision.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=589b3c45a039" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You’re probably just a PX Designer.]]></title>
            <link>https://medium.com/@kemalahmed/youre-probably-just-a-px-designer-390c70fbd08c?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/390c70fbd08c</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[user-experience]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Sat, 18 Nov 2017 03:06:49 GMT</pubDate>
            <atom:updated>2019-02-22T20:29:04.515Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vsXdMTPCXSZ6jtrXn-nLbA.jpeg" /><figcaption>Hamilton, Ontario — Kemal Ahmed</figcaption></figure><p>Behind most user friendly interfaces is a <strong>UX designer</strong> and behind <em>every</em> unusable interface is a <strong>PX designer</strong>.</p><p>We all know that person who can make pretty mockups and calls themself a UXer. But what does UX even mean?</p><p>When you make designs with your users in mind and you survey and research the needs and wants of your users, that is <strong>User eXperience</strong> design. When you design based on what you personally think your users need, that is what I call <strong><em>Personal</em> eXperience</strong> design.</p><p>Don’t get me wrong: as a PXer you can probably architect a beautiful interface. You’ve probably modelled off well-made products and applying a couple heuristics like Norman’s Design principles. You probably have an understanding of consistent branding and style. And I bet you have an eye for fonts and understand the Material Design colour palette better than your first cousins. You may even be able to design highly useable products.</p><p>But don’t call yourself a UXer if you’re making designs without surveying your users. I’ve been on countless projects where someone is proclaimed as the UXer, but it’s just a person who has an eye on how to make pretty mockups.</p><p>Don’t just make a design based on your own intuition. Get in touch with and interview your target users to know what they need. <strong>UX is not about U</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=390c70fbd08c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Used Python to Save a Vacation]]></title>
            <link>https://medium.com/@kemalahmed/how-i-used-python-to-save-a-vacation-6a5af34995c6?source=rss-bc0df7226b21------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a5af34995c6</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[airbnb]]></category>
            <dc:creator><![CDATA[Kemal Ahmed]]></dc:creator>
            <pubDate>Fri, 30 Jun 2017 03:50:14 GMT</pubDate>
            <atom:updated>2017-07-01T01:13:20.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Q38q2j6lyNvKtxT00Dic9Q.jpeg" /><figcaption>One of the fake rooms we found on Airbnb.</figcaption></figure><blockquote>“They want to cancel my request if I don’t contact them outside of Airbnb.”</blockquote><p>This April my friend, Mini, went to Amsterdam. She is a cost-savvy traveller who prefers to experience the culture of a destination while on vacation, so she opted to stay with someone from Airbnb. She’s an Airbnb host, has booked trips through the platform, and trusts the company.</p><p>So I didn’t expect her to call me to rant about all the <em>sketchy</em> listings she found on the site while booking her trip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*T5-Bve1BUJt_TIYGs5Gu3g.png" /><figcaption>An example of one of the sketchy listings we saw. E-mails have been redacted.</figcaption></figure><p>This February, as she was scrolling through the rooms, she noticed that some of the listings looked <strong>too good to be true</strong>. She also noticed that the listings were pretty consistent in how <strong>flexible they are about their restrictions</strong>.</p><p>We decided to make a data project out of it.</p><h4>We identified the problem</h4><p>First, we identified that Airbnb was unable to <strong>protect</strong> their guests against exploitation by fake hosts pushing for bookings outside the platform. Hosts would put their contact information, such as phone number and e-mail address in their descriptions and threatened to cancel bookings if you didn’t contact them before booking through Airbnb. We also notified them about this issue and we worked closely with them to help identify some fake listings.</p><h4>We decided on a focus</h4><p>We then thought about how we could use the data. What could we prove by gathering the data? What would we compare to do that? We decided that we’d try and demonstrate that <strong>flexible restrictions were a good indicator of <em>sketchiness</em></strong>.</p><p>We also decided that the simplest identifier of a sketchy listing is the <strong>existence of an e-mail address</strong> in the description. It’s not the only thing that could identify a sketchy listing and a small number of listings may be false positives, but we decided that it was good enough.</p><p>We identified that sketchy listings <strong>tend</strong> to:</p><ul><li>allow a large party size,</li><li>have flexible cancellation policy,</li><li>no stay minimum,</li><li>few rules,</li><li>high quality photos,</li><li>no reviews,</li><li>no calendar bookings,</li><li>no additional fees for larger party size,</li><li>unrealistic check-in/out times, and</li><li>are new listings.</li></ul><p>We wanted to validate that places that were overly flexible tended to also try and get guests to book outside of the Airbnb platform. This was so they can avoid the guest reporting the “host” such that Airbnb would blacklist the credit card or force a refund <strong>after</strong> finding out a room is not what they paid for.</p><h4>We narrowed down the sample size</h4><p>We didn’t want to spend a month processing data, so we decided that we’d <strong>only process cities we noticed had a high prevalence of sketchy listings</strong> from our short amount of manual research done: Amsterdam, London, Paris, Rome, and Barcelona.</p><p>We also customized our search preferences to be for rooms accepting guests who would normally be difficult to accommodate, but they meet the requirements of the fraudulent.</p><h4>Attempting to code it</h4><p>We initially wrote a scraper using the <a href="http://www.tornadoweb.org/en/stable/">Tornado web framework</a>, but it became very complicated to wrap our heads around because we had to:</p><ol><li>Fetch the paginated search listings from Airbnb</li><li>Handle the response</li><li>Isolate the IDs</li><li>Fetch each of the room pages</li><li>Handle the responses</li><li>Run our model on the rooms</li></ol><p>There were generators and yields all over the place and we <strong>just wanted something simple</strong> that didn’t need to be crazy fast.</p><h4>What actually worked</h4><p>Rewriting the application with <a href="https://requests.readthedocs.io/">requests.py</a> synchronously was surprisingly painless. It soon ran without errors and fetched the data that we <strong>needed</strong>. We manually designed a model and represented it with a <strong>regular expression</strong> from the patterns on the e-mails that we saw on sketchy listings. It picked up <strong>most</strong> of the obfuscated e-mail addresses that we wanted to pick up.</p><h4>Results</h4><p>Before we could complete the project, Airbnb released a reporting system for listings that violate their terms of service. By the time we finished and ran the scraper, all the listings that requested external bookings <strong>were taken down</strong>.</p><p>We realized that although we weren’t able to validate our predictions about attributes of fake rooms, we were able to <strong>validate</strong> that Airbnb’s changes had <strong>greatly reduced</strong> the number of sketchy listings. Success!</p><p><a href="https://github.com/MiniMau5/AirBNBFakesDataReport">Take a look at our source code!</a></p><h4>What we’ll do next time</h4><p>Either use our scraper that we’ve already made or use a queueing engine like RabbitMQ. We may also use a pre-built asynchronous scraping package, such as scrapy.</p><p>Another thing that we considered was generating the model using machine learning. We played around with Tensorflow, which was pretty straightforward. However, we realized that with the time that we had and lack of data, it was easier for us to pick an attribute and represent our own model using a regular expression.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a5af34995c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>