This post is an adaptation of the original article “How to install and configure Django on a Linux shared hosting account” from a2hosting with the following changes: 1. ‘myapp’ changed to ‘mysite’ to make the text more usable with the original django tutorials (where ‘mysite’ is used throughout the text); 2. Added the Prerequisites section; […]
usbmuxd crashes when iPhone is plugged in or unplugged
(source: https://ubuntuforums.org/showthread.php?t=2382108, solution provided by clapac) 1. Create a new udev rule file: cd /etc/udev/rules.d/ sudo vim 100-iphone-usbmuxd.rules ( * the file name is formed by PRIORITY-whatever.rules, you can use 99-mynewrules.rules, for example) 2. Insert the following lines into the created rules file: ENV{DEVTYPE}==”usb_device”, ACTION==”add”, SUBSYSTEM==”usb”, ATTR{idVendor}==”05ac”, ATTR{idProduct}==”129[0-9abcef]”, RUN+=”/usr/sbin/usbmuxd -u -U usbmux”ENV{DEVTYPE}==”usb_device”, ACTION==”add”, SUBSYSTEM==”usb”, ATTR{idVendor}==”05ac”, […]
How to remove the password from a spreadsheet (.ods or Excel)
Do you have a password-protected spreadsheet and need to remove the password from it? Yes? Then this post will be helpful to you. There are some posts on the net suggesting that you can just open the .xls file as a zip archive and then edit the contents but I was unable to do that […]
How to reset admin password in drupal
Assuming that a) using the email to request the new password isn’t an option AND b) you have access to mysql or phpMyAdmin you may use the following methods to recover the password for your drupal root user: drupal 6: In drupal 6 the password is stored as a simple MD5 hash of your plain […]
Firefox ignores Thunar as default File Manager
Symptom: – Your default File Manager is e.g. Thunar but Firefox uses Nautilus when saving files which is driving you bananas. Solution (for XFCE): 1. Firstly make sure that your default Applilcation for that particular mime type (in this case it is the ‘inode/directory’ mime type) is actually setup properly. Open the “Preferred Applications” applet […]
Setting up drupal 7 with MariaDB on Fedora
1. Edit file /etc/my.cnf.d/mariadb-server.cnf and add these 3 lines to the [mysqld] section: innodb_large_prefix=true innodb_file_format=barracuda innodb_file_per_table=true This will enable usage of Multi-byte (in particular – 4-byte) UTF-8 support in Drupal 7. 2. mysqli: If you have problems with mysqli/mysql change the mysqli to mysql (or vice versa – whatever works for you) in /sites/default/settings.php. Alternatively […]
How to see my DNS server IP on Linux
Old way: Examine list of DNS servers in /etc/resolv.conf: $ cat /etc/resolv.conf – – – New way: May not work on newer Linuxes since resolving may be setup via (not only DNS, but also) various other services: DDNS, LDAP, Avahi, Bonjour, ZeroConf and God knows what else. So… To check up your DNS server, better […]
TOSHIBA Satellite Bluetooth (broadcom) not working
Info from: http://askubuntu.com/questions/632336/bluetooth-broadcom-43142-isnt-working-on-ubuntu/632348#632348 Read the post which starts with “You need to install firmware.”. That’s what worked for me. I got the firmware from this link: http://devid.info/ru/68560. There is another one in that post.. don’t know if they are the same… haven’t tried it. The other suggestions in that post, including getting the firmware from […]
Responsive web-development tricks
To make your web-page fonts increase/decrease as the browser window dimensions change use viewport-based values instead of %, ems, pxs or pts. 1vw = 1% of viewport width 1vh = 1% of viewport height 1vmax = 1vw or 1vh, whichever is larger 1vmin = 1vw or 1vh, whichever is smaller Example: h1 { font-size: 4vw; […]
No wireless (wlan0) on new Linux install
This issue looks very much like a bug to me: You start a brand new Linux installation You select wired Internet connection during install Your brand new Linux has no wireless connectivity (not even the drivers!) upon first boot. This is what I did to fix it (on my Toshiba satellite with Fedora 24 and […]