<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Uncategorized on Abdullah Diab&#39;s Blog</title>
    <link>https://mpcabd.xyz/categories/uncategorized/</link>
    <description>Recent content in Uncategorized on Abdullah Diab&#39;s Blog</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 22 Aug 2015 15:06:15 +0000</lastBuildDate>
    <atom:link href="https://mpcabd.xyz/categories/uncategorized/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>In the celebration of 10M questions on StackOverflow</title>
      <link>https://mpcabd.xyz/in-the-celebration-of-10m-questions-on-stackoverflow/</link>
      <pubDate>Sat, 22 Aug 2015 15:06:15 +0000</pubDate>
      <guid>https://mpcabd.xyz/in-the-celebration-of-10m-questions-on-stackoverflow/</guid>
      <description>&lt;p&gt;Who among us developers doesn’t know &lt;a href=&#34;http://stackoverflow.com/&#34; target=&#34;_blank&#34;&gt;StackOverflow&lt;/a&gt;? If you don’t know it then there is a big chance you didn’t search for any programming related question in the last 7 years, so you either are doing a super great job, using a super old community of old school programmers, or actually didn’t practice programming for some really long time.&lt;/p&gt;
&lt;p&gt;StackOverflow reached more than 10 million questions, I won’t list those amazing numbers and statistics here, feel free to see them on &lt;a href=&#34;http://stackoverflow.com/10m&#34; target=&#34;_blank&#34;&gt;StackOverflow’s 10M page&lt;/a&gt;, they are really great to read and to try to imagine them.&lt;/p&gt;
&lt;p&gt;I’m not going to talk about its history, the internet is full of those articles, you can read about it from &lt;a href=&#34;https://en.wikipedia.org/wiki/Stack_Overflow&#34; target=&#34;_blank&#34;&gt;Wikipedia&lt;/a&gt; or from its co-founder &lt;a href=&#34;http://www.joelonsoftware.com/items/2008/09/15.html&#34; target=&#34;_blank&#34;&gt;Joel Spolsky&lt;/a&gt;. I will talk about my story and how I see StackOverflow in this occasion, it’s my way of celebrating the success of this global platform, and the success of humanity there.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Who among us developers doesn’t know <a href="http://stackoverflow.com/" target="_blank">StackOverflow</a>? If you don’t know it then there is a big chance you didn’t search for any programming related question in the last 7 years, so you either are doing a super great job, using a super old community of old school programmers, or actually didn’t practice programming for some really long time.</p>
<p>StackOverflow reached more than 10 million questions, I won’t list those amazing numbers and statistics here, feel free to see them on <a href="http://stackoverflow.com/10m" target="_blank">StackOverflow’s 10M page</a>, they are really great to read and to try to imagine them.</p>
<p>I’m not going to talk about its history, the internet is full of those articles, you can read about it from <a href="https://en.wikipedia.org/wiki/Stack_Overflow" target="_blank">Wikipedia</a> or from its co-founder <a href="http://www.joelonsoftware.com/items/2008/09/15.html" target="_blank">Joel Spolsky</a>. I will talk about my story and how I see StackOverflow in this occasion, it’s my way of celebrating the success of this global platform, and the success of humanity there.</p>
<h2 id="section1">My Story Before StackOverflow</h2>
<p>Feel free to skip to the <a href="#section2">next section</a> if you’re not interested in my personal history 🙂</p>
<p>When I first started my programming path, around year 1999, I had no internet, never even heard of it back then, we were living in the dark in Syria, anyway this is not the place for politics, so I started my programming path with no internet, and the only way I could get help was by searching through the thick book I was reading, I taught myself Visual Basic by reading the famous SAMS Teach Yourself Visual Basic 6 in 21 Days, and whenever I had any question back then I would try to find the answer there in that book, if I can’t find it I had no one to ask, I knew of no programmers then, my dad knew a bit of Visual Basic and he put me on the path of programming, but he couldn’t answer my questions as he was using it only for programming in Excel. In around 2001 I think we had our first dial-up connection, and it was bloody expensive, so I wasn’t allowed to use it, we’d use it very wisely, and couldn’t spend time wandering online, so I barely got to know any website for programmers.</p>
<p>Things started to get better by time, and I discovered <a href="http://www.codeproject.com/" target="_blank">CodeProject</a> – I think I was using MSN to search for stuff back then, I don’t remember when was the first time I used Google actually – and I was able to learn some extra good stuff, downloaded some Visual Basic projects, and I could understand them and learn. I also remember I was searching in Arabic a lot, my English wasn’t good enough back then, so I got to know some Arabic programming forums, and that was the way I was able to ask my questions, and many people were using those forums and would help me, I still remember <a href="http://arabteam2000-forum.com/" target="_blank">Arab Team 2000</a> as one of those leading forums back then. Then my path on .NET started and I found very nice Arabic content related to the new framework, I still remember me reading the books written by <a href="http://mhmdhmdy.blogspot.com" target="_blank">M. Hamdy Ghanem</a> and I remember me sending him lots of emails back in 2005 and 2006 asking about many different questions and he’d answer them all, also I remember reading the books of <a href="http://www.al-asiri.com/" target="_blank">Turki Al-Asiri</a> and checking his website which had a forum for questions and answers.</p>
<p>Right around 2006 I remember I found a website that was a community for those who are interested in computer science in Syria, it was called CSC-SY (<strong>C</strong>omputer <strong>SC</strong>ience <strong>– SY</strong>ria) and unfortunately it is not live anymore, it’s a long story why it’s not there anymore that involves politics too. On CSC-SY I was able to actually find a community that I fit it completely, many like-minded people all discussing computers, programming, algorithms, and all these stuff that I like, and actually discovering that community is the main reason that I entered the Informatics Engineering Faculty in Damascus University, because before that community I thought that people are still living in the dark in Syria. The forum on CSC-SY allowed me to ask a lot, and eventually I started answering a lot, and in a couple of years I became a moderator and then a manager of the forum, this was the place I hanged out everyday for at least 4 years.</p>
<p>Then in 2009 I joined StackOverflow and started finding answers to my questions there, and since then I’m a user of that platform and a part of that community.</p>
<p>Life before CSC-SY was hard, and it got way better when StackOverflow came into the picture, and now I can’t imagine the programming world without StackOverflow.</p>
<h2 id="section2">Together For a Better Life!</h2>
<p>I believe in paying the community back for the knowledge I get, in Islam we have the concept of <a href="https://en.wikipedia.org/wiki/Zakat" target="_blank">Zakat</a>, a great way of ensuring that each person contributes to the better of the community they live in, the contribution is based on what you have, and must be spent to those who need it and to make the whole community better. Many scholars have generalized this idea from money and valuable stocks to everything that can benefit the community, and knowledge is one of the biggest contributors to the prosperity of nations, and I believe that I have to pay back, to contribute, to pay it forward, too many names to one concept: <strong>Together For a Better Life!</strong>.</p>
<p>Now as a professional software developer I see that there are many ways for me to make life better, two main ways are in my opinion <strong>open source projects</strong> whether it is contributing to them, starting them, or maintaining them; the other one is <strong>spreading knowledge</strong> and that’s by me writing on my blog about the stuff I find interesting and might help someone, and by me answering questions on StackOverflow.</p>
<p>I’ve got some open source projects that I worked on or contributed to on my <a href="http://github.com/mpcabd" target="_blank">GitHub profile</a>, not much, but I try to keep it going, and whenever I see something that I can fix I don’t hesitate to fix it.</p>
<p>Also I don’t spend time on StackOverflow now the same way I used to spend time on CSC-SY, but that’s mainly because I’m now much busier than how I was 6 years ago, I only contributed around <a href="http://stackoverflow.com/users/99557/mpcabd?tab=answers" target="_blank">60 answers</a> now, but I try to open the site every couple of days and I check the questions there and try to help when I can.</p>
<p>In general I’m giving some time, even if it’s little, to the community of developers that I can benefit, and to the world by working on projects for a better life. I don’t think that I’ve covered my part of the Knowledge Zakat in any way, but I’m trying to cover more.</p>
<p>The community on StackOverflow and GitHub are paying it forward, keeping it going and making this world a better world to live in, everyone contributes amounts of knowledge and time, and no matter how small that amount is, the massive effect is really world changing, and the numbers on StackOverflow’s celebration page are a proof that humanity works together for the better of humanity itself.</p>
<p>So in the celebration of 10M questions on StackOverflow I would say: To humanity, to mankind, to life! Let’s all make it better! We’ve already done a great job! Let’s keep it going!</p>]]></content:encoded>
    </item>
    <item>
      <title>Verifying User Input – Thinking Outside The Box</title>
      <link>https://mpcabd.xyz/verifying-user-input-thinking-outside-the-box/</link>
      <pubDate>Fri, 31 Jul 2015 20:54:36 +0000</pubDate>
      <guid>https://mpcabd.xyz/verifying-user-input-thinking-outside-the-box/</guid>
      <description>&lt;p&gt;Now I’m not going to talk about user input validation, no that’s something that’s been covered a lot around the web, I’m going to talk about something else.&lt;/p&gt;
&lt;p&gt;Let’s imagine you are designing a game, where the user can create a puzzle, for example a maze, and you want to verify that what the user has input is a valid maze, that if played by another player that player will have a chance of winning it. Normally the solution that would come to your (and mine) mind is to try to solve that maze automatically – also we’re not going to talk about the different algorithms for solving mazes – but there is another way to do it that no one told us about in Algorithms 101!&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Now I’m not going to talk about user input validation, no that’s something that’s been covered a lot around the web, I’m going to talk about something else.</p>
<p>Let’s imagine you are designing a game, where the user can create a puzzle, for example a maze, and you want to verify that what the user has input is a valid maze, that if played by another player that player will have a chance of winning it. Normally the solution that would come to your (and mine) mind is to try to solve that maze automatically – also we’re not going to talk about the different algorithms for solving mazes – but there is another way to do it that no one told us about in Algorithms 101!</p>
<p>Guess what! You can verify it manually! Yes Yes I know this is super smart right? No one thought about it!</p>
<img class="aligncenter wp-image-446 size-full" src="http://mpcabd.xyz/wp-content/uploads/2015/07/smart-language-blog.jpg" alt="So smart ... duh" width="310" height="232" srcset="https://mpcabd.xyz/wp-content/uploads/2015/07/smart-language-blog.jpg 310w, https://mpcabd.xyz/wp-content/uploads/2015/07/smart-language-blog-300x225.jpg 300w" sizes="(max-width: 310px) 100vw, 310px" />
<p>Come one enough kidding, but yes verifying it manually will save you a lot of work and complexity, and will also mean that other people will have a good chance (not very high necessarily) of solving the puzzle, let’s face it, if a backtracking algorithm is able to solve a puzzle it doesn’t mean that people will be able to do so too, it might be very hard for people to find that solution, so the point here is that by verifying the puzzle manually you can ensure you give people a better and fair chance.</p>
<img class="aligncenter size-full wp-image-447" src="http://mpcabd.xyz/wp-content/uploads/2015/07/JCLdMDveAn.png" alt="Ain't nobody got time for dat" width="310" height="256" srcset="https://mpcabd.xyz/wp-content/uploads/2015/07/JCLdMDveAn.png 310w, https://mpcabd.xyz/wp-content/uploads/2015/07/JCLdMDveAn-300x248.png 300w" sizes="(max-width: 310px) 100vw, 310px" />
<p>Of course I’m not telling you to verify it yourself, that would be nonsense, this is not 1990s, when you would afford verifying user input yourself after you throw it in some queue, now everything seems to be built for the masses and you can’t afford sparing your time or buying someone else’s time to do so. Then what am I talking about?!</p>
<p>Well the idea is not mine unfortunately, I saw the idea in the latest game by <a href="http://www.zeptolab.com/" target="_blank">Zeptolab</a>, an <a href="https://en.wikipedia.org/wiki/Massively_multiplayer_online_game" target="_blank">MMO</a> strategy game called <a href="http://www.zeptolab.com/games/king_of_thieves/" target="_blank">King Of Thieves</a>.<figure id="attachment_443" style="width: 300px" class="wp-caption aligncenter"></p>
<p><a href="http://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-49.png" rel="lightbox[442]" title="Verifying User Input - Thinking Outside The Box"><img class="wp-image-443" src="http://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-49-300x169.png" alt="King Of Thieves Splash Screen" width="300" srcset="https://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-49-300x169.png 300w, https://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-49-1024x576.png 1024w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption class="wp-caption-text">King Of Thieves Splash Screen © 2015 Zeptolab</figcaption></figure></p>
<p>In this game you have a dungeon and a chest of gold and some gems, and like all the other strategy games, you get to design your defences to work the best way against your enemies (every other player out there!), and the goal of your design is to make reaching the chest of gold very hard for other thieves (players) who enter your dungeon, but <strong>not impossible or super hard</strong>, and that’s the catch; how do you verify that the user doesn’t make it extremely hard if not impossible for other players to reach his/her gems and gold?</p>
<p>The way the game creators solved it is a creative way – I’m not sure where it comes from and whether it is their original idea or it’s known in the game industry, but personally I only saw it in their game so far -, and this idea is to ask the user who designs the dungeon to prove that he/she can reach the chest within this design, if the user can’t solve the puzzle (reach the chest here), don’t allow him/her to save the design, and don’t run complex algorithms to check if the design is not an impossible design or a very hard design.<figure id="attachment_444" style="width: 300px" class="wp-caption aligncenter"></p>
<p><a href="http://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-09.png" rel="lightbox[442]" title="Verifying User Input - Thinking Outside The Box"><img class="wp-image-444" src="http://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-09-300x169.png" alt="King Of Thieves Splash Screen" width="300" srcset="https://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-09-300x169.png 300w, https://mpcabd.xyz/wp-content/uploads/2015/07/Screenshot_2015-07-31-19-03-09-1024x576.png 1024w" sizes="(max-width: 300px) 100vw, 300px" /></a><figcaption class="wp-caption-text">King Of Thieves Screenshot © 2015 Zeptolab</figcaption></figure></p>
<p>By doing this the user would have to play in his/her own dungeon trying to defeat his/her defences to reach the chest, and by doing so twice in a row we can be sure that other players stand a good and fair chance of solving this puzzle. One thing that might be of a problem is when the user can actually design a good puzzle but he/she is not yet experienced in this game to solve it, then he/she might need to make their designs easier so that they can save them; but for that the game creators saw a chance where they can make money and they would offer you a proven design that works and is hard in exchange of some valuable resource in the game or you can purchase that design for real money.</p>
<p>The other major benefit of this approach is that you end up with a solution to the puzzle – or more than one solution if the user tried two different approaches -, with detailed steps (because you tracked the user while he/she was trying to solve the puzzle). You can use this data to do two important things; 1. You can sell the solution to the players who are trying to solve this puzzle (and betray the user but that’s another moral story), 2. You got yourself a training set for your machine learning algorithms that will be able to mimic the human’s way of solving such puzzles after studying all these massive solutions (and the other ones that users come up with when solving other users’ puzzles themselves).</p>
<p>I find this very genius, don’t you think?!</p>
<p>You can apply this idea to other games where the user creates defences against intruders and still you want to give the intruders a chance not allowing the user to make it impossible for them, and you can generalize the idea to many puzzle games where the user sets up the puzzle for other users.</p>
<p>With this idea the creators of that game spared a lot of time, effort and money from being spent on verifying the user’s input, and I think it’s something that’s worth sharing and applying to other platforms, maybe not only to other games.</p>]]></content:encoded>
    </item>
    <item>
      <title>And we’re back</title>
      <link>https://mpcabd.xyz/and-were-back/</link>
      <pubDate>Fri, 06 Feb 2009 13:12:54 +0000</pubDate>
      <guid>https://mpcabd.xyz/and-were-back/</guid>
      <description>&lt;p&gt;After a month of not blogging, I’m back to blogging for Python.&lt;/p&gt;
&lt;p&gt;This month had a lot in it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Computer Science exams @ Damascus University, so I had to study a lot.&lt;/li&gt;
&lt;li&gt;Scientific Calculations Project, the project of this semester.&lt;/li&gt;
&lt;li&gt;FOSS Workshop, which my friends and I arranged to in Damascus, and it was more than wonderful.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After finishing my Scientific Calculations Project I made the choice of removing Windows for good from my computer, I’m going to make Ubuntu my only operating system to use.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>After a month of not blogging, I’m back to blogging for Python.</p>
<p>This month had a lot in it:</p>
<ul>
<li>Computer Science exams @ Damascus University, so I had to study a lot.</li>
<li>Scientific Calculations Project, the project of this semester.</li>
<li>FOSS Workshop, which my friends and I arranged to in Damascus, and it was more than wonderful.</li>
</ul>
<p>After finishing my Scientific Calculations Project I made the choice of removing Windows for good from my computer, I’m going to make Ubuntu my only operating system to use.</p>
<p>The workshop was more than I expected, I witnessed the great participation and work from my friends to make this workshop a successful story to be told.</p>
<p>You can see <a href="http://creativecommons.org/weblog/entry/12290" target="_blank">here</a> that the FOSS workshop was a notable event in Damascus and Syria.</p>
<blockquote>
<p>Ziad Maraqa, co-Project Lead from CC Jordan, spoke yesterday in Damascus at the <a href="http://www.csc-sy.net/node/9574">iCommunity FOSS Workshop</a>, a notable gathering for the Syrian Free Software community.</p>
</blockquote>
<p>And here are some articles about the event but they’re in Arabic:</p>
<p>Al Watan Newspaper:</p>
<p><a href="http://www.alwatan.sy/dindex.php?idn=50788">http://www.alwatan.sy/dindex.php?idn=50788</a></p>
<p><a href="http://www.alwatan.sy/dindex.php?idn=50843">http://www.alwatan.sy/dindex.php?idn=50843</a></p>
<p>eDamscus:</p>
<p><a href="http://www.edamascus.sy/_activities.php?filename=200902021845011">http://www.edamascus.sy/_activities.php?filename=200902021845011</a></p>
<p><a href="http://www.edamascus.sy/_business.php?filename=200902031620011">http://www.edamascus.sy/_business.php?filename=200902031620011</a></p>
<p><a href="http://www.edamascus.sy/_news.php?filename=200902041650013">http://www.edamascus.sy/_news.php?filename=200902041650013</a></p>
<p><a href="http://www.edamascus.sy/_news.php?filename=200902060300011">http://www.edamascus.sy/_news.php?filename=200902060300011</a></p>
<p>Thank you all for waiting a month 🙂</p>
<p>I’m Learning Python part 8 will be here soon.</p>]]></content:encoded>
    </item>
    <item>
      <title>Just a month</title>
      <link>https://mpcabd.xyz/just-a-month/</link>
      <pubDate>Fri, 19 Dec 2008 21:43:21 +0000</pubDate>
      <guid>https://mpcabd.xyz/just-a-month/</guid>
      <description>&lt;p&gt;I’m sorry to announce that I won’t be able to post any posts until the end of January 2009, and that’s because of my university exams 🙂&lt;/p&gt;
&lt;p&gt;Thank you for visiting me, and see ya soon 😉&lt;/p&gt;
&lt;p&gt;P.S.&lt;/p&gt;
&lt;p&gt;Wish me luck and high marks 😀&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I’m sorry to announce that I won’t be able to post any posts until the end of January 2009, and that’s because of my university exams 🙂</p>
<p>Thank you for visiting me, and see ya soon 😉</p>
<p>P.S.</p>
<p>Wish me luck and high marks 😀</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
