PDF spec and PADES, adding images after signing to the document without...
I have a PADES document that was digitally signed with a certification signature. Also a DocMDP was added with level 2 (form filling and signing) permissions.Additional signers can sign the pdf and...
View ArticleLabels in yEd when import file.graphml with Ruby
I have a problem.I have the following code in Ruby, which creates a .graphml file from a file.json.require 'nokogiri'require 'json'require 'rexml/document'# Método para leer y parsear un archivo...
View ArticleHow to delete resources by label with Kubeclient?
I am trying to delete multiple ConfigMaps at once using a label. With kubectl, I would do it as follow:kubectl delete cm -l application=my-appKubeclient offers the delete_config_map method, but it...
View ArticleWhat is the Rails way to work with polymorphic associations?
I have few models in my Rails application, which are:UserPhotoAlbumCommentI need to make comments belog to either to Photo or Album, and obviously always belong to User. I'm going to use polymorphic...
View ArticleRails.root return '/' but must "/usr/src/app"
After updating from rails 4 to rails 5.2.8.1 i see thisRails.root.to_s in rails 4 return '/usr/src/app'But in rails 5 i see '/'.I am using docker and have WORKDIR /usr/src/app.Any ideas?
View ArticleMake interactive ruby REPL display results for consecutive commands, not only...
If I run thisa = "hello"b = "world"abin rubyirb(main):007> a = "hello"=> "hello"irb(main):008> b = "world"=> "world"irb(main):009> airb(main):010> b=> "world"in python1>>>...
View ArticleRuby on Rails: Converting "SomeWordHere" to "some word here"
I know you can do something like: "SomeWordHere".underscore.gsub("_", "") to get "some word here". I thought that might be a little too much for something so simple. Is there a more efficient way...
View ArticleProblem with bundler not installing gems for different platforms
I use a Mac locally and in my Gemfile.lock, I have both platforms:PLATFORMS arm64-darwin-23 x86_64-linuxSo when I bundle install I get nokogiri-1.16.7-arm64-darwin.gem in my Rails app's vendor/cache....
View ArticleArgumentError when using enum
I got this error when accessing 'MyModel'ArgumentError: wrong number of arguments (3 for 0) from...
View ArticleHow to set up a Lambda Layer for Ruby's mysql2 library?
I've been trying to set up a Lambda Layer for my Ruby Lambda function but I can't make it work for some reason.I've followed AWS' tutorial on creating...
View ArticleWhile installing ruby in windows i am getting this error ERROR: Failed to...
This is whole error:C:\Users\prati>gem install railsUsing rubygems directory: C:/Users/prati/.local/share/gem/ruby/3.2.0Temporarily enhancing PATH for MSYS/MINGW...Installing required msys2...
View ArticleERROR: Failed to build gem native extension. (Mac Mountain Lion / Compass /...
I don't have any clue how to solve this.I reinstalled the Xcode Commandline tools which were missing previously - but the problem still persists.Compass and CodeKit do not work as expected.Any idea...
View ArticleHow to upload a file to a shared drive with Google API Drive v3 ruby gem
I am trying to upload a file to a shared drive, however; if I set my drive_id in the options parameters, it still used my default drive, which is "My Drive".What am I doing wrong? (The drive_id is just...
View ArticleSimple Table of Contents in Rails is not working as intended
I had this thought of a simple Table of contents in Rails. I have created a new Rails 8 app, worked. I installed action text. Scaffold'ed out a post model with title and body. Body has the rich text...
View ArticleDoes Rails come with a "not authorized" exception?
I am writing an application that uses plain old Ruby objects (POROs) to abstract authorization logic out of controllers.Currently, I have a custom exception class called NotAuthorized that I...
View ArticleIs there a 'git cherry' in libgit2
I'm working on a project and one of the requirements is the need to call git cherry command to get some differences between on branch and the other - (note this is not git cherry-pick).I was planning...
View ArticleHow to configure Ruby intepreter for Eclipse
I just installed the Ruby plugin for Eclipse. During creating my first Ruby project I fall into problems selecting the ruby interpreter.I did New Project => Ruby project. But when it asked for an...
View ArticleHow to setup Eclipse IDE for Ruby projects under Linux
This question already exists here, but I was advised to open a new one.For me on Ubuntu 24, the text editor fails to show anything, showing the error:org.eclipse.core.runtime.CoreException: Plug-in...
View ArticleWhat is causing NoMethodError?
I wrote this code for an exercise in pentesterlab:require 'httparty'require 'base64'URL = 'http://ptl-a4b5e023-f4db1f7c.libcurl.so/'def login(username) res =...
View ArticleHow do I find the minimum element in an array of strings, but only...
I'm using Ruby 2.4. I have an array of strings that are supposed to be integers ...["1", "55", "25", ... ]I have the following for figuring out the minimum number in the...
View Article