teleren/devto huggingface dataset:
Smoke signals from the other side
Tags: database, opensource, graphql, news
Published: 2022-11-10 09:54:15

You may not know, but we moved from Medium a while ago and our updates here are sporadic at best! I do, however, try to provide a round-up of our latest blogs when time permits so that if you stumble here, you can still find our stories. Here are some of the latest articles from the Terminators —

## [The Solution to Object Relational Impedance Mismatch](https://terminusdb.com/blog/object-relational-impedance-mismatch/)
Our CTO, Gavin Mendel-Gleason, wrote this article explaining his obsession with the Object Relational Impedance Mismatch problem detailing his early career and his fascination with the problem which led him to Graph Databases.

## [Graph Representation — TerminusDB Internals](https://terminusdb.com/blog/terminusdb-internals/)
Another Gavin blog. A very technical one. This is part 1 of 3 talking about the guts of TerminusDB. This one describes the steps we’ve taken to make graph representation smaller, faster, and better.

## [Implementing GraphQL in 14 days](https://terminusdb.com/blog/implement-graphql-in-fourteen-days/)
We’re soon (or it’s already implemented if you’re reading in the future) to implement GraphQL into TerminusDB to make it easier and faster to build. Gavin wrote this blog explaining how he and our senior developer Matthijs went about implementing it with Juniper.

## [Interactive Content — Is this the future of engage](https://terminusdb.com/blog/interactive-content/)
I wrote this one! I was second-hand watching The Great British Bake Off and unwittingly my mind wandered to thinking about how content could be improved with immutable data to turn websites and blogs into social networks for like-minded people.

That’s my update for now. When time permits I’ll be back with another update. In the meantime, you can check us out at:

[TerminusDB Blog](https://terminusdb.com/blog/)

[Document Graph Database](https://terminusdb.com/products/terminusdb/)

[TerminusX the Beta Builder](https://terminusdb.com/products/terminusx/)
How to set up an Express Server with Typescript and ES6 import statements using Vite
Tags: javascript, webdev, typescript, tutorial
Published: 2022-11-10 09:43:32

Require this, require that... ugh! It's 2022 man!

I remember setting up my server for the first time with typescript while trying to use import and export statements... my god that was a painful day. 

So I'm here to save you all that trouble and show you how you can setup a typescript server super easily with ES6 import statements. We're going to use Vite to bypass all that boring  setup, and get straight to the meat of things.

## Initialize a new project

First cd into the folder where you keep your projects and run this command to intialize a new Vite project. Follow the prompts and select react and typescript. CD into you project and run the command `yarn install` to install all the dependancies. And we're off to the races!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4tt4ozdory3d6n2npku.png)

## Install packages

First things first we need a few packages. 
  - Express framework itself
  - The types for our express objects
  - ts-node which allows us to run our server in node.js without having to precompile
  - and nodemon which will restart our server every time we make a change

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cb800a6gyhta4dz0zw53.png)

## Toggle esModuleInterop

In you tsconfig under compiler options set the esModuleInterop to 'true'

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2f0zuep7acbrk8krogyi.png)

## Setup your server

Setup your typescript server. I'm calling mine server.ts and for this example it will be located inside the src directory

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ps5zb6cri3xbd0byvi7.png)

## Edit package.json

In you package.json add "type": "module" (if its not already there) to enable ES6 import syntax, and set your nodemon script with the filepath to your server.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zryz0btoxm6mvf3qd8s7.png)

#Run it!

And finally all we have to do is run our script. And we're all good to go!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gfs0we5e9pmtohiqk1de.png)
Solution of "Could not resolve all artifacts for configuration ':react-native-iap:classpath'"
Tags: reactnative, android, reactnativeandroid
Published: 2022-11-10 09:39:20


### Error
#### Issue Scenario:
After updating react-native-iap to resolve this issue on google play:
`We've detected that this app uses an unsupported version of Play Billing. Please upgrade to Billing Library version 4 or newer to publish this app`


The following error will raised for old RN version:
`Could not resolve all artifacts for configuration ':react-native-iap:classpath'.`
   `Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.`

### Solution
#### 1- Add the following to `android/build.gradle`
```
buildscript {
    ext {
        ...
        kotlinVersion = '1.5.0' //<-- add this
    }
    ...
    dependencies {
       ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" //<-- add this
 
    }
}
```
#### 2- To prevent `app:debugRuntimeClasspath` error
add this line to `android/app/build.gradle`
```
android {
    ...
    defaultConfig {
        ...
        missingDimensionStrategy ('store', 'play') //<-- add this
    }
    ...
}
```


#### If the following error raised:
`Execution failed for task ':react-native-iap:compilePlayDebugKotlin'. >Compilation error.`
change kotlinVersion in step-1.


 

**Happy Coding 😍
Happy Building 😌**
C++ intro for starter 5
Tags: cpp, beginners, tutorial, programming
Published: 2022-11-10 09:30:03

##Assalomu alaykumt !

Bugungi darsda biz siz bilan `ASCII` va `/ & %` haqida gaplashamiz, bugungi darsimizga e'tibor bo'lishingizni so'rab qolaman.

>  **ASCII**- bu barcha turdagi o'zgaruvchilarni o'zida jamlagan ma'lumotlar bazasidir.


Siz quyidagi sur'at orqali ko'rishingiz mumkin.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4hqvho7c4b69w9ku6vi.jpg)

Bu jadval orqali biz insonlar tomonidan kiritilgan kodlar ya'ni insonlarning tilidagi matnlarni mashina kodiga o'tkazib berish uchun maxsus jadval hisoblanadi!

Buning asosiy g'oyasini quyidagi masala orqali tushunishimiz mumkindir.
```cpp
 #include<iostream>
using namespace std;

int main()
{
  char N;
  cin>>N;
  int M=N-32;
cout << char(M);
 return 0; 
}
```Yuqoridagi masalada biz inputga kichik harf kiritsak ,outputda bizga katta harf chiqarish uchun kod yozilgan va bu `ASCII` jadvali orqali amalga oshmoqda.

> Keyingi o'rinlarda  biz o'rganishimiz kerakki `% & /` amallari orqali biz kiritilgan sonning butun va qoldiq qismlarini topa olishimiz mumkin.

Masalan,Agar kiritilgan son ikkisi ham `int` datatype da bo'lsa bunda biz butun qismini osonlikcha topishimiz mumkin.

```cpp
int a=18;
int b=5;
18/5=3  //aslida 3.6 matematik amallarda buning qiymati.
18%5=3  // Bunda qoldiq chiqadi.
```
Bizga bular nega kerak? degan savollar sizga kelishi mumkin albatta.
-Ha,albatta bu bizga juda  muammoli vaziyatlarda  kerak bo'ladi.

Siz buni quyidagi masalada tushunishingiz mumkindir.

```cpp
 #include<iostream>
using namespace std;

int main()
{
  int n,a,b,c,d,e;
  cin>>n;
  a=n/10000;
  b=n/1000%10;
  c=n/100%10;
  d=n/10%10;
  e=n%10;
  cout<<a<<"!"<<b<<"!"<<c<<"!"<<d<<"!"<<e;
  
  
 return 0; 
}
```
Consoleda kiritgan sonimiz a!b!c!d!e shu shaklda chiqadi va buni hisoblash uchun biz,sonning xonalaridagi raqamlarni ajratib oldik va natijaga erishdik.
Xullas bizdan uzoqlashmang,eng qiziqarlilari oldandadir.

Bugun shu mavzular haqida gaplashdik.@dawroun 

> _E'tiboringiz uchun rahmat!___
Uploading an image in Joget
Tags: tutorial, joget, webdev
Published: 2022-11-10 09:28:25

Joget is a no-code/low code platform that saves web developers time by dragging and dropping component that afterwards create CRUD application without writing any line of code.

As web developer it happens that you need to add a fancy image or an icon to your stunning web page yet Joget makes it simple by following these simple steps 

-  Later on opening Joget development environment click on the edit Icon shown below at the bottom left side of your screen


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wp7pnrqzxn3s9x2jv9b9.png)

- Click on properties from bottom menus
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nqamqpl4hs8ug1ayzhgu.png)

- Click on properties & export menu at left sidebar menu
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vfl4ojj1gvjxtfkwaoax.png)

- From top nested green button click on Add resource button 
thereby a screen below will popup for you to select file from your computer afterward you can call your image by using html codes by using this path `	<img src="/jw/web/app/appcenter/resources/name_of_your_photo.extension" alt="05visualization"/>`
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7ok0rdltf72ajgukqcp5.png)

As a conclusion, Joget can help you build stuff easily and I believe that this post gave you insights thanks a lot for reading my post any comment is mostly welcome.
Cairo: Uint256
Tags: cairolang, web3, starknet
Published: 2022-11-10 09:21:19

## Introduction

If you are confused about what value should be passed into the low and high of Uint256 in Cairo? you are not alone. I was confused the first time I saw it too. After digging into the code and asking around, I finally figured it out. 

## What is Cairo's Uint256?
Everything in Cairo is represented by `felt`. `felt` stands for Field Element, the only data type in Cairo. it is 251 bits unsigned integer.

Because a uint256 number has 256 bits in size, it can not be represented by a 251-bit felt. Therefore, it is necessary to split the uint256 number into two components: low and high. The low component represents the low 128 bits of the uint256 number, and the high component is the high 128 bits of the uint256 number. The binary value of low and high are padded with leading 0s up to the maximum resolution and put together side by side to form the uint256 number. 

![uint256.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rw96tc0vtidpjd5de32j.png)

Uint256 is defined as a struct:
```rust
struct Uint256 {
    low: felt,

    high: felt,
}
```
## Examples

For a better understanding, I have deployed a [simple Cairo smart contract](https://goerli.voyager.online/contract/0x02664afdb539af115a1b88b011e3607197c00963cb6e9b02fab5ad2e41d45563#readContract) on testnet. The contract has only one view function `get_uint256` that returns a Uint256 number in decimal from its low and high value. 

```rust
@view
func get_uint256{syscall_ptr: felt*, pedersen_ptr: HashBuiltin*, range_check_ptr}(
    low: felt, high: felt
) -> (num: Uint256) {
    let num: Uint256 = Uint256(low, high);
    return (num,);
}

```
Let's say we want to have number 4 as an Uint256. To do so, we pass 4 to low and 0 to high: 
```rust
let num: Uint256 = Uint256(low = 4, high = 0) 
```

4 is `100` and 0 is `0` in binary. We add padding zeros to them and stack them side by side, like so:


![uint256-4-0.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j3a351njvpag3p9cswwp.png)

Let's check it on our smart contract:

![4-0.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g4zalino7ay6lnh08ru6.png)

What about `Uint256(low = 0, high = 4)`?
In the same token, we pad them with leading 0s to the maximum resolution and put them together:


![cairo04](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cc7qevuj69jqetk2par.png)
That is `1361129467683753853853498429727072845824` in decimal. 👀

![0-4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zl3hce2h4i4ppdi6c4z.png)

## Conclusion
That's it for today. Thank you for reading this post, hopefully, it was useful. Let's keep on learning Cairo!

If you have any questions feel free to reach out to me on [Twitter](https://twitter.com/peterblockman).
What is moment.js alternative in Javascript?
Tags: webdev, javascript, programming, momentjs
Published: 2022-11-10 09:19:34

Most web developers have used moment.js. Do you know what's the alternative?

Are you looking for a Moment.js alternative in Javascript?

In one of our laravel projects, after upgrading dependencies, the docker build suddenly started throwing an error of moment.js.

On debugging, I noticed that [moment.js](https://github.com/moment/moment/) was now in maintenance mode and they recommends using different libraries as an alternative.

As our requirements for date and time are not much complex, we decided to use javascript’s default [Date()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object and comes up with this article.

We've gathered a few alternatives that you can use in your projects.

**Here's what you'll learn?**

- Get the year, month, date, day, and time
- First and Last day of the month
- Add and Subtract day, month, year, time
- Get and Set the timezone for the date
- Get dates in various formats

For implementation detail, check out [our blog](https://blog.canopas.com/date-and-time-utilities-in-javascript-1f1330fd206e).
JavaScript - Prototype
Published: 2022-11-10 09:17:33

Every function in JavaScript has a prototype property..
Prototype is a property that allows us to share methods across all instances of a function.
When we create a new instance of an object, we inherit all properties and methods of that object.

Turns out that this:

```
class Animal {
  constructor(name, energy) {
    this.name = name
    this.energy = energy
  }
  eat(amount) {
    this.energy += amount
  }
  sleep(length) {
    this.energy += length
  }
  play(length) {
    this.energy -= length
  }
}

const leo = new Animal('Leo', 7)
const snoop = new Animal('Snoop', 10)
```

is syntactic sugar for this:

```
function Animal (name, energy) {
  this.name = name
  this.energy = energy
}

Animal.prototype.eat = function (amount) {
  this.energy += amount
}

Animal.prototype.sleep = function (length) {
  this.energy += length
}

Animal.prototype.play = function (length) {
  this.energy -= length
}

const leo = new Animal('Leo', 7)
const snoop = new Animal('Snoop', 10)
```

And if we want to list all methods of an Array for example, we just have to do:

`console.log(Array.prototype);`
TEMPLATES OF MICROSOFT EXCEL PROJECT MANAGEMENT
Tags: projectmanagementprofessional, projectmanager, projecttemplates
Published: 2022-11-10 09:14:53

We are providing customized Excel and Word base, Dashboard reporting tool, Expense & Budget Planning, Company Invoice, Interactive and Dynamic dashboard operation and all spreadsheet template free or paid Service with customize and Live chat support. 24/7 Hour free support about every template you recently purchased [Projectguide.Net](https://projectguide.net/)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/052bkshob15xf2wq3rsi.jpg)
Mid level remote roles paying $120K+ - RevampedCP
Tags: careet
Published: 2022-11-10 09:08:36

####   Original Tweet From  [@RevampedCP](https://twitter.com/RevampedCP)
{% embed https://twitter.com/RevampedCP/status/1590422142247899136 %}
Mid level remote roles paying $120K+, 🧵 

Customer Success Manager
[https://jobs.smartrecruiters.com/Shopify/743999863804443-customer-success-manager?trid=2d92f286-613b-4daf-9dfa-6340ffbecf73](https://jobs.smartrecruiters.com/Shopify/743999863804443-customer-success-manager?trid=2d92f286-613b-4daf-9dfa-6340ffbecf73) 


Vendor Management Office (VMO) Manager
https://jobs.lever.co/kraken/ec90f98b-c41c-4669-8edb-d527619e9a82?lever-source=LinkedInJobs

AdSpace Here!!
Lead Software Engineer- Segments
https://careers.klaviyo.com/en/search-jobs/job/lead-software-engineer-segments-4960453003/


Head of Product Compliance, Square
[https://jobs.smartrecruiters.com/Square/743999861201434-head-of-product-compliance-square](https://jobs.smartrecruiters.com/Square/743999861201434-head-of-product-compliance-square) 

AdSpace Here!!
Associate Vendor Manager
 [https://boards.greenhouse.io/affirm/jobs/5331389003?gh_src=689c81d53us](https://boards.greenhouse.io/affirm/jobs/5331389003?gh_src=689c81d53us) 


Transaction Risk Manager, B2C Payments
https://jobs.lever.co/chownow/c1158540-1bb0-4cda-85e1-6d58596392c5?lever-source=LinkedIn
AdSpace Here!!

Academy Consultant
https://eeho.fa.us2.oraclecloud.com/hcmUI/CandidateExperience/en/sites/CX_1/job/186343


Manager, Data Strategy
https://jobs.lever.co/wpromote/f4febbde-3d54-4990-b5ad-b9e97f411869/apply?lever-source=LinkedInJobs

AdSpace Here!!
Staff Strategy Manager, Strategic Research & Analysis
 [https://boards.greenhouse.io/twilio/jobs/4660043?t=cyu53e](https://boards.greenhouse.io/twilio/jobs/4660043?t=cyu53e) 

Revenue Operations Manager  - US Remote
 [https://www.greenhouse.io/careers/opportunities/job?id=4603082&gh_src=154e85cb1us](https://www.greenhouse.io/careers/opportunities/job?id=4603082&gh_src=154e85cb1us) 

AdSpace Here!!

Click [Here](https://www.knowledge-twitter.com/?utm_source=dev.to)  For More Posts Like This [https://www.knowledge-twitter.com](https://www.knowledge-twitter.com/?utm_source=dev.to)
nuoithucung.net - Tổng hợp kiến thức chăm sóc thú cưng
Published: 2022-11-10 09:01:01

nuoithucung.net trang tổng hợp kiến thức chăm sóc thú cưng cho bạn. Cùng với chia sẻ nhiều kinh nghiệm phân biệt các loài thúc cưng đang được ưu chuộng nhất. #nuoithucung #nuoithucungnet #chamsocthucung
Location: 70 Đ. Quang Trung, P. Quang Trung, Hà Đông, Hà Nội, Vietnam 
Hotline: 0916048945
Email: info.nuoithucung.net@gmail.com 
Website: https://nuoithucung.net
Set up keyboard shortcuts that type out stuff on Mac
Tags: mac, automation
Published: 2022-11-10 08:30:42

---
title: Set up keyboard shortcuts that type out stuff on Mac 
published: true
description: 
tags: Mac, automation
---

2023 - It's actually possible to have arbitrary keyboard shortcuts that type out stuff like `binding.pry` on vanilla Mac. The setup is tricky, but no more than 10 mins.

1. [Set up a Quick Action via Automator](https://superuser.com/questions/543647/creating-hotkey-or-keyboard-shortcut-for-pasting-specific-text-phrase-in-mac-osx/543660#543660).
2. Tie the action to a shortcut (also in that SO thread)
3. Allow VSC (or chrome, terminal, whatever) to send keystrokes by adding it to a11y as per [the last line of this SO answer](https://apple.stackexchange.com/questions/175215/how-do-i-assign-a-keyboard-shortcut-to-an-applescript-i-wrote/247183#247183). This needs to only be done once, for the first such keystroke sender.
10 – Cloud Solution Architect – Single and Multi-cloud
Tags: techtalks, cloud, architecture, career
Published: 2022-11-10 08:15:58

Whether you work for single or multi-cloud it is important to focus on business value. With single cloud it is important we focus on native fully managed services and utilize all the native tooling for cyber security, monitoring etc. For multi-cloud build the solution in such a way that it can target any cloud and on-premises. Which essentially means it has to be cloud native in nature. 

https://youtu.be/mmeqMMkRMAw

{% youtube mmeqMMkRMAw %}

For more please subscribe 
https://www.youtube.com/c/TechTalksWriju?sub_confirmation=1
Copy code from video
Published: 2022-11-10 08:04:47

Are you tired of finding youtube videos that have good code but are not available to copy?

If you are I have a quick solution for you

It can be used by devs, testers and even PM

Have a look at the below video and write in the comment what you think of it

https://www.youtube.com/watch?v=YSwIaYZrMmc&ab_channel=ResterTest
Variables (JavaScript)
Tags: beginners, programming, javascript
Published: 2022-11-09 14:11:49

If you want to write any sort of program, you are bound to use at least one variable.
Variables are values that we want to create, calculate, or change in our program. In javascript, variable types are not distinguished by the contents(strings, array, characters, boolean, etc.), instead they are distinguished by their characteristics such as reassignability(changability) and visibility. This makes programming simpler in some cases; since different variables serve different purposes in the program, we have different types of variables which help to serve this purpose effectively. 
Before we start talking about different types of variables in JavaScript, you should know what a scope is. Scope is the context of your code, which determines the visibility of variables. There are two types of scope: local and global. While variables that have global scope are visibile in all parts of your code meaning they can be used anywhere in your program, while local scoped variables are only visible within the block(function) it is declared in.
The most basic type of variable is declared(created) by typing var, this variable type has global scope and can be reassigned.
Then we have const, which is a variable type that can never be reassinged during the program and has global scope.
Another variable type is let, which can't be reassigned and has local scope. For example, if I declare a let varaible within an if-then operator, then I will not be able to use the let variable outside of that if-then operator. 
Many programmers stick to using const variables in their programs since having variables be const prevents them from being accidently changed during a program, this is especially useful when a program is doing various calculations with numerous variables. If there is ever a need to change it they create a new variable referenceing the const and do the rest of the program on the new variable, so that the orignial value is still preserved if there is every a need for it.
Good luck. May the force be with you!

Hakuna Matata!
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2022-11-10 08:00:27

---
title: "Enjoy Programming-Themed Humor? Here's today's daily developer joke!"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259ce87a7e.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What did the Network Administrator say when they caught a nasty virus?

___A:___ It hurts when IP
 -->