teleren/devto huggingface dataset:
5/21 TIL: C/C++ setup on MacOS & C pointers
Published: 2021-05-22 03:41:26

- To run C programs, we need a compiler
    - clang and gcc are usually used on MacOS—they are built-in
    - we can check if these compilers exist in our system by doing this on terminal:

    ```

      gcc -v

      clang -v

    ```

    - if they aren't found, we can install it by running: xcode-select --install
    - [https://www.youtube.com/watch?v=f0vVV4NPmjQ](https://www.youtube.com/watch?v=f0vVV4NPmjQ)
- To run a C program in VS code
    - Install the 'C/C++' and 'code runner' extensions
    - Write your C program and compile it by selecting Terminal > Run Build Task (choose gcc/clang build in the dropdown)
- Pointers in C
    - [https://www.cs.fsu.edu/~myers/c++/notes/pointers1.html](https://www.cs.fsu.edu/~myers/c++/notes/pointers1.html)
    - `int *p`, `int* p` are the same
    - asterisk (*) used in the declaration statement is used to define the pointer variable
    - asterisk (*) used elsewhere is used to dereference the pointer; for instance:

    ```

      int x = 10;

      // * used here in the declaration statement has nothing to do with dereferencing; we are simply declaring a variable named aptr of type 'pointer to int' (meaning it stores the address of an integer variable)

      int *aptr = &x; 

      printf("%x returns a memory address", aptr);

      // * here is now used for dereferencing

      printf("%d is the value dereferenced, *aptr);

    ```
Algorithm Approach : Palindrome
Tags: algorithms, javascript, beginners, computerscience
Published: 2021-05-22 03:00:45

Welcome to my first post in a series of post I hope to make once a week or at least once every other week.  I want to approach popular algorithms and explain my approach to solving them.  I hope you find this helpful, feel free to reply/comment about anything I did right, wrong, or what you may have done differently.

So let's get to it!  First, the prompt:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39d14s5k4m2q2dupoqof.png)

*Things we know:*

1. The parameter is a string.
2. It will contain at least one character as it will be non-empty.
3. We must return either true or false.  True if the string is a palindrome and false if it is not.

**The approach:**

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nr67mmfxiluo5dxefxoh.png)

Let's start with a case that we can immediately return as true.  If the length of the string is 1 then we will return true as a string of 'a' for example will be 'a' as it really doesn't have a reverse order to read.

Now what do we do in the case where a string has a length greater than one?

I chose to declare a variable with the label of revStr (reversed string) which splits the string, reverses the order, and joins the string back together.

Let's break that down further.

**The split method**

[string.split()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)

We use this string method to separate the characters of a string and make them values in an array.  We pass in a parameter of '' to split every character.  If we passed in ' ' we would separate every word.  Look at the MDN docs linked above to understand the split method further.

Now if we had the string racecar we would have ['r','a', 'c', 'e', 'c', 'a', 'r']

We can use this because we are going to apply array methods now!

**The reverse method**

[array.reverse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse)

We have reversed the array.  No parameters, we just want all values in the array in reverse order.

**The join method**

[array.join()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join)

This methods connects all values in an array together.  If a string parameter is passed in then the characters are joined together with the string between each value.  We passed in '' so we join the values with no space or characters between them as a string.

So we chained all those methods and what do we have now?

We have the original string reversed!

Ex. original string = apple, reversed string = elppa

The last thing we do is return the boolean value of checking if the original string is exactly equal to the reverse string.  If they are the same we return true if not then we return false. 

And that is it!  Thanks for hanging in there, I will try to be concise but I want to provide links to methods and my reasoning for doing things in as clear a way as possible!
Do you want to or do you have to?
Tags: work, job, passion, life
Published: 2021-05-22 02:50:00

A jubilant "Friday" meme made me write this. 
For more than 7 years, my work was something which I *had* to do.
I used to check the time every few minutes as soon as the second half started and wait for the clock to tell me when I could go home. I started counting the days left for the weekend to arrive as soon as the middle of the week was reached. I used to go late (was self employed) on Mondays to ease the pain of a new week of hardship. Eventually, when I had ruined enough of my life's time, at 31 I switched to professionally doing what I always loved to do: coding.

Now, for the last four years, I work everyday, every possible minute I can. I take leaves only when I have dived too deep into a particular subject or tool and do not want to get interrupted with new tasks. I feel privileged to get paid for what I would have always done anyway, and I remind myself of this when I am feeling low.

I wish everyone *had* (or *created* with savings) this opportunity to do what they truly want to, the results produced will cover up all other shortcomings. 

Even if you start late in life, you can race ahead of a very large percentage of people because they *have* to do what they are doing. Your year's worth of effort will be far more than theirs and the difference will only increase exponentially with each passing year.
Dev.to and Grammarly?
Tags: troubleshooting, unexpected, consoleerror
Published: 2021-05-22 02:44:13

As I was trying to create/edit a post the other day, I noticed something really odd. It might just be an issue with my pc or Chrome, but I was able to click on any buttons, but was not able to click on the text field, which is a BIG problem if I'm trying to write a post. As a developer, I did my usual and went into Chrome console by inspecting if there are any console errors and found this.
![Console error from Grammarly](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vjbm9urb24atgqbczbkb.png)
An easy solution I found was to go to the Chrome Extensions and turn off Grammarly while I'm in Dev.to.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q2ndanjnkru3jt9f5bqt.png)

I hope this helps someone with the same problem!

If there are things I could improve on, please don't hesitate to let me know! I'm all ears :)

-JH
[LinkedIn](https://www.linkedin.com/in/jacobjhunsaker/) | [Github](https://github.com/mimanjh)
Como pensar em modelagem de dados em um ambiente de big data?
Tags: database, bigdata, datascience, sql
Published: 2021-05-22 01:08:18

Uma visão pessoal de um estudante da área que tem muuuuito a aprender:

O ponto central nesse quesito é pensar de fato na única fonte da verdade, confiável, onde a partir dela seriam geradas tabelas e consultas para responder as perguntas de negócios, treinar modelos de machine learning, identificar fraudes e etc. O segundo ponto seria a alta disponibilidade desses dados, pois a ponta consumidora muitas vezes precisa dessa única fonte da verdade de forma rápida e com possibilidade de integração/consumo com diferentes plataformas e ferramentas.

Em dias em que cada vez mais dados são gerados em diversos formatos, o papel do engenheiro de dados está intimamente ligado ao tratamento desses dados, seja estruturados, semi estruturados e não estruturados, em diferentes formatos, de diferentes fontes, a modelagem é a base para organizar nossa matéria-prima. 

Atualmente já existem novas arquiteturas de dados, delta lake, data lakehouse, data mesh e muitas outras que buscam a eficiência do pipeline de dados de acordo com cada necessidade do negócio.

Após definir a arquitetura utilizada e as ferramentas que irão compor o fluxo de dados, podemos pensar na modelagem numa forma de mapear os dados e alocá-los em diferentes tabelas, para isso precisaremos entender conceitos de tabela fato, tabela dimensão, star schema, snowflake, as formas de normalização para reduzir a redundância de dados, aumentar a integridade e a eficiência que estamos buscando. Conceitos de cubos OLAP para disponibilizar consultas analíticas assertivas e ricas para nossos analistas e cientistas e muito mais.

Entendendo esses conceitos e com nossa arquitetura e ferramentas definida, podemos de fato modelar nossa única fonte da verdade e criar todo nosso pipeline de dados.
Danny Needs Help
Published: 2021-05-22 01:00:15

Hello all,

I just learned that Danny from New Relic was involved in an accident. If you have the means to help please do. We know what a great guy he is. If not check out his sites below and get to know him.

[Danny Twitch](https://www.twitch.tv/muydanny)
[Danny Twitter](https://twitter.com/muydanny/)
[Danny's Go FundMe](https://www.gofundme.com/f/help-danny-recover-from-a-hit-run-car-accident?utm_campaign=p_cp_url&utm_medium=os&utm_source=customer)
Any Netsuite or Suitecommerce Developer?
Tags: netsuite, suitecommerce, developer, oracle
Published: 2021-05-22 00:02:29

Hi guys! Glad to be here we’re a team of consultants, developers, and web designers specialized in delivering tailor-made solutions for NetSuite SuiteCommerce Advanced.

Any NetSuite developer out here?

Check more about us here: https://brokenrubik.co/
Restaurant Menu using javascript 
Tags: javascript, tutorial, productivity, webdev
Published: 2021-05-22 00:00:27

---
title: Restaurant Menu using javascript 
published: True
description: I've recently attempted to make a Restaurant Menu using HTML CSS and java script.
tags: #javascript, #tutorial,#productivity,#webdev
//cover_image: https://direct_url_to_image.jpg
---

Hello DEV community! 👋

I've recently attempted to make a Restaurant Menu using HTML CSS and java script.

Live Demo: https://res-menu.netlify.app/
You can check the github repository here for the source code: https://github.com/abdurrehmaan/Restaurants-Menu

![alt text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0vhm8m47bvgtqbc3e4cq.png)
 
Please note that some features are yet to be implemented and i would love to hear your feedback!
Three ways to manage dependencies
Tags: dependencies, team
Published: 2021-05-24 20:32:50

---
title: Three ways to manage dependencies
published: true
date: 2021-05-22 00:00:00 UTC
tags: dependencies,team
canonical_url: https://jhall.io/archive/2021/05/22/three-ways-to-manage-dependencies/
---

On Thursday I said that [cross-functional teams aren’t the only valid team structure](https://jhall.io/archive/2021/05/20/cross-functional-teams-arent-the-only-valid-option/) which sparked a discussion on [LinkedIn](https://www.linkedin.com/posts/tinydevops_cross-functional-teams-arent-the-only-valid-activity-6801055660558585856-suQ_) about dependencies.

So today I want to share my thoughts on three types of dependencies (with my own invented names), and some comments on how they are managed differently. This is by no means intended as an extensive list!

1. Tightly-coupled dependencies

    These are (should be) dependenciees that are core to your team’s business goals. And this is where cross-functional teams shine. If you’re building a feature that requires close communication between a React developer and a Ruby developer, then this is perfect!

2. Peripheral dependencies

    This is dependency that your team needs, but isn’t core to the business goals of the team. A simple example from my past would be my team building an email filtering product that integrated with a third-party CMS system. That integration was a clear dependency, but if we had hired a CMS integration engineer onto our team, she would have sat idle 51 weeks out of the year. Instead, we consulted with an engineer who worked for the CMS company once or twice per year when we needed their expertise.

3. Platform dependencies

    These are often overlooked as dependencies, but if they were to disappear your team’s ability to function would be severely limited. This can be everything from the operating system on your work laptop, to your ticketing system, to your cloud provider. These dependencies are charictarized by almost exclusive one-way communication, or a “pull” relationship. That is, your team pulls in an update (to your operating system, for instance) when you wish to. There’s typically no coordination with the provider of the dependency. In the rare cases that you do need to communicate with the provider of the dependency, it’s probably through a helpdesk or ticketing system of some sort, and it’s probably impersonal.

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
AWS Support Packages
Tags: aws, cloudcertification
Published: 2021-05-21 23:57:51

## Support Packages

* Basic - Free. customer service for account + billing. 
* Developer - $29/month. experimenting with AWS. One primary contact may ask technical questions through the Support Centre. Response will be in 12-24 hours during local business hours.
* Business - $100/month. production use of AWS. 24x7 support. 1 hour response time.
* Enterprise - $15,000. mission critical use of AWS. Assigned a Technical Account Manager. 15-minute response times.

## AWS Management Console
* Region
* All services
Around the world with AWS | Global Infrastructure
Tags: aws, cloudpractitioner
Published: 2021-05-21 23:49:43

## Region
* A physical location in the world which consists of two or more Availability Zones
* Geographical area (think cities | countries)
* Consists of two or more Availability zones

## Availability Zone

* Data centre - building with servers or several data centres
* One or more data centres, with redundant power, networking + connectivity, housed in separate facilities


## Edge Locations

* End points for caching content (CDN)
* Cloudfront

Choosing the right AWS Region
* Data Sovereignty Laws
* Latency to end users
* AWS services
Vim Will Actually Change Your Life
Tags: linux, vim, programming
Published: 2021-05-21 23:27:20

You probably haven't used it for very long. Sure you've heard of it, you might even be using it right now but... do you really know how to use it?

[Vim](https://en.wikipedia.org/wiki/Vim_(text_editor)) is one of the most powerful text editor on the planet.  Once you get used to it, they said, you’ll never want to go back to your old ways.

Learning vim is going to change your life.
Why? Because you'll be able to do the following:
1. Vim lets you edit as fast as you think
2. Vim lets you focus on the task at hand, rather than the tool
3. Your hands never leave the keyboard
4. You can use your real keyboard layout
5. Special characters are easy to type: e.g., { } [ ]
6. It's universal: available everywhere, a constant on every system

Vim has quite a steep learning curve, if you are new to vim I recommend these [exercises](https://vim.is) 

## No menus (unless you want to)

As you write code, you don't want to waste time searching through menus. Some program are really big offenders of this, where what you need is not only hidden in menu, but has a menu in a window which has another a menu.

Tools shouldn't get in the way, having a few keystrokes to handle text is a really simple way to save you time.

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

## My experience :dog:

I've been using vim for quite some time. It sounds crazy to some people, but I've been using vim for day-to-day edits since I started my career as a programmer. Vim is an incredibly powerful text editor. It's been around for a long time, and if you use the right plugins, it's absolutely amazing.

If I'm in the terminal, I don't want any editor. Nano doesn't let me record and replay keystrokes. Ed is to cumbersome to use. Emacs is interesting, but I prefer vim keybindings.

While coding, I often have to login over [ssh](https://en.wikipedia.org/wiki/Secure_Shell) to a web server. This web server almost always runs Linux, so having a command line editor at hand is great. Sometimes I have to login to routers, which also run Linux. Good news is that vim is everywhere.

![linux logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dl62b547nymqmk5hsifv.gif)
DELPHI ERROR: Invalid Cursor Position
Tags: sql, delphi
Published: 2021-05-21 23:23:18

En la búsqueda del motivo del error de este caso en particular, logramos percatarnos de que se estaba asignado una cadena truncada a un campo sql que esta configurado como MaxString en nuestro caso se cambio a un VARCHAR(8000) y en dado caso que se extendiera mas esta se truncaba antes de enviarla
DELPHI ERROR: No se pudo conectar a la base de datos.
Tags: delphi
Published: 2021-05-21 23:09:45

Este es un error provocado por varios factores, las contraseñas o los datos proporcionados para la conexión pueden fallar, los archivos iniciales de configuración o las dll.
En un caso en especifico también puede hacer falta la instalación de programas o drivers necesarios como SQL Native Client 2008 Y 2012
Step through debugging of code running in Kubernetes using VS2019 SSH attach (Part 2)
Tags: kubernetes, dotnet
Published: 2021-05-21 23:07:30

# Get your desktop ready for debugging
Ok now, open Visual Studio 2019, and get the sources that match the code running on your pod. Compile them. Set the project for your app as the Startup Project. Choose Debug -> Attach to Process.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nj1fgxhmsjoagj0gro12.png)
Choose `SSH`
Click the `Refresh Button`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/492mkeynpmb10adf1d8d.png)
Fill out the fields in the dialog with the master node name, the port of the SSH service, the root account and the password that you assigned to the root account. Press `Connect`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2yqpc042wahusk37cskc.png)
Choose the `dotnet` process and click `Attach`
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wgplucq3g7n1ke9xnb5d.png)
Check `Managed (.Net Core for Unix)` and press `OK`.

Set a breakpoint in the run loop of the code, and wait. When that line executes the code will break:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szk7e6ezv23x14de1o0r.png)
From this point you can step, hover over variables, or anything you might do when debugging locally.
Empleos en Data y Analytics LATAM — Mayo 2021
Published: 2021-05-21 22:57:03

Te compartimos las ofertas laborales del mes para áreas de Data, Analytics y Cloud 👨‍💻👩‍💻

✅ [Data Scientist — Tala (México)](https://www.linkedin.com/jobs/view/2503685011/?alternateChannel=search&refId=H%2Fu8R5tYrS4mQH01MW3Ekw%3D%3D&trackingId=AFOxNo4BlR9xE3F39ZR3hg%3D%3D&trk=d_flagship3_job_home)
✅ [Data Engineer — Globant(Argentina)](https://www.linkedin.com/jobs/view/2381605891/?alternateChannel=search&refId=H%2Fu8R5tYrS4mQH01MW3Ekw%3D%3D&trackingId=sO6FGXotALeB%2FXnkw2d2rA%3D%3D&trk=d_flagship3_job_home)
✅ [Data Engineer — Tata Consultancy Services (Chile)](https://www.linkedin.com/jobs/view/2555424674/?alternateChannel=search&refId=H%2Fu8R5tYrS4mQH01MW3Ekw%3D%3D&trackingId=hWR6tu6CvfladLT5ctO3KA%3D%3D&trk=d_flagship3_job_home)
✅ [Data Scientist — Rimac (Perú)](https://www.linkedin.com/jobs/view/2559145030/?alternateChannel=search&refId=SVhem%2FR3vD45dL2UfsmNow%3D%3D&trackingId=2sTxWIPlbXLTfK5YiCMH%2FA%3D%3D&trk=d_flagship3_job_home)
✅ [Data Scientist — Banco de Comercio (Perú)](https://www.linkedin.com/jobs/view/2540005786/?alternateChannel=search&refId=SVhem%2FR3vD45dL2UfsmNow%3D%3D&trackingId=4FAbnRhmfHkQAew%2FuF27Sw%3D%3D&trk=d_flagship3_job_home)
✅ [Data Engineer — McKinsey & Company (Costa Rica)](https://www.linkedin.com/jobs/view/2548592400/?alternateChannel=search&refId=H%2Fu8R5tYrS4mQH01MW3Ekw%3D%3D&trackingId=ppJ%2FimuK%2BoLVeg1Rsk%2B2QQ%3D%3D&trk=d_flagship3_job_home)
✅ [Data Scientist — IBM (Argentina)](https://www.linkedin.com/jobs/view/2548658978/?alternateChannel=search&refId=H%2Fu8R5tYrS4mQH01MW3Ekw%3D%3D&trackingId=4YFdjAp1zVpaJq%2F07EFJFw%3D%3D&trk=d_flagship3_job_home)

Aprende, aplica y crece en proyectos de Data y Analytics en Cloud.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/62b1cok7uq8tyuasgvwq.png)
DELPHI ERROR: La conexión está ocupada con resultados de otro hstmt
Tags: delphi
Published: 2021-05-21 22:55:06

Este error ocurre cuando la conexión se requiere por parte de varios ejecutables, en el caso provisto un ejecutable que funciona como menu mandaba a llamar un ejecutable como plugin esto ocupaba la conexión y ocasionaba lo mencionado.
Solucion: Instalar borland y extendiendo sus conexiones de sql y firebird a 9999999
Coz I'm Sometimes a Coder Here re Some Beneficial Source I Learn How To Program From  
Tags: beginners, codenewbie, programming, freshgraduates
Published: 2021-05-21 22:53:34

I started by my own at first and then Joined a good school,  APU one of the best on Malaysia .. 
so this is just a contribution to junior and newbie, though I consider myself still one of them .. :) 

1\ the newBoston mr. Bucky  .. learned the basic there, he is an awesome guy, may the One guide and bless him .. C++ , Java 
" www.youtube.com/user/thenewboston " 
 
2\ " www.youtube.com/c/ProgrammingKnowledge " .. this guy is an amazing  one , I did my first project as an assignment handed over during my degree titled as a hall management reservation system, all based on his Java project "a factory real done project"  , if you dear reader got his name please inform me. 

3\ Met this hardworking Arab Syrian brother, he guided me well and handed over E-Pdf book titled as " Beginning C++ Game Programming by Mike Dawson " this was real step in programming, didn't have the patience and time then, otherwise I would be a Pro if I had studied that book well. 

4\ DataBase was a serious topic for me, I learned from my tutor based on a famous book " Fundamentals of Database System " 
https://www.youtube.com/user/DesoukiEgypt.

5\ So Now I moved to C# due to final year project at my Engineering school, and this source was so helpful to me: " https://www.youtube.com/user/barnacules1 " he  is a former Microsoft Software Engineer , he has this C# tutorials on his channel .. a good helpful one.

6\ Starting my first Job and suddenly I needed to deal with Lunix environment , PHP , Mysql, Apache .. and these stuffs  but mainly was web Development position .. so I needed to switch totally my direction, and if it wasn't for this guy I should not never just made it in six months (my trainee period) ..
" Edunix " this guy at first had free full projects in PHP something around 10 projects , I downloaded the whole series , then just some days passed and I found him deleted his all vidz and started to charge on them. I can't provide ye his projects as he now charges people :( , but it is worthy every penny if you really want to learn PHP and its associates (JS, Ajax, Jquery , Mysql , Css Frameworks , PHP frameworks .. and so on .. )  
done a site system demo,  because of it I got a position. but the same position gave me this opportunity is same one derived me away from real coding. you will understand later when you get yer It job :) 

finally , my journey was quite not very smooth coz I used to had this gaps in between without doing real project and stopped being a dev for 3 years now But I kept coming back as I do programming now for a hobby. (I'm intending to make it for a living soon)

** If you re new and want an advice from beginner then I guess this poster image is the answer: https://miro.medium.com/max/1838/1*ODRUn7lXkB49Y_7hvWE7_A.jpeg