miniflux-legacy/vendor/fguillot/picofeed/tests/fixtures/hamakor.xml

528 lines
68 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>פלאנט תוכנה חופשית בישראל (Planet FOSS-IL)</title>
<link rel="self" href="http://planet.hamakor.org.il/atom.xml"/>
<link href="http://planet.hamakor.org.il"/>
<id>http://planet.hamakor.org.il/atom.xml</id>
<updated>2014-12-22T02:31:42+00:00</updated>
<generator uri="http://www.planetplanet.org/">Planet/2.0 +http://www.planetplanet.org</generator>
<entry xml:lang="he">
<title type="html">סינטרה מודולרית</title>
<link href="http://idkn.wordpress.com/2014/12/20/modular-sinatra/"/>
<id>http://idkn.wordpress.com/?p=7223</id>
<updated>2014-12-20T20:00:02+00:00</updated>
<content type="html">&lt;p&gt;ב2012 ניסיתי ליצור פוסטים בנושא של &lt;a href=&quot;http://idkn.wordpress.com/2012/11/19/advanced-usage-in-sinatra-first-part/&quot;&gt;כיצד ניתן להגיע למצב הדומה לrails עם סינטרה&lt;/a&gt;.&lt;br /&gt;
בשל חוסר סבלנות וזמן, זנחתי את הפוסט, אבל לא את הרעיון לבצע אותו.&lt;br /&gt;
למעשה זה היה רעיון טוב מאוד לזנוח אותו בזמנו, היות ואז הייתי עושה דברים לא נכון, וכיום יש לי יותר ידע וניסיון בנושא, וגם איך לעבוד נכון יותר, וכן גם גרסת הרובי מאפשרת לנו לעבוד קל יותר.&lt;/p&gt;
&lt;p&gt;באותו הזמן של הרצון לחזור ולכתוב על הנושא, מצאתי את עצמי זקוק בדחיפות למערכת שתסייע לי לדבג API שאני יוצר בפרוייקט שמתבצע באמצעות REST, אז החלטתי לצרף שני צרכים עם דבר אחד.&lt;/p&gt;
&lt;p&gt;הרעיון שלי הוא למעשה שרת אשר משמש לקוח בדיקות עבור REST, כך שאפשר להתקין אותו על שרת כלשהו בארגון וכולם יכולים להשתמש בו, במקום תוכנה מקומית על המחשב.&lt;/p&gt;
&lt;p&gt;הקוד שלי די ממוקד לרובי 2.1 (אני מקווה כי גם מעלה, 2.2 נראה שיתמוך בקוד שלי), ופחות מזה, יצעק לכם על מספר דברים, אשר בקלות ניתן לפתור, אך ראו הוזהרתם.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://github.com/ik5/ruby_rest_wui&quot;&gt;התחלתי ליצור את הפרוייקט&lt;/a&gt;, והוא עובד עם סינטרה, ומחזיק נכון לכתיבת הפוסט שלוש מחלקות שונות בשביל ביצוע routing.&lt;br /&gt;
בנוסף, יצרתי לעצמי מבנה ספריות המתאימות למה שאני רוצה לבצע, לפי לוגיקה, כך שהלוגיקה השייכת לממשק, &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/tree/master/logic&quot;&gt;נמצאת כאן&lt;/a&gt;, בעוד ש&lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/tree/master/config&quot;&gt;ההגדרות בכלל נמצאות כאן&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://rack.github.io/&quot;&gt;אנחנו משתמשים בRack&lt;/a&gt; בעצם, היות וכמעט וכל הframeworks עבור בניית מערכות web ברובי משתמשים בו, אנו זקוקים לקובץ קבוע בשם &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/config.ru&quot;&gt;config.ru&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;הקובץ הזה, בעצם אחראי על התחלת השרת, וטעינה של המערכת שלנו, כאשר הוא תומך בטעינה של יותר ממערכת אחת בו זמנית, כולל שני framework או יותר, אך נכון לגרסה הנוכחית, אני משתמש בו רק עבור Sinatra.&lt;/p&gt;
&lt;p&gt;אני משתמש גם ב &lt;a href=&quot;http://bundler.io/&quot;&gt;Bundler&lt;/a&gt; לניהול תלויות, אשר מאפשר לנו גם לדאוג לצעוק על דברים שלא נטענו, ובעיקר עושה לנו סדר של גרסאות של תלויות, ובכך שדברים לא יתנגשו אחד בשני.&lt;/p&gt;
&lt;p&gt;לאחר טעינת התלויות, אני טוען קובץ בודד בשם app.rb שהוא בעצם מה שמנהל את האפליקציה שלי. אך במקום להשתמש ב &lt;a href=&quot;http://ruby-doc.org/core-2.1.5/Kernel.html#method-i-require&quot;&gt;require&lt;/a&gt; &amp;quot;רגיל&amp;quot;, אני משתמש בפונקציה בשם &lt;a href=&quot;http://ruby-doc.org/core-2.1.5/Kernel.html#method-i-require_relative&quot;&gt;require_relative&lt;/a&gt;, אשר מאפשרת לטעון דברים מהמיקום הנוכחי של הקובץ המנסה לטעון אותה.&lt;/p&gt;
&lt;p&gt;כל הקסם של ניהול מספר מחלקות, נעוץ אצלי ב &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/logic/app.rb&quot;&gt;app.rb&lt;/a&gt;.&lt;br /&gt;
אני יצרתי אותו שיהיה מאוד פשוט &amp;#8211; טען לי את המחלקות האחרון והכנס אותן לסביבת העבודה של רובי, על ידי שימוש ב &lt;a href=&quot;https://github.com/sinatra/sinatra/blob/v1.4.5/lib/sinatra/base.rb#L1406&quot;&gt;use&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;למערכת שיצרתי ישנם שני מצבים &amp;#8211; מערכת לדיבוג REST, ומערכת &amp;quot;בדיקות&amp;quot; אשר עליה אפשר לבדוק שדברים עובדים, והיא בעיקר על תקן &amp;quot;echo&amp;quot; כלשהו.&lt;/p&gt;
&lt;p&gt;את המערכת של יצירת המסכים, ושליחת ה REST, יצרתי בקובץ &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/logic/rest.rb&quot;&gt;rest.rb&lt;/a&gt;, והכל מאוגד שם.&lt;br /&gt;
יש שם משהו שהולך לעבור למקום אחר בקרוב, וזה מספר מתודות לסיוע בפעולות.&lt;/p&gt;
&lt;p&gt;הקובץ לביצוע הבדיקות, קיבל את השם &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/logic/testing.rb&quot;&gt;tests.rb&lt;/a&gt;, והוא מי שמנהל את כל הניתובים בנושא.&lt;br /&gt;
הגרסה הבאה, הולכת לגרום לו להיות גנרי יותר, מצד אחד, וגמיש יותר מצד שני, ובכך הכוח של סינטרה יכנס ממש לפעולה, עם ניתובים ממש דינאמיים וחכמים.&lt;/p&gt;
&lt;p&gt;Sinatra תומך במשהו אשר קיבל את השם &lt;a href=&quot;http://www.sinatrarb.com/intro.html#Helpers&quot;&gt;Helpers&lt;/a&gt;, וזה מתודות אשר מסייעות לנו לבצע דברים, בצורה שלא נהיה צריכים לחזור עליה כל פעם, וזה זמין גם ל view שלנו, ובגרסה הבאה שאשחרר (נכון לכתיבת הפוסט), המידע יעבור לקובץ בשם helpers.rb ואיתו עובדים קצת שונה ברובי.&lt;/p&gt;
&lt;p&gt;כל מחלקה של סינטרה, מחזיקה חלק של &lt;a href=&quot;http://www.sinatrarb.com/intro.html#Configuration&quot;&gt;configure&lt;/a&gt; משל עצמה, שזה טוב ורע באותו הזמן. זה טוב, כי זה מספק גמישות, אבל זה רע, כי לפעמים יש לנו קצת חזרה על עצמנו.&lt;/p&gt;
&lt;p&gt;במקרה הזה, הגדרתי כי במצב של :development משתמשים ב &lt;a href=&quot;http://www.sinatrarb.com/contrib/reloader.html&quot;&gt;Sinatra::Reloader&lt;/a&gt;, אשר מגיע עם &lt;a href=&quot;http://www.sinatrarb.com/contrib/reloader.html&quot;&gt;Sinatra-Contrib&lt;/a&gt; &amp;#8211; תת פרוייקט המספק הרבה כלי עזר לדברים שונים.&lt;br /&gt;
הסיבה לשימוש ב Reloader הוא לא לאתחל את השרת בכל שינוי שעושים למחלקה של סינטרה, כאשר Reloader מגלה כי התוכן של הקובץ השתנה, הוא גורם ל rack לטעון אותו שוב, וככה אנחנו לא זקוקים לטעינה מחודשת של השרת עצמו.&lt;/p&gt;
&lt;p&gt;המערכת שכתבתי, משתמשת ב template בשם &lt;a href=&quot;http://haml.info/&quot;&gt;haml&lt;/a&gt;, למעשה פעם ראשונה אשר אני משתמש בה מרצון. תוכלו למצוא את ה &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/views/layout.haml&quot;&gt;layout.haml&lt;/a&gt; שהוא המסגרת הרגילה וכן כרגע קובץ בשם &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/views/index.haml&quot;&gt;index.haml&lt;/a&gt; תחת ספריית &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/tree/master/views&quot;&gt;view&lt;/a&gt;.&lt;br /&gt;
ועבור העיצוב, אני משתמש ב &lt;a href=&quot;http://foundation.zurb.com/&quot;&gt;Foundation 5&lt;/a&gt;, אשר אני אוהב אותה יותר מאשר bootstrap.&lt;br /&gt;
עבור Javascript יש גם את jQuery וגם את &lt;a href=&quot;http://idkn.wordpress.com/2014/11/04/knockout-js/&quot;&gt;knockout.js&lt;/a&gt;, כאשר אני נעזר גם ב &lt;a href=&quot;https://lodash.com/&quot;&gt;lodash.js&lt;/a&gt; למספר דברים פשוטים, והיא מספקת בעצם גרסה שעברה אופטימיזציה ל underscore.&lt;/p&gt;
&lt;p&gt;את הקבצים של Foundation, וכל ה Javascript ניתן למצוא תחת &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/tree/master/public&quot;&gt;public&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;דבר אחרון שנשאר לספר עליו הוא שאני משתמש במשהו אשר נקרא &lt;a href=&quot;http://puma.io/&quot;&gt;puma&lt;/a&gt;.&lt;br /&gt;
מה זה ?&lt;br /&gt;
puma הוא משהו שלוקח את rack וגורם לו להיות שרת לכל דבר ועניין, אשר ניתן לבצע עליו חיבור לשרתי HTTP שונים, כדוגמץ apache או nginx.&lt;br /&gt;
החיבור נעשה על ידי הגדרת proxy בשרתים.&lt;/p&gt;
&lt;p&gt;ההגדרות של puma, נמצאות תחת config, וכפי שניתן לראות את &lt;a href=&quot;https://github.com/ik5/ruby_rest_wui/blob/master/config/puma.rb&quot;&gt;הקובץ הראשי והחשוב&lt;/a&gt;, הוא גם יודע לבנות לעצמו מבנה ספריות במידה והן לא קיימות, דבר שהוספתי לקוד עצמו. הוא כרגע מכוון למצב של development, ולכן יש לשנות קצת הגדרות בשביל שזה יעבור למצב production.&lt;/p&gt;
&lt;p&gt;אתם מוזמנים לבצע fork, לשחק עם הקוד וגם להחזיק לי תיקונים ותוספות.&lt;/p&gt;&lt;br /&gt;תויק תחת:&lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/%d7%a4%d7%99%d7%aa%d7%95%d7%97/ruby/&quot;&gt;Ruby&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/ui/&quot;&gt;ui&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/operating-systems/unix/&quot;&gt;unix&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/%d7%90%d7%99%d7%a0%d7%98%d7%a8%d7%a0%d7%98/&quot;&gt;אינטרנט&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%99%d7%a4%d7%99%d7%9d-%d7%95%d7%98%d7%a8%d7%99%d7%a7%d7%99%d7%9d/&quot;&gt;טיפים וטריקים&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/&quot;&gt;טכנולוגיה&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/operating-systems/%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1/&quot;&gt;לינוקס&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/%d7%a4%d7%99%d7%aa%d7%95%d7%97/&quot;&gt;פיתוח&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a7%d7%95%d7%93-%d7%a4%d7%aa%d7%95%d7%97/&quot;&gt;קוד פתוח&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a8%d7%a9%d7%aa%d7%95%d7%aa/&quot;&gt;רשתות&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a9%d7%a8%d7%aa%d7%99%d7%9d/&quot;&gt;שרתים&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/&quot;&gt;תוכנה&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/%d7%aa%d7%9b%d7%a0%d7%95%d7%aa/&quot;&gt;תכנות&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/&quot;&gt;תקשורת&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/idkn.wordpress.com/7223/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/idkn.wordpress.com/7223/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://pixel.wp.com/b.gif?host=idkn.wordpress.com&amp;#038;blog=3104636&amp;#038;post=7223&amp;#038;subd=idkn&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
<author>
<name>ik_5</name>
<uri>http://idkn.wordpress.com</uri>
</author>
<source>
<title type="html">לראות שונה » קוד פתוח</title>
<subtitle type="html">מבט שונה בעיקר על (פיתוח) תוכנה, עסקים והקוד הפתוח</subtitle>
<link rel="self" href="http://idkn.wordpress.com/category/%d7%a7%d7%95%d7%93-%d7%a4%d7%aa%d7%95%d7%97/feed/atom/"/>
<id>http://idkn.wordpress.com/feed/atom/</id>
<updated>2014-12-22T02:31:34+00:00</updated>
</source>
</entry>
<entry xml:lang="en-US">
<title type="html">Kindle Paperwhite &amp;#8220;Unable to Open Item&amp;#8221;</title>
<link href="http://www.guyrutenberg.com/2014/12/20/kindle-paperwhite-unable-to-open-item/"/>
<id>http://www.guyrutenberg.com/?p=69803</id>
<updated>2014-12-20T14:40:04+00:00</updated>
<content type="html">&lt;p&gt;Recently, I tried transfering some new ebook to my Kindle Paperwhite (first generation), the books were listed properly. However, when I tried to open them I got&lt;br /&gt;
&amp;#8220;Unable to Open Item&amp;#8221; error, suggesting I re-download the books from Amazon. I tried transferring the files again and again, but it didnt&amp;#8217; help. Some of the books were &lt;code&gt;mobi&lt;/code&gt; files while others were &amp;#8220;AZW` (which I got from &lt;a href=&quot;http://indiebook.co.il/&quot;&gt;אינדיבוק&lt;/a&gt;) and all of them opened fine on my computer.&lt;/p&gt;
&lt;p&gt;Finally, I followed an advice from a &lt;a href=&quot;http://kindledfans.livejournal.com/71655.html?thread=388839#t388839&quot;&gt;comment in the KindledFans blog&lt;/a&gt;, and converted the files to &lt;code&gt;AZW3&lt;/code&gt; (the original comment suggested &lt;code&gt;mobi&lt;/code&gt; but &lt;code&gt;AZW3&lt;/code&gt; works better with Hebrew). After converting, I moved the files to my Kindle and they opened just fine.&lt;/p&gt;</content>
<author>
<name>Guy</name>
<uri>http://www.guyrutenberg.com</uri>
</author>
<source>
<title type="html">Guy Rutenberg</title>
<subtitle type="html">Keeping track of what I do</subtitle>
<link rel="self" href="http://www.guyrutenberg.com/feed/atom/"/>
<id>http://www.guyrutenberg.com/feed/atom/</id>
<updated>2014-12-20T18:48:18+00:00</updated>
</source>
</entry>
<entry xml:lang="he-IL">
<title type="html">Docker חלק חמישי</title>
<link href="http://ilsh.info/archives/4571"/>
<id>http://ilsh.info/?p=4571</id>
<updated>2014-12-19T11:00:31+00:00</updated>
<content type="html">&lt;p&gt;&lt;a href=&quot;http://ilsh.info/archives/4487&quot;&gt;בפרק הקודם&lt;/a&gt; הדגמתי הרצת שתי פקודות במיכל (באמצעות הפקודה docker run): האחת איפשרה גישה אינטרקטיבית לעבודה עם המיכל ובשניה הרצנו Daemon שסיפק שירות.&lt;/p&gt;
&lt;p&gt;כרגע אתמקד בעבודה עם docker client. עבודה עם docker client מאוד פשוטה (באמצעות דגלים וארגומנטים ניתן לשלוט בהוראות ל- Docker Client):&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;Usage: &amp;nbsp;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;sudo&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; docker &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;command&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;flags&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;arguments&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;..&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span id=&quot;more-4571&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;הרצת הפקודה docker version תספק לנו אינפורמציה נוספת על גרסת docker בצד השרת ובצד הלקוח (בצד אינפורמציה רבה נוספת).&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker version&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;sudo&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; password &lt;span class=&quot;kw1&quot;&gt;FOR&lt;/span&gt; ilan: &lt;br /&gt;
Client version: 1&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;2&lt;br /&gt;
Client API version: &lt;span class=&quot;nu0&quot;&gt;1.15&lt;/span&gt;&lt;br /&gt;
Go version &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;client&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;: go1&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;br /&gt;
Git commit &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;client&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;: 39fa2fa&lt;br /&gt;
OS&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Arch &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;client&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;: linux&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;amd64&lt;br /&gt;
Server version: 1&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;2&lt;br /&gt;
Server API version: &lt;span class=&quot;nu0&quot;&gt;1.15&lt;/span&gt;&lt;br /&gt;
Go version &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;server&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;: go1&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;3&lt;br /&gt;
Git commit &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;server&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;: 39fa2fa&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
כדי לקבל עזרה על פקודה מסויימת (נניח attach) נוסיף את הדגל help:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker attach &lt;span class=&quot;co1&quot;&gt;&amp;#8211;help&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Usage: docker attach &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;OPTIONS&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; CONTAINER&lt;/p&gt;
&lt;p&gt;Attach &lt;span class=&quot;kw1&quot;&gt;TO&lt;/span&gt; a running container&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span class=&quot;co1&quot;&gt;&amp;#8211;no-stdin=false &amp;nbsp; &amp;nbsp;Do not attach STDIN&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span class=&quot;co1&quot;&gt;&amp;#8211;sig-proxy=true &amp;nbsp; &amp;nbsp;Proxy all received signals to the process (even in non-TTY mode). SIGCHLD, SIGKILL, and SIGSTOP are not proxied.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;הערה&lt;/strong&gt;: כדי לצפות בכל באפשרויות שהפקודה docker תומכת יש להריץ את הפקודה docker בלבד.&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;הרצת אפליקציית רשת באמצעות docker&lt;/strong&gt;:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker run &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;d &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;P training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp python app&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;py&lt;br /&gt;
Unable &lt;span class=&quot;kw1&quot;&gt;TO&lt;/span&gt; find image &lt;span class=&quot;st0&quot;&gt;'training/webapp'&lt;/span&gt; locally&lt;br /&gt;
Pulling repository training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp&lt;br /&gt;
31fa814ba25a: Download complete &lt;br /&gt;
511136ea3c5a: Download complete &lt;br /&gt;
f10ebce2c0e1: Download complete &lt;br /&gt;
82cdea7ab5b5: Download complete &lt;br /&gt;
5dbd9cb5a02f: Download complete &lt;br /&gt;
74fe38d11401: Download complete &lt;br /&gt;
64523f641a05: Download complete &lt;br /&gt;
0e2afc9aad6e: Download complete &lt;br /&gt;
e8fc7643ceb1: Download complete &lt;br /&gt;
733b0e3dbcee: Download complete &lt;br /&gt;
a1feb043c441: Download complete &lt;br /&gt;
e12923494f6a: Download complete &lt;br /&gt;
a15f98c46748: Download complete &lt;br /&gt;
&lt;span class=&quot;kw1&quot;&gt;STATUS&lt;/span&gt;: Downloaded newer image &lt;span class=&quot;kw1&quot;&gt;FOR&lt;/span&gt; training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp:latest&lt;br /&gt;
52d212d850c52cf8553f729ecc0850647d1bb50f274f6ef9316ea19b3d3b7fe5&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;הדגל d- מוכר: האפליקציה במיכל תורץ ברקע ותספק את השירות&lt;/li&gt;
&lt;li&gt;הדגל p- מציין שיש למפות כל פורט נדרש במיכל ולשייך אותו למיכל הנוכחי&lt;/li&gt;
&lt;li&gt;מאחר שהמיכל 'training/webapp' לא נמצא במאגר המקומי, הוא הורד מהרשת (Docker Hub). המיכל מכיל סקריפט פייתון פשוט (app.py) שמיישם אפליקצית רשת.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
נריץ שוב את הפקודה docker ps (הפעם עם הדגל l- בו נבקש לקבל מידע נוסף על זמן הרצת הסקריפט)&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker ps &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;l&lt;br /&gt;
CONTAINER ID &amp;nbsp;IMAGE &amp;nbsp;COMMAND &amp;nbsp;CREATED &amp;nbsp;&lt;span class=&quot;kw1&quot;&gt;STATUS&lt;/span&gt; &amp;nbsp; PORTS NAMES 2d212d850c5 &amp;nbsp;training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp:latest &amp;nbsp;&lt;span class=&quot;st0&quot;&gt;&amp;quot;python app.py&amp;quot;&lt;/span&gt; &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt; minutes ago &amp;nbsp; Up &lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt; minutes &amp;nbsp;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0:&lt;span class=&quot;nu0&quot;&gt;49153&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;tcp &amp;nbsp;clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;הערה: הפורט 49153 בצד הלקוח מופה לפורט 5000 בצד השרת.&lt;/p&gt;
&lt;p&gt;נגלוש לכתובת זאת ונקבל את המסך הבא:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://ilsh.info/wp-content/uploads/2014/12/webapp1.png&quot; rel=&quot;lightbox&quot;&gt;&lt;img src=&quot;http://ilsh.info/wp-content/uploads/2014/12/webapp1-300x115.png&quot; alt=&quot;webapp1&quot; width=&quot;300&quot; height=&quot;115&quot; class=&quot;aligncenter size-medium wp-image-4593&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
כדי לצפות בלוגים של השרת נריץ את הפקודה הבאה:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker logs &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;f clever_lumiere&lt;br /&gt;
&amp;nbsp;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; Running &lt;span class=&quot;kw1&quot;&gt;ON&lt;/span&gt; http:&lt;span class=&quot;sy0&quot;&gt;//&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0:&lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;br /&gt;
172&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;17&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;1 &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;07&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Dec&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2014&lt;/span&gt; 03:&lt;span class=&quot;nu0&quot;&gt;49&lt;/span&gt;:&lt;span class=&quot;nu0&quot;&gt;33&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;GET / HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;br /&gt;
172&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;17&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;1 &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;07&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Dec&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2014&lt;/span&gt; 03:&lt;span class=&quot;nu0&quot;&gt;49&lt;/span&gt;:&lt;span class=&quot;nu0&quot;&gt;34&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;GET /favicon.ico HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;404&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;br /&gt;
172&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;17&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;1 &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;07&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Dec&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2014&lt;/span&gt; 03:&lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;:04&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;GET / HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;br /&gt;
172&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;17&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;1 &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;07&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Dec&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2014&lt;/span&gt; 03:&lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;:04&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;GET /favicon.ico HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;404&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;br /&gt;
172&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;17&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;42&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;1 &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;07&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;Dec&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2014&lt;/span&gt; 03:&lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;:04&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;GET /favicon.ico HTTP/1.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;404&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;הערה&lt;/strong&gt;: הדגל f- גורם ל- docker להתנהג כמו הפקודה tail -f (כלומר להמשיך להאזין ללוגים ולא לצאת מהמשימה בסיום הרצת הפקודה).&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
כדי לצפות בתהליכים הרצים בתוך המיכל נריץ את הפקודה top: &lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker top clever_lumiere&lt;br /&gt;
UID &amp;nbsp;PID &amp;nbsp; PPID &amp;nbsp;C &amp;nbsp;STIME &amp;nbsp;TTY &amp;nbsp;TIME &amp;nbsp;CMD&lt;br /&gt;
root &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;23777&lt;/span&gt; &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;1774&lt;/span&gt; &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &amp;nbsp;05:&lt;span class=&quot;nu0&quot;&gt;33&lt;/span&gt; &amp;nbsp;? &amp;nbsp;00:00:00 &amp;nbsp;python app&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;py&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;ניתן להבחין שהפקודה python app.py היא הפקודה היחידה שרצה במיכל.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
כדי לעצור את עבודת המיכל נריץ את הפקודה הבאה:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker stop clever_lumiere&lt;br /&gt;
clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
אם נרצה להריץ שוב את המיכל יש לנו שתי אפשרויות: לחדש את ריצת המיכל (מאותה הנקודה שרץ בעבר) או לאתחל אותו:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;~$ sudo docker start clever_lumiere&lt;br /&gt;
clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
נריץ שוב את הפקודה pocker ps -l וניראה שהמיכל רץ כבר 41 דקות &amp;#8211; כלומר חידשנו את פעולתו.&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker ps &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;l&lt;br /&gt;
CONTAINER ID &amp;nbsp;IMAGE &amp;nbsp;COMMAND &amp;nbsp;CREATED &amp;nbsp;&lt;span class=&quot;kw1&quot;&gt;STATUS&lt;/span&gt; &amp;nbsp;PORTS &amp;nbsp;NAMES&lt;br /&gt;
52d212d850c5 &amp;nbsp;training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp:latest &amp;nbsp;&lt;span class=&quot;st0&quot;&gt;&amp;quot;python app.py&amp;quot;&lt;/span&gt; &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;41&lt;/span&gt; minutes ago &amp;nbsp;Up &lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt; seconds &amp;nbsp;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0:&lt;span class=&quot;nu0&quot;&gt;49154&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;tcp &amp;nbsp;clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
לעומת זאת הפקודה restart תגרום להפסקת פעולת המיכל וריצתו מחדש (מאפס):&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker restart clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
כפי שניתן להיווכח:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker ps &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;l&lt;br /&gt;
CONTAINER ID &amp;nbsp;IMAGE &amp;nbsp;COMMAND &amp;nbsp;CREATED &amp;nbsp;&lt;span class=&quot;kw1&quot;&gt;STATUS&lt;/span&gt; &amp;nbsp;PORTS &amp;nbsp;NAMES&lt;br /&gt;
52d212d850c5 &amp;nbsp;training&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;webapp:latest &amp;nbsp;&lt;span class=&quot;st0&quot;&gt;&amp;quot;python app.py&amp;quot;&lt;/span&gt; &amp;nbsp;&lt;span class=&quot;nu0&quot;&gt;44&lt;/span&gt; minutes ago &amp;nbsp;Up &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; seconds &amp;nbsp;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;0:&lt;span class=&quot;nu0&quot;&gt;49155&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;tcp &amp;nbsp;clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
כדי להסיר את המיכל יש תחילה לעצור אותו (stop) ורק לאחר מכן נוכל להסיר אותו באמצעות בפקודה rm:&lt;/p&gt;
&lt;div class=&quot;codesnip-container&quot;&gt;
&lt;div class=&quot;sql codesnip&quot;&gt;$ sudo docker rm clever_lumiere&lt;br /&gt;
Error response &lt;span class=&quot;kw1&quot;&gt;FROM&lt;/span&gt; daemon: You cannot remove a running container&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt; Stop the container before attempting removal &lt;span class=&quot;kw1&quot;&gt;OR&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;USE&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;f&lt;br /&gt;
2014&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;12&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;07 06:21:14 Error: failed &lt;span class=&quot;kw1&quot;&gt;TO&lt;/span&gt; remove one &lt;span class=&quot;kw1&quot;&gt;OR&lt;/span&gt; more containers&lt;br /&gt;
ilan@ilan&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;HP&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;ProBook&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;6450b:~$ sudo docker stop clever_lumiere&lt;br /&gt;
clever_lumiere&lt;br /&gt;
ilan@ilan&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;HP&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;ProBook&lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt;6450b:~$ sudo docker rm clever_lumiere&lt;br /&gt;
clever_lumiere&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
עד לנקודה זאת תמיד השתמשנו במיכלים מוכנים שהורדנו מ- Docker Hub. בפרק הבא נלמד להכין מיכלים בעצמנו&lt;/p&gt;
&lt;img src=&quot;http://ilsh.info/wp-content/uploads/2007/08/signature.png&quot; alt=&quot;My Signature&quot; /&gt;&lt;div class=&quot;fcbk_share&quot;&gt;&lt;div class=&quot;fcbk_like&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content>
<author>
<name>Ilan Shavit</name>
<uri>http://ilsh.info</uri>
</author>
<source>
<title type="html">האתר של שביט אילן » לינוקס ותוכנה חופשית</title>
<subtitle type="html">בלוג על לינוקס ותוכנה חופשית</subtitle>
<link rel="self" href="http://ilsh.info/archives/category/%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1/feed"/>
<id>http://ilsh.info/archives/category/%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1/feed</id>
<updated>2014-12-19T11:03:37+00:00</updated>
</source>
</entry>
<entry xml:lang="en-US">
<title type="html">Orchestrator 1.2.9 GA released</title>
<link href="http://code.openark.org/blog/mysql/orchestrator-1-2-9-ga-released"/>
<id>http://code.openark.org/blog/?p=7177</id>
<updated>2014-12-18T16:24:59+00:00</updated>
<content type="html">&lt;p&gt;&lt;a href=&quot;https://github.com/outbrain/orchestrator&quot;&gt;Orchestrator&lt;/a&gt; &lt;strong&gt;1.2.9 GA&lt;/strong&gt; &lt;a href=&quot;https://github.com/outbrain/orchestrator/releases/tag/v1.2.9&quot;&gt;has been released&lt;/a&gt;. Noteworthy:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added &quot;&lt;strong&gt;ReadOnly&lt;/strong&gt;&quot; (true/false) configuration param. You can have orchestrator completely read-only&lt;/li&gt;
&lt;li&gt;Added &lt;strong&gt;&quot;AuthenticationMethod&quot;: &quot;multi&quot;&lt;/strong&gt;: works like BasicAuth (your normal HTTP user+password) only it also accepts the special user called &lt;strong&gt;&quot;readonly&quot;&lt;/strong&gt;, which, surprise, can only view and not modify&lt;/li&gt;
&lt;li&gt;Centralized/serialized most backend database writes (with hundreds/thousands monitored servers it was possible or probable that high concurrency led to too-many-connections openned on the backend database).&lt;/li&gt;
&lt;li&gt;Fixed evil evil bug that would skip some checks if binary logs were not enabled&lt;/li&gt;
&lt;li&gt;Better hostname resolve (now also asking MySQL server to resolve hostname; resolving is cached)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pseudo-GTID&lt;/strong&gt; (read &lt;a href=&quot;http://code.openark.org/blog/mysql/refactoring-replication-topology-with-pseudo-gtid&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://code.openark.org/blog/mysql/orchestrator-1-2-1-beta-pseudo-gtid-support-reconnect-slaves-even-after-master-failure&quot;&gt;here&lt;/a&gt;, &lt;a href=&quot;http://code.openark.org/blog/mysql/refactoring-replication-topologies-with-pseudo-gtid-a-visual-tour&quot;&gt;here&lt;/a&gt;) support now considered stable (apart from being tested it has already been put to practice multiple times in production at &lt;strong&gt;Outbrain&lt;/strong&gt;, in different planned and unplanned crash scenarios)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I continue developing &lt;em&gt;orchestrator&lt;/em&gt; as free and open source at my new employer, &lt;a href=&quot;http://www.booking.com&quot;&gt;Booking.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content>
<author>
<name>shlomi</name>
<uri>http://code.openark.org/blog</uri>
</author>
<source>
<title type="html">code.openark.org » MySQL</title>
<subtitle type="html">Blog by Shlomi Noach</subtitle>
<link rel="self" href="http://code.openark.org/blog/category/mysql/feed/atom"/>
<id>http://code.openark.org/blog/feed/atom</id>
<updated>2014-12-18T16:31:32+00:00</updated>
</source>
</entry>
<entry xml:lang="he-IL">
<title type="html">Dynamic DNS with CloudFlare</title>
<link href="http://blog.rabin.io/328/dynamic-dns-cloudflare"/>
<id>https://blog.rabin.io/?p=328</id>
<updated>2014-12-17T23:25:43+00:00</updated>
<content type="html">&lt;div&gt;&lt;p&gt;This is a simple hack I found for my self to have a &amp;#8220;Dynamic DNS&amp;#8221; for my home IP.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m using CloudFlare as my name server to manage the zone file for my domain, And one of the nice things about FC is that they have nice &lt;a href=&quot;https://www.cloudflare.com/docs/client-api.html&quot; target=&quot;_blank&quot;&gt;API&lt;/a&gt; to manage your account. One of the options this API provides is the capability to &lt;a href=&quot;https://www.cloudflare.com/docs/client-api.html#s5.2&quot; target=&quot;_blank&quot;&gt;update you DNS entries in the Zone&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span id=&quot;more-328&quot;&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Get your token&lt;/h2&gt;
&lt;p&gt;For all the action with the API you&amp;#8217;ll 3 thinks, your privet token (called tkn in the API),  email and the action you like to perform.&lt;/p&gt;
&lt;p&gt;You can find your token under your &lt;a href=&quot;https://www.cloudflare.com/my-account.html&quot; target=&quot;_blank&quot;&gt;Account page&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;DNS Record ID&lt;/h2&gt;
&lt;p&gt;Next you&amp;#8217;ll need to find the action you like to perform, in my case is to &lt;a href=&quot;https://www.cloudflare.com/docs/client-api.html#s5.2&quot; target=&quot;_blank&quot;&gt;edit the zone file&lt;/a&gt;. which is under the &amp;#8220;DNS Record Management&amp;#8221; -&amp;gt; rec_edit menu, but for using this action you will need the ID number for the recored you like to change, and for that you will need to use &amp;#8220;&lt;a href=&quot;https://www.cloudflare.com/docs/client-api.html#s3.3&quot; target=&quot;_blank&quot;&gt;rec_load_all&lt;/a&gt;&amp;#8221; action.&lt;/p&gt;
&lt;p&gt;e.g&lt;/p&gt;&lt;pre class=&quot;crayon-plain-tag&quot;&gt;curl https://www.cloudflare.com/api_json.html \
-d 'a=rec_load_all' \
-d 'tkn=8afbe6dea02407989af4dd4c97bb6e25' \
-d 'email=sample@example.com' \
-d 'z=example.com'&lt;/pre&gt;&lt;p&gt;The output will be in a JSON format, and the part you are looking for will look similar to this,&lt;/p&gt;&lt;pre class=&quot;crayon-plain-tag&quot;&gt;...
{
&quot;rec_id&quot;: &quot;18136402&quot;,
&quot;rec_tag&quot;: &quot;3bcef45cdf5b7638b13cfb89f1b6e716&quot;,
&quot;zone_name&quot;: &quot;example.com&quot;,
&quot;name&quot;: &quot;test.example.com&quot;,
&quot;display_name&quot;: &quot;test&quot;,
&quot;type&quot;: &quot;A&quot;,
&quot;prio&quot;: null,
&quot;content&quot;: &quot;[server IP]&quot;,
&quot;display_content&quot;: &quot;[server IP]&quot;,
&quot;ttl&quot;: &quot;1&quot;,
&quot;ttl_ceil&quot;: 86400,
&quot;ssl_id&quot;: null,
&quot;ssl_status&quot;: null,
&quot;ssl_expires_on&quot;: null,
&quot;auto_ttl&quot;: 1,
&quot;service_mode&quot;: &quot;0&quot;,
-
&quot;props&quot;: {
&quot;proxiable&quot;: 1,
&quot;cloud_on&quot;: 0,
&quot;cf_open&quot;: 1,
&quot;ssl&quot;: 0,
&quot;expired_ssl&quot;: 0,
&quot;expiring_ssl&quot;: 0,
&quot;pending_ssl&quot;: 0
}
...&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Edit/Update the DNS record&lt;/h2&gt;
&lt;p&gt;Now that you have the ID for the record you like to change, it&amp;#8217;s a matter of a simple curl command,&lt;/p&gt;&lt;pre class=&quot;crayon-plain-tag&quot;&gt;curl https://www.cloudflare.com/api_json.html \
-d 'a=rec_edit' \
-d 'tkn=8afbe6dea02407989af4dd4c97bb6e25' \
-d 'id=18136402' \
-d 'email=sample@example.com' \
-d 'z=example.com' \
-d 'type=A' \
-d 'name=test' \
-d 'content=1.2.3.4' \
-d 'service_mode=0' \
-d 'ttl=1'&lt;/pre&gt;&lt;p&gt;This command will update the IP to 1.2.3.4 for test.example.com entery.&lt;/p&gt;
&lt;h3&gt;Automate the update process&lt;/h3&gt;
&lt;p&gt;To automate the process, i have a cron job which runs every 5 minutes, and query my external IP and compare it to the resolved IP form my DNS.&lt;/p&gt;&lt;pre class=&quot;crayon-plain-tag&quot;&gt;#!/bin/bash
CURRENT_IP=$(dig myip.opendns.com @resolver1.opendns.com +short)
RESOLVE_IP=$(dig dyn.example.com +short @jean.ns.cloudflare.com)
if [[ ${CURRENT_IP} != ${RESOLVE_IP} ]] ;
then
echo &quot;need to update IP from: ${RESOLVE_IP} -&amp;gt; ${CURRENT_IP}&quot;
curl https://www.cloudflare.com/api_json.html -d 'a=rec_edit' \
-d 'tkn=c7ee1aef8131daf52e103a21a786ecbd99193' \
-d 'email=X@Y.Z' \
-d 'id=42' \
-d 'z=example.com' \
-d 'type=A' \
-d 'name=dyn' \
-d 'content='${CURRENT_IP} \
-d 'service_mode=0' \
-d 'ttl=120' \
else
echo &quot;nothing to do&quot;
exit 0;
fi&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</content>
<author>
<name>Rabin Yasharzadeh</name>
<uri>http://blog.rabin.io</uri>
</author>
<source>
<title type="html">Rabin.IO » FOSS</title>
<subtitle type="html">/home/rabin.io/notes</subtitle>
<link rel="self" href="http://blog.rabin.io/tag/foss/feed"/>
<id>http://blog.rabin.io/tag/foss/feed</id>
<updated>2014-12-17T23:33:41+00:00</updated>
</source>
</entry>
<entry xml:lang="en-US">
<title type="html">Drupal Performance Tip “Im too young to die” know your DB engines</title>
<link href="http://enginx.com/blog/drupal-performance-tip-im-young-die-know-db-engines/"/>
<id>http://enginx.com/?p=512</id>
<updated>2014-12-15T07:16:00+00:00</updated>
<content type="html">&lt;div class=&quot;seriesmeta&quot;&gt;This entry is part 4 of 4 in the series &lt;a href=&quot;http://enginx.com/series/drupal-performance-tips/&quot; class=&quot;series-60&quot; title=&quot;Drupal Performance Tips&quot;&gt;Drupal Performance Tips&lt;/a&gt;&lt;/div&gt;&lt;p&gt;In the spirit of the computer video game &lt;a href=&quot;http://doom.wikia.com/wiki/Doom&quot; target=&quot;_blank&quot;&gt;Doom &lt;/a&gt;and its &lt;a href=&quot;http://doom.wikia.com/wiki/Skill_level&quot; target=&quot;_blank&quot;&gt;skill levels&lt;/a&gt;, we&amp;#8217;ll review a few ways you can improve  your &lt;a href=&quot;http://drupal.org&quot; target=&quot;_blank&quot;&gt;Drupal &lt;/a&gt;speed performance     and optimize for better results and server response time. These tips that we&amp;#8217;ll cover may be at times specific to Drupal 6 versions, although     you can always learn the best practices from these examples and apply them on your own code base.&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;alignleft&quot; src=&quot;http://adamatomic.com/pics/blog/doom/doom2.jpg&quot; alt=&quot;Doom&quot; width=&quot;298&quot; height=&quot;212&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Doom skill levels: (easiest first)&lt;/p&gt;
&lt;p&gt;1.&lt;strong&gt; I&amp;#8217;m too young to die&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2. Hey, not too rough&lt;/p&gt;
&lt;p&gt;3. Hurt me plenty&lt;/p&gt;
&lt;p&gt;4. Ultra-violence&lt;/p&gt;
&lt;p&gt;5. Nightmare!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;  This post is rated &amp;#8220;I&amp;#8217;m too young too die&amp;#8221; difficulty level&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org&quot; target=&quot;_blank&quot;&gt;Drupal &lt;/a&gt;6 shipped with all tables being &lt;a href=&quot;http://drupal.stackexchange.com/questions/20893/drupal-database-innodb-or-myisam&quot; target=&quot;_blank&quot;&gt;MyISAM&lt;/a&gt;, and then Drupal 7 changed all that and shipped with all of its tables using the &lt;a href=&quot;http://drupal.stackexchange.com/questions/20893/drupal-database-innodb-or-myisam&quot; target=&quot;_blank&quot;&gt;InnoDB &lt;/a&gt;database engine. Each one with its own &lt;a href=&quot;https://www.drupal.org/node/1553474&quot; target=&quot;_blank&quot;&gt;strengths and weaknesses&lt;/a&gt; but it&amp;#8217;s quite clear that InnoDB will probably perform better for your Drupal site (though it has quite a bit of fine tuning configuration to be tweaked on my.cnf).&lt;/p&gt;
&lt;p&gt;Some modules, whether on Drupal 6, or those on Drupal 7 that simply upgraded but didn&amp;#8217;t quite review all of their code, might ship with queries like &lt;a href=&quot;http://www.percona.com/blog/2006/12/01/count-for-innodb-tables/&quot; target=&quot;_blank&quot;&gt;SELECT COUNT() which if you have migrated your tables to InnoDB (or simply using Drupal 7) then this will hinder on database performance&lt;/a&gt;. That&amp;#8217;s mainly because InnoDB and MyISAM work differently, and where-as this proved as quite a fast responding query being executed on a MyISAM database which uses the main index to store this information, for InnoDB the situation is different and will result in doing a full table scan for the count. Obviously, on an InnoDB configuration running such queries on large tables will result in very poor performance&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://enginx.com/wp-content/uploads/2014/11/drupal_perf-5.png&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-513&quot; src=&quot;http://enginx.com/wp-content/uploads/2014/11/drupal_perf-5.png&quot; alt=&quot;drupal_perf-5&quot; width=&quot;535&quot; height=&quot;256&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note to ponder upon &amp;#8211; what about the Views module which uses similar type of COUNT() queries to create the pagination for its views?&lt;/p&gt;
&lt;!-- Easy AdSense V7.43 --&gt;
&lt;!-- [leadout: 1 urCount: 1 urMax: 0] --&gt;
&lt;div class=&quot;ezAdsense adsense adsense-leadout&quot;&gt;
&lt;!-- enginx-blog-wide-post --&gt;
&lt;ins class=&quot;adsbygoogle&quot;&gt;&lt;/ins&gt;
&lt;/div&gt;
&lt;!-- Easy AdSense V7.43 --&gt;
&lt;p&gt;The post &lt;a rel=&quot;nofollow&quot; href=&quot;http://enginx.com/blog/drupal-performance-tip-im-young-die-know-db-engines/&quot;&gt;Drupal Performance Tip &amp;#8211; &amp;#8220;I&amp;#8217;m too young to die&amp;#8221; &amp;#8211; know your DB engines&lt;/a&gt; appeared first on &lt;a rel=&quot;nofollow&quot; href=&quot;http://enginx.com&quot;&gt;Liran Tal&amp;#039;s Enginx&lt;/a&gt;.&lt;/p&gt;</content>
<author>
<name>Liran Tal</name>
<uri>http://enginx.com</uri>
</author>
<source>
<title type="html">Liran Tal's Enginx » opensource</title>
<subtitle type="html">Liran is 31 years old, leader of open source projects and avid community advocate. Entrepreneur at heart, married to his soul-mate Tal.</subtitle>
<link rel="self" href="http://enginx.com/tag/opensource/feed/"/>
<id>http://enginx.com/tag/opensource/feed/</id>
<updated>2014-12-15T07:17:04+00:00</updated>
</source>
</entry>
<entry xml:lang="he-IL">
<title type="html">צריבה של ROM עבור Galaxy S1 i9000 מלינוקס</title>
<link href="http://cucomania.mooo.com/he/posts/352/%d7%a6%d7%a8%d7%99%d7%91%d7%94-%d7%a9%d7%9c-rom-%d7%a2%d7%91%d7%95%d7%a8-galaxy-s1-i9000-%d7%9e%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1"/>
<id>http://cucomania.mooo.com/?p=352</id>
<updated>2014-12-15T06:28:39+00:00</updated>
<content type="html">&lt;p&gt;בפוסט קודם הסברתי על אודות מחיצות באנדרויד. &amp;quot;הקהילה&amp;quot; קוראת לאסופה של ה־images של המחיצות הללו בתור ROM. אין הרבה הסברים באינטרנט שמסבירים איך לצרוב מכשירי Galaxy S i9000 בעברית בלינוקס. אז &amp;#8211; מעכשיו יש.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;תורידו את ה־ROM־ים המקוריים של החברה המתאימה לכם. אין בעייה גדולה לשים רום של חברה אחרת. אם זה לא עובד, אפשר לצרוב את המודם המתאים. באתר של iAndroid יש קישורים להורדה: &lt;a href=&quot;http://iandroid.co.il/forum/viewtopic.php?f=42&amp;amp;t=18962&quot;&gt;http://iandroid.co.il/forum/viewtopic.php?f=42&amp;amp;t=18962&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;הקבצים שתורידו הם self extracting exe לחלונות. אצלי &lt;a href=&quot;https://www.winehq.org/&quot;&gt;wine&lt;/a&gt; עשה את מלאכתו נאמנה והקבצים שנוצרו וחתימות ה־MD5 הם (קבצי ה־exe הם ממש ישנים, ייתכן ועכשיו יש קבצים עם חתימה שונה, מה שחושב זה קבצי ה־tar שנוצרים מהם):
&lt;pre dir=&quot;ltr&quot;&gt;82d5a5fffd1fea566aab7fe39522aa2c  I9000.Cellcom.JIJVG.exe
0cb6ef26ce3076c5b3ffde7cb2ad2a1a  I9000.Partner.JHJVG.exe
254ef10b0ddacfeabc44cf547082e856  I9000.Pelephone.JJJVB.exe
eedb05d074db2026b38c8f00ca18f935  Cellcom.JIJVG.tar
33535d9aff3e39d04b0cc504ac389b51  Pelephone.JJJVB.tar
7d593eae36a2d5151e6a84454c739827  Partner.JHJVG.tar&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;עכשיו צריך לפתוח את אחד הקבצים, בתוך ספרייה חדשה (לדוגמה):
&lt;pre dir=&quot;ltr&quot;&gt; mkdir open-android-firmware
cd open-android-firmware
tar xf ../Cellcom.JIJVG.tar&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;כדי לצרוב צריך גם קובץ pit שמגדיר את מבנה המחיצות. חיפוש ברשת אחר &lt;a href=&quot;http://www.lmgtfy.com/?q=s1_odin_20100512.pit&quot;&gt;s1_odin_20100512.pit&lt;/a&gt;  תניב קובץ שהתחימה שלו היא 1d927b36d2fa807a22e64fc86b445130&lt;/li&gt;
&lt;li&gt;צריך גם קובץ שמגדיר dbdatafs, הוא נקרא גם PDA (אין לי שמץ של מושג מה זה). אותו אפשר להוריד מכאן: &lt;a href=&quot;http://forum.xda-developers.com/showthread.php?t=2184403&quot;&gt;http://forum.xda-developers.com/showthread.php?t=2184403&lt;/a&gt; החתימה של מה שהורדתי היא 868b81b9e28d30c82a00038d29e65d8c&lt;/li&gt;
&lt;li&gt;הצריבה תיעשה על ידי תוכנה heimdall. היא זמינה מהמאגרים החופשיים של דביאן. להתקנה:
&lt;pre dir=&quot;ltr&quot;&gt; sudo apt install heimdall-flash&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;אופציונאלי&lt;/strong&gt;&lt;/span&gt;: אני לא אוהב להשתמש ב־root, ולכן הגדרתי חוק udev שהמכשיר יהיה ניתן לתכנות גם בעזרת המשתמש שלי. צריך רק לדאוג שהמשתמש יהיה תחת הקבוצה plugdev ואז החוק הבא יעבוד (זה גם טוב לעבודה מול adb בתור משתמש רגיל, ולכן מומלץ).השורה אחרונה מתאימה לגלקסי, האחרות לנקסוס וואללה, לא זוכר &lt;img src=&quot;http://cucomania.mooo.com/wp-includes/images/smilies/icon_smile.gif&quot; alt=&quot;:)&quot; class=&quot;wp-smiley&quot; /&gt;
&lt;pre dir=&quot;ltr&quot;&gt;elcuco@pinky ~ $ cat  /etc/udev/rules.d/51-android.rules
SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;0bb4&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;
SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;681c&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot; SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;04e8&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;בשלב זה נשים את המכשיר במצב download. תוציאו את המכסה האחורי,ואז תוציאו את הסוללה (פשוט לתת מכה והיא יוצאת). תכניסו מחדש את הסוללה ואז ללחוץ על השילוש הקדוש: מקש הבית, כפתור שמע תחתון וכפתור ההדלקה. &lt;a href=&quot;https://www.tinhte.vn/threads/huong-dan-up-room-root-galaxy-win-i8552.2132717/&quot;&gt;על הצג יהיה אנדרויד צהוב&lt;/a&gt;.&lt;br /&gt;
&lt;span&gt;&lt;strong&gt;המלצה:&lt;/strong&gt;&lt;/span&gt; לא לשים את המכסה אחורי. יהיה יותר קל להוציא את הסוללה ולהתחיל מההתחלה, ואני מבטיח שיהיה צורך בזה &lt;img src=&quot;http://cucomania.mooo.com/wp-includes/images/smilies/icon_smile.gif&quot; alt=&quot;:)&quot; class=&quot;wp-smiley&quot; /&gt;&lt;/li&gt;
&lt;li&gt;כעת פשוט מפעילים את הפקודה הבאה (אני שמרתי אותה בתסריט בשם flash-all.sh)
&lt;pre dir=&quot;ltr&quot;&gt;heimdall flash --repartition  \
  --pit s1_odin_20100512.pit \
--FACTORYFS factoryfs.rfs  \
   --CACHE cache.rfs          \
   --DBDATAFS dbdata.rfs      \
   --IBL+PBL boot.bin         \
   --SBL Sbl.bin              \
   --PARAM param.lfs          \
   --KERNEL zImage            \
--MODEM modem.bin&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;זהו. הצריבה לוקחת כמה דקות ואחרי המכשיר עולה כמו חדש.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;שימו לב לאותיות הגדולות. הטקסט הזה מגדיר את שמות המחיצות כפי שמוגדרות בקובץ pit שבחרתם (תפתחו אותו בעורך טקסט ותבינו). אני מניח שאם נשנה את שמות המחיצות לאותיות קטנות נוכל לשנות את הפקודה שתהיה באותיות קטנות. אם מישהו בודק את זה &amp;#8211; תכתוב את זה בתגובות, זה יהיה נחמד לדעת.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;המלצות נוספות:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;אל תנסו את זה בחלונות. צריך להשתמש בתוכנה odin שאין לי מושג מה היא עושה מי כתב אותה. זאת הדלפה של מישהו ואני לא סומך על קוד של מישהו אחר במחשב שלי. התוכנות שיש בלינוקס נבדקו והן קוד פתוח, אני סומך עליהן יותר.&lt;/li&gt;
&lt;li&gt;תוודאו את החתימות (md5 במיקרה של מה שאני נותן כאן).&lt;/li&gt;
&lt;li&gt;כמה שיותר מהר נסו לשים רום אלטרנטיבי. &lt;a href=&quot;https://download.cyanogenmod.org/?device=galaxysmtd&quot;&gt;cyanogenmod&lt;/a&gt; הוא בסדר גמור. אני חושב ש־&lt;a href=&quot;http://redmine.replicant.us/projects/replicant/wiki/GalaxySI9000&quot;&gt;Replicant&lt;/a&gt; יהיה יותר טוב &amp;#8211; אבל לא בדקתי אישית, והוא לא זמין לכל מכשיר.&lt;/li&gt;
&lt;li&gt;על מכשיר ישן זה, לא הייתי ממליץ על gapps כלל. אני השתמשתי ב־&lt;a href=&quot;https://f-droid.org/&quot;&gt;FDroid&lt;/a&gt; והשלמתי כמה תוכנות עם &lt;a href=&quot;http://m.aptoide.com/installer&quot;&gt;Aptoid&lt;/a&gt;. האחרון מפוקפק משהו&amp;#8230; אבל זאת פשרה שאני נאלץ לחיות איתה.&lt;/li&gt;
&lt;li&gt;כדי להחליף מודם, יש לשים את המכשיר במצב download ולצרוב בעזרת הפקודה הבאה (את המודם צריך לקחת מהרום המתאים):
&lt;pre dir=&quot;ltr&quot;&gt;heimdall flash --MODEM modem.bin&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;אם דילגת על השלב של udev פשוט לשים sudo לפני כל פקודה.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;שאלות שנותרו לי ללא מענה:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;מה התוכן של dbdata.rfs ומה המטרה של המחיצה הזאת.&lt;/li&gt;
&lt;li&gt;מה זה param.lfs.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;תזכורת: &lt;a title=&quot;מחיצות באנדרואיד&quot; href=&quot;http://cucomania.mooo.com/he/posts/349/%d7%9e%d7%97%d7%99%d7%a6%d7%95%d7%aa-%d7%91%d7%90%d7%a0%d7%93%d7%a8%d7%95%d7%99%d7%93&quot;&gt;מחיצות באנדרויד&lt;/a&gt;&lt;/p&gt;</content>
<author>
<name>Diego Iastrubni</name>
<uri>http://cucomania.mooo.com</uri>
</author>
<source>
<title type="html">עברית בלינוקס » המקור</title>
<subtitle type="html">משתמש לינוקס ממוצע, בערך</subtitle>
<link rel="self" href="http://cucomania.mooo.com/he/category/hamakor/feed"/>
<id>http://cucomania.mooo.com/he/category/hamakor/feed</id>
<updated>2014-12-15T06:33:44+00:00</updated>
</source>
</entry>
<entry xml:lang="he">
<title type="html">האקינג לראוטר, או איך להפוך ראוטר לקוד פתוח</title>
<link href="http://idkn.wordpress.com/2014/12/11/router-hacking/"/>
<id>http://idkn.wordpress.com/?p=7265</id>
<updated>2014-12-14T08:15:49+00:00</updated>
<content type="html">&lt;p&gt;&lt;a href=&quot;http://idkn.wordpress.com/2009/03/20/%D7%A6%D7%A2%D7%93-%D7%A7%D7%98%D7%9F-%D7%9C%D7%90%D7%95%D7%A4%D7%9F-%D7%9E%D7%95%D7%A7%D7%95-%D7%A6%D7%A2%D7%93-%D7%92%D7%93%D7%95%D7%9C-%D7%9C%D7%A2%D7%99%D7%93%D7%95/&quot;&gt;לפני מספר שנים, רכשתי מדורון OpenMoko&lt;/a&gt;, ועשיתי עליו מספר פעולות האקינג די נחמדות בשביל לשלוט בטלפון כמו שאני רוצה, או למעשה במודם סלולרי, ושאר הרכיבים, כולל כתיבה של מספר תוכנות ממש קטנות לעצמי, רק כהוכחת יכולת ולא מעבר.&lt;/p&gt;
&lt;p&gt;מאז לא היו לי אתגרים באמת מעניינים בנושא ההאקינג של מכשירים, עד שרכשתי את WDR4300 של TP-Link והחלטתי שאני לא אוהב את הרעיון שאין לי שליטה על הראוטר שלי.&lt;/p&gt;
&lt;p&gt;גיליתי שאני מוגבל, היות ובמדינת ישראל יש הגבלת תדרים על ידי משרד הביטחון (ולא משרד התקשורת) &amp;#8211; WTF ?!&lt;br /&gt;
אז בגלל זה אני למשל לא הייתי יכול לעדכן את הראוטר לגרסה חדשה יותר של TP-Link, כי אין להם הורדה של גרסה &amp;quot;ישראלית&amp;quot; המגבילה תדרים (מצטער אבל זה הזוי).&lt;/p&gt;
&lt;p&gt;אז התקנתי openwrt, ופתאום נזכרתי לטובה במוקו, אשר דרש ממני קצת האקינג בשביל לגרום לו לעבוד.&lt;br /&gt;
מצאתי את עצמי ב7 בערב עד 1 לפנות בוקר מתאים אותו לצרכים שלי.&lt;/p&gt;
&lt;p&gt;זה כיף להיכנס למכשיר דרך telnet ולהתחיל להגדיר את הפצת הלינוקס כפי שאתה רוצה. וזה עוד יותר כיף, כשמערכת החבילות זהה למוקו &lt;span class=&quot;wp-smiley wp-emoji wp-emoji-smile&quot; title=&quot;:)&quot;&gt;:)&lt;/span&gt; .&lt;br /&gt;
אחרי שאתה מגדיר סיסמה ל root, ה telnet מתבטל, ואתה חייב לעבוד עם ssh, שגם עברה מספר שיפצורים על ידי.&lt;/p&gt;
&lt;p&gt;אני קיבלתי את הראוטר עם חומרה v1.7, שזה השיפצור האחרון של tplink (נכון לכתיבת הפוסט הזה) בנושא החומרה, ונראה שהכל עובד מהקופסא, אחרי שאפשרתי מספר דברים &lt;span class=&quot;wp-smiley wp-emoji wp-emoji-smile&quot; title=&quot;:)&quot;&gt;:)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;זו פעם ראשונה שאני עובד עם אחד מפרוייקטי wrt, ואת האמת, אני נהנה מכל שניה, עם המשחקים האלו, אבל בסופו של דבר, אם הראוטר לא עובד ועושה את העבודה, הוא לא שווה הרבה.&lt;/p&gt;
&lt;p&gt;אבל כאן הוא עושה בדיוק מה שאני רוצה, כמו שאני רוצה, בלי שמתערבים לי בו.&lt;br /&gt;
המטרה של הראוטר להחליף את הראוטר שבזק מספקים, היות ואם אגיד שהוא זבל, אתן לזבל שם רע.&lt;/p&gt;
&lt;p&gt;הראוטר של בזק מנתק את ה wifi כל כמה זמן לכמה שניות. כלומר את המכשירים המחוברים אליו.&lt;br /&gt;
מדפסת הרשת שלי, משום מה לא עובדת כמו שצריך עם הראוטר הזה, אבל הכי גרוע זה ה &lt;a href=&quot;http://en.wikipedia.org/wiki/TR-069&quot;&gt;TR-069&lt;/a&gt; שיש בראוטר ואני לא יכול לבטל אותו, הוא סוג של back-door  לכל הראוטרים האלו, המאפשרים לבזק לבצע provision מרחוק, אבל מסכנים את הראוטר לחלוטין.&lt;/p&gt;
&lt;p&gt;אז אחרי הרבה התלבטויות, הגיע הזמן פשוט לעבוד עם ראוטר טוב ואיכותי במקום, שאני יכול להחליט עליו כל דבר שרק ארצה, וכמובן שזה מה ש open-wrt מאפשר לי.&lt;/p&gt;
&lt;p&gt;אני יכול לבצע אפילו התקנת freeswitch עליו, מגרסת הפיתוח (משום מה), שלא לדבר על אסטריסק, או &lt;a href=&quot;http://yate.null.ro/pmwiki/&quot;&gt;yate&lt;/a&gt;.&lt;br /&gt;
התקנה של מרכזיה כדוגמת freeswitch למשל, מאפשרת אם מתבצעת נכון, להעביר את הכוח לסוג של DMZ, שמוגן מתקיפות למינהן, אבל כן מסוגל לבצע שיחות.&lt;br /&gt;
אך אין לי כוונה להתקין מרכזיה כלשהי על הראוטר.&lt;br /&gt;
אם זה לא מספיק, אני יכול גם להתקין את Kamailio מסדרת שלוש וסדרת ארבע, מה שאומר שאני גם יכול לקבל SIP Proxy שאני יכול לתכנת כפי שאני רוצה, אך גם כאן, זה לא יהיה מה שאעשה.&lt;/p&gt;
&lt;p&gt;פשוט כיף הכוח שאתה מקבל חזרה לציוד שאתה רוכש לעצמך, ואמנם אינני אוהב שיש ריבוי חוקים, למעט חוקים שנועדו לאזן את החיים, אך לדעתי חוק אשר מחייב כל יצרן חומרה בסגנון ראוטרים, טלפונים וכיוב', לאפשר לבצע מה שרוצים על החומרה עצמה, יעשה רק טוב.&lt;/p&gt;
&lt;p&gt;בכל מקרה, אני מאוד נהנה &lt;span class=&quot;wp-smiley wp-emoji wp-emoji-smile&quot; title=&quot;:)&quot;&gt;:)&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;תויק תחת:&lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/%d7%98%d7%9c%d7%a4%d7%95%d7%a0%d7%99%d7%94/asterisk/&quot;&gt;asterisk&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/%d7%98%d7%9c%d7%a4%d7%95%d7%a0%d7%99%d7%94/freeswitch/&quot;&gt;freeswitch&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/kamailio/&quot;&gt;kamailio&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/%d7%98%d7%9c%d7%a4%d7%95%d7%a0%d7%99%d7%94/%d7%a1%d7%9c%d7%95%d7%9c%d7%a8%d7%99/openmoko/&quot;&gt;OpenMoko&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/operating-systems/&quot;&gt;Operating Systems&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/yate/&quot;&gt;yate&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%97%d7%95%d7%9e%d7%a8%d7%94/&quot;&gt;חומרה&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/&quot;&gt;טכנולוגיה&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%a7%d7%a9%d7%95%d7%a8%d7%aa/%d7%98%d7%9c%d7%a4%d7%95%d7%a0%d7%99%d7%94/&quot;&gt;טלפוניה&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/operating-systems/%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1/&quot;&gt;לינוקס&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a7%d7%95%d7%93-%d7%a4%d7%aa%d7%95%d7%97/&quot;&gt;קוד פתוח&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a8%d7%90%d7%95%d7%98%d7%a8%d7%99%d7%9d/&quot;&gt;ראוטרים&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%a8%d7%a9%d7%aa%d7%95%d7%aa/&quot;&gt;רשתות&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/category/%d7%98%d7%9b%d7%a0%d7%95%d7%9c%d7%95%d7%92%d7%99%d7%94/%d7%aa%d7%95%d7%9b%d7%a0%d7%94/&quot;&gt;תוכנה&lt;/a&gt; Tagged: &lt;a href=&quot;http://idkn.wordpress.com/tag/freeswitch/&quot;&gt;freeswitch&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/hardware-hacking/&quot;&gt;hardware hacking&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/kamailio/&quot;&gt;kamailio&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/openwrt/&quot;&gt;openwrt&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/tr-069/&quot;&gt;tr-069&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/wdr4300/&quot;&gt;wdr4300&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/wrt/&quot;&gt;wrt&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/%d7%9c%d7%99%d7%a0%d7%95%d7%a7%d7%a1/&quot;&gt;לינוקס&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/%d7%a7%d7%95%d7%93-%d7%a4%d7%aa%d7%95%d7%97/&quot;&gt;קוד פתוח&lt;/a&gt;, &lt;a href=&quot;http://idkn.wordpress.com/tag/%d7%a8%d7%a9%d7%aa%d7%95%d7%aa/&quot;&gt;רשתות&lt;/a&gt; &lt;a rel=&quot;nofollow&quot; href=&quot;http://feeds.wordpress.com/1.0/gocomments/idkn.wordpress.com/7265/&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://feeds.wordpress.com/1.0/comments/idkn.wordpress.com/7265/&quot; /&gt;&lt;/a&gt; &lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;http://pixel.wp.com/b.gif?host=idkn.wordpress.com&amp;#038;blog=3104636&amp;#038;post=7265&amp;#038;subd=idkn&amp;#038;ref=&amp;#038;feed=1&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;</content>
<author>
<name>ik_5</name>
<uri>http://idkn.wordpress.com</uri>
</author>
<source>
<title type="html">לראות שונה » קוד פתוח</title>
<subtitle type="html">מבט שונה בעיקר על (פיתוח) תוכנה, עסקים והקוד הפתוח</subtitle>
<link rel="self" href="http://idkn.wordpress.com/category/%d7%a7%d7%95%d7%93-%d7%a4%d7%aa%d7%95%d7%97/feed/atom/"/>
<id>http://idkn.wordpress.com/feed/atom/</id>
<updated>2014-12-22T02:31:34+00:00</updated>
</source>
</entry>
</feed>