Drupal paragraphs – get translation’s field values
I’m working with a client that requested me to update their Drupal’s theme, and together with that it came a surprise, a custom module that does display data on a map. The custom module make use of paragraphs, each sub element contains relative coordinates, a title, and a few other fields. Pretty cool! And I… Continue reading→
Emitting particles of any shape, not only spheres, points or cubes
Some example usage So imagine you want to create an effect like the one in the video above, a galaxy, made of Billions of stars, it is obviously impossible to represent them all, but how to make a somewhat realistic version of it? Well, if you have tried using particles you probably have noticed that… Continue reading→
Securing a webserver using modsecurity: tips and a few considerations
So, I’ve been commissioned to create a website, I was given quite a big infrastructure to work with, and I have lack of experience in that. So as a self-reminder I’m writing down a few notes about what I did or can be done in general. What is ModSecurity? ModSecurity is an Apache module (although… Continue reading→
GeoJson country boundaries data for ALL!
So, as I had to do it for a client, I’m sharing this for posterity, I think it might be useful. I’ve divided all world countries (as of 2021), into separate geojson format files. I’ll see if in the future I can add maps related to each country shape. Cretits to http://www.naturalearthdata.com for providing this… Continue reading→
Working with maps, again! But this time with Drupal geofield and leaflet
This time I’ve received a request from a client, he wants to have a series of shapes indicating countries that have registered users from that country, so I need shapes. Then markers that popup info about the members. I thought it was an easy task, and probably is, but I struggled with the map module… Continue reading→
How to RSYNC with remote server using certificates
This was a task I had to do in order to have Drupal working better behind a load balancer. Anyhow, it can be used in a number of ways, I’ll let it to your imagination and use cases. Install RSYNC To install RSYNC on Ubuntu systems: rsync specific case KB These are some articles I… Continue reading→
Speed up your server and webpages with text compression
Have you ever tested your page on google PageSpeed insights? The score is pretty harsh with you if you don’t follow it’s optimization rules. And here we are to discuss one specific aspect of this optimization: the text compression. How do you compress your page (aka GZIP me please) Conveniently, google PageSpeed insight provide us… Continue reading→
Drupal backup quick tips
When I had to backup a large database I realized that timeout is a great enemy. I usualy do the following in order to avoid that problem: clear cache export all tables into a zip format (not gzip because for some reason it’s more expensive and it fails to generate) So instead of having, say… Continue reading→
Add composer to a Drupal 8 website
I have a customer with a version of Drupal 8 that did not support composer, as it became necessary to have it with newer versions, I decided I’ll propose him the migration… What a mistake. Useful documentation I’ve found this article very useful, you should check it out too if you’re going to adventure into… Continue reading→
How to import a mysql database from command line
TLDR It’s simply telling mysql: which user is doing the database import using -u to which database it should be imported using -p and finally from which file using < In depth Sorry, if you want to go in depth just google it: https://www.google.com/search?q=import+database+mysql+command+line&oq=import+database Continue reading→