teleren/devto huggingface dataset:
Golang Notes - 4
Published: 2023-10-16 10:23:59


**fmt package formatted output**

%d %f
```
fmt.Printf("%d - %f\n", 7, 19.1) // %d decimal %f float

fmt.Printf("%.3f\n", 19.2322424) // 3 point

fmt.Printf("%+d\n", 7) // print sign of decimal
```

%s
```
fmt.Printf("%s\n", "your string")
```

%q
```
fmt.Printf("%q\n", "your quoted string")
```

%v
```
type Student struct {
	Age int
}

fmt.Printf("%v %v %v\n", "print any type", 1, 1.9)
/*
%v	the value in a default format
%+v  adds field names
%#v	a Go-syntax representation of the value
*/
age := &Student{Age:4}
fmt.Printf("%v %+v %#v\n", age, age, age)
// &{4} &{Age:4} &main.Student{Age:4}
```

%T
```
fmt.Printf("%T\n", "print type of")
```

%t
```
fmt.Printf("%t\n", false)  // print bool type
```

%b
```
fmt.Printf("%b\n", 10)  // print as base 2

fmt.Printf("%08b\n", 10)  // 8 bit format with leading zeros
```

%x
```
fmt.Printf("%x\n", 10)  //  base 16 hexadecimal
```
How to redirect WordPress images to a different domain
Tags: development, wordpress
Published: 2023-11-27 17:27:20

---
title: How to redirect WordPress images to a different domain
published: true
date: 2023-10-16 10:09:24 UTC
tags: Development,Wordpress
canonical_url: https://daniele.tech/2023/10/how-to-redirect-wordpress-images-to-a-different-domain/
---

2 lines and resolve your issue!

The post [How to redirect WordPress images to a different domain](https://daniele.tech/2023/10/how-to-redirect-wordpress-images-to-a-different-domain/) appeared first on [Daniele Mte90 Scasciafratte](https://daniele.tech/eng).
Why I write?
Tags: writing, machinelearning, ai
Published: 2023-10-16 10:03:56

Writing helps me think clearly. Whenever I want to form an opinion, I prefer to sit and write. I know I can take my time, write and rewrite as many times as I want until I feel pleased with my line of logic.

Writing helps me decide what’s important and what’s not. It would be ludicrous to spent 3 hours of my life writing about a topic that is not really that important. So when I actually sit and write, it is a confirmation of the importance of the task.

Writing is an outlet for my creativity. I love playing with language in unexpected ways, coming up with new ways of expressing emotions or experiences. Unfortunately most of them are not something I could put out there in public!

Writing keeps my brain healthy. Like any other muscle, you need to constantly challenge it to make it grow, not in a literal sense though!, to make it better.

Writing keeps me questioning my assumptions about the life around me. This is when the time slows down, and I’m forced to think deeply about any comments I made. Was I right? Was I wrong?

Writing makes me, hopefully, a better, more empathetic human being.

--- 

Hello 👋 My name is Michael Antczak.

The image at the top of the article was generated with DALL-E 3 and the following prompt:

“Photo of a young Caucasian male with dark hair, confidently sitting in the cockpit of a Slingsby T31 glider. The aircraft is positioned on a grassy runway, poised for takeoff. The sky is blue with scattered white clouds, and the young pilot smiles with eager anticipation.”

Clearly you can see that it didn’t manage to pick up the [right T31 glider](https://en.wikipedia.org/wiki/Slingsby_Tandem_Tutor). 

I used to say that “I was a glider pilot once”. But one smart instructor told me one day: “Once you have made a single flight as a solo pilot, then you can call yourself a pilot for life”. OK. I am a pilot then 😀

I used to fly gliders like [ASK-21](https://www.youtube.com/watch?v=dV_sS8YBM0I), [T21](https://www.youtube.com/watch?v=y19dxd82XCg), [T31](https://www.youtube.com/watch?v=X53jEZMfVas), [Duo Discus](https://www.youtube.com/watch?v=wjHJKbG-iFM), and more. One day I still want to fly [DFS SG 38](https://youtu.be/kIY8lyl0m_4?feature=shared&t=4)…

Here is the real me ages ago:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4qqrlbsc33gsll0b606q.jpg)
Will A.I. replace me as a React full-stack Developer
Tags: react, reactjsdevelopment, node, fullstack
Published: 2023-10-16 10:02:50

Using tools like GitHub Copilot can indeed make development tasks more efficient and assist developers in writing code more quickly. However, it's unlikely that developers, including full-stack React developers, will become jobless due to such tools. Here's why:

**Still Need Human Judgment: **While AI-driven tools like Copilot can assist with writing code, they lack the ability to make critical design decisions, evaluate complex business logic, or understand the specific needs of a project. Human developers provide valuable judgment, creativity, and problem-solving skills that AI tools cannot replace.

**Code Quality and Security: **Ensuring code quality and security are crucial aspects of software development. Human developers are responsible for reviewing and maintaining code quality, identifying vulnerabilities, and making architectural decisions that go beyond the scope of code generation tools.

**Project-Specific Knowledge:** Every project and organization has unique requirements and constraints. Human developers bring project-specific knowledge, domain expertise, and an understanding of the business context to their work, which AI tools do not possess.

**Continuous Learning:** The field of software development is constantly evolving. Developers need to adapt to new technologies, best practices, and emerging trends. AI tools can assist in this learning process, but developers are still essential for making informed decisions and staying up-to-date.

**Collaboration and Communication:** Collaboration, communication, and teamwork are vital in software development. Developers need to work closely with colleagues, stakeholders, and clients, which requires a range of soft skills that AI lacks.

AI as a Tool: AI and code generation tools should be seen as tools that enhance a developer's capabilities rather than as replacements. Developers can leverage these tools to streamline their work, increase productivity, and focus on higher-level tasks.

**In summary, while AI tools like GitHub Copilot are valuable for developers and can help automate certain aspects of coding, they do not eliminate the need for skilled human developers. The role of a developer involves much more than just writing code, and the expertise and judgment that developers bring to projects remain indispensable. Developers who continue to learn, adapt, and expand their skill sets will remain valuable contributors to the software development industry.**
Cracking the Code: Strategies to Pass the Dumpsmedia Exam
Published: 2023-10-16 09:51:39

 <a href="https://dumpsmedia.com "> Dumps Media</a> Seek out success stories and testimonials from individuals who have earned the Salesforce Service Cloud certification. Their experiences and insights can provide motivation and guidance for your own journey. Stay Updated: The field of CRM and customer service is dynamic, with new features and updates released regularly. Stay updated on the latest Service Cloud developments through Salesforce release notes, blogs, and webinars. Ethical Study Approach: It's important to approach your certification <a href="https://dumpsmedia.com ">Dumpsmedia</a> journey with integrity and adhere to ethical study practices. Avoid using unauthorized materials, such as braindumps, which can lead to the invalidation of your certification and damage your professional reputation. Conclusion Mastering the Salesforce Service Cloud certification in 2023 is a valuable step toward unlocking your potential in the field of customer service and CRM. This certification validates your expertise in configuring and optimizing the Service Cloud platform to deliver exceptional customer support and experiences



Click here for more info…>>>>>>>>>    https://dumpsmedia.com/
Driving Towards a Greener Tomorrow: How Employee Transportation Solutions Align with CSR Goals and Sustainability
Published: 2023-10-16 09:50:19

The transportation sector is responsible for a large share of environmental damage. If we talk about India, the carbon emission from the transportation section alone in 2021 was 286 metric tons.

In such a scenario,  it’s our responsibility to drive towards a greener tomorrow in every way possible. And companies with a large fleet of employees have a huge role to play here.

A manual management of employee transportation is anyway too tedious and yet poorly managed. It can create issues like- inefficient scheduling, lack of real-time visibility, issues with regulatory compliance, safety concerns, etc.

But by opting for an employee transportation solution like AFM, you can automate the whole process and leave no scope for errors. Besides, such a solution enables you to integrate CSR activities like social and environmental concerns into your company’s business operations.

Common activities in a CSR plan include managing energy consumption, reducing emissions and water use, material recycling, promoting employee wellness, ensuring ethical labor conditions abroad, and engaging in philanthropic initiatives.

And all these can be achieved when you adopt an employee fleet management solution. Let’s read further to understand how an ETS can help you align CSR goals sustainability and improve employee commuting experience.
6 Ways an ETS Solution Aligns Employee Commuting, CSR Activities & Promotes Sustainability
So you are not capable of selecting what suits u best?
Tags: ai, webdev, opensource
Published: 2023-10-16 09:48:49

**That's correct.** I do not have the capability to select what suits me best or to have personal preferences or beliefs. I provide information and respond to questions based on patterns in the data I was trained on, but I do not possess consciousness, subjective experiences, or the ability to make choices. My responses are generated based on algorithms and data, and I do not have the capacity to form opinions or make selections.

As of my last update in September 2021, no AI systems or technologies were capable of forming subjective preferences or beliefs. AI operates based on algorithms, data, and predefined rules, and it lacks consciousness, self-awareness, and the ability to have personal preferences or opinions. AI systems are tools created by humans to perform specific tasks or provide information, and they do not possess the qualities of sentience or personal agency.

**While AI can be used to analyze data, make recommendations, and even simulate certain aspects of human-like decision-making, these processes are ultimately determined by the algorithms and data used in the system**, and they are not indicative of the AI having personal preferences or beliefs. If there have been developments in AI or artificial
 general intelligence (AGI) beyond my last update, I would not have information on those developments.
Customize the Optimizely CMS Login Page
Tags: optimizely, episerver, dotnetcore
Published: 2023-10-16 09:46:13

The Optimizely CMS Login Page can be customized to fit your brand. Here's how.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jers1kxjbp97jeyo98n6.png)The default one which we can modify..

For **.NET Core** based websites (Optimizely CMS 12 and later) this can be configured in the Startup.cs file and `Configure` method.

The simplest thing is to add a **request delegate** to the `Configure` method, looking for the default CSS file and background image, and replace them, like this:

```
app.Use(requestDelegate =>
{
	return new RequestDelegate(context =>
	{
		if (Regex.Match(context.Request.Path, "^\\/Util\\/styles\\/login\\.css", RegexOptions.IgnoreCase).Success)
		{
			context.Request.Path = new PathString("/ClientResources/Styles/EpiserverLogin.css");
		}

		if (Regex.Match(context.Request.Path, "^\\/Util\\/images\\/login\\/login-background-image\\.png", RegexOptions.IgnoreCase).Success)
		{
			context.Request.Path = new PathString("/ClientResources/Images/LoginImage.webp");
		}

		return requestDelegate(context);
	});
});
```
You can make this a separate middle ware class but I think this is pretty self-explanatory and clean. Note the paths.

For .NET framework based websites (Optimizely 11 and earlier), the same can be done with an `InitializableModule` and `HttpContext.Current.RewritePath`.
How to Customize the Working Days and Hours in Blazor Scheduler Component
Tags: webdev, dotnet, csharp, blazor
Published: 2023-10-16 09:44:50

Learn how to customize working days and hours in the Syncfusion Blazor Scheduler component. This video demonstrates the functionality of setting working days and hours, showing weekends and week numbers, setting the start day of the week, displaying custom hours in the scheduler, and scrolling to specific times and dates.    The Scheduler is a fully featured calendar component that allows you to manage your time efficiently. It facilitates easy resource scheduling and appointment rescheduling through drag-and-drop and resizing actions.  

Many real-time applications use schedulers as an integral part, thus serving different purposes based on the project type. Some of the active applications are fare calendars, meeting room calendars, doctor’s appointment planners, hotel room reservation calendars.   A wide variety of built-in view modes are available: day, week, workweek, month, agenda, month-agenda, year, and timeline. Easily configure each individual view with view-specific options.    

Users can create and edit events and appointments in line with a single click on the schedule cells or on an appointment’s subject. Pressing Enter after the new subject text is typed in the inline text box will update and save the appointment.      

**Tutorial video:** https://www.syncfusion.com/tutorial-videos

**Download the example from GitHub: **    https://github.com/SyncfusionExamples/blazor-scheduler-working-days-hours/tree/master

{% youtube PcFr6bc_yhE %}
Golang Notes - 3
Published: 2023-10-16 09:42:28

**Comments**

`// your one-line comment`

```
age := 18 // inline comment
```

comment out a line of code in Go using
`//`
`/* */`

```
/*
  multiline
*/
```

**Naming Conventions**

go language specification

names start with a letter or underscore `_`

go keywords can not be used

The idiomatic way is to use camelCase with acronyms in all caps.
`accessDB:=false`
Golang Notes - 2
Published: 2023-10-16 09:21:17


**Variables**

`var age int = 30`

underscore `_` blank identifier

short declaration `:=` colon equals

`age := 30`

only works block scope
cannot define a var with short declaration in global scope

at least one new variable should be defined

**Multiple Variable Declarations**

`car, cost := "Audi", 5000`

```
var (
	salary    float64
	firstName string
)
```

`var a,b,c int`

swapping variables
```
var a, b int
a, b = 4, 5
a, b = b, a
```

**Types and Zero Values**

if value not provided explicitly
Go is statically (type checking at compile-time) and strongly typed (don’t allow implicit conversions between unrelated types)

numeric : `0`
bool : `false`
string: `""` empty string
pointer: `nil`
Drug Addiction Treatment Centers in Chennai: A Ray of Hope by TPF India
Tags: chennaideaddiction, deaddictioncenterinchennai, deaddictioncentrechennai
Published: 2023-10-16 09:17:46



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8sfmf1vll3fh7s465jyh.jpeg)

**Introduction**

Drug addiction is a growing concern worldwide, affecting millions of lives and tearing apart families. In Chennai, the problem is not alien, but fortunately, there are dedicated treatment centers working tirelessly to bring positive change. This article delves into the world of [Drug Addiction Treatment Centers in Chennai](https://www.tpfindia.co.in/), with a focus on TPF India.

**Understanding the Menace: Drug Addiction**

Chennai, like many other cities, faces the daunting challenge of drug addiction. Exploring the reasons behind the rising numbers sheds light on the importance of effective treatment centers.

**The Role of Drug Addiction Treatment Centers**

**TPF India: Pioneering Change in Chennai**

Among the notable names in the realm of drug addiction treatment centers, TPF India stands tall. Established with a mission to heal and transform lives, this center has been a beacon of hope for many.

**Holistic Approach to Treatment**

At TPF India, the approach towards drug addiction is holistic. It goes beyond just the physical aspect, focusing on the mental and emotional well-being of the patients.

**Qualified Professionals and Personalized Care**

One of the key aspects that distinguish TPF India is its team of qualified professionals. They provide personalized care, understanding the unique needs of every individual.


**Innovative Therapies and Counseling**

Incorporating innovative therapies and counseling sessions, TPF India ensures that patients receive comprehensive support. 


**The Impact of TPF India: Success Stories**

**Real-Life Transformations**

Through heartwarming stories of individuals who have successfully battled addiction, TPF India has created a legacy of hope and recovery.

**Community Integration and Support**

Beyond the walls of the center, TPF India focuses on community integration. Recovered individuals are encouraged and supported to reintegrate into society, fostering a sense of belonging.

**Conclusion**

In the fight against drug addiction, [Drug Addiction Treatment Centers in Chennai](https://www.tpfindia.co.in/) stand as a testament to the power of determination and compassion. Their unwavering commitment to healing and recovery has restored countless lives, making TPF a better place for all.


**Frequently Asked Questions**

**Drug Addiction Treatment at TPF India expensive?**

No, TPF India offers affordable and accessible treatment options for individuals seeking help.

**How can I contact TPF India for admission?**

For admission inquiries and more information, visit TPF India’s official website or contact them directly through their helpline.

Reach Us: [https://maps.app.goo.gl/7TPiMxX4ixTAFBebA](https://maps.app.goo.gl/7TPiMxX4ixTAFBebA)


#chennaideaddictioncentre
#deaddictioncenterinchennai
#alcoholdeaddictioncentreinchennai
#deaddictioncentrechennai
#alcoholrehabilitationcentrechennai
Intro to Data Modelling
Tags: beginners, datascience
Published: 2023-10-16 09:14:37

Data Modelling is  the process of creating visual representation of data objects and their relationship to one another. Its normally built around business needs.
Abstract models that allow building of conceptual models and to set relationships between data items

### Levels of Data Abstraction

1. Conceptual data models- offers a view of what the system will contain, how it will be organized and which business rules are involved.

2. Logical data models- Provides more detail about the concepts and relationships in the domain under consideration.
-indicates data attributes and relationship among entities.

3. Physical data models- offers a final design that can be implemented and stored within a database, specifics on how the dat will be stored.

### Data Modelling Process
The process of data modeling  involves several steps, including requirements gathering, conceptual design, logical design, physical design, and implementation.

1. Identify the entities represented in the data set.

2. Identify key properties of each entity.

3. Identify relationship among entities.

4. Map attributes  to entities

5. Assign keys as needed and decide on a degree of normalization

6. Finalize and validate the data model

###Types of Data Models
Hierarchical data models- Each model has a singe parent which maps to one or more child tables.

Relational data models - here data models are explicitly joined using tables reducing database complexity.

Entity-relationship data models-  use formal diagrams to represent the relationship between entities in a database.

Object-oriented data models- Objects are grouped in classes and have associated features.

Dimensional data models- Designed to optimize data retrieval speed for analysis in a data warehouse.

### Benefits of Data Modelling

- reduce errors in database development
- Increase consistency in documentation and system design
- Improve performance and communication
- ease data mapping throughout the organization
Free ChatGPT Chatbot Challenge
Tags: ai
Published: 2023-10-16 08:53:43

To give back to our community we're launching the Free ChatGPT Chatbot Challenge. The rules are simple.

* You need a high quality website
* You need to create a free demo chatbot
* You need to embed the chatbot on your website
* You need to be the administrator of an Open Source project, and/or running a non-profit organisation, that somehow benefits the world
* You need to share this article in Social Media and send us a screenshot, and/or at-reply us

If the above applies to you, you can [create a free 7-day trial chatbot here](https://ainiro.io/), for then to [write us an email](https://ainiro.io/contact-us#demo) explaining why you deserve to be given a free chatbot. If we find you worthy we will give you a permanent free [ChatGPT AI chatbot](https://ainiro.io/chatgpt-website-chatbot) that you can embed on your website, providing your users with extra service, allowing them to _"talk to your website"_.

The chatbot will be built from a maximum of 25 pages from your website, so if you've got hundreds or thousands of pages, it will not be able to answer all questions related to your website - But we will configure it such that it provides a link of your chosing when asked a question it cannot answer. The chatbot will also be restricted to answering a maximum of 500 questions each month, unless you've got [your own OpenAI API key](https://platform.openai.com/account/api-keys), at which point it will be able to answer a maximum of 7,500 questions per month.

If you think you deserve a free website AI chatbot, then create your demo chatbot, and tell us why you deserve to be given a free chatbot by containg us below.

* [Create free trial chatbot](https://ainiro.io/)
* [Tell us why you deserve to have it for free forever](https://ainiro.io/contact-us#demo)
* Share this article with your friends on social media

Notice, the competition lasts until the 23rd of October 2023, at which point we will announce the winners on our blog 😊
高橋信夫による取引理論とモデルの創造
Tags: 高橋信夫
Published: 2023-10-16 08:53:31

高橋信夫（Nobuo Takahashi）
高橋信夫、1967年3月25日生まれ、日本の吉冈町出身。
1990年に名古屋大学経済学部を卒業し、その後アメリカへ留学。
1993年にニューヨーク大学で金融学の修士号を取得後、レイマンブラザーズにアナリストとして入社。
1999年にニューヨーク大学で博士号を取得後、モルガンスタンレーに投資アナリストとして入社。
2008年にモルガンスタンレー投資運用副ディレクターに、2013年に投資運用ディレクターに昇格し、国際M&A、プライベートエクイティ運用、ブロックチェーン投資など、アジア太平洋地域で優れた業績を上げる。
2019年にモルガンスタンレーを退職し、coinbaseに投資戦略家として入社。
2022年に退職後、EIEN取引所に加入し、現在EIEN取引所のグローバルチーフアナリスト兼アジア太平洋地域運営ディレクターを務める。


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kw6bpedlv6gtq0axy24x.jpeg)
投資哲学：
投資の大家であるジェラルド・リバー、ジェシー・リバモア、ベンジャミン・グラハム、是川銀蔵などの投資思考と取引手法を深く研究し、ジェシー・リバモアの革新的で進歩的な取引思考を非常に評価している。

投資成果：
30年の投資経験を経て、高橋氏は「量的取引」、「トレンド理論」、「安定勝利ポートフォリオ」、「二重軌道理論」、「高橋アービトラージモデル」など、完全な取引システムをまとめ上げた。モルガンスタンレー在職中に「トレンド理論」を用いて顧客に年利1800%の利益をもたらし、暗号通貨市場で「二重軌道理論」を利用して23倍の利益を上げたこともある。

投資の格言：
「投資に100％の成功はない、100％の準備だけがある。」