00:01
strcmp1 has joined #crystal-lang
00:12
sailorswift has joined #crystal-lang
00:23
NeverDie has joined #crystal-lang
00:31
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:11
dwahl has joined #crystal-lang
01:36
sailorswift has joined #crystal-lang
01:40
dwahl has quit [Quit: dwahl]
01:43
dwahl has joined #crystal-lang
01:53
blue_deref has quit [Quit: bbn]
02:37
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:46
mgarciaisaia has joined #crystal-lang
03:16
mgarciaisaia1 has joined #crystal-lang
03:20
mgarciaisaia has quit [Ping timeout: 264 seconds]
03:22
sdogruyol has joined #crystal-lang
03:26
sdogruyol has quit [Ping timeout: 250 seconds]
03:28
dwahl has left #crystal-lang [#crystal-lang]
03:35
blue_deref has joined #crystal-lang
03:46
mgarciaisaia has joined #crystal-lang
03:49
mgarciaisaia1 has quit [Ping timeout: 240 seconds]
04:00
mgarciaisaia has quit [Quit: Leaving.]
04:36
blue_deref has quit [Quit: bbn]
04:50
DrThunder has joined #crystal-lang
04:53
DrThunder has quit [Remote host closed the connection]
04:55
kulelu88 has quit [Quit: Leaving]
04:57
ponga has joined #crystal-lang
05:50
irclogger_______ has quit [Remote host closed the connection]
05:50
irclogger_______ has joined #crystal-lang
06:13
BlaXpirit has joined #crystal-lang
06:49
willl has quit [Quit: Connection closed for inactivity]
07:50
sdogruyol has joined #crystal-lang
08:17
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
08:47
sdogruyol has quit [Quit: Leaving...]
09:33
ponga has quit [Quit: Leaving...]
09:34
leafybasil has quit [Remote host closed the connection]
09:34
leafybasil has joined #crystal-lang
09:36
dbackeus has joined #crystal-lang
09:37
<
dbackeus >
any equivalent of rubys URI.decode_www_form_component ?
09:39
leafybasil has quit [Ping timeout: 260 seconds]
09:40
drizz has quit [Remote host closed the connection]
09:40
drizz has joined #crystal-lang
09:53
dbackeus_ has joined #crystal-lang
09:54
dbackeus has quit [Ping timeout: 260 seconds]
09:59
dbackeus_ has quit [Remote host closed the connection]
10:01
dbackeus has joined #crystal-lang
10:01
dbackeus has quit [Remote host closed the connection]
10:02
dbackeus has joined #crystal-lang
10:02
dbackeus has quit [Read error: Connection reset by peer]
10:18
elia has joined #crystal-lang
10:18
elia has quit [Client Quit]
10:21
zamith has joined #crystal-lang
10:21
<
zamith >
Hi, does anyone know if it possible to expose C hooks in a crystal program?
10:22
<
zamith >
basically call crystal from C
10:27
<
BlaXpirit >
zamith, use D-Bus lol
10:28
<
BlaXpirit >
to answer directly: i haven't heard of such a possibility
10:28
<
zamith >
ok, thanks anyway ;)
10:29
<
BlaXpirit >
zamith, u can also just make a program with a command line interface
10:30
strcmp1 has quit [Quit: Leaving]
10:31
sailorswift has joined #crystal-lang
10:36
leafybasil has joined #crystal-lang
10:36
<
crystal-gh >
[crystal] jalyna opened pull request #1069: Fix documentation typo for URI#query (master...fix-uri-query-documentation)
http://git.io/vOOO2
10:39
dbackeus has joined #crystal-lang
10:40
leafybasil has quit [Ping timeout: 250 seconds]
10:46
<
jhass >
for C you'll need to write a header file
10:47
havenwood has quit [Ping timeout: 252 seconds]
10:48
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:48
zamith has quit [Ping timeout: 240 seconds]
10:48
zamith has joined #crystal-lang
11:05
zamith has quit [Quit: Be back later ...]
11:05
willl has joined #crystal-lang
11:10
dbackeus has quit [Remote host closed the connection]
11:10
leafybasil has joined #crystal-lang
11:23
leafybasil has quit [Remote host closed the connection]
11:38
zamith has joined #crystal-lang
11:43
zamith has quit [Client Quit]
11:45
Tuxified has joined #crystal-lang
11:55
sailorswift has joined #crystal-lang
12:12
dbackeus has joined #crystal-lang
12:17
dbackeus has quit [Remote host closed the connection]
12:20
grios has joined #crystal-lang
12:28
elia has joined #crystal-lang
12:46
zamith has joined #crystal-lang
12:50
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
13:02
zamith has quit [Quit: Be back later ...]
13:05
sergey_kucher has joined #crystal-lang
13:15
sardaukar has joined #crystal-lang
13:23
elia has quit [Quit: Computer has gone to sleep.]
13:24
<
sardaukar >
does anyone know how to turn off the cursor with Crystal?
13:25
<
sardaukar >
I'm trying to create a "ncurses" like lib
13:26
<
BlaXpirit >
sardaukar, please be more precise
13:26
<
BlaXpirit >
i mean... turning off cursor of what?
13:26
<
BlaXpirit >
if you're talking about terminal, then it's exactly the same as turning it off in C
13:26
<
sardaukar >
I'd like to turn off the cursor on terminal sessions
13:26
waj has joined #crystal-lang
13:27
<
sardaukar >
why doesn't { stty -raw -echo } work?
13:27
<
sardaukar >
I used to be able to do it in Ruby
13:27
<
sardaukar >
(that's an exec() call)
13:29
<
sardaukar >
BlaXpirit: found better docs! had the wrong escape code :D
13:29
<
sardaukar >
print "\e[?25l" is to restore, not hide
13:29
<
sardaukar >
print "\e[?25h" hides it
13:30
<
BlaXpirit >
i recently worked a bit with these crazy codes
13:30
<
BlaXpirit >
well, they're crazy
13:30
<
sardaukar >
very archane :/ 1970s
13:30
<
sardaukar >
still curious, though: do shell outs affect the "terminal" Crystal binaries work with?
13:30
<
sardaukar >
they must, right?
13:30
<
sardaukar >
stty -echo should have worked too
13:32
<
sardaukar >
or maybe it's a Linux thing - doesn't work for me on mac
13:39
zamith has joined #crystal-lang
13:43
havenwood has joined #crystal-lang
13:53
zamith has quit [Quit: Be back later ...]
13:56
elia has joined #crystal-lang
13:56
DrThunder has joined #crystal-lang
13:58
<
crystal-gh >
crystal/master 4b3872c Jalyna: Fix documentation typo for URI#query
13:58
<
crystal-gh >
crystal/master 964d568 Ary Borenszweig: Merge pull request #1069 from jalyna/fix-uri-query-documentation...
14:01
DrThunder has quit [Ping timeout: 265 seconds]
14:04
<
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
14:12
dbackeus has joined #crystal-lang
14:12
sailorswift has joined #crystal-lang
14:20
zamith has joined #crystal-lang
14:22
elia has quit [Quit: Computer has gone to sleep.]
14:25
zamith has quit [Quit: Be back later ...]
14:28
leafybasil has joined #crystal-lang
14:37
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:40
dbackeus has quit [Remote host closed the connection]
14:41
sailorswift has joined #crystal-lang
14:42
zamith has joined #crystal-lang
14:44
zamith has quit [Client Quit]
14:49
leafybasil has quit [Remote host closed the connection]
15:09
zamith has joined #crystal-lang
15:27
mgarciaisaia has joined #crystal-lang
15:32
NeverDie has joined #crystal-lang
15:43
mgarciaisaia1 has joined #crystal-lang
15:43
mgarciaisaia has quit [Read error: Connection reset by peer]
15:52
zamith has quit [Quit: Be back later ...]
15:53
zamith has joined #crystal-lang
15:56
blue_deref has joined #crystal-lang
15:58
elia has joined #crystal-lang
16:01
dbackeus has joined #crystal-lang
16:07
kulelu88 has joined #crystal-lang
16:14
zamith has quit [Quit: Be back later ...]
16:15
zamith has joined #crystal-lang
16:20
<
crystal-gh >
crystal/master 853edff Juan Wajnerman: Some fixes for 32bit platforms
16:30
dbackeus has quit [Remote host closed the connection]
16:31
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
16:36
elia has quit [Quit: Computer has gone to sleep.]
16:37
dbackeus has joined #crystal-lang
16:38
DeBot has quit [Read error: Connection reset by peer]
16:39
DeBot has joined #crystal-lang
16:54
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
17:05
zamith has quit [Quit: Be back later ...]
17:12
dbackeus_ has joined #crystal-lang
17:12
dbackeus has quit [Ping timeout: 265 seconds]
17:23
<
BlaXpirit >
dbackeus_, :o
17:28
<
BlaXpirit >
dbackeus_, i think you should report this
17:32
dbackeus_ has quit [Remote host closed the connection]
17:33
zamith has joined #crystal-lang
17:35
zamith has quit [Client Quit]
17:36
zamith has joined #crystal-lang
17:40
zamith has quit [Ping timeout: 244 seconds]
17:57
DrThunder has joined #crystal-lang
18:01
blue_deref has quit [Quit: bbn]
18:01
DrThunder has quit [Ping timeout: 244 seconds]
18:13
blue_deref has joined #crystal-lang
18:17
mgarciaisaia1 has quit [Quit: Leaving.]
18:18
<
crystal-gh >
crystal/master 8245fde Ary Borenszweig: Fixed #1029: Escaped macros and 'end'
18:42
leafybasil has joined #crystal-lang
18:44
dbackeus has joined #crystal-lang
18:47
dbackeus has quit [Remote host closed the connection]
18:48
dbackeus has joined #crystal-lang
18:54
_whitelogger has joined #crystal-lang
19:01
NeverDie has joined #crystal-lang
19:08
havenwood has joined #crystal-lang
19:17
sergey_kucher has quit [Remote host closed the connection]
19:22
DrThunder has joined #crystal-lang
19:30
elia has joined #crystal-lang
19:40
elia has quit [Quit: Computer has gone to sleep.]
19:48
elia has joined #crystal-lang
19:52
havenwood has quit [Ping timeout: 255 seconds]
19:52
dbackeus has quit []
19:56
elia has quit [Quit: Computer has gone to sleep.]
20:01
<
BlaXpirit >
are there DBus bindings?
20:02
<
BlaXpirit >
well appears not
20:07
elia has joined #crystal-lang
20:11
kulelu88 has left #crystal-lang ["Leaving"]
20:20
DrThunder has quit [Remote host closed the connection]
20:28
havenwood has joined #crystal-lang
20:34
DrThunder has joined #crystal-lang
20:34
DrThunder has quit [Remote host closed the connection]
20:40
DrThunder has joined #crystal-lang
20:49
DrThunder has quit [Remote host closed the connection]
20:51
<
BlaXpirit >
how can i link to /usr/lib/x86_64-linux-gnu/libdbus-1.so ?
20:52
<
BlaXpirit >
i have no idea why ubuntu does this
20:56
DrThunder has joined #crystal-lang
21:00
elia has quit [Quit: Computer has gone to sleep.]
21:04
DrThunder has quit []
21:11
<
BlaXpirit >
how to do assert?
21:12
<
BlaXpirit >
which is give an exception when a condition is false
21:15
<
BlaXpirit >
raise "damn" unless condition
21:22
dbackeus has joined #crystal-lang
21:36
centrx has joined #crystal-lang
22:02
<
BlaXpirit >
why don't i see any MemoryError?
22:03
<
BlaXpirit >
in the API
22:17
<
BlaXpirit >
epitron, :(
22:17
<
BlaXpirit >
i dont know
22:17
<
BlaXpirit >
i passed it a string and it worked
22:17
Tuxified has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
22:18
<
epitron >
can i see your code?
22:19
<
BlaXpirit >
epitron, Process.run("less", input: "lol")
22:20
<
epitron >
unfortunately i need to stream the input into it
22:20
<
BlaXpirit >
epitron, but that doesnt explain why your code doesnt work
22:21
<
BlaXpirit >
epitron, well its the exact same thing
22:22
<
BlaXpirit >
(i see that it's different process
22:26
dbackeus has quit [Remote host closed the connection]
22:29
dbackeus has joined #crystal-lang
22:31
waj has quit [Quit: waj]
22:33
dbackeus has quit [Ping timeout: 250 seconds]
22:33
zamith has joined #crystal-lang
22:33
<
zamith >
Hey. I'm trying to do an http call (using twitter-crystal) but it just hangs forever
22:34
<
zamith >
I've basically tracked it to the read call on HTTP::FixedContent
22:34
<
zamith >
but I have not idea of why this is happening or how to fix it
22:35
<
epitron >
is FixedContent an http request that knows the size of the response?
22:35
<
epitron >
i remember running into some weird content-length bugs when making an http server from scratch
22:35
<
epitron >
it might be waiting for content that isn't coming
22:36
<
zamith >
I assume something of the likes is happening
22:37
<
zamith >
it uses SSL and oauth
22:37
<
zamith >
so it is an http fixed content, where the io element is an openssl::ssl::socket
22:38
<
zamith >
for some reason it won't work, but it gives no output
22:38
<
epitron >
i wonder what OS had the best model for sockets and communication
22:38
<
epitron >
plan9 maybe? :)
22:39
<
zamith >
no idea :)
22:39
leafybas_ has joined #crystal-lang
22:39
<
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
22:39
leafybasil has quit [Read error: Connection reset by peer]
22:39
<
zamith >
you mean the handle_response?
22:40
<
epitron >
websockets has a nice paradigm: onmessage, onclose, send
22:40
<
zamith >
at this point I'd be happy with any response at all
22:40
<
zamith >
even an error
22:40
<
epitron >
i was just thinking about pipes/sockets/IOs in general
22:40
<
epitron >
it's so messy
22:40
<
zamith >
asterite: do you have any idea of what could be happening?
22:40
leafybasil has joined #crystal-lang
22:40
<
zamith >
epitron: oh ok
22:42
<
zamith >
could it be my libssl?
22:47
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
22:51
<
zamith >
so, the request has this header: "content-disposition: attachment; filename=json.json"
22:51
<
zamith >
could it be causing issues?
22:55
BlaXpirit has quit [Quit: Konversation]
22:59
<
centrx >
sardaukar, Is the complete entirety of the code? Google suggests superclass mismatch is due to redefining a class twice?
22:59
<
sardaukar >
yes, this is the whole code
23:00
<
sardaukar >
I can't subclass twice? :D with only one subclass it works
23:00
<
zamith >
I think it's because Box already exists
23:00
<
zamith >
it's define in the crystal core
23:00
<
sardaukar >
oh shit
23:00
<
sardaukar >
better put this in a module :D
23:01
<
sardaukar >
thanks!
23:03
<
zamith >
then you have other errors
23:03
<
zamith >
for instance you should probably make Widget an abstract class
23:03
<
zamith >
that has an abstract render method
23:06
<
sardaukar >
does an abstract class have any special needs for methods?
23:07
<
sardaukar >
cool, thanks
23:07
<
sardaukar >
trying to move files into src/ and so on
23:23
<
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
23:23
<
zamith >
I solved my ssl issue, with the PR that I just opened
23:40
dwahl has joined #crystal-lang
23:44
dwahl has quit [Ping timeout: 246 seconds]
23:50
zamith has quit [Quit: Be back later ...]
23:52
<
sardaukar >
is it common knowledge that a multiline hash needs no commas?