Categories
Linux Mastering Development Ubuntu

Wanted to install to external SSD, made a big mess

Good evening, I wanted to install (k)Ubuntu to an external Samsung T5 SSD, in order to be able to use it on different PCs. On my primary laptop, I booted from a Kubuntu 20.04 live USB stick, inserted the T5 and installed on the T5 (/dev/sdc), telling it to install the bootloader there, too (I […]

Categories
Mastering Development

R – leaflet set polygons on top level

Good evening, created the following map via leaflet: leaflet(options = leafletOptions()) %>% addTiles() %>% setView(lng = -45.769325, lat = 45.859322) %>% addProviderTiles(providers$OpenStreetMap) %>% addPolygons(data = geoID, color = "white", weight = 2, smoothFactor = .5, fillColor = pal(Color$x), highlight = highlightOptions(bringToFront = T, weight = 1, color = "blue"), label = lapply(html_labels2, HTML)) %>% addLegend(pal […]

Categories
Mastering Development Software

Troubles about understanding the use of Recursion in JavaScript

Good evening, I am new learning javascript, and i found this challenge in the freeCodeCamp platform which i solved but i would appreciate if you can provide me more orientation about it. I am currently using the platform freeCodeCamp and this is the link of the challenge i am solving : bold https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/replace-loops-using-recursion bold Sadly […]

Categories
Linux Mastering Development Ubuntu

Problems booting after installing Nvidia driver and switch utility. (MacBook Pro 13″, 2011)

Good evening, fellas. I recently installed Ubuntu on my ancient Macbook Pro (early 2011 model). I thoroughly cleaned the fan with a toothbrush, and used compressed air to remove dust from inside the computer. However, the Mac was running hot even during light loads. I searched and came across this post: Ubuntu 14.04 on Mac […]

Categories
CMS Magento Mastering Development

resize image email order

Good evening, I add a function to insert a picture in the order confirmation email Magento 1.9 <img src=”<?php echo Mage::getModel(‘catalog/product_media_config’)->getMediaUrl($_product->getThumbnail()); ?>” alt=”<?php echo $_item->getName() ?>”/> But I can’t resize it Example : getMediaUrl($_product->getThumbnail())->resize(150); ?>” alt=”getName() ?>”/> could you help me ?`

Categories
CMS Magento Mastering Development

resize image email order

Good evening, I add a function to insert a picture in the order confirmation email Magento 1.9 <img src=”<?php echo Mage::getModel(‘catalog/product_media_config’)->getMediaUrl($_product->getThumbnail()); ?>” alt=”<?php echo $_item->getName() ?>”/> But I can’t resize it Example : getMediaUrl($_product->getThumbnail())->resize(150); ?>” alt=”getName() ?>”/> could you help me ?`

Categories
CMS Mastering Development Wordpress

How to optimize query which remove duplicates for 2 million items

Good evening, This is my query which should remove duplicates from table. How can I optimize this for two milion records? DELETE p1 FROM wp_ads_platform_users p1 INNER JOIN wp_ads_platform_users p2 WHERE p1.id < p2.id AND p1.number = p2.number Thanks for help.

Categories
CMS Drupal Mastering Development

Drupal installation problem 8.8.5

Good evening, I installed drupal 8.8.5 in a folder in my web space to upgrade the site, during the installation everything is fine, however, once the installation is complete, the site just created appears without graphics and formatting, I state that I am on php 7.3 I have also tried to switch to php 7.4 […]

Categories
Mastering Development

Cucumber / JUnit – How to proceed when test failed inside a loop?

Good evening, I investigated hours to find a solution for the following problem: I’m using Eclipse, Cucumber, JUnit & Maven. How is it possible to get a single test step will be marked as failed. It has been possible for me to fail the whole Scenario with try-catch and Assert.fail(), but not one case inside […]

Categories
Mastering Development

Binary/decimal and decimal/binary swift converter

Good evening, everyone, I would like to make an application in swfit where you enter an integer number and then it is converted to binary so for example if you enter 15 behind the application you get 0b1111. So a decimal to binary converter and I would like to put a function behind it that […]