All Articles
Should Openstack be used as self-hosted s3 service, in 2025? (Answer: no)
Hello everyone, very quickly, I have spent several days looking into self-hosting s3 solutions, because I am in the process of moving out of AWS cloud for security reasons.
One of the alternative options that I have considered for S3, the object storage solution, is OpenStack. Some 10 years ago, I have actively developed in the openstack ecosystem, and I remember they provide one or several s3-compatible solutions. In particular, the OpenStack Swift supposedly provides an option for self-hosted s3. You can install it as part of the devstack, which can run on a single machine.
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" />.
Alternatives to S3
Sometimes, you need an alternative to S3 storage. While Amazon S3 is a go-to for cloud storage solutions, there are plenty of reasons to explore other options. Whether you’re looking for a more cost-effective solution, need specific features, or just want to diversify your cloud infrastructure, alternatives to S3 can offer a tailored approach to fit your needs. In this post, we’ll explore some of the best alternatives to S3 storage, how they compare, and what makes each one stand out. Let’s dive into the options that might be just right for you.
Drupal 9.5: How to render a block from a controller
Based on this excellent stackoverflow answer.
$bid = ??? // Get the block id through config, SQL or some other means
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->
getViewBuilder('block_content')->view($block);
return $render;.
How to program Drupal Cron
From drupalsun.
Implementing Cron tasks in Drupal
Cron tasks are defined by implementing the hook_cron hook in your module, just like in previous Drupal versions.
/**
* Implements hook_cron().
**/
function example_cron() {
// Do something here.
}And that's pretty much it. Rebuild cache and next time cron runs your hook will be called and executed.
New project requirement posted: a Drupal migration task
Hello everyone! I have a one-off project in Drupal, that I'd like to hire for. The detailed description is available here: https://redmine.wasya.co/issues/3491
If you are interested in talking about this task, or sending me your resume and credentials, please use this contact form: https://wasya.co/contact-us
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,
)Canon Digital Photo Professional - free download
One of the pieces of software that I enjoy using very much is the Canon Digital Photo Professional. I originally got it a loooong time ago, back when I was taking photography classes. It came with one of the Canon cameras that I've bought over the years. At the time I used it to browse and sort my pictures, sure - and only years later I realized just how valuable and useful this piece of software is.
A recommendation to rename "criticality" -> "priority"
Just throwing two cents here - if the pandemic taught us 10 things, one of those ten gotta be that small details in communication matter very much. With that, I recommend renaming the word "criticality" -> "priority". The reasoning is as follows. And be careful with the red color in the smart sheet too, please, for the same reason.