teleren/devto huggingface dataset:
Android Encrypted Shared Preference access issue from new container
Tags: android, container, dpc, containerapps
Published: 2024-03-15 12:55:42

Hello Team,
We have seen an issue related to Android Encrypted Shared Preference access from a different container in Android.
Ours is a custom DPC application, which creates another profile and container in the Android application space. The data will be migrated from personal space to this container during the transition.
In our use case, we create an encrypted shared preference when the application is in the personal space and store some data in it. After the container is created, it migrates the application data from personal space to this new container.
As we know encrypted shared preference is backed with a master key. This master key is accessible, but while trying to get the Encrypted shared preference using the master key, it throws exception like below;
[android.security.keystore.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:517),
javax.crypto.Cipher.doFinal(Cipher.java:1794),
com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decryptInternal(AndroidKeystoreAesGcm.java:118),
com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.decrypt(AndroidKeystoreAesGcm.java:101),
com.google.crypto.tink.KeysetHandle.decrypt(KeysetHandle.java:919),
com.google.crypto.tink.KeysetHandle.readWithAssociatedData(KeysetHandle.java:804),
com.google.crypto.tink.KeysetHandle.read(KeysetHandle.java:785),
com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readMasterkeyDecryptAndParseKeyset(AndroidKeysetManager.java:381),
com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:297),
androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:169),
androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:130),

Kindly let us know whether this a bug or a security limitation or intended behaviour.

Thank you!
Code is liability
Tags: softwareengineering
Published: 2024-03-15 12:51:50

---
title: Code is liability
published: true
date: 2024-03-15 12:50:20 UTC
tags: Softwareengineering
canonical_url: https://www.paleblueapps.com/rockandnull/code-is-liability/
---

 ![Code is liability](https://images.unsplash.com/photo-1619545493446-b378e885c6de?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8c2VhcmNofDd8fGhlYXZ5fGVufDB8fHx8MTcxMDQ5MjI5NHww&ixlib=rb-4.0.3&q=80&w=2000)

In the fast-paced world of software engineering, lines of code churn out like clockwork. But as most engineers know, more lines of code don't always equal progress. Actually, code can be considered a liability.

Let's unpack this. Every line you write comes with an ongoing maintenance cost. Bugs creep in, requirements change, and systems evolve. Suddenly, that "quick fix" becomes a maintenance nightmare.

This might seem like a minor hassle for a large company with a vast engineering pool. But for smaller teams, it can be a make-or-break situation. The custom code you write today accumulates, silently demanding attention in the future. This debt can steal valuable time that could be spent on innovation or core features.

When a requirement is given to most software engineers, the majority dives headfirst into custom code to have the maximum control over what is created. But there's a good chance a library or system call already exists to do what you need. Reliable, well-tested libraries offer a wealth of functionality without the burden of building and maintaining it yourself. I am double-emphasizing "reliable" libraries, since depending on a third-party library that might become unmaintainable is another type of disaster worth a dedicated post of its own. System calls, provided by your operating system, offer an even greater benefit - tapping into the core functionality of your machine - that most of the time is way more trustworthy than any third-party library.

I think engineers should work a bit more like value investors: invest your time and resources in code that delivers the highest return. Custom code can be tempting, offering the allure of complete control. But is that extra complexity worth the ongoing maintenance cost?

This shift in mindset isn't always easy. Engineers often take pride in crafting elegant and beautiful solutions from scratch. However, a pragmatic approach is crucial for long-term success. The change though could be quite simple. Develop a "reuse first" mentality and research libraries and system calls before embarking on a custom coding journey.

By adopting this "code as liability" philosophy, you can spend less time wrestling with custom code over the long run and spend more time on innovation and strategic development. Remember, sometimes the most elegant solution is the one you don't have to write yourself.

Happy coding!
CSS Battle #3 - Push Button
Tags: html, css, webdev, challenge
Published: 2024-03-15 12:36:47

![picture of daily target](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a2ku08k89h995eesi1z3.png)
[See the daily target](https://cssbattle.dev/play/3)

### Challenge Overview

The challenge requires creating a design that resembles a push button using HTML and CSS. The target image displays a square-shaped button against a contrasting background.

### Method 1 - Reflection Button

**YouTube Video**: [see video](https://www.youtube.com/watch?v=sg5pY_UA6AM)
**GitHub Repo**: [see code](https://github.com/jithesh-poojari/css-battles/blob/main/battles/%231%20-%20Pilot%20Battle/%233_Push_Button.md#method-1---reflection-button)

**Stats:**
- **Match:** 100%
- **Score:** 637.27{249}

### Code

```html
<a></a>
<p>
<style>
  body {
    background: #6592cf;
    display: grid;
    place-items: center;
  }
  a,
  p {
    position: absolute;
  }
  a {
    width: 300px;
    height: 150px;
    background: #243d83;
  }
  p {
    background: #eeb850;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 50px solid #243d83;
    box-shadow: 0 0 0 50px #6592cf;
  }
</style>
```

**Code Explanation:**

- **Background (`body`):** The `body` background color is set to a vibrant blue shade (`#6592cf`), providing a visually appealing backdrop for the button.

- **Button (`a`):** The `<a>` element represents the button shape, styled with a background color of `#243d83`, creating a contrast with the background.

- **Button (`p`):** The `<p>` element forms the circular shape inside the button, giving it a distinctive appearance. It is positioned at the center of the button, with a background color of `#eeb850` and a border to create a button-like effect.

- **Reflection Effect (`box-shadow`):** The `box-shadow` property is applied to the circular shape (`p`) to create a reflection effect. It adds a shadow with a large spread value to mimic a reflection, enhancing the visual appeal of the button.

This method effectively creates a button-like design with a reflection effect, achieving a perfect match and a high score.
Create an Account on Blogger
Published: 2024-03-13 20:02:04


Creating an account on Blogger is a straightforward process that allows you to share your ideas, creativity, and insights with a global audience. Blogger, a renowned blogging platform, offers an array of features and customizations that cater to both novice and experienced bloggers. In this blog post, I'll guide you through the steps to create your own Blogger account and start your blogging journey. Additionally, I'll share how to follow and engage with other interesting blogs, like this inspiring one I found: [https://prairiesunsolar.com/solar-panels-cost/]
[(https://prairiesunsolar.com/categories/solar-panels/)]
[https://cardiffcarstar.com/]
Step 1: Sign Up for a Google Account
To use Blogger, you need a Google account. If you already have one, you're ahead of the game! If not, visit the Google account creation page and follow the instructions to set up a new account.

Step 2: Navigate to Blogger
Once your Google account is ready, go to Blogger's homepage. Here, you'll see the option to sign in using your Google account. Proceed with the sign-in process.

Step 3: Create Your Blog
After signing in, you'll be prompted to create a new blog. Click on the "New Blog" button to start. You'll then be asked to provide a title and address (URL) for your blog. Choose a unique and descriptive name that reflects your blog's theme or content.

Step 4: Choose a Template
Blogger offers a variety of templates to choose from. These templates determine the overall look and feel of your blog. Select one that best suits your style and content. You can always change it later.

Step 5: Create Your First Post
With your blog set up, it's time to write your first post! Click on the "New Post" button and let your creativity flow. You can format your text, insert images, and even add links to make your content engaging.

Step 6: Explore and Follow Other Blogs
Blogging is not just about creating content; it's also about building community. Take the time to explore other blogs on Blogger. When you find one that interests you, such as this remarkable blog I discovered, you can follow it to stay updated on new posts.
[](www.blogger.com/profile/02619429858721289278)
What is JavaScript?
Tags: javascript, beginners, frontend
Published: 2024-03-15 12:18:45

Javascript is a programming language that can help to create dynamic pages and make it more interactive.
Javascript is described as **prototype-based**, **high-level**, **multiparadigm**, **single-threaded**, **dynamic typing**, and **garbage-collected**.

---


## ✔**JavaScript is prototype-based**

It means that JavaScript can create objects without defining its class

```javascript
function Car (){
  this.color = 'red',
  this.wheels = 4
}

const firstCar = new Car();
```

---


## ✔**JavaScript is high-level**

JavaScript is a high-level language because it's easy to understand, and it doesn't have to manage resources at all or deal with hardware and operating system. 

---


## ✔**JavaScript is multiparadigm**

JavaScript is very dynamic and it supports various types of programming styles such as:

**1. Imperative programming paradigm**

It's a paradigm that focuses on how the program should perform, through a set of instructions to follow, and the computer does what you want like:

- Object-oriented programming

- Procedural code

```javascript
const arr = [1, 2, 3, 4, 5]
const result = []

for (let i=0; i < arr.length; i++){
   result.push(arr[i] * 3)
}

console.log(result)
// [3, 6, 9, 12, 15]
```
 


**2. Declarative programming paradigm**

It's a paradigm that focuses on what the program should accomplish without specifying the instructions on how to solve the problem like: 

- Logic language

- Functional programming 

- Domain-specific language

```javascript
const arr= [1, 2, 3, 4, 5]
const result = arr.map(num => num * 3)

console.log(result) 
// [3, 6, 9, 12, 15]
```


---

## ✔**JavaScript is single-threaded**

It means that javascript can only execute one task, and each task must done and completed before the other task starts

```javascript
function First() {
  console.log('First function');
}
function Second() {
  console.log('Second function');
}

First();
Second();
// First function
// Second function
```

---


## ✔**JavaScript is dynamic typing**

JavaScript interpreter assigns a type to a variable at a run time based on the value assigned to that variable


---

## ✔**JavaScript is garbage-collected**

The Garbage collector is an algorithm inside javascript engines, it automatically frees up memory by removing unused objects, which can help to prevent memory leaks.

---


I hope you find something useful in this article

😊Happy coding!
SQl N의 필요성, 2024-03-15
Tags: sql
Published: 2024-03-15 12:17:08

```
SELECT * FROM channel
WHERE CH LIKE '%G%'

SELECT * FROM channel
WHERE CH LIKE N '%채널%'
```

N을 붙이면 따옴표 안의 값을 문자 데이터가 아니라 유니코드로 SQL이 인식이 가능, 영어인 경우가 상관이 없으나 한글처럼 영어가 아닌 문자를 사용하는 경우 필요하다

_참조 : https://velog.io/@u283917/LIKE-Na%EC%97%90%EC%84%9C-N%EC%9D%98-%ED%95%84%EC%9A%94%EC%84%B1_
Como melhorar a legibilidade e a escalabilidade do seu projeto?
Tags: webdev, beginners, javascript, tutorial
Published: 2024-03-15 12:09:49

Programar envolve diversos fatores, mas é sabido que a prática eleva os padrões, mas como saber o que está bom e o que não está? Onde devo melhorar? O que fazer?.Bem, uma boa resposta seria um guia, sênior ou mentor, mas nem sempre contamos com uma pessoa com disponibilidade para isso, por isso que eu uso estas duas tecnologias gratuitas que me fizeram evoluir de uma maneira bastante rápida. CodeClimate e SonaQube. 

## Um breve resumo sobre mim. 

Meu nome é Hudson, Desenvolvedor Frontend na OPEN Datacenter e Co-fundador da Goyadevs.com e busco compartilhar conhecimentos sobre minha área e as que tenho interesse em atuar e estudo frontend, desenvolvimento mobile, UX e Linux. 

## CodeClimate

Não é a primeira vez que falo sobre o code climate, ele utiliza de uma lógica bem simples e olha poucos itens no seu código que fazem toda a diferença: Duplicação, Complexidade, Tamanho de funções e arquivos resumidamente. Apesar de parecer simples à primeira vista e  meio irracional à segunda, usar o code climate possibilitou uma velocidade de crescimento incrível no meu projeto. 

## SonarQube 

Eu diria que diferente do CodeClimate que apresenta uma visão crua de qualidade, o SonarQube possui uma análise mais refinada, mostrando importações e funções não utilizadas, dicas de melhorias de performance, problemas de segurança e diversos outros itens que não temos no Codeclimate. 

## Qual é melhor? 

Eu poderia simplesmente falar que o SonarQube é melhor, mas a verdade é que ambos se complementam e usam diferentes formas de analisar seu código de forma que o feedback quase nunca é redundante. 

E para ajudar vocês….

## Bonûs 

Irei disponibilizar dois scripts para rodar o codeclimate e o sonarQube localmente em seu computador, ambos possuem sistemas de CI/CD e planos pagos, mas para rodar em sua máquina é gratuito.

{% embed https://github.com/Hudson3384/sonar-and-codeClimate %}

Qualquer dúvidas, não existe em criar issues ou comentar que prontamente tentarei te ajudar. 

Se você curtiu, por favor avalie para me motivar a criar mais conteúdos assim: 


[GitHub](https://github.com/Hudson3384)
[LinkedIn](https://www.linkedin.com/in/hudson-arruda-ribeiro/)
[LeetCode](https://leetcode.com/Hudson3384/)
Not bad but not good enough
Tags: webdev, cybersecurity, kali, linux
Published: 2024-03-15 12:08:39

What’s up everybody new here!!!! Not a complete rookie but not where I want to be. Ultimate goal is scam the scammers!!! I figured kodachi out on my own. I learned the dark web on my own. Any suggestions on the next step/direction I should go?
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cz2w5hgshvbhbr5hv480.jpeg)
Selenium: chromedriver dismatch version
Tags: selenium, chrome
Published: 2024-03-15 09:11:22

## Issue
Selenium failed to run with these error messages;
```
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 122.0.6261.129 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Stacktrace:
0   chromedriver                        0x000000010f9746b8 chromedriver + 4937400
1   chromedriver                        0x000000010f96bb73 chromedriver + 4901747
2   chromedriver                        0x000000010f529616 chromedriver + 435734
3   chromedriver                        0x000000010f55bd10 chromedriver + 642320
4   chromedriver                        0x000000010f55718a chromedriver + 622986
5   chromedriver                        0x000000010f55367c chromedriver + 607868
6   chromedriver                        0x000000010f59aa08 chromedriver + 899592
7   chromedriver                        0x000000010f599ebf chromedriver + 896703
8   chromedriver                        0x000000010f590de3 chromedriver + 859619
9   chromedriver                        0x000000010f55ed7f chromedriver + 654719
10  chromedriver                        0x000000010f5600de chromedriver + 659678
11  chromedriver                        0x000000010f9302ad chromedriver + 4657837
12  chromedriver                        0x000000010f935130 chromedriver + 4677936
13  chromedriver                        0x000000010f93bdef chromedriver + 4705775
14  chromedriver                        0x000000010f93605a chromedriver + 4681818
15  chromedriver                        0x000000010f90892c chromedriver + 4495660
16  chromedriver                        0x000000010f953838 chromedriver + 4802616
17  chromedriver                        0x000000010f9539b7 chromedriver + 4802999
18  chromedriver                        0x000000010f96499f chromedriver + 4872607
19  libsystem_pthread.dylib             0x00007fff2058b8fc _pthread_start + 224
20  libsystem_pthread.dylib             0x00007fff20587443 thread_start + 15
```

## Caused
Missmatch version between chrome and chromedriver

## Fix
Download matched version of chromedriver [here](https://googlechromelabs.github.io/chrome-for-testing/). then copy to `/opt/local/bin/chromedriver` in macOS with macports.


## Refs
- https://medium.com/fusionqa/selenium-webdriver-error-sessionnotcreatederror-session-not-created-this-version-of-7b3a8acd7072
- https://googlechromelabs.github.io/chrome-for-testing/
Digital Marketing : The Role of Story Telling
Tags: digital, marketing, web, seo
Published: 2024-03-15 12:01:46

Every business needs digital marketing to boost the growth of their business. In today’s digitized world any business that is not using a digital marketing strategy, they would suffer a lot in the market. You can easily search for a [digital marketing agency Dubai](https://www.emeriosoft.ae/digital-marketing-agency-dubai/) services to understand how you can get started with the first step of digital marketing, that is planning a strategy. Always remember that digital marketing is an excellent way of solidifying your position in the market, it is way better than using traditional marketing features. 

The world of digital marketing is diverse. There are different aspects of digital marketing that you can use according to your organizational needs. You can look for the PPC services, SEO services, or you can look for the best [social media marketing services Dubai](https://www.emeriosoft.ae/social-media-marketing/) has to offer. We all know that digital marketing can take our business to new heights, but have we ever wondered how it works? Let’s review the role of digital marketing in the vast business landscape. 

Return on investment 
Collaboration 
Brand awareness 
Engagement 

## Return On Investment: 
Whatever money you spend on your digital marketing strategy is always going to come back to you in double the amount. Digital marketing will increase your conversion rates and boost your sales, this way you will also witness an enhancement in your return on investment (ROI). If you spend 1$ on your marketing then, it will come back to you as 4$. 

## Collaboration: 
Collaborating with influencers and partners can help your business grow so much in today’s competitive market. More people will see your products and services on their feed, this will encourage them to explore your page, increasing your website traffic. Collaborating with trusted influencers can help you boost your sales. 

## Brand Awareness: 
One of the most paramount aspects of digital marketing is brand awareness. Even if you are a small business, people can be aware of your products and services only if you use the right digital marketing strategies. You need to increase your visibility rate across platforms if you wish to see your business grow in front of your competitors. 

## Engagement: 
For a business to do well in the market, you need customers and the only way your customers are going to stick around is with engaging content. You need to create captivating content across platforms if you wish to increase your engagement rate. Having boring or dull content can directly affect your business’s engagement. 

These are some of the major roles of digital marketing that all of us have witnessed. Always remember that you need to have a solid plan of action before you start working on your marketing strategy. You cannot shoot arrows blindly in the sky when it comes to your business, you need to rethink about your organizational needs critically before you start your journey.
How to Conquer the ACAMS Exam: Study Guide Edition
Published: 2024-03-15 11:59:17

To stay [what is acams](https://dumpsboss.com/certification-provider/acams/) abreast of the latest developments, certified professionals must commit to continuous learning and professional development. ACAMS offers ongoing training programs, webinars, and conferences that provide updates on regulatory changes, emerging trends, and best practices in the field. Engaging with these resources ensures that certified professionals remain knowledgeable and effective in their roles.

 Ethical Considerations: Ethical conduct is paramount in the field of financial crime prevention. Certified professionals must adhere to high ethical standards, maintaining [acams practice questions](https://dumpsboss.com/certification-provider/acams/) integrity, confidentiality, and professionalism in their interactions with clients, colleagues, and stakeholders. ACAMS certification programs include modules on ethics and professional conduct, emphasizing the importance of ethical behavior in safeguarding the integrity of the financial system and protecting against financial crimes. 



100% Real Practice Questions:  [acams recertification](https://dumpsboss.com/certification-provider/acams/)
Success in Test Prep Exam:   [acams practice test](https://dumpsboss.com/certification-provider/acams/)
{2024} Test Prep Exam Material:  [acams study guide](https://dumpsboss.com/certification-provider/acams/)
Get Extra 70% OFF On Questions:  [acams practice exam](https://dumpsboss.com/certification-provider/acams/)
PDF & Test Engine Bundle 80% OFF:   [acams training](https://dumpsboss.com/certification-provider/acams/)
ReactJS Development Company | ReactJS Development Services
Published: 2024-03-15 11:58:55


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







Looking to Hire ReactJS Developers? We're the Leading ReactJS Development Company, Offering Custom Services & On-Time Project Success.







**For more information - https://mobisoftinfotech.com/services/reactjs-development-company
I created a Physics Engine in GoLang💥
Tags: gamedev, opensource, go, programming
Published: 2024-03-15 11:41:52


Github : https://github.com/rudransh61/Physix.go

So ye
I again created something
bUT Its special
because it was my dream project
I wanted to built it for 2 years
And now , when i thought that i think im skilled to built this big project ...
And i did it in some days..:)
Its PHYSICS ENGINE

You can check on my dev profile also , I love physics ♥
And maths ♥
And cs ♥

So , i combined alll
And made this

It was all started very good
Thnx to GoLang , tnx google for making this language ♥

Also i used a library called <a href="https://ebiten.org">Ebiten</a> for rendering
So you can check that out also 

The graphics part was so eazy
Im literally trying for years to install SDL,SFML,OpenGL
but , nothing works at all
I think C++ hates me :( (but i love c++♥)

So you can check it 
Github : https://github.com/rudransh61/Physix.go

Now go learn new language GoLang , use this <mark>Physix.go</mark>
Create something useful and <mark>Surprise</mark> 

I am planning to write a nice Physics Engine handbook to create a physics Engine after adding more features to it
To help you to make your own engine
With very interactive guide
Free
And share my physics and maths knowledge with others

So if you have any advice related to this you can help me (pls)

So ye Thanks for reading !!