<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
	<channel>
<title>My RSS Feed</title><link>http://www.phy.ohio.edu/~hadizade/index.html</link><description>Hot News&#x21;</description><dc:language>en</dc:language><language>en</language><dc:date>2024-05-03T13:50:30-04:00</dc:date><admin:generatorAgent rdf:resource="http://www.realmacsoftware.com/" />
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<lastBuildDate>Fri, 21 Dec 2012 06:14:23 -0500</lastBuildDate><item><title>Step-by-Step Guide to Importing OER Course Content into D2L</title><dc:subject>Blog</dc:subject><dc:date>2024-05-03T13:50:30-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/OER.html#unique-entry-id-36</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/OER.html#unique-entry-id-36</guid><content:encoded><![CDATA[<p style="text-align:center;"><br />1.) Click on the "View Sources" tab to access the OER course content.<br /><br /><img class="imageStyle" alt="OER_1" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_1.png" width="522" height="279" /><br /><br />2.) Select "Common Cartridge" from the available options and download the course shell.<br /><br /><img class="imageStyle" alt="OER_2" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_2.png" width="470" height="312" /><br /><br />3.) In the D2L course shell, click on the tools icon and select "Import/Export/Copy Components."<br /><br /><img class="imageStyle" alt="OER_3" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_3.png" width="400" height="298" /><br /><br />4.) Choose the "Import Components" tab, and under that, select "from a course package."<br /><br /><img class="imageStyle" alt="OER_4" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_4.png" width="377" height="386" /><br /><br />5.) Click on "Upload" or drag and drop the downloaded "Common Cartridge" file into the designated area.<br /><br /><br /><img class="imageStyle" alt="OER_5" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_5.png" width="381" height="386" /><br /><br />6.) Wait for the upload to complete.<br /><br /><img class="imageStyle" alt="OER_6" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_6.png" width="369" height="386" /><br /><br />7.) Once the upload is finished, click on "Import All Components."<br /><br /><img class="imageStyle" alt="OER_7" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_7.png" width="378" height="387" /><br /><br />8.) After the import process is complete, click on "View Content."<br /><br /><img class="imageStyle" alt="OER_8" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_8.png" width="368" height="386" /><br /><br />9.) To view all imported content, click on the "Content" tab located in the top menu.<br /><br /><img class="imageStyle" alt="OER_9" src="http://www.phy.ohio.edu/~hadizade/blog_files/oer_9.png" width="371" height="377" /><br /><br /><br /><br /></p>]]></content:encoded></item><item><title>How to get access to CENS bulding?</title><dc:subject>Blog</dc:subject><dc:date>2023-03-17T02:11:37-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/CENS.html#unique-entry-id-35</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/CENS.html#unique-entry-id-35</guid><content:encoded><![CDATA[<img class="imageStyle" alt="cens_centralstateuniversity" src="http://www.phy.ohio.edu/~hadizade/blog_files/cens_centralstateuniversity.jpg" width="745" height="499" />]]></content:encoded></item><item><title>Importing colormaps from python (matplotlib) into Matlab on Macbook</title><category>Application</category><category>Mac OS X</category><dc:date>2022-09-06T23:50:35-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/PyColormap4Matlab.html#unique-entry-id-34</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/PyColormap4Matlab.html#unique-entry-id-34</guid><content:encoded><![CDATA[<span style="font:15px HelveticaNeue; color:#000000;">This post shows step-by-step instructions on importing different classes of colormaps from python (Matplotlib) into Matlab using PyColormap4Matlab.<br /></span><ol class="arabic-numbers"><li><span style="font:15px HelveticaNeue; color:#000000;">Download the&nbsp;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>PyColormap4Matlab</em></span><span style="font:15px HelveticaNeue; color:#000000;">&nbsp;library from the following link:&nbsp;</span><span style="font:15px HelveticaNeue; color:#000000;"><u><a href="https://www.mathworks.com/matlabcentral/fileexchange/68239-pycolormap4matlab" target="_blank">https://www.mathworks.com/matlabcentral/fileexchange/68239-pycolormap4matlab</a></u></span></li><li><span style="font:15px HelveticaNeue; color:#000000;">Rename the package to&nbsp;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>PyColormap4Matlab,</em></span></li><li><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>C</em></span><span style="font:15px HelveticaNeue; color:#000000;">opy & paste the new folder in your Documents as /Documents/MATLAB/PyColormap4Matlab,</span></li><li><span style="font:15px HelveticaNeue; color:#000000;">Open the MATLAB application and link the new folder </span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>PyColormap4Matlab&nbsp;</em></span><span style="font:15px HelveticaNeue; color:#000000;">to it using the "Home > Set Path" tab in the top menu. Next, click "Add Folder" and select&nbsp;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>/Documents/MATLAB/PyColormap4Matlab</em></span><span style="font:15px HelveticaNeue; color:#000000;">, then click on Open, Save, and Close.</span></li><li><span style="font:15px HelveticaNeue; color:#000000;">Install the &ldquo;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Matplotlib</em></span><span style="font:15px HelveticaNeue; color:#000000;">" library. To do so, enter the command "</span><code>pip3 install matplotlib</code><span style="font:15px HelveticaNeue; color:#000000;">" in the terminal. For other options, check&nbsp;</span><span style="font:15px HelveticaNeue; color:#000000;"><u><a href="https://www.geeksforgeeks.org/how-to-install-matplotlib-on-macos/" target="_blank">https://www.geeksforgeeks.org/how-to-install-matplotlib-on-macos/</a></u></span></li><li><span style="font:15px HelveticaNeue; color:#000000;">Now, you can import the colormaps from Matplotlib to MATLAB. The following MATLAB script imports the colormap&nbsp;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Greys</em></span><span style="font:15px HelveticaNeue; color:#000000;">&nbsp;from Matplotlib to MATLAB. The name of the new colormap in MATLAB is&nbsp;</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>cl_Greys:</em></span></li></ol><ul class=""><li><code># set the Python path</code></li><li><code>path_python = '/usr/bin/python3';</code></li><li><code># importing Greys colormap from Matplotlib</code></li><li><code>cl_Greys = getPyPlot_cMap('Greys', [], [], path_python);</code></li></ul><ul class="square"><li><span style="font:15px HelveticaNeue; color:#000000;">Hint: to find the Python path (for variable "</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>path_python</em></span><span style="font:15px HelveticaNeue; color:#000000;">") enter the "</span><code>which python3</code><span style="font:15px HelveticaNeue; color:#000000;">" command in the terminal.</span></li></ul><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><ul class="disc"><li><span style="font:15px HelveticaNeue; color:#000000;">For a list of Matplotlib colormaps, check the following link:&nbsp;</span><span style="font:15px HelveticaNeue; color:#000000;"><u><a href="https://matplotlib.org/stable/tutorials/colors/colormaps.html" target="_blank">https://matplotlib.org/stable/tutorials/colors/colormaps.html</a></u></span></li><li><span style="font:15px HelveticaNeue; color:#000000;">In the following pictures, prepared by Kamyar Mohseni, different classes of Matplotlib colormaps are compared together and also with MATLAB colormaps.</span></li></ul><img class="imageStyle" alt="Matplotlib1" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib1.png" width="849" height="550" /><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><img class="imageStyle" alt="Matplotlib2" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib2.png" width="852" height="371" /><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><img class="imageStyle" alt="Matplotlib3" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib3.png" width="851" height="252" /><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><img class="imageStyle" alt="Matplotlib4" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib4.png" width="852" height="173" /><br /><img class="imageStyle" alt="Matplotlib5" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib5.png" width="854" height="278" /><br /><img class="imageStyle" alt="Matplotlib6" src="http://www.phy.ohio.edu/~hadizade/blog_files/matplotlib6.png" width="853" height="360" /><br /><img class="imageStyle" alt="Matlab" src="http://www.phy.ohio.edu/~hadizade/blog_files/matlab.png" width="848" height="397" /><br /><br /><br />]]></content:encoded></item><item><title>Obituary for Shahriar Bayegan</title><dc:subject>Blog</dc:subject><dc:date>2021-07-06T22:52:06-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Shahriar_Bayegan.html#unique-entry-id-33</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Shahriar_Bayegan.html#unique-entry-id-33</guid><content:encoded><![CDATA[<code><center><img src="https://people.ohio.edu/hadizadm/Bayegan_files/Shahriar_Bayegan.JPG" alt="Shahriar Bayegan" style="width:250px;"></code><span style="font:16px HelveticaNeue; color:#262626;"><br /></span><span style="font:16px HelveticaNeue; color:#262626;"><a href="https://people.ohio.edu/hadizadm/Bayegan.html" target="_blank">https://people.ohio.edu/hadizadm/Bayegan.html</a></span><span style="font:16px HelveticaNeue; color:#262626;"></br><br />Hadizadeh, M.R., Radin, M., Moeini Arani, M. </span><span style="font:16px HelveticaNeue-Italic; color:#262626;"><em>et al.</em></span><span style="font:16px HelveticaNeue; color:#262626;"> <br />Obituary for Shahriar Bayegan. </span><span style="font:16px HelveticaNeue-Italic; color:#262626;"><em>Few-Body Syst.</em></span><span style="font:16px HelveticaNeue; color:#262626;"> </span><span style="font:16px HelveticaNeue-Bold; font-weight:bold; color:#262626;font-weight:bold; ">62, </span><span style="font:16px HelveticaNeue; color:#262626;">74 (2021).<br /></span><span style="font:16px HelveticaNeue; color:#262626;"><a href="https://doi.org/10.1007/s00601-021-01644-x" target="_blank">https://doi.org/10.1007/s00601-021-01644-x</a></span><span style="font:16px HelveticaNeue; color:#262626;"><br /></span><code></center></code><span style="font-size:16px; color:#000000;"><br /><br /></span>]]></content:encoded></item><item><title>Set up CSU email on Apple Mail (Mac)</title><category>Application</category><dc:date>2019-04-11T15:40:47-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/9a779b59d3f32a0c8de50ecf13e6d19e-31.html#unique-entry-id-31</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/9a779b59d3f32a0c8de50ecf13e6d19e-31.html#unique-entry-id-31</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">After </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><u><a href="https://www.godaddy.com/help/create-your-email-address-9137">setting up your Office 365 email account</a></u></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">, you can add your email address to Apple Mail on your Mac. Then you can send and receive business emails from your phone. Alternatively, you can download </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><u><a href="https://www.godaddy.com/help/set-up-my-office-365-email-address-on-my-android-outlook-app-8905">Outlook 2016 and add your Office 365 email</a></u></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">.<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><ul class=""><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Open Apple Mail and click Mail.</span></li><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Click Add Account.</span></li><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Select Exchange and click Continue.</span></li></ul><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><img class="imageStyle" alt="1" src="http://www.phy.ohio.edu/~hadizade/blog_files/1.png" width="299" height="268" /><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><ul class=""><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Enter your name, CSU email address and password.</span></li></ul><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><img class="imageStyle" alt="2" src="http://www.phy.ohio.edu/~hadizade/blog_files/2.png" width="302" height="191" /><br /><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><ul class=""><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Click Sign In.</span></li><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Click Done (you can come back and edit these settings at any point).</span></li><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">If Microsoft cannot verify your account, you will be asked to enter your details manually: </span></li></ul><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">Email Address:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> your CSU email address<br />	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">User Name: </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">your CSU email address<br />	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">Password:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> your CSU email password<br />	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">Internal URL:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> outlook.office365.com<br />	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">External URL:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> outlook.office365.com<br />	&mdash; </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000000;font-weight:bold; ">Domain:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> leave blank<br /><br /></span><img class="imageStyle" alt="3" src="http://www.phy.ohio.edu/~hadizade/blog_files/3.png" width="312" height="195" /><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><ul class=""><li><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Click Sign In, your account will display and emails will start to load, this can take a few minutes. Test your Apple Mail by sending yourself an email from your </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><u><a href="https://sso.godaddy.com/?app=o365&realm=pass">Office 365 web portal</a></u></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> and responding to it from Apple Mail.</span></li></ul><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><img class="imageStyle" alt="4" src="http://www.phy.ohio.edu/~hadizade/blog_files/4.png" width="311" height="280" /><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">Source: </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><a href="https://www.godaddy.com/help/set-up-my-office-365-email-on-apple-mail-mac-8903" rel="external">GoDaddy Help</a></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span>]]></content:encoded></item><item><title>How to Allow Apps from Anywhere in macOS Gatekeeper</title><category>Apple</category><category>Application</category><dc:date>2019-02-21T11:05:15-05:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/allow_apps_anywhere_macos.html#unique-entry-id-30</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/allow_apps_anywhere_macos.html#unique-entry-id-30</guid><content:encoded><![CDATA[<span style="font:12px Arial, Verdana, Helvetica, sans-serif; "><img class="imageStyle" alt="allow_apps_anywhere_macos" src="http://www.phy.ohio.edu/~hadizade/blog_files/allow_apps_anywhere_macos.png" width="404" height="241" /></span><span style="font:12px Arial, Verdana, Helvetica, sans-serif; "><br /></span><ol class="arabic-numbers"><li><span style="font:16px Arial, Verdana, Helvetica, sans-serif; color:#242424;">Quit out of System Preferences</span></li><li><span style="font:16px Arial, Verdana, Helvetica, sans-serif; color:#242424;">Open the Terminal app from the /Applications/Utilities/ folder and then enter the following command syntax: </span><code>sudo spctl --master-disable</code></li><li><span style="font:16px Arial, Verdana, Helvetica, sans-serif; color:#242424;">Hit return and authenticate with an admin password</span></li><li><span style="font:16px Arial, Verdana, Helvetica, sans-serif; color:#242424;">Relaunch System Preferences and go to &ldquo;Security & Privacy&rdquo; and the &ldquo;General&rdquo; tab. You will now see the "Anywhere" option under "Allow apps downloaded from:".</span></li></ol>]]></content:encoded></item><item><title>How to run multiple programs in a sequence using a bash script?</title><category>Coding</category><dc:date>2018-06-27T02:11:40-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/bash_run_sequence.html#unique-entry-id-29</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/bash_run_sequence.html#unique-entry-id-29</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">How to write a bash script that goes through each subdirectory inside a parent_directory and executes a command in each subdirectory?<br /><br />Suppose there are 10 subdirectories inside a parent_directory with the following structure:<br /><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#FB0106;font-weight:bold; ">***parent_directory</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> (name could be anything - doesn't follow a pattern)<br /><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#FB0106;font-weight:bold; ">&mdash; subdir1</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> (subdirectory names follow a specific pattern, e.g. fixed characters + number)<br />	input.data (input of the code)<br />	code.f (main code, here is a Fortran code)<br />	Makefile (makefile to execute and run the code)<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#FB0106;font-weight:bold; ">&mdash; subdir2</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	input files + codes + Makefile<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#FB0106;font-weight:bold; ">&mdash; subdir3</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	input files + codes + Makefile<br />.<br />.<br />.<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#FB0106;font-weight:bold; ">&mdash; subdir10</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br />Suppose we want to run the codes in the first five subdirectories, i.e. subdir1-subdir5, wait for the processes to finish and then continue running the codes in the next five subdirectories, i.e. subdir6-subdir10.<br /><br />The example of the bash script is as (</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><a href="http://www.phy.ohiou.edu/~hadizade/blog_files/run.sh" rel="external">download the bash script file</a></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"> </span><code><a href="http://www.phy.ohiou.edu/~hadizade/blog_files/run.sh" rel="external"><i class="fa fa-download" aria-hidden="true"></i></a></code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">):<br /><br /></span><code>#!/bin/bash</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## exit on the first error.</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>set -e</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code># Add the full path of parent_directory to run the codes in the subdirectories</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>path=$(pwd)</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## just for checking the path of the parent_directory</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>echo path= $path</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code>## the min and the max values of the int variable i, changing from 1 to 5</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">  <br /></span><code>i=1</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>imax=5</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code>## do loop from i to imax</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>while [  $i -le $imax ]; do</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## path of each subdirectory defined as "subdir" + integer i</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>pathi=$path/subdir$i</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## just for checking the path of each subdirectory</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>echo pathi= $pathi</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>##  cd to each subdirectory of the loop</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>cd $pathi</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## compile and run the code in each subdirectory using Makefile ("Main" is the executable file)</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>make -f Makefile</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>nohup ./Main &</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## adding the counter</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>let i=i+1</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>done</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code>## Wait for the processes to finish</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>wait</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code>i=6</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>imax=10</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br /></span><code>## do loop from i to imax</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>while [  $i -le $imax ]; do</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## path of each subdirectory defined as "subdir" + integer i</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>pathi=$path/subdir$i</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## just for checking the path of each subdirectory using Makefile ("Main" is the executable file)</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>echo pathi= $pathi</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>##  cd to each subdirectory of the loop</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>cd $pathi</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## compile and run the code in each subdirectory</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>make -f Makefile</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>nohup ./Main &</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>## adding the counter</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />	</span><code>let i=i+1</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /></span><code>done</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br />You can run the bash script (called "run.sh") by:<br /></span><code>$ bash run.sh</code>]]></content:encoded></item><item><title>How to copy a file to all subdirectories in a directory using a command-line?</title><category>Coding</category><dc:date>2018-06-26T13:32:06-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/put_file_dubfolders.html#unique-entry-id-28</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/put_file_dubfolders.html#unique-entry-id-28</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">This will put the file "code.f" (in the current working directory) in all of the subfolders, but not their subfolders:<br /></span><code>for d in */; do cp code.f "$d"; done</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br /><br />But this will put the file "code.f" in all of the subfolders and their subfolders:<br /></span><code>find . -type d -exec cp code.f {} \;</code>]]></content:encoded></item><item><title>How to delete all files of a specific extension in a directory and all subfolders using a command-line?</title><category>Coding</category><dc:date>2018-06-26T12:54:28-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/rm_file_subfolders.html#unique-entry-id-27</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/rm_file_subfolders.html#unique-entry-id-27</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;">To remove all files with a specific extension (e.g. .data) in the current directory and all subfolders run<br /></span><code>find . -name "*.data" -type f -delete</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#000000;"><br />But first use "find" to see exactly which files you will remove:<br /></span><code>find . -name "*.data" -type f</code>]]></content:encoded></item><item><title>Latex; How to remove the algorithm number in algorithm captions?</title><category>Latex</category><dc:date>2017-08-25T22:08:05-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/latex_algorithm.html#unique-entry-id-26</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/latex_algorithm.html#unique-entry-id-26</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">How one can remove the algorithm number in the algorithm caption?<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; ">Solution: </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">just add </span><code>\renewcommand{\thealgorithm}{}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "> </span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">after </span><code>\begin {algorithm}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;"><em><br /><br /></em></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">How one can remove the line number in the algorithm body?<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; ">Solution:<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">Define a new command:<br /></span><code>\def\NoNumber#1{{\def\alglinenumber##1{}\State #1}\addtocounter{ALG@line}{-1}}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">and put the text in \NoNumber{}</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /><br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><a href="http://www.phy.ohiou.edu/~hadizade/resources/blog/" rel="external">Sample Latex Code</a></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "> </span><code><i class="fa fa-download" aria-hidden="true"></i></code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;"><br /></span><code>\documentclass[11pt]{article}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\usepackage{algorithmicx}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\usepackage{algorithm}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\usepackage{algpseudocode}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\def\NoNumber#1{{\def\alglinenumber##1{}\State #1}\addtocounter{ALG@line}{-1}}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\begin{document}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\begin{algorithm}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\renewcommand{\thealgorithm}{}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\caption{Test Algorithm}\label{euclid}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\begin{algorithmic}[1]</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code> \State $r\gets a\bmod b$</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>    \While{$r\not=0$}\Comment{We have the answer if r is 0}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>     \State $a\gets b$</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>      \State $b\gets r$</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>       \State $r\gets a\bmod b$</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>       \EndWhile\label{euclidendwhile}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>       \State \textbf{return} $b$\Comment{The gcd is b}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>       \NoNumber{This line will not have a number!}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>       \EndProcedure</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\end{algorithmic}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\end{algorithm}</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; "><br /></span><code>\end{document}</code><img class="imageStyle" alt="algorithm_no_number" src="http://www.phy.ohio.edu/~hadizade/blog_files/algorithm_no_number.jpg" width="795" height="370" /><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#0000FE;"><br /></span>]]></content:encoded></item><item><title>Remove file/folder in terminal without asking for permission</title><category>Coding</category><dc:date>2017-03-04T22:06:31-05:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/rm_command.html#unique-entry-id-25</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/rm_command.html#unique-entry-id-25</guid><content:encoded><![CDATA[<span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;">How one can remove a file/folder without asking the user for permission to delete it?<br /></span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#1B1D1E;font-weight:bold; ">Solution:</span><span style="font:15px Arial, Verdana, Helvetica, sans-serif; color:#1B1D1E;"> change "rm" command to "\rm"<br /></span><code>$ \rm file</code><span style="font:15px Arial, Verdana, Helvetica, sans-serif; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ \rm -r folder</code>]]></content:encoded></item><item><title>ATOM; a hackable text editor for the 21st Century</title><category>Coding</category><category>Application</category><dc:date>2016-10-30T22:05:33-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/atom.html#unique-entry-id-24</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/atom.html#unique-entry-id-24</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic.jpg" width="164" height="165" /><br /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">Atom is a text editor that's modern, approachable, yet hackable to the core&mdash;a tool you can customize to do anything but also use productively without ever touching a config file.<br /><br /></span><span style="font:15px HelveticaNeue; color:#000000;"><a href="https://atom.io/download/mac" rel="external">Download for Mac</a></span><span style="font:15px HelveticaNeue; color:#000000;"> (For macOS 10.8 or later.)<br /></span><span style="font:15px HelveticaNeue; color:#000000;"><a href="https://github.com/atom/atom/releases/latest" rel="external">Other platforms</a></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;"><a href="https://atom.io/beta" rel="external">Beta releases</a></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span></p>]]></content:encoded></item><item><title>How do I reload .bashrc without logging out and back in?</title><category>Coding</category><dc:date>2016-06-09T22:04:48-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/bashrc.html#unique-entry-id-23</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/bashrc.html#unique-entry-id-23</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 15" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-15.jpg" width="325" height="77" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">Enter the following command:<br /></span><code>$ source ~/.bashrc</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">or<br /></span><code>$ . ~/.bashrc</code></p>]]></content:encoded></item><item><title>How to delete ._ files in MAC</title><category>Application</category><dc:date>2015-12-29T22:03:15-05:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/delete_._files_Mac#unique-entry-id-22</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/delete_._files_Mac#unique-entry-id-22</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 14" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-14.jpg" width="274" height="300" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Problem: <br /></span><span style="font:15px HelveticaNeue; color:#000000;">How one can clean the &lsquo;dot underbar&lsquo; files or &lsquo;Apple double&lsquo; files?</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Solution:<br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Open up the terminal application and enter the following command to merge & delete the files:<br /></span><code>$ dot_clean -m DIRECTORY_ADDRESS</code></p><p style="text-align:left;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#262626;font-weight:bold; "><br /></span></p><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">DIRECTORY_ADDRESS is the address of the folder or the directory that you want to clean the&nbsp; ._ files.<br />If you want to delete all ._ files in your MAC just replace it with &lsquo;./&rsquo;.</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br />2) or you can delete the files by entering the following command in the terminal:<br /></span><code>$ find DIRECTORY_ADDRESS -name ._\* -delete</code></p><p style="text-align:left;"><br /></p>]]></content:encoded></item><item><title>How to empty file cache on Mac OS X</title><category>Application</category><dc:date>2015-04-09T22:01:24-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/empty_file_cache_Mac.html#unique-entry-id-21</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/empty_file_cache_Mac.html#unique-entry-id-21</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 13" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-13.jpg" width="274" height="300" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Problem: <br /></span><span style="font:15px HelveticaNeue; color:#000000;">How one can make free the allocated RAM to the file cache?</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Solution:<br /></span><span style="font:15px HelveticaNeue; color:#000000;">Open up the terminal application and activity monitor. In terminal enter the command:<br /></span><code>$ sudo purge</code></p><p style="text-align:left;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#262626;font-weight:bold; "><br /></span></p><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">If one checks the activity monitor it should show the reduction in RAM usage on the Mac and the file cache should be cleared.</span></p>]]></content:encoded></item><item><title>Run gedit on Mac OS X Mavericks</title><category>Application</category><dc:date>2014-03-24T22:00:09-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/gedit.html#unique-entry-id-20</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/gedit.html#unique-entry-id-20</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 12" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-12.jpg" width="300" height="154" /><br /><span style="font:15px HelveticaNeue; color:#000000;">1) Download the last version of gedit (gedit-3.2.6-3) from </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/">gnome.org</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"> for Mac OS X (Click </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/3.2/gedit-3.2.6-3.dmg">here</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"> for direct download link).</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">2) Install gedit application.</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">To solve the problem of running gedit on Mac OS X Mavericks, we need to update the version of libxml2 packaged with gedit as follow:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">3) use the command</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ <a href="http://brew.sh/">brew</a> install libxml2</code><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">4) and then</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ cp /usr/local/Cellar/libxml2/2.9.0/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/</code><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br />point: If in the last step, you get the error message <br /></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>&ldquo;</em></span><code>cp: /usr/local/Cellar/libxml2/2.9.0/lib/libxml2.2.dylib: No such file or directory</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>&rdquo;<br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">you need to check the version of installed libxml2 on your system (here it is supposed to be 2.9.0) and change the version in cp command.</span></p>]]></content:encoded></item><item><title>Problem with Mavericks Partition Mac: &#x22;Error: Live file system repair is not supported.&#x201d;</title><category>Application</category><dc:date>2014-01-07T21:58:29-05:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Mavericks_Partition_Mac.html#unique-entry-id-19</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Mavericks_Partition_Mac.html#unique-entry-id-19</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 11" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-11.jpg" width="300" height="300" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Problem: </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">Running Disk Utility from the recovery partition, Repair Disk, yields the following error message:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">"</span><code>Error: Live file system repair is not supported.</code><span style="font:15px HelveticaNeue; color:#000000;">&rdquo;</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">Running Verify Disk yields the following error message:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">&ldquo;</span><code>Error:&nbsp; The partition map needs to be repaired because there&rsquo;s a problem with the EFI system partition&rsquo;s file system.</code><span style="font:15px HelveticaNeue; color:#000000;">&rdquo;</span><span style="font:15px HelveticaNeue; color:#000000;">
<br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Solution:<br /></span><span style="font:15px HelveticaNeue; color:#262626;">Just use internet recovery:</span><span style="font:15px HelveticaNeue; color:#262626;"><br /></span><span style="font:15px HelveticaNeue; color:#262626;">Reboot system > hold down the keys COMMAND + ALT (or option) + R</span></p>]]></content:encoded></item><item><title>Search not working properly in mail (Mac OS X)</title><category>Application</category><dc:date>2013-10-28T21:57:01-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Search_Mail_Mac.html#unique-entry-id-18</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Search_Mail_Mac.html#unique-entry-id-18</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 10" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-10.jpg" width="297" height="297" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#262626;">If there are problems with information in your mailboxes, you might see an alert message saying that Mail needs to repair your mailboxes by reindexing your messages for you.</span><span style="font:15px HelveticaNeue; color:#262626;">
</span><span style="font:15px HelveticaNeue; color:#262626;"><br />At other times, you may want to reindex messages yourself&mdash;for example, when searching mailboxes using Subject, To, or From doesn&rsquo;t return the correct results.</span><span style="font:15px HelveticaNeue; color:#262626;"><br /><br /></span><span style="font:15px HelveticaNeue; color:#262626;">1) Quit Mail if it is open.</span><span style="font:15px HelveticaNeue; color:#262626;"><br /></span><span style="font:15px HelveticaNeue; color:#262626;">2) In </span><code>~/Library/Mail/V2/MailData</code><span style="font:15px HelveticaNeue; color:#262626;">, delete any file that begins with &ldquo;</span><span style="font:15px HelveticaNeue-Italic; color:#262626;"><em>Envelope Index</em></span><span style="font:15px HelveticaNeue; color:#262626;">,&rdquo; such as </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>Envelope Index</em></span><span style="font:15px HelveticaNeue; color:#262626;">, </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>Envelope Index-shm</em></span><span style="font:15px HelveticaNeue; color:#262626;"> or </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>Envelope Index-wal</em></span><span style="font:15px HelveticaNeue; color:#262626;">. </span><span style="font:15px HelveticaNeue; color:#262626;"><br /></span><span style="font:15px HelveticaNeue; color:#262626;">3) Your home Library folder is hidden by default. To display it, choose </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>Finder</em></span><span style="font:15px HelveticaNeue; color:#262626;"> > &ldquo;</span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>Go to Folder</em></span><span style="font:15px HelveticaNeue; color:#262626;">&rdquo; and then enter &ldquo;</span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#262626;font-weight:bold; "><em>~/Library</em></span><span style="font:15px HelveticaNeue; color:#262626;">&rdquo;. </span><span style="font:15px HelveticaNeue; color:#262626;"><br /></span><span style="font:15px HelveticaNeue; color:#262626;">4) Then open Mail. Mail creates new Envelope Index files. This process may take a few minutes, depending on how many messages Mail is reindexing.</span></p>]]></content:encoded></item><item><title>Computation Tools: C/Fortran Compilers for Mac OS X</title><category>Coding</category><dc:date>2013-10-08T21:54:47-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/C_Fortran_Compilers_Mac.html#unique-entry-id-17</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/C_Fortran_Compilers_Mac.html#unique-entry-id-17</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 9" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-9.jpg" width="400" height="206" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#656565;font-weight:bold; "><u><a href="http://gcc.gnu.org/">GCC 4.7, 4.8, 4.9 (auto-vectorizing gcc with OpenMP):</a></u></span><span style="font:15px HelveticaNeue; color:#000052;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">Compiled using source code from the GNU servers. This contains current versions (4.7 is the stable release) of gfortran (free, open source, GNU Fortran 95 compiler), gcc (GNU C) and g++ (GNU C++) compilers that can perform auto-vectorization (i.e. modify code to take advantage of AltiVec/SSE, automatically) and other sophisticated optimizations like OpenMP. For more information, see </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://gcc.gnu.org/">this webpage</a></u></span><span style="font:15px HelveticaNeue; color:#000000;">. </span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Installation of gfotran:</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Install Xcode:</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;">You will need to have Apple's </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="https://developer.apple.com/xcode/">XCode Tools</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"> installed from the </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Mac App Store</span><span style="font:15px HelveticaNeue; color:#000000;">. On LION & M. LION, with XCode 4 or 5 you will need to download the command-line tools as an additional step. You will find the option to download the command-line tools in XCode's Preferences&nbsp; (click on Downloads tab). On 10.9 Mavericks, you can get the command-line tools by simply typing<br /></span><code>$ xcode-select --install</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">2) Download one of following binaries,<br /></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Binaries:<br /></em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gcc-4.9-bin.tar.gz?download">gcc-4.9-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>, </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gfortran-4.9-bin.tar.gz?download">gfortran-4.9-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em> (gfortran only), updated Oct 2013 (10.9 Mavericks only).<br /></em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gcc-4.8-bin.tar.gz?download">gcc-4.8-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>, </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gfortran-4.8-bin.tar.gz?download">gfortran-4.8-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em> (gfortran only), updated Oct 2013 (M. Lion & Mavericks).<br /></em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gcc-4.7-bin.tar.gz?download">gcc-4.7-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>, </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/gfortran-4.7-bin.tar.gz?download">gfortran-4.7-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em> (gfortran only), updated July 2012 (Lion & M. Lion).<br />Documentation: </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://gcc.gnu.org/onlinedocs/">click here!</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">3) Installation<br /></span><code>$ cd to the download folder. </code><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">then</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ gunzip gcc-4.8-bin.tar.gz</code><span style="font:15px HelveticaNeue; color:#000000;"> (if your browser didn't do so already)</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">then</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ sudo tar -xvf gcc-lion.tar -C /</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">It installs everything in </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">/usr/local</span><span style="font:15px HelveticaNeue; color:#000000;">.<br />You can invoke the Fortran 95 compiler by simply typing </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">gfortran</span><span style="font:15px HelveticaNeue; color:#000000;">, as following example:<br /></span><code>$ gfortran your_program.f</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /><br /></em></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#656565;font-weight:bold; "><u><a href="http://gcc.gnu.org/">g77 3.4:</a></u></span><span style="font:15px HelveticaNeue; color:#000052;">
</span><span style="font:15px HelveticaNeue; color:#000000;">This is the FINAL release of g77 (version 3.4 compiler). Future versions of GCC will have gfortran (see above). </span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Installation of g77:</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Install Xcode:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">You will need to have Apple's </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="https://developer.apple.com/xcode/">XCode Tools</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"> installed from the </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Mac App Store</span><span style="font:15px HelveticaNeue; color:#000000;">. On LION & M. LION, with XCode 4 or 5 you will need to download the command-line tools as an additional step. You will find the option to download the command-line tools in XCode's Preferences&nbsp; (click on Downloads tab). On 10.9 Mavericks, you can get the command-line tools by simply typing<br /></span><code>$ xcode-select --install</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">2) Download one of following binaries</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Binaries: </em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/g77-bin.tar.gz?download">g77-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em> (PowerPC only), <br /></em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://prdownloads.sourceforge.net/hpc/g77-intel-bin.tar.gz?download">g77-intel-bin.tar.gz</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em> (Intel Mac only), updated October 2006.<br />Documentation: </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://gcc.gnu.org/onlinedocs/">click here!</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">3) Installation<br /></span><code>$ cd to the download folder.</code><span style="font:15px HelveticaNeue; color:#000000;"><br />Then</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><code>$ gunzip g77-bin.tar.gz</code><span style="font:15px HelveticaNeue; color:#000000;"> (if your browser didn't do so already) </span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">and</span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><code>$ sudo tar -xvf g77-bin.tar -C /</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">It installs everything in </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">/usr/local</span><span style="font:15px HelveticaNeue; color:#000000;">.</span><span style="font:15px HelveticaNeue; color:#000000;">
<br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#656565;font-weight:bold; "><u><a href="http://www.netlib.org/">F2C based Fortran:</a></u></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000052;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">This is the oldest Fortran compiler available for OS X. Its been around since OS X was in a public beta state. </span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Installation of F2C:</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Download following shell script:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>script: </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://hpc.sourceforge.net/buildf2c">buildf2c</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br />Documentation: </em></span><span style="font:15px HelveticaNeue-Italic; color:#656565;"><em><u><a href="http://www.netlib.org/f2c/f2c.ps">click here!</a></u></em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">2) then type</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ chmod +x buildf2c </code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;">and then<br /></span><code>$ sudo ./buildf2c</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">The script will grab f2c source from Netlib repositories and install a f2c based compiler in</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">/usr/local/</span><span style="font:15px HelveticaNeue; color:#000000;">. You are done! The compiler can be envoked by the commands </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">fc</span><span style="font:15px HelveticaNeue; color:#000000;"> or </span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">f2c</span><span style="font:15px HelveticaNeue; color:#000000;">.</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#453B3C;">Reference: HPC for MAC OS X<br /></span></p>]]></content:encoded></item><item><title>Fortran compiler options for full debugging</title><category>Coding</category><dc:date>2013-10-02T21:53:16-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Fortran_compiler_option.html#unique-entry-id-16</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Fortran_compiler_option.html#unique-entry-id-16</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 8" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-8.jpg" width="237" height="46" /><br /><span style="font:15px HelveticaNeue; color:#453B3C;">Intel fortran compiler options for full debugging:<br />for ifort compiler:<br /></span><code>$ ifort -g -traceback -check all -fp-stack-check Program_Name.f -o Program</code><span style="font:15px HelveticaNeue-Italic; color:#453B3C;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#453B3C;"><br />for F95 compiler:<br /></span><code>$ f95 -g -traceback -check all -fp-stack-check Program_Name.f -o Program</code><span style="font:15px HelveticaNeue-Italic; color:#453B3C;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#453B3C;"><br />* </span><code>Program_Name.f</code><span style="font:15px HelveticaNeue; color:#453B3C;"> is the name of fortran program.</span>]]></content:encoded></item><item><title>Install Dropbox via command line on Linux</title><category>Application</category><dc:date>2013-09-24T21:49:46-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Dropbox_Linux.html#unique-entry-id-15</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Dropbox_Linux.html#unique-entry-id-15</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 7" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-7.jpg" width="220" height="270" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">32-bit:<br /></span><code>$ cd ~ && wget -O - "<a href="https://www.dropbox.com/download?plat=lnx.x86">https://www.dropbox.com/download?plat=lnx.x86</a>" | tar xzf -</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">64-bit:<br /></span><code>$ cd ~ && wget -O - "<a href="https://www.dropbox.com/download?plat=lnx.x86_64">https://www.dropbox.com/download?plat=lnx.x86_64</a>" | tar xzf -</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;"><br />Next, run the Dropbox daemon from the newly created .dropbox-dist folder.<br /></span><code>$ ~/.dropbox-dist/dropboxd</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Tip:<br /></span><span style="font:15px HelveticaNeue; color:#000000;">If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory. Download this </span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="https://www.dropbox.com/download?dl=packages/dropbox.py">CLI script</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"> to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.</span></p>]]></content:encoded></item><item><title>Matlab loads&#x2c; but &#x22;freezes&#x22; after taking Java update in Mac OS X</title><category>Application</category><dc:date>2013-09-17T21:48:00-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Matlab_Mac.html#unique-entry-id-14</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Matlab_Mac.html#unique-entry-id-14</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 6" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-6.jpg" width="400" height="215" /><br /><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;">After taking the Java update via the App store, Matlab will launch and open the last file, however, it will freeze and don't open any file. This is a Java issue and reinstalling Matlab or a new user profile will not resolve.</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br />Context</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;">- Affects MATLAB 2012b and earlier, with the Java for OS X 2013-004 update</span><span style="font:15px HelveticaNeue; color:#000000;">
- </span><span style="font:15px HelveticaNeue; color:#0E0E0E;">The original update gives&nbsp;build 1.6.0_51-b11-456-10M4508</span><span style="font:15px HelveticaNeue; color:#0E0E0E;">
- </span><span style="font:15px HelveticaNeue; color:#000000;">This can be verified by running the command below in terminal and comparing the build</span><span style="font:15px HelveticaNeue; color:#000000;">
</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ java -version</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">Good:<br /></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Java(TM) SE Runtime Environment (build </em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>1.6</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>.0_45-b06-</em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>451</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>-11M4406)<br />Java(TM) SE Runtime Environment (build </em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>1.6</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>.0_51-b11-</em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>457</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>-11M4509)<br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">Bad:<br /></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>Java(TM) SE Runtime Environment (build </em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>1.6</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>.0_51-b11-</em></span><span style="font:15px HelveticaNeue-Italic; color:#128B02;"><em>456</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>-10M4508)</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#453B3C;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">SOLUTION</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">
</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">- </span><span style="font:15px HelveticaNeue; color:#000000;">Apple's update has been fixed, however, it is not being pushed via updates to clients already affected. It is now safe to update via the Appstore, Java for OS X 2013-004 is the package.</span><span style="font:15px HelveticaNeue; color:#000000;">
- </span><span style="font:15px HelveticaNeue; color:#000000;">If you are stuck on version 10M4508, you can manually update:<br /></span><span style="font:15px HelveticaNeue; color:#000000;">
   * </span><span style="font:15px HelveticaNeue; color:#275795;">for 10.7/10.8:&nbsp;</span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://support.apple.com/kb/DL1572">http://support.apple.com/kb/DL1572</a></u></span><span style="font:15px HelveticaNeue; color:#275795;"><br />   * </span><span style="font:15px HelveticaNeue; color:#275795;">for 10.6:&nbsp;</span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://support.apple.com/kb/DL1573">http://support.apple.com/kb/DL1573</a></u></span><br /></p>]]></content:encoded></item><item><title>Macbook: how to edit or delete the known_hosts file?</title><category>Coding</category><dc:date>2013-09-13T21:46:19-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/delete_known_hosts.html#unique-entry-id-13</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/delete_known_hosts.html#unique-entry-id-13</guid><content:encoded><![CDATA[<span style="font:15px HelveticaNeue; color:#000000;">Open terminal and navigate to<br /></span><code>/users/yourusername/.ssh/</code><span style="font:15px HelveticaNeue; color:#000000;"><br /><br />to remove the known_hosts file<br /></span><code>$ rm known_hosts</code><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#000000;"><br />to edit the known_hosts file try one of following<br /></span><code>$ nano known_hosts</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ vim known_hosts</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ vi known_hosts</code></p>]]></content:encoded></item><item><title>xdg-open Error: no display specified</title><category>Coding</category><dc:date>2013-08-27T22:44:23-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/xdg-open_Error.html#unique-entry-id-12</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/xdg-open_Error.html#unique-entry-id-12</guid><content:encoded><![CDATA[<span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Error Description<br /></span><span style="font:15px HelveticaNeue; color:#000000;">When I try to open a URL in the console I get the error message: ERROR: &ldquo;No Display Specified&rdquo;<br /></span><code>$ xdg-open <a href="http://www.google.com/">http://www.google.com</a></code><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br />Error: no display specified</em></span><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span></p><p style="text-align:left;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Solution<br /></span><span style="font:15px HelveticaNeue; color:#000000;">You could try DISPLAY=:0 before xdg-open command<br /></span><code>$ DISPLAY=:0 xdg-open <a href="http://www.google.com/">http://www.google.com</a></code></p><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span></p>]]></content:encoded></item><item><title>Installing XmGrace (Grace) on Mac OS X</title><category>Application</category><dc:date>2013-08-05T22:35:47-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/XmGrace_Mac.html#unique-entry-id-11</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/XmGrace_Mac.html#unique-entry-id-11</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 5" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-5.jpg" width="360" height="151" /><br /><span style="font:15px HelveticaNeue; color:#453B3C;">(updated on June 9, 2016)</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#453B3C;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><p style="text-align:justify;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">METHOD 1:</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Install Xcode:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ xcode-select --install</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">2) Install open motif</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ sudo port install openmotif</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">3) Install Xmgrace</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ sudo port install grace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">4) Open Xmgrace and enjoy!</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><code>$ xmgrace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /><br /></em></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">METHOD 2:</span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue; color:#000000;">1) Install motif libraries. You can download binary from here:<br /></span><span style="font:15px HelveticaNeue; color:#656565;"><u><a href="http://www.ist.co.uk/downloads/motif_download.html">http://www.ist.co.uk/downloads/motif_download.html</a></u></span><span style="font:15px HelveticaNeue; color:#000000;"><u><br />2) Grace download and install:<br /></u></span><code>$ cd Desktop</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ wget ftp://ftp.fu-berlin.de/unix/graphics/grace/src/grace5/grace-5.1.23.tar.gz</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ tar xzvf grace-5.1.23.tar.gz</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ cd grace-5.1.23</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ ./configure --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-motif-library=-lXm --with-extra-incpath=/usr/OpenMotif/include:/usr/local/fftw-3.3.4/include --with-extra-ldpath=/usr/OpenMotif/lib:/usr/local/fftw-3.3.4/lib</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ make</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ sudo make install</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ echo "export PATH=$PATH:/usr/local/grace/bin" >> ~/.bashrc</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ source ~/.bashrc</code><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000080;font-weight:bold; "><em><br /></em></span><code>$ xmgrace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em>
</em></span><span style="font:15px HelveticaNeue; color:#000000;"><br /></span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; ">Tips:</span><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#000000;font-weight:bold; "><br /></span><span style="font:15px HelveticaNeue; color:#000000;">- on Mac OS X Lion, </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em>wget</em></span><span style="font:15px HelveticaNeue; color:#000000;"> doesn't work. Use </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em>curl -O</em></span><span style="font:15px HelveticaNeue; color:#000000;"> instead of </span><span style="font:15px HelveticaNeue-BoldItalic; font-weight:bold; color:#000000;font-weight:bold; "><em>wget</em></span><span style="font:15px HelveticaNeue; color:#000000;">.<br /></span><span style="font:15px HelveticaNeue; color:#000000;">- </span><span style="font:15px HelveticaNeue; color:#000000;">if in the last step, when you try to run xmgrace, you get the following error:<br /></span><code>$ xmgrace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br />Can't open display<br />Failed initializing GUI, exiting<br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">you can try:<br /></span><code>$ DISPLAY=:0.0 xmgrace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span><span style="font:15px HelveticaNeue; color:#000000;">if it doesn&rsquo;t solve the problem, you need to open XQuartz and then enter the following command: <br /></span><code>$ DISPLAY=:0.0 xmgrace</code><span style="font:15px HelveticaNeue-Italic; color:#000000;"><em><br /></em></span></p>]]></content:encoded></item><item><title>Using Latexdiff For Marking Changes To Tex Documents</title><category>Latex</category><dc:date>2013-08-05T22:29:26-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Latexdiff.html#unique-entry-id-10</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Latexdiff.html#unique-entry-id-10</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 2" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-2.jpg" width="197" height="79" /><br /><span style="font:15px HelveticaNeue; ">Latexdiff is a Perl script, which compares two latex files and marks up the significant differences between them. Various options are available for visual markup using standard latex packages such as "color.sty". </span><span style="font:15px HelveticaNeue; "><br /></span><span style="font:15px HelveticaNeue; ">Project webpage: </span><span style="font:15px HelveticaNeue; color:#453B3C;"><u><a href="http://latexdiff.berlios.de/">http://latexdiff.berlios.de</a></u></span><span style="font:15px HelveticaNeue; ">/</span><span style="font:15px HelveticaNeue; "><br /></span><span style="font:15px HelveticaNeue; ">CTAN page: </span><span style="font:15px HelveticaNeue; color:#453B3C;"><u><a href="http://www.ctan.org/tex-archive/support/latexdiff">http://www.ctan.org/tex-archive/support/latexdiff</a></u></span><span style="font:15px HelveticaNeue; "><br /></span><p style="text-align:justify;"><span style="font:15px HelveticaNeue; color:#453B3C;"><br /></span></p><p style="text-align:left;"><span style="font:15px HelveticaNeue-Bold; font-weight:bold; color:#453B3C;font-weight:bold; ">An example output<br /></span><img class="imageStyle" alt="Pasted Graphic 4" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-4.jpg" width="517" height="265" /></p>]]></content:encoded></item><item><title>Tips and tricks for optimization of Fortran codes</title><category>Coding</category><dc:date>2013-08-05T22:18:06-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Fortran_compiler_optimization.html#unique-entry-id-9</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Fortran_compiler_optimization.html#unique-entry-id-9</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic 1" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic-1.jpg" width="400" height="300" /><br /><span style="font:15px HelveticaNeue; ">This short report describes the compiler optimization facility and how to use it. It also includes a few examples demonstrating the optimization techniques.</span><span style="font:15px HelveticaNeue; "><br /></span><span style="font:15px HelveticaNeue; ">Download the file from </span><span style="font:15px HelveticaNeue; color:#453B3C;"><u><a href="http://www.phy.ohiou.edu/~hadizade/resources/talks/Programming_tips.pdf">HERE (pdf)</a></u></span><span style="font:15px HelveticaNeue; ">.</span>]]></content:encoded></item><item><title>Xmgr Grace application for Mac OS X &#x26; Mac OS X Lion</title><category>Application</category><dc:date>2013-08-05T22:12:33-04:00</dc:date><link>http://www.phy.ohio.edu/~hadizade/blog_files/Grace_Mac.html#unique-entry-id-8</link><guid isPermaLink="true">http://www.phy.ohio.edu/~hadizade/blog_files/Grace_Mac.html#unique-entry-id-8</guid><content:encoded><![CDATA[<img class="imageStyle" alt="Pasted Graphic" src="http://www.phy.ohio.edu/~hadizade/blog_files/pasted-graphic.jpg" width="361" height="152" /><br /><span style="font:15px HelveticaNeue; color:#242424;">This is a very easy to use, open-source, X11 based, 2D plotting tool. For installation move the Grace application to the system /Applications folder for it to function correctly.</span><span style="font:15px HelveticaNeue; color:#242424;"><br /><br /></span><span style="font:15px HelveticaNeue; color:#242424;">DOWNLOAD:</span><span style="font:15px HelveticaNeue; color:#242424;"><br /></span><span style="font:15px HelveticaNeue; color:#242424;">Binaries: </span><span style="font:15px HelveticaNeue; color:#543269;"><u><a href="http://prdownloads.sourceforge.net/hpc/Grace.zip?download">Grace</a></u></span><span style="font:15px HelveticaNeue; color:#242424;"> (PowerPC only), </span><span style="font:15px HelveticaNeue; color:#242424;"><br /></span><span style="font:15px HelveticaNeue; color:#543269;"><u><a href="http://prdownloads.sourceforge.net/hpc/GraceLION.zip?download">Grace Lion</a></u></span><span style="font:15px HelveticaNeue; color:#242424;">, updated Jan. 2012</span><span style="font:15px HelveticaNeue; color:#242424;"><br /></span><span style="font:15px HelveticaNeue; color:#543269;"><u><a href="http://prdownloads.sourceforge.net/hpc/Grace2014.zip?download">Grace</a></u></span><span style="font:15px HelveticaNeue; color:#242424;"> updated Aug 2014.</span><span style="font:15px HelveticaNeue; color:#242424;"><br /></span><span style="font:15px HelveticaNeue; color:#242424;">Documentation: </span><span style="font:15px HelveticaNeue; color:#543269;"><u><a href="http://plasma-gate.weizmann.ac.il/Grace/doc/UsersGuide.html">click here!</a></u></span>]]></content:encoded></item></channel>
</rss>