<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gustavo Jordan</title>
    <description>The latest articles on DEV Community by Gustavo Jordan (@gustavojordanra).</description>
    <link>https://dev.to/gustavojordanra</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F165000%2F6984b161-b67d-4d20-b50c-baca6ee7ce31.jpg</url>
      <title>DEV Community: Gustavo Jordan</title>
      <link>https://dev.to/gustavojordanra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gustavojordanra"/>
    <language>en</language>
    <item>
      <title>What is a Domain name anyway</title>
      <dc:creator>Gustavo Jordan</dc:creator>
      <pubDate>Sun, 02 Aug 2020 16:22:45 +0000</pubDate>
      <link>https://dev.to/gustavojordanra/what-is-a-domain-name-anyway-kk4</link>
      <guid>https://dev.to/gustavojordanra/what-is-a-domain-name-anyway-kk4</guid>
      <description>&lt;p&gt;&lt;strong&gt;A domain name? if you have or want a website, you have heard that word before, but what is it anyway?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A domain name is the name used to identify your website across the Internet. You need four things to allow anyone to find your website: a domain name, a Public IP Address (International access to a server), a hosting account and your own website.&lt;/p&gt;

&lt;p&gt;Domain names are important because it is easier to remember a name, than a series of numbers, twelve to be exact. This hard to remember numbers, are the public IP address of your server website, and identify every server around the world.&lt;/p&gt;

&lt;p&gt;Your domain name could be any combination of letters and numbers without spaces.&lt;br&gt;
&lt;a href="https://hostingsmarty.com/domain-name-what-is-hosting-101/" rel="noopener noreferrer"&gt;Read more...&lt;/a&gt;&lt;/p&gt;

</description>
      <category>web</category>
      <category>hosting</category>
      <category>webdesign</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Laragon - How to upgrade Apache Server 2.4.41 and PHP 7.4.2</title>
      <dc:creator>Gustavo Jordan</dc:creator>
      <pubDate>Sat, 07 Mar 2020 06:08:39 +0000</pubDate>
      <link>https://dev.to/gustavojordanra/laragon-how-to-upgrade-apache-server-2-4-41-and-php7-4-2-4ohk</link>
      <guid>https://dev.to/gustavojordanra/laragon-how-to-upgrade-apache-server-2-4-41-and-php7-4-2-4ohk</guid>
      <description>&lt;p&gt;One of the currently easiest to configure web servers for web apps development is Laragon. It let us create different kinds of development applications, from a Laravel project to a WordPress site with just one click. This is my preferred server over my previous WAMP configuration.&lt;br&gt;
&lt;b&gt;After installation of Laragon, it brings previous versions for both, Apache and PHP, so we will upgrade their versions to the latest. &lt;/b&gt;&lt;/p&gt;

&lt;p&gt;First download and install the latest Visual Studio C++ redistributables from the Microsoft site&lt;/p&gt;

&lt;p&gt;&lt;a href="https://support.microsoft.com/es-pa/help/2977003/the-latest-supported-visual-c-downloads" rel="noopener noreferrer"&gt;https://support.microsoft.com/es-pa/help/2977003/the-latest-supported-visual-c-downloads&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we should download both packages from their webpages and unpack then, download the 32 or 64 versions that suits your OS, this are the links:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.apachelounge.com/download/" rel="noopener noreferrer"&gt;https://www.apachelounge.com/download/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://windows.php.net/download#php-7.4" rel="noopener noreferrer"&gt;https://windows.php.net/download#php-7.4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have Laragon server running stop it.&lt;/p&gt;

&lt;p&gt;After unpack then, copy both folders to the Laragon/bin folder, inside their respective package name, (the new Apache folder that you download inside Apache folder in Laragon/bin and the new PHP inside the PHP folder).&lt;/p&gt;

&lt;p&gt;then edit the file php.ini with your preferred text editor and search for the line that reads "; Be sure to appropriately set the extension_dir directive". Replace with this text until the place that reads "Module Settings".&lt;/p&gt;

&lt;p&gt;; Be sure to appropriately set the extension_dir directive.&lt;br&gt;
;&lt;br&gt;
extension=php_bz2.dll&lt;br&gt;
extension=php_curl.dll&lt;br&gt;
;extension=php_com_dotnet.dll&lt;br&gt;
;extension=php_enchant.dll&lt;br&gt;
extension=php_fileinfo.dll&lt;br&gt;
;extension=php_ftp.dll&lt;br&gt;
extension=php_gd2.dll&lt;br&gt;
extension=php_gettext.dll&lt;br&gt;
extension=php_gmp.dll&lt;br&gt;
extension=php_intl.dll&lt;br&gt;
extension=php_imap.dll&lt;br&gt;
;extension=php_interbase.dll&lt;br&gt;
extension=php_ldap.dll&lt;br&gt;
extension=php_mbstring.dll&lt;br&gt;
extension=php_exif.dll ; Must be after mbstring as it depends on it&lt;br&gt;
extension=php_mysqli.dll&lt;br&gt;
;extension=php_odbc.dll&lt;br&gt;
extension=php_openssl.dll&lt;br&gt;
;extension=php_pdo_firebird.dll&lt;br&gt;
extension=php_pdo_mysql.dll&lt;br&gt;
;extension=php_pdo_oci.dll&lt;br&gt;
;extension=php_pdo_odbc.dll&lt;br&gt;
;extension=php_pdo_pgsql.dll&lt;br&gt;
extension=php_pdo_sqlite.dll&lt;br&gt;
;extension=php_pgsql.dll&lt;br&gt;
;extension=php_phpdbg_webhelper.dll&lt;br&gt;
;extension=php_shmop.dll&lt;/p&gt;

&lt;p&gt;; The MIBS data available in the PHP distribution must be installed.&lt;br&gt;
; See &lt;a href="http://www.php.net" rel="noopener noreferrer"&gt;www.php.net&lt;/a&gt;&lt;br&gt;
;extension=php_snmp.dll&lt;/p&gt;

&lt;p&gt;extension=php_soap.dll&lt;br&gt;
extension=php_sockets.dll&lt;br&gt;
extension=php_sqlite3.dll&lt;br&gt;
;extension=php_sysvshm.dll&lt;br&gt;
;extension=php_tidy.dll&lt;br&gt;
extension=php_xmlrpc.dll&lt;br&gt;
extension=php_xsl.dll&lt;br&gt;
;;;;;;;;;;;;;;;;;;;&lt;br&gt;
; Module Settings ;&lt;br&gt;
;;;;;;;;;;;;;;;;;;;&lt;/p&gt;

&lt;p&gt;Now let’s start Laragon server again and after it finish to load, select web link from the Laragon Menu, it will load your Laragon localhost page, there you should see your current Apache and PHP version, and your new upgraded versions.&lt;/p&gt;

&lt;p&gt;Now, we are ready to work again…&lt;/p&gt;

</description>
      <category>laragon</category>
      <category>apache</category>
      <category>web</category>
      <category>php</category>
    </item>
    <item>
      <title>Someone could help me about calculations in blade views?</title>
      <dc:creator>Gustavo Jordan</dc:creator>
      <pubDate>Tue, 07 May 2019 14:47:10 +0000</pubDate>
      <link>https://dev.to/gustavojordanra/someone-could-help-me-about-calculations-in-blade-views-jeo</link>
      <guid>https://dev.to/gustavojordanra/someone-could-help-me-about-calculations-in-blade-views-jeo</guid>
      <description>&lt;p&gt;Hi, could someone suggest me the best way to work with a model, lest say a grades model that I pass to my blade view, and as I go throug it with a foreach &lt;strong&gt;I need to do some calculations, like to sum the grades of a specific subject and after all calc the median using the count of the collection pased&lt;/strong&gt;, should I use the &lt;a class="mentioned-user" href="https://dev.to/php"&gt;@php&lt;/a&gt; tag to specify a local variable in the view to sum the grades and make the calc or is there a better solution that you could suggest me?&lt;/p&gt;

&lt;p&gt;This is what I did and it's working as I need but I want to improve it...&lt;/p&gt;

&lt;p&gt;Here is the section of my controler&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$subjects = Subject::all();
$subjectslevel = DB::table('subjects_periods_levels')-&amp;gt;select('*')-&amp;gt;where('lev_id', $levels-&amp;gt;idlevel)-&amp;gt;orderBy('subj_id')-&amp;gt;get()-&amp;gt;unique('subj_id');
$notasmostrar = Notasfinales::whereYear('ano', $fecha-&amp;gt;year)-&amp;gt;where('idstudent', $user-&amp;gt;idnumber)-&amp;gt;orderBy('idsubject')-&amp;gt;get();
//dd ($notasmostrar);
$titulo = "Notas del Estudiante";
$profesors = User::where('activo',1)-&amp;gt;get();
return view('grades.showgrades',['titulo' =&amp;gt; $titulo, 'stud' =&amp;gt; $user,'periodos' =&amp;gt; $periodos, 'notas' =&amp;gt; $notasmostrar, 'subjectslevel' =&amp;gt; $subjectslevel, 'subjects' =&amp;gt; $subjects, 'profesors' =&amp;gt; $profesors]);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here is the relevant part of my view&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;tbody&amp;gt;
                    @foreach($subjectslevel as $levelsubjects)
                        &amp;lt;tr&amp;gt;
                                @php ($notafinal = 0)
                                &amp;lt;td&amp;gt;{{$levelsubjects-&amp;gt;subj_id}}&amp;lt;/td&amp;gt;
                                @foreach ($subjects as $subject)
                                    @if ($subject-&amp;gt;id == $levelsubjects-&amp;gt;subj_id)
                                        &amp;lt;td&amp;gt;{{$subject-&amp;gt;name}}&amp;lt;/td&amp;gt;


                                    @endif
                                @endforeach
                                @foreach ($periodos as $periodo)
                                    @foreach ($notas as $nota)
                                        @if ($periodo-&amp;gt;idperiod == $nota-&amp;gt;idperiodo)
                                            @if ($nota-&amp;gt;idsubject == $levelsubjects-&amp;gt;subj_id)
                                                &amp;lt;td&amp;gt;{{$nota-&amp;gt;nota}}&amp;lt;/td&amp;gt;
                                                @php ($notafinal = $notafinal + $nota-&amp;gt;nota)
                                            @endif
                                        @endif
                                    @endforeach

                                @endforeach



                                    @foreach ($subjects as $subject)
                                        @if ($subject-&amp;gt;id == $levelsubjects-&amp;gt;subj_id)
                                            @foreach ($profesors as $profesor)
                                                @if ($profesor-&amp;gt;idnumber == $levelsubjects-&amp;gt;profe_id)
                                                    &amp;lt;td&amp;gt;{{$profesor-&amp;gt;name}} {{$profesor-&amp;gt;surname}}&amp;lt;/td&amp;gt;
                                                @endif
                                            @endforeach
                                        @endif
                                    @endforeach
                                &amp;lt;td&amp;gt;
                                @php ($notafinal = $notafinal / $periodos-&amp;gt;count())
                                {{$notafinal}} / 100&amp;lt;/td&amp;gt;
                                &amp;lt;td&amp;gt;&amp;lt;button type="button" class="btn btn-primary"&amp;gt;Detalles&amp;lt;/button&amp;gt;&amp;lt;/td&amp;gt;
                        &amp;lt;/tr&amp;gt;
                    @endforeach
                &amp;lt;/tbody&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>help</category>
      <category>laravel</category>
      <category>blade</category>
    </item>
  </channel>
</rss>
