teleren/devto huggingface dataset:
The experiment of SPVM::Thread is started today.
Tags: perl, spvm, thread
Published: 2022-11-18 23:30:25

The experiment of <a href="https://github.com/yuki-kimoto/SPVM-Thread">SPVM::Thread</a> is started today.

SPVM::Thread is a thread module to bind <a href="https://en.cppreference.com/w/cpp/thread/thread">C++'s thread library</a>.

The experiment of binding C++'s thread library to SPVM is shown on the <a href="https://github.com/yuki-kimoto/SPVM-Thread/blob/master/lib/SPVM/Thread.cpp">Thread.cpp</a>.

## What is the purpose of SPVM::Thread?

What is the purpose of SPVM::Thread?

### Users say "Perl's thread is broken"

Users have continued to say "Perl's thread is broken".

The answer is yes and no.

Perl have <a href="https://perldoc.perl.org/perlthrtut">ithread</a> as a thread feature.

Users think "Perl has thread. My program will become faster using thread."

Users try to Perl's ithread. After the trial, they are disappointed because their program will not gain the performance.

From some point, Perl's official document doesn't recommend ithread to users.

### Is Perl's ithread broken?

No, but users can't get the gaining of the performance.

If "ithread" was named "Thread for the emulation of fork (Mainly used for Windows fork emulation)", user never used ithread as a thread to gain performance.

In fact, Perl doesn't have the thread to gain performance.

### SPVM::Tread gives users the gaining of the performance

SPVM::Tread will give users the gaining of the performance.

Users will run the codes of <a href="https://github.com/yuki-kimoto/SPVM">SPVM</a> on the thread which internal implementation is C++'s thread.

SPVM is designed to run the codes on thread in theory. The practical experiment is started today. The method of the SPVM has the stack of <code>4096</code> bytes per thread. Global things are nothing unlike Perl.

The method of SPVM can be called from Perl. Perl realize the real thread through SPVM.
Things I learned this week - Week 46 (2022 ed.)
Published: 2022-11-18 23:22:43

1. {% embed https://stackoverflow.com/questions/9058774/is-there-a-built-in-way-to-loop-through-the-properties-of-an-object/17516837#17516837 %}
2. {% embed https://github.com/handlebars-lang/handlebars.js/issues/278 %}
3. nodejs xlsx module leading 0
{% embed https://stackoverflow.com/questions/64047169/how-to-convert-cell-type-number-to-string-in-xlsx-for-handling-date-format %}
4. {% embed https://snyk.io/advisor/npm-package/xlsx/functions/xlsx.utils.json_to_sheet %}

5. 
{% embed https://www.tabnine.com/code/javascript/functions/xlsx/utils %}

6. Vuex - State Management
{% embed https://www.youtube.com/watch?v=5lVQgZzLMHc %}
【jQuery】How to code drop-down(pop-down) menu
Tags: javascript
Published: 2022-11-18 22:59:06

How the drop-down menu works is as below.
1.Click a button.
2.A list of menu is displayed.
3.The menu does not close as long as the cursor is on the button.

Let's code using jQuery!!

HTML
```
<ul class="container">
      <li>
        CLICK!!
        <ul class="popdown_menu">
          <li><a href="#">item1</a></li>
          <li><a href="#">item2</a></li>
          <li><a href="#">item3</a></li>
          <li><a href="#">item4</a></li>
        </ul>
      </li>
    </ul>

```
jQuery (JavaScript)
```
$(".container li").hover(function(){
			$(".popdown_menu").slideToggle()
		});
```
DPS909 Blog :LAB 10 About Software releases
Tags: opensource, beginners
Published: 2022-11-18 22:51:30

## Overview
This lab focus on this topic

- General concepts and terminology of software releases
- Git tags
- Package managers
- User testing

## Release tool

To release my app I have used [npm](https://www.npmjs.com/).

To release your software, you can follow these steps.

#### Create a `package.json` file if you don't have in the root directory.

Use this cmd to create the new package.json file `npm init`.

A package.json file:
- Lists the packages your project depends on
- Specifies versions of a package that your project can use using semantic versioning rules
- Makes your build reproducible, and therefore easier to share with other developers
- Make sure to add the `name`, `version` and `author` in your package.json file.

#### ADD a README.md file to a package

- In a text editor, in your package root directory, create a file called README.md.
- In the README.md file, add useful information about your package.
- Save the README.md file.


#### Publish your release
- Make sure you have created the account [npm](https://www.npmjs.com/) and verified it. 
- Use the cmd `npm login` on your terminal. Login with your `username` and `password`.
- Use the command `npm publish --access public` if you want to
create and publish scoped public packages.

After releasing my static site to install it locally on your device you can use this cmd `npm i agandhi29_static_site_geneator`

[agandhi29_static_site_geneator](https://www.npmjs.com/package/agandhi29_static_site_geneator)

This is the first time when i have release my tool to the npm. It was really great to publish my work in open source so that now everyone can use my static site generator if they want to. 

## User testing

I have asked my class mate to install the package and run it on their device and all  of them were able to run it locally and are fully satisfied with my instructions.
The Importance Of Collaborating
Tags: javascript, beginners, teamwork
Published: 2022-11-18 22:46:40

We're all guilty of portraying false confidence or acting like we know what we're doing, even though that's not the case. Three days into Phase One at Flatiron School, I learned a few different lessons. That saved me from calling it quits on my journey to becoming a Software Engineer. 

Understanding the fundamentals of Javascript such as variables, arrays, objects, and arrow functions had my brain doing summer salts. Following along with labs I couldn't help the thought of falling behind and biting off more than I could chew.  
```
**const filmBox = document.querySelector("#film-box");
const likes = document.querySelector("#like-count");
const EMPTY_HEART = "♡";
const FULL_HEART = "♥";**
```
When encountering 'const and 'let' for the first time, I couldn't wrap my head around which to use, when, and why after reviewing the material provided and using resources such as google and my now favorite website for information w3schools. I just gave in and did what should have been done to save myself the headache and admit I needed help. I swallowed my pride and asked my fellow peers. Come to find out; they were in the same. Exact. Boat. 

The most valuable lesson I gained from Phase One was several brains are better than one. Coding is one of those things; it's a never-ending journey of learning. Naturally, you won't know everything; it's impossible but what's great is that someone will have a better understanding if you don't know. For example, working with my peers, we broke 'const' and 'let' down in a way we could understand. Both can be used anywhere within your code and will only work correctly with them. However, what separates the two is once 'const' has a variable assigned, it cannot be redeclared nor reassigned. As for 'let' a variable must be declared before use. It is a straightforward concept that only gets easier to understand once put into practice. 

I may not have exampled the purpose of 'const' and 'let the best, but please understand that you are not alone on your journey into this new career. Reach out to your peers because there is a high possibility they are just as confused as you. Use your resources and ask your instructors if you head a wall. Not all battles have to be conquered alone.
CSS Tips!
Published: 2022-11-18 22:32:08

I've found the blogs I like the most to be the ones who get right into it – so below are my go-to strategies for adding some pizzazz to your website/project/app. 

One key element of an aesthetically pleasing project or app is consistency in design. To have all of your h1 headers show the text in all caps, regardless of how you've written them in your code: 
```
h1 {
text-transform: uppercase; 
}
```

Another key to nice design is the positioning on your page. There may be some instances where you'll want an element to always be visible on page, regardless of how far down you've scrolled. To anchor a button on a page, use the following code! In this instance, the button will be anchored 30px from the top of the page regardless of how far down you've scrolled. 

```
button {
position: sticky;
top: 30px;
}
```

Finally – my favorite way to add more personality to a page is by adding images. I've found that they make a really lovely text backdrop (as long as you have your text in another div with a background so your text is accessible and easy to read!). 

To set an image as a background for the header div: 
```
.header-background-image {
  background-image: url("https://images.unsplash.com/photo-1514525253161-7a46d19cd819?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8Y29uY2VydHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=500&q=60");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 150px;
}

```
To break down the code above: 
- `background-repeat` allows you to control how many times the image repeats over the page. 
- `background-position` allows you to control where the image is positioned. 
- `margin` allows you to control the margin around the image. 

 
ps - [Unsplash](https://unsplash.com/) is one of my favorite places for stock images - enjoy!
Como usar o koo no Brasil
Published: 2022-11-18 22:17:01

Koo é um microblog indiano e serviço de rede social, sua origem é em Bengaluru , Índia.

Em maio de 2021, foi avaliado em mais de $ 100 milhões. O site de microblogging foi co-fundado pelos empresários Aprameya Radhakrishna e Mayank Bidawatka. Radhakrishna fundou o serviço de reserva de táxi online TaxiForSure, que foi posteriormente vendido para a Ola Cabs. Embora o aplicativo tenha sido lançado no início de 2020, sua participação e a subsequente vitória do Atmanirbhar App Innovation Challenge do governo.

Criar uma conta no koo é facil:

https://www.techtudo.com.br/dicas-e-tutoriais/2022/11/como-usar-o-koo-app-o-novo-substituto-do-twitter-de-elon-musk.ghtml

Me segue lá https://www.kooapp.com/profile/biosbug
How to work with paths join or change directories in Golang
Tags: programming, go, linux, webdev
Published: 2022-11-18 21:52:43


# Path join in Golang
Manipulating filename paths in a way that is compatible with the any target operating system-defined file paths.

## Path joining

When you start changing directories, you have to work with both forward slash and backward slash, depending on the operating system, Unix or Windows, Go takes care of that using [path.FilePath.Join function,](https://pkg.go.dev/path/filepath#Join) to use Join, you have to provide the name of the folders, and Go will use the appropriate slash for you

```go
// https://pkg.go.dev/path/filepath#Join
func Join(elem ...string) string {
...
}
```

> Join joins any number of path elements into a single path, separating them with an OS specific Separator. Empty elements are ignored. The result is Cleaned. However, if the argument list is empty or all its elements are empty, Join returns an empty string. On Windows, the result will only be a UNC path if the first non-empty element is a UNC path.
> 

To use that, let's change directory using Go.

## Change directory `cd`

And also we generally you would need to use the `[chdir](https://pkg.go.dev/os#Chdir)` you specify the name of the directory you want to go to, and this function would change the current directory for you

```go
// https://pkg.go.dev/os#Chdir
func Chdir(dir string) error {
...
}
```

> Chdir changes the current working directory to the named directory. If there is an error, it will be of type *PathError.
> 

Lets combine this two, which does allow us to work with either windows or linux who use / or \ backslash and forward slash for each system, and change directory to for now the names we pass in the `ChangeDir`

```go
func ChangeDir(elem ...string) {
	path := filepath.Join("./", filepath.Join(elem...))

	err := os.Chdir(path)
	if err != nil {
		fmt.Println("Cant change the workig directory", err)
	}
}
```

## Joining strings

On the same note, if for whatever reason you want to join folder names, based on something different, or if is any strings joined, there is in the Go standard package, a string package that has a [join](https://pkg.go.dev/strings#Join) method that is as below

```go
https://pkg.go.dev/strings#Join
func Join(elems []string, sep string) string
```

> Join concatenates the elements of its first argument to create a single string. The separator string sep is placed between elements in the resulting string.
> 

And as the official documentation:

```go
s := []string{"foo", "bar", "baz"}
fmt.Println(strings.Join(s, ", "))
//Output
//foo, bar, baz
```
Best site to buy Twitter followers?
Published: 2022-11-18 21:50:29

## But Should You Buy Followers?
Yes! There a lot of reasons to buy Twitter followers. For one, it can help you build up your social media presence quickly. If you're just starting out on Twitter, it can be difficult to get followers organically. By buying followers, you can jumpstart your Twitter account and get the ball rolling.

Another reason to buy followers is that it can help you appear more popular than you actually are. If you have a lot of followers, people are more likely to pay attention to what you have to say. They'll also be more likely to follow you back if you follow them. This can help you build up a real, engaged following over time.

Finally, buying followers can be a good way to test out different marketing strategies. If you're not sure how to get more followers organically, buying followers can help you experiment with different tactics and see what works. You can then use those same tactics to get real followers.

## What is the best site?
If you're looking to grow your business on social media, you should definitely check out [Social Crow](https://socialcrow.co/twitter). They offer a variety of services to help you get more Twitter followers, likes, and views. Their prices are very reasonable, and their customer service is excellent. I highly recommend them to grow your online presence!

![social crow landing page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ix9bmgcns58pjo43a699.png)

## Results of buying Twitter followers
If you're looking to increase your Twitter following quickly and easily, you may be tempted to buy followers. But is this really a good idea for your business?

As it turns out, buying Twitter followers can actually be quite beneficial for your business. Here's why:

**1. It boosts your visibility.**
When you have more followers, you're more likely to show up in search results and be seen by potential customers. This can lead to more website visitors, more leads, and ultimately, more sales.

**2. It makes you look more credible.**
Let's face it, people are more likely to do business with someone who looks like they're already successful. Having a large Twitter following can make you look more credible and trustworthy, which can encourage people to do business with you.

**3. It can lead to organic growth.**
While the followers won't interact with your tweets, they can still help to attract real followers who will. 

![website growth](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2e9fpb3c1pz04ujjx0ka.png)*<small>Results from buying Twitter followers</small>*
As a Coder What Do You Do When Everybody Doesn't Believe in You Anymore?
Tags: codenewbie, webdev, news
Published: 2022-11-18 21:47:36


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3rnqxv3dwkv48tqyim2k.jpg)
What do you do when everybody doesn't believe in you anymore, alone, depressed, and losing hope? But when what you believe is so strong and you know you can make it.

I have been coding for three years now and created several projects, some wasted my money, and some wasted my time.

I don't know why I can't quit despite these upsets and setbacks. I keep going burning midnight candles daily from project to project

I have always wanted to create and see results on the spot, that's why I love to code so much and appreciate the challenges of coding. My best night's sleep is when I go to bed knowing that I solved a problem with code. And even if don't solve it then, I always know that the next morning I will have the answer, that's me.

Three years on, I don't have a job as a software engineer, and I haven't built that million dollars app yet. I'm stuck working at a job I don't like that gives me just enough to move from one month to the next.

Sometimes I sob under my pillar in the morning before I set my foot out of bed, asking myself what's wrong with me, and why I have to go through this. Why can't I make it, why haven't I made it? It's sad sometimes

Looking at the history books, it's clear that no one has ever made it easy. The most successful are the ones who have gone through the most and suffered the most setbacks and failures. This is what keeps me going, that's why I haven't given up or lost hope, but the most important thing is that I believe that I will make it. I know I will make it.

So no matter what I face every now and then, when they mock me for my failed attempts, I tap myself on my back and telling myself that "those failures were just the best lessons learned, they were the best advice no one could ever give me" And I smile at them, we laugh together and move on.

As long as I live I will always keep trying, I'm currently working on this website called [Yaahpy](https://yaahpy.com/), an image-sharing website for sharing memes. I have been working on it for a while now it's out now, we've gained some users and the good news is that Adsense has accepted the website and it will start showing ads soon, I'm yet to set them up.

Please if you get time, kindly go and [check it out](https://yaahpy.com/). I hope you enjoy it. https://yaahpy.com/ or just search for the term yaahpy it may appear as the first result.

For dreamers like me trying to figure things out, I know I'm not in a position to advise you, but let's keep grinding and someday we're gonna get there. Thank you for your time.
Questions are a Developer Superpower
Published: 2022-11-18 21:45:12

Asking questions is a developer superpower. Many new devs are often hesitant to ask questions though! It could be due to [imposter syndrome](https://dev.to/bekahhw/overcoming-imposter-syndrome-23a3), fear about the impression their question would bring, or any number of reasons.

Questions that are broad and over simplified are the wrong way to go. Before we look at great questions, let's look at questions people ask and how they could be improved:

- Can you teach me to code?
- How can I become a developer?

Learning to code and becoming a developer is great, but posing questions like this is similar to wondering if a buffet will serve food. Are you more of a visual person (who might prefer frontend development?)? Do you like sushi or would Indian cuisine be more your to your liking? Maybe working towards becoming a software reliability engineer would be best.

There are different types of developers, and the work they do varies widely. It depends, and in tech, it depends can be an answer to most things. That's why being specific and providing context can allow questions to **get you unstuck when coding**, **endear you to a potential future colleague**, and help others along their journey.


Here are examples of detailed questions:

- I'm working on landing my first frontend developer role. My stack is React, Next, Node, and SQL. I've built my own projects, contributed to open source, and gotten two certifications (one in frontend, the other in API's/backend). What can I do to continue to learn, grow, and meet people who could help me land a job?
- I tried running the e2e (end to end) tests but am returning errors. I noticed a recent change that was merged in changed a filename. I pulled in those changes, but could the change be causing an error elsewhere that's making the tests fail?

Another special part about tech is **people want to help you**. When you ask questions that are more in line with the last two examples, people are much more likely to give you an answer, or try and find someone who can give you an answer.

Developers are resourceful by necessity, but we all know not every single question has an exact answer from Google. Dig into what's making you curious. Be as detailed as you can, but also keep your question concise.

Questions can unlock your career as a developer. Remember how important they are, why they need to be well worded, and you'll be that much better of a developer!
The Case for Function Trees
Tags: javascript, productivity, team, beginners
Published: 2022-11-18 21:21:57

## A little intro...
I am currently enrolled in Flatiron School's Software Engineering bootcamp. At the time of posting this, my cohort is finishing up Phase 1 of the program (JS Basics) and preparing to enter Phase 2 (React Framework). In light of this, I think it's a great time to review some productivity tools!


## Whether you are a beginner, jr., or sr. dev...
You've likely been involved in countless projects (software or otherwise) where there is a clear set of expected deliverables at the end of the project. You've _also_ likely come across a myriad of different productivity tools to help build a roadmap for executing these deliverables. These tools might include:
- Flow charts
- Layout diagrams
- Outlines
- Word webs


## In software engineering...
Visual and conceptual productivity tools come in handy at different times for different goals, tasks, and audiences. Therefore, it's very important to understand what tools are useful to you and your teammates, dependent on the circumstances. Knowledge of the strengths of each tool can yield huge improvements in operating efficiency by reducing the need for clarification.


## As I mentioned in my intro...
I am entering Phase 2 of my coding bootcamp, which will cover the React Framework. From what I've been told, React engages a more conceptual approach to development, as opposed to the syntax- and fundamentals-heavy stages of learning the web development basics.
Though I'd never rule out the use of any of the aforementioned productivity tools, I have a feeling that I'll be using one _other_ tool more often: **THE FUNCTION TREE**


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

## According to Wikipedia...
"A function tree is a diagram showing the dependencies between the functions of a system. It breaks a problem (or its solution) down into simpler parts. When used in computer programming, a function tree visualizes which function calls another."

So, I could see this being a very useful tool for taking the list of deliverables, and:

1. Conceptualizing the functions
2. Figuring out the order of function declaration
3. Mapping out the functions based on priority, scope, nesting, variable reassignment, etc.
4. Be able to refer back to this and possibly rearrange the function tree or create multiple function trees to cover different branches of the project

...and do all of this in a way that is easily communicable across an entire project team. 10/10

## In conclusion...
I'm looking forward to using this function tree visual tool as I learn React and beyond!

Sources(LOL):
https://en.wikipedia.org/wiki/Function_tree