teleren/devto huggingface dataset:
Inspecting Ruby Method Params
Tags: ruby
Published: 2021-07-29 14:00:15

At work, my colleague created a gem that is used by the company's codebase. It's an extension to [Sidekiq](https://github.com/mperham/sidekiq)- it inspects the Ruby background job classes we have and adds a page on Sidekiq's dashboard. This allows us to schedule whatever jobs we have "adhoc".

Therefore, it needs to know what arguments each job accepts, and accept parameters that are input via the web and feed them properly when calling the job classes.

In Ruby, this means, it needs to be able to discern between positional arguments and keyword arguments. I dug through the gem a little to open a PR to modify it, and just wanted to share how Ruby allows you to introspect methods.

In ruby, a class method can stand on it's own as an object like so

```ruby
class Foo
  def bar(a1, a2, b1:, b2: true);end
end

meth = Foo.instance_method(:bar)
=> #<UnboundMethod: Foo#bar(a1, a2, b1:, b2: ...) (irb):12>
```

The method object has a few cool instance methods you can call. One of them is `#parameters`. It will spit out the types of methods it receives in detail.

```ruby
meth.parameters
=> [[:req, :a1], [:req, :a2], [:keyreq, :b1], [:key, :b2]]

meth.parameters
  .group_by { |type, _| type }
  .each_with_object({}) do |(type, params), acc|
    acc[type] = params.map(&:last)
  end
=> {:req=>[:a1, :a2], :keyreq=>[:b1], :key=>[:b2]}
```

Here's [the official docs](https://ruby-doc.org/core-2.7.1/UnboundMethod.html) that contains a full list of other instance methods that can be called on the Method object.

And here is the [PR that I opened](https://github.com/gohkhoonhiang/sidekiq_adhoc_job/pull/23/files) in my colleague's gem, for reference.
Boycott Audible
Tags: audible, boycott, podcast, monopoly
Published: 2021-07-29 12:57:47

I've decided not to publish "Move Fast" on Audible unless Audible figures out how to resolve our review queue stasis without our manual intervention.

You can find the book for free on the Software Engineering Daily podcast feed, as well as in our apps.

One of the key themes in the Move Fast book was how Facebook Engineering overcame the tyranny of the manual app store review through diplomacy, blitzkrieg, feature flagging, and Chuck Rossi.

I'm not going to submit to the inconvenience of the nightmarish Audible scleropoly backend.

https://www.softwaredaily.com/post/60eae282c6de2d000c601ee0/Full-Audiobook-Move-Fast-How-Facebook-Builds-Software
Simple Feature of Font Size Changer
Tags: javascript, html, webdev, css
Published: 2021-07-29 12:51:12

**Font** **Size** **Changer** **-** Give your site visitors the freedom to choose the font size according to their taste. We present components that you can use to create a font resizing feature on your website or application. This font resizing component is built using DOM style javascript. very simple component, but we hope this component can be useful for you.

{% codepen https://codepen.io/codelapan/pen/MWmVqOJ %}


Don't forget to visit [Codelapan](https://codelapan.com) to read articles about [web development](https://codelapan.com/category/web-development), [web design](https://codelapan.com/category/web-design), [software testing](https://codelapan.com/category/software-testing) and others.


[Design illustrations by Storyset](https://storyset.com/design)
Bonnes pratiques Gitlab CI
Tags: bestpractices, ci, gitlab, french
Published: 2021-07-29 12:18:13

À E-voyageurs Technologies, je travaille au sein d'une équipe en charge de l'usine logicielle, qui administre depuis plusieurs années une instance Gitlab self-hosted.

![Logo Gitlab CI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kuql2ngyqkd49msn0ghw.png)

Cet article contient quelques-unes de nos recommandations à l'intention des utilisateurs de notre Gitlab, ayant pour but à la fois améliorer les performances de leurs pipelines, et limiter leur impact en termes de ressources sur cette instance Gitlab partagée entre des dizaines d'équipes. Un dernier volet rassemble quelques points de sécurité.

https://chezsoi.org/lucas/blog/bonnes-pratiques-gitlab-ci.html
Exportando dados filtrados com mongoexport
Tags: mongodb, mongoexport, mongotools
Published: 2021-07-29 12:16:34

Quem já precisou filtrar os dados da base antes de exportar sabe que nem sempre é uma tarefa simples. Quando falamos de mongodb essa situação fica um pouco mais complicada, pois as ferramentas visuais (como Compass e robo 3T) não possuem uma forma direta de salvar as consultas.

>*Falei besteira?*
>*Comenta no post e me ajuda a melhorar a difusão de conhecimento :)*

Para esses casos o mongo possui as ferramentas cli conhecidas como [ mongoexport](https://docs.mongodb.com/database-tools/mongoexport/)

> *resumo: Exporta os dados em formato json ou csv*

Executar o mongoexport é bem direto. No exemplo abaixo já é possível obter uma massa de dados da tabela desejada.

```shell
mongoexport mongodb://localhost:27017 --db=example -c=carros
```

## O parâmetro [--query](https://docs.mongodb.com/database-tools/mongoexport/#std-option-mongoexport.--query)

O parâmetro query recebe como valor um [json (padrão extended v2)](https://docs.mongodb.com/manual/reference/mongodb-extended-json/) o qual será utilizado como critério pela ferramenta na hora de selecionar quais documentos devem ser exportados.

Os atributos de pesquisa permitidos estão restritos aos [query selectors](https://docs.mongodb.com/manual/reference/operator/query/#query-selectors).
> Atributos de aggregation não são permitidos

```shell
mongoexport mongodb://localhost:27017 --db=example -c=carros --query='{ "modelo":"Dodge", "ano":{ "$gt": 2011 } }'
```

## O parâmetro --queryFile

Já o **--queryFile** recebe o caminho do arquivo json. Este arquivo funciona da mesma maneira, incluindo as restrições, que o json inline passado no parâmetro --query.

Exemplo de arquivo json
```json
{
    "modelo": "Dodge",
    "ano": {
        "$gt": 2011
    }
}
```

```shell
mongoexport mongodb://localhost:27017 --db=example -c=cars --queryFile="~/filtros.json"
```
## Impressões e Conclusão
Dadas as duas abordagens, eu prefiro a segunda por ser mais simples de ler e manter do que a abordagem com a query inline.Porém, se a consulta for simples e pontual (não sendo necessário compartilhá-la ou salvá-la para uso posterior), utilizaria o inline por ser mais direto e menos burocrático.

O que me motivou a escrever esse post foi a necessidade de realizar um export de uma quantidade significativa de dados para outra aplicação sem onerar a aplicação existente. O principal desafio de tal consulta, foi ter de encontrar uma solução que não envolve-se o uso de filtros do método *aggregate*. Com um pouco de busca na documentação oficial do mongodb, imaginação e validação dos dados(aquele diff salvador), consegui realizar a exportação dos dados.

No github (pasta quering_mongoexport) deixei o passo a passo de como reproduzir esse post.
{%github https://github.com/julianopoveda/mongoblogposts/ no-readme%}


## Referencias
https://docs.mongodb.com/database-tools/mongoexport/
https://docs.mongodb.com/manual/reference/operator/query/#query-selectors
https://docs.mongodb.com/manual/reference/mongodb-extended-json/
Open Source Thursdays Expert Session with Rafael França on August 5th
Tags: ruby, rails
Published: 2021-07-29 12:00:00

---
title: Open Source Thursdays Expert Session with Rafael França on August 5th
description: Rafael França will be our expert guest. Learn all you need to know to get started with contributing to Ruby on Rails.
published: true
date: 2021-07-29 12:00:00 UTC
tags: ruby, rails
cover_image: https://www.hexdevs.com/images/open-source-thursdays/expert-sessions-with-rafael-franca-aug-5th/banner.png
canonical_url: https://www.hexdevs.com/open-source-thursdays/expert-sessions-with-rafael-franca-aug-5th/
---

Open Source Thursdays is a project from **hexdevs**. We’ve been making Open Source contributions more inclusive.

On August 5th at 5 PM EST, Rafael França will join us as our expert guest. Rafael França is a Rails Core team member and Principal Engineer at Shopify. He is working to define the future of Ruby and Rails at Shopify.

He will teach you all you need to know to get started with contributing to Ruby on Rails.

In this session, Rafael will do a deep-dive into the Ruby on Rails codebase.

You will learn:

- How to filter and understand issues
- The best practices for contributions
- How to ask for help
- How to help the Ruby on Rails Community.

We will also have a Q&A session at the end.

If you want to join the Livestream session, [click here to RSVP](https://www.hexdevs.com/open-source-thursdays/expert-sessions-with-rafael-franca-aug-5th/)!

Share this event with a friend or a colleague who wants to contribute to Ruby on Rails.

This event is sponsored by Shopify Engineering.
What is On-Page SEO: A Beginner's Guide to On-Page SEO
Tags: webdev, seo, blog
Published: 2021-07-29 11:59:25

In today's post, we will know **What is On-Page SEO**. Is your blog not getting traffic at all even after publishing many of your posts? This means that you need to optimize blog posts correctly.

If your optimization is strong, then through this you can easily rank the post on the first page. Today we will know what is On-Page SEO and how to do optimization for the post.

We will know the optimization method later, but before that, we have to understand What is On-Page SEO.

<br>
## What is On-Page SEO?
<br>

On-page SEO is a technique in which blog posts are optimized for search engines to rank in Google so that we can be able to rank the website's post in Google.

Every day Google does many updates but they are small but in a year they do two major updates which are called core updates. If your content is optimized very well then no update will be able to affect your blog.

If you do not know what is the Difference Between On-Page and Off-Page SEO then you can get information about it from here.

Before this, we had known [**What SEO is**](https://www.amanchourasia.in/2021/06/what-is-seo.html) and why it is important for a blog. Also, it was to be known that there are 2 ways to do search engine optimization. The first is on-page and the second is off-page SEO.

In this post, I will tell you how to apply it, how to do it. And I will give complete information about why it is important for this blog.

With this, by optimizing the post perfectly, how to make the post search engine friendly, as well as how we can easily get the post to be a search engine rank.

Read More: [**What is On-Page SEO: A Beginner's Guide to On-Page SEO**](https://www.amanchourasia.in/2021/06/what-is-on-page-seo.html)

--------------

*This Article was Originally Published on:* [amanchourasia.in](https://www.amanchourasia.in/2021/06/what-is-on-page-seo.html?utm_source=dev.to)
tmux zoom
Tags: cli, linux, tmux
Published: 2021-07-29 11:57:11

---
tags: ['cli', 'linux', 'tmux']
title: tmux zoom
published: true
canonical_url: https://waylonwalker.com/tmux-zoom/
series: tmux
---

Zooming into the current split in tmux is a valuable tool to give yourself some screen real estate.  These days I am almost always presenting, streaming, or pairing up with a co-worker over a video call.  Since I am always sharing my screen I am generally zoomed in to a level that is just a bit uncomfortable, so anytime I make a split it is really uncomfortable, being able to zoom into the split I am focused on is a big help, and also help anyone watching follow where
I am currently working.


Default key bindings for zooming the current split

``` bash
bind-key          z resize-pane -Z
```


I have rebound this to match the default binding with mod+z rather so that I get that single keystroke experience.

``` bash
bind -n M-z resize-pane -Z
```

---

Be sure to check out the full youtube playlist and subscribe if you like it.

https://www.youtube.com/playlist?list=PLTRNG6WIHETB4reAxbWza3CZeP9KL6Bkr


{% post https://dev.to/waylonwalker/how-i-navigate-tmux-in-2021-2ina %}

> Also check out this long form post for more about how I use tmux.
You've launched a new product - now what?
Published: 2021-07-29 11:51:47

---
title: You've launched a new product - now what?
published: true
description: Making a Product: Transcripto, ep. 9
cover_image: https://assets.mkdev.me/posts/covers/000/000/012/original/mkdev_article.png
---
'Making a Product: Transcripto' is an mkdev.originals web series that will see a small team of two making a working product step by step, from conception to designing and coding to the release! Join Kirill and Leo on the journey of creation of TRANSCRIPTO, a small but useful service for transcribing audio into text.

In the last episode of season 1 Leo and Kirill enjoy the fruits of a successful launch and share their post-launch experience...

{% youtube xUEEzRFvmoA %}

***

* [Episodes 0 & 1](https://dev.to/mkdev/the-road-to-mvp-planning-first-steps-and-brainstorming-the-product-features-in-miro-kb9): Introduction & The Road To MVP.
* [Episode 2](https://dev.to/mkdev/how-to-design-a-logo-for-your-startup-with-the-help-of-an-artificial-intelligence-40l5): How to design a logo with the help of an AI.
* [Episode 3](https://dev.to/mkdev/how-to-build-a-transcription-service-prototype-in-90-minutes-with-ruby-on-rails-and-aws-3884): How to build a service prototype in 90 minutes.
* [Episode 4](https://dev.to/mkdev/making-website-design-for-a-transcription-service-in-2-days-3m4): Making website design in 2 days.
* [Episode 5](https://dev.to/mkdev/the-impostor-syndrome-episode-adding-features-with-ruby-on-rails-and-having-fun-with-figma-and-css-2f4m): The Impostor Syndrome.
* [Episode 6](https://dev.to/mkdev/how-to-calculate-aws-stripe-costs-define-the-price-for-your-product-and-make-a-profit-on-the-way-1f8d): How to calculate AWS & Stripe costs.
* [Episode 7](https://dev.to/mkdev/is-there-a-place-for-a-small-startup-launch-without-a-big-promotional-budget-202n): Startup Launch.
* [Episode 8](https://dev.to/mkdev/aws-copilot-and-another-6-ways-to-easily-deploy-apps-to-aws-1njb): AWS Copilot.
* [Episode 9](https://dev.to/mkdev/you-ve-launched-a-new-product-now-what-4dkm): Now what?
How To Write Your Business Assignment?
Published: 2021-07-29 11:50:12

Assignment on business is a task that should be taken by people who have genuinely invested their time and energy into this sphere; since it is a professional course writing a business assignment involves professional expertise. The structure, guidelines, and topic range are the three guide sticks for a writer to finish his business assignment. Those business students who are finding it challenging to finish their assignments can avail themselves of business assignment help by professional academic writers. These academic writers offer many additional services in addition to assignment help.

Business assignment: Do’s and Don’ts
There are certain liberties and limitations when it comes to writing a business assignment. Liberties like it could be a satisfying process, if business studies catch your fancy then writing an assignment would be a burden, limitations such as you are bounded by the guidelines, structure and past case studies on a similar topic. If you are lacking in your research and are not able to figure out how to proceed with the assignment, then you can take business assignment service from academic writers. Guidelines for writing a business assignment are as follows:

Explain your strategies
List and explain your business strategies; these strategies should all be backed by research, research related to the topic in question. You should formulate all your business strategies on the topic in question, the strategies which have worked for that particular kind of business. Then you have to carefully evaluate them, explaining your choices, their benefits and their limitations. If you are not able to do your business assignment, then there is no reason to worry you can get help from business assignment help in Australia; these services have received widespread acclaim from the students of Australia.

Business Case Studies
Business case studies should be listed and explained in your assignment to depict the authenticity of your research and that your strategies and conclusions have been taken up from legitimate sources.

Graphs And Figures
The best way to explain a time-taking or complex problem or stat in a business assignment is through a graph, chart, or other statistical instruments. These would make your assignment more interesting, understandable and grade-worthy. If you need help with any part of this writing process, then there is always an option of business assignment help online.

These assignment help providers help with every form of academic submission; they even provide individual services like proofreading and plagiarism check. They provide these services at a nominal price for Australian students.
Visit Our website for more information https://www.sampleassignment.com/
Python Program to Get the Month Name When Number is Entered By User
Published: 2021-07-29 11:45:16

Python Program to Get the Month Name When Number is Entered By User

### Code:

```
while True:
    try:
        num = int(input("Enter month number : "))
        break
    except:
        print("Invalid input")

if num == 1:
    print("Month is January")
elif num == 2:
    print("Month is February")
elif num == 3:
    print("Month is March")
elif num == 4:
    print("Month is April")
elif num == 5:
    print("Month is May")
elif num == 6:
    print("Month is June")
elif num == 7:
    print("Month is July")
elif num == 8:
    print("Month is August")
elif num == 9:
    print("Month is September")
elif num == 10:
    print("Month is October")
elif num == 11:
    print("Month is November")
elif num == 12:
    print("Month is December")
else:
    print('Invalid number')
```

### Output:

Enter month number : 5
Month is May


### Explanation:

In the above Program to Get the Month Name When Number is Entered By [User Input](https://www.pythonpool.com/python-user-input/). We have used the while loop. And to manage the exceptional handling we have used the try-except block.
try-except block is also used here because if the user entered something else rather than integer number it will print Invalid input.

In the try block, we are taking the input of type integer as the program is to Get the Month Name When Number is Entered By User.

After the end of the while loop, we will get a valid input. Then we further process the input with the conditional statements. The if-elif-else statements are the conditional statements in Python.

So First we check if the input is equal to 1. In Python to check the statement we use ‘==’. And to assign we use ‘=’.

If the user has inputted 1 then the output will be Month is January and the [program will terminate](https://www.pythonpool.com/python-exit/). And if the inputted number is not 1 it will go to the second elif statement. The process will go on till the input integer matched with the conditional statement.

If none of the inputted integers matched it will return Invalid Number.
Software Quality Assurance & Testing Services in UAE |SISGAIN
Tags: qasoftwaretester
Published: 2021-07-29 11:44:40

<a href="https://sisgain.ae/services/quality-testing/">Software Quality assurance testing in UAE</a>
 to improve your digital product or platform’s performance, security, and compatibility. To preserve your investment, you need reliable software testing & quality assurance that covers all aspects of your software, from performance to security, compatibility, and usability. We use the best practices and an Agile process, our experienced software QA consultants employ an innovative quality assurance testing framework that delivers better results, faster. We also go well beyond simulations with our  QA software testing service on physical devices.  Integrate our experienced QA testing services pros into your software development lifecycle for embedded, state-of-the-art testing using either our proprietary testing processes, your internal approach, or both.
7 Vital Things To Know Before You Hire A Magento Developer
Tags: magento, php, laravel, devmeme
Published: 2021-07-29 11:27:46

The demand for online stores has increased exponentially today. eCommerce solutions have today turned out to be one of the most practically successful means of selling products and are now helping businesses with increased conversions. However, developing eCommerce websites using the right eCommerce platform like Magento becomes inevitable to keep up with the competition.

However, before you hire Magento developer or team of developers you must know a few things first.

Analyze and understand your needs first
It would be better to understand your project requirements before you plan to hire a Magento developer. This will help you search for the right developer based on what your project requirements are.

Look for certified and experienced developers
The Magento developer needs to have a basic understanding of website development along with the needed techniques to save money. However, it is also important to ensure you choose certified Magento developers who have more to offer you.

Cost and quality analysis
The complete success of an online store relies on the perfect combination of best quality and cost-effectiveness. Before hiring a Magento developer conducting a price analysis is important.

Responsiveness and interaction
How a developer interacts with the client is of paramount importance and so when you plan to hire a Magento developer for your project, you should consider this important factor too.

Portfolios and online reviews
You can know more about Magento developers by analyzing the online reviews and their portfolios. These things say a lot about the performance and skills of a developer.

Strict adherence to project deadlines
Experienced developers will adhere to the deadline and ensure that throughout the development process every detail is satisfied. Such a developer understands the importance of following the timeline and make it a point it is not missed at all.

Ensure post-development support
Business clients expect the Magento development company to complete its service within the set deadline and it is good. However, it should not be the end of the service. Web development is considered an ongoing process, so it is important to keep your website optimized regularly.

Conclusion In case you are planning to hire Magento developer, following the above-mentioned points can seem to be vital. You can hire certified Magento developers from [Mage Monkeys](https://www.magemonkeys.com/hire-magento-developer/) with ease.