teleren/devto huggingface dataset:
New Luos feature: add access management to container.
Tags: embedded, opensource, container, luos
Published: 2021-07-29 08:27:31

### 🆕 Feature: Add access management to container

Sometimes the same **container** type can be used for input or output purposes. For example, a *STATE_TYPE* container (which is a basic True/False state) can be used for a button (read-only) or a relay (write-only). This is no big deal regarding the capability of your **code** because you deal with the messages as you want and make it work as you want, but other containers don't know if it's read-only or write-only.

This new access management feature allows you to declare the readability of your container for the other containers in your device. By default, a container is on a **READ_WRITE_ACCESS,** and you can choose to make it **READ_ONLY_ACCESS**, **WRITE_ONLY_ACCESS**, or even **NO_ACCESS**.

More details about this can be found in the [Containers accessibility](https://docs.luos.io/pages/embedded/containers/create-containers.html#containers-accessibility) section of our [documentation](https://docs.luos.io).
Python Variables and Expressions
Tags: python, beginners, tutorial, programming
Published: 2021-07-29 08:19:51

### Variables and Expressions

#### Declare a Variable
```Python
# Declare a variable and initialize it
v = 1
print(v)
```
Output: ` 1 ` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*(Integer)*

#### Re-declare a Variable 
```Python
# Declare a variable and initialize it
v = 1
print(v)

# re-declaring the variable works
v = "abc"
print(v)
```
Output: `abc` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*(String)*

So even if the variable has already been declared you can simply redeclare it and that works.

#### Concatenate Different Types
```Python
# ERROR: variables of different types cannot be combined
print( "abc" + 1 )
```

Output: `error` &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *TypeError: can only concatenate str (not "int") to str*

This is happening because Python is a strongly typed language even though you don't have to declare the type of a variable before you use it. What's happening is when Python goes to execute the code it infers a specific type for a value or a variable. You can't go back and change the type or combine it with other types.

#### Global and Local Variables
```Python
# Global vs. local variables in functions
Variable = "ABC"

#Define Some Function
def Function():
    Variable = "XYZ"
    print(Variable)
#End of Function

Function()
print(Variable)
```
Output:
```
XYZ
ABC
```
The reason is because inside the function the function gets it own local copy of whatever variables you declare inside the function. So the two variables even if they have the same name are considered two separate variables by the Python interpreter.
<br/>

##### Using *global*
```Python
# Global vs. local variables in functions
Variable = "ABC"

#Define Some Function
def Function():
    global Variable
    Variable = "XYZ"
    print(Variable)
#End of Function

Function()
print(Variable)
```
Output:
```
XYZ
XYZ
```

The function here is now operating on the global variable. Since we told the function that *Variable* is now global this assignment `Variable = "Local"` affects the *Variable* that's outside the function.

#### Delete Variable Definition
```Python
# Global vs. local variables in functions
Variable = "ABC"

#Define Some Function
def Function():
    global Variable
    Variable = "XYZ"
    print(Variable)
#End of Function

Function()
print(Variable)

#Delete Variable Definition
del Variable
print(Variable)
```

Output:
```
XYZ
XYZ
NameError: name 'Variable' is not defined
```

So essentially what this means is that you can undefine variables in real time by using the *del* statement.
Starting a beginner-friendly Machine Learning Series!
Published: 2021-07-29 08:00:06

Planning to start a Machine Learning and Deep Learning series, 1-2 posts every week.

Some of the topics I plan on covering are -
1. Why learn it?
2. Curated list of the best resources.
2. Basic installations.
3. Numpy and pandas basics.
4. Matplotlib and Seaborn basics.
5. Data Modelling.
6. Linear Regression.
7. Classification algorithms.
8. Clustering algorithms.
9. Model evaluation.
10. Bias and Variance.

Let me know if you want me to cover some specific topics!
Help needed ;-; 
Tags: swift, xcode, help
Published: 2021-07-29 08:00:04

import UIKit

class ItemTableViewCell: UITableViewCell {
    
    @IBOutlet weak var stepperText: UILabel!
    
    @IBOutlet weak var priceLabel: UILabel!
    
    var item : Item! // this is a view controller class that have the item data .. price as a double (var price: Double! )
    
    
    override func awakeFromNib() {
        
        super.awakeFromNib()
        
    }
    
    
    IBAction func stepper(_ sender: UIStepper) {
        
        var item : Item! // I called it again bc it didn’t connect in the stepper func ;-;
        
        stepperText.text = String(Int(sender.value))
        
        priceLabel.text = String(Int(sender.value))
        
        let n = item.price // HERE is the error (Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value)
        
        let nn = Double(Double(stepperText.text! ?? “0”) ?? 0)
        
        priceLabel.text = “\(n! * nn )”
        
        // i made this code to take the item price and when I use the stepper it multiple the step number with the price ;0; help plz
    }
}
Validate GraphQL Schema - Continuous Integration & Delivery Pipeline
Tags: graphql, graphqlinspector
Published: 2021-07-29 07:57:09

> This article was published on Sunday, May 3, 2020 by [Kamil Kisiela](https://twitter.com/kamilkisiela) @ [The Guild Blog](https://the-guild.dev/)

GraphQL Inspector since day one supported any kind of Continuous Integration and Delivery Pipeline.
Nothing new here, except now it's more flexible and super lightweight.

The new version of GraphQL Inspector comes with a **CLI crafter specifically for CI/CD**.

We recently released a lot more interesting features. You can read about them in
["New GraphQL Inspector and upcoming features"](/blog/new-graphql-inspector) article.

## CLI for CI?

The regular CLI comes with everything built-in. Loads Schema, Operations and Fragments from any
source. It can extract GraphQL pieces from GraphQL files, code files (Vue, React, Angular and even
Gatsby). The CLI supports GraphQL Endpoints, Git repositories and also files on GitHub.

It's heavy!

Usually, in the CI/CD pipeline you want to compare a current schema with the one in production and
detect breaking changes. Which means, you don't need all the other commands and features of
Inspector CLI.

## CLI Designed for CI/CD

That's why in new GraphQL Inspector, everything is a plugin.

You want to compare schemas and detect breaking changes?

```bash
yarn global add @graphql-inspector/diff-command
```

Your production schema is accessible through an endpoint but newly proposed schema is defined
in `.graphql` files?

```bash
yarn global add @graphql-inspector/url-loader
yarn global add @graphql-inspector/graphql-loader
```

Ok, everything is ready!

## How to Compare Schemas?

You can use the command below in your CI/CD pipeline:

```bash
graphql-inspector diff "https://api.com/graphql" "schema.graphql"
```

Here's how the result looks like. It shows a list of all changes and groups them by criticality
level (Breaking, Dangerous or Safe).

![](https://the-guild.dev/blog-assets/ci-ci-graphql-inspector/circleci.jpeg "Example result")

To learn more about CLI for CI, please read
["Continuous Integration"](https://graphql-inspector.com/docs/products/ci) chapter in our
documentation.

***

## Future Plans

We're working on **Azure and Bitbucket integrations** plus a **monitoring feature**. Talk to us to
try it out.

We want to make **Azure** and **Bitbucket** a first-class citizens in GraphQL Inspector and give you
the same experience as you get right now with **GitHub**.

**Monitoring** will enable you to analyze the traffic of your GraphQL APIs and provide details
needed to improve performance. Collecting informations about the usage will let you safely remove
deprecated pieces of GraphQL Schema.

> If you're interested, please reach out to us!

***

### Enjoy GraphQL Inspector!

We have big plans for Inspector, and you're very welcome to join us in that journey.

GraphQL Inspector is a tool created by developers, for developers and that's why we'd love to get
your feedback and shape GraphQL Inspector together!

Oh... and it's [Open Sourced](https://github.com/kamilkisiela/graphql-inspector)!
PHP TUTORIAL FOR BEGINNERS
Tags: phptutorial, phptutorialforbeginners
Published: 2021-07-29 07:46:11

Here, at phptpoint we begin from scratch where we can lead you on the practice of these languages.
This is a free and online site where the students who want to build a career in the same profession, can be trained about the working of the PHP.  To know full information about PHP programming language visit here https://www.phptpoint.com/php-tutorial/
My Set of Game Dev Tools
Published: 2021-07-29 07:27:52

# So every gamedev has his/her own set of tools that they use to make their own game. I have one too.

## Its for making a game if I am all alone in a team or I have to do a particular task by myself in a team if needed. 

## For Art:

 ### 1) Piskel for Pixel art:
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/28gqizfff7tjb3mq9k2g.png)
 Piskel is my goto app for pixel art. I used to use the web version but to me the offline version works better and I can store the files locally. I can set up a preview for a single frame and also for an animation too!! Its very easy to use and actually works.

### 2) Krita for vector art, Thumbnails and quite everything else:
Krita is my main art editor and I find it quite easy to use. I like making quite everything else that's 2d with krita. 
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p0kztvvjj3dkw64o7086.png)
 
### 3) BlockBench for voxel art:
I use blockbench for making voxel art. I am not good at it tho. I use the web app for it.
![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dz1k60tnyehur8dn3zdy.png)
 Its quite nice actually.
## For Music:
### Bosca Ceoil:
I use Bosca Ceoil for making music for games and other stuff. Its very beginner friendly and we can easily make some nice music even for a programmer.
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627541429235/pdFdjrnvy.png)
## For Programming:

### 1) Vscode for Programming almost everything:
I use vscode for coding almost everything. I luv the editor and it has a lot of cool features.
I jus don't use it for stuff like Java (recently in a blog I found myself an ide called jlite) and for godot.

It has code completion, extensions, debugging support and much much more!!!
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627541927490/Oa9tkFIr3.png)
Not to forget an integrated console!!

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627542067828/GDHWQXjbq.png)

### 2) Godot as Game Engine:

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627542586184/rnrV0l6LXI.png)
I use the free and open source game engine Godot for making games and all. Its a nice little game engine thats very powerful. I luv using it!!

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627542546432/jBAj_dBda.png)

I guess thats it for today so bye!!!! :D
Tải phần mềm miễn phí cho Windows, MAC, Android, iOS - Tool Miễn Phí

Published: 2021-07-29 07:24:49

Toolmienphi.com

Website Giới Thiệu Và Tải Miễn Phí Phần Mềm, Tải Ứng Dụng, Tải Game, Tài Liệu Và Webapp Cho Windows, Mac, IOS (IPhone/IPad/IPod Touch), Android.

Website: https://toolmienphi.com/
Email : Hodangquoc4298@gmail.com
Hotline : 0368010880
Địa chỉ: 379 Quang Trung, Phường 10, Gò Vấp, TP. Hồ Chí Minh

https://www.facebook.com/Toolmienphicom
https://github.com/hodangquoc4298
https://www.instagram.com/toolmienphicom/
https://www.linkedin.com/in/toolmienphi/
https://www.pinterest.com/Toolmienphi/
https://twitter.com/toolmienphi
https://profiles.wordpress.org/toolmienphi/
https://www.youtube.com/channel/UCKv8pOWIKbQTuZeQ_NoK5LA
https://500px.com/p/hodangquoc4298
https://angel.co/profile/edit/preferences
https://www.behance.net/toolmienphi
https://www.blogger.com/profile/09951803122916435347
https://dribbble.com/ToolMienphi
https://www.etsy.com/people/z00hxxkfwlwfno3i?ref=hdr_user_menu-profile
https://www.fitbit.com/user/9C2G9T
https://www.fiverr.com/toolmienphi
https://www.flickr.com/people/188007295@N08/
https://flipboard.com/profile
https://foursquare.com/user/1367064364
space bar clicker
Tags: spacebarclicker
Published: 2021-07-29 07:19:03

website, you can find out how fast you can type text with spacebar taps.
Zimm-co : This is another website that offers a fun and entertaining space bar clicker. <a href=https://spacebarcountertest.tumblr.com//"> space bar clicker

 There are three modes in which you can play i.e. 5-second, 10-second, and 20-second modes. The count of spacebar presses is displayed on the screen after the time period you selected gets over.
So, friends, I hope this space bar clicker test would help you to find out how fast can you press the spacebar. I personally enjoy this test and my high score in the 5
spacebar clicker
Tags: spacebarcliker
Published: 2021-07-29 07:16:38

another interesting website that offers a spacebar challenge. The objective of this test is to challenge users to see if they can press the spacebar clicker <a href=http://spacebarclicker.blogspot.com//"> space bar counter</a>. 300 times in 1 minute. There’s no specific reason behind taking exactly 1 minute but the spacebar test is entertaining and challenging and entertaining at the same timeare a typing enthusiast, you must have heard of the website  It allows users to take customized typing tests to improve typing skills. The website
space bar counter
Tags: spacebarcounter
Published: 2021-07-29 07:13:36

the Spacebar game on our website, there are few other methods that you can use to improve your space bar counter speed.
I am listing some <a href=http://spacebarcounter.wordpress.com//">spacebar counter</a> alternate ways for checking the spacebar speed below for your consideration.
Tynker : It is an online platform for kids to learn coding. A user has created a spacebar test using the Tynker code tools. The tool can be used to count the number of times the spacebar is pressed by the user. The count is displayed in the middle of the screen. Users can take the test in freestyle
Tentang Souvenir Payung, Souvenir Totebag, Lanyard dan Kaos
Tags: lanyard, kaossablon, payung, totebag
Published: 2021-07-29 07:13:30

Halo semuanya,

Disini 1promosimu akan menceritakan tentang beberapa souvenir-souvenir pilihan yang ada disana, yaitu :
1. Souvenir Payung Promosi
2. Souvenir Totebag atau souvenir tas
3. Lanyard atau tali id card
4. Bikin Kaos Sablon Satuan

Ternyata banyak juga yang mau dibahas ya. Mimin sampai kebingungan mau cerita apa saja kali ini.

[Sumber Web](https://1promosimu.wordpress.com)
Rendering a Liquid template with highlight tags in Jekyll
Tags: ruby, jekyll, contentful
Published: 2021-07-29 07:12:35


---
title: Rendering a Liquid template with highlight tags in Jekyll
published: true
description:
tags: ruby, jekyll, contentful
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k3r1tl51lch0z9fw4uee.png
---

While developing a blog in [Jekyll](https://jekyllrb.com/) it may happen that you'll have a need for rendering a custom template. I had this situation when trying to build a code snippet block with [Contentful](https://www.contentful.com/) that'd eventually be rendered in a Jekyll blog.

Jekyll's [docs](https://jekyllrb.com/docs/upgrading/3-to-4/#for-plugin-authors) suggest that you should parse the template like this:
```ruby
content = "<pre>{{ contentToDisplay }}</pre>"
template = Liquid::Template.parse(content)
```

Then you can render the template (passing optionally some variables):
```ruby
template.render('contentToDisplay' => "x = 1")
"<pre>x = 1</pre>"
```

It works nicely as long as long as you don't want to use a Jekyll Liquid tag, like the [highlight](https://jekyllrb.com/docs/liquid/tags/#code-snippet-highlighting) tag that I needed.

When you change the `content` to:
```handlebars
{% highlight ruby %}
{{ contentToDisplay }}
{% endhighlight %}
```

then rendering such template will raise a following exception:
```
undefined method `safe' for nil:NilClass
```

It took me some time to figure out what the problem was, but eventually it turned out that the [Jekyll::Tags::HighlightBlock](https://github.com/jekyll/jekyll/blob/master/lib/jekyll/tags/highlight.rb) class expects that there's `site` in template's context.

So, I ended up having three new problems:
1. What should be the type of the `site` variable?
2. Where do I get the variable from?
3. How do I pass it to the `highlight` tag?

After trials & errors I managed to answer all of these questions:
1. The tag expects `site` to be a `Jekyll::Site`
2. You can get the `site` object by calling `Jekyll.sites.first` (I suppose that in 99.9% of cases there's just one site so you shouldn't worry too much)
3. In order to pass the site context when rendering a template the previous call needs to be converted like this:
```ruby
@template.render!({ 'contentToDisplay' => "x = 1" }, { registers: { site:  Jekyll.sites.first } })
```

That's it! Now my template got rendered correctly and the syntax is nicely highlighted:
```html
<figure class="highlight">
  <pre>
    <code class="language-ruby" data-lang="ruby">
      <span class="n">x</span> <span class="o">=</span> <span class="mi">1</span>
    </code>
  </pre>
</figure>"
```

Hope you find this post useful and that it'll save you some time :)
spacebar counter
Tags: spacebarcountr
Published: 2021-07-29 07:08:45


This Spacebar counter helps you to count the quantity of your times you will hit the spacebar counter throughout a given amount of time.
Generally, some games <a href="https://spacebarcounter.org/"> spacebar clicker</a>. would like you to use the spacebar for some necessary actions like shooting or jumping etc. So, you higher be fast at that!
Spacebar speed take a glance at permits you to submit your score likewise as save your Personal Best scores for each interval. you will raise your friends to need the spacebar challenge and beat your score.

What is the spacebar counter?
Spacebar counter is help to count how much you press spacebar button. Spacebar button is located in footer side of keyboard this is horizontally shifted. In the keyboard spacebar button is much longer as compare to others. If you want to improve your spacebar button speed i specially recommended using space bar counter tool. Our web site helps enhance keyboard speed.

How to use spacebar counter tool?
This spacebar counter tool is straight forward to use and absolutely free tool, this is online tool. When you enter in space bar counter tool you have press spacebar button then countdown is start also, you can select the timing as you want there is timing starting with 1 sec to 120 second. Also, set timer option is available in this tool. Our tool can decide some ranking that ranking is decided on your performance. There are total five types of ranking if you are curious to know about ranking then go and use spacebar counter tool.
If you will try our tool regularly then your speed will be definitely increase. Your rank is bad you can try to better it and practice continuously with the help of spacebar clicker tool. If you can pro in keyboard then you will also pro in gaming. 

World record of spacebar clicker?
Many peoples try to give their best in any type of compition. In our space bar clicker tool their is same people can try to give their best and one person can do it his name is Luke Williams is live in Wellington, Texas, United State he pressed spacebar 210 times in 20 second.
Spacebar games
In our space bar clicker tool we can add some games related to spacebar button. We can add dinasour game, flappy game, corona game and space invaders game. When you use our tool you will not forgot to play this game we hope you will like our games.
Announcement - Graftini Early Access Release
Tags: startup, nocode
Published: 2021-07-29 07:03:31

Today we touched a significant milestone. We have been hard at work to move a step closer to [our dream](https://blog.graftini.com/what-is-graftini) of not having to write code for deploying dynamic web apps. 

We are releasing the app to the first batch of early access users 🎉. We are extremely psyched yet nervous about it.

The story we would like to tell via Graftini can be summed up in the following three steps:

1. Think
2. Design
3. Deploy

There should not be any extra step involved in bringing an idea to reality. An idea leads to  a design which should immediately be shareable for the world to see. No more should there be a lag between design and code.

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1627478835459/s5clN1WeP.png)

This is only the first of many iterations to come to the public. With Graftini, you can now:

1. Build static web apps that can be designed with an intuitive visual builder.
2. Images that are optimized by default so that the users get an optimized experience.
3. Deployments that do not take more than a minute.

To try it out, we are offering all our users 2 free projects for the duration of the Early Access (and possibly beyond). These come with the following perks:

- 10 GB Monthly Bandwidth
- Unlimited Pages
- Unlimited Deploys
- Free Subdomain

**We cannot wait to see what you build with it. Cheers to everyone.**

If you already have access to Graftini, you can now login [here](https://www.graftini.com/sign-in). If you do not have access, you can request for it [here](https://www.graftini.com/).

*Note: Since this is early access, there will be bugs that we will be fixing as it comes along.*
Git it ? Frame it !
Tags: github, programming, codequality
Published: 2021-07-29 06:59:50

Hello everyone 👋
I love to code and I think code can be art,

That's why I have created GitFramed (https://gitframed.com), a place where you can create or get art based on git repository.

All the products are A4 picture with... a frame of course 😎

You can create your GitFramed from all public git repository,

I seek reviews / comments on the generated art, 

Thanks! 
François