teleren/devto huggingface dataset:
Articles about Session and Cookies | PHP Examples
Tags: session, cookies, php
Published: 2019-06-09 08:38:07

---
title: Articles about Session and Cookies | PHP Examples
published: true
description: Articles about Session and Cookies | PHP Examples
tags: session, cookies, PHP
cover_image: https://thepracticaldev.s3.amazonaws.com/i/jucvfbzgazf43pfk3z3y.png
---

<b>1) PHP Cookies and Sessions | Detailed Explanation | Coding Examples</b>
Read Here: <a href="https://fullstackgeek.blogspot.com/2019/06/php-cookies-and-sessions-examples.html">PHP Cookies and Sessions | Detailed Explanation | Coding Examples</a>

<b>2) PHP Session & PHP Cookies with Example</b>
Read Here: <a href="https://www.guru99.com/cookies-and-sessions.html#7">PHP Session & PHP Cookies with Example</a>

<b>3) How to change the session timeout in PHP?</b>
Read Here: <a href="https://stackoverflow.com/questions/8311320/how-to-change-the-session-timeout-in-php">How to change the session timeout in PHP?</a>

<b>4) Difference Between Session and Cookie in PHP</b>
Read Here: <a href="https://www.sitesbay.com/php/php-difference-between-session-and-cookie">Difference Between Session and Cookie in PHP</a>

<b>5) What is the difference between session and cookies?</b>
Read Here: <a href="https://www.tutorialspoint.com/What-is-the-difference-between-session-and-cookies">What is the difference between session and cookies?</a>


<div id="custom_sub_div">
Liked this blog? Don't miss out on any future blog posts by <a href="https://www.specificfeeds.com/fullstackgeek?subParam=followPub" target="_blank">Subscribing Here</a>
 </div>
Anyone using VIM here?
Tags: vim, vscode, texteditor, visualstudiocode
Published: 2019-06-09 08:08:20

---
title: Anyone using VIM here?
published: true
description: 
tags: VIM, VSCode, Text Editor, VisualStudioCode
---


Anyone using VIM here?

I'd like to write a post about The Power of VIM + VSCode. 

Have been using it for about 2 years+ now. Mostly for web development, JS and friends.  So far have been extremely useful for me.

I'd like to do a quick survey. How many people use / doesn't use VIM here ? 🤚🏻

Update: I am compiling a post about VSCode + Vim Tips and Tricks here https://dev.to/muhajirdev/vim-visual-studio-code-tips-tricks-with-video-gif-8on
Estimating quality of a codebase
Tags: discuss
Published: 2019-06-09 07:34:01

---
title: Estimating quality of a codebase
published: true
description: How do you go about it? 
tags: discuss
---

# Just how? 

You've just got a new job, or a new gig. You are now working on an existing software with a codebase already in place. You start reading the code to understand the code and check its quality. 

- What do you look for when estimating the quality of the code written? 
- What are some red flags that would give you an indication that something is wrong? 

Really curious about what you think.
Mindset Behind Programming
Tags: productivity, beginners, career, programming
Published: 2019-06-09 05:45:08



To the 0/1 world, we are aliens. 🤓
Most of the time we need to communicate with it to get things in real world done.

This is not only about getting one more programming language but also about getting one more handy tool into your toolbox to help you get your "nailed it!" moment. So the tool could be a programming language, an interesting framework, a set of protocols, a version control system, etc.

Don't speak to speak, do speak to communicate. Coding is about to communicate with machines to get your work done and achieve your goals. So do good communications.

Code as much as possible to strengthen your coding muscle. 

Read good code as much as possible to learn how excellent it could be.

It's never a bad idea to learn more about the fundamentals, such as operating system, networking, algorithms, etc.

You don't need to master your tool to get things done, you master it by getting more and more things done. But you need to master it to get things done well and quickly. 

Know your tools, don't just be copy-paste hero. People aren't born to know everything. It takes time, but it's worth it.

Keep high efficiency, pause when you feel like not. Pushing yourself too far is a good way to ruin the 0/1 world, they will get back at you by costing more time, effort, even money. What you can get from pause would be an even better idea.

Don't set yourself limitations, define your goals, your expectations. What you what it to be? How you want it to looks like?




Happy hacking, happy coding! 8D
Why developers should think like end users
Tags: internet, gutenberg, softwaredevelopment, webdev
Published: 2019-06-18 07:36:13

---
title: Why developers should think like end users
published: true
tags: internet, Gutenberg, software development, web development
canonical_url: https://kevinhq.com/why-developers-should-think-like-end-users/
---

My opinions why we, developers should think like end users or at least try to listen to their feedback on the app and updates we

[Continue reading why developers should think like end users](https://kevinhq.com/why-developers-should-think-like-end-users/)

The post [Why developers should think like end users](https://kevinhq.com/why-developers-should-think-like-end-users/) appeared first on [kevin's tech blog](https://kevinhq.com).
Getting a Free Domain For Students
Tags: hosting, domain, namecheap, students
Published: 2019-06-09 03:52:24

---
title: Getting a Free Domain For Students
published: true
description: Student? Claim a free domain now!
tags: hosting, domain, namecheap, students
canonical_url: https://rightfrombasics.com/posts/getting-a-free-domain-for-students/
cover-image: https://i2.wp.com/rightfrombasics.com/wp-content/uploads/2018/11/domain-upd.png
series: Hosting
---

If you are student and you are looking to get a domain, then you're in luck! You can get one for free with Namecheap. Namecheap provides services such as domain name registration and web hosting services.

If you want a free domain, check out their student offer [here](https://nc.me/).

![Namecheap Student Deal](http://imgur.com/AM8g6yo.png)

There is a small catch though. You will only be able to get the `.me` domain for free. `.me` domains are usually used for personal sites and blogs (like mine). 

If you're looking for `.com`, `.net`, `.io` and other domains, then this offer will not apply - you won't get the domain for free, but rather under a discounted rate. Despite that, Namecheap's domain hosting is extremely affordable and comes in at only a couple of dollars per *year*.

### Looking for Hosting?
- If you want the best Wordpress hosting, I highly recommend [Bluehost](https://www.bluehost.com/track/harishv/). Get a great discount when you [apply through this link](https://www.bluehost.com/track/harishv/).
- Also, get a massive discount with [Hostinger](https://www.hostg.xyz/aff_c?offer_id=6&aff_id=2883) when you [apply through this link](https://www.hostg.xyz/aff_c?offer_id=6&aff_id=2883).

Both services offer great uptime and customer service. Oh did I mention - you get a **free domain name** with both Bluehost and Hostinger!
Blogging with a growth mindset
Tags: beginners, growth, blogging
Published: 2019-06-09 03:35:07

## Is there a point in blogging? 

I've thought about starting a personal programming blog a couple of times before, but I always struggle with finding a reason to do it. I worry about whether anyone will read it, whether the posts I write will even be useful, or on the off-chance that someone _does_ read it, that they will think it's terrible or not worth their time. 

Even talking about these worries right now, and being open about my feelings, is something that I struggle with.

Lately I've been binge-reading a bunch of self-help books, and came across Carol Dweck's book about fixed and growth mindsets. To sum it up:

> A person with a **fixed mindset** believes that their abilities/intelligence are fixed from birth and cannot be changed, while a person with a **growth mindset** believes that they can be improved through hard work.

When it comes to blogging (and other areas of my life too!) I see in myself a fixed mindset - I look at all the amazing content that other people put out, and don't see myself ever being able to do the same thing. And it's hard to change this mindset! 

So I think all I can do now is recognise that I have this mindset, and push through it. I'll blog, even if I think my posts are terrible, knowing that the more I blog, the more I improve, and maybe someday someone will find the posts that I write useful.

(👋 This is my first time posting on DEV, so hi! Let me know your thoughts!)
HTTP Archive (Har) Analysis
Tags: devtools, webdev, awk, jq
Published: 2019-06-09 02:59:15

On the blog linked below, I show how to query the contents of a har output to quickly analyze all request/response headers for the session captured. You can use this as a base to query all the requests in a session for any headers or other data you might need within the HTTP Archive.

Google Chrome Dev Tools is great for inspecting Site traffic, debugging and so much more but sometimes I find my self needing more data from it.

Complete Blog: 
https://roymartinez.dev/2019-06-05-har-analysis/
A pet project: sorting colors
Published: 2019-06-09 01:14:17


*Cover photo by Ana Cruz via unsplash.*

I was told to talk about my pet projects:

{% link https://dev.to/yashints/pet-projects-the-secret-to-keep-yourself-updated-51e0 %}

So here goes nothing...

Sorting colors! It can't be done--well, not perfectly. Colors are represented in a 3d space, and the type of sort here is represented linearly, and that's just not going to look quite right no matter how you slice it. 

![A cube made of colorful other cubes, representing the RGB color space.](https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/RGB_Cube_Show_lowgamma_cutout_b.png/800px-RGB_Cube_Show_lowgamma_cutout_b.png) *RGB Colorspace representation, sourced from [Wikipedia](https://en.wikipedia.org/wiki/HSL_and_HSV)*

![A cylinder representing the HSV colorspace, with a slice removed to show the inside.](https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/HSV_color_solid_cylinder_saturation_gray.png/640px-HSV_color_solid_cylinder_saturation_gray.png) *HSV Colorspace representation, sourced again from [Wikipedia](https://en.wikipedia.org/wiki/HSL_and_HSV)*

![A bicone representing the Hue/Chroma/Lightness model of color. This is getting wacky.](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/HSL_color_solid_dblcone_chroma_gray.png/800px-HSL_color_solid_dblcone_chroma_gray.png) *What even is colors? How can colors be real if our eyes aren't even real?*

The question I want to ask is: Which way is *least bad*?

![A screenshot of my color sorting project. It does not look very good. If you are visually impaired, and that's why you're getting this text, you aren't missing much.](https://thepracticaldev.s3.amazonaws.com/i/vmi316fdzc3k2z9uw33n.png)

It's great, because literally nobody cares about this but me. I can nerd out about color all I like.

So far in setting this up, I've learned a *lot* about modern build methods and how much I don't care to use them on a project spanning approximately a dozen files. They add an awful lot of work and restriction to the stack and setup of a project, and it ended up not being worth it for what ended up being two lines of code in a shell file run from Atom.

I also am putting an arbitrary constraint on myself to see if I can finish it without including any dependencies as packages. We all joke about `node_modules`, right? At time of writing, the external loads are a font and jQuery (I know, I know, it's `date('Y')`, *shh*), and other than that it's just sass and minify installed globally. I'd like to challenge myself to keep this lean.

I also refreshed myself on ye olde jQuery. It's been awhile. Like meeting an old friend again. It's changed a bit since I last saw it!

It's not done yet, but if you happen to want to take a look at this while its guts are still all over the floor, here it is:

[https://tchaflich.github.io/color-sorts/](https://tchaflich.github.io/color-sorts/)

{% github https://github.com/tchaflich/color-sorts %}
Old geek gets a new job
Tags: jira, sre
Published: 2019-06-09 00:11:47

I was re-introduced to the Jira team over videoconference last week during sprint planning. I remember the sole engineer and the business/support lead from the initial build-out almost 4 years ago. I was introduced to the other business/support person when they were working in a backend role, they seem much happier now. The Tech Lead overseeing this circus seems good-hearted, asked for clarifications instead of making an executive (i.e. totally groundless) decision and generally seems like a reasonable sort.

I was lobbed a softball by the sprint planners: quick go/no-go monitoring for the Confluence instance because *there is no application monitoring right now*. 

A Jira ticket was opened at the beginning of the year for troubleshooting instructions that support analysts could follow.

Before I left for the GHE team there was a bun fight about the scope of Jira, should the system be open for business folks as well as the engineering teams that commissioned it? It seems like the "wide-open" model was selected without anyone thinking about the cost, we need to [audit for idle seats](https://dev.to/lbonanomi/reclaiming-jira-license-seats-24c8).

No one requested me to audit the KTLO work queues but they hired a pig, so I'm going to sniff for truffles.
Old Geek, New Tricks
Tags: jira, sre
Published: 2019-06-09 00:07:59

I've just transferred back into my employer's Jira/Confluence team after 3 years with the Github Enterprise crew. I intend to maintain this series as a diary of my post-transfer tasks and experiences.

*Some details will be left intentionally blurry to maintain employer confidentiality and potential coworker embarrassment.* 
*Language may occasionally be salty by Dev.to standards.*
Let's talk about CSS Subgrids
Tags: css, subgrid, csssubgrid, cssgrid
Published: 2019-06-09 14:48:30

---
title: Let's talk about CSS Subgrids
published: true
tags: css, subgrid, css subgrid, css grid
canonical_url: https://apvarun.com/lets-talk-about-css-subgrids/
---

CSS Subgrid is a part of [CSS Grid Level 2 Spec](https://www.w3.org/TR/css-grid-2/) by CSS working group. It solves a common use case which wasn’t so obvious when grids were launched. Let’s dig deep into what it is!

CSS grids are primary used for building complex layouts for the web. And when you start building such layouts, there would be use-cases where you would want to use grids for child components as well. This is great! But there is one non-obvious thing that happens when you do so.

Each time you write `display: grid`, a new grid context is created which is totally unaware of the parent grid.

Now, due to this obscure spec, you would end up with layouts that are not aligned to your main grid(parent’s grid) of the webpage. And it’s because of this problem, Subgrid are here.

> Subgrid allows a grid-item with its own grid to align in one or both dimensions of the parent’s grid

Here is an example of a two-column grid container with two child elements.

[![Grid without subgrid](https://apvarun.com/static/d15b3e50b78113797b2978bd749baaf3/b9e4f/grid%20with%20child.png)](/static/d15b3e50b78113797b2978bd749baaf3/d3ebb/grid%20with%20child.png)

In this case, the two cards are a part of grid and are aligned properly. But in you see the content of the grid, they are aligned differently for each other although the card itself is a grid.

```
/* Styles for grid without subgrid */
.container {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  grid-gap: 10px;
  .card {
    display: grid;
  }
}
```

### With Subgrid

When you specify the child card as a subgrid, then we can specify the child to use parent’s grid (with auto rows in this case).

[![Grid with subgrid](https://apvarun.com/static/a8dfdd3ee7c64032230dc9cb989ea6e9/b9e4f/grid%20with%20subgrid.png)](/static/a8dfdd3ee7c64032230dc9cb989ea6e9/8b54b/grid%20with%20subgrid.png)

Here, the grid line No. 2 is the same for both the cards, thus making the alignment same.

```
/* Styles for grid with subgrid */
.container {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  grid-gap: 10px;
  .card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}
```

PS: Properties like `grid-gap` and `names grid lines` are also inherited by the subgrid from parent grid.

_Checkout the above example for yourself in [Codepen](https://codepen.io/apvarun/pen/RmXOzX)._

Currently the **Subgrid** spec is only available in Mozilla Firefox Nightly release, but support for other browsers are also currently being worked upon. [caniuse.com](https://caniuse.com/#feat=css-subgrid)

* * *

**Bonus:** Here is a Scrimba Screencast that explains Subgrid with code.

https://scrimba.com/c/cgq2knS6
Video: People like us 📹
Tags: learning, information, peers, mentoring
Published: 2019-06-08 21:19:20

---
title: Video: People like us 📹
published: true
description: Who do you learn from? Is Warren Buffett the only source of good information on personal finance? Is Paul Graham the only source of good information on building a startup? Or can we also learn valuable lessons from "people like us"?
tags: #learning #information #peers #mentoring
cover_image: https://thepracticaldev.s3.amazonaws.com/i/k05vgpz2gfd940oiv7in.png
---
Free website template only for Geeks,Programmers,Developers and hackers.
Published: 2019-06-08 20:31:04

---
title:Free website template only for Geeks,Programmers,Developers and hackers.
published: true
description: 
tags: 
---
Link : https://github.com/0xPrateek/Portfolio-Template

Highlights

    1.Setup is very easy and you get a portfolio template of your own for free.
    2.To add your details, you just need simple editing skills. No code changes         required!
    3.Simple and Fast website User Interface.
Powerfull Github stargazers information gathering tool 
Tags: github, opensource, python
Published: 2019-06-08 20:29:59

---
title: Powerfull Github stargazers information gathering tool 
published: true
description: 
tags: GitHub,opensource,python 
---

link :: - https://github.com/0xPrateek/Stardox

Stardox is an advanced github stargazers information gathering tool. It scraps Github for information and display them in list tree view.It can be used for collecting information of your's/someones repository stargazers details.
Fastest Image scanner using openCV
Tags: opensource, python
Published: 2019-06-08 20:28:07

---
title: Fastest Image scanner using openCV
published: true
description: https://github.com/0xPrateek/Photoroid
tags: opensource, python
---
Link : https://github.com/0xPrateek/Photoroid
Photoroid is the fastest, Lightweight, easy to use image scanner tool. Photoroid is made using OpenCV with Python. It can be used to find a similar image from a list of images without taking much time. Photoroid can be very helpful in finding similar images when the number of images to scan is bigger. It can also be helpful in finding duplicate images.
DEV.to not working in Firefox
Tags: devto
Published: 2019-06-08 18:19:58

---
title: DEV.to not working in Firefox
published: true
description: DEV.to stopped working for me in Firefox
tags: dev.to
---

Dev.to stopped working for me in Firefox (yes, that's my default browser). Only the top article in the feed is displayed. My avatar is not shown, my tags aren't loaded... It started when there were the problems with Firefox extensions, but I don't use many of them and I doubt dev.to depends on any of them.

It works fine in Chromium or Opera. Does it work for you? Any ideas what I should do to fix it?

![Screenshot](https://thepracticaldev.s3.amazonaws.com/i/i6fqpe5exmvo39grqgmz.png)
gar-cron: A python script to remind you about your github activity
Tags: python, github, productivity, discuss
Published: 2019-06-08 18:07:30

Dear Folks,

Since last few days, I've been working on a side project called [gar-cron](https://github.com/prahladyeri/gar-cron) and in this post I'd like to share with you its details.

If you are like most coders (at least the open source enthusiastic ones), you want your github commits activity look like this, isn't it?

![good committer](https://thepracticaldev.s3.amazonaws.com/i/wd78xuxykalh6teo9d1z.png)

But sometimes, we get involved in some personal issues or loose interest in coding altogether which isn't good, especially if your career depends on coding. Programming is 90% a practical science and the more you practice, the better you'll be in your trade.

If you loose track, it then turns into a cycle - you don't code, so you get depressed and depression further keeps you away from writing more code. This is quite similar to a phenomena called *writer's block* which is quite common among fiction writers, writing and coding has lots of similarities, after all!

It has happened to me also several times and in times like these, I wish there was some guardian angel who'd simply command me to start a project and get coding (and keeps nagging until I actually start coding).

`gar-cron` (or github activity reminder cron) is an attempt to create that guardian angel! Simply speaking, `gar-cron` is a python script which monitors your github activity and shoots you an email if you haven't committed anything since last 3 days. It does this each time it runs, so you can schedule this to run once or twice per day.

You can configure it to run as a cron on your linux machine by running `crontab -e`, or using the scheduler through control panel on your windows machine.

You'll also need an email account with an email provider who supports email sending through SMTP. Popular ones like GMail/Hotmail don't support this without oAuth, but you can register one at [gmx.com](https://gmx.com) or something.

Installation of the cron is as simple as:

    pip install gar-cron

And to run it, you can simply:

    gar-cron

When you run gar-cron for the first time, it will prompt you to set values in config.json along with its path. The values you need to set should be as follows:

	{
		"github_username": "<your github username>",
		"alert_email": "<your email address>",
		"smtp_server":"<smtp server>",
		"smtp_email": "<smtp sending email>",
		"smtp_username": "<smtp username>",
		"smtp_password": "<smtp password>",
		"smtp_port": "<smtp port>"
	}

Once you do this, run `gar-cron` again to ensure that it works. You may then configure it as a user cron job on linux by running `crontab -e` or on windows by scheduling it through the control panel.

For testing of email reminder, you may temporarily configure someone else's `github_username` in config.json who hasn't committed since a long time before running it. If you face any issues, you may raise them on the [github issue tracker](https://github.com/prahladyeri/gar-cron/issues).

Happy coding!