Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 16 04:40
    elorest commented #1270
  • Sep 13 01:28
    mixflame synchronize #1265
  • Sep 13 01:24
    mixflame synchronize #1265
  • Sep 10 16:54
    elorest commented #1270
  • Sep 10 16:41
    elorest commented #1270
  • Sep 10 14:09
    wout commented #1270
  • Sep 10 13:45
    crimson-knight commented #1270
  • Sep 10 13:43
    wout opened #1270
  • Sep 10 01:21
    mixflame commented #1265
  • Sep 10 01:18
    mixflame synchronize #1265
  • Sep 04 04:45
    mixflame commented #1265
  • Aug 31 20:14
    kalinon synchronize #455
  • Aug 31 20:12
    kalinon opened #455
  • Aug 30 04:45
    elorest commented #1269
  • Aug 30 04:45

    elorest on master

    Increase reliability of "amber … (compare)

  • Aug 30 04:45
    elorest closed #1269
  • Aug 28 19:43
    richardboehme opened #1269
  • Aug 28 19:27
  • Aug 28 14:28
    kalinon opened #454
  • Aug 28 14:20
Ghost
@ghost~5f1c2d8ad73408ce4fea82cb
Hi @axle07 , I am not expert on amber, but I see it's set in development.yml or (production.yml) here -
image.png
you can change it here and restart your server. I think you should be able to also modify response header directly - https://crystal-lang.org/api/1.1.0/HTTP/Server/Response.html
Damian Hamill
@damianham
Most of us using Amber probably come from a Rails background and many will remember ActiveSupport::Memoizable. I now have a candidate for memoizing the output of a request where every user in a province will request the same data with the same parameters and get the same result until the data changes, which is not that often. I am thinking that caching the output of the request as a static file will significantly improve performance. I would then need a mechanism to remove the static file when the data is changed. Anyone have any thoughts on this ?
Jonathan Silverman
@mixflame
Hey guys I updated the patch... cleanup... it seems to work
:)
Jonathan Silverman
@mixflame
amberframework/amber#1265 Hey guys can I get a final review and merge? This patch seems to work fine and is stable. Thanks.
Seth T.
@crimson-knight
Hey everyone, just wanted to drop in here and say that I've taken over ownership/maintenance of the i19n.cr shard
I was recently following the docs to get started with Amber 1.0.0rc2 and ran into an issue trying to use Jennifer as my ORM, because it required an older version of i18n that didn't support Crystal above 0.35.1. Long story short, I pestered the original owner enough to take over, so if there's anything we can do to together I'm all ears (and I have another person helping maintain the shard so it's no longer a single person)
Rene Bon Ćirić (Renich)
@renich_gitlab

Good day, Amberians! I've created a pull request to add a pseudo-validation for the mexican phone number locale. amberframework/amber#1268

Just wanted to drop a line about it.

In the meaintime, how can I just add this to my app? Is there a way to extend a constant? :s
renich_gitlab @renich_gitlab is a newbie, btw
George Dietrich
@Blacksmoke16
technically constants in Crystal are mutable as they more so prevent re-assignment
so you could prob get away with doing like:
Amber::Support::LocaleFormat::PHONE_FORMAT["es-MX"] = /^(\+?52)?\d{10}$/
Rene Bon Ćirić (Renich)
@renich_gitlab
Thank you @Blacksmoke16
mrk16
@mrk16:matrix.org
[m]
Hey guys, i'm having a hard time using Granite with a UUID column in a SQLite database
class User < Granite::Base
  connection sqlite

  column id : UUID, primary: true
end

u = User.new
u.save
last line outputs the following erorr: "ERROR - granite: Save Exception: SQLite3::Statement does not support UUID params"
but according to the documentation the code should work and the uuid should be generated automatically
can someone help me?
George Dietrich
@Blacksmoke16
that's what's happening, but SQlite3 driver doesn't seem to support UUID types
either could maybe monkey patch support into the driver, storing it as a string, or use a converter to handle doing that within granite
mrk16
@mrk16:matrix.org
[m]
okay, thanks, i'll see what i can do 🙂
Julián Molina
@phalcondroid
Hi guys
im trying to install amber
in a macbook air with m1 processor
but brew dosen't works
i've tried installing crystal from sources and it works
but amber is throwing problems
Screen Shot 2021-08-18 at 12.16.15 AM.png
so, i don't know about ameba, what is ameba... and how can i install globally amber from sources with the crystal already installed
can you help me?
Jonathan Silverman
@mixflame
Ok.... the redis patch I made still blows my reactor after so many hits
It's just contributed
If it's merged and you care which ... maybe you should ... I do ... deeper tests ... I'm still memory adaptor in production and fine and low scale but very fast
Damian Hamill
@damianham
@mixflame I have to apologize. I promised to review this patch when I had time and I am not going to be able to do that unfortunately. I am switching all further web app development to Go using the fiber framework so I will be concentrating on that. The reasons for that are simple - 3-4 seconds to deploy (pull & compile) to the VPS as opposed to 3-4 minutes and 2.8MB runtime memory as opposed to 38MB. Availability on cloud compute platforms is also a consideration, especially as we move to serverless cloud computing.
Jonathan Silverman
@mixflame
I hence to the cited reason. Full speed !
Jonathan Silverman
@mixflame
Thanks Damian
As time progresses we will see if any interest grows in the issue.
Jonathan Silverman
@mixflame
Good news everyone and @damianham and @eliasjpr
I stablized it for good
There was remote executions in crystal-redis
If they are rediscovered they will be blocked again
crystal-redis-adapter-amber stable!
merge from my branches: amber, crystal-redis, openloft.cr for examples and implementation
Jonathan Silverman
@mixflame
OK... my unnecessary code has been removed from crystal-redis and my patch is now safe to merge for real and uses stefanwille's branch of crystal-redis as usual again.
Michael McIntyre
@mmc1ntyre_gitlab
amberframework.org website appears to be down : (
Jonathan Silverman
@mixflame
I'm exposing the HTTPS layer to the outside world and having stuff like this come up some times Sep 13 07:25:08 localhost openloft.cr[874553]: Unhandled exception in spawn: SSL_read: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure (OpenSSL::SSL::Error)
Ivan
@VanyaNeytrino
Hello everyone. Tell me where the code that distributes requests between processes is located. Amber has a process_count setting that is responsible for launching additional processes. But I don't see any code that distributes requests between processes. Monitoring also shows that one process is working, while others are simply idle.