<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kajan on Medium]]></title>
        <description><![CDATA[Stories by Kajan on Medium]]></description>
        <link>https://medium.com/@kajan.bluwin?source=rss-72217ee0e35b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wxlaVKDIXjLoejUqZ0uRqQ.jpeg</url>
            <title>Stories by Kajan on Medium</title>
            <link>https://medium.com/@kajan.bluwin?source=rss-72217ee0e35b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:53:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kajan.bluwin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cross Site Request Forgery (CSRF)]]></title>
            <link>https://medium.com/@kajan.bluwin/cross-site-request-forgery-csrf-dae23a6a6b0b?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dae23a6a6b0b</guid>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 17:40:37 GMT</pubDate>
            <atom:updated>2024-01-12T17:40:37.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1XaiGvoeczb5n1s8VPEquQ.jpeg" /></figure><p>CSRF is an attack that tricks the victim into submitting a malicious request. It inherits the identity and privileges of the victim to perform an undesired function on the victim’s behalf (though note that this is not true of login CSRF, a special form of the attack described below). For most sites, browser requests automatically include any credentials associated with the site, such as the user’s session cookie, IP address, Windows domain credentials, and so forth. Therefore, if the user is currently authenticated to the site, the site will have no way to distinguish between the forged request sent by the victim and a legitimate request sent by the victim.</p><p>CSRF attacks target functionality that causes a state change on the server, such as changing the victim’s email address or password, or purchasing something. Forcing the victim to retrieve data doesn’t benefit an attacker because the attacker doesn’t receive the response, the victim does. As such, CSRF attacks target state-changing requests.</p><p>An attacker can use CSRF to obtain the victim’s private data via a special form of the attack, known as login CSRF. The attacker forces a non-authenticated user to log in to an account the attacker controls. If the victim does not realize this, they may add personal data — such as credit card information — to the account. The attacker can then log back into the account to view this data, along with the victim’s activity history on the web application.</p><p>It’s sometimes possible to store the CSRF attack on the vulnerable site itself. Such vulnerabilities are called “stored CSRF flaws”. This can be accomplished by simply storing an IMG or IFRAME tag in a field that accepts HTML, or by a more complex cross-site scripting attack. If the attack can store a CSRF attack in the site, the severity of the attack is amplified. In particular, the likelihood is increased because the victim is more likely to view the page containing the attack than some random page on the Internet. The likelihood is also increased because the victim is sure to be authenticated to the site already.</p><p>you can prevent this by Using a secret cookie,Only accepting POST requests,Multi-Step Transactions,URL Rewriting,HTTPS,Validating the Referrer Header</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dae23a6a6b0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Batch File in windows(.bat)]]></title>
            <link>https://medium.com/@kajan.bluwin/batch-file-in-windows-bat-5cdb5e025037?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cdb5e025037</guid>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sat, 18 Nov 2023 07:17:21 GMT</pubDate>
            <atom:updated>2023-11-18T07:17:21.796Z</atom:updated>
            <content:encoded><![CDATA[<p>A batch file is a script containing a series of commands that are executed in sequence by the Command Prompt (CMD) interpreter. These files use the .bat extension and are essentially text files that contain a list of commands that the Command Prompt can understand and execute.</p><p>To create a batch file, all you need is a text editor like Notepad. Open Notepad, type your commands, and save the file with a .bat extension.</p><p>Batch files support a wide range of commands, allowing you to perform tasks such as file manipulation, directory navigation, and more.</p><p><strong>Some common commands include:</strong></p><ul><li><strong>echo:</strong> Display messages on the screen.</li><li><strong>cd:</strong> Change the current directory.</li><li><strong>dir:</strong> List the files and folders in the current directory.</li><li><strong>copy:</strong> Copy files from one location to another.</li><li><strong>del:</strong> Delete files.</li><li><strong>start:</strong> Open a new Command Prompt window or launch a program.</li></ul><p>Batch files support variables and basic control structures, allowing you to create more dynamic and complex scripts.</p><p>I used batch file recently because I have to a command a long path and have to write it’s application name but with this I create a batch file and pasted my long command there and add the location of batch file to environment variable(in path). Then I can easily call the name of that batch file, it will automatically run the command.</p><p>If you don’t know about environment variable you can read it in my previous blog in <a href="https://medium.com/@kajan.bluwin/environment-variables-3d354ced92c3">https://medium.com/@kajan.bluwin/environment-variables-3d354ced92c3</a> this link.</p><p>In linux .sh file will do just like .bat file but it contains a series of unix commands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cdb5e025037" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Environment Variables.]]></title>
            <link>https://medium.com/@kajan.bluwin/environment-variables-3d354ced92c3?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d354ced92c3</guid>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sat, 18 Nov 2023 06:41:11 GMT</pubDate>
            <atom:updated>2023-11-18T06:41:11.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Environmental variables are dynamic values that define the operating environment for processes and applications on a computer. They store information such as system paths, configuration settings, and user preferences, making it easier for software to adapt to different environments without requiring explicit paths or configurations.</p><p><strong>Types of Environment variables:</strong></p><ol><li><strong>Global (System) Variables</strong>: These variables apply to the entire operating system and are accessible by all users. They often include system-wide configuration such as the location of system files or the directories and configuration settings.</li><li><strong>User-Specific Variables:</strong> Each user on an operating system can have their own set of environment variables. These variables customize the user’s environment according to their preferences.</li></ol><p><strong>Common Environment Variables:</strong></p><p><strong>PATH:</strong> Perhaps the most well-known environmental variable, the PATH variable specifies directories where the operating system should look for executable files. Adding a directory to the PATH allows you to run executable files from that location without specifying the full path.</p><p><strong>TEMP (and TMP):</strong> Specifies directories for temporary files.</p><p><strong>HOME (USERPROFILE in Windows):</strong> Points to the user’s home directory.</p><p><strong>LANG:</strong> Determines the default language and localization settings. etc….</p><p><strong>Accessing Environment Variables:</strong></p><ol><li>In Unix-like operating systems (e.g., Linux), you can use the echo command to display the value of an environment variable, like echo $PATH.</li><li>In Windows, you can use the echo command, but with % symbols, like echo %PATH%.</li></ol><p><strong>Setting and Modifying Environment Variables:</strong></p><ol><li>In Unix-like systems, you can set environment variables in shell initialization files such as ~/.bashrc or globally in /etc/environment.</li><li>In Windows, you can set environment variables through the System Properties or by using the set command.</li></ol><p>Understanding and managing environment variables is crucial for configuring and customizing the behavior of an operating system. Whether you’re a system administrator, developer, or an everyday user, having a grasp of environment variables empowers you to tailor your computing environment to your specific needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d354ced92c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git merge vs Git rebase.]]></title>
            <link>https://medium.com/@kajan.bluwin/git-merge-vs-git-rebase-a7969f268d50?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7969f268d50</guid>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sat, 07 Oct 2023 14:28:05 GMT</pubDate>
            <atom:updated>2023-10-07T14:28:05.138Z</atom:updated>
            <content:encoded><![CDATA[<p>Both merge and rebase are going to take commits from a feature branch(can be any branch) and put them onto another branch that you wanted to.</p><p><strong>Git merge:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rl69OQ8FV2B3xtzy7Ku2qA.png" /></figure><p>So in the case of normal merge, git will stuff all my changes from my feature branch into one large merge commit that contains all of my feature branch changes. It will then place this special merge commit onto master. When this happens, the tree will show your feature branch, as well as the master branch. Going further, if you imagine working on a team with other developers, your git tree can become complex: displaying everybody else’s branches and merges.</p><p><strong>Git rebase:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PcQ4iTB-NfKmZxOgZ4uhnA.png" /></figure><p>Now let’s take a look at how rebase would handle this same situation. Instead of doing a <em>git merge</em>, I’ll do a <em>git rebase</em>. What rebase will do is take all of the commits on your feature branch and move them on top of the master commits. Behind the scenes, git is actually blowing away the feature branch commits and duplicating them as new commits on top of the master branch (remember, under the hood, commit objects are immutable and immovable). What you get with this approach is a nice clean tree with all your commits laid out nicely in a row, like a timeline. Easy to trace.</p><p>warning:- At this point, I think I better mention some cautions. Rebase doesn’t play super well with open-source projects and pull requests since it can be hard to trace, especially small changes that are introduced to a codebase.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7969f268d50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bootstrap]]></title>
            <link>https://medium.com/@kajan.bluwin/bootstrap-f77e2b5d8b23?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f77e2b5d8b23</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 06:48:00 GMT</pubDate>
            <atom:updated>2023-10-01T06:48:00.024Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Bootstrap?</p><ul><li>Bootstrap is a free front-end framework for faster and easier web development</li><li>Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins</li><li>Bootstrap also gives you the ability to easily create responsive designs</li></ul><p>Bootstrap 5 (released 2021) is the newest version of Bootstrap(released 2013); with new components, faster stylesheet and more responsiveness.</p><p>Bootstrap 5 supports the latest, stable releases of all major browsers and platforms. However, Internet Explorer 11 and down is not supported.</p><p>The main differences between Bootstrap 5 and Bootstrap 3 &amp; 4, is that Bootstrap 5 has switched to vanilla JavaScript instead of jQuery.</p><p>Advantages of Bootstrap:</p><ul><li><strong>Easy to use:</strong> Anybody with just basic knowledge of HTML and CSS can start using Bootstrap</li><li><strong>Responsive features:</strong> Bootstrap’s responsive CSS adjusts to phones, tablets, and desktops</li><li><strong>Mobile-first approach:</strong> In Bootstrap, mobile-first styles are part of the core framework</li><li><strong>Browser compatibility:</strong> Bootstrap 5 is compatible with all modern browsers (Chrome, Firefox, Edge, Safari, and Opera). <strong>Note</strong> that if you need support for IE11 and down, you must use either BS4 or BS3.</li></ul><p>There are two ways to start using Bootstrap 5 on your own web site.</p><p>1.Include Bootstrap 5 from a CDN</p><p>2.Download Bootstrap 5 from getbootstrap.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f77e2b5d8b23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visual studio code extensions]]></title>
            <link>https://medium.com/@kajan.bluwin/visual-studio-code-extensions-de3cdc2f4ee?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3cdc2f4ee</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 06:39:59 GMT</pubDate>
            <atom:updated>2023-10-01T06:39:59.385Z</atom:updated>
            <content:encoded><![CDATA[<p>VS Code extensions let you add languages, debuggers, and tools to your installation to support your development workflow. VS Code’s rich extensibility model lets extension authors plug directly into the VS Code UI and contribute functionality through the same APIs used by VS Code.</p><p>You can browse and install extensions from within VS Code. Bring up the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of VS Code or the View: Extensions command. Each extension in the list includes a brief description, the publisher, the download count, and a five star rating. You can select the extension item to display the extension’s details page where you can learn more.</p><p>Some of use full VS code extensions:</p><ol><li><a href="https://x-team.com/blog/best-vscode-extensions#settings-sync"><strong>Settings Sync</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#live-server"><strong>Live Server</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#remote-ssh"><strong>Remote — SSH</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#prettier"><strong>Prettier</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#github-copilot"><strong>GitHub Copilot</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#auto-rename-tag"><strong>Auto Rename Tag</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#gitlens"><strong>GitLens</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#git-history"><strong>Git History</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#css-peek"><strong>CSS Peek</strong></a></li><li><a href="https://x-team.com/blog/best-vscode-extensions/#javascript-code-snippets"><strong>JavaScript Code Snippets</strong></a></li></ol><p>you can search it and read the use of it and download it if you want.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3cdc2f4ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS frameworks.]]></title>
            <link>https://medium.com/@kajan.bluwin/css-frameworks-d33cbb8f5440?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d33cbb8f5440</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 06:31:28 GMT</pubDate>
            <atom:updated>2023-10-01T06:31:28.417Z</atom:updated>
            <content:encoded><![CDATA[<p>In essence, a CSS framework comprises several CSS stylesheets ready for use by web developers and designers. The stylesheets are prepped for standard web design functions: setting colors, layout, fonts, navbars, etc. Generally, stylesheets are supported and expanded by other scripting technologies like SASS (Syntactically Awesome Style Sheets) and JavaScript.</p><p>With a CSS framework, the user has a completed CSS stylesheet, and they only have to code the HTML with accurate classes, structure, and IDs to set up a web page. The framework already has classes built-in for common website elements — footer, slider, navigation bar, hamburger menu, column-based layouts, etc.</p><p>Some advantages:</p><ul><li>Developers and designers can use CSS frameworks to implement various advanced features and visual elements on a website — forms, different buttons, navbars, breadcrumbs, and even clean symmetrical layouts.</li><li>CSS frameworks make creating websites compatible with multiple browsers and browser versions simple. This reduces the likelihood of bugs popping up during cross browser testing.</li><li>Since these frameworks have ready-to-use stylesheets, using them allows faster and more convenient web development. Users don’t have to dive deep into CSS code to accomplish required tasks.</li><li>Developers can quickly generate a user-friendly and visually appealing UI that can be modified throughout a project without starting from scratch.</li></ul><p>Some examples:</p><p>1. Bootstrap</p><p>2. Tailwind CSS</p><p>3. Foundation</p><p>4. Bulma</p><p>5. Skeleton</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d33cbb8f5440" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a framework?]]></title>
            <link>https://medium.com/@kajan.bluwin/what-is-a-framework-b5b4ab3f2281?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5b4ab3f2281</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sun, 01 Oct 2023 06:18:48 GMT</pubDate>
            <atom:updated>2023-10-01T06:18:48.838Z</atom:updated>
            <content:encoded><![CDATA[<p>A framework is a structure that you can build software on. It serves as a foundation, so you’re not starting entirely from scratch. Frameworks are typically associated with a specific programming language and are suited to different types of tasks.</p><p>With this you don’t have to start from scratch, your time will be saved and reduces the risk of errors. You can add more features on it. Some more advantages:</p><ul><li>More secure code</li><li>Simpler testing and debugging</li><li>Avoiding duplicate code</li><li>Clean and easily adaptable code</li><li>Able to focus on writing code specific to the project</li><li>Can be extended</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5b4ab3f2281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git and GitHub

Git: Git is a version control system that lets you manage and keep track of your…]]></title>
            <link>https://medium.com/@kajan.bluwin/git-and-github-git-git-is-a-version-control-system-that-lets-you-manage-and-keep-track-of-your-af733c748b54?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/af733c748b54</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Mon, 25 Sep 2023 13:28:24 GMT</pubDate>
            <atom:updated>2023-10-01T06:42:04.889Z</atom:updated>
            <content:encoded><![CDATA[<h3>Git and GitHub</h3><p>Git: Git is a version control system that lets you manage and keep track of your source code history. It was created by Linus Torvalds in 2005, and has been maintained by Junio Hamano.</p><p>It is used for:</p><p>:-Tracking code changes.<br>:-Tracking who made changes.<br>:-Coding collaboration.</p><p>Over 70% of developers use Git!<br>Developers can work together from anywhere in the world.<br>Developers can see the full history of the project.<br>Developers can revert to earlier versions of a project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v4QN8NAoJHLwPHGd2aMD1Q.jpeg" /></figure><p>Git Hub: GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af733c748b54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cascading Style Sheets(CSS)part 1]]></title>
            <link>https://medium.com/@kajan.bluwin/cascading-style-sheets-css-part-1-c70e26a9803a?source=rss-72217ee0e35b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c70e26a9803a</guid>
            <dc:creator><![CDATA[Kajan]]></dc:creator>
            <pubDate>Sun, 17 Sep 2023 16:57:54 GMT</pubDate>
            <atom:updated>2023-09-17T16:57:54.251Z</atom:updated>
            <content:encoded><![CDATA[<p>Earlier I explained CSS briefly. Now we will explore some more about it.</p><p>I already told about 3 type of CSS.</p><p>And you know external CSS is best of all.</p><h4>1.CSS colors:</h4><p>Colors can be used as color names, RGB, HEX, HSL, RGBA and HSLA values.</p><p>we can use color names like this:</p><pre>&lt;h1 style=&quot;color:Tomato;&quot;&gt;Hello World&lt;/h1&gt;<br>&lt;h1 style=&quot;border:2px solid Tomato;&quot;&gt;Hello World&lt;/h1&gt;</pre><p>we can use rgb, hex and hsl like below. And if we need, we can add alpha value too(with this we can control opacity of that color).</p><pre>&lt;h1 style=&quot;background-color: rgb (255, 99, 71);&quot;&gt;…&lt;/h1&gt;<br>&lt;h1 style=&quot;background-color: #ff6347;&quot;&gt;…&lt;/h1&gt;<br>&lt;h1 style=&quot;background-color: hsl(9, 100%, 64%);&quot;&gt;…&lt;/h1&gt;<br><br>&lt;h1 style=&quot;background-color: rgba (255, 99, 71,80%);&quot;&gt;…&lt;/h1&gt;<br>&lt;h1 style=&quot;background-color: #ff634760;&quot;&gt;…&lt;/h1&gt;<br>&lt;h1 style=&quot;background-color: hsla(9, 100%, 64%,0.7);&quot;&gt;…&lt;/h1&gt;</pre><h4>2.CSS background:</h4><p>These are some CSS background properties:</p><p><strong>background-color, background-image, background-repeat, background-attachment, background-position</strong></p><p>The <strong>background-color</strong> property specifies the background color of an element.</p><p>The <strong>background-image </strong>property specifies an image to use as the background of an element.</p><p>By default, the <strong>background-image </strong>property repeats an image both horizontally and vertically. This will happen when image fails to cover what it supposed to cover.(eg:-when image size is small) That’s when we use <strong>background-repeat .</strong></p><p>The <strong>background-attachment </strong>property specifies whether the background image should scroll or be fixed (will not scroll with the rest of the page)</p><p>The <strong>background-position</strong> property is used to specify the position of the background image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c70e26a9803a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>