<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7937067671033653737</id><updated>2025-03-30T17:36:52.980+03:00</updated><category term="django"/><category term="suse"/><category term="python functions"/><category term="apex"/><category term="gnome"/><category term="j2me"/><category term="linux"/><category term="oracle"/><category term="python ide"/><category term="virtualbox"/><category term=".daa"/><category term="11g"/><category term="Bootstrap"/><category term="Large Objects"/><category term="Nginx"/><category term="Oracle News Aggregator"/><category term="Oracle Spatial"/><category term="Oracle Sql Tuning Techniques"/><category term="Oracle Text"/><category term="Scrapy"/><category term="Sql Tuning"/><category term="TRAILING NULLCOLS"/><category term="XML DB"/><category term="adobe"/><category term="advance queue"/><category term="all_source"/><category term="apex clob upload"/><category term="aquarium"/><category term="bash"/><category term="blob to clob"/><category term="blob to clob conversion"/><category term="bluetooth"/><category term="bluez"/><category term="bulk collect"/><category term="channel"/><category term="chat"/><category term="comments"/><category term="commit_on_success"/><category term="convert ascii"/><category term="cpu"/><category term="css"/><category term="csv to insert"/><category term="csv2sql"/><category term="ctrl+alt+del"/><category term="dba_dependencies"/><category term="dbms_aq"/><category term="dbms_aqadm"/><category term="dbms_scheduler"/><category term="filter"/><category term="flashback version query"/><category term="framework"/><category term="freenode"/><category term="full screen"/><category term="funny wallpaper"/><category term="glade"/><category term="gnome-bluetooth"/><category term="gtk"/><category term="gui"/><category term="hackerrank"/><category term="ignore"/><category term="innodb mysql"/><category term="insert"/><category term="install"/><category term="installing locate"/><category term="iso"/><category term="java"/><category term="jme"/><category term="job_definition"/><category term="linux extract"/><category term="map"/><category term="missing images problem"/><category term="mobile phone"/><category term="model"/><category term="mysql"/><category term="no_data_found"/><category term="null"/><category term="offline"/><category term="oracle  hints"/><category term="oracle advanced queue"/><category term="oracle xe"/><category term="orana"/><category term="pagination"/><category term="pdf"/><category term="plsql"/><category term="plsql notification"/><category term="poweriso"/><category term="primary key"/><category term="pyscripter"/><category term="python"/><category term="radio"/><category term="ram"/><category term="random"/><category term="reader"/><category term="reduce"/><category term="rlwrap"/><category term="rule_based_subscriber"/><category term="screen resolution"/><category term="site download"/><category term="sql outline"/><category term="sql plan baseline"/><category term="sql profile"/><category term="sqlldr"/><category term="sqlplus"/><category term="sqlplus linux"/><category term="suse 10.3"/><category term="suse help fastest way"/><category term="suse oracle xe installation"/><category term="suse11"/><category term="sys.reg$"/><category term="toolbox"/><category term="transaction"/><category term="undo_sql"/><category term="updatedb"/><category term="usage"/><category term="usb"/><category term="useful links"/><category term="versions"/><category term="versions_xid"/><category term="vista ready"/><category term="wallpaper"/><category term="wget"/><category term="workarea"/><category term="yesterday"/><title type='text'>Python Django</title><subtitle type='html'>boş yere hep boş yere</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>79</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-7349529510553459202</id><published>2023-08-28T18:34:00.000+03:00</published><updated>2023-08-28T18:34:00.995+03:00</updated><title type='text'>Value</title><content type='html'>&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Strategy&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Strategic Management Journal&lt;br /&gt;&lt;/div&gt;&lt;div&gt;California Management Review&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Harvard Business Review &lt;br /&gt;&lt;/div&gt;&lt;div&gt;Sloan Management Review&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;Value Creation&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;there are only two ways to consistently add and create value successfully:&amp;nbsp;&lt;/p&gt;&lt;p&gt;either by becoming the low(est)-price champion (requiring continuous “cost innovation)”&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;your strategy should aim to continuously offer better value – better than before, and better than competitors. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;or&amp;nbsp;&lt;/p&gt;&lt;p&gt;by focusing on superior customer value (aiming for high price, requiring continuous value innovation)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;As a principle it seems that we should be able to align our pricing as much and as closely as possible with the specific value bundle or value proposition we are offering.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Value Capturing&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Capturing value means that you should be able to turn your value creation (as realized in a concrete value proposition) into a sustainable business, by means of what we usually call a “business model”&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Reference:&lt;/p&gt;&lt;p&gt;Are You Creating or Capturing Value? A dynamic framework for sustainable strategy&lt;br /&gt;Paul Verdin Koen Tackx&lt;br /&gt;January 2015&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/7349529510553459202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/7349529510553459202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/7349529510553459202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/7349529510553459202'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/08/value.html' title='Value'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3029904839654495890</id><published>2023-05-10T09:19:00.000+03:00</published><updated>2023-05-10T09:19:28.746+03:00</updated><title type='text'>overlay filesystem and containers</title><content type='html'>&lt;h1 style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; color: #333333; font-family: Sintony; font-size: 1.75rem; line-height: 1.25; margin: 0px 0px 0.75em; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;&lt;span style=&quot;--tw-blur: var(--tw-empty, ); --tw-border-opacity: 1; --tw-brightness: var(--tw-empty, ); --tw-contrast: var(--tw-empty, ); --tw-drop-shadow: var(--tw-empty, ); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-grayscale: var(--tw-empty, ); --tw-hue-rotate: var(--tw-empty, ); --tw-invert: var(--tw-empty, ); --tw-ring-color: rgb(59 130 246/0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 #0000; --tw-rotate: 0; --tw-saturate: var(--tw-empty, ); --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-sepia: var(--tw-empty, ); --tw-shadow-colored: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-skew-x: 0; --tw-skew-y: 0; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-translate-x: 0; --tw-translate-y: 0; border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; color: #009cde;&quot;&gt;Containers&lt;/span&gt;&lt;/h1&gt;&lt;h2&gt;&lt;p style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; caret-color: rgb(101, 101, 101); color: #656565; font-family: Sintony; font-size: 16px; font-weight: 400; line-height: 1.45; margin: 0px 0px 1rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;A&amp;nbsp;&lt;strong style=&quot;--tw-blur: var(--tw-empty, ); --tw-border-opacity: 1; --tw-brightness: var(--tw-empty, ); --tw-contrast: var(--tw-empty, ); --tw-drop-shadow: var(--tw-empty, ); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-grayscale: var(--tw-empty, ); --tw-hue-rotate: var(--tw-empty, ); --tw-invert: var(--tw-empty, ); --tw-ring-color: rgb(59 130 246/0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 #0000; --tw-rotate: 0; --tw-saturate: var(--tw-empty, ); --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-sepia: var(--tw-empty, ); --tw-shadow-colored: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-skew-x: 0; --tw-skew-y: 0; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-translate-x: 0; --tw-translate-y: 0; border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; line-height: inherit;&quot;&gt;container&lt;/strong&gt;&amp;nbsp;is a process running on the host system.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; caret-color: rgb(101, 101, 101); color: #656565; font-family: Sintony; font-size: 16px; font-weight: 400; line-height: 1.45; margin: 0px 0px 1rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;This process is started by the container runtime from a container image, and the runtime provides a set of tools to manage the container process.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; caret-color: rgb(101, 101, 101); color: #656565; font-family: Sintony; font-size: 16px; font-weight: 400; line-height: 1.45; margin: 0px 0px 1rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;Namespaces virtualize the container process’s PID, network, root, and users.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; caret-color: rgb(101, 101, 101); color: #656565; font-family: Sintony; font-size: 16px; font-weight: 400; line-height: 1.45; margin: 0px 0px 1rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;Cgroups help set resource usage limits the container process can consume on the host system, and security contexts enforce permissions the container process has on the host system.&lt;/p&gt;&lt;p style=&quot;border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; caret-color: rgb(101, 101, 101); color: #656565; font-family: Sintony; font-size: 16px; font-weight: 400; line-height: 1.45; margin: 0px 0px 1rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;A container, as a runtime object, consumes the typical resources any running process would consume on a system: storage for the file system and any saved configuration files, CPU, memory, and networking to serve traffic to/from external clients, and other containers or devices on the system.&lt;/p&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;docker run container from image and connect it with shell , install necessary networking tools&lt;/h2&gt;&lt;p&gt;&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;docker run -d -it ubuntu:22.10 bash&lt;/span&gt;&lt;/p&gt;docker run -d -it --privileged ubuntu:22.10 bash -&amp;gt;&lt;b&gt; if you need to write to filesystem run wit privileged&lt;/b&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker ps -&amp;gt; &lt;b&gt;get &quot;container_id&quot; here&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker exec -it &quot;&lt;/span&gt;container_id&quot; bash&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;apt-get update -&amp;gt; &lt;b&gt;update packages&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;sudo apt install -y cgroup-tools -&amp;gt; install cgroups&lt;div&gt;&lt;br /&gt;&lt;/div&gt;lscgroup&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;apt install iproute2&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo apt install iputils-ping&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;h2&gt;&lt;span&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;sudo apt install -y unionfs-fuse -&amp;gt; &lt;/span&gt;install union filesystem&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;docker container commit 0be65324b69e ubu:01 -&amp;gt; &lt;/span&gt;create image from existing container with copying it&#39;s ephemeral storage&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;docker search nginx -&amp;gt; &lt;/span&gt;search images from command line&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div style=&quot;text-align: left;&quot;&gt;docker stats -&amp;gt; see resource usage for containers&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;docker network ls&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;docket network inspect nw_id&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker container diff container_id -&amp;gt; see all changes filesystem of container&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker network create -d bridge --attachable mynet -&amp;gt; create new network with bridge driver&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker network inspect mynet -&amp;gt; see subnet and gateway&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker container run -it --network=none alpine sh -&amp;gt; run container without network&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Docker storage drivers for your needs&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;a href=&quot;https://docs.docker.com/storage/storagedriver/select-storage-driver/&quot;&gt;https://docs.docker.com/storage/storagedriver/select-storage-driver/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;docker system df -&amp;gt; host system storage info&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 14px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;span&gt;&lt;h2 style=&quot;font-variant-ligatures: no-common-ligatures; text-align: left;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;creating virtual ethernet device peers&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;a href=&quot;https://manpages.ubuntu.com/manpages/jammy/man4/veth.4.html&quot;&gt;https://manpages.ubuntu.com/manpages/jammy/man4/veth.4.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 16px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; font-weight: normal; font: 16px Menlo; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;nice explanation about overlay filesystem which containers are using&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=DfENwtNRlD4&quot;&gt;https://www.youtube.com/watch?v=DfENwtNRlD4&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 14px; font-stretch: normal; font-style: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px; text-align: left;&quot;&gt;Security&lt;/h2&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;Running container processes inherit their permissions from the user who is running the container engine – often as a daemon. As a result, one of the security best practices is to ensure the container engine and runtime are not run with root privileges, but run by regular non-root users.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;Podman, in contrast to Docker, does not rely on a daemon, and it supported both rootless and rooted modes since its early days, the reason it was introduced as a more secure containerization tool than the more popular Docker Engine&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;Docker, or Podman and Buildah, are capable of content trust signature verification to ensure only signed images are run as containers by the runtime.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;it is a clear security risk to allow a container process to run in rooted mode giving it full access over host resources.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;it can be addressed with&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://man7.org/linux/man-pages/man7/capabilities.7.html&quot; style=&quot;--tw-blur: var(--tw-empty,/*!*/ /*!*/); --tw-border-opacity: 1; --tw-brightness: var(--tw-empty,/*!*/ /*!*/); --tw-contrast: var(--tw-empty,/*!*/ /*!*/); --tw-drop-shadow: var(--tw-empty,/*!*/ /*!*/); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-grayscale: var(--tw-empty,/*!*/ /*!*/); --tw-hue-rotate: var(--tw-empty,/*!*/ /*!*/); --tw-invert: var(--tw-empty,/*!*/ /*!*/); --tw-ring-color: rgb(59 130 246/0.5); --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 #0000; --tw-rotate: 0; --tw-saturate: var(--tw-empty,/*!*/ /*!*/); --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-sepia: var(--tw-empty,/*!*/ /*!*/); --tw-shadow-colored: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-skew-x: 0; --tw-skew-y: 0; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-translate-x: 0; --tw-translate-y: 0; background-color: white; border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; font-family: Sintony; font-size: 16px; line-height: inherit; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;--tw-blur: var(--tw-empty,/*!*/ /*!*/); --tw-border-opacity: 1; --tw-brightness: var(--tw-empty,/*!*/ /*!*/); --tw-contrast: var(--tw-empty,/*!*/ /*!*/); --tw-drop-shadow: var(--tw-empty,/*!*/ /*!*/); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-grayscale: var(--tw-empty,/*!*/ /*!*/); --tw-hue-rotate: var(--tw-empty,/*!*/ /*!*/); --tw-invert: var(--tw-empty,/*!*/ /*!*/); --tw-ring-color: rgb(59 130 246/0.5); --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 #0000; --tw-rotate: 0; --tw-saturate: var(--tw-empty,/*!*/ /*!*/); --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-sepia: var(--tw-empty,/*!*/ /*!*/); --tw-shadow-colored: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-skew-x: 0; --tw-skew-y: 0; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-translate-x: 0; --tw-translate-y: 0; border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box; color: #009cde;&quot;&gt;&lt;u style=&quot;--tw-blur: var(--tw-empty,/*!*/ /*!*/); --tw-border-opacity: 1; --tw-brightness: var(--tw-empty,/*!*/ /*!*/); --tw-contrast: var(--tw-empty,/*!*/ /*!*/); --tw-drop-shadow: var(--tw-empty,/*!*/ /*!*/); --tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); --tw-grayscale: var(--tw-empty,/*!*/ /*!*/); --tw-hue-rotate: var(--tw-empty,/*!*/ /*!*/); --tw-invert: var(--tw-empty,/*!*/ /*!*/); --tw-ring-color: rgb(59 130 246/0.5); --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 #0000; --tw-rotate: 0; --tw-saturate: var(--tw-empty,/*!*/ /*!*/); --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-sepia: var(--tw-empty,/*!*/ /*!*/); --tw-shadow-colored: 0 0 #0000; --tw-shadow: 0 0 #0000; --tw-skew-x: 0; --tw-skew-y: 0; --tw-transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); --tw-translate-x: 0; --tw-translate-y: 0; border-color: rgb(229 231 235/var(--tw-border-opacity)); box-sizing: border-box;&quot;&gt;capabilities&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;. A complex method indeed, capabilities replace the need for full root access of a container process with a controlled and limited root access that can be managed and set at a very granular level. The benefit of capabilities is that the container process will only receive the needed amount of privileges over the resources of the host that are critical for the container’s operations. All other resources will be accessed as a regular user with unprivileged restricted permissions.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 14px; font-stretch: normal; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;AppArmor,&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #656565; font-family: Sintony; font-size: 16px;&quot;&gt;Seccomp can be used to limit usage of host resources&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3029904839654495890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3029904839654495890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3029904839654495890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3029904839654495890'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/05/overlay-filesystem-and-containers.html' title='overlay filesystem and containers'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-8676514735396321528</id><published>2023-04-21T00:01:00.003+03:00</published><updated>2023-04-21T00:01:26.414+03:00</updated><title type='text'>push detached head with git</title><content type='html'>&lt;p&gt;&amp;nbsp;if you are in detached HEAD in local development and you want to push changes to remote repo&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: rgba(0, 0, 0, 0.85); color: #f2f2f2; font-family: Monaco; font-size: 16px;&quot;&gt;git push origin HEAD:master&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/8676514735396321528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/8676514735396321528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8676514735396321528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8676514735396321528'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/04/push-detached-head-with-git.html' title='push detached head with git'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-1654483543395265812</id><published>2023-04-17T01:00:00.004+03:00</published><updated>2023-04-17T01:00:21.443+03:00</updated><title type='text'>Pyppeteer  fix for BrowserError: Browser closed unexpectedly </title><content type='html'>&lt;p&gt;if you are having an error related with&amp;nbsp;Pyppeteer&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;code style=&quot;border-radius: var(--br-sm); border: 0px; box-sizing: inherit; caret-color: rgb(35, 38, 41); color: var(--black-800); font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant-alternates: inherit; font-variant-caps: inherit; font-variant-east-asian: inherit; font-variant-ligatures: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: var(--su2) var(--su4); vertical-align: baseline; white-space: pre-wrap;&quot;&gt;BrowserError: Browser closed unexpectedly&lt;/code&gt;&lt;span style=&quot;caret-color: rgb(35, 38, 41); color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;caret-color: rgb(35, 38, 41); color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 15px;&quot;&gt;is just the error you get when Chrome crashes for whatever reason. It would be nice if pyppeteer printed out the error, but it doesn&#39;t.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;border: 0px; box-sizing: inherit; caret-color: rgb(35, 38, 41); clear: both; color: #232629; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI Adjusted&amp;quot;, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 15px; font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-ligatures: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px 0px 1.1em; padding: 0px; vertical-align: baseline;&quot;&gt;To track things down, it&#39;s helpful to pull up the exact command that pyppeteer runs. You can do that this way:&lt;/p&gt;&lt;pre style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-ligatures: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;border-radius: 0px; border: 0px; box-sizing: inherit; color: var(--black-800); font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant-alternates: inherit; font-variant-caps: inherit; font-variant-east-asian: inherit; font-variant-ligatures: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;from pyppeteer.launcher import Launcher
 &#39; &#39;.join(Launcher().cmd)&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: var(--highlight-color); font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-ligatures: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); vertical-align: baseline; width: auto;&quot;&gt;run output from command line and find missing libraries and install it.&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/1654483543395265812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/1654483543395265812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/1654483543395265812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/1654483543395265812'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/04/pyppeteer-fix-for-browsererror-browser.html' title='Pyppeteer  fix for BrowserError: Browser closed unexpectedly '/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3322248427680007782</id><published>2023-03-03T23:39:00.010+03:00</published><updated>2023-03-04T00:37:54.601+03:00</updated><title type='text'>PostgreSQL database backup with pg_dump by using .pgpass file</title><content type='html'>&lt;p&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&amp;nbsp;It is better not to use password in commands so for taking backups from postgresql database we can store credentials in special file and give it to command so with this way it can be possible to run commands securely and password will be read from .pgpass file automatically&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;/usr/bin/pg_dump -F c -h localhost -U yourdbuser yourdbname &amp;gt; /path_$(date &#39;+%d%m%Y_%H%M%S&#39;).sql.zip&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;cat /home/yourOSuser/.pgpass&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;
&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;localhost:5432:yourdbname:yourdbuser:yourdbuserpassword&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;if order to make it work also do not forget to change connection method&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;/var/lib/pgsql/14/data/pg_hba.conf file&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;# &quot;local&quot; is for Unix domain socket connections only&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;local &amp;nbsp; all &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all &amp;nbsp; &amp;nbsp;peer &amp;nbsp;-&amp;gt;&amp;gt;&amp;gt;&amp;gt; change this to md5 to login with user&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;and restart your postgres database to reflect changes&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;sudo service postgresql-14.service status&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;how about restore&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;PS: this is not regular zip file do not try to unzip this!&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;create database first&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sudo -u postgres psql&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;postgres=# create database yourdbname;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;postgres=# GRANT ALL PRIVILEGES ON DATABASE&amp;nbsp;&lt;span style=&quot;background-color: white; caret-color: rgb(47, 255, 18);&quot;&gt;yourdbname&lt;/span&gt;&amp;nbsp;to&amp;nbsp;yourdbuser;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: rgba(0, 0, 0, 0.9); color: #2fff12; font-stretch: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span style=&quot;font-family: arial; font-size: medium;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;pg_restore -h localhost -U yourdbuser -C -d yourdbname&amp;nbsp;&lt;/span&gt;/path_$(date &#39;+%d%m%Y_%H%M%S&#39;).sql.zip&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3322248427680007782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3322248427680007782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3322248427680007782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3322248427680007782'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/03/postgressql-backup-with-pgdump-by-using.html' title='PostgreSQL database backup with pg_dump by using .pgpass file'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-578337637899627779</id><published>2023-03-01T21:21:00.004+03:00</published><updated>2023-03-04T12:02:29.155+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Nginx"/><title type='text'>Django project and Perfect setup of nginx config for www to nonwww and http to https and ip to domain redirects</title><content type='html'>&lt;div&gt;Here I am sharing good setup of nginx config for following requirements.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;before following config you need to create 2 A record for both domain to ip and www.domain to ip in your dns provider.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;also for django settings file you can add domain and www.domain to ALLOWED_HOSTS&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;http to https&lt;/li&gt;&lt;li&gt;www to nonwww&lt;/li&gt;&lt;li&gt;https://ip to domain&lt;/li&gt;&lt;li&gt;http://ip to domain&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;redirects&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;place following config to your sites-enabled config file&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;server {&lt;/div&gt;&lt;div&gt;&amp;nbsp; listen 80;&lt;/div&gt;&lt;div&gt;&amp;nbsp; listen 443 ssl;&lt;/div&gt;&lt;div&gt;&amp;nbsp; server_name yourserverip;&lt;/div&gt;&lt;div&gt;&amp;nbsp; ssl_certificate /home/yourdomain.com.crt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; ssl_certificate_key /home/yourdomain.com.key;&lt;/div&gt;&lt;div&gt;&amp;nbsp; add_header X-Frame-Options &quot;SAMEORIGIN&quot;;&lt;/div&gt;&lt;div&gt;&amp;nbsp; return 301 https://yourdomain.com$request_uri;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;server {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; listen 443 ssl;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; server_name yourdomain.com;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ssl_certificate /home/yourdomain.com.crt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ssl_certificate_key /home/yourdomain.com.key;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ssl_protocols TLSv1.2 TLSv1.1 TLSv1;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ssl_prefer_server_ciphers on;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; ssl_ciphers &quot;EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS +RC4 RC4&quot;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; location /static/ {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias /home/projectpath/staticfiles/;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; location /media/ {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alias /home/projectpath/media/;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; location / {&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy_set_header Host $http_host;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy_set_header X-Real-IP $remote_addr;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy_set_header X-Forwarded-Proto $scheme;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proxy_pass http://unix:/home/projectpath/gunicorn.sock;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;server {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; listen 443 ssl;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; server_name www.yourdomain.com;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; return 301 https://yourdomain.com$request_uri;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;server {&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; listen 80;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; server_name yourdomain.com;&lt;/div&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; return 301 https://yourdomain.com$request_uri;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/578337637899627779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/578337637899627779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/578337637899627779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/578337637899627779'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2023/03/perfect-setup-of-nginx-config-for-www.html' title='Django project and Perfect setup of nginx config for www to nonwww and http to https and ip to domain redirects'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3302582237119259348</id><published>2022-12-18T17:09:00.005+03:00</published><updated>2022-12-18T17:13:37.171+03:00</updated><title type='text'>Raspberry Pi wifi reconnect every 5 min</title><content type='html'>We enter this crontab entry and try to reconnect wifi every 5 mins
&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;
*/5 * * * * /home/sertac/wifi_reconnect.sh
&lt;/pre&gt;

below you can find script content
&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;
sertac@pz:~ $ cat /home/sertac/wifi_reconnect.sh
&lt;/pre&gt;


&lt;pre name=&quot;code&quot; class=&quot;bash&quot;&gt;
ping -c2 8.8.8.8 &gt; /dev/null
if [ $? != 0 ]; then
    ifdown --force wlan0
    sleep 5
    ifup wlan0
    sleep 10
    systemctl restart ssh
fi
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3302582237119259348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3302582237119259348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3302582237119259348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3302582237119259348'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2022/12/raspberry-pi-wifi-reconnect-every-5-min.html' title='Raspberry Pi wifi reconnect every 5 min'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-8504126535325958997</id><published>2022-05-20T19:10:00.005+03:00</published><updated>2022-05-20T19:15:11.291+03:00</updated><title type='text'>Django Session Cleanup</title><content type='html'>django sessions hold some space in database these are data of non logged out
users and there is no auto cleaning mechanism for these data, so you should be
aware of that you need to clean up sessions from database periodically with



  &lt;pre style=&quot;background-color: #f2f1f0; border: 1px solid rgb(221, 221, 221); caret-color: rgb(34, 34, 34); color: #222222; font-family: Courier, monospace; font-size: 14px; line-height: 20px; max-width: 100%; padding: 10px; white-space: pre-wrap; width: 540px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Courier, monospace; padding: 0px; white-space: pre;&quot;&gt;
  python manage.py clearsessions
  
  &lt;/code&gt;&lt;/pre&gt;


command, it&#39;s better to set it up on crontab daily basis. you can find
respective documentation below

&lt;br /&gt;
&lt;a
  href=&quot;https://docs.djangoproject.com/en/dev/topics/http/sessions/#clearing-the-session-store&quot;
  target=&quot;_blank&quot;
  &gt;https://docs.djangoproject.com/en/dev/topics/http/sessions/#clearing-the-session-store&lt;/a
&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/8504126535325958997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/8504126535325958997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8504126535325958997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8504126535325958997'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2022/05/django-session-cleanup.html' title='Django Session Cleanup'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-2293598131993746139</id><published>2020-09-27T21:07:00.008+03:00</published><updated>2022-11-21T10:31:23.482+03:00</updated><title type='text'>Raspberry PI USB mount as external drive</title><content type='html'>&lt;br /&gt;&lt;br /&gt;I choose NTFS USB Drive as an external storage for my raspberry pi&lt;br /&gt;&lt;br /&gt;for this you need to install ntfs-3g library if it&#39;s not installed&lt;div&gt;&lt;pre style=&quot;background-color: #f2f1f0; border: 1px solid rgb(221, 221, 221); caret-color: rgb(34, 34, 34); color: #222222; font-family: Courier, monospace; font-size: 14px; line-height: 20px; max-width: 100%; padding: 10px; white-space: pre-wrap; width: 540px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Courier, monospace; padding: 0px; white-space: pre;&quot;&gt;sudo apt install ntfs-3g&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;to auto mount usb at boot stage you can add entry to fstab&lt;br /&gt;&lt;br /&gt;it&#39;s always to good to verify your entry before reboot&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;



&lt;div&gt;
  &lt;pre style=&quot;background-color: #f2f1f0; border: 1px solid rgb(221, 221, 221); caret-color: rgb(34, 34, 34); color: #222222; font-family: Courier, monospace; font-size: 14px; line-height: 20px; max-width: 100%; padding: 10px; white-space: pre-wrap; width: 540px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Courier, monospace; padding: 0px; white-space: pre;&quot;&gt;
  sudo findmnt --verify --verbose
  
  &lt;/code&gt;&lt;/pre&gt;
  
  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;run command to get info about your usb&lt;br /&gt;&lt;br /&gt;
  
    &lt;pre style=&quot;background-color: #f2f1f0; border: 1px solid rgb(221, 221, 221); caret-color: rgb(34, 34, 34); color: #222222; font-family: Courier, monospace; font-size: 14px; line-height: 20px; max-width: 100%; padding: 10px; white-space: pre-wrap; width: 540px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Courier, monospace; padding: 0px; white-space: pre;&quot;&gt;
  
  lsblk -fp
  
    &lt;/code&gt;&lt;/pre&gt;
  
  &lt;br /&gt;&lt;br /&gt;and save UUID for to use in fstab&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and add following line to your fstab&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;replace XXX with UUID that you saved earlier, and uid is user, and group id that directory will be mounted with ownership of this user and group that you can get from /etc/passwd&lt;br /&gt;&lt;br /&gt;
  
      &lt;pre style=&quot;background-color: #f2f1f0; border: 1px solid rgb(221, 221, 221); caret-color: rgb(34, 34, 34); color: #222222; font-family: Courier, monospace; font-size: 14px; line-height: 20px; max-width: 100%; padding: 10px; white-space: pre-wrap; width: 540px;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Courier, monospace; padding: 0px; white-space: pre;&quot;&gt;
  
  
  UUID=XXX /mnt/FOLDERNAME ntfs defaults,auto,uid=1001,gid=1001,rw,nofail,umask=000 0 0
  
    &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;
  
  </content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/2293598131993746139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/2293598131993746139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2293598131993746139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2293598131993746139'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2020/09/django-usb-mount-as-external-drive.html' title='Raspberry PI USB mount as external drive'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-7040539334781800083</id><published>2020-03-10T11:25:00.000+03:00</published><updated>2020-03-10T11:25:25.221+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="django"/><title type='text'>django tagging</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/7040539334781800083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/7040539334781800083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/7040539334781800083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/7040539334781800083'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2020/03/django-tagging.html' title='django tagging'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-4623244538277164111</id><published>2020-03-09T12:16:00.000+03:00</published><updated>2020-03-10T11:23:50.885+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="django"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>django update string value with using existing value</title><content type='html'>it&#39;s possible to use F queries to make updates with using existing values in database, it&#39;s quite easy if value is number but&lt;br /&gt;
when you want to do updates on string values things are getting complicated &amp;nbsp;a bit&lt;br /&gt;
&lt;br /&gt;
Here below I am replacing empty char coming after comma in location field such as&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;London, UK&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We need to use django&#39;s special functions for this purpose F Value and Func&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
from django.db.models import F, Func, Value&lt;br /&gt;
Developer.objects.filter(location__contains=&quot;, &quot;).update(location=Func(&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F(&#39;location&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Value(&#39;, &#39;), Value(&#39;,&#39;),&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function=&#39;replace&#39;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; ))&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Result will be&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;London,UK&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
which is our intended solution&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/4623244538277164111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/4623244538277164111' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4623244538277164111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4623244538277164111'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2020/03/django-update-string-value-with-using.html' title='django update string value with using existing value'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-8869391990599369977</id><published>2019-12-18T15:04:00.003+03:00</published><updated>2019-12-23T00:15:30.970+03:00</updated><title type='text'>Raspberry pi OTG cluster networking raspberry pi3 and raspberry pi zero</title><content type='html'>Let&#39;s assume you have two raspi zero and one raspi3, we want to connect pi zeros to reach internal networking with raspi3 as host and internet over raspi3.&lt;br /&gt;
&lt;br /&gt;
Add this to&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;/boot/cmdline.txt&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;&amp;nbsp;after&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;rootwait&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;pizero1&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;modules-load=dwc2,g_ether g_ether.host_addr=00:22:82:ff:ff:&lt;/span&gt;&lt;span style=&quot;background-color: red; font-variant-ligatures: no-common-ligatures;&quot;&gt;01&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt; g_ether.dev_addr=00:22:82:ff:ff:&lt;/span&gt;&lt;span style=&quot;background-color: red; font-variant-ligatures: no-common-ligatures;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt; quiet&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;pizero2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;modules-load=dwc2,g_ether g_ether.host_addr=00:22:82:ff:ff:&lt;/span&gt;&lt;span style=&quot;background-color: red;&quot;&gt;02&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; g_ether.dev_addr=00:22:82:ff:ff:&lt;/span&gt;&lt;span style=&quot;background-color: red;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt; quiet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Add this to&amp;nbsp;&lt;/span&gt;/boot/config.txt&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
pizero1 and pizero2&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;dtoverlay=dwc2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;gpu_mem=16&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
Add this to /etc/dhcpcd.conf&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
pizero1&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;interface usb0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static ip_address=192.168.7.2/24&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static routers=192.168.7.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static domain_name_servers=8.8.8.8&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
pizero2&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;interface usb0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static ip_address=192.168.7.2/24&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static routers=192.168.7.1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static domain_name_servers=8.8.8.8&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
edit /etc/sysctl.conf make ip forward 1 and check if it&#39;s ok&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 13px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo sysctl -p /etc/sysctl.conf&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 13px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;net.ipv4.ip_forward = 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
make sure ip forward is 1 and add this iptables entries based on your network conn eth0 or wlan0 if you are using wifi&lt;/div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;sudo sh -c &#39;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&#39;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;sudo iptables -t nat -A POSTROUTING -o &lt;/span&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;eth0&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;-j MASQUERADE&lt;br /&gt;sudo iptables -t nat -A POSTROUTING -o &lt;/span&gt;&lt;span style=&quot;background-color: lime;&quot;&gt;wlan0&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;-j MASQUERADE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
for raspi3&lt;br /&gt;
&lt;div&gt;
add this to&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;/etc/dhcpcd.conf&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 14px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;interface eth1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static ip_address=192.168.7.1/24&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static domain_name_servers=8.8.8.8&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal; min-height: 16px;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;interface eth2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static ip_address=192.168.8.1/24&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;static domain_name_servers=8.8.8.8 &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
add this to /etc/udev/rules.d/90-pi-network.rules&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;SUBSYSTEM==&quot;net&quot;, ATTR{address}==&quot;00:22:82:ff:ff:01&quot;, NAME=&quot;&lt;/span&gt;&lt;span style=&quot;background-color: lime; font-variant-ligatures: no-common-ligatures;&quot;&gt;eth1&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;SUBSYSTEM==&quot;net&quot;, ATTR{address}==&quot;00:22:82:ff:ff:02&quot;, NAME=&quot;&lt;/span&gt;&lt;span style=&quot;background-color: lime; font-variant-ligatures: no-common-ligatures;&quot;&gt;eth2&lt;/span&gt;&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
now you can connect pizeros from raspi3 with and they can reach internet&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ssh&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: yellow;&quot;&gt;192.168.7.2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;ssh 192.168.8.2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
now you can try pinging google from pizeros&lt;br /&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;ping google&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;background-color: yellow; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/8869391990599369977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/8869391990599369977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8869391990599369977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8869391990599369977'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2019/12/raspberry-pi-otg-cluster-networking.html' title='Raspberry pi OTG cluster networking raspberry pi3 and raspberry pi zero'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-4154513872513453348</id><published>2019-11-24T16:43:00.003+03:00</published><updated>2019-11-24T19:47:49.256+03:00</updated><title type='text'>[Solved] never ending lxml build raspberry pi 3, usb stick swap</title><content type='html'>&amp;nbsp;if you have docker never ending lxml build for raspberry pi, you need to increase swap space. raspberry pi&#39;s default 100m is not enough for this. I had to make it with raspi overclock and usb stick 2gb swap space allocation, even with this setup 1gb memory and almost 350m swap usage it takes a lot of time to build lxml, be patient&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq1o581qHR6VI00mQzHiQTHvRvTBLwp9oO_vcOPQtcy6fzY98dCYE3mPO3WE0hIwCt3GqwnV_phsgG5M68H54p24lGiv0W8bdLLYIgstmrM4Y780RkCuSg322nqo1wVefkVhPP764ntE0/s1600/Screen+Shot+2019-11-24+at+16.15.32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;900&quot; data-original-width=&quot;1600&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq1o581qHR6VI00mQzHiQTHvRvTBLwp9oO_vcOPQtcy6fzY98dCYE3mPO3WE0hIwCt3GqwnV_phsgG5M68H54p24lGiv0W8bdLLYIgstmrM4Y780RkCuSg322nqo1wVefkVhPP764ntE0/s320/Screen+Shot+2019-11-24+at+16.15.32.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
#result&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp;Created wheel for websockets: filename=websockets-8.1-cp37-cp37m-linux_armv7l.whl size=78100 sha256=790eb0ccb81f08ae48e1d1930f2a2e8c2e2e846a01d7fe8bb1cb282cd8e5025f&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Stored in directory: /root/.cache/pip/wheels/74/54/40/797b9f77057c12b05b85edbf63465cbe4c24f53d301de1432b&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): started&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): still running...&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for lxml (setup.py): finished with status &#39;done&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Created wheel for lxml: filename=lxml-4.4.1-cp37-cp37m-linux_armv7l.whl size=6273585 sha256=df03cf857c0cdcfa1f9833150387f5b8426320094472cf8565f9ef7c421276db&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Stored in directory: /root/.cache/pip/wheels/19/96/46/e4e538ebbe7496324a669bb244156a0b7d8796266d8bc1b6ce&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for websockets (setup.py): started&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; Building wheel for websockets (setup.py): finished with status &#39;done&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;-- solution ---&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;#create 2gb partition on usb&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
fdisk /dev/sda1&lt;br /&gt;
&lt;br /&gt;
# make filesystem&lt;/div&gt;
sudo mkfs.ext4 -L USBSWAP /dev/sda1&lt;br /&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
#mount usb to /mnt&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;root@raspberrypi3:/ cat /etc/fstab&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;proc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;PARTUUID=610c3b14-01&amp;nbsp; /boot &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vfat&amp;nbsp; &amp;nbsp; defaults&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;PARTUUID=610c3b14-02&amp;nbsp; / &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ext4&amp;nbsp; &amp;nbsp; defaults,noatime&amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;



&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;UUID=YOUR_USB_UUID /mnt ext4 defaults,noatime 0 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;#find your usb uuid&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;blkid -o export /dev/sda1 | grep ^UUID&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;# edit these values to make swap 2gb&lt;/span&gt;&lt;/div&gt;
sudo vi /etc/dphys-swapfile&lt;br /&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;-webkit-box-shadow: none !important; background-color: white; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 17.850000381469727px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;CONF_SWAPFILE=/mnt/swap&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;;&quot;&gt;CONF_SWAPSIZE=2048&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;;&quot;&gt;#setup and enable swap&lt;/span&gt;&lt;/div&gt;
sudo dphys-swapfile setup&lt;br /&gt;
sudo dphys-swapfile swapon&lt;/div&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;-webkit-box-shadow: none !important; background-color: white; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 17.850000381469727px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;-webkit-box-shadow: none !important; background-color: white; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 17.850000381469727px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;code class=&quot;bash plain&quot; style=&quot;-webkit-box-shadow: none !important; background-color: white; background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-shadow: none !important; box-sizing: content-box !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Monaco, Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 17.850000381469727px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/4154513872513453348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/4154513872513453348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4154513872513453348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4154513872513453348'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2019/11/solved-never-ending-lxml-build.html' title='[Solved] never ending lxml build raspberry pi 3, usb stick swap'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgq1o581qHR6VI00mQzHiQTHvRvTBLwp9oO_vcOPQtcy6fzY98dCYE3mPO3WE0hIwCt3GqwnV_phsgG5M68H54p24lGiv0W8bdLLYIgstmrM4Y780RkCuSg322nqo1wVefkVhPP764ntE0/s72-c/Screen+Shot+2019-11-24+at+16.15.32.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-4789016037776312115</id><published>2019-09-12T16:29:00.000+03:00</published><updated>2019-09-12T16:29:16.650+03:00</updated><title type='text'>How to train spamassassin to stop SPAM emails</title><content type='html'>train spam assasian with commands to learn from existing emails&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;DOMAINPART will be your domain name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;LOCALPART will be your username&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;LOCALPART@&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 14px;&quot;&gt;DOMAINPART&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --ham /home/vmail/DOMAINPART/LOCALPART/.INBOX.Sent\ Messages/{cur,new}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Learned tokens from 333 message(s) (333 message(s) examined)&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --spam /home/vmail/DOMAINPART/LOCALPART/.Junk/{cur,new}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;Learned tokens from 1 message(s) (20 message(s) examined)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;root@ip-10-0-0-12:/var/log# sa-learn -p /home/USER/.spamassassin/user_prefs --spam /home/vmail/DOMAINPART/LOCALPART/.Trash/{cur,new}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;get and download new rules into spamassassin&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;run following command from command line&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Menlo; font-size: 14px; font-stretch: normal; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sa-update&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/4789016037776312115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/4789016037776312115' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4789016037776312115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/4789016037776312115'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2019/09/how-to-train-spamassassin-to-stop-spam.html' title='How to train spamassassin to stop SPAM emails'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3662638539129003062</id><published>2019-08-12T15:51:00.001+03:00</published><updated>2019-08-12T15:55:23.928+03:00</updated><title type='text'>iCloud  missing original date of videos and photos </title><content type='html'>I downloaded some videos from iCloud since it is not showing original date of videos in finder&lt;br /&gt;
so I try to find solution to reveal original dates of videos &lt;br /&gt;
I found exiftool https://www.sno.phy.queensu.ca/~phil/exiftool/ which is working perfectly in mac&lt;br /&gt;
I am planning to write a small script to add this information to the filenames or replace visible date in finder with this create and modify date&lt;br /&gt;
&lt;br /&gt;
coming soon...&lt;br /&gt;
&lt;br /&gt;
Media Create Date               : 2017:06:04 17:03:37&lt;br /&gt;
Media Modify Date               : 2017:06:04 17:04:33&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
macbook-air:jhead-3.03 sertac$ exiftool /Users/sertac/Downloads/IMG_7267.MOV &lt;br /&gt;
ExifTool Version Number         : 11.61&lt;br /&gt;
File Name                       : IMG_7267.MOV&lt;br /&gt;
Directory                       : /Users/sertac/Downloads&lt;br /&gt;
File Size                       : 103 MB&lt;br /&gt;
File Modification Date/Time     : 2019:08:12 15:24:04+03:00&lt;br /&gt;
File Access Date/Time           : 2019:08:12 15:44:00+03:00&lt;br /&gt;
File Inode Change Date/Time     : 2019:08:12 15:24:17+03:00&lt;br /&gt;
File Permissions                : rw-r--r--&lt;br /&gt;
File Type                       : MOV&lt;br /&gt;
File Type Extension             : mov&lt;br /&gt;
MIME Type                       : video/quicktime&lt;br /&gt;
Major Brand                     : Apple QuickTime (.MOV/QT)&lt;br /&gt;
Minor Version                   : 0.0.0&lt;br /&gt;
Compatible Brands               : qt&lt;br /&gt;
Movie Data Size                 : 108253575&lt;br /&gt;
Movie Data Offset               : 36&lt;br /&gt;
Movie Header Version            : 0&lt;br /&gt;
Create Date                     : 2017:06:04 17:03:37&lt;br /&gt;
Modify Date                     : 2017:06:04 17:04:33&lt;br /&gt;
Time Scale                      : 600&lt;br /&gt;
Duration                        : 0:00:56&lt;br /&gt;
Preferred Rate                  : 1&lt;br /&gt;
Preferred Volume                : 100.00%&lt;br /&gt;
Preview Time                    : 0 s&lt;br /&gt;
Preview Duration                : 0 s&lt;br /&gt;
Poster Time                     : 0 s&lt;br /&gt;
Selection Time                  : 0 s&lt;br /&gt;
Selection Duration              : 0 s&lt;br /&gt;
Current Time                    : 0 s&lt;br /&gt;
Next Track ID                   : 5&lt;br /&gt;
Track Header Version            : 0&lt;br /&gt;
Track Create Date               : 2017:06:04 17:03:37&lt;br /&gt;
Track Modify Date               : 2017:06:04 17:04:33&lt;br /&gt;
Track ID                        : 1&lt;br /&gt;
Track Duration                  : 0:00:56&lt;br /&gt;
Track Layer                     : 0&lt;br /&gt;
Track Volume                    : 100.00%&lt;br /&gt;
Image Width                     : 1920&lt;br /&gt;
Image Height                    : 1080&lt;br /&gt;
Clean Aperture Dimensions       : 1920x1080&lt;br /&gt;
Production Aperture Dimensions  : 1920x1080&lt;br /&gt;
Encoded Pixels Dimensions       : 1920x1080&lt;br /&gt;
Graphics Mode                   : ditherCopy&lt;br /&gt;
Op Color                        : 32768 32768 32768&lt;br /&gt;
Compressor ID                   : avc1&lt;br /&gt;
Source Image Width              : 1920&lt;br /&gt;
Source Image Height             : 1080&lt;br /&gt;
X Resolution                    : 72&lt;br /&gt;
Y Resolution                    : 72&lt;br /&gt;
Compressor Name                 : H.264&lt;br /&gt;
Bit Depth                       : 24&lt;br /&gt;
Video Frame Rate                : 30.001&lt;br /&gt;
Balance                         : 0&lt;br /&gt;
Audio Format                    : mp4a&lt;br /&gt;
Audio Bits Per Sample           : 16&lt;br /&gt;
Audio Sample Rate               : 44100&lt;br /&gt;
Layout Flags                    : Mono&lt;br /&gt;
Audio Channels                  : 1&lt;br /&gt;
Purchase File Format            : mp4a&lt;br /&gt;
Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data&lt;br /&gt;
Matrix Structure                : 1 0 0 0 1 0 0 0 1&lt;br /&gt;
Content Describes               : Track 1&lt;br /&gt;
Media Header Version            : 0&lt;br /&gt;
Media Create Date               : 2017:06:04 17:03:37&lt;br /&gt;
Media Modify Date               : 2017:06:04 17:04:33&lt;br /&gt;
Media Time Scale                : 600&lt;br /&gt;
Media Duration                  : 0:00:56&lt;br /&gt;
Media Language Code             : und&lt;br /&gt;
Gen Media Version               : 0&lt;br /&gt;
Gen Flags                       : 0 0 0&lt;br /&gt;
Gen Graphics Mode               : ditherCopy&lt;br /&gt;
Gen Op Color                    : 32768 32768 32768&lt;br /&gt;
Gen Balance                     : 0&lt;br /&gt;
Handler Class                   : Data Handler&lt;br /&gt;
Handler Vendor ID               : Apple&lt;br /&gt;
Handler Description             : Core Media Data Handler&lt;br /&gt;
Meta Format                     : mebx&lt;br /&gt;
Handler Type                    : Metadata Tags&lt;br /&gt;
Make                            : Apple&lt;br /&gt;
Model                           : iPhone 7 Plus&lt;br /&gt;
Software                        : 10.3.2&lt;br /&gt;
Creation Date                   : 2017:06:04 20:03:37+03:00&lt;br /&gt;
Image Size                      : 1920x1080&lt;br /&gt;
Megapixels                      : 2.1&lt;br /&gt;
Avg Bitrate                     : 15.5 Mbps&lt;br /&gt;
Rotation                        : </content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3662638539129003062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3662638539129003062' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3662638539129003062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3662638539129003062'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2019/08/icloud-missing-original-date-of-videos.html' title='iCloud  missing original date of videos and photos '/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3646409437362904485</id><published>2019-07-06T15:27:00.000+03:00</published><updated>2019-07-06T15:29:41.792+03:00</updated><title type='text'>Using virtualenv with python3</title><content type='html'>&lt;pre&gt;pip3 install --upgrade virtualenv&lt;br&gt;
virtualenv nameofyourvirtenv
&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3646409437362904485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3646409437362904485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3646409437362904485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3646409437362904485'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2019/07/using-virtualenv-with-python3.html' title='Using virtualenv with python3'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-2026431289322224373</id><published>2018-01-27T01:59:00.003+03:00</published><updated>2018-01-27T01:59:39.029+03:00</updated><title type='text'>bash rasbian boring locale warning </title><content type='html'>to get rid of this warning&lt;br /&gt;
&lt;br /&gt;
run those as root&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #f6f8fa; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; font-size: 11.899999618530273px; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, monospace; line-height: inherit; margin: 0px; overflow: visible; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;echo &quot;LC_ALL=en_US.UTF-8&quot; &amp;gt;&amp;gt; /etc/environment
echo &quot;en_US.UTF-8 UTF-8&quot; &amp;gt;&amp;gt; /etc/locale.gen
echo &quot;LANG=en_US.UTF-8&quot; &amp;gt; /etc/locale.conf
locale-gen en_US.UTF-8&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/2026431289322224373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/2026431289322224373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2026431289322224373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2026431289322224373'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2018/01/bash-rasbian-boring-locale-warning.html' title='bash rasbian boring locale warning '/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-2643384561319984041</id><published>2018-01-24T13:57:00.002+03:00</published><updated>2020-03-10T11:25:15.378+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="django"/><title type='text'>django haystack index update only new items</title><content type='html'>When solr index becomes bigger, update_index is taking some time and in this period search is returning empty resultset to prevent this basicly you only need to include to the index latest modified records in database.&lt;br /&gt;
&lt;br /&gt;
following changes in your model and index structure help you to achieve fast index updates&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;post-text&quot; itemprop=&quot;text&quot; style=&quot;border: 0px; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; line-height: 1.3; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline; width: 660px; word-wrap: break-word;&quot;&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;models.py&lt;/strong&gt;&lt;/div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyModel&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    user &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; models&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;ForeignKey&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;User&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    modified &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; models&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;DateTimeField&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;auto_now&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;) # add this field to your model&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;search_indexes.py&lt;/strong&gt;&lt;/div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;MyModelIndex&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;SearchIndex&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    text &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CharField&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;document&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; use_template&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    user &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;CharField&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;model_attr&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;user&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
    # add this function to your search_indexes.py
    &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; get_updated_field&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;):&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;modified&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;background-color: #eff0f1; border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;./manage.py update_index --age=110&lt;/code&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant-caps: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
indexing will run only items updated in the last 110 hours.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/2643384561319984041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/2643384561319984041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2643384561319984041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2643384561319984041'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2018/01/django-haystack-index-update-only-new.html' title='django haystack index update only new items'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-159842432468248919</id><published>2017-05-26T00:34:00.001+03:00</published><updated>2017-05-26T00:34:18.796+03:00</updated><title type='text'>setting raspberry pi time from gps</title><content type='html'>I find this project works perfectly for this purpose&lt;br /&gt;
&lt;br /&gt;
https://code.google.com/archive/p/gpstime/</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/159842432468248919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/159842432468248919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/159842432468248919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/159842432468248919'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2017/05/setting-raspberry-pi-time-from-gps.html' title='setting raspberry pi time from gps'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-2271421629704235251</id><published>2017-02-10T09:41:00.002+03:00</published><updated>2017-02-10T09:41:45.561+03:00</updated><title type='text'>Raspberry pi zero and pi3 gstreamer streaming without latency</title><content type='html'>&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #34bc26; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;b&gt;pi@raspberrypi&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #5230e1; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;b&gt;~ $&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp;more stream_working.sh&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal;&quot;&gt;
&lt;span style=&quot;font-family: menlo; font-size: 14px;&quot;&gt;raspivid -t 0 -w 1280 -h 720 -fps 30 -vf -b 1700000 -o - |&lt;/span&gt;&lt;span style=&quot;font-family: menlo;&quot;&gt;&amp;nbsp;&lt;/span&gt;tee YOURFILENAME.h264&lt;span style=&quot;background-color: #f7f7f9; color: #8b8b8b; font-family: Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, mono; font-size: 11.7px;&quot;&gt;&amp;nbsp;|&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: menlo;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;gst-launch-1.0 -v fdsrc ! h264parse config-interval=1 ! rtph264pay ! udpsink host = TARGET_IP(here is my macbook) port= 9000&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sertac-MacBook-Air:~ sertac$ more get_stream_working.sh&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;gst-launch-1.0 udpsrc port=9000 ! application/x-rtp,encoding-&lt;wbr&gt;&lt;/wbr&gt;name=H264,payload=96 ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: menlo; font-size: 14px; line-height: normal;&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;here above you can find gstreamer commands to stream live HD video from raspberry pi and save it file at the same time it is working on pi3 almost no latency but pi zero could not be fast enough for this process I saw at least 45 seconds delay&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/2271421629704235251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/2271421629704235251' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2271421629704235251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/2271421629704235251'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2017/02/raspberry-pi-zero-and-pi3-gstreamer.html' title='Raspberry pi zero and pi3 gstreamer streaming without latency'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-366757717741682882</id><published>2016-11-27T22:03:00.002+03:00</published><updated>2016-11-27T22:03:52.145+03:00</updated><title type='text'>AttributeError: &#39;Feed&#39; object has no attribute &#39;contenty_type&#39; (solved)</title><content type='html'>https://github.com/django/django/commit/5c125f63f77e169a459c11bab0f639c83fabc6e2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I had this problem when I try to upgrade my system from django 1.8 to 1.10.3&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #ffecec; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;- response &lt;/span&gt;&lt;span class=&quot;pl-k&quot; style=&quot;box-sizing: border-box; color: #a71d5d; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffecec; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt; HttpResponse(&lt;/span&gt;&lt;span class=&quot;pl-v&quot; style=&quot;box-sizing: border-box; color: #ed6a43; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;content_type&lt;/span&gt;&lt;span class=&quot;pl-k&quot; style=&quot;box-sizing: border-box; color: #a71d5d; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #ffecec; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;feedgen.&lt;/span&gt;&lt;span class=&quot;x x-first x-last&quot; style=&quot;background-color: #f8cbcb; border-bottom-left-radius: 0.2em; border-bottom-right-radius: 0.2em; border-top-left-radius: 0.2em; border-top-right-radius: 0.2em; box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;mime_type&lt;/span&gt;&lt;span style=&quot;background-color: #ffecec; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;+ response &lt;/span&gt;&lt;span class=&quot;pl-k&quot; style=&quot;box-sizing: border-box; color: #a71d5d; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt; HttpResponse(&lt;/span&gt;&lt;span class=&quot;pl-v&quot; style=&quot;box-sizing: border-box; color: #ed6a43; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;content_type&lt;/span&gt;&lt;span class=&quot;pl-k&quot; style=&quot;box-sizing: border-box; color: #a71d5d; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;feedgen.&lt;/span&gt;&lt;span class=&quot;x x-first x-last&quot; style=&quot;background-color: #a6f3a6; border-bottom-left-radius: 0.2em; border-bottom-right-radius: 0.2em; border-top-left-radius: 0.2em; border-top-right-radius: 0.2em; box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;content_type&lt;/span&gt;&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: #eaffea; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Menlo, Courier, monospace; font-size: 12px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;response = wrapped_callback(request, *callback_args, **callback_kwargs)&lt;/div&gt;
&lt;div style=&quot;color: #0080e1; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
&lt;span style=&quot;color: #ff2600;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;File ..../lib/python2.7/site-packages/django/contrib/syndication/views.py&quot;, line 43, in __call__&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
&amp;nbsp; &amp;nbsp; response = HttpResponse(content_type=feedgen.contenty_type)&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
AttributeError: &#39;Feed&#39; object has no attribute &#39;contenty_type&#39;&lt;/div&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #ff2600; font-family: Monaco; font-size: 13px; line-height: normal;&quot;&gt;
mime_type is dead so replace mime_type with content_type in your Feed.py to resolve this issue for django 1.10&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/366757717741682882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/366757717741682882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/366757717741682882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/366757717741682882'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2016/11/attributeerror-feed-object-has-no.html' title='AttributeError: &#39;Feed&#39; object has no attribute &#39;contenty_type&#39; (solved)'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-8289320469976455350</id><published>2016-11-21T15:00:00.003+03:00</published><updated>2016-11-21T15:02:18.920+03:00</updated><title type='text'>Ubuntu listing upgradeable packages</title><content type='html'>&lt;pre style=&quot;background-color: #eff0f1; border: 0px; color: #111111; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;apt list --upgradable&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/8289320469976455350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/8289320469976455350' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8289320469976455350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/8289320469976455350'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2016/11/ubuntu-listing-upgradeable-packages.html' title='Ubuntu listing upgradeable packages'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-3947150701734681767</id><published>2016-11-21T15:00:00.001+03:00</published><updated>2016-11-21T15:00:19.453+03:00</updated><title type='text'>Fixing nginx pagespeed cache folder write problem</title><content type='html'>Fixing nginx pagespeed cache folder write problem&lt;br /&gt;
&lt;br /&gt;
log&lt;br /&gt;
&lt;br /&gt;
2016/11/21 11:55:03 [error] 1765#0: [ngx_pagespeed 1.10.33.6-0] /var/ngx_pagespeed_cache/v3/xxxx.com/https,3A/,2Ffileblabla,.tempT7ZURX:0:opening temp file: No such file or directory&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
fix&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #222222; font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;sudo chown -R www-data var/cache/mod_pagespeed&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/3947150701734681767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/3947150701734681767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3947150701734681767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/3947150701734681767'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2016/11/fixing-nginx-pagespeed-cache-folder.html' title='Fixing nginx pagespeed cache folder write problem'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-5003971452579877826</id><published>2016-09-15T09:28:00.000+03:00</published><updated>2016-09-15T09:30:27.596+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hackerrank"/><title type='text'>Some HackerRank Python Solutions</title><content type='html'>HackerRank ı gerçekten python öğrenim konusunda çok başarılı buldum, yeni öğrenen arkadaşlar kendilerini burada çok iyi geliştirebilirler.


satırları int dizilerin dizisi yapmak
&lt;pre&gt;
s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))

output [[5, 3], [10, 2, 5], [7, 1, 0], [9, 9, 9], [1, 23, 12], [6, 5, 9], 

---

&gt;&gt;&gt; from collections import Counter
&gt;&gt;&gt; 
&gt;&gt;&gt; myList = [1,1,2,3,4,5,3,2,3,4,2,1,2,3]
&gt;&gt;&gt; print Counter(myList)
Counter({2: 4, 3: 4, 1: 3, 4: 2, 5: 1})
&gt;&gt;&gt;
&gt;&gt;&gt; print Counter(myList).items()
[(1, 3), (2, 4), (3, 4), (4, 2), (5, 1)]
&gt;&gt;&gt; 
&gt;&gt;&gt; print Counter(myList).keys()
[1, 2, 3, 4, 5]
&gt;&gt;&gt; 
&gt;&gt;&gt; print Counter(myList).values()
[3, 4, 4, 2, 1]

----

[1]]

-----
# Enter your code here. Read input from STDIN. Print output to STDOUT

s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))
    
N,M=s[0][0],s[0][1]
K=s[N+1][0]


d={}
for i in range(1,N+1):
    d[s[i][K]]=s[i]

import collections

od = collections.OrderedDict(sorted(d.items()))
for k, v in od.iteritems(): 
    print &quot; &quot;.join(map(str,v))
                                    


-----
s=[]
import sys
for line in sys.stdin:
    s.append(line)
    
N=map(int,s[0].split())[0]
M=map(int,s[0].split())[1]



------
arr = map(int, raw_input().split())
filter((lambda x: x &amp;lt; 0), range(10))

----
import sys
for line in sys.stdin:
    s=line
   
print s[:500]


---------

import operator
import sys

s=[]
import sys
for line in sys.stdin:
    s.append(line)
    
s1=map(int,s)

print reduce(operator.add,s1)
print reduce(operator.sub,s1)
print reduce(operator.mul,s1)

----
import operator
import sys

s=[]
import sys
for line in sys.stdin:
    s.append(line)
    
s1=map(int,s)
print s1[0]//s1[1]
print s1[0]*1.0/s1[1]*1.0

----

# Enter your code here. Read input from STDIN. Print output to STDOUT
N=None
import math
import sys
for line in sys.stdin:
    N=int(line)

res=map(lambda x:x*x,range(N))

for i in res:
    print i
 
-------

def is_leap(year):
    leap = False
    
    # Write your logic here
    if year%4==0:
        leap=True
    if year%100==0:
        leap=False
    if year%400==0:
        leap=True

        
    return leap
 
-----
 
import sys
print &quot;&quot;.join(map(str,range(1,int([line for line in sys.stdin][0])+1)))

----
# Enter your code here. Read input from STDIN. Print output to STDOUT


import operator
import sys
h=0
s=[]
import sys
for line in sys.stdin:
    s.append(line)
    
arr=map(int,s[1].split())
A=set(map(int,s[2].split()))
B=set(map(int,s[3].split()))


for i in arr:
    if i in A:
        h=h+1
    elif i in B:
        h=h-1

print h

----

# Enter your code here. Read input from STDIN. Print output to STDOUT
s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))

n_shoes=s[0][0]
sizes=s[1]
number_of_customers=s[2][0]

top=0
for i in range(3,number_of_customers+3):
  try:
    if s[i][0] in sizes:
        top+=s[i][1]
        sizes.remove(s[i][0])
  except:
    pass

print top


-----

def fib(n):
    return n if n &amp;lt; 2 else fib(n-1) + fib(n-2)

s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))

fibo=[]
for i in range(s[0][0]):
    fibo.append(fib(i))
    
print map(lambda x:x**3,fibo)

------


# Enter your code here. Read input from STDIN. Print output to STDOUT

s=[]
import sys
for line in sys.stdin:
    s.append(line.split())
    
res=[]    
for i in range(1,int(s[0][0])+1):
    op=s[i][0]
    if op in (&quot;print&quot;,&quot;sort&quot;,&quot;pop&quot;,&quot;reverse&quot;):
        pass
    elif op in (&quot;append&quot;,&quot;remove&quot;):
        val=int(s[i][1])
    elif op ==&quot;insert&quot;:
        indx=int(s[i][1])
        val=int(s[i][2])
    else:
        print op
    
    if op==&quot;insert&quot;:
        res.insert(indx,val)
    elif op==&quot;append&quot;:
        res.append(val)
    elif op==&quot;print&quot;:
        print res
    elif op==&quot;sort&quot;:
        res.sort()
    elif op==&quot;reverse&quot;:
        res.reverse()
    elif op==&quot;remove&quot;:
        res.remove(val)
    elif op==&quot;pop&quot;:
        res.pop()

  
----
  # Enter your code here. Read input from STDIN. Print output to STDOUT
s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))
    
tnp=s[0][0]
alt=set(s[1])



print sum(alt)*1.0/len(alt)*1.0


--------


# Enter your code here. Read input from STDIN. Print output to STDOUT
s=[]
import sys
for line in sys.stdin:
    s.append(map(int,line.split()))

if len(filter(lambda x:x&lt;0 s=&quot;&quot;&gt;0:
    print False
elif len(filter(lambda x:x&lt;10 or=&quot;&quot; s=&quot;&quot; x=&quot;&quot;&gt;0:
    print True
else:
    print False
     
-----------


# Enter your code here. Read input from STDIN. Print output to STDOUT
import string

s=[]
import sys
for line in sys.stdin:
    s.append(line.rstrip(&#39;\n&#39;))
    
ALLOWED = frozenset(string.ascii_letters + string.digits + &#39;_&#39; + &#39;-&#39;)
ALLOWED2 = frozenset(string.ascii_letters + string.digits)



def parse(s):
    global u,w,e
    if s.count(&quot;@&quot;) !=1 or s.count(&quot;.&quot;)!=1:
        return False
    
    try:
        username=s.split(&#39;@&#39;)[0]
        websitename=(s.split(&#39;@&#39;)[1]).split(&#39;.&#39;)[0]
        extension=s.split(&#39;.&#39;)[1]
        u,w,e=username,websitename,extension
        
        if not all(map(len,[u,w,e]))&amp;gt;0:
                return False
        return True
    except:
        return False

def check(mystring,x):
    return all(c in x for c in mystring)

def son3(s):
    if len(s)&amp;lt;=3 and len(s)&amp;gt;0:
        return True
    else:
        return False

print sorted(filter(lambda x:parse(x) and check(u,ALLOWED) and check(w,ALLOWED2) and son3(e),s))

&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/5003971452579877826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/5003971452579877826' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/5003971452579877826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/5003971452579877826'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2016/09/some-hackerrank-python-solutions.html' title='Some HackerRank Python Solutions'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7937067671033653737.post-1026422722836818476</id><published>2016-02-10T22:13:00.002+02:00</published><updated>2016-09-24T09:29:53.135+03:00</updated><title type='text'>Raspberry pi zeroyu komut satırı modda otomatik wifi ye bağlama gizli ssid</title><content type='html'>http://zierfischkaefig.de/merkblaetter/raspberry-pi-edimax-ew-7811un-und-ein-verstecktes-wlan/&lt;br /&gt;
&lt;br /&gt;
Bugün sipariş ettiğim raspberry pi zero elime geçti.
İnanılmaz küçük bir bilgisayar ilk gördüğümdeki heyecanı şaşkınlığı herhalde hiç unutmayacağım.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Yukardaki makaledeki ayarlar ile raspberry pi zero yu cli modda internete wifi adaptör(edimax kolay ve hızlıca tanınıyor) otomatik internete bağlayabilirsiniz
</content><link rel='replies' type='application/atom+xml' href='http://sertaccamci.blogspot.com/feeds/1026422722836818476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7937067671033653737/1026422722836818476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/1026422722836818476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7937067671033653737/posts/default/1026422722836818476'/><link rel='alternate' type='text/html' href='http://sertaccamci.blogspot.com/2016/02/raspberry-pi-zeroyu-komut-satr-modda.html' title='Raspberry pi zeroyu komut satırı modda otomatik wifi ye bağlama gizli ssid'/><author><name>prof.math</name><uri>http://www.blogger.com/profile/06427671606879891236</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>