teleren/devto huggingface dataset:
What context gets passed to Django Admin template
Tags: django, python
Published: 2019-07-12 03:13:53

---
title: What context gets passed to Django Admin template 
published: true
description: Hacking Django Admin?  You'll need to know what context variables are passed down to the templates you're working with.  Here's how to find out.
tags: django, python
---

So I'm modding Django Admin, like **heavy**.

It's fun.  I really love the platform.  You can bust out a dashboard, like **lightning fast**. 

Anyways, enough chit-chat.

Let's say you're editing the `change_form.html` template.  (you know, the one that lets you change an instance of a model), and you want to know what context variables get passed to that template.

If you're like me, you head over to Django's Github repo and grab [the contents of the default `change_form.html`](https://github.com/django/django/blob/master/django/contrib/admin/templates/admin/change_form.html).

Then, you want to know what context gets passed down to the template.  Here's what you do:

1. Find a variable in the template.  I just spotted `is_popup`.
2. Use Github's search bar to find instances of `is_popup` in the Django repo:
    ![](https://thepracticaldev.s3.amazonaws.com/i/ne1hexl75o31ktxzfla6.png)
3. Notice that the first result has the word `context` kicking around.. probably a good bet.
    ![](https://thepracticaldev.s3.amazonaws.com/i/mxpikroxhowvqggy2924.png)
4. Click through to the result, and you'll see [the full context for the view getting built](https://github.com/django/django/blob/b9cf764be62e77b4777b3a75ec256f6209a57671/django/contrib/admin/templatetags/admin_modify.py#L65)

✌️ that's it for now, hope this tip will help you! 

---

I can be found [on Twitter @connorbode](https://twitter.com/connorbode) or at [matix.io, where I write code](https://matix.io).

Come say hi 👋!
Programmers and Documentations
Tags: productivity
Published: 2019-07-12 02:06:22

It's my first post here besides I'm not good in writing introduction and I don't blog for a long time, but I will start with some questions before that I want to give a brief about who I am?

A full stack developer in PHP and JavaScript:

- PHP: (Vanilla: Design Patterns, OOP, PDO - MySQL), Laravel ecosys
- JavaScript: 
	- Front-end: Vue(Vuex, Vuetify and Nuxt)
	- Back-end: Node/Express/MongoDB
	- Mobile: Ionic

I just start learning Python for a month a go, now the questions are:

- It is okay to stuck with docs?
- Doesn't back to'em about anything considered a bad practice?
- Can you accept a job offer although you using docs when you coding or google about issues/bugs that you facing?

I mean you as a programmer/developer or even engineer is it okay for you to go back to docs of languages/frameworks/technologies that you use? I'm kinda feel ashamed when I can't remember about: functions, APIs... then go to official website and start reading about it, a lot of time doing this to the same thing that I searched about it before as example in Laravel, I can't move on from authorization/queues/testing each time I want to use them in a project I back to docs for help, the samething with Vuex especially for Mutations and Actions without talking about Node and mongo.


I don't know but I feel that isn't a good thing and because of that I canceled job offers. I just want your thought about it.

Thank You.
Twitch Social Popup
Tags: codepen
Published: 2019-07-12 01:48:43

<p>A simple HTML based popup that will display social networks.</p>

<p>If you're coming here from CodePen's front page and wondering what this is, I made it a while back to allow streamers (on Twitch, YouTube, etc.) to show their social networks during their broadcast.</p>

<p>Myself and my team make quite a few free resources for streamers, so if you're interested - check them out here: <a href="https://nerdordie.com/product-tag/free-resource/" target="_blank">https://nerdordie.com/product-tag/free-resource/</a></p>

{% codepen https://codepen.io/NerdOrDie/pen/vNEvee %}
How to leverage browser caching in NodeJs?
Tags: node
Published: 2019-07-11 23:31:31

Hello everyone, I built a small web application in angular and nodejs. When uploading my site to the site gtmetrix.com, the result of the audit was that I am not taking advantage of the nagevador cache.

I do not know how to implement this requirement that gtmetrix requests, to be specific I do not know what file or complement I should include, or what to modify, I am a junior programmer and I have been assigned this task.

Please if someone has a guide or documentation to solve this inconvenience or know what I should do to include the control cache on my website.

Thanks :)
🎩 JavaScript Enhanced SCSS mixins! 🎩 - Using canvas for unique UI special effects
Tags: javascript, css
Published: 2019-07-11 22:34:51

Update, backdrop filter is finally here, use it instead of this method or design a polyfil based on this sort of idea.

I have been working for a long time refining a UI technique that I rarely see but the results could be mind blowing, I want to share this with you so hopefully we can get better tools to do this sort of thing.

The idea of using a canvas to generate pretty pictures doesn't appeal to me as much because practically I build UIs for utility. I see another potential for canvas which was inspired by the css element() function, supported exclusively by Firefox for many years.

It is possible to take a client side screenshot of your entire document and apply that to a canvas. Okay so what, big deal?

Note that this will so well on mobile chrome as changing background position is pretty terrible to paint.
{% codepen https://codepen.io/acronamy/pen/XLoVbR %}

Okay so what gives? By layering and manipulating this screenshot it is possible to create all sorts of effects. I have the Mac geenie distort effect in my codepen somewhere (WIP).

So what's the problem? There is no native screenshot API despite existing in headless chrome, so html2canvas needs to be used, that equals more weight, then the experimental canvas filter sort of hasn't worked so in comes stackblur.

Responsiveness is also tricky, in my example I don't want a screenshot taken on every resize, so I have opted for one taken after resize.

So in summary, I'm waiting for CSS backdrop filter or canvas filter and a native screenshot API or video screen capture to take video without having to choose an input. Composit UI might be a fun challenge, go have a play around with it.
Have you tried IntelliCode? If so, what's your favorite (or least favorite!) suggestions so far?
Tags: discuss
Published: 2019-07-11 22:32:28

---
title: Have you tried IntelliCode? If so, what's your favorite (or least favorite!) suggestions so far?
published: true
description: 
tags: discuss
---

Hey All! My team builds [Visual Studio IntelliCode](https://visualstudio.microsoft.com/services/intellicode/) and we're curious to learn how it's working for folks. In particular, are there any examples of contextual suggestions it provided that were really helpful and/or unexpected (in a good way!)? If so, I'd love to hear about it. If possible, it would be really fun if you could share a screenshot that helped illustrate your example within Visual Studio or [Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode) 😊

![](https://user-images.githubusercontent.com/116461/61089524-449b0780-a3f0-11e9-890f-5dc354b383bf.png)

Additionally, if you've encountered situations where the suggestions didn't seem quite right, or could have been more helpful, that would be extremely helpful to know about as well 👍
What's your keystone habit?
Tags: discuss, productivity
Published: 2019-07-11 21:25:12

I have a couple of habits that I want to build - sleeping 8 hours a night, reading every day - and yet some days I find it so hard to maintain the willpower to get anything done! 

In The Power of Habit, Charles Duhigg touches upon the idea of a **keystone habit** as a habit that, once you complete, can start a chain reaction with your other habits.

For me, if I go to bed earlier (and as a result naturally get up earlier) I find it takes a lot less willpower to tick off all my habits for the day. With the added bonus of feeling productive and happy as I head into work!

Do you have a keystone habit? I'm interested to know!
What Else Does This Landing Page Need?
Tags: help, feedback, discuss, showdev
Published: 2019-07-11 21:03:10

![](https://thepracticaldev.s3.amazonaws.com/i/gh5ljvvanzjrz1t4ikk0.png)

I'm working on the Rewards Program landing page for work, and I'm curious what Dev.to thinks it needs or what could be better, etc. 

## My Thoughts

* Instead of having a "Sign Up" and "Sign In" button that have equal weight, just having a "Sign Up" button with an "Already Have An Account? Sign In" Link under it. 

* Including a slider of cards that include the things you can earn points for and what you can redeem points for.

* FAQ section.

## Any other suggestions/comments? 

Thank you for your time and feedback.
How to fix all Ruby "Failed to build gem native extension" Errors in OS X
Tags: ruby, commonissues
Published: 2019-08-21 11:30:55

---
title: How to fix all Ruby "Failed to build gem native extension" Errors in OS X
published: true
tags: ruby, common-issues
canonical_url: https://blog.codenamev.com/how-to-fix-failed-to-build-gem-native-extension-error-os-x/
---

```
cp /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg ~/Desktop && open ~/Desktop/macOS_SDK_headers_for_macOS_10.14.pkg
```
![How to fix all Ruby](https://blog.codenamev.com/content/images/2019/07/fixed-it-1.gif)

Boom.  Now start removing all those pesky overrides you set in `~/.bundle/config`

All credit goes to the amazing [João Rocha da Silva](https://github.com/silvae86).  Be sure to [check out his detailed write-up](https://silvae86.github.io/sysadmin/mac/osx/mojave/beta/libxml2/2018/07/05/fixing-missing-headers-for-homebrew-in-mac-osx-mojave/) on why you need to do this.  TLDR; Mac OS X 10.14 no longer places the include libraries in the standard `/usr/include` directory and locked by SIP.
Can you come up with better band names?
Tags: joke
Published: 2019-07-11 20:35:50

![Band names mixed with programming terms. E. g. Foo Bar Fighters](https://i.redd.it/6jnwqxsyfc831.jpg)

Source: https://www.reddit.com/r/ProgrammerHumor/comments/c972q3/thats_a_festival_i_wanna_attend_to/
What are you doing while twitter is down?
Tags: funny, webdev, productivity
Published: 2019-07-11 19:40:45

---
title: What are you doing while twitter is down?
published: true
description: Might as well all hang out!
tags: funny, webdev, productivity

---

So twitter has quite the outage going on. #hugops to all involved! 

In the meantime, what are you up to?

Any posts we should all read to make productive use of the time?
Twitter's Down! Quick! Be my social distraction!
Tags: discuss, help, jokes
Published: 2019-07-11 19:40:33

Twitter's down and I don't know how to procrastinate productively without it! 

Quick, let's start a thread about what you SHOULD be working on, but what you'd RATHER be working on!

I SHOULD be converting my site over from Jekyll to 11ty, but instead, I'm making a joke discussion thread and uploading even more [design critiqes](https://peerreviews.dev) to youtube to be even MORE weeks ahead of my production schedule.

What are you doing to procrastinate things without Tech Twitter today?
A marketplace for buying and selling side-projects
Tags: showdev, webdev, discuss, javascript
Published: 2019-07-11 19:29:56

Hey Dev.to community!


I just launched [Whobal](https://whobal.com) - a marketplace for buying and selling online businesses (side projects, saas apps, chrome extensions, etc.). It is a free platform for the founders to sell their businesses without paying any commission.


## 💡Seller?


-  [List unlimited projects](https://whobal.com/signup) for sale
- Receive offers from buyers (only verified)
- Sell securely via Escrow.com (Escrow Pay is integrated)
- No paywall for unlocking offers
- Absolutely 0% commission on successful sale unlike Flippa or similar sites which charge 10% to 15% commission

You can sign up as a seller and add your projects here: https://whobal.com/signup

## 💰Buyer?

- [Join our buyers network](https://whobal.com/buyers-network) for free
- Get new businesses via email when they are listed for sale
- 24 Hours early access to incredible businesses (curated by our team)
- Contact seller to ask a question or simple make an offer
- Buy securely via Escrow.com 
- No commission / broker fees

## 👉 What's next?

- Listing verification
- Google Analytics integration for traffic stats
- Stripe integration for revenue stats

## ✍️ Feedback?

I'd appreciate any feedback from the community, specifically on the landing page copy, and what you like or dislike about the platform.


**Thank you so much 💖**
React Native just got better! The New Javascript Engine is here!
Tags: reactnative, javascript, mobile, react
Published: 2019-07-11 18:14:10

[Hermes Engine](http://hermesengine.dev) for React Native is here!

So it started from here : 

{% twitter 1149347916877901824 %}

Facebook officially released React Native v0.60.2 about [two hours ago]((https://github.com/facebook/react-native/releases/tag/0.60.2)) which enables the engine as an opt-in feature. This brings a really big advancement on mobile development with React Native as it will give the Android Applications built with react native a significant boost in performance, smaller build size and less memory usage! 💜❤️

{% twitter 1149354596558671872 %}

And the integration is so easy! Just enable it in your `build.gradle` file and that's it. Done 🙆‍♂️ Literally, JUST ONE LINE OF CODE AND THATS IT! ✨

You can see the difference on app startup here!👇 :

{% twitter 1149365887427727361 %}

The only thing is that you need to upgrade React Native to version 0.60.2 which has a lot of significant changes (RN v0.60 was released a week ago - [see changelog here](https://github.com/react-native-community/releases/blob/master/CHANGELOG.md)) but well, the improvement for Android apps with this engine is AWESOME! Definitely trying it over the weekend! 💪 


Oh, and don't forget to follow [this discussion](https://twitter.com/HermesEngine/status/1149370023539961856) on [Hermes' official twitter account](https://twitter.com/HermesEngine)!

{% twitter 1149370023539961856 %}


Who all are excited for this? I definitely am!


You can also follow me on [twitter](https://twitter.com/rishiikc) for my shitposts and retweets! 🤓
What are JDK, JVM, and JRE? The exact difference between them.
Tags: java, kotlin, computerscience, beginners
Published: 2019-07-11 19:29:51

We all ask questions when we are learning something. The good programmers never accept things directly, they always ask questions and understand deeply how the system exactly works. It always gives you more confidence if you know the internal working of the system and understands each and every part of the code.

So now when I started learning java, the first thing I downloaded was JDK. In the fraction of second, my mind asked me that, *“Bro did you know what is JDK?”* and that was the second when this journey was started. Let’s take a look at what is JDK, JRE, and JVM, and how they work?

![](https://miro.medium.com/max/700/1*kWwENu8pRVnGHk9ziJ6y7A.png)

##JVM (Java Virtual Machine)
---
It simply helps to execute programs on your device. JVM simply provides an environment to run the programs.

Below are four main tasks of JVM:
1. Loads the code.
2. Verifies the code.
3. Executes the code.
4. Provides runtime environment.

Without JVM you cannot run the JVM based programs.

JVM is platform dependent. That means we have different JVM configuration for each software and hardware platform. That means the JVM which is run on macOS will not run on windows, for windows you have to download the windows version of the JVM.

##JRE (Java Runtime Environment)
---
Whenever we try to run the code, JVM requires some library set and files for code execution and these files are presented in JRE.

***JRE = JVM + set of libraries.***

So to run the JVM based programs, the JRE is a minimum requirement.

JRE is also platform dependent. That means we have different JRE versions for different platforms.

##JDK (Java Development Kit)

It is a full-featured development kit. JDK has each and every development tool that you may require for creating powerful java programs.

***JDK = JRE + Development tools.***

JDK contains the following tools:
1. Java Runtime Environment (JRE).
2. Interpreter.
3. Compiler (javac).
4. Archiver (jar).
5. Documentation generator (javadoc).
6. Some other necessary tools.

So in short, if you just want to run the java or JVM based code then JRE is required. But if you want to develop the java or JVM based programs then JDK is required.

So, guys, this was all about JVM, JRE, and JDK. Please let me know in the comments if I missed something.

Please check every day for new posts on Kotlin and other programming topics. Till then Keep Coding, Keep Loving.

Jai Hind, Vande Mataram 🇮🇳

Wanna get in touch with me? Here are links. I’ll love to become your friend. 😊

- [My Site] (https://www.jaytillu.in)
- [My Blogs] (https://blogs.jaytillu.in)
- [Twitter](https://twitter.com/jay_tillu)
- [Facebook](https://www.facebook.com/jaytillu.1314/)
- [Instagram](https://www.facebook.com/jaytillu.1314/)
- [Medium](https://medium.com/jay-tillu)
- [LinkedIn](https://www.linkedin.com/in/jaytillu/)
- [Github](https://www.github.com/jay-tillu)
- [Stack overflow](https://stackoverflow.com/users/8509590/jay-tillu)
or just mail me at jd.tillu@gmail.com
Digital Marketing Course In Gurdaspur 
Tags: digitalmarketing, javascript, html, wordpress
Published: 2019-07-11 19:10:48

I have been helped a lot by Dev community and Gsim. Both Dev community and team from : http://gsim.in helped me to become a full stack web developer.


I've learned a lot and i also practised few things since then and would love to apply that experience to my upcoming projects. Thanks GSIM and DEV
How much CSS should you know to use a CSS framework?
Tags: discuss, css, webdev, beginners
Published: 2019-07-11 18:45:22

---
title: How much CSS should you know to use a CSS framework?
published: true
description: CSS frameworks are an amazing tool for beginners, but what if you've never written a stylesheet yourself?
tags: discuss, css, webdev, beginner
---

I wonder this first learning web development through a CSS framework myself. I started back in the early days of [Sass](https://sass-lang.com/) wrestling with bootstrap layouts, learning just the right overrides to bend buttons and column layouts to my will 😈 

Looking back, I wonder how much this got in the way of me building the websites I actually wanted to build. I've also noticed similar struggles working other college students new to web development. Though they have the coding chops to work with React, they are completely unaware of how to, say, use flexbox instead of a heavy-handed Bootstrap grid. I've [given my own thoughts](https://dev.to/bholmesdev/let-css-frameworks-empower-you-not-control-you-3hm0) on how CSS frameworks can be used alongside plain CSS to never feel tied down to templates. However, the level of experience this requires may be out of reach for some or just not necessary.

So, I extend the question to you! What is the ideal CSS experience level before using a CSS framework? What does that mean for beginners?
What is the most promising upcoming Token in blockchain technology?
Tags: blockchain, cryptocurrency, technology, tokens
Published: 2019-07-11 18:28:01

---
title: What is the most promising upcoming Token in blockchain technology?
published: true
description: 
tags: blockchain, cryptocurrency, technology, tokens
---

The excitement that initial coin offerings have created within the past few years has been marred by an onslaught of scams, hacks, and significant mistakes committed by careless investors because it seems one among crypto’s biggest appeals restricted oversight and regulation has proven to be its greatest vulnerability.

But, crypto assets are already coming of age. With the arrival of the security token providing the crypto, the area is starting to reach an unknown level of legitimacy within the monetary community.

<b>Let's understand how security token offering is different from other tokens.</b>

Security Tokens are the next big thing it has a huge impact on the financial system and society at giant, as they mix the weather of blockchain technology particularly transparency and security with the legal certainty of traditional money instruments. This permits companies of any size to firmly enter this new evolving ecosystem. 

Security tokens promise to produce startups and SMEs with an alternative form of financing that gives rise to a new capital market with 24/7 trading that obviates the necessity for brokers and bank custody of securities.

In the following ways, that security tokens will amendment the market. In thought the assets that are represented by the STOs already exist within the real world, they act as a bridge between legacy finance and the blockchain world. Below are reasons why STOs have the potential to alter the dynamics of the crypto business as an entire.

<ul>
<li>Unlocking Liquidity</li>
<li>Opening Up Capital to World markets</li>
<li>Machine-controlled Compliance</li>
<li>Fractional possession and increased Market Depth</li>
<li>Enhance the Crypto Ecosystem</li>
<li>Reduction of corruption, fraud, and money-laundry</li>
</ul>

Security tokens show plenty of promise even if at the moment they remain underutilized. The long trend is clear there will doubtless be more security tokens coming to market within the next few years because the hype that surrounds them continues to create and some existing tokens are re-classified.

WeAlwin technologies is one amongst the leading <a href="https://www.alwin.io">blockchain development company</a> that can help to launch a security token successfully. From consultation to making security tokens and building a blockchain-based product, our team will assist you through each step of Security Token offering launch.