Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:57
    straight-shoota closed #13036
  • 13:57
    straight-shoota closed #13038
  • 12:59
    straight-shoota milestoned #13040
  • 12:59
    straight-shoota milestoned #13040
  • Feb 01 22:30
    straight-shoota labeled #13041
  • Feb 01 22:30
    straight-shoota labeled #13041
  • Feb 01 22:30
    straight-shoota assigned #13041
  • Feb 01 22:30
    straight-shoota opened #13041
  • Feb 01 21:52
    straight-shoota milestoned #13039
  • Feb 01 21:52
    straight-shoota milestoned #13039
  • Feb 01 21:44
    straight-shoota ready_for_review #12886
  • Feb 01 21:08
    straight-shoota labeled #13040
  • Feb 01 21:08
    straight-shoota labeled #13040
  • Feb 01 21:08
    straight-shoota assigned #13040
  • Feb 01 21:08
    straight-shoota opened #13040
  • Feb 01 21:03
    straight-shoota synchronize #12886
  • Feb 01 19:25
    straight-shoota closed #13030
  • Feb 01 19:25
    straight-shoota closed #13032
  • Feb 01 18:59
    beta-ziliani milestoned #13032
  • Feb 01 18:59
    beta-ziliani milestoned #13032
Jonathan Silverman
@mixflame
just changed it to this...
```
  def login
    return unless @response_count == 3
    ssl_socket.as(OpenSSL::SSL::Socket::Client) << "PASS #{password}\r\n"
    ssl_socket.as(OpenSSL::SSL::Socket::Client) << "NICK #{nick}\r\n"
    ssl_socket.as(OpenSSL::SSL::Socket::Client) << "USER #{user} 8 * :#{user}\r\n"
    ssl_socket.as(OpenSSL::SSL::Socket::Client).flush
    @logged_in = true
  end
no send
whoa!
i got it to login
see the response count think
turns out my server only sends 2
yeah protocol code lol :D
George Dietrich
@Blacksmoke16
mmk
Jonathan Silverman
@mixflame
if you were wondering here is the full code that works https://gist.github.com/mixflame/057abeff96311c91f0d2e81fbd0edb26
IRC SSL in Crystal ^
Gabor Szabo
@szabgab
I accidentally ran "crystal spe" (without the trailing c) and it executed all the spec test. Why and how?
George Dietrich
@Blacksmoke16
when "spec/".starts_with?(command)
is what the logic for the CLI is
Gabor Szabo
@szabgab
Oh, thanks
Taupiqueur
@alexherbo2
Is there a built-in way to manipulate trees (from a filesystem walk and json)?
Taupiqueur
@alexherbo2
I need to collect a list of file names and contents (snippets) from a root. each folder contains a scope.yml to test whether the snippets should apply on a given file, for example having rails, rails/ruby, rails/ruby/controller, rails/ruby/migration.
likely, rails/scope.yml will have roots = ["config/environment.rb"] to pass
Taupiqueur
@alexherbo2
rails/ruby/scope.yml extensions = [".rb"] and so on
I wonder if I should cache the filesystem exploration as json, or if it's ok to request the filesystem for scoping a file
1 reply
From IRC (bridge bot)
@FromIRC
<straight-shoota> depends... shrug
<straight-shoota> stdlib has no dedicated tree data structure. I guess JSON::Any comes close. There are also shards.
<straight-shoota> But you need to decide whether caching even makes sense for your use case
From IRC (bridge bot)
@FromIRC
<straight-shoota> We're having a live talk about the upcoming Crystal 1.0 Conference: https://youtu.be/tYb3YlDY4lE
Chris Watson
@watzon
Good chat
Benjamin Wade
@RespiteSage
I'm really looking forward the the conference next week.
Chris Watson
@watzon
Same my dude
bew
@bew:matrix.org
[m]
Will the conference talks be public some time after the event?
Kirk Haines
@wyhaines
I would be shocked if they were not. At the very least, though, I will definitely have my slide deck and all materials for my talk available.
From IRC (bridge bot)
@FromIRC
<straight-shoota> Yes, the recordings will be available publicly
<straight-shoota> I'll definitely have to watch them afterwards to see what was going on in the other track :⁠D
Building oq 
+ snapcraftctl build
Missing shard.lock
shards install --production
Failed to run 'shards install --production' for 'oq': Exited with code 1.
:thinking:
George Dietrich
@Blacksmoke16
oh, shards install --production fails if there isnt a shard.lock
ah crystal-lang/shards#473, the snap plugin needs updated in that case
my as well port it to the v2 plugin system too. Guess I know what ill be doing this weekend :P
From IRC (bridge bot)
@FromIRC
<straight-shoota> It seems there's no v2 plugin for Crystal yet...
From IRC (bridge bot)
@FromIRC
<yxhuvud> Hmm. So why do I get errors? It'd be nice to figure it out :⁠(
From IRC (bridge bot)
@FromIRC
<f1refly> Is work currently going on to support crystal on the m1 mac with homebrew? I introduced one of my colleagues to it about a year ago and he can't use his scripts any more since changing his work computer
From IRC (bridge bot)
@FromIRC
<mps> f1refly: unstall alpine linux in qemu and then you can run crystal in VM
<mps> it works pretty fast
<straight-shoota> On our side aarch64_darwin is completely supported. It's just that an LLVM bug prevented upgrading to LLVM 11.
<straight-shoota> I hear crystal runs very well with Rosetta on M1 chips
<f1refly> neat, i'll tell him
From IRC (bridge bot)
@FromIRC
<yxhuvud> oh, I might have found my issue. I didn't initialize one of the fields I sent into things and apparently it wasn't set to 0 by default. :x
George Dietrich
@Blacksmoke16
@straight-shoota yea planning on taking a stab at porting it to v2 this weekend prob
shouldn't be too bad. In the meantime ill replace --production with --without-development to get the v1 working again at least
is it expected that shards build --production works without a shard.lock?
From IRC (bridge bot)
@FromIRC
<straight-shoota> No, in 0.15.0 --production implies --frozen. Prior to that it was intended to work like this, but it was not enforced.
George Dietrich
@Blacksmoke16
gotcha. and is there a point in doing an install before a build. couldn't we simplify the build process to just like shards build --without-development, iirc the catch is that doesn't run post install hooks or something?