<?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 AP Jama on Medium]]></title>
        <description><![CDATA[Stories by AP Jama on Medium]]></description>
        <link>https://medium.com/@apjama?source=rss-367a3273018------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tgDXjyNuUMJaDyqYLbBWjw.jpeg</url>
            <title>Stories by AP Jama on Medium</title>
            <link>https://medium.com/@apjama?source=rss-367a3273018------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:21:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apjama/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[Django Querysets, a Quick Intro]]></title>
            <link>https://medium.com/apjama/django-querysets-a-quick-intro-48a917306983?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/48a917306983</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Tue, 25 Jun 2019 16:39:27 GMT</pubDate>
            <atom:updated>2019-06-25T16:42:06.225Z</atom:updated>
            <content:encoded><![CDATA[<p>Django Querysets are one of the most powerful tools available to you as a developer. And there’s a lot of it really interesting stuff that can be done with them. Here’s a quick run down of some basic stuff, and not so basic stuff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*J48EB9WcQ92pX1Wnd46ejw.png" /><figcaption>generic placeholder photo to scare you</figcaption></figure><h3>What are they?</h3><p>Django ships with its own ORM (object relational manager). Think of it as like a layer between your Django application and your database. It takes stuff from your database, and it translates it into objects django can understand.</p><p>According to the django documentation:</p><blockquote>Internally, a <strong>QuerySet</strong> can be constructed, filtered, sliced, and generally passed around without actually hitting the database. No database activity actually occurs until you do something to evaluate the queryset.</blockquote><p>At the very centre of the django ORM is models. So these querysets can called on the model managers, which if you’re inheriting from models.Model, you’re going to have access to! Their format is also the same:</p><pre>SomeModel.objects.QUERYMETHOD</pre><h3>What can I do with them [basics]?</h3><h4>I can get a single object (by using <em>.get</em>)</h4><pre>House.objects.get(id=4)</pre><p>It will return: a house object</p><p>Things to note: if this query returns more than one, django throws an error [ <a href="https://docs.djangoproject.com/en/2.1/ref/exceptions/#django.core.exceptions.MultipleObjectsReturned"><strong>MultipleObjectsReturned</strong></a><strong>]</strong>. And if you don’t have any objects, you’ll get the <a href="https://docs.djangoproject.com/en/2.1/ref/models/instances/#django.db.models.Model.DoesNotExist"><strong>DoesNotExist</strong></a>error. So only use this if you think you’ll only get ONE and ONE thing ONLY.</p><h4>I can get all the objects (by using .all)</h4><pre>House.objects.all()</pre><p>It will return: a queryset (an iterable list of <strong><em>all</em></strong> instances [houses])</p><h4>I can get filter objects (by using .filter)</h4><pre>House.objects.filter(type=&quot;detached&quot;)</pre><p>Things to note: I am going to get a list of <strong><em>detached</em></strong> houses back.</p><p>But I might want to exclude detached house. So, I’d use the exclude method like this:</p><pre>House.objects.exlcude(type=&quot;detached&quot;)</pre><h4>I can get the first and I can get the last (by using .first/.last)</h4><pre>House.objects.first()</pre><p>It will return: a single house instance</p><p>Things to note: the item being returned here will be the house with the smallest primary key, if no other explicit ordering has been provided. So, the house that first go saved in the database. The opposite is true for <em>.last()</em>.</p><h4>I can get latest (by using .latest)</h4><pre>House.objects.latest(&#39;pub_date&#39;)</pre><p>It will return: a single instance</p><p>Things to note: “pub_date” here represents a field that can be ordered. So, here’s we’re saying, give me the house with the latest date. But suppose you don’t want to explicitly say the field name everytime you want to get the latest. Easy, just go in the meta class of the model definition, and add the following:</p><pre>class Meta:<br>    get_latest_by = &#39;pub_date&#39;</pre><p>That way, anytime I want to get the latest house by pub_data, I can just make the following query:</p><pre>House.objects.latest()</pre><h4>I can get a list of values (by using .values)</h4><p>Sometimes I don’t want to get lots of house instances. Sometimes I just want to get the house prices and nothing else.</p><pre>House.objects.all().values(&#39;price&#39;)</pre><p>You’ll essentially get a list of dictionaries back that look like the following:</p><pre>{&#39;price&#39;: 10000}, {&#39;price&#39;: 1002000}, {&#39;price&#39;: 102029}</pre><h4>I can get a flat list of values (by using .values_list)</h4><pre>House.objects.all().values_list(&#39;price&#39;)</pre><p>You’ll essentially get a list of tuples back that look like the following:</p><pre>[(10000,), (1002000,), (102029,)]</pre><p>If you wanted to, you can get a flat list too, by adding keyword argument flat=True</p><pre>House.objects.all().values_list(&#39;price&#39;, flat=True)</pre><h3>What can I do with them [not so basics]?</h3><h4>Minimise trips to related tables (by using select_related)</h4><p>Suppose you’ve a table that has a foreign key pointing somewhere. If you were to use a get method to get that object, and then do something like this:</p><pre>#first trip to db<br>house = House.objects.get(id=6)</pre><pre>#second trip to db<br>house.owner</pre><p>But if I use select_related, during my first trip to db, I bring back the tables of related stuff.</p><pre># only trip needed to get both the house object and the owner object related to it<br>House.objects.select_related(id=6)</pre><h4>Minimise trips to related tables (by using prefetch_related)</h4><p>This essentially works in the exact same way as select_related. The only difference is that select_related is limited to foreign key and one-to-one relationships.</p><p>Prefetch_related does a separate look up for each relationship but then joins them, so that from a trips perspective, you’re only ever doing one.</p><h4>Get differences and unions of querysets (by using union and difference)</h4><p>Sometimes you want to compare two or more querysets, by using these methods you can keep items that present in all, or items that are only present in one. That canonical example used for demonstrating this is the following:</p><pre>qs1.difference(qs2, qs3)</pre><p><strong><em>.difference</em></strong> as a method can only be called on querysets, so it can’t be called on the model itself.</p><p>For more methods, check out the <a href="https://docs.djangoproject.com/en/2.1/ref/models/querysets/">queryset api documentation</a>. Or get at me on <a href="https://twitter.com/apjama">my twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48a917306983" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/django-querysets-a-quick-intro-48a917306983">Django Querysets, a Quick Intro</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Django — 10 Things Worth Doing]]></title>
            <link>https://medium.com/apjama/django-10-things-worth-doing-24bd30d72357?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/24bd30d72357</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 11:48:09 GMT</pubDate>
            <atom:updated>2020-09-05T17:39:08.692Z</atom:updated>
            <content:encoded><![CDATA[<h3>Make three/two separate settings files</h3><p>Ideally, you want to have a <strong><em>base settings</em></strong> file. This has all the important juicy settings stuff. Now, create an empty file called <strong><em>local.py</em></strong> in the same directory. And a third called <strong><em>prod.py</em></strong>. Both of these will import everything (with *) from <strong><em>base.py</em></strong>.</p><p>In your local file: <strong>DEBUG = True</strong>, <strong>ALLOWED_HOSTS</strong> = [<strong>‘localhost’</strong>, <strong>‘127.0.0.1’</strong>, ] or wherever you do your local development on.</p><p>in your prod file: <strong>DEBUG= False</strong>, production database info is here. Some other details about deployment too.</p><p>Note: make sure you don’t EVER commit your settings files. Simply add the directory your settings files are in to your <strong><em>.gitignore</em></strong>. God forbid your server/database passwords ever ended up on Github and you got hacked!</p><h3>Don’t be afraid to use Mixins — with models</h3><p>Don’t get me wrong, I hate seeing mixins being used all over the gaff too. But it sometimes helps to use them. If you don’t know, a mixin is basically a class that can be used by other classes without being a parent. OK, that sounded complex.</p><p>Django models are pretty good at what they do. And part of the reason they’re so good at what they do, is because they allow three different types of inheritance: <em>abstract</em>, <em>multi-table inheritance</em> (one-to-one field) and <em>proxy models</em> (by setting proxy to true).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dq5MWoPH80FLxh1kn8pJrA.png" /><figcaption>Multi-table inheritance.</figcaption></figure><p>Mixins are abstract. That is to say, when you use a mixin with a model, you’re not actually creating a new table. You’re basically saying, hey, this method, or that method (get_url) should be accessible to this model (Shop/Product). These are really good when you know that doing a bit of logic will be super super common and you want to abide by DRY!</p><pre><strong>class </strong>UrlMixin(object):<br><br>    <strong>def </strong>get_url(https://medium.com/self):<br>        <strong>pass<br><br>class </strong>Shop(UrlMixin, models.Model):<br>    <em># insert some fields about shops here<br><br></em><strong>class </strong>Product(UrlMixin, models.Model):<br>    <em># insert some fields about products here</em></pre><h3>Minimise trips to database</h3><p>Trips to the database cost money. They also cost time. When you’re doing your views, keep this in mind. There’s no point doing shit ton of queries every time you need a blessed thing done. Sometimes, it’s must easier to do an initial query and to build dictionaries that you can 1) pass into your context and 2) do other cool stuff with. That way, you’re not paying an arm and a leg in database fees and your customer isn’t waiting.</p><p>When writing a view, keep in mind how many trips are needed. Have that thought be at the back of your head.</p><h3>Use the Python Debugger</h3><p>pdb is a blessing. I love it so much, I wanna name my first child after it. Anytime I get a bug, I reach for pdb. And unlike IPython’s debugger, it doesn’t cause the entire system to break when you want to leave the session or change a bit of code in your IDE.</p><pre><strong>//this is how you import it<br>import </strong>pdb; pdb.set_trace()</pre><pre>// here are some commands you can use<br>s ---&gt; takes a step, stops at the next line <br>l ---&gt; list the source code, or 11 lines in the immediate area<br>c ---&gt; keep going until something stops you or you finish</pre><h3>Use the Shell</h3><p>It’s import to get into the habit of using the shell to figure stuff out. Mostly, data problems. You can import models directly and do queries. You’ll find that your python skills get better, as does your ability to write awesome querysets. I think more than that though, it helped me gain a deep understanding of just how incredible Python is at being an OOP language it is.</p><p>You go into the shell and nothing is in scope. You bring things in. You manipulate them. You ask them, who are you, what can you do, who are you connected to, is possible that I can manipulate you to do other stuff. Once my experimentation is done, I got to the IDE and write out nice and clean code!</p><pre>//my three favourite things to use in the shell!<br>locals() ---&gt; shows you the local variables. (in scope)<br>dir(xx) ---&gt; shows you what is available to xx. <br>type(xx) ---&gt; what type of thing xx is </pre><p>In fact, I usually have three terminals open. One for my <strong>server</strong>. One for <strong>git</strong>. And one for <strong>the shell</strong>. To get into the django shell, just type the following in the directly where the manage.py file is.</p><pre>python manage.py shell</pre><h3>Before writing a new app, see if it exists!</h3><p>There are a lot of really clever people. And if you’re thinking about writing a new app, do a simple search on google. Has someone come across this problem before and have they written an open-source app for it? I promise you they have! This has saved me so much time, honest. There is literally a library or an app for everything!</p><p>Don’t be scared to use open source apps.</p><h3>Follow things — don’t take their word for it.</h3><p>I use Pycharm. It has a neat feature. You can basically click on any class or function. When working with Django, and you’re trying to figure out how a specific form works, it helps to look up who it inherits from. Look at the methods on there. Who does that inherit from? Can that help me understand how <strong>cleaned_data </strong>works and if it gets run before or AFTER <strong>is_valid</strong>?</p><p>This came in very handy the other day when I was trying to understand how reversing viewset urls work. Severals levels deep, you get to this bit of code, which says, hey, just add “-[method]” to whatever the basename. It helps to look sometimes!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*GeiGljis2Fu40TUCSdgaBA.png" /></figure><h3>Use a cache buster or write one</h3><p>For your own sanity and the sanity of your customers, implement some type of cache buster please! You don’t want them looking at static files from three months ago. There are loads of those floating about. Maybe though, you can write your own.</p><h3>Keep your templates short and sweet</h3><p>Import from other templates! Don’t have huge template files. It’s not easy on the eyes and it probably means that you’ll write not very good code. Import from other templates by using</p><pre>{% extends &quot;base_template.html&quot; %}<br>{% include &quot;some_other_template.html&quot; %}</pre><h3>For goodness sake, use unit tests!</h3><p>Testing is a bit long, yes. But please! Get into the habit of doing them. Imagine a world in which you are constantly testing your website and you catch stuff WAY before your customers see them. Automated tests let you do that.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24bd30d72357" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/django-10-things-worth-doing-24bd30d72357">Django — 10 Things Worth Doing</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If You’re Serious about Coding, Begin Now with these Steps]]></title>
            <link>https://medium.com/apjama/if-youre-serious-about-coding-begin-now-with-these-steps-ac1a362d6976?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac1a362d6976</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Thu, 07 Jun 2018 09:05:03 GMT</pubDate>
            <atom:updated>2018-06-07T09:05:03.446Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, thank for you clicking on this article! I am hoping that reading this will change your life.</p><p>Note: <em>This is largely intended for people that have done no coding whatsoever and want to build websites and stuff.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*oVtshbnDKvvI2d5lwHVNNQ.jpeg" /><figcaption>let’s be real, you won’t ever have to do this</figcaption></figure><ol><li>I know all of this coding stuff looks super hard. It isn’t. When people think of coding, they imagine Margret Hamilton standing next to all that code she wrote for the moon landing. Computers have come a long since then as have programming languages! So, before getting into it, have your head in the right place. I wrote an article about <a href="https://medium.com/apjama/six-pieces-of-advice-i-wish-someone-had-given-me-when-i-started-to-code-7a5f3d8965e8">very same subject</a>. Please go and read it.</li><li>Go on Code Academy and do the <a href="https://www.codecademy.com/learn/learn-html">basic HTML course</a>, the <a href="https://www.codecademy.com/learn/introduction-to-javascript">basic Javascript course</a>, the <a href="https://www.codecademy.com/learn/learn-python">basic Python course</a>. This is just to get you to be a little bit comfortable with what code looks like in different languages, and the aims/approaches of each language.</li><li>If you’re a student or know a student, sign up to <a href="https://education.github.com/pack">Github’s education pack</a>. It gives you loads of courses and software for free. All you need is a university email address.</li><li>Go on Treehouse, sign up for a free month trial and do their <a href="https://teamtreehouse.com/tracks/full-stack-javascript">Javascript Full Stack track</a>. This will probably take you a few weeks, if I am being honest. But stay on top of it!!</li><li>Treehouse also has a Python track that takes you from a complete novice to absolutely G! Here is <a href="https://teamtreehouse.com/tracks/exploring-django">the link for it</a>.</li><li>How are you feeling now? Do you feel ready to go and build something? No? Hit me up on <a href="https://twitter.com/apjama">my Twitter</a>. Hopefully you’ll now have a better idea about what you like and what you don’t like. I can give you advice that is specific to you!</li><li>I <a href="https://medium.com/apjama/this-is-what-i-did-to-get-my-first-developer-job-4ef431d3ade5">wrote a thing</a> about what I did to get my first developer job. Please give it a read. You might find it helpful.</li><li>What you do now is up to you. But please, for goodness sake, don’t waste your own time. Take yourself seriously. Your time is important. Spend it wisely. Force yourself to follow through. Work hard.</li><li>Best of luck.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac1a362d6976" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/if-youre-serious-about-coding-begin-now-with-these-steps-ac1a362d6976">If You’re Serious about Coding, Begin Now with these Steps</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Home Office Uses Language Science to Keep the Foreigners Out]]></title>
            <link>https://medium.com/apjama/how-the-home-office-uses-language-science-to-keep-the-foreigners-out-5a5a0693af16?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a5a0693af16</guid>
            <category><![CDATA[somali]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[linguistics]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Thu, 03 May 2018 20:45:26 GMT</pubDate>
            <atom:updated>2018-05-03T22:24:08.284Z</atom:updated>
            <content:encoded><![CDATA[<p>Being an asylum seeker is very peak. You’ve most likely just done the maddest of journeys. You’re tired, disorientated and fearful that you’ll be sent back. Truth is though, every step in the asylum application, from the fact that you have to go and report to a local police station regularly while your application is being assessed, to the way the interview is done (it’s almost identical to a police interview), to the linguistics analysis you’re subjected to which is designed to catch you out using the wrong phrase/words, to the way the appeal process works. Everything is done to “catch you out”. To prove that you’re a lying bastard.</p><p>In short, the system is stacked against you.</p><p>You want to give yourself the best possible chance of being granted asylum. So, you try and tap into the local cultural capital that your peopledem have managed to accumulate in the short time they’ve been here. Our house for much of the early 2000s was a transit point. Relatives or just people that we knew through other people would come and stay with us. Knowledge about the system is amassed really quickly. And everyone in your circle becomes hyper aware of any changes in the Home’s Office’s policy towards asylum seekers. In 2001, the government introduced linguistics analysis for asylum seekers. The government took a political problem and said, hey, it’s now in the hands of science. IF science rejected people’s applications, it’s because those people were lying. Science doesn’t lie. But humans do. Asylum seekers even more so.</p><p>For the Home Office, the purpose of this <em>linguistics test</em> is to determine where exactly the asylum seeker is from. But you can’t use language to determine origin. That’s not actually a thing. And yet, in one statement made by a high Home Office official, the system works so well that between 2011 and 2013, 12 “Palestinian” asylum seekers were subjected to this language assessment. The Home Office concluded that “none of the 12 claiming to be Palestinian (100%) were found to be from Palestine”. I imagine at least one department head in the civil service got a round of applause that day. “We managed to catch out 12 lying bastards this year with our language analysis”. But suppose, suppose for a second that they were born in Yarmouk refugee camp outside of Damascus, or had spent a large chunk of their lives in Jordan, Lebanon, etc. Surely then they would “fail” the test. But they are Palestinian. They are still stateless. Both of those facts are still true regardless of how they pronounced their voiceless uvular stops. But I think the government knew that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*B8hPp8ijCO6GCY7tszP1Bw.png" /></figure><p>The government guidelines on linguistic analysis are quite literally peppered with the word “scientific” and “science”. Sometimes, these words aren’t even necessary to the sentence at hand. The entire point of the whole thing is to treat asylum seekers like they’re some shifty character doing their utmost to shaft society, and to invent, as John Campbell puts it, “social categories of deviance to rationalize the way the government processes asylum applications.” Science this, science that, but on closer inspection, you’ll find that the “expert linguistics analysis” the government describes in its guidelines is essentially a glorified interview with an interpreter. It lasts 20 minutes. There is very little transparency on what this linguistics analysis involved, what its methodology is, how it hopes to deliver the level of accuracy that it promises and at what point of the decision-making process does LA come to be considered.</p><p>They claim to only do it when they absolutely need to do it. But there’s some evidence to suggest that other forms of “linguistic analysis” are being used (i.e. interviewer asking interpreter if they think applicant was fibbing). But that’s not even the scary part of this whole LA debacle. For me, the most terrifying aspect of LA is that the results of the “analysis” is admissible in court. As in, a judge will look at those results and treat it the way they would treat any other forensic evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*77tZ1BSRR62Rfuf8QsBj0g.png" /></figure><p>That didn’t stop one Supreme Court judge though from questioning the assessment of one “linguistic expert”. S<em>ecretary of State for Home Department (Appellant) v MN and KY</em> is a case in point. Someone said that they were from Somalia and that they belong to a minority group. The language expert who 1. Didn’t have any linguistics background 2. Had been to university but did nothing on Somali linguistics, sociology, etc and 3. Had not been back to Somalia since 1990 determined that this applicant was not from Somalia. They concluded that the applicant was from Kenya. So, the Home Office rejected the application. It then went to a tribunal, the tribunal rejected the application citing the language assessment report written by the “expert”. It took years for the case to make it to the Supreme Court. One of the big things that came out of that was that Sprakab, the company the home office contracted out to do this work, couldn’t be relied on for shit. The judge goes on to say that “there were serious questions about the basis on which the Sprakab analysts felt able to establish with such certainty the geographical allocation of the appellants’ modes of speech.” Home Office dropped Sprakab the same year.</p><p>What we’re essentially talking about is whether someone deserves to be protected under international law. So, how could we allow for such an important and momentous decision to be made by freelancing interpreters that often have no formal linguistics training. But I think that there’s a broader point to be made. And that is, this type of linguistics analysis, if it’s in fact a thing (which I’m not convinced that it is), shouldn’t it account for an array of different relationships and factors. Namely, people’s movements, familial complexities, dialect diversity in transit zones like Malta, Cairo, Nairobi, Tripoli, Istanbul and Athens. It’s one thing to say, “ok, judging from the way this person speaks, are they really from the place they say they’re from”. And it’s another to look for explanations for why the asylum applicant prefers a specific synonym or leans towards a phonemic segment over others given the region they claim to be from. Language can never be directly mapped onto a geographical location or a national identity.</p><p>The fundamental flaw with seeing language in such a way is that it fails to account for two things: 1. How quickly language changes and 2. Just how permeable speech communities are. It takes no time at all to adapt the way you speak. An asylum seeker by definition, is someone on the move. They’ve seen the world of shit, and have decided to keep it moving, sometimes across entire continents tapping into existing communities, trying to make connections, fit in, and that does a lot to one’s “mother dialect”. Whatever that is. Fam, I’m not even talking diglossia here. I mean, actual fundamental changes to the way you speak changes.</p><p>In the Somali context, the Home Office regularly shifted its policies in the 90s and 2000s, at times refusing to take in people from certain regions it deemed “safe”. For a hot minute, applications from <em>the north</em> were being refused. The north was deemed safe. So, if you wanted to maximise your chances of your asylum application being accepted, you wouldn’t say that you were from a northern tribe. It mattered little where you escaped from, where you had lived, where you were born. To get papers, just don’t say you had any links to the north at all. There was another shift in the mid-2000s, where being from a “major” tribe meant that you were less likely to be given papers, and again, this was implemented with very little local knowledge. Home Office had a pretty laughable view of “tribes”, who controlled what area, what they were likely to sound like, and would sometimes bring in “expert interviewers” who would ask about the asylum seekers’ lineage. Imagine 19th century anthropology but in the 21st and instead of Richard Burton, you’ve got Alan, a northern lad going off last week’s memos. You’re telling him about being **insert tribe here** and having seen a madness in **insert city name here** and all he wants to do is get home, put on the kettle, fix a brew and watch some Peter Kay.</p><p>So, you might sit there, and think, raa. Couldn’t the government do better with these tests? Truth is, yes. But they weren’t trying to do better. Better has never been the point. These donnys were never interested in an “objective” truth about language and the way these asylum seekers spoke at home. This is because the most basic of all assumptions made by the linguistics analysis programme is that asylum seekers are very much in the business of nation-swapping. Something that can get very dangerous very quickly, when you start to use linguistics analysis to try and determine people’s tribes/ethnicities/regions. Because you can’t. And people suffer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a5a0693af16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/how-the-home-office-uses-language-science-to-keep-the-foreigners-out-5a5a0693af16">How the Home Office Uses Language Science to Keep the Foreigners Out</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding Delicious Music on Somali Youtube]]></title>
            <link>https://medium.com/apjama/finding-delicious-music-on-somali-youtube-b47601f81947?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/b47601f81947</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[somalia]]></category>
            <category><![CDATA[somali]]></category>
            <category><![CDATA[music]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Wed, 21 Mar 2018 10:02:15 GMT</pubDate>
            <atom:updated>2018-12-31T16:31:31.489Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m looking for a song. I can’t remember any of the lyrics, but there’s a really catchy hook. The singer says “wow” a total of 120 times. So I head over to Youtube, and I type the word “wow”. Millions of hits are returned. Hmmm…ok. Maybe “wow hees”. A whole bunch of irrelevant stuff comes up. One result looks promising. It’s Fuad Omar, someone whose name I recognize. I click on it. It’s not the song I’m looking for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kqCXLbj0n9yvDBMk4zGA0A.png" /><figcaption>yeah, that’s a no from me chief</figcaption></figure><p>I’m frustrated because I’ve been looking for this song for year. Not actively of course, it’s not like I’ve better things to do. But I’ve been looking. It gets me thinking about Somali Youtube naming conventions. I’m transfixed. I go onto youtube again, and this time I type in “Hees macaan”. Yes, I’m on the trawl for delicious songs. I get thousands of hits. I go through the first page, and the second, and the third. There is no correlation whatsoever between the deliciousness of the music and the number of hits. Some songs are evidently more delicious than others AND YET, they are lower in the search result. The horror. The word “macaan” has been overused, I conclude. We need better naming conventions.</p><p>So I look to Cadaan Youtube, and I notice that Cadaan youtube gets billions of hits. Some of their videos have a billion hits! That’s more hits than *inserts culturally relevant reference that makes it glaringly obvious that I’m young and cool*. I look at their music videos. The naming convention seems to be quite straightforward: song name + artists name. The assumption in these names is that 1) you know who this person is 2) you know where they belong in the grand scheme of things (year, genre, etc) and 3) that you will find it without any help from anyone. Korean Youtube, I recently discovered, will always have band/artist names in English with the song titles in Korean. This is to allow non-Korean speakers to find this music.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xS1tq6IIXHhEnK00kQ4Ipg.png" /><figcaption>K-pop videos generally use this naming convention</figcaption></figure><p>So I return to Somali Youtube, you know…for the culture. It seems that for most of the new music, the video titles are very descriptive. Even the superstar Farxiya Fiska has incredibly descriptive video titles. They all seem to always have the year of release in the title and a general description like “good song”, “beautiful song”, “great song”. In fact that it seems for the larger part, that older music videos/plays from before the war are safe from this type of naming convention. When one searches for a “Mooge” song, they find that the general format is always ARTIST NAME + SONG TITLE.</p><p>Why the key difference then? Well, it’s all to do with the way Youtube search works. When you search for something on Youtube (or Google), you’re not only searching the title field of the video. You’re also searching thousands of other metadate stuff AND info from the description, the commas page, etc. But this is an oversimplification of how it actually works. You see Google has two neural networks designed to give you the best possible results. The first is to do with ranking, so it takes whatever you’ve searched for and ranks them according to how close they are to the string you’ve actually typed in. The second neural network is all about you.</p><p>It basically tries to understand you as a user of the website, and starts to build models of what you’re actually like. So, imagine, it goes through your Youtube history, and says boom, this person loves watching this type of stuff. It then looks at other people like you, and says, wow, ok, let me use all of this data to build some kind of collaborative filtering system. So, when you type in “Farxiya Fiska”, it already knows what you’re most likely to be looking for. Everytime you go on a video, and then go off quickly, the system records it. It says “this is probably not what they were looking for”. Everytime you rewatch a video using a specific query, it records it,. “if he searches Binti Cumar, he’s more likely looking for this song cos he has watched it bare times”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zwf8ujehwx3Xzu4o4sgqaw.png" /><figcaption>artist name + song title</figcaption></figure><p>But that still doesn’t answer the question of why new Somali music videos have such weird title names that are vague. Well, the short answer is, these artists know exactly what they’re doing. They want their music to be discovered, and they’re aware that this is the tactic that will bear the most fruit. If you’re in an industry that doesn’t have huge marketing budgets and thus can’t get people aware of your music organically, your best is to piggyback of general key terms that people will almost certainly be looking for. Chances are people aren’t going to look for Farxiya Fiska’s new song by name because they don’t actually know that it exists! What’s more likely to happen is that they’ll search “hees cusub” and Youtube uses that search query as well its own neural network stuff that I mentioned above and says “hey, you’re probably looking for this song by Fiska, cos bare people like you clicked on it and watched it”.</p><p>I think that it’s easy to assume that Somali Youtube doesn’t know what it’s doing. It absolutely knows what it’s doing. And to you it might seem like a terribly disorganized mesh where positive adjectives feature A LOT. But these artists aren’t librarians or curaters. They’re not here to make Youtube a nice spaces for us to search and find stuff easily. They’re trynna eat. And tbh, we’re all, one or another, slaves to these algorithms and <em>general descriptiveness with dates</em> is how Somali artists choose to deal with it, just as Korean artists choose to accompany their videos with English translations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b47601f81947" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/finding-delicious-music-on-somali-youtube-b47601f81947">Finding Delicious Music on Somali Youtube</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Keeping a Journal for 12 Years Taught Me]]></title>
            <link>https://medium.com/apjama/what-keeping-a-journal-for-12-years-taught-me-38765b3e0a65?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/38765b3e0a65</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[anthropology]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Thu, 08 Mar 2018 15:54:31 GMT</pubDate>
            <atom:updated>2018-06-07T08:29:55.858Z</atom:updated>
            <content:encoded><![CDATA[<p>I never really had a journal as a child. I wasn’t reflective and didn’t feel the need to write anything down. I wanted to spend every waking moment playing video games. The closest thing to a journal I had was the Argos catalogue. I remember religiously folding the relevant pages with the games I wanted, nay, needed and pestering my mum about it. Her response was always “inshallah”. That’s Arabic for no. I grew out of that phase at around year 8(12/13). From year 8 on, the only thing that mattered was chatting to my mates. In school and at home (lol MSN). My worldview was shaped by my friends’ worldview. Nothing else mattered. Parents were stupid. Teachers were stupid. Friends were wicked and definitely worth impressing. Childhood provided me with a clarity of thought and purpose. I knew what I wanted and needed, and I went for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uIwDesGWBik5LfHcfURFmw.jpeg" /><figcaption>Must….keeep….it….moving</figcaption></figure><p>Year 10 and year 11 were formative for me. I started reading books and was consequently inspired to write some stuff down. Nothing major, just like thoughts here and there. I still write in my journal/s. Between 14 and 16, my journal entries were ideas that were interesting to me. Since 16 though, my entries have been very different.</p><p>The key difference I think lies in what I chose to document. One of my history tutors used to go on and on about how sometimes the evidence isn’t in the primary source itself but what the primary source tells us about the state of mind of the people at that time. A journal is supposed to be about your life, your own biography if you like. Tell me why productivity is the sole focus of all my entries. My journal entries for the past 12 years show a human being in a perpetual state of panic. OK, maybe not panic. But definitely something Sisyphean.</p><p>Take this entry from November 2013, in which I reflect that “at this rate, I’ll wake up one day and realise that I have wasted my entire life. This cannot keep happening. This has to stop.” I think I had a lie in that day. <strong>A LIE IN.</strong> Or “I failed my theory test. Never again will I be ill prepared like this.” Bro, chill, it’s really not that deep. But at the time, it seemed deep <em>because my failure to prepare showed a systemic failure in my life</em>. It wasn’t just a test that I failed. It was what this failure said about me. Going through my entries, what becomes apparent very quickly is that I have an almost obsessive occupation with some arbitrary standard of “doing better”. Tomorrow’s Nirvana exists, <em>if only I can stop being terrible</em> is the takeaway. In the journals, I sometimes say vaguely supportive things to myself but they always sound hollow and tepid, like this entry from February 2014 where I tell myself that “I can do this…I can really do this, and even if I can’t, then I needn’t worry myself.” I had exams later that year. Everything is framed in terms of <em>better</em> and <em>tomorrow</em>.</p><p>Better is never defined. And yet, like a crazed person, I fall short, record the feeling of falling short, and repeat the process. This arbitrary standard is something that has occupied my psyche since the beginning of my “adult” life. In one sense, it has been incredibly helpful for me, and it got me through some pretty shitty ruts, where there was always something to improve, to work towards and the need to be better provided some overarching narrative that gave temporary meaning. But equally, it’s depressing to think that you will never arrive at Better Station. It doesn’t exist. Countless journals were filled with plans for a better tomorrow, and tomorrow came but it lacked the flavour it promised. You’re carrying an uninspiring rock that you don’t love up a hill and rolling it down and repeating the process every single day. For a better tomorrow, does today need to be a bit naff? When do we start living?</p><p>By all counts, I am happy. I have a wonderful relationship with my parents, my siblings and I are close. I’ve got a supportive group of friends that I see regularly. I have a job that I enjoy a lot. I feel satisfied with my lot. But I can’t help but think that I can do so much better. So I should do so much better, and so much more. Speak more languages, be fitter, be more patient with people, loving, travel more, have a better job, read more, etc.</p><p>I don’t know if this a symptom of late capitalism, where we all feel lacking, and trying to keep ourselves busy in some elaborate scam about hiding these underlying insecurities. Tomorrow is always the primary justification of any sacrifice even when sacrifices aren’t necessary. And it isn’t just me, friends won’t stop talking about how busy they are, and how they’re not doing enough, and how…we work so hard without really defining why we’re doing what we’re doing and asking the most important question: what about today? Time is quite literally flying. Like voom and we don’t know where the time is going. The stuff I deemed important have changed over the years, and the likelihood is such that the things that I think are important now will probably pass too. Memories don’t.</p><p>In this sense, 2018 is off to a good start. In 2018, we’re prioritising people. People are the answer. For so long, I’ve thought of the people in my life as constants and my own self-development as a variable that needed my attention and efforts. It’s probably the same for you. You think of your own family and friends as constant who will probably always be there, and therefore you’ve probably told yourself that they don’t require as much attention. I’m now wondering if this is just capitalism though. Our relationships with people have been defined in terms of things and value exchanges? So much so, that we can’t bring ourselves to just be with them and focus on today. We’re constantly thinking about tomorrow and its promises.</p><p>Herein lies, your own little resistance. Or at least some vague symbolic resistance to the premise that we must be productive at all costs, -even when it harms our sense of self and happiness. I really cannot tell you about all the times that I have been productive and I have produced good work. I can tell you about the smile on my dad’s face at my graduation or a trip to Lewisham Shopping Centre ,-the most basic of all shopping centres, -where I shared a pretzel with someone I loved very much, or that time my little sister and nephews/nieces surprised me on the day of my final exam. There is meaning in that. And beyond anything else, it’s about today. You are present.</p><p>Worry about tomorrow enough to have a decent quality of life tomorrow but no more than that. Today is all about your loved ones. And making memories. And keeping them.</p><p>And cake.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38765b3e0a65" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/what-keeping-a-journal-for-12-years-taught-me-38765b3e0a65">What Keeping a Journal for 12 Years Taught Me</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Traces of Social Protocol and the Self]]></title>
            <link>https://medium.com/apjama/traces-of-social-protocol-and-the-self-a35acd72307b?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/a35acd72307b</guid>
            <category><![CDATA[anthropology]]></category>
            <category><![CDATA[photography]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Thu, 01 Mar 2018 18:06:52 GMT</pubDate>
            <atom:updated>2018-06-07T08:31:43.440Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PQnpgS1HnSFARviwipnUYQ.jpeg" /></figure><p>This is a photo I took years ago. It’s probably one of my favourite photos. I went through a phase where I experimented with film photography. Taking pictures with old cameras, developing the film, and doing interesting and sometimes odd things with them. This is a favourite of mine not because of the technique used, or the process, or the thought, but who is in it. It’s my mum and my little sister. On a dry summer day, my mum decided to sit on our front door steps. This was not like her. I had a few shots left of an old expired Ilford 35mm roll. So, I took this.</p><p>To you though, it’s probably not that great of a shot. The only thing that makes it remotely interesting is the subject matter, and they mean very little to you. For me though, it’s a different story. I feel a sense of belonging. It as though someone captured the souls of two people that mean a great deal to me, and froze them in time. I am able to relive that sunny day every time I look it. Reflect on a singular moment, pause a second and in come gushing all the feelings, anxieties of that stage in my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-e812UkxVCVpXwgg_cHhw.jpeg" /></figure><p>Remembrance, can sometimes be a function of photography. For Barthes, photography’s power lies in its ability to force us to think. Its power is its ability to reject today social constraints and structures. Bring forth a kind of peculiarity, a quaint presence, prescience even. Something that you miss dearly. Here you are, in the future, looking all the way back, placing your gaze firmly on the things that mattered. You’re the insect on the wall. Searching. Across an empty and vast plane named time.</p><p>If you were born before the year 2000, I promise there’s a physical album of your childhood your parents stashed away. It’s filled with photos from birthday parties, extended family coming to visit, cheeky little trips here and there. You probably also remember family members saying they’ve got to run to Boots or the petrol station because they ‘’ran out of film’. For most people, taking photos was a thing that you did with actual attention. It required planning. You set out to capture memories. Two notable things have changed in personal photography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTUgjP3CRSa_nisj6AEIWw.jpeg" /></figure><p>The first is that photos can now be taken by every single phone on the market. Even the cheapest phones have camera (albeit a bit shitty). The planning required to “record” a memory is no longer necessary. This has the knock-on effect that you’re less likely to take photos for the purposes of recording stuff. That option is always there, and therefore…constantly recording stuff becomes a futile task. Why take another picture of your mum when you already have a thousand pictures of her? Or when you’ll always have the ability to take pictures, at any moment.</p><p>The second is how photography is shared. And this, for me, is perhaps the more significant. There’s a scene in Fincher’s the Social Network where Justin Timberlake’s character (Sean Parker) tells Jesse Eisenberg (who plays Mark Zuckerberg) that social events will be changed forever by Facebook. ‘it is the true digitization of life’, he says. ‘You don’t just go to a party anymore, you go to a party with a digital camera’. He’s right. And it’s true. Digital cameras boomed in popularity around the same time as the social media explosion. And people couldn’t get enough of taking photos in public places. You’d go to a social event, say a party, go home, and then the following morning you’d get a bunch of notifications. You have been tagged in x photos. The private life would now be recorded and presented to all your acquaintances now. So, private life was a public performance under the guise of a private life.</p><p>Seeing yourself in photos is not unlike hearing your own voice. There’s a certain creepiness to it. The mirror stage for the grown-up. You see yourself and not as you you, but as an object. Different to you but you at the same time. You become even more aware of your own status as an other. There’s a performance. There’s a wilful acceptance to be turned into a text, that can be read a thousand different ways, by different types of people who are all governed by their own little predilections. Private photos are no longer just being taken for private consumption and to remember. We are now posing in photos with no knowledge of when and who would consume them. Difficult to discern what is just a performance and what isn’t. Not unlike Debord’s “All that was once directly lived has become mere representation”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpkqGlUrNfTFv-vBX7Aj_Q.jpeg" /></figure><p>You’d be completely missing the point though if you thought that sharing photos online has made them somehow less authentic. Taking photos has always been performative. Predicated on social conventions and what was accepted. Reflect a moment on the key differences between the ways in which photos are shared on Instagram, Twitter, Facebook and Snapchat. Instagram seems to be a purely curated space. Twitter, people share selfies and often short videos of themselves signing along to songs. Facebook’s photos seem to be about social events and us with other people. In all of these places though, we’re trying to present our best foot forward, and that usually requires different techniques and aesthetics.</p><p>The aesthetic requirements on these social networks don’t just appear overnight. They’re developed over many years in small communities that reward each other with likes and counter-likes. Pretexts are invented to normalize the sharing of private photos, and the entire thing is made to appear as though is part of a grander culture, much bigger than the individual sharing their photo. These pretexts aren’t too different from the weddings, and the parties that you parents went to in the 80s and 90s to take photos. It’s just that now, we’re living on another plane.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a35acd72307b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/traces-of-social-protocol-and-the-self-a35acd72307b">Traces of Social Protocol and the Self</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Listen to this Recording of a Somali Nomad From the 1931 Paris Expo]]></title>
            <link>https://medium.com/apjama/listen-to-this-recording-of-a-somali-nomad-from-the-1931-paris-expo-4a3ee23149d9?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a3ee23149d9</guid>
            <category><![CDATA[somali]]></category>
            <category><![CDATA[history]]></category>
            <category><![CDATA[anthropology]]></category>
            <category><![CDATA[somalia]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Thu, 01 Feb 2018 17:14:08 GMT</pubDate>
            <atom:updated>2018-06-07T08:27:30.798Z</atom:updated>
            <content:encoded><![CDATA[<p>From the mid nineteenth century onwards, colonial powers began to hold these “World fairs”. The aim was simple: how do we introduce the metropolis to the colonies? How do we make it easier for our population (the British, the French) to understand that the “colonies” France/Britain rule over are tangible and very real. This is illustrated best by the French Colonial Minister Paul Reynaud’s opening remarks at the 1931 Expo where he declared that “the essential aim of the exposition is to give the French an awareness of their Empire”. Of course, part of the aim was also about boosting the confidence of both the Empire and the individual in the empire, by pointing out how varied and savage and bizarre the cultures were that they now ruled over.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*UdCPQnc-vtcjBTA5Z1psew.jpeg" /></figure><p><strong>This Piece</strong></p><p>This particular recording was recorded in 1930 (exhibited 1931), and it comes from a long tradition of European xumaan that had Empire at is centre. From what I can find, it was recorded by the Phonetics Department at Paris University, and the aim was to “record the music and dialects of the colonies”. But I promise, it’s much more sinister than that. They made hundreds of audio recordings, took hundreds of pictures and meticulously wrote LOTS of reports. Only a fraction of them are about Somalis.</p><p>I have tried to provide an informal translation to this recording. The man is describing “disagreements” with his neighbouring Qabiil, or even sub-Qabiil. It’s not uncommon to have beef with your neighbours. Robbing their camel is the ultimate expression of just how pissed off you are with them. For me though, way more interesting than the stuff the guy in the recording says is why a linguistics department in France would want to hear about our uncle’s beef with his neighbours.</p><p>Note: <em>Think about the subject of the story. Think about why it might have “benefited” the recorders. Think about the problem with framing the existence of an entire people this way.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttp%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F392987598%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-684286555%2Fwar-and-peace-1931&amp;image=http%3A%2F%2Fi1.sndcdn.com%2Fartworks-000295434438-jjvspt-t500x500.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/b3688200b18f3c2749373e09157476ba/href">https://medium.com/media/b3688200b18f3c2749373e09157476ba/href</a></iframe><p><strong>Translation</strong></p><blockquote><em>Once upon, we raided (a settlement) and we stole some camel. And the men we had robbed came after us, and they asked us to give them their camel back. And we said no. We’re not giving you anything back. We fought. They said give us our camel back. We said no. They said “us not getting our camel back isn’t really gonna work for us”. And we said, we’re not giving you your camel back, quit badgering us. We fought. They killed one of our men. So when they did that, we fought even harder. They then took the camel from us. We chased after them and caught up with them, and took the camel off them. There we fought. They killed three of our men. We killed five of them. They sent us a delegation who had some wise words to share. They said: “only three are eternal”. A man who has knowledge, a donkey, and a dog. Only those three will benefit. The man with knowledge, for he has has wisdom, and from livestock and his family comes much wealth. And donkeys, they said. And dogs, they said[This is a literal translation, but it seems that he has forgotten the particular proverb, so he’s filling it in with fillers]. We got compensation. We chased them, we scared them, that’s it! We kept the camel. We were stronger than them. We scared them. We became serious enemies. Years later [Lit: another day], they raided us, attacking us, families, livestock, and burnt our houses. And we went after them, and we burnt down their houses. And then matters became serious after that. And then British attacked us, and locked us up. They chased us, and we went on the run. We escaped. They caught five of our men. They locked them up. We then paid for them to be released. With the grace of God, through all of that, we were fighting. For five years, we were fighting. And then things got really difficult. We paid the “Mag” (Islamic compensation for killing someone). And we made peace there and then.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a3ee23149d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/listen-to-this-recording-of-a-somali-nomad-from-the-1931-paris-expo-4a3ee23149d9">Listen to this Recording of a Somali Nomad From the 1931 Paris Expo</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Centre Cannot Hold — Modernity in Somali Theatre]]></title>
            <link>https://medium.com/apjama/the-centre-cannot-hold-modernity-in-somali-theatre-aff0f0ff0e13?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/aff0f0ff0e13</guid>
            <category><![CDATA[comedy]]></category>
            <category><![CDATA[anthropology]]></category>
            <category><![CDATA[somali]]></category>
            <category><![CDATA[somalia]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Tue, 30 Jan 2018 23:33:11 GMT</pubDate>
            <atom:updated>2018-06-07T08:32:12.315Z</atom:updated>
            <content:encoded><![CDATA[<p>I am often struck about how much my sense of humour has changed in the past decade. My humour, it would seem, has been reduced to a series of Vine references without context or comment. “Welcome to my kitchen…we have…avaca…”, I say. Laughter ensues. I have to admit, this is very new. I didn’t always have such a good sense of humour. I used to find Sacha Baron Cohen funny when I was like 12. And before that, my sense of humour was shaped by my parents.</p><p>There was a moment in my childhood when I THOROUGHLY enjoyed Riwaayado (plays/performances) with my parents. It was like the thing to do on the weekend. IT wasn’t exhausting like watching a foreign film with them because we all know what that means: you’re on translation duty (euch!). My mate’s mum had the world of riwaayado, and if she was in a good mood, she would lend them out to us. We watched Hablayahow Hadmaad Guursan Doontaan a good 300 times. I still watch it occasionally. Thanks Youtube.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q138l049Vt5db9kBGM6YXw.jpeg" /></figure><p>As I grew up though, I saw that a lot of these were in and around the idea of modernity. Most Somali comedies will have a central love story, a village idiot character, some form of social problem, and a beautiful couple of singers that’ll sing for us. The social problem at the heart of these plays is almost also the direct result of modernity. Maybe, change brought about through modernity. My impression is that the way plays are written are closely linked with the way traditional somali storytelling works. There’s always a take a way. Some mirro, wisdom if you like. Imagine a Somali Griot. So, given that stories were being written by poets who made their living writing other forms of stories, in poetry or oral performances, it would make sense that they would fall back on the thing they know: teaching lessons through their stories. But that’s not the bit I’m interested in. I’m interested in why all of these plays are about modernity.</p><p>Imagine for a second, the uncle that everyone in your family calls a “reer magaal”. This can be a euphaism for he’s a gaal, or he’s a well-dressed guy who ocassionally reads stuff. How that word is used to describe him depends entirely on how he conducts himself. If he’s not prayed a single rakaca in 25 years, well, you know. Reer magaalnimo has always been a fine balance between endless possibilities and damn-right abandonment of all our values and culture. Marshall Berman, some big marxist donny, described modernity in his <em>All That Is Said Melts Into Air</em> in the following way:</p><blockquote>To be modern is to find ourselves in an environment that promises adventure, power, joy, growth, transformation of ourselves and the world and the same time, that threats to destroy everything we have, everything we know, everything we are.</blockquote><p>And that’s just it. Your Reer Magaal uncle is both a threat to everything we hold dear and a source of hope.My feeling is that a large portion of Somali plays are about navigating this fine line well.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZY5OSrbtJ7A%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZY5OSrbtJ7A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZY5OSrbtJ7A%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/4d8e3a644d7c2712337d22040a54b0d6/href">https://medium.com/media/4d8e3a644d7c2712337d22040a54b0d6/href</a></iframe><p>If you look at the above clip from the much celebrated play “Magaalo Joogu Xumo” by the famous poet Sugaal Cabdulle Cumar, you’ll note that the couple represent everything that is possible. They are cute. They’ve obviously got a loving relationship. Nothing weird to see here, right? That’s because they represent the collective taste and class. They are us. The humour in this scene comes not from a clever bit of wordplay, but from the sheer ridiculousness of our reer baadiyo friend. He doesn’t know how to behave. And we, the audience, both pity and ridicule him. The Reer Baadiyo trope is such a common trope in Somali humour today, that you can’t for the life of you chew at a local chew house without being subjected to 12 reer baadiyo jokes. It’s just our reality now.</p><p>Perhaps even when the jokes aren’t directly about them being reer baadiyo, we’re laughing at their mannerism, the way they say things, these provincial types. It’s odd that a play that was written during a moment in Somali history when the majority of Somalis were in fact “reer baadiyo” would mock the reer baadiyo in that way. Uncouth, uncultured and definitely lacking basic civility is the takeaway. The prewar era certainly pushed a modernisation narrative. I mean, it was a “scientific socialism” ffs. Plays since the war have been different though, I think, at least on the issue of modernity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_aa5W1cIYgcIrFMasDg4w.jpeg" /></figure><p>The key difference in postwar and pre-war modernity tales is that in the postwar period, things fall apart. The centre cannot hold because there is no centre. There’s no metropole. And so, modernity, this thing that was once heralded as the modus vivendi, is all of a sudden a thing that we need to wrestle with, ward off, to remain authentic and true. Qabyo is a first class example of this. What befalls Sangub’s character is actually a bit peak. But he’s also not a nice bloke. Qabyo and many plays in that same vein aren’t so much comedies as they are genuine conversations about what being in the west means for us. What lies in the man’s domain and what doesn’t any more. What is the role of a wife? Where does religion fit? Your sexist adeer doesn’t find the notion of black bags funny, he’s just laughing through the pain cos my g believes modernity has destroyed his culture..</p><p>“Heblaayo, rather than accept naag labaad, she decided to throw the whole husband away…she put his clothes in a bac madow…kkkkk…naag nool”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aff0f0ff0e13" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apjama/the-centre-cannot-hold-modernity-in-somali-theatre-aff0f0ff0e13">The Centre Cannot Hold — Modernity in Somali Theatre</a> was originally published in <a href="https://medium.com/apjama">APJama</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functions — Python 101]]></title>
            <link>https://medium.com/@apjama/functions-python-101-49a41b5dc5ab?source=rss-367a3273018------2</link>
            <guid isPermaLink="false">https://medium.com/p/49a41b5dc5ab</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[AP Jama]]></dc:creator>
            <pubDate>Wed, 24 Jan 2018 12:02:20 GMT</pubDate>
            <atom:updated>2018-06-07T08:30:58.576Z</atom:updated>
            <content:encoded><![CDATA[<p>So, far, we’ve talked about <a href="https://medium.com/apjama/variables-and-containers-python-101-1bca7132b124">containers and variables</a>. Today, I want to talk about functions. I am assuming that you know absolutely nothing about programming. To really understand functions in Python, you’ll need to have a solid understanding of why we use them, what arguments are and what the overall cycle of a function looks.</p><h3>What is a Function? It is an operation.</h3><p>A function is basically a way of organising instructions. Think of a thing that you do regularly. Having experience means that you know what do, right? How? Well, you’ve got a clear idea in your head of what the steps necessary for that thing are. Functions are basically like that. They’re things you can write once that stop you from needing to repeat the same bit of code in loads of places. Once you’ve written a bit of logic down, you can just refer back to it, and be like, yo, do that thing again.</p><p>For example, we can think of <em>addition</em> as a type of function. You can add any 2, 3, 4… numbers together. Or <em>cooking</em>, or <em>cleaning</em>, or <em>commuting</em>. These are a series of steps squished together and “encapsulated” under a single name. In fact, think of any operation that needs a set of steps that can be defined as a function. Kind of feel like our brains organise stuff in this way too.</p><h3>What are arguments or parameters? They’re the entities involved in a function.</h3><p>When you want any task done, you can think of it in terms of two things: 1. The logic of what needs to be done<strong> </strong>and 2. <strong>The things/people involved in that operation</strong> — <strong>that’s basically what an argument</strong> is. It’s an entity that is somehow involved in the way an operation gets done. So, we can think of <em>cleaning</em> as a function (read: operation) and Abdul as an argument. The cleaning operation can also accept more than one argument, right? It can accept (done by/done to/done with) lots of different people/things/stuff. So even though the logic of cleaning is still the same, the arguments are different, which means that the overall function will look different. Don’t worry if you still don’t know what an argument is still, we’ll go through some examples together.</p><h3>Four Things I need to do for every function</h3><p><strong>First:</strong> you need to define it. Use the <em>def</em> statement to create the function object and assign a name to it. When you’re defining a function, what you’re doing is describing the inner working logic of the operation. So, how does I tell a computer what an operation is? So,</p><blockquote><strong>def cleaning():</strong></blockquote><p>says, hey computer, I want you to create a function object called <em>cleaning</em>. Enclosed in this function definition is the set of instructions and who/what they will be done by (arguments).</p><p><strong>Second:</strong> you need to decide on what the arguments will be for your function. Parameters or arguments are the entities involved in your operation. So, if I say, yo go and add 3 and 4, there are two arguments(3 and 4). So,</p><blockquote>def cleaning(a, b):</blockquote><p>is saying, hey computer, create a function object with two arguments. Writing it in this way means that I don’t need to repeat my code. Because <em>a</em> can just stand for Mary and <em>b</em> stand for George. Or <em>a</em> in another example can stand for Jill and <em>b</em> for Jack. By requiring two arguments, I’m saying this is an action/operation will need two things/stuff/variables.</p><p><strong>third: </strong>return stuff. What do you want the take away from your operation to be? The return statement basically says, hey, here is the result for your thing. We’ll return to the return statement in the next functions piece when you we talk about scope and namespaces(I said return return lol). But for now, if it was addition example, here is how we might use the <em>return</em> statement:</p><blockquote>def addition(a, b): → here, we’re like defining the function.</blockquote><blockquote><em>return</em> a * b → here, we’re saying, gimme a times b as a result</blockquote><p>Finally: you <em>call</em> the function. This is the bit where the actual operation happens. In our maths example, this is the moment it does the number crunching. Or in the cleaning example, this is the moment that actual cleaning gets done. All that we have done up to this point is describe what cleaning might look like and who might do it. To call a function, just say</p><blockquote>cleaning(jack,jill)</blockquote><p>where jack and jill are the two arguments involved in the operation cleaning. This will execute on run time.</p><blockquote>addition(6, 12)</blockquote><p>here, I’m actually calling the function ie. do the damn thing my g. And it gives me the result of a*b where a = 6 and b =12. The answer of course is 72 and that is what is returned to us.</p><h3>Examples of Functions and how to read them</h3><p><em>def justice(league):</em> → this is a function called justice, it has 1 argument. We can’t see the body of the function, all we can see is the def statement and arguments.</p><p><em>def func1(arg1, arg2, arg3):</em> → this is a function called func1 with 3 arguments. To see how these three arguments interact, i have to look inside the function.</p><p><em>def chores(child_1, child_2, child_3):</em> → this is a function called chores, with three arguments. I don’t really know the role played by child_1, child_2 or child_3 but I do know that they all play a role in the function called <em>chores</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iu6EYI5CdpIKr2e4kiGlLg.png" /></figure><p>This is a real function taken from the Tensorflow library, a machine learning library in Python. Here, we’ve a function called “train_input_fn”. It has three arguments. These are called <em>features</em>, <em>labels</em>, <em>batch_sizes</em>. We don’t know anything about those variables but we know that they’ll all play a role in this function!</p><p>Question: what does it return?</p><h3>Now you’re ready to watch this video</h3><p>This guy is dope. I learnt a lot of what I know about Python from him. Watch the video and you’ll be great.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9Os0o3wzS_I%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9Os0o3wzS_I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9Os0o3wzS_I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/016257d45e3a03e9e06fb5747d3c2ade/href">https://medium.com/media/016257d45e3a03e9e06fb5747d3c2ade/href</a></iframe><h3>∅ on Twitter</h3><p>I&#39;m here to help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49a41b5dc5ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>