Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 24 13:10
  • Oct 22 01:08
    andrewc910 review_requested #1236
  • Oct 21 22:51
    andrewc910 edited #1236
  • Oct 21 22:51
    andrewc910 commented #1236
  • Oct 21 22:49
    andrewc910 edited #1236
  • Oct 21 22:42
    andrewc910 edited #1236
  • Oct 21 22:29
    andrewc910 synchronize #1236
  • Oct 21 20:40
    andrewc910 synchronize #1236
  • Oct 21 17:28
    andrewc910 commented #1236
  • Oct 21 17:26
    andrewc910 synchronize #1236
  • Oct 21 17:19
    andrewc910 synchronize #1236
  • Oct 21 16:28
    andrewc910 synchronize #1236
  • Oct 21 15:17

    drujensen on master

    Plugin: Add support for a confi… (compare)

  • Oct 21 15:17
    drujensen closed #1235
  • Oct 21 13:48
    andrewc910 synchronize #1235
  • Oct 21 13:46
    andrewc910 commented #1235
  • Oct 21 13:46
    andrewc910 commented #1235
  • Oct 21 13:43
    andrewc910 synchronize #1235
  • Oct 21 12:08

    drujensen on master

    Change the path (#1237) * Chan… (compare)

  • Oct 21 12:08
    drujensen closed #1237
Massimiliano Bertinetti
@maxbertinetti
@damianham you are an Amber Recipes expert: please I just created a new one but give me this error:
Missing shard.yml. Please run 'shards init'
Environment file not found for ./config/environments/production
The files are present, but I think the problem is the extension. Mine is .ecr, in your recipes is .lqd
Can be the format the problem?
I started with the template of the amber framework directly and added the feature that I want...
Hai Nguyen
@greentornado
Hi i got 403 error whenever enable plug Amber::Pipe::CORS.new on api pipeline
how do i fix that please
Hai Nguyen
@greentornado
okay, after I added Origin Headers to the request, it works
George Dietrich
@Blacksmoke16
Hai Nguyen
@greentornado
When will the new version got released plz ?
George Dietrich
@Blacksmoke16
:shrug:
would be a question for someone else
Damian Hamill
@damianham
@maxbertinetti yes the format is the problem. The amber recipes use the liquid template language from the TechMagister/liquid.cr shard. You will find it easier to use liquid to create recipes because you don't have to escape ECR output.
Massimiliano Bertinetti
@maxbertinetti
Thanks @damianham for the confirmation
Elias Perez
@eliasjpr
@damianham after reading https://www.w3.org/International/questions/qa-choosing-encodings and this https://www.w3.org/International/questions/qa-choosing-encodings#http I think it is best to have all responses to default to UTF-8. I wonder if there would be any implications for currently running Amber Apps. Thoughts
Richard de Wit
@richarddewit
How do I print something to STDOUT? puts p and pp are ignored or not showing anything
And using Log.info { something } is too much typing :P
George Dietrich
@Blacksmoke16
prob should use the log module
Richard de Wit
@richarddewit
Log.info { something } isn't outputting anything either btw.. I'm doing something wrong
Disregard my messages.. I was working in the update method instead of the create method.. My bad
George Dietrich
@Blacksmoke16
that would do it
John Winters
@jhwinters
Hi there, experienced RoR programmer here trying to take an initial look at Amber as an alternative. Fallen at the first hurdle :-( As they stand, the "get you going in 7 steps" instructions don't work - at least not with MySql, which is what I happen to have installed. A bit of google searching indicates that I'm not the first to have this problem, but I can't find a definitive solution. The instructions as they stand are fairly obviously not going to work because at no point are any MySql credentials specified. Are there any better "get you started" instructions anywhere please? It's disheartening when the "look how easy it is" ones don't work.
Damian Hamill
@damianham
@eliasjpr I guess there wouldn't be any implications for currently running amber apps.
Damian Hamill
@damianham
Hi John, I am a long time MySQL user (since the initial release I think) but I switched to Postgres once I started using Amber and have never looked back. The online documentation for Postgres is superb and there are never any problems connecting to the database. I gave up on MySQL mainly because of the absurdity of specifying all the right credentials but still getting access denied errors. PJW (Postgres Just Works) :)
Damian Hamill
@damianham
BTW I always use docker and docker-compose so once you have configured the docker-compose.yml file it is a breeze to run your app along with the database container
Kirill Kulikov
@ikaru5

Hi there! Using granite I have a lot of Selects firing to DB if I do

List.all.each do |list|
  list.items.each do |item|
    puts item.name
    #...

Can I make just one call to DB like includes in Rails?

George Dietrich
@Blacksmoke16
idt
could do like Items.all then build out a map of list.id => items, and do same idea with items, select them all, map id to name, then use that hash
Massimiliano Bertinetti
@maxbertinetti
Elias Perez
@eliasjpr
@maxbertinetti how does Crystalline compares to Scry?
Massimiliano Bertinetti
@maxbertinetti
@eliasjpr it works
Elias Perez
@eliasjpr
haha
ok
Elias Perez
@eliasjpr
@maxbertinetti I got the following error trying to install it
~/workspaces/crystalline master
❯ crystal build ./src/crystalline.cr  -o ./bin/crystalline --release --no-debug --progress  -Dpreview_mt
/usr/bin/ld: /usr/share/crystal/src/llvm/ext/llvm_ext.o: in function `llvm::MetadataTracking::track(llvm::Metadata*&)':
llvm_ext.cc:(.text._ZN4llvm16MetadataTracking5trackERPNS_8MetadataE[_ZN4llvm16MetadataTracking5trackERPNS_8MetadataE]+0x42): undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /home/eperez/workspaces/crystalline/bin/crystalline  -rdynamic -L/usr/bin/../lib/crystal/lib -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` /usr/share/crystal/src/llvm/ext/llvm_ext.o `"/usr/bin/llvm-config-10" --libs --system-libs --ldflags 2> /dev/null` -lstdc++ -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent_pthreads -levent -levent -lrt -ldl`
Massimiliano Bertinetti
@maxbertinetti
The linker doesn't find some library.
Which OS are you in?
BTW follow the advices here
Elias Perez
@eliasjpr
Im using POP OS
Massimiliano Bertinetti
@maxbertinetti
Try using llvm 8 or use llvm 10 with the symlink as advised on the forum post
Elias Perez
@eliasjpr
Got it
Thanks!
Massimiliano Bertinetti
@maxbertinetti

Thanks!

You are welcome!

Massimiliano Bertinetti
@maxbertinetti
@eliasjpr for Cristalline now is possible to download the binary
Elias Perez
@eliasjpr
Sweet!
Elias Perez
@eliasjpr
Got Crystalline up and running
1 reply
Ivan
@VanyaNeytrino
Hello. For some reason, migrations do not work for me. Has anyone faced such a problem?
From IRC (bridge bot)
@FromIRC
<DTZUZU> Anyone know if there's a sublime text syntax highlighting for .slang files ?
Dru Jensen
@drujensen
@VanyaNeytrino did I break something? What version of micrate do you have? Should be 0.8.0.
Ivan
@VanyaNeytrino
@drujensen yes, micrate 0.8.0
hmm, there is a table with users in the database, amber gives an error: relation "users" does not exist
Dru Jensen
@drujensen
Check permissions and owner