teleren/devto huggingface dataset:
Adding location tracking to mobile apps (for Android)
Tags: mobile, android, location, sdk
Published: 2024-06-18 15:55:37

Hey! 👋 

Is anyone struggling with location tracking performance on their mobile app?

We've got this quick guide article with an introductory breakdown of our location SDK's setting up, installation, and initialization process.   

Check it out: [Integrating Location Tracking using Roam.ai's Android SDK
](https://www.roam.ai/blog/integrating-location-tracking-using-roam-ais-android-sdk)

(And yes, we're GDPR compliant :) )
Palindrome check a string
Tags: go, programming, interview, interviewquestions
Published: 2024-06-18 15:53:10

This one is pretty common. Sounds difficult, but not really bad once you think it through.

Write a golang function to check if a string is a palindrome.

A palindrome is a sequence of characters that is the same even when reversed, for example: 

- "aba" is a palindrome

- "abb is not

- "ab a" is considered a palindrome by most, so we ignore whitespace.


```

func PalindromeCheck(str string) bool {
	trimmedStr := strings.ReplaceAll(str, " ", "")
	len := len(trimmedStr)
	chars := []rune(trimmedStr)
	for i := 0; i < len/2; i++ {
		if chars[i] != chars[len-i-1] {
			return false
		}
	}
	return true
}
```
This solution is functionally the same as you will find for C or Java when searching online. We are essentially using dual pointers to traverse from the beginning and the end looking for a mismatched character. When a mismatch is found, we can declare the string is not a palindrome.

Can we make it better? 
Is there a better way to trim whitespace rather than using `strings.ReplaceAll`? (_there is but it can get ugly_)
What about the efficiency of converting to an `[]rune`, is there a better way?

Post your thoughts in the comments.

Thanks!

_The code for this post and all posts in this series can be found [here](https://github.com/johnscode/gocodingchallenges)_
Recursive function
Tags: javascript, recursive
Published: 2024-06-18 15:44:45

# What is a Recursive Function in JavaScript?
> A recursive function is a function that calls itself in order to solve a problem. It's like a loop, but instead of repeating a block of code, it calls itself with a smaller piece of the problem.

# Why Use Recursive Functions?

1. **Breaking Down Problems:** Recursive functions are useful when a problem can be divided into smaller, similar problems.

2. **Cleaner Code:** For some problems, recursion can make the code simpler and easier to understand compared to using loops.

# Key Components
1. **Base Case:** This is the condition that stops the recursion. Without it, the function would call itself forever.
2. **Recursive Case:** This is where the function calls itself with a smaller part of the problem, moving towards the base case.

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

# Funny samples:
1. Running Competition:
```
function runOrder(countDown) {
    if (countDown <= 0) {
        console.log('Goo...!!!')
        return;
    }
    console.log(countDown)
    runOrder(countDown - 1)
}
runOrder(4);
// 4
// 3
// 2
// 1
// Goo...!!!
```
2. Knock Knock
```
function knockKnock(times) {
    if (times <= 0) {
        console.log(`Who's there?`)
        return
    }
    console.log(times)
    knockKnock(times-1)
}
knockKnock(3);
// 3
// 2
// 1
// Who's there?
```
Real time data pipeline with a single command
Tags: data, webdev, analytics
Published: 2024-06-18 15:34:31

After working at companies big and small, I often found myself poring over logs to answer business questions for non-technical users. To be honest, a more sophisticated server-side SDK for instrumenting event data would have been ideal, with that data then streamed into a Kafka queue. This would allow me to write an ETL job to transform the data, subsequently storing it in a data warehouse, from which I could integrate with tools like Looker or Tableau so business users can create dashboards themselves! If only there were infinite time and energy for such indulgent engineering projects... It would have been marvelous!

In practice, I wrestled with messy log data until it could be condensed into a nice number suitable for a dashboard. If more data was necessary, I would simply log it in the code, then get back to building features for customers or arguing with strangers on Reddit.

After my cofounder Seb and I joined DoorDash through an acquisition from Bbot—a restaurant technology startup—we had to integrate Bbot data into DoorDash’s data pipeline. This task was intended to answer questions such as the number of completed checkouts per day, average check subtotals, and total daily sales, etc. Once again, we found ourselves in a familiar problem space, that was the last straw, we quit immediately! 

In reality, it took another month to gather the courage to actually quit our day jobs, but that's only a minor detail.

We built Siege because we wanted a fast and easy way to get real time data into a format that is easily queryable using plain SQL. We spent a few months building an agent in C that you can just plop into your server(s) to mine data directly from API traffic while using negligible resources. You can then pick and choose the data fields to track with just the click of a button from a catalog of data points. We also built an user-friendly UI that allows you to visualize the data and create real-time dashboards. All in less than 10 minutes.

We have 4 criteria when choosing tools for our own use:

1. We hate reading documentation, so it better be short. 
2. We need to be able to derive value from it within the first 10 minutes.
3. We need to be able to play with it for free, no sales calls ever.
4. Dark mode.

We were fully committed to these principles while building our own tool. Join our public beta for free! https://siegeai.com
🚀Notcoin Price Forecast: Is NOT Going To Zero As Bearish Momentum Builds?
Published: 2024-06-18 15:33:48


📉 Notcoin price forecast shows a significant 14.64% drop, now trading at $0.01534, according to CoinMarketCap. With a market cap of approximately $1.575 billion, trading volumes surged over 5% in the last 24 hours, reaching around $770 million.

📊 Over the past week, Notcoin has seen a decrease of more than 4%, indicating bearish sentiment. Despite this, the token has gained approximately 130% over the past month, showing an overall upward trend. The broader market downturn, with Bitcoin dropping below $66,000, is affecting altcoins like Notcoin.

🔍 Analysts suggest various factors behind the sell-off, including macroeconomic pressures and miner capitulation. Notcoin shows strong downtrend momentum, possibly finding support at $0.015. A prolonged downturn could push the price to $0.012 or $0.01. However, a bullish phase could see it break the $0.019 resistance level, potentially reaching $0.05.

📉 Technical indicators show a concerning downward trend. The MACD is below the signal line, and the RSI is at 27, indicating oversold conditions. The Bollinger Bands suggest narrowing volatility, with the price trend descending toward the lower band.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9a3ljee84dwmnjbf1op.png)
🤯Pepe Coin Whale Dumps 1 Tln Coins To Binance, Price Risks Further Dip?
Published: 2024-06-18 15:33:31


📉 Pepe coin has sparked investor concerns amid the crypto market’s bearish trend on June 18. The frog-themed meme coin has shown signs of a correction, with bearish sentiments amplified by a whale’s colossal selloff of over 1 trillion PEPE to Binance.

🐳 Whale Alert data shows 1.15 trillion PEPE, worth $12.34 million, was dumped by an unknown address, causing significant selling pressure and reduced market confidence. Despite this, the whale still holds 6.77 trillion PEPE and 2.19 trillion SHIB, among other tokens.

📊 PEPE’s price dipped 9.21% in the past 24 hours to $0.00001055, with daily lows and highs of $0.000009865 and $0.00001176, respectively. Coinglass data indicates substantial liquidations totaling $6.78 million, contributing to the price correction.

📉 Futures OI for PEPE dropped 14.52% to $109.67 million, while derivatives volume spiked 79.19% to $1.96 billion due to speculative trading. The RSI at 38 signals downside pressure, potentially leading to oversold conditions and a price rebound if the market recovers.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/94wea5q1mwsg6ncrgwvd.png)
Top 7 Featured DEV Posts of the Week
Tags: top7
Published: 2024-06-18 15:33:16

Welcome to this week's Top 7, where the DEV editorial team handpicks their favorite posts from the previous week. This week, there happens to be an an abundance of career advice from different perspectives! 

Congrats to all the authors that made it onto the list 👏
 
{% embed https://dev.to/thekashey/weak-memoization-in-javascript-4po6 %}
Anton walks us through an evolution of concepts (with code snippets every step of the way) to help us better understand memoization in JavaScript.

---

{% embed https://dev.to/wasp/ive-been-writing-typescript-without-understanding-it-5ef4 %}

@vincanger realized they didn't understand the fundamentals of TypeScript, so they took a step back and did some investigating.  In this post, we learn about some initial discoveries.

---

{% embed https://dev.to/gauri1504/building-a-bulletproof-cicd-pipeline-a-comprehensive-guide-3jg3 %}

Gauri offers a comprehensive guide on the different considerations for building a CI/CD pipeline, packed with tips and best practices for a secure and efficient workflow. 

---

{% embed https://dev.to/tentanganak/7-habits-that-programmers-must-have-1dfj %}

Firman applies the lessons of the book "7 Habits of Highly Effective People" to the day-to-day lives of programmers to enhance productivity and career growth. 

---

{% embed https://dev.to/vorniches/ive-worked-in-it-for-over-10-years-here-are-5-things-i-wish-i-knew-when-i-started-43pe %}
Sergei shares valuable lessons learned over a decade in IT, offering insights that are both practical and reflective. 

---

{% embed https://dev.to/dipakahirav/understanding-debouncing-in-javascript-5g30 %}
Dipak explains the concept of debouncing in JavaScript, providing practical examples and applications. This post is essential for developers looking to optimize their web applications.

---

{% embed https://dev.to/rampa2510/advice-for-intermediate-developers-4777 %}
Ram reflects on a [post they shared five years ago](https://dev.to/rampa2510/3-tips-for-new-developers-49hj), as an early career developer, and shares new advice they've learned since gaining more experience.

---


_And that's a wrap for this week's Top 7 roundup! 🎬 We hope you enjoyed this eclectic mix of insights, stories, and tips from our talented authors. Keep coding, keep learning, and stay tuned to DEV for more captivating content and [make sure you’re opted in to our Weekly Newsletter] (https://dev.to/settings/notifications) 📩 for all the best articles, discussions, and updates._
🤑Bitcoin Price: Top Reasons Why $65K Support Can End Crypto Crash?
Published: 2024-06-18 15:28:36


📊 The Bitcoin Fear and Greed Index remains high at 74, suggesting early stages of greed. Despite recent losses, some investors see BTC as a good buy at current levels. However, cautious optimism is advised as the market could see further sell-offs.

🔍 Over the past 7 days, Bitcoin has declined by 2.5%, adding to a 4.5% drop over the past two weeks. Support at $65,000 is crucial for a bullish outlook, potentially pushing BTC to $70,000.

📉 Analysts note that retail investors have not yet significantly impacted the market. Long-term holders provide a solid price base, but Bitcoin needs to breach key resistance levels at $68,000 and $70,000 for a bullish trend.

📈 Bitcoin is in a falling wedge pattern, indicating potential short-term recovery if $65,000 support holds. The RSI is at 40, suggesting a selling bias. If selling continues, BTC may drop to $63,000 or $60,000. Bulls face resistance at $68,000 and $70,000 before targeting new highs.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q4zjsq540l3lw6arigml.png)
🔥🔥🔥Top 5 Altcoins To Buy If Targeting 2X Recovery This Week
Published: 2024-06-18 15:27:21


📈 Investors are scouting the market for altcoins to buy after Bitcoin's volatility caused a downturn. Despite the losses, some altcoins show recovery signals. Here are five altcoins that could rally by 100% this week.
Notcoin (NOT)

🚀 Notcoin, a play-to-earn token, launched in mid-May and has shown strong performance with a $1.6 billion valuation. Trading at $0.0158, NOT saw a 3% increase in 24-hour volume. Increased activity on the TON blockchain, with USDT supply exceeding $580 million, boosts its prospects.
JasmyCoin (JASMY)

💹 JasmyCoin allows users to own and monetize their data. After a pump linked to Apple rumors, JASMY found support at the 0.5 Fibonacci level and targets 2X gains. Trading at $0.0338, with a 0.4% increase in 24-hour volume, JASMY is a strong buy for potential 100% gains.

Shiba Inu (SHIB)
🐕 Shiba Inu, known as the Dogecoin ‘killer,’ could rebound soon with bullish news and increased burn rates. Real-life adoption is rising, with SHIB accepted by DevourGO. Trading at $0.0000181, SHIB's 24-hour volume spiked by 148%, signaling strong interest.

DOG•GO•TO•THE•MOON (Runes) (DOG)
🌕 DOG•GO•TO•THE•MOON (Runes), a meme coin on the Bitcoin network, has a $613 million market cap and trades at $0.006089. With a 45% increase in 24-hour volume, it aims to surpass the $1 billion mark.

Pepe (PEPE)
🐸 Pepe, a top meme coin, is gearing up for another rally. Despite a recent 10.1% weekly drop, its 24-hour trading volume surged by 75.2% to $1 billion. PEPE trades at $0.00001071, showing increased market activity.
📉 While these altcoins have declined recently, they offer strong potential for attractive returns based on current trends and indicators.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdxgu5eb5nn24oa1nnr8.png)
Is it safe to use encryption with plausible deniability?
Tags: encryption, linux, security
Published: 2024-06-18 15:19:01

I wanted to try to hide some of my files in a way that it wouldn't even be visible that something is hidden. I found a [tutorial for Cryptsetup LUKS](https://www.blunix.com/blog/plausible-encryption-deniability-on-linux-with-cryptsetup-luks.html) and tried to implement it. 

The problem is what I read on several other [threads](https://forums.whonix.org/t/veracrypt-plausible-deniability-encryption-for-whonix-users/7247/6) that a person might be detained and arrested if signs of such encryptions are found on their computer.

Does anyone know if it's actually a serious issue?
SteamVR Overlay with Unity: Appendix
Tags: unity3d, steamvr, openvr, vr
Published: 2024-06-18 15:11:43

This part contains where to look for more detailed information.

## OpenVR repository

OpenVR’s official repository is the most important 

https://github.com/ValveSoftware/openvr

I recommend reading the wiki at first.

https://github.com/ValveSoftware/openvr/wiki/API-Documentation

Detailed information that is not on the wiki tends to be written in C++ header file comments. If you are looking for some feature, try to find the header file.

https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h

Anything else, try to find from the issue.

https://github.com/ValveSoftware/openvr/issues

## SteamVR Unity Plugin repository

SteamVR Unity Plugin repository has utilities for Unity.

https://github.com/ValveSoftware/steamvr_unity_plugin

Here is the document.

https://valvesoftware.github.io/steamvr_unity_plugin/api/index.html

## Other repositories

Open source projects like OVR Advanced Settings are helpful.

https://github.com/OpenVR-Advanced-Settings/OpenVR-AdvancedSettings

## Show 3d objects with overlay

Overlay can show 3d objects with stereo image.
For example, the VR paint app Vermillion has overlay mode that displays 3d objects.

{% embed https://www.youtube.com/watch?v=udc1i97KPLY %}

I don’t have enough information but list up methods I know.
(The below information may contain incorrect information.)

### Method 1: SideBySide

Pass `VROverlayFlags.SideBySide_Parallel` to `SetOverlayFlags()`. This enables stereo images for overlay.
Side by side image is an image that the left half to the left eye and the right half to the right eye then it makes 3d.
Create two cameras for each eye in Unity, and draw the camera output horizontally onto the texture to make side by side texture.

### Method 2: Stereo Panorama

Pass `VROverlayFlags.StereoPanorama` to `SetOverlayFlags()`. This enables stereo panorama for overlay. Like the side by side, stereo panorama uses two areas of the image for each eye.

### Method 3: Overlay projection

`SetOverlayTransformProjection()` shows overlay for the specific eye only.
You can get the eye position by transforming Origin -> HMD -> Eye with [GetEyeToHeadTransform()](https://github.com/ValveSoftware/openvr/wiki/IVRSystem::GetEyeToHeadTransform).

{% embed https://twitter.com/kurohuku7/status/1566307113697423360 %}

### Method 4: Combine planes

If the desired 3d object is a simple form like a cube, you can make 3d objects with 2d planes. For example, create a cube with 6 overlays or a cylinder with a curved overlay with `SetOverlayCurvature()`.

I use this method in OVR Locomotion Effect. It makes a large grid cube that encloses the player with 6 overlays. Also, the wind effect is made with a curved overlay as a tube and encloses the player’s HMD to create a sense of depth.

{% embed https://www.youtube.com/watch?v=vv-e_6-vjiE %}

Find with keyword `stereo` or `sidebyside` in `openvr.h` for 3d objects.

## Get the HMD output

`GetMirrorTextureD3D11()` or `GetMirrorTextureGL()` of `OpenVR.Compositor` read the HMD output.
Claude is so nice that
Tags: claude, chatgpt, ai, bullshit
Published: 2024-06-18 15:08:01

when I failed to talk to Claude because its capacity maxed out. This time I instantly grabbed my credit card and subscribed it.

On the other hand, when ChatGPT starts bullshitting, my patience towards its credibility is getting out. I don't know why but its Bullshittness level is accumulated and when it hits 100%, I would, from time to time, unsubscribe it with like "you're never getting a second chance" anger.
And of course, subbed it again like a week after. So, technically I've never unsubscribed ChatGPT. lol

Anyway, I mean... I'm just touched by how Claude talks.
Casting and its types in networking
Tags: devchallenge, cschallenge, computerscience, beginners
Published: 2024-06-18 15:06:56

*This is a submission for [DEV Computer Science Challenge v24.06.12: One Byte Explainer](https://dev.to/challenges/cs).*

## Explainer
Casting means sending data packets over a network.
Unicast is sending data to a single node in a network (one-one). Broadcast is sending data to all nodes in a network (one-all). Multicast is sending data to a group of nodes in a network (one-many).
<!-- Explain a computer science concept in 256 characters or less. -->

## Additional Context
I was learning about this from a youtube video and thought why not write this networking concept in this challenge?
<!-- Please share any additional context you think the judges should take into consideration as it relates to your One Byte Explainer. -->

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image to your post (if you want). -->

<!-- Thanks for participating! -->
List of FAANG front-end coding questions.
Tags: interview, frontend, coding, beginners
Published: 2024-06-18 14:54:22

- Star Rating

- Design Pop Over
    
- Design Accordion `(Amazon onsite)`
    
- Design Carousel
    
- Design grid using HTML/CSS and Javascript with search and sort, event bubbling (Amazon onsite)
    
- Design NavBar
    
- Infinite Scroll
    
- Typeahead / autocomplete using trie
    
- Implement Debounce function
    
- Implement tic tac toe
    
- Make snake ladder board
    
- Make calendar of any Month like Date Picker
    
- Implement throttle function
    
- Implement custom Higher Order Functions like Map, Reduce, Filter, Sort `(Amazon Phone Interview)`
    
- Create an analog clock
    
- Make a todo list
    
- Create functionality to change all text on page to different translations
    
- Build a calculator (add/subtract/multiply/divide/log/pow)
    
- Search and display Giphy images (through Giphy api) in responsive format
    
- Build Connect Four
    
- Implement Nested Checkboxes (parent is checked, children are checked and vice versa. Must use actual checkbox input)
    
- Implement a poll widget
    
- Implement Event Emitter
    
- Implement promise.all function
    
- Flatten nested Javascript Array without using Array.prototype.flat()
    
- Implement Sort() function.
    
- Implement promise.all function

- LRU Cache `(Netflix onsite)`
    
- Make snake ladder board
    
- Make calendar of any Month
    
- Implement throttle function
    
- Implement an event emitter

- Implement a hashtable

- Create an analog clock

- Make a todo list

- Build Connect Four
    
- Implement Material UI Chips with auto-suggest `(Amazon SDE I)`
    
- When sending an e-mail, auto-suggest people and convert them into a chip with their avatar on the right
    
- Implement a Carousel
    
- Show default if the image doesn't exist. Prefetch the images.
    
- Inversion of Object
    
- Given an object make the keys as values and values as keys.

- Recursively destructure if the type of value is an object
    
- Write Throttle function without the use `setTimeout()` and `clearTimeout()`
    
- Create a "Select" component using HTML + CSS + js.
    
- Implement reusable table component.


## I will publish code/solutions to all of the above questions gradually. Follow me here for my future article updates.
Papo e Ideias: Conectando Tecnologia e Negócios!
Tags: braziliandevs, noticias, tecnologia, podcast
Published: 2024-06-18 14:38:32

Olá, comunidade Dev.to! 🚀

Quero compartilhar uma novidade incrível com vocês! Estou lançando, junto com meu amigo Bruno, nosso podcast, Papo e Ideias. Junte-se a nós enquanto discutimos as principais **notícias de tecnologia e negócios da semana de forma leve e descontraída**.

Episódio 1: O Que Está Rolando no Mundo da Tecnologia?
No nosso primeiro episódio, falamos sobre:

**Apple Intelligence**: Como a Apple se destaca com sua nova tecnologia integrada aos seus sistemas.

**Ferramentas Multiagentes para ChatGPT**: Como você pode usar multiagentes para melhorar suas interações com o ChatGPT.

**Nvidia Ultrapassa Apple em Valor de Mercado**: O que isso significa para o mercado de tecnologia?

**Taxação da União Europeia para Carros Elétricos Chineses**: As implicações dessa nova medida.

**TikTok como Fonte de Notícias para Jovens Americanos**: Por que o TikTok está se tornando a principal fonte de informação para os jovens?

{% youtube AU_AH81FtsA %}

Por Que Ouvir?

Se você quer **ficar atualizado** com as últimas novidades em tecnologia e negócios de uma forma leve e amigável, o Papo e Ideias é para você.

Onde Nos Encontrar?
Você pode nos ouvir nas principais plataformas de podcast. Siga-nos e deixe seu feedback!

[Youtube](https://www.youtube.com/@papoeideias)
[Spotify](https://podcasters.spotify.com/pod/show/papoeideias)

Estamos ansiosos para saber o que vocês acham! Deixe seus comentários e sugestões, e não perca os próximos episódios do Papo e Ideias!