<?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: HAFIZ ABDULMANAN</title>
    <description>The latest articles on DEV Community by HAFIZ ABDULMANAN (@hamsof).</description>
    <link>https://dev.to/hamsof</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%2F893456%2Ff917a3f3-8882-43be-b606-f0e04f831437.jpeg</url>
      <title>DEV Community: HAFIZ ABDULMANAN</title>
      <link>https://dev.to/hamsof</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hamsof"/>
    <language>en</language>
    <item>
      <title>Angular in 15 days</title>
      <dc:creator>HAFIZ ABDULMANAN</dc:creator>
      <pubDate>Wed, 14 Jun 2023 17:06:59 +0000</pubDate>
      <link>https://dev.to/hamsof/angular-in-15-days-3i93</link>
      <guid>https://dev.to/hamsof/angular-in-15-days-3i93</guid>
      <description>&lt;p&gt;Going to start Angular from today and I will learn all concepts and will make a POC from it.&lt;/p&gt;

&lt;p&gt;Suggestions and resources are welcomed!&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First Day:
&lt;em&gt;TypeScript Documentation&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Second Day:
&lt;em&gt;Angular: Big Picture course from PluralSight&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>javascript</category>
      <category>angular</category>
      <category>typescript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Web Scraping Research Oriented</title>
      <dc:creator>HAFIZ ABDULMANAN</dc:creator>
      <pubDate>Mon, 25 Jul 2022 17:45:00 +0000</pubDate>
      <link>https://dev.to/hamsof/web-scraping-research-oriented-2dnf</link>
      <guid>https://dev.to/hamsof/web-scraping-research-oriented-2dnf</guid>
      <description>&lt;p&gt;Wanna deep dive in web scraping from beautifulSoup to Selenium.&lt;/p&gt;

&lt;p&gt;We have made our own examples to get deep dive in these topics as well as we have scraped Zameen.com (House website), Indeed.com (Job website), The News International (News wesbsite), GitHub.com with API and with main page, Youtube comments and custom celebrity's tweets from Twitter.&lt;/p&gt;

&lt;p&gt;I have provided my assistance to my university professor.&lt;/p&gt;

&lt;p&gt;You can find these lectures and related codes on this playlist:&lt;br&gt;
&lt;a href="https://lnkd.in/dxFiRfq4"&gt;https://lnkd.in/dxFiRfq4&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>scraping</category>
      <category>webdev</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>?Error on reloading the page in rendering</title>
      <dc:creator>HAFIZ ABDULMANAN</dc:creator>
      <pubDate>Wed, 20 Jul 2022 10:35:44 +0000</pubDate>
      <link>https://dev.to/hamsof/error-on-reloading-the-page-in-rendering-2669</link>
      <guid>https://dev.to/hamsof/error-on-reloading-the-page-in-rendering-2669</guid>
      <description>&lt;p&gt;I am getting a single object from an API call and when I load this works but when as soon as I reload it throws error and did not render anything and error is it did not recognizes data.picture.large larger property&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import './App.css';
import a from 'axios'
import { useEffect, useState } from 'react';


function App() {

  const [data,setData] = useState({})

  useEffect(()=&amp;gt;{
    a.get("https://randomuser.me/api/")
    .then(res=&amp;gt; setData(res.data.results[0]))
    .catch(err=&amp;gt;console.log(err))
  },[])

  console.log(data);

  return (
    &amp;lt;div className="App"&amp;gt;
      &amp;lt;img src={data.picture.large}/&amp;gt;
      &amp;lt;h1&amp;gt;{data.gender}&amp;lt;/h1&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

export default App;

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

&lt;/div&gt;



</description>
      <category>discuss</category>
      <category>react</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>?Assigning Api resposne to a variable undefined error</title>
      <dc:creator>HAFIZ ABDULMANAN</dc:creator>
      <pubDate>Wed, 20 Jul 2022 09:55:33 +0000</pubDate>
      <link>https://dev.to/hamsof/assigning-api-resposne-to-a-variable-undefined-error-235m</link>
      <guid>https://dev.to/hamsof/assigning-api-resposne-to-a-variable-undefined-error-235m</guid>
      <description>&lt;p&gt;I am getting undefined for variable d; even console.log(res.data.results[0]) is working fine&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import './App.css';
import a from 'axios'


function App() {
  let d;
  a.get("https://randomuser.me/api/")
  .then(res =&amp;gt; {
    //console.log(res.data.results[0])
    d = res.data.results[0]
  })
  .catch(err =&amp;gt; console.log("Its en error"))

  console.log(d) // undefined

  return (
    &amp;lt;div className="App"&amp;gt;

    &amp;lt;/div&amp;gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>?Error in Substring function in react</title>
      <dc:creator>HAFIZ ABDULMANAN</dc:creator>
      <pubDate>Sun, 17 Jul 2022 17:41:53 +0000</pubDate>
      <link>https://dev.to/hamsof/substring-function-in-react-5daa</link>
      <guid>https://dev.to/hamsof/substring-function-in-react-5daa</guid>
      <description>&lt;p&gt;This render for the first time but soon I reload the page I get the error Slice is not defined.&lt;/p&gt;

&lt;p&gt;I am getting a random movie Object from API. Object.data.results[any random index].overview is description of movie. I wanna cut this description to only 10 (lets say) letters.&lt;/p&gt;



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

function App() {

  const [movie, setMovie] = useState([])

  useEffect(() =&amp;gt; {
    async function fetchData() {
      const req = await axios.get("https://api.themoviedb.org/3/movie/550?api_key={API_KEY})
//example IMDB API key

setMovie(() =&amp;gt;
req.data.results
[Math.floor(Math.random() * req.data.results.length)]
)
    }
//getting a random movie from 20 movies by data.result
    fetchData();
  }, [])

console.log(movie?.overview.slice(0,15))//working 


  return (
    &amp;lt;div&amp;gt;
        &amp;lt;h1&amp;gt;{movie?.title || movie?.name || movie?.original_name}&amp;lt;/h1&amp;gt;

        &amp;lt;div&amp;gt;
          {movie?.overview.slice(0,15)} //error
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;    
  )
}

export default App


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

&lt;/div&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
