<?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: Dinesh D</title>
    <description>The latest articles on DEV Community by Dinesh D (@dinesh_d).</description>
    <link>https://dev.to/dinesh_d</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%2F1490639%2F193d4e41-6670-4876-a086-6aa8a12d23ce.jpg</url>
      <title>DEV Community: Dinesh D</title>
      <link>https://dev.to/dinesh_d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dinesh_d"/>
    <language>en</language>
    <item>
      <title>What is a Computer Programming Language?</title>
      <dc:creator>Dinesh D</dc:creator>
      <pubDate>Sun, 16 Jun 2024 04:33:10 +0000</pubDate>
      <link>https://dev.to/dinesh_d/what-is-a-computer-programming-language-2im1</link>
      <guid>https://dev.to/dinesh_d/what-is-a-computer-programming-language-2im1</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/cs"&gt;DEV Computer Science Challenge v24.06.12: One Byte Explainer&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;A set of instructions which translate human logic into machine-readable code to produce various kinds of output and enable developers to write programs that perform specific tasks or solve problems is Called a Computer Programmig Language.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;p&gt;--&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>cschallenge</category>
      <category>computerscience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Binary Tree</title>
      <dc:creator>Dinesh D</dc:creator>
      <pubDate>Sun, 16 Jun 2024 04:18:26 +0000</pubDate>
      <link>https://dev.to/dinesh_d/binary-tree-50ic</link>
      <guid>https://dev.to/dinesh_d/binary-tree-50ic</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/cs"&gt;DEV Computer Science Challenge v24.06.12: One Byte Explainer&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;A binary tree is a tree data structure in which each node has at most two children, referred to as the left child and the right child. It is used for efficient searching, sorting, and hierarchical data organization.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

&lt;p&gt;--&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>cschallenge</category>
      <category>computerscience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Dead lock due to Circular Wait</title>
      <dc:creator>Dinesh D</dc:creator>
      <pubDate>Sun, 16 Jun 2024 04:10:44 +0000</pubDate>
      <link>https://dev.to/dinesh_d/dead-lock-due-to-circular-wait-4okf</link>
      <guid>https://dev.to/dinesh_d/dead-lock-due-to-circular-wait-4okf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/cs"&gt;DEV Computer Science Challenge v24.06.12: One Byte Explainer&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Explainer
&lt;/h2&gt;

&lt;p&gt;If resource A is waiting for B and Resource B is waiting for C and now If C is waiting for A then it creates a Circular Wait which is one of the Coffman conditions Leading to a Dead Lock in a System&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Context
&lt;/h2&gt;

</description>
      <category>devchallenge</category>
      <category>cschallenge</category>
      <category>computerscience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Copy Javascript Object from Safari Browser Console</title>
      <dc:creator>Dinesh D</dc:creator>
      <pubDate>Fri, 14 Jun 2024 06:39:09 +0000</pubDate>
      <link>https://dev.to/dinesh_d/copy-javascript-object-from-safari-browser-console-4kfl</link>
      <guid>https://dev.to/dinesh_d/copy-javascript-object-from-safari-browser-console-4kfl</guid>
      <description>&lt;h2&gt;
  
  
  How to Share Console Logs from Safari as JSON
&lt;/h2&gt;

&lt;p&gt;There are times when we need to test something specifically on Safari and share console logs with other developers. However, Safari often renders these logs as objects that can't be copied directly as text JSON strings. I've found a workaround for this and wanted to share it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Logging Objects in Safari
&lt;/h3&gt;

&lt;p&gt;When you log an object in Safari, you might see something like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffstdljn0fivg2di4lm15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffstdljn0fivg2di4lm15.png" alt="Safari Console Log"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Right-clicking on the object gives you a few options. Choose "Log Value" to re-log the output in the console.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2v9a9ozztejpl0i9q49.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2v9a9ozztejpl0i9q49.png" alt="Safari Log Value Option"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Getting the Variable Name
&lt;/h3&gt;

&lt;p&gt;This does two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It prints a variable name, which appears just above the newly printed log.&lt;/li&gt;
&lt;li&gt;It prints the actual object again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the variable name isn't something like $1 or $2, try clicking "Log Value" again on the newly printed object. Now you should see a variable name with a &lt;code&gt;$&lt;/code&gt;. - Note: You can also see the variable name at the end of the log like &lt;code&gt;= $1&lt;/code&gt; in grey color.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7z58tvr5qi3s70zv7myb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7z58tvr5qi3s70zv7myb.png" alt="Variable Name in Safari Console"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Copying the Object
&lt;/h3&gt;

&lt;p&gt;Use the &lt;code&gt;copy(&amp;lt;variable_name&amp;gt;)&lt;/code&gt; method to copy this object to the clipboard.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;span class="nf"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3h0i5qdjvzogroi3xche.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3h0i5qdjvzogroi3xche.png" alt="Copy Command in Safari Console"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Once the &lt;code&gt;copy()&lt;/code&gt; command is executed, it will print &lt;code&gt;undefined&lt;/code&gt;—this is just the return value of the &lt;code&gt;copy()&lt;/code&gt; method.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pasting the Copied Object
&lt;/h3&gt;

&lt;p&gt;Now, open any text-editable input field or editor and paste the object you just copied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmwoo60ssf7jml29onqgy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmwoo60ssf7jml29onqgy.png" alt="Pasting the Copied Object"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And voilà! You've successfully copied and pasted your Safari console log as a JSON string.&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>console</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
