<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zaid Pirwani</title>
	<atom:link href="https://zaidpirwani.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://zaidpirwani.com</link>
	<description>an all-round Engineering and Technology Geek, founder EjaadTech and Pop Up Learning - currently, IT Manager at FESF</description>
	<lastBuildDate>Mon, 18 Dec 2023 18:30:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://zaidpirwani.com/wp-content/uploads/2019/11/cropped-profile.jpg</url>
	<title>Zaid Pirwani</title>
	<link>https://zaidpirwani.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>An Engineer or not</title>
		<link>https://zaidpirwani.com/1928/an-engineer-or-not/</link>
					<comments>https://zaidpirwani.com/1928/an-engineer-or-not/#comments</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Mon, 18 Dec 2023 18:30:47 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Engineer]]></category>
		<guid isPermaLink="false">https://ZaidPirwani.com/?p=1928</guid>

					<description><![CDATA[I wrote the following rant as a comment on Hackaday, but then decided to post the long version here and add a link over there :) Hackaday Link: https://hackaday.com/2023/12/18/when-is-an-engineer-not-an-engineer-when-hes-a-canadian-engineer/ LONG RANT AHEADsome of which may be outdatedI havent checked for current accuracy or correctness we similarly have something called a PEC &#8211; Pakistan Engineering Council [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I wrote the following rant as a comment on Hackaday, but then decided to post the long version here and add a link over there :)</p>



<p class="wp-block-paragraph">Hackaday Link: <a href="https://hackaday.com/2023/12/18/when-is-an-engineer-not-an-engineer-when-hes-a-canadian-engineer/">https://hackaday.com/2023/12/18/when-is-an-engineer-not-an-engineer-when-hes-a-canadian-engineer/</a></p>



<p class="has-text-align-center wp-block-paragraph"><strong>LONG RANT AHEAD<br></strong>some of which may be outdated<br>I havent checked for current accuracy or correctness</p>



<p class="wp-block-paragraph">we similarly have something called a PEC &#8211; Pakistan Engineering Council &#8211; they accreditate universities and also specific programs and batches &#8211; if your bachelors / engineering program isn’t accredited, you can’t register with them. [1]</p>



<p class="wp-block-paragraph">Upon registering you become an RE &#8211; Registered Engineer [2]</p>



<p class="wp-block-paragraph">Then in about 3 to 5 years you must accumulate points called CPD or CPE &#8211; Continuing Professional Development or Continuing Professional Education (by attending or conducting seminars / courses) these work like how academic papers work (at least in some places, imho) &#8211; you refer me, I refer you &#8211; you train me, I train you. [3]</p>



<p class="wp-block-paragraph">Once you have accrued enough points, you become eligible to take what is called an EPE &#8211; Engineering Practice Examination, I heard its difficult – though I never actually bothered to check [4]</p>



<p class="wp-block-paragraph">If you pass EPE, you become a PE &#8211; PROFESSIONAL ENGINEER &#8211; then you get to sign off on papers that require a PE’s signature and companies hire you so that you can sign on their papers (they don’t need you to work on anything, just sign) and so they can bid on projects and tenders that require a PE on the payroll. [5]</p>



<p class="wp-block-paragraph">During all this process, you get the privilege to pay various fee and charges at every turn and get loads of forms to fill and provide multiple photocopies of every identity / academic document you could possibly have. [6]</p>



<p class="wp-block-paragraph">There are also elections for PEC &#8211; which I am not sure why they happen.</p>



<p class="wp-block-paragraph">Also, they accreditate a particular batch of a particular program of a university in its last year &#8211; so if you are studying and they decide that your particular batch of students is no good (most likely because your university/institute failed to have the right dimension of library or the latest in bureaucratic nuances or they failed to hire enough MS/PhDs or maybe just forgot to fill in a form) &#8211; YOU ARE OUT OF LUCK &#8211; you can’t ever become an RE or a PE [7]</p>



<p class="wp-block-paragraph">I got my degree about 10 years ago &#8211; haven’t worked in purely engineering fields, but have done loads of work which could be classified as such &#8211; I don’t write engineer with my name &#8211; but it is mentioned on my site and linked in.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">Most of my rant is from year&#8217;s old knowledge, I wish and hope it is better now, but i think it is still the same or worse&#8230;</p>
</blockquote>



<p class="wp-block-paragraph">[1] <a href="https://www.pec.org.pk/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/</a></p>



<p class="wp-block-paragraph">[2] <a href="https://www.pec.org.pk/engineers-registration/guidelines/guidelines-for-re/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/engineers-registration/guidelines/guidelines-for-re/</a></p>



<p class="wp-block-paragraph">[3] <a href="https://www.pec.org.pk/cpd/introduction-to-cpd/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/cpd/introduction-to-cpd/</a></p>



<p class="wp-block-paragraph">[4] <a href="https://www.pec.org.pk/cpd/engineering-practice-examination/epe-2023" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/cpd/engineering-practice-examination/epe-2023</a></p>



<p class="wp-block-paragraph">[5] <a href="https://www.pec.org.pk/engineers-registration/guidelines/guidelines-for-pe/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/engineers-registration/guidelines/guidelines-for-pe/</a></p>



<p class="wp-block-paragraph">[6] <a href="https://www.pec.org.pk/pec-fee-structures/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/pec-fee-structures/</a></p>



<p class="wp-block-paragraph">[7] <a href="https://www.pec.org.pk/accredition/programs-under-level-1/" target="_blank" rel="noreferrer noopener">https://www.pec.org.pk/accredition/programs-under-level-1/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1928/an-engineer-or-not/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>DASH Cams Needed</title>
		<link>https://zaidpirwani.com/1644/dash-cams-needed/</link>
					<comments>https://zaidpirwani.com/1644/dash-cams-needed/#comments</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 19:10:36 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1644</guid>

					<description><![CDATA[TLDR = Dash Cams if promoted in our country would result in a drastic change in the habits of people on a macro level. DASH CAM = A camera installed inside a car in the front portion (usually behind the rear-view mirror) which makes video of what happens in front of the car. Not so [&#8230;]]]></description>
										<content:encoded><![CDATA[<blockquote><p>TLDR = Dash Cams if promoted in our country would result in a drastic change in the habits of people on a macro level.</p></blockquote>
<p>DASH CAM = A camera installed inside a car in the front portion (usually behind the rear-view mirror) which makes video of what happens in front of the car.</p>
<p><figure id="attachment_1645" aria-describedby="caption-attachment-1645" style="width: 300px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-medium wp-image-1645" src="http://zaidpirwani.com/wp-content/uploads/2015/09/GS8000L-HD1080P-2-7-Car-DVR-Vehicle-Camera-Video-Recorder-Dash-Cam-G-sensor-HDMI-300x300.jpg" alt="DASH CAM - from AliExpress" width="300" height="300" srcset="https://zaidpirwani.com/wp-content/uploads/2015/09/GS8000L-HD1080P-2-7-Car-DVR-Vehicle-Camera-Video-Recorder-Dash-Cam-G-sensor-HDMI-300x300.jpg 300w, https://zaidpirwani.com/wp-content/uploads/2015/09/GS8000L-HD1080P-2-7-Car-DVR-Vehicle-Camera-Video-Recorder-Dash-Cam-G-sensor-HDMI-150x150.jpg 150w, https://zaidpirwani.com/wp-content/uploads/2015/09/GS8000L-HD1080P-2-7-Car-DVR-Vehicle-Camera-Video-Recorder-Dash-Cam-G-sensor-HDMI.jpg 900w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-1645" class="wp-caption-text">DASH CAM &#8211; from AliExpress</figcaption></figure></p>
<p>Not so expensive when compared compared to the price of a car or by the list of features they come with or by the possible benefit they can provide.</p>
<p>Some features of a basic 15-25 USD Dash Cam from AliExpress</p>
<ul>
<li>upto 1080p HD video recording</li>
<li>SD Card upto 32GB</li>
<li>Loop recording, if card is full, oldest video gets over-written</li>
<li>Motion detector (only record video when something moves)</li>
<li>G-Sensor (basic Accelerometer which starts recording if someone moves the car, something hits the car)</li>
<li>Night Vision (IR LEDs)</li>
<li>2.7 inch Display</li>
<li>Audio Recording (inside and around car)</li>
<li>Analog Video out / HDMI out / USB Connectivity</li>
<li>Built-in battery and charging (works even when car is not running)</li>
</ul>
<p>Link to a simple AliExpress Search: <a href="http://goo.gl/kB4lWi">http://goo.gl/kB4lWi</a></p>
<h3><strong>WHATS THE PROBLEM/CURRENT SITUATION</strong></h3>
<p>So,keeping in view the rampant corruption of police on the roads, the constant disobeying of the Law by every other person, accidents, terror incidents (Mobile/Car/Bike Snatching, Target Killing, Bombs and such) natural calamities and more &#8211; if 1 in every 5 or 10 cars would install a DASH CAM &#8211; there would be so many more eyes on the roads all the time and everywhere &#8211; talking about the whole of the country, not just Pakistan.</p>
<h3>
<strong>HOW</strong></h3>
<p>Insurance companies could make it mandatory or give discount to car owners having a CAM.<br />
Companies having fleets of cars will have video RECORD of where their vehicles have been &#8211; might help them in some cases<br />
&#8212;- you can most possibly think of more ways this might happen)<br />
<strong>&#8211; a Startup brings in a lot of DASH CAMs and starts selling or just works on creating awareness and maybe makes a mobile app or a portal or a software which allows easy video selection/cutting/editing/uploading.</strong></p>
<h3>
<strong>WHAT CAN HAPPEN ?</strong></h3>
<p>People buy and install DASH Cams in their cars, and keep going with their lives, but everyone experiences something which shakes them and at that moment, maybe video proof of the event might help someone or just knowing that the roads are being recorded &#8211; there might be less corruption, people might follow Traffic Laws more, Terror incidents may decrease.</p>
<p>Not everyone will buy one, not everyone will bother to download video of some event from the CAM and upload it online (we still have youtube blocked), not everyone will see it as a good idea, but sharing such videos on Social Media will allow people to point fingers, ask questions, demand justice and this just might start to change the overall picture.</p>
<p>Now, I dont know much about the Pakistani market, hell I dont even own a car, but I have not seen one person using a DASH Cam so far, and anyone and everyone I have asked recently (except for the group post) &#8211; majority does not know what it is. This is also possibly not the first post about DASH Cams needed in Pakistan, but think about it&#8230;</p>
<p>&nbsp;</p>
<h3><strong>Some DASH CAM related Links</strong></h3>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Dashcam">https://en.wikipedia.org/wiki/Dashcam</a></li>
<li><a href="https://www.reddit.com/r/Roadcam/top/?sort=top&amp;t=all">https://www.reddit.com/r/Roadcam/top/?sort=top&amp;t=all</a></li>
<li><a href="https://en.wikipedia.org/wiki/Sousveillance">https://en.wikipedia.org/wiki/Sousveillance</a></li>
<li><a href="http://www.pakwheels.com/blog/pakistanis-start-installing-dashcams-cars/">http://www.pakwheels.com/blog/pakistanis-start-installing-dashcams-cars/</a></li>
</ul>
<p>P.S. I dont know why i wrote this, there is so many other things to do, work and stuff, but this has been bothering me for a few months now&#8230; needed to let it out.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1644/dash-cams-needed/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Arduino an Explanation &#8211; AVR @ Heart</title>
		<link>https://zaidpirwani.com/1636/arduino-an-explanation-avr-heart/</link>
					<comments>https://zaidpirwani.com/1636/arduino-an-explanation-avr-heart/#comments</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Thu, 13 Aug 2015 17:43:15 +0000</pubDate>
				<category><![CDATA[AVR Stuff]]></category>
		<category><![CDATA[Circuits 'n' Stuff]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1636</guid>

					<description><![CDATA[I have been asked again and again by my friends and students to use Arduino or not and some people who are using AVR asked me if Arduino is better and some who were using Arduino asked the same about AVR. Well, here it goes, [this is all that I know, haven&#8217;t researched or confirm any [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I have been asked again and again by my friends and students to use Arduino or not and some people who are using AVR asked me if Arduino is better and some who were using Arduino asked the same about AVR. Well, here it goes, [this is all that I know, haven&#8217;t researched or confirm any of this while writing it &#8211; this became a bit longer than I had initially thought].</p>
<p>To understand what is Arduino, lets see how AVR works. To use AVR, usually the following is done in order.</p>
<ul>
<li>Install ATMEL Studio on your PC if you dont have it.</li>
<li>Make a new project, select the AVR you like.</li>
<li>Write the CODE in the source file, standard C/C++ code works. If you want to use something special like LCDs or UART or something, proper Libraries make work easier otherwise that too can be one by using C code and referring to the datasheet.</li>
<li>Build/Compile/Make whatever, get the HEX file (look in the DEBUG folder).</li>
<li>Upload/Burn/Flash that Hex File to the AVR using a Programmer (a separate Hardware device &#8211; <a href="http://www.fischl.de/usbasp/" target="_blank">USBasp is the BEST</a>).</li>
<li>Once the AVR is programmed with the HEX file, it needs to be on a circuit with power supply, reset circuitry, oscillator and any other component etc required by your project. Usually it is a Development Board, or an AVR on a breadboard or maybe a project PCB which has everything on it including a programming port (ICSP/ISP Connector).</li>
<li>It should WORK!</li>
</ul>
<p>Hoping that you did everything above correctly from writing proper code to having the right controller IC to a working programmer and a working/tested circuit with your AVR IC in it and you should see your code working.</p>
<p>Usually mistakes happen in making that AVR circuit or the programmer doesn&#8217;t work or the connections from the programmer to the AVR are loose/broken, resulting in frustration and waste of time, usually new comers at this point think of leaving the AVR world and moving on.</p>
<p>This is where ARDUINO comes, Arduino is basically a prefabricated PCB aka circuit board with</p>
<ul>
<li>an AVR Micro-controller (ATMega8/328/2560 etc) on it +</li>
<li>Power Supply circuitry +</li>
<li>Programmer Support (allows programming) +</li>
<li>Pins provided in easy to use connectors and numbered from 0 to 13 and A0 to A5 (talking about Uno here)</li>
<li>an easy to use Software <a href="https://www.arduino.cc/en/main/software" target="_blank">ARDUINO IDE</a></li>
<li>easy to use code/language &#8211; basically it is just C/C++ functions, <a href="http://hackaday.com/2015/07/28/embed-with-elliot-there-is-no-arduino-language/" target="_blank">more about Arduino language here</a></li>
<li>One button/click program UPLOAD/test</li>
</ul>
<p>So an Arduino looks very easy for any beginner to use, but KNOW that it has the same AVR micro-controller and the IDE supports C/C++ completely and you can still use any and all AVR registers directly, but that might break some of the Arduino functions.</p>
<p>So <strong>anyone using AVRs</strong>, I would suggest STICK with it and learn it properly unless you are stuck in a situation where you dont have the time to learn AVR now, then move to Arduino, do your task and then come back to AVR and learn it. [here I mean the ATMega series in general]</p>
<p><strong>Those using Arduinos</strong>, it is OKAY to use it at any and all levels including and beyond B.E. anyone who says this is kid stuff does not know that it is the same AVR as any other &#8211; it is upto the programmer to write powerful code for it.</p>
<p>As For myself, I use Arduinos to prototype faster, this includes using Arduino hardware and shields and the Arduino IDE/code &#8211; however after basic prototyping I move my projects to custom made AVR boards, sometimes with the same arduino code and sometimes I optimize the code properly and either rewrite it completely in Atmel Studio using the standard C/C++ and my own custom libraries or mix my code with the Arduino code.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1636/arduino-an-explanation-avr-heart/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>[LINUXLOG 003]: Going Great &#8211; Mint+XP+Win7</title>
		<link>https://zaidpirwani.com/1589/linuxlog-003-going-great-mintxpwin7/</link>
					<comments>https://zaidpirwani.com/1589/linuxlog-003-going-great-mintxpwin7/#respond</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Tue, 02 Sep 2014 16:55:52 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1589</guid>

					<description><![CDATA[With classes started, me teaching with DevC++ and Visual Studio had to install Windows &#8211; but did it so in Virtual Machine and apparently I had to install both XP and Win7 just to show the students the same environment as they are using. Also, finally started to use git from Linux terminal, it is even great [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>With classes started, me teaching with DevC++ and Visual Studio had to install Windows &#8211; but did it so in Virtual Machine and apparently I had to install both XP and Win7 just to show the students the same environment as they are using.</p>
<p>Also, finally started to use git from Linux terminal, it is even great than the windows app, though it was easier, but this just feels more better.. typing in everything.</p>
<p><a href="https://github.com/zaidpirwani/LinuxLog">LinuxLog git repo at: https://github.com/zaidpirwani/LinuxLog</a></p>
<p>For now, maybe the next Linux log entry will come late, unless I do some big changes to my system &#8211; atm, am quite happy with my <a href="https://github.com/Ejaad/RasBhariPi">RasBhariPi</a> and my Mint and I hope to keep on it.</p>
<p>NOTE: saw a book, found out it was free, downloaded, maybe I will read through it too.</p>
<blockquote><p><a href="http://linuxcommand.org/tlcl.php">The Linux Command Line</a><br />
Second Internet Edition<br />
William E. Shotts, Jr.</p></blockquote>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1589/linuxlog-003-going-great-mintxpwin7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[LINUXLOG 002]: The First Crash</title>
		<link>https://zaidpirwani.com/1585/linuxlog-002-the-first-crash/</link>
					<comments>https://zaidpirwani.com/1585/linuxlog-002-the-first-crash/#respond</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Sun, 24 Aug 2014 15:26:23 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1585</guid>

					<description><![CDATA[I thought only windows would crash so easily, but today when I started my laptop, it never gave me the desktop&#8230; some errors about can&#8217;t load cinnamon this and that and virtualbox kernel service. but unlike windows which when crash don&#8217;t give any avenue for repair, I was able to login from the other terminals. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I thought only windows would crash so easily, but today when I started my laptop, it never gave me the desktop&#8230; some errors about can&#8217;t load cinnamon this and that and virtualbox kernel service. but unlike windows which when crash don&#8217;t give any avenue for repair, I was able to login from the other terminals.</p>
<pre>Ctrl+Alt+F[1-7]</pre>
<p>I used the text-based browser, <strong>Lynx</strong> to check what the problem was, did some purging of all virtualbox related stuff and reinstalled cinnamon and then voila, I was able to login again.  But I will need to run Windows and Visual Studio and some other software as from tomorrow classes are starting and I need the Microsoft goodness too, even when I don&#8217;t want it.</p>
<p>I am logging in all the major steps and as soon as I learn how to GIT from the command line, it will be all up in a repo on, soon.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1585/linuxlog-002-the-first-crash/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[LINUXLOG 001]: Initial Hurdles of Linux</title>
		<link>https://zaidpirwani.com/1582/linuxlog-001-initial-hurdles-of-linux/</link>
					<comments>https://zaidpirwani.com/1582/linuxlog-001-initial-hurdles-of-linux/#respond</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Fri, 22 Aug 2014 20:04:17 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1582</guid>

					<description><![CDATA[So far so good, LMD (Linux Mint Debian) is turning out to be clean and simple, or maybe it is cause am not doing much work as I was on Windows8, but waiting for the regular classes to start, then will need the Windows software I have been using. Got a MATLAB related task to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>So far so good, LMD (Linux Mint Debian) is turning out to be clean and simple, or maybe it is cause am not doing much work as I was on Windows8, but waiting for the regular classes to start, then will need the Windows software I have been using.</p>
<p>Got a MATLAB related task to do, skipping it cause of no MATLAB, but will install octave and use it instead for future work, or MATLAB if I ever get around to install Windows as dual boot or virtual.</p>
<p>I had to use Arduino, AVRDUDE but both gave permission errors, so for the time being, used sudo but should fix it for proper use. As I had to copy some Arduino library files, I needed to find out where Arduino was installed and still I am not clear on how Linux stores files, so used commands <strong>locate</strong> and <strong>whereis</strong>, both are search related commands, whereis is I think specifically for searching where a command binary actually is and locate is for commands/folders and files everything (I think). Also, at first I just tried locate Arduino and it gave such a long list that the terminal window didn&#8217;t show it all, so used | less to paginate the output (not sure what less is actually, man defines it as opposite of more .. :) very helpful).</p>
<ul>
<li><strong>whereis some_file_name</strong></li>
<li><strong>locate avrdude</strong></li>
<li>add | less at end of whereis command if result is too long, <strong>whereis some_file_name | less</strong></li>
</ul>
<p>&nbsp;</p>
<p>Also need to <a href="https://justgetflux.com/linux.html">install F.Lux on Linux</a> (I just can&#8217;t look at the white screen now after so many years of using F.Lux on windows, can&#8217;t install. Installed <a href="http://jonls.dk/redshift/">RedShift (similar)</a> &#8211; have to configure.</p>
<p><strong>Update:</strong> Arduino is working now, maybe just needed restarting&#8230; though GUI glitches still there (selected items in sub-menus have invisible text) &#8211; AVRDUDE to test later.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1582/linuxlog-001-initial-hurdles-of-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[LinuxLog 000]: Linux on Laptop as Primary OS</title>
		<link>https://zaidpirwani.com/1578/linuxlog-000-linux-on-laptop-as-primary-os/</link>
					<comments>https://zaidpirwani.com/1578/linuxlog-000-linux-on-laptop-as-primary-os/#respond</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Tue, 19 Aug 2014 02:04:42 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1578</guid>

					<description><![CDATA[Finally decided to ditch my dying(dead) Win8 and install something else, wanted to install Windows7 but not having a 64-bit copy and wanting to try out Linux as a primary OS, decided to install Linux Mint Debian, not much of a selection as this was the ISO which I had on my system already. My [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Finally decided to ditch my dying(dead) Win8 and install something else, wanted to install Windows7 but not having a 64-bit copy and wanting to try out Linux as a primary OS, decided to install <a title="LMDE Download page" href="http://www.linuxmint.com/download_lmde.php" target="_blank">Linux Mint Debian</a>, not much of a selection as this was the ISO which I had on my system already.</p>
<p>My system specs  are: Dell Inspiron 1564, core i3 with a 250GB HDD and 6GB RAM &#8211; yes it is an OLD system</p>
<p>I still intend to install Win7 and dual boot it, but telling myself still that I will keep Mint as the Primary/default OS for boot (normal usage), so partitioned the HDD accordingly with <strong>gparted</strong> using the <a title="LIVE USB made with RUFUS" href="http://rufus.akeo.ie/" target="_blank">LinuxMint Live USB</a> before starting the installation.</p>
<p><a href="http://zaidpirwani.com/wp-content/uploads/2014/08/gparted-snapshot.png"><img decoding="async" class="aligncenter size-full wp-image-1579" src="http://zaidpirwani.com/wp-content/uploads/2014/08/gparted-snapshot.png" alt="gparted-snapshot" width="781" height="323" srcset="https://zaidpirwani.com/wp-content/uploads/2014/08/gparted-snapshot.png 781w, https://zaidpirwani.com/wp-content/uploads/2014/08/gparted-snapshot-150x62.png 150w, https://zaidpirwani.com/wp-content/uploads/2014/08/gparted-snapshot-300x124.png 300w" sizes="(max-width: 781px) 100vw, 781px" /></a></p>
<p>the 200GB partition is for Windows and any other data, am hoping I will NOT need to resize anything &#8211; still weighting options to run windows virtually or dual boot it.</p>
<p>The only and only and the problem I didn&#8217;t think of was that my WiFi driver does not come pre-installed (proprietary stuff) so had to install it without having Internet access on the laptop, used cell phone to search for a solution, download files and copy commands&#8230;</p>
<p>Keeping a record of all am doing, will make a GitRepo for keeping the log.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1578/linuxlog-000-linux-on-laptop-as-primary-os/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Leaky Code&#8230;</title>
		<link>https://zaidpirwani.com/1564/leaky-code/</link>
					<comments>https://zaidpirwani.com/1564/leaky-code/#respond</comments>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Sun, 20 Apr 2014 15:26:23 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1564</guid>

					<description><![CDATA[I had heard lots and lots about leaky code so far, but never actually learned about it or read about it until tonight&#8230; so here it is below: a sample of LEAKY CODE (source: Wikipedia) #include &#60;stdlib.h&#62; void function_which_allocates(void) { /* allocate an array of 45 floats */ float * a = malloc(sizeof(float) * 45); [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I had heard lots and lots about leaky code so far, but never actually learned about it or read about it until tonight&#8230; so here it is below: a sample of LEAKY CODE (source: Wikipedia)</p>
<blockquote>
<pre class="de1" style="color: #000000;"><span class="co2" style="color: #339933;">#include &lt;stdlib.h&gt;</span>
 
<span class="kw4" style="color: #993333;">void</span> function_which_allocates<span class="br0" style="color: #009900;">(</span><span class="kw4" style="color: #993333;">void</span><span class="br0" style="color: #009900;">)</span> <span class="br0" style="color: #009900;">{</span>
    <span class="coMULTI" style="font-style: italic; color: #808080;">/* allocate an array of 45 floats */</span>
    <span class="kw4" style="color: #993333;">float</span> <span class="sy0" style="color: #339933;">*</span> a <span class="sy0" style="color: #339933;">=</span> <span class="kw3" style="color: #000066;">malloc</span><span class="br0" style="color: #009900;">(</span><span class="kw4" style="color: #993333;">sizeof</span><span class="br0" style="color: #009900;">(</span><span class="kw4" style="color: #993333;">float</span><span class="br0" style="color: #009900;">)</span> <span class="sy0" style="color: #339933;">*</span> <span class="nu0" style="color: #0000dd;">45</span><span class="br0" style="color: #009900;">)</span><span class="sy0" style="color: #339933;">;</span>
 
    <span class="coMULTI" style="font-style: italic; color: #808080;">/* additional code making use of 'a' */</span>
 
    <span class="coMULTI" style="font-style: italic; color: #808080;">/* return to main, having forgotten to free the memory we malloc'd */</span>
<span class="br0" style="color: #009900;">}</span>
 
<span class="kw4" style="color: #993333;">int</span> main<span class="br0" style="color: #009900;">(</span><span class="kw4" style="color: #993333;">void</span><span class="br0" style="color: #009900;">)</span> <span class="br0" style="color: #009900;">{</span>
    function_which_allocates<span class="br0" style="color: #009900;">(</span><span class="br0" style="color: #009900;">)</span><span class="sy0" style="color: #339933;">;</span>
 
    <span class="coMULTI" style="font-style: italic; color: #808080;">/* the pointer 'a' no longer exists, and therefore cannot be freed,
     but the memory is still allocated. a leak has occurred. */</span>
<span class="br0" style="color: #009900;">}
</span></pre>
</blockquote>
<p>via <a href="http://en.wikipedia.org/wiki/Memory_leak">Wikipedia Memory Leak Article</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://zaidpirwani.com/1564/leaky-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>EiD: Hugs, Eidi and GUNS</title>
		<link>https://zaidpirwani.com/1410/eid-hugs-eidi-and-guns/</link>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Sat, 10 Aug 2013 19:47:48 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1410</guid>

					<description><![CDATA[First and foremost; EID MUBARAK TO ALL&#8230; I have been awfully lazy this Eid and didn&#8217;t even send Eid Greetings SMS to anyone except a select few. If someone looked down on Karachi, PK via satellite on Eid days, he would see Large gatherings of Muslims Hugging each other like its the last time they&#8217;ll [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>First and foremost; EID MUBARAK TO ALL&#8230; I have been awfully lazy this Eid and didn&#8217;t even send Eid Greetings SMS to anyone except a select few.</p>
<p><figure id="attachment_1416" aria-describedby="caption-attachment-1416" style="width: 461px" class="wp-caption aligncenter"><a href="http://zaidpirwani.com/wp-content/uploads/2013/08/eid-mubarak-EJAAD.png"><img decoding="async" class=" wp-image-1416  " alt="LED Eid Mubarak - from Ejaad" src="http://zaidpirwani.com/wp-content/uploads/2013/08/eid-mubarak-EJAAD.png" width="461" height="170" srcset="https://zaidpirwani.com/wp-content/uploads/2013/08/eid-mubarak-EJAAD.png 960w, https://zaidpirwani.com/wp-content/uploads/2013/08/eid-mubarak-EJAAD-150x55.png 150w, https://zaidpirwani.com/wp-content/uploads/2013/08/eid-mubarak-EJAAD-300x110.png 300w" sizes="(max-width: 461px) 100vw, 461px" /></a><figcaption id="caption-attachment-1416" class="wp-caption-text">LED Eid Mubarak &#8211; from Ejaad &#8211; <a title="Ejaad" href="http://facebook.com/EjaadTech" target="_blank">http://facebook.com/EjaadTech</a></figcaption></figure></p>
<p>If someone looked down on Karachi, PK via satellite on Eid days, he would see</p>
<ol>
<li>Large gatherings of Muslims</li>
<li>Hugging each other like its the last time they&#8217;ll meet</li>
<li>Pakistani Flags and badges and stuff [14th August is also almost here]</li>
<li>Children armed with guns&#8230;. YES, GUNS..!!!</li>
</ol>
<p>Every Eid for the past some years I have been seeing GUNS, lots and lots of guns, Eid day reminds me of the scene in Matrix where Neo asks for Guns and gets em.</p>
<p style="text-align: center;"><iframe loading="lazy" src="https://www.youtube-nocookie.com/embed/Y70vcs3oV14‎" height="450" width="600" frameborder="0"></iframe></p>
<p>I mean why Guns, why not any other toy, why not board games, why not card games, why not sports gear, why not <em>wheel-walay-jootay</em>, why did it had to be guns&#8230;. and once the little ones have guns, they start having street wars form into gangs and its not only the little ones I see kids of almost 15 years old wandering around showing off their bad-ass BIGGER guns leading those gangs.</p>
<p>This has got to change. It is already done this year but next year and on next coming Eid (Bakra-Eid) I plan on at least trying in my own family to NOT let the kids buy guns. I will RE-post this before the next Eid too so to remind others and let&#8217;s stop this. I can force it upon a few but unless we show these little kids that there are other great things, other toys and play things which open the imagination for the better, which encourage healthy and safe outdoor  activities which encourage sharing rather than killing this trend isn&#8217;t going anywhere.</p>
<p>Let&#8217;s not even start on the hazards of these Guns and how one wrong aim can put out the light in one&#8217;s eye.</p>
<p>I hope that most of you will agree with me and some will share this thought this time and the next time on Eid.</p>
<p>[I should better familiarize myself with the latest toys too, so next time, I can give my kid-bro and little cousins a better choice, hopefully before next Eid, I will post here a list too.]</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Simulating Arduino [Steps for Windows/PC]</title>
		<link>https://zaidpirwani.com/1314/simulating-arduino/</link>
		
		<dc:creator><![CDATA[Zaid Pirwani]]></dc:creator>
		<pubDate>Sun, 30 Jun 2013 14:49:46 +0000</pubDate>
				<category><![CDATA[AVR Stuff]]></category>
		<category><![CDATA[Circuits 'n' Stuff]]></category>
		<guid isPermaLink="false">http://ZaidPirwani.com/?p=1314</guid>

					<description><![CDATA[This is a STEP-by-STEP post, no-nonsense approach to simulating an Arduino on your PC, for those who don&#8217;t have the actual Arduino hardware, but have the following Required Software: Arduino [Free] Download from http://arduino.cc Proteus [NOT-Free] (I am assuming you have a licensed version from school or something (google maybe) From here on, I will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This is a STEP-by-STEP post, no-nonsense approach to simulating an Arduino on your PC, for those who don&#8217;t have the actual Arduino hardware, but have the following <strong>Required Software</strong>:</p>
<ul>
<li><span style="line-height: 13px;">Arduino [Free] <a title="Arduino Official Site" href="http://arduino.cc" target="_blank">Download from http://arduino.cc</a></span></li>
<li>Proteus [NOT-Free] (I am assuming you have a licensed version from school or something (google maybe)</li>
</ul>
<p>From here on, I will be simply providing the steps of the process, no talk about what and how, just the steps, follow them and you will hopefully be able to see simulation of arduino code within your PC.</p>
<ol>
<li>Open Arduino Software<br />
&#8212; Select <strong>Arduino Uno</strong> from Tools(menu)&gt;&gt;Boards<br />
&#8212; Select Preferences from File Menu<br />
&#8212; Check the compilation box after the <strong><strong><strong>Show verbose output during:</strong></strong></strong></li>
<li>Write your program in Arduino, anything, or simply open some example program.</li>
<li>Once done with the code, CLICK ON VERIFY,<br />
the RIGHT/check button on top-left &#8211; do not click on Upload, cause you don&#8217;t have the Arduino connected.</p>
<p><figure id="attachment_1372" aria-describedby="caption-attachment-1372" style="width: 520px" class="wp-caption aligncenter"><a href="http://zaidpirwani.com/wp-content/uploads/2013/06/verify-not-upload.png"><img loading="lazy" decoding="async" class="size-full wp-image-1372" alt="verify-not-upload" src="http://zaidpirwani.com/wp-content/uploads/2013/06/verify-not-upload.png" width="520" height="228" srcset="https://zaidpirwani.com/wp-content/uploads/2013/06/verify-not-upload.png 520w, https://zaidpirwani.com/wp-content/uploads/2013/06/verify-not-upload-150x65.png 150w, https://zaidpirwani.com/wp-content/uploads/2013/06/verify-not-upload-300x131.png 300w" sizes="auto, (max-width: 520px) 100vw, 520px" /></a><figcaption id="caption-attachment-1372" class="wp-caption-text">verify-not-upload</figcaption></figure></li>
<li>As the arduino IDE verifies and compiles your code, you will see the output of the compilation process as it happens,<br />
once done, it will show something like this at the bottom LOG window (black area).<br />
<code>C:\Users\ZAIDPI~1\AppData\Local\Temp\build3564184540682511069.tmp\Blink.cpp.hex<br />
Binary sketch size: 1,084 bytes (of a 32,256 byte maximum)</code></p>
<p><figure id="attachment_1371" aria-describedby="caption-attachment-1371" style="width: 519px" class="wp-caption aligncenter"><a href="http://zaidpirwani.com/wp-content/uploads/2013/06/hex-file-address.png"><img loading="lazy" decoding="async" class="size-full wp-image-1371" alt="hex-file-address" src="http://zaidpirwani.com/wp-content/uploads/2013/06/hex-file-address.png" width="519" height="231" srcset="https://zaidpirwani.com/wp-content/uploads/2013/06/hex-file-address.png 519w, https://zaidpirwani.com/wp-content/uploads/2013/06/hex-file-address-150x66.png 150w, https://zaidpirwani.com/wp-content/uploads/2013/06/hex-file-address-300x133.png 300w" sizes="auto, (max-width: 519px) 100vw, 519px" /></a><figcaption id="caption-attachment-1371" class="wp-caption-text">hex-file-address</figcaption></figure></li>
<li>I have only shown the last few lines,<br />
Copy the PATH of the hex file, complete path from the drive root to .hex<br />
<code>C:\Users\ZAIDPI~1\AppData\Local\Temp\build3564184540682511069.tmp\Blink.cpp.hex</code><em>The arduino Part is DONE, now we move to Proteus</em>.</li>
<li>Open Proteus (ISIS) and add an ATMega328P into the Editing Window of Proteus.<br />
[press P for Part, search for ATMega328P and then add it, first to library then to the editing area, place part]</li>
<li>Add Power to the AVCC and AREF by attaching them to 5V/VCC/Power Rail</li>
<li>Now double click on ATMega328P to open the properties page, do the followign changes:<br />
&#8212; Set the CLKDIV8 option to (1) Unprogrammed<br />
&#8212; Set the CKSEL Fuses option to (1111) Ext. Crystal 8.0-MHz<br />
&#8212; in Advanced Properties section, write in 16000000 as the value of Clock Frequency Property<br />
&#8212; PASTE the address of HEX file, previously copied from Arduino software in the Program File option.<br />
Press OK, to close the properties window</p>
<p><figure id="attachment_1373" aria-describedby="caption-attachment-1373" style="width: 460px" class="wp-caption aligncenter"><a href="http://zaidpirwani.com/wp-content/uploads/2013/06/avr-properties-in-proteus.png"><img loading="lazy" decoding="async" class=" wp-image-1373 " alt="avr-properties-in-proteus" src="http://zaidpirwani.com/wp-content/uploads/2013/06/avr-properties-in-proteus.png" width="460" height="437" srcset="https://zaidpirwani.com/wp-content/uploads/2013/06/avr-properties-in-proteus.png 575w, https://zaidpirwani.com/wp-content/uploads/2013/06/avr-properties-in-proteus-150x142.png 150w, https://zaidpirwani.com/wp-content/uploads/2013/06/avr-properties-in-proteus-300x284.png 300w" sizes="auto, (max-width: 460px) 100vw, 460px" /></a><figcaption id="caption-attachment-1373" class="wp-caption-text">avr-properties-in-proteus</figcaption></figure></li>
<li>ADD any circuit, components etc in Proteus as you would with the actual ARDUINO
<p><figure id="attachment_1370" aria-describedby="caption-attachment-1370" style="width: 511px" class="wp-caption aligncenter"><a href="http://zaidpirwani.com/wp-content/uploads/2013/06/simple-circuit-for-blinky.png"><img loading="lazy" decoding="async" class=" wp-image-1370 " alt="simple-circuit-for-blinky" src="http://zaidpirwani.com/wp-content/uploads/2013/06/simple-circuit-for-blinky.png" width="511" height="262" srcset="https://zaidpirwani.com/wp-content/uploads/2013/06/simple-circuit-for-blinky.png 852w, https://zaidpirwani.com/wp-content/uploads/2013/06/simple-circuit-for-blinky-150x76.png 150w, https://zaidpirwani.com/wp-content/uploads/2013/06/simple-circuit-for-blinky-300x153.png 300w" sizes="auto, (max-width: 511px) 100vw, 511px" /></a><figcaption id="caption-attachment-1370" class="wp-caption-text">simple-circuit-for-blinky</figcaption></figure></li>
<li>PRESS PLAY</li>
<li>Now, whenever you change code in arduino, just click on VERIFY to re-compile it, the hex file will remain the same and you can simply test the new code by stopping and re-starting the proteus simulation.</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
