<?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-4816732346682238582</id><updated>2024-09-01T05:31:39.438-07:00</updated><category term="Linux"/><category term="VMWare"/><category term="C++"/><category term="Data Strucure"/><category term="Java"/><category term="ArcCatalog"/><category term="ArcGIS"/><category term="ArcMap"/><category term="Embedded Systems"/><category term="Enterprise Geodatabase"/><category term="GIS"/><category term="GTK+"/><category term="Modelio"/><category term="PIC Projects"/><category term="Proteus"/><category term="QT"/><category term="Technology"/><category term="Windows"/><category term="eclipse"/><category term="microC"/><category term="mikroC"/><title type='text'>GisTips</title><subtitle type='html'>ArcGIS tips for users and developers</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-8340972712068699472</id><published>2019-09-20T12:16:00.001-07:00</published><updated>2021-03-28T13:32:50.592-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technology"/><title type='text'>How to use FeatureLayer in ArcGIS API for JavaScript 3.x</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this post we will explain how to use FeatureLayer class in ArcGIS API for JavaScript.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
applies to 3.x API&lt;/blockquote&gt;
First we need to include (Map, FeatureLayer) classes from the API&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;require([
  &quot;esri/map&quot;,
  &quot;esri/layers/FeatureLayer&quot;,
  &quot;dojo/ready&quot;,
], function(Map, FeatureLayer, ready) {

  ready(function(){
    // Put your code in this block.
  });
});
&lt;/pre&gt;
&lt;br /&gt;
Also note that we used the ready class from dojo in order to run our code after the page is fully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we need to create a new object of type FeatureLayer. We do that in the &quot;ready&quot; function as follows:&lt;br /&gt;
&lt;pre&gt;ready(function(){
    var feature_layer = new FeatureLayer();
});&lt;/pre&gt;
&lt;br /&gt;
To properly creating an object of FeatureLayer, we need to pass some properties to its constructor&lt;br /&gt;
&lt;pre&gt;ready(function(){
  var feature_layer = new FeatureLayer(
    url_to_feature_layer
    , {
      mode: FeatureLayer.MODE_ONDEMAND,
      outFields: [&quot;*&quot;],
      visible: true,
      id: &quot;id_inside_map&quot;
    }
  );
});&lt;/pre&gt;
&lt;br /&gt;
Let us explain the properties:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;url_to_feature_layer : The url of the FeatureLayer for example this is a URL from ESR:&lt;br /&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Prominent_Peaks_attach/FeatureServer/0&lt;/li&gt;
&lt;li&gt;mode: The mode to load features:&lt;br /&gt;MODE_ONDEMAND: Loads features when you pan to the extent in which they exist or when you zoom to the level in which the layer is visible.&lt;br /&gt;MODE_SNAPSHOT: The features will be loaded once the layer is added to the map.&lt;br /&gt;MODE_SELECTION: The feature will be loaded once it is selected using the &quot;selectFeatures&quot; method.&lt;br /&gt;MODE_AUTO: The mode will be selected automatically depending on the number of features and the number of vertices in the features.&lt;/li&gt;
&lt;li&gt;visible: Determines if the layer is visible in the map or not (the default value is true).&lt;/li&gt;
&lt;li&gt;id: The ID of the layer in the map, this helps you to retrieve the layer from the map in a user friendly name.&lt;/li&gt;
&lt;/ul&gt;
&amp;nbsp;Now we need to add the FeatureLayer to the map:&lt;br /&gt;
&lt;pre&gt;ready(function(){
  var feature_layer = new FeatureLayer(
    url_to_feature_layer
    , {
      mode: FeatureLayer.MODE_ONDEMAND,
      outFields: [&quot;*&quot;],
      visible: true,
      id: &quot;id_inside_map&quot;
    }
  );&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;map.addLayer(feature_layer);&lt;/pre&gt;
&lt;pre&gt;});&lt;/pre&gt;
&lt;br /&gt;
Thanks for reading my tutorial, please do not hesitate to ask any question in the comments.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/8340972712068699472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2019/09/how-to-use-featurelayer-in-arcgis-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8340972712068699472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8340972712068699472'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2019/09/how-to-use-featurelayer-in-arcgis-api.html' title='How to use FeatureLayer in ArcGIS API for JavaScript 3.x'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-2550021579230111659</id><published>2019-05-29T08:55:00.000-07:00</published><updated>2019-05-29T08:55:11.085-07:00</updated><title type='text'>تنصيب برنامج XAMPP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
بسم الله الرحمن الرحيم&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
سوف نقو بشرح مبسط&amp;nbsp; لطريقة تنسيب برنامج XAMPP و هو عبارة عن حزمة تحتوي على سيرفر Apache و سيرفر MySQL و برنامج phpMyAdmin.&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
أولا نقوم بتنزيل البرنامج من موقعه الرسمي:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://www.apachefriends.org/download.html&quot;&gt;https://www.apachefriends.org/download.html&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
الآن نقوم بفتح البرنامج كمسؤول:&lt;/div&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/AVvXsEj50vPNSl_RXVF7lGMqLl4FKD3hdH9mY0h46WCo6ECLkB8duxJCUlCShHU9AYuCEiAGDja7fGv0Srz6evpXT792dR0DoLiVzTVW2N_JEY7GaCx7I2-DzitTQZNfz3aEumEX2J69qCsmyr3d/s1600/1.jpg&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;101&quot; data-original-width=&quot;102&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj50vPNSl_RXVF7lGMqLl4FKD3hdH9mY0h46WCo6ECLkB8duxJCUlCShHU9AYuCEiAGDja7fGv0Srz6evpXT792dR0DoLiVzTVW2N_JEY7GaCx7I2-DzitTQZNfz3aEumEX2J69qCsmyr3d/s1600/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
سوف تظهر الشاشة التالية:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEic5Ao5EUqHafC_sKph09kt7650RgK41-_Vx-L3eXUWog_PHwnJX5Xafdc3KMleLbVYRjAS4RJNsO6PScwcf0leOg5WagMRqKfRNjErLoh0gC0wvzeEs5M0br0GJIAoWCtwh4C5LfbkwOug/s1600/2.jpg&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic5Ao5EUqHafC_sKph09kt7650RgK41-_Vx-L3eXUWog_PHwnJX5Xafdc3KMleLbVYRjAS4RJNsO6PScwcf0leOg5WagMRqKfRNjErLoh0gC0wvzeEs5M0br0GJIAoWCtwh4C5LfbkwOug/s1600/2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
نقوم بالضغط على زر Next لتظهر النافذة التالية:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEhGZ99piKiXA44PbGc1K2R3R52Xb4d6E3y9Lo19C0hI_S-vZiYnEwvRmnTzTTyXkEUq4cP_psKyBMCIo5guCSorrPPkn9uIHlIkCm-b9D-VZTqhUeX6IfbXb6Qrj9WsAuf6nQbdBSFbjcqK/s1600/3.jpg&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGZ99piKiXA44PbGc1K2R3R52Xb4d6E3y9Lo19C0hI_S-vZiYnEwvRmnTzTTyXkEUq4cP_psKyBMCIo5guCSorrPPkn9uIHlIkCm-b9D-VZTqhUeX6IfbXb6Qrj9WsAuf6nQbdBSFbjcqK/s1600/3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
من المربع رقم 1 نقوم باختيار الميزات التي نريد تنصيبها على الجهاز و في حالتنا هذه نريد فقط Apache و MySQL.&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
نضغط Next لتظهر الشاشة التالية:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEiTZqGIpzOLyBV3yLEB4XNPNpp6eeTG3VWBnJ4eH3KeyhI3rOCEJFm-37YAo_cvWSTyMdNZG6Edy7okWwsAko91DMoGkmPX8xBu72Th_EG8Gcdocxn6VYnaOBKEZRgkUNVBYMzzpqnwiQft/s1600/4.jpg&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTZqGIpzOLyBV3yLEB4XNPNpp6eeTG3VWBnJ4eH3KeyhI3rOCEJFm-37YAo_cvWSTyMdNZG6Edy7okWwsAko91DMoGkmPX8xBu72Th_EG8Gcdocxn6VYnaOBKEZRgkUNVBYMzzpqnwiQft/s1600/4.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
في البند (1) نقوم باختيار مسار المجلد الذي نريد تنصيب البرنامج بداخله. سوف نترك القيمة الافتراضية كما هي.&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
ثم نضغط على زر Next لتظهر الشاشة التالية:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEgObCWZJc_cIwiPG8CCKY1uSugwy_LYrhQBpChq31aOKBB96hOUh4ik0PvN2GShbLBhWFwzPazR6-iON1vd0Pqtrep41nnw7J7jlAyLRyQB_s61CnyJbvBHBhwaYeeDumdnFMST5u1jC0HU/s1600/5.jpg&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgObCWZJc_cIwiPG8CCKY1uSugwy_LYrhQBpChq31aOKBB96hOUh4ik0PvN2GShbLBhWFwzPazR6-iON1vd0Pqtrep41nnw7J7jlAyLRyQB_s61CnyJbvBHBhwaYeeDumdnFMST5u1jC0HU/s1600/5.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
نقوم بإلغاء تفعل الخيار كما هو موضح في البند (1) و من ثم نضغط على زر Next لتظهر لنا الشاشة التالية:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEjaL5pW4KryPCu5-Z3O-m2mdiLe2fTBA9gLDSaPnOMCbtf8Xh4J9FG3AFc_sdkHOXueAeD0VfRoW-ZcXLf8UAsOwcSrAoGgU-FlgkLs4Wf5A_3-TmaqnnZLXN7bO1KXHoVhNNLKC06NICU6/s1600/6.jpg&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaL5pW4KryPCu5-Z3O-m2mdiLe2fTBA9gLDSaPnOMCbtf8Xh4J9FG3AFc_sdkHOXueAeD0VfRoW-ZcXLf8UAsOwcSrAoGgU-FlgkLs4Wf5A_3-TmaqnnZLXN7bO1KXHoVhNNLKC06NICU6/s1600/6.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
سيتم الآن البدء بتنصيب XAMPP فقط اضغط على زر Next لتبدأ عملية التنصيب:&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&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/AVvXsEg9Z2gLNgmVSyKvAbNFKT2Pdf31Tpb1T4dk87BjhiPpxsmSw197B-uWzX_4vmxdf_WbBPh-qg3IcNKenJjCQx_wjbqArNKJTDZUsMsQAI2NmjhG43MH25GayVFlGo9AnyQVHBlw4dD2RnCu/s1600/7.JPG&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;427&quot; data-original-width=&quot;508&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9Z2gLNgmVSyKvAbNFKT2Pdf31Tpb1T4dk87BjhiPpxsmSw197B-uWzX_4vmxdf_WbBPh-qg3IcNKenJjCQx_wjbqArNKJTDZUsMsQAI2NmjhG43MH25GayVFlGo9AnyQVHBlw4dD2RnCu/s1600/7.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;rtl&quot; style=&quot;text-align: right;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/2550021579230111659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2019/05/xampp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2550021579230111659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2550021579230111659'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2019/05/xampp.html' title='تنصيب برنامج XAMPP'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj50vPNSl_RXVF7lGMqLl4FKD3hdH9mY0h46WCo6ECLkB8duxJCUlCShHU9AYuCEiAGDja7fGv0Srz6evpXT792dR0DoLiVzTVW2N_JEY7GaCx7I2-DzitTQZNfz3aEumEX2J69qCsmyr3d/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-8983811355823669356</id><published>2019-05-21T22:29:00.001-07:00</published><updated>2019-05-21T22:29:53.041-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ArcCatalog"/><category scheme="http://www.blogger.com/atom/ns#" term="ArcGIS"/><category scheme="http://www.blogger.com/atom/ns#" term="ArcMap"/><category scheme="http://www.blogger.com/atom/ns#" term="Enterprise Geodatabase"/><category scheme="http://www.blogger.com/atom/ns#" term="GIS"/><title type='text'>Create Geodatabase Version in ArcGIS and ArcMap</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To create a Geodatabsae Version we open ArcCatalog window from ArcMap and then go to our Enterprise Geodatabase Connection and right click on it and then choose as follows:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;Administration --&amp;gt; Administer Geodatabase&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
As shown in the following image:&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/AVvXsEg67TuWA55bNj7KAkZubknIvytnX6a2iberqs_GSGNZLQFIaMaYUi1BrEPnVohWnDOAKOLY6epzCXeufU92v_N9STa2YDLFoXRAXM_3v05g8Xhm8pONpyAnnlONEJ6slcXIzqqHFZRQ4sjT/s1600/fgdf.jpg&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;462&quot; data-original-width=&quot;487&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg67TuWA55bNj7KAkZubknIvytnX6a2iberqs_GSGNZLQFIaMaYUi1BrEPnVohWnDOAKOLY6epzCXeufU92v_N9STa2YDLFoXRAXM_3v05g8Xhm8pONpyAnnlONEJ6slcXIzqqHFZRQ4sjT/s1600/fgdf.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
We will get the following window (Geodatabase Administration):&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/AVvXsEg4-Pd9YQuVdBRWcuR2iqjK5JUT5brCdSI_ZEFr8z3idcB2LlyA2g3wXgYNWCp0hpRShts77-yuxrGoGU9RDhgBAljKxzkts_f_wfqIpZjexIOGY1f_emlgNs8_3CntbXioFLdTxEJDT7zH/s1600/01.jpg&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;381&quot; data-original-width=&quot;616&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4-Pd9YQuVdBRWcuR2iqjK5JUT5brCdSI_ZEFr8z3idcB2LlyA2g3wXgYNWCp0hpRShts77-yuxrGoGU9RDhgBAljKxzkts_f_wfqIpZjexIOGY1f_emlgNs8_3CntbXioFLdTxEJDT7zH/s1600/01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Then we choose the parent version for our new version, the version from which we will take a copy as follows:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;Right click on parent version --&amp;gt;&amp;nbsp; New Version&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
We will get the following window:&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/AVvXsEh9SrlMK8ZmM0GcC9lPyP7Sr9Zqn6dzvbOxDB4fKI7mmjO8oEQO0eDO-x3ago1cNfoigp5uerc_47vydOwjZ1BKh4vImP40ww4n3Y3SvgiTJbZKvmAnZb_XRxdTKy5rY0OelOQQo-TxGYOV/s1600/03.jpg&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;384&quot; data-original-width=&quot;621&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9SrlMK8ZmM0GcC9lPyP7Sr9Zqn6dzvbOxDB4fKI7mmjO8oEQO0eDO-x3ago1cNfoigp5uerc_47vydOwjZ1BKh4vImP40ww4n3Y3SvgiTJbZKvmAnZb_XRxdTKy5rY0OelOQQo-TxGYOV/s1600/03.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
We fill the data according to the following brief explanation:&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Name: The name of our new Version.&lt;/li&gt;
&lt;li&gt;Description: general notes about the version.&lt;/li&gt;
&lt;li&gt;Access: The access level of the version.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
For Access level, please check this post: &lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://eng-mah.blogspot.com/2019/05/arcgis-geodabase-version-access-level.html&quot; target=&quot;_blank&quot;&gt;ArcGIS Geodabase Version Access Level&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/8983811355823669356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2019/05/create-geodatabase-version-in-arcgis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8983811355823669356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8983811355823669356'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2019/05/create-geodatabase-version-in-arcgis.html' title='Create Geodatabase Version in ArcGIS and ArcMap'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg67TuWA55bNj7KAkZubknIvytnX6a2iberqs_GSGNZLQFIaMaYUi1BrEPnVohWnDOAKOLY6epzCXeufU92v_N9STa2YDLFoXRAXM_3v05g8Xhm8pONpyAnnlONEJ6slcXIzqqHFZRQ4sjT/s72-c/fgdf.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-9089382957195925059</id><published>2019-05-21T22:22:00.000-07:00</published><updated>2019-05-21T22:22:11.180-07:00</updated><title type='text'>ArcGIS Geodabase Version Access Level</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this post we will explain the access level of geodatabase version.&lt;br /&gt;
The following table show in short and comprehensive way what each access level allows the owner of the version to do and what other users can do:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;table border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
  &lt;td&gt;&lt;/td&gt;
  &lt;td&gt;Version Owner&lt;/td&gt;
  &lt;td&gt;Other Users&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Public&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;View, Edit&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;View, Edit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Protected&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;View, Edit&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;View&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td&gt;Private&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;View, Edit&lt;/td&gt;
  &lt;td style=&quot;text-align: center;&quot;&gt;No Access&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/9089382957195925059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2019/05/arcgis-geodabase-version-access-level.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/9089382957195925059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/9089382957195925059'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2019/05/arcgis-geodabase-version-access-level.html' title='ArcGIS Geodabase Version Access Level'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-4697079184459631658</id><published>2019-05-10T01:09:00.003-07:00</published><updated>2019-05-21T22:00:16.977-07:00</updated><title type='text'>Create ArcGIS Enterprise Geodatabase in Oracle 11g R2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this tutorial I am going to explain in short and easy way how to create an enterprise geodatabase in Oracle 11g R2 with ArcMap.&lt;br /&gt;
&lt;br /&gt;
First we need to have Oracle 11g R2 installed (click here for how to install oracle 11g R2).&lt;br /&gt;
&lt;br /&gt;
After having Oracle 11g R2 installed, we will open the &quot;Create Enterprise Geodatabase&quot; tool from ArcCatalog window from the following path:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;Toolboxes &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; Data Management Tools --&amp;gt; Geodatabase Administration &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;&lt;span style=&quot;font-size: 1.1em;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: white;&quot;&gt;&lt;span style=&quot;background-color: blue;&quot;&gt;--&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;Create Enterprise Geodatabase&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
The tool will appear as in the following image:&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/AVvXsEgtDCC7lBcs9NKwQPhPH9YY_Mc5tLfNUAX_AyNrBbCMHmnoOfV2jmL_xq-l0ThwfTVzZwyrYMp1ljtLP-Zv6ybi_KP3u601PI05WMgwT7DjbXeN0LDW_cvcaMJRC0LXHhndMEMCsrUaGrV7/s1600/01.jpg&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;497&quot; data-original-width=&quot;753&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtDCC7lBcs9NKwQPhPH9YY_Mc5tLfNUAX_AyNrBbCMHmnoOfV2jmL_xq-l0ThwfTVzZwyrYMp1ljtLP-Zv6ybi_KP3u601PI05WMgwT7DjbXeN0LDW_cvcaMJRC0LXHhndMEMCsrUaGrV7/s1600/01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The options are explained as following:&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Database Platform&lt;/b&gt;&lt;/span&gt; : is the type of the database we are using, which in our case is Oracle.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Instance&lt;/b&gt;&lt;/span&gt; : the address to the database we are using.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Database Administrator Password&lt;/b&gt;&lt;/span&gt; : is the password of the user &quot;SYS&quot;.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Geodatabase Administrator Password&lt;/b&gt;&lt;/span&gt; : the password of the user who is going to administer the whole geodatabase.&lt;/li&gt;
&lt;li&gt;Authorization File : browse to select the keycodes file that you get from you installation of ArcGIS for Server. (How to Make a &quot;keycodes&quot; File)&quot;.&lt;/li&gt;
&lt;/ol&gt;
After setting all options, press &quot;OK&quot; (step 7) to start the process of creating a new enterprise geodatabase in Oracle 11g R2.&lt;br /&gt;
&lt;br /&gt;
The tool will check if the &quot;SYS&quot; user has enough privileges to create the enterprise geodatabase or not as shown in the folling picture:&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/AVvXsEjmiEWwEpHuCFE1nBJ6JwHyguOvU7uQKRaugVPt96gRN3z3Ve1ut_J9yC59saiHjakUyYIqQH4JvWwAu_KMn8xmWEMGIt6jdCgnqJRgPGasAvFLt0Z6_9nwYqsYNtIWhixj9GS5UYZHWQZM/s1600/02.jpg&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;252&quot; data-original-width=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmiEWwEpHuCFE1nBJ6JwHyguOvU7uQKRaugVPt96gRN3z3Ve1ut_J9yC59saiHjakUyYIqQH4JvWwAu_KMn8xmWEMGIt6jdCgnqJRgPGasAvFLt0Z6_9nwYqsYNtIWhixj9GS5UYZHWQZM/s1600/02.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
After that wait till the process finishes and you get the following screen:&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/AVvXsEgQotjFENHIjy47iFxH1nRVFzX1QJT__oRn4tfQWFO3ds8mC2HkCfa3Dsh3JW-TBJjvB-QqTHqsJLkRDJe6Ppnfb55Z-EcGmmZPPtGZnzvj5SVa8CdWZszCADwC9vXL42lwQ-OQASve_rr5/s1600/03.jpg&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;249&quot; data-original-width=&quot;375&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQotjFENHIjy47iFxH1nRVFzX1QJT__oRn4tfQWFO3ds8mC2HkCfa3Dsh3JW-TBJjvB-QqTHqsJLkRDJe6Ppnfb55Z-EcGmmZPPtGZnzvj5SVa8CdWZszCADwC9vXL42lwQ-OQASve_rr5/s1600/03.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Congratulations, you have just created a new enterprise geodatabase in Oracle 11g R2.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/4697079184459631658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2019/05/create-arcgis-enterprise-geodatabase-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4697079184459631658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4697079184459631658'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2019/05/create-arcgis-enterprise-geodatabase-in.html' title='Create ArcGIS Enterprise Geodatabase in Oracle 11g R2'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtDCC7lBcs9NKwQPhPH9YY_Mc5tLfNUAX_AyNrBbCMHmnoOfV2jmL_xq-l0ThwfTVzZwyrYMp1ljtLP-Zv6ybi_KP3u601PI05WMgwT7DjbXeN0LDW_cvcaMJRC0LXHhndMEMCsrUaGrV7/s72-c/01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-9147102914700833435</id><published>2015-05-09T14:33:00.000-07:00</published><updated>2015-05-09T14:33:14.571-07:00</updated><title type='text'>How to Resize Raspbian Image</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this tutorial I am going to explain how te resize a raspbian image so it can be used in QEMU.&lt;br /&gt;
I faced the problem of having no space in to install extra packages on raspbian like Qt, so I decided to increase the space of the Raspbian image to 8 GB.&lt;br /&gt;
After a lost of search and testings, I discovered the best way to increase the size of raspbian to 8 GB or less or more. You can resize to any size, but make sure it is more than 3 GB; because Raspbian itself requires about 2.5 GB.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;Caution:&lt;/span&gt; Please make a backup from the Raspbian raw file because we will need it at the end of this tutorial.&lt;/h3&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;b&gt;Step 1:&lt;/b&gt;&lt;/span&gt;&lt;/u&gt; Resizing the raw image file using QEMU.&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#&amp;nbsp;qemu-img resize &lt;raspbian_image_location&gt; +&lt;size_to_add_in_gb&gt;&lt;/size_to_add_in_gb&gt;&lt;/raspbian_image_location&gt;&lt;/span&gt;&lt;/blockquote&gt;
For example:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#&amp;nbsp;qemu-img resize 2015-02-16-raspbian-wheezy.img +5G&lt;/span&gt;&lt;/blockquote&gt;
Note:&lt;br /&gt;
The 5G here will be added to the size of the original raw image. For example, raspbian image is 3 GBs and now it will become * GBs (3 GBs + 5 GBs).&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;Step 2:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt; Resizing the root partition of Raspbian.&lt;/h3&gt;
After first step you will notice that the root partition still 3 GBs; this because partition table of the raw image knows nothing about the change, since we only changed the raw file. So we need to do the following steps:&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;1-&lt;/u&gt; Associate the raw file of Raspbian image with a loop device.&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# losetup -P &lt;loop_device_path&gt; &lt;raw_file_path&gt;&lt;/raw_file_path&gt;&lt;/loop_device_path&gt;&lt;/span&gt;&lt;/blockquote&gt;
For example:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# losetup -P &amp;nbsp;/dev/loop0 2015-02-16-raspbian-wheezy-8GB.img&lt;/span&gt;&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;2-&lt;/u&gt; Delete the root partition:&lt;/h4&gt;
Note that the root partition number is 2.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# fdisk /dev/loop0&lt;/span&gt;&lt;br /&gt;Now enter &quot;d&quot; and then enter &quot;2&quot;&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;3-&lt;/u&gt; Creating a new partition:&lt;/h4&gt;
Note: Keep fdisk open and do the following:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;1-&lt;/u&gt;&lt;/b&gt; Enter &quot;p&quot; to show the details of the current partitions. You will see only one small partition.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&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/AVvXsEhGp3hQ4eLN3-1t19HNPRUeRRWFHcd1Y_MWiEXy6rVwHidcbrlqCQ7aoLwFWec5jKI7PE4N4iYrm2C7ELm712Hi-ufSHdKatvlAmR0mXOIr8MwcpKkL22yFzCwPLiQEoeQxA13lOaR7m31y/s1600/snapshot1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGp3hQ4eLN3-1t19HNPRUeRRWFHcd1Y_MWiEXy6rVwHidcbrlqCQ7aoLwFWec5jKI7PE4N4iYrm2C7ELm712Hi-ufSHdKatvlAmR0mXOIr8MwcpKkL22yFzCwPLiQEoeQxA13lOaR7m31y/s1600/snapshot1.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Note: We need the value inside the box witch is 122879 (It may vary from raspbian version to another)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;2-&lt;/u&gt;&lt;/b&gt; Enter &quot;n&quot; and then enter &quot;p&quot; to select a primapry partition (p is the the default value).&lt;/blockquote&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/AVvXsEga5nx-cQa2mvXh4SZyP7RpLzgtOAbc3iDiZ5_2_w6w-KE5sJYgLIENmWV6Szder6giJKzDRcaKnBUKQoyF-Wwt6gm0QekgQZ_RoeehnxlPcPBWJxMp27dAw4PLAs9X5hVe0ldn6-Dv7AQ8/s1600/snapshot2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEga5nx-cQa2mvXh4SZyP7RpLzgtOAbc3iDiZ5_2_w6w-KE5sJYgLIENmWV6Szder6giJKzDRcaKnBUKQoyF-Wwt6gm0QekgQZ_RoeehnxlPcPBWJxMp27dAw4PLAs9X5hVe0ldn6-Dv7AQ8/s1600/snapshot2.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;&lt;b&gt;3-&lt;/b&gt;&lt;/u&gt; &amp;nbsp;Now enter the number of the partition. Enter &quot;2&quot; witch is the default option, or use the default option.&lt;/blockquote&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/AVvXsEgpbeUm6xC8IU_GiN6PdV2xI_SLJuVt8mOXfl7R_8hRWK7qacZa2P-VI2Pqd42O4pvvlDoVfYfeLoOODqJ3vApK6kfTCMGpkJgIt4nuiwOvQGnKt1vFbXS5UE_OIn4fBv4rB1eL6iaviKCV/s1600/snapshot3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpbeUm6xC8IU_GiN6PdV2xI_SLJuVt8mOXfl7R_8hRWK7qacZa2P-VI2Pqd42O4pvvlDoVfYfeLoOODqJ3vApK6kfTCMGpkJgIt4nuiwOvQGnKt1vFbXS5UE_OIn4fBv4rB1eL6iaviKCV/s1600/snapshot3.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;4-&lt;/u&gt;&lt;/b&gt; &amp;nbsp;Now enter the beginning of the partition. We need the End value of the first partition from step 1 witch is in our case 122879. We add 1 to this value and the enter it to fdisk. Now the new partition will begin at 122880.&lt;/blockquote&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/AVvXsEhjcIWnmdRqJFEf_3uTh72zaDa0SDmglaJ3jg2qV5FNP1EF-P4F59Je2765mZqb2r0FcX-afhFcWBwK5I9AnhFvmdE-gIUdflzAcYhYrCXiV5IOP9Ifvy9u4R854f2OkNR3uE0x3dDW8RW9/s1600/snapshot4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjcIWnmdRqJFEf_3uTh72zaDa0SDmglaJ3jg2qV5FNP1EF-P4F59Je2765mZqb2r0FcX-afhFcWBwK5I9AnhFvmdE-gIUdflzAcYhYrCXiV5IOP9Ifvy9u4R854f2OkNR3uE0x3dDW8RW9/s1600/snapshot4.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Note: if you used the default value for the beginning &amp;nbsp;of the new partition, you will end up with a very small partition; because you will be allocating the free space before the first partition witch is very small and it is devoted for MBR and partition table, so you will also corrupt the raw image.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;5-&lt;/u&gt;&lt;/b&gt; Choose the end of the new partition. Just leave the default vale.&lt;/blockquote&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/AVvXsEiWF6nxTt9lCj1W4GC0m67QJkvpBFdabdOe8B_bjsnFS4fV5R1EowLb0dNUuCwqKzEAz2bJ3NUH86q2XSAuQ3B0ugsKq_WeCHFURf-rlAb6dt4ogPgvgpbp8TIPA5DI8NBlDIpUh3-nzP1j/s1600/snapshot5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWF6nxTt9lCj1W4GC0m67QJkvpBFdabdOe8B_bjsnFS4fV5R1EowLb0dNUuCwqKzEAz2bJ3NUH86q2XSAuQ3B0ugsKq_WeCHFURf-rlAb6dt4ogPgvgpbp8TIPA5DI8NBlDIpUh3-nzP1j/s1600/snapshot5.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;&lt;b&gt;6-&lt;/b&gt;&lt;/u&gt; Now we need to set the type of the new partition. Enter &quot;t&quot;&lt;/blockquote&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/AVvXsEg9p3Y_eBEZb3WHf-UHBwrjX0isu3-B6TSu-7-WqGfytGUIsYTumeIwrQ5Hop2seDEpez9xjuPNH-YDmB136HXMFp2IoMkyejSJEfRXxEnn1RF1QtUUNVqd4uKmt2bFPdaFkOVj0sAz10rx/s1600/snapshot6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9p3Y_eBEZb3WHf-UHBwrjX0isu3-B6TSu-7-WqGfytGUIsYTumeIwrQ5Hop2seDEpez9xjuPNH-YDmB136HXMFp2IoMkyejSJEfRXxEnn1RF1QtUUNVqd4uKmt2bFPdaFkOVj0sAz10rx/s1600/snapshot6.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;7-&lt;/u&gt;&lt;/b&gt; Enter the number of the partition for witch we will change type. In our case it is 2&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;&lt;b&gt;8-&lt;/b&gt;&lt;/u&gt; Enter the number of the type of the file system. In our case it is 83.&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;u&gt;&lt;b&gt;9-&lt;/b&gt;&lt;/u&gt; Now enter &quot;w&quot; to write all changes to disk.&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;4-&lt;/u&gt; Update partition table that the kernel is using.&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# partprobe&lt;/span&gt;&lt;/blockquote&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;5-&lt;/u&gt; Format the newly create partition.&lt;/h4&gt;
To get the path of the partition in dev folder, we use fdisk to print the partition table of the raw file&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# fdisk /dev/loop0&lt;/span&gt;&lt;br /&gt;&amp;nbsp;Now Enter &quot;p&quot;&lt;/blockquote&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/AVvXsEjxt4E5VFy1dsvwZZEIppIbJdiIBCdedv9nPi1x-a9WudMa4OigzFxS2hVf3E32xOXNUIhi93bmk2iZyjk6IMzzqCvgt2uonsxX_p4iz_duV5xfJT5dmuGW4KzsBz3tqEQvcsi9robh4uQs/s1600/snapshot7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxt4E5VFy1dsvwZZEIppIbJdiIBCdedv9nPi1x-a9WudMa4OigzFxS2hVf3E32xOXNUIhi93bmk2iZyjk6IMzzqCvgt2uonsxX_p4iz_duV5xfJT5dmuGW4KzsBz3tqEQvcsi9robh4uQs/s1600/snapshot7.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;Notice the newly created partition is associated with /dev/loop0p2&lt;/blockquote&gt;
To format the newly created partition&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# mkfs.ext4 /dev/loop0p2&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
Now, we have a new partition that has no data inside it. We need o copy all files from the original Raspbian image to the new partition.&lt;br /&gt;
Note: We cannot use dd; because if we did, we will end up with a partition that is 3 GBs size and that is the size of the original partition in the Raspbian raw file.&lt;br /&gt;
&lt;br /&gt;
We need to associate the original Raspbian raw file with a loop device&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#&amp;nbsp;losetup -P /dev/loop10 2015-02-16-raspbian-wheezy.img&lt;/span&gt;&lt;/blockquote&gt;
Now mount both the newly created partition and the root partition from the original Raspbian raw file using any mount method that you prefer.&lt;br /&gt;
Then copy all folders and file in the rot partition of the original Raspbian raw file to the newly created partition without altering the permissions of files nor their owners.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# cp -rp &lt;mount_point_of_original_partition&gt;/* &lt;mount_point_of_newly_created_partition&gt;&lt;/mount_point_of_newly_created_partition&gt;&lt;/mount_point_of_original_partition&gt;&lt;/span&gt;&lt;/blockquote&gt;
Foe example&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# cp -rp /run/media/eng.mahmoud/f24a4949-f4b2-4cad-a780-a138695079ec/* /run/media/eng.mahmoud/6e001351-2aa9-4344-aa29-5ca8909a91da/&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;Congratulations, now you have your own resized Raspbian image.&lt;/span&gt;&lt;/h3&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/9147102914700833435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2015/05/how-to-resize-raspbian-image.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/9147102914700833435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/9147102914700833435'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2015/05/how-to-resize-raspbian-image.html' title='How to Resize Raspbian Image'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGp3hQ4eLN3-1t19HNPRUeRRWFHcd1Y_MWiEXy6rVwHidcbrlqCQ7aoLwFWec5jKI7PE4N4iYrm2C7ELm712Hi-ufSHdKatvlAmR0mXOIr8MwcpKkL22yFzCwPLiQEoeQxA13lOaR7m31y/s72-c/snapshot1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-421406296093422383</id><published>2015-05-01T16:42:00.002-07:00</published><updated>2015-05-01T16:42:59.041-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="GTK+"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Modelio"/><title type='text'>Modelio refuse to start and complains about GTK+</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Modelio refuse to start and show me&lt;br /&gt;
&lt;br /&gt;
Gtk-WARNING **: This process is currently running setuid or setgid.&lt;br /&gt;
This is not a supported use of GTK+. You must create a helper&lt;br /&gt;
program instead. For further details, see:&lt;br /&gt;
&lt;br /&gt;
http://www.gtk.org/setuid.html&lt;br /&gt;
&lt;br /&gt;
Refusing to initialize GTK+.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The solution was to re-install OpenJDK and if you are using Oracle Java, try to use OpenJDK instead.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/421406296093422383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2015/05/modelio-refuse-to-start-and-complains.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/421406296093422383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/421406296093422383'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2015/05/modelio-refuse-to-start-and-complains.html' title='Modelio refuse to start and complains about GTK+'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-2157054417033855057</id><published>2015-03-18T21:40:00.001-07:00</published><updated>2015-03-29T23:32:10.383-07:00</updated><title type='text'>Instaling and Configuring VNC Server on CentOS 7 and Fedora 20</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Introduction:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
VNC Server gives you a good way and reliable way to run desktop environment on your server so you can have GUI control over your server just as you would use your local computer.&lt;br /&gt;
This tutorial is split into two parts, first installing VNC server, the second in configuring VNC server.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Why VNC:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;More reliable than ssh graphics and RDP.&lt;/li&gt;
&lt;li&gt;Using GUI tools to control your server.&lt;/li&gt;
&lt;li&gt;Allows you to share clipboard between your local computer and the remote server.&lt;/li&gt;
&lt;li&gt;You can use and host that have VNC client to control your server.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;&lt;b&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
This tutorial was tested on both CentOS 7 and Fedora 20. If you encountered any problem, please leave a comment and I will help you get your problem solved.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Installing VNC Server:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
You need to install the following in order to get VNC server up and running on you server:&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Desktop Environment (XFCE, KDE, Gnome)&lt;/li&gt;
&lt;li&gt;VNC Server.&lt;/li&gt;
&lt;li&gt;Open ports in iptables to allow remote connections.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Now let us dive into the instructions&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;Installing your&amp;nbsp;desktop&amp;nbsp;environment:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;XFCE&lt;br /&gt;&amp;nbsp; yum groupinstall xfce&lt;/li&gt;
&lt;li&gt;Gnome&lt;br /&gt;&amp;nbsp; yum&amp;nbsp;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;groupinstall&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #110000; line-height: 16px; widows: 1;&quot;&gt;&quot;GNOME Desktop&quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;widows: 1;&quot;&gt;
&lt;span style=&quot;color: #110000;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;widows: 1;&quot;&gt;
&lt;span style=&quot;color: purple; line-height: 16px;&quot;&gt;&lt;b&gt;Installing VNC Server:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #110000;&quot;&gt;&lt;span style=&quot;line-height: 16px;&quot;&gt;yum install tigervnc-server&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Configuring VNC Server:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
In this step we will configure VNC server in order to get it up and running and can pass iptables.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;First&lt;/u&gt; we need to copy the template of the VNC server service file and put it on its real folder.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service&lt;/blockquote&gt;
We got the service file in its location, but it still not ready for actual usage.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;Second&lt;/u&gt; we need to edit that file to properly configure it&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
vi /etc/systemd/system/vncserver@:1.service&lt;/blockquote&gt;
&amp;nbsp;Go to this section&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[Service]&lt;br /&gt;
Type=forking&lt;br /&gt;
User=&lt;user&gt;&lt;br /&gt;ExecStart=/usr/bin/vncserver &amp;lt;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;:&lt;/span&gt;port_number&amp;gt; -geometry &lt;screen_resolution&gt; -depth 24&lt;br /&gt;ExecStop=/usr/bin/vncserver -kill&amp;nbsp;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;port_number&amp;gt;&lt;/span&gt;&lt;/screen_resolution&gt;&lt;/user&gt;&lt;/blockquote&gt;
&lt;br /&gt;
and change it according to the following:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;user&gt;: Is the username that you like to login to when using VNC. For example engmah&lt;/user&gt;&lt;/li&gt;
&lt;li&gt;&lt;:port_number&gt;: The port of the VNC service on which you will connect to. For example :2&lt;!--:port_number--&gt;&lt;!--:port_number--&gt;&lt;/:port_number&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;&#39;;&quot;&gt;&lt;screen_resolution&gt;: The default screen resolution that will be user, but in VNC client you can resize the screen dynamically without altering this value. For example:&amp;nbsp;&lt;/screen_resolution&gt;&lt;/span&gt;1280x1024.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[Service]&lt;br /&gt;
Type=forking&lt;br /&gt;
User=engmah&lt;br /&gt;
ExecStart=/usr/bin/vncserver :1 -geometry 1280x1024 -depth 24&lt;br /&gt;
ExecStop=/usr/bin/vncserver -kill :1&lt;/blockquote&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;Thirdly&lt;/u&gt; we need to set up password for VNC.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
Here the password is different from the password of the user that wil be logged in when using VNC. It is the password of the VNC session not the password of Linux user. So you can make it different than the password of the user.&lt;br /&gt;
To set VNC session password login to the user and execute:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
vncpasswd&lt;/blockquote&gt;
Then enter VNC session password. You will use this password when connecting to VNC server on the same port that you specified for the user in VNC service configuration file. For example we specified in the file the user engmah and the port is 2 so when connecting on port 2 we will be asked for the password for VNC session that is set via engmah user.&lt;br /&gt;
&lt;br /&gt;
Now we need to run VNC server from the same user (e.g engmah)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
vncserver&lt;/blockquote&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;Finally&lt;/u&gt; we need to run the service:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
Now login to root and execute the&amp;nbsp;following&amp;nbsp;commands&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl daemon-reload&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl enable vncserver@:1.service&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl start vncserver@:1.service&lt;/blockquote&gt;
Here is an explanation for these three commands&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl daemon-reload&amp;nbsp;&lt;/blockquote&gt;
Is used to reload systemd so it recognizes your new service file&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl enable vncserver@:1.service&lt;/blockquote&gt;
Enable your service to run at startup. Ti&amp;nbsp;disable&amp;nbsp;it from starting at startup use the following command&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl disable vncserver@:1.service&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl start vncserver@:1.service&lt;/blockquote&gt;
Starts your service. If you want at anytime to stop your service use the following command&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl stop vncserver@:1.service&lt;/blockquote&gt;
&lt;u&gt;&lt;b&gt;&lt;span style=&quot;color: #274e13;&quot;&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
In the name of the service (i.e&amp;nbsp;vncserver@:1.service) you noticed that we used @:1. The number we specify here is the number of the service port we specified in the configuration file of the service. This is useful because we can create many VNC services for many users, just create a new service file with a different port number and different username.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Extra things to do:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
On some Linux systems, you will notice that after doing all of this, you still cannot connect to you VNC servcer. This is because one of two common problems or both of them. Let us make sure that these problems are solved before testing our VNC server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;First&lt;/u&gt; Problem:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
You firewall blocks servers from listening on ports for incmming connection, so you need to enable VNC server in your firewall.&lt;br /&gt;
&lt;br /&gt;
If you are using firewalld, execute the following commands:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
firewall-cmd --permanent --zone=public --add-service vnc-server&lt;br /&gt;
firewall-cmd --reload&lt;/blockquote&gt;
If you are using iptables, open the ports that are used by VNC server. To open the port, execute the following commands:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5990,6001:6090 -j ACCEPT&lt;br /&gt;
service iptables save&lt;br /&gt;
service iptables restart&lt;/blockquote&gt;
&lt;b&gt;&lt;span style=&quot;color: purple;&quot;&gt;&lt;u&gt;Second&lt;/u&gt; Problem:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The xstartup file in ~/.vnc folder is not executable. This is a common problem on CentOS 6.x, but let us make sure that xstartup file is executable in order to get rid of any expected error. Login to the user that you set in VNC service file and execute the following command:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
chmod +x ~/.vnc/xstartup&lt;/blockquote&gt;
&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Clipboard Sharing:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
In order to allow cliboard sharing between your server and VNC client, you need to keep vnc config running on your server. To run vnc config use the following command on your server:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
vncconfig &amp;amp;&lt;/blockquote&gt;
The &amp;amp; is used so you can close the terminal and still have vnc config running. Just minimize that dialog and you will have clipboard sharing between server and client.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Adding more users to access VNC server:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
To add another user, follow the same steps you did in this tutorial, but change the port number. Here are examples.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:2.service&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[Service]&lt;br /&gt;
Type=forking&lt;br /&gt;
User=engmah&lt;br /&gt;
ExecStart=/usr/bin/vncserver :2 -geometry 1280x1024 -depth 24&lt;br /&gt;
ExecStop=/usr/bin/vncserver -kill :2&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl enable vncserver@:2.service&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
systemctl start vncserver@:2.service&lt;/blockquote&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Connecting to VNC server:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Using any VNC client connect to the IP of your server and the port number of the service. The port number that you use to connect to the VNC server is the port number of the service plus 5900. For example in previous steps we used port 1 so we connect to port (5900 + 1 = 5901).&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
192.168.1.80:5901&lt;/blockquote&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/AVvXsEhOPy3Ok0BLKVDNeIM1KxFuUpsP1azmRJBiC6Z0fT4Jp2IZyncPKmZcm5WZXChGXkcpXFJ6ga8pLDNOb8UwWct7sAEyzvweyyYHIl_yR4LPN85zS8VnFW99BbeLJA9o9pyltGkri-q_dpE8/s1600/vnc-client.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOPy3Ok0BLKVDNeIM1KxFuUpsP1azmRJBiC6Z0fT4Jp2IZyncPKmZcm5WZXChGXkcpXFJ6ga8pLDNOb8UwWct7sAEyzvweyyYHIl_yR4LPN85zS8VnFW99BbeLJA9o9pyltGkri-q_dpE8/s1600/vnc-client.png&quot; height=&quot;206&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/2157054417033855057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2015/03/instaling-and-configuring-vnc-server-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2157054417033855057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2157054417033855057'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2015/03/instaling-and-configuring-vnc-server-on.html' title='Instaling and Configuring VNC Server on CentOS 7 and Fedora 20'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOPy3Ok0BLKVDNeIM1KxFuUpsP1azmRJBiC6Z0fT4Jp2IZyncPKmZcm5WZXChGXkcpXFJ6ga8pLDNOb8UwWct7sAEyzvweyyYHIl_yR4LPN85zS8VnFW99BbeLJA9o9pyltGkri-q_dpE8/s72-c/vnc-client.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-1563502776422112063</id><published>2014-08-01T01:33:00.003-07:00</published><updated>2015-03-16T23:22:45.507-07:00</updated><title type='text'>Zombie Processes Explained</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;What is zombie process?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Zombie process (of defunct as named in some systems) is a process that its execution finished and the system for some reason cannot get its return value in order to clean it from processes table. That is a zombie process is just a record in the process table in the system and not a process that is under execution.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;What causes zombie process?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Take this scenario of how process can turn into a zombie:&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;A process forks a child process.&lt;/li&gt;
&lt;li&gt;The child process finish its execution and waits to report its exit status to its parent process.&lt;/li&gt;
&lt;li&gt;But the parent process is busy in processing another child process exit status, or it is poorly programmed so it do not response to children when they finish their execution (we will look at how to handle children that their execution is finished).&lt;/li&gt;
&lt;li&gt;The system keeps the child -that its exit status is not handled by its parent- in process table in case of its parent executes wait() to get its exit status.&lt;/li&gt;
&lt;li&gt;The zombie will stay in the process table until its exit status is handled by its parent or its parent terminates.&lt;/li&gt;
&lt;li&gt;When the parent of a zombie is terminated normally its zombies are deleted from the process table.&lt;/li&gt;
&lt;li&gt;If the parent is abnormally terminated its zombies are inherited by the process id 1 ( ie init ) which periodically initiate wait() and removes zombies.&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Note:&lt;/span&gt; &lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;When a process is abnormally terminated, all of its children are inherited by the process id 1 (ie init).&lt;/li&gt;
&lt;li&gt;When a child is finished the kernel sends to its parent the signal SIGCHLD. Poorly programmed processes do not listen to this signal or do not handle child processes correctly. (We will look at how to handle zombies in our program later in another section).&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Why Kernel Keeps Zombies?&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Zombies cannot be deleted arbitrarily because their parents may be scheduling their exit status.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The programmer may plan to use the exit status of the child process later to make some decision, but not immediately after it is finished. So the system may cause a crash for that process if it get rid of zombies at its on discretion.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Only if the process terminate (normally or abnormally) the system can take care of deleting zombies.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Why Programmers Tend to Avoid Zombie Processes?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Even though that zombies almost consume nothing from the resource and share no CPU time which makes zombies have no effect on the performance on you system, programmers tend to avoid them for the following reason.&lt;br /&gt;&lt;br /&gt;The process table of Linux systems is limited (usually 32768 processes only) so accumulating zombies can eventually (when their number is high) block the system from running new processes.&lt;br /&gt;&lt;br /&gt;To see what is the limit of process table on your system, use this command:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;cat /proc/sys/kernel/pid_max&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The zombie pid cannot be reused until it is completely deleted. So some programmers hold some zombies to make sure that they create children with unique pid ( not child is allowd to take the pid of previously terminated and child). In this situation zombies can be useful. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to Kill Zombie Processes&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
You cannot just use kill or other commands to get rid of zombies. You need to kill the parent of the zombie process.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Commands to Deal with Zombie Processes&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
To show all zombie processes on your system use ps and then grep all lines containing Z.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# ps -aux | grep Z&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The output on Fedora 17 is&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;1000 6746 0.0 0.0 0 0 pts/4 Z+ 15:59 0:00 [a.out] &lt;defunct&gt;&lt;/defunct&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Note that at the status column it used Z to indicate that it is zombie as well as ps used &lt;defunct&gt; after the text of the command of the process to indicate that it is indeed zombie process.&lt;br /&gt;&lt;br /&gt;Now to show the kill the parent of the zombie simply use kill with pid of the parent which can be found in the PPID (Parent Process ID) in the output of # ps -aux | grep Z&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# kill &lt;ppid&gt;&lt;/ppid&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using KDE System Activity we see that in the &quot;CPU %&quot; column it used the word &quot;zombie&quot; to indicate zombie process&lt;/defunct&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/AVvXsEiObyh2-tH8G2Uu5p9Ll1j4bHXXPuoAfb-26kLL5VvDa5xjhNqJ7bH6mYjCtl2ANVp4OjpNGdV0IT0hA0vaY4LIdI6045YyGvCBaUojP5P-YMNeYey8ouLfvJ9F5JBBwaZ2SYsVsZRXEZG_/s1600/Zombie+process+in+KDE+System+Activity.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiObyh2-tH8G2Uu5p9Ll1j4bHXXPuoAfb-26kLL5VvDa5xjhNqJ7bH6mYjCtl2ANVp4OjpNGdV0IT0hA0vaY4LIdI6045YyGvCBaUojP5P-YMNeYey8ouLfvJ9F5JBBwaZ2SYsVsZRXEZG_/s1600/Zombie+process+in+KDE+System+Activity.jpg&quot; height=&quot;209&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Example on program that generates zombie child processes?&lt;br /&gt;
&lt;br /&gt;
In this section I will show you an example using C language on a process with zombie child process.&lt;br /&gt;
&lt;br /&gt;
If the child finish its execution before the parent, the child will be marked as a zombie process.&lt;br /&gt;
&lt;br /&gt;
Lets see how to build it in C languages.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;#include &lt;stdlib .h=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;unistd .h=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;stdio .h=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pid_t pid;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pid = fork();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n = 20;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(pid == 0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;I am a child which will become a zombie process\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(n);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/stdio&gt;&lt;/unistd&gt;&lt;/stdlib&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
We omitted the return value type on the main function because int is the default in C language.&lt;br /&gt;
&lt;br /&gt;
After we fork() pid will hold 0 to indicate the child process and value other than 0 for the parent. This means&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;If pid == 0 this means that the current process is the child and we execute commands that we wish to be executed in the child process.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;If pid != 0 this means that the current process is the parent process and we execute commands that we wish to be executed in the parent process.&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://arab.sh/bnhwy0ueq1zt&quot;&gt;You can download the C file of the code from here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to Handle Zombie processes in Code?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In the main function we tell the kernel that the handler of signal SIGCHLD is the function deleteChild(). This means that when the child finishes (and hence SIGCHLD signal is sent to its parent process) the kernel (which executes the process) will call the function deleteChild.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;#include &lt;stdlib .h=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;unistd .h=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;stdio .h=&quot;&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include &lt;signal .h=&quot;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; void deleteChild(int signal_value) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int child_pid;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int exit_status;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; child_pid = wait(&amp;amp;exit_status);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Child of PID: %d exited with status: %d\n&quot;, child_pid, exit_status);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; main() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void) signal(SIGCHLD, deleteChild); /* This is used to set the handle of the signal SIGCHLD is the function deleteChild */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pid_t pid;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pid = fork();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n = 20;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(pid == 0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;I am a child which will become a zombie process\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(10);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(n);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;No Zombies Are Allowed\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/signal&gt;&lt;/stdio&gt;&lt;/unistd&gt;&lt;/stdlib&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://arab.sh/jrwjejeppfea&quot;&gt;You can download the C file of the code from here.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Notes About last Program:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
We asked the child process to sleep for 10 seconds to let you check ps (or any GUI tool to watch processes) to insure that the PID of the child is the same as the PID that is printed by the program.&lt;br /&gt;
&lt;br /&gt;
You may expected that the parent process will terminate after 20 seconds (after sleep finishes), but actually it finished after 10 seconds. This is because sleep finish under tow conditions:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;The amount of time specified (eg: 20 seconds) finish.&lt;/li&gt;
&lt;li&gt;A signal arrives at the program (in our case SIGCHLD signal).&lt;/li&gt;
&lt;/ol&gt;
After the signal arrives the sleep(20) will stop and the parent will continue its execution. And as demonstration we printed &quot;No Zombies Are Allowed&quot;.&lt;br /&gt;
&lt;br /&gt;
You can create a map between children pids and the exit status so you can get rid of zombies immediately and at the same time you can hold their exit status for later usage. Obviously saving the values is done inside deleteChild() function.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;If you have any question, please comment.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Thanks for reading&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/1563502776422112063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2014/08/zombie-processes-explained.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/1563502776422112063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/1563502776422112063'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2014/08/zombie-processes-explained.html' title='Zombie Processes Explained'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiObyh2-tH8G2Uu5p9Ll1j4bHXXPuoAfb-26kLL5VvDa5xjhNqJ7bH6mYjCtl2ANVp4OjpNGdV0IT0hA0vaY4LIdI6045YyGvCBaUojP5P-YMNeYey8ouLfvJ9F5JBBwaZ2SYsVsZRXEZG_/s72-c/Zombie+process+in+KDE+System+Activity.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-5655427257458474456</id><published>2014-05-18T08:10:00.000-07:00</published><updated>2014-05-18T08:26:00.871-07:00</updated><title type='text'>the ordinal 459 could not be located in the dynamic link library urlmon.dll</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Many of us faced the following problem after updating &lt;i&gt;Windows&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
the ordinal 459 could not be located in the dynamic link library &lt;i&gt;urlmon.dll&lt;/i&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
This problem is caused by &lt;i&gt;Internet Explorer 11&lt;/i&gt;, and the solution is to remove &lt;i&gt;IE 11&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
To solve the problem, follow the following steps:&lt;/div&gt;
&lt;ol style=&quot;text-align: justify;&quot;&gt;
&lt;li&gt;From the &lt;i&gt;Control Panel&lt;/i&gt; open &lt;i&gt;Programs and Features&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;From the left panel click on &quot;&lt;i&gt;Turn&lt;/i&gt; &lt;i&gt;Windows features on of off&lt;/i&gt;&quot;.&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKgPpzbG47sS8Gp-1oF61ZZmu902WVGifKdMJqn35qc-Wqjey4DgmzwAENUVIW9j6ZxYTfvhzEmKuygXtISfc-0ooYAfnzWVNaWUvWhf-FbsLLwxqOACVNb7V5SBPzWYPNvdUJS61gkCU/s1600/open_windows_features.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKgPpzbG47sS8Gp-1oF61ZZmu902WVGifKdMJqn35qc-Wqjey4DgmzwAENUVIW9j6ZxYTfvhzEmKuygXtISfc-0ooYAfnzWVNaWUvWhf-FbsLLwxqOACVNb7V5SBPzWYPNvdUJS61gkCU/s1600/open_windows_features.png&quot; height=&quot;170&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;A new dialog will show up.&lt;/li&gt;
&lt;li&gt;Uncheck &lt;i&gt;Internet Explorer 11&lt;/i&gt;; this will revert &lt;i&gt;IE 11&lt;/i&gt; to &lt;i&gt;IE 8&lt;/i&gt;.&lt;br /&gt;&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwMYhu7idgY1xNPXMRTIAX-A_HtoRBj5KymqSmkmVCizq0Z81NAg8Rb9YlAbmES0suJahx_I0rDSY7eOOIJVKEVl-71z7ceIpwx5vK7rsfJQU-tJ4wOif_gvg0A8-8uIVSUlIWa1RGXD7T/s1600/uncheck_ie_11.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwMYhu7idgY1xNPXMRTIAX-A_HtoRBj5KymqSmkmVCizq0Z81NAg8Rb9YlAbmES0suJahx_I0rDSY7eOOIJVKEVl-71z7ceIpwx5vK7rsfJQU-tJ4wOif_gvg0A8-8uIVSUlIWa1RGXD7T/s1600/uncheck_ie_11.png&quot; height=&quot;279&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
This will solve part of the whole problem, you will be able to enable themes and use &lt;br /&gt;other corrupted programs, but some Windows program won&#39;t fully work, for example showing &lt;br /&gt;&lt;i&gt;Windows Services&lt;/i&gt; will still non functional, to solve all problems you need to install &lt;i&gt;IE 9&lt;/i&gt; &lt;/div&gt;
of IE 10&lt;/li&gt;
&lt;li&gt;Install &lt;i&gt;IE 9&lt;/i&gt; or &lt;i&gt;IE 10 &lt;/i&gt;from &lt;i&gt;Windows Updates&lt;/i&gt; or from &lt;i&gt;Microsoft&lt;/i&gt; website.&lt;/li&gt;
&lt;li&gt;Note: Do not allow &lt;i&gt;Windows Updates&lt;/i&gt; to install &lt;i&gt;IE 11&lt;/i&gt; again, you can just hide this update.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If you have any question, do not forget to comment.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/5655427257458474456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2014/05/the-ordinal-459-could-not-be-located-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/5655427257458474456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/5655427257458474456'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2014/05/the-ordinal-459-could-not-be-located-in.html' title='the ordinal 459 could not be located in the dynamic link library urlmon.dll'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrKgPpzbG47sS8Gp-1oF61ZZmu902WVGifKdMJqn35qc-Wqjey4DgmzwAENUVIW9j6ZxYTfvhzEmKuygXtISfc-0ooYAfnzWVNaWUvWhf-FbsLLwxqOACVNb7V5SBPzWYPNvdUJS61gkCU/s72-c/open_windows_features.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-4316982874848964369</id><published>2013-06-19T08:14:00.003-07:00</published><updated>2014-05-09T01:27:59.150-07:00</updated><title type='text'>How to Install cpupower Package on Fedora</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Fedora does not define &lt;i&gt;cpupower&lt;/i&gt; as a separate package, instead it includes it in the package &lt;i&gt;kernel-tools&lt;/i&gt;.&lt;br /&gt;
So just install &lt;i&gt;kernel-tools&lt;/i&gt; and you will get &lt;i&gt;cupower.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;# sudo yum install kernel-tools&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/4316982874848964369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2013/06/how-to-install-cpupower-package-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4316982874848964369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4316982874848964369'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2013/06/how-to-install-cpupower-package-on.html' title='How to Install cpupower Package on Fedora'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-1732332412352323658</id><published>2013-01-30T16:22:00.000-08:00</published><updated>2014-05-09T01:41:45.026-07:00</updated><title type='text'>How to Change User Password at Command Prompt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 0.79in }
  P { margin-bottom: 0.08in }
 &lt;/style&gt;
 &lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&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/AVvXsEhDmZYyxggNSon9WtGSkNPw54eSybeDCL0C_vJYgbnMlMXvnUXU1kK5vRdCHXlwbMiPzRP5LS7Q25G6l3BU5tvl8AIbYV9ub8khvvz1Kg2j9aKvGBRbXWU9itovMvLf7X-lnjXEESSlpJxP/s1600/password8.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDmZYyxggNSon9WtGSkNPw54eSybeDCL0C_vJYgbnMlMXvnUXU1kK5vRdCHXlwbMiPzRP5LS7Q25G6l3BU5tvl8AIbYV9ub8khvvz1Kg2j9aKvGBRbXWU9itovMvLf7X-lnjXEESSlpJxP/s320/password8.jpg&quot; height=&quot;212&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
How to use the net user command to
change the user password at a Windows command prompt. Only
administrators can change domain passwords at the Windows command
prompt.  To change a user&#39;s password at the command prompt, log on as
an administrator and type:  &quot;net user &lt;user_name&gt; *
/domain&quot; (without the quotation marks)&lt;/user_name&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
When you are prompted to type a
password for the user, type the new password, not the existing
password. After you type the new password, the system prompts you to
retype the password to confirm. The password is now changed.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Alternatively, you can type the
following command:  net user &lt;user_name&gt; &lt;new_password&gt;. 
When you do so, the password changes without prompting you again.
This command also enables you to change passwords in a batch file.&lt;/new_password&gt;&lt;/user_name&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;
Non-administrators receive a &quot;System
error 5 has occurred. Access is denied&quot; error message when they
attempt to change the password.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/1732332412352323658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2013/01/how-to-change-user-password-at-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/1732332412352323658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/1732332412352323658'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2013/01/how-to-change-user-password-at-command.html' title='How to Change User Password at Command Prompt'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDmZYyxggNSon9WtGSkNPw54eSybeDCL0C_vJYgbnMlMXvnUXU1kK5vRdCHXlwbMiPzRP5LS7Q25G6l3BU5tvl8AIbYV9ub8khvvz1Kg2j9aKvGBRbXWU9itovMvLf7X-lnjXEESSlpJxP/s72-c/password8.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-3910635113372295662</id><published>2013-01-20T14:28:00.000-08:00</published><updated>2014-05-09T01:24:11.515-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="QT"/><title type='text'>Convert an int to QString in Qt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi,&lt;br /&gt;
Today I will show you how to convert an int type to a QString type in Qt.&lt;br /&gt;
&lt;br /&gt;
Here are the steps:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
1- We start my dividing the variable on 10 using the modulo operator ( % )&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;/blockquote&gt;
2- We convert the result to the corresponding character of the result by adding 0x30 in hexadecimal&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or 48 in decimal&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;ch&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;0x30&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/blockquote&gt;
3- We insert &quot;ch&quot; at the beginning of the QString variable using the &quot;insert&quot; function and the position&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp; is 0.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;output_string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;-&amp;gt;&lt;/span&gt;insert&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ch&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: lime;&quot;&gt;//Notice we passed the position 0.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
4-&amp;nbsp; We set the value of the int variable to its value divided by 10&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/blockquote&gt;
5- This is the final code&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: olive;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;intToString&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;QString&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;output_string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;    &lt;/span&gt;QChar&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ch&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ch&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;char&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;0x30&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;output_string&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;-&amp;gt;&lt;/span&gt;insert&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: navy;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;ch&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;int_to_convert&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: silver;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;);&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: silver;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&amp;nbsp;Note:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; I made a header file that you can include it in your program and all you need is to pass it the&lt;br /&gt;
&amp;nbsp;&amp;nbsp; int variable and the address of your QString variable.&lt;br /&gt;
&lt;a href=&quot;http://trainbit.com/files/4002819884/IntToString.h&quot; target=&quot;_blank&quot;&gt;Download the header file from here&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/3910635113372295662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2013/01/convert-int-to-qstring-in-qt.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3910635113372295662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3910635113372295662'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2013/01/convert-int-to-qstring-in-qt.html' title='Convert an int to QString in Qt'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-4058462339112708979</id><published>2012-12-15T16:27:00.000-08:00</published><updated>2013-01-25T10:29:19.267-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Embedded Systems"/><category scheme="http://www.blogger.com/atom/ns#" term="microC"/><category scheme="http://www.blogger.com/atom/ns#" term="mikroC"/><category scheme="http://www.blogger.com/atom/ns#" term="PIC Projects"/><category scheme="http://www.blogger.com/atom/ns#" term="Proteus"/><title type='text'>Simple 3 digit calculator in PIC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi everybody&lt;br /&gt;
Here is a simple calculator that is designed using PIC micro-controller.&lt;br /&gt;
It takes tow numbers each of which is 3 digits long and performs the required operation&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It has some bugs. And further updates will be posted here.&lt;br /&gt;
&lt;br /&gt;
Click on the image to see the original size&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/AVvXsEhQKjaZ9bqymVeFffToYg2U1YsGw07LgPi3acIeFC5A4ZhyWM3A3Y33EzW6x8EgFqRldBNohVX59aUVw3F45uzoyY3T4dAvpDIh5r3Y_oeyWTaIWnWRzWqVyTT5yskiPbj6HRi2epcrB6Ml/s1600/calculator_schematic_off.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;576&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQKjaZ9bqymVeFffToYg2U1YsGw07LgPi3acIeFC5A4ZhyWM3A3Y33EzW6x8EgFqRldBNohVX59aUVw3F45uzoyY3T4dAvpDIh5r3Y_oeyWTaIWnWRzWqVyTT5yskiPbj6HRi2epcrB6Ml/s640/calculator_schematic_off.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Click on the image to see the original size&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/AVvXsEj-S5lxBpmgmR8wFgMG6yLGLZFqIwRKlE7xH4N9JV5z8x2b2LMSXyrb5bl3SSGu7Gpw6qRXFuo-nJ3VmndWIou1LYktGk7Ddu2cJpu_4WRrVQSkC99NnEs_BRP2mZrlKEeN7ffforgT94Ai/s1600/calculator_schematic_working.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;541&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-S5lxBpmgmR8wFgMG6yLGLZFqIwRKlE7xH4N9JV5z8x2b2LMSXyrb5bl3SSGu7Gpw6qRXFuo-nJ3VmndWIou1LYktGk7Ddu2cJpu_4WRrVQSkC99NnEs_BRP2mZrlKEeN7ffforgT94Ai/s640/calculator_schematic_working.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;Here the Source code by date of modification&lt;br /&gt;
&lt;a href=&quot;http://trainbit.com/files/9475819884/Calculator_Project_22-12-2012.7z&quot; target=&quot;_blank&quot;&gt;22/12/2012&lt;/a&gt; &lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://trainbit.com/files/8475819884/Calculator_Project.7z&quot; target=&quot;_blank&quot;&gt;Click her&lt;span style=&quot;font-size: small;&quot;&gt;e The Oldest version&lt;/span&gt;&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Any further question or comment, please post in comments.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/4058462339112708979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2012/12/simple-3-digit-calculator-in-pic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4058462339112708979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4058462339112708979'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2012/12/simple-3-digit-calculator-in-pic.html' title='Simple 3 digit calculator in PIC'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQKjaZ9bqymVeFffToYg2U1YsGw07LgPi3acIeFC5A4ZhyWM3A3Y33EzW6x8EgFqRldBNohVX59aUVw3F45uzoyY3T4dAvpDIh5r3Y_oeyWTaIWnWRzWqVyTT5yskiPbj6HRi2epcrB6Ml/s72-c/calculator_schematic_off.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-4568390220996185488</id><published>2012-11-19T01:25:00.001-08:00</published><updated>2012-11-19T01:27:25.636-08:00</updated><title type='text'>libstdc++.so.6: version `GLIBCXX_3.4.11&#39; not found</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I encountered this problem with the &lt;span style=&quot;color: blue;&quot;&gt;LibreOffice 3.6.2.2 (Build ID: da8c1e6)&lt;/span&gt; on fedora 17 with &lt;span style=&quot;color: blue;&quot;&gt;Linux kernel 3.6.6-1.fc17.x86_64&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I search the net and I found no clear solution so I took it on my own.&lt;br /&gt;
&lt;br /&gt;
This is the error that pop up to me:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;(soffice:5947): Gtk-WARNING **: /opt/libreoffice3.6/program/../ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.15&#39; not found (required by /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
this solution applies also to this error:&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;(soffice:3737): Gtk-WARNING **: /opt/libreoffice3.6/program/../ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.11&#39; not found (required by /usr/lib64/gtk-2.0/2.10.0/engines/liboxygen-gtk.so)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
or any error that related to newer versions of &lt;span style=&quot;color: blue;&quot;&gt;GLIBCXX_&lt;/span&gt; like &lt;span style=&quot;color: blue;&quot;&gt;GLIBCXX_3.4.12&lt;/span&gt; or &lt;span style=&quot;color: blue;&quot;&gt;GLIBCXX_3.4.13&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
What I found is that libstdc++.so.6 that is located in:&lt;br /&gt;
&amp;nbsp;/opt/libreoffice3.6/program/../ure-link/lib/&lt;br /&gt;
&lt;br /&gt;
does not have the &lt;u&gt;&quot;strings&quot;&lt;/u&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;GLIBCXX_3.4.11&lt;/span&gt;&lt;br /&gt;
or of higher versions like&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;GLIBCXX_3.4.15&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
so we need a file that contains that &lt;u&gt;&quot;string&quot;&lt;/u&gt; and then replace it with the old one.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;And here is the solution:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;1-&lt;/b&gt; Go to &lt;a href=&quot;http://rpm.pbone.net/&quot;&gt;http://rpm.pbone.net&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and choose &lt;span style=&quot;color: blue;&quot;&gt;Advanced Search&lt;/span&gt; and choose only the distribution you are using&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2-&lt;/b&gt; Search for &lt;span style=&quot;color: blue;&quot;&gt;libstdc++&lt;/span&gt; and choose the latest version that is compatible with your&lt;br /&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; architecture (x86_64, i586, i386, i686, or amd64).&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; What fits for me: &lt;span style=&quot;color: blue;&quot;&gt;libstdc++-4.7.0-0.12.fc17.x86_64.rpm&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;3-&lt;/b&gt; Extract the rpm package using &lt;span style=&quot;color: blue;&quot;&gt;File Roller&lt;/span&gt;(with gnome) or &lt;span style=&quot;color: blue;&quot;&gt;Ark&lt;/span&gt; (on KDE). I used Ark.&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;4-&lt;/b&gt; A new file named &lt;span style=&quot;color: magenta;&quot;&gt;usr&lt;/span&gt; will be created, move inside it using:&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# cd usr&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;5-&lt;/b&gt; Move to the directory &lt;span style=&quot;color: magenta;&quot;&gt;lib&lt;/span&gt; or &lt;span style=&quot;color: magenta;&quot;&gt;lib64&lt;/span&gt; ( depending on your architecture )&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# cd lib64&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;6-&lt;/b&gt; You will find two file&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; - &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; - &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6.0.xx&lt;/span&gt; (xx depends on the version you downloaded)&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; and at the time of writing this post the latest version is &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6.0.17&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;7-&lt;/b&gt; Delete &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6&lt;/span&gt; and rename &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6.0.17&lt;/span&gt; to &lt;span style=&quot;color: blue;&quot;&gt;libstdc++.so.6&lt;/span&gt;.&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;
&lt;b&gt;8-&lt;/b&gt; Now rename the originale file that caused the problem and we want to replace it&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (just because we need a backup for it)&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;# sudo mv /opt/libreoffice3.6/program/../ure-link/lib/libstdc++.so.6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /opt/libreoffice3.6/program/../ure-link/lib/libstdc++.so.6_backup&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;9-&lt;/b&gt; Now move the new file we got in step &lt;b&gt;6&lt;/b&gt; and copy(or move) it to the path of the&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; old one that caused the problem&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt; # sudo mv libstdc++.so.6 /opt/libreoffice3.6/program/../ure-link/lib/libstdc++.so.6&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;b&gt;10-&lt;/b&gt; Run your program and your problem will be gone.&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Please if you encountered any problem let me know by commenting.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0px; text-indent: 0px;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If the post solved your problem, please comment. &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/4568390220996185488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2012/11/libstdcso6-version-glibcxx3411-not-found.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4568390220996185488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4568390220996185488'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2012/11/libstdcso6-version-glibcxx3411-not-found.html' title='libstdc++.so.6: version `GLIBCXX_3.4.11&#39; not found'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-6347167825339188787</id><published>2012-02-02T18:11:00.000-08:00</published><updated>2012-02-02T18:13:27.648-08:00</updated><title type='text'>Selection Sort Implementation In C++</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b style=&quot;color: red;&quot;&gt;This is the code of the selection sort in C++&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
#include &lt;iostream&gt;&lt;br /&gt;using std::cout;&lt;br /&gt;&lt;br /&gt;void swap(int * const, int * const);&lt;br /&gt;void selection_sort(int [], const int);&lt;/iostream&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int A[] = {1, 2, 8, 74, 9, 0, -1, 7};&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; selection_sort(A, 8);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i = 0; i &amp;lt; 8; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; A[i] &amp;lt;&amp;lt; &#39; &#39;;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void selection_sort(int A[], const int a_size)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int index = 0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i = 0; i &amp;lt; a_size; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(int j = i + 1; j &amp;lt; a_size; j++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(A[index] &amp;gt; A[j])&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; swap(&amp;amp;A[index], &amp;amp;A[j]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; index++;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void swap(int * const e1_ptr, int * e2_ptr)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int temp = *e1_ptr;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; *e1_ptr = *e2_ptr;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; *e2_ptr = temp;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Please rate this topic.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;If you have any question please comment.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/6347167825339188787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2012/02/selection-sort-implementation-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/6347167825339188787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/6347167825339188787'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2012/02/selection-sort-implementation-in-c.html' title='Selection Sort Implementation In C++'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-4930282510989976724</id><published>2012-01-08T22:03:00.000-08:00</published><updated>2012-01-09T19:21:34.610-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'>Fix all VMware Issues on Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;In this post I will introduce steps to avoid all VMware installation and running issues.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;These issues includes:&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;VMware cannot find modules.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;VMware cannot find header files.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;VMware cannot compile.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Installing VMware tools on Linux guest.&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;First: Installing the VMware bundle file&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. You need to make the bundle file executable&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# sudo chmod +x&amp;nbsp; the_bundle_file_name.bundle&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Just replace &quot;the_bundle_file_name.bundle&quot; with the name of the bundle file you have&lt;/b&gt;&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; 2. Now install the bundle file&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# sudo ./the_bundle_file_name&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Note: on openSUSE no graphical interface will appear since you will be installing using the root user. This is how things done on openSUSE, if you use su command or sudo you need the password of the root user( I think this is the best thing for desktop users ). So while installing you can install it from any user but you need to login to the root in next steps so login to the root in the graphical interface from now.&lt;/b&gt;&lt;/blockquote&gt;
&lt;b&gt;Second: Running VMware on Linux:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; * Running VMware on Linux needs some packages to be installed as well as some&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; programs&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; * You can install the packages from the GUI package manager of your distribution&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; 1. Install make&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for openSUSE&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo zypper install&amp;nbsp; make&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Fedora, CentOS, RedHat 6, Oracle Linux, or any distribution uses yum&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo yum install make&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Debian, Mint, Ubuntu, or any distribution uses apt-get&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo apt-get install make&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Install gcc compiler
&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for openSUSE&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# sudo zypper install&amp;nbsp; gcc&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Fedora, CentOS, RedHat 6, Oracle Linux, or any distribution uses yum&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# sudo yum install gcc&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Debian, Mint, Ubuntu, or any distribution uses apt-get&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo apt-get install gcc&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Install kernel headers, and kernel-devel&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for openSUSE&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# sudo zypper install kernel-headers kernel-devel&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Fedora, CentOS, RedHat 6, Oracle Linux, or any distribution uses yum&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo yum install kernel-headers kernel-devel
    &lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;color: black;&quot;&gt;
&lt;b&gt;for Debian, Mint, Ubuntu, or any distribution uses apt-get&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo apt-get install kernel-headers kernel-devel&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;* So far, we solved the issue of cannot find header file&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* If the problem still there just update you system and it will be fixed&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since the kernel-headers and kernel-devel will be of the latest kernel version of&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; you distribution and by nature your installation media will have an older version&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; of the kernel.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* If you have any problem please add them in the comments. &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* Now we come to solve the issue of cannot find modules&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* Here i strongly recommend you to login to the root in the GUI&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; 1. Go to this directory&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: red;&quot;&gt;
&lt;b&gt;/usr/lib/vmware/modules/source&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;In command line:&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;# cd /usr/lib/vmware/modules/source&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; 2. Copy all the tar files from this directory to this one:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: red;&quot;&gt;
&lt;b&gt;/tmp/vmware-root&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;The name of this files are:&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;vmblock.tar&amp;nbsp; vmci.tar&amp;nbsp; vmmon.tar&amp;nbsp; vmnet.tar&amp;nbsp; vsock.tar&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;In the command line:&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;# sudo cp * /tmp/vmware-root&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Extract each tar file that copied to /tmp/vmware-root&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;In the command line:&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# su&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then enter the root password&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# cd /tmp/vmware-root&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# tar -xvf vmblock.tar&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# tar -xvf vmci.tar&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# tar -xvf vmmon.tar&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# tar -xvf vmnet.tar&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# tar -xvf vsock.tar&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Now type vmware in the command line:&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;b&gt;# vmware&lt;/b&gt;&lt;/blockquote&gt;
&lt;b&gt;&amp;nbsp;* So far we solved the issue on VMware cannot find module&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* If you have any problem please add them in the comments.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;* Now we come to solve Installing VMware tools on Linux guest.&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;Just install make, gcc, kernel-headers, and kernel-devel then start the installaton and you won&#39;t face any problem.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for openSUSE&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo zypper install make gcc kernel-headers kernel-devel&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Fedora, CentOS, RedHat 6, Oracle Linux, or any distribution uses yum&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;# sudo yum install make gcc kernel-headers kernel-devel&lt;/span&gt;
    &lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;for Debian, Mint, Ubuntu, or any distribution uses apt-get&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot; style=&quot;color: blue;&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;# sudo apt-get install make gcc kernel-headers kernel-devel&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Please rate this topic&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;If you like this topic please support by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.crocko.com/43492C285B5749A6ADAC8D6E76BE1F5D/supprt.rar&quot; target=&quot;_blank&quot;&gt;Download To Suppport&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ff6666;&quot;&gt;&lt;img alt=&quot;Angry face&quot; src=&quot;http://rapidgen.net/RapidGenLogo.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/4930282510989976724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2012/01/fix-all-vmware-issues-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4930282510989976724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/4930282510989976724'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2012/01/fix-all-vmware-issues-on-linux.html' title='Fix all VMware Issues on Linux'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-8512665887983151117</id><published>2011-10-13T05:16:00.000-07:00</published><updated>2011-11-07T22:33:30.107-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Strucure"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>A powerful implementation for singly linked list in java with new functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Here is an implementation for singly linked list in java&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;I also implemented some function -that are not in the books about data structures-&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;This function removes or adds elements at specific place, returns an element from a specific place and so on&lt;/b&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Download the java files and enjoy I also created a test.java file to show you some results&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Download the source file:&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.gigasize.com/get/3xwpvsflwnd&quot;&gt;Click me to Download&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;I created it under Eclipse so for better view use it&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;You can download Eclipse for java from the&amp;nbsp;official&amp;nbsp;web site&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1&quot;&gt;&lt;b&gt;Click Here to Download from the official website&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;OR you can support me by downloading them from filesonic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543858491/eclipse-java-indigo-SR1-win32.zip&quot;&gt;&lt;b&gt;Eclipse for Windows 32-bit&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543850841/eclipse-java-indigo-SR1-win32-x86_64.zip&quot;&gt;&lt;b&gt;Eclipse for Windows 64-bit&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543869761/eclipse-java-indigo-SR1-macosx-cocoa.tar.gz&quot;&gt;&lt;b&gt;Eclipse for&amp;nbsp;Mac OS X(Cocoa 32)&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543918431/eclipse-java-indigo-SR1-macosx-cocoa-x86_64.tar.gz&quot;&gt;&lt;b&gt;Eclipse for&amp;nbsp;Mac OS X(Cocoa 64)&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543929774/eclipse-java-indigo-SR1-linux-gtk.tar.gz&quot;&gt;&lt;b&gt;Eclipse for&amp;nbsp;Linux 32-bit&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/2543880361/eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz&quot;&gt;&lt;b&gt;Eclipse for&amp;nbsp;Linux 64-bit&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Please rate this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;If you like this topic please support by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.filesonic.com/file/2109287804/support.support&quot;&gt;Download To Suppport&lt;/a&gt;&lt;/b&gt;&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;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;95&quot; src=&quot;http://rapidgen.net/RapidGenLogo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/8512665887983151117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/10/powerful-implementation-for-singly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8512665887983151117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/8512665887983151117'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/10/powerful-implementation-for-singly.html' title='A powerful implementation for singly linked list in java with new functions'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-395821770764221330</id><published>2011-09-30T13:56:00.000-07:00</published><updated>2011-11-07T23:00:51.725-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Strucure"/><title type='text'>Computing Fibonacci Numbers via Binary Recursion</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This C++ code will allow you to find the kth term in Fibonacci Series&lt;br /&gt;
Just compile it and you will have the results&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
#include &lt;iostream&gt;&lt;br /&gt;using std::cout;&lt;br /&gt;using std::cin;&lt;br /&gt;using std::endl;&lt;br /&gt;&lt;br /&gt;int fibb(int);&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int k;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;Please enter the kth element to calculate: &quot; &amp;lt;&amp;lt; endl;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cin &amp;gt;&amp;gt; k;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;The kth element is &quot; &amp;lt;&amp;lt; endl &amp;lt;&lt;fibb(5) &lt;&lt;=&quot;&quot; endl;&lt;br=&quot;&quot;&gt;}&lt;br /&gt;&lt;br /&gt;int fibb(int kthElement)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(kthElement &amp;lt;= 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the base case&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return kthElement;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return fibb(kthElement - 1) + fibb(kthElement - 2);&amp;nbsp; // The recursion function&lt;br /&gt;}&lt;/fibb(5)&gt;&lt;/iostream&gt;&lt;br /&gt;
&lt;iostream&gt;&lt;fibb(5) &lt;&lt;=&quot;&quot; endl;&lt;br=&quot;&quot;&gt;&lt;br /&gt;&lt;/fibb(5)&gt;&lt;/iostream&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Please rate this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;If you like this topic please support by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://www.gigasize.com/get/kdh6sx18mdf&quot; style=&quot;color: #ff9900; text-decoration: none;&quot;&gt;Download To Suppport&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;95&quot; src=&quot;http://rapidgen.net/RapidGenLogo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #1c1c1c; color: #cccccc; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/395821770764221330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/09/computing-fibonacci-numbers-via-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/395821770764221330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/395821770764221330'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/09/computing-fibonacci-numbers-via-binary.html' title='Computing Fibonacci Numbers via Binary Recursion'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-7689509582476766500</id><published>2011-09-30T11:22:00.000-07:00</published><updated>2012-01-09T19:20:04.776-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'>VMware cannot find kernel headers eaven they are installed</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I made a new post that contains the solution to all VMware installation problems on Linux&lt;br /&gt;
&lt;a href=&quot;http://eng-mah.blogspot.com/2012/01/fix-all-vmware-issues-on-linux.html&quot; target=&quot;&quot;&gt;You can visit it HERE&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This problem is caused when the kernel headers are installed but the kernel-devel is not and to solve this problem just install them using this command:&lt;br /&gt;
&lt;blockquote&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
sudo yum install kernel-devel&lt;/blockquote&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please comment on this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please support me by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://www.crocko.com/43492C285B5749A6ADAC8D6E76BE1F5D/supprt.rar&quot;&gt;Click Here to download&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;

&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ff6666;&quot;&gt;&lt;img alt=&quot;Angry face&quot; src=&quot;http://rapidgen.net/RapidGenLogo.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/7689509582476766500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/09/vmware-cannot-find-kernel-headers-eaven.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/7689509582476766500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/7689509582476766500'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/09/vmware-cannot-find-kernel-headers-eaven.html' title='VMware cannot find kernel headers eaven they are installed'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-3360243441127313094</id><published>2011-09-28T23:49:00.000-07:00</published><updated>2011-09-30T13:50:15.205-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Fix chmsee error on Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When i updated my Linux ( fedora 15 lovelook ) chmsee stopped working and i tried other chm viewers but they do not show special characters and the chm file looks like a mass.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After googling for this problem for a while a figured that no one got a solution for this so i decided to take it on my own and i finally ( Sure thanks to Allah ) fixed it.&lt;br /&gt;
&lt;br /&gt;
What is going wrong?&lt;br /&gt;
The problem that fully update updates every package that has an update and unfurtionatily it updates mozilla firefox&lt;br /&gt;
&lt;br /&gt;
Mozilla firefox 6.0 uses xulrunner and so chmsee does but chmsee uses&amp;nbsp; xulrunner-2.0.1-1.fc15.x86_64.rpm ( and firefox 4.0 uses it ) but firefox 6.0 uses xulrunner.x86_64 0:6.0.2-1.fc15 that is not compatible with chmsee and it will crash&lt;br /&gt;
&lt;br /&gt;
The good news that I got the solution which is you need to setup xulrunner-2.0.1-1.fc15.x86_64.rpm and also firefox 4.0 since 6.0 won&#39;t work&lt;br /&gt;
&lt;br /&gt;
To do that use this command:&lt;br /&gt;
&lt;blockquote&gt;
sudo yum downgrade xulrunner&lt;/blockquote&gt;
What does this mean?&lt;br /&gt;
1- sudo &amp;amp; yum&lt;br /&gt;
&lt;blockquote&gt;
Everyone know about it&lt;/blockquote&gt;
2-&amp;nbsp; downgrade&lt;br /&gt;
&lt;blockquote&gt;
This will uninstall the current version on the package and install the previous version of that package which in our case what will solve the problem.&lt;/blockquote&gt;
&amp;nbsp;3- xulrunner&lt;br /&gt;
&lt;blockquote&gt;
Tha name of the package that we want to downgrade.&lt;/blockquote&gt;
&amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please comment on this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please support me by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://www.filesonic.com/file/2109287804/support.support&quot;&gt;Click Here to download&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;widget-content&quot;&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;a href=&quot;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;

&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ff6666;&quot;&gt;&lt;img alt=&quot;Angry face&quot; src=&quot;http://rapidgen.net/RapidGenLogo.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;http://members.rapidgen.net/aff.php?aff=068&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #ff6666;&quot;&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;/center&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/3360243441127313094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/09/fix-chmsee-error-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3360243441127313094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3360243441127313094'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/09/fix-chmsee-error-on-linux.html' title='Fix chmsee error on Linux'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-2590025398811302806</id><published>2011-09-28T21:46:00.000-07:00</published><updated>2011-11-07T23:07:14.723-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>YUM over proxy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
You need to update yum.conf and add proxy configurations&lt;br /&gt;
&lt;br /&gt;
1- sudo vi /etc/yum.conf&lt;br /&gt;
&lt;br /&gt;
2- Add the following:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # The proxy server - server: port&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy=http://proxyName:Port_Number&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If proxy authentication is required&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy_username=proxy_user&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxy_password=proxy_user_password&lt;br /&gt;
&lt;br /&gt;
3- In some cases you need to define this variable:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http_proxy=&#39;http://proxy_Name:port_Number&#39;&lt;br /&gt;
&lt;br /&gt;
4- If your proxy is perminant you can export that variable to make it perminant:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sudo export http_proxy=&#39;http://proxy_Name:port_Number&#39;&lt;br /&gt;
&lt;br /&gt;
Now if you want to use direct connection as in my case at home i use direct connection and at university i use proxy just put # in the front of the lines you have inserted to the configuration file this will make them comments and yum will ignore comments and when you want to use proxy just delete the # except this lines&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # The proxy server - server: port&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If proxy authentication is required&lt;br /&gt;
Because they must be comments and used to let you know easily where the proxy configuration are &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please comment on this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please support me by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://www.gigasize.com/get/kdh6sx18mdf&quot;&gt;Click Here to download&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/2590025398811302806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/09/yum-over-proxy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2590025398811302806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2590025398811302806'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/09/yum-over-proxy.html' title='YUM over proxy'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-114600359043912486</id><published>2011-09-22T21:02:00.000-07:00</published><updated>2012-01-09T19:20:42.465-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'>VMware 8 cannot find kernel-headers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I recently installed VMware 8 but it cannot find the kernel-headers and the fixes and patch on the Internet are for VMware 7.14 so i opened the command line and read the error and I realise that some files are not on its place so VMware cannot find them&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;I made a new post that contains the solution to all VMware installation problems on Linux&lt;br /&gt;
&lt;a href=&quot;http://eng-mah.blogspot.com/2012/01/fix-all-vmware-issues-on-linux.html&quot; target=&quot;&quot;&gt;You can visit it HERE&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The files are the modules for VMware and every one knows where they are&lt;br /&gt;
but before that we have to do somethings&lt;br /&gt;
&lt;br /&gt;
1- Install make, kernel-headers, gcc compiler, and kernel-devel&lt;br /&gt;
&lt;blockquote&gt;
# sudo yum install gcc.x86_64&lt;/blockquote&gt;
&lt;blockquote&gt;
# sudo yum install make&lt;/blockquote&gt;
&lt;blockquote&gt;
# sudo yum install kernel-headers&lt;/blockquote&gt;
&lt;blockquote&gt;
# sudo yum install kernel-devel&lt;/blockquote&gt;
2- Now we need to update the system&lt;br /&gt;
&lt;blockquote&gt;
# sudo yum update&lt;/blockquote&gt;
By now we finished the first step now we need to put the modules in it files&lt;br /&gt;
&lt;br /&gt;
VMware looks for the modules in&lt;br /&gt;
&lt;blockquote&gt;
/tmp/vmware-USER_NAME&lt;/blockquote&gt;
&amp;nbsp;USER_NAME: is the name of the user you will run vmware products from it&lt;br /&gt;
&lt;blockquote&gt;
lets assume in is eng-mah&lt;/blockquote&gt;
&amp;nbsp;but the actual place for this modules is&lt;br /&gt;
&lt;blockquote&gt;
/usr/lib/vmware/modules/source&lt;/blockquote&gt;
&amp;nbsp;and they are tar file not folders so we have to copy the tar files from its original place (/usr/lib/vmware/modules/source) to (/tmp/vmware-USER_NAME) and the decompress each tar file separately so you will have the follwoing folders:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vmblock-only&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vmci-only&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vmmon-only&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vmnet-only&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; vsock-only&lt;br /&gt;
&lt;br /&gt;
Now you just open the command line and type:&lt;br /&gt;
&lt;blockquote&gt;
# sudo vmware&lt;/blockquote&gt;
&amp;nbsp;Its will take 2 or more minutes and you will see the progress and the VMware will run&lt;br /&gt;
Gongratulations&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please comment on this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please support me by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://www.filesonic.com/file/2109287804/support.support&quot;&gt;Click Here to download&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/114600359043912486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/09/vmware-8-cannot-find-kernel-headers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/114600359043912486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/114600359043912486'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/09/vmware-8-cannot-find-kernel-headers.html' title='VMware 8 cannot find kernel-headers'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-3462948229011775753</id><published>2011-08-22T03:28:00.000-07:00</published><updated>2012-01-09T19:23:50.619-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="VMWare"/><title type='text'>VMware cannot compile modules in kernel 2.6.40*</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you update you Linux and VMware just went down and saying that &lt;br /&gt;
it needs to compile somethings and load some modules to your kernel and&lt;br /&gt;
then every thing goes wrong&lt;br /&gt;
&lt;br /&gt;
I tried a lot of patches on the net and nothing works for kernel 2.6.40 and later&lt;br /&gt;
&lt;br /&gt;
and after investing a lot of time in this problem here is the solution&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;I made a new post that contains the solution to all VMware installation problems on Linux&lt;br /&gt;&lt;a href=&quot;http://eng-mah.blogspot.com/2012/01/fix-all-vmware-issues-on-linux.html&quot;&gt;You can visit it HERE&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
This is an update for this topic&lt;br /&gt;
before doing the steps you need to download a patch and apply it then&lt;br /&gt;
you can do the steps if the patch did not bear fruit&lt;br /&gt;
&lt;br /&gt;
to download the patch&amp;nbsp; &lt;b&gt;&lt;a href=&quot;http://www.filesonic.com/file/2116147054/vmware2.6.39patchv3.tar.bz2&quot;&gt;Click Here&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;The maker of the patch is from&amp;nbsp;&lt;/b&gt;
   &lt;/span&gt;&lt;br /&gt;
&lt;h2 class=&quot;blogtitle&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://weltall.heliohost.org/wordpress&quot;&gt;Weltall&#39;s blog&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;blogtitle&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt;The link of the original patch post&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class=&quot;blogtitle&quot;&gt;

&lt;span style=&quot;font-size: small;&quot;&gt; &lt;a href=&quot;http://weltall.heliohost.org/wordpress/2011/05/14/running-vmware-workstation-player-on-linux-2-6-39-updated/&quot;&gt;Patch post&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
I executed the patch but only executing it is not enough and i found that the files are not in its place so now we are going to put the in place&lt;br /&gt;
Note: if you use VMware 8 this steps do not work &lt;a href=&quot;http://eng-mah.blogspot.com/2011/09/vmware-8-cannot-find-kernel-headers.html&quot;&gt;&lt;b&gt;this topic&lt;/b&gt;&lt;/a&gt; goes for VMware 8&lt;br /&gt;
&lt;br /&gt;
Now if the path did not work it does not mean that it did not do its job&lt;br /&gt;
&lt;br /&gt;
Th problem is that the fixed modules are not in its place so by following this steps you will but the modules in its right place&lt;br /&gt;
&lt;br /&gt;
First of all log into your system as root using&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: blue;&quot;&gt;su&lt;/span&gt;&lt;/blockquote&gt;
1- Go to&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: blue;&quot;&gt;/usr/lib/vmware/modules&lt;/span&gt;&lt;/blockquote&gt;
2- Copy its content to any place, in my case i copied it to&lt;br /&gt;
&lt;blockquote style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;~/Desktop/New Folder&lt;/span&gt;&lt;/blockquote&gt;
&amp;nbsp;3- Extract the tar file you copied each one to its own folder and make sure that you have the following folders contains some folders and file that VMware will use&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmblock-only&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmci-only&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmmon-only&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmnet-only&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vsock-only&lt;/span&gt;&lt;/blockquote&gt;
4- In command line go to:&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;color: blue;&quot;&gt;/tmp/vmware-root&lt;/span&gt;&lt;/blockquote&gt;
5- Copy the tar files and the extracted folders directly to this folder.&lt;br /&gt;
6- Run the a VMware product ( Workstation or Player) and it will compile and load the necessary modules to your kernel&lt;br /&gt;
&lt;br /&gt;
** Note that i have uploaded the modules that is working for my Linux (Fedora 15 with kernel 2.6.40.3-0.fc15.x86_64 Using Xfce desktop environment)&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.filesonic.com/file/1730308644/Working_Modules.tar&quot;&gt;Download the module from here&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please comment on this topic&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Please support me by downloading this file&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://www.filesonic.com/file/2109287804/support.support&quot;&gt;Click Here to download&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/3462948229011775753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/08/vmware-cannot-compile-on-kernel-2640.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3462948229011775753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/3462948229011775753'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/08/vmware-cannot-compile-on-kernel-2640.html' title='VMware cannot compile modules in kernel 2.6.40*'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4816732346682238582.post-2843816755243150694</id><published>2011-07-31T13:04:00.000-07:00</published><updated>2011-07-31T13:05:39.955-07:00</updated><title type='text'>View, Browse, and Extract ISO files in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;To browse ISO files in Linux you have to mount them and then you can browse or copy the files and folders that are inside ISO file&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;To do so follow the following instructions:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1- Open terminal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2- Write the following command&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;sudo mount -o loop iso_File_Location mount_Location&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;3- iso_File_Location is the location of the iso file and make sure that you typed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iso name e.g.:&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/home/temp_User/Desktop/temp.iso&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;4- mount_Location is the name of the folder where you want to mount the iso&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; file e.g.:&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/home/temp_User/Desktop/temp&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;5- To unmount the ISO file&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;sudo umount mount_Location&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;b style=&quot;color: red;&quot;&gt;Note you can install gcombust.x86_64 which is a GUI program and is equivalent to the applications that mounts ISO files in Windows&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://eng-mah.blogspot.com/feeds/2843816755243150694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://eng-mah.blogspot.com/2011/07/view-browse-and-extract-iso-files-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2843816755243150694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4816732346682238582/posts/default/2843816755243150694'/><link rel='alternate' type='text/html' href='http://eng-mah.blogspot.com/2011/07/view-browse-and-extract-iso-files-in.html' title='View, Browse, and Extract ISO files in linux'/><author><name>Mahmoud S. Abuwarda</name><uri>http://www.blogger.com/profile/09436109077746970546</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='23' height='32' src='http://3.bp.blogspot.com/-Kebnm6jNsh0/U3o6i-O7sDI/AAAAAAAAAVQ/tl9NoC3VgqU/s220/ffff.jpg'/></author><thr:total>0</thr:total></entry></feed>