teleren/devto huggingface dataset:
Get linux samba shares to show up in windows again
Tags: troubleshooting, windows
Published: 2022-06-17 08:45:55

---
title: Get linux samba shares to show up in windows again
published: true
description: 
tags: troubleshooting, windows
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---
I have a media server that runs ubuntu, and today I wanted to copy some files off of it from my windows laptop. But the [samba](https://www.samba.org/) shares weren't showing up in file explorer (but they showed up on fine on my macbook).

I thought the whole point of Samba was compatibility with windows, so I was confused why this doesn't work now.

After a [bit of googling](https://askubuntu.com/questions/661611/make-samba-share-visible-in-windows-network), it seems like this compatibility might have stopped working after the [2017 wannacry vulnerability](https://en.wikipedia.org/wiki/WannaCry_ransomware_attack) was discovered.

In the past windows used a broadcast protocol called NetBIOS for discovering samba shares. When windows removed support for earlier versions of the SMB protocol (vulnerable to wannacry) they also switched off this discovery mechanism.

Apparently WINS is another mechanism for discovering network shares, and [you can configure samba to use it](https://documentation.clearos.com/content:en_us:5_howtos_-_samba_and_wins), but it's a bit shit as it requires you to set up a separate server that resolves names to hosts on the network (a bit like DNS).

The [solution I found](https://www.truenas.com/community/resources/how-to-kill-off-smb1-netbios-wins-and-still-have-windows-network-neighbourhood-better-than-ever.106/) was to use a newer protocol called "WS-Discovery" (WSD).

This is not built into samba, but there is an open source package you can use called `wsdd`. I followed the [ubuntu/debian installation instructions](https://github.com/christgau/wsdd#debianubuntu) and then ran it with `wsdd -v`. My samba share instantly appeared on the windows machine.

I don't know if this is the best long term solution, but as a quick fix to let me copy some files, it worked!
What is Headless Commerce and how does its works?
Tags: headlesscommerce, ecommerce, ecommercestore, technology
Published: 2022-06-17 08:23:20

## Introduction:
In the last decade, tremendous evolution in E-commerce worldwide. But the main reason is the technologies also developing the people's expectations. The specific technology is **[headless Commerce,](https://www.webnexs.com/headless-ecommerce.php)** which will rule the eCommerce industry. This blog explores what Headless Commerce is and how it works. This blog will help you to grow your business. 

## What is Headless Commerce? 
Headless Commerce is an ecommerce architecture of the future that separates the frontend experience from the backend systems. It enables a more flexible and adaptable approach to ecommerce development and better separation of interactions between parts of the system. The frontend experience creates using advanced technologies, independent of the backend, with headless Commerce.

It allows frontend developers to explore new and develop innovative without being limited by the backend. It also enables more seamless integration of the ecommerce experience with other systems like content management and CRM. Traditional ecommerce websites and mobile apps use headless Commerce. It is also well-suited for voice-based ecommerce experiences built with Amazon Alexa or Google Assistant.

## How Does It Work?
A headless eCommerce system, like a headless CMS, works by moving requests between the presentation and application layers via internet services or application programming interface (API) calls.

For example, when a customer clicks a "Buy Now" button on their mobile phone, the headless eCommerce system's presentation layer sends an API call to the application layer to confirm the payment. Another API call is sent to the application layer to display the customer's order status.

## Benefits Of Headless Commerce
There are many benefits to headless Commerce. We will prefer the essential points,
1. Trying to cut technologies for creating innovative, quick-loading websites.
2. The ability to adapt and similarity of frontend developers.
3. Complete architecture and design control over the site.
4. The marketing of innovations is without affecting the backend system.
5. International and omnichannel GTMs must be ready to market fast.
6. Higher conversion rates and lower customer loyalty.

And Our **[Webnexs Headless Commerce](https://www.webnexs.com/headless-ecommerce.php)** will help you increase your sales & revenue compared with your competitor.

## Conclusion:
We hope you enjoyed this blog about headless Commerce. With this knowledge, we know that you can make the most of your business meetings, and to sign up for the link, our **[webnexs experts](https://www.webnexs.com/headless-ecommerce.php)** will contact you and provide the best services for all customers. 
So what are you waiting for? **[To get the free instant consultation😍💯](https://www.webnexs.com/contact-us.php)**
I Got access to the Dall-E 2 and here what i created first
Tags: ai, dalle, machinelearning, models
Published: 2022-06-17 08:20:02

---
title: I Got access to the Dall-E 2 and here what i created first
published: true
description: started creating with dalle
tags: ai, dalle, ml, models
# cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nsjgwg2elh0cujtrfbyk.png
# Use a ratio of 100:42 for best results.
---

 
it was Thu, Apr 7, 10:52 PM when i joined the waitlist for the Dall-E 2.
![waitlist for dalle](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cbfdxqorrmo6yc2hh08v.png)

comeback to today I got access to for using it, big thanks to the Dall-E 2 team for giving me access to it.

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

## I x Dalle

actually i has been interacting with ai model / tool like Github Copilot, and i was impressived by the way it worked.
So i was super excited to try dalle out

Here, are few results of my first try with dalle

**live 🔴** [Abhay x Dall•E](https://labs.openai.com/s/rwLP4Wa7Dur2JEyUIZywdDR1)
<!-- iamge with link -->
[![Abhay X Dalle](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nsjgwg2elh0cujtrfbyk.png "Abhay X Dalle")](https://labs.openai.com/s/rwLP4Wa7Dur2JEyUIZywdDR1)
 
`
“Nikola tesla working on a Gadget, pixel art”
`

this is my favourite one, i am super impressed by the way it 
worked

share your comment that i should try with dalle out

<!-- twitte  -->
[twitter : @abhayprajapati_](https://twitter.com/abhayprajapati_)
CSS Grid - A Better way to style your web page
Tags: webdev, css, beginners, tutorial
Published: 2022-06-17 08:01:48

CSS Grid is one of the modern way to write and design webpage. CSS Grid can do such things that Flexbox can't. In this post you will learn some of the basics as well as some advanced CSS Grids tips and tricks to get familiarity about it. So lets get started! 😍😍😍

Making a div/section/main/ or any other block level element as display grid will not work as it is we have to specify with ROWS and COLUMNS with it. Like this:
```
div {
  display: grid;
  grid-tamplate-columuns: 500px 500px 400px;

}
```
`grid-tamplate-columuns: 500px 500px 400px;` This line will brake that div element into 3 separate columns in size 500px 500px and 400px. A better way to write unit in grid is `fr`.
if you want 3 columns same size then just write 
`grid-tamplate-columuns: 1fr 1fr 1fr;` or in short you can use repeat function `grid-tamplate-columuns: repeat(3,1fr);`
or if you want make rows you can use grid-tamplate-rows.
If you want to make dynamic rows or column you can use 
`grid-auto-rows` / `grid-auto-columns` followed by the size of that row / column. It's very easy isn't it?😃😃

Now you have created a grid and make some rows or columns now you have to give some gaps or space between the rows or columns don't worry css grid got you... Just use `grid-gap` or short hand `gap` property and followed by how much you want to give Thats it....

Now you may want to place items inside the grid... like you may want to shift a p tag or any you can use align-items / justify-items.
Always remember align-items or justify-items will work on parent element only means which tag you have made grid.
If you want to reposition the child element with tagging that element you have to use align-self / justify-self. 
The short hand of this can be `place-self` or `place-items`;

The other common term is grid-column-start, grid-column-end, grid-row-start, grid-row-end which is related to positioning of the each of the row or columns.
Determines a grid item’s location within the grid by referring to specific grid lines. grid-column-start/grid-row-start is the line where the item begins, and grid-column-end/grid-row-end is the line where the item ends.

```
.item {
  grid-column-start: <number> | <name> | span <number> | span <name> | auto;
  grid-column-end: <number> | <name> | span <number> | span <name> | auto;
  grid-row-start: <number> | <name> | span <number> | span <name> | auto;
  grid-row-end: <number> | <name> | span <number> | span <name> | auto;
}
```
syntax can be reduced to grid-column or grid-rows respectively.

There are many property that css grids provides us but we need some of them above properties are most important among them.

Thank you🌺🌺

You can learn more about css grids from MDN Css grids page or CSS tricks . com page they are awasome resourses.
Remove Nth Node From End of List
Tags: leetcode, dsa, theabbie
Published: 2022-06-17 08:00:42

Given the `head` of a linked list, remove the `nth` node from the end of the list and return its head.

**Example 1:**

![](https://assets.leetcode.com/uploads/2020/10/03/remove_ex1.jpg)

**Input:** head = \[1,2,3,4,5\], n = 2
**Output:** \[1,2,3,5\]

**Example 2:**

**Input:** head = \[1\], n = 1
**Output:** \[\]

**Example 3:**

**Input:** head = \[1,2\], n = 1
**Output:** \[1\]

**Constraints:**

*   The number of nodes in the list is `sz`.
*   `1 <= sz <= 30`
*   `0 <= Node.val <= 100`
*   `1 <= n <= sz`

**Follow up:** Could you do this in one pass?

**SOLUTION:**

    # Definition for singly-linked list.
    # class ListNode:
    #     def __init__(self, val=0, next=None):
    #         self.val = val
    #         self.next = next
    class Solution:
        def removeNthFromEnd(self, head, n):
            slow = head
            fast = head
            for _ in range(n):
                fast = fast.next
            while fast and fast.next:
                slow = slow.next
                fast = fast.next
            if slow == head and not fast:
                return head.next
            slow.next = slow.next.next
            return head
Enjoy Programming-Themed Humor? Here's today's daily developer joke!
Tags: jokes, dailydeveloperjokes
Published: 2022-06-17 08:00:21

---
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/5e1258f50f7c0.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:___ Why did the developer go broke?

___A:___ Because they used up all their cache
 -->
What is online Cricket Betting?
Tags: playonlinecricket, cricket
Published: 2022-06-17 07:36:17

**cricket dissipated** [](https://gameontops.co.in/) is arguably among the [](https://newsonlinetoday.live )foremost commonplace **sports **to https://technofine.live play by Indian players, given the nearly [](https://officialindianews.com )unlimited dissipated markets that[ https://appabook.blogspot.com/](url) match all types of players—be [](https://bestbettingid.blogspot.com/) it a beginner player,[](https://cricketbettingid.co.in/) a casual cricket enthusiast or even the foremost seasoned sports dissipated fan.[](https://appabookexch.com)   
Online Cricket dissipated vs ancient dissipated
Cricket is whereas not a doubt the king in Republic of India, inside the sense that it is the foremost anticipated and
what is **online cricket** dissipated
overwhelmingly dominant sport inside the country. Recent estimates show that a minimum of eightieth of India’s sports dissipated market is cricket-based, with cricket dissipated turnovers expected to realize USD100 billion supported but the **sport **has become Associate in Nursing intrinsic cultural attribute of the majority of **players **in urban and small-town dissipated communities https://newsonlinetoday.live inside the country, in step with https://gameontops.co.in/ Associate in Nursing ENV Media report on https://officialindianews.com sports dissipated.
There square https://bestbettingid.blogspot.com/   measure concerning 100 https://cricketbettingid.co.in/   forty million regular punters https://appabookexch.com   inside the country, which can probably increase to Associate in Nursing denumerable 370 million bettors throughout major sporting events, the report noted. this can translate to the utmost quantity as USD150 billion annual turnover. Despite this, ancient sports dissipated operates underground given but state governments refuse to manage the rapidly growing business.
**Cricket **Games
Binary Tree Postorder Traversal
Tags: leetcode, dsa, theabbie
Published: 2022-06-17 07:30:37

Given the `root` of a binary tree, return _the postorder traversal of its nodes' values_.

**Example 1:**

![](https://assets.leetcode.com/uploads/2020/08/28/pre1.jpg)

**Input:** root = \[1,null,2,3\]
**Output:** \[3,2,1\]

**Example 2:**

**Input:** root = \[\]
**Output:** \[\]

**Example 3:**

**Input:** root = \[1\]
**Output:** \[1\]

**Constraints:**

*   The number of the nodes in the tree is in the range `[0, 100]`.
*   `-100 <= Node.val <= 100`

**Follow up:** Recursive solution is trivial, could you do it iteratively?**SOLUTION:**

    # Definition for a binary tree node.
    # class TreeNode:
    #     def __init__(self, val=0, left=None, right=None):
    #         self.val = val
    #         self.left = left
    #         self.right = right
    class Solution:
        def postorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
            if not root:
                return []
            left = self.postorderTraversal(root.left)
            right = self.postorderTraversal(root.right)
            return left + right + [root.val]
The new point release of Corteza (2022.3.3) is now a fact! 🖥️🎊
Tags: release, update, features, lowcode
Published: 2022-06-17 07:14:27


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/grzcfl26tbbz3zapdck3.jpg)Corteza 2022.3.3 includes several new features and many new changes and fixes. Check out the release notes and see what is new that Corteza has to offer: https://cortezaproject.org/corteza-2022-3-3-released/
Amazed by this powerful AI enhancer
Published: 2022-06-17 07:08:12

I used [AI Image Sharpener](https://vanceai.com/sharpen-ai/) and [AI Image Enlarger](https://vanceai.com/image-enlarger/) to unblur this image. The results really surprise me. AI technology changes lives!
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b0j1ngw0ed8fih6gj500.jpg)
Complex Number Multiplication
Tags: leetcode, dsa, theabbie
Published: 2022-06-17 07:00:45

A [complex number](https://en.wikipedia.org/wiki/Complex_number) can be represented as a string on the form `"**real**+**imaginary**i"` where:

*   `real` is the real part and is an integer in the range `[-100, 100]`.
*   `imaginary` is the imaginary part and is an integer in the range `[-100, 100]`.
*   `i2 == -1`.

Given two complex numbers `num1` and `num2` as strings, return _a string of the complex number that represents their multiplications_.

**Example 1:**

**Input:** num1 = "1+1i", num2 = "1+1i"
**Output:** "0+2i"
**Explanation:** (1 + i) \* (1 + i) = 1 + i2 + 2 \* i = 2i, and you need convert it to the form of 0+2i.

**Example 2:**

**Input:** num1 = "1+-1i", num2 = "1+-1i"
**Output:** "0+-2i"
**Explanation:** (1 - i) \* (1 - i) = 1 + i2 - 2 \* i = -2i, and you need convert it to the form of 0+-2i.

**Constraints:**

*   `num1` and `num2` are valid complex numbers.

**SOLUTION:**

    class Solution:
        def complexNumberMultiply(self, num1: str, num2: str) -> str:
            a, b = num1.split("+")
            c, d = num2.split("+")
            a = int(a)
            b = int(b[:-1])
            c = int(c)
            d = int(d[:-1])
            return "{}+{}i".format(a*c-b*d, a*d+b*c)
[急招][15K-20K][东莞]安卓高级开发工程师(数名)
Published: 2022-06-17 06:41:01

#### 薪资待遇： 15k-20k

### 工作时间
- 5 天 8 小时
- 早上 8 点-12 点；下午 14 点-18 点；午休 2 小时
- 公司包住宿
- 公司提供午餐和晚餐

#### 职责描述：
- 负责 Android 终端系统相关开发
- 参与项目需求分析，进行底层软件相关的设计、开发等
- 学习和研究新技术，参与新需求新功能的架构分析、设计、评审和实现。

#### 任职要求：
- 专科以上学历，计算机相关专业，2 年以上工作经验
- 良好的 java 、C/C++编程开发能力和调试技能；
- 熟练掌握 Android SDK ，Android 四大组件，熟悉 UI 绘制以及渲染，事件传递机制，设备适配；
- 熟练使用 Android Studio 及相关调试工具；开发过完整项目或整个模块者优先；
- 基于瑞芯微 RK3399 、RK3288 系列有开发经验优先；
- 有智能硬件集成开发经验优先。

公司地址：东莞松山湖 
公司网站 ：[ http://www.chindeo.com]( http://www.chindeo.com/)

简历投递到: NTY5NjE2MjI2QHFxLmNvbQ==
Unity Developer - Piano Education App (Based in HCMC)
Tags: unity3d, gamedev
Published: 2022-06-17 06:37:46

View Salary & Apply [https://gambaru.io/en/job-detail/Unity-Developer-All-levels-1653361044616](https://gambaru.io/en/job-detail/Unity-Developer-All-levels-1653361044616)

## Where we are going
**Growth:**

- Scale our music platform to retain the top position in the industry in terms of functionality, user experience, and performance
- Take a high level of ownership to get the job done and coach junior guys.
- Explore and evaluate the practicality of new technologies to improve existing processes and/or products
- Brainstorm to make clear product ideas and technical solutions
- Proactively manage tasks and processes using the JIRA suite.
**Daily Work:**

- We are looking for an experienced Unity Developer to help us bring cutting-edge education applications to market. The ideal candidate is someone with a solid background in Unity programming with a willingness to learn new techniques, who is always pushing their work to the next level and is focused on finding solutions to always get the job done
- Work with a promising market of education products
- Challenged with the core futures (music score, mini-games, and other features) for our education applications
- Working with the mobile native team to integrate cool features
- Working with AI/ML team to ingrate AI/ML models
- Produce quality code and technical documents
- Using Git to control your work
- Always be available when the product has issues
- Brainstorm to make clear product ideas and technical solutions
- Self-manage tasks and processes using the JIRA tool
**What you can expect**

- Silicon Valley-style work culture: move fast, break things, make mistakes, learn quickly, and grow.
- Work from Home policy and Flexible Time Management as well
- Opportunity to learn and extend the roles within the engineering team whatever it is, like research, analytics, automated test, business development, product management, DevOps,...
- Open, direct, collaborative, and no-politics working environment
- Dealing with many challenging engineering problems to build, scale, and secure the data platform
- Apply the Grow-at-Work package from Gambaru
- Free ticket to Gambaverse where you can grow your skills, your emotion, and your finance as well.
Minimum Bit Flips to Convert Number
Tags: leetcode, dsa, theabbie
Published: 2022-06-17 06:30:41

A **bit flip** of a number `x` is choosing a bit in the binary representation of `x` and **flipping** it from either `0` to `1` or `1` to `0`.

*   For example, for `x = 7`, the binary representation is `111` and we may choose any bit (including any leading zeros not shown) and flip it. We can flip the first bit from the right to get `110`, flip the second bit from the right to get `101`, flip the fifth bit from the right (a leading zero) to get `10111`, etc.

Given two integers `start` and `goal`, return _the **minimum** number of **bit flips** to convert_ `start` _to_ `goal`.

**Example 1:**

**Input:** start = 10, goal = 7
**Output:** 3
**Explanation:** The binary representation of 10 and 7 are 1010 and 0111 respectively. We can convert 10 to 7 in 3 steps:
- Flip the first bit from the right: 1010 -> 1011.
- Flip the third bit from the right: 1011 -> 1111.
- Flip the fourth bit from the right: 1111 -> 0111.
It can be shown we cannot convert 10 to 7 in less than 3 steps. Hence, we return 3.

**Example 2:**

**Input:** start = 3, goal = 4
**Output:** 3
**Explanation:** The binary representation of 3 and 4 are 011 and 100 respectively. We can convert 3 to 4 in 3 steps:
- Flip the first bit from the right: 011 -> 010.
- Flip the second bit from the right: 010 -> 000.
- Flip the third bit from the right: 000 -> 100.
It can be shown we cannot convert 3 to 4 in less than 3 steps. Hence, we return 3.

**Constraints:**

*   `0 <= start, goal <= 109`

**SOLUTION:**

    class Solution:
        def minBitFlips(self, start: int, goal: int) -> int:
            return "{:b}".format(start ^ goal).count("1")
Beautiful Array
Tags: leetcode, dsa, theabbie
Published: 2022-06-17 06:00:45

An array `nums` of length `n` is **beautiful** if:

*   `nums` is a permutation of the integers in the range `[1, n]`.
*   For every `0 <= i < j < n`, there is no index `k` with `i < k < j` where `2 * nums[k] == nums[i] + nums[j]`.

Given the integer `n`, return _any **beautiful** array_ `nums` _of length_ `n`. There will be at least one valid answer for the given `n`.

**Example 1:**

**Input:** n = 4
**Output:** \[2,1,4,3\]

**Example 2:**

**Input:** n = 5
**Output:** \[3,1,2,5,4\]

**Constraints:**

*   `1 <= n <= 1000`

**SOLUTION:**

    class Solution:
        def beautifulArray(self, N):
            return sorted(range(1, N + 1), key=lambda x: bin(x)[:1:-1])