#hoopla

  • Startseite
  • Kontakt
  • Hoopla?!
  • Datenschutz
  • Impressum
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 6
  • ...
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • ...
  • 23

B2Evo: Change from HTTP to HTTPS

Eingetragen von fayon am 03 Nov 2017 in Arbeit

I changed the hosting of my B2Evo blog to SSL. The only necessary configuration change was the $baseurl in conf/_basic_config.php. But there remained an issue with mixed content. Images of posts were still rendered by http, because the image links are hard-coded in the database. The following query helped:

UPDATE evo_items__item 
set post_content = REPLACE(post_content, 'http://www.fabianfier.de', 
'https://www.fabianfier.de') 
where post_content LIKE '%http://www.fabianfier.de%';
Einen Kommentar hinterlassen »

Linux VM: Fun with Inodes

Eingetragen von fayon am 24 Okt 2017 in Arbeit
#tar cfvz xyz.tar.gz xyz 
tar (child): xyz.tar.gz: Cannot open: Disk quota exceeded
tar (child): Error is not recoverable: exiting now

HAHA: This machine pretends to use roughly twice as much inodes as the datatype long AND it says it has 500k free inodes:

# df -i
Filesystem                   Inodes                IUsed     IFree IUse% Mounted on
/dev/vzfs      18446744069909905553 18446744069415334917 494570636  100% /
#rm -rf xyz

Minutes(!) later:

#df -i
Filesystem     Inodes IUsed  IFree IUse% Mounted on
/dev/vzfs      750000 45285 704715    7% /
Einen Kommentar hinterlassen »

Sonata: find out route names for generateUrl() in actions

Eingetragen von fayon am 13 Aug 2017 in Arbeit

Within a controller I tried to redirect the user by return $this->redirect($this->generateUrl('...'));, but I couldn't find the corresponding route name. I did not define any baseroutepattern or baseroutename in the Admin file. In order to find out the route name, locate the service entry for the corresponding admin in admin.yml and copy the service name. On the terminal, type bin/console sonata:admin:explain and paste the service name to the end of the command. This command shows all routes associated with the service which can be used in generateUrl().

Einen Kommentar hinterlassen »

AsRock Z87 Pro4 + Samsung Evo 840 + Windows 10: Random Crashes

Eingetragen von fayon am 13 Jul 2017 in Arbeit

After updating from Windows 7 to 10, the computer randomly hung after 5 to 10 minutes. Numlock on the keyboard still reacted, but the mouse froze and Ctrl-Alt-Del didn't do anything. Rebooting was only possible by cold reset. Running hwinfo reproducably made the machine hang on starting the program at scanning the drives. In the Windows logs there was nothing helpful. The CPU temperatures did not show anything unusual. I figured the issue was most likely driver- or firmware-related or due to a hardware defect.

I performed the following steps which were probably not successful or neccessary:

  • Cleaning CPU fans and heatsink
  • Updating drivers of the (very high-end) graphic card
  • Exchanging the graphic card
  • Updating the BIOS
  • Updating the SSD firmware

I suspect one or more of the following driver updates (Download at http://www.asrock.com/mb/Intel/Z87%20Pro4/?cat=Download&os=Win1064) to have contributed to solving the problem:

  • INF driver
  • Intel Rapid Storage Technology driver and utility
  • Intel Smart Connect driver
  • Intel Management Engine driver
Einen Kommentar hinterlassen »

Insight: QR Code Scanning for Event Invitations with Android

Eingetragen von fayon am 03 Jul 2017 in Arbeit

A customer requested a web application which allows to scan QR codes on invitations. It should run on mobile phones. The validity check is performed within a Navision system via a SOAP webservice. The most important requirement was a high-performant interface, because the customer has events with several thousands of guests.

I was first sceptical about the performance of the internal mobile phone cameras and the scan speed, so I recommended a hardware solution, connecting a professional QR code scanner to a mobile phone with an OTG adapter. We experimented a bit and found that the internal camera is completely sufficient if it is used together with a fast QR scan app.

A first approach was to capture the internal camera stream with HTML5 and recognize the QR code with a JavaScript library. I tried jsqrcode (https://github.com/LazarSoft/jsqrcode), but it was way too slow. The problem seems to be the autofocus which cannot be controlled with HTML5 in a quick and reliable way (yet). So we switched to a QR code scan app which implements a keyboard.

I created a form with just one text input for capturing the QR code. The user has to tap on this text input field to trigger the keyboard view. It is not possible on current mobile browsers to reliably show this keyboard on opening a page with JavaScript. On some older browsers there were some hacks that could do that. On the keyboard, the user has to choose the scan function of the keyboard app to start scanning. The text field autosubmits the content via JavaScript if no further key input arrives after 100ms. The webserver connects to the Navision webservice and returns the result back to the user. This solution is quick and robust enough for practical usage according to our tests.

Which apps are good for this application? We tried "Niko Barcode Keyboard" free and premium, and "Keyboard with Barcode/NFC Scanner" from TEC-IT. All three are perfectly usable for this case. The premium Niko Keyboard has a feature of a numeric keyboard on which the QR scan button is very large. This is a nice feature usability-wise. The TEC-IT scanner is a little bit faster though. It is so greedy that it even finds QR codes in the surroundings which were not meant to be scanned.

Why not directly talk to the webservice from the web application via JavaScript? I tried to avoid the round trip to the webserver to the Navision webservice and back. Because of the same origin policy this was not possible. It prevents from making AJAX calls to other domains than the one the script was initially loaded from. This would have been necessary for performing SOAP calls to the webservice. In this case, the web application had to reside on a different domain.

Einen Kommentar hinterlassen »
  • 1
  • 2
  • 3
  • 4
  • 5
  • ...
  • 6
  • ...
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • ...
  • 23

Suche

Neueste Posts

  • Drupal 7: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[...].main_semaphore' doesn't exist
  • Symfony 3 + ElasticSearch + ElasticHQ
  • Ubuntu 14.04 suddenly doesn't recognize external monitor resolution
  • First steps with Ceph
  • Set up Standalone NTP Server on Ubuntu 16.04
  • B2Evo: Change from HTTP to HTTPS
  • Linux VM: Fun with Inodes
  • Sonata: find out route names for generateUrl() in actions
  • AsRock Z87 Pro4 + Samsung Evo 840 + Windows 10: Random Crashes
  • Insight: QR Code Scanning for Event Invitations with Android

Neueste Kommentare

  • Sandman am Kopierstempel in Photoshop innerhalb VirtualBox funktioniert nicht
  • treviris am Kopierstempel in Photoshop innerhalb VirtualBox funktioniert nicht
  • Mike am Netzwerkscanner auf Ubuntu einrichten
  • Carlos am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Carlos am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Mohsen am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • David am Nautilus 3.10 on Ubuntu 14.04: Show full date and time in list view column
  • Conny am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Markus am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • SK am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Menzel am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Angelika am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Michael am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • WM am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Andy am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • GanbaatarJ am Symfony 1.4: BaseFormFilterDoctrine not found
  • EASY am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • Peter am IAA Plus: Fehlermeldung "Ware(X). Aussenhandelsstatistik Menge.fehlende Pflichtfeld"
  • PeGo am Elster: Zertifikat verlängern gibt "Es ist ein Fehler aufgetreten! Bitte starten Sie den Browser erneut und führen Sie diese Aktion nochmal durch."
  • Volker Zipp am Datensicherung unter Windows 7 bricht immer mit Fehler ab

©2018 by ff • Kontakt • Hilfe

Photo albums software