[FIXED] ruby on rails :: LoadError: cannot load such file -- distribution
Specifically for the wco stack, gem 'iron_warbler' had to be included in that particular instance's (micros_*) Gemfile. Which is a bit disappointing since I wanted libraries to be decoupled - but hey, I'm not going to fix this right now. But please be aware: it may seem that there is a separation between libraries and some libraries (namely models and content) can be installed without the rest of the stack - but that's not the case. The whole stack must be installed.
[FIXED]: An external drive not mounting on mac (fsck, not fdisk)
This happened to me recently... I may have unplugged an external 5Tb harddrive without ejecting it from mac os x 13, and it could not be mounted again. I plugged the harddrive into a windows machine, run "repair" there (whatever that means) and the data was perfectly readable. It's just that the disk would not mount on mac.
Stackoverflow to the rescue! The solution is:
sudo pkill -f fsck
Or actually
ps aux | grep fsck
[FIXED]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' when running mysql database in docker, for a ruby on rails application
Change
host: localhost
to
host: 127.0.0.1
in config/database.yml, to make the connection over TCP/IP rather than local socket.
You may also need to specify port 3306 explicitly.
Google Fi: Suggested APN Settings
APN Name Google Fi
APN h2g2
Proxy
Port
Username
Password
Server
MMSC http://m.fi.goog/mms/wapenc
MMS Proxy
MMS Port
MCC 310
MNC 260
Authentication Type
APN Type
APN Protocol IPv4/IPv6
APN Roaming Protocol IPv4/IPv6
Bearer
MVNO Type
MVNO Type.
Android: How do you create a local keystore?
keytool -genkey -v -keystore ~/.android/debug.keystore \
-alias debug_keystore -keyalg RSA -keysize 2048 -validity 10000.
ImageMagick security policy 'PDF' blocking conversion
Paperclip::Errors::NotIdentifiedByImageMagickError
## /etc/ImageMagick-6/policy.xml
<policy domain="coder" rights="read | write" pattern="PDF" />.
Pytorch cuda tries to allocate memory but it is not available
If you see an error similar to this one:
RuntimeError: CUDA out of memory. Tried to allocate 11.88 MiB (GPU 4; 15.75 GiB total capacity; 10.50 GiB already allocated; 1.88 MiB free; 3.03 GiB cached)
then, try reducing the batch size.
train_loader = DataLoader(
train_dataset,
shuffle=False,
pin_memory=False,
batch_size=2, # was: 16
num_workers=12,
)[FIXED] Jenkins: 403 No valid crumb was included in the request
You may consider clicking 'enable proxy compatibility' in the settings, to resolve this issue:
