Categories
Apple User Help

MacBook Pro Mid 2012 Internal keyboard “123…” produces unexpected characters

Hi guys i hope you can help me out. My old MacBook Pro 13-inch, Mid 2012’s number keys seems to have been connected to some other keys. My symptoms are that the expected key pressed is entered followed by another predictable but unexpected key press. My keyboard is Danish QWERTY and i’ve had this issue […]

Categories
Apple User Help

iOS 14 WiFi 5GHz issues

After updating my iPhone 11 to iOS 14 I’ve noticed that I constantly face issues with my WiFi network. What happens is that you use the Internet and suddenly notice that webpage is stuck or whatever indicating network issues. WiFi is connected with no Internet connection though. A while later (usually 1 min or less) […]

Categories
CMS Drupal Mastering Development

prepareDirectory

I am trying to make a file upload operation in a module (made by myself) in Drupal 9. The files are coming from different users and I try to save them into user specific subdirectories of public://. Here’s my code use Drupal\Core\Controller\ControllerBase; use Drupal\Core\File; use Drupal\Core\File\FileSystemInterface; use Symfony\Component\HttpFoundation\JsonResponse; . . . public function content($id) { […]

Categories
CMS Drupal Mastering Development

How to query on date field’s month and day only in Drupal 8?

I have a birthday field in my content type. The field is of type date and and settings are date_only. In the db it is stored like 2000-11-19. I have three nodes of that type. I want to list upcoming birthdays. How to use entity query to fetch birthdays if day and month is greater […]

Categories
CMS Drupal Mastering Development

override form view error

I’m trying to override a form view in order to display some additional informations : function my_module_form_alter(&$form, $form_state, $form_id) { $newsFoldersForm = [ ‘node_news_folder_edit_form’ ]; if (in_array($form_id, $newsFoldersForm)) { $articleService = \Drupal::service(‘oscar_api.article’); $nid = $form_state->getBuildInfo()["callback_object"]->getEntity()->id(); $form[‘relatedNews’] = $articleService->getByNewsFolderId($nid); } } But I get that error : User error: "id" is an invalid render array key […]

Categories
CMS Drupal Mastering Development

How to override the system timezone in settings.php?

I’m trying to override the site’s timezone in settings.local.php. Looking at the config file, this should be simple: $ more system.date.yml country: default: ” first_day: 0 timezone: default: UTC user: configurable: true warn: false default: 0 but I’ve trying various combinations of this and none of them work: $config[‘system.date’][‘timezone’][‘default’] = ‘Europe/London’; $config[‘system.date.timezone.default’] = ‘Europe/London’;

Categories
User Help Web Apps

Query in Data Studio

How can I create query to count 2 fields such as one of them DATETIME Please any help for this issue Thank you

Categories
Raspberry Pi User Help

UART and AP Question

I have a wifi access point that I need to connect to via UART/SERIAL as the console rj45 is broken. I have a USB UART cable on the way but it’s going to take a while to get here. Is there any way I can interface the access point with the GPIO pins on the […]

Categories
Raspberry Pi User Help

getting an error when I autostart my py script which contain PyQt Gui

I’m trying to automatically start a py script which has pyqt5 Gui when I boot my Raspberrypi. I did sudo nano /etc/rc.local and made a log.text to know what’s happening and I recived "qt.qpa.screen: QXcbConnection : Could not connect to display" how can I solve it? any Ideas?

Categories
Raspberry Pi User Help

Connect SIM800L with other GPIO pins in Raspberry PI 3B+

I have a SIM800L module and a keypad module that I want to connect to the raspberry pi 3B+ but then when I had all my modules and stuff I found out that the raspberry pi had only 1 UART (1RX & 1TX) pin I have 2 devices that I want to connect to that… […]