-
Notifications
You must be signed in to change notification settings - Fork 0
/
index3.html
414 lines (395 loc) · 27.4 KB
/
index3.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!DOCTYPE html>
<html lang="en">
<head>
<link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="http://www.emadmokhtar.com/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="http://www.emadmokhtar.com/theme/stylesheet/pygments.min.css">
<link rel="stylesheet" type="text/css" href="http://www.emadmokhtar.com/theme/stylesheet/font-awesome.min.css">
<link href="http://www.emadmokhtar.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Emad Mokhtar's Framework Atom">
<link href="http://www.emadmokhtar.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Emad Mokhtar's Framework RSS">
<link rel="shortcut icon" href="http://www.emadmokhtar.com/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="http://www.emadmokhtar.com/images/favicon.ico" type="image/x-icon">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="" />
<meta name="author" content="Emad Mokhtar" />
<meta name="description" content="My thoughts and experince on software development and life." />
<meta property="og:site_name" content="Emad Mokhtar's Framework"/>
<meta property="og:type" content="blog"/>
<meta property="og:title" content="Emad Mokhtar's Framework"/>
<meta property="og:description" content="My thoughts and experince on software development and life."/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="http://www.emadmokhtar.com"/>
<meta property="og:image" content="http://www.emadmokhtar.com/images/profile.jpg">
<title>Emad Mokhtar's Framework</title>
</head>
<body>
<aside>
<div>
<a href="http://www.emadmokhtar.com">
<img src="http://www.emadmokhtar.com/images/profile.jpg" alt="" title="">
</a>
<h1><a href="http://www.emadmokhtar.com"></a></h1>
<p>Geek developer who's in search of code perfection.</p>
<nav>
<ul class="list">
<li><a href="http://www.emadmokhtar.com">Blog</a></li>
<li><a href="http://www.emadmokhtar.com/pages/podcasts.html#podcasts">Podcasts</a></li>
<li><a href="http://www.emadmokhtar.com/pages/projects.html#projects">Projects</a></li>
<li><a href="https://emadmokhtar.github.io/resume" target="_blank">Resume</a></li>
</ul>
</nav>
<ul class="social">
<li><a class="sc-envelope-o" href="mailto:emad@emadmokhtar.com" target="_blank"><i class="fa fa-envelope-o"></i></a></li>
<li><a class="sc-github" href="https://www.github.com/EmadMokhtar" target="_blank"><i class="fa fa-github"></i></a></li>
<li><a class="sc-linkedin" href="https://www.linkedin.com/in/emadmokhtar/" target="_blank"><i class="fa fa-linkedin"></i></a></li>
<li><a class="sc-stack-overflow" href="http://stackoverflow.com/users/373051/emad-mokhtar" target="_blank"><i class="fa fa-stack-overflow"></i></a></li>
<li><a class="sc-facebook" href="https://www.facebook.com/emadmokhtarframework/" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a class="sc-twitter" href="https://twitter.com/emadmokhtar" target="_blank"><i class="fa fa-twitter"></i></a></li>
</ul>
</div>
</aside>
<main>
<nav>
<a href="http://www.emadmokhtar.com">Home</a>
<a href="https://emadmokhtar.github.io/resume">Resume</a>
<a href="http://www.emadmokhtar.com/feeds/all.atom.xml">Atom</a>
<a href="http://www.emadmokhtar.com/feeds/all.rss.xml">RSS</a>
</nav>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/extend-django-user-model-and-generic-class-based-view-gcbv.html#extend-django-user-model-and-generic-class-based-view-gcbv">Extend Django User Model and Generic Class Based View "GCBV"</a></h2>
<p>
Posted on Fri 18 December 2015 in <a href="http://www.emadmokhtar.com/category/django.html">Django</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/django.html">Django</a>, <a href="http://www.emadmokhtar.com/tag/python.html">Python</a> • <a href="http://www.emadmokhtar.com/extend-django-user-model-and-generic-class-based-view-gcbv.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p><img alt="1450356512_full.png" src="http://www.emadmokhtar.com/images/1450356512_full.png"> When I started to learn Django, I used to use the function based view aka FBV and in my current project I decided to learn class based view CBV, I watched one <a href="https://www.youtube.com/watch?v=BJiOERA49ZQ">DjangoCon videos by Andrew Pinkham</a> to make this easier on me, and if you tried or planning to learn CBV, you will be confused about the class based views and the generic class based views inside Django, it’s some many of them, please watch the video to get your head around it. OK, now I’ve done my homework and it’s time to use CBV, believe me it’s easy and you will find the number of code lines inside our views will be decreased specially if you use GCBV. User Model and GCBV </p>
<h1>What is the relation between GCBV and User Model?</h1>
<p>Great question, while I’m working with one of my models fro example her the Teacher model, and teacher will has a user credentials in order to user the app. The easiest and the straightforward way is to make one-to-one relation with <a href="https://github.com/django/django/blob/53ccffdb8c8e47a4d4304df453d8c79a9be295ab/django/contrib/auth/models.py">django.contrib.auth.models.User</a> please read the quote from Django documentation: </p>
<blockquote>
<p>There are two ways to extend the default User …</p></blockquote>
<a class="btn" href="http://www.emadmokhtar.com/extend-django-user-model-and-generic-class-based-view-gcbv.html#extend-django-user-model-and-generic-class-based-view-gcbv">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/my-journey-from-paper-note-to-paperless-note.html#my-journey-from-paper-note-to-paperless-note">My journey from paper note to paperless note</a></h2>
<p>
Posted on Sun 13 December 2015 in <a href="http://www.emadmokhtar.com/category/developer.html">Developer</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/notes.html">notes</a>, <a href="http://www.emadmokhtar.com/tag/papreless.html">papreless</a> • <a href="http://www.emadmokhtar.com/my-journey-from-paper-note-to-paperless-note.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p><a href="http://www.emadmokhtar.com/wp-content/uploads/1450004669_full.png"><img alt="paperless note on iPad" src="http://www.emadmokhtar.com/images/1450004669_full.png"></a></p>
<p>I really love to take notes wherever and wheneve. I like to keep my notes with me, but after buying iPad mini I decide to change my note tool from paper notes to paperless notes (e-notes), but I like to hand writing my notes I want something that feels like paper notes.</p>
<h3>Searching for the tool</h3>
<p>I thought of buying a stylus for iPad that feels like real pen and start taking notes, first I found <a href="https://www.fiftythree.com/pencil">fiftythree Pencil</a> but it was built mainly for designers not for writing, then I found The best stylus for me is the <a href="http://www.adonit.net/jot/script/">Jot Script</a> but it is expensive but it has the best writing experience and best accuracy. This is for the stylus, for the application I searched about note application that can enhance my writing accuracy, I found two note apps:</p>
<ul>
<li>
<p><a href="http://evernote.com/penultimate/">Penultimate Evernote</a></p>
<ul>
<li>
<p>Free</p>
</li>
<li>
<p>Sync with Evernote</p>
</li>
<li>
<p>Zoom in and write with line recognition</p>
</li>
</ul>
</li>
<li>
<p><a href="http://www.goodnotesapp.com/">Goodnotes</a></p>
<ul>
<li>
<p>Paid (but worth every penny)</p>
</li>
<li>
<p>Backup with most of cloud storages like Google Driver, Dropbox, & OneDrive. </p>
</li>
<li>
<p>Pen size & color customization. </p>
</li>
<li>
<p>Palm rest and palm rejection. </p>
</li>
<li>
<p>Add annotations to PDF files.</p>
</li>
<li>
<p>Writing panel.</p>
</li>
<li>
<p>Shape recognition.</p>
</li>
</ul>
</li>
</ul>
<h3>My final tools</h3>
<p><strong>Device:</strong> iPad mini with retina display.<br>
<strong>Note App:</strong> Goodnotes.<br>
<strong>Stylus:</strong> <a href="http://www.moshi.com/peripheral-stylus-pen-stanza-duo">Moshi …</a></p>
<a class="btn" href="http://www.emadmokhtar.com/my-journey-from-paper-note-to-paperless-note.html#my-journey-from-paper-note-to-paperless-note">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/solution-for-psycopg2-installation-error-with-mac-osx-el-capitan.html#solution-for-psycopg2-installation-error-with-mac-osx-el-capitan">Solution for psycopg2 installation error with Mac OSX El Capitan</a></h2>
<p>
Posted on Sun 11 October 2015 in <a href="http://www.emadmokhtar.com/category/development.html">Development</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/developement.html">developement</a>, <a href="http://www.emadmokhtar.com/tag/macosx.html">macosx</a> • <a href="http://www.emadmokhtar.com/solution-for-psycopg2-installation-error-with-mac-osx-el-capitan.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<h1>The Issue</h1>
<p>If you tried to install to install psycopg2 package after upgrading to Mac OSX El Capitan and got an error like this: </p>
<div class="highlight"><pre><span></span><span class="n">xcrun</span><span class="o">:</span> <span class="n">error</span><span class="o">:</span> <span class="n">invalid</span> <span class="n">active</span> <span class="n">developer</span> <span class="n">path</span> <span class="o">(/</span><span class="n">Library</span><span class="sr">/Developer/</span><span class="n">CommandLineTools</span><span class="o">),</span>
<span class="n">missing</span> <span class="n">xcrun</span> <span class="n">at</span><span class="o">:</span> <span class="sr">/Library/Developer/CommandLineTools/usr/bin/x</span><span class="n">crun</span>
</pre></div>
<p><img alt="pip.log" src="http://www.emadmokhtar.com/images/1444569163_full.png"></p>
<h1>The Soltuion:</h1>
<p>Simplly install Command-Line Tools:</p>
<p><code>sudo xcode-select --install</code></p>
<a class="btn" href="http://www.emadmokhtar.com/solution-for-psycopg2-installation-error-with-mac-osx-el-capitan.html#solution-for-psycopg2-installation-error-with-mac-osx-el-capitan">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/codewarscom-can-improve-your-problem-solving-skill.html#codewarscom-can-improve-your-problem-solving-skill">CodeWars.com Can Improve Your Problem Solving Skill</a></h2>
<p>
Posted on Mon 05 October 2015 in <a href="http://www.emadmokhtar.com/category/developer.html">Developer</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/codeing.html">codeing</a>, <a href="http://www.emadmokhtar.com/tag/skills.html">skills</a>, <a href="http://www.emadmokhtar.com/tag/problem-solving.html">problem solving</a> • <a href="http://www.emadmokhtar.com/codewarscom-can-improve-your-problem-solving-skill.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p><img alt="Codewars logo" src="http://www.emadmokhtar.com/images/1444038896_full.png"></p>
<p>Recently I posted that <a href="http://www.emadmokhtar.com/2015/05/warning-your-daily-job-can-kill-your-skills/">your daily job can kill your skills</a>, and I mentioned specifically the problem solving skill, as a software developer problem solving skill is one of the most important and key skill you need to master to be a good developer, in the post I mentioned that I started to solve code puzzles on <a href="http://codeeval.com/">CodeEval.com</a>, it is good but during one of <a href="https://www.livecoding.tv">livecoding.tv</a> session the developer mentioned <a href="http://codewars.com/">CodeWars.com</a> and I thought to give it a try, so I signed in and start to solve some puzzles aka katas and get higher in rank, and I discovered the differences and why <a href="http://codewars.com/">CodeWars.com</a> is better from my perspective. </p>
<h2>CodeWars advantages</h2>
<p>In CodeWars you’ll start to solve puzzles (it’s called kata) from starting rank (easy katas) toward much harder ones and this is common in code puzzles website, but what is special about CodeWars:</p>
<ol>
<li><strong>Check others solutions: </strong>After post your solution you can view others solutions, and this can really help you in crafting the skill, for example you solved one kata and after you checked others solutions, you discovered better solutions “WOW these guys solved it in very clean way", and now you …</li></ol>
<a class="btn" href="http://www.emadmokhtar.com/codewarscom-can-improve-your-problem-solving-skill.html#codewarscom-can-improve-your-problem-solving-skill">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/solo-developer.html#solo-developer">Solo Developer</a></h2>
<p>
Posted on Wed 08 July 2015 in <a href="http://www.emadmokhtar.com/category/developer.html">Developer</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/developer.html">developer</a>, <a href="http://www.emadmokhtar.com/tag/programming.html">programming</a> • <a href="http://www.emadmokhtar.com/solo-developer.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p>Developers and coders are known as anti-social but after many years in development field, I can tell you this is totally wrong and developers who can communicate well are good developers they can learn and understand what they are really doing, if you read soft skills books for developers, sure you will find chapter about communications and How to be a part of software development team, but if you can’t communicate with your teammate you’ll always work lonely and gain nothing more than loneliness and coding in the dark.</p>
<p>Since I joined the software industry 4+ years, and I’m working, coding, and developing alone, I read about pair programming in XP “eXtreme Programming” and daily standup meetings in SCRUM, and How it can increase the quality and productivity of teams, but I didn’t experience those, I never pair programming and never being in one of Agile methodologies, but I’m trying to think with someone else not in the same team and not a developer, but it worth trying because it’s really amazing, you’ll feel like you have two extra minds, yes as you read it, it is like 1 + 1 = 3.</p>
<p>If you …</p>
<a class="btn" href="http://www.emadmokhtar.com/solo-developer.html#solo-developer">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/initial-review-becoming-steve-jobs.html#initial-review-becoming-steve-jobs">Initial Review: Becoming Steve Jobs</a></h2>
<p>
Posted on Mon 18 May 2015 in <a href="http://www.emadmokhtar.com/category/review.html">Review</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/book.html">book</a>, <a href="http://www.emadmokhtar.com/tag/review.html">review</a> • <a href="http://www.emadmokhtar.com/initial-review-becoming-steve-jobs.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p><img alt="Becomming Steve Jobs book cover" src="http://www.emadmokhtar.com/images/1431938096_full.jpeg"></p>
<p>Until now I finished 35% of <a href="http://www.amazon.com/gp/product/0385347405/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=0385347405&linkCode=as2&tag=monsblo08-20&linkId=2SJY4Q5N7KFZ52DB">Becoming Steve Jobs: The Evolution of a Reckless Upstart into a Visionary Leader</a> book, and I don’t find Steve Jobs a successful entrepreneur or even a leader. Apple's first success because of Apple I which is Steve Wozniak idea and engineered by him as well, and Pixar was succeed because of its leader not Steve Jobs, in fact Steve Jobs was the reason for projects like (Apple III, Macintosh, and NeXT workstations) to fail, and was trying to make Pixar the next failure but its leaders keep him away and done what they knew it's right for Pixar. In the nutshell Steve Jobs is bad micromanager that you shouldn't dream to be like him, for me he is a fake leader.<br>
I’ll continue the book to see How did he turn to be the visionary leader after that :)</p>
<a class="btn" href="http://www.emadmokhtar.com/initial-review-becoming-steve-jobs.html#initial-review-becoming-steve-jobs">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/free-django-hosting.html#free-django-hosting">Free Django hosting</a></h2>
<p>
Posted on Sun 19 April 2015 in <a href="http://www.emadmokhtar.com/category/django.html">Django</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/django.html">django</a>, <a href="http://www.emadmokhtar.com/tag/python.html">python</a> • <a href="http://www.emadmokhtar.com/free-django-hosting.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p>If you developed Django application and want to deploy/publish it to the web you can check this list of Django friendly (http://djangofriendly.com/hosts/), but if you want a free hosting you can use <a href="https://www.pythonanywhere.com/pricing/">Python Anywhere free hosting</a>, I’m using it for <a href="http://www.emadmokhtar.com/my-first-django-app.html">my Django app</a> and I’m very comfortable with but before using the free hosting please consider the following:</p>
<ol>
<li>They provide only MySQL for free hosting, so if you developed your app using PostgreSQL or SQLite, please download the correct driver.</li>
<li>Application URL must be sub-domain of pythonanywhere.com, example my-app.pythonanywhere.com</li>
<li>I’ll host one application only.</li>
<li>No full access to a machine, you’ll deploy your application using console, use the console to install your virtual environment and packages, and edit some code using their in-browser code editor.</li>
</ol>
<h1>How to deploy?</h1>
<ol>
<li>First go to this <a href="https://www.pythonanywhere.com/registration/register/beginner/"><span
class="s2">link</a>
and register your free account, then </li>
<li>Go to your dashboard, and select
Consoles tab.</li>
<li>Click on Python 2.7 (I personally still using
python 2.7 but if you want select python 3.3) to open a
new console.</li>
<li>New console will open in your browser.</li>
<li>Start by creating your <a href="http://www.emadmokhtar.com/2015/03/virtual-environment/">virtualenv</a> and install the required packages …</li></ol>
<a class="btn" href="http://www.emadmokhtar.com/free-django-hosting.html#free-django-hosting">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/my-first-django-app.html#my-first-django-app">My First Django App</a></h2>
<p>
Posted on Mon 16 March 2015 in <a href="http://www.emadmokhtar.com/category/django.html">Django</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/django.html">django</a>, <a href="http://www.emadmokhtar.com/tag/python.html">python</a>, <a href="http://www.emadmokhtar.com/tag/sideproject.html">sideproject</a> • <a href="http://www.emadmokhtar.com/my-first-django-app.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p>I'm starting to use Django and Python to develop web applications, I really love Django and during my learning process I thought I can build something while learning, and I had one idea keep it on hold as side project so I decided it's time to build it.</p>
<h1>The Idea</h1>
<p>Me and my wife have our financial system which is dividing the monthly budget into a weekly budget, most of us make budget on monthly basis because we get paid on monthly basis, but imagine your budget will be on weekly basis, it’s like every week is new budget and new start, and in order to keep track of the weekly budget you need to know how much you need to spend in a week. To be honest in the first we made a lot of mistakes but at the end we found out how much we need to spend weekly, and this need analysis with trial and error for at least one month then you will master your weekly budgeting.</p>
<p>Now the idea is build a system that can keep track of your payments or expenses against your estimated budget for a week. The application name is <strong>Ma3ana …</strong></p>
<a class="btn" href="http://www.emadmokhtar.com/my-first-django-app.html#my-first-django-app">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/virtual-environment.html#virtual-environment">Virtual Environment</a></h2>
<p>
Posted on Sun 01 March 2015 in <a href="http://www.emadmokhtar.com/category/python.html">Python</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/django.html">django</a>, <a href="http://www.emadmokhtar.com/tag/pip.html">pip</a>, <a href="http://www.emadmokhtar.com/tag/python.html">python</a>, <a href="http://www.emadmokhtar.com/tag/virtualenv.html">virtualenv</a> • <a href="http://www.emadmokhtar.com/virtual-environment.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p>While leaning web developing using Django and Python, I found out
VirtualEnv or Virtual Environment is widely used, in first I didn't get
it because I came from Microsoft .NET Framework development platform, so
I thought of writing a post about it to make simple.</p>
<h2>What is Virtual Environment?</h2>
<p>VirtualEnv or Virtual Environment is a way to create isolated
development environment each one has it's own packages and specific
package version, for example VirEnv1 has Django 1.6 and VirEnv2 has
Django 1.7, this isolation will keep your project packages dependency
clear, isolated, and as I'll show you below that you can replicate the
environment with one command and file, so if you work in team it's easy
to share the same environment among the
team.</p>
<p><img alt="virtualenv 1" src="http://www.emadmokhtar.com/images/Screenshot-from-2015-03-01-193423.png">
<img alt="virtualenv 2" src="http://www.emadmokhtar.com/images/Screenshot-from-2015-03-01-193318.png"></p>
<h2>How to install VirtualEnv?</h2>
<p>VirtualEnv is a python package so to install is you need to install pip
first.</p>
<ol>
<li>
<p>Open terminal and type the following command</p>
<p><code>sudo apt-get install python-pip</code></p>
</li>
<li>
<p>After finish installing pip type the following command to install
virtual environment</p>
<p><code>sudo pip install virtualenv</code></p>
</li>
<li>
<p>After finish installing virtualenv, type the following command to
create folder to store your virtual environments</p>
<p><code>mkdir .virtualenvs</code></p>
</li>
</ol>
<h2>How to create virtualenv?</h2>
<p>After install virtualenv you are …</p>
<a class="btn" href="http://www.emadmokhtar.com/virtual-environment.html#virtual-environment">Continue reading</a>
</div>
<hr />
</article>
<article>
<header>
<h2><a href="http://www.emadmokhtar.com/fictions-for-developers.html#fictions-for-developers">Fictions for Developers</a></h2>
<p>
Posted on Thu 13 November 2014 in <a href="http://www.emadmokhtar.com/category/developer.html">Developer</a>
• Tagged with
<a href="http://www.emadmokhtar.com/tag/developer.html">developer</a>, <a href="http://www.emadmokhtar.com/tag/geek.html">geek</a> • <a href="http://www.emadmokhtar.com/fictions-for-developers.html#disqus_thread">Leave a comment</a>
</p>
</header>
<div>
<p><img alt="blackhole" src="http://www.emadmokhtar.com/images/blackhole.jpg"></p>
<p><strong><a href="http://www.timothyferriss.com/">Tim Ferriss</a></strong> recommended in his
<strong><a href="http://www.amazon.com/4-Hour-Work-Week-Escape-Anywhere-ebook/dp/B002WE46UW/ref=sr_1_1?ie=UTF8&qid=1415863625&sr=8-1">4-Hours
Workweek</a></strong>
book to read fiction books before sleep and this will help you
disconnected from the real world and jump in book world which lead to
better sleep.</p>
<p>Last Monday I went to watch the
<strong><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CCgQFjAD&url=http%3A%2F%2Fwww.imdb.com%2Ftitle%2Ftt0816692%2F&ei=u11kVPXNFIuV7AbVy4DoDw&usg=AFQjCNEwQcJ-old_Ha_400cEjFgIpjPT5g&sig2=fksmaVPQ1mq71ghUjTkRSQ&bvm=bv.79189006,d.ZGU">Interstellar</a></strong>
movie with my wife and it was like reading fiction book before sleep,
the movie is 3 hours long which is unique nowadays and full of science
and psychics, but the story is full of fiction and the soundtracks are
incredible. After we finished the movie I looked at my watch and WOW 3
hours passed and I felt like I was inside the movie and flying in the
space, the time passed by and all my inner thoughts, to do lists,
project plans, pending households, and life events are vanished and I’m
totally inside the movie, in other words I’m totally disconnected from
the real world. I felt fresh even though that it’s 12:00 AM and I have a
work to go in the morning, but I felt fresh and my mind is clear and
this give me chance to start my day so fresh, plus now I want to read
more about …</p>
<a class="btn" href="http://www.emadmokhtar.com/fictions-for-developers.html#fictions-for-developers">Continue reading</a>
</div>
</article>
<div class="pagination">
<a class="btn" href="http://www.emadmokhtar.com/index4.html">
<i class="fa fa-angle-left"></i> Older Posts
</a>
<a class="btn float-right" href="http://www.emadmokhtar.com/index2.html">
Newer Posts <i class="fa fa-angle-right"></i>
</a>
</div>
<footer>
<p>© Emad Mokhtar </p>
<p>Built using <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a></p> </footer>
</main>
<!-- Google Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-11401860-2', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Emad Mokhtar's Framework ",
"url" : "http://www.emadmokhtar.com",
"image": "http://www.emadmokhtar.com/images/profile.jpg",
"description": "My thoughts and experince on software development and life."
}
</script><script type="text/javascript">
var disqus_shortname = 'emadmokhtarsframework';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>