<?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: Raidah Fairuz Nashra</title>
    <description>The latest articles on DEV Community by Raidah Fairuz Nashra (@raidah_fairuz).</description>
    <link>https://dev.to/raidah_fairuz</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%2F1218244%2F48ce6ec3-5bf4-47da-a682-5a7f8d252e5c.jpg</url>
      <title>DEV Community: Raidah Fairuz Nashra</title>
      <link>https://dev.to/raidah_fairuz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raidah_fairuz"/>
    <language>en</language>
    <item>
      <title>Pagination in laravel..</title>
      <dc:creator>Raidah Fairuz Nashra</dc:creator>
      <pubDate>Mon, 29 Jan 2024 19:32:38 +0000</pubDate>
      <link>https://dev.to/raidah_fairuz/pagination-in-laravel-3i70</link>
      <guid>https://dev.to/raidah_fairuz/pagination-in-laravel-3i70</guid>
      <description>&lt;p&gt;Here we have lots of data to show then it's tough to show all those in one page so dividing the records in many pages is called pagination. Pagination is the setting of the query's "limit" and "offset" based on current pages. Laravel delete the value automatically and the value inserted into links generated by the paginator. The number of arguments passed to the method is the number of items we want to be displayed in per page.&lt;/p&gt;

&lt;p&gt;1.In controller page $products=Product::orderBy('id','desc')-&amp;gt;paginate(10); instead of "-&amp;gt;get()" we have to write "-&amp;gt;paginate()". 10 products will display in one page.&lt;/p&gt;

&lt;p&gt;2."Provider" "AppServiceProvider" we have to use "pagination\paginator" after declaration&lt;br&gt;&lt;br&gt;
public function boot()&lt;br&gt;
    {&lt;br&gt;
        Paginator::useBootstrap();&lt;br&gt;
    } &lt;/p&gt;

&lt;p&gt;3.In view page where we show the output&lt;br&gt;&lt;br&gt;
        &lt;/p&gt;
&lt;br&gt;
            {!! $products-&amp;gt;links() !!}&lt;br&gt;
         

&lt;p&gt;&lt;em&gt;simple pagination&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before retrieving the records from DB The method counts the total number of records which are matched by the query.If we want to display only "Next" and "Previous" links in application then we use "simplePaginate".&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Paginating Eloquent Result&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We paginate "Eloquent" queries. To paginate the query builder results.&lt;br&gt;
it is possible to set cause and condition after over coming other constraints/limitations. &lt;/p&gt;

&lt;p&gt;$users= User::where ('votes', '&amp;gt;', 100)-&amp;gt;paginate(15);&lt;br&gt;
We also can use the simplePaginate here. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;How pagination works: *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;limit=20 (requesting only for 20 items per page)&lt;br&gt;
offset=0 (It is starting from 0 item)&lt;br&gt;
let,&lt;br&gt;&lt;br&gt;
  &lt;em&gt;request&lt;/em&gt;             &lt;em&gt;response&lt;/em&gt;     &lt;em&gt;Server-Side&lt;/em&gt;&lt;br&gt;
limit=20&amp;amp;offset=0         page 1        max limit=20 &lt;br&gt;
limit=20&amp;amp;offset=0+20      page 2             "&lt;br&gt;
limit=20&amp;amp;offset=40        page 3             "&lt;br&gt;
limit=20&amp;amp;offset=60        page 4             "&lt;br&gt;
limit=20&amp;amp;offset=80        page 5             "&lt;/p&gt;

&lt;p&gt;pagination is always compulsory from API request, filtering is optional.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>NLP initialization &amp; pre-processing.</title>
      <dc:creator>Raidah Fairuz Nashra</dc:creator>
      <pubDate>Sat, 27 Jan 2024 16:48:22 +0000</pubDate>
      <link>https://dev.to/raidah_fairuz/nlp-initialization-pre-processing-49c6</link>
      <guid>https://dev.to/raidah_fairuz/nlp-initialization-pre-processing-49c6</guid>
      <description>&lt;p&gt;NLP stands for Natural Language Processing. It is a part of AI. Machine can understand and process human language by NLP. In 1950 Alan Mathison published an article(Computing Machinery &amp;amp; Intelligence) about Al and in further it talks interpretation and generation of natural language.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Heuristics-Based NLP: Initial approach of NLP. It comes from domain knowledge. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Statistical Machine Learning-based NLP: It is based on statistical rules and ML algorithms. In this algorithms are applied to the data and various tasks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Neural Network-based NLP: Based on neural network architecture. It is a data hungry and time consuming approach. It requires high computational power to train the model. Ex: Transformers, Recurrent neural network etc.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Analyze data from both structure and unstructured sources.&lt;/li&gt;
&lt;li&gt;Fast and time efficient.
3.End to end exact answer never consume unnecessary information.
4.Takes milliseconds to response.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Disadvatages&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A lots of data and computations are needed to train the model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.Limited function and can not adapt new domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Components&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;NLP understanding&lt;/li&gt;
&lt;li&gt;NLP generation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Applications&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Voice assistants: Alexa,siri,Google etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Text classification :MS word,google doc,Grammarly.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Information extraction: Google&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Google Translator.&lt;br&gt;
&lt;strong&gt;Approaches of NLP&lt;/strong&gt;&lt;br&gt;
Pre-processing&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Removes handles and URLs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Tokenization:Break down the sentence into smaller unites.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;3.Normalization: Case conversion. Covert the text into a standard form.&lt;/p&gt;

&lt;p&gt;4.Stemming: Reduce the words by removing suffix ex: dance,dancing,danced stemmed "dan".&lt;/p&gt;

&lt;p&gt;5.Lemmatization: Removes the part of speech(be verbs)  and stop words(and,a,are etc)  &lt;/p&gt;

&lt;p&gt;6.Puncuation Removal: Focus on important words, removes puncuations(, ; () !)&lt;/p&gt;

&lt;p&gt;7.Stopwords:Romoval of very common words.Ex:"the","a","and"&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How the request handler works with MVC pattern in laravel..</title>
      <dc:creator>Raidah Fairuz Nashra</dc:creator>
      <pubDate>Sat, 25 Nov 2023 20:46:14 +0000</pubDate>
      <link>https://dev.to/raidah_fairuz/how-the-request-handler-works-with-mvc-pattern-in-laravel-535l</link>
      <guid>https://dev.to/raidah_fairuz/how-the-request-handler-works-with-mvc-pattern-in-laravel-535l</guid>
      <description>&lt;p&gt;In laravel POST method is used to send the request to the server to create and update resources. Request handler manages the incoming HTTP request and prepare the controller to process the request through MVC. MVC contains Model, View and Controller. The over view:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Routing: At first the http request goes throungh the routing system. In "web.php" file we define the Route method POST/GET/PUT/PETCH. create the link, give a controller method name and send it to controller.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.Middleware: Before reaching the controller to process the http request goes through the Middleware. It decides the request is acceptable or not.it is like a filter/guard. We can filter and modify the request. Authentication, modification, logging those are done by middleware.&lt;/p&gt;

&lt;p&gt;3.Request Object: After passing from middleware,request object encapsulates the information of the request. When a form is submitted the data of form is stored in "request object" and we fetch the data via "request object".&lt;/p&gt;

&lt;p&gt;4.Controller dispatch: Laravel dispatches the request to the appropriate controller method based on the route definition.&lt;/p&gt;

&lt;p&gt;5.Controller Logic: We make controller. Controller is a special class in laravel, it helps to reuse our code. in controller we call the methods, rettrive data, do interaction with models. In this page we prepare the response and return the view.&lt;/p&gt;

&lt;p&gt;6.Responce: Controller page send the response to .blade pages. In ".blade.php" we show the result/response.it is a page of json data, file or html template. &lt;/p&gt;

&lt;p&gt;7.Middleware (After response): Lastly the result again go through the middleware. we can modify the result before sending it to the client.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
