Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:23
    essenciary closed #522
  • 07:23
    essenciary commented #522
  • May 15 20:35
    green-s starred GenieFramework/Genie.jl
  • May 15 17:36
    precis19 commented #33
  • May 13 18:13
    montyvesselinov edited #522
  • May 13 18:12
    montyvesselinov assigned #522
  • May 13 18:12
    montyvesselinov opened #522
  • May 13 14:45
  • May 12 16:11

    essenciary on v5

    Express config of WSEXPPORT - t… (compare)

  • May 12 13:10

    essenciary on v5

    ENV overwrites for WSEXPPORT an… (compare)

  • May 12 09:05
    rikhuijzer commented #520
  • May 12 08:39
    rikhuijzer commented #520
  • May 12 08:38
    rikhuijzer commented #520
  • May 12 08:36
    rikhuijzer commented #520
  • May 12 07:06
    essenciary commented #520
  • May 11 17:46
    rikhuijzer commented #520
  • May 11 13:54
    essenciary commented #520
  • May 11 13:52
    essenciary commented #520
  • May 11 12:59
    essenciary commented #520
  • May 11 12:12

    essenciary on v5

    Websockets exposed port and hos… (compare)

Jose Robles
@jroblesc
Screen Shot 2021-12-01 at 8.01.15 PM.png
As Louis Hoo @LouisHoo5227 in Oct 11 02:52, I am running with that error when seeding the CSV file to the DB table Movies. Any help, please?
Adrian Salceanu
@essenciary
@AbhimanyuAryan didn't we solve the seed issue in Watch Tonight?
Frank Urbach
@FrankUrbach
I faced that issue in Julia 1.6.4. In Julia 1.7 it goes away. Maybe this could be a hint for diving deeper.
Abhi...
@AbhimanyuAryan
We did @essenciary check new docs
Adrian Salceanu
@essenciary
@AbhimanyuAryan can you please point @jroblesc to the solution?
Abhi...
@AbhimanyuAryan

@jroblesc use

using SearchLight, Movies
using CSV

Base.convert(::Type{String}, _::Missing) = ""
Base.convert(::Type{Int}, _::Missing) = 0
Base.convert(::Type{Int}, s::String) = parse(Int, s)

function seed()
  for row in CSV.Rows(joinpath(@__DIR__, "netflix_titles.csv"), limit = _000)
    m = Movie()

    m.type = row.type
    m.title = row.title
    m.directors = row.director
    m.actors = row.cast
    m.country = row.country
    m.year = parse(Int, row.release_year)
    m.rating = row.rating
    m.categories = row.listed_in
    m.description = row.description

    save(m)
  end
end

and mentioned in the docs: https://genieframework.com/docs/tutorials/Developing-MVC-Web-Apps.html

Jose Robles
@jroblesc
Schroter Michael
@MichaelSchroter
Hi, Does anyone know how to do front end web programming in julia using Genie? What are the other prerequisite requirements please? Thanks & Best Regards Schroter
11 replies
Adrian Salceanu
@essenciary

Hi all, I wanted to share some quick Genie announcements:

1/ We have a new website and Genie.jl. docs: https://genieframework.com. Have a look and let us know what you think! We’re also working on docs for Stipple, so stay tuned for more updates in 4-6 weeks. :-)

2/ We’re moving the community to DISCORD. Many of you have suggested it, and we think it’s time. You can join our server here: https://discord.gg/9zyZbD6J7H. We’ll continue supporting Gitter for a while but we’d like to eventually centralize the community in one place. We hope to see you on Discord!

Ulrik W. Nash
@UlrikNash_twitter

I am having problems using StippleUI. Precompiling gives the error:

LoadError: LoadError: syntax: invalid keyword argument syntax "wrap"

Adrian Salceanu
@essenciary
@UlrikNash_twitter can you please pass the full error stack trace?
also the StippleUI version and the Julia version
for me it works
julia> using StippleUI
[ Info: Precompiling StippleUI [a3c5d34a-b254-4859-a8fa-b86abb7e84a3]
Daniel Stevenson
@dms449
Hello,
I'm trying to implement a multi-tenant application (my first time). Does SearchLight have any features to aid with this? any advise on whether to have a separate database user and connection for each tenant or not? I'm using Postgres
3 replies
Shum
@Shum88

@essenciary I have a question on params(:action) ... it does not return the expected string 'edit" ? , It always return the function name ( "web_handler" in my case ) ?

sAction = params(:action)
println( "action: $sAction" ) .................. this display "action: web_handler"

Where sAction is a symbol, it is the controller function name (it is not what I expected as the passing string "edit") ??

Does :action is a special key word used by Genie ?

3 replies
Controller_func_params_001.jpg
9 replies
Shum
@Shum88
@essenciary I notice that there is nested_keys() function... does it handle the array params ?? when will it working ?
Shum
@Shum88

@essenciary following is my SQLSelect function: .... Please point me out to extract the error message

function SQLSelectTable( sSelect::String )::DataFrame
try
sTQuery::String = sSelect
oDf::DataFrame = SearchLight.query( sTQuery )
return oDf
catch ex
et = typeof(ex)
println( "type: $et" )
println( "ex: $ex" )
return ex
end
end

I fount that: (at above case)
type: MySQL.API.Error
ex: MySQL.API.Error(0x00000426, "Duplicate entry '1' for key 'gmessager.PRIMARY'")

How to extract 0x00000426 , "Duplicate entry '1' for key 'gmessager.PRIMARY'" ??
any function to extract the error:
1.) type
2.) code
3.) message
?

Abhi...
@AbhimanyuAryan

@essenciary following is my SQLSelect function: .... Please point me out to extract the error message

function SQLSelectTable( sSelect::String )::DataFrame
try
sTQuery::String = sSelect
oDf::DataFrame = SearchLight.query( sTQuery )
return oDf
catch ex
et = typeof(ex)
println( "type: $et" )
println( "ex: $ex" )
return ex
end
end

I fount that: (at above case)
type: MySQL.API.Error
ex: MySQL.API.Error(0x00000426, "Duplicate entry '1' for key 'gmessager.PRIMARY'")

How to extract 0x00000426 , "Duplicate entry '1' for key 'gmessager.PRIMARY'" ??
any function to extract the error:
1.) type
2.) code
3.) message
?

can you please use code formatting? It’s hard to read and propose solution

13 replies
Shum
@Shum88
@essenciary ... even ...during development , there are many session files be created inside /sessions/ folder ... is there any function to delete those un-wanted sessions files ?
4 replies
Shum
@Shum88
@essenciary these few day ... following tcp error comes out ?
However, I donot know how to reproduce it ...
4 replies
genie_tcp_ip_runtime_error_001.jpg
Jonnie Diegelman
@jonniedie
In my migrations files, what's the best way to handle table columns that have Dicts as values? Do they have to be stored as a string like "key1:val1,key2:val2"? Or rather, what value types are allowed? I only see :string and :int in the docs.
10 replies
Adrian Salceanu
@essenciary
@/all a quick reminder that we're migrating our chat to Discord for a better experience. Please join our Discord for quick support, this Gitter is irregularely updated now https://discord.gg/TSuy5md6
ilkerarslan
@ilkerarslan
Hi. I am planning to use Genie for some of the applications in my company. I am trying to go through the Genie mvc tutorial. At this step I get an error everytime. include(joinpath("db", "seeds", "seed_movies.jl")) Any idea why?
image.png
Adrian Salceanu
@essenciary
@ilkerarslan looks like an issue with CSV.jl - can you please copy/paste the whole error stack?
Abhi...
@AbhimanyuAryan
The above discord join link is expired. Use this link instead: https://discord.com/invite/9zyZbD6J7H
kiti_Nomad
@Kiti-Nomad
I have migrated to discord. In China, however, gitter is available, while discord is not accessible
Adrian Salceanu
@essenciary
@Kiti-Nomad no worries, you can always use Gitter, it's just not such a good app
Abhi...
@AbhimanyuAryan
Hi everyone! We’ve just updated the docs and fixed some broken code. Have a look here: https://genieframework.com/docs/. Hope this helps! Feedback is welcome.
Felix Wechsler (he/him)
@roflmaostc
Hi!
The question I'm trying to solve:
often I see @text(:path) but I actually want to call a function with @text which depending on the values does something different.
Is the suggested way to have a "flag" which is then observed by a on(...) function=?
1 reply
Felix Wechsler (he/him)
@roflmaostc
Is the recommended way to then build a quite huge struct, which might contain a lot of strings which are then accessed via reactivity?
eisthf
@eisthf

@essenciary

I followed the instructions in the doc to create a new web service.

Genie.newapp_webservice("TestWeb")

For the first time the app is created and the server is up and running.
Next time I exit julia and go to the TestWeb directory and activate its environment.
and I call
loadapp(autostart=true)

The following messages are printed out and in the middle of, all of sudden, Julia dies.
Active env: DEV
Loading initializers

My Julia version info:
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_DEPOT_PATH = D:.julia
JULIA_NUM_THREADS = 8

Genie v4.17.0 is being used.

Thank you!

5 replies
eisthf
@eisthf
I just registered a bug report :
GenieFramework/Genie.jl#507
AriMKatz
@AriMKatz
Hi, FYI some discussion here about Genie: https://news.ycombinator.com/item?id=30929873
Adrian Salceanu
@essenciary
Stipple Docs_Twitter_KV.jpg

Hi @everywone, we've released new documentation for Stipple and SearchLight libraries. Make sure to check it out!

📝 Docs: https://genieframework.com/docs/

We hope the new docs will make it easier to build data apps & dashboards in low-code Julia.

We'll keep improving our documentation in the coming weeks - drop us a line if you'd like to contribute and help us make it better!

Adrian Salceanu
@essenciary

@essenciary following is my SQLSelect function: .... Please point me out to extract the error message

function SQLSelectTable( sSelect::String )::DataFrame
try
sTQuery::String = sSelect
oDf::DataFrame = SearchLight.query( sTQuery )
return oDf
catch ex
et = typeof(ex)
println( "type: $et" )
println( "ex: $ex" )
return ex
end
end

I fount that: (at above case)
type: MySQL.API.Error
ex: MySQL.API.Error(0x00000426, "Duplicate entry '1' for key 'gmessager.PRIMARY'")

How to extract 0x00000426 , "Duplicate entry '1' for key 'gmessager.PRIMARY'" ??
any function to extract the error:
1.) type
2.) code
3.) message
?

see what fieldnames the exception object has: fieldnames(typeof(ex)) -- and use the right one

Also please remember to join our Discord (you will find the link on the genieframework.com home page) - we're having a very hard time replying to queries here, the UI and features in Gitter are becoming quite bad (it seems I can't start threads anymore)
Daniel Muriithi
@Dany20

Hi, I'm new to Genie. I was following the creating an MVC app documentation on the Genie website but when I got to this code julia> include(joinpath("db", "seeds", "seed_movies.jl")) and this other one

julia> seed()

I get this error

ERROR: MethodError: Cannot `convert` an object of type PosLenString to an object of type Int64
Closest candidates are:
  convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at C:\Users\Dan\AppData\Local\Programs\Julia-1.7.2\share\julia\base\twiceprecision.jl:262
  convert(::Type{T}, ::AbstractChar) where T<:Number at C:\Users\Dan\AppData\Local\Programs\Julia-1.7.2\share\julia\base\char.jl:185     
  convert(::Type{T}, ::CartesianIndex{1}) where T<:Number at C:\Users\Dan\AppData\Local\Programs\Julia-1.7.2\share\julia\base\multidimensional.jl:136
  ...
Stacktrace:
 [1] setproperty!(x::Movie, f::Symbol, v::PosLenString)
   @ Base .\Base.jl:43
 [2] seed()
   @ Main E:\JuliaProjects\WebDevelopment\Watchtonight\db\seeds\seed_movies.jl:17
 [3] top-level scope
   @ none:1

Please help

Abhi...
@AbhimanyuAryan
use this seeds.jl
using SearchLight, Movies
using CSV

Base.convert(::Type{String}, _::Missing) = ""
Base.convert(::Type{Int}, _::Missing) = 0
Base.convert(::Type{Int}, s::String) = parse(Int, s)

function seed()
  for row in CSV.Rows(joinpath(@__DIR__, "netflix_titles.csv"), limit = _000)
    m = Movie()

    m.type = row.type
    m.title = row.title
    m.directors = row.director
    m.actors = row.cast
    m.country = row.country
    m.year = parse(Int, row.release_year)
    m.rating = row.rating
    m.categories = row.listed_in
    m.description = row.description

    save(m)
  end
end
Tristan Carion
@tcarion
Hi all! I'm sorry if it's a silly question, but I tried to define some app-wise constants in a constants.jl file in the initializers folder, but then I don't know how to make them available in any of the controllers. I understand it's available in UserApp, but importing UserApp in the controller won't work. Thanks in advance!
7 replies
Adrian Salceanu
@essenciary
Hi @everyone! We're very excited to share a preview of Genie Builder, a no-code data app builder developed on Genie Framework. We'll release the beta in a few days. Stay tuned! 😊
https://youtu.be/0Q1dnufQXKM
also, here's my regular reminder to join our Discord as it provides a much better experience and it's much more active now https://discord.gg/9zyZbD6J7H