Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:15
    ravinder387 starred GenieFramework/Genie.jl
  • 12:39
    wadehenning closed #266
  • 12:39
    wadehenning commented #266
  • 10:32
    wadehenning commented #266
  • 07:16
    essenciary closed #276
  • 07:16
    essenciary commented #276
  • Sep 29 21:35
    hhaensel closed #274
  • Sep 29 21:35
    hhaensel commented #274
  • Sep 29 21:34
    hhaensel commented #276
  • Sep 29 20:22
    hhaensel commented #284
  • Sep 29 20:21
    hhaensel commented #284
  • Sep 29 20:04

    github-actions[bot] on v1.3.0

    (compare)

  • Sep 29 19:22
    essenciary commented #284
  • Sep 29 19:16
    essenciary commented #283
  • Sep 29 19:12
    hhaensel commented #284
  • Sep 29 19:10

    github-actions[bot] on gh-pages

    build based on 3e0d8df (compare)

  • Sep 29 19:07
    JuliaRegistrator commented on 3e0d8df
  • Sep 29 19:07
    essenciary commented on 3e0d8df
  • Sep 29 19:07

    essenciary on master

    v1.3 (compare)

  • Sep 29 19:01
    essenciary commented #276
Adrian Salceanu
@essenciary
i don't want to comment... it's free and open source software and somebody else is putting the work to provide it... it's their right to decide what goes in, as maintainers. And I have the option to fork it and build my own version if I'm so inclined (which I want to but there are more important things to address first)
for now I'm happy that I don't have to deal with that end of the stack, I'm more comfortable higher level :D
Ruben Molina
@Ruben_Molina_gitlab
@essenciary About your response before, what do you mean with that? "the only option is to create the file instead of copying it". I'm trying to create a webserver, but I'm kind of stuck because if I cannot modify the webapp it does not let me change configuration. Sorry for all the questions, but I'm a newcomer from Python ^^u
Adrian Salceanu
@essenciary
that was strictly about how the files are created on the file system
how are you stuck?
i mean the julia process is not allowed to change the access to the file but you can
Ruben Molina
@Ruben_Molina_gitlab
I tried to create the webapp using Genie.newapp("name"). However when I try to modify routes.pl or the global config, I have problems with the permissions
Not in my case :/
Adrian Salceanu
@essenciary
what os are you on?
Ruben Molina
@Ruben_Molina_gitlab
Macos Mojave
10.14*
Adrian Salceanu
@essenciary
is it in some weird location?
Ruben Molina
@Ruben_Molina_gitlab
No, is in the Desktop. This happens to me both in the Mac and in CentOS7 (in remote server)
Adrian Salceanu
@essenciary
chmod +w routes.jl ?
Ruben Molina
@Ruben_Molina_gitlab
Let's see
It worked, I feel like an idiot haha, because before I was trying to change the permissions of all the folders at once
Thank you!
Adrian Salceanu
@essenciary
:))
you're welcome!
sasogeek
@sasogeek
Struggling to manually connect genie to mongodb atlas, is there an eta for an official mongodb support?
Adrian Salceanu
@essenciary
it's not on the list of upcoming features - it would go into Searchlight and that still has more urgent work needed. However, it would rely on existing Mongo connectors/libraries
what are you using? I think there were 2 packages for interacting with mongo
Adrian Salceanu
@essenciary
looks like the newest
looks like the best choice
sasogeek
@sasogeek
julia> using Mongoc

julia> db_client = Mongoc.Client("mongodb+srv://admin:***@cluster0.5cqq.gcp.mongodb.net/test?retryWrites=true")
Client(URI("mongodb+srv://admin:***@cluster0.5cqq.gcp.mongodb.net/test?retryWrites=true"))

julia> Mongoc.ping(db_client)
ERROR: BSONError: domain=15, code=13053, message=No suitable servers found (`serverSelectionTryOnce` set): [TLS handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed calling ismaster on 'cluster0-shard-00-00.5cqq.gcp.mongodb.net:27017'] [TLS handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed calling ismaster on 'cluster0-shard-00-02.5cqq.gcp.mongodb.net:27017'] [TLS handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:cer
Stacktrace:
 [1] command_simple(::Mongoc.Database, ::Mongoc.BSON) at /Users/sasogeek/.julia/packages/Mongoc/ULDwF/src/database.jl:33
 [2] ping(::Mongoc.Client{Nothing}) at /Users/sasogeek/.julia/packages/Mongoc/ULDwF/src/client.jl:70
 [3] top-level scope at REPL[3]:1
Adrian Salceanu
@essenciary
unfortunately I don't have experience with this package - I suggest getting in touch with the maintainers
sasogeek
@sasogeek
👍🏽 thanks
HenricoWitvliet
@HenricoWitvliet
Simple question: in a template I want to use a variable that is either nothing or a value. If the variable contains a value I want to create an attribute in a tag. Does anyone have a simple example? I tried something like $(isnothing(variable) ? "" : "attr='$variable'") and variants, but I didn't get it working.
Adrian Salceanu
@essenciary
@HenricoWitvliet can you show the code around that snippet pls?
it's a good point, it would be nice (and easy to implement) to have something higher level eg ifset(var, attr)
Adrian Salceanu
@essenciary
anyway, this should work
julia> x = nothing

julia> view = "<p class='foo' $( x === nothing ? "" : "style='border: 1px solid red;'")>Hello</p>"
"<p class='foo' >Hello</p>"

julia> x = "something"
"something"

julia> view = "<p class='foo' $( x === nothing ? "" : "style='border: 1px solid red;'")>Hello</p>"
"<p class='foo' style='border: 1px solid red;'>Hello</p>"
or maybe we could, by default, not output attributes whose value is nothing
Adrian Salceanu
@essenciary
i'll try it - not outputing nothing is consistent with the way it's handled at REPL
Adrian Salceanu
@essenciary
I've added a small tweak in v1.3 (which should be registered in a few minutes) where you can just pass the attributes and if the value is nothing it won't show up
Adrian Salceanu
@essenciary
julia> x = 1
1

julia> p(foo="bar", baz=x)
"<p foo=\"bar\" baz=\"1\"></p>"

julia> x = nothing

julia> p(foo="bar", baz=x)
"<p foo=\"bar\"></p>"
HenricoWitvliet
@HenricoWitvliet
Thanks, I will try it.
FrankUrbach
@FrankUrbach
Hallo Adrian! I try to find out how to work with StippleUI. You have prepared some UI-elements like Buttons. I can put a button in a row but I fail to get it in a right shape and bring a label on it. Also I have no clue how to get the event if the button is pressed. My journey to a one side application has begun.
Adrian Salceanu
@essenciary
@FrankUrbach sorry the state of the documentation is well... non existent... let me see if I can come up with a quick example. What do you mean "right shape"?
FrankUrbach
@FrankUrbach
The button is verry verry small. I have no idea which paramters can influence this.
FrankUrbach
@FrankUrbach
If it is ok for you I would try to document the pieces I have in use. If you prefer a certain way of documentation please let me know.
Adrian Salceanu
@essenciary
of course, that'd be much appreciated - we can append to the README for start
for Genie we're using Documenter.jl with Markdown files
but for guides I'm considering https://github.com/rbt-lang/NarrativeTest.jl so that we have testable guides
Adrian Salceanu
@essenciary
anything in markdown is good for now :)
HenricoWitvliet
@HenricoWitvliet
@essenciary using your examples gave me enough information to get my code working. I use file templates, and using <% ... %> inside a tag and my other example gave me problems. Creating the complete tag inside <% .. %> worked. Maybe my version of Genie was too old, or I didn't understand what can and cannot be done using template-files. You've got a happy user.
Adrian Salceanu
@essenciary
@HenricoWitvliet I'm glad to hear it :) Can you please share the snippet you ended up with? And what you tried but didn't work?
NicolasWesleyJS
@NicolasWesleyJS
@essenciary, I'm learning how to use genie but had some problems to reload the code during production... when I load the app and modify the code doesn't works. Can you help me? there are some tips?
FrankUrbach
@FrankUrbach
@essenciary I must apologize. I made a rookie mistake. I forgot to include StippleUI.button in a using statement. You have to be careful afterwards, because both html and StippleUI.Button offer the function button. After I recognized this, the rest was relativ easy. Only the handling of the event when the button is pressed would be interesting.