teleren/devto huggingface dataset:
[solution] Ajouter les champs personnalisés dans un module du coeur de Joomla! 3 grâce aux overrides
Tags: webdev, joomla, module, customfields
Published: 2019-12-14 21:46:06

---
title: [solution] Ajouter les champs personnalisés dans un module du coeur de Joomla! 3 grâce aux overrides
published: true
date: 2019-11-26 09:41:31 UTC
tags: webdev, joomla, module, customfields
canonical_url: 
---

Salut les joomlers de l'extrême!

Un ami joomler qui se reconnaitra m'a demandé comment faire pour intégrer $this->item->jcfields dans un module comme mod\_articles\_latest

J'ai accepté le défi et je partage le resultat avec vous. La communauté de Joomla!. La famille des joomlers.

Découvrez sans plus attendre l'exemple de code à utiliser, bien commenté pour réussir le challenge.

Bon courage et à bientôt pour de nouvelles astuces

 

[Obtenir le code source](https://gist.github.com/alexandreelise/e04d417c9f911ce2ab2a3e931142e89b "Exemple de code pour le module articles latest")
FaaS != Serverless –> discussion
Tags: serverless, cloud, aws, discuss
Published: 2019-11-26 09:41:21

---
title: FaaS != Serverless –> discussion
published: true
description: 
tags: serverless, cloud, aws, discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/hn4l2xw8ewvq9u4pghwe.jpg
---

I'm trying to understand more about what the community thinks about serverless and FaaS. Here are my thoughts so far.

Since the introduction of the AWS Lambda in 2014 the event-driven, serverless computing has always been mentioned hand in hand with FaaS (Function-as-a-Service). However, I believe serverless is far from just being an AWS Lambda function, Azure function or Google Cloud function. It's like a whole ecosystem.

Serverless seems to be more like a specter where you have many different areas combined together. By analyzing AWS infrastructure, here are some of the services that in my opinion follow the serverless principles:

- Compute units like **Lambda**
- Managed Databases like **DynamoDB**, (pay-per-use, scaling by the cloud provider)
- File storages like **S3**
- Queues like **SQS**

As AWS already takes care of managing and scaling of the services, it is safe to say that these services are part of Serverless. 

Even by looking at simple AWS Lambda [use cases](https://dashbird.io/knowledge-base/aws-lambda/use-cases?utm_source=dev.to&utm_medium=article&utm_campaign=knowledge-base&utm_content=aws-lambda), we can see that none of them are only AWS Lambda based – they are combined with either Dynamo, S3, SQS or something similar. 

What else would you consider as serverless?
Multivendor Features in Opencart 3 Mobile App
Tags: opencartextension, opencartmobileappbuilder, opencartnativemobileapp, opencartandroidapp
Published: 2019-11-26 09:32:45

 
 
Every business needs a mobile app for their business to grow, most of the consumers who want to purchase things don’t go for the website rather try to find a mobile app for that and order things from that. So that would be easy for any consumer to buy stuff on the go while traveling to work or wherever they are and don’t have access to a computer. All major eCommerce website now a day’s mostly rely on business from the mobile app.
As in Opencart, we all know that Purpletree Multivendor Marketplace is the best selling marketplace of all time and it creates a marketplace for sellers and consumers where any seller could come and sign up and sell their stuff online just by creating adding products from seller panel. The website owner creates a website and lets sellers come to sell their products using Purpletree Multivendor for Opencart.
We already have Purpletree Opencart mobile application, it is a hybrid app and ready to launch the app. Just purchase the app and you will get a fully-fledged eCommerce Mobile app for your business. No need to do hard coding for mobile apps. The theme of the app can be setup on the website. For more info about the application check out our demo of the mobile app.
Purpletree Multivendor fully supports Mobile application, Seller can download the mobile app from the Google app store and can login to their account. Then seller could use most of the functionalities of sellers as they use on the website.
• Become seller On Register Page:- On Registration, page customers can register as normal customers or Sellers. Select Become seller to yes and enter Store Name.
 
• Waiting for Approval. If the seller is awaiting admin approval then, the seller has to wait till admin approves there account so that the seller can use all the seller functionality in-app.
• Seller Will View Following Seller option menu if the seller is approved.
o Orders:- Can View Orders list and can Manage Order.
o Products:- View list of Products, Add/edit or delete the product from the app.
o Payments:- Can view all the payments received from admin.
o Commissions:- Can view all the Commission which were going to admin per order.
o Summary:- All summary of orders, payments and more.
o My Reviews:- List of reviews left by customers.
o Shipping Rates:- List of Shipping Rates of Seller for advance shipping.
 
• Browse Seller:- Any user can view the list of all sellers by going from the Browse seller button on the left menu. From there they could view each Seller store information and products by the.
Contact Seller Page: - Any Customer can contact any seller by filling the contact form on the click of Contact Seller for each seller.
 
Get this extension at: https://www.purpletreesoftware.com/mobile-application-opencart.html
How I recently demonstrated the Growth Mindset
Published: 2019-11-26 09:15:30

Finishing secondary level with Math Physics and Geography as major courses, Architecture or civil engineering were my first choices for careers I wanted to pursue after graduation. But when the national examination results came out, I was offered to study a program that was not in my options. Then I decided to continue my studies in Information Technology, which was second in the choices I selected before going for the national examinations. It wasn't easy to picture myself as a software engineer when I started to take software engineering classes at the Adventist University of Central Africa(AUCA).

This was a major shift from non-computer-related to computer-related courses. Almost every class lesson was new and required a lot of research just to get the basic concepts. As I moved from one semester to another, I was introduced to courses like Algorithms, Data structures, Object Oriented Programming, … all which were very demanding and required much attention. So to make sure I get a good foundation in Information Technology, I had to work hard and open my mind to learning new things. 

As a result of hard work with a belief that I am capable of improving my skills, I was able to get good grades and now have the skills to develop good software applications.
Finding joy in WordPress again, with React, Gatsby & GraphQL
Tags: wordpress, react, gatsby, javascript
Published: 2019-11-26 06:07:27

---
title: Finding joy in WordPress again, with React, Gatsby & GraphQL
published: true
description: How I gave fresh life to WordPress, by changing up my approach and using a more modern stack.
tags: wordpress, react, gatsby, javascript
cover_image: https://thepracticaldev.s3.amazonaws.com/i/pk8hucorxfjd5x0tfp1n.png
series: WordPress + Gatsby
---

I've worked with WordPress for over 10 years. It's a great platform, and there's no doubt that its come a long way and progressed from a simple blog publishing platform, to a more of a CMS (albeit through the addition of [some](https://www.advancedcustomfields.com/) [incredible](https://www.gravityforms.com/) [plugins](https://wordpress.org/plugins/custom-post-type-ui/)).

But the way that Automattic steam-rolled the community into adopting Gutenberg, combined with me being bored with WordPress and wanting a new challenge, led to me giving up on the platform and moving onto other things.

Fast-forward 7 months and my new employer tasked me with a WordPress project (meh), but suggested we give [Gatsby](https://www.gatsbyjs.org/) a try (huzzah). It's only been a couple weeks now, but I'm finding renewed joy and enthusiasm for the stack.

Here's why.

## 1. It keeps clients happy.

![gif of a teenage boy giving a cheesy thumbup](https://media.giphy.com/media/XreQmk7ETCak0/giphy.gif "gif of a teenage boy giving a cheesy thumbup")

Inspite of it being arguably out-performed by other systems like [Laravel](https://laravel.com/) or [Directus](https://directus.io/), WordPress is still a great platform. And because of how mainstream it is, it's familiar to end-users and they're comfortable with it.

## 2. It keeps you happy.

![a happy developer, coding and smiling](https://media.giphy.com/media/MGdfeiKtEiEPS/giphy.gif "a happy developer, coding and smiling")

Stands to reason that if you're working with a fun stack, you're going to enjoy your job more. The combination of WordPress, React, Gatsby and GraphQL is just that - fun.

Over the next couple weeks I will be creating some content around some  libraries, tips & tricks, methodologies and systems that I've put to use in this site build, and that have made work fun again.

You can look forward to:

1. A headless & more secure WordPress install with [Bedrock](https://roots.io/bedrock)
2. Extending the REST-API to extract the most from your CMS
3. Setting up your front-end with [Gatsby](https://www.gatsbyjs.org/)
4. Understanding how Gatsby uses WordPress to 'build itself'
5. Learning some key [GraphQL](https://graphql.org/) queries to extract what you need
6. Swapping WordPress plugins, with Gatsby plugins, to do things like:
    - Form handling
    - SEO & XML sitemaps
    - Image optimisation
    - and more...
7. Deploying a Gatsby site, and triggering builds with WordPress webhooks

---

Join me on this journey, as I make WordPress development *fun* again.

---

**PS: This post will be updated with links to the other posts in this series, as they are written.**
How to contribute to Open Source
Tags: opensource, development
Published: 2019-11-26 04:54:55

### I've been having this question all through my mind for a while.
> How can I really contribute to Opens Source?

I quite good in javascript and it has even given me a job but I still feel like I 'm lacking in the area of Open Source participation or contribution. Can someone help me out on how to go about this? I really need to see how I can contribute to the vast majority of things that are out there in the world and just get something done!.
Thanks.
My First Website
Published: 2019-11-26 04:27:33

The day I created, with my very own hands, a website that I can access on the World Wide Web was the best day of my life to date. I have done a lot of things but nothing comes close to the feeling of accomplishment & success I felt at that moment. 
 
In the beginning, scared and nervous, I was biting my nails trying to understand what I was seeing. How to read and comprehend the language that was in front of me. Luckily for me, I have a very patient teacher who allowed me to ask questions, and I mean a lot of them. Walking me through as I needed to comprehend the information. She gave me space to input information on my own thus allowing me to create by my lonesome.   
My journey learning FrontEnd development is far from over but I'm happy to say I'm off to a very good start.
Fix Macbook pro running very slow problem. 
Tags: macbook, laptop, problem
Published: 2019-11-26 04:22:44

Macbook is giving terrible performance- 
Before few years ago, macbook was popular for serving the best performance. People, who uses the macbook, they were experiencing the best experience on it, and never want to switch to any other platform. 
But since few years, people are complaining about some basic common reasons behind macbook pro. 
According to them, it is not running fine and giving the worst performance. 
This can be happen because of multiple factors: 
1.	Ram is low. 
2.	Processor is slow. 
3.	Too many programs are running. 
4.	Virus issue. 

Here, in this article, I am sharing the instructions about [how to fix macbook pro running slow problem](https://www.askprob.com/forums/topic/why-is-my-macbook-pro-running-so-slow/). if you are also having the same problem. just follow the instructions and you will get your problem resolved. 
1.	Firstly, you should check the hardware in your macbook, ensure that, your macbook has good amount of ram and processor. 
Nowdays, you must have atleast 4 gb ram and i5 processor for better performance. 
If you are using an old macbook, which does not contain that much of data. Probably, you will face the performance issue. 
2.	Ensure that, there is no unnecessary program running into the background, if you find any unnecessary program into the macbook, you have to close them, after that, you will have better performance. 
3.	Sometimes, you may have such kind of problem, due to the virus issue. in such a case, you have to remove the virus from your mac pc by running an antivirus. 
4.	If you have already tried all these instructions,but still your macbook is not giving you the best performance. I will suggest you to restore your mac pc and reconfigure it with the latest update. 
Once you will follow these instructions, you will get rid of macbook running slow problem.  if it does not fix the problem. you may visit: askprob community to fix the problem.
"jQuery vai morrer!!" [#SQN]
Tags: javascript, jquery, webdev, ptbr
Published: 2019-11-26 02:07:31

No mundo onde estamos focados em produtividade, regra de negócio e entrega dizer que o `jQuery` vai morrer é um pouco contraditório.

"Ahhh, mas tudo que você faz com jQuery da pra fazer com JavaScript puro"

Claro que da, porém você vai precisar escrever **MUITO** mais código! Escrevendo mais você perde em produtividade e acaba desperdiçando tempo, e tempo é $$$dinheiro$$$!

Tempo é o insumo mais caro que você pode oferecer e se você puder fazer o mesmo entregando valor e escrevendo menos, porque que não utilizar jQuery?

Vamos aos exemplos!

"Da pra fazer requisição Ajax com JavaScript puro! não precisa usar jQuery"

```js
var request = new XMLHttpRequest();
request.open('GET', '/my/url', true);

request.onload = function() {
  if (this.status >= 200 && this.status < 400) {
    // Success!
    var resp = this.response;
  } else {
    // We reached our target server, but it returned an error

  }
};

request.onerror = function() {
  // There was a connection error of some sort
};

request.send();
```

Legal né? agora vamos ver como podemos fazer utilizando jQuery

```js
$.ajax({
  type: 'GET',
  url: '/my/url',
  success: function(resp) {

  },
  error: function() {

  }
});
```

ainda acha que o jQuery vai morrer?

vamos a outros exemplos


**Trigger de eventos**
```js
var event = document.createEvent('HTMLEvents');
event.initEvent('change', true, false);
el.dispatchEvent(event);
```

E com jQuery?
```js
$(el).trigger('change');
```


Mudou de ideia?

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

"E o VueJs e React??"
Como diz um professor meu **"Não misture maçãs com bicicleta"**

Segue alguns links de referências.

http://youmightnotneedjquery.com/
https://www.educba.com/vue-js-vs-jquery/
Support the new Boost Note and get your rewards!
Tags: opensource, react, showdev, boostnote
Published: 2019-11-26 01:39:29

---
title: Support the new Boost Note and get your rewards!
published: true
description: 
tags: opensource, react, showdev, boostnote
---

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/hzzryiap8iu11x5h3pyh.png)

## Behind the scenes

![image](https://ksr-ugc.imgix.net/assets/027/302/785/bc096c950d487df7aedb513b352c0b0c_original.gif?ixlib=rb-2.1.0&w=680&fit=max&v=1574400284&auto=format&gif-q=50&q=92&s=f59deae1bb6b7a7482e7c687191881d0)


We are always thankful that you let us support your note-taking with Boost Note. And some of you even contribute to improving the app with your development skills!

To show our appreciation, we decided to take the Boost Note to the next level. Today, we are pleased to announce that we will release the new Boost Note in January 2020. It's much-improved UI, and this time, you will see the mobile app for iOS and Android too! 

We will keep the pros of the current one, and it's still open-source. But we are planning to provide what the community has been waiting for for a long time. This change will make your note-taking a lot easier and more convenient. We believe this is an exciting change for the Boost Note users!

## Let's compare the features!

### The current Boost Note

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/rp9t86cwa0z7l17t58wl.jpg)

* Since it is a desktop app, it can be used offline
* Automatically save your notes
* Write while confirming the contents in the semi-live preview
* More than 100 code syntax highlights
* Highly customizable, appearance, hotkeys, and more
* Translated into more than 20 languages

### The new Boost Note

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/obxp5rz7kfb3kk2ofbzi.jpg)

* Web app
* Mobile app (iOS/Android)
* Cloud storage is available
* UI will be more sophisticated and comfortable to use
* The team version will be available the next spring 2020

---

## Please support ss via Kickstarter!

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/hzzryiap8iu11x5h3pyh.png)

Since this is a fantastic change, we would like to share not only with the existing users but also with the potential users. That's why we have started a Kickstarter campaign recently.

We are surprised that we could hit our smallest goal just in a few days, and we appreciate that there are a lot of people who care about our app and willing to support us!

We would love to put more effort to spread this amazing app if we could get more support from you, so please check our Kickstarter campaign page from [here](https://www.kickstarter.com/projects/kazz-boostio/new-boost-note)! We have prepared rewards for you too ;)
What is JSON and why is it useful?
Tags: json, javascript
Published: 2019-11-25 22:08:48

JavaScript Object Notation, also known as JSON, is a method used to store and exchange data. While it's commonly used with JavaScript, it can be used with other languages as well, including C, C++, C#, and Python, and therefore is considered language independent. Programmer Douglas Crockford is credited with expanding and popularizing JSON in the early 2000s, but it was not until 2013 that it became officially standardized.

Browsers and servers can only communicate using text, such as JSON. JavaScript can easily be converted to JSON, and vice-versa, thus enabling the communication of JS objects. JSON data is written as key-value pairs. The key _must_ be a string, and the value can be an object, array, boolean, string, number, or a null value. JSON values cannot be undefined, a date, or a function.

In order to send a JS object from the browser to a server, you can convert the object to JSON using `JSON.stringify()`. Using this function turns JS into a string, which is readable by the server. For example:

```
let objectExample = {
  firstName: "Sam",
  favoriteColor: "blue"
};
let jsonExample = JSON.stringify(objectExample);

```

In order to receive JSON from the server to readable JS, you can convert it back to a JavaScript object using `JSON.parse()`. When data is received by a browser, it comes as a string, and thus `JSON.parse()` is used to turn it into a JS object. For example:

```
let jsonExample = '{"firstName":"Sam", "favoriteColor":"blue"}';
let objectExample = JSON.parse(jsonExample);
```


In both of these examples, the manipulation of JS/JSON was done on the client's side. Yet, if there is a need to use the data in any way on the server itself, then server-side manipulation will also be necessary.


JSON objects, which are written using curly brackets, can be accessed and manipulated in similar ways to JavaScript objects. JSON object values can be accessed using both dot and bracket notation. For example:

```
jsonExample = '{"firstName":"Sam", "favoriteColor":"blue"}';
x = jsonExample.firstName
y = jsonExample["favoriteColor"]
```

You also can modify or delete the values in these objects using both dot and bracket notation. In order to delete a property, use the `delete` keyword:

```
jsonExample = '{"firstName":"Sam", "favoriteColor":"blue"}';
delete jsonExample.favoriteColor

```

JSON is an extremely valuable and straightforward tool for every JavaScript developer. It is a key feature in asynchronous code, which enables pages to load faster.


-------------
For more information:
- https://www.json.org/
- https://www.w3schools.com/js/js_json_intro.asp
- https://www.whoishostingthis.com/resources/json-resource/#history
Just Throw all that Old Computer Hardware Away
Tags: hardware
Published: 2019-11-26 00:13:10

Yes you.  Does your office or basement look like this?  
![treasure!](https://thepracticaldev.s3.amazonaws.com/i/57v6576kpjwgioxbihud.jpg)  

I know the majority of people who are reading this have a little treasure trove of old computer hardware.  The plan was sound 7 years ago when you took home that old server from work.  "I'm going to make this into my own server at home!" you probably told everyone.  And you never did and now you have a pile of forgotten about old projects in a dusty corner that you will someday get to.  You won't.  Just get rid of it.  

Recycle it or if its still in working order, donate it to a local [Goodwill](https://www.goodwill.org/locator/) or other charity.  Trust me, it will feel great once its gone from your life and your partner never has to complain about it again to you.

[According to Staples](https://www.lifewire.com/staples-free-computer-technology-recycling-2625169), they will recycle all sorts of old devices for you for FREE.  So follow this link and find the closest one to you, pack up your Toyota Corolla, and get rid of it!  [Staples Store Locator](https://stores.staples.com/index.html)

[Batteries Plus](https://www.batteriesplus.com/store-locator) will accept all of your old batteries if hoarding those was your kink.

And I'm sure there are other local places a quick [Google Search](https://lmgtfy.com/?q=local+computer+recycling) will find for you.  

This could be you!
![This could be you!](http://i.imgur.com/3eM63tw.png)