Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:47
    straight-shoota closed #12051
  • 13:47
    straight-shoota closed #12050
  • 12:17
    beta-ziliani edited #7318
  • May 15 08:43
    r00ster91 closed #7318
  • May 15 08:17
    r00ster91 closed #7690
  • May 14 17:01
    Blacksmoke16 labeled #11995
  • May 14 13:03
    webhive closed #12055
  • May 14 10:19
    straight-shoota milestoned #12051
  • May 14 10:00
    I3oris edited #12051
  • May 14 08:45
    oprypin review_requested #11977
  • May 13 23:29
    Blacksmoke16 unlabeled #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:56
    Blacksmoke16 edited #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 labeled #12061
  • May 13 22:54
    Blacksmoke16 opened #12061
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota labeled #12060
  • May 13 20:14
    straight-shoota opened #12060
Claudio Holanda
@kazzkiq
Found the error, my password had an "at" (@), which was conflicting with the syntax from the connection. Even by trying to escape the "@" in the password, the error was still happening.
Jeremy Woertink
@jwoertink
using the latest crystal
Claudio Holanda
@kazzkiq
Removing this character solved the problem.
unreadable
@unreadable
  crystal run src/app.cr
Error in src/app.cr:3: while requiring "kemal-session-redis": can't find file 'kemal-session-redis' relative to '/home/alex/Projects/Crystal/app/src'

require "kemal-session-redis"
I've installed the dependency
Nick Franken
@fridgerator
@jwoertink yes I usually end up having to symlink different libevent in its place
Jeremy Woertink
@jwoertink
I was hoping to just hop in and start cranking stuff out.
Nick Franken
@fridgerator
ln -s /usr/local/opt/libevent/lib/libevent-2.1.6.dylib /usr/local/opt/libevent/lib/libevent-2.0.5.dylib
works for me
Jeremy Woertink
@jwoertink
Thanks. I ended up just making a bin/micrate with the API and using it that way. Seems to be working
unreadable
@unreadable
How can I parse a form with Kemal?
John Jansen
@johnjansen
unreadable
@unreadable
I've read that, thanks. I was actually wondering to do it the kemal way
John Jansen
@johnjansen
kemal is built on top of the stdlib http stuff .. and provides a dsl for routing etc … ill look at the kemal code, but im sure @sdogruyol will defer things like this to the stdlib
unreadable
@unreadable
nice
John Jansen
@johnjansen
wait, it looks like kemal handles this
@krypton97
unreadable
@unreadable
hm, I was trying this
params = ctx.request.body
ctx.response.print params["email"]
and got #
I mean params only
not params["email"]
John Jansen
@johnjansen
was it a application/x-www-form-urlencoded
unreadable
@unreadable
    <form action="/users/signup" method="post">
        <div class="form-group">
            <label>Username</label>
            <input type="text" class="form-control" name="username">
        </div>
        <div class="form-group">
            <label>Email</label>
            <input type="text" class="form-control" name="email">
        </div>
        <div class="form-group">
            <label>Password</label>
            <input type="password" class="form-control" name="password">
        </div>
        <div class="form-group">
            <label>Confirm Password</label>
            <input type="password" class="form-control" name="confirm">
        </div>
        <button type="submit" class="btn btn-warning btn-lg">Signup</button>
    </form>
Just a simple form
From IRC (bridge bot)
@FromIRC
<Papierkorb> ... I got the compiler to compile args = [ ] and then throw an runtime exception
<Papierkorb> That's a new creative one
unreadable
@unreadable
It has to be args = [] of type
From IRC (bridge bot)
@FromIRC
<Papierkorb> Sure. The point is that that shouldn't even compile in the first place.
unreadable
@unreadable
Still beta..
unreadable
@unreadable
Huston, we have a problem..
From IRC (bridge bot)
@FromIRC
<Papierkorb> struct Foo; YAML.mapping(bar: String?); end; Foo.from_yaml(%<bar: "# I'm not a comment">) Kaboom.
<Papierkorb> Union(String | Nil).from_yaml will pull the "next thing" (#read_raw), and then call String.from_yaml(that_thing), which now redoes the cycle and expects a YAML document. And now that_thing suddenly becomes a true comment.
<Papierkorb> (yadda use nilable)
From IRC (bridge bot)
@FromIRC
<hightower2> Hey Papierkorb I just got an idea how I'm going to support calling <parent>.new_listener.emit( <signal>.name) when a signal is installed in Cute
<hightower2> I am going to simply open the Cute::Signal class and add the property :⁠parent
<hightower2> Then in the parent class, when I list all its signals in an array anyway, I'll just go over those signals and set their #parent=
<hightower2> This will be just fine and won't require me to modify the 'macro signal' or anything inside Cute
<hightower2> Yet the signals will know their parent, and inside on() they will be able to do super; parent.new_listener.emit....
From IRC (bridge bot)
@FromIRC
<jokke> h
<jokke> Whops
Ghost
@ghost~55586c4815522ed4b3e08557
`test`
cool, just discovered that one can (inline) code blocks having ` :)
sevk
@sevk
[1,2] - [1]
unreadable
@unreadable
how can I convert IO type to String?
Ghost
@ghost~55586c4815522ed4b3e08557
you can read from the IO
unreadable
@unreadable
Yeah, that's good too
How can I/
?