jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.5 | Fund Crystals development: http://to.ly/TtGw | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
strcmp1 has joined #crystal-lang
sailorswift has joined #crystal-lang
NeverDie has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dwahl has joined #crystal-lang
sailorswift has joined #crystal-lang
dwahl has quit [Quit: dwahl]
dwahl has joined #crystal-lang
blue_deref has quit [Quit: bbn]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 264 seconds]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Ping timeout: 250 seconds]
dwahl has left #crystal-lang [#crystal-lang]
blue_deref has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Ping timeout: 240 seconds]
mgarciaisaia has quit [Quit: Leaving.]
blue_deref has quit [Quit: bbn]
DrThunder has joined #crystal-lang
DrThunder has quit [Remote host closed the connection]
kulelu88 has quit [Quit: Leaving]
ponga has joined #crystal-lang
irclogger_______ has quit [Remote host closed the connection]
irclogger_______ has joined #crystal-lang
BlaXpirit has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
sdogruyol has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
sdogruyol has quit [Quit: Leaving...]
ponga has quit [Quit: Leaving...]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
dbackeus has joined #crystal-lang
<dbackeus> any equivalent of rubys URI.decode_www_form_component ?
leafybasil has quit [Ping timeout: 260 seconds]
drizz has quit [Remote host closed the connection]
drizz has joined #crystal-lang
dbackeus_ has joined #crystal-lang
dbackeus has quit [Ping timeout: 260 seconds]
dbackeus_ has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
dbackeus has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang
elia has quit [Client Quit]
zamith has joined #crystal-lang
<zamith> Hi, does anyone know if it possible to expose C hooks in a crystal program?
<zamith> basically call crystal from C
<BlaXpirit> zamith, use D-Bus lol
<BlaXpirit> to answer directly: i haven't heard of such a possibility
<zamith> ok, thanks anyway ;)
<BlaXpirit> zamith, u can also just make a program with a command line interface
strcmp1 has quit [Quit: Leaving]
sailorswift has joined #crystal-lang
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] jalyna opened pull request #1069: Fix documentation typo for URI#query (master...fix-uri-query-documentation) http://git.io/vOOO2
dbackeus has joined #crystal-lang
leafybasil has quit [Ping timeout: 250 seconds]
<jhass> for C you'll need to write a header file
havenwood has quit [Ping timeout: 252 seconds]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zamith has quit [Ping timeout: 240 seconds]
zamith has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
willl has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
zamith has joined #crystal-lang
zamith has quit [Client Quit]
Tuxified has joined #crystal-lang
sailorswift has joined #crystal-lang
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
grios has joined #crystal-lang
elia has joined #crystal-lang
zamith has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zamith has quit [Quit: Be back later ...]
sergey_kucher has joined #crystal-lang
sardaukar has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
<sardaukar> does anyone know how to turn off the cursor with Crystal?
<sardaukar> I'm trying to create a "ncurses" like lib
<BlaXpirit> sardaukar, please be more precise
<BlaXpirit> i mean... turning off cursor of what?
<BlaXpirit> if you're talking about terminal, then it's exactly the same as turning it off in C
<sardaukar> I'd like to turn off the cursor on terminal sessions
waj has joined #crystal-lang
<sardaukar> why doesn't { stty -raw -echo } work?
<sardaukar> I used to be able to do it in Ruby
<sardaukar> (that's an exec() call)
<sardaukar> BlaXpirit: found better docs! had the wrong escape code :D
<BlaXpirit> yay
<sardaukar> print "\e[?25l" is to restore, not hide
<sardaukar> print "\e[?25h" hides it
<BlaXpirit> ok
<BlaXpirit> i recently worked a bit with these crazy codes
<BlaXpirit> well, they're crazy
<sardaukar> very archane :/ 1970s
<sardaukar> still curious, though: do shell outs affect the "terminal" Crystal binaries work with?
<sardaukar> they must, right?
<sardaukar> stty -echo should have worked too
<sardaukar> or maybe it's a Linux thing - doesn't work for me on mac
<sardaukar> argh
zamith has joined #crystal-lang
havenwood has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
elia has joined #crystal-lang
DrThunder has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vOOj4
<crystal-gh> crystal/master 4b3872c Jalyna: Fix documentation typo for URI#query
<crystal-gh> crystal/master 964d568 Ary Borenszweig: Merge pull request #1069 from jalyna/fix-uri-query-documentation...
DrThunder has quit [Ping timeout: 265 seconds]
<crystal-gh> [crystal] jalyna opened pull request #1072: Add troubleshooting section for mac os yosemite (gh-pages...add-troubleshooting-for-mac) http://git.io/vO3ep
<travis-ci> manastech/crystal#964d568 (master - Merge pull request #1069 from jalyna/fix-uri-query-documentation): The build passed. https://travis-ci.org/manastech/crystal/builds/73687036
dbackeus has joined #crystal-lang
sailorswift has joined #crystal-lang
zamith has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
zamith has quit [Quit: Be back later ...]
leafybasil has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dbackeus has quit [Remote host closed the connection]
sailorswift has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Client Quit]
leafybasil has quit [Remote host closed the connection]
zamith has joined #crystal-lang
<travis-ci> manastech/crystal#69c6254 (master - Type aliases for C types (#823)): The build passed. https://travis-ci.org/manastech/crystal/builds/73692689
mgarciaisaia has joined #crystal-lang
NeverDie has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Read error: Connection reset by peer]
zamith has quit [Quit: Be back later ...]
zamith has joined #crystal-lang
blue_deref has joined #crystal-lang
elia has joined #crystal-lang
dbackeus has joined #crystal-lang
kulelu88 has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
zamith has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vO3oY
<crystal-gh> crystal/master 853edff Juan Wajnerman: Some fixes for 32bit platforms
dbackeus has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<travis-ci> manastech/crystal#853edff (master - Some fixes for 32bit platforms): The build passed. https://travis-ci.org/manastech/crystal/builds/73697879
elia has quit [Quit: Computer has gone to sleep.]
dbackeus has joined #crystal-lang
DeBot has quit [Read error: Connection reset by peer]
DeBot has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zamith has quit [Quit: Be back later ...]
dbackeus_ has joined #crystal-lang
<dbackeus_> any way of merging Hash of a custom recursive type? http://play.crystal-lang.org/#/r/9cf
dbackeus has quit [Ping timeout: 265 seconds]
<dbackeus_> apparently merge! works while merge doesn't, how's that? http://play.crystal-lang.org/#/r/9cg
<BlaXpirit> dbackeus_, :o
<BlaXpirit> dbackeus_, i think you should report this
dbackeus_ has quit [Remote host closed the connection]
zamith has joined #crystal-lang
zamith has quit [Client Quit]
zamith has joined #crystal-lang
zamith has quit [Ping timeout: 244 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
DrThunder has joined #crystal-lang
blue_deref has quit [Quit: bbn]
DrThunder has quit [Ping timeout: 244 seconds]
blue_deref has joined #crystal-lang
mgarciaisaia1 has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vOsL0
<crystal-gh> crystal/master 8245fde Ary Borenszweig: Fixed #1029: Escaped macros and 'end'
<travis-ci> manastech/crystal#8245fde (master - Fixed #1029: Escaped macros and 'end'): The build was broken. https://travis-ci.org/manastech/crystal/builds/73706424
leafybasil has joined #crystal-lang
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
<travis-ci> manastech/crystal#8245fde (master - Fixed #1029: Escaped macros and 'end'): The build passed. https://travis-ci.org/manastech/crystal/builds/73706424
_whitelogger has joined #crystal-lang
NeverDie has joined #crystal-lang
havenwood has joined #crystal-lang
sergey_kucher has quit [Remote host closed the connection]
DrThunder has joined #crystal-lang
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
havenwood has quit [Ping timeout: 255 seconds]
dbackeus has quit []
elia has quit [Quit: Computer has gone to sleep.]
<BlaXpirit> are there DBus bindings?
<BlaXpirit> well appears not
elia has joined #crystal-lang
kulelu88 has left #crystal-lang ["Leaving"]
DrThunder has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
DrThunder has joined #crystal-lang
DrThunder has quit [Remote host closed the connection]
DrThunder has joined #crystal-lang
DrThunder has quit [Remote host closed the connection]
<BlaXpirit> how can i link to /usr/lib/x86_64-linux-gnu/libdbus-1.so ?
<BlaXpirit> i have no idea why ubuntu does this
DrThunder has joined #crystal-lang
<willl> if anyone here has any opinions on endianness byte swapping, please drop a comment at https://github.com/will/crystal-pg/issues/12 .
elia has quit [Quit: Computer has gone to sleep.]
DrThunder has quit []
<BlaXpirit> how to do assert?
<BlaXpirit> which is give an exception when a condition is false
<BlaXpirit> raise "damn" unless condition
dbackeus has joined #crystal-lang
centrx has joined #crystal-lang
<BlaXpirit> why don't i see any MemoryError?
<BlaXpirit> in the API
<epitron> can anyone tell me why this doesn't work? https://gist.github.com/0f29efdf5f7022da5ad0
<BlaXpirit> epitron, :(
<BlaXpirit> i dont know
<BlaXpirit> i passed it a string and it worked
Tuxified has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<epitron> can i see your code?
<BlaXpirit> epitron, Process.run("less", input: "lol")
<epitron> ahhh
<epitron> unfortunately i need to stream the input into it
<BlaXpirit> epitron, but that doesnt explain why your code doesnt work
<epitron> this doesn't work either: https://gist.github.com/0c3a08fba2a7a16e527b
<BlaXpirit> epitron, well its the exact same thing
<BlaXpirit> (i see that it's different process
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
waj has quit [Quit: waj]
dbackeus has quit [Ping timeout: 250 seconds]
zamith has joined #crystal-lang
<zamith> Hey. I'm trying to do an http call (using twitter-crystal) but it just hangs forever
<zamith> I've basically tracked it to the read call on HTTP::FixedContent
<zamith> but I have not idea of why this is happening or how to fix it
<epitron> is FixedContent an http request that knows the size of the response?
<epitron> i remember running into some weird content-length bugs when making an http server from scratch
<epitron> it might be waiting for content that isn't coming
<zamith> yes it is
<zamith> I assume something of the likes is happening
<epitron> exciting
<zamith> it uses SSL and oauth
<zamith> so it is an http fixed content, where the io element is an openssl::ssl::socket
<zamith> for some reason it won't work, but it gives no output
<epitron> i wonder what OS had the best model for sockets and communication
<epitron> plan9 maybe? :)
<zamith> no idea :)
leafybas_ has joined #crystal-lang
<epitron> it would be nice if the code didn't need to have so much glue and duct tape and nonblocking and error checking around even the simplest of network connections
leafybasil has quit [Read error: Connection reset by peer]
<zamith> you mean the handle_response?
<epitron> websockets has a nice paradigm: onmessage, onclose, send
<zamith> at this point I'd be happy with any response at all
<epitron> done :D
<zamith> even an error
<epitron> i was just thinking about pipes/sockets/IOs in general
<epitron> it's so messy
<zamith> asterite: do you have any idea of what could be happening?
leafybasil has joined #crystal-lang
<zamith> epitron: oh ok
<zamith> could it be my libssl?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<zamith> so, the request has this header: "content-disposition: attachment; filename=json.json"
<zamith> could it be causing issues?
BlaXpirit has quit [Quit: Konversation]
<sardaukar> what am I doing wrong here? http://play.crystal-lang.org/#/r/9dy
<centrx> sardaukar, Is the complete entirety of the code? Google suggests superclass mismatch is due to redefining a class twice?
<sardaukar> yes, this is the whole code
<sardaukar> I can't subclass twice? :D with only one subclass it works
<zamith> I think it's because Box already exists
<zamith> it's define in the crystal core
<sardaukar> oh shit
<sardaukar> better put this in a module :D
<sardaukar> thanks!
<zamith> then you have other errors
<zamith> for instance you should probably make Widget an abstract class
<zamith> that has an abstract render method
<zamith> and so on
<zamith> ;)
<sardaukar> does an abstract class have any special needs for methods?
<zamith> something like this: http://play.crystal-lang.org/#/r/9e2
<sardaukar> cool, thanks
<sardaukar> trying to move files into src/ and so on
<crystal-gh> [crystal] zamith opened pull request #1078: Do not delegate to LibSSL when there is nothing to read (master...openssl-read) http://git.io/vOG0r
<zamith> I solved my ssl issue, with the PR that I just opened
dwahl has joined #crystal-lang
dwahl has quit [Ping timeout: 246 seconds]
zamith has quit [Quit: Be back later ...]
<sardaukar> is it common knowledge that a multiline hash needs no commas?